From 3b75185d694d8a8cd23ec4b683ebd6b85c001771 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Wed, 25 Sep 2024 23:34:11 +0800 Subject: [PATCH 1/8] Remove assets from public --- .../public/assets/Arc-QDJFTGH2-kQUVOusT.js | 2 - .../public/assets/Brave-YATE5BIM-Crgwi_gE.js | 2 - .../assets/Browser-HN7O5MN7-DHqH2OSI.js | 2 - .../public/assets/Chrome-LGF33C3S-CKyHgdNL.js | 2 - .../public/assets/Edge-K2JEGI5S-_s-lgiRS.js | 2 - .../assets/Firefox-NP5SYEK5-7GCpd7vS.js | 2 - .../public/assets/Linux-NS2LQPT4-BSWfZXoy.js | 2 - .../public/assets/Macos-2KTZ2XLP-pPa2wwwq.js | 2 - .../public/assets/Opera-KV54PXPA-7mn5oIb-.js | 2 - .../public/assets/Safari-2QIYKJ4P-DQKkg1Bn.js | 2 - .../assets/Windows-R3CKAIUV-PWNRgNSo.js | 2 - apps/web/public/assets/___fetch.mjs | 84 - .../public/assets/ar_AR-PQJDYWVZ-APfsCj9O.js | 959 ---------- .../assets/arbitrum-LYDBJZP3-BMNNBURC.js | 2 - .../public/assets/assets-26YY4GVD-BJE_4jQP.js | 2 - .../assets/avalanche-TFPKP544-BAW5xZLs.js | 2 - .../public/assets/base-3MIUIYGA-BacvpD6v.js | 2 - .../assets/braveWallet-BTBH4MDN-Dk8CDq00.js | 2 - .../public/assets/bsc-S2GSW6VX-Bz0b4JEm.js | 2 - apps/web/public/assets/ccip-BXhNnGEm.js | 2 - apps/web/public/assets/ccip-CIUSMbP3.js | 2 - apps/web/public/assets/ccip-DjkOoLC9.js | 2 - .../coinbaseWallet-2OUR5TUP-CpvNSmI2.js | 2 - .../assets/connect-XNDTNVUH-Rkfb_zm3.js | 2 - .../public/assets/create-PAJXJDV3-CO2P7llu.js | 2 - .../public/assets/cronos-DQKKIEX7-D-xN-IeE.js | 2 - .../public/assets/es_419-GLICGTYE-DAMYsXQt.js | 959 ---------- .../assets/ethereum-4FY57XJF-BF1-Gkmk.js | 2 - .../public/assets/fr_FR-UC7Z4T6O-B67bog61.js | 959 ---------- .../assets/hardhat-ARRFHFKB-BsaKr6xa.js | 2 - .../public/assets/hi_IN-RGKVTIVE-Do-3nNHB.js | 959 ---------- .../public/assets/hooks.module-D456YPrV.js | 2 - .../public/assets/id_ID-3SKVJ2RK-DLkFahck.js | 959 ---------- apps/web/public/assets/index-AVOVxDWm.js | 13 - apps/web/public/assets/index-BWLXyvD6.js | 3 - apps/web/public/assets/index-B_Tlc-nD.js | 516 ------ apps/web/public/assets/index-BcX4A68S.js | 48 - apps/web/public/assets/index-Bl6Lkf65.js | 1552 ----------------- apps/web/public/assets/index-Bld-eKIP.js | 48 - apps/web/public/assets/index-BltpiQGx.js | 3 - apps/web/public/assets/index-C5o-2F8D.css | 1 - apps/web/public/assets/index-CPuAEUoa.js | 13 - apps/web/public/assets/index-CTwKNzhK.js | 1552 ----------------- apps/web/public/assets/index-Ca5iS1sT.js | 2 - apps/web/public/assets/index-Cd-8U-EF.js | 13 - apps/web/public/assets/index-Cl-fQh5M.js | 1552 ----------------- apps/web/public/assets/index-Cnb0ezsQ.js | 48 - apps/web/public/assets/index-CtWpA4AQ.js | 516 ------ apps/web/public/assets/index-DCYYXl21.js | 2 - apps/web/public/assets/index-DKyRIqqa.js | 516 ------ apps/web/public/assets/index-DcvEgmdm.js | 2 - apps/web/public/assets/index-Dy-WAr9t.js | 3 - apps/web/public/assets/index.es-83zPAjH-.js | 2 - apps/web/public/assets/index.es-BYCv7dOh.js | 2 - apps/web/public/assets/index.es-BlHtwxd-.js | 2 - apps/web/public/assets/index.es-C4tnSl6V.js | 29 - apps/web/public/assets/index.es-CdO-xVAP.js | 29 - apps/web/public/assets/index.es-DAoTMZAm.js | 29 - .../injectedWallet-EUKDEAIU-CMyNXBNM.js | 2 - .../public/assets/ja_JP-GYCPH6AT-B2ynLT17.js | 959 ---------- .../public/assets/ko_KR-V2HAEAHG-MSD6VZVz.js | 959 ---------- .../assets/lnaccess-controller-BNSJ7_eO.js | 2 - .../assets/lnaccess-controller-CY66MO2d.js | 2 - .../assets/lnaccess-controller-KB4pI6ch.js | 2 - .../web/public/assets/lnbridge-v3-CO3fue1_.js | 2 - .../web/public/assets/lnbridge-v3-Cee8iMxl.js | 2 - .../web/public/assets/lnbridge-v3-lhSDcqzS.js | 2 - .../public/assets/lnv2-default-CgNLmNLm.js | 2 - .../public/assets/lnv2-default-D6l1N3uU.js | 2 - .../public/assets/lnv2-default-DTrLX-WA.js | 2 - .../public/assets/lnv2-opposite-B8_jUw7k.js | 2 - .../public/assets/lnv2-opposite-C16bOlDZ.js | 2 - .../public/assets/lnv2-opposite-CY9WgYrv.js | 2 - .../public/assets/login-ZSMM5UYL-DT0rm6wp.js | 2 - .../metaMaskWallet-ORHUNQRP-DhHH5FFG.js | 2 - .../assets/msgline-messager-B71sigHl.js | 2 - .../assets/msgline-messager-BAOluMJI.js | 2 - .../assets/msgline-messager-gody91Yq.js | 2 - .../assets/okxWallet-GKYMI2XW-CdXZL5HC.js | 2 - .../assets/optimism-UUP5Y7TB-BI-bx6R2.js | 2 - .../assets/polygon-Z4QITDL7-DuMBfvk7.js | 2 - .../public/assets/pt_BR-JDDVMLRA-aYSlgkhd.js | 959 ---------- .../assets/rabbyWallet-22VWIFCE-C-acKMUn.js | 2 - .../assets/rainbowWallet-GGU64QEI-Buwz1oV3.js | 2 - .../assets/refresh-5KGGHTJP-CHhFOl-t.js | 2 - .../public/assets/ru_RU-3W6WVVOI-CElW9r3c.js | 959 ---------- .../assets/safeWallet-DFMLSLCR-7Jx5rkap.js | 2 - .../assets/safeWallet-DFMLSLCR-BD-GpskT.js | 2 - .../public/assets/scan-HZBLXLM4-DxZfTx07.js | 2 - .../public/assets/sign-FZVB2CS6-DXQn9z7A.js | 2 - .../talismanWallet-W5EQ26N7-COwK-IAC.js | 2 - .../public/assets/th_TH-UWDENI2F-isfr4Uax.js | 959 ---------- .../public/assets/tr_TR-NAI3OICG-BccpdJoF.js | 959 ---------- .../public/assets/uk_UA-H7BFRWP5-BxO6MaLd.js | 959 ---------- .../walletConnectWallet-D6ZADJM7-BtZ74X7H.js | 2 - .../workbox-window.prod.es5-rX37VysU.js | 3 - .../public/assets/xdc-5UHQ25DW-DoSn3ve8.js | 2 - .../public/assets/zh_CN-BO5MSGV2-D6N76dxU.js | 959 ---------- .../public/assets/zkSync-XRUC4ZHO-CS2pRbzJ.js | 2 - .../public/assets/zora-KVO7WIOK-CYiMysry.js | 2 - 100 files changed, 19170 deletions(-) delete mode 100644 apps/web/public/assets/Arc-QDJFTGH2-kQUVOusT.js delete mode 100644 apps/web/public/assets/Brave-YATE5BIM-Crgwi_gE.js delete mode 100644 apps/web/public/assets/Browser-HN7O5MN7-DHqH2OSI.js delete mode 100644 apps/web/public/assets/Chrome-LGF33C3S-CKyHgdNL.js delete mode 100644 apps/web/public/assets/Edge-K2JEGI5S-_s-lgiRS.js delete mode 100644 apps/web/public/assets/Firefox-NP5SYEK5-7GCpd7vS.js delete mode 100644 apps/web/public/assets/Linux-NS2LQPT4-BSWfZXoy.js delete mode 100644 apps/web/public/assets/Macos-2KTZ2XLP-pPa2wwwq.js delete mode 100644 apps/web/public/assets/Opera-KV54PXPA-7mn5oIb-.js delete mode 100644 apps/web/public/assets/Safari-2QIYKJ4P-DQKkg1Bn.js delete mode 100644 apps/web/public/assets/Windows-R3CKAIUV-PWNRgNSo.js delete mode 100644 apps/web/public/assets/___fetch.mjs delete mode 100644 apps/web/public/assets/ar_AR-PQJDYWVZ-APfsCj9O.js delete mode 100644 apps/web/public/assets/arbitrum-LYDBJZP3-BMNNBURC.js delete mode 100644 apps/web/public/assets/assets-26YY4GVD-BJE_4jQP.js delete mode 100644 apps/web/public/assets/avalanche-TFPKP544-BAW5xZLs.js delete mode 100644 apps/web/public/assets/base-3MIUIYGA-BacvpD6v.js delete mode 100644 apps/web/public/assets/braveWallet-BTBH4MDN-Dk8CDq00.js delete mode 100644 apps/web/public/assets/bsc-S2GSW6VX-Bz0b4JEm.js delete mode 100644 apps/web/public/assets/ccip-BXhNnGEm.js delete mode 100644 apps/web/public/assets/ccip-CIUSMbP3.js delete mode 100644 apps/web/public/assets/ccip-DjkOoLC9.js delete mode 100644 apps/web/public/assets/coinbaseWallet-2OUR5TUP-CpvNSmI2.js delete mode 100644 apps/web/public/assets/connect-XNDTNVUH-Rkfb_zm3.js delete mode 100644 apps/web/public/assets/create-PAJXJDV3-CO2P7llu.js delete mode 100644 apps/web/public/assets/cronos-DQKKIEX7-D-xN-IeE.js delete mode 100644 apps/web/public/assets/es_419-GLICGTYE-DAMYsXQt.js delete mode 100644 apps/web/public/assets/ethereum-4FY57XJF-BF1-Gkmk.js delete mode 100644 apps/web/public/assets/fr_FR-UC7Z4T6O-B67bog61.js delete mode 100644 apps/web/public/assets/hardhat-ARRFHFKB-BsaKr6xa.js delete mode 100644 apps/web/public/assets/hi_IN-RGKVTIVE-Do-3nNHB.js delete mode 100644 apps/web/public/assets/hooks.module-D456YPrV.js delete mode 100644 apps/web/public/assets/id_ID-3SKVJ2RK-DLkFahck.js delete mode 100644 apps/web/public/assets/index-AVOVxDWm.js delete mode 100644 apps/web/public/assets/index-BWLXyvD6.js delete mode 100644 apps/web/public/assets/index-B_Tlc-nD.js delete mode 100644 apps/web/public/assets/index-BcX4A68S.js delete mode 100644 apps/web/public/assets/index-Bl6Lkf65.js delete mode 100644 apps/web/public/assets/index-Bld-eKIP.js delete mode 100644 apps/web/public/assets/index-BltpiQGx.js delete mode 100644 apps/web/public/assets/index-C5o-2F8D.css delete mode 100644 apps/web/public/assets/index-CPuAEUoa.js delete mode 100644 apps/web/public/assets/index-CTwKNzhK.js delete mode 100644 apps/web/public/assets/index-Ca5iS1sT.js delete mode 100644 apps/web/public/assets/index-Cd-8U-EF.js delete mode 100644 apps/web/public/assets/index-Cl-fQh5M.js delete mode 100644 apps/web/public/assets/index-Cnb0ezsQ.js delete mode 100644 apps/web/public/assets/index-CtWpA4AQ.js delete mode 100644 apps/web/public/assets/index-DCYYXl21.js delete mode 100644 apps/web/public/assets/index-DKyRIqqa.js delete mode 100644 apps/web/public/assets/index-DcvEgmdm.js delete mode 100644 apps/web/public/assets/index-Dy-WAr9t.js delete mode 100644 apps/web/public/assets/index.es-83zPAjH-.js delete mode 100644 apps/web/public/assets/index.es-BYCv7dOh.js delete mode 100644 apps/web/public/assets/index.es-BlHtwxd-.js delete mode 100644 apps/web/public/assets/index.es-C4tnSl6V.js delete mode 100644 apps/web/public/assets/index.es-CdO-xVAP.js delete mode 100644 apps/web/public/assets/index.es-DAoTMZAm.js delete mode 100644 apps/web/public/assets/injectedWallet-EUKDEAIU-CMyNXBNM.js delete mode 100644 apps/web/public/assets/ja_JP-GYCPH6AT-B2ynLT17.js delete mode 100644 apps/web/public/assets/ko_KR-V2HAEAHG-MSD6VZVz.js delete mode 100644 apps/web/public/assets/lnaccess-controller-BNSJ7_eO.js delete mode 100644 apps/web/public/assets/lnaccess-controller-CY66MO2d.js delete mode 100644 apps/web/public/assets/lnaccess-controller-KB4pI6ch.js delete mode 100644 apps/web/public/assets/lnbridge-v3-CO3fue1_.js delete mode 100644 apps/web/public/assets/lnbridge-v3-Cee8iMxl.js delete mode 100644 apps/web/public/assets/lnbridge-v3-lhSDcqzS.js delete mode 100644 apps/web/public/assets/lnv2-default-CgNLmNLm.js delete mode 100644 apps/web/public/assets/lnv2-default-D6l1N3uU.js delete mode 100644 apps/web/public/assets/lnv2-default-DTrLX-WA.js delete mode 100644 apps/web/public/assets/lnv2-opposite-B8_jUw7k.js delete mode 100644 apps/web/public/assets/lnv2-opposite-C16bOlDZ.js delete mode 100644 apps/web/public/assets/lnv2-opposite-CY9WgYrv.js delete mode 100644 apps/web/public/assets/login-ZSMM5UYL-DT0rm6wp.js delete mode 100644 apps/web/public/assets/metaMaskWallet-ORHUNQRP-DhHH5FFG.js delete mode 100644 apps/web/public/assets/msgline-messager-B71sigHl.js delete mode 100644 apps/web/public/assets/msgline-messager-BAOluMJI.js delete mode 100644 apps/web/public/assets/msgline-messager-gody91Yq.js delete mode 100644 apps/web/public/assets/okxWallet-GKYMI2XW-CdXZL5HC.js delete mode 100644 apps/web/public/assets/optimism-UUP5Y7TB-BI-bx6R2.js delete mode 100644 apps/web/public/assets/polygon-Z4QITDL7-DuMBfvk7.js delete mode 100644 apps/web/public/assets/pt_BR-JDDVMLRA-aYSlgkhd.js delete mode 100644 apps/web/public/assets/rabbyWallet-22VWIFCE-C-acKMUn.js delete mode 100644 apps/web/public/assets/rainbowWallet-GGU64QEI-Buwz1oV3.js delete mode 100644 apps/web/public/assets/refresh-5KGGHTJP-CHhFOl-t.js delete mode 100644 apps/web/public/assets/ru_RU-3W6WVVOI-CElW9r3c.js delete mode 100644 apps/web/public/assets/safeWallet-DFMLSLCR-7Jx5rkap.js delete mode 100644 apps/web/public/assets/safeWallet-DFMLSLCR-BD-GpskT.js delete mode 100644 apps/web/public/assets/scan-HZBLXLM4-DxZfTx07.js delete mode 100644 apps/web/public/assets/sign-FZVB2CS6-DXQn9z7A.js delete mode 100644 apps/web/public/assets/talismanWallet-W5EQ26N7-COwK-IAC.js delete mode 100644 apps/web/public/assets/th_TH-UWDENI2F-isfr4Uax.js delete mode 100644 apps/web/public/assets/tr_TR-NAI3OICG-BccpdJoF.js delete mode 100644 apps/web/public/assets/uk_UA-H7BFRWP5-BxO6MaLd.js delete mode 100644 apps/web/public/assets/walletConnectWallet-D6ZADJM7-BtZ74X7H.js delete mode 100644 apps/web/public/assets/workbox-window.prod.es5-rX37VysU.js delete mode 100644 apps/web/public/assets/xdc-5UHQ25DW-DoSn3ve8.js delete mode 100644 apps/web/public/assets/zh_CN-BO5MSGV2-D6N76dxU.js delete mode 100644 apps/web/public/assets/zkSync-XRUC4ZHO-CS2pRbzJ.js delete mode 100644 apps/web/public/assets/zora-KVO7WIOK-CYiMysry.js diff --git a/apps/web/public/assets/Arc-QDJFTGH2-kQUVOusT.js b/apps/web/public/assets/Arc-QDJFTGH2-kQUVOusT.js deleted file mode 100644 index 1f27bbe0..00000000 --- a/apps/web/public/assets/Arc-QDJFTGH2-kQUVOusT.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},N=new M.Error().stack;N&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[N]="58cefd78-f3d0-4021-8080-7f829cbfe813",M._sentryDebugIdIdentifier="sentry-dbid-58cefd78-f3d0-4021-8080-7f829cbfe813")}catch{}})();var j="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgNzggNzgiPjxkZWZzPjxwYXRoIGlkPSJhIiBmaWxsPSIjMUEwMDdGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Im0yNi43MjIgNTYuNDUyIDYuNjA4LTEzLjkwNGMtNS4wNDctMS4wNzMtMTAuMTI2LTQuMTk1LTEyLjk5OS03Ljk5M2wtNi45MSAxNC41MjlhMzkuMjU3IDM5LjI1NyAwIDAgMCAxMy4zIDcuMzY4WiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggaWQ9ImIiIGZpbGw9IiM0RTAwMEEiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTU0LjMwNCAzNC4xMzhjLTMuMzIgNC4wNy03LjkzMSA3LjA4Ny0xMi44NjQgOC4yNjNsNi41ODggMTMuODYzYzQuODA5LTEuNjIzIDkuMzA0LTQuMjQ1IDEzLjE4NS03LjYwOGwtNi45MS0xNC41MThaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48cGF0aCBpZD0iYyIgZmlsbD0iIzFBMDA3RiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTMuNDIyIDQ5LjA4NC0zLjQ1NSA3LjI2NWMtMS43NiAzLjY5NC0uNDM3IDguMjQyIDMuMTg0IDEwLjE2NyAzLjg0IDIuMDQgOC41NjYuNDQ4IDEwLjQxOS0zLjQzNGwzLjE1Mi02LjYzYTM5LjQyNyAzOS40MjcgMCAwIDEtMTMuMy03LjM2OCIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggaWQ9ImQiIGZpbGw9IiNGRjkzOTYiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTY4LjAyIDE4LjI3N2E3LjU4NiA3LjU4NiAwIDAgMC04LjkzIDUuOTUyYy0uNzI5IDMuNjQyLTIuNDM2IDcuMDM1LTQuNzg3IDkuOTJsNi45IDE0LjUyOGM2LjM2OS01LjUyNyAxMS4wNzQtMTMuMDUyIDEyLjc1OS0yMS40NzEuODIzLTQuMTIyLTEuODQyLTguMTE3LTUuOTQzLTguOTMiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGlkPSJlIiBmaWxsPSIjMDAyREM4IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MS40MzggNDIuNDAzYTE5LjMxMiAxOS4zMTIgMCAwIDEtNC40OTYuNTQgMTcuMzMgMTcuMzMgMCAwIDEtMy42MS0uMzk1Yy01LjA0OC0xLjA3Mi0xMC4xMjgtNC4xOTQtMTMtNy45OTMtLjcxOC0uOTQ3LTEuMzAxLTEuOTM2LTEuNzA2LTIuOTQ1LTEuNTcyLTMuODgyLTUuOTk2LTUuNzU2LTkuODc4LTQuMTk1LTMuODgxIDEuNTcyLTUuNzU1IDUuOTk1LTQuMTk0IDkuODc3IDEuNzggNC40MTQgNC45MjMgOC40NjIgOC44NjcgMTEuNzkxYTM5LjM3NyAzOS4zNzcgMCAwIDAgMTMuMjkxIDcuMzdjMy4zNDEgMS4wNzEgNi44MDcgMS42NjUgMTAuMjIgMS42NjUgMy43ODggMCA3LjUyNS0uNjU2IDExLjA4NC0xLjg1M2wtNi41NzgtMTMuODYyWiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggaWQ9ImYiIGZpbGw9IiNGRjUzNkEiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0ibTY0Ljg0NiA1Ni4zMTYtMy42NDMtNy42Ni02LjktMTQuNTE4LS4wMTEuMDFzMC0uMDEuMDExLS4wMUw0NC4yNyAxMy4wMzJhNy41ODkgNy41ODkgMCAwIDAtNi44NDgtNC4zMyA3LjU4OSA3LjU4OSAwIDAgMC02Ljg0OCA0LjMzTDIwLjM0MyAzNC41NTRjMi44NzIgMy43OTkgNy45NSA2LjkyMSAxMi45OTkgNy45OTNsMy4zMDktNi45NTJhLjg2Ni44NjYgMCAwIDEgMS41NjEgMGwzLjIzOCA2LjgwNmguMDItLjAybDYuNTg4IDEzLjg2MyAzLjIzNiA2LjgwN2E3LjU3NiA3LjU3NiAwIDAgMCA2Ljg1OCA0LjMzIDcuNDQgNy40NCAwIDAgMCAyLjAyLS4yODFjNC41NjktMS4yNiA2LjczNC02LjUxNSA0LjY5NC0xMC44MDQiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvZGVmcz48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zNy40MjIgOC43MDJhNy41OSA3LjU5IDAgMCAxIDYuODQ4IDQuMzNsMTAuMDMzIDIxLjEwN3MwIC4wMS0uMDExLjAxYzAgMCAwLS4wMTEuMDEtLjAxMSAyLjM1My0yLjg4MyA0LjA2LTYuMjc2IDQuNzg4LTkuOTE5LjgyMi00LjExIDQuODE4LTYuNzY0IDguOTMtNS45NTJhNy41ODUgNy41ODUgMCAwIDEgNS45NTMgOC45M2MtMS42ODYgOC40MTktNi4zOSAxNS45NDQtMTIuNzYgMjEuNDdsMy42NDMgNy42NmMyLjAxOSA0LjI0Ni0uMDk0IDkuNDQtNC41NyAxMC43NzFsLS4xMzUuMDQzYTcuNTA2IDcuNTA2IDAgMCAxLTIuMDE5LjI4IDcuNTk1IDcuNTk1IDAgMCAxLTYuODU4LTQuMzNsLTMuMjM4LTYuODA1LTYuNTg3LTEzLjg2M2guMDIyLS4wMjJsLTMuMjM3LTYuODA3YS44NjUuODY1IDAgMCAwLTEuNTYgMGwtMy4zMSA2Ljk1MmMtNS4wNDgtMS4wNy0xMC4xMjctNC4xOTQtMTMtNy45OTNsMTAuMjMxLTIxLjUyM2E3LjU1IDcuNTUgMCAwIDEgNi44NDgtNC4zNVpNOC43NDkgMjcuNDE0YTcuNTgyIDcuNTgyIDAgMCAxIDkuODc2IDQuMTk1Yy40MDcgMS4wMS45OSAxLjk5OCAxLjcwNyAyLjk0NWwuMDEuMDExLjM0NC40MzZjLjAzMi4wNDIuMDYzLjA3NC4wOTQuMTE2bC4wOTMuMTE0Yy4wNTMuMDUyLjA5NC4xMTUuMTQ2LjE2Ni4wMS4wMS4wMjEuMDIyLjAyMS4wMzJsLS4wMi0uMDMyYy4xOTcuMjQuNDE1LjQ2OC42MzQuNjk5LjAxLjAwOS4wMS4wMi4wMi4wMmEyMC4zMzIgMjAuMzMyIDAgMCAwIDIuMzg1IDIuMTEyYy40MDUuMzEzLjgyMi42MDMgMS4yNDguODk1LjA0Mi4wMjEuMDczLjA1Mi4xMTUuMDc0IDIuNDA0IDEuNTggNS4xNjIgMi43NjcgNy45MSAzLjM1IDEuMTY1LjI1IDIuMzMuMzg2IDMuNDY1LjM5NmguMTQ2YzEuNTA5IDAgMy4wMTgtLjE4OCA0LjQ5NS0uNTQybDYuNTg5IDEzLjg2M2MtMy41NiAxLjE5OC03LjI5NiAxLjg1My0xMS4wODQgMS44NTMtMy40MTQgMC02Ljg2OS0uNTkzLTEwLjIyLTEuNjY1bC0zLjE1NCA2LjYzYTcuNTgzIDcuNTgzIDAgMCAxLTEwLjQxOCAzLjQzNEM5LjUzIDY0LjU5IDguMjA3IDYwLjA1MyA5Ljk2NyA1Ni4zNDhsMy40NTUtNy4yNjRjLTMuOTAzLTMuMy03LjAxNS03LjMwNy04LjgxNS0xMS42NTdsLS4wNTItLjEzNWMtMS41Ni0zLjg4My4zMTItOC4zMDUgNC4xOTQtOS44NzhaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48cGF0aCBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjYuMDIxIiBkPSJNMzcuNDIyIDguNzAyYTcuNTkgNy41OSAwIDAgMSA2Ljg0OCA0LjMzbDEwLjAzMyAyMS4xMDdzMCAuMDEtLjAxMS4wMWMwIDAgMC0uMDExLjAxLS4wMTEgMi4zNTMtMi44ODMgNC4wNi02LjI3NiA0Ljc4OC05LjkxOS44MjItNC4xMSA0LjgxOC02Ljc2NCA4LjkzLTUuOTUyYTcuNTg1IDcuNTg1IDAgMCAxIDUuOTUzIDguOTNjLTEuNjg2IDguNDE5LTYuMzkgMTUuOTQ0LTEyLjc2IDIxLjQ3bDMuNjQzIDcuNjZjMi4wMTkgNC4yNDYtLjA5NCA5LjQ0LTQuNTcgMTAuNzcxbC0uMTM1LjA0M2E3LjUwNiA3LjUwNiAwIDAgMS0yLjAxOS4yOCA3LjU5NSA3LjU5NSAwIDAgMS02Ljg1OC00LjMzbC0zLjIzOC02LjgwNS02LjU4Ny0xMy44NjNoLjAyMi0uMDIybC0zLjIzNy02LjgwN2EuODY1Ljg2NSAwIDAgMC0xLjU2IDBsLTMuMzEgNi45NTJjLTUuMDQ4LTEuMDctMTAuMTI3LTQuMTk0LTEzLTcuOTkzbDEwLjIzMS0yMS41MjNhNy41NSA3LjU1IDAgMCAxIDYuODQ4LTQuMzVoMFpNOC43NDkgMjcuNDE0YTcuNTgyIDcuNTgyIDAgMCAxIDkuODc2IDQuMTk1Yy40MDcgMS4wMS45OSAxLjk5OCAxLjcwNyAyLjk0NWwuMDEuMDExLjM0NC40MzZjLjAzMi4wNDIuMDYzLjA3NC4wOTQuMTE2bC4wOTMuMTE0Yy4wNTMuMDUyLjA5NC4xMTUuMTQ2LjE2Ni4wMS4wMS4wMjEuMDIyLjAyMS4wMzJsLS4wMi0uMDMyYy4xOTcuMjQuNDE1LjQ2OC42MzQuNjk5LjAxLjAwOS4wMS4wMi4wMi4wMmEyMC4zMzIgMjAuMzMyIDAgMCAwIDIuMzg1IDIuMTEyYy40MDUuMzEzLjgyMi42MDMgMS4yNDguODk1LjA0Mi4wMjEuMDczLjA1Mi4xMTUuMDc0IDIuNDA0IDEuNTggNS4xNjIgMi43NjcgNy45MSAzLjM1IDEuMTY1LjI1IDIuMzMuMzg2IDMuNDY1LjM5NmguMTQ2YzEuNTA5IDAgMy4wMTgtLjE4OCA0LjQ5NS0uNTQybDYuNTg5IDEzLjg2M2MtMy41NiAxLjE5OC03LjI5NiAxLjg1My0xMS4wODQgMS44NTMtMy40MTQgMC02Ljg2OS0uNTkzLTEwLjIyLTEuNjY1bC0zLjE1NCA2LjYzYTcuNTgzIDcuNTgzIDAgMCAxLTEwLjQxOCAzLjQzNEM5LjUzIDY0LjU5IDguMjA3IDYwLjA1MyA5Ljk2NyA1Ni4zNDhsMy40NTUtNy4yNjRjLTMuOTAzLTMuMy03LjAxNS03LjMwNy04LjgxNS0xMS42NTdsLS4wNTItLjEzNWMtMS41Ni0zLjg4My4zMTItOC4zMDUgNC4xOTQtOS44NzhoMFoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjx1c2UgeGxpbms6aHJlZj0iI2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHVzZSB4bGluazpocmVmPSIjYiIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48dXNlIHhsaW5rOmhyZWY9IiNjIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjx1c2UgeGxpbms6aHJlZj0iI2QiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHVzZSB4bGluazpocmVmPSIjZSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48dXNlIHhsaW5rOmhyZWY9IiNmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjx1c2UgeGxpbms6aHJlZj0iI2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHVzZSB4bGluazpocmVmPSIjYiIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48dXNlIHhsaW5rOmhyZWY9IiNjIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjx1c2UgeGxpbms6aHJlZj0iI2QiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHVzZSB4bGluazpocmVmPSIjZSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48dXNlIHhsaW5rOmhyZWY9IiNmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==";export{j as default}; -//# sourceMappingURL=Arc-QDJFTGH2-kQUVOusT.js.map diff --git a/apps/web/public/assets/Brave-YATE5BIM-Crgwi_gE.js b/apps/web/public/assets/Brave-YATE5BIM-Crgwi_gE.js deleted file mode 100644 index 7a218323..00000000 --- a/apps/web/public/assets/Brave-YATE5BIM-Crgwi_gE.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},L=new M.Error().stack;L&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[L]="190f6c92-2bd5-40f3-a06c-4ac1f2550aed",M._sentryDebugIdIdentifier="sentry-dbid-190f6c92-2bd5-40f3-a06c-4ac1f2550aed")}catch{}})();var I="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA3OCA3OCI+PHBhdGggZmlsbD0idXJsKCNhKSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtNjcuODEgMTkuNTQgMS42OS00LjJzLTIuMTQtMi4zNS00Ljc1LTVjLTIuNi0yLjY1LTguMS0xLjA5LTguMS0xLjA5TDUwLjM3IDJIMjguMzRsLTYuMjggNy4yNXMtNS41LTEuNTYtOC4xIDEuMWMtMi42IDIuNjQtNC43NSA0Ljk4LTQuNzUgNC45OGwxLjY5IDQuMjEtMi4xNSA2LjI0czYuMyAyNC4zIDcuMDQgMjcuMjhjMS40NiA1Ljg0IDIuNDUgOC4xIDYuNTggMTEuMDZhNTEzLjY2IDUxMy42NiAwIDAgMCAxMi44NSA4Ljg5YzEuMjMuNzggMi43NiAyLjEgNC4xMyAyLjEgMS4zOCAwIDIuOTEtMS4zMiA0LjE0LTIuMSAxLjIyLS43OCA4LjcyLTUuOTIgMTIuODUtOC44OSA0LjEzLTIuOTYgNS4xMi01LjIyIDYuNTgtMTEuMDYuNzQtMi45NyA3LjA0LTI3LjI4IDcuMDQtMjcuMjhsLTIuMTUtNi4yNFoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiNmZmYiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTM5LjM1IDQ3LjVjLjQyIDAgMy4xMS45NyA1LjI3IDIuMSAyLjE1IDEuMTQgMy43MiAxLjk1IDQuMjIgMi4yNi41LjMyLjIuOTItLjI2IDEuMjUtLjQ2LjMzLTYuNTcgNS4xNS03LjE3IDUuNjktLjYuNTMtMS40NiAxLjQxLTIuMDYgMS40MS0uNTkgMC0xLjQ2LS44OC0yLjA1LTEuNDEtLjYtLjU0LTYuNzEtNS4zNi03LjE3LTUuNjktLjQ1LS4zMy0uNzYtLjkzLS4yNi0xLjI1LjUtLjMxIDIuMDctMS4xMiA0LjIyLTIuMjUgMi4xNi0xLjE0IDQuODUtMi4xIDUuMjYtMi4xWm0uMDQtMzQuMzZjLjIuMDEgMS4zNi4wNyAzLjAyLjYzIDEuODQuNjMgMy44MyAxLjQgNC43NSAxLjQuOTIgMCA3LjczLTEuMzIgNy43My0xLjMyczguMDYgOS45NCA4LjA2IDEyLjA2YzAgMi4xMy0xLjAxIDIuNjktMi4wMyAzLjhsLTYuMDUgNi41NGMtLjU3LjYyLTEuNzcgMS41NS0xLjA2IDMuMjQuNyAxLjcgMS43MyAzLjg0LjU4IDYuMDMtMS4xNSAyLjE4LTMuMTIgMy42My00LjM4IDMuNC0xLjI2LS4yNS00LjIzLTEuODMtNS4zMi0yLjU1LTEuMDktLjcyLTQuNTQtMy42Mi00LjU0LTQuNzMgMC0xLjExIDMuNTctMy4xIDQuMjMtMy41Ni42Ni0uNDUgMy42Ny0yLjIgMy43My0yLjkuMDYtLjY5LjA0LS44OS0uODUtMi41OS0uODktMS43LTIuNDktMy45Ny0yLjIyLTUuNDguMjYtMS41MSAyLjg0LTIuMyA0LjY4LTMgMS44NC0uNzEgNS4zOS0yLjA1IDUuODMtMi4yNi40NC0uMi4zMy0uNC0xLjAxLS41M3MtNS4xNS0uNjUtNi44Ni0uMTZjLTEuNzIuNDktNC42NSAxLjIzLTQuODkgMS42Mi0uMjQuNC0uNDUuNC0uMiAxLjc2LjI0IDEuMzYgMS41IDcuODcgMS42MiA5LjAyLjEyIDEuMTYuMzYgMS45Mi0uODcgMi4yLTEuMjIuMy0zLjI4Ljc5LTMuOTkuNzktLjcgMC0yLjc2LS41LTMuOTktLjc4LTEuMjItLjI5LS45OC0xLjA1LS44Ni0yLjIuMTItMS4xNiAxLjM4LTcuNjcgMS42Mi05LjAzLjI1LTEuMzUuMDQtMS4zNy0uMi0xLjc2LS4yNC0uNC0zLjE3LTEuMTMtNC44OS0xLjYyLTEuNzEtLjQ5LTUuNTIuMDMtNi44Ni4xNi0xLjM0LjEzLTEuNDYuMzItMS4wMS41My40NC4yMSAzLjk4IDEuNTUgNS44MyAyLjI2IDEuODQuNyA0LjQyIDEuNDkgNC42OCAzIC4yNyAxLjUxLTEuMzMgMy43OC0yLjIyIDUuNDgtLjg5IDEuNy0uOTEgMS45LS44NSAyLjYuMDYuNjggMy4wNyAyLjQ0IDMuNzMgMi44OS42Ni40NSA0LjIzIDIuNDUgNC4yMyAzLjU2IDAgMS4xLTMuNDUgNC4wMS00LjU0IDQuNzMtMS4xLjcyLTQuMDYgMi4zLTUuMzIgMi41NC0xLjI2LjI0LTMuMjMtMS4yMS00LjM4LTMuNC0xLjE1LTIuMTgtLjEyLTQuMzMuNTgtNi4wMi43LTEuNjktLjQ5LTIuNjItMS4wNi0zLjI0TDE3LjggMjkuN2MtMS4wMi0xLjEtMi4wNC0xLjY2LTIuMDQtMy43OSAwLTIuMTIgOC4wNy0xMi4wNiA4LjA3LTEyLjA2czYuODEgMS4zMyA3LjczIDEuMzNjLjkyIDAgMi45LS43OCA0Ljc0LTEuNGExMS4zIDExLjMgMCAwIDEgMy4wMy0uNjRoLjA3WiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PG1hc2sgaWQ9ImIiIHdpZHRoPSI1MiIgaGVpZ2h0PSIxNCIgeD0iMTMiIHk9IjIiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik01Ni42NCA5LjI1IDUwLjM3IDJIMjguMzRsLTYuMjggNy4yNXMtNS41LTEuNTYtOC4xIDEuMWMwIDAgNy4zNC0uNjggOS44NiAzLjUgMCAwIDYuODEgMS4zMyA3LjczIDEuMzMuOTIgMCAyLjktLjc4IDQuNzQtMS40IDEuODQtLjYzIDMuMDYtLjY0IDMuMDYtLjY0czEuMjMgMCAzLjA2LjYzYzEuODQuNjMgMy44MyAxLjQgNC43NSAxLjQuOTIgMCA3LjczLTEuMzIgNy43My0xLjMyIDIuNTItNC4xOCA5Ljg2LTMuNSA5Ljg2LTMuNS0yLjYtMi42Ni04LjEtMS4xLTguMS0xLjFaIi8+PC9tYXNrPjxnIG1hc2s9InVybCgjYikiPjxwYXRoIGZpbGw9InVybCgjYykiIGQ9Ik01Ni42NCA5LjI1IDUwLjM3IDJIMjguMzRsLTYuMjggNy4yNXMtNS41LTEuNTYtOC4xIDEuMWMwIDAgNy4zNC0uNjggOS44NiAzLjUgMCAwIDYuODEgMS4zMyA3LjczIDEuMzMuOTIgMCAyLjktLjc4IDQuNzQtMS40IDEuODQtLjYzIDMuMDYtLjY0IDMuMDYtLjY0czEuMjMgMCAzLjA2LjYzYzEuODQuNjMgMy44MyAxLjQgNC43NSAxLjQuOTIgMCA3LjczLTEuMzIgNy43My0xLjMyIDIuNTItNC4xOCA5Ljg2LTMuNSA5Ljg2LTMuNS0yLjYtMi42Ni04LjEtMS4xLTguMS0xLjFaIi8+PC9nPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgeDE9IjguNzUiIHgyPSI2OS45NiIgeTE9IjM5LjA3IiB5Mj0iMzkuMDciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjRjUwIi8+PHN0b3Agb2Zmc2V0PSIuNDEiIHN0b3AtY29sb3I9IiNGNTAiLz48c3RvcCBvZmZzZXQ9Ii41OCIgc3RvcC1jb2xvcj0iI0ZGMjAwMCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGMjAwMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJjIiB4MT0iMTUuMDUiIHgyPSI2NC43NSIgeTE9IjguNjgiIHkyPSI4LjY4IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGNDUyQSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGMjAwMCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjwvc3ZnPg==";export{I as default}; -//# sourceMappingURL=Brave-YATE5BIM-Crgwi_gE.js.map diff --git a/apps/web/public/assets/Browser-HN7O5MN7-DHqH2OSI.js b/apps/web/public/assets/Browser-HN7O5MN7-DHqH2OSI.js deleted file mode 100644 index 0c53da1a..00000000 --- a/apps/web/public/assets/Browser-HN7O5MN7-DHqH2OSI.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var I=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},M=new I.Error().stack;M&&(I._sentryDebugIds=I._sentryDebugIds||{},I._sentryDebugIds[M]="b0830412-f5e8-4a3d-8053-3b56cac61a4e",I._sentryDebugIdIdentifier="sentry-dbid-b0830412-f5e8-4a3d-8053-3b56cac61a4e")}catch{}})();var N="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA3OCA3OCI+PGcgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik0zOSA3NmMyMC40MzQgMCAzNy0xNi41NjYgMzctMzdTNTkuNDM0IDIgMzkgMiAyIDE4LjU2NiAyIDM5czE2LjU2NiAzNyAzNyAzN1ptMC01YzE3LjY3MyAwIDMyLTE0LjMyNyAzMi0zMkM3MSAyMS4zMjcgNTYuNjczIDcgMzkgNyAyMS4zMjcgNyA3IDIxLjMyNyA3IDM5YzAgMTcuNjczIDE0LjMyNyAzMiAzMiAzMloiLz48cGF0aCBmaWxsPSJ1cmwoI2IpIiBkPSJNMzkgNzZjMjAuNDM0IDAgMzctMTYuNTY2IDM3LTM3UzU5LjQzNCAyIDM5IDIgMiAxOC41NjYgMiAzOXMxNi41NjYgMzcgMzcgMzdabTAtNWMxNy42NzMgMCAzMi0xNC4zMjcgMzItMzJDNzEgMjEuMzI3IDU2LjY3MyA3IDM5IDcgMjEuMzI3IDcgNyAyMS4zMjcgNyAzOWMwIDE3LjY3MyAxNC4zMjcgMzIgMzIgMzJaIi8+PC9nPjxjaXJjbGUgY3g9IjM5IiBjeT0iMzkiIHI9IjMwIiBmaWxsPSJ1cmwoI2MpIi8+PGNpcmNsZSBjeD0iMzkiIGN5PSIzOSIgcj0iMzAiIGZpbGw9InVybCgjZCkiIGZpbGwtb3BhY2l0eT0iLjciIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTpzY3JlZW4iLz48ZyBmaWx0ZXI9InVybCgjZSkiPjxjaXJjbGUgY3g9IjM5IiBjeT0iMzkiIHI9IjI5LjUiIHN0cm9rZT0iIzAwMCIvPjwvZz48ZyBmaWx0ZXI9InVybCgjZikiPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjMiIGQ9Im01NS42ODEgNTMuNTk3LTguOTczLTE4Ljg2NWMtLjU0LTEuMTQ3LTEuMzE2LTEuOTI0LTIuNDI5LTIuNDYzbC0xOC44MjQtOC45MWMtMi40MjktMS4xNDctNC4yNS42MDctMy4xMDMgMy4xMDUgMS4xNDcgMi40OTcgOC45NCAxOC44MzEgOC45NCAxOC44MzEuNTA1IDEuMDggMS4yNDggMS44MjIgMi40MjggMi40M2wxOC44NTggOC45NDNjMi4zNjEgMS4xMTQgNC4xODMtLjc0MiAzLjEwMy0zLjA3MVptLTEyLjM4LTEzLjZjMCAyLjMyOC0xLjkyMyA0LjI1Mi00LjI1IDQuMjUyLTIuMzI4IDAtNC4yNTEtMS45MjQtNC4yNTEtNC4yNTJhNC4yNTUgNC4yNTUgMCAwIDEgNC4yNS00LjI1MmMyLjMyOCAwIDQuMjUgMS44OSA0LjI1IDQuMjUyWiIvPjwvZz48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii44IiBkPSJtNTUuNjgxIDUyLjU5Ny04Ljk3My0xOC44NjVjLS41NC0xLjE0Ny0xLjMxNi0xLjkyNC0yLjQyOS0yLjQ2M2wtMTguODI0LTguOTFjLTIuNDI5LTEuMTQ3LTQuMjUuNjA3LTMuMTAzIDMuMTA1IDEuMTQ3IDIuNDk3IDguOTQgMTguODMxIDguOTQgMTguODMxLjUwNSAxLjA4IDEuMjQ4IDEuODIyIDIuNDI4IDIuNDNsMTguODU4IDguOTQzYzIuMzYxIDEuMTE0IDQuMTgzLS43NDIgMy4xMDMtMy4wNzFabS0xMi4zOC0xMy42YzAgMi4zMjgtMS45MjMgNC4yNTItNC4yNSA0LjI1Mi0yLjMyOCAwLTQuMjUxLTEuOTI0LTQuMjUxLTQuMjUyYTQuMjU1IDQuMjU1IDAgMCAxIDQuMjUtNC4yNTJjMi4zMjggMCA0LjI1IDEuODkgNC4yNSA0LjI1MloiLz48cGF0aCBmaWxsPSJ1cmwoI2cpIiBkPSJtNTUuNjgxIDUyLjU5Ny04Ljk3My0xOC44NjVjLS41NC0xLjE0Ny0xLjMxNi0xLjkyNC0yLjQyOS0yLjQ2M2wtMTguODI0LTguOTFjLTIuNDI5LTEuMTQ3LTQuMjUuNjA3LTMuMTAzIDMuMTA1IDEuMTQ3IDIuNDk3IDguOTQgMTguODMxIDguOTQgMTguODMxLjUwNSAxLjA4IDEuMjQ4IDEuODIyIDIuNDI4IDIuNDNsMTguODU4IDguOTQzYzIuMzYxIDEuMTE0IDQuMTgzLS43NDIgMy4xMDMtMy4wNzFabS0xMi4zOC0xMy42YzAgMi4zMjgtMS45MjMgNC4yNTItNC4yNSA0LjI1Mi0yLjMyOCAwLTQuMjUxLTEuOTI0LTQuMjUxLTQuMjUyYTQuMjU1IDQuMjU1IDAgMCAxIDQuMjUtNC4yNTJjMi4zMjggMCA0LjI1IDEuODkgNC4yNSA0LjI1MloiIG9wYWNpdHk9Ii4xNCIvPjxwYXRoIGZpbGw9InVybCgjaCkiIGZpbGwtb3BhY2l0eT0iLjA4IiBkPSJNNjEuMjQ4IDU2LjAwOGMuMTY2LS4yMTcuMjUtLjMyNS4zNzgtLjY2Ljc1NC0xLjk1LTEuMTgzLTMuOTUtMy4xNTctMy4yNi0uMzM4LjExOC0uOTA0LjUyMi0yLjAzNSAxLjMzMkEyOS44NjMgMjkuODYzIDAgMCAxIDM5IDU5LjAwM2EyOS44NjMgMjkuODYzIDAgMCAxLTE3LjQyNS01LjU3N2MtMS4xMzItLjgwOS0xLjY5Ny0xLjIxMy0yLjAzNS0xLjMzMS0xLjk3NC0uNjktMy45MTEgMS4zMTMtMy4xNTYgMy4yNjMuMTI5LjMzNC4yMTIuNDQyLjM3OC42NTkgNS4xMTggNi42NzkgMTMuMTc2IDEwLjk4NiAyMi4yNCAxMC45ODYgOS4wNjggMCAxNy4xMjktNC4zMSAyMi4yNDYtMTAuOTk1WiIvPjxwYXRoIGZpbGw9InVybCgjaSkiIGZpbGwtb3BhY2l0eT0iLjIiIGQ9Ik02Mi4yNiA0MC4wNTFDNjMuODA1IDQxLjk0NyA2NyA0MS40NDUgNjcgMzljMC0xNS40NjQtMTIuNTM2LTI4LTI4LTI4UzExIDIzLjUzNiAxMSAzOWMwIDIuNDQ1IDMuMTk1IDIuOTQ2IDQuNzQgMS4wNTFDMjEuMjQxIDMzLjMwNyAyOS42MTggMjkgMzkgMjljOS4zODIgMCAxNy43NTggNC4zMDcgMjMuMjYgMTEuMDUxWiIvPjxwYXRoIGZpbGw9InVybCgjaikiIGQ9Ik0zOSA0NWE2IDYgMCAxIDEgMC0xMS45OTkgNiA2IDAgMCAxIDAgMTJaIi8+PHBhdGggc3Ryb2tlPSIjZmZmIiBzdHJva2Utb3BhY2l0eT0iLjI0IiBzdHJva2Utd2lkdGg9Ii4xMjUiIGQ9Ik0zNi43MjggNDQuNDg2YTUuOTM4IDUuOTM4IDAgMSAwIDQuNTQ1LTEwLjk3MSA1LjkzOCA1LjkzOCAwIDAgMC00LjU0NSAxMC45NzFaIi8+PGcgZmlsdGVyPSJ1cmwoI2spIj48cGF0aCBmaWxsPSIjMUExQjFGIiBkPSJNMzkgNDZhNiA2IDAgMSAxIDAtMTEuOTk5IDYgNiAwIDAgMSAwIDEyWiIvPjwvZz48cGF0aCBmaWxsPSJ1cmwoI2wpIiBkPSJNMzkgNDQuNWE1LjUgNS41IDAgMSAxIDAtMTEgNS41IDUuNSAwIDAgMSAwIDExWiIvPjxwYXRoIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLW9wYWNpdHk9Ii4yNCIgc3Ryb2tlLXdpZHRoPSIuMjUiIGQ9Ik0zNi45NDQgNDMuOTY2YTUuMzc2IDUuMzc2IDAgMSAwIDQuMTE0LTkuOTM0IDUuMzc2IDUuMzc2IDAgMCAwLTQuMTE0IDkuOTM0WiIvPjxwYXRoIGZpbGw9InVybCgjbSkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTM2LjcwNCA0NC41NDRhNi4wMDIgNi4wMDIgMCAwIDAgOC4yOTctNS41NDMgNiA2IDAgMSAwLTguMjk3IDUuNTQzWm0uMTkxLS40NjNhNS41IDUuNSAwIDEgMCA0LjIxLTEwLjE2MyA1LjUgNS41IDAgMCAwLTQuMjEgMTAuMTYzWiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0idXJsKCNuKSIgZmlsbC1vcGFjaXR5PSIuMDYiIGQ9Ik0zNi44OTcgNDIuMTJBNS45OCA1Ljk4IDAgMCAwIDM5IDQyLjVjMS40NiAwIDIuODU4LS41MjYgMy44OS0xLjQ2NC4yNTYtLjIzMy43MDEtLjAyMi41NC4yODVhNSA1IDAgMCAxLTkuMDQ5LS40MDZjLS4wOTgtLjIzOC4yMzctLjM4My40MTEtLjE5NWE1LjU2NSA1LjU2NSAwIDAgMCAyLjEwMyAxLjRaIi8+PGcgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9InVybCgjbykiIGQ9Ik0zOSA3MWMxNy42NzMgMCAzMi0xNC4zMjcgMzItMzJDNzEgMjEuMzI3IDU2LjY3MyA3IDM5IDcgMjEuMzI3IDcgNyAyMS4zMjcgNyAzOWMwIDE3LjY3MyAxNC4zMjcgMzIgMzIgMzJabTAtMmMxNi41NjkgMCAzMC0xMy40MzEgMzAtMzBDNjkgMjIuNDMxIDU1LjU2OSA5IDM5IDkgMjIuNDMxIDkgOSAyMi40MzEgOSAzOWMwIDE2LjU2OSAxMy40MzEgMzAgMzAgMzBaIi8+PHBhdGggZmlsbD0idXJsKCNwKSIgZD0iTTM5IDcxYzE3LjY3MyAwIDMyLTE0LjMyNyAzMi0zMkM3MSAyMS4zMjcgNTYuNjczIDcgMzkgNyAyMS4zMjcgNyA3IDIxLjMyNyA3IDM5YzAgMTcuNjczIDE0LjMyNyAzMiAzMiAzMlptMC0yYzE2LjU2OSAwIDMwLTEzLjQzMSAzMC0zMEM2OSAyMi40MzEgNTUuNTY5IDkgMzkgOSAyMi40MzEgOSA5IDIyLjQzMSA5IDM5YzAgMTYuNTY5IDEzLjQzMSAzMCAzMCAzMFoiLz48L2c+PHBhdGggZmlsbD0idXJsKCNxKSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzkgNzZjMjAuNDM0IDAgMzctMTYuNTY2IDM3LTM3UzU5LjQzNCAyIDM5IDIgMiAxOC41NjYgMiAzOXMxNi41NjYgMzcgMzcgMzdabTAtMWMxOS44ODIgMCAzNi0xNi4xMTggMzYtMzZTNTguODgyIDMgMzkgMyAzIDE5LjExOCAzIDM5czE2LjExOCAzNiAzNiAzNloiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxjaXJjbGUgY3g9IjM5IiBjeT0iMzkiIHI9IjMyIiBzdHJva2U9IiNmZmYiIHN0cm9rZS1vcGFjaXR5PSIuMyIgc3Ryb2tlLXdpZHRoPSIuMjUiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSIzOSIgeDI9IjM5IiB5MT0iMiIgeTI9Ijc2IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzE3NDI5OSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzAwMUU1OSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJiIiB4MT0iMzkiIHgyPSIzOSIgeTE9IjIiIHkyPSI3NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNEMkQ4RTQiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNDMkM5RDYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZyIgeDE9IjM0IiB4Mj0iNDYuNSIgeTE9IjQ1LjUiIHkyPSIzMyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPjxzdG9wIG9mZnNldD0iLjQ1MyIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuNjQiLz48c3RvcCBvZmZzZXQ9Ii40NTMiIHN0b3AtY29sb3I9IiMzQjNCM0IiIHN0b3Atb3BhY2l0eT0iLjIzMyIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1vcGFjaXR5PSIwIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImkiIHgxPSIzOSIgeDI9IjM5IiB5MT0iMTEiIHkyPSI0MS4yMDUiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjZmZmIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iaiIgeDE9IjM5LjAwMSIgeDI9IjM4Ljc1MSIgeTE9IjMzIiB5Mj0iNDUiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjRENFMUVBIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQkVDNkQ1Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImwiIHgxPSIzOS4wMDEiIHgyPSIzOC43NzIiIHkxPSIzMy41IiB5Mj0iNDQuNSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNEQ0UxRUEiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNCRUM2RDUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0ibSIgeDE9IjM5IiB4Mj0iMzkiIHkxPSIzMyIgeTI9IjQ1LjAwMSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNGMkY0RjciLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNBM0FEQzIiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0ibyIgeDE9IjM5IiB4Mj0iMzkiIHkxPSI3IiB5Mj0iNzEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjRDJEOEU0Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQzJDOUQ2Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9InAiIHgxPSIzOSIgeDI9IjM5IiB5MT0iNyIgeTI9IjcxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzlGQUNDNiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0UwRTNFQiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJxIiB4MT0iMzkiIHgyPSIzOSIgeTE9IjIiIHkyPSI3NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNGMkY0RjciLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNBM0FEQzIiLz48L2xpbmVhckdyYWRpZW50PjxyYWRpYWxHcmFkaWVudCBpZD0iYyIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFRyYW5zZm9ybT0icm90YXRlKC00MC4wNzcgMTA4LjU1NiA2NS40MTYpIHNjYWxlKDExOC40MzUpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agb2Zmc2V0PSIuMjc2IiBzdG9wLWNvbG9yPSIjMjBGRjREIi8+PHN0b3Agb2Zmc2V0PSIuNDY0IiBzdG9wLWNvbG9yPSIjMTQ5OUZGIi8+PHN0b3Agb2Zmc2V0PSIuNzU1IiBzdG9wLWNvbG9yPSIjRkY2RkM2Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQkM2N0ZGIi8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImQiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09InJvdGF0ZSg0NSAuMjY1IC0uNjQpIHNjYWxlKDk4LjExMTEpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0icmVkIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDBBM0ZGIi8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImgiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgwIC0yOS4zODg3IDU3LjQ4MzggMCAzOC45OTkgNjcpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3AvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1vcGFjaXR5PSIwIi8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9Im4iIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgtLjAwMTM1IC01Ljc1MDM4IDguNDI1NTcgLS4wMDE5OSAzOS4wMDIgNDQpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3AvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1vcGFjaXR5PSIwIi8+PC9yYWRpYWxHcmFkaWVudD48ZmlsdGVyIGlkPSJlIiB3aWR0aD0iNjgiIGhlaWdodD0iNjgiIHg9IjUiIHk9IjUiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPjxmZUdhdXNzaWFuQmx1ciByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMjEzOF80Nzg5NSIgc3RkRGV2aWF0aW9uPSIyIi8+PC9maWx0ZXI+PGZpbHRlciBpZD0iZiIgd2lkdGg9IjM4IiBoZWlnaHQ9IjM4IiB4PSIyMCIgeT0iMjEiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPjxmZUdhdXNzaWFuQmx1ciByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMjEzOF80Nzg5NSIgc3RkRGV2aWF0aW9uPSIxIi8+PC9maWx0ZXI+PGZpbHRlciBpZD0iayIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB4PSIzMS4wMDEiIHk9IjMyIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0ic2hhcGUiLz48ZmVHYXVzc2lhbkJsdXIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzIxMzhfNDc4OTUiIHN0ZERldmlhdGlvbj0iMSIvPjwvZmlsdGVyPjwvZGVmcz48L3N2Zz4=";export{N as default}; -//# sourceMappingURL=Browser-HN7O5MN7-DHqH2OSI.js.map diff --git a/apps/web/public/assets/Chrome-LGF33C3S-CKyHgdNL.js b/apps/web/public/assets/Chrome-LGF33C3S-CKyHgdNL.js deleted file mode 100644 index 62e563b9..00000000 --- a/apps/web/public/assets/Chrome-LGF33C3S-CKyHgdNL.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var I=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},M=new I.Error().stack;M&&(I._sentryDebugIds=I._sentryDebugIds||{},I._sentryDebugIds[M]="9ed40f5c-cc3f-44f9-91c8-3be94e7a6cc4",I._sentryDebugIdIdentifier="sentry-dbid-9ed40f5c-cc3f-44f9-91c8-3be94e7a6cc4")}catch{}})();var N="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA3OCA3OCI+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTcxLjAzNCAyMC41YTM3LjAwMSAzNy4wMDEgMCAwIDAtNjQuMDg0IDBsMi4yMiAzOS45Nkw3MS4wMzQgMjAuNVoiLz48cGF0aCBmaWxsPSJ1cmwoI2IpIiBkPSJNMjIuOTc5IDQ4LjI1IDYuOTU4IDIwLjVBMzcgMzcgMCAwIDAgMzkgNzZsMzYuMjYtMzctNTIuMjgxIDkuMjVaIi8+PHBhdGggZmlsbD0idXJsKCNjKSIgZD0iTTU1LjAyMSA0OC4yNSAzOSA3NmEzNy4wMDEgMzcuMDAxIDAgMCAwIDMyLjAzNS01NS41SDM5bDE2LjAyMSAyNy43NVoiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMzkgNTcuNWExOC41IDE4LjUgMCAxIDAgMC0zNyAxOC41IDE4LjUgMCAwIDAgMCAzN1oiLz48cGF0aCBmaWxsPSIjMUE3M0U4IiBkPSJNMzkgNTMuNjUyYTE0LjY1IDE0LjY1IDAgMCAwIDEzLjUzNi0yMC4yNkExNC42NTMgMTQuNjUzIDAgMSAwIDM5IDUzLjY1M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI2Ljk1OCIgeDI9IjcxLjAzNCIgeTE9IjI1LjEyNSIgeTI9IjI1LjEyNSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNEOTMwMjUiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFQTQzMzUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjQzLjAwMyIgeDI9IjEwLjk2MSIgeTE9IjczLjY4NCIgeTI9IjE4LjE4NCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMxRThFM0UiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzNEE4NTMiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYyIgeDE9IjMzLjU5OCIgeDI9IjY1LjY0IiB5MT0iNzYiIHkyPSIyMC41OTYiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjRkNDOTM0Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkJCQzA0Ii8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PC9zdmc+";export{N as default}; -//# sourceMappingURL=Chrome-LGF33C3S-CKyHgdNL.js.map diff --git a/apps/web/public/assets/Edge-K2JEGI5S-_s-lgiRS.js b/apps/web/public/assets/Edge-K2JEGI5S-_s-lgiRS.js deleted file mode 100644 index fe7ff340..00000000 --- a/apps/web/public/assets/Edge-K2JEGI5S-_s-lgiRS.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},I=new M.Error().stack;I&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[I]="db5c325d-f482-4cce-8926-d5e6ec8e8a4b",M._sentryDebugIdIdentifier="sentry-dbid-db5c325d-f482-4cce-8926-d5e6ec8e8a4b")}catch{}})();var j="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA3OCA3OCI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSJ1cmwoI2IpIiBkPSJNNjguODAyIDU3LjA2NmMtLjk5Mi41MTYtMi4wMTYuOTctMy4wNjQgMS4zNTlhMjkuNDU2IDI5LjQ1NiAwIDAgMS0xMC4zNzcgMS44NWMtMTMuNjczIDAtMjUuNTgyLTkuMzk1LTI1LjU4Mi0yMS40NzdhOS4xMDYgOS4xMDYgMCAwIDEgNC43NC03Ljg5MmMtMTIuMzcxLjUyLTE1LjU1MSAxMy40MTMtMTUuNTUxIDIwLjk1NyAwIDIxLjM5IDE5LjY4NSAyMy41MyAyMy45MzQgMjMuNTMgMi4yODQgMCA1LjcyNC0uNjY1IDcuODA1LTEuMzNsLjM3Ni0uMTE1YTM3LjA4OCAzNy4wODggMCAwIDAgMTkuMjUxLTE1LjI2MyAxLjE1NiAxLjE1NiAwIDAgMC0xLjUzMi0xLjYxOVoiLz48cGF0aCBmaWxsPSJ1cmwoI2MpIiBkPSJNNjguODAyIDU3LjA2NmMtLjk5Mi41MTYtMi4wMTYuOTctMy4wNjQgMS4zNTlhMjkuNDU2IDI5LjQ1NiAwIDAgMS0xMC4zNzcgMS44NWMtMTMuNjczIDAtMjUuNTgyLTkuMzk1LTI1LjU4Mi0yMS40NzdhOS4xMDYgOS4xMDYgMCAwIDEgNC43NC03Ljg5MmMtMTIuMzcxLjUyLTE1LjU1MSAxMy40MTMtMTUuNTUxIDIwLjk1NyAwIDIxLjM5IDE5LjY4NSAyMy41MyAyMy45MzQgMjMuNTMgMi4yODQgMCA1LjcyNC0uNjY1IDcuODA1LTEuMzNsLjM3Ni0uMTE1YTM3LjA4OCAzNy4wODggMCAwIDAgMTkuMjUxLTE1LjI2MyAxLjE1NiAxLjE1NiAwIDAgMC0xLjUzMi0xLjYxOVoiIG9wYWNpdHk9Ii4zNSIvPjxwYXRoIGZpbGw9InVybCgjZCkiIGQ9Ik0zMi41NTQgNzEuNzUxYTIyLjg5NCAyMi44OTQgMCAwIDEtNi41NjItNi4xNTcgMjMuMzI5IDIzLjMyOSAwIDAgMSA4LjUyNy0zNC42ODdjLjkyNS0uNDM0IDIuNDU4LTEuMTg2IDQuNTEtMS4xNTdhOS4zNjUgOS4zNjUgMCAwIDEgNy40MjkgMy43NTggOS4yMjIgOS4yMjIgMCAwIDEgMS44MiA1LjQwNmMwLS4wNTggNy4wODMtMjMuMDEtMjMuMTI0LTIzLjAxLTEyLjY5IDAtMjMuMTI1IDEyLjAyNS0yMy4xMjUgMjIuNjA1YTM3LjYzNiAzNy42MzYgMCAwIDAgMy40OTggMTYuMTg4IDM3IDM3IDAgMCAwIDQ1LjIwOSAxOS4zNjcgMjEuODI1IDIxLjgyNSAwIDAgMS0xOC4xNTMtMi4zMTNoLS4wM1oiLz48cGF0aCBmaWxsPSJ1cmwoI2UpIiBkPSJNMzIuNTU0IDcxLjc1MWEyMi44OTQgMjIuODk0IDAgMCAxLTYuNTYyLTYuMTU3IDIzLjMyOSAyMy4zMjkgMCAwIDEgOC41MjctMzQuNjg3Yy45MjUtLjQzNCAyLjQ1OC0xLjE4NiA0LjUxLTEuMTU3YTkuMzY1IDkuMzY1IDAgMCAxIDcuNDI5IDMuNzU4IDkuMjIyIDkuMjIyIDAgMCAxIDEuODIgNS40MDZjMC0uMDU4IDcuMDgzLTIzLjAxLTIzLjEyNC0yMy4wMS0xMi42OSAwLTIzLjEyNSAxMi4wMjUtMjMuMTI1IDIyLjYwNWEzNy42MzYgMzcuNjM2IDAgMCAwIDMuNDk4IDE2LjE4OCAzNyAzNyAwIDAgMCA0NS4yMDkgMTkuMzY3IDIxLjgyNSAyMS44MjUgMCAwIDEtMTguMTUzLTIuMzEzaC0uMDNaIiBvcGFjaXR5PSIuNDEiLz48cGF0aCBmaWxsPSJ1cmwoI2YpIiBkPSJNNDYuMDUzIDQ1LjAxM2MtLjI2LjI4OS0uOTgzLjcyMi0uOTgzIDEuNjE4IDAgLjc1Mi40OTIgMS41MDMgMS4zODggMi4xMSA0LjEzMyAyLjg5MSAxMS45NjcgMi40ODYgMTEuOTk2IDIuNDg2YTE3LjIyNyAxNy4yMjcgMCAwIDAgOC43NTktMi4zOTlBMTcuNzQ4IDE3Ljc0OCAwIDAgMCA3NiAzMy41MzdjLjA4Ny02LjQ3NS0yLjMxMy0xMC43ODItMy4yNjYtMTIuNjlDNjYuNTc3IDguODggNTMuMzY2IDIgMzkgMkEzNyAzNyAwIDAgMCAyIDM4LjQ4Yy4xNDUtMTAuNTUxIDEwLjYzNy0xOS4wNzggMjMuMTI1LTE5LjA3OCAxLjAxMiAwIDYuNzkzLjA4NiAxMi4xNCAyLjg5YTIwLjk4NiAyMC45ODYgMCAwIDEgOC45MzMgOC40N2MxLjc2MyAzLjA2NCAyLjA4IDYuOTY2IDIuMDggOC41MjcgMCAxLjU2MS0uNzggMy44NDUtMi4yNTQgNS43NTJsLjAzLS4wMjhaIi8+PHBhdGggZmlsbD0idXJsKCNnKSIgZD0iTTQ2LjA1MyA0NS4wMTNjLS4yNi4yODktLjk4My43MjItLjk4MyAxLjYxOCAwIC43NTIuNDkyIDEuNTAzIDEuMzg4IDIuMTEgNC4xMzMgMi44OTEgMTEuOTY3IDIuNDg2IDExLjk5NiAyLjQ4NmExNy4yMjcgMTcuMjI3IDAgMCAwIDguNzU5LTIuMzk5QTE3Ljc0OCAxNy43NDggMCAwIDAgNzYgMzMuNTM3Yy4wODctNi40NzUtMi4zMTMtMTAuNzgyLTMuMjY2LTEyLjY5QzY2LjU3NyA4Ljg4IDUzLjM2NiAyIDM5IDJBMzcgMzcgMCAwIDAgMiAzOC40OGMuMTQ1LTEwLjU1MSAxMC42MzctMTkuMDc4IDIzLjEyNS0xOS4wNzggMS4wMTIgMCA2Ljc5My4wODYgMTIuMTQgMi44OWEyMC45ODYgMjAuOTg2IDAgMCAxIDguOTMzIDguNDdjMS43NjMgMy4wNjQgMi4wOCA2Ljk2NiAyLjA4IDguNTI3IDAgMS41NjEtLjc4IDMuODQ1LTIuMjU0IDUuNzUybC4wMy0uMDI4WiIvPjwvZz48ZGVmcz48cmFkaWFsR3JhZGllbnQgaWQ9ImMiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgyNy41NzY2IDAgMCAyNi4xOTc3IDQ3LjQ0IDUzLjU1MykiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBvZmZzZXQ9Ii43IiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9Ii45IiBzdG9wLW9wYWNpdHk9Ii41Ii8+PHN0b3Agb2Zmc2V0PSIxIi8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImUiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCg2LjIwOTAyIC00MC45Nzk4IDMzLjEwNzU0IDUuMDE2MjcgMjIuMzk1IDU5LjUwNikiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBvZmZzZXQ9Ii44IiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9Ii45IiBzdG9wLW9wYWNpdHk9Ii41Ii8+PHN0b3Agb2Zmc2V0PSIxIi8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImYiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgtMi4zNDAyNCA1OC41MDYyMSAtMTI0LjYwNjM2IC00Ljk4NDIzIDkuNDg0IDE1LjY3NykiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjMzVDMUYxIi8+PHN0b3Agb2Zmc2V0PSIuMSIgc3RvcC1jb2xvcj0iIzM0QzFFRCIvPjxzdG9wIG9mZnNldD0iLjIiIHN0b3AtY29sb3I9IiMyRkMyREYiLz48c3RvcCBvZmZzZXQ9Ii4zIiBzdG9wLWNvbG9yPSIjMkJDM0QyIi8+PHN0b3Agb2Zmc2V0PSIuNyIgc3RvcC1jb2xvcj0iIzM2Qzc1MiIvPjwvcmFkaWFsR3JhZGllbnQ+PHJhZGlhbEdyYWRpZW50IGlkPSJnIiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VHJhbnNmb3JtPSJyb3RhdGUoNzMuNzQgMTkuNDY3IDU5Ljc2Nykgc2NhbGUoMjguMTI1OCAyMi44NzE5KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiM2NkVCNkUiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2NkVCNkUiIHN0b3Atb3BhY2l0eT0iMCIvPjwvcmFkaWFsR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJiIiB4MT0iMTguOTY4IiB4Mj0iNzAuNTM3IiB5MT0iNTMuMTY0IiB5Mj0iNTMuMTY0IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzBDNTlBNCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzExNEE4QiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJkIiB4MT0iNDYuMTQiIHgyPSIxMy45NjciIHkxPSIzMC43OTEiIHkyPSI2NS44NTQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjMUI5REUyIi8+PHN0b3Agb2Zmc2V0PSIuMiIgc3RvcC1jb2xvcj0iIzE1OTVERiIvPjxzdG9wIG9mZnNldD0iLjciIHN0b3AtY29sb3I9IiMwNjgwRDciLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDc4RDQiLz48L2xpbmVhckdyYWRpZW50PjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGg3NHY3NEgweiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMiAyKSIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==";export{j as default}; -//# sourceMappingURL=Edge-K2JEGI5S-_s-lgiRS.js.map diff --git a/apps/web/public/assets/Firefox-NP5SYEK5-7GCpd7vS.js b/apps/web/public/assets/Firefox-NP5SYEK5-7GCpd7vS.js deleted file mode 100644 index 6f84c610..00000000 --- a/apps/web/public/assets/Firefox-NP5SYEK5-7GCpd7vS.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},I=new M.Error().stack;I&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[I]="e30e0a2d-2752-4a57-9392-d837f1edeb9a",M._sentryDebugIdIdentifier="sentry-dbid-e30e0a2d-2752-4a57-9392-d837f1edeb9a")}catch{}})();var N="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA3OCA3OCI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSJ1cmwoI2IpIiBkPSJNNzIuMDQ5IDI2LjgyN2MtMS41NTktMy43NS00LjcyLTcuNzk4LTcuMTk1LTkuMDc4YTM3LjI2NCAzNy4yNjQgMCAwIDEgMy42MzIgMTAuODgzbC4wMDcuMDZjLTQuMDU1LTEwLjEwNS0xMC45MjktMTQuMTg2LTE2LjU0Ni0yMy4wNmE0My4zOSA0My4zOSAwIDAgMS0uODQ1LTEuMzczIDExLjMzNyAxMS4zMzcgMCAwIDEtLjM5NS0uNzQgNi41MjUgNi41MjUgMCAwIDEtLjUzNS0xLjQyLjA5Mi4wOTIgMCAwIDAtLjA4LS4wOTMuMTI4LjEyOCAwIDAgMC0uMDY5IDBjLS4wMDQgMC0uMDEyLjAwOC0uMDE3LjAxLS4wMDYuMDAyLS4wMTguMDEtLjAyNi4wMTRsLjAxNC0uMDI0QzQwLjk4NiA3LjI4IDM3LjkyNyAxNy4wNDIgMzcuNjUgMjEuOTI4YTE3Ljk0NCAxNy45NDQgMCAwIDAtOS44NzQgMy44MDRjLS4yOTUtLjI1LS42MDQtLjQ4NC0uOTI1LS43MDFhMTYuNjI5IDE2LjYyOSAwIDAgMS0uMS04Ljc2NiAyNi41NTggMjYuNTU4IDAgMCAwLTguNjM0IDYuNjcyaC0uMDE2Yy0xLjQyMS0xLjgwMi0xLjMyMi03Ljc0My0xLjI0LTguOTgzYTYuNDQgNi40NCAwIDAgMC0xLjE5Ny42MzUgMjYuMTE5IDI2LjExOSAwIDAgMC0zLjUwNiAzLjAwMyAzMS4zMTIgMzEuMzEyIDAgMCAwLTMuMzUyIDQuMDIzdi4wMDUtLjAwNmEzMC4yODcgMzAuMjg3IDAgMCAwLTQuODEyIDEwLjg2M2wtLjA0OC4yMzdhNTcuMDU4IDU3LjA1OCAwIDAgMC0uMzUzIDIuMjRjMCAuMDI2LS4wMDUuMDUxLS4wMDguMDc4YTM0LjE4MyAzNC4xODMgMCAwIDAtLjU4MiA0Ljk0NHYuMTg1YTM1Ljg2NyAzNS44NjcgMCAwIDAgNzEuMjA1IDYuMDY1Yy4wNi0uNDYzLjExLS45Mi4xNjMtMS4zODhhMzYuODgzIDM2Ljg4MyAwIDAgMC0yLjMyNi0xOC4wMTdsLjAwNC4wMDZaTTMwLjcxMyA1NC45MDJjLjE2OC4wOC4zMjUuMTY3LjQ5Ny4yNDRsLjAyNS4wMTZjLS4xNzQtLjA4My0uMzQ4LS4xNy0uNTIyLS4yNlptMzcuNzgtMjYuMnYtLjAzNGwuMDA3LjAzOC0uMDA3LS4wMDRaIi8+PHBhdGggZmlsbD0idXJsKCNjKSIgZD0iTTcyLjA1IDI2LjgyOGMtMS41NTgtMy43NS00LjcyLTcuNzk4LTcuMTk1LTkuMDc4YTM3LjI2MSAzNy4yNjEgMCAwIDEgMy42MzIgMTAuODgydi4wMzRsLjAwNy4wMzhhMzIuNDggMzIuNDggMCAwIDEtMS4xMTYgMjQuMjA3Yy00LjExIDguODItMTQuMDU2IDE3Ljg2LTI5LjYzIDE3LjQxNUMyMC45MjYgNjkuODUgNi4xMDEgNTcuMzYyIDMuMzM1IDQxLjAxMWMtLjUwNS0yLjU3OSAwLTMuODg2LjI1My01Ljk4MmEyNi43MjMgMjYuNzIzIDAgMCAwLS41NzYgNC45NDl2LjE4NWEzNS44NjcgMzUuODY3IDAgMCAwIDcxLjIwNSA2LjA2NWMuMDYtLjQ2My4xMS0uOTIxLjE2My0xLjM4OWEzNi44ODQgMzYuODg0IDAgMCAwLTIuMzI2LTE4LjAxNmwtLjAwNC4wMDVaIi8+PHBhdGggZmlsbD0idXJsKCNkKSIgZD0iTTcyLjA1IDI2LjgyOGMtMS41NTgtMy43NS00LjcyLTcuNzk4LTcuMTk1LTkuMDc4YTM3LjI2MSAzNy4yNjEgMCAwIDEgMy42MzIgMTAuODgydi4wMzRsLjAwNy4wMzhhMzIuNDggMzIuNDggMCAwIDEtMS4xMTYgMjQuMjA3Yy00LjExIDguODItMTQuMDU2IDE3Ljg2LTI5LjYzIDE3LjQxNUMyMC45MjYgNjkuODUgNi4xMDEgNTcuMzYyIDMuMzM1IDQxLjAxMWMtLjUwNS0yLjU3OSAwLTMuODg2LjI1My01Ljk4MmEyNi43MjMgMjYuNzIzIDAgMCAwLS41NzYgNC45NDl2LjE4NWEzNS44NjcgMzUuODY3IDAgMCAwIDcxLjIwNSA2LjA2NWMuMDYtLjQ2My4xMS0uOTIxLjE2My0xLjM4OWEzNi44ODQgMzYuODg0IDAgMCAwLTIuMzI2LTE4LjAxNmwtLjAwNC4wMDVaIi8+PHBhdGggZmlsbD0idXJsKCNlKSIgZD0iTTU0LjYxNSAzMS4wMzdjLjA3OC4wNTUuMTUuMTEuMjIzLjE2NGExOS41MjUgMTkuNTI1IDAgMCAwLTMuMzMtNC4zNDRjLTExLjE1MS0xMS4xNS0yLjkyMi0yNC4xNy0xLjUzNS0yNC44MzdsLjAxNC0uMDJDNDAuOTc4IDcuMjc0IDM3LjkyIDE3LjAzNyAzNy42NDMgMjEuOTIzYy40MTgtLjAyOS44MzItLjA2NCAxLjI2LS4wNjRhMTguMSAxOC4xIDAgMCAxIDE1LjcxMiA5LjE3NnYuMDAyWiIvPjxwYXRoIGZpbGw9InVybCgjZikiIGQ9Ik0zOC45MjMgMzMuMjY4Yy0uMDYuODkyLTMuMjExIDMuOTY5LTQuMzEzIDMuOTY5LTEwLjE5OCAwLTExLjg1NCA2LjE2OS0xMS44NTQgNi4xNjkuNDUxIDUuMTk1IDQuMDcxIDkuNDc2IDguNDQ3IDExLjczMy4yLjEwNC40MDMuMTk3LjYwNS4yOS4zNTIuMTU0LjcwMy4yOTggMS4wNTQuNDNhMTUuOTEgMTUuOTEgMCAwIDAgNC42NjYuOWMxNy44NzguODM5IDIxLjMzOS0yMS4zNzUgOC40MzgtMjcuODI1YTEyLjM4MSAxMi4zODEgMCAwIDEgOC42NDggMi4xQTE4LjEgMTguMSAwIDAgMCAzOC45IDIxLjg1N2MtLjQyNSAwLS44NDIuMDM2LTEuMjYuMDY0YTE3Ljk0MyAxNy45NDMgMCAwIDAtOS44NzMgMy44MDRjLjU0Ni40NjMgMS4xNjQgMS4wODEgMi40NjQgMi4zNjMgMi40MzMgMi4zOTcgOC42NzUgNC44ODEgOC42ODkgNS4xNzJsLjAwMi4wMDhaIi8+PHBhdGggZmlsbD0idXJsKCNnKSIgZD0iTTM4LjkyMyAzMy4yNjhjLS4wNi44OTItMy4yMTEgMy45NjktNC4zMTMgMy45NjktMTAuMTk4IDAtMTEuODU0IDYuMTY5LTExLjg1NCA2LjE2OS40NTEgNS4xOTUgNC4wNzEgOS40NzYgOC40NDcgMTEuNzMzLjIuMTA0LjQwMy4xOTcuNjA1LjI5LjM1Mi4xNTQuNzAzLjI5OCAxLjA1NC40M2ExNS45MSAxNS45MSAwIDAgMCA0LjY2Ni45YzE3Ljg3OC44MzkgMjEuMzM5LTIxLjM3NSA4LjQzOC0yNy44MjVhMTIuMzgxIDEyLjM4MSAwIDAgMSA4LjY0OCAyLjFBMTguMSAxOC4xIDAgMCAwIDM4LjkgMjEuODU3Yy0uNDI1IDAtLjg0Mi4wMzYtMS4yNi4wNjRhMTcuOTQzIDE3Ljk0MyAwIDAgMC05Ljg3MyAzLjgwNGMuNTQ2LjQ2MyAxLjE2NCAxLjA4MSAyLjQ2NCAyLjM2MyAyLjQzMyAyLjM5NyA4LjY3NSA0Ljg4MSA4LjY4OSA1LjE3MmwuMDAyLjAwOFoiLz48cGF0aCBmaWxsPSJ1cmwoI2gpIiBkPSJNMjYuMDk3IDI0LjU0MmMuMjkuMTg1LjUzLjM0Ni43NC40OTFhMTYuNjI4IDE2LjYyOCAwIDAgMS0uMS04Ljc2NSAyNi41NTcgMjYuNTU3IDAgMCAwLTguNjMzIDYuNjcxYy4xNzQtLjAwNCA1LjM3Ny0uMDk4IDcuOTkzIDEuNjAzWiIvPjxwYXRoIGZpbGw9InVybCgjaSkiIGQ9Ik0zLjMyNyA0MS4wMTNjMi43NjggMTYuMzUgMTcuNTkgMjguODQzIDM0LjQxNCAyOS4zMTUgMTUuNTczLjQ0IDI1LjUyLTguNiAyOS42My0xNy40MTVhMzIuNDggMzIuNDggMCAwIDAgMS4xMTUtMjQuMjA3di0uMDM0YzAtLjAyNy0uMDA1LS4wNDMgMC0uMDM1bC4wMDcuMDZjMS4yNzIgOC4zMDctMi45NTMgMTYuMzUxLTkuNTYgMjEuODAybC0uMDIuMDQ2Yy0xMi44NzEgMTAuNDg0LTI1LjE4OCA2LjMyNC0yNy42NzcgNC42MjctLjE3NC0uMDg0LS4zNDgtLjE3LS41MjItLjI2LTcuNTAzLTMuNTg3LTEwLjYwNC0xMC40Mi05LjkzOC0xNi4yODZhOS4yMSA5LjIxIDAgMCAxLTguNDk1LTUuMzQ0IDEzLjUyOCAxMy41MjggMCAwIDEgMTMuMTg2LS41MyAxNy44NiAxNy44NiAwIDAgMCAxMy40NjQuNTNjLS4wMTQtLjI5Mi02LjI1Ni0yLjc3Ni04LjY5LTUuMTczLTEuMy0xLjI4Mi0xLjkxNy0xLjg5OS0yLjQ2NC0yLjM2My0uMjk1LS4yNS0uNjA0LS40ODQtLjkyNS0uNy0uMjEzLS4xNDYtLjQ1My0uMzAzLS43NC0uNDkyLTIuNjE2LTEuNzAxLTcuODE4LTEuNjA4LTcuOTktMS42MDNoLS4wMTdjLTEuNDIyLTEuODAyLTEuMzIyLTcuNzQyLTEuMjQtOC45ODMtLjQyLjE2OS0uODIyLjM4Mi0xLjE5OC42MzZhMjYuMTA1IDI2LjEwNSAwIDAgMC0zLjUwNSAzLjAwMiAzMS4zMTUgMzEuMzE1IDAgMCAwLTMuMzY2IDQuMDEzdi4wMDYtLjAwNmEzMC4yODcgMzAuMjg3IDAgMCAwLTQuODEyIDEwLjg2M2MtLjAxOC4wNzMtMS4yOTIgNS42NDQtLjY2NCA4LjUzM2wuMDA3LS4wMDJaIi8+PHBhdGggZmlsbD0idXJsKCNqKSIgZD0iTTUxLjUwNyAyNi44NTVhMTkuNTI3IDE5LjUyNyAwIDAgMSAzLjMzIDQuMzQ5Yy4xOTguMTQ5LjM4Mi4yOTcuNTM4LjQ0IDguMTMyIDcuNDk2IDMuODcxIDE4LjA5IDMuNTU0IDE4Ljg0IDYuNjA1LTUuNDQyIDEwLjgyNi0xMy40OTEgOS41NTktMjEuOEM2NC40MyAxOC41NjggNTcuNTUgMTQuNDg3IDUxLjk0MiA1LjYxM2E0My40MDEgNDMuNDAxIDAgMCAxLS44NDQtMS4zNzMgMTEuMjkgMTEuMjkgMCAwIDEtLjM5Ni0uNzQgNi41MjUgNi41MjUgMCAwIDEtLjUzNC0xLjQyLjA5My4wOTMgMCAwIDAtLjA4Mi0uMDkzLjEyNy4xMjcgMCAwIDAtLjA2NyAwYy0uMDA1IDAtLjAxMi4wMDgtLjAxOC4wMWwtLjAyNi4wMTRjLTEuMzg3LjY1OC05LjYxNCAxMy42ODYgMS41MzYgMjQuODI3bC0uMDA0LjAxNloiLz48cGF0aCBmaWxsPSJ1cmwoI2spIiBkPSJNNTUuMzc1IDMxLjY1YTcuNDk1IDcuNDk1IDAgMCAwLS41MzgtLjQ0MWMtLjA3My0uMDU1LS4xNDUtLjExLS4yMjMtLjE2NGExMi4zODIgMTIuMzgyIDAgMCAwLTguNjQ3LTIuMWMxMi45IDYuNDUgOS40MzkgMjguNjU4LTguNDM4IDI3LjgyNWExNS45NSAxNS45NSAwIDAgMS00LjY2Ny0uOSAxOC44ODUgMTguODg1IDAgMCAxLTEuMDUzLS40MzEgMTMuMjQ4IDEzLjI0OCAwIDAgMS0uNjA1LS4yODlsLjAyNS4wMTZjMi40OTMgMS43MDIgMTQuODA2IDUuODYgMjcuNjc3LTQuNjI3bC4wMi0uMDQ2Yy4zMjItLjc1IDQuNTgyLTExLjM0NS0zLjU1My0xOC44NGwuMDAyLS4wMDRaIi8+PHBhdGggZmlsbD0idXJsKCNsKSIgZD0iTTIyLjc1NiA0My40czEuNjU1LTYuMTcgMTEuODUzLTYuMTdjMS4xMDIgMCA0LjI1Ny0zLjA3NiA0LjMxMy0zLjk2OGExNy44NiAxNy44NiAwIDAgMS0xMy40NjMtLjUzIDEzLjUyOSAxMy41MjkgMCAwIDAtMTMuMTg2LjUzIDkuMjEgOS4yMSAwIDAgMCA4LjQ5NSA1LjM0NGMtLjY2NCA1Ljg2NCAyLjQzNiAxMi42OTYgOS45MzggMTYuMjg2LjE2OC4wOC4zMjUuMTY3LjQ5Ny4yNDQtNC4zOC0yLjI2Mi03Ljk5Ni02LjU0MS04LjQ0Ny0xMS43MzNWNDMuNFoiLz48cGF0aCBmaWxsPSJ1cmwoI20pIiBkPSJNNzIuMDQ5IDI2LjgyN2MtMS41NTktMy43NS00LjcyLTcuNzk4LTcuMTk1LTkuMDc4YTM3LjI2MSAzNy4yNjEgMCAwIDEgMy42MzIgMTAuODgzbC4wMDcuMDZjLTQuMDU1LTEwLjEwNS0xMC45MjktMTQuMTg2LTE2LjU0Ni0yMy4wNmE0My4zOSA0My4zOSAwIDAgMS0uODQ0LTEuMzczIDExLjMzNyAxMS4zMzcgMCAwIDEtLjM5Ni0uNzQgNi41MjUgNi41MjUgMCAwIDEtLjUzNC0xLjQyLjA5Mi4wOTIgMCAwIDAtLjA4Mi0uMDkzLjEyOC4xMjggMCAwIDAtLjA2NyAwYy0uMDA1IDAtLjAxMi4wMDgtLjAxOC4wMWwtLjAyNi4wMTQuMDE0LS4wMjRDNDAuOTg2IDcuMjggMzcuOTI4IDE3LjA0MiAzNy42NSAyMS45MjhjLjQxOC0uMDI4LjgzMy0uMDY0IDEuMjYtLjA2NGExOC4xIDE4LjEgMCAwIDEgMTUuNzEzIDkuMTc3IDEyLjM4IDEyLjM4IDAgMCAwLTguNjQ4LTIuMWMxMi45IDYuNDUgOS40MzkgMjguNjU4LTguNDM4IDI3LjgyNmExNS45NTIgMTUuOTUyIDAgMCAxLTQuNjY2LS45IDE4LjkzMyAxOC45MzMgMCAwIDEtMS4wNTQtLjQzMmMtLjIwMi0uMDkzLS40MDUtLjE4NS0uNjA1LS4yODlsLjAyNS4wMTZhMTkuMDQgMTkuMDQgMCAwIDEtLjUyMi0uMjZjLjE2OC4wOC4zMjUuMTY3LjQ5Ny4yNDQtNC4zOC0yLjI2My03Ljk5Ni02LjU0Mi04LjQ0Ny0xMS43MzMgMCAwIDEuNjU1LTYuMTcgMTEuODUzLTYuMTcgMS4xMDIgMCA0LjI1Ny0zLjA3NiA0LjMxMy0zLjk2OC0uMDEzLS4yOTItNi4yNTUtMi43NzYtOC42ODgtNS4xNzMtMS4zLTEuMjgxLTEuOTE4LTEuODk5LTIuNDY1LTIuMzYyLS4yOTUtLjI1LS42MDQtLjQ4NS0uOTI1LS43MDJhMTYuNjI4IDE2LjYyOCAwIDAgMS0uMS04Ljc2NSAyNi41NTcgMjYuNTU3IDAgMCAwLTguNjM0IDYuNjcxaC0uMDE2Yy0xLjQyMi0xLjgwMS0xLjMyMi03Ljc0Mi0xLjI0LTguOTgzLS40Mi4xNjktLjgyMi4zODItMS4xOTcuNjM2YTI2LjExMiAyNi4xMTIgMCAwIDAtMy41MDYgMy4wMDIgMzEuMzA0IDMxLjMwNCAwIDAgMC0zLjM1MiA0LjAyM3YuMDA2LS4wMDdhMzAuMjg3IDMwLjI4NyAwIDAgMC00LjgxMiAxMC44NjRsLS4wNDguMjM2Yy0uMDY4LjMxNi0uMzcgMS45MTktLjQxNCAyLjI2M2E0MS43MjQgNDEuNzI0IDAgMCAwLS41MyA1di4xODVhMzUuODY2IDM1Ljg2NiAwIDAgMCA3MS4yMDYgNi4wNjRjLjA2LS40NjIuMTEtLjkyLjE2My0xLjM4OGEzNi44ODUgMzYuODg1IDAgMCAwLTIuMzI2LTE4LjAxNmwuMDAyLS4wMDJabS0zLjU1OCAxLjg0Mi4wMDYuMDM4LS4wMDYtLjAzOFoiLz48L2c+PGRlZnM+PHJhZGlhbEdyYWRpZW50IGlkPSJjIiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoNjQuOTk5IDEwLjMyOSkgc2NhbGUoNzQuNzY4KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iLjEyOSIgc3RvcC1jb2xvcj0iI0ZGQkQ0RiIvPjxzdG9wIG9mZnNldD0iLjE4NiIgc3RvcC1jb2xvcj0iI0ZGQUMzMSIvPjxzdG9wIG9mZnNldD0iLjI0NyIgc3RvcC1jb2xvcj0iI0ZGOUQxNyIvPjxzdG9wIG9mZnNldD0iLjI4MyIgc3RvcC1jb2xvcj0iI0ZGOTgwRSIvPjxzdG9wIG9mZnNldD0iLjQwMyIgc3RvcC1jb2xvcj0iI0ZGNTYzQiIvPjxzdG9wIG9mZnNldD0iLjQ2NyIgc3RvcC1jb2xvcj0iI0ZGMzc1MCIvPjxzdG9wIG9mZnNldD0iLjcxIiBzdG9wLWNvbG9yPSIjRjUxNTZDIi8+PHN0b3Agb2Zmc2V0PSIuNzgyIiBzdG9wLWNvbG9yPSIjRUIwODc4Ii8+PHN0b3Agb2Zmc2V0PSIuODYiIHN0b3AtY29sb3I9IiNFNTAwODAiLz48L3JhZGlhbEdyYWRpZW50PjxyYWRpYWxHcmFkaWVudCBpZD0iZCIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDM3LjIzOSA0MC44NjUpIHNjYWxlKDc0Ljc2OCkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBvZmZzZXQ9Ii4zIiBzdG9wLWNvbG9yPSIjOTYwRTE4Ii8+PHN0b3Agb2Zmc2V0PSIuMzUxIiBzdG9wLWNvbG9yPSIjQjExOTI3IiBzdG9wLW9wYWNpdHk9Ii43NCIvPjxzdG9wIG9mZnNldD0iLjQzNSIgc3RvcC1jb2xvcj0iI0RCMjkzRCIgc3RvcC1vcGFjaXR5PSIuMzQzIi8+PHN0b3Agb2Zmc2V0PSIuNDk3IiBzdG9wLWNvbG9yPSIjRjUzMzRCIiBzdG9wLW9wYWNpdHk9Ii4wOTQiLz48c3RvcCBvZmZzZXQ9Ii41MyIgc3RvcC1jb2xvcj0iI0ZGMzc1MCIgc3RvcC1vcGFjaXR5PSIwIi8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImUiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSg0Ni40OSAtNi4zMjgpIHNjYWxlKDU0LjE2MDYpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agb2Zmc2V0PSIuMTMyIiBzdG9wLWNvbG9yPSIjRkZGNDRGIi8+PHN0b3Agb2Zmc2V0PSIuMjUyIiBzdG9wLWNvbG9yPSIjRkZEQzNFIi8+PHN0b3Agb2Zmc2V0PSIuNTA2IiBzdG9wLWNvbG9yPSIjRkY5RDEyIi8+PHN0b3Agb2Zmc2V0PSIuNTI2IiBzdG9wLWNvbG9yPSIjRkY5ODBFIi8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImYiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSgyOC45MSA2MC4yOTcpIHNjYWxlKDM1LjU5ODEpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agb2Zmc2V0PSIuMzUzIiBzdG9wLWNvbG9yPSIjM0E4RUU2Ii8+PHN0b3Agb2Zmc2V0PSIuNDcyIiBzdG9wLWNvbG9yPSIjNUM3OUYwIi8+PHN0b3Agb2Zmc2V0PSIuNjY5IiBzdG9wLWNvbG9yPSIjOTA1OUZGIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQzEzOUU2Ii8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImciIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxOC4zNDg1MiAtNC40MzYyNiA1LjE5Mzc0IDIxLjQ4MTQ1IDQwLjg1NiAzNC40NDgpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agb2Zmc2V0PSIuMjA2IiBzdG9wLWNvbG9yPSIjOTA1OUZGIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9Ii4yNzgiIHN0b3AtY29sb3I9IiM4QzRGRjMiIHN0b3Atb3BhY2l0eT0iLjA2NCIvPjxzdG9wIG9mZnNldD0iLjc0NyIgc3RvcC1jb2xvcj0iIzc3MTZBOCIgc3RvcC1vcGFjaXR5PSIuNDUiLz48c3RvcCBvZmZzZXQ9Ii45NzUiIHN0b3AtY29sb3I9IiM2RTAwOEIiIHN0b3Atb3BhY2l0eT0iLjYiLz48L3JhZGlhbEdyYWRpZW50PjxyYWRpYWxHcmFkaWVudCBpZD0iaCIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDM2LjMxMyA3LjU1Mykgc2NhbGUoMjUuNjEzNikiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZFMjI2Ii8+PHN0b3Agb2Zmc2V0PSIuMTIxIiBzdG9wLWNvbG9yPSIjRkZEQjI3Ii8+PHN0b3Agb2Zmc2V0PSIuMjk1IiBzdG9wLWNvbG9yPSIjRkZDODJBIi8+PHN0b3Agb2Zmc2V0PSIuNTAyIiBzdG9wLWNvbG9yPSIjRkZBOTMwIi8+PHN0b3Agb2Zmc2V0PSIuNzMyIiBzdG9wLWNvbG9yPSIjRkY3RTM3Ii8+PHN0b3Agb2Zmc2V0PSIuNzkyIiBzdG9wLWNvbG9yPSIjRkY3MTM5Ii8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImkiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSg1Ni42NyAtOS4xMDQpIHNjYWxlKDEwOS4yODMpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agb2Zmc2V0PSIuMTEzIiBzdG9wLWNvbG9yPSIjRkZGNDRGIi8+PHN0b3Agb2Zmc2V0PSIuNDU2IiBzdG9wLWNvbG9yPSIjRkY5ODBFIi8+PHN0b3Agb2Zmc2V0PSIuNjIyIiBzdG9wLWNvbG9yPSIjRkY1NjM0Ii8+PHN0b3Agb2Zmc2V0PSIuNzE2IiBzdG9wLWNvbG9yPSIjRkYzNjQ3Ii8+PHN0b3Agb2Zmc2V0PSIuOTA0IiBzdG9wLWNvbG9yPSIjRTMxNTg3Ii8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImoiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09InJvdGF0ZSg4My45NzYgMjUuNDg1IDI0LjkxNCkgc2NhbGUoODAuMDg0NSA1Mi41NTg4KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNGRkY0NEYiLz48c3RvcCBvZmZzZXQ9Ii4wNiIgc3RvcC1jb2xvcj0iI0ZGRTg0NyIvPjxzdG9wIG9mZnNldD0iLjE2OCIgc3RvcC1jb2xvcj0iI0ZGQzgzMCIvPjxzdG9wIG9mZnNldD0iLjMwNCIgc3RvcC1jb2xvcj0iI0ZGOTgwRSIvPjxzdG9wIG9mZnNldD0iLjM1NiIgc3RvcC1jb2xvcj0iI0ZGOEIxNiIvPjxzdG9wIG9mZnNldD0iLjQ1NSIgc3RvcC1jb2xvcj0iI0ZGNjcyQSIvPjxzdG9wIG9mZnNldD0iLjU3IiBzdG9wLWNvbG9yPSIjRkYzNjQ3Ii8+PHN0b3Agb2Zmc2V0PSIuNzM3IiBzdG9wLWNvbG9yPSIjRTMxNTg3Ii8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImsiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSgzNi4zMTMgMTYuODA3KSBzY2FsZSg2OC4yMTY2KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iLjEzNyIgc3RvcC1jb2xvcj0iI0ZGRjQ0RiIvPjxzdG9wIG9mZnNldD0iLjQ4IiBzdG9wLWNvbG9yPSIjRkY5ODBFIi8+PHN0b3Agb2Zmc2V0PSIuNTkyIiBzdG9wLWNvbG9yPSIjRkY1NjM0Ii8+PHN0b3Agb2Zmc2V0PSIuNjU1IiBzdG9wLWNvbG9yPSIjRkYzNjQ3Ii8+PHN0b3Agb2Zmc2V0PSIuOTA0IiBzdG9wLWNvbG9yPSIjRTMxNTg3Ii8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImwiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSg1My44OTQgMjAuNTA3KSBzY2FsZSg3NC42NjYyKSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iLjA5NCIgc3RvcC1jb2xvcj0iI0ZGRjQ0RiIvPjxzdG9wIG9mZnNldD0iLjIzMSIgc3RvcC1jb2xvcj0iI0ZGRTE0MSIvPjxzdG9wIG9mZnNldD0iLjUwOSIgc3RvcC1jb2xvcj0iI0ZGQUYxRSIvPjxzdG9wIG9mZnNldD0iLjYyNiIgc3RvcC1jb2xvcj0iI0ZGOTgwRSIvPjwvcmFkaWFsR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJiIiB4MT0iNjcuMzAyIiB4Mj0iNy43NjIiIHkxPSIxMy40NjEiIHkyPSI3MC45MDciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBvZmZzZXQ9Ii4wNDgiIHN0b3AtY29sb3I9IiNGRkY0NEYiLz48c3RvcCBvZmZzZXQ9Ii4xMTEiIHN0b3AtY29sb3I9IiNGRkU4NDciLz48c3RvcCBvZmZzZXQ9Ii4yMjUiIHN0b3AtY29sb3I9IiNGRkM4MzAiLz48c3RvcCBvZmZzZXQ9Ii4zNjgiIHN0b3AtY29sb3I9IiNGRjk4MEUiLz48c3RvcCBvZmZzZXQ9Ii40MDEiIHN0b3AtY29sb3I9IiNGRjhCMTYiLz48c3RvcCBvZmZzZXQ9Ii40NjIiIHN0b3AtY29sb3I9IiNGRjY3MkEiLz48c3RvcCBvZmZzZXQ9Ii41MzQiIHN0b3AtY29sb3I9IiNGRjM2NDciLz48c3RvcCBvZmZzZXQ9Ii43MDUiIHN0b3AtY29sb3I9IiNFMzE1ODciLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0ibSIgeDE9IjY2LjU4IiB4Mj0iMTUuOTI2IiB5MT0iMTMuMTU2IiB5Mj0iNjMuODE5IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agb2Zmc2V0PSIuMTY3IiBzdG9wLWNvbG9yPSIjRkZGNDRGIiBzdG9wLW9wYWNpdHk9Ii44Ii8+PHN0b3Agb2Zmc2V0PSIuMjY2IiBzdG9wLWNvbG9yPSIjRkZGNDRGIiBzdG9wLW9wYWNpdHk9Ii42MzQiLz48c3RvcCBvZmZzZXQ9Ii40ODkiIHN0b3AtY29sb3I9IiNGRkY0NEYiIHN0b3Atb3BhY2l0eT0iLjIxNyIvPjxzdG9wIG9mZnNldD0iLjYiIHN0b3AtY29sb3I9IiNGRkY0NEYiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDcxLjY0djc0SDB6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzIDIpIi8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+";export{N as default}; -//# sourceMappingURL=Firefox-NP5SYEK5-7GCpd7vS.js.map diff --git a/apps/web/public/assets/Linux-NS2LQPT4-BSWfZXoy.js b/apps/web/public/assets/Linux-NS2LQPT4-BSWfZXoy.js deleted file mode 100644 index b448f681..00000000 --- a/apps/web/public/assets/Linux-NS2LQPT4-BSWfZXoy.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},j=new M.Error().stack;j&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[j]="13664868-5d43-4e23-8ac1-0bdb2d1a0443",M._sentryDebugIdIdentifier="sentry-dbid-13664868-5d43-4e23-8ac1-0bdb2d1a0443")}catch{}})();var N="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAyMDIwNCIgZD0iTTIzLjgwMyAwYy0xLjEyNSAwLTIuMjU0LjIyMS0zLjI3NC43NzJhNi4wMjUgNi4wMjUgMCAwIDAtMi41MTggMi42MmMtLjU0NyAxLjEwMi0uNzYxIDIuMjgtLjc5NSAzLjU3Ny0uMDYyIDIuNDY0LjA1NiA1LjA0OC4yNDIgNy4zOS4wNDkuNzEyLjEzOSAxLjEyOS4wNDcgMS44NjItLjMwNCAxLjU1Ni0xLjY2NSAyLjYwMi0yLjM5MiAzLjk2OS0uODAxIDEuNTA4LTEuMTM5IDMuMjEyLTEuNzQyIDQuODEtLjU1MyAxLjQ2LTEuMzMgMi44My0xLjg1MyA0LjMwMi0uNzMzIDIuMDU3LS45NTIgNC4zMTktLjQ2OSA2LjQ0OS4zNyAxLjYyMyAxLjE0IDMuMTQ2IDIuMTggNC40NDktLjE1LjI3LS4yOTcuNTQ2LS40NS44MTQtLjQ4My44My0xLjA3MiAxLjYyLTEuMzQ1IDIuNTQtLjEzNy40Ni0uMTkxLjk1MS0uMTAzIDEuNDIzLjA4OC40NzMuMzI4LjkyNS43MDMgMS4yMjUuMjQ1LjE5NS41NDMuMzIyLjg1LjM5NC4zMDUuMDY5LjYyMi4wODYuOTM3LjA4IDEuMTk0LS4wMjYgMi4zNTMtLjM4OCAzLjUwOC0uNjkyYTQxLjg1IDQxLjg1IDAgMCAxIDIuMDY4LS40ODNjMi40NjQtLjUwNSA1LjIxMi0uMzAyIDcuNDk4LjAyOC43NzQuMTE4IDEuNTQzLjI3IDIuMzA0LjQ1NSAxLjE5My4yOSAyLjM4LjY1NyAzLjYwNi42OTIuMzIyLjAxLjY0OS0uMDA1Ljk2NC0uMDc1LjMxNS0uMDcxLjYyLS4xOTguODcyLS40LjM3Ny0uMy42MTctLjc1My43MDUtMS4yMjUuMDg4LS40NzMuMDMzLS45NjYtLjEwNS0xLjQyNy0uMjc4LS45MjMtLjg3Mi0xLjcwOC0xLjM2NC0yLjUzNS0uMTk1LS4zMjgtLjM3NS0uNjYyLS41NjgtLjk5IDEuNDgyLTEuNjYzIDIuNjc0LTMuNTg3IDMuMzY0LTUuNy43NTItMi4zMDYuODktNC43OS41NzQtNy4xOTYtLjMxNy0yLjQwNi0xLjA4LTQuNzM5LTIuMDgzLTYuOTQ3LTEuMjYtMi43NjgtMi4zMi0zLjc3LTMuMDg4LTYuMjAxLS44My0yLjYyOS0uMTQ1LTUuNzQtLjc2Mi04LjEyM2E4LjMzMyA4LjMzMyAwIDAgMC0xLjAyMS0yLjI5MyA3Ljg1NiA3Ljg1NiAwIDAgMC0xLjk5Ny0yLjE1QzI3LjAyNC40OSAyNS40MjYgMCAyMy44MDMgMFoiLz48cGF0aCBmaWxsPSIjRkRGREZCIiBkPSJNMTkuMzM3IDEzLjg3NWExLjkzOCAxLjkzOCAwIDAgMC0uMzQ1LjczYy0uMDY2LjI2Mi0uMDkuNTM0LS4xMDEuODA2LS4wMjEuNTQyLjAxMyAxLjA5My0uMTMyIDEuNjE2LS4xNTMuNTU5LS40OTcgMS4wNDQtLjgzMiAxLjUxNS0uNTgzLjgxNy0xLjE3MiAxLjY1Ny0xLjQ1OSAyLjYyYTQuNjUyIDQuNjUyIDAgMCAwLS4xNyAxLjgwMyAxOS4yMzMgMTkuMjMzIDAgMCAwLTEuNjg0IDMuMDM0Yy0uNzA5IDEuNjA3LTEuMTk1IDMuMzE3LTEuMzY1IDUuMDY0LS4yMSAyLjE0LjA2MyA0LjM0LjkxIDYuMzE3LjYwOCAxLjQzIDEuNTIgMi43MzcgMi42OTUgMy43NTguNTk3LjUxNyAxLjI2Ljk1OCAxLjk3IDEuMzA2IDIuNDU3IDEuMjEgNS40OTUgMS4yMTIgNy45MTItLjA3NyAxLjI2My0uNjczIDIuMzMtMS42NTcgMy4zNTgtMi42NTMuNjE4LS42IDEuMjM1LTEuMjE1IDEuNzA4LTEuOTM1LjkxLTEuMzg5IDEuMjI2LTMuMDc3IDEuNDIzLTQuNzI1LjM0My0yLjg4LjM1NC01LjkyNS0uOTEtOC41MzdhOS40MDYgOS40MDYgMCAwIDAtMS43MS0yLjQ0NiAxMy4zNSAxMy4zNSAwIDAgMC0xLjA4LTMuNjQyYy0uMzg0LS44MzQtLjg1LTEuNjI3LTEuMjA3LTIuNDctLjE0Ni0uMzQ4LS4yNzQtLjcwNC0uNDM1LTEuMDQzLS4xNjMtLjM0LS4zNjItLjY2Ni0uNjM2LS45MjdhMi41OTIgMi41OTIgMCAwIDAtLjk5LS41NzUgNC4yNDQgNC4yNDQgMCAwIDAtMS4xMzYtLjE5NWMtLjc3LS4wNC0xLjU0MS4wNjItMi4zMTIuMDMtLjYxMy0uMDI1LTEuMjI0LS4xMzItMS44MzctLjA5NmEyLjgyOSAyLjgyOSAwIDAgMC0uODk2LjE5IDEuNzkzIDEuNzkzIDAgMCAwLS43NC41MzJaIi8+PG1hc2sgaWQ9ImEiIHdpZHRoPSIyOCIgaGVpZ2h0PSI0NyIgeD0iMTAiIHk9IjAiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMjMuODAzIDBjLTEuMTI1IDAtMi4yNTQuMjIxLTMuMjc0Ljc3MmE2LjAyNSA2LjAyNSAwIDAgMC0yLjUxOCAyLjYyYy0uNTQ3IDEuMTAyLS43NjEgMi4yOC0uNzk1IDMuNTc3LS4wNjIgMi40NjQuMDU2IDUuMDQ4LjI0MiA3LjM5LjA0OS43MTIuMTM5IDEuMTI5LjA0NyAxLjg2Mi0uMzA0IDEuNTU2LTEuNjY1IDIuNjAyLTIuMzkyIDMuOTY5LS44MDEgMS41MDgtMS4xMzkgMy4yMTItMS43NDIgNC44MS0uNTUzIDEuNDYtMS4zMyAyLjgzLTEuODUzIDQuMzAyLS43MzMgMi4wNTctLjk1MiA0LjMxOS0uNDY5IDYuNDQ5LjM3IDEuNjIzIDEuMTQgMy4xNDYgMi4xOCA0LjQ0OS0uMTUuMjctLjI5Ny41NDYtLjQ1LjgxNC0uNDgzLjgzLTEuMDcyIDEuNjItMS4zNDUgMi41NC0uMTM3LjQ2LS4xOTEuOTUxLS4xMDMgMS40MjMuMDg4LjQ3My4zMjguOTI1LjcwMyAxLjIyNS4yNDUuMTk1LjU0My4zMjIuODUuMzk0LjMwNS4wNjkuNjIyLjA4Ni45MzcuMDggMS4xOTQtLjAyNiAyLjM1My0uMzg4IDMuNTA4LS42OTJhNDEuODUgNDEuODUgMCAwIDEgMi4wNjgtLjQ4M2MyLjQ2NC0uNTA1IDUuMjEyLS4zMDIgNy40OTguMDI4Ljc3NC4xMTggMS41NDMuMjcgMi4zMDQuNDU1IDEuMTkzLjI5IDIuMzguNjU3IDMuNjA2LjY5Mi4zMjIuMDEuNjQ5LS4wMDUuOTY0LS4wNzUuMzE1LS4wNzEuNjItLjE5OC44NzItLjQuMzc3LS4zLjYxNy0uNzUzLjcwNS0xLjIyNS4wODgtLjQ3My4wMzMtLjk2Ni0uMTA1LTEuNDI3LS4yNzgtLjkyMy0uODcyLTEuNzA4LTEuMzY0LTIuNTM1LS4xOTUtLjMyOC0uMzc1LS42NjItLjU2OC0uOTkgMS40ODItMS42NjMgMi42NzQtMy41ODcgMy4zNjQtNS43Ljc1Mi0yLjMwNi44OS00Ljc5LjU3NC03LjE5Ni0uMzE3LTIuNDA2LTEuMDgtNC43MzktMi4wODMtNi45NDctMS4yNi0yLjc2OC0yLjMyLTMuNzctMy4wODgtNi4yMDEtLjgzLTIuNjI5LS4xNDUtNS43NC0uNzYyLTguMTIzYTguMzMzIDguMzMzIDAgMCAwLTEuMDIxLTIuMjkzIDcuODU2IDcuODU2IDAgMCAwLTEuOTk3LTIuMTVDMjcuMDI0LjQ5IDI1LjQyNiAwIDIzLjgwMyAwWiIvPjwvbWFzaz48ZyBmaWx0ZXI9InVybCgjYikiIG1hc2s9InVybCgjYSkiIG9wYWNpdHk9Ii4yNSI+PHBhdGggZmlsbD0idXJsKCNjKSIgZD0iTTE2LjYyNiAyMS41OTZjLjE2My4yNDYtLjEwNCAxLjA5NSAzLjcyMy41NTIgMCAwLS42NzMuMDczLTEuMzM1LjIyNi0xLjAyOS4zNDUtMS45MjUuNzMtMi42MTkgMS4yNC0uNjg0LjUwNi0xLjE4NyAxLjE2NC0xLjgxNSAxLjcyOSAwIDAgMS4wMTgtMS44NiAxLjI3MS0yLjQyMS4yNTUtLjU2LS4wNDEtLjUzNS4xNi0xLjM2LjItLjgyNS42OTItMS42MTguNjkyLTEuNjE4cy0uNDAyIDEuMTY3LS4wNzcgMS42NTJaIi8+PC9nPjxtYXNrIGlkPSJkIiB3aWR0aD0iMjgiIGhlaWdodD0iNDciIHg9IjEwIiB5PSIwIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBzdHlsZT0ibWFzay10eXBlOmx1bWluYW5jZSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTIzLjgwMyAwYy0xLjEyNSAwLTIuMjU0LjIyMS0zLjI3NC43NzJhNi4wMjUgNi4wMjUgMCAwIDAtMi41MTggMi42MmMtLjU0NyAxLjEwMi0uNzYxIDIuMjgtLjc5NSAzLjU3Ny0uMDYyIDIuNDY0LjA1NiA1LjA0OC4yNDIgNy4zOS4wNDkuNzEyLjEzOSAxLjEyOS4wNDcgMS44NjItLjMwNCAxLjU1Ni0xLjY2NSAyLjYwMi0yLjM5MiAzLjk2OS0uODAxIDEuNTA4LTEuMTM5IDMuMjEyLTEuNzQyIDQuODEtLjU1MyAxLjQ2LTEuMzMgMi44My0xLjg1MyA0LjMwMi0uNzMzIDIuMDU3LS45NTIgNC4zMTktLjQ2OSA2LjQ0OS4zNyAxLjYyMyAxLjE0IDMuMTQ2IDIuMTggNC40NDktLjE1LjI3LS4yOTcuNTQ2LS40NS44MTQtLjQ4My44My0xLjA3MiAxLjYyLTEuMzQ1IDIuNTQtLjEzNy40Ni0uMTkxLjk1MS0uMTAzIDEuNDIzLjA4OC40NzMuMzI4LjkyNS43MDMgMS4yMjUuMjQ1LjE5NS41NDMuMzIyLjg1LjM5NC4zMDUuMDY5LjYyMi4wODYuOTM3LjA4IDEuMTk0LS4wMjYgMi4zNTMtLjM4OCAzLjUwOC0uNjkyYTQxLjg1IDQxLjg1IDAgMCAxIDIuMDY4LS40ODNjMi40NjQtLjUwNSA1LjIxMi0uMzAyIDcuNDk4LjAyOC43NzQuMTE4IDEuNTQzLjI3IDIuMzA0LjQ1NSAxLjE5My4yOSAyLjM4LjY1NyAzLjYwNi42OTIuMzIyLjAxLjY0OS0uMDA1Ljk2NC0uMDc1LjMxNS0uMDcxLjYyLS4xOTguODcyLS40LjM3Ny0uMy42MTctLjc1My43MDUtMS4yMjUuMDg4LS40NzMuMDMzLS45NjYtLjEwNS0xLjQyNy0uMjc4LS45MjMtLjg3Mi0xLjcwOC0xLjM2NC0yLjUzNS0uMTk1LS4zMjgtLjM3NS0uNjYyLS41NjgtLjk5IDEuNDgyLTEuNjYzIDIuNjc0LTMuNTg3IDMuMzY0LTUuNy43NTItMi4zMDYuODktNC43OS41NzQtNy4xOTYtLjMxNy0yLjQwNi0xLjA4LTQuNzM5LTIuMDgzLTYuOTQ3LTEuMjYtMi43NjgtMi4zMi0zLjc3LTMuMDg4LTYuMjAxLS44My0yLjYyOS0uMTQ1LTUuNzQtLjc2Mi04LjEyM2E4LjMzMyA4LjMzMyAwIDAgMC0xLjAyMS0yLjI5MyA3Ljg1NiA3Ljg1NiAwIDAgMC0xLjk5Ny0yLjE1QzI3LjAyNC40OSAyNS40MjYgMCAyMy44MDMgMFoiLz48L21hc2s+PGcgZmlsdGVyPSJ1cmwoI2UpIiBtYXNrPSJ1cmwoI2QpIiBvcGFjaXR5PSIuNDIiPjxwYXRoIGZpbGw9InVybCgjZikiIGQ9Ik0yOC45MjcgMjEuMzczYy0uNzguNTQ0LTEuMjM3LjQ4LTIuMTgyLjU4NS0uOTQ3LjEwNy0zLjUwNi4wNjgtMy41MDYuMDY4cy4zNy0uMDA2IDEuMTkyLjE0NmMuODIyLjE1NCAyLjQ5Ni4zIDMuNDM5LjY1OC45NDUuMzYgMS4yODguNDYzIDEuODYyLjgyNS44MTYuNTE2IDEuNDE2IDEuMzI0IDIuMTk1IDEuODkgMCAwIC4wMzgtLjc1LS4yNzctMS4zMS0uMzE1LS41NjEtMS4xNjItMS40NDQtMS40MTItMi4yNy0uMjQ3LS44MjQtLjM2Ny0yLjQ0NC0uMzY3LTIuNDQ0cy0uMTY1IDEuMzEtLjk0NCAxLjg1MloiLz48L2c+PG1hc2sgaWQ9ImciIHdpZHRoPSIyOCIgaGVpZ2h0PSI0NyIgeD0iMTAiIHk9IjAiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMjMuODAzIDBjLTEuMTI1IDAtMi4yNTQuMjIxLTMuMjc0Ljc3MmE2LjAyNSA2LjAyNSAwIDAgMC0yLjUxOCAyLjYyYy0uNTQ3IDEuMTAyLS43NjEgMi4yOC0uNzk1IDMuNTc3LS4wNjIgMi40NjQuMDU2IDUuMDQ4LjI0MiA3LjM5LjA0OS43MTIuMTM5IDEuMTI5LjA0NyAxLjg2Mi0uMzA0IDEuNTU2LTEuNjY1IDIuNjAyLTIuMzkyIDMuOTY5LS44MDEgMS41MDgtMS4xMzkgMy4yMTItMS43NDIgNC44MS0uNTUzIDEuNDYtMS4zMyAyLjgzLTEuODUzIDQuMzAyLS43MzMgMi4wNTctLjk1MiA0LjMxOS0uNDY5IDYuNDQ5LjM3IDEuNjIzIDEuMTQgMy4xNDYgMi4xOCA0LjQ0OS0uMTUuMjctLjI5Ny41NDYtLjQ1LjgxNC0uNDgzLjgzLTEuMDcyIDEuNjItMS4zNDUgMi41NC0uMTM3LjQ2LS4xOTEuOTUxLS4xMDMgMS40MjMuMDg4LjQ3My4zMjguOTI1LjcwMyAxLjIyNS4yNDUuMTk1LjU0My4zMjIuODUuMzk0LjMwNS4wNjkuNjIyLjA4Ni45MzcuMDggMS4xOTQtLjAyNiAyLjM1My0uMzg4IDMuNTA4LS42OTJhNDEuODUgNDEuODUgMCAwIDEgMi4wNjgtLjQ4M2MyLjQ2NC0uNTA1IDUuMjEyLS4zMDIgNy40OTguMDI4Ljc3NC4xMTggMS41NDMuMjcgMi4zMDQuNDU1IDEuMTkzLjI5IDIuMzguNjU3IDMuNjA2LjY5Mi4zMjIuMDEuNjQ5LS4wMDUuOTY0LS4wNzUuMzE1LS4wNzEuNjItLjE5OC44NzItLjQuMzc3LS4zLjYxNy0uNzUzLjcwNS0xLjIyNS4wODgtLjQ3My4wMzMtLjk2Ni0uMTA1LTEuNDI3LS4yNzgtLjkyMy0uODcyLTEuNzA4LTEuMzY0LTIuNTM1LS4xOTUtLjMyOC0uMzc1LS42NjItLjU2OC0uOTkgMS40ODItMS42NjMgMi42NzQtMy41ODcgMy4zNjQtNS43Ljc1Mi0yLjMwNi44OS00Ljc5LjU3NC03LjE5Ni0uMzE3LTIuNDA2LTEuMDgtNC43MzktMi4wODMtNi45NDctMS4yNi0yLjc2OC0yLjMyLTMuNzctMy4wODgtNi4yMDEtLjgzLTIuNjI5LS4xNDUtNS43NC0uNzYyLTguMTIzYTguMzMzIDguMzMzIDAgMCAwLTEuMDIxLTIuMjkzIDcuODU2IDcuODU2IDAgMCAwLTEuOTk3LTIuMTVDMjcuMDI0LjQ5IDI1LjQyNiAwIDIzLjgwMyAwWiIvPjwvbWFzaz48ZyBmaWx0ZXI9InVybCgjaCkiIG1hc2s9InVybCgjZykiIG9wYWNpdHk9Ii4yIj48cGF0aCBmaWxsPSJ1cmwoI2kpIiBkPSJNMjEuNTk0IDIwLjIxNGMtLjAzLjIzNS0uMDY3LjQ3LS4xMTIuNzAyYTIuMDg1IDIuMDg1IDAgMCAxLS4wOS4zMzcuNzYzLjc2MyAwIDAgMS0uMTkxLjI5Yy0uMDc3LjA3LS4xNy4xMTctLjI2My4xNmE0LjAyIDQuMDIgMCAwIDEtMS4xNDcuMzI2Yy4xNTcuMDEyLjMxNS4wMjcuNDc0LjA0NC4xLjAxLjE5OS4wMjIuMjk0LjA0NmEuODM3LjgzNyAwIDAgMSAuMjc0LjEyMi43NTguNzU4IDAgMCAxIC4yMS4yNTJjLjEwMy4xOS4xMzcuNDEyLjE1Ni42MzEuMDI0LjI3OC4wMjYuNTYuMDA1LjgzNy4wMi0uMTg2LjA1OC0uMzcyLjExNy0uNTQ4LjEwNi0uMzIyLjI3NS0uNjIyLjUwNC0uODcyYTEuNjYgMS42NiAwIDAgMSAxLjQ3LS41NSAxLjgyMiAxLjgyMiAwIDAgMS0xLjE2My0uMzYxIDEuNTA4IDEuNTA4IDAgMCAxLS40MTYtLjQ2OSAxLjMxIDEuMzEgMCAwIDEtLjEyMi0uOTQ3WiIvPjwvZz48bWFzayBpZD0iaiIgd2lkdGg9IjI4IiBoZWlnaHQ9IjQ3IiB4PSIxMCIgeT0iMCIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0yMy44MDMgMGMtMS4xMjUgMC0yLjI1NC4yMjEtMy4yNzQuNzcyYTYuMDI1IDYuMDI1IDAgMCAwLTIuNTE4IDIuNjJjLS41NDcgMS4xMDItLjc2MSAyLjI4LS43OTUgMy41NzctLjA2MiAyLjQ2NC4wNTYgNS4wNDguMjQyIDcuMzkuMDQ5LjcxMi4xMzkgMS4xMjkuMDQ3IDEuODYyLS4zMDQgMS41NTYtMS42NjUgMi42MDItMi4zOTIgMy45NjktLjgwMSAxLjUwOC0xLjEzOSAzLjIxMi0xLjc0MiA0LjgxLS41NTMgMS40Ni0xLjMzIDIuODMtMS44NTMgNC4zMDItLjczMyAyLjA1Ny0uOTUyIDQuMzE5LS40NjkgNi40NDkuMzcgMS42MjMgMS4xNCAzLjE0NiAyLjE4IDQuNDQ5LS4xNS4yNy0uMjk3LjU0Ni0uNDUuODE0LS40ODMuODMtMS4wNzIgMS42Mi0xLjM0NSAyLjU0LS4xMzcuNDYtLjE5MS45NTEtLjEwMyAxLjQyMy4wODguNDczLjMyOC45MjUuNzAzIDEuMjI1LjI0NS4xOTUuNTQzLjMyMi44NS4zOTQuMzA1LjA2OS42MjIuMDg2LjkzNy4wOCAxLjE5NC0uMDI2IDIuMzUzLS4zODggMy41MDgtLjY5MmE0MS44NSA0MS44NSAwIDAgMSAyLjA2OC0uNDgzYzIuNDY0LS41MDUgNS4yMTItLjMwMiA3LjQ5OC4wMjguNzc0LjExOCAxLjU0My4yNyAyLjMwNC40NTUgMS4xOTMuMjkgMi4zOC42NTcgMy42MDYuNjkyLjMyMi4wMS42NDktLjAwNS45NjQtLjA3NS4zMTUtLjA3MS42Mi0uMTk4Ljg3Mi0uNC4zNzctLjMuNjE3LS43NTMuNzA1LTEuMjI1LjA4OC0uNDczLjAzMy0uOTY2LS4xMDUtMS40MjctLjI3OC0uOTIzLS44NzItMS43MDgtMS4zNjQtMi41MzUtLjE5NS0uMzI4LS4zNzUtLjY2Mi0uNTY4LS45OSAxLjQ4Mi0xLjY2MyAyLjY3NC0zLjU4NyAzLjM2NC01LjcuNzUyLTIuMzA2Ljg5LTQuNzkuNTc0LTcuMTk2LS4zMTctMi40MDYtMS4wOC00LjczOS0yLjA4My02Ljk0Ny0xLjI2LTIuNzY4LTIuMzItMy43Ny0zLjA4OC02LjIwMS0uODMtMi42MjktLjE0NS01Ljc0LS43NjItOC4xMjNhOC4zMzMgOC4zMzMgMCAwIDAtMS4wMjEtMi4yOTMgNy44NTYgNy44NTYgMCAwIDAtMS45OTctMi4xNUMyNy4wMjQuNDkgMjUuNDI2IDAgMjMuODAzIDBaIi8+PC9tYXNrPjxnIGZpbHRlcj0idXJsKCNrKSIgbWFzaz0idXJsKCNqKSIgb3BhY2l0eT0iLjExIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMjAuNTk3IDI1LjcxNGExNC4xMzMgMTQuMTMzIDAgMCAwLS40MDcgMi4zMDhjLS4xMDMgMS4xLS4wNzkgMi4yMDktLjEzOSAzLjMxMy0uMDQ4LjkzNi0uMTYgMS44ODMuMDA0IDIuODA3LjA3Ny40NC4yMTYuODcuNDEzIDEuMjcxLjAzLS4xNTQuMDU0LS4zMDcuMDY3LS40NjMuMDctLjc1LS4wNTYtMS41MDItLjEtMi4yNTItLjA3NC0xLjMxNi4xMDgtMi42MzIuMTgzLTMuOTQ5LjA1Ni0xLjAxLjA1LTIuMDI1LS4wMjEtMy4wMzVaIi8+PC9nPjxtYXNrIGlkPSJsIiB3aWR0aD0iMjgiIGhlaWdodD0iNDciIHg9IjEwIiB5PSIwIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBzdHlsZT0ibWFzay10eXBlOmx1bWluYW5jZSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTIzLjgwMyAwYy0xLjEyNSAwLTIuMjU0LjIyMS0zLjI3NC43NzJhNi4wMjUgNi4wMjUgMCAwIDAtMi41MTggMi42MmMtLjU0NyAxLjEwMi0uNzYxIDIuMjgtLjc5NSAzLjU3Ny0uMDYyIDIuNDY0LjA1NiA1LjA0OC4yNDIgNy4zOS4wNDkuNzEyLjEzOSAxLjEyOS4wNDcgMS44NjItLjMwNCAxLjU1Ni0xLjY2NSAyLjYwMi0yLjM5MiAzLjk2OS0uODAxIDEuNTA4LTEuMTM5IDMuMjEyLTEuNzQyIDQuODEtLjU1MyAxLjQ2LTEuMzMgMi44My0xLjg1MyA0LjMwMi0uNzMzIDIuMDU3LS45NTIgNC4zMTktLjQ2OSA2LjQ0OS4zNyAxLjYyMyAxLjE0IDMuMTQ2IDIuMTggNC40NDktLjE1LjI3LS4yOTcuNTQ2LS40NS44MTQtLjQ4My44My0xLjA3MiAxLjYyLTEuMzQ1IDIuNTQtLjEzNy40Ni0uMTkxLjk1MS0uMTAzIDEuNDIzLjA4OC40NzMuMzI4LjkyNS43MDMgMS4yMjUuMjQ1LjE5NS41NDMuMzIyLjg1LjM5NC4zMDUuMDY5LjYyMi4wODYuOTM3LjA4IDEuMTk0LS4wMjYgMi4zNTMtLjM4OCAzLjUwOC0uNjkyYTQxLjg1IDQxLjg1IDAgMCAxIDIuMDY4LS40ODNjMi40NjQtLjUwNSA1LjIxMi0uMzAyIDcuNDk4LjAyOC43NzQuMTE4IDEuNTQzLjI3IDIuMzA0LjQ1NSAxLjE5My4yOSAyLjM4LjY1NyAzLjYwNi42OTIuMzIyLjAxLjY0OS0uMDA1Ljk2NC0uMDc1LjMxNS0uMDcxLjYyLS4xOTguODcyLS40LjM3Ny0uMy42MTctLjc1My43MDUtMS4yMjUuMDg4LS40NzMuMDMzLS45NjYtLjEwNS0xLjQyNy0uMjc4LS45MjMtLjg3Mi0xLjcwOC0xLjM2NC0yLjUzNS0uMTk1LS4zMjgtLjM3NS0uNjYyLS41NjgtLjk5IDEuNDgyLTEuNjYzIDIuNjc0LTMuNTg3IDMuMzY0LTUuNy43NTItMi4zMDYuODktNC43OS41NzQtNy4xOTYtLjMxNy0yLjQwNi0xLjA4LTQuNzM5LTIuMDgzLTYuOTQ3LTEuMjYtMi43NjgtMi4zMi0zLjc3LTMuMDg4LTYuMjAxLS44My0yLjYyOS0uMTQ1LTUuNzQtLjc2Mi04LjEyM2E4LjMzMyA4LjMzMyAwIDAgMC0xLjAyMS0yLjI5MyA3Ljg1NiA3Ljg1NiAwIDAgMC0xLjk5Ny0yLjE1QzI3LjAyNC40OSAyNS40MjYgMCAyMy44MDMgMFoiLz48L21hc2s+PGcgZmlsdGVyPSJ1cmwoI20pIiBtYXNrPSJ1cmwoI2wpIiBvcGFjaXR5PSIuNzUiPjxwYXRoIGZpbGw9IiM3QzdDN0MiIGQ9Ik0zMy43NjUgMjQuNjA2Yy4xOTMtLjAzIDEuMzc2Ljk3NiAxLjIxNSAxLjM1MS0uMTYxLjM3NC0uNDY3LjE0OS0uNjg0LjE1LS4yMTguMDA0LS44MTIuMjc0LS45MTIuMTA0LS4xLS4xNzEuMjYzLS41NjkuNDUyLS45MDIuMTU0LS4yNjgtLjI2Mi0uNjczLS4wNzEtLjcwM1oiLz48L2c+PG1hc2sgaWQ9Im4iIHdpZHRoPSIyOCIgaGVpZ2h0PSI0NyIgeD0iMTAiIHk9IjAiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMjMuODAzIDBjLTEuMTI1IDAtMi4yNTQuMjIxLTMuMjc0Ljc3MmE2LjAyNSA2LjAyNSAwIDAgMC0yLjUxOCAyLjYyYy0uNTQ3IDEuMTAyLS43NjEgMi4yOC0uNzk1IDMuNTc3LS4wNjIgMi40NjQuMDU2IDUuMDQ4LjI0MiA3LjM5LjA0OS43MTIuMTM5IDEuMTI5LjA0NyAxLjg2Mi0uMzA0IDEuNTU2LTEuNjY1IDIuNjAyLTIuMzkyIDMuOTY5LS44MDEgMS41MDgtMS4xMzkgMy4yMTItMS43NDIgNC44MS0uNTUzIDEuNDYtMS4zMyAyLjgzLTEuODUzIDQuMzAyLS43MzMgMi4wNTctLjk1MiA0LjMxOS0uNDY5IDYuNDQ5LjM3IDEuNjIzIDEuMTQgMy4xNDYgMi4xOCA0LjQ0OS0uMTUuMjctLjI5Ny41NDYtLjQ1LjgxNC0uNDgzLjgzLTEuMDcyIDEuNjItMS4zNDUgMi41NC0uMTM3LjQ2LS4xOTEuOTUxLS4xMDMgMS40MjMuMDg4LjQ3My4zMjguOTI1LjcwMyAxLjIyNS4yNDUuMTk1LjU0My4zMjIuODUuMzk0LjMwNS4wNjkuNjIyLjA4Ni45MzcuMDggMS4xOTQtLjAyNiAyLjM1My0uMzg4IDMuNTA4LS42OTJhNDEuODUgNDEuODUgMCAwIDEgMi4wNjgtLjQ4M2MyLjQ2NC0uNTA1IDUuMjEyLS4zMDIgNy40OTguMDI4Ljc3NC4xMTggMS41NDMuMjcgMi4zMDQuNDU1IDEuMTkzLjI5IDIuMzguNjU3IDMuNjA2LjY5Mi4zMjIuMDEuNjQ5LS4wMDUuOTY0LS4wNzUuMzE1LS4wNzEuNjItLjE5OC44NzItLjQuMzc3LS4zLjYxNy0uNzUzLjcwNS0xLjIyNS4wODgtLjQ3My4wMzMtLjk2Ni0uMTA1LTEuNDI3LS4yNzgtLjkyMy0uODcyLTEuNzA4LTEuMzY0LTIuNTM1LS4xOTUtLjMyOC0uMzc1LS42NjItLjU2OC0uOTkgMS40ODItMS42NjMgMi42NzQtMy41ODcgMy4zNjQtNS43Ljc1Mi0yLjMwNi44OS00Ljc5LjU3NC03LjE5Ni0uMzE3LTIuNDA2LTEuMDgtNC43MzktMi4wODMtNi45NDctMS4yNi0yLjc2OC0yLjMyLTMuNzctMy4wODgtNi4yMDEtLjgzLTIuNjI5LS4xNDUtNS43NC0uNzYyLTguMTIzYTguMzMzIDguMzMzIDAgMCAwLTEuMDIxLTIuMjkzIDcuODU2IDcuODU2IDAgMCAwLTEuOTk3LTIuMTVDMjcuMDI0LjQ5IDI1LjQyNiAwIDIzLjgwMyAwWiIvPjwvbWFzaz48ZyBmaWx0ZXI9InVybCgjbykiIG1hc2s9InVybCgjbikiPjxwYXRoIGZpbGw9IiM3QzdDN0MiIGQ9Ik0yNi41MzUgMi4wODVjLS40MTQuMjkzLS4yMzQuNjU4LS4wNTYgMS4wMjQuMTc4LjM2Ny0uMzkyIDEuNDIzLS4zOTggMS40NjgtLjAwNS4wNDUgMS4xMjItLjUzNCAxLjQyOS0uOTEzLjM2NC0uNDQ1IDEuMjguNjA0IDEuMjMuNDQ0LjAwMi0uMjg1LTEuNzktMi4zMTQtMi4yMDUtMi4wMjNaIi8+PC9nPjxtYXNrIGlkPSJwIiB3aWR0aD0iMjgiIGhlaWdodD0iNDciIHg9IjEwIiB5PSIwIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBzdHlsZT0ibWFzay10eXBlOmx1bWluYW5jZSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTIzLjgwMyAwYy0xLjEyNSAwLTIuMjU0LjIyMS0zLjI3NC43NzJhNi4wMjUgNi4wMjUgMCAwIDAtMi41MTggMi42MmMtLjU0NyAxLjEwMi0uNzYxIDIuMjgtLjc5NSAzLjU3Ny0uMDYyIDIuNDY0LjA1NiA1LjA0OC4yNDIgNy4zOS4wNDkuNzEyLjEzOSAxLjEyOS4wNDcgMS44NjItLjMwNCAxLjU1Ni0xLjY2NSAyLjYwMi0yLjM5MiAzLjk2OS0uODAxIDEuNTA4LTEuMTM5IDMuMjEyLTEuNzQyIDQuODEtLjU1MyAxLjQ2LTEuMzMgMi44My0xLjg1MyA0LjMwMi0uNzMzIDIuMDU3LS45NTIgNC4zMTktLjQ2OSA2LjQ0OS4zNyAxLjYyMyAxLjE0IDMuMTQ2IDIuMTggNC40NDktLjE1LjI3LS4yOTcuNTQ2LS40NS44MTQtLjQ4My44My0xLjA3MiAxLjYyLTEuMzQ1IDIuNTQtLjEzNy40Ni0uMTkxLjk1MS0uMTAzIDEuNDIzLjA4OC40NzMuMzI4LjkyNS43MDMgMS4yMjUuMjQ1LjE5NS41NDMuMzIyLjg1LjM5NC4zMDUuMDY5LjYyMi4wODYuOTM3LjA4IDEuMTk0LS4wMjYgMi4zNTMtLjM4OCAzLjUwOC0uNjkyYTQxLjg1IDQxLjg1IDAgMCAxIDIuMDY4LS40ODNjMi40NjQtLjUwNSA1LjIxMi0uMzAyIDcuNDk4LjAyOC43NzQuMTE4IDEuNTQzLjI3IDIuMzA0LjQ1NSAxLjE5My4yOSAyLjM4LjY1NyAzLjYwNi42OTIuMzIyLjAxLjY0OS0uMDA1Ljk2NC0uMDc1LjMxNS0uMDcxLjYyLS4xOTguODcyLS40LjM3Ny0uMy42MTctLjc1My43MDUtMS4yMjUuMDg4LS40NzMuMDMzLS45NjYtLjEwNS0xLjQyNy0uMjc4LS45MjMtLjg3Mi0xLjcwOC0xLjM2NC0yLjUzNS0uMTk1LS4zMjgtLjM3NS0uNjYyLS41NjgtLjk5IDEuNDgyLTEuNjYzIDIuNjc0LTMuNTg3IDMuMzY0LTUuNy43NTItMi4zMDYuODktNC43OS41NzQtNy4xOTYtLjMxNy0yLjQwNi0xLjA4LTQuNzM5LTIuMDgzLTYuOTQ3LTEuMjYtMi43NjgtMi4zMi0zLjc3LTMuMDg4LTYuMjAxLS44My0yLjYyOS0uMTQ1LTUuNzQtLjc2Mi04LjEyM2E4LjMzMyA4LjMzMyAwIDAgMC0xLjAyMS0yLjI5MyA3Ljg1NiA3Ljg1NiAwIDAgMC0xLjk5Ny0yLjE1QzI3LjAyNC40OSAyNS40MjYgMCAyMy44MDMgMFoiLz48L21hc2s+PGcgZmlsdGVyPSJ1cmwoI3EpIiBtYXNrPSJ1cmwoI3ApIj48cGF0aCBmaWxsPSIjODM4Mzg0IiBkPSJNMjkuNjc2IDE0LjM2OGMtLjM1LjMxOS4xNjUuNzk3LjQwNyAxLjM1OC4xNTEuMzQ4LjU3Ljg0MS45NzUuNzYzLjMwNS0uMDYuNDkzLS40OTkuNDY1LS44MDctLjA1Ny0uNTk2LS41Ni0uNzM2LS45MjUtLjk0LS4yODktLjE2Mi0uNjc3LS41OTctLjkyMi0uMzc0WiIvPjwvZz48cGF0aCBmaWxsPSIjMDIwMjA0IiBkPSJNMTUuNzQ2IDE4LjkyYy0xLjE0NCAxLjI5OC0yLjMyIDIuNTU2LTIuOTY0IDMuOTYtLjMyLjcxMy0uNDcgMS40ODgtLjY5IDIuMjM4YTE2Ljg2IDE2Ljg2IDAgMCAxLS45NjQgMi40NzhjLS4zNS43NC0uNzM3IDEuNDY1LTEuMTIxIDIuMTg2LS4yODEuNTI3LS41NjYgMS4wNjQtLjY2NCAxLjY1Mi0uMDc3LjQ2NS0uMDM0Ljk0NS4wODYgMS40MDEuMTE4LjQ1Ni4zMDguODkuNTIzIDEuMzA5LjkxNSAxLjc5IDIuMjkgMy4zMzIgMy45MTcgNC41MTMuNzQuNTM0IDEuNTI5Ljk5NyAyLjM2IDEuMzc4LjQ1LjIwNC45MjIuMzg4IDEuNDE3LjM5Ni4yNDcuMDA1LjQ5Ni0uMDM2LjcyMy0uMTM1LjIyNS0uMS40MjgtLjI2LjU2My0uNDY3LjE2NS0uMjU1LjIyMS0uNTcyLjE4Ny0uODc0YTIuMTA0IDIuMTA0IDAgMCAwLS4zMDktLjg1Yy0uMzg2LS42MzMtLjk5Ni0xLjA5Mi0xLjU4Mi0xLjU0NmE1My4xMjYgNTMuMTI2IDAgMCAxLTMuNjY2LTMuMTA5Yy0uMzMtLjMxLS42NjItLjYyNi0uODkzLTEuMDE2LS4yMjUtLjM3OS0uMzQ3LS44MS0uNDI5LTEuMjQzLS4yMjctMS4xODctLjE2OS0yLjQzNi4yMzQtMy41NzYuMTYtLjQ0Ni4zNjgtLjg3Mi41Ny0xLjMuMzUtLjc0LjY4LTEuNDk2IDEuMTM4LTIuMTc0LjU3Mi0uODQ2IDEuMzM3LTEuNTYyIDEuODAyLTIuNDcuMzk0LS43NjcuNTU0LTEuNjI3LjcwNS0yLjQ3NS4xMi0uNjY0LjM0Ny0xLjMxMi40NjMtMS45NzYtLjIyNi40MzEtLjk1OCAxLjEzOC0xLjQwNiAxLjdaIi8+PG1hc2sgaWQ9InIiIHdpZHRoPSIxMSIgaGVpZ2h0PSIyNCIgeD0iOSIgeT0iMTciIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTUuNzQ2IDE4LjkyYy0xLjE0NCAxLjI5OC0yLjMyIDIuNTU2LTIuOTY0IDMuOTYtLjMyLjcxMy0uNDcgMS40ODgtLjY5IDIuMjM4YTE2Ljg2IDE2Ljg2IDAgMCAxLS45NjQgMi40NzhjLS4zNS43NC0uNzM3IDEuNDY1LTEuMTIxIDIuMTg2LS4yODEuNTI3LS41NjYgMS4wNjQtLjY2NCAxLjY1Mi0uMDc3LjQ2NS0uMDM0Ljk0NS4wODYgMS40MDEuMTE4LjQ1Ni4zMDguODkuNTIzIDEuMzA5LjkxNSAxLjc5IDIuMjkgMy4zMzIgMy45MTcgNC41MTMuNzQuNTM0IDEuNTI5Ljk5NyAyLjM2IDEuMzc4LjQ1LjIwNC45MjIuMzg4IDEuNDE3LjM5Ni4yNDcuMDA1LjQ5Ni0uMDM2LjcyMy0uMTM1LjIyNS0uMS40MjgtLjI2LjU2My0uNDY3LjE2NS0uMjU1LjIyMS0uNTcyLjE4Ny0uODc0YTIuMTA0IDIuMTA0IDAgMCAwLS4zMDktLjg1Yy0uMzg2LS42MzMtLjk5Ni0xLjA5Mi0xLjU4Mi0xLjU0NmE1My4xMjYgNTMuMTI2IDAgMCAxLTMuNjY2LTMuMTA5Yy0uMzMtLjMxLS42NjItLjYyNi0uODkzLTEuMDE2LS4yMjUtLjM3OS0uMzQ3LS44MS0uNDI5LTEuMjQzLS4yMjctMS4xODctLjE2OS0yLjQzNi4yMzQtMy41NzYuMTYtLjQ0Ni4zNjgtLjg3Mi41Ny0xLjMuMzUtLjc0LjY4LTEuNDk2IDEuMTM4LTIuMTc0LjU3Mi0uODQ2IDEuMzM3LTEuNTYyIDEuODAyLTIuNDcuMzk0LS43NjcuNTU0LTEuNjI3LjcwNS0yLjQ3NS4xMi0uNjY0LjM0Ny0xLjMxMi40NjMtMS45NzYtLjIyNi40MzEtLjk1OCAxLjEzOC0xLjQwNiAxLjdaIi8+PC9tYXNrPjxnIGZpbHRlcj0idXJsKCNzKSIgbWFzaz0idXJsKCNyKSIgb3BhY2l0eT0iLjk1Ij48cGF0aCBmaWxsPSIjN0M3QzdDIiBkPSJNMTQuNDMgMjMuNjQ0YTUuMzIgNS4zMiAwIDAgMC0uOTYyIDEuMTgzYy0uNDMxLjcyLS42ODQgMS41My0xIDIuMzA4LS4yMzIuNTgtLjUwNCAxLjE2Mi0uNTM2IDEuNzg3LS4wMTYuMzIuMDMuNjQxLjA0Mi45NjIuMDExLjMyLS4wMTkuNjU0LS4xNzcuOTMzLS4xMy4yMzUtLjM1LjQxOS0uNjAzLjUwOS4zNDMuMTE0LjY0Ny4zMzUuODYyLjYyNC4xOC4yNDQuMjk2LjUyNy40NTIuNzg0LjEyOC4yMS4yODMuNDA1LjQ3Ni41NTcuMTkyLjE1My40MjIuMjYyLjY2NC4yOTJhMS4xNyAxLjE3IDAgMCAwIC45MzItLjI5NiAyMS44NTIgMjEuODUyIDAgMCAxIC44MzItOC42OTRjLjA1NS0uMTc3LjExMS0uMzU1LjEyNi0uNTM5YS43NzUuNzc1IDAgMCAwLS4xMzUtLjUyNi41Ni41NiAwIDAgMC0uNTItLjIyLjU3My41NzMgMCAwIDAtLjI3MS4xMDcuNTg0LjU4NCAwIDAgMC0uMTgyLjIyOVoiLz48L2c+PHBhdGggZmlsbD0iIzAyMDIwNCIgZD0iTTM0LjI2NyAyMy44MzVjLjk4My43OTEgMS42MDcgMS45ODYgMS44IDMuMjMyLjE1Ljk3Mi4wNTMgMS45NzEtLjE2NiAyLjkzLS4yMi45Ni0uNTU3IDEuODg2LS44OTUgMi44MTItLjEzMy4zNjctLjI2OC43NC0uMzIgMS4xMjktLjA1NS4zOS0uMDIxLjguMTY2IDEuMTQ1LjIxNi4zOTYuNjE3LjY2OCAxLjA0OS43OTUuNDI1LjEyOC44ODUuMTI0IDEuMzE2LjAxNy40MzEtLjEwNyAxLjE1Ny0uMjQ2IDEuNTA3LS41Mi44OTEtLjY5MSAxLjEwMy0xLjg5MyAxLjMxNS0yLjk0Ny4yMi0xLjEuMTEyLTIuMjU0LS4wOC0zLjM2NS0uMjY1LTEuNTE3LS43MS0yLjk5OS0xLjI3NC00LjQzYTE1LjQyOSAxNS40MjkgMCAwIDAtMS41ODMtMi45OTJjLS42MjItLjkxNy0xLjUwMy0xLjYzMS0yLjE1Ni0yLjUyNy0uMjI3LS4zMTItLjQ5OC0uNjM0LS43Mi0uOTQ5LS40OC0uNjc5LS4zNzEtLjU1MS0uNjctLjk5Mi0uMjE1LS4zMTktLjU1Ni0uNDI3LS45MTQtLjU2NmExLjgyIDEuODIgMCAwIDAtMS4xMzMtLjA3N2MtLjQ4Ny4xMzctLjg4Ny41MjMtMS4wOTguOTgyLS4yMTIuNDYyLS4yNS45OS0uMTY3IDEuNDkxLjEwNy42NDUuNDAxIDEuMjQ1LjczNSAxLjgwOC4zNzUuNjM1LjgxIDEuMjQ4IDEuMzc4IDEuNzIuNTkyLjQ5NCAxLjMwOS44MiAxLjkxIDEuMzA0WiIvPjxtYXNrIGlkPSJ0IiB3aWR0aD0iMTEiIGhlaWdodD0iMjAiIHg9IjMwIiB5PSIxNiIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0zNC4yNjcgMjMuODM1Yy45ODMuNzkxIDEuNjA3IDEuOTg2IDEuOCAzLjIzMi4xNS45NzIuMDUzIDEuOTcxLS4xNjYgMi45My0uMjIuOTYtLjU1NyAxLjg4Ni0uODk1IDIuODEyLS4xMzMuMzY3LS4yNjguNzQtLjMyIDEuMTI5LS4wNTUuMzktLjAyMS44LjE2NiAxLjE0NS4yMTYuMzk2LjYxNy42NjggMS4wNDkuNzk1LjQyNS4xMjguODg1LjEyNCAxLjMxNi4wMTcuNDMxLS4xMDcgMS4xNTctLjI0NiAxLjUwNy0uNTIuODkxLS42OTEgMS4xMDMtMS44OTMgMS4zMTUtMi45NDcuMjItMS4xLjExMi0yLjI1NC0uMDgtMy4zNjUtLjI2NS0xLjUxNy0uNzEtMi45OTktMS4yNzQtNC40M2ExNS40MjkgMTUuNDI5IDAgMCAwLTEuNTgzLTIuOTkyYy0uNjIyLS45MTctMS41MDMtMS42MzEtMi4xNTYtMi41MjctLjIyNy0uMzEyLS40OTgtLjYzNC0uNzItLjk0OS0uNDgtLjY3OS0uMzcxLS41NTEtLjY3LS45OTItLjIxNS0uMzE5LS41NTYtLjQyNy0uOTE0LS41NjZhMS44MiAxLjgyIDAgMCAwLTEuMTMzLS4wNzdjLS40ODcuMTM3LS44ODcuNTIzLTEuMDk4Ljk4Mi0uMjEyLjQ2Mi0uMjUuOTktLjE2NyAxLjQ5MS4xMDcuNjQ1LjQwMSAxLjI0NS43MzUgMS44MDguMzc1LjYzNS44MSAxLjI0OCAxLjM3OCAxLjcyLjU5Mi40OTQgMS4zMDkuODIgMS45MSAxLjMwNFoiLz48L21hc2s+PGcgZmlsdGVyPSJ1cmwoI3UpIiBtYXNrPSJ1cmwoI3QpIj48cGF0aCBmaWxsPSIjODM4Mzg0IiBkPSJNMzEuOTU0IDIyLjMxYy4wNzguMDc2LjE2MS4xNTIuMjQ1LjIyNC42MDQuNDkzLjkyNSAxLjA0NiAxLjUzOCAxLjUzIDEuMDAxLjc5MSAyLjAxNSAyLjE1NiAyLjIxMiAzLjQwMy4xNTQuOTczLS4wNDggMS41MDItLjI5NiAyLjY0Ny0uMjQ3IDEuMTQ4LS45NDkgMi43NzItMS4zMyAzLjg3OC0uMTUuNDQuMzA4LjI1OS4yNDguNzI0LS4wMy4yMjgtLjAzMy40NTktLjAwNS42ODguMDAzLS4wNDMuMDA1LS4wOS4wMS0uMTMzLjA3NC0uNjM0LjI2Ny0xLjI0My40NzktMS44NDIuNDA3LTEuMTQ5Ljg3NC0yLjI3OCAxLjE5Ni0zLjQ1OS4zMjMtMS4xOC4yODctMi4wMjkuMTE4LTMuMDQzLS4yMTItMS4yNzctLjk1NC0yLjQ1NC0yLjAwNC0zLjIzMy0uNzQ0LS41NDktMS42Mi0uOTAxLTIuNDExLTEuMzgzWiIvPjwvZz48cGF0aCBmaWxsPSJ1cmwoI3YpIiBkPSJNMTAuMzA5IDMyLjg3NGExLjQ3IDEuNDcgMCAwIDEgLjgyMy0uMDc3Yy4yNzYuMDUxLjUzNi4xNzEuNzY3LjMyNy40NjMuMzE1LjgwNi43NzIgMS4xMzQgMS4yMjZhNDMuMDY0IDQzLjA2NCAwIDAgMSAyLjE0MSAzLjIwM2MuNTM1Ljg5NiAxLjAyNCAxLjgyIDEuNjQzIDIuNjU4LjQwMy41NS44NTcgMS4wNTggMS4yNjIgMS42MDMuNDA1LjU0OC43NjMgMS4xNC45NDMgMS43OTdhMy42MDMgMy42MDMgMCAwIDEtLjI2MyAyLjU3OCAzLjM5NyAzLjM5NyAwIDAgMS0xLjI1NiAxLjM0OCAzLjIyNCAzLjIyNCAwIDAgMS0xLjcxNi40NjNjLS45ODggMC0xLjk1My0uNTMtMi44NzItLjg5Ni0xLjg3MS0uNzQ2LTMuOTA0LS45NzktNS44MzMtMS41Ni0uNTkzLS4xNzgtMS4xNzYtLjM5LTEuNzcyLS41NTMtLjI2Ni0uMDc0LS41MzQtLjEzNy0uNzg2LS4yNTItLjI1LS4xMTItLjQ4NS0uMjgzLS42MjQtLjUxOS0uMTA3LS4xODQtLjE1LS40LS4xNS0uNjExIDAtLjIxNC4wNTMtLjQyNC4xMjYtLjYyMy4xNDQtLjQuMzc4LS43NjEuNTM2LTEuMTU3LjI1Ny0uNjQ1LjMwNC0xLjM1NS4yNjgtMi4wNDktLjAzNC0uNjkyLS4xNDYtMS4zOC0uMTkzLTIuMDcyLS4wMjMtLjMxLS4wMy0uNjIyLjAzLS45MjguMDU4LS4zMDQuMTktLjYwMi40MTItLjgxNmExLjUzIDEuNTMgMCAwIDEgLjc2LS4zNzVjLjI4LS4wNTguNTY4LS4wNi44NTMtLjA1NC4yODUuMDA2LjU3Mi4wMjMuODU3LS4wMDIuMjg1LS4wMjIuNTcyLS4wODYuODItLjIyOS4yMzUtLjEzNS40MjktLjMzNS41ODgtLjU1NS4xNi0uMjE5LjI4OS0uNDU5LjQyMi0uNjk3LjEzMS0uMjM2LjI2OC0uNDczLjQ0Mi0uNjgzLjE3My0uMjEuMzg2LS4zOTIuNjM4LS40OTVaIi8+PG1hc2sgaWQ9InciIHdpZHRoPSIxNyIgaGVpZ2h0PSIxNiIgeD0iMyIgeT0iMzIiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTAuMzA5IDMyLjg3NGExLjQ3IDEuNDcgMCAwIDEgLjgyMy0uMDc3Yy4yNzYuMDUxLjUzNi4xNzEuNzY3LjMyNy40NjMuMzE1LjgwNi43NzIgMS4xMzQgMS4yMjZhNDMuMDY0IDQzLjA2NCAwIDAgMSAyLjE0MSAzLjIwM2MuNTM1Ljg5NiAxLjAyNCAxLjgyIDEuNjQzIDIuNjU4LjQwMy41NS44NTcgMS4wNTggMS4yNjIgMS42MDMuNDA1LjU0OC43NjMgMS4xNC45NDMgMS43OTdhMy42MDMgMy42MDMgMCAwIDEtLjI2MyAyLjU3OCAzLjM5NyAzLjM5NyAwIDAgMS0xLjI1NiAxLjM0OCAzLjIyNCAzLjIyNCAwIDAgMS0xLjcxNi40NjNjLS45ODggMC0xLjk1My0uNTMtMi44NzItLjg5Ni0xLjg3MS0uNzQ2LTMuOTA0LS45NzktNS44MzMtMS41Ni0uNTkzLS4xNzgtMS4xNzYtLjM5LTEuNzcyLS41NTMtLjI2Ni0uMDc0LS41MzQtLjEzNy0uNzg2LS4yNTItLjI1LS4xMTItLjQ4NS0uMjgzLS42MjQtLjUxOS0uMTA3LS4xODQtLjE1LS40LS4xNS0uNjExIDAtLjIxNC4wNTMtLjQyNC4xMjYtLjYyMy4xNDQtLjQuMzc4LS43NjEuNTM2LTEuMTU3LjI1Ny0uNjQ1LjMwNC0xLjM1NS4yNjgtMi4wNDktLjAzNC0uNjkyLS4xNDYtMS4zOC0uMTkzLTIuMDcyLS4wMjMtLjMxLS4wMy0uNjIyLjAzLS45MjguMDU4LS4zMDQuMTktLjYwMi40MTItLjgxNmExLjUzIDEuNTMgMCAwIDEgLjc2LS4zNzVjLjI4LS4wNTguNTY4LS4wNi44NTMtLjA1NC4yODUuMDA2LjU3Mi4wMjMuODU3LS4wMDIuMjg1LS4wMjIuNTcyLS4wODYuODItLjIyOS4yMzUtLjEzNS40MjktLjMzNS41ODgtLjU1NS4xNi0uMjE5LjI4OS0uNDU5LjQyMi0uNjk3LjEzMS0uMjM2LjI2OC0uNDczLjQ0Mi0uNjgzLjE3My0uMjEuMzg2LS4zOTIuNjM4LS40OTVaIi8+PC9tYXNrPjxnIGZpbHRlcj0idXJsKCN4KSIgbWFzaz0idXJsKCN3KSI+PHBhdGggZmlsbD0iI0Q5OUEwMyIgZD0iTTEwLjcxNyAzMy4zMTljLjIzNS0uMDk0LjUwMS0uMTA1Ljc0Ny0uMDQ5LjI0Ny4wNTYuNDc4LjE3Ni42NzcuMzMyLjQuMzEuNjc4Ljc0NC45NDcgMS4xNzRhNzcuMDE1IDc3LjAxNSAwIDAgMSAxLjg2IDMuMTZjLjQ1LjgwOS44NzcgMS42MzIgMS40MjggMi4zNzMuMzY2LjQ5MS43ODQuOTQzIDEuMTU3IDEuNDI4LjM3My40ODYuNzA1IDEuMDE1Ljg3IDEuNjA1LjIxNC43Ni4xMjggMS42MDItLjI0IDIuM2EzLjA3IDMuMDcgMCAwIDEtMS4xNjIgMS4yMTQgMi45ODggMi45ODggMCAwIDEtMS42My40MDFjLS45MDQtLjA0LTEuNzMtLjQ5My0yLjU4Mi0uNzk4LTEuNjMzLS41OTMtMy40LS42NzMtNS4wNzctMS4xMzUtLjYtLjE2My0xLjE4NS0uMzgtMS43ODctLjUzMi0uMjY4LS4wNjgtLjU0LS4xMjQtLjc5My0uMjMtLjI1My0uMTA4LS40OTEtLjI3My0uNjMtLjUxYTEuMTM0IDEuMTM0IDAgMCAxLS4xMzctLjU5MSAxLjg4IDEuODggMCAwIDEgLjEzMS0uNTk5Yy4xNDctLjM4Mi4zNzUtLjcyNy41MjItMS4xMS4yMjMtLjU3Ny4yNS0xLjIxMy4yMS0xLjgzLS4wNDItLjYxNi0uMTUtMS4yMy0uMTg4LTEuODQ2YTMuMjA3IDMuMjA3IDAgMCAxIC4wMzgtLjgyN2MuMDU2LS4yNzIuMTc0LS41MzUuMzctLjczLjIxNS0uMjEyLjUwNy0uMzI2LjgwNS0uMzczLjI5Ni0uMDQ1LjU5OC0uMDI0Ljg5Ni4wMDIuMy4wMjYuNi4wNi45LjA0My4zLS4wMTkuNjA0LS4wOTIuODUyLS4yNi4yMjUtLjE1Mi4zOTMtLjM3NS41MjMtLjYxMy4xMy0uMjM5LjIyMS0uNDk1LjMyLS43NDcuMDk4LS4yNTMuMjA1LS41MDQuMzU4LS43My4xNTQtLjIyMi4zNjItLjQyLjYxNS0uNTIyWiIvPjwvZz48bWFzayBpZD0ieSIgd2lkdGg9IjE3IiBoZWlnaHQ9IjE2IiB4PSIzIiB5PSIzMiIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0xMC4zMDkgMzIuODc0YTEuNDcgMS40NyAwIDAgMSAuODIzLS4wNzdjLjI3Ni4wNTEuNTM2LjE3MS43NjcuMzI3LjQ2My4zMTUuODA2Ljc3MiAxLjEzNCAxLjIyNmE0My4wNjQgNDMuMDY0IDAgMCAxIDIuMTQxIDMuMjAzYy41MzUuODk2IDEuMDI0IDEuODIgMS42NDMgMi42NTguNDAzLjU1Ljg1NyAxLjA1OCAxLjI2MiAxLjYwMy40MDUuNTQ4Ljc2MyAxLjE0Ljk0MyAxLjc5N2EzLjYwMyAzLjYwMyAwIDAgMS0uMjYzIDIuNTc4IDMuMzk3IDMuMzk3IDAgMCAxLTEuMjU2IDEuMzQ4IDMuMjI0IDMuMjI0IDAgMCAxLTEuNzE2LjQ2M2MtLjk4OCAwLTEuOTUzLS41My0yLjg3Mi0uODk2LTEuODcxLS43NDYtMy45MDQtLjk3OS01LjgzMy0xLjU2LS41OTMtLjE3OC0xLjE3Ni0uMzktMS43NzItLjU1My0uMjY2LS4wNzQtLjUzNC0uMTM3LS43ODYtLjI1Mi0uMjUtLjExMi0uNDg1LS4yODMtLjYyNC0uNTE5LS4xMDctLjE4NC0uMTUtLjQtLjE1LS42MTEgMC0uMjE0LjA1My0uNDI0LjEyNi0uNjIzLjE0NC0uNC4zNzgtLjc2MS41MzYtMS4xNTcuMjU3LS42NDUuMzA0LTEuMzU1LjI2OC0yLjA0OS0uMDM0LS42OTItLjE0Ni0xLjM4LS4xOTMtMi4wNzItLjAyMy0uMzEtLjAzLS42MjIuMDMtLjkyOC4wNTgtLjMwNC4xOS0uNjAyLjQxMi0uODE2YTEuNTMgMS41MyAwIDAgMSAuNzYtLjM3NWMuMjgtLjA1OC41NjgtLjA2Ljg1My0uMDU0LjI4NS4wMDYuNTcyLjAyMy44NTctLjAwMi4yODUtLjAyMi41NzItLjA4Ni44Mi0uMjI5LjIzNS0uMTM1LjQyOS0uMzM1LjU4OC0uNTU1LjE2LS4yMTkuMjg5LS40NTkuNDIyLS42OTcuMTMxLS4yMzYuMjY4LS40NzMuNDQyLS42ODMuMTczLS4yMS4zODYtLjM5Mi42MzgtLjQ5NVoiLz48L21hc2s+PGcgZmlsdGVyPSJ1cmwoI3opIiBtYXNrPSJ1cmwoI3kpIj48cGF0aCBmaWxsPSIjRjVCRDBDIiBkPSJNMTAuNDk4IDMyLjczMmMuMjI5LS4xMTMuNDk3LS4xMzUuNzQ2LS4wODQuMjUuMDUuNDgyLjE3Mi42OC4zMzEuMzkxLjMyLjY0Mi43NzUuODc1IDEuMjIxLjUzMiAxLjAyNCAxLjAzMSAyLjA3IDEuNjY4IDMuMDM2LjQ2NS42OTkgMSAxLjM1IDEuNDY5IDIuMDQ3LjYzNS45NDMgMS4xNTMgMS45ODIgMS4zNjYgMy4wOTQuMTQzLjc1LjE0IDEuNTU4LS4yMiAyLjIzMWEyLjQ3OSAyLjQ3OSAwIDAgMS0xLjA3OSAxLjAzNWMtLjQ1NC4yMjktLjk3Ny4zMi0xLjQ4NS4yNzYtLjgtLjA3LTEuNTI2LS40NjMtMi4yOC0uNzM5LTEuMzM3LS40ODYtMi43ODItLjYwNC00LjE1OS0uOTcxLS41NzktLjE1NC0xLjE0OS0uMzU1LTEuNzM2LS40NzctLjI2LS4wNTQtLjUyNS0uMDkzLS43NzItLjE4Ny0uMjQ4LS4wOTQtLjQ4Mi0uMjUtLjYxLS40NzhhLjk2Ny45NjcgMCAwIDEtLjEwNS0uNTMzYy4wMTMtLjE4MS4wNjgtLjM2LjEzOS0uNTMuMTQ0LS4zMzguMzU2LS42NDkuNDY3LS45OTguMTY1LS41MTUuMDk3LTEuMDcyLS4wMjYtMS42LS4xMjItLjUyNC0uMy0xLjA0LS4zNTUtMS41NzZhMi4xMzggMi4xMzggMCAwIDEgLjAzMi0uNzE2Yy4wNTQtLjIzNS4xNjUtLjQ2LjM0LS42MjcuMjI0LS4yMTUuNTQtLjMyNC44NTQtLjM1NC4zMTQtLjAzLjYyOS4wMTEuOTQuMDU2LjMxMS4wNDUuNjI2LjA5NC45NC4wOC4zMTQtLjAxNC42MzUtLjA5Ni44OC0uMjkuMjQ0LS4xOS4zOTgtLjQ3NC40ODYtLjc2Ny4wODgtLjI5NC4xMTYtLjYuMTUyLS45MDMuMDM2LS4zMDQuMDgtLjYxMS4xOTktLjg5NS4xMTgtLjI4My4zMTctLjU0My41OTQtLjY4MloiLz48L2c+PG1hc2sgaWQ9IkEiIHdpZHRoPSIxNyIgaGVpZ2h0PSIxNiIgeD0iMyIgeT0iMzIiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTAuMzA5IDMyLjg3NGExLjQ3IDEuNDcgMCAwIDEgLjgyMy0uMDc3Yy4yNzYuMDUxLjUzNi4xNzEuNzY3LjMyNy40NjMuMzE1LjgwNi43NzIgMS4xMzQgMS4yMjZhNDMuMDY0IDQzLjA2NCAwIDAgMSAyLjE0MSAzLjIwM2MuNTM1Ljg5NiAxLjAyNCAxLjgyIDEuNjQzIDIuNjU4LjQwMy41NS44NTcgMS4wNTggMS4yNjIgMS42MDMuNDA1LjU0OC43NjMgMS4xNC45NDMgMS43OTdhMy42MDMgMy42MDMgMCAwIDEtLjI2MyAyLjU3OCAzLjM5NyAzLjM5NyAwIDAgMS0xLjI1NiAxLjM0OCAzLjIyNCAzLjIyNCAwIDAgMS0xLjcxNi40NjNjLS45ODggMC0xLjk1My0uNTMtMi44NzItLjg5Ni0xLjg3MS0uNzQ2LTMuOTA0LS45NzktNS44MzMtMS41Ni0uNTkzLS4xNzgtMS4xNzYtLjM5LTEuNzcyLS41NTMtLjI2Ni0uMDc0LS41MzQtLjEzNy0uNzg2LS4yNTItLjI1LS4xMTItLjQ4NS0uMjgzLS42MjQtLjUxOS0uMTA3LS4xODQtLjE1LS40LS4xNS0uNjExIDAtLjIxNC4wNTMtLjQyNC4xMjYtLjYyMy4xNDQtLjQuMzc4LS43NjEuNTM2LTEuMTU3LjI1Ny0uNjQ1LjMwNC0xLjM1NS4yNjgtMi4wNDktLjAzNC0uNjkyLS4xNDYtMS4zOC0uMTkzLTIuMDcyLS4wMjMtLjMxLS4wMy0uNjIyLjAzLS45MjguMDU4LS4zMDQuMTktLjYwMi40MTItLjgxNmExLjUzIDEuNTMgMCAwIDEgLjc2LS4zNzVjLjI4LS4wNTguNTY4LS4wNi44NTMtLjA1NC4yODUuMDA2LjU3Mi4wMjMuODU3LS4wMDIuMjg1LS4wMjIuNTcyLS4wODYuODItLjIyOS4yMzUtLjEzNS40MjktLjMzNS41ODgtLjU1NS4xNi0uMjE5LjI4OS0uNDU5LjQyMi0uNjk3LjEzMS0uMjM2LjI2OC0uNDczLjQ0Mi0uNjgzLjE3My0uMjEuMzg2LS4zOTIuNjM4LS40OTVaIi8+PC9tYXNrPjxnIGZpbHRlcj0idXJsKCNCKSIgbWFzaz0idXJsKCNBKSI+PHBhdGggZmlsbD0idXJsKCNDKSIgZD0iTTEzLjM1IDM1LjI5Yy40MjIuNzYuNjc5IDEuNjM0IDEuMDk3IDIuNDAzLjM4NC43MDcuODIxIDEuNDM0IDEuMjExIDIuMDg1LjE3NS4yOS41OC43MzcuOTg4IDEuNDI5LjM3MS42MjYuNzQ2IDEuNTAyLjk1NiAxLjc5Ni0uMTItLjM0NS0uMzY3LTEuMjctLjY2My0xLjkyNy0uMjc2LS42MTUtLjU5OC0uOTY2LS43OTUtMS4yOTgtLjM5LS42NS0uODEyLTEuMjM3LTEuMjEzLTEuODU4LS41NTMtLjg1Ny0uOTc1LTEuODE1LTEuNTgxLTIuNjNaIi8+PC9nPjxtYXNrIGlkPSJEIiB3aWR0aD0iMjgiIGhlaWdodD0iNDciIHg9IjEwIiB5PSIwIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBzdHlsZT0ibWFzay10eXBlOmx1bWluYW5jZSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTIzLjgwMyAwYy0xLjEyNSAwLTIuMjU0LjIyMS0zLjI3NC43NzJhNi4wMjUgNi4wMjUgMCAwIDAtMi41MTggMi42MmMtLjU0NyAxLjEwMi0uNzYxIDIuMjgtLjc5NSAzLjU3Ny0uMDYyIDIuNDY0LjA1NiA1LjA0OC4yNDIgNy4zOS4wNDkuNzEyLjEzOSAxLjEyOS4wNDcgMS44NjItLjMwNCAxLjU1Ni0xLjY2NSAyLjYwMi0yLjM5MiAzLjk2OS0uODAxIDEuNTA4LTEuMTM5IDMuMjEyLTEuNzQyIDQuODEtLjU1MyAxLjQ2LTEuMzMgMi44My0xLjg1MyA0LjMwMi0uNzMzIDIuMDU3LS45NTIgNC4zMTktLjQ2OSA2LjQ0OS4zNyAxLjYyMyAxLjE0IDMuMTQ2IDIuMTggNC40NDktLjE1LjI3LS4yOTcuNTQ2LS40NS44MTQtLjQ4My44My0xLjA3MiAxLjYyLTEuMzQ1IDIuNTQtLjEzNy40Ni0uMTkxLjk1MS0uMTAzIDEuNDIzLjA4OC40NzMuMzI4LjkyNS43MDMgMS4yMjUuMjQ1LjE5NS41NDMuMzIyLjg1LjM5NC4zMDUuMDY5LjYyMi4wODYuOTM3LjA4IDEuMTk0LS4wMjYgMi4zNTMtLjM4OCAzLjUwOC0uNjkyYTQxLjg1IDQxLjg1IDAgMCAxIDIuMDY4LS40ODNjMi40NjQtLjUwNSA1LjIxMi0uMzAyIDcuNDk4LjAyOC43NzQuMTE4IDEuNTQzLjI3IDIuMzA0LjQ1NSAxLjE5My4yOSAyLjM4LjY1NyAzLjYwNi42OTIuMzIyLjAxLjY0OS0uMDA1Ljk2NC0uMDc1LjMxNS0uMDcxLjYyLS4xOTguODcyLS40LjM3Ny0uMy42MTctLjc1My43MDUtMS4yMjUuMDg4LS40NzMuMDMzLS45NjYtLjEwNS0xLjQyNy0uMjc4LS45MjMtLjg3Mi0xLjcwOC0xLjM2NC0yLjUzNS0uMTk1LS4zMjgtLjM3NS0uNjYyLS41NjgtLjk5IDEuNDgyLTEuNjYzIDIuNjc0LTMuNTg3IDMuMzY0LTUuNy43NTItMi4zMDYuODktNC43OS41NzQtNy4xOTYtLjMxNy0yLjQwNi0xLjA4LTQuNzM5LTIuMDgzLTYuOTQ3LTEuMjYtMi43NjgtMi4zMi0zLjc3LTMuMDg4LTYuMjAxLS44My0yLjYyOS0uMTQ1LTUuNzQtLjc2Mi04LjEyM2E4LjMzMyA4LjMzMyAwIDAgMC0xLjAyMS0yLjI5MyA3Ljg1NiA3Ljg1NiAwIDAgMC0xLjk5Ny0yLjE1QzI3LjAyNC40OSAyNS40MjYgMCAyMy44MDMgMFoiLz48L21hc2s+PGcgZmlsdGVyPSJ1cmwoI0UpIiBtYXNrPSJ1cmwoI0QpIiBvcGFjaXR5PSIuMiI+PHBhdGggZmlsbD0idXJsKCNGKSIgZD0iTTQxLjAwNiA0MC40MjdjLS4wNzUuMjUtLjE5MS40OTEtLjM0LjcxMi0uMzI3LjQ4Ni0uODA1Ljg1My0xLjI4MiAxLjE5MS0uODEyLjU3Ni0xLjY1OSAxLjEwNC0yLjQxNiAxLjc1OS0uNTA3LjQzOS0uOTcuOTMyLTEuMzk3IDEuNDUtLjM2Ni40NDItLjcxMS45MDctMS4xMyAxLjMtLjQyMS4zOTgtLjkxNi43Mi0xLjQ1Ljg5NWEzLjUyIDMuNTIgMCAwIDEtMS45NjMuMDQxYy0uNDQtLjExMi0uODY5LS4zMDctMS4xNC0uNjYyLS4yNzItLjM1NC0uMzYtLjgzMi0uMzkyLTEuMzAxLS4wNTctLjgyOS4wNDMtMS42NzQuMTMzLTIuNTE2LjA3NS0uNy4xNDQtMS40LjE3Mi0yLjA5Ny4wNS0xLjI2OS0uMDM0LTIuNTI1LS4yMDQtMy43NTlhMi44MTcgMi44MTcgMCAwIDEtLjA0My0uNjI4Yy4wMTctLjIxNC4wODgtLjQzNS4yMzgtLjYuMTM5LS4xNTIuMzMyLS4yNDIuNTIzLS4yODUuMTkxLS4wNDUuMzg2LS4wNDcuNTgtLjA1My40NTUtLjAxLjkxLS4wMzkgMS4zNTkuMDAyLjI4My4wMjUuNTYuMDc3Ljg0Mi4xMDMuNDcuMDQ1Ljk2LjAyMyAxLjQzMi0uMTE2LjUwOC0uMTUuOTkyLS40MyAxLjUxLS41MDYuMjExLS4wMzIuNDIzLS4wMjguNjMuMDAyLjIxLjAyOC40Mi4wODYuNTguMjE1LjEyNS4wOTguMjE1LjIzMS4yODQuMzczLjEwNS4yMTQuMTY5LjQ0OS4yMDYuNjkuMDMyLjIxNC4wNDUuNDM0LjEuNjQuMDkuMzQuMjk2LjYyOC41NDEuODYyLjI0OC4yMzUuNTM1LjQyLjgyNC42MDQuMjg2LjE4Mi41NzUuMzYyLjg4LjUxMi4xNDUuMDcxLjI5My4xMzUuNDMuMjE2LjEzOS4wODIuMjY2LjE4Mi4zNTguMzEzYS44ODUuODg1IDAgMCAxIC4xMzUuNjQzWiIvPjwvZz48cGF0aCBmaWxsPSJ1cmwoI0cpIiBkPSJNNDMuNzc2IDQxLjc5N2MtLjQyNC41MDMtMS4wMTMuODM1LTEuNiAxLjEzNS0xIC41MDgtMi4wMzYuOTU2LTIuOTc1IDEuNTctLjYzLjQxLTEuMjEyLjg5Mi0xLjc1NSAxLjQxMS0uNDY1LjQ0NS0uOTA2LjkxOS0xLjQyNyAxLjI5Ni0uNTI3LjM4LTEuMTM1LjY1Ni0xLjc3OC43NTItLjE3OC4wMjYtLjM1Ni4wMzktLjUzNi4wMzlhNC40NyA0LjQ3IDAgMCAxLTEuNzc0LS4zOWMtLjUwNi0uMjItLjk5NC0uNTM2LTEuMjg2LTEuMDA1LS4yOTMtLjQ3Mi0uMzYtMS4wNDgtLjM2LTEuNjA1LS4wMDItLjk4LjE4LTEuOTUyLjM1LTIuOTIuMTQzLS44MDQuMjc4LTEuNjA4LjM2Ni0yLjQyLjE2LTEuNDc0LjE1OC0yLjk2NC4wNTMtNC40NDYtLjAxOS0uMjQ3LS4wNC0uNDk2LS4wMDItLjc0Mi4wMzctLjI0Ni4xMzktLjQ5MS4zMjYtLjY1M2ExLjA1IDEuMDUgMCAwIDEgLjYzOC0uMjI4Yy4yMjgtLjAxNC40NTcuMDIyLjY4NC4wNTYuNTM0LjA3OSAxLjA3NC4xMzkgMS41OTcuMjc3LjMzLjA4Ny42NTMuMjAzLjk4MS4yOTMuNTUxLjE0OCAxLjEyNy4yMiAxLjY5MS4xNTQuNjEtLjA3MiAxLjIwMi0uMyAxLjgxNS0uMjg1LjI1Mi4wMDUuNTAxLjA1Mi43NDEuMTI5LjI0NC4wNzcuNDg2LjE4OC42NjYuMzcxLjEzNi4xMzkuMjMyLjMxMy4zMDMuNDk1LjEwNy4yNy4xNjUuNTU5LjE5Ljg0OC4wMi4yNTcuMDE3LjUxNy4wNjUuNzcuMDgxLjQxNS4zLjc5NS41NyAxLjEyLjI3Mi4zMjYuNTk3LjYwMi45MjEuODczLjMyNC4yNzIuNjQ5LjU0Mi45OTcuNzguMTY0LjExMy4zMzIuMjE4LjQ4OC4zNC4xNTYuMTI0LjI5OC4yNjYuMzk2LjQzOWExLjAyMyAxLjAyMyAwIDAgMSAuMDg2Ljc4OWMtLjA4NC4yNjgtLjI0LjUyOS0uNDMxLjc1OFoiLz48bWFzayBpZD0iSCIgd2lkdGg9IjE1IiBoZWlnaHQ9IjE1IiB4PSIzMCIgeT0iMzMiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNNDMuNzc2IDQxLjc5N2MtLjQyNC41MDMtMS4wMTMuODM1LTEuNiAxLjEzNS0xIC41MDgtMi4wMzYuOTU2LTIuOTc1IDEuNTctLjYzLjQxLTEuMjEyLjg5Mi0xLjc1NSAxLjQxMS0uNDY1LjQ0NS0uOTA2LjkxOS0xLjQyNyAxLjI5Ni0uNTI3LjM4LTEuMTM1LjY1Ni0xLjc3OC43NTItLjE3OC4wMjYtLjM1Ni4wMzktLjUzNi4wMzlhNC40NyA0LjQ3IDAgMCAxLTEuNzc0LS4zOWMtLjUwNi0uMjItLjk5NC0uNTM2LTEuMjg2LTEuMDA1LS4yOTMtLjQ3Mi0uMzYtMS4wNDgtLjM2LTEuNjA1LS4wMDItLjk4LjE4LTEuOTUyLjM1LTIuOTIuMTQzLS44MDQuMjc4LTEuNjA4LjM2Ni0yLjQyLjE2LTEuNDc0LjE1OC0yLjk2NC4wNTMtNC40NDYtLjAxOS0uMjQ3LS4wNC0uNDk2LS4wMDItLjc0Mi4wMzctLjI0Ni4xMzktLjQ5MS4zMjYtLjY1M2ExLjA1IDEuMDUgMCAwIDEgLjYzOC0uMjI4Yy4yMjgtLjAxNC40NTcuMDIyLjY4NC4wNTYuNTM0LjA3OSAxLjA3NC4xMzkgMS41OTcuMjc3LjMzLjA4Ny42NTMuMjAzLjk4MS4yOTMuNTUxLjE0OCAxLjEyNy4yMiAxLjY5MS4xNTQuNjEtLjA3MiAxLjIwMi0uMyAxLjgxNS0uMjg1LjI1Mi4wMDUuNTAxLjA1Mi43NDEuMTI5LjI0NC4wNzcuNDg2LjE4OC42NjYuMzcxLjEzNi4xMzkuMjMyLjMxMy4zMDMuNDk1LjEwNy4yNy4xNjUuNTU5LjE5Ljg0OC4wMi4yNTcuMDE3LjUxNy4wNjUuNzcuMDgxLjQxNS4zLjc5NS41NyAxLjEyLjI3Mi4zMjYuNTk3LjYwMi45MjEuODczLjMyNC4yNzIuNjQ5LjU0Mi45OTcuNzguMTY0LjExMy4zMzIuMjE4LjQ4OC4zNC4xNTYuMTI0LjI5OC4yNjYuMzk2LjQzOWExLjAyMyAxLjAyMyAwIDAgMSAuMDg2Ljc4OWMtLjA4NC4yNjgtLjI0LjUyOS0uNDMxLjc1OFoiLz48L21hc2s+PGcgZmlsdGVyPSJ1cmwoI0kpIiBtYXNrPSJ1cmwoI0gpIj48cGF0aCBmaWxsPSIjQ0Q4OTA3IiBkPSJNNDMuNzI3IDQwLjUyM2MtLjEuMjQ5LS4yNC40ODMtLjQxNi42ODgtLjM4OS40NTMtLjkyNS43NTItMS40NiAxLjAyLS45MTQuNDU3LTEuODYuODU4LTIuNzE4IDEuNDEtLjU3NC4zNjktMS4xMDYuODAyLTEuNjAzIDEuMjctLjQyNC40LS44MjcuODI4LTEuMzAzIDEuMTY1YTMuNzY3IDMuNzY3IDAgMCAxLTEuNjIyLjY3NWMtLjcxMi4xMDUtMS40NDctLjAzLTIuMTEtLjMxMy0uNDYtLjE5OS0uOTA3LS40OC0xLjE3NS0uOTA2LS4yNjYtLjQyMy0uMzI4LS45NC0uMzI4LTEuNDQxLS4wMDQtLjg4My4xNjMtMS43NTcuMzItMi42MjUuMTMyLS43MjIuMjU1LTEuNDQ2LjMzNC0yLjE3NS4xNDMtMS4zMjguMTM3LTIuNjY3LjA0Ny0zLjk5OC0uMDE1LS4yMjMtLjAzMi0uNDQ4LjAwMi0uNjcuMDM0LS4yMi4xMjYtLjQ0LjI5NC0uNTg2YS45NTYuOTU2IDAgMCAxIC41ODMtLjIwNmMuMjA5LS4wMTIuNDE3LjAyMi42MjUuMDUyLjQ5LjA3MS45OC4xMjYgMS40NTkuMjUuMzAyLjA3OC41OTYuMTgzLjg5Ni4yNjIuNTAyLjEzNSAxLjAzLjE5OSAxLjU0NS4xMzkuNTU3LS4wNjQgMS4wOTctLjI3IDEuNjU1LS4yNTcuMjMxLjAwNS40NTguMDQ5LjY3Ny4xMTYuMjI0LjA3LjQ0NS4xNjkuNjEuMzM0LjEyMy4xMjYuMjA4LjI4My4yNzcuNDQ2LjEuMjQyLjE2Ny41LjE3Ljc2My4wMDcuMjc0LS4wNTIuNTQ4LS4wMTYuODIuMDMuMjE5LjEyNC40MjcuMjQ0LjYxNS4xMTguMTg3LjI2Mi4zNTguNDA3LjUyNi4yNzcuMzI5LjU1NS42NjIuOTAzLjkxNC4zOTYuMjg2Ljg2Ny40NTUgMS4yNzUuNzIxLjEyMi4wODEuMjQuMTcxLjMyNy4yOWEuNzY3Ljc2NyAwIDAgMSAuMS43WiIvPjwvZz48bWFzayBpZD0iSiIgd2lkdGg9IjE1IiBoZWlnaHQ9IjE1IiB4PSIzMCIgeT0iMzMiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNNDMuNzc2IDQxLjc5N2MtLjQyNC41MDMtMS4wMTMuODM1LTEuNiAxLjEzNS0xIC41MDgtMi4wMzYuOTU2LTIuOTc1IDEuNTctLjYzLjQxLTEuMjEyLjg5Mi0xLjc1NSAxLjQxMS0uNDY1LjQ0NS0uOTA2LjkxOS0xLjQyNyAxLjI5Ni0uNTI3LjM4LTEuMTM1LjY1Ni0xLjc3OC43NTItLjE3OC4wMjYtLjM1Ni4wMzktLjUzNi4wMzlhNC40NyA0LjQ3IDAgMCAxLTEuNzc0LS4zOWMtLjUwNi0uMjItLjk5NC0uNTM2LTEuMjg2LTEuMDA1LS4yOTMtLjQ3Mi0uMzYtMS4wNDgtLjM2LTEuNjA1LS4wMDItLjk4LjE4LTEuOTUyLjM1LTIuOTIuMTQzLS44MDQuMjc4LTEuNjA4LjM2Ni0yLjQyLjE2LTEuNDc0LjE1OC0yLjk2NC4wNTMtNC40NDYtLjAxOS0uMjQ3LS4wNC0uNDk2LS4wMDItLjc0Mi4wMzctLjI0Ni4xMzktLjQ5MS4zMjYtLjY1M2ExLjA1IDEuMDUgMCAwIDEgLjYzOC0uMjI4Yy4yMjgtLjAxNC40NTcuMDIyLjY4NC4wNTYuNTM0LjA3OSAxLjA3NC4xMzkgMS41OTcuMjc3LjMzLjA4Ny42NTMuMjAzLjk4MS4yOTMuNTUxLjE0OCAxLjEyNy4yMiAxLjY5MS4xNTQuNjEtLjA3MiAxLjIwMi0uMyAxLjgxNS0uMjg1LjI1Mi4wMDUuNTAxLjA1Mi43NDEuMTI5LjI0NC4wNzcuNDg2LjE4OC42NjYuMzcxLjEzNi4xMzkuMjMyLjMxMy4zMDMuNDk1LjEwNy4yNy4xNjUuNTU5LjE5Ljg0OC4wMi4yNTcuMDE3LjUxNy4wNjUuNzcuMDgxLjQxNS4zLjc5NS41NyAxLjEyLjI3Mi4zMjYuNTk3LjYwMi45MjEuODczLjMyNC4yNzIuNjQ5LjU0Mi45OTcuNzguMTY0LjExMy4zMzIuMjE4LjQ4OC4zNC4xNTYuMTI0LjI5OC4yNjYuMzk2LjQzOWExLjAyMyAxLjAyMyAwIDAgMSAuMDg2Ljc4OWMtLjA4NC4yNjgtLjI0LjUyOS0uNDMxLjc1OFoiLz48L21hc2s+PGcgZmlsdGVyPSJ1cmwoI0spIiBtYXNrPSJ1cmwoI0opIj48cGF0aCBmaWxsPSIjRjVDMDIxIiBkPSJNNDMuNjcgNDAuMjRhMy4wNTEgMy4wNTEgMCAwIDEtLjQyNy42OTVjLS4zOTcuNDg0LS45MzYuODE2LTEuNSAxLjAzLS45MzIuMzUyLTEuOTQ4LjM5OS0yLjg2MS44LS41NTcuMjQ0LTEuMDYuNjExLTEuNTY4Ljk2LS40MDguMjgtLjgyOC41NTEtMS4yNzguNzQ2LS41MS4yMjMtMS4wNS4zNDctMS41OTQuNDM1YTUuMDAyIDUuMDAyIDAgMCAxLTEuMDQ0LjA3NyAyLjI0NyAyLjI0NyAwIDAgMS0xLjAwNy0uMjggMS40MTQgMS40MTQgMCAwIDEtLjU2OC0uNThjLS4xMzctLjI4LS4xNjItLjYwOC0uMTYtLjkyNy4wMS0uODQzLjE5MS0xLjY4LjE4Ni0yLjUyNS0uMDA2LS43MzctLjE1Mi0xLjQ2My0uMTkzLTIuMTk4LS4wODEtMS40MTQuMjIzLTIuODUtLjA0NS00LjIzNi0uMDQyLS4yMjMtLjEtLjQ0NC0uMDk4LS42N2EuOTk3Ljk5NyAwIDAgMSAuMDU4LS4zMzMuNjQ4LjY0OCAwIDAgMSAuMTktLjI2Ni41OTcuNTk3IDAgMCAxIC4yNDUtLjEwNS44MzQuODM0IDAgMCAxIC4yNjUuMDAyYy4xNzQuMDI4LjM0LjA5Ni41MTEuMTQ2LjQ4OC4xNDYgMS4wMDQuMTQzIDEuNS4yNTMuMzEyLjA2OC42MTIuMTgyLjkyMS4yNjVhNC4xNjYgNC4xNjYgMCAwIDAgMS41ODYuMTRjLjU3LS4wNjcgMS4xMjctLjI3MyAxLjcwMS0uMjU4LjIzNi4wMDUuNDY5LjA0OC42OTYuMTE2LjIyNy4wNjcuNDUzLjE2My42MjYuMzM3LjEyMi4xMjYuMjEyLjI4NS4yODMuNDUuMTA3LjI0Mi4xOC41MDUuMTc4Ljc3MS0uMDAyLjEzOS0uMDIyLjI3Ni0uMDM2LjQxNGExLjMyIDEuMzIgMCAwIDAgLjAxNy40MTNjLjAzNC4xMzUuMTA0LjI1Ny4xODIuMzY3LjA3OS4xMTEuMTY5LjIxLjI1Mi4zMi4yMjguMzAxLjM5My42NTQuNTcxLjk5My4xNzguMzQuMzguNjc1LjY2Mi45Mi4zODUuMzMyLjg4Mi40NjUgMS4zMS43My4xMjcuMDc3LjI0Ni4xNjcuMzM1LjI5YS43NzMuNzczIDAgMCAxIC4xMzYuMzQuODQuODQgMCAwIDEtLjAzMS4zNjdaIi8+PC9nPjxtYXNrIGlkPSJMIiB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHg9IjMwIiB5PSIzMyIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik00My43NzYgNDEuNzk3Yy0uNDI0LjUwMy0xLjAxMy44MzUtMS42IDEuMTM1LTEgLjUwOC0yLjAzNi45NTYtMi45NzUgMS41Ny0uNjMuNDEtMS4yMTIuODkyLTEuNzU1IDEuNDExLS40NjUuNDQ1LS45MDYuOTE5LTEuNDI3IDEuMjk2LS41MjcuMzgtMS4xMzUuNjU2LTEuNzc4Ljc1Mi0uMTc4LjAyNi0uMzU2LjAzOS0uNTM2LjAzOWE0LjQ3IDQuNDcgMCAwIDEtMS43NzQtLjM5Yy0uNTA2LS4yMi0uOTk0LS41MzYtMS4yODYtMS4wMDUtLjI5My0uNDcyLS4zNi0xLjA0OC0uMzYtMS42MDUtLjAwMi0uOTguMTgtMS45NTIuMzUtMi45Mi4xNDMtLjgwNC4yNzgtMS42MDguMzY2LTIuNDIuMTYtMS40NzQuMTU4LTIuOTY0LjA1My00LjQ0Ni0uMDE5LS4yNDctLjA0LS40OTYtLjAwMi0uNzQyLjAzNy0uMjQ2LjEzOS0uNDkxLjMyNi0uNjUzYTEuMDUgMS4wNSAwIDAgMSAuNjM4LS4yMjhjLjIyOC0uMDE0LjQ1Ny4wMjIuNjg0LjA1Ni41MzQuMDc5IDEuMDc0LjEzOSAxLjU5Ny4yNzcuMzMuMDg3LjY1My4yMDMuOTgxLjI5My41NTEuMTQ4IDEuMTI3LjIyIDEuNjkxLjE1NC42MS0uMDcyIDEuMjAyLS4zIDEuODE1LS4yODUuMjUyLjAwNS41MDEuMDUyLjc0MS4xMjkuMjQ0LjA3Ny40ODYuMTg4LjY2Ni4zNzEuMTM2LjEzOS4yMzIuMzEzLjMwMy40OTUuMTA3LjI3LjE2NS41NTkuMTkuODQ4LjAyLjI1Ny4wMTcuNTE3LjA2NS43Ny4wODEuNDE1LjMuNzk1LjU3IDEuMTIuMjcyLjMyNi41OTcuNjAyLjkyMS44NzMuMzI0LjI3Mi42NDkuNTQyLjk5Ny43OC4xNjQuMTEzLjMzMi4yMTguNDg4LjM0LjE1Ni4xMjQuMjk4LjI2Ni4zOTYuNDM5YTEuMDIzIDEuMDIzIDAgMCAxIC4wODYuNzg5Yy0uMDg0LjI2OC0uMjQuNTI5LS40MzEuNzU4WiIvPjwvbWFzaz48ZyBmaWx0ZXI9InVybCgjTSkiIG1hc2s9InVybCgjTCkiPjxwYXRoIGZpbGw9InVybCgjTikiIGQ9Ik0zMS41MTUgMzQuMDQ2Yy41MjktLjE0Mi45NzkuMjU5IDEuMzYzLjU2LjI0OC4yMTMuNjA4LjE2LjkxMS4xNy41MDUtLjAxNyAxLjAwNS4wODQgMS41MS4wMjIuOTkzLS4wODQgMS45NjctLjMyOCAyLjk2NC0uMzcuNDc2LS4wMyAxLjAxMy0uMDU3IDEuNDIzLjIyLjE2Ny4xMTYuNDEzLjYwNi41NzYuNDIyLS4wNjgtLjUxNC0uNDQ4LTEuMDEtLjk1OC0xLjE0OC0uNDAxLS4wNjMtLjgwNi4wNDctMS4yMTIuMDEyLTEuMTk4LS4wMjgtMi4zOS0uMjUyLTMuNTkyLS4xODgtLjgzNi4wMDgtMS42Ny0uMDMyLTIuNTA3LS4wNjQtLjMyOC0uMDY3LS40NDQuMjI0LS42MjIuMzM2LjA0Ny4wMzYuMDYzLjA0Ny4xNDQuMDI4WiIvPjwvZz48bWFzayBpZD0iTyIgd2lkdGg9IjE1IiBoZWlnaHQ9IjE1IiB4PSIzMCIgeT0iMzMiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNNDMuNzc2IDQxLjc5N2MtLjQyNC41MDMtMS4wMTMuODM1LTEuNiAxLjEzNS0xIC41MDgtMi4wMzYuOTU2LTIuOTc1IDEuNTctLjYzLjQxLTEuMjEyLjg5Mi0xLjc1NSAxLjQxMS0uNDY1LjQ0NS0uOTA2LjkxOS0xLjQyNyAxLjI5Ni0uNTI3LjM4LTEuMTM1LjY1Ni0xLjc3OC43NTItLjE3OC4wMjYtLjM1Ni4wMzktLjUzNi4wMzlhNC40NyA0LjQ3IDAgMCAxLTEuNzc0LS4zOWMtLjUwNi0uMjItLjk5NC0uNTM2LTEuMjg2LTEuMDA1LS4yOTMtLjQ3Mi0uMzYtMS4wNDgtLjM2LTEuNjA1LS4wMDItLjk4LjE4LTEuOTUyLjM1LTIuOTIuMTQzLS44MDQuMjc4LTEuNjA4LjM2Ni0yLjQyLjE2LTEuNDc0LjE1OC0yLjk2NC4wNTMtNC40NDYtLjAxOS0uMjQ3LS4wNC0uNDk2LS4wMDItLjc0Mi4wMzctLjI0Ni4xMzktLjQ5MS4zMjYtLjY1M2ExLjA1IDEuMDUgMCAwIDEgLjYzOC0uMjI4Yy4yMjgtLjAxNC40NTcuMDIyLjY4NC4wNTYuNTM0LjA3OSAxLjA3NC4xMzkgMS41OTcuMjc3LjMzLjA4Ny42NTMuMjAzLjk4MS4yOTMuNTUxLjE0OCAxLjEyNy4yMiAxLjY5MS4xNTQuNjEtLjA3MiAxLjIwMi0uMyAxLjgxNS0uMjg1LjI1Mi4wMDUuNTAxLjA1Mi43NDEuMTI5LjI0NC4wNzcuNDg2LjE4OC42NjYuMzcxLjEzNi4xMzkuMjMyLjMxMy4zMDMuNDk1LjEwNy4yNy4xNjUuNTU5LjE5Ljg0OC4wMi4yNTcuMDE3LjUxNy4wNjUuNzcuMDgxLjQxNS4zLjc5NS41NyAxLjEyLjI3Mi4zMjYuNTk3LjYwMi45MjEuODczLjMyNC4yNzIuNjQ5LjU0Mi45OTcuNzguMTY0LjExMy4zMzIuMjE4LjQ4OC4zNC4xNTYuMTI0LjI5OC4yNjYuMzk2LjQzOWExLjAyMyAxLjAyMyAwIDAgMSAuMDg2Ljc4OWMtLjA4NC4yNjgtLjI0LjUyOS0uNDMxLjc1OFoiLz48L21hc2s+PGcgZmlsdGVyPSJ1cmwoI1ApIiBtYXNrPSJ1cmwoI08pIiBvcGFjaXR5PSIuMzUiPjxwYXRoIGZpbGw9InVybCgjUSkiIGQ9Ik0zOC41MyAzNS4xNzdhLjg1Mi44NTIgMCAwIDAtLjQ0MS0uMzg4IDEuNDg1IDEuNDg1IDAgMCAwLS41ODctLjEwMmMtLjQuMDA0LS43OTcuMTA3LTEuMTk2LjA3NC0uMzM2LS4wMy0uNjU1LS4xNTYtLjk4My0uMjM3LS4zNC0uMDgyLS43LS4xMTQtMS4wMzUtLjAyMi0uMzYuMDk3LS42NzcuMzQtLjg3NS42NTQtLjE3Ny4yNzgtLjI2LjYwNi0uMjg1LjkzNC0uMDI3LjMyOC4wMDEuNjU2LjAzNS45ODQuMDIzLjIzNy4wNS40NzMuMTA3LjcwNGExLjkgMS45IDAgMCAwIC4yODUuNjQ4Yy4yLjI3OC40OTkuNDc3LjgyLjU5NWEyLjI4MSAyLjI4MSAwIDAgMCAxLjYzNi0uMDI5IDQuNTE0IDQuNTE0IDAgMCAwIDIuMTYtMS45ODdjLjE3LS4zMTUuMzAyLS42NS4zODYtLjk5Ni4wMzQtLjEzOC4wNi0uMjc5LjA2LS40MjJhLjg2My44NjMgMCAwIDAtLjA4OC0uNDFaIi8+PC9nPjxtYXNrIGlkPSJSIiB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHg9IjMwIiB5PSIzMyIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik00My43NzYgNDEuNzk3Yy0uNDI0LjUwMy0xLjAxMy44MzUtMS42IDEuMTM1LTEgLjUwOC0yLjAzNi45NTYtMi45NzUgMS41Ny0uNjMuNDEtMS4yMTIuODkyLTEuNzU1IDEuNDExLS40NjUuNDQ1LS45MDYuOTE5LTEuNDI3IDEuMjk2LS41MjcuMzgtMS4xMzUuNjU2LTEuNzc4Ljc1Mi0uMTc4LjAyNi0uMzU2LjAzOS0uNTM2LjAzOWE0LjQ3IDQuNDcgMCAwIDEtMS43NzQtLjM5Yy0uNTA2LS4yMi0uOTk0LS41MzYtMS4yODYtMS4wMDUtLjI5My0uNDcyLS4zNi0xLjA0OC0uMzYtMS42MDUtLjAwMi0uOTguMTgtMS45NTIuMzUtMi45Mi4xNDMtLjgwNC4yNzgtMS42MDguMzY2LTIuNDIuMTYtMS40NzQuMTU4LTIuOTY0LjA1My00LjQ0Ni0uMDE5LS4yNDctLjA0LS40OTYtLjAwMi0uNzQyLjAzNy0uMjQ2LjEzOS0uNDkxLjMyNi0uNjUzYTEuMDUgMS4wNSAwIDAgMSAuNjM4LS4yMjhjLjIyOC0uMDE0LjQ1Ny4wMjIuNjg0LjA1Ni41MzQuMDc5IDEuMDc0LjEzOSAxLjU5Ny4yNzcuMzMuMDg3LjY1My4yMDMuOTgxLjI5My41NTEuMTQ4IDEuMTI3LjIyIDEuNjkxLjE1NC42MS0uMDcyIDEuMjAyLS4zIDEuODE1LS4yODUuMjUyLjAwNS41MDEuMDUyLjc0MS4xMjkuMjQ0LjA3Ny40ODYuMTg4LjY2Ni4zNzEuMTM2LjEzOS4yMzIuMzEzLjMwMy40OTUuMTA3LjI3LjE2NS41NTkuMTkuODQ4LjAyLjI1Ny4wMTcuNTE3LjA2NS43Ny4wODEuNDE1LjMuNzk1LjU3IDEuMTIuMjcyLjMyNi41OTcuNjAyLjkyMS44NzMuMzI0LjI3Mi42NDkuNTQyLjk5Ny43OC4xNjQuMTEzLjMzMi4yMTguNDg4LjM0LjE1Ni4xMjQuMjk4LjI2Ni4zOTYuNDM5YTEuMDIzIDEuMDIzIDAgMCAxIC4wODYuNzg5Yy0uMDg0LjI2OC0uMjQuNTI5LS40MzEuNzU4WiIvPjwvbWFzaz48ZyBmaWx0ZXI9InVybCgjUykiIG1hc2s9InVybCgjUikiIG9wYWNpdHk9Ii4zNSI+PHBhdGggZmlsbD0idXJsKCNUKSIgZD0iTTM4LjUzIDM0LjY2N2MtLjA5LS4xMy0uMjU2LS4yMjUtLjQ0MS0uMjgxYTIuMDI2IDIuMDI2IDAgMCAwLS41ODctLjA3NGMtLjQuMDA0LS43OTcuMDgtMS4xOTYuMDUzLS4zMzYtLjAyLS42NTUtLjExMy0uOTgzLS4xNjktLjM0LS4wNi0uNy0uMDg0LTEuMDM1LS4wMTctLjM2LjA3LS42NzcuMjQ0LS44NzUuNDczLS4xNzcuMi0uMjYuNDM5LS4yODUuNjc1LS4wMjcuMjM2LjAwMS40NzQuMDM1LjcxLjAyMy4xNzEuMDUuMzQ0LjEwNy41MS4wNTguMTY3LjE0Ni4zMy4yODUuNDcuMi4yLjQ5OS4zNDIuODIuNDI5YTMuMDkgMy4wOSAwIDAgMCAxLjYzNi0uMDIxYy45MTUtLjI4NyAxLjY5LS44MDIgMi4xNi0xLjQzNi4xNy0uMjI5LjMwMi0uNDcuMzg2LS43MmEuOTcuOTcgMCAwIDAgLjA2LS4zMDQuNDgzLjQ4MyAwIDAgMC0uMDg4LS4yOThaIi8+PC9nPjxwYXRoIGZpbGw9IiMwMjAyMDQiIGQ9Ik0zOS4yOSAzMy41MWExLjE5IDEuMTkgMCAwIDAtLjMyMi0uNDYzIDEuNzMyIDEuNzMyIDAgMCAwLS40ODItLjNjLS4zNDgtLjE0OC0uNzMtLjIwNS0xLjEwNC0uMjc0LS4zNS0uMDY2LS43MDEtLjE0Ni0xLjA1NC0uMjA2LS4zNjctLjA2Mi0uNzQ2LS4xMDMtMS4xMS0uMDJhMS44OTQgMS44OTQgMCAwIDAtLjg1MS40NTUgMi40MyAyLjQzIDAgMCAwLS41NjMuNzljLS4yMzguNTIyLS4zMTMgMS4xMS0uMjY4IDEuNjgxLjAzNC40MjYuMTQzLjg2NC40MjIgMS4xODUuMjI3LjI2LjU0OC40MjQuODc4LjUyMS41Ny4xNyAxLjE5LjE2IDEuNzU1LS4wMjRhNC42MzIgNC42MzIgMCAwIDAgMi4zMTUtMS43NDJjLjE4NC0uMjY4LjM0Mi0uNTU5LjQxMy0uODc0LjA1NC0uMjQuMDU2LS40OTgtLjAyOC0uNzI5WiIvPjxtYXNrIGlkPSJVIiB3aWR0aD0iNyIgaGVpZ2h0PSI1IiB4PSIzMyIgeT0iMzIiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMzkuMjkgMzMuNTFhMS4xOSAxLjE5IDAgMCAwLS4zMjItLjQ2MyAxLjczMiAxLjczMiAwIDAgMC0uNDgyLS4zYy0uMzQ4LS4xNDgtLjczLS4yMDUtMS4xMDQtLjI3NC0uMzUtLjA2Ni0uNzAxLS4xNDYtMS4wNTQtLjIwNi0uMzY3LS4wNjItLjc0Ni0uMTAzLTEuMTEtLjAyYTEuODk0IDEuODk0IDAgMCAwLS44NTEuNDU1IDIuNDMgMi40MyAwIDAgMC0uNTYzLjc5Yy0uMjM4LjUyMi0uMzEzIDEuMTEtLjI2OCAxLjY4MS4wMzQuNDI2LjE0My44NjQuNDIyIDEuMTg1LjIyNy4yNi41NDguNDI0Ljg3OC41MjEuNTcuMTcgMS4xOS4xNiAxLjc1NS0uMDI0YTQuNjMyIDQuNjMyIDAgMCAwIDIuMzE1LTEuNzQyYy4xODQtLjI2OC4zNDItLjU1OS40MTMtLjg3NC4wNTQtLjI0LjA1Ni0uNDk4LS4wMjgtLjcyOVoiLz48L21hc2s+PGcgZmlsdGVyPSJ1cmwoI1YpIiBtYXNrPSJ1cmwoI1UpIj48cGF0aCBmaWxsPSJ1cmwoI1cpIiBkPSJNMzUuNDE3IDMyLjA3NmEyLjAxNSAyLjAxNSAwIDAgMC0xLjYyNi45NzUgMi4wMTQgMi4wMTQgMCAwIDAtLjI2OCAxLjE1NyAxLjgyIDEuODIgMCAwIDEgLjIyMy0uODAzYy4yMy0uNDE4LjY1LS43MzMgMS4xMjEtLjgyLjI5LS4wNTIuNTg3LS4wMi44NzguMDE2LjI4MS4wMzUuNTYzLjA3My44MzguMTMuNDI4LjA5NS44NS4yMzcgMS4yMDguNDg2LjA4Mi4wNTkuMTYuMTI0LjIyNy4yMDNhLjYwNC42MDQgMCAwIDEgLjEzNi4yNjYuNjQyLjY0MiAwIDAgMS0uMDg2LjQzIDEuNjEgMS42MSAwIDAgMS0uMjc3LjM0OCA1LjYxNCA1LjYxNCAwIDAgMS0uMjY4LjI0OGMuNDE0LS4wOC44MzItLjE5MyAxLjE3Ny0uNDMzLjE0NC0uMTAzLjI3Ny0uMjI1LjM2NC0uMzc5YS43My43MyAwIDAgMCAuMDgtLjUxNi43OC43OCAwIDAgMC0uMTcyLS4zMTMgMS41NCAxLjU0IDAgMCAwLS4yNzItLjIzMiAzLjIzOCAzLjIzOCAwIDAgMC0xLjQ2NC0uNTYgMTYuOTgzIDE2Ljk4MyAwIDAgMC0xLjAxNy0uMTU3IDQuNDIxIDQuNDIxIDAgMCAwLS44MDItLjA0NloiLz48L2c+PG1hc2sgaWQ9IlgiIHdpZHRoPSI3IiBoZWlnaHQ9IjUiIHg9IjMzIiB5PSIzMiIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0zOS4yOSAzMy41MWExLjE5IDEuMTkgMCAwIDAtLjMyMi0uNDYzIDEuNzMyIDEuNzMyIDAgMCAwLS40ODItLjNjLS4zNDgtLjE0OC0uNzMtLjIwNS0xLjEwNC0uMjc0LS4zNS0uMDY2LS43MDEtLjE0Ni0xLjA1NC0uMjA2LS4zNjctLjA2Mi0uNzQ2LS4xMDMtMS4xMS0uMDJhMS44OTQgMS44OTQgMCAwIDAtLjg1MS40NTUgMi40MyAyLjQzIDAgMCAwLS41NjMuNzljLS4yMzguNTIyLS4zMTMgMS4xMS0uMjY4IDEuNjgxLjAzNC40MjYuMTQzLjg2NC40MjIgMS4xODUuMjI3LjI2LjU0OC40MjQuODc4LjUyMS41Ny4xNyAxLjE5LjE2IDEuNzU1LS4wMjRhNC42MzIgNC42MzIgMCAwIDAgMi4zMTUtMS43NDJjLjE4NC0uMjY4LjM0Mi0uNTU5LjQxMy0uODc0LjA1NC0uMjQuMDU2LS40OTgtLjAyOC0uNzI5WiIvPjwvbWFzaz48ZyBmaWx0ZXI9InVybCgjWSkiIG1hc2s9InVybCgjWCkiPjxwYXRoIGZpbGw9InVybCgjWikiIGQ9Ik0zNS40MTcgMzIuMDc2YTIuMDE1IDIuMDE1IDAgMCAwLTEuNjI2Ljk3NSAyLjAxNCAyLjAxNCAwIDAgMC0uMjY4IDEuMTU3IDEuODIgMS44MiAwIDAgMSAuMjIzLS44MDNjLjIzLS40MTguNjUtLjczMyAxLjEyMS0uODIuMjktLjA1Mi41ODctLjAyLjg3OC4wMTYuMjgxLjAzNS41NjMuMDczLjgzOC4xMy40MjguMDk1Ljg1LjIzNyAxLjIwOC40ODYuMDgyLjA1OS4xNi4xMjQuMjI3LjIwM2EuNjA0LjYwNCAwIDAgMSAuMTM2LjI2Ni42NDIuNjQyIDAgMCAxLS4wODYuNDMgMS42MSAxLjYxIDAgMCAxLS4yNzcuMzQ4IDUuNjE0IDUuNjE0IDAgMCAxLS4yNjguMjQ4Yy40MTQtLjA4LjgzMi0uMTkzIDEuMTc3LS40MzMuMTQ0LS4xMDMuMjc3LS4yMjUuMzY0LS4zNzlhLjczLjczIDAgMCAwIC4wOC0uNTE2Ljc4Ljc4IDAgMCAwLS4xNzItLjMxMyAxLjU0IDEuNTQgMCAwIDAtLjI3Mi0uMjMyIDMuMjM4IDMuMjM4IDAgMCAwLTEuNDY0LS41NiAxNi45ODMgMTYuOTgzIDAgMCAwLTEuMDE3LS4xNTcgNC40MjEgNC40MjEgMCAwIDAtLjgwMi0uMDQ2WiIvPjwvZz48cGF0aCBmaWxsPSJ1cmwoI2FhKSIgZD0iTTE5LjU4NCA3LjE3N2ExLjI0NiAxLjI0NiAwIDAgMC0uNzcyLjM0NWMtLjIxMi4xOTctLjM2LjQ1Ni0uNDUyLjcyOC0uMTgyLjU0Ny0uMTQgMS4xNC0uMSAxLjcxNi4wMzguNTE5LjA3NyAxLjA1LjI3MiAxLjUzMy4wOTguMjQ0LjIzNS40NzEuNDE3LjY1OS4xODIuMTg1LjQxMi4zMy42NjUuMzkxLjIzNy4wNi40OTIuMDUuNzI0LS4wMjQuMjM1LS4wNzUuNDQ2LS4yMDguNjIzLS4zNzkuMjU1LS4yNS40MjUtLjU3NS41MjUtLjkxOS4wOTktLjM0My4xMjctLjcwMy4xMjItMS4wNmE0LjQ3OCA0LjQ3OCAwIDAgMC0uMjA1LTEuMzE5IDIuOTkzIDIuOTkzIDAgMCAwLS42NzUtMS4xNDYgMS44ODcgMS44ODcgMCAwIDAtLjUxNi0uMzg2IDEuMjg4IDEuMjg4IDAgMCAwLS42MjgtLjEzOVoiLz48cGF0aCBmaWxsPSIjMDIwMjA0IiBkPSJNMTguODkgOS41NmMtLjA2LjM2NC0uMDYxLjc0NS4wNjMgMS4wOS4wODIuMjI5LjIxOS40MzcuMzg0LjYxNS4xMDcuMTE2LjIzLjIyMS4zNzMuMjkuMTQ0LjA3LjMxLjA5OC40NjUuMDZhLjY4Mi42ODIgMCAwIDAgLjM1OC0uMjQxYy4wOTItLjExNS4xNTQtLjI1Mi4xOTctLjM5Mi4xMy0uNDE0LjEwOS0uODY2LS4wMi0xLjI4LS4wOTMtLjMwMy0uMjQ4LS41OTMtLjQ4OC0uNzk2YS45NjcuOTY3IDAgMCAwLS4zOTgtLjIwOC42OS42OSAwIDAgMC0uNDQyLjAzNmMtLjE1Mi4wNy0uMjcuMi0uMzQ3LjM0OGExLjYyNCAxLjYyNCAwIDAgMC0uMTQ0LjQ3OVoiLz48bWFzayBpZD0iYWIiIHdpZHRoPSIzIiBoZWlnaHQ9IjQiIHg9IjE4IiB5PSI4IiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBzdHlsZT0ibWFzay10eXBlOmx1bWluYW5jZSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE4Ljg5IDkuNTZjLS4wNi4zNjQtLjA2MS43NDUuMDYzIDEuMDkuMDgyLjIyOS4yMTkuNDM3LjM4NC42MTUuMTA3LjExNi4yMy4yMjEuMzczLjI5LjE0NC4wNy4zMS4wOTguNDY1LjA2YS42ODIuNjgyIDAgMCAwIC4zNTgtLjI0MWMuMDkyLS4xMTUuMTU0LS4yNTIuMTk3LS4zOTIuMTMtLjQxNC4xMDktLjg2Ni0uMDItMS4yOC0uMDkzLS4zMDMtLjI0OC0uNTkzLS40ODgtLjc5NmEuOTY3Ljk2NyAwIDAgMC0uMzk4LS4yMDguNjkuNjkgMCAwIDAtLjQ0Mi4wMzZjLS4xNTIuMDctLjI3LjItLjM0Ny4zNDhhMS42MjQgMS42MjQgMCAwIDAtLjE0NC40NzlaIi8+PC9tYXNrPjxnIGZpbHRlcj0idXJsKCNhYykiIG1hc2s9InVybCgjYWIpIj48cGF0aCBmaWxsPSJ1cmwoI2FkKSIgZD0iTTE5LjY1NyA5LjI5OGMuMDQuMTAzLjE3MS4xNC4yNDQuMjIzYS45NC45NCAwIDAgMSAuMTgyLjI2M2MuMDczLjE5LS4wNzMuNDcuMDguNjA1LjA0OC4wNDIuMTQ1LjA0My4xOTIgMCAuMTg2LS4xNjguMTQ0LS41MDguMDcxLS43NDhhLjkxMi45MTIgMCAwIDAtLjQzMy0uNTI1Yy0uMDk0LS4wNDktLjIzNC0uMDg4LS4zMTUtLjAyLS4wNS4wNDUtLjA0NS4xMzgtLjAyLjIwMloiLz48L2c+PG1hc2sgaWQ9ImFlIiB3aWR0aD0iNCIgaGVpZ2h0PSI2IiB4PSIxOCIgeT0iNyIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0xOS41ODQgNy4xNzdhMS4yNDYgMS4yNDYgMCAwIDAtLjc3Mi4zNDVjLS4yMTIuMTk3LS4zNi40NTYtLjQ1Mi43MjgtLjE4Mi41NDctLjE0IDEuMTQtLjEgMS43MTYuMDM4LjUxOS4wNzcgMS4wNS4yNzIgMS41MzMuMDk4LjI0NC4yMzUuNDcxLjQxNy42NTkuMTgyLjE4NS40MTIuMzMuNjY1LjM5MS4yMzcuMDYuNDkyLjA1LjcyNC0uMDI0LjIzNS0uMDc1LjQ0Ni0uMjA4LjYyMy0uMzc5LjI1NS0uMjUuNDI1LS41NzUuNTI1LS45MTkuMDk5LS4zNDMuMTI3LS43MDMuMTIyLTEuMDZhNC40NzggNC40NzggMCAwIDAtLjIwNS0xLjMxOSAyLjk5MyAyLjk5MyAwIDAgMC0uNjc1LTEuMTQ2IDEuODg3IDEuODg3IDAgMCAwLS41MTYtLjM4NiAxLjI4OCAxLjI4OCAwIDAgMC0uNjI4LS4xMzlaIi8+PC9tYXNrPjxnIG1hc2s9InVybCgjYWUpIj48cGF0aCBmaWxsPSJ1cmwoI2FmKSIgZD0iTTE4Ljk2NCA4LjMzNmMuNDM1LS4yNTguOTYyLS4zMTkgMS40NjYtLjI3Mi41MDMuMDUuOTg4LjE5NSAxLjQ3Ni4zMjkuMzU4LjA5Ny43Mi4xODcgMS4wNTUuMzQ1LjMzNC4xNTcuNjQ1LjM5LjgzLjcxMi4wMy4wNS4wNTUuMTA1LjA4Ny4xNTYuMDMyLjA1LjA3LjA5Ny4xMTYuMTMzLjA0Ny4wMzUuMTA3LjA2LjE2NS4wNTYuMDMtLjAwMi4wNi0uMDEuMDg1LS4wMjRhLjE1NS4xNTUgMCAwIDAgLjA2Mi0uMDY0LjIwMS4yMDEgMCAwIDAgLjAxOC0uMS40OC40OCAwIDAgMC0uMDE4LS4xYy0uMTIyLS40NDUtLjQxMS0uODIyLS42MjktMS4yMjktLjEzLS4yNDQtLjI0LS40OTktLjM3LS43NDItLjQ1Ni0uODM1LTEuMjA0LTEuNDktMi4wNTQtMS45MTUtLjg1LS40MjUtMS43OTgtLjYzLTIuNzQ3LS42ODQtMS4wOTktLjA2Ni0yLjIuMDY2LTMuMjgzLjI1Ny0uNDcuMDgyLS45NDkuMTgtMS4zNjMuNDE0LS4yMDguMTE2LS40LjI2Ni0uNTQ3LjQ1NC0uMTUuMTg1LS4yNTYuNDA5LS4yOTEuNjQ1LS4wMzIuMjI5LjAwMi40NjMuMDgyLjY3OS4wOC4yMTUuMjAzLjQxMi4zNS41OS4yODguMzU4LjY2MS42MzYgMS4wMDQuOTQzLjM0My4zMDYuNjYuNjQ1IDEuMDQ0Ljg5OS4xOTIuMTI3LjQuMjMyLjYyMS4yOTQuMjIxLjA2Mi40NTguMDc5LjY4My4wMzJhMS41NyAxLjU3IDAgMCAwIC42MzktLjMwOCAzLjQ1IDMuNDUgMCAwIDAgLjUwOC0uNDk4Yy4zMTEtLjM2Mi42MDItLjc1OCAxLjAxLTEuMDAyWiIvPjwvZz48ZyBmaWx0ZXI9InVybCgjYWcpIj48cGF0aCBmaWxsPSJ1cmwoI2FoKSIgZD0iTTIwLjc3IDYuODU3Yy40MDQuMzc5LjcwNC44NDcuOTA5IDEuMzQyLS4wOS0uNTQ1LS4yMy0uOTg2LS41ODctMS4zNDJhMi43NDQgMi43NDQgMCAwIDAtLjc0Ni0uNTFjLS4yNDgtLjExLS41Mi0uMTgtLjY3Ny0uMTgyLS4xNTYtLjAwNC0uMTkzIDAtLjIyNS4wMDItLjAzNC4wMDItLjA1OC4wMDIuMDQzLjAxNS4xMDEuMDExLjMyOC4wNzMuNTcyLjE4Mi4yNDMuMTA5LjQ5MS4yODguNzEuNDkzWiIvPjwvZz48cGF0aCBmaWxsPSJ1cmwoI2FpKSIgZD0iTTI0LjY3NyA3LjE3N2MtLjQ0OC4zMS0uODI1Ljc0LTEuMDA5IDEuMjUzLS4yMzIuNjQ3LS4xNDQgMS4zNy4wOCAyLjAyLjIzLjY2NS42MTQgMS4yOTkgMS4xOTMgMS42OTguMjg5LjIuNjI1LjMzOC45NzMuMzc5LjM1MS4wNDEuNzEzLS4wMTcgMS4wMjYtLjE3OC4zNzktLjE5OS42Ny0uNTQ2Ljg1LS45MzQuMTgtLjM5LjI1Ni0uODIuMjgtMS4yNDlhNC4yMDQgNC4yMDQgMCAwIDAtLjIwMi0xLjYxNGMtLjE5NS0uNTYtLjU0Ny0xLjA3OC0xLjA0Ni0xLjRhMi4wMzkgMi4wMzkgMCAwIDAtLjgyNS0uMzE0IDEuNzYzIDEuNzYzIDAgMCAwLS44NzYuMDk4IDIuMjcgMi4yNyAwIDAgMC0uNDQ0LjI0MVoiLz48cGF0aCBmaWxsPSIjMDIwMjA0IiBkPSJNMjUuNzE0IDguNTM1Yy0uMTY5LjAxMS0uMzM0LjA3LS40NzguMTZhMS4yNCAxLjI0IDAgMCAwLS4zNi4zNTJjLS4xOTQuMjgtLjI3OC42Mi0uMjkxLjk2LS4wMS4yNTMuMDE5LjUxLjEwMy43NS4wODUuMjQuMjI1LjQ2My40MjIuNjI0LjIuMTY3LjQ1NC4yNjcuNzE0LjI4LjI2MS4wMS41MjMtLjA2NC43MzctLjIxMmExLjMxIDEuMzEgMCAwIDAgLjQwNS0uNDY1Yy4wOTgtLjE4Mi4xNTgtLjM4NS4xODQtLjU5YTEuODIzIDEuODIzIDAgMCAwLS4xNzQtMS4wNjggMS40ODYgMS40ODYgMCAwIDAtLjc5NS0uNzIgMS4xMzkgMS4xMzkgMCAwIDAtLjQ2Ny0uMDcxWiIvPjxtYXNrIGlkPSJhaiIgd2lkdGg9IjQiIGhlaWdodD0iNCIgeD0iMjQiIHk9IjgiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMjUuNzE0IDguNTM1Yy0uMTY5LjAxMS0uMzM0LjA3LS40NzguMTZhMS4yNCAxLjI0IDAgMCAwLS4zNi4zNTJjLS4xOTQuMjgtLjI3OC42Mi0uMjkxLjk2LS4wMS4yNTMuMDE5LjUxLjEwMy43NS4wODUuMjQuMjI1LjQ2My40MjIuNjI0LjIuMTY3LjQ1NC4yNjcuNzE0LjI4LjI2MS4wMS41MjMtLjA2NC43MzctLjIxMmExLjMxIDEuMzEgMCAwIDAgLjQwNS0uNDY1Yy4wOTgtLjE4Mi4xNTgtLjM4NS4xODQtLjU5YTEuODIzIDEuODIzIDAgMCAwLS4xNzQtMS4wNjggMS40ODYgMS40ODYgMCAwIDAtLjc5NS0uNzIgMS4xMzkgMS4xMzkgMCAwIDAtLjQ2Ny0uMDcxWiIvPjwvbWFzaz48ZyBmaWx0ZXI9InVybCgjYWspIiBtYXNrPSJ1cmwoI2FqKSI+PHBhdGggZmlsbD0idXJsKCNhbCkiIGQ9Ik0yNi43NTggMTAuMDA1Yy4xODgtLjE4Ny0uMTMzLS42ODQtLjM4NC0uODg5LS4xODItLjE0Ni0uNzA5LS4zMDItLjY4Ni0uMTQuMDIyLjE1OS4yNi4zNjUuNDE4LjUyMy4xOTYuMTkzLjU2Mi41OTYuNjUyLjUwNloiLz48L2c+PG1hc2sgaWQ9ImFtIiB3aWR0aD0iNiIgaGVpZ2h0PSI3IiB4PSIyMyIgeT0iNiIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0yNC42NzcgNy4xNzdjLS40NDguMzEtLjgyNS43NC0xLjAwOSAxLjI1My0uMjMyLjY0Ny0uMTQ0IDEuMzcuMDggMi4wMi4yMy42NjUuNjE0IDEuMjk5IDEuMTkzIDEuNjk4LjI4OS4yLjYyNS4zMzguOTczLjM3OS4zNTEuMDQxLjcxMy0uMDE3IDEuMDI2LS4xNzguMzc5LS4xOTkuNjctLjU0Ni44NS0uOTM0LjE4LS4zOS4yNTYtLjgyLjI4LTEuMjQ5YTQuMjA0IDQuMjA0IDAgMCAwLS4yMDItMS42MTRjLS4xOTUtLjU2LS41NDctMS4wNzgtMS4wNDYtMS40YTIuMDM5IDIuMDM5IDAgMCAwLS44MjUtLjMxNCAxLjc2MyAxLjc2MyAwIDAgMC0uODc2LjA5OCAyLjI3IDIuMjcgMCAwIDAtLjQ0NC4yNDFaIi8+PC9tYXNrPjxnIG1hc2s9InVybCgjYW0pIj48cGF0aCBmaWxsPSJ1cmwoI2FuKSIgZD0iTTIyLjk4IDguODE0Yy4zODYtLjMyLjgzNC0uNTY0IDEuMzEzLS43MTIuOTg0LS4zMDQgMi4xLS4xODQgMi45Ny4zNy4zLjE4OS41NjguNDI1Ljg0Ny42NDYuMjc3LjIyLjU3NC40MjYuOTEuNTQ0YTEuMyAxLjMgMCAwIDAgLjU2Ni4wOGMuMTcyLS4wMTYuMzM5LS4wODIuNDgyLS4xOC4xNDItLjA5OS4yNjItLjIzLjM1Mi0uMzc4LjE4LS4yOTcuMjM4LS42NTcuMjA2LTEuMDAyLS4wNjItLjY5MS0uNDUyLTEuMy0uNzc4LTEuOTE0LS4xMDMtLjE5MS0uMi0uMzg2LS4zMjQtLjU2NC0uMzc3LS41NS0uOTgtLjkxMi0xLjYxMy0xLjEyMy0uNjMyLS4yMTItMS4zLS4yOS0xLjk2MS0uMzcyLS4yOTYtLjAzNy0uNTk0LS4wNzctLjg4OS0uMDQtLjM0LjA0LS42NTguMTc3LS45OS4yNjItLjE1Ny4wNC0uMzE3LjA2OS0uNDcyLjExNC0uMTU2LjA0NS0uMzEuMTA3LS40MzcuMjA4LS4xODQuMTQ4LS4zLjM3MS0uMzUuNjAyLS4wNTEuMjMyLS4wNC40NzItLjAwMy43MDcuMDczLjQ2OS4yNS45MjQuMjMzIDEuMzk5LS4wMTEuMzI0LS4xMTUuNjQ1LS4xMDEuOTY5LjAwMy4wOTYuMDIyLjI5LjAzOS4zODRaIi8+PC9nPjxnIGZpbHRlcj0idXJsKCNhbykiPjxwYXRoIGZpbGw9InVybCgjYXApIiBkPSJNMjYuMjM3IDUuODQ2YTEuNjMgMS42MyAwIDAgMC0uMi4zMTljLjM0Ni4wNzUuNjc2LjIxOC45NzIuNDE0LjU3NC4zODEgMS4wMS45MzYgMS4zMTUgMS41NTUuMDcxLS4wNzkuMTM1LS4xNjMuMTkxLS4yNTctLjMwOC0uNjQ1LS43NS0xLjIyOC0xLjM0My0xLjYyMmEyLjg5OCAyLjg5OCAwIDAgMC0uOTM1LS40MDlaIi8+PC9nPjxtYXNrIGlkPSJhcSIgd2lkdGg9IjI4IiBoZWlnaHQ9IjQ3IiB4PSIxMCIgeT0iMCIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0yMy44MDMgMGMtMS4xMjUgMC0yLjI1NC4yMjEtMy4yNzQuNzcyYTYuMDI1IDYuMDI1IDAgMCAwLTIuNTE4IDIuNjJjLS41NDcgMS4xMDItLjc2MSAyLjI4LS43OTUgMy41NzctLjA2MiAyLjQ2NC4wNTYgNS4wNDguMjQyIDcuMzkuMDQ5LjcxMi4xMzkgMS4xMjkuMDQ3IDEuODYyLS4zMDQgMS41NTYtMS42NjUgMi42MDItMi4zOTIgMy45NjktLjgwMSAxLjUwOC0xLjEzOSAzLjIxMi0xLjc0MiA0LjgxLS41NTMgMS40Ni0xLjMzIDIuODMtMS44NTMgNC4zMDItLjczMyAyLjA1Ny0uOTUyIDQuMzE5LS40NjkgNi40NDkuMzcgMS42MjMgMS4xNCAzLjE0NiAyLjE4IDQuNDQ5LS4xNS4yNy0uMjk3LjU0Ni0uNDUuODE0LS40ODMuODMtMS4wNzIgMS42Mi0xLjM0NSAyLjU0LS4xMzcuNDYtLjE5MS45NTEtLjEwMyAxLjQyMy4wODguNDczLjMyOC45MjUuNzAzIDEuMjI1LjI0NS4xOTUuNTQzLjMyMi44NS4zOTQuMzA1LjA2OS42MjIuMDg2LjkzNy4wOCAxLjE5NC0uMDI2IDIuMzUzLS4zODggMy41MDgtLjY5MmE0MS44NSA0MS44NSAwIDAgMSAyLjA2OC0uNDgzYzIuNDY0LS41MDUgNS4yMTItLjMwMiA3LjQ5OC4wMjguNzc0LjExOCAxLjU0My4yNyAyLjMwNC40NTUgMS4xOTMuMjkgMi4zOC42NTcgMy42MDYuNjkyLjMyMi4wMS42NDktLjAwNS45NjQtLjA3NS4zMTUtLjA3MS42Mi0uMTk4Ljg3Mi0uNC4zNzctLjMuNjE3LS43NTMuNzA1LTEuMjI1LjA4OC0uNDczLjAzMy0uOTY2LS4xMDUtMS40MjctLjI3OC0uOTIzLS44NzItMS43MDgtMS4zNjQtMi41MzUtLjE5NS0uMzI4LS4zNzUtLjY2Mi0uNTY4LS45OSAxLjQ4Mi0xLjY2MyAyLjY3NC0zLjU4NyAzLjM2NC01LjcuNzUyLTIuMzA2Ljg5LTQuNzkuNTc0LTcuMTk2LS4zMTctMi40MDYtMS4wOC00LjczOS0yLjA4My02Ljk0Ny0xLjI2LTIuNzY4LTIuMzItMy43Ny0zLjA4OC02LjIwMS0uODMtMi42MjktLjE0NS01Ljc0LS43NjItOC4xMjNhOC4zMzMgOC4zMzMgMCAwIDAtMS4wMjEtMi4yOTMgNy44NTYgNy44NTYgMCAwIDAtMS45OTctMi4xNUMyNy4wMjQuNDkgMjUuNDI2IDAgMjMuODAzIDBaIi8+PC9tYXNrPjxnIGZpbHRlcj0idXJsKCNhcikiIG1hc2s9InVybCgjYXEpIj48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii4yNTkiIGQ9Ik0xOC45NiAxNi43NWMuMjc2Ljc5OC44MjkgMS40NzkgMS40ODUgMi4wMS4yMTguMTc3LjQ0OC4zNC43MDUuNDU1LjI1NS4xMTYuNTM4LjE4Mi44MTguMTU3LjI3My0uMDIyLjUzNC0uMTMuNzc0LS4yNjYuMjQtLjEzNS40NjEtLjI5OC42OTQtLjQ0NC4zOTctLjI1My44MjMtLjQ1OCAxLjIzNy0uNjgzLjQ5Ny0uMjcxLjk4LS41OCAxLjM5OS0uOTYzLjE5My0uMTc1LjM3MS0uMzY2LjU4My0uNTE2LjIxMi0uMTUyLjQ2Ny0uMjYuNzI2LS4yNDIuMTk1LjAxMy4zNzcuMDk2LjU2OC4xMzcuMDk1LjAyLjE5My4wMy4yOS4wMTVhLjQ0NS40NDUgMCAwIDAgLjI1Ny0uMTI2LjQ0OS40NDkgMCAwIDAgLjExNS0uMzMuNzg0Ljc4NCAwIDAgMC0uMTAyLS4zMzljLS4xMS0uMjEyLS4yNzktLjM5NC0uMzU0LS42Mi0uMDY4LS4yMDMtLjA1NC0uNDItLjA0OS0uNjMyLjAwNi0uMjE0LjAwMi0uNDM1LS4wOTUtLjYyNWEuODEzLjgxMyAwIDAgMC0uMzQzLS4zMzIgMS4yMTYgMS4yMTYgMCAwIDAtLjQ2NS0uMTMxYy0uMzIzLS4wMy0uNjQ1LjAzNC0uOTcuMDUtLjQyNy4wMjUtLjg1OS0uMDI3LTEuMjg4LS4wMDMtLjUzNC4wMzQtMS4wNi4xODctMS41OTYuMTktLjYxLjAwMS0xLjIyMi0uMi0xLjgyNi0uMTA0LS4yNi4wNDEtLjUwOC4xMzUtLjc1Ni4yMTgtLjI0OS4wODQtLjUwNi4xNTctLjc2OC4xNTMtLjI5OC0uMDA1LS41ODctLjEwOC0uODg1LS4xMjktLjE0OC0uMDExLS4zIDAtLjQ0LjA1M2EuNjE3LjYxNyAwIDAgMC0uMzM1LjI4LjU4Ni41ODYgMCAwIDAtLjA2MS4yNDYuOTAyLjkwMiAwIDAgMCAuMDI4LjI1NWMuMDQuMTY1LjExOC4zMjEuMTguNDc5LjIyNS41NzUuMjczIDEuMjAzLjQ3NCAxLjc4NloiLz48L2c+PG1hc2sgaWQ9ImFzIiB3aWR0aD0iMjgiIGhlaWdodD0iNDciIHg9IjEwIiB5PSIwIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBzdHlsZT0ibWFzay10eXBlOmx1bWluYW5jZSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTIzLjgwMyAwYy0xLjEyNSAwLTIuMjU0LjIyMS0zLjI3NC43NzJhNi4wMjUgNi4wMjUgMCAwIDAtMi41MTggMi42MmMtLjU0NyAxLjEwMi0uNzYxIDIuMjgtLjc5NSAzLjU3Ny0uMDYyIDIuNDY0LjA1NiA1LjA0OC4yNDIgNy4zOS4wNDkuNzEyLjEzOSAxLjEyOS4wNDcgMS44NjItLjMwNCAxLjU1Ni0xLjY2NSAyLjYwMi0yLjM5MiAzLjk2OS0uODAxIDEuNTA4LTEuMTM5IDMuMjEyLTEuNzQyIDQuODEtLjU1MyAxLjQ2LTEuMzMgMi44My0xLjg1MyA0LjMwMi0uNzMzIDIuMDU3LS45NTIgNC4zMTktLjQ2OSA2LjQ0OS4zNyAxLjYyMyAxLjE0IDMuMTQ2IDIuMTggNC40NDktLjE1LjI3LS4yOTcuNTQ2LS40NS44MTQtLjQ4My44My0xLjA3MiAxLjYyLTEuMzQ1IDIuNTQtLjEzNy40Ni0uMTkxLjk1MS0uMTAzIDEuNDIzLjA4OC40NzMuMzI4LjkyNS43MDMgMS4yMjUuMjQ1LjE5NS41NDMuMzIyLjg1LjM5NC4zMDUuMDY5LjYyMi4wODYuOTM3LjA4IDEuMTk0LS4wMjYgMi4zNTMtLjM4OCAzLjUwOC0uNjkyYTQxLjg1IDQxLjg1IDAgMCAxIDIuMDY4LS40ODNjMi40NjQtLjUwNSA1LjIxMi0uMzAyIDcuNDk4LjAyOC43NzQuMTE4IDEuNTQzLjI3IDIuMzA0LjQ1NSAxLjE5My4yOSAyLjM4LjY1NyAzLjYwNi42OTIuMzIyLjAxLjY0OS0uMDA1Ljk2NC0uMDc1LjMxNS0uMDcxLjYyLS4xOTguODcyLS40LjM3Ny0uMy42MTctLjc1My43MDUtMS4yMjUuMDg4LS40NzMuMDMzLS45NjYtLjEwNS0xLjQyNy0uMjc4LS45MjMtLjg3Mi0xLjcwOC0xLjM2NC0yLjUzNS0uMTk1LS4zMjgtLjM3NS0uNjYyLS41NjgtLjk5IDEuNDgyLTEuNjYzIDIuNjc0LTMuNTg3IDMuMzY0LTUuNy43NTItMi4zMDYuODktNC43OS41NzQtNy4xOTYtLjMxNy0yLjQwNi0xLjA4LTQuNzM5LTIuMDgzLTYuOTQ3LTEuMjYtMi43NjgtMi4zMi0zLjc3LTMuMDg4LTYuMjAxLS44My0yLjYyOS0uMTQ1LTUuNzQtLjc2Mi04LjEyM2E4LjMzMyA4LjMzMyAwIDAgMC0xLjAyMS0yLjI5MyA3Ljg1NiA3Ljg1NiAwIDAgMC0xLjk5Ny0yLjE1QzI3LjAyNC40OSAyNS40MjYgMCAyMy44MDMgMFoiLz48L21hc2s+PGcgZmlsdGVyPSJ1cmwoI2F0KSIgbWFzaz0idXJsKCNhcykiIG9wYWNpdHk9Ii4zIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMTguMTkzIDE0LjQ3NWMuNTM0LjMzIDEuMDE0LjczNyAxLjQxOCAxLjE5OC4zNzMuNDMuNjkuOTE3IDEuMTc5IDEuMjM0LjM0My4yMjUuNzU4LjM1IDEuMTc4LjM5LjQ5My4wNDUuOTkxLS4wMjggMS40NjgtLjE1OC40NC0uMTE4Ljg2Ni0uMjg3IDEuMjU2LS41MDguNzQ0LS40MjIgMS4zNjUtMS4wNCAyLjE4NC0xLjMxOC4xNzgtLjA2Mi4zNjQtLjEwNS41MzctLjE4LjE3Mi0uMDczLjMzNS0uMTg1LjQxOC0uMzQzLjA3OC0uMTU0LjA3NS0uMzI4LjEtLjQ5NS4wMjktLjE4LjA5LS4zNTIuMTI1LS41My4wMzMtLjE3OS4wMzctLjM2OC0uMDQ1LS41MzFhLjczMi43MzIgMCAwIDAtLjM0LS4zMTIgMS4yNDkgMS4yNDkgMCAwIDAtLjQ3LS4xMDRjLS4zMjMtLjAxNS0uNjQzLjA2MS0uOTY4LjA4OC0uNDI3LjAzNS0uODU5LS4wMTUtMS4yODgtLjAwMi0uNTM0LjAxNS0xLjA2MS4xMjUtMS41OTYuMTUtLjYwOS4wMjYtMS4yMTYtLjA2NC0xLjgyNi0uMDgzYTMuOTUyIDMuOTUyIDAgMCAwLS43OS4wMzhjLS4yNi4wNDEtLjUxNS4xMjItLjczNC4yNTctLjIxNC4xMjktLjM4OC4zMDctLjU4My40NTlhMS43MiAxLjcyIDAgMCAxLS4zMTUuMi45OTguOTk4IDAgMCAxLS4zNjguMDk2Yy0uMDY2LjAwMi0uMTMzLS4wMDItLjE5Ny4wMDhhLjQyMy40MjMgMCAwIDAtLjI3NS4xNTUuMzYzLjM2MyAwIDAgMC0uMDY4LjI5MVoiLz48L2c+PHBhdGggZmlsbD0idXJsKCNhdSkiIGQ9Ik0yMC45MzYgMTAuOTc0Yy4yODctLjMyLjQ4Mi0uNzEyLjc1Ni0xLjA0Mi4xMzctLjE2NS4yOTYtLjMxNy40ODItLjQyNC4xODUtLjEwNy40MDMtLjE2Ny42MTctLjE0OC4yMzguMDIuNDYuMTM5LjYzNS4zMDIuMTc1LjE2My4zMDQuMzcuNDA3LjU4NS4xLjIwOC4xNzguNDI3LjMyLjYwNy4xNTMuMTkyLjM2NC4zMjEuNTU4LjQ3My4wOTUuMDc1LjE4OS4xNTUuMjY0LjI1MWEuNzk3Ljc5NyAwIDAgMSAuMTYxLjMyNi42OTUuNjk1IDAgMCAxLS4wMy4zNjYuODI3LjgyNyAwIDAgMS0uMjA0LjMwOCAxLjE4NiAxLjE4NiAwIDAgMS0uNjY4LjNjLS40OS4wNjktLjk4OC0uMDc3LTEuNDg1LS4wNjQtLjUuMDE1LS45OTEuMTkxLTEuNDk0LjE3NGExLjMzNyAxLjMzNyAwIDAgMS0uNzEtLjIxNC45NDEuOTQxIDAgMCAxLS4yNi0uMjcxLjc2OS43NjkgMCAwIDEtLjEwOC0uMzU3Ljc5OS43OTkgMCAwIDEgLjA3My0uMzQ5Yy4wNDctLjExLjExNC0uMjEuMTktLjMwMy4xNTEtLjE4Ni4zMzctLjM0LjQ5Ni0uNTJaIi8+PHBhdGggZmlsbD0idXJsKCNhdikiIGQ9Ik0xOC4yMTQgMTQuMDcyYS41MDkuNTA5IDAgMCAwIC4wNTIuMTM3Yy4wNDMuMDcxLjEwNy4xMy4xNzUuMTc4LjA2Ny4wNS4xNC4wOTIuMjEyLjEzNS4zNzYuMjM4LjY4NC41Ny45NTguOTIyLjM2NS40NzMuNjkuOTk2IDEuMTc5IDEuMzQuMzQ1LjI0My43NTguMzggMS4xNzguNDIzLjQ5My4wNDkuOTkxLS4wMyAxLjQ2OC0uMTcuNDQtLjEzLjg2Ni0uMzEyIDEuMjU2LS41NTQuNzQ0LS40NTcgMS4zNjUtMS4xMjkgMi4xODQtMS40My4xNzgtLjA2Ni4zNjQtLjExMy41MzctLjE5NC4xNzItLjA4Mi4zMzUtLjIwMi40MTgtLjM3NS4wNzgtLjE2NS4wNzUtLjM1Ni4xLS41MzguMDI5LS4xOTMuMDktLjM4LjEyNS0uNTczLjAzMy0uMTk0LjAzNy0uNC0uMDQ1LS41NzhhLjc0NC43NDQgMCAwIDAtLjM0LS4zMzYgMS4xMzEgMS4xMzEgMCAwIDAtLjQ3LS4xMTZjLS4zMjMtLjAxNS0uNjQzLjA2OC0uOTY4LjA5OC0uNDI3LjAzOS0uODU5LS4wMTctMS4yODgtLjAwNC0uNTM0LjAxNy0xLjA2MS4xMzctMS41OTYuMTYzLS42MDkuMDI4LTEuMjE2LS4wNjYtMS44MjYtLjA5YTMuNzE4IDMuNzE4IDAgMCAwLS43OTEuMDM3Yy0uMjYuMDQ0LS41MTYuMTM0LS43MzMuMjg0LS4yMTIuMTQ2LS4zOC4zNDUtLjU3Ni41MTNhMS40OCAxLjQ4IDAgMCAxLS4zMTkuMjE4Ljc5OC43OTggMCAwIDEtLjM3LjA4OGMtLjA2Ny0uMDAyLS4xMzYtLjAxMS0uMTk4LjAwOGEuMjkzLjI5MyAwIDAgMC0uMTA1LjA2NS42My42MyAwIDAgMC0uMDc3LjA5OCAxLjU2NyAxLjU2NyAwIDAgMC0uMTQuMjVaIi8+PG1hc2sgaWQ9ImF3IiB3aWR0aD0iMTEiIGhlaWdodD0iNiIgeD0iMTgiIHk9IjEyIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBzdHlsZT0ibWFzay10eXBlOmx1bWluYW5jZSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE4LjIxNCAxNC4wNzJhLjUwOS41MDkgMCAwIDAgLjA1Mi4xMzdjLjA0My4wNzEuMTA3LjEzLjE3NS4xNzguMDY3LjA1LjE0LjA5Mi4yMTIuMTM1LjM3Ni4yMzguNjg0LjU3Ljk1OC45MjIuMzY1LjQ3My42OS45OTYgMS4xNzkgMS4zNC4zNDUuMjQzLjc1OC4zOCAxLjE3OC40MjMuNDkzLjA0OS45OTEtLjAzIDEuNDY4LS4xNy40NC0uMTMuODY2LS4zMTIgMS4yNTYtLjU1NC43NDQtLjQ1NyAxLjM2NS0xLjEyOSAyLjE4NC0xLjQzLjE3OC0uMDY2LjM2NC0uMTEzLjUzNy0uMTk0LjE3Mi0uMDgyLjMzNS0uMjAyLjQxOC0uMzc1LjA3OC0uMTY1LjA3NS0uMzU2LjEtLjUzOC4wMjktLjE5My4wOS0uMzguMTI1LS41NzMuMDMzLS4xOTQuMDM3LS40LS4wNDUtLjU3OGEuNzQ0Ljc0NCAwIDAgMC0uMzQtLjMzNiAxLjEzMSAxLjEzMSAwIDAgMC0uNDctLjExNmMtLjMyMy0uMDE1LS42NDMuMDY4LS45NjguMDk4LS40MjcuMDM5LS44NTktLjAxNy0xLjI4OC0uMDA0LS41MzQuMDE3LTEuMDYxLjEzNy0xLjU5Ni4xNjMtLjYwOS4wMjgtMS4yMTYtLjA2Ni0xLjgyNi0uMDlhMy43MTggMy43MTggMCAwIDAtLjc5MS4wMzdjLS4yNi4wNDQtLjUxNi4xMzQtLjczMy4yODQtLjIxMi4xNDYtLjM4LjM0NS0uNTc2LjUxM2ExLjQ4IDEuNDggMCAwIDEtLjMxOS4yMTguNzk4Ljc5OCAwIDAgMS0uMzcuMDg4Yy0uMDY3LS4wMDItLjEzNi0uMDExLS4xOTguMDA4YS4yOTMuMjkzIDAgMCAwLS4xMDUuMDY1LjYzLjYzIDAgMCAwLS4wNzcuMDk4IDEuNTY3IDEuNTY3IDAgMCAwLS4xNC4yNVoiLz48L21hc2s+PGcgZmlsdGVyPSJ1cmwoI2F4KSIgbWFzaz0idXJsKCNhdykiPjxwYXRoIGZpbGw9IiNEOUIzMEQiIGQ9Ik0yMC42MDYgMTQuNzNhMS4wNzQgMS4wNzQgMCAwIDAgLjcwMyAxLjI2OGMuMzIuMTA2LjY4LjA1NC45NzctLjEwMi4xNzUtLjA5LjMzMi0uMjE3LjQzMS0uMzg2YS43MS43MSAwIDAgMCAuMS0uMjc0LjYzMi42MzIgMCAwIDAtLjAzLS4yODkuNjQ3LjY0NyAwIDAgMC0uMTg2LS4yNTYuODM4LjgzOCAwIDAgMC0uMjgxLS4xNTQgMi44NjEgMi44NjEgMCAwIDAtLjczMy0uMTI4Yy0uMzc5LS4wMDctLjkxOS4wNjQtLjk4LjMyMVoiLz48L2c+PG1hc2sgaWQ9ImF5IiB3aWR0aD0iMTEiIGhlaWdodD0iNiIgeD0iMTgiIHk9IjEyIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBzdHlsZT0ibWFzay10eXBlOmx1bWluYW5jZSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE4LjIxNCAxNC4wNzJhLjUwNC41MDQgMCAwIDAgLjA1Mi4xMzdjLjA0My4wNzEuMTA3LjEzLjE3NS4xNzguMDY3LjA1LjE0LjA5Mi4yMTIuMTM1LjM3Ni4yMzguNjg0LjU3Ljk1OC45MjIuMzY1LjQ3My42OS45OTYgMS4xNzkgMS4zNC4zNDUuMjQzLjc1OC4zOCAxLjE3OC40MjMuNDkzLjA0OS45OTEtLjAzIDEuNDY4LS4xNy40NC0uMTMuODY2LS4zMTIgMS4yNTYtLjU1NC43NDQtLjQ1NyAxLjM2NS0xLjEyOSAyLjE4NC0xLjQzLjE3OC0uMDY2LjM2NC0uMTEzLjUzNy0uMTk0LjE3Mi0uMDgyLjMzNS0uMjAyLjQxOC0uMzc1LjA3OC0uMTY1LjA3NS0uMzU2LjEtLjUzOC4wMjktLjE5My4wOS0uMzguMTI1LS41NzMuMDMzLS4xOTQuMDM3LS40LS4wNDUtLjU3OGEuNzQ1Ljc0NSAwIDAgMC0uMzQtLjMzNiAxLjEzMiAxLjEzMiAwIDAgMC0uNDctLjExNmMtLjMyMy0uMDE1LS42NDMuMDY4LS45NjguMDk4LS40MjcuMDM5LS44NTktLjAxNy0xLjI4OC0uMDA0LS41MzQuMDE3LTEuMDYxLjEzNy0xLjU5Ni4xNjMtLjYwOS4wMjgtMS4yMTYtLjA2Ni0xLjgyNi0uMDlhMy43MjQgMy43MjQgMCAwIDAtLjc5MS4wMzdjLS4yNi4wNDQtLjUxNi4xMzQtLjczMy4yODQtLjIxMi4xNDYtLjM4LjM0NS0uNTc2LjUxM2ExLjQ3NyAxLjQ3NyAwIDAgMS0uMzE5LjIxOC43OTcuNzk3IDAgMCAxLS4zNy4wODhjLS4wNjctLjAwMi0uMTM2LS4wMTEtLjE5OC4wMDhhLjI5Mi4yOTIgMCAwIDAtLjEwNS4wNjUuNjMuNjMgMCAwIDAtLjA3Ny4wOTggMS41NjMgMS41NjMgMCAwIDAtLjE0LjI1WiIvPjwvbWFzaz48ZyBmaWx0ZXI9InVybCgjYXopIiBtYXNrPSJ1cmwoI2F5KSI+PHBhdGggZmlsbD0iIzYwNDQwNSIgZD0iTTE5LjU1OCAxMi43MjRhOC44NzIgOC44NzIgMCAwIDAtLjYzLjQxMmMtLjEwNy4wNzctLjIxNi4xNTgtLjI3Mi4yNzZhLjY1LjY1IDAgMCAwLS4wNS4yNjhjMCAuMDk0LjAwNS4xODYtLjAwOC4yNzctLjAwNy4wNjItLjAyNC4xMjQtLjAyNi4xODZhLjMxMS4zMTEgMCAwIDAgLjAwNy4wOTRjLjAxLjAzLjAyNS4wNi4wNDUuMDgyLjAyOS4wMy4wNjYuMDUuMTA1LjA2LjA0LjAxMi4wOC4wMTcuMTIuMDI3LjE5LjA0NS4zNTUuMTYuNS4yOTIuMTQzLjEzLjI3NS4yNzguNDI3LjQuNDA4LjMzMy45NS40NzIgMS40NzkuNDguNTI5LjAwOSAxLjA1Mi0uMTAyIDEuNTY4LS4yMTguNDA0LS4wOTIuODEtLjE4NiAxLjE5OC0uMzNhNS4yNzcgNS4yNzcgMCAwIDAgMS42MzUtLjk3M2MuMjE5LS4xOS40MjMtLjM5OC42NjktLjU1MS4yMTYtLjEzNy40NTctLjIyNy42NzktLjM1N2EuNDIuNDIgMCAwIDAgLjA1Ni0uMDM3LjE5NS4xOTUgMCAwIDAgLjA0NS0uMDUzLjE2NS4xNjUgMCAwIDAgLjAwNi0uMTE2LjMzLjMzIDAgMCAwLS4wNTktLjEwMy44NjMuODYzIDAgMCAwLS4wOTEtLjA5NGMtLjIzMS0uMTk3LS41NDItLjI2OC0uODQ2LS4yOTItLjMwMi0uMDIzLS42MDctLjAwNi0uOTA2LS4wNTYtLjI4LS4wNDctLjU0Ny0uMTUyLS44MTktLjIzOWE1Ljc2MyA1Ljc2MyAwIDAgMC0yLjk2OC0uMTYxIDYuMTI2IDYuMTI2IDAgMCAwLTEuODY0LjcyNloiLz48L2c+PHBhdGggZmlsbD0idXJsKCNhQSkiIGQ9Ik0xOS40ODkgMTEuOTljLS4zMTIuMjEtLjU5My40NjctLjgzLjc1OGExLjgwOSAxLjgwOSAwIDAgMC0uMzI3LjU1MWMtLjA1NS4xNjItLjA3My4zMy0uMTA3LjQ5Ny0uMDEzLjA2Mi0uMDI4LjEyNC0uMDI2LjE4OCAwIC4wMy4wMDMuMDYyLjAxMy4wOTQuMDEuMDMuMDI2LjA1OC4wNDcuMDhhLjI3OC4yNzggMCAwIDAgLjEzOS4wN2MuMDUyLjAwOS4xMDUuMDEuMTU3LjAxNi4yMzQuMDI5LjQ1LjE0MS42NDUuMjc2LjE5NS4xMzMuMzc1LjI5LjU3Ni40MTYuNDQuMjguOTY3LjQwMyAxLjQ5LjQyNC41MjIuMDIgMS4wNDMtLjA1OCAxLjU1Ny0uMTYxLjQwNi0uMDguODExLS4xNzggMS4xOTgtLjMzLjU5Mi0uMjM1IDEuMTI3LS41OTMgMS42MzUtLjk3My4yMzItLjE3My40Ni0uMzUxLjY2OS0uNTUyLjA3LS4wNjkuMTM5LS4xMzguMjE0LS4yMDJhLjc3Ni43NzYgMCAwIDEgLjI1My0uMTQ2Ljk2Mi45NjIgMCAwIDEgLjQ0NC0uMDA4Yy4xMS4wMTkuMjIxLjA0My4zMzQuMDRhLjU1LjU1IDAgMCAwIC4xNjUtLjAzNC4zMjQuMzI0IDAgMCAwIC4xMzctLjA5OC4zMjMuMzIzIDAgMCAwIC4wNzEtLjIwNC40Mi40MiAwIDAgMC0uMDYtLjIxMi43Mi43MiAwIDAgMC0uMzQtLjI3NGMtLjE4NS0uMDgyLS4zODYtLjEyMi0uNTgyLS4xN2E4LjI5OSA4LjI5OSAwIDAgMS0xLjc1Mi0uNjRjLS4yNzctLjEzNy0uNTQ3LS4yODktLjgxOS0uNDM1YTUuMDEgNS4wMSAwIDAgMC0uODctLjM4OGMtLjY4My0uMjA2LTEuNDI1LS4xMzktMi4wOTguMDk2YTQuNDc3IDQuNDc3IDAgMCAwLTEuOTMzIDEuMzIyWiIvPjxtYXNrIGlkPSJhQiIgd2lkdGg9IjEwIiBoZWlnaHQ9IjYiIHg9IjE4IiB5PSIxMCIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0xOS40ODkgMTEuOTljLS4zMTIuMjEtLjU5My40NjctLjgzLjc1OGExLjgwOSAxLjgwOSAwIDAgMC0uMzI3LjU1MWMtLjA1NS4xNjItLjA3My4zMy0uMTA3LjQ5Ny0uMDEzLjA2Mi0uMDI4LjEyNC0uMDI2LjE4OCAwIC4wMy4wMDMuMDYyLjAxMy4wOTQuMDEuMDMuMDI2LjA1OC4wNDcuMDhhLjI3OC4yNzggMCAwIDAgLjEzOS4wN2MuMDUyLjAwOS4xMDUuMDEuMTU3LjAxNi4yMzQuMDI5LjQ1LjE0MS42NDUuMjc2LjE5NS4xMzMuMzc1LjI5LjU3Ni40MTYuNDQuMjguOTY3LjQwMyAxLjQ5LjQyNC41MjIuMDIgMS4wNDMtLjA1OCAxLjU1Ny0uMTYxLjQwNi0uMDguODExLS4xNzggMS4xOTgtLjMzLjU5Mi0uMjM1IDEuMTI3LS41OTMgMS42MzUtLjk3My4yMzItLjE3My40Ni0uMzUxLjY2OS0uNTUyLjA3LS4wNjkuMTM5LS4xMzguMjE0LS4yMDJhLjc3Ni43NzYgMCAwIDEgLjI1My0uMTQ2Ljk2Mi45NjIgMCAwIDEgLjQ0NC0uMDA4Yy4xMS4wMTkuMjIxLjA0My4zMzQuMDRhLjU1LjU1IDAgMCAwIC4xNjUtLjAzNC4zMjQuMzI0IDAgMCAwIC4xMzctLjA5OC4zMjMuMzIzIDAgMCAwIC4wNzEtLjIwNC40Mi40MiAwIDAgMC0uMDYtLjIxMi43Mi43MiAwIDAgMC0uMzQtLjI3NGMtLjE4NS0uMDgyLS4zODYtLjEyMi0uNTgyLS4xN2E4LjI5OSA4LjI5OSAwIDAgMS0xLjc1Mi0uNjRjLS4yNzctLjEzNy0uNTQ3LS4yODktLjgxOS0uNDM1YTUuMDEgNS4wMSAwIDAgMC0uODctLjM4OGMtLjY4My0uMjA2LTEuNDI1LS4xMzktMi4wOTguMDk2YTQuNDc3IDQuNDc3IDAgMCAwLTEuOTMzIDEuMzIyWiIvPjwvbWFzaz48ZyBmaWx0ZXI9InVybCgjYUMpIiBtYXNrPSJ1cmwoI2FCKSI+PHBhdGggZmlsbD0iI0Y2REE0QSIgZD0iTTI0LjI3MiAxMi4xNGEuMzA3LjMwNyAwIDAgMC0uMTQ2LS4wOTUuMzkuMzkgMCAwIDAtLjE3NS0uMDA4LjgzLjgzIDAgMCAwLS4zMTkuMTVjLS4yNzUuMTktLjUxOS40MjQtLjczMy42ODMtLjI4LjM0My0uNTEzLjczOS0uNTkyIDEuMTc2YS44MTQuODE0IDAgMCAwLS4wMTMuMjIzYy4wMS4wNzUuMDM3LjE0OC4wOTIuMmEuMzAxLjMwMSAwIDAgMCAuMTcyLjA4NS40My40MyAwIDAgMCAuMTk1LS4wMmMuMTI0LS4wNDIuMjI3LS4xMy4zMjYtLjIxNi41MzgtLjQ4NCAxLjAyNi0xLjA2MiAxLjIyMS0xLjc2YS44MjEuODIxIDAgMCAwIC4wMzYtLjIxMy4zMzEuMzMxIDAgMCAwLS4wNjQtLjIwNFoiLz48L2c+PGcgZmlsdGVyPSJ1cmwoI2FEKSIgb3BhY2l0eT0iLjgiPjxwYXRoIGZpbGw9InVybCgjYUUpIiBkPSJNMjEuMTM1IDExLjA3NGMtLjE0NC0uMDQ3LS4zOC4yMDYtLjMwNC4zMzUuMDIuMDM2LjA4Ny4wODEuMTMxLjA1Ny4wNjYtLjAzNi4xMi0uMTY3LjE5Mi0uMjE4LjA0Ny0uMDM0LjAzNy0uMTU3LS4wMTktLjE3NFoiLz48L2c+PGcgZmlsdGVyPSJ1cmwoI2FGKSIgb3BhY2l0eT0iLjgiPjxwYXRoIGZpbGw9InVybCgjYUcpIiBkPSJNMjIuOTggMTEuMTQxYy4wMzcuMTIuMjMuMS4zNDMuMTU4LjA5OC4wNS4xNzYuMTYxLjI4Ny4xNjUuMTA1LjAwMi4yNy0uMDM4LjI4My0uMTQzLjAxNy0uMTM3LS4xODQtLjIyNS0uMzEzLS4yNzUtLjE2Ny0uMDY0LS4zOC0uMDk4LS41MzYtLjAxMi0uMDM2LjAyMS0uMDc1LjA2OC0uMDY0LjEwN1oiLz48L2c+PG1hc2sgaWQ9ImFIIiB3aWR0aD0iMTEiIGhlaWdodD0iOCIgeD0iMTgiIHk9IjEwIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBzdHlsZT0ibWFzay10eXBlOmx1bWluYW5jZSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE4LjIxNCAxNC4wNzJhLjUwNC41MDQgMCAwIDAgLjA1Mi4xMzdjLjA0My4wNzEuMTA3LjEzLjE3NS4xNzguMDY3LjA1LjE0LjA5Mi4yMTIuMTM1LjM3Ni4yMzguNjg0LjU3Ljk1OC45MjIuMzY1LjQ3My42OS45OTYgMS4xNzkgMS4zNC4zNDUuMjQzLjc1OC4zOCAxLjE3OC40MjMuNDkzLjA0OS45OTEtLjAzIDEuNDY4LS4xNy40NC0uMTMuODY2LS4zMTIgMS4yNTYtLjU1NC43NDQtLjQ1NyAxLjM2NS0xLjEyOSAyLjE4NC0xLjQzLjE3OC0uMDY2LjM2NC0uMTEzLjUzNy0uMTk0LjE3Mi0uMDgyLjMzNS0uMjAyLjQxOC0uMzc1LjA3OC0uMTY1LjA3NS0uMzU2LjEtLjUzOC4wMjktLjE5My4wOS0uMzguMTI1LS41NzMuMDMzLS4xOTQuMDM3LS40LS4wNDUtLjU3OGEuNzQ1Ljc0NSAwIDAgMC0uMzQtLjMzNiAxLjEzMiAxLjEzMiAwIDAgMC0uNDctLjExNmMtLjMyMy0uMDE1LS42NDMuMDY4LS45NjguMDk4LS40MjcuMDM5LS44NTktLjAxNy0xLjI4OC0uMDA0LS41MzQuMDE3LTEuMDYxLjEzNy0xLjU5Ni4xNjMtLjYwOS4wMjgtMS4yMTYtLjA2Ni0xLjgyNi0uMDlhMy43MjQgMy43MjQgMCAwIDAtLjc5MS4wMzdjLS4yNi4wNDQtLjUxNi4xMzQtLjczMy4yODQtLjIxMi4xNDYtLjM4LjM0NS0uNTc2LjUxM2ExLjQ3NyAxLjQ3NyAwIDAgMS0uMzE5LjIxOC43OTcuNzk3IDAgMCAxLS4zNy4wODhjLS4wNjctLjAwMi0uMTM2LS4wMTEtLjE5OC4wMDhhLjI5Mi4yOTIgMCAwIDAtLjEwNS4wNjUuNjMuNjMgMCAwIDAtLjA3Ny4wOTggMS41NjMgMS41NjMgMCAwIDAtLjE0LjI1WiIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0xOS40ODkgMTEuOTljLS4zMTIuMjEtLjU5My40NjctLjgzLjc1OGExLjgwOSAxLjgwOSAwIDAgMC0uMzI3LjU1MWMtLjA1NS4xNjItLjA3My4zMy0uMTA3LjQ5Ny0uMDEzLjA2Mi0uMDI4LjEyNC0uMDI2LjE4OCAwIC4wMy4wMDMuMDYyLjAxMy4wOTQuMDEuMDMuMDI2LjA1OC4wNDcuMDhhLjI3OC4yNzggMCAwIDAgLjEzOS4wN2MuMDUyLjAwOS4xMDUuMDEuMTU3LjAxNi4yMzQuMDI5LjQ1LjE0MS42NDUuMjc2LjE5NS4xMzMuMzc1LjI5LjU3Ni40MTYuNDQuMjguOTY3LjQwMyAxLjQ5LjQyNC41MjIuMDIgMS4wNDMtLjA1OCAxLjU1Ny0uMTYxLjQwNi0uMDguODExLS4xNzggMS4xOTgtLjMzLjU5Mi0uMjM1IDEuMTI3LS41OTMgMS42MzUtLjk3My4yMzItLjE3My40Ni0uMzUxLjY2OS0uNTUyLjA3LS4wNjkuMTM5LS4xMzguMjE0LS4yMDJhLjc3Ni43NzYgMCAwIDEgLjI1My0uMTQ2Ljk2Mi45NjIgMCAwIDEgLjQ0NC0uMDA4Yy4xMS4wMTkuMjIxLjA0My4zMzQuMDRhLjU1LjU1IDAgMCAwIC4xNjUtLjAzNC4zMjQuMzI0IDAgMCAwIC4xMzctLjA5OC4zMjMuMzIzIDAgMCAwIC4wNzEtLjIwNC40Mi40MiAwIDAgMC0uMDYtLjIxMi43Mi43MiAwIDAgMC0uMzQtLjI3NGMtLjE4NS0uMDgyLS4zODYtLjEyMi0uNTgyLS4xN2E4LjI5OSA4LjI5OSAwIDAgMS0xLjc1Mi0uNjRjLS4yNzctLjEzNy0uNTQ3LS4yODktLjgxOS0uNDM1YTUuMDEgNS4wMSAwIDAgMC0uODctLjM4OGMtLjY4My0uMjA2LTEuNDI1LS4xMzktMi4wOTguMDk2YTQuNDc3IDQuNDc3IDAgMCAwLTEuOTMzIDEuMzIyWiIvPjwvbWFzaz48ZyBmaWx0ZXI9InVybCgjYUkpIiBtYXNrPSJ1cmwoI2FIKSI+PHBhdGggZmlsbD0idXJsKCNhSikiIGQ9Ik0yNy45ODggMTIuOTY2YS43MjMuNzIzIDAgMCAxLS4xODEuNDAzLjQ3Ny40NzcgMCAwIDEtLjM0Ni4xNjcuMzcuMzcgMCAwIDEtLjMwNy0uMTY3LjU5NC41OTQgMCAwIDEtLjA5LS40MDMuNzQzLjc0MyAwIDAgMSAuMTgtLjQwNS41NTIuNTUyIDAgMCAxIC4xNjUtLjEyNC40MTYuNDE2IDAgMCAxIC4xODItLjA0M2MuMDYgMCAuMTE5LjAxNC4xNzEuMDQzLjA1My4wMjkuMS4wNzEuMTM2LjEyNGEuNTIzLjUyMyAwIDAgMSAuMDguMTg2Yy4wMTUuMDcuMDE5LjE0My4wMS4yMTlaIi8+PC9nPjxkZWZzPjxmaWx0ZXIgaWQ9ImIiIHdpZHRoPSI4LjMyOSIgaGVpZ2h0PSI3Ljk1OCIgeD0iMTMuMyIgeT0iMTguNjY0IiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0ic2hhcGUiLz48ZmVHYXVzc2lhbkJsdXIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzMxMjBfNDgyNTUiIHN0ZERldmlhdGlvbj0iLjY0Ii8+PC9maWx0ZXI+PGZpbHRlciBpZD0iZSIgd2lkdGg9IjEyLjYxIiBoZWlnaHQ9IjkuOTQ0IiB4PSIyMS4yNzkiIHk9IjE3LjU2MSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+PGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl8zMTIwXzQ4MjU1IiBzdGREZXZpYXRpb249Ii45OCIvPjwvZmlsdGVyPjxmaWx0ZXIgaWQ9ImgiIHdpZHRoPSI2LjIyNCIgaGVpZ2h0PSI2LjQ2NiIgeD0iMTguNDMxIiB5PSIxOC44NTQiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPjxmZUdhdXNzaWFuQmx1ciByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMzEyMF80ODI1NSIgc3RkRGV2aWF0aW9uPSIuNjgiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJrIiB3aWR0aD0iNS42ODYiIGhlaWdodD0iMTQuNjk5IiB4PSIxNy40NjkiIHk9IjIzLjIxNCIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+PGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl8zMTIwXzQ4MjU1IiBzdGREZXZpYXRpb249IjEuMjUiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJtIiB3aWR0aD0iOC43NDgiIGhlaWdodD0iOC43ODIiIHg9IjI5LjgwNyIgeT0iMjEuMDQ1IiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0ic2hhcGUiLz48ZmVHYXVzc2lhbkJsdXIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzMxMjBfNDgyNTUiIHN0ZERldmlhdGlvbj0iMS43OCIvPjwvZmlsdGVyPjxmaWx0ZXIgaWQ9Im8iIHdpZHRoPSI5LjU4MSIgaGVpZ2h0PSI5LjQ0MyIgeD0iMjIuNjIxIiB5PSItMS40MDMiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPjxmZUdhdXNzaWFuQmx1ciByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMzEyMF80ODI1NSIgc3RkRGV2aWF0aW9uPSIxLjczIi8+PC9maWx0ZXI+PGZpbHRlciBpZD0icSIgd2lkdGg9IjUuMDg3IiBoZWlnaHQ9IjUuMzExIiB4PSIyNy45OTgiIHk9IjEyLjc0NiIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+PGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl8zMTIwXzQ4MjU1IiBzdGREZXZpYXRpb249Ii43OCIvPjwvZmlsdGVyPjxmaWx0ZXIgaWQ9InMiIHdpZHRoPSI4LjI2NyIgaGVpZ2h0PSIxNC4yMDkiIHg9IjkuMjM0IiB5PSIyMS4zNDMiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPjxmZUdhdXNzaWFuQmx1ciByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMzEyMF80ODI1NSIgc3RkRGV2aWF0aW9uPSIuOTgiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJ1IiB3aWR0aD0iOS4zMDIiIGhlaWdodD0iMTcuODUzIiB4PSIyOS41NzQiIHk9IjE5LjkzMSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+PGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl8zMTIwXzQ4MjU1IiBzdGREZXZpYXRpb249IjEuMTkiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJ4IiB3aWR0aD0iMjcuNjc0IiBoZWlnaHQ9IjI3LjU0NSIgeD0iLTIuMzk2IiB5PSIyNi40NzYiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPjxmZUdhdXNzaWFuQmx1ciByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMzEyMF80ODI1NSIgc3RkRGV2aWF0aW9uPSIzLjM4Ii8+PC9maWx0ZXI+PGZpbHRlciBpZD0ieiIgd2lkdGg9IjIwLjkzNyIgaGVpZ2h0PSIyMS43MDgiIHg9Ii42NTMiIHk9IjI4LjQyMiIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+PGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl8zMTIwXzQ4MjU1IiBzdGREZXZpYXRpb249IjIuMSIvPjwvZmlsdGVyPjxmaWx0ZXIgaWQ9IkIiIHdpZHRoPSI1LjUzMiIgaGVpZ2h0PSI4Ljk5NCIgeD0iMTIuNzEiIHk9IjM0LjY0OSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+PGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl8zMTIwXzQ4MjU1IiBzdGREZXZpYXRpb249Ii4zMiIvPjwvZmlsdGVyPjxmaWx0ZXIgaWQ9IkUiIHdpZHRoPSIxOS4zMzkiIGhlaWdodD0iMjAuMzYiIHg9IjI1LjU3OSIgeT0iMzEuNDM1IiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0ic2hhcGUiLz48ZmVHYXVzc2lhbkJsdXIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzMxMjBfNDgyNTUiIHN0ZERldmlhdGlvbj0iMS45NSIvPjwvZmlsdGVyPjxmaWx0ZXIgaWQ9IkkiIHdpZHRoPSIyOS4yNTgiIGhlaWdodD0iMjkuNDM4IiB4PSIyMi43NTIiIHk9IjI1LjU4OCIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+PGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl8zMTIwXzQ4MjU1IiBzdGREZXZpYXRpb249IjQuMTIiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJLIiB3aWR0aD0iMjQuNjc3IiBoZWlnaHQ9IjI0LjYxNCIgeD0iMjUuMjczIiB5PSIyNi42MTMiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPjxmZUdhdXNzaWFuQmx1ciByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMzEyMF80ODI1NSIgc3RkRGV2aWF0aW9uPSIzLjEyIi8+PC9maWx0ZXI+PGZpbHRlciBpZD0iTSIgd2lkdGg9IjEwLjUzMSIgaGVpZ2h0PSIzLjA3OCIgeD0iMzAuNTUxIiB5PSIzMi44NTIiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPjxmZUdhdXNzaWFuQmx1ciByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMzEyMF80ODI1NSIgc3RkRGV2aWF0aW9uPSIuNDEiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJQIiB3aWR0aD0iMTUuMyIgaGVpZ2h0PSIxNC41MTMiIHg9IjI4LjIxNyIgeT0iMjkuNTQ2IiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0ic2hhcGUiLz48ZmVHYXVzc2lhbkJsdXIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzMxMjBfNDgyNTUiIHN0ZERldmlhdGlvbj0iMi40NSIvPjwvZmlsdGVyPjxmaWx0ZXIgaWQ9IlMiIHdpZHRoPSI5Ljk4IiBoZWlnaHQ9IjcuODg3IiB4PSIzMC44NzciIHk9IjMxLjg5OSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+PGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl8zMTIwXzQ4MjU1IiBzdGREZXZpYXRpb249IjEuMTIiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJWIiB3aWR0aD0iOS4xNjMiIGhlaWdodD0iNi4xNiIgeD0iMzEuNzU4IiB5PSIzMC4zMTEiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPjxmZUdhdXNzaWFuQmx1ciByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMzEyMF80ODI1NSIgc3RkRGV2aWF0aW9uPSIuODgiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJZIiB3aWR0aD0iOS4xNjMiIGhlaWdodD0iNi4xNiIgeD0iMzEuNzU4IiB5PSIzMC4zMTEiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPjxmZUdhdXNzaWFuQmx1ciByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMzEyMF80ODI1NSIgc3RkRGV2aWF0aW9uPSIuODgiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJhYyIgd2lkdGg9IjIuNjA5IiBoZWlnaHQ9IjMuMTIxIiB4PSIxOC43NTkiIHk9IjguMTgiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPjxmZUdhdXNzaWFuQmx1ciByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMzEyMF80ODI1NSIgc3RkRGV2aWF0aW9uPSIuNDQiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJhZyIgd2lkdGg9IjIuNzQ0IiBoZWlnaHQ9IjIuNTE2IiB4PSIxOS4xNzQiIHk9IjUuOTIzIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0ic2hhcGUiLz48ZmVHYXVzc2lhbkJsdXIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzMxMjBfNDgyNTUiIHN0ZERldmlhdGlvbj0iLjEyIi8+PC9maWx0ZXI+PGZpbHRlciBpZD0iYWsiIHdpZHRoPSIyLjkyOCIgaGVpZ2h0PSIyLjkxMSIgeD0iMjQuNzg3IiB5PSI4LjAwNyIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+PGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl8zMTIwXzQ4MjU1IiBzdGREZXZpYXRpb249Ii40NSIvPjwvZmlsdGVyPjxmaWx0ZXIgaWQ9ImFvIiB3aWR0aD0iMi45OTkiIGhlaWdodD0iMi44MDgiIHg9IjI1Ljc3NiIgeT0iNS41ODYiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPjxmZUdhdXNzaWFuQmx1ciByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMzEyMF80ODI1NSIgc3RkRGV2aWF0aW9uPSIuMTMiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJhciIgd2lkdGg9IjE3LjMzNCIgaGVpZ2h0PSIxMy4xMTEiIHg9IjE0Ljc3NyIgeT0iOS43NjciIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPjxmZUdhdXNzaWFuQmx1ciByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMzEyMF80ODI1NSIgc3RkRGV2aWF0aW9uPSIxLjc1Ii8+PC9maWx0ZXI+PGZpbHRlciBpZD0iYXQiIHdpZHRoPSIxMy4wOTIiIGhlaWdodD0iNy42OTUiIHg9IjE2LjU4NiIgeT0iMTEuMjE2IiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0ic2hhcGUiLz48ZmVHYXVzc2lhbkJsdXIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzMxMjBfNDgyNTUiIHN0ZERldmlhdGlvbj0iLjgiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJheCIgd2lkdGg9IjUuMzI1IiBoZWlnaHQ9IjQuNzI1IiB4PSIxOS4wMzciIHk9IjEyLjg2OSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+PGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl8zMTIwXzQ4MjU1IiBzdGREZXZpYXRpb249Ii43NyIvPjwvZmlsdGVyPjxmaWx0ZXIgaWQ9ImF6IiB3aWR0aD0iMTEuMTQ3IiBoZWlnaHQ9IjYuMzA0IiB4PSIxNy4yNzEiIHk9IjEwLjU3NSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+PGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl8zMTIwXzQ4MjU1IiBzdGREZXZpYXRpb249Ii42NSIvPjwvZmlsdGVyPjxmaWx0ZXIgaWQ9ImFDIiB3aWR0aD0iNC45NjUiIGhlaWdodD0iNS40NDYiIHg9IjIwLjgzMSIgeT0iMTAuNTcxIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0ic2hhcGUiLz48ZmVHYXVzc2lhbkJsdXIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzMxMjBfNDgyNTUiIHN0ZERldmlhdGlvbj0iLjczIi8+PC9maWx0ZXI+PGZpbHRlciBpZD0iYUQiIHdpZHRoPSIuNzY4IiBoZWlnaHQ9Ii44MDUiIHg9IjIwLjYxNiIgeT0iMTAuODY4IiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0ic2hhcGUiLz48ZmVHYXVzc2lhbkJsdXIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzMxMjBfNDgyNTUiIHN0ZERldmlhdGlvbj0iLjEiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJhRiIgd2lkdGg9IjEuMzE2IiBoZWlnaHQ9Ii44ODEiIHg9IjIyLjc3OCIgeT0iMTAuNzgzIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0ic2hhcGUiLz48ZmVHYXVzc2lhbkJsdXIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzMxMjBfNDgyNTUiIHN0ZERldmlhdGlvbj0iLjEiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJhSSIgd2lkdGg9IjEuODUzIiBoZWlnaHQ9IjIuMDYyIiB4PSIyNi41OTkiIHk9IjExLjkzNCIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+PGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl8zMTIwXzQ4MjU1IiBzdGREZXZpYXRpb249Ii4yMyIvPjwvZmlsdGVyPjxyYWRpYWxHcmFkaWVudCBpZD0iYyIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDMuNTYyNSAwIDAgMy4zNzUgMTUuMjIxIDIyLjcyMykiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcC8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLW9wYWNpdHk9Ii4yNSIvPjwvcmFkaWFsR3JhZGllbnQ+PHJhZGlhbEdyYWRpZW50IGlkPSJmIiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoNC40MjUgMCAwIDMuMzc1IDI3LjMyNiAyNC42NzUpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3AvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1vcGFjaXR5PSIuMjUiLz48L3JhZGlhbEdyYWRpZW50PjxyYWRpYWxHcmFkaWVudCBpZD0iaSIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDEuNzUzMTIgMCAwIDEuODc1IDIxLjQxNCAyMy45KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3Atb3BhY2l0eT0iLjI1Ii8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9IlEiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09InJvdGF0ZSgxNSAtMTIwLjc0IDE1My4zMykgc2NhbGUoMy42ODYyNSAzLjg3KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMxMTA4MDAiLz48c3RvcCBvZmZzZXQ9Ii41OSIgc3RvcC1jb2xvcj0iI0E2NUEwMCIgc3RvcC1vcGFjaXR5PSIuOCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGOTIxRSIgc3RvcC1vcGFjaXR5PSIwIi8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9IlQiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgzLjY5Nzk1IC0uMTU2MjggLjExNzY1IDIuNzgzNzcgMzUuNTcgMzUuNjA0KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMxMTA4MDAiLz48c3RvcCBvZmZzZXQ9Ii41OSIgc3RvcC1jb2xvcj0iI0E2NUEwMCIgc3RvcC1vcGFjaXR5PSIuOCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGOTIxRSIgc3RvcC1vcGFjaXR5PSIwIi8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9IlciIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxLjE5NTA1IC41MTk2MiAtLjI0IC41NTE5NiAzOC4zNzIgMzMuMTE2KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiM3QzdDN0MiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM3QzdDN0MiIHN0b3Atb3BhY2l0eT0iLjMzIi8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImFhIiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoMS45MTk5IC0uMDIwMSAuMDMwNzkgMi45Mzk4NCAxOS45NjcgOS42NCkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjRkVGRUZDIi8+PHN0b3Agb2Zmc2V0PSIuNzUiIHN0b3AtY29sb3I9IiNGRUZFRkMiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNENEQ0RDQiLz48L3JhZGlhbEdyYWRpZW50PjxyYWRpYWxHcmFkaWVudCBpZD0iYWYiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxLjE1NjMgLS4xOTAzOSAuMTc1NzcgMS4wNjc1IDE5LjY2NyA4LjIwMSkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjQzhDOEM4Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjNzk3OTc4Ii8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImFpIiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoMi41NTYyNCAtLjA4MDMzIC4wOTIzNSAyLjkzODU1IDI1Ljg4NiA5LjY0KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNGRUZFRkMiLz48c3RvcCBvZmZzZXQ9Ii43NSIgc3RvcC1jb2xvcj0iI0ZFRkVGQyIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0Q0RDRENCIvPjwvcmFkaWFsR3JhZGllbnQ+PHJhZGlhbEdyYWRpZW50IGlkPSJhdSIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFRyYW5zZm9ybT0icm90YXRlKC0zNiAyOC4zNzUgLTI4LjMwNykgc2NhbGUoMi4xNDUgMS45NDYyNSkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjMDIwMjA0Ii8+PHN0b3Agb2Zmc2V0PSIuNzMiIHN0b3AtY29sb3I9IiMwMjAyMDQiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM1QzVDNUMiLz48L3JhZGlhbEdyYWRpZW50PjxyYWRpYWxHcmFkaWVudCBpZD0iYXYiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCg0LjcwNjUyIC0xLjkzOTg5IDEuMzYyNTYgMy4zMDU4MyAyNC4zMzIgMTMuMjQpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI0QyOTQwQSIvPjxzdG9wIG9mZnNldD0iLjc1IiBzdG9wLWNvbG9yPSIjRDg5QzA4Ii8+PHN0b3Agb2Zmc2V0PSIuODciIHN0b3AtY29sb3I9IiNCNjdFMDciLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM5NDYxMDYiLz48L3JhZGlhbEdyYWRpZW50PjxyYWRpYWxHcmFkaWVudCBpZD0iYUUiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCguMjQ3NSAwIDAgLjI2NjI1IDIxLjAyIDExLjIyNykiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjM0EyOTAzIi8+PHN0b3Agb2Zmc2V0PSIuNTUiIHN0b3AtY29sb3I9IiM3MzUyMDgiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNBQzhDMDQiLz48L3JhZGlhbEdyYWRpZW50PjxyYWRpYWxHcmFkaWVudCBpZD0iYUciIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCguNTIxMjUgMCAwIC4zMDM3NSAyMy4zNzIgMTEuMTk0KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMzQTI5MDMiLz48c3RvcCBvZmZzZXQ9Ii41NSIgc3RvcC1jb2xvcj0iIzczNTIwOCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0FDOEMwNCIvPjwvcmFkaWFsR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJ2IiB4MT0iOC4wOTYiIHgyPSIxNS44MDgiIHkxPSIzNi4xODkiIHkyPSI0OS4xMjkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjQjk4MzA5Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMzgyNjA1Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9IkMiIHgxPSIxNS44MzgiIHgyPSIxOC4yNjQiIHkxPSIzOS41MzEiIHkyPSI0NC4xMDIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjRUJDNDBDIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRUJDNDBDIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iRiIgeDE9IjMxLjI5OSIgeDI9IjMxLjkxMyIgeTE9IjM5Ljc0MiIgeTI9IjQ0LjE5OSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJHIiB4MT0iMzIuMTU2IiB4Mj0iMzkuOTI2IiB5MT0iNDcuNDQxIiB5Mj0iMzQuODQ1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzNFMkEwNiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0FENzgwQSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJOIiB4MT0iMzQuMjc3IiB4Mj0iMzQuMDQ4IiB5MT0iMzMuODc2IiB5Mj0iMzUuOTMyIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI0YzQ0QwQyIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0YzQ0QwQyIgc3RvcC1vcGFjaXR5PSIwIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9IloiIHgxPSIzNC44MTciIHgyPSIzNS4zMDEiIHkxPSIzMi41NDYiIHkyPSIzMi41MjYiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjN0M3QzdDIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjN0M3QzdDIiBzdG9wLW9wYWNpdHk9Ii4zMyIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJhZCIgeDE9IjE5LjU1NCIgeDI9IjIwLjQ5NyIgeTE9IjguNzQ1IiB5Mj0iMTAuNDMxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzc1NzU3NCIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIuMjUiIHN0b3AtY29sb3I9IiM3NTc1NzQiLz48c3RvcCBvZmZzZXQ9Ii41IiBzdG9wLWNvbG9yPSIjNzU3NTc0Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjNzU3NTc0IiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYWgiIHgxPSIxOS40MjMiIHgyPSIyMS40NjUiIHkxPSI2LjA5NiIgeTI9IjguMTgxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzY0NjQ2NCIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIuMzEiIHN0b3AtY29sb3I9IiM2NDY0NjQiIHN0b3Atb3BhY2l0eT0iLjU4Ii8+PHN0b3Agb2Zmc2V0PSIuNDciIHN0b3AtY29sb3I9IiM2NDY0NjQiLz48c3RvcCBvZmZzZXQ9Ii43MyIgc3RvcC1jb2xvcj0iIzY0NjQ2NCIgc3RvcC1vcGFjaXR5PSIuMjYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2NDY0NjQiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJhbCIgeDE9IjI1Ljg1MSIgeDI9IjI2LjkzNiIgeTE9IjguODU5IiB5Mj0iMTAuMTQ2IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzk0OTQ5NCIgc3RvcC1vcGFjaXR5PSIuMzkiLz48c3RvcCBvZmZzZXQ9Ii41IiBzdG9wLWNvbG9yPSIjOTQ5NDk0Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOTQ5NDk0IiBzdG9wLW9wYWNpdHk9Ii4zOSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJhbiIgeDE9IjI0LjkxOSIgeDI9IjI4LjM3MiIgeTE9IjYuNzkzIiB5Mj0iOC44MTQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjNzQ3NDc0Ii8+PHN0b3Agb2Zmc2V0PSIuMTMiIHN0b3AtY29sb3I9IiM4QzhDOEMiLz48c3RvcCBvZmZzZXQ9Ii4yNSIgc3RvcC1jb2xvcj0iI0E0QTRBNCIvPjxzdG9wIG9mZnNldD0iLjUiIHN0b3AtY29sb3I9IiNENEQ0RDQiLz48c3RvcCBvZmZzZXQ9Ii42MiIgc3RvcC1jb2xvcj0iI0Q0RDRENCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzdDN0M3QyIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJhcCIgeDE9IjI2LjA5MyIgeDI9IjI4LjM5MSIgeTE9IjUuOTE4IiB5Mj0iOC4wODkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjNjQ2NDY0IiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9Ii4zMSIgc3RvcC1jb2xvcj0iIzY0NjQ2NCIgc3RvcC1vcGFjaXR5PSIuNTgiLz48c3RvcCBvZmZzZXQ9Ii40NyIgc3RvcC1jb2xvcj0iIzY0NjQ2NCIvPjxzdG9wIG9mZnNldD0iLjczIiBzdG9wLWNvbG9yPSIjNjQ2NDY0IiBzdG9wLW9wYWNpdHk9Ii4yNiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzY0NjQ2NCIgc3RvcC1vcGFjaXR5PSIwIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImFBIiB4MT0iMTguMzkyIiB4Mj0iMjcuNTE5IiB5MT0iMTIuOTg2IiB5Mj0iMTIuOTE1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI0FENzgwQSIvPjxzdG9wIG9mZnNldD0iLjEyIiBzdG9wLWNvbG9yPSIjRDg5RTA4Ii8+PHN0b3Agb2Zmc2V0PSIuMjUiIHN0b3AtY29sb3I9IiNFREI4MEIiLz48c3RvcCBvZmZzZXQ9Ii4zOSIgc3RvcC1jb2xvcj0iI0VCQzgwRCIvPjxzdG9wIG9mZnNldD0iLjUzIiBzdG9wLWNvbG9yPSIjRjVEODM4Ii8+PHN0b3Agb2Zmc2V0PSIuNzciIHN0b3AtY29sb3I9IiNGNkQ4MTEiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGNUNEMzEiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYUoiIHgxPSIyNy41MTQiIHgyPSIyNy41MTQiIHkxPSIxMi42NTQiIHkyPSIxMy4zMjkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjRjVDRTJEIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRDc5QjA4Ii8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PC9zdmc+";export{N as default}; -//# sourceMappingURL=Linux-NS2LQPT4-BSWfZXoy.js.map diff --git a/apps/web/public/assets/Macos-2KTZ2XLP-pPa2wwwq.js b/apps/web/public/assets/Macos-2KTZ2XLP-pPa2wwwq.js deleted file mode 100644 index 426cd240..00000000 --- a/apps/web/public/assets/Macos-2KTZ2XLP-pPa2wwwq.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var V=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},U=new V.Error().stack;U&&(V._sentryDebugIds=V._sentryDebugIds||{},V._sentryDebugIds[U]="09bac839-4ddc-4808-9afc-77b244339fbe",V._sentryDebugIdIdentifier="sentry-dbid-09bac839-4ddc-4808-9afc-77b244339fbe")}catch{}})();var R="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgNDggNDgiPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik0wIDBoNDh2NDhIMHoiLz48ZGVmcz48cGF0dGVybiBpZD0iYSIgd2lkdGg9IjEiIGhlaWdodD0iMSIgcGF0dGVybkNvbnRlbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjx1c2UgeGxpbms6aHJlZj0iI2IiIHRyYW5zZm9ybT0ic2NhbGUoLjAwNjk0KSIvPjwvcGF0dGVybj48aW1hZ2UgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFKQUFBQUNRQ0FZQUFBRG5SdUs0QUFBQUFYTlNSMElBcnM0YzZRQUFBSVJsV0VsbVRVMEFLZ0FBQUFnQUJRRVNBQU1BQUFBQkFBRUFBQUVhQUFVQUFBQUJBQUFBU2dFYkFBVUFBQUFCQUFBQVVnRW9BQU1BQUFBQkFBSUFBSWRwQUFRQUFBQUJBQUFBV2dBQUFBQUFBQUJJQUFBQUFRQUFBRWdBQUFBQkFBT2dBUUFEQUFBQUFRQUJBQUNnQWdBRUFBQUFBUUFBQUpDZ0F3QUVBQUFBQVFBQUFKQUFBQUFBekFWbml3QUFBQWx3U0ZsekFBQUxFd0FBQ3hNQkFKcWNHQUFBQVZscFZGaDBXRTFNT21OdmJTNWhaRzlpWlM1NGJYQUFBQUFBQUR4NE9uaHRjRzFsZEdFZ2VHMXNibk02ZUQwaVlXUnZZbVU2Ym5NNmJXVjBZUzhpSUhnNmVHMXdkR3M5SWxoTlVDQkRiM0psSURZdU1DNHdJajRLSUNBZ1BISmtaanBTUkVZZ2VHMXNibk02Y21SbVBTSm9kSFJ3T2k4dmQzZDNMbmN6TG05eVp5OHhPVGs1THpBeUx6SXlMWEprWmkxemVXNTBZWGd0Ym5NaklqNEtJQ0FnSUNBZ1BISmtaanBFWlhOamNtbHdkR2x2YmlCeVpHWTZZV0p2ZFhROUlpSUtJQ0FnSUNBZ0lDQWdJQ0FnZUcxc2JuTTZkR2xtWmowaWFIUjBjRG92TDI1ekxtRmtiMkpsTG1OdmJTOTBhV1ptTHpFdU1DOGlQZ29nSUNBZ0lDQWdJQ0E4ZEdsbVpqcFBjbWxsYm5SaGRHbHZiajR4UEM5MGFXWm1Pazl5YVdWdWRHRjBhVzl1UGdvZ0lDQWdJQ0E4TDNKa1pqcEVaWE5qY21sd2RHbHZiajRLSUNBZ1BDOXlaR1k2VWtSR1BnbzhMM2c2ZUcxd2JXVjBZVDRLR1Y3aEJ3QUFRQUJKUkVGVWVBSHN2UWU4WlZkMTM3OXZmZjI5NlgwMG95NGhpU0tLak1BR0dUQUdneWsySktiK1VTQTJ4azdzSk1SMnlOK0JPSi8vM3paMkhJSURtR0FJR09NQXhoQmN3QTVGQkJNaEFRSWttbENiMFhSTmYvUDZiZmwrMXo3bnZqdEZvNExBMk9ITTdMZjMyV2ZYdFg1N3JiWExPVGVsSDF3L29NQVBLUEFEQ3Z5QUFqK2d3QThvOEFNSy9OOUhnY3IvZlYyKzl4NzNlcjM3Ulk5S3BkSzc5MUorOE9RZk5BVUVDYTZLcStNYWhUTmNlLzNyWDErOXI4NmJ4clM0VS9NYmY3OEFlRjkxL0gxNi9nKyt3ekJWVUFRd1B2akJEL1plK01JWGR1NkRRVU9mL3ZTbkd5dFdyS2czbTgzSXQ3UzAxRDEyN0ZqN21tdXVhWkYzOFd6NVAvQ0JEOVJlOElJWGxIVHRJcTI2WjB2LzkvMVoyZEcvNy8zb3Q3K1FBclV2ZmVsTGxVYy8rdEh0VTlYTmw3Lzg1UlhidG0zYk9qUTBkRzZ0VnRPZFE1ck4xV3AxRFhsWEVSNmpzQkZjQTFjckNnWjBQY0JUbVNmTkxHbU9kTHZkUTRUM2REcWR1enVkcGJzV0Y5dDM3ZHk1Yzllakh2V29ZMFdlOEd3UGJhblRGdFZlNTlUMkRLYjkreGorQndFZ21RVHhnOWt3cUQzQWlNYStmZnN1UXBwYzJXZzBIa2Y4SXdIS0JhUlpUL2loN2p2TjZCMEFXTGRUOWxkYXJkYU5TSzJiTm03Y2VDdjMvVGFScHM2OTF6OElNRDNVUk15aytSNzloUm1DcGdvZ1ZDMXgzWExMTGV2UFAvLzhKOVRyOWFjalhaNVlTWlZMS3RYS3liWU5zcUNYZWgyZWhYb2hMQjF3ZW9OMnpDQjVTcnNaQTdwSHVHTENiRXdUVVNWY094V1N2UzcvVXU5YnRQT3o4L1B6ZjdOang0N1BYWEhGRlFkeVM2a0pHNHl3YXU2KzFHcVo1UWYrZDBvQmlLNFJIRVp2V2RZTk45eXdlbTV1N21mYTdmYUhrQUNIZVg3U1JWeXJjRzM4RHM2cnArdDBzbXZqdDl2MzM1WDV5bklza011eXJTUHFPNmtSM0JCL0dNbjBJZHRxbTh2Mjg2ZzB5Z2NSV3o3K3Z2Yi8zalFZSXR2V2VxR2lRaHdjT1hMa0NlUGo0eTlIMGp3SDFiU3VwRFJwdFZrVUV3Z0dET2dlb3FJUUlIb1dSRGsrSGJpS0JQMllVKzlQU213Snl5bEpTcDFsalJGdjJUaWprWEs1TGRSWjJsUUpNTjJEL2ZTUm1abVo5NnhhdGVwelJXRXhPQWlmWnJ2MUsvcytDeXhUNGZ1c1lRUE5DYUlPQUdjWW92ODBSdkNyVVZOWGwrbmdWTHNBU1UzZWxlelByRVBQb1dUeTVST1ozVTJMaTcwMHY5QkxjM080K1JUTys2V2xsSmJhbGRUcGlBd1FXTzJsUnIyU0dvMWVHaDVPYVhTa2tzWkdFNjRTNGVFaHdGaFZTMXBIcm9maVU3ZG9VSUFwYXFYaXNIMEVWNlcwaGFpbjg3bUYyWVczalUrTi95blBGeXlFL3B3MFdJajd2cno2bmZoK2JOMFh2L2pGeHAxMzNxbU4wSHJqRzk4NDlwclh2T1lWamNiUVA2dlhxeGZhWHJVUW52YURJenY2RXBJQUpncVlMR0dDWjJsbXBwZU9IT3VtZXc3MjB2NTdVdHAvc0pJT0hhbWtveWNxNmNSY05TMHVWVklMcXdpakpaeTU1SDk1M3dsQTVQc3E4R3dDcG9uaFhsbzkxVXZyVjNYVDV2V2R0R1ZqTDIxY1YwbHJWMWZTeEVRMTFXckxvQktNbEVkWCt1M3N0eDBKK29TeHliRW5vTjUrSGZlZmYvM1hmLzFkSkp4MVNlQzg4ODZyUHVZeGorbmJlRFRyKytvcWgrWDNWYU5PSVZ4OWRuYjJueUJ4ZmhWQ2I3ZWgyaGw0dGoxVVFqSFFCMENqZE9tazQ5UGR0SE5YTDMzajFtcmFlNkNhRGgydnBJVkZwUVZjSktkU3BWYnJZWVVYcFFHWVFlQllibmxmaGdXVTRVNVh3TEVvMUVLS0liRm1rUnNMdEdxbzNrdGJWbmZUeGR1NjZXSG45OUlGNTZhMGVVTTFqWTdhMUZ4UnV5MlNsRUpFNWN0QjBFTU54eUJBSXJFc3NQaWJZMk5qN3lTK1hRNmsrN0dHVlJUM3ZmT1d1L0M5cS9Pc05YMzk2MTl2WG5iWlpiQWtKV3ljWjA5TVRQd0hWTlhEdmRjNFJjTFVHSjNhTmNGSWVWSlRhV0ZxTEFHYWV3NTEwNjQ5U3BsS21wMnZwZzRxNk5qeGFqcDhwQm9NYThEZ0xtTy9Bd3IwTXlDeTVDbEJFcjdsVTJvL3pFMmt0YWF5YnAvanZHeUJZU1hWSXZMaStCejFvaHFiMUhmcGxrNTY3R1hkOU1qTFVqcnZuQkpNMWRSRktsbFdDU2I2RmpNeWdPVHNMREVwdVBuRWlSUC9GaHZwejcwZnBJMzMzdy9YOXcyQUJNWjExMTFYWWJXM2ZkdHRkNSsvZGV2NjN4MGFhajVISWpIamFjRWRwOGt4SFplcDZvSWFnMXA3K2ZEaGRycHJSeS9kdWJPYWpnSVdHSkNHaGxKcU5udXBEZ1BycUJzbHo5NzlWY0NVODFsdUNZU3pBY2MwWjBvN21EZkNKTEtjbkw2VU1BQVRRTTBzVk5MQkV3bUpCWWkyZGRLVEh0Tk5qM2xFU2xzMzFjTjI2aUxOVkhFRGtyQkxYenVvd0FEUzBsTDdJM2ZmdmVOZlhYamhoWGV3U2w1LzhwT2YzS1AvU3EyLzgrdjdBa0NBcHdsQlF1cGdJUC95OFBEdy80ZTZHa2FVRjBUS3N4ZlM5WUhUYm5mUzNyMmQ5TTF2cGJUajdscGFhbFV4Y0RGMEFZMDJpaUloUmphUUN5TzRpUS9namg3TFFHcWpiaklBQjRBRU93Sk1aRDhOVk1ieGZCQTRaN3Z2cHl0WXJEbGttU2ZtcWY5NFNoTkRuZlRVS3p2cFI2OUdRbDFZQmV6MUxCa0ZVaURKak00bWJXZXRCaWtXdVA0TnM4N2ZpeWNETlBQKzcrcjZPd1dRRzVQc0c5VlZXYmZmZnZzRjUydzU1eDJOb2NhVEJJcnFDbzQxQklMTGNhS2hqb1VnY083ZTJVazMzMUpKdS9ma0Vlek1TSkRJVUYwR1RwWUNUbzVjUnZTNUFHb2ltVnFvbUgxSW82T0QwZ2hKNFNXVERRYUFDSWQvbHZzeTdTQmd5cnhsWEtUaFQ3U05zbXhURzZsekQwQTZ2dEJOMTF6ZVRzKytwcHNlY1ptU3M1NDZnTnU4ZlJ4aGJxbldsTHJZUnAvWnZYdjNLeSs0NElMYlZXbnM3N1dobzFYOG5WeC9ad0JTRktPdXBHbm42UEhqTHhzZkhYdGJ2VjRiQVNET09EUW0rMnMzZFl4ZFZkV3V1OXZweXplbHRIdFhBN1ZVU1VNQXgwdGlDN1RTQ2FBc2dRcFYwZ2RSQmxJZHhTQVlsVVlDU1dOWW83cGtlQWtBaSszSEVlN0g4OEJuL2Z2QmREeUlQQVBQeXpKS3NKWDVBdHkwOVRBendmM1R2ZlNqbDdmU1R6MjlteDcrc0JydHF5TlZhVC9sUkg5eWxXMW8xSUJHOHpNekozNXU1Y3FWNytGeERWcUc2aWY4UGI5czMvZjhHakFHRzdPejgvOWxkSFQ0VlJJVk1TMTRRdTk3cnloM2xuVG80Rkw2OGhkNjZZNXYxMU90anJnSE9ESlF4cFRVTGNFVG5Ta0E1R3BRRUY4QUVYYzJhUlMyRWFBeWE4bndZRFQzSmNOUEJZYlZsODhHMC9iem4xTFd2Y1hiTmxYY2taa01wT2RjMVVvLy9jeHVPbStiYXEyRzFGV3RVVmkrV21nMHBCR3p2b1dGdDQrTWpMeUdhTmJBZWtvbzZmYzl2YVRYOS9TNjdiYmJoakFHRnovLythOXVlY1FqTHZtejRlSG1ZOXN0TFpJd2tGRTBYUHhSd3JERG5iNzUxYVYweXhja1lqME5zWGpuOHk0enEyQ2VWT1IvNU9uN09TNERpaWVraWZOZlJ1dGd4Q0NRbEVZMWdITU1hYlNmcVQ0YU1teWpQck1wWWhBYzFuV3Z6MHhyODhzOCtKRzJpQnZNTnlpTnluamJwZHJhVDF2WUMwblhQbk1wUGVNYTE1U1FSbGlJUElvKzJBUmR2Vkd2YzlUa1JrNFkvTlFQL2RBUDdTNXB5N1B2MldXYnZtZlhiYmYxQUU5bGNkZXVYVmV0WDcvK3o5a2hYOXRxdFRXZU1YRWx2QklEcVFOVEQreGVTRi8rWDh5dzlnS2NjU2hMUzExN1VhZ3pCZWtES0JnbU1zeVBwNHZFK3VGSTRmTlRET3RCSUNubEdvVnRKSWlPVDdzUW1iT1Z6TzJEd25vRVNPa1RLRUZpNUVucEI5TU1oTTFmNXVtSGlTdkRwWEYvQjBzUkR6K25sVjcxZ25hNjRtRjFCbEV0ejlab1czRXROUnIxNXVKaTYrREJnd2VldlhYcjFodEtHcGNKdnR0K2tQdTdYUW5sVnhnZFRTWFBvVU9IbmpNNU1mVm5qV2E5MmxwcXQyQnVROG9KSHRXVEU2L2J2bndpM2ZxL29TaElxck5Ob01IcHVUQ0I0L3cyUUJRK2pCQk1PanRSK010QUtnQVZRQkpFL0pmNEE2cE53N29FUzUwWm5Nd1RRQWNPSUFYWXp2RCsza0FodzYwM2ZNTm51QitVTkQ0LzlkNzhaZm1sWDViVG9PNXBabTBIV0JEOTJXY3ZwV2MvemEyVEJxdm16alJ6ZjZtMEJTMGJTMHV0N29tajA4OWZzMkhOL3lna2tRUFQ0citybDgzNGJsOTk4QncrZlBoYUZzWCswQVcwZHFjTmV5cXMwdkFQcXRhSGFtbm0ySHo2eHFlUHBrTjNWRkp6b2hGZzBRYm81djNRQWI4QTBTQ2dDdkFJS0lHU0pSVytZWHNaamo5bGVBQklmV2tFdzJydWV5R05WS3IzSE13ek5abGxzWDBHVTl6WlFDUFg3dTM1WUJuOU1Ca0dnUlJBSThMbjFpM0Fid2ZRVDd5MGxmN3BQMjZuTFpzQmtTdnE5akw2M1d2WGEyendzS0RLR2FSck1hN2Y5YjBDa2VUOGJsNTk4TENxL0JvNjl2dXRKV2ZuZWY4cVZCWmtxSEZ5OU5EZHg5S3RmM01vTGMzV1UzMlVxV3lIbFZxTys3aCtLSUF5aUVwZlNSU2I3UGluZ0drQVNBRWVuOVBMRWtSS0s2TGdDazdmVzBBVDBYQ3Jpam9UVUxFQWlXMTBZcGJwTnFwa0hvWXBqV3g4eVhqdUFpaUQ5Mlc0bENKOUlCVnArL2VXTXhBWCtVNjk3NmNCMUlERDJWcTkxa212L1grVzBwVlhhQmZaZDlwdlA2QXBrS29oamRMMDlQUnJwcWFtM3ZLOUFGR3VPdXAveVArY0JwNGxObzdvc0x6MEFIcU1uaXBxYTlmWEQ2UzdQM1VvMVp2T3IxVmpBcVVBVDRCSXNKU1NxQVNSdmdUTS9wbUFGQXdTVUZRWWFpNzhIQlk0eGdmeCsyQVNQSUlvZzhxUjcycTJ6RDNDVnNqaG8zbGwyWGc3WXJ6WElDaU02b1BvRE05T1NrdmlrOUtmNGI0RWxpdmFkY0R0S1lIZFIzcnBYL3lqeGZTMEoyRVRLYUZKcEtRaU84bytWWnBEamNyUm8wZGZnN1Qvcm9PSStyNDcxMTEzM1RWODdybm5MdHh6eitGcjE2NWQ5WWVMS3U1TUw4QWo0eHd2S2QxeHc2NjA0OU9IVTNOeUNNYXhnMDFrUGtBb2FKYUJrNlZSanV0TEpPeWlaVW5FTThvc2dSUzJFU2haOXFtOEQ2YmxzRURxUzZNQ1NFcWcwcm1xN1N6Tm94eHVoeHc4ek80OWtpQ2V5elFZRzZDd2N3VUFUZ0lKOFgxQStmeGUwcFI1K21tTDh2cjM1RE5zZXdYTGJmdFR1dllaaSttbm44VTllN0R0Y2l1RVpLWmlHNmlDMUw5MjllclY3eXA1UWZ4RGZrbStoL3dxUk9maWdRTUhucnR1M2JvUEF4NG9GeDBMeWVOZWxiYlBIWDk3ZTlwL3crRlVueHlHQUd6K2RBV0J3NTl0TDRoU1JSUlV2UThPWi9BRTZqU29BMXpaRnpSNWFyOHNqU0l1QUZPQVNuQUZ3R2hLRVIrU1NXa2lGWWc3R1VoWmxRa1VKWTVxcmdHUVZIRXpxTFdEaDZxc3czaWZ5VmNDNEl3QU9RTm9Ram9LaUFJWXArYnJBOGNrNWg5SVoxNE43RHM0SFB2Y0p5eWxsLzFVRjRBM1RnSVJBN1NLSkVMOTN2TThacndmS1htU1cvdlEvWDNJQVZRdUVvTDZIOXF3WWVQbjZ2VkdsVjFsOTNROHRna3paSEl2N2ZqTU45TFJyNkMyQkE5aXVhczB3WFg2RHZHczJtS1NGdW9NSUFrdWdaT0hmN0czQ3VQZFkzV0RYZ1FvMmZSRkJSQ1FQd1c0U2dBVlBzTTRnR1RTQ0VjV3lzN1p3NDl3QmxLQWlIc0JCSzlnYUkvWldqVWRRYTFoMW1XUVJWMCtLeHozL2JCeDkzVmZwT21EcHlpbkJGdFpWdm5jZHV6QVBudnFveGZUUC9sSDNUU0VDZEJhbGtRZFZyTnI3WGFydTMvL3ZpZWNlKzY1bnk5NVF6TWVzcXNZUHc5TmVXNVBQTzV4ajJ0OThwT2YzSGJKeFpkK2VtUjRlSnlGcmpiTXFMdWZwWDJoNU5uOTJhK2xtYS90VDgwcGxuOVE3aTcwVlRuZnJtak9ZZFNHcWdQb1pDVVY4cVRnQnZDRGtodytqaU1aTGNyVnNscWkzSENVc1FRb1drZ0wxaDVUbHdWSnRtb1pzdGxWTUVadEIzY2g3Q3RhRFRxNU8zaEZBaU44bG9Ib25TZHJYWS95R3VNRm9NbEoyZ2tWblJWNWxNTVZaY0htWlNyeDNIZW54cDM2M0xTbnhCa1JjVVY4M0J1SHM3NDFreWw5OVk1Nk9uYVl2YlJMTzBoSktDYXRHVldjMEc0UER3L1ZtczJoNTF4enpaUGZ6MkxqRVhuMDduZS9XMHcrSkpkdGUwZ3VtT3JiRVpLdU5qMHorN2NUWTZPUG1aOWZiRkVCYjM4U2EwMVFkdi8xTjZlWnIreEsxWWxSTmcwMVVBczFCR05LS1ZUNlNxTitPT0RFN0N4OG9WWENLL3M5cXRaMUM5KzZRaDBXSEszZ0N4NDVuQUZrZzNDMHJZdjYxSmJSWndBSGxxaWE5dUljWWtWU21SWnJTTVNYRXFtY3JiV1k5cnNkY293MUpEZERTeENWMHFLVUhwS2lIN2F1c2o0Q2duUDUvdlIwY24wd3IyWHJtSGlsWFljcTZXbVBYVXd2LzJrR0crcGZFRGtnZWR3YUdSbHl5K2pHOGZIUkgzbnlrNS9jQVVSbzgveEdDa1YrUnhkVlB5UlhoZDEwQkdwYVBIWjArcTBCbmprTUg1WnpsQmIyb3NMbTRLR2J2cDRXYjc0akRVMk9NZFBpc1V5R2N3RVNaUTE5S2dHalh4MEFVRFhTQ1I5VkcwQkNuV2xZSTRjeW1FaXJlcXNhSjRpOGwwWmhWeEcyTHVMN0lrTHFGbUJ5OTAzVlYxZnEyVndrakFkSm5QbDA4ZUZyQmxISWE4RW1zODBqQTFub0JEQUNhZTNxWGxyQkVWY1hJZ1dTOGFZUlRBRlF5OVpSWEpSSlFBQkVIQW5ETCsrTE5JTnhOSytmMTN6ZXUvZWpnWERPMmw3Nm14dUgwc1RZUW5yQnM5cWtrejVLb2txRGdidzBOamJ5dUdQSHB0KzhZc1hrUDRWWHJIUWhzSE54ZUEvK2tqVGY4VlVhYUJoc3IxaTdkdTA3NStjV2tDMzU3RytvS0U1M0hiLzFqalR6bVMrbTZ1aElaZ3JvRWlReVhRVWx3ek40aURjdTdnZmpzMzBVOFR3UEVGSEZhWkpJd2drZ3l5ajhVanFGRFdXY0x2VGxzaDljVnJVaHBmSTBQcE5HQmdva21TVFRsRVprRHovQ2NMRUVpYjRuSHAyMUNaNFRiSTRLcE5qSE1oK3VMTStpUk1NZ1FDSk1kQjlVUGpmWnZhUXI0OHYwbmpEWXlZTGpLNTg3enhTZjBZd3V0MDR2dlBiSTZIQjkvLzZEMTI3Y3VLNWNhRHpyYTlvNTU5bi9Gc1dmUGRIWm5xcFRQVVhJNjd1WFhuTHh3MjRxRG9JcGJlRU8wT0FBenNMZE85UHNYMzRpOVNhbVVvZERkdDJRSHFRZ1ZSQ0JFYjg4aXlJYnczTVFSQmxNZ3NwMGppeFZEZmVDUllsVUdOcm15WUFjQUZIRTVmdDRYZ0tvQkZpQWlYeEZmRVlEWkJGTXVBQVRrcWRrdnBKSjIwUEdVa1RFQjVNQVVvSEo4RU8xa2MrME03TnVqMVJaakRSVEZIMW1VQWdVbmt1VEFLdjMzT1FCNW9Pemc4czgybU43RDZmMEwxODJueDUxaFRORitpRGd5UXB2cXV3QUxOeDZ5emV2ZlBUakgvM05rbmZ4OUVIKytVNVZXSVZkUEp0WHUrQ0NpLzVnZEd4NGVIWm0zbmVhZVBHUGJudW01ZWlSVlAydmIwb3JqaDlKM1ltVnFkTVlTKzNScVhDdDRmSFViaUtSNnU2bENod1lnczVRM0lmNmdxa3g5UjZVVGp4VVdqSEJoOGdvTU03WDEzcHQwcW5XNmdCQnFlUS9BVllDYXVBK2dKZWZzYlpNR1pZakV1d0dZVlVkYXMvN1VET2d3MGM2ajd6TERFRVZRQ29ZbWdHRXRLU0VDbHcwZXh5NkI0YzFKTkxrQkNjUXg3dngycEFTYVk3OUxkTmFUaDVBaFUrazhVRUh3K0dvWDUreUJ1TURZRVZhdytVekM5aXdNcVUvL05PaDlDdXJGdExtalp6V1JGblI3cXJIWlZCbHd4Yzg3TUkvSU9zMUJlOFVJdVI2Y0plWkgvUlZxcTREK3c2K2R0MkdOYjhOZUlyelBMWUhLV0duMy9QMjFManh1dFJkeGV2b2l3eEI5VUdBQUNMV2hsSkhFSTJ1U0szeFZhazFoajgwbmpvQVNxYkdTVVNvRXhLcFpIekI4SkJHQVNJQmdHU0NheUdSQkpCR0pKSXVTNk1Na0JKUTJWZHltYjV3U2tURGdpYjhMTEhDWnFJZldkM1JHZjhYQUpMNTNzczhEZSs0Y3BKQ0ttWFZKcmdFbmJhOGk1SGV1MzUwak1WSTE1UE1yK1RLWUFuU0JEZjc5enp2aDZra2gwdURHOS8yRldsS0lGbmZMQ0RkdEthVlh2UHlwY1JFTEFCdjI4blFHaHNmYWR4eno2SFhybCsvOW5kS0h1WU9QUEMva3VGQlhZby92ampSdXY3NkwxMjZlY3ZHOTNmYTNUb1NnU1pDSW51QzNkUDU3S2RTOHkvK1crcXRQeWRWT0xVUkw5OHBZejJ2d1VFY2lWbHBMYVQ2ek5IVVBMbzNEUjNlbllhT0hVak51ZWxVUXhKVlNOdHpzUU0vR0FId0tKeXdqSkRWcWcxWUgrcWpDSE55c1lwRXFpS1pjdHJNd0g2YXlHTmFuYTBORm9nRldWRTR3bktGKzVJNVZFdVlFdkZEK21EakdQWUt2Z2dDd3VINFkwa0N1NXhaNVh6bVoyWkJseVpZQWhnYnN4K01LK2FxMWhQcVVncFNUdENHd0VtKzhmRU1xUlRQOEtPbThqNm50NndSek9SZDkwQTNkT2dsRnltcHplblZxOElybEVQalI1Nzk3T2Q5NkpHUHZPS0F2SHl3VS9zSHE4SXFmQ3hBOExVdnZ2aUMzMko2T0RRek01ZWxqOU1XN0o3MmpqdFQ0OE52UjU1dW94UElVTm9mNDhYZTJYdTh1QnlhQWdVMndNdFVYNXhPOWRtamFlakE3YXpoaktiMitPcTBPTFUrTFUyc1Rxbzg5R0tvaVJvQWtSbm1BektJZUJtbUZDbDhnTlRsZ0dQZVYyTlZHOUNHVkZJNmhjUnhOa2Z1VXJLQmtOS3VjbDZuZXF2d1ROL0dLcUh3b2o3VmlWY2NlU2RjcWpWSE9GbnlzNkovZHRYUzlLc01MS1d5cSs3bTBlQmV0NHFaMjBRdkpOSTBFa255T01aQ21nUm9LVFBxTFh6REo3bWNwNStHOHFXamdOMUEyWDk5L1JEdnBzMmxLeTd0eGxZTTlZS3BUZ3VlRFY5NnlZVy9SV09mVS9BU3h0bkRCM1pSM1FPL3loWE5IVHQyUFArY3JkcytORE03WitXZ2dCRkZDem1wa2Fydi9JK3B2dU5ycVRjeXhaQmx1RXIxYUY3dThLbGhSNnhwQklUaHVKZUtESGUrU29DZHhJcTFZRnF4QVVDdFJkV053UmdwalUxRTdhVTZ5dXF1QkJHQW9relZXMzlOaVR6YVN6Mk5lYVpMZ3FyTDBBOGJLc0JJR0JRSXlyNVBucnorUkp6eDRTaVhUaGRkaWdFU1FHSklncys0TC83ZzJadENXc2hnN3BWK2tiNEFrak1vZDN5T1lpUE44RTRaandOMEF1Rmt3TnlQZTl0VlFNRXpUYU5EN2ZRTEwxL0FEdU5rSjdRU3pGeWQ4YkhSMmwwN2R2N1UrZWR2LzdPU3AvSGtBZng1d0JLSVdVSGxaMy8yWjIzZTJOVFVxamU0WU5WdnJZejJ0WWZycjB1TmIzODI5ZGFjbnlwTDJEMVFLenBrTGtGbUErbUZNNHd5UEpBQWVoY0FJazNYRFNoU09YcWIwL3RUQTFVMzJoaE9yY24xYVhIMXByU0laR3B6U0ZyanRZYkVDU1dIS0FnYlN2QW9ZU2lucGk4d2tKQytadGJwTE5JMlRQRllOOHAyaysvemhhUUNXRzVRYWtzcFVCd2R3cnBEV2w5SXpHMzFpU0N5RHFLNGs5a21WaFU1bFk5RkpieU1zdHhYbVNjODFDZ3VVNmxLTzBvazVMY1NhVDFyU1pPb3RpTUFhWUhqR21GclVmZ2drQ3l2YkVicGwyd283d1d0RW5wa3FNc2J1ZlYwM2ZYMTlKTS81a0FXM2JiV01udHAxY3BWYnlENDhUZTk2VTIrdE1uOGg0d1A0QXIrUFlEMDZhLys2cStHbnZuTVozSXNkYzh2Yk5teTZjM1QwN08waWdVWldsN0JybWtmT3BDRzN2cHJ6RmlZV2RtVUdFSDJPRmRsQjVlSExtRWYrY3g0Q0J2UHk3aTRML0laRGpiQ1NoTzUwQUlCT2lPVGFYSFY1clN3YW1OcWpVNVNOTS9ienRSa2JnWk5TS0VBa013bXJwQklTaVUzY0wzWGZNdlBDbW1EbEhMSm9ZUHE2OUF2RGlCSCtDUnBGZmt0MDdyeWROdGUyQjJCQXY0U1JkaXQvbFVHOVFOTXBnc0gvY0NrR3QzMzduMDJqU1E2emxxUzRCR3VneUNSaHBMaDNweHB2ZlJkZ0Q5Nm9wZGUvYUk1RHVwWDg3cVVCVUxGeWNteCt1N2QrMzl4NjlhTnYxL3lOcDdjenovQzhYNWZyMy85NjZ1dmV0V3JFdTl5cmZpcDUvLzB1L2xheVFyVkZaZmNaY1JXVS8wVGY1b2F1Mi9HaWtOMXFWdG9hRWtvQTh2aDVXckxPUG9aVndod2JnbzVaS0FJUTFnb0Z1bUtZVjdGdm1vY3Z5Y004T2JzaVd4NCs2SVllMEtGSXNKWFpRQ25VQjBCTWRwaFhIWXg2Q1NvZ3cvZjlNNFVRMzM2bnZJQ2ttMFdON2VVdXZQdDFPR3dmOCtwRnczeEZLQWJ4UG5ySEdTekIyYkhDNm1SeFZla05TNmVGMzRKaVBDUkZrb013MjR1dXhvK010UkQvWEI2azZhMHVGZmwyWGZwbFFQTDkzMGE4cXdmTHRMYVA1YytqaDVONmJLTFcvVGJ6aFl0WWJFTEFGOTI1NTEzdk9kMXIzdmRBanhPdkNGY05wTjBaNzlzeXYyK1NvVHUzcjMzbHpkdjN2Z2ZqeCtiaVkzU29CU3FxN3ZqMjJua1BiK2EwdmhHaUsrNHBPZ3p1TDdFNFpraktBOHRtbUxZaXlFYzhmRzhqQy9pb0p6NUkybjRoREU2SWoxZ1ZqcTFKOWFraFhYYjB1TEtkYWxkUXhMQ2JKY0VsRGhLc2F6S1pCWVEwNFgwd1Q3QXovZmFRVGp1MjZvdFg2MHBYSXU0VnFjR1EzRXVZQ0taRXNjbUtzUE5WTlgzSFRhYTdBSmlDUkQ1VmFVWjJrYlJ6dHpMd0VBUjdBTkRobVQ3aUphU3ozMHVELzJmWUVIUVY2VEZ1SmY0dHF4dzFqVjRiM3h4SDJtNTF6QS94TmNiWC9Tc3VmVEl5M3Y1U0d6R1VYdHF4WGg5MTY1OS8rS2NjemI5WHNuanFPUisvTEc5OSt0Uyt1Q1VXR05IRGgzNzR1alkyUG04bDBRekhiTjBBTmY0OEZ0VDQ4N3JVMitZbFN6bnVuYjJMRzRRU0tWSUhrdy8rRHpram9TeFBNbGRnTWYwUHNzdUF5VEFTLzJ1THkxdTJJNTYyOERPL0ZCV2JUUjBXYlZsd1BSVldnRWd3ZElIa2lDS2UwREU1dzBOdHdDVi9sS1hoVkxBcEROT2xWY0JSUFd4ZW1xTXNHdm5TUUNhS3BCMHFqUTBZMXpMUUZMZVJxY2lYb2FFQk1IUFFFS1lBaUNuL2kzYUxwQUVTekRPYkdWVy9DaXo4RTFUdWxnNUoxNmJhc1Y0bTZNZmM2eXlPRUNzck5jZEdSNnB6czNQM2I1cTFkUmppWm1GengyY1QrL3ppbmJjWnlvU2xGYjZuWGZ1K0NmYnp0bjJqdWtUSjdMdFl5c3dZbnQzZmoyTnZ2OTFMSEJzQVR5Y2V4N29XSFRTKzFPZFRTU3VEeFR1U3lJTXB1MC9qN1MybG1hWCtTeENMcFZzRUZnYTBlTGF0aUdWT3F4OEwydzhOd05KaWNTcnFHSHZoRFNTSVlYa0thU1JFa2NBQ1JLZGFmVkRFZ1Y0NmxrQ0VXNEpJb0RWd2dXUUJCUnhHdUIxUU5SazVqTTBpaEVQQUFSUkREY2xFY0dUcmlLaVpFanBseUFxYlNPN1BzdTZrV3BOYVJUcEN0OXdPUDQ0cWt0VlpqM1MxV2RIT0RIdzFDZk04dllyWHpNQlVLSE50SVY0K1d6bjNUdGZlZDU1Mi8rdzVMWDU3dXNxeHNQWmsybWQ4dzYyaVpvVFl4T3Y0bXNaVXNEMjBDcVl4Y3ZtUTEvNUpCdWxUSzFqTzV0b0NhSWoxWmxBVVQ1VDhzU2lYVEMreUdmeFFlMm9nQ0lzS0ZjWmxaYlV5SkU1VXdHaXFKam5zRDFXa0h2Tlpxb3R6YWJ4Tzc2U2hnK3NUUE9iem1NcFlCM3JNZGdVdkZVVTBnaGQ0WHBRT0VnZjloS2dBbG9SVnJWRm1Qc0tvS3hVYVNEemhnZ1hIWTAreE9GOFZBL05WVm9zemZMdElENXM1WHZUUTJQWU5KTXNJbUtlQ1FxYjIrK2kvU2l2M05YeVR2S3hjSlB6T0NWM3BqWU1qWmRvdjNYRVpSN2NZRmJMTHdGVWdsQ1Z1SkVQQWQ1MU4ydEQyK2M0NzAydnlHVFNEbXBlM2xMU0h3RWdlSGIvWm1UM0MwQis1NWlQR3kzZGROUE5UeDBlSGIyS0R6NXhVb0RoQjZNNGZKdmF0OTJhdWg5OWYrcGNjSEZxakMybTJyREZaZ29KaEJKTVp3U1NGSklRbGhXRXlIQmhPcGxCWktZZzFMS29EMEpCb1hMR2FiNGdHR25GdFlUVEZqTFMwbHhrRkVqMStSTnA0dHMzcFdFQU5MOFpJTEUzNTBvdG0wUk1xMWs0QkNnYXhJTkE4dUFhTVh5bk55YnNsRjJBS080QmtUV1dLK1NDUzJCWk40M3lwU1YxdnRKaW5zL096T0lhZklHYXlXSWFtUURBQ0VNWnFLQWN2SWlpN1RsRzhuanBPKzEzRVpMNVFSd2Y4VTJObU1LWXRraGZwbzBNeFkyMDhiRjErZHJTMFJQMXRIdGZsUVZHRms4OXNZV0FuSjJkNlE2UGpGejExWnUrK3NPUHVQSVJuL1NqVm1SeGNmaXMxLzBDRUI4NWtnNHR6dGErZUd4MEdHdCt5YVVWcFNTbURtcy8xMzhtOVU0c3BmbmRjMm1CNzNIWGVhZXJzV0lvTlNZd0xKdG1OU0dPSGtqYjZNMmdMM1VrWXNRSkFZS0VaYjl4QVFzaUlpK3pFWjlIck9uelRZQ3ZCRkdPek9raUw0a0NVT2lCSHJxa01YMkltZHVodExodUt4SnBXeXhLVmprUnhvazRKTk9wUUJJVVFxaVVSZ1dRQ2tBWlgwRjlMVXNvalY5QnBTVEtmc3o0a0VLU29MWEliSWl6ek1kNXN3TE5HbElwVmp6b3l5Q1FvcTkyczd5Q0h2U00vcnFhclRUeWd4QXVFMUI5MENub1o1RG5CVmtpNEdBTVFCZVJkZExmY1hjemJkc3lUM2s1a2pXaExodXQxVFhyTnJ5RUlqNVo4cnlzL3Q3OGdydjM5amdsUHpmM3JHYzlxOHRDMDlaSFB1TEszK1d6SzZNNFdna24yYWZxSFR5UXVuLzhwcFNtMWpETGdHREl5eTYyZGV2b0VtNGhkZGpoa0JoOG5BU0hLbENaMngrcjlNK2dLK09NTmsyUnFQQUc4dmp3bEt6bGZTUTJid1ppY1p2elF1R1FHRTVKYUVkOStnalQvd1BScHU0WTJ5Uk95Vmw2aUx4azFDUVA1aGUrZVNNT1g0NlY0U2l6ck4rMDRVNXVYOW1PckU1SUFaY1hPT1l4T3gxbVdpd0h4T0lqSlFkNW93WnFFVmk0azN6SWI1eVdoS2dNV2dta29wSSs3V3hUNlVnYTlPUmVBSjJZcmFXMXE1YlNGQ2NGbk84SUpIYnJMV0h6OXUzbi9IYzB6bkY0WC9YbklZaTcxK3MrSlJEZjdoRmtTODk4K3JPZU9qVTF1UVprK2pYVXZIQ0l1Si83NWxmVHlDS0xoeHNlbHJxTDg0aHJwc3QxQWNaL3dpMXM3ZGJ4VmxwZ2Vsc2ZaL1JQb2tyR1dQSGx0WUpRTUtTSk5SV0pvVXl6dVhiRGU1eHZRMFFQeW00WVIwemNtaTRTODVlSUlDQyt6NzB5UVdGb0JFd2NHWGpnNmdPcG1DTzc2VHJHQktCNWFIK2FQK2VDdERpK1FvTUF0WVo0cDM4Vk5MVVN5SDB4QVZPcU1pVlBTM1dtQk5MQmRXMmprRlRlUTZRcWNlWUpKNkNOdzdtLzVoZC9xOURFNWFRNTFtZG1qL2RRYTZpM0tlaUVhcU9JQUVuUmxlemxidGsxeXNpT1YraFlnV2NHakt1aUhuMUFGYkVuRjczMVhzZWpUQThDaHJtNWUwOERtNGlkQWx2SVFoRWYrR3pENDdWUGVjcVBQWTNJZDhKN1cwTEo5MzdkRjRBcU45NTRvMnl0akk2UFBkZlcyVGliVTJFaHJ6VTNsMzdqYnorYU9HK1lmbmpoVUxxQXFmTEdvV1lhcTZDNkFBWWY3Z1pRR0xNNktOVmkyYWcxemV2d2pQUWFiNTgyVUhYMTBhem1ZbzBFb3ZYQlpPOExRQm5NOVdhaVNkeUlpK2MwaUh0akJGRVEwRnZDQWFSb2I5em1leE9FTTAwTXZkU2p6WTNaWTZuK2pTK201c2J0YVc3ak9hbmRhSEpTQUxWRzRmRjZVUUJJc01SSkpEN2tuRUVUenczak1tQk1nNlBCOFV3ZkcwbmdDQ1RmeTdWZE5yMU5tUkF5cHZkeWFSNXBOTWVLY1FBSmcxdUpCQm43ZlkrdUZQMGhlVnhVR3lwTktkTEFJR29nU0MzY2ZIYXo3SzIzRVVXRXp6emtzT2VlSnBKb01UNVpITkxNQk9TWW1waDhEb0YzbGJ3dnN2cnd0T3VzS2t6MTlaS1h2S1Q3em5lK2MvdWxsMTcySDloSEd1R2tQN1RwVnZnbG0zVEhqdHZUejcvMzU5TVhKcmVuUDUzYm45NCtmeVI5ZTJrbUhla3VzZXhmU2NNc1hveXh3RFpNYTZzcWJGUllUd3ZRVGl3eHdxZVgwdEt4eGRTZVpZVVhzSVc0NWJtTGNYRUEzdDRYVndRSDdrdmlsTSt6bnhNc3A0VWlJYmVYQ1drNm4rZVVNdE13Nlp5aU1DanF4dzZsNXJFakdDZkRxY1BIb0RNWUJBWHBRaTB1NTFtK3o2QW95eElvMFJmOWNHV2RBQ2ZLS083SllKNDhVbklUdkVlUXAzblVtMHoxTXpkT3RVc2d5V01IVXppZWwyR2ZleEFDMGdjZ1hYUHltVmUweTdwMFJZU1d4TnhDTmEyY2JLWFZLK0NGQ0VaR3dXUDQyMXQzNmNNdStlQzExMTU3QkF3NEF5OUtNczNKMTMxSm9GQmZWejMyNnF2SHh5WldZcWxiRGU5MzVVSnUrdWFYNlcxS2oyRnRaYkV6RkNiN1g3VG0wMThBb25SaWI5ckdnYkVYREUrbXE5ald1R1I0TEcwWUhrcXl4TDBxcENYcmZVb21wQlJnYXM4djhHUStWSnZTcWM1WEtHcDg3czIzVldNeng1cHhoZkpDcWtFTUhqa0NIY2haQ2kzM1UybVU3NWJqYkhVUU1FcFJpZVc3SE0rdVA0VXFqV3FMYzJuOG0xOUJHbTFOczV1MkY5S0lMUUJWajJwTkNhTWtVcklvb1FaY0thRlVhZFZxN09sbjZlTzk2U0JlYktIUUJzTWVmdy9BVVo1ZmxMVkYycEtoMnZoT2tNc0FvOHpZL0RhU0R6VUxNdjJMdHBmTXNGVkVDUVRmZG5ISmdEM25MSW5zWUpRTUxVZ2piUVNUWTJidmdXWTZkOHRjOFp4ZnFtbTFPeE1Ua3l1dnV1cnFxNG04RTNkV05YWTJBRlhXenE2Vk5XbDhjdUlwdktOR3cyMHRIYVptcHZMcFUxKzVMcVZWWStsb2V3SFdTNGlVemtjWERUbVNhZWxCQ1B3N3N4elFuZUhMM2t3WFhqWTBrWjQ4TnBVZXpnYm9sckhoTkdZT0ZqT1dBa3d3RURCMTZYem5lSlpNR3VRMVZreHJ3eGxNTlhibUExREVCeUdsY201U3BrOFF5UmJuU3hJSGZmdUI4a21SUEc0cEkvSkpXWUxZUkFGWTlNZlF2cDFJcENOcGJ0dUZhV0Z5RllmaU1MQURHS294cEl2clF5QlkyeWVES3ZzWkVJQ0Z0TnB3b2RxMGp3b1ExVXJna1JkVDNzK0xGU3JQNVFMdHJkeE84d3FJR1daczgyeXFPdjF2OExrYkgxTkVYTW80STZMcHhBZ01OM2M3UjdNcWRQMUo2UlNFQ0c3Q0N0S0VkR09aNFo0amRZNlBzTDB3NnU1OUxwS3oweHo5bUhnS2QrOHRNR0R4UmFzaVRmL1B2UUtJcGV6S1cvN3FMUmE1a204WVBYNWhZVkVBMFNVL3BsMVBkKys5TzMzd20zK2NMbHo1cUxUQWhtYlJOZ1FTNzVDVFNFbUJtazBYTTIxdThtOEJJcjFuWVRxOVp3NzFBQUIvRWpEOUdFZFlyMlF1dTIxc0pFMElkTUNrWklvWFdlMGhBR2t2c1NVUlo5VWdEdEtveHJKQWplMkNHdXF4cHBGQW5DTXBDRXI2QUV5L2U1bWd5eUR5Z1QwNG1SN2xuYjRNc08yT2xaNTFMTTJuaVc4aGpUYWRrMlkzWWh1eDkxVmg0VlFiTUl4ckdRNkhUaktnUTBJQmRuMUJneVRLL2pLSXNqVHlSQk1BNndPSk1qSGFsVnNhL2g1NDA1ZmhiVDR0TU0zWDlac2pMQ1M2aG9SdXNNL0IxYUMzZmN1WDhXQTdkWTg3SG5MNkVtRVVGOTIzbndyMzJZVmFPbndNd0l4eHpJV0h3TE1xcit2d25KUXJ3Y0NzdENpbiswVVZmZTllQWZTa0p6M0p2YS9XWC8vMXB5NnExU29YTGl6RW1nRm4zcDNtVnRKdE8yN2p2RUZLdzJ1YWFjNnpOZjBpTTN1OEYzM1VubVp5TjlNRktPWVJBT1dJKytqU1hQcm9BajNrWXdWUDRSejBzOGRXcHNjaW5iYVBqbVl3b2Q1OHFiWHRGekJoUWtWd0FLb1dPK05MN0lvSEhRUVVVa2t3Y1VRVFJzRUFxU0pWSmE1REx5ZzgwTGdJR21rSnkvNXkrNHM0SWlvWTJaNkg5dURaOE40ZHFYNzhhSm85QjJrMFBwVnFBTjMzS1BzcWphME9nVkJLbzZ6V2l2VWhRUlFnV2ZaZEtlK3JRSDcxcVV5djd3WnVudjA1UzhzZGtGR3FxQmEyVVd1K3gxZmJBQk5iSkhZakpJejl5a2x6OTBzUVlaUzdyNjFLYy9VaUFBU0orRThka29uUDF4eHFwRzJiWEc2eFA2a2lyL2srNVlYeS91bFAvOUViMlozWGxLR1UwNjk3QlZCNVpIWExsaTJQbXBpWXFqcDlwd1ovQUlSRnJIYjY2bTBjMmVCY2IwdVJmeDhYZll4cmdhNHBpYnpPUTlXTklza2M3WjlzTGFaUEh0bkZSczJ1REtaeHdiUWliVmN5OVRoZ0Q0Z0VVMGN3TlJ6VmxBR2dNT2hUUjhrWTlwT2owaGtOWU1KbzUyT21qREFZZ1hnS2U0Z3MxdVgvZlBVRDNOckM1ZnV5dlRrYUNVR2JsVWIxaFprMGVldVhVMlBUdVdsMjNlYWNEYUFyRGxRc0laR1VSZ05BWWxKZWdDTkxuMXFvTXM0M0lpWUVsVUNLRFJWV0F3TlVBK2tGa29zSGluMTZicGNwRzZaVDVjSXh0ak00THpUa2IzSWd2RU1hK2J6c0NZR0lZd0NFUVk0a0dnVkU1YUtsNDh6TFJjOTdqdFhqTktRQWM2eFNCK2VFSnV1Yk5tMTZGRWx1S0xFUUdVNzVjMjhBcW93YzRDZHB1UGpvOTJNc01ReE1DS2wrbk9IY3pmVzMzOGpyeVZ0Q2ZVWENVd3ErcjF2ZlkxK2tQUE9lQit4SE9iTHFGV0E2REpod3p4aWVTTS9tYlkzSElKbTJqZytuVWNEVTVpeU9ZT3FHUFVKdUZrSUVsRXNGc1dUQUZHWmhZWTV5QlpTZnkxVTZNVTBQUUNFUjVBQ1hPTTZBS3FnZXNmN3hlVzVYUENkOTVHRHRxQmZTclpwR2R0MmVHaWVPcHBrdDU2ZEZwR2VvTkFaRVh4b0JoVkJaU2gwZGtqZExtQXdpUHpLZkpaTEtDaGNTeUREUHd3a2M4cEEzcEJGM3FqS1hCcFFZQWluc0dOVGEvQ0VXNVpCRXpiRXNWZ1JYdEYvU0VIS3NoWEhObXlEdWR3a2k5K1BvWWpnQmRHeW1sbVlCNHdyZTgzYzg1UHpWTkRZeThtanYrQktzSk1pRU1XTGdPaU9BMUhsdmVNTWJURGJhcU5VdmIvdGxibWhxdktQNjBKRkQ2YnJkSDA4WHJuaFVta2Q5UGRqTEZubVZZTEpQZ21rRU1QbnNZOWdmSHp1NEF6QlYwejltSnZjTXdQVElzY20wa2RuY01NUllLc0NrYW9zUC93ZVFBRHUrci9XMmtZNThnREwxRm1jcGo1RUtvQnJNREpzQXFsa0NTazRFWSt4aUJnNVY5eS9iVVFJcGhqUXM3REU3ckowNGdqUTZrZVlBMFR6bmpyUjIzVmR6Z1RDbTkwZyt3UkRHTlZ6MU16V3hWaFNBS3NEQ3ZOczBOUUdGeFJoaEFRVjRzb29UU05ueDlodGhUdzBvRVRNNEJCV3RTUjBtdmZQemZPSkZhVFNFQ1U5OHFHOGFiL3NGRUlJUDZaS05hMmQxdzM3eGxuSllNZUdZQno4QndXN1Z5aW1WVEF3WVptTnNTZFdibDVOOTlET2YrWXg3bi8zQjF5Y09BWFhiYWRjM3Z2R04ybHZlOHBiRUNiVU5WMTMxK0g5TnpqRTNGU21rNG5kb3ZuN2IxOU4vLytUNzBzYVY1NlJGRng0ZWdzdU82aHcxR3VKenVMV0FhVE9NWGcxb3IxdGFTQitaT1p6ZU5uMllEcXVqcS96Y1VqT05lLzRHeWVBaVBOdEQ2SGlJRno1czc5OW5RcmRnMkFJenh0bldYSnBodVdHZVY0cU1zK1k2ZGRWVmQyVitZays3eXVtUmJBT01FclZ4ZUgrcXQxajNHcDlralF1cFFYa0tPVnFSM1dDNGpDdjh2Q2FVMDhYTVRiVTJrTVp3dmdjQVpSNGFKWXR0U2p3WFVHSE1BQ1JBcE5Ic0tqL2lVT1FISUFTRk16TUJJNGcweUgwVzIwdTB6MzIxVlJPZHRHRU42M0ZhMzlLTnY3eTAyUndaSFhyZmIvekdiMHlEaVlRait1U3IwSVFuUi83OHovODhSYVRPazU3d3BDMDBkVzNMVnh0dEJjVjZFSHZudnJ0dFBkZHA1WjFjMEhkd1ovRktwbU1ROVFROVB4ODFjQVZiMlJjd2t0ODhjeVE5ZCsrdDZTZDNmVE85NDhpZTlJM09mT3J3bmNVUkFGVkhPblFKZDVpdGRWbTR4TFpGeXlHTktOQmxmN2NuMmtpZEJRems0KzM1dEgvaGNMcHJabCs2WTJaLzJzME1jUnB3K2Nacm5UUTFwUlBNY1pTWGYzT2Y2YmNxRGNuUmRVWjRaRzhhdjUzaklyUkxwdFQ1M2Q5d1ZmMVdhbkxmQ0o5d2RhbnZHdnc4eUZCbGdXV1BSZEprUCs0cmkya1lOeFRQZVRHdzhJZklPOFRwK3libERqR3pheUxOR29VejNOUys0amVuT2tmbU9YcXJVU3h3QkUxMkxnbDRBbm1KSGZnVG5BdWF3WTVxOFRWODB4dyt6dXpQc1NSUHlTalBPZXk2OWdsZ2dNaE9nUWtUbkhTZFVZVWRQTGhPL3JWWHJGbTduWk9IRlg3ajAxVTJZVTBEV254S1pDY2Z4cUZSRUpycTRoSnhPcTh5THQ4OU5IL3o4b0FqTXFXTGtFckRXSTc3QWNHL09iNmYyZUQrOU1MbWVQcUprUlhwNGJ3NnZacVptU0tjaGRZQWptTE5EZUJNeUF3Rlc2NW90MFRWM1h4M0lSMWhBYkdIUmg3aW5NVWs3NlN0Ykk2bENkUnBBd2tZS3BGMGZrRkUwWmJsQnNBaXJ1ZUlSNklOMy9tVlZGMjNQUzJ1M1JwclNlZ0JwSkd2WEpPNlZHazBJdHRGU2h1V0tGQlhlWXFQa2xLbGFTL1JyNXBHTlg2Y2dzVDN4R01kcHlwVHdibGVGQW9RY2VmMFc5TWxIRTJ4bjUwVFRGbXdGVGxVelV6U2tVT1BTU3VQWUZzc3ZzN3c1b2RiUjVoeG9jS1lXTVpNamI0aWlDc2RlRjliQXdiSThqa3djVWFzbkRGeTdkcDc1Qk9IdWtlMis1c05FQ2t3b1hoZjREV2RBek03MDZYcjFxZEpOazBiL0VxT1A3cTJSRU44NTZnRVQ0QXBXcnNjWjVuZnlWVVUxMThhY0ZYN1lkZ3p4bjhBQm41Z2NTYVdDZjVWY3lJOVlXZ3liV052emtWTlRsQ2dxbUEwYmN3Z2twNklmQm9iUUNKL0VCOUNlejhQaWc0S3BxVkRhYXcybk5ZMEp0SmFOcGttc0o4MGg1RTk1RFdIUUtKL01MaUx0SkpSdFFPM3BhSFpJMmxwNDRXcHcxcFhCbEcyYnZLMFgrRGdCQXZTdElyVWNPWEhrNDBWVjY0RkRzOUttR0MxRldFV0hBa1ozMUhkQXFZNGRzdlVXeUNoT0hNZmFGQnNzTm9uWGlYdm9sN2JmaEdGdmIwUU5iUTQxTHg5eDgyd1FLa1VVbjM3RGNoeFhpa0tnTkVyZVQ4eU1yeU5vbEtKQ2NPRDE1a0E1QWNUZ3YvWU80b3ZLUlNFY3AxbG5obk9nZGtkYWZYb0dqcmo1OTRnQjdUMEk0OHQ5TzlpT0JqR2ZjQ09ra1FqYmUwaktjTGVQOGpMeHVrWU1PbDQwVFpYd0VkWUxmZitOeFk0UGI1NE5MMndQcHArSENCZGlqUVo1NW1uK0paZ2pyTVJGWElHRVdDZ2RRSW4reENXWng3VTF6K0NaTnJIdVlzS0tGeFpHMHRibWxOcFEzMDhEU01wWE05cVFXMmg1QlVtTTN1RWlUM0IrcDFmNE5YUUMxTmxhbFBBeko4QmljVkhWNjhCalZzZXN0eTFJSUdCSEFud3RFTUs1WEFWVU9XMWFXVk80WlJvZ29jWTNjbVNTR2hhVWdhSDZqdnNOTTZNdEhqcFlRbFI0L3YvSG9CVGdvWXdMWml6Znk4ZmZXQW1OakhHTTRnVFF3TkdOV3JOd0VDQkNjbCtFdnZPQkNCcDRjWE10N1pCMFc4T0cyS3hjeEJ6dXYzTk5OVzhrRmxPQ3pHTEtjY3pmejRTRXlTTk9yS2g2SkpBQXRrNlIzOFVZdlZjSjdYQ3dvbWdpQWQxV1phdVhBR1hIcGZBWE9NK2dNSDhBV3lhSzFCNUwwU0tYSWxLV3MyaW9PQ1pwMDBlUFFseHIwOERiR1lBaWVmNkFzT1RjNTZFZHhmOTdzNTB1bTMrV0JxdmNDUzB1U3B0QjB6anFEc1p0aVNRN0lRK1JyM2gzdDZ2cHQ3TUlkVGFSUlRoRjltQXZBd1VNS1Zhb3dIOXhVZkNEbEpCRklEQzFsRWk2VHFBcVVZN1ZHMTk4QUJ5Nlo5ZmVDeWxVQVpSZ0psU2NoL2dEOGQ2aDlxTGFZNjl5UmFTMU5UUlhJamgvc0p4Wm1Fek04M2VodlZ6ekxhaG9qU2dMM3dSWmlQZGMxUGhqTmRwQUhyOTYxOWY0ZmVvVE54a21yakdFNGRVRkZQNEVrQ0w2UmdmZElSSjZIaGhsUnRDaGJRMlcvdm9WWXpKTWQ5cGdyb2hsZGltWU5ZZG96NndVZ0JHVHllZmlpanJ6dGRBeEVDd2ZIcWFUeEZSeG9sb1ZkNlhHNGJJZTJuZy80dEVTa3ZIMHkvQ3lLdXdrelpnUTdFcW11WXdoUGtlRFczUElNcWpOMHNqdzlvditxcXRQSHI1WGpSdzJybTRKODVCWGRKWWxTNGFXZ0V3UjJRSmExdEJyMmhibDkzTXpzd2VEdGdCb3JXWGNSNXFmZGc3MGpTbSs3RFJkK20wZ2ZKV0NNQkJ1c1RVWGZzbkpGQldVQjNBMUJGTXFyQkMrcWpRSWd3b000am9Sd0JLNE9oS01FRVhUa2YwVU0xRDh3ZlRISU5wdG9FUkM4R1VnRjErZzZQZFdVQTY3eURUSm5wQmo5Rnp0cE8xTkgvZnZna211bUlEZHhJclRnT1FQYi81NXB0TjFHUXpjNnJqT2poRkZtWVFOdENjQzYrOFpvSUNnL0NLdSt5eXloSk1KWWljTW5vSW5FOFdvemJRdGJTcmxFcHg4QXpBV1pGbEJ3Z0p4MFdrOFhhd3ZFcHd4SDA4TEo4VWFaZHYrOWxDS2hIdkVabDFqRjVYd3QvTVhvRHVSUmpIVHdCSW0xd1BnZ0ZMQUNVa0VnMFJDTHF3ZGNpckx4V3l5NENxODA3WUxDejZWR3QvK216cm5uUjVmV1Y2NU5DYXRKWnl0YTBXQVVEMGlkSGVZY2EydVArR1ZPWFl5OGlxaTZDSlg2YjFVSnNNVnFWbEVDbDlza29qTnFSUk5xTDlabEplRDFKaEZRQWFVR1dXa1VHRlQxOWlNeFcrNkplU0tIZ0VFWWxLemRiaE5OS2RUOGNhZkxBQ2lVd3duWGZwSC9NeE1HcnZiaU1GNjM2V0NlOFJHaXU0YVlLSitlM2J0eE04K1RvTlFKeklMOS9BNEFja0syUCtyZ1dFQUNVNTQ0S3pEUVNhS2l0SDIxQkJJSkFLSUlRa01tNEFUSXlBSnZIRHZMYXJmYVM5cEpwanJ6UlVYcFplT1U4UFpwcTN2TW9nMGZtU0VPVkRmRzdqR293ckUvaU1hdG0ySzJad1NDVFR2US8xcHZzSkpORVRzWkUyK1U0WHFrY2JTZHZHQmJzK2NDSmNBRWlna2IvTnlCVmtqVUs5ZmFwMU1GM1hPcFFlMzFpVEhqTzBPcTFCSW5sNmNRSHd1TFRTcTQraytSTjM4bkxnZ1RTeDZuSit4WGxEU0dNWE8yVld0bytrcU9FTWlaQkdBYVFzWVp5UjVSbWFCalFTcVpCQTJRelBJQ3B5OGd3Z0tWa0ZrYnlKd1o3cHBySGY3QjFQbyswVDZkRGN0clRxNFgrYkp0YS9FaVA2dmZTdUwwSEJiVkNVRGFzMHhIN1kvR01mKzlpUzFFVGxTNVBocEl2WGxyM3Z2ZWhGTDhLaVNjTmRDR3ExOFU5Q3N2STh3aE9ONTNBQXFSa3VnMHBnTlZCZnpYaXU3M01hckk4a1VocU5zbG82emp0VGs2TzFORFhxZ2lCYkdjUVBSMXJ5QTdZNnpuVVlsMkw2anRZYWhoYkxjVVg0cERoYVhLWXpYa2R4NGM5REl0MEZqUGFMY0grSkhmZHJHTjN2WGp5V3ZrWGYrS0ZuZmwrUzJTYSs2V0wvanJ3TDVvTUsyWFhEZDdGekJvTHJON0c3Rk0wZmJoMUkvMkhtVytrdjUzYW5vMTFVQm5GZUxTVVNJR29UdC8vZzM2YTloMjVpaEdPWEFObzZhcFR6bmN5RWl2VWoxNUVJTjFuemFjUzZFVDVyUVUzV2hocTRldUViYnJDR0ZEN2hacXduNmJ0ZVpQckNEWVpkajZyeFRTWm1mRU4wY3RzbEgweHJ0cndhKyt3S0FEMlBEQ2lHSVg2eFREUDA3R2Uvb01tWFdIeWxQZm95K09jMENWUStYTDE1TTg4cWpXd1k1bGpMYnJQeUxJRFlXd3lPbEpJblVNNXpHNkEweWRLb2xFN2VHMWF5NEN1aEVGc2EyMDNVbkxPaVVpcXA1clNiZkdZNkI0SDE4ajk4Ri9ZY3B4RmpaSEVOQkdsWEdWdmtXYjd0aDdUZXpITStpVjJGL2h5UzRGTkxKOUtUQU1JalVER3JHYVdLZnpjNkVaUlpHbEgzY2ppM3pYTDZxbzJHVGlDUlhBQjk2OUxlOUQrUVNzOGRXcGV1SEY3RnVsV2Q1UWRPRndUU1IvbEo4RHZTb2NWZGFkM2s1V25kNkRZR0RQbVVSclNGQlR3a0RSSWxabXlHbFN2TXgvUUJZcnpnQ09TVVZxbzI0V2RJU2FRTHc1b3krSDEwYUo1Vm1qVExzMHM3dzhzUXFvMUhmREpWTi84dU50QmwxUHNON1NCSklwMWRzU0VORk9BcnJ4ZGNzRVdjeERPZkQxNm5BWWpsNmlELzFOQlFEUHdBQWptQ2lmNWh0UGoxS3lXS3VqdXJMeXRUWGVrUWx3UXlZTXhuT0Q4elRSa08wVXE2RENTa0RranBBRXFYQThvbEFUZjIrbUNpakRLdkhiQjhhTExjSzU1SGZQYjRXMFJFYjNKa0FNOUNCaTZKS3NPM3lncWUzUXlEUHRPYUFVaU5kRDcyMFpoTTRIbFdXWUNHdkNWZzNEcFIzZlZWWFR6TDAvcE56TTRZeittZnplOU9UMXM4bEo0L3NqNWR3a0U2VC9RdUFxUWU2MHNveTNUN3NjK2xQWE4zcFcwVGw2YzFnTTB0bVFBUzdZbkZSd0JRQlVqNWZUWFVKdUYyckJkaCtJYkJMSkFFVGdrZy9BQmdqc3ZBOFpsOG9Nd1c5dGZvZEdwZjhGY3ByWDQvYTJNUEF5VDBpbm83dlRqT0d0U1JTZ1dwcWtOZ3djZ1NHNUdnK0hNYWdJcDRpcE1GRk5NdktRSmhRSFBLQWxWRXAxaXhzcEtZd1FTQXlGRUFxZStIeENsQnRHd25aU21WQVJlU0JqQXBpZndVbTM0YlcwbndsSURLUUJKd2pxcUJadGxPRytHUUtkc2NvWHhmUkM1N1JicUk0SSs5S3E4MmJWM0x6VHFvK1UyWWZDdUc3a1ZJcFBVTUZIK2tWQWtxNExTUE1wQUV6d0NnaW5BWTRLU3g3TWNCcER0NFYrN1ZzM2VsNXk5T3BHZU9yZVBGZzFHZUNSOVBOMHlrWXhqaGV3OS9MSzBmdVNoZE9INHBKL2hXaGtFZlFLSk5ZUjhKSkozL2lHc0Q5Q29MUGNnanlzRUhOUG03MlNXUVdOeWtIL25iU0lDc2l6RlBmVE1iYms2TG0vODBWWWQzOFdidVplZ1laS3dUQXJaQTVqUklTU005cFo0OU1GeTg3ak5BVUI0VzE3MEJpSjgzbWxXUUFJZUN5REtOaHRmWlJPVFljTmc1R2hvQmhBSTB3Vnd6a1U1UStXWUcveGs5QXNmOHVZenMyemlaWWh6cEJBWTNxaTRYK0FSTzdOMkV6MzNFUWJnQVdVN1RMOVB1V2s1MEt2Y3poNHRlbm5SVHhKMzB5QVJGdmtqTGg1ZTR0L3c3QWRKZTJyWU9CbkZ3QS9ibGVpUjFTQ1o4UVVTekFoQUJMRExxNjZaSnhiaFBsMWVIMHArMTU5S2ZIYnN6dllxUFR6eWVyNjJOc3VXeWdOcGlpeHBicHA1MkxId3IzYlp3YXpwLzVQSjA4ZGlGYVVWOVJVenovZjFVTjMwMWpLVjVIRFlMTUtuU0JKU0dmMTV5SkFHMVpxbFU1NWhJQmNmbnROS3gwVHZUb1ZXZjQvMjlUN0MzdGhWRnNnVkp0c1E1SUF4OTNJR1pPOUxXS2FISlNLRXZCSEpIWVEzSGw0TXF4SngyM1J1QUtydDI3V2FnWVdGR1FZRkZDbVRKbTFrTEdNTEpmS3FqeUVDWlNMQi9CVmhLaGxoam45RTJqSnRsNlVPNUpmaUlqM0FCb0pCQ0pYandCNlZSQnBnZ3lrQ3lhdXNvNjhxaDR2NWVid1lmWlBBWWs0dko5NVk1UlE4Rnh3RWFkNVQrdW4xU0VzMjBncWdFaXhLbERFc1RuMFhiOEZWbkhxTHo1NnorSzJ0U2Y3RTBuVjQ2dGlhZFB3b3NzYTJjOXRlckxEWlN6MDF6WDBnM3pYODFYVGg4S1c0N1N3TnIyS0xoRUk4Z29RMHhtRWpYSmwvK3pSQTJQQ2cvQmk3UGxlTHNxNmVaMnJGMHFMRXY3UjlGNm96ZHlPUmxsRE5WRi9JQ1JKdU41TmswTjlNS1NlWVJGL3VLNzNwZldKazBPWVE2aG5UcnpqdnZkSXdzRTRtYjhpcHBVZDc3Rlk0ZUo5RXFmLzduSDF6Nm5UZis5cUw3TnhadWdYcWU5RU9pUitGT01BUlNXRndBdDZ3aGtwc2U2Z21Xck9JeU1VdEpFMkFoVFFaVDdyeHgxbFZLTUovRmRnTWMxTWoyNTY5TGxSWUE0M21XVkVYWlpJNjIybHdiY2NwMWhxaFRVaFMzQXdrTityMEl4bklBYVNZNlJFK3BBRXJIWlYwMEpUdHU4dHJMY2x0TUpHMjB0Ynd1eEw1eU52ZmJNd2ZTank2ZVNFK2NXTUhLUG0rMkFDS2x4VWlWcjRrZ3oyNmMvMUw2ek56bldSTFlrTFkzdHFaTmpmVnBWVzFGR3EyT1lmaXptb3pCcm5xeldGZjc1OGg5bkpJUDE0K2xlK3A3MHBIbUhaeWszTWRodlJYc25XMU1KMWpKUGRSam53NXBaaXVkSFEreHhTUC9iQm5DSWJNd2lFZFEzbmQ3aXgvLytNZGJZa0pzUkFjRy9wd0dJSi94S25ONis5dmZ6dXA4YjliM3hibWlTS1hITUI4R24rQ2svNlRISm1LRm04b0xvTWhzMXc2eUxRTUJ6UmwveTNxemJyWEVlQnJSaGdpVVNTS1BBRVVGS3E1SnJLL1U4MTJ6VXdFVVFCSlkxTzNJczQwMnRpajZwR0tqRTBYNVovS2lwOUcyd2FmUnVpaFFZamtBbEVpeEtJcTRVUXJtL3BDa3JQZWtXcGZMaXZMNTQ5S0FaVjNDWUx5QnBZUHJPRkh3QWs1ZlhzRFhUVmk4WlZzRXlVQ2FzZXFrUHpiQ2Z0eDB1bVArQnI3OXpEa29jbzVYeHRJb2JyZ3lRdDB1Z21LL1VPcE05VGpMRDhkWW8rdXd4UUxRbGxaZzU2eE9SMnVzR2RYdXdYNVZnN0NrZ212Z1dQUm1hUUUxeU9URlFUTGM1TldNWWx6UVRIODloLzUyZVdjakxZa0pmZ1Z4dVRORjZEUUE4VHByYjhZdFdqTHhrdG54TElGa0IrQ0FTZXpRcDlVcno2VWI3dUs2V2drUlM4NUl3SEQrTVl0LzlQbGZnTXN5akJYMW9RcUQvRUhhSW0rUkZjYWNhZHBmcXJZK2tFalhZZTJwakMrbi8yWDFBMDNJQlVlRGNxT0VjNjY1SDNtR2dLTXpXa3o3Q0VsMGJ2MW1SSk8rejd2ZkI2Sk1jZHBsNFR6SVl6QUR6VFFSelIrbDBDYkV1YzgvaENSNkdPZVRIajB5empHU0prOVVhN3pKUzJWdXBLNENFQ3Y1NStMa0VwTHFCSHpsOUJMeVNrWHBlaGxUK1M2dlNsVTVxdzFORnFIelVuT0p0VFRYaWdBTU5LcXhOaGZMVXV4OThYb29aWEV4K0h5cGN6Zjd6NVVMT0taSVc2S2Zsa28rREdqZWZFaExuSkd1SUlWNnhXZCt6Qm5YYVFCaXJ5Tzk4WTF2OUdHTHpJZWRQa28zZTJuQlRYYWthNVZWQUVKdEx5bm9BRVNLU2dVSElqNVVFV0ZmY1BQMVpvbXJxaHRDYXZsN1ZuNVhzR3hvYUFUelVjaHkySkZ1bkNDaTdBQlRqak0rYkIvS2RqVzdSZm1xdGtFVlY1WVRlYWs5dDQ5R2NObVdmRW1wTW54ZnZ2MDBlZUhiSm13TmZ3L0RSZFI1OXZsNFVXUjVJQTBVZHhKNGNyZmpxZkdXSmlPRjhVV3NBN2tnK1RFK3N2Nndkak9kTXpRTTg1MVJ1ZHJsd1FNQUFEVzBTVVJCVkZ0UG4wc25uY2dYUHcyS1RaU1ZrWFc3TW82a3dTaTN2Q3JyQVZVLzNXSWFXV1g3QUk3U1hETTdla05aMHQxRnhZTzg3VEhDTVJqdjR5bVBYSTlDaVBCaVgzeVpwZkxhMTc0Mm5nMytPUTFBUE96eEdSZlRjQ3kyZmNDT1dxaWR0UnNOM3VCdlZOY2luamlsVGVPVUxISE9Ca2FHK3BLWkVGVHc4R09GYVlvZmxSdm1lMEUxQ0cwNVliUElkRkFRNmNrdkZnVkdPSmxqbWNFazY4UVZZVzlVYlVqZmVCUEIxMzZIbmNwQ1VVSEVUNmZqTXFna1dnQUpSa2QrTStmLzlpM2lJbUM0REF6NHViK1p5VVpIbWlJaHJZdjhkY3IyeUlTRG9nbVk1amlNNXJrbzY0dExuNElzSzY0aTdMMFNPT0w1QTA4RENFM2kxbkt6azAzcS9SaTY1L0x0cGNsNlpwRkY1WDdZRm1qRmpVT3pkTWFWVnp5SEptZzJpSUNqVEFSVXJzaktjR0RUUnNSZzlyMjFGY05yZUEyZDR4NHgrbk1kOHI2MTFPYkVYbXFEQ1plT2x5dmh4dXRNQU9LQU5pOGVrWGhoZm42UERTMHZDMjlVaDFraTM4QmgrbS9DZUg3M0M4YjVpckwrMG1JK2F6TXkya2dUZklWamFOaDlwd3lvRmtaREcrYUdmV1I2YmFWVHdDUEFySTdvQWxBMGduQjJ1UjBSTGhwa2pQZjBNMFEwdjV6TzcwTFE2VGprNWt1S3VZNStHZWF6dkVIZmNIR1o3djVjU2g4disyWWU3YUlHUnNRUUlKcGRaUHVEZWdXdjh4bXZuRHI0RlhmZXk1eHdaZGhVL0tjbzFGQUcvZTJjQTEvSlR2azZWSnBIYkMydEJFN1VuVnNROFZFVGVjdktMRnRSZ3hESmp2dCsyRGdTNVBxWjJiRzdNRFYwY1M4QVpNT0x5N29XRitmMmNOc3JNRkUrNnZ0bkJGQXg3NitjbUo2KzI5OTV0NjVnQW5DdXNaNHhYTm1ZRHJiK053Z0hRSXo2bG0rUDRvOENuSldyaHdNNEhnVllZbjFoaVdlRElJc3d6N0tFa05DUVFpRGhsQ0lDeTB2VktTQlVmZkVwM2R6YmVHYUt6TGpsZk9Wc1RNS3l2RUkreEM5akpsUWNaY3JrM0llY09kZGlPUDVIdWY0eHphbFhSUFhqY3lESFphWkd1VVRFUGlBZ21nZEU4Nzd2WDlRNVdKN2Q4TkpBamR6aHkxQWM4ZjNuTU5rbGcxbGswMDVlSWxpRndUMkswV2k5TXRaL1NoL3ZTNkNHK2luS0l6cjN6YlFrT3NuWkx0U1psYW1tRmp2SDBzYUpSMnRFUTZjTUlJdVI5ek1uWnUrbXBNcTlyUVdkRVVCMzNYVlhDTDc5Qi9mZGZkN3MrVEpUQVVoTFdDUm5aWFdzdGhsZzdFajE3cFlBanlKOHc2YlJOTG1DbHdESnVjQzNsRXVKNDFzQzJrR2RrRDVaVWdtU1VGZWs5VFZtUWVYc2c5OURTOE1qZFg1cUE0TVFsWmVubDZaMWxPdWo5Z2hMcU96bnNNUXAwNFE5TktES0Fvam1qVG9sdmgweEgzOEdydFB1ZlZhazdTZUwrd0lCUGk0eTZlbkFEck1jTm8yUlJoeVhBa1RhWnZrWmovcFhXVUtweGtyUTZKY2dLdVB5Z1YwK0ZNNlMzQnpHOHppczBJU0VERkZuVm1IY0ZOS3UzN0dpVFVyTEdLRFdYbGJNYnIvbWgrL1RhVXZOTHUxTUd5YWV6L1lVNzkxNXpBUTdnZXgrOXE2M2Q4K2VYZVNzRnBpd2xKT3VNd0pvY1hIUjlqV3Z1KzRUZTY1NjdPTVA4cU90YS9uNGtQU0tMazQwTnNGMGQ0VlRXZ0ZvMW16Z3BUOCtHdVZvWDV6SHJDc1lwblRLNENtQm85MUQyM2tlYWcrbWFoOU5yQjFLSTN3YVZ6dkowUlhmRlFxMXFLUVNMSU91WUFqcCtpQ3lTM2FaOWlpeGxENllEK1RsR0N0dGNMVTEzajZnSEpQWkRUdGorRXhYUkJmUHlpUmwydEkzWHhuV3oyVUNJT3BnYVFYcHllSWVVK1NGQUJGdE5VMmtNeU11S0Zud3RBd1ArSmFmQVVVa2wydkxnbVdhbWRrUVlkZWxsdFdaUlZwb1VWN3hUQ0VqamNKcTF1ZUtOcHNVYzhSQjZ6RVBYM0hhTUxXZFpEVXc1VmRJV0wrdTF5dnpTMHVIL3ZxVG4xQ0YxY0RFR2QvZk9oT0Flc3ozdTlkZWUyMzFuZTk4NStGLytVdS90cU14MlFnQTVRWjAwdVR3ZW81ZWJPZjNRWGtaYlRXZmJPSExZOEY0M3ora29XSGY5Q1hQTW5oOEZxOGpBNHBTM1FrY082OEtES2tWd01tcUxFc1ZwUTRNMENpbTk4RUVDWU1UaUprV1JYd1FxS0FVUkpRQnczek53dE9UU2lhQnBMTzhUT3JNSE8vT2VsbFgxSVJmSkE0QVVvZlIwU1lMSU9BaXFNWjFuVDRLWkcwamJTSlZyTlZhZHhSUmxHTVJ1UlVDUnJXbW4xdWpYejR6Smo5RnFsR1BTeWVxQlJzUTNlRmUweXp5NEtNQkl6Nis4S1lVSXNLYW1RTWI4SCtVN1N6UVNjaUdsVnNzckx6NGxhMUdtcDV1N2ZpVFAvbHZoOFNDbU9CaDJlb3kzWm1OYUQ4bzlGdS85VnNtbXAxYldQam0ybHJ0c1REUDlqbXQ0K3pPcXJSMnhaVnBkTVUwbjM3QndFTnlLTFN5NUZIS2xLNEVBcytvV3VLcG5sYXZHUWwxcCs1ZVhHRDFWVW1saWdNODVVSmtWams1ZjVScnAzRUJUc3VYRVVWM0pIeW10Q1MybFVWYTAxQ3V5VFFnQlZPVEJSeWxVY3dVUzZ4RmprejhJdGhuWW5rdlM2SWsyMkdrVE5IenZnaUV1aUJPb01jYUYxTnB2NHJxZEQ5bWh5Rk5zK1FvMjI3VzNPSitGOHF1aEIvUGlnVFpvMHd5Q3hvbklXcXVaV2xxYWZseThEbGpqVmVpYVVPV2tFcGVlSUY5YVVvbDFGSnZJYTFxWEpEVzhKTmE4dFlIY3N1M2VCY1dGNzlCc3JtTEw3NjQ5aXUvOGl2TGhSZDE2SjFKQXNWamJBZkoyNWsrZnZ3ckdNUXZvL0h4djRzZUhtSXRhTzNVNVJ3TCtKK29JTmFFRUt2OHljeG5wR3YzQ0FBWkh6M0ZRMXFtaVpYTnRIYjlTS2dyQVNQb0FpaWt6ek01cC9kazBjZ21iNVJoRVlTVklONnJva2I1K0ZTRDB3QXVFempLWThSU3ZrekpqclMwM3ZvZFhhcEVBYU5SYjdnMHNrMmJwUnh0SmR5L2NtZjduT1cyejkzQmRMa3U2elMvekNuckw5UUwwa2VieUMvTjY3SkJYOVJwM2RacDNuN0ZWbVBsc3R1TE94R1NZL1ZJYnp3NkJWK3BJbTNrdXc5eS9mam1oeWhaR2xrV3hqSXBzSjJMUytJWTEwelRTL3ZUSmV1ZTFGdkIxMUZZOTR0OEpJcnowTWVuajMrRk1POWl5cjB6WC9jR29ON2RkL01qVTdSeng1MjNmM1hyMWkyYy9mWVhHeUFWaG5TRmJ5Q3VITDQ0SFczOER4akl1UlFNcjFCUDBabUM4WVN0TmJZaGtGQWEyS3ZYanFRaGpHUm5hR2FJOVNOQUVYWlNvYm9FaWVDUitUcUI0eldPalRYR1o0T0hPTW5vR29halBOSVc2ZVB0RVpMMjFSeDVGSm1hLzAyWXFPUWI5WFVZaU4wQ1NBc3NPUWdvNVlqTCs5RlltUkljc3VYV3UweTNBQ2t4NVJXdEt0SXZnOGMybDIwQVJIQ3NpL1JSUXRmcFg1MHB1U0R5ZkhndzN2d0J2RnhyVkJrVlVHLyt6NTF0eUdEd2tYZVpzdVFodjhQY0k3T2g0cUVYLzZQcFJZbG1pWHNIaWpEQXk1Y2dnemdIRm5hbDU2eC9KR3ArR1BYT1YrTDQyZ0sxMWFhbmozZjVlWEErd1pKcUJSWXMrYlRyM2dDVWJybmx6enBYWFhYVjBLdGVmZTBkTjMvbDFqdW5wa1l2NExjeEtFUVRuWk4zOVhQVE5KdDB5a0ViVjlvOUlUVzR0Nk9DUnlreE1kbElLMVpsVzhrV1JHZGxQTTcwZlNBWUxvRGpNOHRZc1hJb1RlRWFuR2tLU2FTNkN5WVUrU1ZhNUtGY2ZWcW82d09KbXpMT3VpM1VJN2NON0NMcldPU1R4QXVvMFFCMWpOcVNXU1MwQVdZcC9jR2JlQklSRVRwWkN0RW0yeER0WXB0RkNjUk10Y0ZnYVBHT3RTdm9makRjQVdLNnNuM2hsK1VTMzYrL2pGdU9pcEJKL0g1UmxBT1NIQnk2M0phQkFneWFWdEFRRHBDYmp6QnpublRCeGt0ODdDUC85SWJROWNlUEg3L3oxZkFlRE5UQndoa05hRE1wMmM1MDlUaEUzWHZHTTU3aHN5TzgydnlGQmxNOCsrc284VUQzTUVldmhpcDgycmZIQWp4RG9GeE1sQ2xlZ3FlSm1oRThTaDhOYmUwUFJXc0pvQkk4QVRyeWhkUXBxRGhPK3EzblRxUXQyOGJUMkRnNEoxNURPOXRLZ0tkUWFhRXVDUStDVVJVWVpRVURLYmNvTzFRajROTllkKzFLUXZNN0kybHFSU09OKzNGMGdHVTl5KzNJSUJZL2RDZUFwSy9BMHNiSnN5MW5YQm1VNWJsdisyM1lRM2Y1SERnTG5JU0hHUVFqbnYvR2pZUTlsdE41ZnJ3OFF4NXJTYW85eW96eXJhdDAxQm0yVmVGbjlXaGFIUUNsSFB0Z3ZQUzMzZm1TSnpqL1MxOWxHSEptbmtQMWw0eGYyZHU4OWh3R3BjaUROL0JZWHN0ekVoNFJBMkloRjhEZlU2NTdsVUNrWTFPVjc1N2hIejUwOERNYk4yNzZHYjRDVVN3b2N1aTdOOEpMaEk5SU03MnZNZEkyaGFxUndZTEJTOXRFdFRHRzZuSEc1WFRkYWFQcW81UTRKWUN5WEhYa3N3aEl2a20yUDFhdVpVR1MvRzU1Q0paZ0ttVXJLZnJHdHIxRjJ2bU0vMEVjQ1JSZ0lrSmFCUmxsZnJTS1A4VGx0TFREcHBMSWR0Vmd3RGhBTlc5cGIvbTR2SlJDMmVYQ0xHL1plQzlUWmQ5NnN4VEFwNUpRdDZneloyYXFaOHV2NC9URDVxTVB1VTNSbkdpM3FzMHJNenlYZThhLzFrWHZUS2ZFRTJEMm9ZckxFaEE2a0RIYUd5bHoyaHBiOFB2bmIwN1BmZGkvVGxOOEc5dHZIbVM3aVE4cjhHbVhnd2NQL0MreWRjQ0FXUWRKY1ZJenpncWdyMy85YnUyZ29ZLy96NC9mZU02MmM0L3pzYWtwN0IwS1U0MnhVdHErTkUyekdTU0JTc0liNytXSUVBQnVad2lrOGhYb0lLaWRLNXozTXNaUjVtYXI0SmxDM1RYSkp3SGNNdGJQSzlnNVh3Q2tJRkFBcUtoZmNFbUVYQzhidDBnOGpXN0w5N0pwcGExbUdiclN1SGJGWE9kc3piWlhrUmhsbmdnTS9DbUt5MXdwNHZ0eDNBY0pBSUNzODRQK0dVQzVIL2FsalYyVTFka2dpQVQ4c20xa3NSbUVXZFVVMWVTeXk1dlNwMExwSHAvam93eS9ndWFQM3NSZ1F3UUVIY3UwUlFrdUlCNWcyZVVSMngrSGRLMzMxMy80N21RTjlYWDhiejcybHplUXBRNEcvQUJVZEtsZnhFRGdiQUJLSC92WW16dS85RXV2ci82bi8vVDZuUzk5OGNzL3YzTEZpcWVmbURtaFZLcDNlVDFrdUwySmtYUVpVOEc3WUhEZTlaVkJNbEhHYWYvb0JJOGp2SWVFQ2dhZUNoN1NLdmJIVVhjVC9NYkdDSi81VlFTN3R4YlNDc3oyQVVmZTB2aVdhUEVjNEpoLzlXcE8zS0g2ckRPRFdydEFpWmVKR0F5UjAyQ0RLbVBoTWh2WG5HMlNzY3dNRnpnYlBJOWg0RmZRUkY0QXNGUUg1QW1nK0lkblpmaFVmNW0rUEFubVpoQUZtS2pIRC9sM05LNXBtM1ZxRTJtNzhJaDJsTkxFck9ZWFdIcUZYeFpPWEhubFlNNFhSam1qTWVoQ0p6T0lDbWxVNVBHdDJBVmUwMzcwMUNONzUyM21JeEMrdHgrRjlUcDhUS0YrNU9qaHo3LzViVy9lV2ZCZWZ0L3JkVFlBV1YyMzJZeGZaRzRkT0hEZ1krdlhiM2c2Y1NGOUlBRlRTZFJZNjNHc2puNkJqdk9pSEFTeHM0NTQxWUlnY0N0QjV6dGVqTzk0THJPVUhLUXFubk9VQU5DTWpUZjVHZ1NmMTFWMUNSclRCWGl5Mml0dG1YSThTTlFtZHNXS0ZjTnBFa05iVzBDVnA1cFV6VmxHMkVvU1A5UkU5dnZNTUo1V2VDL28zWE1ibTZpenFzNjc4SlFoa0JiZElFYlBEUGJKdnRFVG04Ly9aUW1YVlVCMEsrTHRZYjZzcDJDd0VvbCtlZml0Z1NHZHBSRnREaEJsdWtnYndXU2JCL1BSVE83NVo2TzVTai9mTGQ4Yjc5ZENZcjJJT2tvUXhkSUlCVGZZanJwcjVtdnBwWTk2UTFvNXNZclpGeDh0dFlOMHg3U0hEaDdnbFkyMENPOFZ3M0txcUpIUUtkZlpBR1RTM3Z3dDgxcmdJKzk5MzN1dSt6Zm4vTnNqSXlOanE5Q1hOTVAzSjd0cHZPVnJJYXNoQ2tlZG9zT3VrTG8ySTNWdFZPSEhQUVdhQmlsaWsySkRFWjJ0RkJCQXcwelJCWS8yazBzRFdicEExRkppRlJTektJMU50MDlXc0hrcnd5VzRYM1ROZ0tQWFJJUzZ4SS84NUkyNjlhUDZBVWJZVWRQYktQN2JaTGRWSnFZNC9jZjc2U0VsaXRtZmtpMnV3aXZtTHRGZmx4ZHl2Nk1JYnl5S3k3K1duZ2VRZ0EwcFJKM2FSVzJOWUFEVW4xMHFoV3czZFdTYWt0dDJTenRWSS9IaExOcXd2aGZQdk92WFl4bW9NcVZhSDBRQVJQN1kxa2RmZExYbE9mR2laWlZ1amE5cEhEdDI5TWg3M3Z0SG42R2d4aTIzY0FSeW9IakNwMTBpN0t6WG0xRmp2L3FydjFwNS8vdmZ1NU12dGY1UFJCeVYyaVNoeVJ1UTNiVnByUHZEckRZZG9JTytzSlpyN0hlVWRIWTJpRmpxZU5LWTMwN0VXUnJVanpNMGJaWTY3OXpIZ1RQU2xNQlJCVm11bDFKTmtMa3NzSFlEbndSRzdha2VnM1Rta1dnUVNTRDFaMm9SVjhRVGxoa0JUbWRrMkQwdDE0UncrbkZQbkN2a2kyd0tPenZockJjQTUwM2FxVWFjYjVwazlkMVptOEJWWWc1anJ3MHpzMUtOdXNBWnl3VE1obHl3ak5rVXZvRE1zeVhqYzVxWXJTRkJuWjJaZnlUSzhhMlhyTktkd2VueWVhTnNDc1FzcXl6WDJaaGhmSjNoTUIyUXBGRlh0Q0huazc3U2JZUWZKSjd2M1phdTJmN1Mzam5yejBYeStZMXZRZG50eWx0NUxLL2x1U1pNcHZxOS82WEtzMTZ5dmp2TnBnaCs5ZHUzMy9xbmZMSHFIM0hNbFRkMmZJUmpPWFJsdWlydHJQS1NtZ0FoeWlYeWVGcU1sbElrT3lLRHdTYXlRTUNRYmFRTUhBbWxBUnVqalNUOTZYNlpudnd5d3YyekNZeHRwWmI1VlZlTzJEQ3VTMVdnclVSY2pHUWxtR0dCVTZSVFVqUUFhNU5wdkJMUGkwZFJodVhGcWpIK2t0dnB2SGducUQwaEdHZHF5Q3RpSFFCZWhmaVBPSUZzUDhPTHY5N2pjcGV6UnpoTENkdEQyTEp0VjloRlNpSWxSdEVmNGlPTmVYRHV0WlhTcWFTVDhZYTlDcThJa3haZ3hYT0d2SXV0UUozRncrUHBTWmM5aTZXRDRjb0NYN1hWeEpDbi92cUFQQ2F6UEhmSTZuTEJVZUxwZis0TFFPYm84WlhPcGVjOTcyVVQxMTc3a3M5LzRmTTMzN1JtN2RvcjUyYXhqVmpLN0xCN08xRmhZN1grdEhTczlrbk9DSzBoaTJzc3VXWjlHYVBqZnhBakNBSlZ3VThlTVlER2tlTjNucldWVEd2aVU4RW1vMXlKZG1uQVl4OURqQ3FaNVZ1anBiUUtFQldBQ2RCRXhRV1FDS3N1Qlo5bDFKRVc4cmFzSi92NTNuSzBvVnBzdDh3amlUU3VsVTRaT05wdUNIMGRCYWdFREJqMnVWNFo2S3UwSEJsUC9HTVhWVG1leTdHSkFhQlFONmcxZ0JRMm9DRGlZZlJKdFFZeGc1NkNMdWhEVy9FTmw4NkMrZCsvTXJBRW5mRU5QbWh4SkYyeDRTZDZGMis5SXFSUHRJOHFSa1pIYW9jT0g3eEpIc1ByQmp3L1lRdjdCZDFMNFA0QXlGZDlPcHpLZDBvL3ZYZnZuajlHQ2wwWlhZbUdNM1h1RGFkTlF6K2E3cTUvRUUyNkFVTFMycUNtSFJUNU1vWGNCWVVqYk5Na3RvU0hFZkVoQlh3WkkrNkRJRUVkazVrbUw5YXBMcHppSzVKRCtrQmtpZE1IVHR6bk9Mc3YzNnhqVkJYRWd1WUVUdkdlQWFLaHJjR2RHUlVncE00QXVBMGdzOTlVYnZMbHJNbHVNN1krRnVZQUU2L0hLS1c4K3BNRm1HLy92SS80N09XdzZleDdFVGZ3S0RnVUVwdnN0WkFTdElXeTNEdXpqWDBBUlRoTDhHd2UyTTRNcXR6ZVpZRFpkSy9zNTlvRWFvMjNPSTYzdnBDZWZmR3Y4WTdZUk1VdnJYaWdyT1RsM3QxNy9waHMweGRkdExIeTRROS8vVDdWbDNYY0h3RFpuTjc3MzMvRDRpV1hYREwybk9jLzR5Ky9lTVBYL3RuVWlxbHRuaHRTOUhVNEVybXFjVkZhTy9vODFoWSt5L0hMdFJBc21wWEZiY0VVZ2FEWUNkVkNxU0hHYllXWHhQZWZJQ0taQkIrMGU2Uy9ObEk0VkkrcVR0WGpUeStVMGtjL3E2M01LNDEwWDNWeWFqL0pScTVTeTFyTEJjOHlYK1FoYnpCQzhOcGVxSjk5N3RsQXRzUXdyRjIxeHRZVGRIR0tRQUNTUG85ME80V3pzWkVqQjJPUVJKLzZqK0o1L2tNL0RUalFZTEk3VWZGR0x3QlNLdG5HREtKaWtBUXRyUy9UY2ZrZHVpSXVtbUE0TjZXc0NHT0JkOGVPcHUwcmY2SjM2WmJISUgyY3VrYzd1N3o3WGo5eTVNZ09lUXVQRy9DYUkvYlJyR2hhV2NhWi9FS0xuK25SU1hHOUhUdXVhMTl6elhNZGR2djNIOWovYm42QVJhS0ZLZVJaYWIrMmZ0N0VNL21VMnpHa0NJd1NBRFNRL2tLQTNIbGJvNW95VGxkMlVqK1BvbHhuMkJybUo5NU9DcWhzZ0dZYnlhVjZtUm5TeWpva3FnQVFRT1lodlNwUnc5Ujl0RGl6cE1vS1d5ZVhXNllQQmdWNHlLdnhyU3ZMSzhBa2tFM24xSDZSMytyd3B4N2N4UnppQSs2dVhVMGgxVmF3ZnVVaTZCakdkVG1qVkZyNlhZSXdoTjFpb00yMjY4eE9RNWcwdU5qT3dMYUxyUWtuR0lSalM2VGMvaWdNZFY4cXlBWjdUdXVnQ2pvVjVTelg1MlJsaU0vNjNaS2VlUDVMZXFQTkNiOEJEYkdsQlZNZmVMbC8zOTUzeTF0NUxLOEpROG43dnU0M2dDaXErNVd2ZklaWE1WTGpXVC81MVBlakwzY1BOVms2WnB3NndscDg5MmIxeUFWcDg5aUxlVDl5RjVaOUFDeUFVVEpKNWpwaktocHU0OGt0ZUdCKzMvRVV4RWhrTDhFZ1VHSXRpYmhRZFdFck9SWE5ZMGdCWVIyV0Y0QWozaG1Pa21jTU44UTJpc3dJbzdjRUIrbFZRNUZQQU9tS05paDVKSjkrcURxbThMRi9oa0d0eWxPQ0NTWm5ibjRKZjRtend5M2VvbkEwQlhqcFlnWko2ZWYrQkVNRlVlbnNUN2lCZE1XekFCUGhQR01yUUZRQXlYMDIrNVAzendSUENTVFQ1NGxKbHRBRklIa2RmYW0zSjEyNCtxVzlpelplV1ZuaU5LbnR0SWZ5OE5EaGUzYi94SE9lOW9HSmlZbEd3V080OHRBQ0tHcTcvdnJyVzcvOHk3OXM0ZnYyN05uOWRqZmRvQmxUSUI5em9aUFBuM29HdXBiRDJVYUgvVk13QVpIdnFUenRGbWMwbVZsa0lhL1NaOW5sd3NxWlVSYi9CWEFDU0Vva1lJSUxBT0VIRUNNYjhUQXYzcjRFMis2L2FTdUZ2VlJJbjdBcnRIbEMybEN2NEtNUmdxVUVqdmNDUm9ENStic1JQc2syUGpiRWIycnhFd25PeTJsdmdJZXBmbGFIUkZHbUwraUZQUldBVkpJVlpVT2t1UERrRzkySVB1U0JrZnRXU3FXUXJ0QW5KSWxnQ0VBVW9JQjJmYW5rOUQ3dVN6OERLYVJTNU1sU082YjUvRjVJcDNKNzcrcnpYdHpqclJvK3lVakRWSUUwV1I3dTJiUDNEMmpXdmxlKzhKVmRlVXk0YUhDMCtxeC9OQXJ1NzJXaFhVNHJ6di9Zai8zWXhIT2U5K1AvL1licnYvcVNsU3RYWDhRckh4MFlXdlAxa01ubXBuVHU1Q3ZTN1NkK2k5SHdDQWpLYTdveWdsRWJZSUI2RFdaQ2k4eHFwR3NmT0lSTFhlOHBuU3lwY3RNY0xVcWxFa3h4THhNUUtUSkJLYWFUT2FhUjZCSlhzT3BranVtQ1lvVzBDb2IzZ1JPUGdteUMwWkc5YXVWSXJJeTdyaU1valEvUWs5LytlQXhrbG84VHpNejRoUXNsdnRKVmlVSmkvdWZXS0JHWHd6UXU3bndXUVc0akppcndFU0RtcjNhUTlZWHZMTTMrVVdiUXFoaVVFZlpaMlM3U2FGVG5nV2tldzM0WlpDUk5MMzRtWGJueERiMHRLeThwcEUrWUVXeGJqTlR2T1hUZzF1Yzg3K252aDZlTkQvNzFCNTE1VWRMOUIxQjBsUXozOStyeHRjN1crZWVmTDBvUDMzNzdyYitMQ3MxRW9DTVNvODJQejIyZmVDSWY1WDRTSDlROHpLaGtWUmx4N3hUWWxXS1N4YUV5Yk8rZ25nUXp6bzZIcllTdk9vblhjRW5ETFJjRTkyK2ZBVGxPVUpTU0ttSjRIbkZoQzJRajIrZTZBSnIxaEhRb21DS0FySnhMcWVZVWZ4VXIyMXZPbVVqck53T2dLZkx5WVVkYVJ0dFlWTlN4Yk5IalJUeC9nbkxWdW1ZY045bThaUkliYUFUSjU0RzFiS1QzMVdNVW4rdXdFOVpqMTZPZDBYNGxVS0hDYkhkZittUjd4b0hVdDIwaXpPQndnTVFnS2NOSUg1NHRxN0ljYm5LdU9kWG0wNHJSSCs0OVp0dFBRbVAyTmNSR3dTdDU5KzNiYnYyUGRQK3dQSlczaEl2R1NwWDd2aDZJQkxJMEMrKys5YTF2blgvbEsxODU5ZUtYdnZBdi90ZW5iL3prbGkxYm56SjlZcHF2dDFYcXpsanFxTEJMVnJ3a2ZlSGdQK2Q0eGhUVUFtUkNGZUtGU0hZS3pzaU9MUTBMcEVNeG9nU1JETUJwYkNzOU9HNFVLL1FDcWVBMWpaQU91WittR1p3Nnk1aFNNaGtPcVdXY0NDUmZBRlVRQlhneU5HV29COWEwbDBZNTBtRTRacEdreTlLdEFGemM1N3haR3VRMm1INFZVMzBzaXBpWjVka1pzME1UQmN0c2NaWTYwUjdiZ2hzTTU5Ymx2MUdxL1NXUjNWUzFsdTNWRDhjRDI3WXNkVmlhaUQ3bHRtWTFOY1NTdzJmVGs4LzVVRytzc2FxNnhMdjN6SnFsZDN0eVlxSytlOCt1VDd3VUhzTExCanoxSGZnSEpIMXNyV3g5b0pmOWE2TzIzQ2RwLzhYSFB2TC9IenQrZEpHanJmR2JDRGF3emRmZFZ3K2ZsODRmLzRWMFl2N0xxYlBFQXBiYkJTN0dzVEFIanNJdUNjWnpJNUd5K2dJOGhhMWtvaVkyVElDTGl2cUVvNHRLRGUwcnJ6dzY2UVpsWklia0VXN1oyVmFTVnhsVTFqdG82MWlDSUlzZCtXSXZMczVhTTVvRm9XVmFyNkNPMlZuNEpZTnNnODk5RXpZYjB5MS8rcE5Ocm1GK3YydUNiWTlZZDJMYnc3ZDAzZnJ3WUp4Ykl1NzV4WG9Xd0l1dEQ2VkhTSmRCYVZNTU5pUk4yRFhGekN2YlBVVjZCazlzYmVDWE03Sk1ENlE4WDU1dFZiNllMbHY3Nzd2YlYyZzRjMXcxQ0JBSDV1dEhqeDFkL01oSFAvS2JrS0RQUzhMMDZJRmRMT1UrdU91V1cyN3AvZHpQL2R6d205NzBlL3QvNHNlZlZkbThlZXNUV1JkU1JnWW9sVVNyK0RqUzBUbStiTC8wTll6UktRaWViUVZyaEM5aGNBYlRZV0kySWd0MW84MkNVOTFNSDJXbm1MUUNRaHNqM3JjS2dtVUpKY0htWjl0aGowZ2ZBYUVSWGRvL2JsZGtPNGlqcEtqUk9YNjdYaHRHNWx1M0V0RXpTODdVWW9FUzQ5dTJDQXdONUx5am4yZHJHY1JRT1FCOHNtK2ZNcUFFV0pFKzJKRlZ1d09pN0d0SVNmdElXM1BZaVFWdEg0d3JucW5lVEtNRXorbjFsOU1HWGVLNXF0QjBxSDhPaTNYNUdQemswSlc5eDY3N1dkWjFhNXlnME5RSTI2b3pQalpldmYyTzI5NzR6My9wWno4Q0R5dnZldGU3WFBmQnVudmdBQXBtMi9rSGVFbWE5dHZlOXJiWjV6Ly8rWTJmZlA0ejNyNXYzNzR2akkxUDhGNmRLSUVCeWxjV3J5NWYrMksya2xhekZUQURBM245aDVsTFNDR2VTakFMQ3NJREZoa2I0cDh6TWpMUFJVT2xnMkRMekNra2dsS0I0Z1dZVEhHQlVKOXFnMGo2Y2FOWFhCSmFZQlU4alhReVpObkd5S00vbUdCWkpCUkVZVE5SWDBpdWFFZVdQTkVnQ3l2QmRGSWFvMDFYdWpKZEZERFFCbWhBWFFMQ2VzTkJrNWlKT1ZnSWwxUCtVdEtHcitUaGVTbU5sRDRhL2c2VUpqdTRZUXMxWjN1UFh2dUx2VVpsbkorYmxTWHlwTmVXUi92Mjdma0Nodk4vbFhmd2tKK3I4OWhlYmhiK0E3cStFd0NKa0NWR202cHM3cU1mL2REcmppTVcrVnl0YndveUIvQ0EyUkt2UWE5SmoxcjdML2lOaloyb3NMeDJFdS9MRjh6UGpDcHNIOVNYQU1vNzRoUVBVVWV3U3dTRUdpdEFOTURZQUJHTTgwMFBpZGNuZ1l3ZHZNZ3NwbUtuWDNCdzZRbTZQS3J4QjBkL2tXYlE5b2hNWmJrbGFLalFxRnhpcmw3UUJLZ2lRL2tucHl2dkhEYTVmdkxTN0w1RU9Ra3dBQWhnQ0pqbDZUcWdRWlhsWFg4R1Z3Q21YQThTUkRwT1M5Uy9tQzVmOGZyZVZIVmIxZTk2eXd1cTdNb2JlZlRoajM3NGRiUmxydUNkaHJPOExIdFhOdk4rK1E5YWhaV2xmK3RiMytwaWhBMi8rYis4YWQ4MTF6ejErSmF0NXp5MTVTb2JkSkZLSGQ3cG5oemV3SWV2TDBnN2p2MW5Eak5kd0VqSXY3RmhrelBCTFEwbXE2c01CWFVqRVBlK2F4L01sc0RoRlBtRkEyUlZpRHg3Z2dVOTdDeUIwSmNxaGZxU0NjWlpyRk52cFdDSWZub3Y4TUlPSVcwNTlmZVpzeWpMSzlWZHhrVWhVYUpWL0xIOUFMaTB6MHlUMFNSZ1MxaVpPTjlidjJESndNMHpyd3hjYmE3Y3Q4RUpRTzVyQm5rWkx2M2w5SlJOb1NIRjJPdHFWNytVemhuK2Q5M045U2RYV3QwRnFpcmJVZWtPYzZML2ExLzcydXYrMVd0LzRlUHdyUEsrOTczdk81SSs5b3p1ZkVjWEpIdHk1eDN2ZU1lSmw3M3NaYzJmZWZIei8yam56aDBmbUp6a25lY2VLT0hTcU5hQTI3N3k4ZW1TbGIvTkQ3eCtES082aVJyTEc1S1pBU3pBSVU3aTRGYXh3cnVFc1MwREt3QkNZOXBMQnNWVVgzVVhEbW1GMUJJWnZqTldYcEtzZEZsMDVid0NTVnRIb3Naei9EQzBZWjZnQ2NlRGJId3ZxOWUrS2lvcjBLY3hscUZOTnN5dkZvN3dYUm5WaDdKWDhOa2YrMWFPNjJXcFE1Mmx2VVBmK2hLUStuTTRnOHpEOFNHWjRGQitFeU0vTHdkUXFETDZFd01BSWQzazF4eFQ0OXRwdy9DcnUxdHJUNiswT256ZTBnWjZ3UXUrTUZiYnVmT3VEN3pvSmM5N3I3eVNaL0xPcDVIbVFmNzVqaVZRU2p1aUFSeTQ3NjVldlhyNGQzNzNONjkvNFUvL3pJK3NYTGxxNHhJcmJMTEZ0am1MV1Q5eEVZdHU2OVBlNlhmemR1dUZJWW1DMVpZdzBJMXl0SmQ5Q3VEQUZDa2lrV1YwOXZNVVBnQkJuRjhkdFp3c2hiTHhYRXFmY3BGUG0wWnBKWEZsUm1aQVlYUVhra29HSzFWS0NXUzR2S3hMMjJUWW4ybGcvMnZscXBIWWIzTWZiR0pxaURjN1dLM0dkdk55Qm1uYnJTdmFYclEvUUJCUzQyVFFtQzc2UlNENmRFYS9LQStxbHJQTUdoLzk2bFIycHFuYWovZTJkbDdDMnB2U1g0QURXK3llY2FhQSsvYnR2ZVZIbjNyMUx6ejg0UTl2Y1diK3hKNDllemdzditQN0FVQ1p0RFNvZC9YVlYxZFJhZTM1eGZrYkhuN0ZJNTh6eHNYR0k2dlVMcXBtWW02Y2ZCamZ6NWxJKzZiL0dCQmxkUllkcFppU1RSSmR5c2Q5RVNuakkxZ1NXU0QxQ1N4b21HVXhuVlo3bG91SEdzM1pDQVVnam5iVkhvUjMxaVlvWWsycUdNWDlFWTF4S2dDVk9wNVFqQVZCMHRwR2dhdWFjN1BVZmJaaERyYXhFMEI2bnJQV0pkUGM2ZkRNVXB4V2pOZVo4a1FncHRzQlVGVVY3WElRVUUvWVFCS283QS90NDFiekwzekRPcXJQOTdhRGlPeE1OOHd1L202K3FQL0Uzc2JGVndBZTNzYm5BQndsMm9mTzhQQlEvZGl4WTBmZTh2dHZldmt0WC8vcVBuaTA4SWxQZk1JUFozN0g0S0dNNGdNUGhyN3pxd2Q0T2ovek02OXMvc21mL0xjakYxNTAwUzFiTjIvOXFRYkRrZThwSXRoamFRNWdWTkxtcVNzd3FnSFI4WGZ3VmE5TEMwbFVORURnZ0pSQjV4UHZuUlhGRmNTVXFseEIzRXhRYjBQdHlSd1lvZDJ6ekN6RG1YbDVNNVNqcWdFd3dHVzZ3bUFWY0RKV2JwWFRlTUVrb3dXY3M4TDhxbEkyYmkyalpINzJiUVhwS2NMNndnRFc4STAxbi9JWVNnRVkyeGxnb0RyS1B4VTBsbkdxNndNSnNBcWVYbTBYSDZLNnVyZjJ4TFc4OWNKM252bXVIYVhhQm5iWkc3V0YrWVh1cHovOWlWZjgzcHQvKzh2d2hxMm85N2xkOGFCblhmWnU4SG9JVk5oZ2NTbDk3V3MzZGE2OTl0cVJONzd4TjNjODdyR1AzN2w1MDVabmtrSTJaeENKQkc0M3IzZzRXeDBiK0Ryb0h5Q0pMZ1lnK1UxUnhZd3BSRXdzRnBxK3lCTkJuM2xaWWx4bEFCREJnVkppS0cyV1ZkMEF3NHduUzd3WFQzb0JJekF5MlBLOUFCSU1MaUE2STFSYWVlOHNydUVtWml6cVplQUZhSGpHZjhyTmJTaWxpeUMyTHROa3R4dzJiVCtQK1lxOE9iNjRMK0l0UktEcFJ6b2h3bmVpdTdXN2VOLy9LYjNWeDE1ZWdNY3pQb0lIV21OWm0vWkxOMzNoRi8vNUwvL2N4K0ZKOVkvKzZBK25lZllkemJxQzVBTi9IbW9Bd2UxSHB5OS8rYS9hcjNqRks4Yi8vVy84dTY4LzRlb2ZPYktaclk3NDNYbXhRYTlVUm9KaDg4b3JPTUY0ZnRweDVQZjVpYUx6bzFtTzlzQ0xkeEhPeG14R2xYR1JiT0FQaE9VYWpKYnhtZWg0Y0NtSUhzdzBEQk1CaUxNck02bm0vazk3MXdKY1ZYR0d6N25QNU40OFNFSUNlUkNJb0lnQkZTaUtpRldFc2JRS2d5QnRpRXBMOFRIVFVUdFRaenBUdFdwbFdwMXhuRkhyYU91REtSUkpSZ2FxcUZYUnRENktUQTBDSVFSTEdVZ0llUkNTbStRbU44LzdPUDIrZjgvbVhtUGJZYVlFQW1XVHZidG56NTQ5Ky9qTy8vLzcrcGZhMEJTclEvV3pzUWtnbGF3STloU0dOZEJVVDQwOU5zYlQxQWNaMEkwNzlCNDdIYVpsVzFJa1NaOXhkVHk0REpNODZqVGdhc0RRMVg0VmgrL0VOblBYRVNNMXRpS1dGdmkrR2NPMmpqamxJWGlnL2dJTGlLcXE5ajY4Wm0xcEdkckNqY0ZDS1BLZERmQTBueGJXSlpXT245TU5JQ1RaRER2YjJyZnZ6eEZJKy83SGYvWEludXZtMzlDYm41ZC9QZFdIQUJRYzBsRWdRc1BralprR1RlcXpqU050djBOZ3R2cXlJQVV5Rm9Ha0xEMHF5M1NHQUVaL3dyV0VJM0daSThJTlZqaVJRRWNhR0kwbEZ5cEFla29FbUlBSFlCQjJaRGV5VUM4OFIrcERVR3NxUmFGYnlVdDR6cVptOGg0N2FYa1AwbzhEbHdCUWVXRTh2anB1MVRVQkl1OURSQUVNODB5LzdTby9pMklQbUxvZ01BL2VGZk8xM2d6d2NKQ0xNZzhMcWNDREZZWm1kWFhWdXR2dlhQRXEyc0M5WWNNR2dnZEM4NWVuRlR4ODRRZ0FpRzFLRUJsV1ZWVlZaUFhLMWI1SDF6MVVDUkQxWUgvOTlSaThBbmhzZG9hb0JGVk8ya1ZHVHNvQ282N3RNK2dWYk1ZRXJOcG5wcWtSQWFIOGhBc3FpZzZNT1BpaEd3ZVZvbGlrR2xUZkp0WEtGdnVhVVEwazRFQTRHMGlQQW10cXdUQlNDVzBZUGlTVXc2L0JKa2tqZWZVZUd4eE1rNWJodGljT0hxUnJoek5Nc1RtRzJaYnYxZjRoRitDaFlqdEhEMlMxUGlzdDlJRGxhWjJIVllWUUJJM2F4QS9yQUhzSlRRZGtUclA2d1A1MXEyNi85ZmVvZTlmR3NvMEFEODRrVnBSSFM1RzZXUCt6T3hJQVlxYWtUZUhHcWc1V1JVdVhsL29lLy9VamxWZlB2YlpqL1BqY0c2RnJDSVhIMmdJVW1MVVp4dGJhOU9SY296Qnp2aEhvNmpCT2RtMkJUaCt3TktDQ0p5WVNIQUlJR3ltQVJodzBPb3h4YVBGU3RwbjRlYUdOQkNJY3JucmFqZ2VnOFFGcE5NMU8wSWp4cjE4bHdNY0pvaUg1Qm43R29XVVphTmlRNHVOUGd1VnRaWlZIYm9rWDhlMExSWVh3RHVZQllYR0xkK0EwSHd0blgzaU1JaXNsY0w5bHRsMk1rN2IwT0k5UTZpak9lTWY1Y3FZQnR2WElIYXR2ZXcxMTd0cTBkUk5uMkxtS2xFTHphUWNQMGh3UkNzUjB0V0VUeHFxL3FvNldscTcxclZ2MzBKNlpWODZ1eThuTytRNDJzVG1weVJ4VnlMcVNkVVJlWjRwUmxIMFZNbldKVWR2MkVrQ1RnUVg2cVFBUnpyUmk4WkdhVUEzeEF3WTJZalJZTkpYaU5ZMjQ5UE1GY09rVmEvdHhLZGZxaDQySmlJeHJXMTRLa0hnTkk0MkwzR3FYSThEeUNPN2JVZUJSb09CMW9wVUUrQk9QcUo1RmdKS0hjQXRwS3lEck1JNFJRREIyTmVIY2kyVXhiL01xTTlhVjRiQndaQ1ZpU0dLWUpJMndxOTdmM3hmYi9lVVhQMTE3OXgxbHFHdlg1amVFOHNpS0NVUmtzVWZFakJRRlNzd3NNeCtycnQ0YlFjSDhUejcxV00ya3dxSXZjL1B5YjB4UFQvZGoyZ05UcHhZK2JLNVQ0WWRpR25rWjA0emN0TVZHUzJldEVRaTlpK21QSWxRQjU5YlVLa1lCREZrVUxBbUlablZLWG9sZnM5Nkd3SVYwRmFCVUdLdFVubVBtRXFwM3lJdjJFVDljMVZoc1lGSUdObTZjK2d3QlNMV25OS3VBaUUvWllHS2d4R090TUo3NlVhNTlMWEVad3JqOHJpbnZPRS9nQThxd2tqdnVzUnpOMTVuUlFkeDFxWjRXU3NGVXduNG9VZ29HTzlzcktuYmM5VE5NVVFoNE5yL0dVMUUwNVdFeGhvb0YvMmsxWndKQXpEQUtVQXdRZlJBdUtWbVQvUHdMVHgvcjZPeXF3TUV1czhkbVplY095UFpQeEJJU2dLNHpnSktHSXlLTGN1WkJEOUVsUm4zZ0xld1F4U2swamh5aFFOeUhMNDBQU3FRRVpodE05alh2eVNnd3I1R3NBRVNRaEdzRXFHY0pwSytEaW8xQ3cxL3hTVnpicjI4QVJOTElOclVnTlJJOElKQlk0RDE2dEYrQlNBVXdUTjNRRVZXQUZGdUNxTXdYOHhLT2JweWcwMkY1KzIrMjNFMmxSalF3d1JFemdSNUtqM1kzSFc0c0xUWE4xWHlpNmNDenp6Mzk0eGRmZW00ZjZ0WXNLMXNQOEJSRDVtblZZejFTRkw1cEpJeVVhU1FTL2pkcE9nQVk2SnVwOFpTVWxLU1ZsNWVqcG96MHQ3ZC85R2pSeE1rckJnY0h3TWE0cVJlZkhnelhyL0FFR2hjV2hBZEN4NDI5ZFc4YVJ3UFA0MEFROU5xUzhpQ1BjRUtVKzlidHdVTEtKT3hKb1VzdXNncTcySlJadEV1cUlkY0lZN2VkOGVWWk5JV0FnUzRzUGlrMTRLamljRkc2dnM4R1pJVXBGc2E0aUNQVXlBWU84MjJEY0pqRElyRlFDRVlLZE5Hc0d0Zzh5eFRMdkpBSXRMMDUya0JrNWxpdXRzVldyTFhJeERKYXJqYkhNMFNxcEIvaHJEcDBkeHUxdFVlMkxsbTI2QWtFQjB1V2xvVEx0NWQzb1k0SFVjY2pKdk5JSmhKK3ppU0ErRnJXQXFtZVorSENwU210clhVK0hHaHZySDlsYytuVVM2ZjlNZ01LRWFFZG5ZVm5iYUs1V05IVVdnWlpBTHRkR3dOZkdmdnF0eGxOd1UxUUVYY3BkbGNTU0pnakE1aFVvOXRqT2dRU0FhTEJZL3RWbUEwTUFWQ0NYd0Ntd1BKMUVDbWdNSXpVQmRFVUt5UFlZQldBOEM3N1dpcVVjVkNJYjN6NkNKQXdBUkw4VUExSTRHQjJEdmhvTjV6UlN5MW54eUlyMW5LWkdlMXptNWFMU3pGb1dHMkVuQkgxWTFramREWVAvUFB3UDU1WXMzWlZHZWEyak96c1NiMFZGZHM1czA1Tkt1eXFVMG84STRhTmVTWU5LNEUyVmx0N0tKS1JrUkZic0dDQjk4bW4xdTMxdWoyZlRKaFFPRFZyN05nQzZPTkJMeTNLTmRZUU9UQWlESlpGK1NZakpjKzRhTnhjWTJ6SzlVWTNGQUcwQk4vQ2dHQVlhS09xWWFpblE0OU5MVDIxVndSeS9nelBLY0U3MFVVRzlLcEIzT2R5V3NiUlZqOUROb2pnT0R2RWhXS1Bxam5acEx3dkxKRUZRN054M1I5TGlIOHh3dExnSXhEb1YreUtSSmFJUTVzN1c2SEhwOGh5ZDY2d3JQcnZtZUdUQmRCT2g0V2RrSFVVY0ppZUZjR0tZYWZQNzNjME5UZnUzbHoreDU4OCt0alBQOFE1N2c0czVPdXFyTnlaQ0I3OWFqdy84b2JsT2h1RzcrVm54WnBNc2xrYXIvMWxyMjliVTFoWTlBQ29rU2NVNmdFRTJDVGdaVEN5QXhhU0xIZFNSckNSc2JuOXNIR282V1BqV0hzWlBydFdIRmMwRXdvWHhvRDZvS0hBM2tnMU5Oc1M5aWFVU0ZHZE9IdERHdzZ4dlRpYlUvZmp6MnZxSlduYWJJdHg0bFFJY1lrSjNCTktaYnZLRDhxSVB3R1BDU0tCVXdWbEJHUGdDaHhIZUxVVk9UblpqSVNTVFlzOUxsRFRCSFlGSkZGM285L1owZGs1VUZkMzlMZTMzN2w4UGFxaUYzVVdneGpBcVFrdExKUHFuRkh3NEgwMmhhVHZ6QnVDeUxUbEl2ZkNoUXRUc0REZnQyUEhqdWc5YSsrZnNYejViUStPSDUrM2dBdXMwRVVsV3lQQWFQRkJFbFFLU0ZoRlpIU0VtbzNhazN1TW95Zi9ZclQzdlljQlAraHY5TTdDc29vMGdBa05oNWx5c2pyRm1wUnNGQWZXY05EWTEwT2dBc0NHc3p0Y1N4aUJSSkJxUU1IRjYvQStoQVBvR084U2xtZmdkR1NUZ3JGekVGL01CTXZaTnd2NlQ2ZERPTTQxSXYxZ1ZjT0FneUlTRExFa3JOVWxwVHh4b3VtdjI3YVZQL1B5YXk5VlkvK1dFNE92WUZrVklkUmQySlozQ0p3ekRoNjg4NndDaU8rbjBjQ2dVTzFkdVhKMTJwWXRHeG5tZnVINVY3NWJmTm5sOStYazVGeE16YUdEb3JoUXhkZnlFZnMrNmlCZ0FDM2NiYlFHanhuMWJmdU5obzVkUnJEL0F5bGhrcWNJbEdrY0tCZE9BWVRnTEpSQ2xtQncreEF5QUJ1bk1EWTR0S0J0ZzBVTDNvblVTZ1I0SkNiVWphNE5LSk5UQzlpUFpUcERFdVkyQ3l4UHVOaHc5azR6ek9BRUl4Wks0elFLWG9UdmdsdWVPTHFwbWtLQWcza3NGOCtxT0hteTVYRE53ZW9YN252Zzd2Y1FJWXk2d1d6NlJsSWQ5TEtHSmtYNXpGa3paNHVGRFMrd1ptbG9Tc016Yjk1TnZxeXNkRDlPanFaQW1MbnhEMi9jTnJGdzBwcXNzZGw1R0h6RVhpZXNTWVVSMW9ZblJRYUJRT0lFRXFDbURld0J5aklIUTBLWldvSkhqQk9kQjQxQWJ4WDBJa1B4S09JVFNCNTNJZHcwMkdTQUNsck9iSUZiQVlvZ0lyRGdha29FVjAxbDZKNGVXUjhhSHl5SGxJV0FvY3ZkVFI0TU4zak5Jc3NibTJLNEJ5WUJPT1BBYUZKeDVCVnl4bU1FMllOa2wxeDZYeXdKZC9mekxJOGtaTVZ0dExXMU50WFgxNjVmL2FNZmJFVncrNUlsSzUyQlFMRG44ODkzY0IxUG9xQjhWcWdPODZyTmFBRVE4OE84MEpMNlVEYnlMbDFhNG05dWJraXFyUHdiV1ZqdTZ4dTIzb3J0UTZzeXM3SUtjUTNGVDcxc0JWUyt5RWhTRnJJM0pzTWhBRFltWlJDdXkrN0RPZTNkL1FHcnM2Zlo2T3c5VG12MmhCdXdLNkFCOHROUlBJSTlYVVBVaU9EdzRua2ZYSFVNRmNFaWs2aFl0dXJDS2pLM093VWd6TUNwUmRsV2tndW5Gem55Y0JCZkhsVCtnZExocEdSSEdPZVBoc0dlS0p5RElrRnhzd0lOaTZqblUweVY5K1JrYkNTRGFRKzAxUjl2YkNpNzg0Y3Ivb1RMNWpsejVydHljd3Y2dDI4djU3WWJVaDNXQXd0STRKeDE4Q0FQMG1CMFI1TmhaZEtTR3JreFd1MWR1UEFXLzg2ZEg3bWhLWlpmNnJqMXIyeTZDWUwyeXZTME1WZWdad0laQ2Flc1k5ODBLUkY3YnVwNTlwamdrM29HMVFBNktKTlFrS1ZnVHAxR1laejdHbzcyV1FPUlhtTWcwZ04vTDg0ODdjR0FBWSt3eGJHREpxYnJrQnFldy9sWlhoT0FORDFPbitWeCtVQmwvQmpZOUFIcEFCa1ViTW5SMGVpV3l3QW0wdWVxUUE0OWlPQXMrUkNNSUl0S213bkd0NXhZQm14UXJWeFhWMmRWYlYzdGxydnZ2V01ITXR5QzgwbWQxMTY3S0Z4UjhVNFBscDlxZHNXeWp4cmdzR1pwcEZUS08rcCttVGMwWHpHQVZPTXFLQ2hJdXVxcTYzMDFOYnZkaHc0ZFltV20vV2JkMDNObXpKaTVKRDE5ekExanhvekpJRUFHQmdnbUxMbFhZQ0tqZ0dUQ21vY1BZZEtXS0RiL0tPaEtid2lna29hV1VCVVgxMnhzaFRlRWc1SWdHVHNsU1lvQVpYcmNPMjhUQmI3TlRvTXVBWXlrZ1NtVkVDYzh2VGlObVJQRVdHYmFnU21JancvVVZHMy94Y01QN3NhRFhUeFdxYmo0VytFdnZ2aWt0NkdoUWZldVdGWk5kZUFkWFlZMU10b044MGlxUW9ya0tpd3M5RjUrK2RVK25DYmorZlRUSGF4WTU5eTU4d3ZYcnJsM1hsNytoRVdwS1NtelUxUFQweWlFS3NGN0FJM1BGZFZEUnNhV2NJVjBiVUN4cFcyaklLQ3Yvb3VMcHdsQ1pjUWxUbmpKUE1rZFRMWTZPV0tzODlMZEhld0s5ZlRzYm15b3IzajUxUmQzVmxidU9vNm8wVzkvK3lZSGRySU03dC8vOTk3NmV0RU1UMVkxcW9IRE10TG9HbEJYby9kWDUxTUR5WWxCU00rc1dkY2xwYWVuSkczYnRwbmhiRGp2NHNXM1RGaDZ5NHBaV01CMlRXcHEycFZZWERVUnV4SndXQlUxWjNDZkY5WE55RnlhWmdta0pKSSt5STErajEwVEtoelZGRWNZN21pa2tFclpFZmtveENYSVJ5S1FxM2VGUXQweGJQZUdldVN1ZlkxTmpidTJ2N1Yxei9zZnZrUFFrQzA1bGk4dmpRV0RvZjQ5ZXo3cngraXlGbzQxY0ppMFRwLytVV21HVmRpb3pPUHdUREhQQkl3R2s2dTQrQnJQNU1uWlNRNkh6L1BtbStXOFR6QlJFTS9Ba1oyVGlxZlB1Q3d6TTJ1NnorZS9CQnE1Q2pDb20rVlA5a01ZWm8rTnJJYnNpQXFodUdmZVprM2lJZ1cwSWVNa1dvNU5hZGJIK0tSMHZYMDRYemtTQ1dDbzRYaFBiOC9oOXJiQUFYVEJEejd6N0pOMVNLUWRsc0J3TEZ0V0FvTFlPM2prU0d0L1RjMHVnaWFSMmpEZm94NDB5T09RT1JjQnBEUFB2QThIRTJTSWF6eFRDM0toVHN6dzRNQTBCK2JhMkNDMFpJRit5RXlaTnk5ZU1oNHlWWDVtUmxaZXNzK2ZDemFUalVObU0wQ2xVaUVwSjRQSGVRQVlOeXhCU2xCUmpvRjZmbXNRaS8vN0lLOTNnNHAxWUFLNEZXQnA3dXdJTkVGbWFYejMvYmRQWU5sS0FJL29iVE1tNXFyTUtWT21RQnVWTVhpb29YbkFCZzNCcENtTkJzMDVCUnpXQzgyNURDQlZnbmdaRXNFazFBbHN6alY5K25SUFJrYSsyMnRGWFMzQm9CTnlFNS9Ub0tKZlpDdTRITWprOWxhNjdwa3o1N2pTL1hMVWtSSHM2YkgyN3Ewa3BlQUVGUzBwaC9ZVEFEUUNhTWd6eHJqMGRPd0xkVVk2T2hyRDJFbzhDUFkwbk1wbzBQQzVjeEk0ekRqTitRQWdWUkwxcThzampZa2dBb2wrZ3NTUm1abnB6TS9QZDZMSDVrcE5IWTl1dEFkS3hRWWRrSTFNSExCbVF0V3QyZElTTkk0ZE80VG8zelFUSjA0MXhvMUxONUNPNWZQaEFFMmNBaHFOZW1MOS9ZT1I3dTRUVWZTc0l0aGdHVVU2bXJyUUpVQTBZRFJZdFB2Tmw1eGpJYnJDejdGc24zSjJkZmswb0JKZERTNkdPY2FPSFdzQ1dHWWtrdUlZZzVNOG85RVVhRFJTaGd1TG5jNlExWW5sNlM1WEtBYWdXRzF0YmNPQmtRZ1MzdE9XaVp3M2dHRmhFbzJ1NE1Tdzg5bWZXRjd0SCs2eS9EcHNlRjBrQWtIN2g3dDhSb2NOZi82OHUvNVBGWFhlRmZRVUMzU3E5ZkYvQTVCVHJMY0wwUzdVd0lVYXVGQURaNkVHL2dWRFdBL1pMdno1L3dBQUFBQkpSVTVFcmtKZ2dnPT0iIGlkPSJiIiB3aWR0aD0iMTQ0IiBoZWlnaHQ9IjE0NCIvPjwvZGVmcz48L3N2Zz4=";export{R as default}; -//# sourceMappingURL=Macos-2KTZ2XLP-pPa2wwwq.js.map diff --git a/apps/web/public/assets/Opera-KV54PXPA-7mn5oIb-.js b/apps/web/public/assets/Opera-KV54PXPA-7mn5oIb-.js deleted file mode 100644 index 9f243962..00000000 --- a/apps/web/public/assets/Opera-KV54PXPA-7mn5oIb-.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},I=new M.Error().stack;I&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[I]="b923e006-184f-475e-b2bb-7f3fca1bc248",M._sentryDebugIdIdentifier="sentry-dbid-b923e006-184f-475e-b2bb-7f3fca1bc248")}catch{}})();var N="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3OCA3OCI+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4Mj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgwIC01NC45NDQgLTU0Ljk0NCAwIDIzLjYyIDc5LjQ3NCkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZjFiMmQiLz48c3RvcCBvZmZzZXQ9Ii4zIiBzdG9wLWNvbG9yPSIjZmYxYjJkIi8+PHN0b3Agb2Zmc2V0PSIuNjE0IiBzdG9wLWNvbG9yPSIjZmYxYjJkIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjYTcwMDE0Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImIiIHgyPSIxIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDAgLTQ4LjU5NSAtNDguNTk1IDAgMzcuODU0IDc2LjIzNSkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM5YzAwMDAiLz48c3RvcCBvZmZzZXQ9Ii43IiBzdG9wLWNvbG9yPSIjZmY0YjRiIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmY0YjRiIi8+PC9saW5lYXJHcmFkaWVudD48cGF0aCBmaWxsPSJ1cmwoI2EpIiBkPSJNMjguMzQ2IDgwLjM5OEMxMi42OTEgODAuMzk4IDAgNjcuNzA3IDAgNTIuMDUyIDAgMzYuODUgMTEuOTY4IDI0LjQ0MyAyNi45OTYgMjMuNzM5YTI4LjI0NCAyOC4yNDQgMCAwIDEgMjAuMjQxIDcuMThjLTMuMzIyLTIuMjAzLTcuMjA3LTMuNDctMTEuMzU5LTMuNDctNi43NSAwLTEyLjc5NiAzLjM0OC0xNi44NjIgOC42MjktMy4xMzQgMy43LTUuMTY0IDkuMTY5LTUuMzAyIDE1LjMwN3YxLjMzNWMuMTM4IDYuMTM3IDIuMTY4IDExLjYwOCA1LjMwMiAxNS4zMDcgNC4wNjYgNS4yOCAxMC4xMTIgOC42MyAxNi44NjIgOC42MyA0LjE1MiAwIDguMDM4LTEuMjY5IDExLjM2LTMuNDc0YTI4LjIzOSAyOC4yMzkgMCAwIDEtMTguNzg1IDcuMjE1bC0uMTA4LjAwMXoiIHRyYW5zZm9ybT0ibWF0cml4KDEuMzMzMyAwIDAgLTEuMzMzMyAwIDEwNy4yKSIvPjxwYXRoIGZpbGw9InVybCgjYikiIGQ9Ik0xOS4wMTYgNjguMDI1YzIuNjAxIDMuMDcgNS45NiA0LjkyMyA5LjYzMSA0LjkyMyA4LjI1MiAwIDE0Ljk0MS05LjM1NiAxNC45NDEtMjAuODk3cy02LjY5LTIwLjg5Ny0xNC45NDEtMjAuODk3Yy0zLjY3IDAtNy4wMyAxLjg1LTkuNjMgNC45MjIgNC4wNjYtNS4yODEgMTAuMTEtOC42MyAxNi44NjItOC42MyA0LjE1MiAwIDguMDM2IDEuMjY4IDExLjM1OSAzLjQ3MiA1LjgwMiA1LjE5IDkuNDU1IDEyLjczNSA5LjQ1NSAyMS4xMzMgMCA4LjM5Ny0zLjY1MyAxNS45NC05LjQ1MyAyMS4xMy0zLjMyNCAyLjIwNi03LjIwOSAzLjQ3My0xMS4zNjEgMy40NzMtNi43NSAwLTEyLjc5Ni0zLjM0OC0xNi44NjItOC42MyIgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzIDAgMCAtMS4zMzMzIDAgMTA3LjIpIi8+PC9zdmc+";export{N as default}; -//# sourceMappingURL=Opera-KV54PXPA-7mn5oIb-.js.map diff --git a/apps/web/public/assets/Safari-2QIYKJ4P-DQKkg1Bn.js b/apps/web/public/assets/Safari-2QIYKJ4P-DQKkg1Bn.js deleted file mode 100644 index a10f6288..00000000 --- a/apps/web/public/assets/Safari-2QIYKJ4P-DQKkg1Bn.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},N=new M.Error().stack;N&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[N]="d7d12cad-1370-4294-9f4a-7be0a97a0684",M._sentryDebugIdIdentifier="sentry-dbid-d7d12cad-1370-4294-9f4a-7be0a97a0684")}catch{}})();var L="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNzggNzciPjxkZWZzPjxtYXNrIGlkPSJkIj48ZyBmaWx0ZXI9InVybCgjYSkiPjxwYXRoIGQ9Ik0wIDBoNzh2NzdIMHoiIHN0eWxlPSJmaWxsOiMwMDA7ZmlsbC1vcGFjaXR5Oi41Mjk0MTI7c3Ryb2tlOm5vbmUiLz48L2c+PC9tYXNrPjxtYXNrIGlkPSJoIj48ZyBmaWx0ZXI9InVybCgjYSkiPjxwYXRoIGQ9Ik0wIDBoNzh2NzdIMHoiIHN0eWxlPSJmaWxsOiMwMDA7ZmlsbC1vcGFjaXR5Oi40MDc4NDM7c3Ryb2tlOm5vbmUiLz48L2c+PC9tYXNrPjxtYXNrIGlkPSJqIj48ZyBmaWx0ZXI9InVybCgjYSkiPjxwYXRoIGQ9Ik0wIDBoNzh2NzdIMHoiIHN0eWxlPSJmaWxsOiMwMDA7ZmlsbC1vcGFjaXR5Oi4yNDMxMzc7c3Ryb2tlOm5vbmUiLz48L2c+PC9tYXNrPjxyYWRpYWxHcmFkaWVudCBpZD0iZiIgY3g9IjQxMy4wNjEiIGN5PSIxMzYuODE4IiByPSI4Mi4xMjUiIGZ4PSI0MTMuMDYxIiBmeT0iMTM2LjgxOCIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCguNDUwNSAwIDAgLjQ0NjY0IC0xNDYuODYgLTI5LjI5MSkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBvZmZzZXQ9IjAiIHN0eWxlPSJzdG9wLWNvbG9yOiMwNmMyZTc7c3RvcC1vcGFjaXR5OjEiLz48c3RvcCBvZmZzZXQ9Ii4yNSIgc3R5bGU9InN0b3AtY29sb3I6IzBkYjhlYztzdG9wLW9wYWNpdHk6MSIvPjxzdG9wIG9mZnNldD0iLjUiIHN0eWxlPSJzdG9wLWNvbG9yOiMxMmFlZjE7c3RvcC1vcGFjaXR5OjEiLz48c3RvcCBvZmZzZXQ9Ii43NSIgc3R5bGU9InN0b3AtY29sb3I6IzFmODZmOTtzdG9wLW9wYWNpdHk6MSIvPjxzdG9wIG9mZnNldD0iMSIgc3R5bGU9InN0b3AtY29sb3I6IzEwN2RkZDtzdG9wLW9wYWNpdHk6MSIvPjwvcmFkaWFsR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJlIiB4MT0iNDEyLjk3NSIgeDI9IjQxMi45NzUiIHkxPSIyMzcuNjA4IiB5Mj0iNTkuMzkyIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDIwNi43OSAxNTkuNzczKSBzY2FsZSguMzUxNTQpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agb2Zmc2V0PSIwIiBzdHlsZT0ic3RvcC1jb2xvcjojYmRiZGJkO3N0b3Atb3BhY2l0eToxIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdHlsZT0ic3RvcC1jb2xvcjojZmZmO3N0b3Atb3BhY2l0eToxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9ImIiPjxwYXRoIGQ9Ik0wIDBoNzh2NzdIMHoiLz48L2NsaXBQYXRoPjxmaWx0ZXIgaWQ9ImEiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHg9IjAlIiB5PSIwJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94Ij48ZmVDb2xvck1hdHJpeCBpbj0iU291cmNlR3JhcGhpYyIgdmFsdWVzPSIwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAxIDAiLz48L2ZpbHRlcj48ZyBpZD0iaSIgY2xpcC1wYXRoPSJ1cmwoI2IpIj48cGF0aCBkPSJtMTUuMzE2IDU5LjIzOCAyNy42NTctMTguNDQ1IDE5Ljg1OS0yNi41NFptMCAwIiBzdHlsZT0ic3Ryb2tlOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87ZmlsbDojMDAwO2ZpbGwtb3BhY2l0eToxIi8+PC9nPjwvZGVmcz48dXNlIHhsaW5rOmhyZWY9IiNjIiBtYXNrPSJ1cmwoI2QpIi8+PHBhdGggZD0iTTM4My4yOTUgMjExLjk3NmMwIDE3LjMtMTQuMDI2IDMxLjMyNC0zMS4zMjcgMzEuMzI0LTE3LjMgMC0zMS4zMjYtMTQuMDI0LTMxLjMyNi0zMS4zMjQgMC0xNy4zIDE0LjAyNi0zMS4zMjQgMzEuMzI2LTMxLjMyNHMzMS4zMjcgMTQuMDI0IDMxLjMyNyAzMS4zMjRabTAgMCIgc3R5bGU9ImZpbGwtcnVsZTpub256ZXJvO2ZpbGw6dXJsKCNlKTtzdHJva2Utd2lkdGg6LjA5MzAxMjM7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZTojY2RjZGNkO3N0cm9rZS1vcGFjaXR5OjE7c3Ryb2tlLW1pdGVybGltaXQ6NCIgdHJhbnNmb3JtPSJtYXRyaXgoMS4xODExIDAgMCAxLjE3MDk2IC0zNzYuNjM3IC0yMTEuNDcpIi8+PHBhdGggZD0iTTczLjE3MiAzNi43NDZjMCAxOC42NzItMTUuMjY2IDMzLjgwOS0zNC4wOTggMzMuODA5UzQuOTc3IDU1LjQxOCA0Ljk3NyAzNi43NDZjMC0xOC42NzIgMTUuMjY1LTMzLjgwNSAzNC4wOTctMzMuODA1czM0LjA5OCAxNS4xMzMgMzQuMDk4IDMzLjgwNVptMCAwIiBzdHlsZT0ic3Ryb2tlOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87ZmlsbDp1cmwoI2YpIi8+PHBhdGggZD0iTTM5LjA3NCA0LjcwM2EuNDkzLjQ5MyAwIDAgMC0uNDk2LjQ5MnY1LjY4OGMwIC4yNzMuMjIzLjQ5Mi40OTYuNDkyYS40OTEuNDkxIDAgMCAwIC40OTYtLjQ5MlY1LjE5NWEuNDkxLjQ5MSAwIDAgMC0uNDk2LS40OTJabS0zLjI1NC4yMDNhLjQ5NS40OTUgMCAwIDAtLjU0My41NDNsLjI1IDIuMzhhLjUuNSAwIDAgMCAuNTQ3LjQzNy40ODkuNDg5IDAgMCAwIC40NDItLjU0bC0uMjUtMi4zNzhhLjQ5NS40OTUgMCAwIDAtLjQ0Ni0uNDQyWm02LjUyOC4wMDRjLS4yMy4wMi0uNDE4LjItLjQ0Ni40MzhsLS4yNSAyLjM3OWEuNDkuNDkgMCAwIDAgLjQ0Mi41NDMuNDk2LjQ5NiAwIDAgMCAuNTQ3LS40MzhsLjI1NC0yLjM3OWEuNDk2LjQ5NiAwIDAgMC0uNTQ3LS41NDNabS05Ljg2OC40NzdhLjQ5My40OTMgMCAwIDAtLjQ4NC41OThsMS4xODggNS41NThjLjA1OC4yNy4zMi40MzcuNTkuMzgzYS40OTIuNDkyIDAgMCAwIC4zODItLjU4NkwzMi45NyA1Ljc3N2EuNDk0LjQ5NCAwIDAgMC0uNDg5LS4zOVptMTMuMjExLjAwNGEuNTAyLjUwMiAwIDAgMC0uNDkyLjM5bC0xLjE5MSA1LjU2M2EuNDk3LjQ5NyAwIDAgMCAuOTcyLjIwN2wxLjE5Mi01LjU2M2EuNDkyLjQ5MiAwIDAgMC0uNDgtLjU5N1ptLTE2LjM5OC44ODZhLjU0OC41NDggMCAwIDAtLjE5NS4wMjQuNDkyLjQ5MiAwIDAgMC0uMzIuNjJsLjc0NSAyLjI3NGEuNDkzLjQ5MyAwIDAgMCAuNjI1LjMxNy40OS40OSAwIDAgMCAuMzItLjYyMWwtLjc0NS0yLjI3NGEuNS41IDAgMCAwLS40My0uMzRabTE5LjU2Ni4wMDRhLjUuNSAwIDAgMC0uNDMuMzM2bC0uNzQ1IDIuMjc4YS40OTYuNDk2IDAgMCAwIC45NDUuMzA0bC43NDYtMi4yNzdhLjQ5LjQ5IDAgMCAwLS41MTYtLjY0Wm0tMjIuNzE4IDEuMTRhLjQ5Mi40OTIgMCAwIDAtLjQ0NS42OTVsMi4zMjcgNS4xOTdhLjQ5Ny40OTcgMCAwIDAgLjkxLS40MDJsLTIuMzMxLTUuMTk2YS40OTMuNDkzIDAgMCAwLS40NjEtLjI5M1ptMjUuOTEuMDJhLjQ5NC40OTQgMCAwIDAtLjQ2NS4yOTNsLTIuMzM2IDUuMTkyYy0uMTEzLjI1IDAgLjUzOS4yNS42NDguMjU0LjExNC41NDcgMCAuNjU2LS4yNDZsMi4zMzYtNS4xOTVhLjQ4OC40ODggMCAwIDAtLjI1LS42NDkuNDg2LjQ4NiAwIDAgMC0uMTkxLS4wNDNaTTIzLjIxIDguOTU3YS40OTEuNDkxIDAgMCAwLS4yODEuMDY2LjQ5LjQ5IDAgMCAwLS4xODQuNjcybDEuMjA3IDIuMDc1YS41LjUgMCAwIDAgLjY4LjE4LjQ5NC40OTQgMCAwIDAgLjE4My0uNjc3bC0xLjIwNy0yLjA3YS41LjUgMCAwIDAtLjM5OC0uMjQ2Wm0zMS43MjcgMGEuNS41IDAgMCAwLS4zOTkuMjQ2bC0xLjIwNyAyLjA3YS40OTQuNDk0IDAgMCAwIC4xODQuNjc2LjUuNSAwIDAgMCAuNjgtLjE4bDEuMjA2LTIuMDc0YS40OS40OSAwIDAgMC0uMTgzLS42NzIuNTI0LjUyNCAwIDAgMC0uMjgyLS4wNjZaTTIwLjM3IDEwLjcxNWEuNTAxLjUwMSAwIDAgMC0uMjczLjA5NC40ODcuNDg3IDAgMCAwLS4xMTQuNjg3bDMuMzY4IDQuNjAyYS41LjUgMCAwIDAgLjY5NS4xMTMuNDkuNDkgMCAwIDAgLjExLS42OTFsLTMuMzY4LTQuNjAyYS41MDIuNTAyIDAgMCAwLS40MTgtLjIwM1ptMzcuNDQyLjAyN2EuNDg4LjQ4OCAwIDAgMC0uNDE4LjJsLTMuMzc1IDQuNTk3YS40OTQuNDk0IDAgMCAwIC4xMDkuNjkxYy4yMjMuMTYuNTM1LjExLjY5NS0uMTA5bDMuMzc1LTQuNTk4YS40OS40OSAwIDAgMC0uMTEtLjY4Ny40NjUuNDY1IDAgMCAwLS4yNzYtLjA5NFptLTM5Ljk4MSAyLjA4NmEuNDk2LjQ5NiAwIDAgMC0uMzYuMTI1LjQ4Ny40ODcgMCAwIDAtLjAzOC42OTVsMS42MTcgMS43NzhhLjQ5NS40OTUgMCAxIDAgLjczOC0uNjZsLTEuNjEzLTEuNzc0YS40OTUuNDk1IDAgMCAwLS4zNDQtLjE2NFptNDIuNDg4LjAwNGEuNTA2LjUwNiAwIDAgMC0uMzQzLjE2bC0xLjYxNCAxLjc3OGEuNDkxLjQ5MSAwIDAgMCAuMDQuNjk5Yy4yMDIuMTguNTE1LjE2NC42OTktLjA0bDEuNjE3LTEuNzc3YS40ODcuNDg3IDAgMCAwLS4wNC0uNjk1LjQ5Ni40OTYgMCAwIDAtLjM1OS0uMTI1Wm0tNDQuOTI1IDIuMzEzYS41MTEuNTExIDAgMCAwLS4zNDQuMTY0LjQ5LjQ5IDAgMCAwIC4wMzkuNjk1bDQuMjYyIDMuODA1YS41LjUgMCAwIDAgLjcwMy0uMDM2LjQ5MS40OTEgMCAwIDAtLjA0LS42OTlsLTQuMjYxLTMuOGEuNS41IDAgMCAwLS4zNi0uMTNabTQ3LjM3NS4wMmEuNDk2LjQ5NiAwIDAgMC0uMzYuMTI0bC00LjI2NSAzLjhhLjQ5LjQ5IDAgMCAwLS4wNC42OTZjLjE4OC4yMDMuNS4yMTkuNzA0LjA0bDQuMjY1LTMuODAyYS40OS40OSAwIDAgMC0uMzA1LS44NlpNMTMuMzcgMTcuNzI2YS41MDIuNTAyIDAgMCAwLS40MTguMjAzLjQ4Ni40ODYgMCAwIDAgLjExLjY4N2wxLjk0OSAxLjQwNmMuMjIyLjE2LjUzNS4xMTQuNjk1LS4xMDlhLjQ4Ni40ODYgMCAwIDAtLjExLS42ODdsLTEuOTQ5LTEuNDA3YS41MjUuNTI1IDAgMCAwLS4yNzctLjA5M1ptNTEuNDE4LjAyYS40ODEuNDgxIDAgMCAwLS4yNzMuMDkzbC0xLjk1NCAxLjQwMmEuNDk0LjQ5NCAwIDAgMC0uMTA5LjY5MmMuMTYuMjE4LjQ3My4yNy42OTUuMTA5bDEuOTU0LTEuNDA2YS40OS40OSAwIDAgMCAuMTA5LS42ODguNDg5LjQ4OSAwIDAgMC0uNDIyLS4yMDNaTTExLjQ4IDIwLjQ4YS40OS40OSAwIDAgMC0uMjE1LjkxOGw0Ljk2NSAyLjg0NGEuNS41IDAgMCAwIC42OC0uMTguNDkyLjQ5MiAwIDAgMC0uMTgtLjY3NWwtNC45NjgtMi44NGEuNDkxLjQ5MSAwIDAgMC0uMjgyLS4wNjdabTU1LjE4OCAwYS40NjIuNDYyIDAgMCAwLS4yODEuMDY3bC00Ljk2OSAyLjg0YS40OTIuNDkyIDAgMCAwLS4xOC42NzUuNS41IDAgMCAwIC42OC4xOGw0Ljk2NS0yLjg0NGEuNDkuNDkgMCAwIDAtLjIxNS0uOTE4Wm0tNTYuNjE3IDIuOTM0YS40OTQuNDk0IDAgMCAwLS4yMTUuOTQ1bDIuMjAzLjk3M2MuMjU0LjExLjU0NyAwIC42NTYtLjI1YS40ODUuNDg1IDAgMCAwLS4yNS0uNjQ4bC0yLjIwMy0uOTc3YS40ODYuNDg2IDAgMCAwLS4xOTEtLjA0M1ptNTguMDU4LjAyYS41NDUuNTQ1IDAgMCAwLS4xOTEuMDQzbC0yLjIwNy45NzJhLjQ5Mi40OTIgMCAwIDAtLjI1LjY1My41LjUgMCAwIDAgLjY1Ni4yNWwyLjIwMy0uOTczYS40OTMuNDkzIDAgMCAwIC4yNTQtLjY1Mi40OTguNDk4IDAgMCAwLS40NjUtLjI5M1pNOC43NzMgMjYuNDhhLjQ5Mi40OTIgMCAwIDAtLjExLjk2bDUuNDUgMS43NjNhLjQ5Mi40OTIgMCAxIDAgLjMwOS0uOTM4bC01LjQ1My0xLjc2MWEuNTQ4LjU0OCAwIDAgMC0uMTk2LS4wMjRabTYwLjYxLjAyNGEuNDE1LjQxNSAwIDAgMC0uMTk1LjAyM2wtNS40NTggMS43NTRhLjQ5My40OTMgMCAxIDAgLjMwOS45MzhsNS40NTMtMS43NTRhLjQ5NS40OTUgMCAwIDAgLjMyLS42MjUuNDk2LjQ5NiAwIDAgMC0uNDMtLjMzNlptLTYxLjQwMyAzLjJhLjQ5NC40OTQgMCAwIDAtLjQ5Mi4zOS40OTMuNDkzIDAgMCAwIC4zODcuNTgybDIuMzYuNDk2Yy4yNjkuMDU4LjUzLS4xMS41OS0uMzc5YS40OTMuNDkzIDAgMCAwLS4zODctLjU4MmwtMi4zNi0uNWEuODIyLjgyMiAwIDAgMC0uMDk4LS4wMDhabTYyLjE5Mi4wMDNjLS4wMzUgMC0uMDY3LjAwNC0uMTAyLjAwOGwtMi4zNi41YS40OTEuNDkxIDAgMSAwIC4yMDcuOTZsMi4zNi0uNDk1YS40OS40OSAwIDAgMC0uMTA1LS45NzNaTTcuMzc5IDMyLjk0MWMtLjIzLjAyLS40MjIuMi0uNDQ1LjQzOGEuNDk1LjQ5NSAwIDAgMCAuNDQxLjU0M2w1LjcwMy41OThhLjQ5OS40OTkgMCAwIDAgLjU0Ny0uNDQyLjQ5MS40OTEgMCAwIDAtLjQ0MS0uNTM5bC01LjcwNC0uNTk4YS40NDEuNDQxIDAgMCAwLS4xMDEgMFptNjMuMzk4LjA0Yy0uMDM1IDAtLjA3IDAtLjEwMS4wMDNsLTUuNzAzLjU5YS40OTIuNDkyIDAgMSAwIC4xMDEuOThsNS43MDMtLjU5YS40OTUuNDk1IDAgMCAwIDAtLjk4NFpNNy4yODEgMzYuMjUzYS40OTMuNDkzIDAgMSAwIDAgLjk4OGgyLjQxNGEuNDkzLjQ5MyAwIDEgMCAwLS45ODhabTYxLjE3MiAwYS40OTMuNDkzIDAgMSAwIDAgLjk4OGgyLjQxNGEuNDkzLjQ5MyAwIDEgMCAwLS45ODhaTTEzLjE3NiAzOC45NGEuNDQyLjQ0MiAwIDAgMC0uMTAyIDBsLTUuNzAzLjU5YS40OTMuNDkzIDAgMSAwIC4xMDIuOThsNS43MDMtLjU5YS40OTIuNDkyIDAgMCAwIDAtLjk4Wm01MS43OTMuMDM2YS40OTMuNDkzIDAgMCAwLS4wMDQuOThsNS43MDMuNTk4YS40OTYuNDk2IDAgMCAwIC41NDctLjQzOC40OS40OSAwIDAgMC0uNDQyLS41NDNsLTUuNzAzLS41OTdhLjQ0MS40NDEgMCAwIDAtLjEwMSAwWm0tNTQuNjM3IDMuMzI4YS40NzcuNDc3IDAgMCAwLS4xMDIuMDExbC0yLjM1OS40OTZhLjQ5Ny40OTcgMCAwIDAtLjM4My41ODZjLjA1OS4yNjYuMzIuNDM4LjU5LjM4bDIuMzYtLjQ5N2EuNDkyLjQ5MiAwIDAgMCAuMzgyLS41ODYuNS41IDAgMCAwLS40ODgtLjM5Wm01Ny40ODQuMDA4YS40OS40OSAwIDAgMC0uNDg4LjM5LjQ4OC40ODggMCAwIDAgLjM4My41ODJsMi4zNi41YS40OTkuNDk5IDAgMCAwIC41OS0uMzgzLjQ5NC40OTQgMCAwIDAtLjM4NC0uNTgybC0yLjM1OS0uNWEuOTMuOTMgMCAwIDAtLjEwMi0uMDA4Wm0tNTMuNTExIDEuOTRhLjQ4NC40ODQgMCAwIDAtLjE5Ni4wMkw4LjY1NiA0Ni4wM2EuNDkyLjQ5MiAwIDEgMCAuMzA5LjkzOGw1LjQ1My0xLjc1OGEuNDkxLjQ5MSAwIDAgMC0uMTEzLS45NTdabTQ5LjUzLjAxN2EuNDkyLjQ5MiAwIDAgMC0uMTEuOTZsNS40NTUgMS43NjJhLjUuNSAwIDAgMCAuNjI1LS4zMTYuNDg3LjQ4NyAwIDAgMC0uMzE3LS42MjFsLTUuNDUzLTEuNzYyYy0uMDY2LS4wMjMtLjEzMy0uMDI3LS4yLS4wMjNabS01MS42MTIgMy44MzJhLjQ4Ni40ODYgMCAwIDAtLjE5Mi4wNDNsLTIuMjAzLjk3MmEuNDk2LjQ5NiAwIDAgMC0uMjU0LjY1My41MDMuNTAzIDAgMCAwIC42NTYuMjVsMi4yMDctLjk3M2EuNDk0LjQ5NCAwIDAgMC0uMjE1LS45NDVabTUzLjY5NS4wMmEuNDk0LjQ5NCAwIDAgMC0uNDY1LjI5MmMtLjExMy4yNSAwIC41NC4yNS42NDhsMi4yMDMuOTc3Yy4yNTQuMTEuNTQ3IDAgLjY1Ni0uMjVhLjQ5LjQ5IDAgMCAwLS4yNS0uNjUybC0yLjIwMy0uOTczYS40ODYuNDg2IDAgMCAwLS4xOTEtLjA0M1ptLTQ5LjQwMiAxLjA2NmEuNDk3LjQ5NyAwIDAgMC0uMjg2LjA2NmwtNC45NjQgMi44NDRhLjQ5LjQ5IDAgMCAwLS4xODQuNjcyYy4xNC4yMzguNDQxLjMxNi42OC4xOGw0Ljk2OC0yLjg0YS40OTIuNDkyIDAgMCAwIC4xOC0uNjc2LjQ5My40OTMgMCAwIDAtLjM5NC0uMjQ2Wm00NS4xMTcgMGEuNDkzLjQ5MyAwIDAgMC0uMzk1LjI0Ni40OTIuNDkyIDAgMCAwIC4xOC42NzVsNC45NjkgMi44NGEuNDk4LjQ5OCAwIDAgMCAuNjgtLjE4LjQ5LjQ5IDAgMCAwLS4xODQtLjY3MWwtNC45NjUtMi44NDRhLjUzLjUzIDAgMCAwLS4yODUtLjA2NlptLTQ2LjM1NiA0LjE3MWEuNTI0LjUyNCAwIDAgMC0uMjc3LjA5NGwtMS45NSAxLjQwNmEuNDkuNDkgMCAwIDAtLjExMy42ODguNS41IDAgMCAwIC42OTYuMTFsMS45NTMtMS40MDNhLjQ5LjQ5IDAgMCAwIC4xMS0uNjkxLjUwMi41MDIgMCAwIDAtLjQxOS0uMjA0Wm00Ny41ODIuMDE2YS41MDIuNTAyIDAgMCAwLS40MTguMjAzLjQ5LjQ5IDAgMCAwIC4xMS42OTJsMS45NTMgMS40MDZjLjIyMy4xNi41MzEuMTEuNjkxLS4xMWEuNDkuNDkgMCAwIDAtLjExLS42OTFsLTEuOTQ4LTEuNDAyYS40OTguNDk4IDAgMCAwLS4yNzgtLjA5OFptLTQzLjE2LjE3MmEuNDk2LjQ5NiAwIDAgMC0uMzYuMTI1bC00LjI2NSAzLjhhLjQ4Ni40ODYgMCAwIDAtLjAzNS42OTYuNDk1LjQ5NSAwIDAgMCAuNy4wMzlsNC4yNjUtMy44YS40ODcuNDg3IDAgMCAwIC4wMzktLjY5Ni41MTEuNTExIDAgMCAwLS4zNDQtLjE2NFptMzguNzM5LjAxMmEuNTExLjUxMSAwIDAgMC0uMzQ0LjE2NC40ODYuNDg2IDAgMCAwIC4wMzkuNjk1bDQuMjYyIDMuODA1YS41LjUgMCAwIDAgLjcwMy0uMDM1LjQ4Ni40ODYgMCAwIDAtLjA0LS42OTZsLTQuMjYxLTMuODA0YS41LjUgMCAwIDAtLjM2LS4xM1ptLTM0LjY5NiAzLjYxM2EuNDg3LjQ4NyAwIDAgMC0uNDE4LjIwM2wtMy4zNzUgNC41OThhLjQ5LjQ5IDAgMCAwIC4xMS42ODdjLjIyMi4xNi41MzUuMTEzLjY5NS0uMTFsMy4zNzUtNC41OTdhLjQ5LjQ5IDAgMCAwLS4zODctLjc4MVptMzAuNjMzLjAyYS41MTIuNTEyIDAgMCAwLS4yNzMuMDkzLjQ4Ni40ODYgMCAwIDAtLjExLjY4OGwzLjM2NyA0LjYwMWEuNDk1LjQ5NSAwIDEgMCAuODA1LS41NzhsLTMuMzY3LTQuNjAxYS41MDkuNTA5IDAgMCAwLS40MjItLjIwNFptLTM0Ljk4NC43MWEuNDk2LjQ5NiAwIDAgMC0uMzQ0LjE2NGwtMS42MTMgMS43NzhhLjQ4Ny40ODcgMCAwIDAgLjAzNS42OTUuNS41IDAgMCAwIC43MDMtLjAzOWwxLjYxMy0xLjc3N2EuNDg3LjQ4NyAwIDAgMC0uMDM5LS42OTYuNDkyLjQ5MiAwIDAgMC0uMzU1LS4xMjVabTM5LjM2NyAwYS41LjUgMCAwIDAtLjM2LjEzLjQ4Ny40ODcgMCAwIDAtLjAzOS42OTVsMS42MTQgMS43NzdhLjUuNSAwIDAgMCAuNzAzLjAzNS40ODYuNDg2IDAgMCAwIC4wMzktLjY5NWwtMS42MTMtMS43NzhhLjUxMS41MTEgMCAwIDAtLjM0NC0uMTY0Wm0tMzAuMzA1IDEuOTczYS40OTMuNDkzIDAgMCAwLS40Ni4yOTNsLTIuMzM3IDUuMTkxYy0uMTEzLjI1IDAgLjU0LjI1LjY1M2EuNS41IDAgMCAwIC42NTctLjI1bDIuMzM1LTUuMTkyYS40OTIuNDkyIDAgMCAwLS40NDUtLjY5NVptMjEuMjExLjAxNmEuNDkxLjQ5MSAwIDAgMC0uNDUuNjkxbDIuMzMzIDUuMTk1Yy4xMS4yNS40MDIuMzY0LjY1Ni4yNWEuNDg2LjQ4NiAwIDAgMCAuMjUtLjY0OGwtMi4zMjgtNS4xOTVhLjQ5My40OTMgMCAwIDAtLjQ2LS4yOTNabS0yNS4zMTYgMS41OWEuNDk5LjQ5OSAwIDAgMC0uMzk1LjI0NmwtMS4yMDcgMi4wN2EuNDk0LjQ5NCAwIDAgMCAuMTg0LjY3Ni40OTguNDk4IDAgMCAwIC42OC0uMTg0bDEuMjA2LTIuMDdhLjQ5LjQ5IDAgMCAwLS4xODMtLjY3Mi40OTcuNDk3IDAgMCAwLS4yODUtLjA2N1ptMjkuNDUzIDBhLjQ5Ny40OTcgMCAwIDAtLjI4NS4wNjYuNDg1LjQ4NSAwIDAgMC0uMTguNjcybDEuMjAzIDIuMDdhLjUuNSAwIDAgMCAuNjguMTg0LjQ5NC40OTQgMCAwIDAgLjE4My0uNjc2bC0xLjIwNy0yLjA3YS40OTkuNDk5IDAgMCAwLS4zOTQtLjI0N1ptLTIwLjE0NS4wNzRhLjQ5Ny40OTcgMCAwIDAtLjQ4OC4zOWwtMS4xOTEgNS41NjNhLjQ4OC40ODggMCAwIDAgLjM4Mi41ODJjLjI3LjA1OC41MzItLjExLjU5LS4zOGwxLjE5Mi01LjU1OGEuNDkzLjQ5MyAwIDAgMC0uNDg1LS41OTdabTEwLjgyLjAwNGEuNDUuNDUgMCAwIDAtLjEwMS4wMTEuNDg4LjQ4OCAwIDAgMC0uMzgzLjU4MmwxLjE4OCA1LjU2M2MuMDU0LjI3LjMyLjQzNy41OS4zNzlhLjQ5LjQ5IDAgMCAwIC4zODItLjU4MmwtMS4xODctNS41NjNhLjQ5Ny40OTcgMCAwIDAtLjQ4OC0uMzlabS01LjQwMi41NjJhLjQ5My40OTMgMCAwIDAtLjQ5Ni40OTJ2NS42ODRjMCAuMjczLjIyMy40OTIuNDk2LjQ5MmEuNDkxLjQ5MSAwIDAgMCAuNDk2LS40OTJ2LTUuNjg0YS40OTEuNDkxIDAgMCAwLS40OTYtLjQ5MlptLTkuMTI1IDEuODM2YS40OS40OSAwIDAgMC0uNDMuMzRsLS43NDYgMi4yNzNhLjQ5LjQ5IDAgMCAwIC4zMTcuNjIxLjQ5OS40OTkgMCAwIDAgLjYyOS0uMzE2bC43NDYtMi4yNzNhLjQ5LjQ5IDAgMCAwLS4zMi0uNjIyLjQ4OC40ODggMCAwIDAtLjE5Ni0uMDIzWm0xOC4yNDYgMGEuNTcuNTcgMCAwIDAtLjE5NS4wMjMuNDkyLjQ5MiAwIDAgMC0uMzIuNjIybC43NDYgMi4yNzNhLjQ5My40OTMgMCAwIDAgLjYyNS4zMTYuNDg2LjQ4NiAwIDAgMCAuMzItLjYybC0uNzQ2LTIuMjc0YS40OS40OSAwIDAgMC0uNDMtLjM0Wm0tMTIuMjQyIDEuMjdhLjQ5MS40OTEgMCAwIDAtLjQ0NS40MzdsLS4yNSAyLjM3OWEuNDg5LjQ4OSAwIDAgMCAuNDQxLjUzOS40OTMuNDkzIDAgMCAwIC41NDctLjQzN2wuMjUtMi4zOGEuNDg5LjQ4OSAwIDAgMC0uNTQzLS41MzhabTYuMjIzIDBhLjQ5LjQ5IDAgMCAwLS41NDMuNTQzbC4yNSAyLjM3OGMuMDI3LjI3LjI3LjQ2NS41NDMuNDM4YS40OTIuNDkyIDAgMCAwIC40NDUtLjU0bC0uMjUtMi4zNzhhLjQ5OS40OTkgMCAwIDAtLjQ0NS0uNDQxWm0wIDAiIHN0eWxlPSJzdHJva2U6bm9uZTtmaWxsLXJ1bGU6bm9uemVybztmaWxsOiNmNGYyZjM7ZmlsbC1vcGFjaXR5OjEiLz48dXNlIHhsaW5rOmhyZWY9IiNnIiBtYXNrPSJ1cmwoI2gpIi8+PHBhdGggZD0ibTQyLjk3MyA0MC43OTMtNy43OTctOC4wOTQgMjcuNjU2LTE4LjQ0NVptMCAwIiBzdHlsZT0ic3Ryb2tlOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87ZmlsbDojZmY1MTUwO2ZpbGwtb3BhY2l0eToxIi8+PHBhdGggZD0ibTQyLjk3MyA0MC43OTMtNy43OTctOC4wOTQtMTkuODYgMjYuNTRabTAgMCIgc3R5bGU9InN0cm9rZTpub25lO2ZpbGwtcnVsZTpub256ZXJvO2ZpbGw6I2YxZjFmMTtmaWxsLW9wYWNpdHk6MSIvPjx1c2UgeGxpbms6aHJlZj0iI2kiIG1hc2s9InVybCgjaikiLz48L3N2Zz4=";export{L as default}; -//# sourceMappingURL=Safari-2QIYKJ4P-DQKkg1Bn.js.map diff --git a/apps/web/public/assets/Windows-R3CKAIUV-PWNRgNSo.js b/apps/web/public/assets/Windows-R3CKAIUV-PWNRgNSo.js deleted file mode 100644 index 7ccc1958..00000000 --- a/apps/web/public/assets/Windows-R3CKAIUV-PWNRgNSo.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="486709f4-bae9-4de3-97d4-899cc0cab7de",e._sentryDebugIdIdentifier="sentry-dbid-486709f4-bae9-4de3-97d4-899cc0cab7de")}catch{}})();var a="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgZmlsbD0ibm9uZSI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSIjMDA3OEQ0IiBkPSJNMCAwaDIyLjc1NXYyMi43NDVIMFYwWm0yNS4yNDUgMEg0OHYyMi43NDVIMjUuMjQ1VjBaTTAgMjUuMjQ1aDIyLjc1NVY0OEgwVjI1LjI0NVptMjUuMjQ1IDBINDhWNDhIMjUuMjQ1Ii8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGg0OHY0OEgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==";export{a as default}; -//# sourceMappingURL=Windows-R3CKAIUV-PWNRgNSo.js.map diff --git a/apps/web/public/assets/___fetch.mjs b/apps/web/public/assets/___fetch.mjs deleted file mode 100644 index bb0db4fd..00000000 --- a/apps/web/public/assets/___fetch.mjs +++ /dev/null @@ -1,84 +0,0 @@ - -$.verbose = true; - -const baselink = 'https://helix-apps-c2zvua46q-itering.vercel.app/assets'; - -const files = ` -Arc-QDJFTGH2-kQUVOusT.js -Brave-YATE5BIM-Crgwi_gE.js -Browser-HN7O5MN7-DHqH2OSI.js -Chrome-LGF33C3S-CKyHgdNL.js -Edge-K2JEGI5S-_s-lgiRS.js -Firefox-NP5SYEK5-7GCpd7vS.js -Linux-NS2LQPT4-BSWfZXoy.js -Macos-2KTZ2XLP-pPa2wwwq.js -Opera-KV54PXPA-7mn5oIb-.js -Safari-2QIYKJ4P-DQKkg1Bn.js -Windows-R3CKAIUV-PWNRgNSo.js -ar_AR-PQJDYWVZ-APfsCj9O.js -arbitrum-LYDBJZP3-BMNNBURC.js -assets-26YY4GVD-BJE_4jQP.js -avalanche-TFPKP544-BAW5xZLs.js -base-3MIUIYGA-BacvpD6v.js -braveWallet-BTBH4MDN-Dk8CDq00.js -bsc-S2GSW6VX-Bz0b4JEm.js -ccip-DjkOoLC9.js -coinbaseWallet-2OUR5TUP-CpvNSmI2.js -connect-XNDTNVUH-Rkfb_zm3.js -create-PAJXJDV3-CO2P7llu.js -cronos-DQKKIEX7-D-xN-IeE.js -es_419-GLICGTYE-DAMYsXQt.js -ethereum-4FY57XJF-BF1-Gkmk.js -fr_FR-UC7Z4T6O-B67bog61.js -hardhat-ARRFHFKB-BsaKr6xa.js -hi_IN-RGKVTIVE-Do-3nNHB.js -hooks.module-D456YPrV.js -id_ID-3SKVJ2RK-DLkFahck.js -index-Bl6Lkf65.js -index-C5o-2F8D.css -index-CPuAEUoa.js -index-Ca5iS1sT.js -index-Cnb0ezsQ.js -index-DKyRIqqa.js -index-Dy-WAr9t.js -index.es-BlHtwxd-.js -index.es-DAoTMZAm.js -injectedWallet-EUKDEAIU-CMyNXBNM.js -ja_JP-GYCPH6AT-B2ynLT17.js -ko_KR-V2HAEAHG-MSD6VZVz.js -lnaccess-controller-CY66MO2d.js -lnbridge-v3-CO3fue1_.js -lnv2-default-D6l1N3uU.js -lnv2-opposite-CY9WgYrv.js -login-ZSMM5UYL-DT0rm6wp.js -metaMaskWallet-ORHUNQRP-DhHH5FFG.js -msgline-messager-B71sigHl.js -okxWallet-GKYMI2XW-CdXZL5HC.js -optimism-UUP5Y7TB-BI-bx6R2.js -polygon-Z4QITDL7-DuMBfvk7.js -pt_BR-JDDVMLRA-aYSlgkhd.js -rabbyWallet-22VWIFCE-C-acKMUn.js -rainbowWallet-GGU64QEI-Buwz1oV3.js -refresh-5KGGHTJP-CHhFOl-t.js -ru_RU-3W6WVVOI-CElW9r3c.js -safeWallet-DFMLSLCR-7Jx5rkap.js -safeWallet-DFMLSLCR-BD-GpskT.js -scan-HZBLXLM4-DxZfTx07.js -sign-FZVB2CS6-DXQn9z7A.js -talismanWallet-W5EQ26N7-COwK-IAC.js -th_TH-UWDENI2F-isfr4Uax.js -tr_TR-NAI3OICG-BccpdJoF.js -uk_UA-H7BFRWP5-BxO6MaLd.js -walletConnectWallet-D6ZADJM7-BtZ74X7H.js -workbox-window.prod.es5-rX37VysU.js -xdc-5UHQ25DW-DoSn3ve8.js -zh_CN-BO5MSGV2-D6N76dxU.js -zkSync-XRUC4ZHO-CS2pRbzJ.js -zora-KVO7WIOK-CYiMysry.js -`; - -for (const f of files.split('\n')) { - if (!f) continue; - const url = `${baselink}/${f}`; - await $`curl -LO ${url}`; -} diff --git a/apps/web/public/assets/ar_AR-PQJDYWVZ-APfsCj9O.js b/apps/web/public/assets/ar_AR-PQJDYWVZ-APfsCj9O.js deleted file mode 100644 index dd650a16..00000000 --- a/apps/web/public/assets/ar_AR-PQJDYWVZ-APfsCj9O.js +++ /dev/null @@ -1,959 +0,0 @@ -(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},A=new u.Error().stack;A&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[A]="b2777fbe-53bf-4d54-ad08-b73262000a74",u._sentryDebugIdIdentifier="sentry-dbid-b2777fbe-53bf-4d54-ad08-b73262000a74")}catch{}})();var e=`{ - "connect_wallet": { - "label": "اتصال المحفظة", - "wrong_network": { - "label": "شبكة خاطئة" - } - }, - "intro": { - "title": "ما هو المحفظة؟", - "description": "تُستخدم المحفظة لإرسال واستلام وتخزين وعرض الأصول الرقمية. إنها أيضاً طريقة جديدة لتسجيل الدخول، دون الحاجة إلى إنشاء حسابات وكلمات مرور جديدة على كل موقع.", - "digital_asset": { - "title": "دار لأصولك الرقمية", - "description": "تُستخدم المحافظ لإرسال واستلام وتخزين وعرض الأصول الرقمية مثل إيثيريوم والـ NFTs." - }, - "login": { - "title": "طريقة جديدة لتسجيل الدخول", - "description": "بدلاً من إنشاء حسابات وكلمات مرور جديدة على كل موقع، فقط قم بتوصيل محفظتك." - }, - "get": { - "label": "احصل على محفظة" - }, - "learn_more": { - "label": "تعلم المزيد" - } - }, - "sign_in": { - "label": "تحقق من حسابك", - "description": "لإنهاء الاتصال، يجب عليك توقيع رسالة في محفظتك للتحقق من أنك صاحب هذا الحساب.", - "message": { - "send": "إرسال الرسالة", - "preparing": "جارٍ تجهيز الرسالة...", - "cancel": "إلغاء", - "preparing_error": "خطأ في تجهيز الرسالة، يرجى المحاولة مرة أخرى!" - }, - "signature": { - "waiting": "انتظار التوقيع...", - "verifying": "جار التحقق من التوقيع...", - "signing_error": "خطأ في توقيع الرسالة، يرجى المحاولة مرة أخرى!", - "verifying_error": "خطأ في التحقق من التوقيع، يرجى المحاولة مرة أخرى!", - "oops_error": "عذرًا، حدث خطأ ما!" - } - }, - "connect": { - "label": "اتصل", - "title": "اتصال بالمحفظة", - "new_to_ethereum": { - "description": "جديد في محافظ Ethereum؟", - "learn_more": { - "label": "تعلم المزيد" - } - }, - "learn_more": { - "label": "أعرف أكثر" - }, - "recent": "الأخير", - "status": { - "opening": "جار فتح %{wallet}...", - "connecting": "جارٍ الاتصال", - "connect_mobile": "استمر في %{wallet}", - "not_installed": "%{wallet} غير مثبت", - "not_available": "%{wallet} غير متاح", - "confirm": "تأكيد الاتصال في الامتداد", - "confirm_mobile": "قبل طلب الاتصال في المحفظة" - }, - "secondary_action": { - "get": { - "description": "لا يوجد لديك %{wallet}؟", - "label": "احصل" - }, - "install": { - "label": "تثبيت" - }, - "retry": { - "label": "أعد المحاولة" - } - }, - "walletconnect": { - "description": { - "full": "هل تحتاج إلى النافذة الرسمية لـ WalletConnect؟", - "compact": "هل تحتاج إلى النافذة لـ WalletConnect؟" - }, - "open": { - "label": "افتح" - } - } - }, - "connect_scan": { - "title": "المسح باستخدام %{wallet}", - "fallback_title": "المسح باستخدام هاتفك" - }, - "connector_group": { - "recommended": "موصى به", - "other": "آخر", - "popular": "شائع", - "more": "المزيد", - "others": "الآخرين" - }, - "get": { - "title": "احصل على محفظة", - "action": { - "label": "احصل" - }, - "mobile": { - "description": "محفظة الموبايل" - }, - "extension": { - "description": "ملحق المتصفح" - }, - "mobile_and_extension": { - "description": "محفظة موبايل وملحق" - }, - "mobile_and_desktop": { - "description": "محفظة الموبايل والكمبيوتر" - }, - "looking_for": { - "title": "ليست هذه هي ما تبحث عنه؟", - "mobile": { - "description": "حدد محفظة على الشاشة الرئيسية للبدء باستخدام موفر محفظة مختلف." - }, - "desktop": { - "compact_description": "حدد محفظة على الشاشة الرئيسية للبدء باستخدام موفر محفظة مختلف.", - "wide_description": "حدد محفظة على اليسار للبدء باستخدام موفر محفظة مختلف." - } - } - }, - "get_options": { - "title": "ابدأ مع %{wallet}", - "short_title": "احصل على %{wallet}", - "mobile": { - "title": "%{wallet} للجوال", - "description": "استخدم محفظة الموبايل لاستكشاف عالم Ethereum.", - "download": { - "label": "احصل على التطبيق" - } - }, - "extension": { - "title": "%{wallet} لـ %{browser}", - "description": "وصول لمحفظتك مباشرة من متصفح الويب المفضل لديك.", - "download": { - "label": "أضف إلى %{browser}" - } - }, - "desktop": { - "title": "%{wallet} لـ %{platform}", - "description": "قم بالوصول إلى محفظتك بشكل أصلي من كمبيوترك القوي.", - "download": { - "label": "أضف إلى %{platform}" - } - } - }, - "get_mobile": { - "title": "قم بالتثبيت %{wallet}", - "description": "استخدم هاتفك للتحميل على iOS أو Android", - "continue": { - "label": "استمر" - } - }, - "get_instructions": { - "mobile": { - "connect": { - "label": "اتصل" - }, - "learn_more": { - "label": "تعلم المزيد" - } - }, - "extension": { - "refresh": { - "label": "تحديث" - }, - "learn_more": { - "label": "تعلم المزيد" - } - }, - "desktop": { - "connect": { - "label": "اتصل" - }, - "learn_more": { - "label": "تعلم المزيد" - } - } - }, - "chains": { - "title": "تبديل الشبكات", - "wrong_network": "تم اكتشاف شبكة غير صحيحة، قم بالتبديل أو القطع للمتابعة.", - "confirm": "التأكيد في المحفظة", - "switching_not_supported": "محفظتك لا تدعم التبديل بين الشبكات من %{appName}. جرب التبديل بين الشبكات من داخل المحفظة بدلاً من ذلك.", - "switching_not_supported_fallback": "محفظتك لا تدعم تبديل الشبكات من هذا التطبيق. حاول تبديل الشبكات من داخل المحفظة بدلاً من ذلك.", - "disconnect": "قطع الاتصال", - "connected": "متصل" - }, - "profile": { - "disconnect": { - "label": "قطع الاتصال" - }, - "copy_address": { - "label": "نسخ العنوان", - "copied": "تم النسخ!" - }, - "explorer": { - "label": "عرض المزيد على المستكشف" - }, - "transactions": { - "description": "%{appName} ستظهر المعاملات هنا...", - "description_fallback": "سوف تظهر معاملاتك هنا...", - "recent": { - "title": "المعاملات الأخيرة" - }, - "clear": { - "label": "مسح الكل" - } - } - }, - "wallet_connectors": { - "argent": { - "qr_code": { - "step1": { - "description": "ضع أرجنت على شاشتك الرئيسية للوصول السريع إلى محفظتك.", - "title": "افتح تطبيق Argent" - }, - "step2": { - "description": "أنشئ محفظة واسم مستخدم، أو استورد محفظة موجودة بالفعل.", - "title": "إنشاء أو استيراد محفظة" - }, - "step3": { - "description": "بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك.", - "title": "اضغط على زر فحص الكود الشريطي" - } - } - }, - "bifrost": { - "qr_code": { - "step1": { - "description": "نوصي بوضع محفظة Bifrost على الشاشة الرئيسية للوصول الأسرع.", - "title": "افتح تطبيق محفظة Bifrost" - }, - "step2": { - "description": "أنشئ أو استورد محفظة باستخدام عبارة الاستعادة الخاصة بك.", - "title": "إنشاء أو استيراد محفظة" - }, - "step3": { - "description": "بعد الفحص، سيظهر موجه الاتصال لك لتوصيل محفظتك.", - "title": "اضغط على زر المسح" - } - } - }, - "bitget": { - "qr_code": { - "step1": { - "description": "نوصي بوضع محفظة Bitget على الشاشة الرئيسية للوصول الأسرع.", - "title": "افتح تطبيق محفظة Bitget" - }, - "step2": { - "description": "تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد.", - "title": "إنشاء أو استيراد محفظة" - }, - "step3": { - "description": "بعد الفحص، ستظهر لك موجه اتصال لتوصيل محفظتك.", - "title": "اضغط على زر الفحص" - } - }, - "extension": { - "step1": { - "description": "نوصي بتثبيت محفظة Bitget على شريط المهام للوصول الأسرع إلى محفظتك.", - "title": "قم بتثبيت امتداد محفظة Bitget" - }, - "step2": { - "description": "تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.", - "title": "أنشئ محفظة أو استورد محفظة" - }, - "step3": { - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد.", - "title": "قم بتحديث متصفحك" - } - } - }, - "bitski": { - "extension": { - "step1": { - "description": "نوصي بتثبيت Bitski على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.", - "title": "قم بتثبيت امتداد Bitski" - }, - "step2": { - "description": "تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.", - "title": "إنشاء أو استيراد محفظة" - }, - "step3": { - "description": "بعد إعداد المحفظة الخاصة بك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.", - "title": "تحديث المتصفح الخاص بك" - } - } - }, - "coin98": { - "qr_code": { - "step1": { - "description": "نوصي بوضع محفظة Coin98 على الشاشة الرئيسية لسرعة الوصول إلى محفظتك.", - "title": "افتح تطبيق محفظة Coin98" - }, - "step2": { - "description": "يمكنك بسهولة نسخ محفظتك الاحتياطي باستخدام ميزة النسخ الاحتياطي على هاتفك.", - "title": "إنشاء أو استيراد محفظة" - }, - "step3": { - "description": "بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك.", - "title": "اضغط على زر WalletConnect" - } - }, - "extension": { - "step1": { - "description": "انقر في الجزء العلوي الأيمن من المتصفح وثبت Coin98 Wallet لسهولة الوصول.", - "title": "قم بتثبيت امتداد Coin98 Wallet" - }, - "step2": { - "description": "أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل.", - "title": "أنشئ محفظة أو استورد محفظة" - }, - "step3": { - "description": "بمجرد إعداد Coin98 Wallet ، انقر أدناه لتحديث المتصفح وتحميل الامتداد.", - "title": "تحديث المتصفح الخاص بك" - } - } - }, - "coinbase": { - "qr_code": { - "step1": { - "description": "نوصي بوضع Coinbase Wallet على الشاشة الرئيسية لسهولة الوصول.", - "title": "افتح تطبيق Coinbase Wallet" - }, - "step2": { - "description": "يمكنك بسهولة النسخ الاحتياطي لمحفظتك باستخدام ميزة النسخ الاحتياطي السحابي.", - "title": "إنشاء أو استيراد محفظة" - }, - "step3": { - "description": "بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك.", - "title": "اضغط على زر الفحص" - } - }, - "extension": { - "step1": { - "description": "نوصي بتثبيت محفظة Coinbase على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.", - "title": "تثبيت امتداد محفظة Coinbase" - }, - "step2": { - "description": "تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.", - "title": "إنشاء أو استيراد المحفظة" - }, - "step3": { - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.", - "title": "تحديث المتصفح الخاص بك" - } - } - }, - "core": { - "qr_code": { - "step1": { - "description": "نوصي بوضع Core على الشاشة الرئيسية للوصول السريع إلى محفظتك.", - "title": "افتح تطبيق Core" - }, - "step2": { - "description": "يمكنك بسهولة النسخ الاحتياطي لمحفظتك باستخدام ميزة النسخ الاحتياطي على هاتفك.", - "title": "إنشاء أو استيراد المحفظة" - }, - "step3": { - "description": "بعد الفحص، سيظهر لك موجه الاتصال لتوصيل محفظتك.", - "title": "اضغط على زر WalletConnect" - } - }, - "extension": { - "step1": { - "description": "نوصي بتثبيت Core على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.", - "title": "قم بتثبيت امتداد Core" - }, - "step2": { - "description": "تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.", - "title": "إنشاء أو استيراد محفظة" - }, - "step3": { - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد.", - "title": "تحديث متصفحك" - } - } - }, - "fox": { - "qr_code": { - "step1": { - "description": "نوصي بوضع FoxWallet على شاشتك الرئيسية للوصول الأسرع.", - "title": "افتح تطبيق FoxWallet" - }, - "step2": { - "description": "تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.", - "title": "إنشاء محفظة أو استيراد محفظة" - }, - "step3": { - "description": "بعد الفحص، ستظهر لك موجه الاتصال لتتمكن من اتصال محفظتك.", - "title": "اضغط على زر الفحص" - } - } - }, - "frontier": { - "qr_code": { - "step1": { - "description": "نوصي بوضع Frontier Wallet على شاشتك الرئيسية للوصول الأسرع.", - "title": "افتح تطبيق Frontier Wallet" - }, - "step2": { - "description": "تأكد من نسخ محفظتك احتياطيا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.", - "title": "إنشاء أو استيراد محفظة" - }, - "step3": { - "description": "بعد الفحص، ستظهر لك موجه الاتصال لربط محفظتك.", - "title": "اضغط على زر الفحص" - } - }, - "extension": { - "step1": { - "description": "نوصي بتثبيت محفظة Frontier على شريط المهام للوصول الأسرع إلى محفظتك.", - "title": "تثبيت امتداد محفظة Frontier" - }, - "step2": { - "description": "تأكد من نسخ محفظتك احتياطيا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.", - "title": "إنشاء أو استيراد محفظة" - }, - "step3": { - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.", - "title": "قم بتحديث المتصفح الخاص بك" - } - } - }, - "im_token": { - "qr_code": { - "step1": { - "title": "افتح تطبيق imToken", - "description": "ضع تطبيق imToken على الشاشة الرئيسية للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "قم بإنشاء محفظة جديدة أو استيراد واحدة موجودة." - }, - "step3": { - "title": "اضغط على أيقونة الماسح الضوئي في الزاوية العليا اليمنى", - "description": "اختر الاتصال الجديد، ثم امسح الرمز الشريطي وأكد الموجه للاتصال." - } - } - }, - "metamask": { - "qr_code": { - "step1": { - "title": "افتح تطبيق MetaMask", - "description": "نوصي بوضع MetaMask على الشاشة الرئيسية لديك للوصول بشكل أسرع." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من نسخ الحفاظ على محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص." - }, - "step3": { - "title": "اضغط على زر المسح", - "description": "بعد الفحص، ستظهر لك موجه اتصال لتوصيل محفظتك." - } - }, - "extension": { - "step1": { - "title": "قم بتثبيت امتداد MetaMask", - "description": "نوصي بتثبيت MetaMask في شريط المهام للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص." - }, - "step3": { - "title": "تحديث متصفحك", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد." - } - } - }, - "okx": { - "qr_code": { - "step1": { - "title": "افتح تطبيق محفظة OKX", - "description": "نوصي بوضع محفظة OKX على الشاشة الرئيسية للوصول الأسرع." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص." - }, - "step3": { - "title": "اضغط على زر المسح", - "description": "بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك." - } - }, - "extension": { - "step1": { - "title": "قم بتثبيت امتداد محفظة OKX", - "description": "نوصي بتثبيت محفظة OKX على شريط المهام للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من حفظ نسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص." - }, - "step3": { - "title": "قم بتحديث المتصفح الخاص بك", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة." - } - } - }, - "omni": { - "qr_code": { - "step1": { - "title": "افتح تطبيق Omni", - "description": "أضف Omni إلى شاشتك الرئيسية للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "إنشاء محفظة جديدة أو استيراد واحدة موجودة." - }, - "step3": { - "title": "اضغط على أيقونة الرمز الاستجابة السريعة وامسحها", - "description": "اضغط على الرمز QR على الشاشة الرئيسية الخاصة بك، امسح الرمز وأكد الموافقة للاتصال." - } - } - }, - "token_pocket": { - "qr_code": { - "step1": { - "title": "افتح تطبيق TokenPocket", - "description": "نوصي بوضع TokenPocket على الشاشة الرئيسية للوصول السريع." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص." - }, - "step3": { - "title": "اضغط على زر المسح", - "description": "بعد الفحص، ستظهر لك رسالة موجهة للاتصال بمحفظتك." - } - }, - "extension": { - "step1": { - "title": "قم بتثبيت امتداد TokenPocket", - "description": "نوصي بتثبيت TokenPocket على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "قم بإنشاء محفظة أو استيراد محفظة", - "description": "تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص." - }, - "step3": { - "title": "قم بتحديث المتصفح الخاص بك", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة." - } - } - }, - "trust": { - "qr_code": { - "step1": { - "title": "افتح تطبيق Trust Wallet", - "description": "ضع Trust Wallet على الشاشة الرئيسية للوصول السريع إلى محفظتك." - }, - "step2": { - "title": "أنشئ محفظة أو استورد محفظة", - "description": "أنشئ محفظة جديدة أو استورد واحدة موجودة." - }, - "step3": { - "title": "اضغط على WalletConnect في الإعدادات", - "description": "اختر الاتصال الجديد، ثم امسح الرمز الشريطي QR وأكد الموجه للاتصال." - } - }, - "extension": { - "step1": { - "title": "قم بتثبيت امتداد Trust Wallet", - "description": "انقر في الجزء العلوي الأيمن من المتصفح وثبت Trust Wallet للوصول بسهولة." - }, - "step2": { - "title": "أنشئ محفظة أو استورد محفظة", - "description": "أنشئ محفظة جديدة أو استورد واحدة موجودة." - }, - "step3": { - "title": "قم بتحديث متصفحك", - "description": "بمجرد إعداد Trust Wallet، انقر أدناه لتحديث المتصفح وتحميل الإضافة." - } - } - }, - "uniswap": { - "qr_code": { - "step1": { - "title": "افتح تطبيق Uniswap", - "description": "أضف محفظة Uniswap إلى شاشة الرئيسية للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "قم بإنشاء محفظة جديدة أو استيراد واحدة موجودة." - }, - "step3": { - "title": "اضغط على الأيقونة QR واقرأ الرمز", - "description": "اضغط على أيقونة QR على الشاشة الرئيسية، قراءة الرمز وتأكيد الرسالة الموجهة للاتصال." - } - } - }, - "zerion": { - "qr_code": { - "step1": { - "title": "افتح تطبيق Zerion", - "description": "نوصي بوضع Zerion على شاشتك الرئيسية للوصول الأسرع." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من حفظ نسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص." - }, - "step3": { - "title": "اضغط على زر المسح", - "description": "بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك." - } - }, - "extension": { - "step1": { - "title": "تثبيت امتداد Zerion", - "description": "نوصي بتثبيت Zerion على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص." - }, - "step3": { - "title": "قم بتحديث المتصفح الخاص بك", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة." - } - } - }, - "rainbow": { - "qr_code": { - "step1": { - "title": "افتح تطبيق Rainbow", - "description": "نوصي بوضع Rainbow على شاشة البداية للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "إنشاء محفظة أو استيراد محفظة", - "description": "يمكنك عمل نسخة احتياطية بسهولة لمحفظتك باستخدام ميزة النسخ الاحتياطي على هاتفك." - }, - "step3": { - "title": "اضغط على الزر الماسح الضوئي", - "description": "بعد الفحص، سيظهر لك موجه اتصال لربط محفظتك." - } - } - }, - "enkrypt": { - "extension": { - "step1": { - "description": "نوصي بتثبيت محفظة Enkrypt على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.", - "title": "تثبيت امتداد محفظة Enkrypt" - }, - "step2": { - "description": "تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.", - "title": "أنشئ أو استورد محفظة" - }, - "step3": { - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.", - "title": "حدث المتصفح الخاص بك" - } - } - }, - "frame": { - "extension": { - "step1": { - "description": "نوصي بتعليق Frame على شريط المهام للوصول السريع إلى محفظتك.", - "title": "ثبت Frame والإضافة المصاحبة" - }, - "step2": { - "description": "تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.", - "title": "أنشئ أو استورد محفظة" - }, - "step3": { - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.", - "title": "حدث المتصفح الخاص بك" - } - } - }, - "one_key": { - "extension": { - "step1": { - "title": "قم بتثبيت امتداد محفظة OneKey", - "description": "نوصي بتثبيت محفظة OneKey على شريط المهام للوصول السريع إلى محفظتك." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص." - }, - "step3": { - "title": "تحديث المتصفح الخاص بك", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد." - } - } - }, - "phantom": { - "extension": { - "step1": { - "title": "قم بتثبيت امتداد Phantom", - "description": "نوصي بتثبيت Phantom على شريط المهام للوصول الأسهل إلى محفظتك." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة السرية الخاصة بك مع أي شخص." - }, - "step3": { - "title": "قم بتحديث المتصفح", - "description": "بمجرد إعداد المحفظة، انقر أدناه لتحديث المتصفح وتحميل الإضافة." - } - } - }, - "rabby": { - "extension": { - "step1": { - "title": "ثبت امتداد Rabby", - "description": "نوصي بتثبيت Rabby على شريط المهام للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "أنشئ محفظة أو استورد محفظة", - "description": "تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك العبارة السرية مع أي شخص." - }, - "step3": { - "title": "قم بتحديث المتصفح", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة." - } - } - }, - "safeheron": { - "extension": { - "step1": { - "title": "قم بتثبيت إضافة النواة", - "description": "نوصي بتثبيت Safeheron على شريط المهام الخاص بك للوصول السريع إلى محفظتك." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من نسخ محفظتك بطريقة آمنة. لا تشارك عبارتك السرية مع أي شخص." - }, - "step3": { - "title": "تحديث المتصفح الخاص بك", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة." - } - } - }, - "taho": { - "extension": { - "step1": { - "title": "تثبيت إضافة Taho", - "description": "نوصي بتثبيت Taho على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "إنشاء محفظة أو استيراد محفظة", - "description": "تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص." - }, - "step3": { - "title": "تحديث المتصفح الخاص بك", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة." - } - } - }, - "talisman": { - "extension": { - "step1": { - "title": "تثبيت إضافة Talisman", - "description": "نوصي بتثبيت Talisman على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "إنشاء محفظة Ethereum أو استيرادها", - "description": "تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة الخاصة بك مع أي شخص." - }, - "step3": { - "title": "قم بتحديث المستعرض الخاص بك", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المستعرض وتحميل الإضافة." - } - } - }, - "xdefi": { - "extension": { - "step1": { - "title": "قم بتثبيت إضافة XDEFI Wallet", - "description": "نوصي بتثبيت XDEFI Wallet على شريط المهام للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "أنشئ محفظة أو استورد محفظة", - "description": "تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك العبارة السرية الخاصة بك مع أي شخص." - }, - "step3": { - "title": "قم بتحديث المستعرض الخاص بك", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة." - } - } - }, - "zeal": { - "extension": { - "step1": { - "title": "قم بتثبيت امتداد Zeal", - "description": "نوصي بتثبيت Zeal في شريط المهام الخاص بك للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد." - }, - "step3": { - "title": "قم بتحديث متصفحك", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد." - } - } - }, - "safepal": { - "extension": { - "step1": { - "title": "قم بتثبيت صيغة SafePal Wallet", - "description": "انقر في أعلى يمين المتصفح وثبت صيغة SafePal Wallet لسهولة الوصول." - }, - "step2": { - "title": "أنشئ محفظة أو استورد محفظة", - "description": "أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل." - }, - "step3": { - "title": "قم بتحديث متصفحك", - "description": "بمجرد إعداد محفظة SafePal، انقر أدناه لتحديث المتصفح وتحميل الإضافة." - } - }, - "qr_code": { - "step1": { - "title": "افتح تطبيق محفظة SafePal", - "description": "ضع محفظة SafePal على شاشة الرئيسية لسهولة الوصول إلى محفظتك." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل." - }, - "step3": { - "title": "اضغط على WalletConnect في الإعدادات", - "description": "اختر الاتصال الجديد، ثم امسح الرمز الشريطي وأكد الموجه للاتصال." - } - } - }, - "desig": { - "extension": { - "step1": { - "title": "قم بتثبيت إضافة Desig", - "description": "نوصي بتثبيت Desig على شريط المهام الخاص بك للوصول الأسهل إلى محفظتك." - }, - "step2": { - "title": "إنشاء محفظة", - "description": "تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد." - }, - "step3": { - "title": "قم بتحديث متصفحك", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد." - } - } - }, - "subwallet": { - "extension": { - "step1": { - "title": "قم بتثبيت إضافة SubWallet", - "description": "نوصي بتثبيت SubWallet على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة الخاصة بك مع أي شخص." - }, - "step3": { - "title": "قم بتحديث متصفحك", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد." - } - }, - "qr_code": { - "step1": { - "title": "افتح تطبيق SubWallet", - "description": "نوصي بوضع SubWallet على شاشة الرئيسية الخاصة بك للوصول الأسرع." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد." - }, - "step3": { - "title": "اضغط على زر المسح", - "description": "بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك." - } - } - }, - "clv": { - "extension": { - "step1": { - "title": "قم بتثبيت إضافة CLV Wallet", - "description": "نوصي بتثبيت CLV Wallet على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد." - }, - "step3": { - "title": "قم بتحديث متصفحك", - "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد." - } - }, - "qr_code": { - "step1": { - "title": "افتح تطبيق محفظة CLV", - "description": "نوصي بوضع محفظة CLV على الشاشة الرئيسية للوصول الأسرع." - }, - "step2": { - "title": "إنشاء أو استيراد محفظة", - "description": "تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد." - }, - "step3": { - "title": "اضغط على زر المسح", - "description": "بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك." - } - } - }, - "okto": { - "qr_code": { - "step1": { - "title": "افتح تطبيق Okto", - "description": "أضف Okto إلى الشاشة الرئيسية للوصول السريع" - }, - "step2": { - "title": "أنشئ محفظة MPC", - "description": "أنشئ حسابًا وقم بإنشاء محفظة" - }, - "step3": { - "title": "اضغط على WalletConnect في الإعدادات", - "description": "اضغط على أيقونة فحص الشاشة في الجهة العليا اليمنى وأكد الإدخال للاتصال." - } - } - }, - "ledger": { - "desktop": { - "step1": { - "title": "افتح تطبيق Ledger Live", - "description": "نوصي بوضع Ledger Live على شاشة الرئيسية لديك لسرعة الوصول." - }, - "step2": { - "title": "قم بإعداد Ledger الخاص بك", - "description": "قم بإعداد Ledger جديد أو قم بالاتصال بواحد موجود ." - }, - "step3": { - "title": "اتصل", - "description": "بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك." - } - }, - "qr_code": { - "step1": { - "title": "افتح تطبيق Ledger Live", - "description": "نوصي بوضع Ledger Live على شاشة الرئيسية لديك لسرعة الوصول." - }, - "step2": { - "title": "قم بإعداد Ledger الخاص بك", - "description": "يمكنك إما المزامنة مع تطبيق سطح المكتب أو توصيل Ledger الخاص بك." - }, - "step3": { - "title": "مسح الرمز", - "description": "اضغط على WalletConnect ثم انتقل إلى الفحص. بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك." - } - } - } - } -} -`;export{e as default}; -//# sourceMappingURL=ar_AR-PQJDYWVZ-APfsCj9O.js.map diff --git a/apps/web/public/assets/arbitrum-LYDBJZP3-BMNNBURC.js b/apps/web/public/assets/arbitrum-LYDBJZP3-BMNNBURC.js deleted file mode 100644 index 7862e4b2..00000000 --- a/apps/web/public/assets/arbitrum-LYDBJZP3-BMNNBURC.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var I=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},M=new I.Error().stack;M&&(I._sentryDebugIds=I._sentryDebugIds||{},I._sentryDebugIds[M]="d5e0f921-d467-4eae-9ff7-033e92ff6114",I._sentryDebugIdIdentifier="sentry-dbid-d5e0f921-d467-4eae-9ff7-033e92ff6114")}catch{}})();var j="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgZmlsbD0ibm9uZSI+PHJlY3Qgd2lkdGg9IjI2LjYiIGhlaWdodD0iMjYuNiIgeD0iLjciIHk9Ii43IiBmaWxsPSIjMkQzNzRCIiBzdHJva2U9IiM5NkJFREMiIHN0cm9rZS13aWR0aD0iMS40IiByeD0iMTMuMyIvPjxtYXNrIGlkPSJhIiB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHg9IjAiIHk9IjAiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiPjxyZWN0IHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgZmlsbD0iI0M0QzRDNCIgcng9IjE0Ii8+PC9tYXNrPjxnIG1hc2s9InVybCgjYSkiPjxwYXRoIGZpbGw9IiMyOEEwRjAiIGQ9Im0xNC4wODYxIDE4LjYwNDEgNi41MDE0IDEwLjIyMzkgNC4wMDU3LTIuMzIxMy03Ljg2LTEyLjM5NDMtMi42NDcxIDQuNDkxN1ptMTMuMDc0NCAzLjQ2OTItLjAwMy0xLjg1OTktNy4zMDY0LTExLjQwNy0yLjMwODcgMy45MTczIDcuMDkxIDExLjQzMDMgMi4xNzItMS4yNTg2YS45NjI4Ljk2MjggMCAwIDAgLjM1NTUtLjcwMDlsLS4wMDA0LS4xMjEyWiIvPjxyZWN0IHdpZHRoPSIyNS45IiBoZWlnaHQ9IjI1LjkiIHg9IjEuMDUiIHk9IjEuMDUiIGZpbGw9InVybCgjYikiIGZpbGwtb3BhY2l0eT0iLjMiIHN0cm9rZT0iIzk2QkVEQyIgc3Ryb2tlLXdpZHRoPSIyLjEiIHJ4PSIxMi45NSIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Im0uMzYzNCAyOC4yMjA3LTMuMDctMS43Njc0LS4yMzQtLjgzMzNMNy43NDYxIDkuMDE5NGMuNzI5OC0xLjE5MTMgMi4zMTk3LTEuNTc1IDMuNzk1Ny0xLjU1NDFsMS43MzIzLjA0NTdMLjM2MzQgMjguMjIwN1pNMTkuMTY1NSA3LjUxMWwtNC41NjUzLjAxNjZMMi4yNCAyNy45NTMzbDMuNjEwMyAyLjA3ODguOTgxOC0xLjY2NTJMMTkuMTY1NSA3LjUxMVoiLz48L2c+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJiIiB4MT0iMCIgeDI9IjE0IiB5MT0iMCIgeTI9IjI4IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI2ZmZiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PC9zdmc+Cg==";export{j as default}; -//# sourceMappingURL=arbitrum-LYDBJZP3-BMNNBURC.js.map diff --git a/apps/web/public/assets/assets-26YY4GVD-BJE_4jQP.js b/apps/web/public/assets/assets-26YY4GVD-BJE_4jQP.js deleted file mode 100644 index 3d1764c0..00000000 --- a/apps/web/public/assets/assets-26YY4GVD-BJE_4jQP.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},N=new M.Error().stack;N&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[N]="f1ff260c-4951-424f-98cf-a062c4a0fd45",M._sentryDebugIdIdentifier="sentry-dbid-f1ff260c-4951-424f-98cf-a062c4a0fd45")}catch{}})();var j="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTEuMDkgNS40NkMwIDcuNiAwIDEwLjQgMCAxNnYxNmMwIDUuNiAwIDguNCAxLjA5IDEwLjU0YTEwIDEwIDAgMCAwIDQuMzcgNC4zN0M3LjYgNDggMTAuNCA0OCAxNiA0OGgxNmMxLjc1MiAwIDMuMjMgMCA0LjUtLjAzMyAwLTEuMzYyIDAtMi4wNDQuMDY2LTIuNjE2YTEwIDEwIDAgMCAxIDguNzg1LTguNzg1Yy41NzItLjA2NiAxLjI1NC0uMDY2IDIuNjE2LS4wNjZDNDggMzUuMjMgNDggMzMuNzUyIDQ4IDMyVjE2YzAtNS42IDAtOC40LTEuMDktMTAuNTRhMTAgMTAgMCAwIDAtNC4zNy00LjM3QzQwLjQgMCAzNy42IDAgMzIgMEgxNkMxMC40IDAgNy42IDAgNS40NiAxLjA5YTEwIDEwIDAgMCAwLTQuMzcgNC4zN1oiLz48cGF0aCBmaWxsPSJ1cmwoI2IpIiBkPSJNMS4wOSA1LjQ2QzAgNy42IDAgMTAuNCAwIDE2djE2YzAgNS42IDAgOC40IDEuMDkgMTAuNTRhMTAgMTAgMCAwIDAgNC4zNyA0LjM3QzcuNiA0OCAxMC40IDQ4IDE2IDQ4aDE2YzEuNzUyIDAgMy4yMyAwIDQuNS0uMDMzIDAtMS4zNjIgMC0yLjA0NC4wNjYtMi42MTZhMTAgMTAgMCAwIDEgOC43ODUtOC43ODVjLjU3Mi0uMDY2IDEuMjU0LS4wNjYgMi42MTYtLjA2NkM0OCAzNS4yMyA0OCAzMy43NTIgNDggMzJWMTZjMC01LjYgMC04LjQtMS4wOS0xMC41NGExMCAxMCAwIDAgMC00LjM3LTQuMzdDNDAuNCAwIDM3LjYgMCAzMiAwSDE2QzEwLjQgMCA3LjYgMCA1LjQ2IDEuMDlhMTAgMTAgMCAwIDAtNC4zNyA0LjM3WiIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjA0IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zNS41IDM1LjVoMTEuNDg2QzQ3IDM0LjQ3NSA0NyAzMy4zMiA0NyAzMlYxNmMwLTIuODE3IDAtNC44Ny0uMTMzLTYuNDg3LS4xMzEtMS42MDUtLjM4Ny0yLjY5NC0uODQ4LTMuNTk5YTkgOSAwIDAgMC0zLjkzMy0zLjkzM2MtLjkwNS0uNDYxLTEuOTk0LS43MTctMy42LS44NDhDMzYuODcgMSAzNC44MTYgMSAzMiAxSDE2Yy0yLjgxNyAwLTQuODcgMC02LjQ4Ny4xMzMtMS42MDUuMTMxLTIuNjk0LjM4Ny0zLjU5OS44NDhhOSA5IDAgMCAwLTMuOTMzIDMuOTMzYy0uNDYxLjkwNS0uNzE3IDEuOTk0LS44NDggMy42QzEgMTEuMTMgMSAxMy4xODMgMSAxNnYxNmMwIDIuODE3IDAgNC44Ny4xMzMgNi40ODYuMTMxIDEuNjA2LjM4NyAyLjY5NS44NDggMy42YTkgOSAwIDAgMCAzLjkzMyAzLjkzM2MuOTA1LjQ2MSAxLjk5NC43MTcgMy42Ljg0OEMxMS4xMyA0NyAxMy4xODMgNDcgMTYgNDdoMTZjMS4zMiAwIDIuNDc1IDAgMy41LS4wMTRWMzUuNVptMSAxMi40NjdDMzUuMjMgNDggMzMuNzUyIDQ4IDMyIDQ4SDE2Yy01LjYgMC04LjQgMC0xMC41NC0xLjA5YTEwIDEwIDAgMCAxLTQuMzctNC4zN0MwIDQwLjQgMCAzNy42IDAgMzJWMTZjMC01LjYgMC04LjQgMS4wOS0xMC41NGExMCAxMCAwIDAgMSA0LjM3LTQuMzdDNy42IDAgMTAuNCAwIDE2IDBoMTZjNS42IDAgOC40IDAgMTAuNTQgMS4wOWExMCAxMCAwIDAgMSA0LjM3IDQuMzdDNDggNy42IDQ4IDEwLjQgNDggMTZ2MTZjMCAxLjc1MiAwIDMuMjMtLjAzMyA0LjVIMzYuNXYxMS40NjdaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii44IiBkPSJNMyAxNC4yYzAtMy45MiAwLTUuODguNzYzLTcuMzc4YTcgNyAwIDAgMSAzLjA2LTMuMDU5QzguMzE4IDMgMTAuMjggMyAxNC4yIDNoMTkuNmMzLjkyIDAgNS44OCAwIDcuMzc4Ljc2M2E3IDcgMCAwIDEgMy4wNTkgMy4wNkM0NSA4LjMxOCA0NSAxMC4yOCA0NSAxNC4ydjE5LjZjMCAzLjkyIDAgNS44OC0uNzYzIDcuMzc4YTcgNyAwIDAgMS0zLjA2IDMuMDU5QzM5LjY4MiA0NSAzNy43MiA0NSAzMy44IDQ1SDE0LjJjLTMuOTIgMC01Ljg4IDAtNy4zNzgtLjc2M2E3IDcgMCAwIDEtMy4wNTktMy4wNkMzIDM5LjY4MiAzIDM3LjcyIDMgMzMuOFYxNC4yWiIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTMzLjggMy41SDE0LjJjLTEuOTY4IDAtMy40MTUgMC00LjU1Ny4wOTQtMS4xMzYuMDkzLTEuOTI3LjI3NS0yLjU5NC42MTRBNi41IDYuNSAwIDAgMCA0LjIxIDcuMDVjLS4zNC42NjctLjUyMiAxLjQ1OC0uNjE1IDIuNTk0QzMuNSAxMC43ODUgMy41IDEyLjIzMiAzLjUgMTQuMnYxOS42YzAgMS45NjggMCAzLjQxNS4wOTQgNC41NTcuMDkzIDEuMTM2LjI3NSAxLjkyOC42MTQgMi41OTRhNi41IDYuNSAwIDAgMCAyLjg0MSAyLjg0Yy42NjcuMzQgMS40NTguNTIyIDIuNTk0LjYxNSAxLjE0Mi4wOTQgMi41ODkuMDk0IDQuNTU3LjA5NGgxOS42YzEuOTY4IDAgMy40MTUgMCA0LjU1Ny0uMDk0IDEuMTM2LS4wOTMgMS45MjgtLjI3NSAyLjU5NC0uNjE0YTYuNDk5IDYuNDk5IDAgMCAwIDIuODQtMi44NDFjLjM0LS42NjYuNTIyLTEuNDU4LjYxNS0yLjU5NC4wOTQtMS4xNDIuMDk0LTIuNTg5LjA5NC00LjU1N1YxNC4yYzAtMS45NjggMC0zLjQxNS0uMDk0LTQuNTU3LS4wOTMtMS4xMzYtLjI3NS0xLjkyNy0uNjE0LTIuNTk0YTYuNSA2LjUgMCAwIDAtMi44NDEtMi44NGMtLjY2Ni0uMzQtMS40NTgtLjUyMi0yLjU5NC0uNjE1QzM3LjIxNSAzLjUgMzUuNzY4IDMuNSAzMy44IDMuNVpNMy43NjMgNi44MjJDMyA4LjMyIDMgMTAuMjggMyAxNC4ydjE5LjZjMCAzLjkyIDAgNS44OC43NjMgNy4zNzhhNyA3IDAgMCAwIDMuMDYgMy4wNTlDOC4zMTggNDUgMTAuMjggNDUgMTQuMiA0NWgxOS42YzMuOTIgMCA1Ljg4IDAgNy4zNzgtLjc2M2E3IDcgMCAwIDAgMy4wNTktMy4wNkM0NSAzOS42ODIgNDUgMzcuNzIgNDUgMzMuOFYxNC4yYzAtMy45MiAwLTUuODgtLjc2My03LjM3OGE3IDcgMCAwIDAtMy4wNi0zLjA1OUMzOS42ODIgMyAzNy43MiAzIDMzLjggM0gxNC4yYy0zLjkyIDAtNS44OCAwLTcuMzc4Ljc2M2E3IDcgMCAwIDAtMy4wNTkgMy4wNloiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiNERkQ3RDUiIGQ9Ik0yNSAxM2MwLTIuOCAwLTQuMi41NDUtNS4yN2E1IDUgMCAwIDEgMi4xODUtMi4xODVDMjguOCA1IDMwLjIgNSAzMyA1aDJjMi44IDAgNC4yIDAgNS4yNy41NDVhNSA1IDAgMCAxIDIuMTg1IDIuMTg1QzQzIDguOCA0MyAxMC4yIDQzIDEzdjJjMCAyLjggMCA0LjItLjU0NSA1LjI3YTUgNSAwIDAgMS0yLjE4NSAyLjE4NUMzOS4yIDIzIDM3LjggMjMgMzUgMjNoLTJjLTIuOCAwLTQuMiAwLTUuMjctLjU0NWE1IDUgMCAwIDEtMi4xODUtMi4xODVDMjUgMTkuMiAyNSAxNy44IDI1IDE1di0yWiIvPjxwYXRoIGZpbGw9IiNFMUQ3RDUiIGQ9Ik0zOCA1aC04YTUgNSAwIDAgMC01IDV2OGE1IDUgMCAwIDAgNSA1aDhhNSA1IDAgMCAwIDUtNXYtOGE1IDUgMCAwIDAtNS01WiIvPjxwYXRoIGZpbGw9IiNEMjIyMDkiIGQ9Ik0zNy45MzggMTYuODEzaC03Ljg3NnYuNTYyaDcuODc1di0uNTYzWm0wIC41NjJoLTcuODc2di41NjNoNy44NzV2LS41NjNaIi8+PHBhdGggZmlsbD0iI0QyMjIwOSIgZD0iTTM3LjkzOCAxNy45MzhoLTcuODc2di41NjJoNy44NzV2LS41NjNabTAgLjU2MmgtNy44NzZ2LjU2M2g3Ljg3NVYxOC41WiIvPjxwYXRoIGZpbGw9IiNEMjIyMDkiIGQ9Ik0zMS4xODggMTkuMDYzaC0xLjEyNXYuNTYyaDEuMTI1di0uNTYzWm02Ljc1IDBIMzEuNzV2LjU2Mmg2LjE4OHYtLjU2M1ptLTYuNzUuNTYyaC0xLjEyNXYuNTYzaDEuMTI1di0uNTYzWm02Ljc1IDBIMzEuNzV2LjU2M2g2LjE4OHYtLjU2M1oiLz48cGF0aCBmaWxsPSIjRDIyMjA5IiBkPSJNMzEuMTg4IDIwLjE4OGgtMS4xMjV2LjU2MmgxLjEyNXYtLjU2M1ptNi43NSAwSDMxLjc1di41NjJoNi4xODh2LS41NjNabS02Ljc1LjU2MmgtMS4xMjV2LjU2M2gxLjEyNXYtLjU2M1ptNi43NSAwSDMxLjc1di41NjNoNi4xODh2LS41NjNaIi8+PHBhdGggZmlsbD0iI0QyMjIwOSIgZD0iTTMxLjE4OCAyMS4zMTNoLTEuMTI1di41NjJoMS4xMjV2LS41NjNabTYuNzUgMEgzMS43NXYuNTYyaDYuMTg4di0uNTYzWm0tNi43NS41NjJoLTEuMTI1di41NjNoMS4xMjV2LS41NjNabTYuNzUgMEgzMS43NXYuNTYzaDYuMTg4di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNEMjIyMDkiIGQ9Ik0zMS4xODggMjIuNDM4aC0xLjEyNVYyM2gxLjEyNXYtLjU2M1ptNi43NSAwSDMxLjc1VjIzaDYuMTg4di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0zMi44NzUgMTcuOTM4aC0uNTYzdi41NjJoLjU2M3YtLjU2M1ptMi4yNSAwSDM0di41NjJoMS4xMjV2LS41NjNabTEuMTI1IDBoLS41NjN2LjU2MmguNTYzdi0uNTYzWm0tMy4zNzUuNTYyaC0uNTYzdi41NjNoLjU2M1YxOC41Wm0yLjI1IDBIMzR2LjU2M2gxLjEyNVYxOC41Wm0xLjEyNSAwaC0uNTYzdi41NjNoLjU2M1YxOC41WiIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0zMy40MzggMTkuMDYzaC0xLjEyNnYuNTYyaDEuMTI2di0uNTYzWm0xLjY4NyAwSDM0di41NjJoMS4xMjV2LS41NjNabTEuNjg4IDBoLTEuMTI2di41NjJoMS4xMjZ2LS41NjNaIi8+PHBhdGggZmlsbD0iI0MxNjcxMCIgZD0iTTMzLjQzOCA4LjM3NWgtLjU2M3YuNTYzaC41NjN2LS41NjNabTEuNjg3IDBIMzR2LjU2M2gxLjEyNXYtLjU2M1oiLz48cGF0aCBmaWxsPSIjRDRBMDE1IiBkPSJNMzEuNzUgOC45MzhoLTEuNjg4VjkuNWgxLjY4OHYtLjU2M1oiLz48cGF0aCBmaWxsPSIjQzE2NzEwIiBkPSJNMzUuNjg4IDguOTM4aC0zLjM3NlY5LjVoMy4zNzZ2LS41NjNaIi8+PHBhdGggZmlsbD0iI0Q0QTAxNSIgZD0iTTM3LjkzOCA4LjkzOEgzNi4yNVY5LjVoMS42ODh2LS41NjNaIi8+PHBhdGggZmlsbD0iI0MxNjcxMCIgZD0iTTMwLjA2MyA5LjVoLTEuMTI1di41NjNoMS4xMjVWOS41WiIvPjxwYXRoIGZpbGw9IiNENEEwMTUiIGQ9Ik0zMS43NSA5LjVoLTEuNjg4di41NjNoMS42ODhWOS41WiIvPjxwYXRoIGZpbGw9IiNDMTY3MTAiIGQ9Ik0zNS4xMjUgOS41SDMxLjc1di41NjNoMy4zNzVWOS41WiIvPjxwYXRoIGZpbGw9IiNENEEwMTUiIGQ9Ik0zNy45MzggOS41SDM2LjI1di41NjNoMS42ODhWOS41WiIvPjxwYXRoIGZpbGw9IiNDMTY3MTAiIGQ9Ik0zMC4wNjMgMTAuMDYzaC0xLjEyNXYuNTYyaDEuMTI1di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNENEEwMTUiIGQ9Ik0zNCAxMC4wNjNoLTMuOTM4di41NjJIMzR2LS41NjNaIi8+PHBhdGggZmlsbD0iI0MxNjcxMCIgZD0iTTM0LjU2MyAxMC4wNjNIMzR2LjU2MmguNTYzdi0uNTYzWiIvPjxwYXRoIGZpbGw9IiNENEEwMTUiIGQ9Ik0zNy45MzggMTAuMDYzaC0zLjM3NnYuNTYyaDMuMzc2di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNDMTY3MTAiIGQ9Ik0zMC4wNjMgMTAuNjI1aC0xLjY4OHYuNTYzaDEuNjg4di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNENEEwMTUiIGQ9Ik0zMy40MzggMTAuNjI1aC0zLjM3NnYuNTYzaDMuMzc1di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNGRkU5MzkiIGQ9Ik0zNS4xMjUgMTAuNjI1aC0xLjY4OHYuNTYzaDEuNjg4di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNENEEwMTUiIGQ9Ik0zNy45MzggMTAuNjI1aC0yLjgxM3YuNTYzaDIuODEzdi0uNTYzWiIvPjxwYXRoIGZpbGw9IiNDMTY3MTAiIGQ9Ik0zMC4wNjMgMTEuMTg4aC0xLjEyNXYuNTYyaDEuMTI1di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNENEEwMTUiIGQ9Ik0zNCAxMS4xODhoLTMuOTM4di41NjJIMzR2LS41NjNaIi8+PHBhdGggZmlsbD0iI0ZGRTkzOSIgZD0iTTM0LjU2MyAxMS4xODhIMzR2LjU2MmguNTYzdi0uNTYzWiIvPjxwYXRoIGZpbGw9IiNENEEwMTUiIGQ9Ik0zNy45MzggMTEuMTg4aC0zLjM3NnYuNTYyaDMuMzc2di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNDMTY3MTAiIGQ9Ik0zMC4wNjMgMTEuNzVoLTEuMTI1di41NjNoMS4xMjV2LS41NjNaIi8+PHBhdGggZmlsbD0iI0Q0QTAxNSIgZD0iTTM0IDExLjc1aC0zLjkzOHYuNTYzSDM0di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNGRkU5MzkiIGQ9Ik0zNC41NjMgMTEuNzVIMzR2LjU2M2guNTYzdi0uNTYzWiIvPjxwYXRoIGZpbGw9IiNENEEwMTUiIGQ9Ik0zNy45MzggMTEuNzVoLTMuMzc2di41NjNoMy4zNzZ2LS41NjNaIi8+PHBhdGggZmlsbD0iI0MxNjcxMCIgZD0iTTMwLjA2MyAxMi4zMTNoLTEuNjg4di41NjJoMS42ODh2LS41NjNaIi8+PHBhdGggZmlsbD0iI0Q0QTAxNSIgZD0iTTM0IDEyLjMxM2gtMy45Mzh2LjU2MkgzNHYtLjU2M1oiLz48cGF0aCBmaWxsPSIjRkZFOTM5IiBkPSJNMzQuNTYzIDEyLjMxM0gzNHYuNTYyaC41NjN2LS41NjNaIi8+PHBhdGggZmlsbD0iI0Q0QTAxNSIgZD0iTTM3LjkzOCAxMi4zMTNoLTMuMzc2di41NjJoMy4zNzZ2LS41NjNaIi8+PHBhdGggZmlsbD0iI0MxNjcxMCIgZD0iTTMwLjA2MyAxMi44NzVoLTEuMTI1di41NjNoMS4xMjV2LS41NjNaIi8+PHBhdGggZmlsbD0iI0Q0QTAxNSIgZD0iTTM0IDEyLjg3NWgtMy45Mzh2LjU2M0gzNHYtLjU2M1oiLz48cGF0aCBmaWxsPSIjRkZFOTM5IiBkPSJNMzQuNTYzIDEyLjg3NUgzNHYuNTYzaC41NjN2LS41NjNaIi8+PHBhdGggZmlsbD0iI0Q0QTAxNSIgZD0iTTM3LjkzOCAxMi44NzVoLTMuMzc2di41NjNoMy4zNzZ2LS41NjNaIi8+PHBhdGggZmlsbD0iI0MxNjcxMCIgZD0iTTMwLjA2MyAxMy40MzhoLTEuMTI1VjE0aDEuMTI1di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNENEEwMTUiIGQ9Ik0zNCAxMy40MzhoLTMuOTM4VjE0SDM0di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNGRkU5MzkiIGQ9Ik0zNC41NjMgMTMuNDM4SDM0VjE0aC41NjN2LS41NjNaIi8+PHBhdGggZmlsbD0iI0Q0QTAxNSIgZD0iTTM3LjkzOCAxMy40MzhoLTMuMzc2VjE0aDMuMzc2di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNDMTY3MTAiIGQ9Ik0zMC4wNjMgMTRoLTEuNjg4di41NjNoMS42ODhWMTRaIi8+PHBhdGggZmlsbD0iI0QwOEIxMSIgZD0iTTQwLjE4OCAxNEgzMC4wNjJ2LjU2M2gxMC4xMjVWMTRaIi8+PHBhdGggZmlsbD0iI0MxNjcxMCIgZD0iTTMwLjA2MyAxNC41NjNoLTEuMTI1di41NjJoMS4xMjV2LS41NjNaIi8+PHBhdGggZmlsbD0iI0QwOEIxMSIgZD0iTTM3LjkzOCAxNC41NjNoLTcuODc2di41NjJoNy44NzV2LS41NjNaIi8+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTM4LjUgMTQuNTYzaC0uNTYzdi41NjJoLjU2M3YtLjU2M1oiLz48cGF0aCBmaWxsPSIjRDA4QjExIiBkPSJNMzkuMDYzIDE0LjU2M0gzOC41di41NjJoLjU2M3YtLjU2M1oiLz48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMzkuNjI1IDE0LjU2M2gtLjU2M3YuNTYyaC41NjN2LS41NjNaIi8+PHBhdGggZmlsbD0iI0QwOEIxMSIgZD0iTTQwLjE4OCAxNC41NjNoLS41NjN2LjU2MmguNTYzdi0uNTYzWiIvPjxwYXRoIGZpbGw9IiNDMTY3MTAiIGQ9Ik0zMC4wNjMgMTUuMTI1aC0xLjY4OHYuNTYzaDEuNjg4di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNEMDhCMTEiIGQ9Ik0zMS4xODggMTUuMTI1aC0xLjEyNXYuNTYzaDEuMTI1di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNGRkU5MzkiIGQ9Ik0zMS43NSAxNS4xMjVoLS41NjN2LjU2M2guNTYzdi0uNTYzWiIvPjxwYXRoIGZpbGw9IiMwMDAiIGQ9Ik0zMi4zMTMgMTUuMTI1aC0uNTYzdi41NjNoLjU2M3YtLjU2M1oiLz48cGF0aCBmaWxsPSIjRkZFOTM5IiBkPSJNMzIuODc1IDE1LjEyNWgtLjU2M3YuNTYzaC41NjN2LS41NjNaIi8+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTMzLjQzOCAxNS4xMjVoLS41NjN2LjU2M2guNTYzdi0uNTYzWiIvPjxwYXRoIGZpbGw9IiNGRkU5MzkiIGQ9Ik0zNCAxNS4xMjVoLS41NjN2LjU2M0gzNHYtLjU2M1oiLz48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMzQuNTYzIDE1LjEyNUgzNHYuNTYzaC41NjN2LS41NjNaIi8+PHBhdGggZmlsbD0iI0ZGRTkzOSIgZD0iTTM1LjEyNSAxNS4xMjVoLS41NjN2LjU2M2guNTYzdi0uNTYzWiIvPjxwYXRoIGZpbGw9IiNEMDhCMTEiIGQ9Ik00MC4xODggMTUuMTI1aC01LjA2M3YuNTYzaDUuMDYzdi0uNTYzWiIvPjxwYXRoIGZpbGw9IiNDMTY3MTAiIGQ9Ik0zMC4wNjMgMTUuNjg4aC0yLjI1di41NjJoMi4yNXYtLjU2M1oiLz48cGF0aCBmaWxsPSIjRDA4QjExIiBkPSJNNDAuMTg4IDE1LjY4OEgzMC4wNjJ2LjU2MmgxMC4xMjV2LS41NjNaIi8+PHBhdGggZmlsbD0iI0MxNjcxMCIgZD0iTTMwLjA2MyAxNi4yNWgtMS42ODh2LjU2M2gxLjY4OHYtLjU2M1oiLz48cGF0aCBmaWxsPSIjRDA4QjExIiBkPSJNNDAuMTg4IDE2LjI1SDMwLjA2MnYuNTYzaDEwLjEyNXYtLjU2M1oiLz48cGF0aCBmaWxsPSIjQzE2NzEwIiBkPSJNMjguOTM4IDE2LjgxM2gtLjU2M3YuNTYyaC41NjN2LS41NjNabTEuMTI1IDBIMjkuNXYuNTYyaC41NjN2LS41NjNaIi8+PHBhdGggZmlsbD0iI0QwOEIxMSIgZD0iTTM3LjkzOCAxNi44MTNoLTcuODc2di41NjJoNy44NzV2LS41NjNaIi8+PHBhdGggZmlsbD0iI0I5MTg1QyIgZD0iTTM0IDExLjE4OGgtMy4zNzV2LjU2MkgzNHYtLjU2M1ptMy45MzggMGgtMy4zNzZ2LjU2MmgzLjM3NnYtLjU2M1ptLTYuNzUuNTYyaC0uNTYzdi41NjNoLjU2M3YtLjU2M1oiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMzIuMzEzIDExLjc1aC0xLjEyNnYuNTYzaDEuMTI1di0uNTYzWiIvPjxwYXRoIGZpbGw9IiMwMDAiIGQ9Ik0zMy40MzggMTEuNzVoLTEuMTI2di41NjNoMS4xMjZ2LS41NjNaIi8+PHBhdGggZmlsbD0iI0I5MTg1QyIgZD0iTTM0IDExLjc1aC0uNTYzdi41NjNIMzR2LS41NjNabTEuMTI1IDBoLS41NjN2LjU2M2guNTYzdi0uNTYzWiIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0zNi4yNSAxMS43NWgtMS4xMjV2LjU2M2gxLjEyNXYtLjU2M1oiLz48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMzcuMzc1IDExLjc1SDM2LjI1di41NjNoMS4xMjV2LS41NjNaIi8+PHBhdGggZmlsbD0iI0I5MTg1QyIgZD0iTTM3LjkzOCAxMS43NWgtLjU2M3YuNTYzaC41NjN2LS41NjNabS02Ljc1LjU2M2gtMi4yNXYuNTYyaDIuMjV2LS41NjNaIi8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTMyLjMxMyAxMi4zMTNoLTEuMTI2di41NjJoMS4xMjV2LS41NjNaIi8+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTMzLjQzOCAxMi4zMTNoLTEuMTI2di41NjJoMS4xMjZ2LS41NjNaIi8+PHBhdGggZmlsbD0iI0I5MTg1QyIgZD0iTTM1LjEyNSAxMi4zMTNoLTEuNjg4di41NjJoMS42ODh2LS41NjNaIi8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTM2LjI1IDEyLjMxM2gtMS4xMjV2LjU2MmgxLjEyNXYtLjU2M1oiLz48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMzcuMzc1IDEyLjMxM0gzNi4yNXYuNTYyaDEuMTI1di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNCOTE4NUMiIGQ9Ik0zNy45MzggMTIuMzEzaC0uNTYzdi41NjJoLjU2M3YtLjU2M1ptLTguNDM4LjU2MmgtLjU2M3YuNTYzaC41NjN2LS41NjNabTEuNjg4IDBoLS41NjN2LjU2M2guNTYzdi0uNTYzWiIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0zMi4zMTMgMTIuODc1aC0xLjEyNnYuNTYzaDEuMTI1di0uNTYzWiIvPjxwYXRoIGZpbGw9IiMwMDAiIGQ9Ik0zMy40MzggMTIuODc1aC0xLjEyNnYuNTYzaDEuMTI2di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNCOTE4NUMiIGQ9Ik0zNCAxMi44NzVoLS41NjN2LjU2M0gzNHYtLjU2M1ptMS4xMjUgMGgtLjU2M3YuNTYzaC41NjN2LS41NjNaIi8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTM2LjI1IDEyLjg3NWgtMS4xMjV2LjU2M2gxLjEyNXYtLjU2M1oiLz48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMzcuMzc1IDEyLjg3NUgzNi4yNXYuNTYzaDEuMTI1di0uNTYzWiIvPjxwYXRoIGZpbGw9IiNCOTE4NUMiIGQ9Ik0zNy45MzggMTIuODc1aC0uNTYzdi41NjNoLjU2M3YtLjU2M1ptLTguNDM4LjU2M2gtLjU2M1YxNGguNTYzdi0uNTYzWm0xLjY4OCAwaC0uNTYzVjE0aC41NjN2LS41NjNaIi8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTMyLjMxMyAxMy40MzhoLTEuMTI2VjE0aDEuMTI1di0uNTYzWiIvPjxwYXRoIGZpbGw9IiMwMDAiIGQ9Ik0zMy40MzggMTMuNDM4aC0xLjEyNlYxNGgxLjEyNnYtLjU2M1oiLz48cGF0aCBmaWxsPSIjQjkxODVDIiBkPSJNMzQgMTMuNDM4aC0uNTYzVjE0SDM0di0uNTYzWm0xLjEyNSAwaC0uNTYzVjE0aC41NjN2LS41NjNaIi8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTM2LjI1IDEzLjQzOGgtMS4xMjVWMTRoMS4xMjV2LS41NjNaIi8+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTM3LjM3NSAxMy40MzhIMzYuMjVWMTRoMS4xMjV2LS41NjNaIi8+PHBhdGggZmlsbD0iI0I5MTg1QyIgZD0iTTM3LjkzOCAxMy40MzhoLS41NjNWMTRoLjU2M3YtLjU2M1pNMzQgMTRoLTMuMzc1di41NjNIMzRWMTRabTMuOTM4IDBoLTMuMzc2di41NjNoMy4zNzZWMTRaIi8+PHBhdGggZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIuMyIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzUgNS41aC0yYy0xLjQwOCAwLTIuNDM1IDAtMy4yNDMuMDY2LS44MDMuMDY2LTEuMzQ3LjE5NC0xLjguNDI0YTQuNSA0LjUgMCAwIDAtMS45NjYgMS45NjdjLS4yMzEuNDUzLS4zNTkuOTk3LS40MjQgMS44LS4wNjcuODA4LS4wNjcgMS44MzUtLjA2NyAzLjI0M3YyYzAgMS40MDggMCAyLjQzNS4wNjcgMy4yNDMuMDY1LjgwMy4xOTMgMS4zNDcuNDI0IDEuOGE0LjUgNC41IDAgMCAwIDEuOTY2IDEuOTY2Yy40NTMuMjMxLjk5Ny4zNTkgMS44LjQyNC44MDguMDY3IDEuODM1LjA2NyAzLjI0My4wNjdoMmMxLjQwOCAwIDIuNDM1IDAgMy4yNDMtLjA2Ny44MDMtLjA2NSAxLjM0Ny0uMTkzIDEuOC0uNDI0YTQuNSA0LjUgMCAwIDAgMS45NjctMS45NjZjLjIzLS40NTMuMzU4LS45OTcuNDI0LTEuOC4wNjYtLjgwOC4wNjYtMS44MzUuMDY2LTMuMjQzdi0yYzAtMS40MDggMC0yLjQzNS0uMDY2LTMuMjQzLS4wNjYtLjgwMy0uMTk0LTEuMzQ3LS40MjQtMS44YTQuNSA0LjUgMCAwIDAtMS45NjctMS45NjdjLS40NTMtLjIzLS45OTctLjM1OC0xLjgtLjQyNEMzNy40MzUgNS41IDM2LjQwOCA1LjUgMzUgNS41Wm0tOS40NTUgMi4yM0MyNSA4LjggMjUgMTAuMiAyNSAxM3YyYzAgMi44IDAgNC4yLjU0NSA1LjI3YTUgNSAwIDAgMCAyLjE4NSAyLjE4NUMyOC44IDIzIDMwLjIgMjMgMzMgMjNoMmMyLjggMCA0LjIgMCA1LjI3LS41NDVhNSA1IDAgMCAwIDIuMTg1LTIuMTg1QzQzIDE5LjIgNDMgMTcuOCA0MyAxNXYtMmMwLTIuOCAwLTQuMi0uNTQ1LTUuMjdhNSA1IDAgMCAwLTIuMTg1LTIuMTg1QzM5LjIgNSAzNy44IDUgMzUgNWgtMmMtMi44IDAtNC4yIDAtNS4yNy41NDVhNSA1IDAgMCAwLTIuMTg1IDIuMTg1WiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iIzU2NENCRiIgZD0iTTUgMzNjMC0yLjggMC00LjIuNTQ1LTUuMjdhNSA1IDAgMCAxIDIuMTg1LTIuMTg1QzguOCAyNSAxMC4yIDI1IDEzIDI1aDJjMi44IDAgNC4yIDAgNS4yNy41NDVhNSA1IDAgMCAxIDIuMTg1IDIuMTg1QzIzIDI4LjggMjMgMzAuMiAyMyAzM3YyYzAgMi44IDAgNC4yLS41NDUgNS4yN2E1IDUgMCAwIDEtMi4xODUgMi4xODVDMTkuMiA0MyAxNy44IDQzIDE1IDQzaC0yYy0yLjggMC00LjIgMC01LjI3LS41NDVhNSA1IDAgMCAxLTIuMTg1LTIuMTg1QzUgMzkuMiA1IDM3LjggNSAzNXYtMloiLz48cGF0aCBmaWxsPSIjRkY2NkIzIiBkPSJNMTEuMTg4IDI2LjEyNWguNTYydjIuODEzaC41NjN2LTIuODEzaC41NjJWMjkuNWguNTYzdi0zLjM3NUgxNFYyOS41aC41NjN2LTMuMzc1aC41NjJ2Mi44MTNoLjU2M3YtMi44MTNoLjU2MnYyLjI1aC41NjN2LTEuNjg4aC41NjJ2Mi4yNWgtLjU2M3YuNTYzaC0uNTYydi41NjNoLTEuMTI1di41NjJoLTIuODEzdi0uNTYzaC0xLjEyNFYyOS41aC0uNTYzdi0uNTYzaC0uNTYzdi0yLjI1aC41NjN2MS42ODhoLjU2M3YtMi4yNVoiLz48cGF0aCBmaWxsPSIjQjNGRkNDIiBkPSJNMTMuNDM4IDMwLjYyNUgxNHYuNTYzaDEuMTI1djIuMjVoMS4xMjV2LS41NjNoLjU2M1YzNGgtMS42ODh2MS4xMjVoLS41NjN2MS4xMjVoLjU2M3Y1LjYyNWgtLjU2M3YtNS4wNjNIMTR2LS41NjJoLTEuNjg4di0xLjEyNWguNTYzdi41NjNIMTR2LTEuMTI2aC41NjNWMzEuNzVoLTEuMTI2di0xLjEyNVoiLz48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii45IiBkPSJNMTYuMjUgMjYuMTI1aC41NjN2Mi4yNWgtLjU2M3YtMi4yNVptLTUuNjI1LjU2M2guNTYzdjEuNjg3aC0uNTYzdi0xLjY4OFoiLz48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii45IiBkPSJNMTcuOTM4IDI2LjY4OGgtLjU2M3YyLjI1aC0uNTYzdi41NjJoLS41NjJ2LjU2M2guNTYzVjI5LjVoLjU2MnYtLjU2M2guNTYzdi0yLjI1Wm0tNi4xODgtLjU2M2guNTYzdjIuODEzaC0uNTYzdi0yLjgxM1ptMy45MzggMGgtLjU2M3YyLjgxM2guNTYzdi0yLjgxM1ptLTIuODEzIDBoLjU2M1YyOS41aC0uNTYzdi0zLjM3NVptMS42ODggMEgxNFYyOS41aC41NjN2LTMuMzc1Wm0uNTYyIDMuOTM4aC41NjN2LjU2MmgtLjU2M3YtLjU2M1ptLS41NjIuNTYySDE0di41NjNoLjU2M3YtLjU2M1ptLjU2Mi41NjNoLjU2M3YyLjI1aC0uNTYzdi0yLjI1Wm0yLjI1IDEuNjg3aC0uNTYzVjM0aC41NjN2LTEuMTI1Wk0xNS4xMjUgMzRoLjU2M3YxLjEyNWgtLjU2M1YzNFptMCAyLjI1di0xLjEyNWgtLjU2M3YxLjEyNWguNTYzWm0wIDB2NS42MjVoLjU2M1YzNi4yNWgtLjU2M1ptLTIuMjUtMS4xMjVoLjU2M3YuNTYzaC0uNTYzdi0uNTYzWiIvPjxwYXRoIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iLjEyIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNSAyNS41aC0yYy0xLjQwOCAwLTIuNDM1IDAtMy4yNDMuMDY3LS44MDMuMDY1LTEuMzQ3LjE5My0xLjguNDI0YTQuNSA0LjUgMCAwIDAtMS45NjcgMS45NjZjLS4yMy40NTMtLjM1OC45OTctLjQyNCAxLjhDNS41IDMwLjU2NSA1LjUgMzEuNTkyIDUuNSAzM3YyYzAgMS40MDggMCAyLjQzNS4wNjYgMy4yNDMuMDY2LjgwMy4xOTQgMS4zNDcuNDI0IDEuOGE0LjUgNC41IDAgMCAwIDEuOTY3IDEuOTY3Yy40NTMuMjMuOTk3LjM1OCAxLjguNDI0LjgwOC4wNjYgMS44MzUuMDY2IDMuMjQzLjA2NmgyYzEuNDA4IDAgMi40MzUgMCAzLjI0My0uMDY2LjgwMy0uMDY2IDEuMzQ3LS4xOTQgMS44LS40MjRhNC41IDQuNSAwIDAgMCAxLjk2Ni0xLjk2N2MuMjMxLS40NTMuMzU5LS45OTcuNDI0LTEuOC4wNjctLjgwOC4wNjctMS44MzUuMDY3LTMuMjQzdi0yYzAtMS40MDggMC0yLjQzNS0uMDY3LTMuMjQzLS4wNjUtLjgwMy0uMTkzLTEuMzQ3LS40MjQtMS44YTQuNSA0LjUgMCAwIDAtMS45NjYtMS45NjZjLS40NTMtLjIzMS0uOTk3LS4zNTktMS44LS40MjQtLjgwOC0uMDY3LTEuODM1LS4wNjctMy4yNDMtLjA2N1ptLTkuNDU1IDIuMjNDNSAyOC44IDUgMzAuMiA1IDMzdjJjMCAyLjggMCA0LjIuNTQ1IDUuMjdhNSA1IDAgMCAwIDIuMTg1IDIuMTg1QzguOCA0MyAxMC4yIDQzIDEzIDQzaDJjMi44IDAgNC4yIDAgNS4yNy0uNTQ1YTUgNSAwIDAgMCAyLjE4NS0yLjE4NUMyMyAzOS4yIDIzIDM3LjggMjMgMzV2LTJjMC0yLjggMC00LjItLjU0NS01LjI3YTUgNSAwIDAgMC0yLjE4NS0yLjE4NUMxOS4yIDI1IDE3LjggMjUgMTUgMjVoLTJjLTIuOCAwLTQuMiAwLTUuMjcuNTQ1YTUgNSAwIDAgMC0yLjE4NSAyLjE4NVoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiMxNzJEOTkiIGQ9Ik01IDEzYzAtMi44IDAtNC4yLjU0NS01LjI3QTUgNSAwIDAgMSA3LjczIDUuNTQ1QzguOCA1IDEwLjIgNSAxMyA1aDJjMi44IDAgNC4yIDAgNS4yNy41NDVhNSA1IDAgMCAxIDIuMTg1IDIuMTg1QzIzIDguOCAyMyAxMC4yIDIzIDEzdjJjMCAyLjggMCA0LjItLjU0NSA1LjI3YTUgNSAwIDAgMS0yLjE4NSAyLjE4NUMxOS4yIDIzIDE3LjggMjMgMTUgMjNoLTJjLTIuOCAwLTQuMiAwLTUuMjctLjU0NWE1IDUgMCAwIDEtMi4xODUtMi4xODVDNSAxOS4yIDUgMTcuOCA1IDE1di0yWiIvPjxwYXRoIGZpbGw9IiMwMEEyRDgiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjMgMTMuMUg4LjZ2LjloMi43di0uOVptMCAuOWgxLjh2LjloLjl2MS44aC0uOXYtLjloLS45di0uOWgtLjlWMTRabTIuNyAyLjdoLjl2Mi43SDE0di0yLjdaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48cGF0aCBmaWxsPSIjMDBERTZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS4zIDEyLjJIOC42di45aDIuN3YtLjlabTAgLjloMS44di45aC0xLjh2LS45Wm0yLjcgMS44aC0uOVYxNGguOXYuOVptLjkgMS44SDE0di0xLjhoLjl2MS44Wm0wIDBoLjl2Mi43aC0uOXYtMi43WiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iI0ZGRUIwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTEuMyAxMS4zSDguNnYuOWgyLjd2LS45Wm0wIC45aDEuOHYuOWgtMS44di0uOVpNMTQgMTRoLS45di0uOWguOXYuOVptLjkuOUgxNFYxNGguOXYuOVptLjkgMS44aC0uOXYtMS44aC45djEuOFptMCAwaC45djIuN2gtLjl2LTIuN1oiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiNGQTAiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjMgMTAuNEg4LjZ2LjloMi43di0uOVptMCAuOUgxNHYuOWguOXYuOWguOXYuOWguOXYxLjhoLjl2My42aC0uOXYtMi43aC0uOXYtMS44aC0uOVYxNEgxNHYtLjloLS45di0uOWgtMS44di0uOVoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiNERDNEMUMiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTEyLjIgOS41SDguNnYuOWgyLjd2LjlIMTR2LjloLjl2LjloLjl2LjloLjl2MS44aC45djMuNmguOXYtMy42aC0uOVYxNGgtLjl2LS45aC0uOXYtLjloLS45di0uOUgxNHYtLjloLTEuOHYtLjlaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48cGF0aCBmaWxsPSIjQzAzMDc4IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi4yIDguNkg4LjZ2LjloMy42di0uOVptMCAuOUgxNHYuOWgtMS44di0uOVptNS40IDQuNWgtLjl2LS45aC0uOXYtLjloLS45di0uOUgxNHYtLjloMS44di45aC45di45aC45VjE0Wm0uOSAxLjhoLS45VjE0aC45djEuOFptMCAwaC45djMuNmgtLjl2LTMuNloiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iLjEyIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNSA1LjVoLTJjLTEuNDA4IDAtMi40MzUgMC0zLjI0My4wNjYtLjgwMy4wNjYtMS4zNDcuMTk0LTEuOC40MjRBNC41IDQuNSAwIDAgMCA1Ljk5IDcuOTU3Yy0uMjMuNDUzLS4zNTguOTk3LS40MjQgMS44QzUuNSAxMC41NjUgNS41IDExLjU5MiA1LjUgMTN2MmMwIDEuNDA4IDAgMi40MzUuMDY2IDMuMjQzLjA2Ni44MDMuMTk0IDEuMzQ3LjQyNCAxLjhhNC41IDQuNSAwIDAgMCAxLjk2NyAxLjk2NmMuNDUzLjIzMS45OTcuMzU5IDEuOC40MjQuODA4LjA2NyAxLjgzNS4wNjcgMy4yNDMuMDY3aDJjMS40MDggMCAyLjQzNSAwIDMuMjQzLS4wNjcuODAzLS4wNjUgMS4zNDctLjE5MyAxLjgtLjQyNGE0LjUgNC41IDAgMCAwIDEuOTY2LTEuOTY2Yy4yMzEtLjQ1My4zNTktLjk5Ny40MjQtMS44LjA2Ny0uODA4LjA2Ny0xLjgzNS4wNjctMy4yNDN2LTJjMC0xLjQwOCAwLTIuNDM1LS4wNjctMy4yNDMtLjA2NS0uODAzLS4xOTMtMS4zNDctLjQyNC0xLjhhNC41IDQuNSAwIDAgMC0xLjk2Ni0xLjk2N2MtLjQ1My0uMjMtLjk5Ny0uMzU4LTEuOC0uNDI0QzE3LjQzNSA1LjUgMTYuNDA4IDUuNSAxNSA1LjVaTTUuNTQ1IDcuNzNDNSA4LjggNSAxMC4yIDUgMTN2MmMwIDIuOCAwIDQuMi41NDUgNS4yN2E1IDUgMCAwIDAgMi4xODUgMi4xODVDOC44IDIzIDEwLjIgMjMgMTMgMjNoMmMyLjggMCA0LjIgMCA1LjI3LS41NDVhNSA1IDAgMCAwIDIuMTg1LTIuMTg1QzIzIDE5LjIgMjMgMTcuOCAyMyAxNXYtMmMwLTIuOCAwLTQuMi0uNTQ1LTUuMjdhNSA1IDAgMCAwLTIuMTg1LTIuMTg1QzE5LjIgNSAxNy44IDUgMTUgNWgtMmMtMi44IDAtNC4yIDAtNS4yNy41NDVBNSA1IDAgMCAwIDUuNTQ1IDcuNzNaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48cGF0aCBmaWxsPSIjOTlCM0ZGIiBkPSJNNDggMzYuNUM0OCA0Mi44NTEgNDIuODUxIDQ4IDM2LjUgNDhTMjUgNDIuODUxIDI1IDM2LjUgMzAuMTQ5IDI1IDM2LjUgMjUgNDggMzAuMTQ5IDQ4IDM2LjVaIi8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuMTIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTM2LjUgNDcuNWM2LjA3NSAwIDExLTQuOTI1IDExLTExcy00LjkyNS0xMS0xMS0xMS0xMSA0LjkyNS0xMSAxMSA0LjkyNSAxMSAxMSAxMVptMCAuNUM0Mi44NTEgNDggNDggNDIuODUxIDQ4IDM2LjVTNDIuODUxIDI1IDM2LjUgMjUgMjUgMzAuMTQ5IDI1IDM2LjUgMzAuMTQ5IDQ4IDM2LjUgNDhaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48cGF0aCBmaWxsPSIjN0Y5MUVCIiBkPSJNNDYgMzYuNWE5LjUgOS41IDAgMSAxLTE5IDAgOS41IDkuNSAwIDAgMSAxOSAwWiIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjEyIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zNi41IDQ1LjVhOSA5IDAgMSAwIDAtMTggOSA5IDAgMCAwIDAgMThabTAgLjVhOS41IDkuNSAwIDEgMCAwLTE5IDkuNSA5LjUgMCAwIDAgMCAxOVoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iLjIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTMxLjkxMiAzNy4wMzdhLjUuNSAwIDAgMS0uMTM5LS42NjVsNC4yOTgtNy4xM2EuNS41IDAgMCAxIC44NTYgMGw0LjI5NyA3LjEzYS41LjUgMCAwIDEtLjEzNy42NjQuNS41IDAgMCAxIC4xMTkuNjk4bC00LjMgNi4wNTVhLjUuNSAwIDAgMS0uODE1IDBsLTQuMjk3LTYuMDU1YS41LjUgMCAwIDEgLjExOC0uNjk3Wm0uMjkuNDA4IDQuMjk3IDIuNTM4IDQuMy0yLjUzOC00LjMgNi4wNTUtNC4yOTctNi4wNTVabTAtLjgxNSA0LjI5Ny03LjEzIDQuMjk3IDcuMTMtNC4yOTcgMi41NC00LjI5Ny0yLjU0WiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuNTUiIGQ9Ik0zNi40OTkgMjkuNXY5LjY3bDQuMjk3LTIuNTQtNC4yOTctNy4xM1oiLz48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii4zIiBkPSJtMzYuNDk5IDI5LjUtNC4yOTcgNy4xMyA0LjI5NyAyLjU0VjI5LjVaIi8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuNTUiIGQ9Ik0zNi40OTkgMzkuOTgzVjQzLjVsNC4zLTYuMDU1LTQuMyAyLjUzOFoiLz48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii4zIiBkPSJNMzYuNDk5IDQzLjV2LTMuNTE3bC00LjI5Ny0yLjUzOCA0LjI5NyA2LjA1NVoiLz48cGF0aCBmaWxsPSIjMDAwIiBkPSJtMzYuNDk5IDM5LjE3IDQuMjk3LTIuNTQtNC4yOTctMS45NTN2NC40OTNaIi8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuNiIgZD0ibTMyLjIwMiAzNi42MyA0LjI5NyAyLjU0di00LjQ5M2wtNC4yOTcgMS45NTNaIi8+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iMjQiIHgyPSIyNCIgeTE9IjAiIHkyPSI0OCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMxNzQyOTkiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDFFNTkiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjI0IiB4Mj0iMjQiIHkxPSIwIiB5Mj0iNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjRDJEOEU0Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQzJDOUQ2Ii8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PC9zdmc+";export{j as default}; -//# sourceMappingURL=assets-26YY4GVD-BJE_4jQP.js.map diff --git a/apps/web/public/assets/avalanche-TFPKP544-BAW5xZLs.js b/apps/web/public/assets/avalanche-TFPKP544-BAW5xZLs.js deleted file mode 100644 index c3e1dc07..00000000 --- a/apps/web/public/assets/avalanche-TFPKP544-BAW5xZLs.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},j=new M.Error().stack;j&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[j]="6531c9b8-927e-42eb-84a7-fd9746fa41c8",M._sentryDebugIdIdentifier="sentry-dbid-6531c9b8-927e-42eb-84a7-fd9746fa41c8")}catch{}})();var D="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTIzIDVINXYxOGgxOFY1WiIvPjxwYXRoIGZpbGw9IiNFODQxNDIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTE0IDI4Yy03LjUxMy4wMDgtMTQtNi40ODctMTQtMTRDMCA2LjE5NiA2LjA0My0uMDA4IDE0IDBjNy45NS4wMDggMTQgNi4xOTYgMTQgMTQgMCA3LjUwNS02LjQ5NSAxMy45OTItMTQgMTRabS0zLjk3MS03LjQzNkg3LjMxNWMtLjU3IDAtLjg1MSAwLTEuMDIzLS4xMWEuNjkuNjkgMCAwIDEtLjMxMy0uNTRjLS4wMS0uMjAyLjEzLS40NS40MTItLjk0NGw2LjctMTEuODA5Yy4yODUtLjUwMS40My0uNzUyLjYxMi0uODQ1LjE5NS0uMS40MjktLjEuNjI1IDAgLjE4Mi4wOTMuMzI2LjM0NC42MTEuODQ1bDEuMzc3IDIuNDA0LjAwNy4wMTNjLjMwOC41MzguNDY0LjgxLjUzMyAxLjA5N2EyLjA0IDIuMDQgMCAwIDEgMCAuOTU0Yy0uMDcuMjg5LS4yMjQuNTY0LS41MzYgMS4xMWwtMy41MiA2LjIyLS4wMDkuMDE3Yy0uMzEuNTQyLS40NjcuODE3LS42ODQgMS4wMjRhMi4wNDggMi4wNDggMCAwIDEtLjgzNS40ODVjLS4yODUuMDc5LS42MDQuMDc5LTEuMjQzLjA3OVptNi44NTIgMGgzLjg4OGMuNTc0IDAgLjg2MiAwIDEuMDM0LS4xMTNhLjY4Ny42ODcgMCAwIDAgLjMxMy0uNTQzYy4wMS0uMTk2LS4xMjgtLjQzNC0uMzk4LS45YTguMTk4IDguMTk4IDAgMCAxLS4wMjgtLjA0OGwtMS45NDgtMy4zMzItLjAyMi0uMDM3Yy0uMjc0LS40NjMtLjQxMi0uNjk3LS41OS0uNzg3YS42ODQuNjg0IDAgMCAwLS42MjEgMGMtLjE3OS4wOTMtLjMyMy4zMzctLjYwOC44MjhsLTEuOTQgMy4zMzEtLjAwNy4wMTJjLS4yODQuNDktLjQyNi43MzUtLjQxNi45MzYuMDE0LjIyLjEyNy40MjMuMzEzLjU0My4xNjguMTEuNDU2LjExIDEuMDMuMTFaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4K";export{D as default}; -//# sourceMappingURL=avalanche-TFPKP544-BAW5xZLs.js.map diff --git a/apps/web/public/assets/base-3MIUIYGA-BacvpD6v.js b/apps/web/public/assets/base-3MIUIYGA-BacvpD6v.js deleted file mode 100644 index 02cedfd1..00000000 --- a/apps/web/public/assets/base-3MIUIYGA-BacvpD6v.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new d.Error().stack;e&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[e]="f38657fd-fbc6-46be-b0c5-2907ae89d17f",d._sentryDebugIdIdentifier="sentry-dbid-f38657fd-fbc6-46be-b0c5-2907ae89d17f")}catch{}})();var g="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBmaWxsPSIjMDA1MkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIGQ9Ik0xNCAyOGExNCAxNCAwIDEgMCAwLTI4IDE0IDE0IDAgMCAwIDAgMjhaIi8+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTEzLjk2NyAyMy44NmM1LjQ0NSAwIDkuODYtNC40MTUgOS44Ni05Ljg2IDAtNS40NDUtNC40MTUtOS44Ni05Ljg2LTkuODYtNS4xNjYgMC05LjQwMyAzLjk3NC05LjgyNSA5LjAzaDE0LjYzdjEuNjQySDQuMTQyYy40MTMgNS4wNjUgNC42NTQgOS4wNDcgOS44MjYgOS4wNDdaIi8+PC9nPjwvc3ZnPg==";export{g as default}; -//# sourceMappingURL=base-3MIUIYGA-BacvpD6v.js.map diff --git a/apps/web/public/assets/braveWallet-BTBH4MDN-Dk8CDq00.js b/apps/web/public/assets/braveWallet-BTBH4MDN-Dk8CDq00.js deleted file mode 100644 index 1185848b..00000000 --- a/apps/web/public/assets/braveWallet-BTBH4MDN-Dk8CDq00.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},T=new M.Error().stack;T&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[T]="ca493de5-d8cf-4312-83dd-1e81fc5adacd",M._sentryDebugIdIdentifier="sentry-dbid-ca493de5-d8cf-4312-83dd-1e81fc5adacd")}catch{}})();var N="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjc3MCIgaGVpZ2h0PSIyNzcwIiB2aWV3Qm94PSItMTAwIC0xMDAgMjk3MCAyOTcwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOndoaXRlIj48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHkxPSI1MSUiIHkyPSI1MSUiPjxzdG9wIG9mZnNldD0iLjQiIHN0b3AtY29sb3I9IiNmNTAiLz48c3RvcCBvZmZzZXQ9Ii42IiBzdG9wLWNvbG9yPSIjZmYyMDAwIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImIiIHgxPSIyJSIgeTE9IjUxJSIgeTI9IjUxJSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmY0NTJhIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmYyMDAwIi8+PC9saW5lYXJHcmFkaWVudD48cGF0aCBmaWxsPSJ1cmwoI2EpIiBkPSJtMjM5NSA3MjMgNjAtMTQ3LTE3MC0xNzZjLTkyLTkyLTI4OC0zOC0yODgtMzhsLTIyMi0yNTJIOTkyTDc2OSAzNjNzLTE5Ni01My0yODggMzdMMzExIDU3NWw2MCAxNDctNzUgMjE4IDI1MCA5NTNjNTIgMjA0IDg3IDI4MyAyMzQgMzg3bDQ1NyAzMTBjNDQgMjcgOTggNzQgMTQ3IDc0czEwMy00NyAxNDctNzRsNDU3LTMxMGMxNDctMTA0IDE4Mi0xODMgMjM0LTM4N2wyNTAtOTUzeiIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0xOTM1IDUyNHMyODcgMzQ3IDI4NyA0MjBjMCA3NS0zNiA5NC03MiAxMzNsLTIxNSAyMzBjLTIwIDIwLTYzIDU0LTM4IDExMyAyNSA2MCA2MCAxMzQgMjAgMjEwLTQwIDc3LTExMCAxMjgtMTU1IDEyMGE4MjAgODIwIDAgMCAxLTE5MC05MGMtMzgtMjUtMTYwLTEyNi0xNjAtMTY1czEyNi0xMTAgMTUwLTEyNGMyMy0xNiAxMzAtNzggMTMyLTEwMnMyLTMwLTMwLTkwLTg4LTE0MC04MC0xOTJjMTAtNTIgMTAwLTgwIDE2Ny0xMDVsMjA3LTc4YzE2LTggMTItMTUtMzYtMjAtNDgtNC0xODMtMjItMjQ0LTVzLTE2MyA0My0xNzMgNTdjLTggMTQtMTYgMTQtNyA2Mmw1OCAzMTVjNCA0MCAxMiA2Ny0zMCA3Ny00NCAxMC0xMTcgMjctMTQyIDI3cy05OS0xNy0xNDItMjctMzUtMzctMzAtNzdjNC00MCA0OC0yNjggNTctMzE1IDEwLTQ4IDEtNDgtNy02Mi0xMC0xNC0xMTMtNDAtMTc0LTU3LTYwLTE3LTE5NiAxLTI0NCA2LTQ4IDQtNTIgMTAtMzYgMjBsMjA3IDc3YzY2IDI1IDE1OCA1MyAxNjcgMTA1IDEwIDUzLTQ3IDEzMi04MCAxOTJzLTMyIDY2LTMwIDkwIDExMCA4NiAxMzIgMTAyYzI0IDE1IDE1MCA4NSAxNTAgMTI0cy0xMTkgMTQwLTE1OSAxNjVhODIwIDgyMCAwIDAgMS0xOTAgOTBjLTQ1IDgtMTE1LTQzLTE1Ni0xMjAtNDAtNzYtNC0xNTAgMjAtMjEwIDI1LTYwLTE3LTkyLTM4LTExM2wtMjE1LTIzMGMtMzUtMzctNzEtNTctNzEtMTMxczI4Ny00MjAgMjg3LTQyMGwyNzMgNDRjMzIgMCAxMDMtMjcgMTY4LTUwIDY1LTIwIDExMC0yMiAxMTAtMjJzNDQgMCAxMTAgMjIgMTM2IDUwIDE2OCA1MGMzMyAwIDI3NS00NyAyNzUtNDd6bS0yMTUgMTMyOGMxOCAxMCA3IDMyLTEwIDQ0bC0yNTQgMTk4Yy0yMCAyMC01MiA1MC03MyA1MHMtNTItMzAtNzMtNTBhMTMyMDAgMTMyMDAgMCAwIDAtMjU1LTE5OGMtMTYtMTItMjctMzMtMTAtNDRsMTUwLTgwYTg3MCA4NzAgMCAwIDEgMTg4LTczYzE1IDAgMTEwIDM0IDE4NyA3M2wxNTAgODB6Ii8+PHBhdGggZmlsbD0idXJsKCNiKSIgZD0ibTE5OTkgMzYzLTIyNC0yNTNIOTkyTDc2OSAzNjNzLTE5Ni01My0yODggMzdjMCAwIDI2MC0yMyAzNTAgMTIzbDI3NiA0N2MzMiAwIDEwMy0yNyAxNjgtNTAgNjUtMjAgMTEwLTIyIDExMC0yMnM0NCAwIDExMCAyMiAxMzYgNTAgMTY4IDUwYzMzIDAgMjc1LTQ3IDI3NS00NyA5MC0xNDYgMzUwLTEyMyAzNTAtMTIzLTkyLTkyLTI4OC0zOC0yODgtMzgiLz48L3N2Zz4=";export{N as default}; -//# sourceMappingURL=braveWallet-BTBH4MDN-Dk8CDq00.js.map diff --git a/apps/web/public/assets/bsc-S2GSW6VX-Bz0b4JEm.js b/apps/web/public/assets/bsc-S2GSW6VX-Bz0b4JEm.js deleted file mode 100644 index 88c9abc5..00000000 --- a/apps/web/public/assets/bsc-S2GSW6VX-Bz0b4JEm.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},g=new M.Error().stack;g&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[g]="9fe15514-d051-4393-90be-cbd0e1f084e5",M._sentryDebugIdIdentifier="sentry-dbid-9fe15514-d051-4393-90be-cbd0e1f084e5")}catch{}})();var D="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgZmlsbD0ibm9uZSI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSIjRjBCOTBCIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNCAwYzcuNzMzIDAgMTQgNi4yNjcgMTQgMTRzLTYuMjY3IDE0LTE0IDE0UzAgMjEuNzMzIDAgMTQgNi4yNjcgMCAxNCAwWiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTcuNjk0IDE0IC4wMSAzLjcwMiAzLjE0NiAxLjg1djIuMTY4bC00Ljk4Ni0yLjkyNHYtNS44NzhMNy42OTQgMTRabTAtMy43MDJ2Mi4xNTdsLTEuODMyLTEuMDgzVjkuMjE0bDEuODMyLTEuMDgzIDEuODQxIDEuMDgzLTEuODQgMS4wODRabTQuNDctMS4wODQgMS44MzItMS4wODMgMS44NCAxLjA4My0xLjg0IDEuMDg0LTEuODMyLTEuMDg0WiIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik05LjAxOCAxNi45MzV2LTIuMTY4bDEuODMyIDEuMDg0djIuMTU3bC0xLjgzMi0xLjA3M1ptMy4xNDYgMy4zOTQgMS44MzIgMS4wODQgMS44NC0xLjA4NHYyLjE1N2wtMS44NCAxLjA4NC0xLjgzMi0xLjA4NFYyMC4zM1ptNi4zLTExLjExNSAxLjgzMi0xLjA4MyAxLjg0IDEuMDgzdjIuMTU4bC0xLjg0IDEuMDgzdi0yLjE1N2wtMS44MzItMS4wODRabTEuODMyIDguNDg4LjAxLTMuNzAyIDEuODMxLTEuMDg0djUuODc5bC00Ljk4NiAyLjkyNHYtMi4xNjdsMy4xNDUtMS44NVoiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJtMTguOTgyIDE2LjkzNS0xLjgzMiAxLjA3M3YtMi4xNTdsMS44MzItMS4wODR2Mi4xNjhaIi8+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTE4Ljk4MiAxMS4wNjUuMDEgMi4xNjgtMy4xNTUgMS44NXYzLjcxMmwtMS44MzEgMS4wNzMtMS44MzItMS4wNzN2LTMuNzExbC0zLjE1NS0xLjg1MXYtMi4xNjhsMS44NC0xLjA4MyAzLjEzNSAxLjg2IDMuMTU1LTEuODYgMS44NCAxLjA4M2gtLjAwN1ptLTkuOTY0LTMuNyA0Ljk3Ny0yLjkzNSA0Ljk4NyAyLjkzNS0xLjgzMiAxLjA4My0zLjE1NC0xLjg2LTMuMTQ2IDEuODYtMS44MzItMS4wODNaIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgyOHYyOEgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==";export{D as default}; -//# sourceMappingURL=bsc-S2GSW6VX-Bz0b4JEm.js.map diff --git a/apps/web/public/assets/ccip-BXhNnGEm.js b/apps/web/public/assets/ccip-BXhNnGEm.js deleted file mode 100644 index aec2aa9a..00000000 --- a/apps/web/public/assets/ccip-BXhNnGEm.js +++ /dev/null @@ -1,2 +0,0 @@ -import{B as l,e as y,s as w,i as p,I as b,f as g,h as k,j as O,k as E,H as h,m as L}from"./index-CTwKNzhK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0e066989-40e9-41e3-b62d-6bb4bca5eb1b",e._sentryDebugIdIdentifier="sentry-dbid-0e066989-40e9-41e3-b62d-6bb4bca5eb1b")}catch{}})();class x extends l{constructor({callbackSelector:t,cause:r,data:o,extraData:c,sender:d,urls:a}){var i;super(r.shortMessage||"An error occurred while fetching for an offchain result.",{cause:r,metaMessages:[...r.metaMessages||[],(i=r.metaMessages)!=null&&i.length?"":[],"Offchain Gateway Call:",a&&[" Gateway URL(s):",...a.map(f=>` ${y(f)}`)],` Sender: ${d}`,` Data: ${o}`,` Callback selector: ${t}`,` Extra data: ${c}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class M extends l{constructor({result:t,url:r}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${y(r)}`,`Response: ${w(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class D extends l{constructor({sender:t,to:r}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${r}`,`OffchainLookup sender address: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}function R(e,t){if(!p(e))throw new b({address:e});if(!p(t))throw new b({address:t});return e.toLowerCase()===t.toLowerCase()}const v="0x556f1830",$={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function A(e,{blockNumber:t,blockTag:r,data:o,to:c}){const{args:d}=g({data:o,abi:[$]}),[a,i,f,s,n]=d;try{if(!R(c,a))throw new D({sender:a,to:c});const u=await I({data:f,sender:a,urls:i}),{data:m}=await k(e,{blockNumber:t,blockTag:r,data:O([s,E([{type:"bytes"},{type:"bytes"}],[u,n])]),to:c});return m}catch(u){throw new x({callbackSelector:s,cause:u,data:o,extraData:n,sender:a,urls:i})}}async function I({data:e,sender:t,urls:r}){var c;let o=new Error("An unknown error occurred.");for(let d=0;d` ${y(f)}`)],` Sender: ${d}`,` Data: ${o}`,` Callback selector: ${t}`,` Extra data: ${c}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class M extends l{constructor({result:t,url:r}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${y(r)}`,`Response: ${w(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class D extends l{constructor({sender:t,to:r}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${r}`,`OffchainLookup sender address: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}function R(e,t){if(!p(e))throw new b({address:e});if(!p(t))throw new b({address:t});return e.toLowerCase()===t.toLowerCase()}const v="0x556f1830",$={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function A(e,{blockNumber:t,blockTag:r,data:o,to:c}){const{args:d}=g({data:o,abi:[$]}),[a,i,f,s,n]=d;try{if(!R(c,a))throw new D({sender:a,to:c});const u=await I({data:f,sender:a,urls:i}),{data:m}=await k(e,{blockNumber:t,blockTag:r,data:O([s,E([{type:"bytes"},{type:"bytes"}],[u,n])]),to:c});return m}catch(u){throw new x({callbackSelector:s,cause:u,data:o,extraData:n,sender:a,urls:i})}}async function I({data:e,sender:t,urls:r}){var c;let o=new Error("An unknown error occurred.");for(let d=0;d` ${y(f)}`)],` Sender: ${d}`,` Data: ${o}`,` Callback selector: ${t}`,` Extra data: ${c}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class M extends l{constructor({result:t,url:r}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${y(r)}`,`Response: ${w(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class D extends l{constructor({sender:t,to:r}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${r}`,`OffchainLookup sender address: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}function R(e,t){if(!p(e))throw new b({address:e});if(!p(t))throw new b({address:t});return e.toLowerCase()===t.toLowerCase()}const v="0x556f1830",$={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function A(e,{blockNumber:t,blockTag:r,data:o,to:c}){const{args:d}=g({data:o,abi:[$]}),[a,i,f,s,n]=d;try{if(!R(c,a))throw new D({sender:a,to:c});const u=await I({data:f,sender:a,urls:i}),{data:m}=await k(e,{blockNumber:t,blockTag:r,data:O([s,E([{type:"bytes"},{type:"bytes"}],[u,n])]),to:c});return m}catch(u){throw new x({callbackSelector:s,cause:u,data:o,extraData:n,sender:a,urls:i})}}async function I({data:e,sender:t,urls:r}){var c;let o=new Error("An unknown error occurred.");for(let d=0;d2&&(l.children=arguments.length>3?F.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)l[r]===void 0&&(l[r]=e.defaultProps[r]);return U(e,l,n,o,null)}function U(e,_,t,n,o){var r={type:e,props:_,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++v_,__i:-1,__u:0};return o==null&&v.vnode!=null&&v.vnode(r),r}function F_(){return{current:null}}function I(e){return e.children}function N(e,_){this.props=e,this.context=_}function P(e,_){if(_==null)return e.__?P(e.__,e.__i+1):null;for(var t;__&&H.sort(z));j.__r=0}function $_(e,_,t,n,o,r,l,u,s,c,a){var i,h,f,g,k,b=n&&n.__k||b_,d=_.length;for(t.__d=s,I_(t,_,b),s=t.__d,i=0;i0?U(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,u=A_(o,t,l,a),o.__i=u,r=null,u!==-1&&(a--,(r=t[u])&&(r.__u|=131072)),r==null||r.__v===null?(u==-1&&i--,typeof o.type!="function"&&(o.__u|=65536)):u!==l&&(u==l-1?i=u-l:u==l+1?i++:u>l?a>s-l?i+=u-l:i--:u(s!=null&&!(131072&s.__u)?1:0))for(;l>=0||u<_.length;){if(l>=0){if((s=_[l])&&!(131072&s.__u)&&o==s.key&&r===s.type)return l;l--}if(u<_.length){if((s=_[u])&&!(131072&s.__u)&&o==s.key&&r===s.type)return u;u++}}return-1}function i_(e,_,t){_[0]==="-"?e.setProperty(_,t??""):e[_]=t==null?"":typeof t!="number"||M_.test(_)?t:t+"px"}function O(e,_,t,n,o){var r;_:if(_==="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(_ in n)t&&_ in t||i_(e.style,_,"");if(t)for(_ in t)n&&t[_]===n[_]||i_(e.style,_,t[_])}else if(_[0]==="o"&&_[1]==="n")r=_!==(_=_.replace(/(PointerCapture)$|Capture$/i,"$1")),_=_.toLowerCase()in e||_==="onFocusOut"||_==="onFocusIn"?_.toLowerCase().slice(2):_.slice(2),e.l||(e.l={}),e.l[_+r]=t,t?n?t.u=n.u:(t.u=Z,e.addEventListener(_,r?J:G,r)):e.removeEventListener(_,r?J:G,r);else{if(o=="http://www.w3.org/2000/svg")_=_.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(_!="width"&&_!="height"&&_!="href"&&_!="list"&&_!="form"&&_!="tabIndex"&&_!="download"&&_!="rowSpan"&&_!="colSpan"&&_!="role"&&_!="popover"&&_ in e)try{e[_]=t??"";break _}catch{}typeof t=="function"||(t==null||t===!1&&_[4]!=="-"?e.removeAttribute(_):e.setAttribute(_,_=="popover"&&t==1?"":t))}}function u_(e){return function(_){if(this.l){var t=this.l[_.type+e];if(_.t==null)_.t=Z++;else if(_.t2&&(u.children=arguments.length>3?F.call(arguments,2):t),U(e.type,u,n||e.key,o||e.ref,null)}function R_(e,_){var t={__c:_="__cC"+g_++,__:e,Consumer:function(n,o){return n.children(o)},Provider:function(n){var o,r;return this.getChildContext||(o=[],(r={})[_]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&o.some(function(u){u.__e=!0,Q(u)})},this.sub=function(l){o.push(l);var u=l.componentWillUnmount;l.componentWillUnmount=function(){o&&o.splice(o.indexOf(l),1),u&&u.call(l)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}F=b_.slice,v={__e:function(e,_,t,n){for(var o,r,l;_=_.__;)if((o=_.__c)&&!o.__)try{if((r=o.constructor)&&r.getDerivedStateFromError!=null&&(o.setState(r.getDerivedStateFromError(e)),l=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),l=o.__d),l)return o.__E=o}catch(u){e=u}throw e}},v_=0,m_=function(e){return e!=null&&e.constructor==null},N.prototype.setState=function(e,_){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$({},this.state),typeof e=="function"&&(e=e($({},t),this.props)),e&&$(t,e),e!=null&&this.__v&&(_&&this._sb.push(_),Q(this))},N.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Q(this))},N.prototype.render=I,H=[],y_=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,z=function(e,_){return e.__v.__b-_.__v.__b},j.__r=0,Z=0,G=u_(!1),J=u_(!0),g_=0;const Y_=Object.freeze(Object.defineProperty({__proto__:null,Component:N,Fragment:I,cloneElement:O_,createContext:R_,createElement:K,createRef:F_,h:K,hydrate:S_,get isValidElement(){return m_},get options(){return v},render:P_,toChildArray:x_},Symbol.toStringTag,{value:"Module"}));var C,p,V,l_,E=0,E_=[],m=v,c_=m.__b,f_=m.__r,s_=m.diffed,a_=m.__c,p_=m.unmount,h_=m.__;function S(e,_){m.__h&&m.__h(p,e,E||_),E=0;var t=p.__H||(p.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function D_(e){return E=1,T_(N_,e)}function T_(e,_,t){var n=S(C++,2);if(n.t=e,!n.__c&&(n.__=[t?t(_):N_(void 0,_),function(u){var s=n.__N?n.__N[0]:n.__[0],c=n.t(s,u);s!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=p,!p.u)){var o=function(u,s,c){if(!n.__c.__H)return!0;var a=n.__c.__H.__.filter(function(h){return!!h.__c});if(a.every(function(h){return!h.__N}))return!r||r.call(this,u,s,c);var i=!1;return a.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(i=!0)}}),!(!i&&n.__c.props===u)&&(!r||r.call(this,u,s,c))};p.u=!0;var r=p.shouldComponentUpdate,l=p.componentWillUpdate;p.componentWillUpdate=function(u,s,c){if(this.__e){var a=r;r=void 0,o(u,s,c),r=a}l&&l.call(this,u,s,c)},p.shouldComponentUpdate=o}return n.__N||n.__}function j_(e,_){var t=S(C++,3);!m.__s&&n_(t.__H,_)&&(t.__=e,t.i=_,p.__H.__h.push(t))}function U_(e,_){var t=S(C++,4);!m.__s&&n_(t.__H,_)&&(t.__=e,t.i=_,p.__h.push(t))}function B_(e){return E=5,t_(function(){return{current:e}},[])}function q_(e,_,t){E=6,U_(function(){return typeof e=="function"?(e(_()),function(){return e(null)}):e?(e.current=_(),function(){return e.current=null}):void 0},t==null?t:t.concat(e))}function t_(e,_){var t=S(C++,7);return n_(t.__H,_)&&(t.__=e(),t.__H=_,t.__h=e),t.__}function V_(e,_){return E=8,t_(function(){return e},_)}function z_(e){var _=p.context[e.__c],t=S(C++,9);return t.c=e,_?(t.__==null&&(t.__=!0,_.sub(p)),_.props.value):e.__}function G_(e,_){m.useDebugValue&&m.useDebugValue(_?_(e):e)}function J_(e){var _=S(C++,10),t=D_();return _.__=e,p.componentDidCatch||(p.componentDidCatch=function(n,o){_.__&&_.__(n,o),t[1](n)}),[t[0],function(){t[1](void 0)}]}function K_(){var e=S(C++,11);if(!e.__){for(var _=p.__v;_!==null&&!_.__m&&_.__!==null;)_=_.__;var t=_.__m||(_.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__}function Q_(){for(var e;e=E_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(R),e.__H.__h.forEach(Y),e.__H.__h=[]}catch(_){e.__H.__h=[],m.__e(_,e.__v)}}m.__b=function(e){p=null,c_&&c_(e)},m.__=function(e,_){e&&_.__k&&_.__k.__m&&(e.__m=_.__k.__m),h_&&h_(e,_)},m.__r=function(e){f_&&f_(e),C=0;var _=(p=e.__c).__H;_&&(V===p?(_.__h=[],p.__h=[],_.__.forEach(function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0})):(_.__h.forEach(R),_.__h.forEach(Y),_.__h=[],C=0)),V=p},m.diffed=function(e){s_&&s_(e);var _=e.__c;_&&_.__H&&(_.__H.__h.length&&(E_.push(_)!==1&&l_===m.requestAnimationFrame||((l_=m.requestAnimationFrame)||X_)(Q_)),_.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.i=void 0})),V=p=null},m.__c=function(e,_){_.some(function(t){try{t.__h.forEach(R),t.__h=t.__h.filter(function(n){return!n.__||Y(n)})}catch(n){_.some(function(o){o.__h&&(o.__h=[])}),_=[],m.__e(n,t.__v)}}),a_&&a_(e,_)},m.unmount=function(e){p_&&p_(e);var _,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{R(n)}catch(o){_=o}}),t.__H=void 0,_&&m.__e(_,t.__v))};var d_=typeof requestAnimationFrame=="function";function X_(e){var _,t=function(){clearTimeout(n),d_&&cancelAnimationFrame(_),setTimeout(e)},n=setTimeout(t,100);d_&&(_=requestAnimationFrame(t))}function R(e){var _=p,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),p=_}function Y(e){var _=p;e.__c=e.__(),p=_}function n_(e,_){return!e||e.length!==_.length||_.some(function(t,n){return t!==e[n]})}function N_(e,_){return typeof _=="function"?_(e):_}const Z_=Object.freeze(Object.defineProperty({__proto__:null,useCallback:V_,useContext:z_,useDebugValue:G_,useEffect:j_,useErrorBoundary:J_,useId:K_,useImperativeHandle:q_,useLayoutEffect:U_,useMemo:t_,useReducer:T_,useRef:B_,useState:D_},Symbol.toStringTag,{value:"Module"}));export{B_ as A,P_ as B,S_ as D,O_ as E,q_ as F,R_ as G,x_ as H,G_ as P,t_ as T,K as _,U_ as a,N as b,J_ as c,Y_ as d,Z_ as e,K_ as g,D_ as h,I as k,v as l,F_ as m,T_ as p,V_ as q,z_ as x,j_ as y}; -//# sourceMappingURL=hooks.module-D456YPrV.js.map diff --git a/apps/web/public/assets/id_ID-3SKVJ2RK-DLkFahck.js b/apps/web/public/assets/id_ID-3SKVJ2RK-DLkFahck.js deleted file mode 100644 index 02380ed0..00000000 --- a/apps/web/public/assets/id_ID-3SKVJ2RK-DLkFahck.js +++ /dev/null @@ -1,959 +0,0 @@ -(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="8f791a74-4e46-4a9d-b3e8-f02adf0cf269",n._sentryDebugIdIdentifier="sentry-dbid-8f791a74-4e46-4a9d-b3e8-f02adf0cf269")}catch{}})();var t=`{ - "connect_wallet": { - "label": "Hubungkan Dompet", - "wrong_network": { - "label": "Jaringan yang salah" - } - }, - "intro": { - "title": "Apa itu Dompet?", - "description": "Sebuah dompet digunakan untuk mengirim, menerima, menyimpan, dan menampilkan aset digital. Ini juga cara baru untuk masuk, tanpa perlu membuat akun dan kata sandi baru di setiap situs web.", - "digital_asset": { - "title": "Sebuah Rumah untuk Aset Digital Anda", - "description": "Dompet digunakan untuk mengirim, menerima, menyimpan, dan menampilkan aset digital seperti Ethereum dan NFTs." - }, - "login": { - "title": "Cara Baru untuk Masuk", - "description": "Alih-alih membuat akun dan kata sandi baru di setiap situs web, cukup hubungkan dompet Anda." - }, - "get": { - "label": "Dapatkan Dompet" - }, - "learn_more": { - "label": "Pelajari lebih lanjut" - } - }, - "sign_in": { - "label": "Verifikasi akun Anda", - "description": "Untuk menyelesaikan koneksi, Anda harus menandatangani sebuah pesan di dompet Anda untuk memastikan bahwa Anda adalah pemilik dari akun ini.", - "message": { - "send": "Kirim pesan", - "preparing": "Mempersiapkan pesan...", - "cancel": "Batal", - "preparing_error": "Kesalahan dalam mempersiapkan pesan, silakan coba lagi!" - }, - "signature": { - "waiting": "Menunggu tanda tangan...", - "verifying": "Memverifikasi tanda tangan...", - "signing_error": "Kesalahan dalam menandatangani pesan, silakan coba lagi!", - "verifying_error": "Kesalahan dalam memverifikasi tanda tangan, silakan coba lagi!", - "oops_error": "Ups, ada yang salah!" - } - }, - "connect": { - "label": "Hubungkan", - "title": "Hubungkan Dompet", - "new_to_ethereum": { - "description": "Baru dalam dompet Ethereum?", - "learn_more": { - "label": "Pelajari lebih lanjut" - } - }, - "learn_more": { - "label": "Pelajari lebih lanjut" - }, - "recent": "Terkini", - "status": { - "opening": "Membuka %{wallet}...", - "connecting": "Menghubungkan", - "connect_mobile": "Lanjutkan di %{wallet}", - "not_installed": "%{wallet} tidak terpasang", - "not_available": "%{wallet} tidak tersedia", - "confirm": "Konfirmasikan koneksi di ekstensi", - "confirm_mobile": "Terima permintaan koneksi di dompet" - }, - "secondary_action": { - "get": { - "description": "Tidak memiliki %{wallet}?", - "label": "DAPATKAN" - }, - "install": { - "label": "PASANG" - }, - "retry": { - "label": "COBA LAGI" - } - }, - "walletconnect": { - "description": { - "full": "Perlu modal resmi WalletConnect?", - "compact": "Perlu modal WalletConnect?" - }, - "open": { - "label": "BUKA" - } - } - }, - "connect_scan": { - "title": "Pindai dengan %{wallet}", - "fallback_title": "Pindai dengan ponsel Anda" - }, - "connector_group": { - "recommended": "Direkomendasikan", - "other": "Lainnya", - "popular": "Populer", - "more": "Lebih Banyak", - "others": "Lainnya" - }, - "get": { - "title": "Dapatkan Dompet", - "action": { - "label": "DAPATKAN" - }, - "mobile": { - "description": "Dompet Mobile" - }, - "extension": { - "description": "Ekstensi Browser" - }, - "mobile_and_extension": { - "description": "Dompet Mobile dan Ekstensi" - }, - "mobile_and_desktop": { - "description": "Dompet Seluler dan Desktop" - }, - "looking_for": { - "title": "Bukan yang Anda cari?", - "mobile": { - "description": "Pilih dompet di layar utama untuk memulai dengan penyedia dompet yang berbeda." - }, - "desktop": { - "compact_description": "Pilih dompet di layar utama untuk memulai dengan penyedia dompet yang berbeda.", - "wide_description": "Pilih dompet di sebelah kiri untuk memulai dengan penyedia dompet yang berbeda." - } - } - }, - "get_options": { - "title": "Mulai dengan %{wallet}", - "short_title": "Dapatkan %{wallet}", - "mobile": { - "title": "%{wallet} untuk Mobile", - "description": "Gunakan dompet mobile untuk menjelajahi dunia Ethereum.", - "download": { - "label": "Dapatkan aplikasinya" - } - }, - "extension": { - "title": "%{wallet} untuk %{browser}", - "description": "Akses dompet Anda langsung dari browser web favorit Anda.", - "download": { - "label": "Tambahkan ke %{browser}" - } - }, - "desktop": { - "title": "%{wallet} untuk %{platform}", - "description": "Akses dompet Anda secara native dari desktop yang kuat Anda.", - "download": { - "label": "Tambahkan ke %{platform}" - } - } - }, - "get_mobile": { - "title": "Instal %{wallet}", - "description": "Pindai dengan ponsel Anda untuk mengunduh di iOS atau Android", - "continue": { - "label": "Lanjutkan" - } - }, - "get_instructions": { - "mobile": { - "connect": { - "label": "Hubungkan" - }, - "learn_more": { - "label": "Pelajari lebih lanjut" - } - }, - "extension": { - "refresh": { - "label": "Segarkan" - }, - "learn_more": { - "label": "Pelajari lebih lanjut" - } - }, - "desktop": { - "connect": { - "label": "Hubungkan" - }, - "learn_more": { - "label": "Pelajari lebih lanjut" - } - } - }, - "chains": { - "title": "Alihkan Jaringan", - "wrong_network": "Jaringan yang salah terdeteksi, alihkan atau diskonek untuk melanjutkan.", - "confirm": "Konfirmasi di Dompet", - "switching_not_supported": "Dompet Anda tidak mendukung pengalihan jaringan dari %{appName}. Coba alihkan jaringan dari dalam dompet Anda.", - "switching_not_supported_fallback": "Wallet Anda tidak mendukung penggantian jaringan dari aplikasi ini. Cobalah ganti jaringan dari dalam wallet Anda.", - "disconnect": "Putuskan koneksi", - "connected": "Terkoneksi" - }, - "profile": { - "disconnect": { - "label": "Putuskan koneksi" - }, - "copy_address": { - "label": "Salin Alamat", - "copied": "Tersalin!" - }, - "explorer": { - "label": "Lihat lebih banyak di penjelajah" - }, - "transactions": { - "description": "%{appName} transaksi akan muncul di sini...", - "description_fallback": "Transaksi Anda akan muncul di sini...", - "recent": { - "title": "Transaksi Terbaru" - }, - "clear": { - "label": "Hapus Semua" - } - } - }, - "wallet_connectors": { - "argent": { - "qr_code": { - "step1": { - "description": "Letakkan Argent di layar utama Anda untuk akses lebih cepat ke dompet Anda.", - "title": "Buka aplikasi Argent" - }, - "step2": { - "description": "Buat dompet dan nama pengguna, atau impor dompet yang ada.", - "title": "Buat atau Impor Dompet" - }, - "step3": { - "description": "Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda.", - "title": "Tekan tombol Scan QR" - } - } - }, - "bifrost": { - "qr_code": { - "step1": { - "description": "Kami merekomendasikan untuk menempatkan Bifrost Wallet di layar utama anda untuk akses yang lebih cepat.", - "title": "Buka aplikasi Bifrost Wallet" - }, - "step2": { - "description": "Buat atau impor sebuah dompet menggunakan frasa pemulihan Anda.", - "title": "Buat atau Impor sebuah Wallet" - }, - "step3": { - "description": "Setelah Anda memindai, sebuah pesan akan muncul untuk menghubungkan dompet Anda.", - "title": "Tekan tombol scan" - } - } - }, - "bitget": { - "qr_code": { - "step1": { - "description": "Kami menyarankan untuk meletakkan Bitget Wallet di layar depan Anda untuk akses yang lebih cepat.", - "title": "Buka aplikasi Bitget Wallet" - }, - "step2": { - "description": "Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.", - "title": "Buat atau Impor Wallet" - }, - "step3": { - "description": "Setelah Anda pindai, akan muncul petunjuk untuk menghubungkan wallet Anda.", - "title": "Tekan tombol pindai" - } - }, - "extension": { - "step1": { - "description": "Kami menyarankan untuk memasang Bitget Wallet ke taskbar Anda untuk akses yang lebih cepat ke wallet Anda.", - "title": "Instal ekstensi Dompet Bitget" - }, - "step2": { - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun.", - "title": "Buat atau Impor Dompet" - }, - "step3": { - "description": "Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.", - "title": "Segarkan browser Anda" - } - } - }, - "bitski": { - "extension": { - "step1": { - "description": "Kami merekomendasikan untuk memasang Bitski ke taskbar Anda untuk akses dompet Anda yang lebih cepat.", - "title": "Pasang ekstensi Bitski" - }, - "step2": { - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.", - "title": "Buat atau Impor Dompet" - }, - "step3": { - "description": "Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.", - "title": "Segarkan browser Anda" - } - } - }, - "coin98": { - "qr_code": { - "step1": { - "description": "Kami merekomendasikan untuk menaruh Coin98 Wallet di layar utama Anda untuk akses wallet Anda lebih cepat.", - "title": "Buka aplikasi Coin98 Wallet" - }, - "step2": { - "description": "Anda dapat dengan mudah mencadangkan wallet Anda menggunakan fitur cadangan kami di telepon Anda.", - "title": "Buat atau Impor Wallet" - }, - "step3": { - "description": "Setelah Anda melakukan pemindaian, akan muncul prompt koneksi untuk Anda menghubungkan wallet Anda.", - "title": "Ketuk tombol WalletConnect" - } - }, - "extension": { - "step1": { - "description": "Klik di pojok kanan atas browser Anda dan sematkan Coin98 Wallet untuk akses mudah.", - "title": "Pasang ekstensi Coin98 Wallet" - }, - "step2": { - "description": "Buat dompet baru atau impor yang sudah ada.", - "title": "Buat atau Impor sebuah dompet" - }, - "step3": { - "description": "Setelah Anda menyiapkan Coin98 Wallet, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.", - "title": "Segarkan browser Anda" - } - } - }, - "coinbase": { - "qr_code": { - "step1": { - "description": "Kami merekomendasikan memasang Coinbase Wallet di layar utama Anda untuk akses yang lebih cepat.", - "title": "Buka aplikasi Coinbase Wallet" - }, - "step2": { - "description": "Anda dapat dengan mudah mencadangkan dompet Anda menggunakan fitur cadangan awan.", - "title": "Buat atau Impor sebuah Dompet" - }, - "step3": { - "description": "Setelah Anda memindai, akan muncul sebuah petunjuk koneksi untuk Anda menyambungkan dompet Anda.", - "title": "Ketuk tombol pindai" - } - }, - "extension": { - "step1": { - "description": "Kami merekomendasikan untuk menempel Coinbase Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda.", - "title": "Instal ekstensi Coinbase Wallet" - }, - "step2": { - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun.", - "title": "Buat atau Import Wallet" - }, - "step3": { - "description": "Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.", - "title": "Segarkan browser Anda" - } - } - }, - "core": { - "qr_code": { - "step1": { - "description": "Kami merekomendasikan untuk meletakkan Core di layar utama Anda untuk akses lebih cepat ke wallet Anda.", - "title": "Buka aplikasi Core" - }, - "step2": { - "description": "Anda dapat dengan mudah mencadangkan wallet Anda dengan menggunakan fitur cadangan kami di telepon Anda.", - "title": "Buat atau Import Wallet" - }, - "step3": { - "description": "Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menyambungkan wallet Anda.", - "title": "Ketuk tombol WalletConnect" - } - }, - "extension": { - "step1": { - "description": "Kami merekomendasikan untuk menempelkan Core pada taskbar Anda untuk akses ke dompet Anda lebih cepat.", - "title": "Pasang ekstensi Core" - }, - "step2": { - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.", - "title": "Buat atau Impor Dompet" - }, - "step3": { - "description": "Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.", - "title": "Segarkan browser Anda" - } - } - }, - "fox": { - "qr_code": { - "step1": { - "description": "Kami merekomendasikan untuk menaruh FoxWallet pada layar utama Anda untuk akses lebih cepat.", - "title": "Buka aplikasi FoxWallet" - }, - "step2": { - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.", - "title": "Buat atau Impor Wallet" - }, - "step3": { - "description": "Setelah Anda memindai, prompt koneksi akan muncul untuk Anda hubungkan dompet Anda.", - "title": "Ketuk tombol pindai" - } - } - }, - "frontier": { - "qr_code": { - "step1": { - "description": "Kami merekomendasikan untuk meletakkan Frontier Wallet di layar awal Anda untuk akses yang lebih cepat.", - "title": "Buka aplikasi Frontier Wallet" - }, - "step2": { - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.", - "title": "Buat atau Impor Wallet" - }, - "step3": { - "description": "Setelah Anda memindai, prompt koneksi akan muncul untuk Anda menghubungkan dompet Anda.", - "title": "Ketuk tombol pindai" - } - }, - "extension": { - "step1": { - "description": "Kami menyarankan menempelkan Frontier Wallet ke taskbar Anda untuk akses yang lebih cepat ke dompet Anda.", - "title": "Instal ekstensi Frontier Wallet" - }, - "step2": { - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.", - "title": "Buat atau Impor Dompet" - }, - "step3": { - "description": "Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.", - "title": "Segarkan browser Anda" - } - } - }, - "im_token": { - "qr_code": { - "step1": { - "title": "Buka aplikasi imToken", - "description": "Letakkan aplikasi imToken di layar utama Anda untuk akses yang lebih cepat ke dompet Anda." - }, - "step2": { - "title": "Buat atau Impor Dompet", - "description": "Buat dompet baru atau impor yang sudah ada." - }, - "step3": { - "title": "Ketuk Ikon Scanner di pojok kanan atas", - "description": "Pilih Koneksi Baru, lalu pindai kode QR dan konfirmasi petunjuk untuk terhubung." - } - } - }, - "metamask": { - "qr_code": { - "step1": { - "title": "Buka aplikasi MetaMask", - "description": "Kami merekomendasikan untuk meletakkan MetaMask di layar beranda Anda untuk akses yang lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Dompet", - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun." - }, - "step3": { - "title": "Ketuk tombol pindai", - "description": "Setelah Anda memindai, petunjuk koneksi akan muncul untuk Anda menyambungkan dompet Anda." - } - }, - "extension": { - "step1": { - "title": "Pasang ekstensi MetaMask", - "description": "Kami menyarankan untuk memasang MetaMask pada taskbar Anda untuk akses wallet lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Wallet", - "description": "Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "okx": { - "qr_code": { - "step1": { - "title": "Buka aplikasi OKX Wallet", - "description": "Kami menyarankan untuk menaruh OKX Wallet di layar utama Anda untuk akses lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Wallet", - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun." - }, - "step3": { - "title": "Ketuk tombol scan", - "description": "Setelah Anda memindai, prompt koneksi akan muncul untuk Anda hubungkan dompet Anda." - } - }, - "extension": { - "step1": { - "title": "Instal ekstensi OKX Wallet", - "description": "Kami menyarankan untuk menempelkan OKX Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda." - }, - "step2": { - "title": "Buat atau Impor Dompet", - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda mengatur wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "omni": { - "qr_code": { - "step1": { - "title": "Buka aplikasi Omni", - "description": "Tambahkan Omni ke layar utama Anda untuk akses yang lebih cepat ke wallet Anda." - }, - "step2": { - "title": "Buat atau Impor Wallet", - "description": "Buat wallet baru atau impor yang sudah ada." - }, - "step3": { - "title": "Ketuk ikon QR dan scan", - "description": "Ketuk ikon QR di layar utama Anda, pindai kode dan konfirmasi petunjuk untuk terhubung." - } - } - }, - "token_pocket": { - "qr_code": { - "step1": { - "title": "Buka aplikasi TokenPocket", - "description": "Kami sarankan meletakkan TokenPocket di layar utama Anda untuk akses yang lebih cepat." - }, - "step2": { - "title": "Buat atau impor Dompet", - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun." - }, - "step3": { - "title": "Ketuk tombol pindai", - "description": "Setelah Anda memindai, Indikasi sambungan akan muncul untuk Anda menghubungkan dompet Anda." - } - }, - "extension": { - "step1": { - "title": "Instal ekstensi TokenPocket", - "description": "Kami merekomendasikan penambatan TokenPocket ke taskbar Anda untuk akses dompet Anda lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Wallet", - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagi frasa rahasia Anda dengan siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda mengatur dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "trust": { - "qr_code": { - "step1": { - "title": "Buka aplikasi Trust Wallet", - "description": "Pasang Trust Wallet di layar utama Anda untuk akses dompet Anda lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Wallet", - "description": "Buat dompet baru atau impor yang sudah ada." - }, - "step3": { - "title": "Ketuk WalletConnect di Pengaturan", - "description": "Pilih Koneksi Baru, kemudian pindai kode QR dan konfirmasi perintah untuk terhubung." - } - }, - "extension": { - "step1": { - "title": "Instal ekstensi Trust Wallet", - "description": "Klik di pojok kanan atas browser Anda dan sematkan Trust Wallet untuk akses mudah." - }, - "step2": { - "title": "Buat atau Impor dompet", - "description": "Buat dompet baru atau impor yang sudah ada." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda mengatur Trust Wallet, klik di bawah untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "uniswap": { - "qr_code": { - "step1": { - "title": "Buka aplikasi Uniswap", - "description": "Tambahkan Uniswap Wallet ke layar utama Anda untuk akses ke wallet Anda lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Wallet", - "description": "Buat wallet baru atau impor yang sudah ada." - }, - "step3": { - "title": "Ketuk ikon QR dan pindai", - "description": "Ketuk ikon QR di layar utama Anda, pindai kode dan konfirmasi prompt untuk terhubung." - } - } - }, - "zerion": { - "qr_code": { - "step1": { - "title": "Buka aplikasi Zerion", - "description": "Kami merekomendasikan untuk meletakkan Zerion di layar utama Anda untuk akses lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Dompet", - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun." - }, - "step3": { - "title": "Ketuk tombol scan", - "description": "Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda." - } - }, - "extension": { - "step1": { - "title": "Instal ekstensi Zerion", - "description": "Kami menyarankan untuk menempelkan Zerion ke taskbar Anda untuk akses lebih cepat ke dompet Anda." - }, - "step2": { - "title": "Buat atau Impor Wallet", - "description": "Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda mengatur wallet Anda, klik di bawah untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "rainbow": { - "qr_code": { - "step1": { - "title": "Buka aplikasi Rainbow", - "description": "Kami menyarankan menempatkan Rainbow di layar home Anda untuk akses yang lebih cepat ke wallet Anda." - }, - "step2": { - "title": "Buat atau Impor Wallet", - "description": "Anda dapat dengan mudah mencadangkan wallet Anda menggunakan fitur cadangan kami di telepon Anda." - }, - "step3": { - "title": "Tekan tombol scan", - "description": "Setelah Anda memindai, akan muncul pesan untuk menghubungkan dompet Anda." - } - } - }, - "enkrypt": { - "extension": { - "step1": { - "description": "Kami menyarankan untuk memasang Enkrypt Wallet ke taskbar Anda untuk akses dompet yang lebih cepat.", - "title": "Instal ekstensi Enkrypt Wallet" - }, - "step2": { - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun.", - "title": "Buat atau Impor Dompet" - }, - "step3": { - "description": "Setelah Anda menyiapkan dompet, klik di bawah ini untuk memuat ulang peramban dan meload ekstensi.", - "title": "Segarkan browser Anda" - } - } - }, - "frame": { - "extension": { - "step1": { - "description": "Kami menyarankan untuk memasang Frame ke taskbar Anda untuk akses dompet yang lebih cepat.", - "title": "Instal Frame & ekstensi pendamping" - }, - "step2": { - "description": "Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.", - "title": "Buat atau Impor Wallet" - }, - "step3": { - "description": "Setelah Anda menyetel wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.", - "title": "Segarkan browser Anda" - } - } - }, - "one_key": { - "extension": { - "step1": { - "title": "Instal ekstensi OneKey Wallet", - "description": "Kami menyarankan untuk menempelkan OneKey Wallet ke taskbar Anda untuk akses wallet yang lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Wallet", - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "phantom": { - "extension": { - "step1": { - "title": "Instal ekstensi Phantom", - "description": "Kami menyarankan untuk mem-pin Phantom ke taskbar Anda untuk akses dompet yang lebih mudah." - }, - "step2": { - "title": "Buat atau Impor Dompet", - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "rabby": { - "extension": { - "step1": { - "title": "Instal ekstensi Rabby", - "description": "Kami merekomendasikan menempelkan Rabby ke taskbar Anda untuk akses lebih cepat ke wallet Anda." - }, - "step2": { - "title": "Buat atau Impor Wallet", - "description": "Pastikan untuk mencadangkan wallet Anda dengan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "safeheron": { - "extension": { - "step1": { - "title": "Instal ekstensi Core", - "description": "Kami merekomendasikan menempelkan Safeheron ke taskbar Anda untuk akses lebih cepat ke wallet Anda." - }, - "step2": { - "title": "Buat atau Impor Wallet", - "description": "Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda mengatur dompet Anda, klik di bawah untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "taho": { - "extension": { - "step1": { - "title": "Instal ekstensi Taho", - "description": "Kami merekomendasikan pengepinan Taho ke taskbar Anda untuk akses yang lebih cepat ke dompet Anda." - }, - "step2": { - "title": "Buat atau Impor Dompet", - "description": "Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "talisman": { - "extension": { - "step1": { - "title": "Instal ekstensi Talisman", - "description": "Kami merekomendasikan menempelkan Talisman ke taskbar Anda untuk akses dompet Anda lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Dompet Ethereum", - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase pemulihan Anda dengan siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "xdefi": { - "extension": { - "step1": { - "title": "Instal ekstensi Dompet XDEFI", - "description": "Kami merekomendasikan menempelkan XDEFI Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda." - }, - "step2": { - "title": "Buat atau Impor Dompet", - "description": "Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "zeal": { - "extension": { - "step1": { - "title": "Instal ekstensi Zeal", - "description": "Kami merekomendasikan untuk mem-pin Zeal ke taskbar Anda untuk akses wallet lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Dompet", - "description": "Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "safepal": { - "extension": { - "step1": { - "title": "Pasang ekstensi SafePal Wallet", - "description": "Klik di pojok kanan atas browser Anda dan pin SafePal Wallet untuk akses mudah." - }, - "step2": { - "title": "Buat atau Impor sebuah dompet", - "description": "Buat dompet baru atau impor yang sudah ada." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda menyiapkan SafePal Wallet, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - }, - "qr_code": { - "step1": { - "title": "Buka aplikasi SafePal Wallet", - "description": "Letakkan SafePal Wallet di layar utama Anda untuk akses yang lebih cepat ke wallet Anda." - }, - "step2": { - "title": "Buat atau Impor Dompet", - "description": "Buat dompet baru atau impor yang sudah ada." - }, - "step3": { - "title": "Ketuk WalletConnect di Pengaturan", - "description": "Pilih Koneksi Baru, lalu pindai kode QR dan konfirmasi petunjuk untuk terhubung." - } - } - }, - "desig": { - "extension": { - "step1": { - "title": "Instal ekstensi Desig", - "description": "Kami merekomendasikan menempelkan Desig ke taskbar Anda untuk akses dompet Anda lebih mudah." - }, - "step2": { - "title": "Buat Dompet", - "description": "Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - } - }, - "subwallet": { - "extension": { - "step1": { - "title": "Instal ekstensi SubWallet", - "description": "Kami merekomendasikan menempelkan SubWallet ke taskbar Anda untuk akses dompet Anda lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Dompet", - "description": "Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase pemulihan Anda dengan siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - }, - "qr_code": { - "step1": { - "title": "Buka aplikasi SubWallet", - "description": "Kami merekomendasikan menaruh SubWallet di layar utama Anda untuk akses lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Dompet", - "description": "Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun." - }, - "step3": { - "title": "Tekan tombol scan", - "description": "Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda." - } - } - }, - "clv": { - "extension": { - "step1": { - "title": "Instal ekstensi CLV Wallet", - "description": "Kami merekomendasikan menempelkan CLV Wallet ke taskbar Anda untuk akses dompet Anda lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Dompet", - "description": "Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun." - }, - "step3": { - "title": "Segarkan browser Anda", - "description": "Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi." - } - }, - "qr_code": { - "step1": { - "title": "Buka aplikasi CLV Wallet", - "description": "Kami sarankan untuk menempatkan CLV Wallet di layar utama Anda untuk akses yang lebih cepat." - }, - "step2": { - "title": "Buat atau Impor Dompet", - "description": "Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun." - }, - "step3": { - "title": "Tekan tombol scan", - "description": "Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda." - } - } - }, - "okto": { - "qr_code": { - "step1": { - "title": "Buka aplikasi Okto", - "description": "Tambahkan Okto ke layar utama Anda untuk akses cepat" - }, - "step2": { - "title": "Buat Wallet MPC", - "description": "Buat akun dan generate wallet" - }, - "step3": { - "title": "Ketuk WalletConnect di Pengaturan", - "description": "Ketuk ikon Scan QR di pojok kanan atas dan konfirmasi prompt untuk terhubung." - } - } - }, - "ledger": { - "desktop": { - "step1": { - "title": "Buka aplikasi Ledger Live", - "description": "Kami merekomendasikan menempatkan Ledger Live di layar utama Anda untuk akses lebih cepat." - }, - "step2": { - "title": "Atur Ledger Anda", - "description": "Atur Ledger baru atau hubungkan ke Ledger yang sudah ada." - }, - "step3": { - "title": "Hubungkan", - "description": "Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda." - } - }, - "qr_code": { - "step1": { - "title": "Buka aplikasi Ledger Live", - "description": "Kami merekomendasikan menempatkan Ledger Live di layar utama Anda untuk akses lebih cepat." - }, - "step2": { - "title": "Atur Ledger Anda", - "description": "Anda dapat melakukan sinkronisasi dengan aplikasi desktop atau menghubungkan Ledger Anda." - }, - "step3": { - "title": "Pindai kode", - "description": "Ketuk WalletConnect lalu Beralih ke Scanner. Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda." - } - } - } - } -} -`;export{t as default}; -//# sourceMappingURL=id_ID-3SKVJ2RK-DLkFahck.js.map diff --git a/apps/web/public/assets/index-AVOVxDWm.js b/apps/web/public/assets/index-AVOVxDWm.js deleted file mode 100644 index 784ee10b..00000000 --- a/apps/web/public/assets/index-AVOVxDWm.js +++ /dev/null @@ -1,13 +0,0 @@ -import{b4 as Ks,o as ee,t as mn,q as ai,b5 as gu,p as mu}from"./index-CTwKNzhK.js";import{d as wu,e as yu}from"./hooks.module-D456YPrV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0c7731bb-cc31-4573-a6f2-64400df96250",e._sentryDebugIdIdentifier="sentry-dbid-0c7731bb-cc31-4573-a6f2-64400df96250")}catch{}})();var gc={},dn={},ci={};Object.defineProperty(ci,"__esModule",{value:!0});ci.walletLogo=void 0;const bu=(e,t)=>{let r;switch(e){case"standard":return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return r=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};ci.walletLogo=bu;var li={};Object.defineProperty(li,"__esModule",{value:!0});li.LINK_API_URL=void 0;li.LINK_API_URL="https://www.walletlink.org";var X={},Qs={exports:{}};Qs.exports;(function(e){(function(t,r){function n(x,o){if(!x)throw new Error(o||"Assertion failed")}function i(x,o){x.super_=o;var f=function(){};f.prototype=o.prototype,x.prototype=new f,x.prototype.constructor=x}function s(x,o,f){if(s.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,x!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(x||0,o||10,f||"be"))}typeof t=="object"?t.exports=s:r.BN=s,s.BN=s,s.wordSize=26;var c;try{typeof window<"u"&&typeof window.Buffer<"u"?c=window.Buffer:c=Ks.Buffer}catch{}s.isBN=function(o){return o instanceof s?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===s.wordSize&&Array.isArray(o.words)},s.max=function(o,f){return o.cmp(f)>0?o:f},s.min=function(o,f){return o.cmp(f)<0?o:f},s.prototype._init=function(o,f,w){if(typeof o=="number")return this._initNumber(o,f,w);if(typeof o=="object")return this._initArray(o,f,w);f==="hex"&&(f=16),n(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var b=0;o[0]==="-"&&(b++,this.negative=1),b=0;b-=3)k=o[b]|o[b-1]<<8|o[b-2]<<16,this.words[S]|=k<>>26-N&67108863,N+=24,N>=26&&(N-=26,S++);else if(w==="le")for(b=0,S=0;b>>26-N&67108863,N+=24,N>=26&&(N-=26,S++);return this._strip()};function a(x,o){var f=x.charCodeAt(o);if(f>=48&&f<=57)return f-48;if(f>=65&&f<=70)return f-55;if(f>=97&&f<=102)return f-87;n(!1,"Invalid character in "+x)}function d(x,o,f){var w=a(x,f);return f-1>=o&&(w|=a(x,f-1)<<4),w}s.prototype._parseHex=function(o,f,w){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var b=0;b=f;b-=2)N=d(o,f,b)<=18?(S-=18,k+=1,this.words[k]|=N>>>26):S+=8;else{var v=o.length-f;for(b=v%2===0?f+1:f;b=18?(S-=18,k+=1,this.words[k]|=N>>>26):S+=8}this._strip()};function p(x,o,f,w){for(var b=0,S=0,k=Math.min(x.length,f),N=o;N=49?S=v-49+10:v>=17?S=v-17+10:S=v,n(v>=0&&S1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=y}catch{s.prototype.inspect=y}else s.prototype.inspect=y;function y(){return(this.red?""}var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],L=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(o,f){o=o||10,f=f|0||1;var w;if(o===16||o==="hex"){w="";for(var b=0,S=0,k=0;k>>24-b&16777215,b+=2,b>=26&&(b-=26,k--),S!==0||k!==this.length-1?w=_[6-v.length]+v+w:w=v+w}for(S!==0&&(w=S.toString(16)+w);w.length%f!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(o===(o|0)&&o>=2&&o<=36){var u=A[o],R=L[o];w="";var K=this.clone();for(K.negative=0;!K.isZero();){var J=K.modrn(R).toString(o);K=K.idivn(R),K.isZero()?w=J+w:w=_[u-J.length]+J+w}for(this.isZero()&&(w="0"+w);w.length%f!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},s.prototype.toJSON=function(){return this.toString(16,2)},c&&(s.prototype.toBuffer=function(o,f){return this.toArrayLike(c,o,f)}),s.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)};var H=function(o,f){return o.allocUnsafe?o.allocUnsafe(f):new o(f)};s.prototype.toArrayLike=function(o,f,w){this._strip();var b=this.byteLength(),S=w||Math.max(1,b);n(b<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0");var k=H(o,S),N=f==="le"?"LE":"BE";return this["_toArrayLike"+N](k,b),k},s.prototype._toArrayLikeLE=function(o,f){for(var w=0,b=0,S=0,k=0;S>8&255),w>16&255),k===6?(w>24&255),b=0,k=0):(b=N>>>24,k+=2)}if(w=0&&(o[w--]=N>>8&255),w>=0&&(o[w--]=N>>16&255),k===6?(w>=0&&(o[w--]=N>>24&255),b=0,k=0):(b=N>>>24,k+=2)}if(w>=0)for(o[w--]=b;w>=0;)o[w--]=0},Math.clz32?s.prototype._countBits=function(o){return 32-Math.clz32(o)}:s.prototype._countBits=function(o){var f=o,w=0;return f>=4096&&(w+=13,f>>>=13),f>=64&&(w+=7,f>>>=7),f>=8&&(w+=4,f>>>=4),f>=2&&(w+=2,f>>>=2),w+f},s.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,w=0;return f&8191||(w+=13,f>>>=13),f&127||(w+=7,f>>>=7),f&15||(w+=4,f>>>=4),f&3||(w+=2,f>>>=2),f&1||w++,w},s.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function F(x){for(var o=new Array(x.bitLength()),f=0;f>>b&1}return o}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;fo.length?this.clone().ior(o):o.clone().ior(this)},s.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},s.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var w=0;wo.length?this.clone().iand(o):o.clone().iand(this)},s.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},s.prototype.iuxor=function(o){var f,w;this.length>o.length?(f=this,w=o):(f=o,w=this);for(var b=0;bo.length?this.clone().ixor(o):o.clone().ixor(this)},s.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},s.prototype.inotn=function(o){n(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,w=o%26;this._expand(f),w>0&&f--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-w),this._strip()},s.prototype.notn=function(o){return this.clone().inotn(o)},s.prototype.setn=function(o,f){n(typeof o=="number"&&o>=0);var w=o/26|0,b=o%26;return this._expand(w+1),f?this.words[w]=this.words[w]|1<o.length?(w=this,b=o):(w=o,b=this);for(var S=0,k=0;k>>26;for(;S!==0&&k>>26;if(this.length=w.length,S!==0)this.words[this.length]=S,this.length++;else if(w!==this)for(;ko.length?this.clone().iadd(o):o.clone().iadd(this)},s.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var w=this.cmp(o);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,S;w>0?(b=this,S=o):(b=o,S=this);for(var k=0,N=0;N>26,this.words[N]=f&67108863;for(;k!==0&&N>26,this.words[N]=f&67108863;if(k===0&&N>>26,K=v&67108863,J=Math.min(u,o.length-1),T=Math.max(0,u-x.length+1);T<=J;T++){var $=u-T|0;b=x.words[$]|0,S=o.words[T]|0,k=b*S+K,R+=k/67108864|0,K=k&67108863}f.words[u]=K|0,v=R|0}return v!==0?f.words[u]=v|0:f.length--,f._strip()}var O=function(o,f,w){var b=o.words,S=f.words,k=w.words,N=0,v,u,R,K=b[0]|0,J=K&8191,T=K>>>13,$=b[1]|0,W=$&8191,Z=$>>>13,le=b[2]|0,C=le&8191,M=le>>>13,q=b[3]|0,G=q&8191,se=q>>>13,ue=b[4]|0,re=ue&8191,be=ue>>>13,dt=b[5]|0,Se=dt&8191,Ee=dt>>>13,Je=b[6]|0,ve=Je&8191,Re=Je>>>13,Qe=b[7]|0,_e=Qe&8191,m=Qe>>>13,l=b[8]|0,h=l&8191,E=l>>>13,P=b[9]|0,D=P&8191,U=P>>>13,he=S[0]|0,ae=he&8191,ie=he>>>13,Ce=S[1]|0,ne=Ce&8191,Me=Ce>>>13,Sr=S[2]|0,ke=Sr&8191,xe=Sr>>>13,Rr=S[3]|0,Ie=Rr&8191,Ae=Rr>>>13,Cr=S[4]|0,Te=Cr&8191,Ne=Cr>>>13,Mr=S[5]|0,Le=Mr&8191,Be=Mr>>>13,kr=S[6]|0,Pe=kr&8191,Oe=kr>>>13,xr=S[7]|0,$e=xr&8191,Fe=xr>>>13,Ir=S[8]|0,De=Ir&8191,je=Ir>>>13,Ar=S[9]|0,Ue=Ar&8191,He=Ar>>>13;w.negative=o.negative^f.negative,w.length=19,v=Math.imul(J,ae),u=Math.imul(J,ie),u=u+Math.imul(T,ae)|0,R=Math.imul(T,ie);var Gt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,v=Math.imul(W,ae),u=Math.imul(W,ie),u=u+Math.imul(Z,ae)|0,R=Math.imul(Z,ie),v=v+Math.imul(J,ne)|0,u=u+Math.imul(J,Me)|0,u=u+Math.imul(T,ne)|0,R=R+Math.imul(T,Me)|0;var Jt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,v=Math.imul(C,ae),u=Math.imul(C,ie),u=u+Math.imul(M,ae)|0,R=Math.imul(M,ie),v=v+Math.imul(W,ne)|0,u=u+Math.imul(W,Me)|0,u=u+Math.imul(Z,ne)|0,R=R+Math.imul(Z,Me)|0,v=v+Math.imul(J,ke)|0,u=u+Math.imul(J,xe)|0,u=u+Math.imul(T,ke)|0,R=R+Math.imul(T,xe)|0;var Zt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,v=Math.imul(G,ae),u=Math.imul(G,ie),u=u+Math.imul(se,ae)|0,R=Math.imul(se,ie),v=v+Math.imul(C,ne)|0,u=u+Math.imul(C,Me)|0,u=u+Math.imul(M,ne)|0,R=R+Math.imul(M,Me)|0,v=v+Math.imul(W,ke)|0,u=u+Math.imul(W,xe)|0,u=u+Math.imul(Z,ke)|0,R=R+Math.imul(Z,xe)|0,v=v+Math.imul(J,Ie)|0,u=u+Math.imul(J,Ae)|0,u=u+Math.imul(T,Ie)|0,R=R+Math.imul(T,Ae)|0;var Kt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,v=Math.imul(re,ae),u=Math.imul(re,ie),u=u+Math.imul(be,ae)|0,R=Math.imul(be,ie),v=v+Math.imul(G,ne)|0,u=u+Math.imul(G,Me)|0,u=u+Math.imul(se,ne)|0,R=R+Math.imul(se,Me)|0,v=v+Math.imul(C,ke)|0,u=u+Math.imul(C,xe)|0,u=u+Math.imul(M,ke)|0,R=R+Math.imul(M,xe)|0,v=v+Math.imul(W,Ie)|0,u=u+Math.imul(W,Ae)|0,u=u+Math.imul(Z,Ie)|0,R=R+Math.imul(Z,Ae)|0,v=v+Math.imul(J,Te)|0,u=u+Math.imul(J,Ne)|0,u=u+Math.imul(T,Te)|0,R=R+Math.imul(T,Ne)|0;var Qt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v=Math.imul(Se,ae),u=Math.imul(Se,ie),u=u+Math.imul(Ee,ae)|0,R=Math.imul(Ee,ie),v=v+Math.imul(re,ne)|0,u=u+Math.imul(re,Me)|0,u=u+Math.imul(be,ne)|0,R=R+Math.imul(be,Me)|0,v=v+Math.imul(G,ke)|0,u=u+Math.imul(G,xe)|0,u=u+Math.imul(se,ke)|0,R=R+Math.imul(se,xe)|0,v=v+Math.imul(C,Ie)|0,u=u+Math.imul(C,Ae)|0,u=u+Math.imul(M,Ie)|0,R=R+Math.imul(M,Ae)|0,v=v+Math.imul(W,Te)|0,u=u+Math.imul(W,Ne)|0,u=u+Math.imul(Z,Te)|0,R=R+Math.imul(Z,Ne)|0,v=v+Math.imul(J,Le)|0,u=u+Math.imul(J,Be)|0,u=u+Math.imul(T,Le)|0,R=R+Math.imul(T,Be)|0;var Yt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,v=Math.imul(ve,ae),u=Math.imul(ve,ie),u=u+Math.imul(Re,ae)|0,R=Math.imul(Re,ie),v=v+Math.imul(Se,ne)|0,u=u+Math.imul(Se,Me)|0,u=u+Math.imul(Ee,ne)|0,R=R+Math.imul(Ee,Me)|0,v=v+Math.imul(re,ke)|0,u=u+Math.imul(re,xe)|0,u=u+Math.imul(be,ke)|0,R=R+Math.imul(be,xe)|0,v=v+Math.imul(G,Ie)|0,u=u+Math.imul(G,Ae)|0,u=u+Math.imul(se,Ie)|0,R=R+Math.imul(se,Ae)|0,v=v+Math.imul(C,Te)|0,u=u+Math.imul(C,Ne)|0,u=u+Math.imul(M,Te)|0,R=R+Math.imul(M,Ne)|0,v=v+Math.imul(W,Le)|0,u=u+Math.imul(W,Be)|0,u=u+Math.imul(Z,Le)|0,R=R+Math.imul(Z,Be)|0,v=v+Math.imul(J,Pe)|0,u=u+Math.imul(J,Oe)|0,u=u+Math.imul(T,Pe)|0,R=R+Math.imul(T,Oe)|0;var Xt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,v=Math.imul(_e,ae),u=Math.imul(_e,ie),u=u+Math.imul(m,ae)|0,R=Math.imul(m,ie),v=v+Math.imul(ve,ne)|0,u=u+Math.imul(ve,Me)|0,u=u+Math.imul(Re,ne)|0,R=R+Math.imul(Re,Me)|0,v=v+Math.imul(Se,ke)|0,u=u+Math.imul(Se,xe)|0,u=u+Math.imul(Ee,ke)|0,R=R+Math.imul(Ee,xe)|0,v=v+Math.imul(re,Ie)|0,u=u+Math.imul(re,Ae)|0,u=u+Math.imul(be,Ie)|0,R=R+Math.imul(be,Ae)|0,v=v+Math.imul(G,Te)|0,u=u+Math.imul(G,Ne)|0,u=u+Math.imul(se,Te)|0,R=R+Math.imul(se,Ne)|0,v=v+Math.imul(C,Le)|0,u=u+Math.imul(C,Be)|0,u=u+Math.imul(M,Le)|0,R=R+Math.imul(M,Be)|0,v=v+Math.imul(W,Pe)|0,u=u+Math.imul(W,Oe)|0,u=u+Math.imul(Z,Pe)|0,R=R+Math.imul(Z,Oe)|0,v=v+Math.imul(J,$e)|0,u=u+Math.imul(J,Fe)|0,u=u+Math.imul(T,$e)|0,R=R+Math.imul(T,Fe)|0;var er=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(er>>>26)|0,er&=67108863,v=Math.imul(h,ae),u=Math.imul(h,ie),u=u+Math.imul(E,ae)|0,R=Math.imul(E,ie),v=v+Math.imul(_e,ne)|0,u=u+Math.imul(_e,Me)|0,u=u+Math.imul(m,ne)|0,R=R+Math.imul(m,Me)|0,v=v+Math.imul(ve,ke)|0,u=u+Math.imul(ve,xe)|0,u=u+Math.imul(Re,ke)|0,R=R+Math.imul(Re,xe)|0,v=v+Math.imul(Se,Ie)|0,u=u+Math.imul(Se,Ae)|0,u=u+Math.imul(Ee,Ie)|0,R=R+Math.imul(Ee,Ae)|0,v=v+Math.imul(re,Te)|0,u=u+Math.imul(re,Ne)|0,u=u+Math.imul(be,Te)|0,R=R+Math.imul(be,Ne)|0,v=v+Math.imul(G,Le)|0,u=u+Math.imul(G,Be)|0,u=u+Math.imul(se,Le)|0,R=R+Math.imul(se,Be)|0,v=v+Math.imul(C,Pe)|0,u=u+Math.imul(C,Oe)|0,u=u+Math.imul(M,Pe)|0,R=R+Math.imul(M,Oe)|0,v=v+Math.imul(W,$e)|0,u=u+Math.imul(W,Fe)|0,u=u+Math.imul(Z,$e)|0,R=R+Math.imul(Z,Fe)|0,v=v+Math.imul(J,De)|0,u=u+Math.imul(J,je)|0,u=u+Math.imul(T,De)|0,R=R+Math.imul(T,je)|0;var tr=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(tr>>>26)|0,tr&=67108863,v=Math.imul(D,ae),u=Math.imul(D,ie),u=u+Math.imul(U,ae)|0,R=Math.imul(U,ie),v=v+Math.imul(h,ne)|0,u=u+Math.imul(h,Me)|0,u=u+Math.imul(E,ne)|0,R=R+Math.imul(E,Me)|0,v=v+Math.imul(_e,ke)|0,u=u+Math.imul(_e,xe)|0,u=u+Math.imul(m,ke)|0,R=R+Math.imul(m,xe)|0,v=v+Math.imul(ve,Ie)|0,u=u+Math.imul(ve,Ae)|0,u=u+Math.imul(Re,Ie)|0,R=R+Math.imul(Re,Ae)|0,v=v+Math.imul(Se,Te)|0,u=u+Math.imul(Se,Ne)|0,u=u+Math.imul(Ee,Te)|0,R=R+Math.imul(Ee,Ne)|0,v=v+Math.imul(re,Le)|0,u=u+Math.imul(re,Be)|0,u=u+Math.imul(be,Le)|0,R=R+Math.imul(be,Be)|0,v=v+Math.imul(G,Pe)|0,u=u+Math.imul(G,Oe)|0,u=u+Math.imul(se,Pe)|0,R=R+Math.imul(se,Oe)|0,v=v+Math.imul(C,$e)|0,u=u+Math.imul(C,Fe)|0,u=u+Math.imul(M,$e)|0,R=R+Math.imul(M,Fe)|0,v=v+Math.imul(W,De)|0,u=u+Math.imul(W,je)|0,u=u+Math.imul(Z,De)|0,R=R+Math.imul(Z,je)|0,v=v+Math.imul(J,Ue)|0,u=u+Math.imul(J,He)|0,u=u+Math.imul(T,Ue)|0,R=R+Math.imul(T,He)|0;var rr=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(rr>>>26)|0,rr&=67108863,v=Math.imul(D,ne),u=Math.imul(D,Me),u=u+Math.imul(U,ne)|0,R=Math.imul(U,Me),v=v+Math.imul(h,ke)|0,u=u+Math.imul(h,xe)|0,u=u+Math.imul(E,ke)|0,R=R+Math.imul(E,xe)|0,v=v+Math.imul(_e,Ie)|0,u=u+Math.imul(_e,Ae)|0,u=u+Math.imul(m,Ie)|0,R=R+Math.imul(m,Ae)|0,v=v+Math.imul(ve,Te)|0,u=u+Math.imul(ve,Ne)|0,u=u+Math.imul(Re,Te)|0,R=R+Math.imul(Re,Ne)|0,v=v+Math.imul(Se,Le)|0,u=u+Math.imul(Se,Be)|0,u=u+Math.imul(Ee,Le)|0,R=R+Math.imul(Ee,Be)|0,v=v+Math.imul(re,Pe)|0,u=u+Math.imul(re,Oe)|0,u=u+Math.imul(be,Pe)|0,R=R+Math.imul(be,Oe)|0,v=v+Math.imul(G,$e)|0,u=u+Math.imul(G,Fe)|0,u=u+Math.imul(se,$e)|0,R=R+Math.imul(se,Fe)|0,v=v+Math.imul(C,De)|0,u=u+Math.imul(C,je)|0,u=u+Math.imul(M,De)|0,R=R+Math.imul(M,je)|0,v=v+Math.imul(W,Ue)|0,u=u+Math.imul(W,He)|0,u=u+Math.imul(Z,Ue)|0,R=R+Math.imul(Z,He)|0;var nr=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(nr>>>26)|0,nr&=67108863,v=Math.imul(D,ke),u=Math.imul(D,xe),u=u+Math.imul(U,ke)|0,R=Math.imul(U,xe),v=v+Math.imul(h,Ie)|0,u=u+Math.imul(h,Ae)|0,u=u+Math.imul(E,Ie)|0,R=R+Math.imul(E,Ae)|0,v=v+Math.imul(_e,Te)|0,u=u+Math.imul(_e,Ne)|0,u=u+Math.imul(m,Te)|0,R=R+Math.imul(m,Ne)|0,v=v+Math.imul(ve,Le)|0,u=u+Math.imul(ve,Be)|0,u=u+Math.imul(Re,Le)|0,R=R+Math.imul(Re,Be)|0,v=v+Math.imul(Se,Pe)|0,u=u+Math.imul(Se,Oe)|0,u=u+Math.imul(Ee,Pe)|0,R=R+Math.imul(Ee,Oe)|0,v=v+Math.imul(re,$e)|0,u=u+Math.imul(re,Fe)|0,u=u+Math.imul(be,$e)|0,R=R+Math.imul(be,Fe)|0,v=v+Math.imul(G,De)|0,u=u+Math.imul(G,je)|0,u=u+Math.imul(se,De)|0,R=R+Math.imul(se,je)|0,v=v+Math.imul(C,Ue)|0,u=u+Math.imul(C,He)|0,u=u+Math.imul(M,Ue)|0,R=R+Math.imul(M,He)|0;var ir=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(ir>>>26)|0,ir&=67108863,v=Math.imul(D,Ie),u=Math.imul(D,Ae),u=u+Math.imul(U,Ie)|0,R=Math.imul(U,Ae),v=v+Math.imul(h,Te)|0,u=u+Math.imul(h,Ne)|0,u=u+Math.imul(E,Te)|0,R=R+Math.imul(E,Ne)|0,v=v+Math.imul(_e,Le)|0,u=u+Math.imul(_e,Be)|0,u=u+Math.imul(m,Le)|0,R=R+Math.imul(m,Be)|0,v=v+Math.imul(ve,Pe)|0,u=u+Math.imul(ve,Oe)|0,u=u+Math.imul(Re,Pe)|0,R=R+Math.imul(Re,Oe)|0,v=v+Math.imul(Se,$e)|0,u=u+Math.imul(Se,Fe)|0,u=u+Math.imul(Ee,$e)|0,R=R+Math.imul(Ee,Fe)|0,v=v+Math.imul(re,De)|0,u=u+Math.imul(re,je)|0,u=u+Math.imul(be,De)|0,R=R+Math.imul(be,je)|0,v=v+Math.imul(G,Ue)|0,u=u+Math.imul(G,He)|0,u=u+Math.imul(se,Ue)|0,R=R+Math.imul(se,He)|0;var sr=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(sr>>>26)|0,sr&=67108863,v=Math.imul(D,Te),u=Math.imul(D,Ne),u=u+Math.imul(U,Te)|0,R=Math.imul(U,Ne),v=v+Math.imul(h,Le)|0,u=u+Math.imul(h,Be)|0,u=u+Math.imul(E,Le)|0,R=R+Math.imul(E,Be)|0,v=v+Math.imul(_e,Pe)|0,u=u+Math.imul(_e,Oe)|0,u=u+Math.imul(m,Pe)|0,R=R+Math.imul(m,Oe)|0,v=v+Math.imul(ve,$e)|0,u=u+Math.imul(ve,Fe)|0,u=u+Math.imul(Re,$e)|0,R=R+Math.imul(Re,Fe)|0,v=v+Math.imul(Se,De)|0,u=u+Math.imul(Se,je)|0,u=u+Math.imul(Ee,De)|0,R=R+Math.imul(Ee,je)|0,v=v+Math.imul(re,Ue)|0,u=u+Math.imul(re,He)|0,u=u+Math.imul(be,Ue)|0,R=R+Math.imul(be,He)|0;var or=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(or>>>26)|0,or&=67108863,v=Math.imul(D,Le),u=Math.imul(D,Be),u=u+Math.imul(U,Le)|0,R=Math.imul(U,Be),v=v+Math.imul(h,Pe)|0,u=u+Math.imul(h,Oe)|0,u=u+Math.imul(E,Pe)|0,R=R+Math.imul(E,Oe)|0,v=v+Math.imul(_e,$e)|0,u=u+Math.imul(_e,Fe)|0,u=u+Math.imul(m,$e)|0,R=R+Math.imul(m,Fe)|0,v=v+Math.imul(ve,De)|0,u=u+Math.imul(ve,je)|0,u=u+Math.imul(Re,De)|0,R=R+Math.imul(Re,je)|0,v=v+Math.imul(Se,Ue)|0,u=u+Math.imul(Se,He)|0,u=u+Math.imul(Ee,Ue)|0,R=R+Math.imul(Ee,He)|0;var ss=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(ss>>>26)|0,ss&=67108863,v=Math.imul(D,Pe),u=Math.imul(D,Oe),u=u+Math.imul(U,Pe)|0,R=Math.imul(U,Oe),v=v+Math.imul(h,$e)|0,u=u+Math.imul(h,Fe)|0,u=u+Math.imul(E,$e)|0,R=R+Math.imul(E,Fe)|0,v=v+Math.imul(_e,De)|0,u=u+Math.imul(_e,je)|0,u=u+Math.imul(m,De)|0,R=R+Math.imul(m,je)|0,v=v+Math.imul(ve,Ue)|0,u=u+Math.imul(ve,He)|0,u=u+Math.imul(Re,Ue)|0,R=R+Math.imul(Re,He)|0;var os=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(os>>>26)|0,os&=67108863,v=Math.imul(D,$e),u=Math.imul(D,Fe),u=u+Math.imul(U,$e)|0,R=Math.imul(U,Fe),v=v+Math.imul(h,De)|0,u=u+Math.imul(h,je)|0,u=u+Math.imul(E,De)|0,R=R+Math.imul(E,je)|0,v=v+Math.imul(_e,Ue)|0,u=u+Math.imul(_e,He)|0,u=u+Math.imul(m,Ue)|0,R=R+Math.imul(m,He)|0;var as=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(as>>>26)|0,as&=67108863,v=Math.imul(D,De),u=Math.imul(D,je),u=u+Math.imul(U,De)|0,R=Math.imul(U,je),v=v+Math.imul(h,Ue)|0,u=u+Math.imul(h,He)|0,u=u+Math.imul(E,Ue)|0,R=R+Math.imul(E,He)|0;var cs=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(cs>>>26)|0,cs&=67108863,v=Math.imul(D,Ue),u=Math.imul(D,He),u=u+Math.imul(U,Ue)|0,R=Math.imul(U,He);var ls=(N+v|0)+((u&8191)<<13)|0;return N=(R+(u>>>13)|0)+(ls>>>26)|0,ls&=67108863,k[0]=Gt,k[1]=Jt,k[2]=Zt,k[3]=Kt,k[4]=Qt,k[5]=Yt,k[6]=Xt,k[7]=er,k[8]=tr,k[9]=rr,k[10]=nr,k[11]=ir,k[12]=sr,k[13]=or,k[14]=ss,k[15]=os,k[16]=as,k[17]=cs,k[18]=ls,N!==0&&(k[19]=N,w.length++),w};Math.imul||(O=I);function B(x,o,f){f.negative=o.negative^x.negative,f.length=x.length+o.length;for(var w=0,b=0,S=0;S>>26)|0,b+=k>>>26,k&=67108863}f.words[S]=N,w=k,k=b}return w!==0?f.words[S]=w:f.length--,f._strip()}function V(x,o,f){return B(x,o,f)}s.prototype.mulTo=function(o,f){var w,b=this.length+o.length;return this.length===10&&o.length===10?w=O(this,o,f):b<63?w=I(this,o,f):b<1024?w=B(this,o,f):w=V(this,o,f),w},s.prototype.mul=function(o){var f=new s(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},s.prototype.mulf=function(o){var f=new s(null);return f.words=new Array(this.length+o.length),V(this,o,f)},s.prototype.imul=function(o){return this.clone().mulTo(o,this)},s.prototype.imuln=function(o){var f=o<0;f&&(o=-o),n(typeof o=="number"),n(o<67108864);for(var w=0,b=0;b>=26,w+=S/67108864|0,w+=k>>>26,this.words[b]=k&67108863}return w!==0&&(this.words[b]=w,this.length++),f?this.ineg():this},s.prototype.muln=function(o){return this.clone().imuln(o)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(o){var f=F(o);if(f.length===0)return new s(1);for(var w=this,b=0;b=0);var f=o%26,w=(o-f)/26,b=67108863>>>26-f<<26-f,S;if(f!==0){var k=0;for(S=0;S>>26-f}k&&(this.words[S]=k,this.length++)}if(w!==0){for(S=this.length-1;S>=0;S--)this.words[S+w]=this.words[S];for(S=0;S=0);var b;f?b=(f-f%26)/26:b=0;var S=o%26,k=Math.min((o-S)/26,this.length),N=67108863^67108863>>>S<k)for(this.length-=k,u=0;u=0&&(R!==0||u>=b);u--){var K=this.words[u]|0;this.words[u]=R<<26-S|K>>>S,R=K&N}return v&&R!==0&&(v.words[v.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(o,f,w){return n(this.negative===0),this.iushrn(o,f,w)},s.prototype.shln=function(o){return this.clone().ishln(o)},s.prototype.ushln=function(o){return this.clone().iushln(o)},s.prototype.shrn=function(o){return this.clone().ishrn(o)},s.prototype.ushrn=function(o){return this.clone().iushrn(o)},s.prototype.testn=function(o){n(typeof o=="number"&&o>=0);var f=o%26,w=(o-f)/26,b=1<=0);var f=o%26,w=(o-f)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(f!==0&&w++,this.length=Math.min(w,this.length),f!==0){var b=67108863^67108863>>>f<=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},s.prototype.isubn=function(o){if(n(typeof o=="number"),n(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f>26)-(v/67108864|0),this.words[S+w]=k&67108863}for(;S>26,this.words[S+w]=k&67108863;if(N===0)return this._strip();for(n(N===-1),N=0,S=0;S>26,this.words[S]=k&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(o,f){var w=this.length-o.length,b=this.clone(),S=o,k=S.words[S.length-1]|0,N=this._countBits(k);w=26-N,w!==0&&(S=S.ushln(w),b.iushln(w),k=S.words[S.length-1]|0);var v=b.length-S.length,u;if(f!=="mod"){u=new s(null),u.length=v+1,u.words=new Array(u.length);for(var R=0;R=0;J--){var T=(b.words[S.length+J]|0)*67108864+(b.words[S.length+J-1]|0);for(T=Math.min(T/k|0,67108863),b._ishlnsubmul(S,T,J);b.negative!==0;)T--,b.negative=0,b._ishlnsubmul(S,1,J),b.isZero()||(b.negative^=1);u&&(u.words[J]=T)}return u&&u._strip(),b._strip(),f!=="div"&&w!==0&&b.iushrn(w),{div:u||null,mod:b}},s.prototype.divmod=function(o,f,w){if(n(!o.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var b,S,k;return this.negative!==0&&o.negative===0?(k=this.neg().divmod(o,f),f!=="mod"&&(b=k.div.neg()),f!=="div"&&(S=k.mod.neg(),w&&S.negative!==0&&S.iadd(o)),{div:b,mod:S}):this.negative===0&&o.negative!==0?(k=this.divmod(o.neg(),f),f!=="mod"&&(b=k.div.neg()),{div:b,mod:k.mod}):this.negative&o.negative?(k=this.neg().divmod(o.neg(),f),f!=="div"&&(S=k.mod.neg(),w&&S.negative!==0&&S.isub(o)),{div:k.div,mod:S}):o.length>this.length||this.cmp(o)<0?{div:new s(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new s(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new s(this.modrn(o.words[0]))}:this._wordDiv(o,f)},s.prototype.div=function(o){return this.divmod(o,"div",!1).div},s.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},s.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},s.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var w=f.div.negative!==0?f.mod.isub(o):f.mod,b=o.ushrn(1),S=o.andln(1),k=w.cmp(b);return k<0||S===1&&k===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},s.prototype.modrn=function(o){var f=o<0;f&&(o=-o),n(o<=67108863);for(var w=(1<<26)%o,b=0,S=this.length-1;S>=0;S--)b=(w*b+(this.words[S]|0))%o;return f?-b:b},s.prototype.modn=function(o){return this.modrn(o)},s.prototype.idivn=function(o){var f=o<0;f&&(o=-o),n(o<=67108863);for(var w=0,b=this.length-1;b>=0;b--){var S=(this.words[b]|0)+w*67108864;this.words[b]=S/o|0,w=S%o}return this._strip(),f?this.ineg():this},s.prototype.divn=function(o){return this.clone().idivn(o)},s.prototype.egcd=function(o){n(o.negative===0),n(!o.isZero());var f=this,w=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var b=new s(1),S=new s(0),k=new s(0),N=new s(1),v=0;f.isEven()&&w.isEven();)f.iushrn(1),w.iushrn(1),++v;for(var u=w.clone(),R=f.clone();!f.isZero();){for(var K=0,J=1;!(f.words[0]&J)&&K<26;++K,J<<=1);if(K>0)for(f.iushrn(K);K-- >0;)(b.isOdd()||S.isOdd())&&(b.iadd(u),S.isub(R)),b.iushrn(1),S.iushrn(1);for(var T=0,$=1;!(w.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(w.iushrn(T);T-- >0;)(k.isOdd()||N.isOdd())&&(k.iadd(u),N.isub(R)),k.iushrn(1),N.iushrn(1);f.cmp(w)>=0?(f.isub(w),b.isub(k),S.isub(N)):(w.isub(f),k.isub(b),N.isub(S))}return{a:k,b:N,gcd:w.iushln(v)}},s.prototype._invmp=function(o){n(o.negative===0),n(!o.isZero());var f=this,w=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var b=new s(1),S=new s(0),k=w.clone();f.cmpn(1)>0&&w.cmpn(1)>0;){for(var N=0,v=1;!(f.words[0]&v)&&N<26;++N,v<<=1);if(N>0)for(f.iushrn(N);N-- >0;)b.isOdd()&&b.iadd(k),b.iushrn(1);for(var u=0,R=1;!(w.words[0]&R)&&u<26;++u,R<<=1);if(u>0)for(w.iushrn(u);u-- >0;)S.isOdd()&&S.iadd(k),S.iushrn(1);f.cmp(w)>=0?(f.isub(w),b.isub(S)):(w.isub(f),S.isub(b))}var K;return f.cmpn(1)===0?K=b:K=S,K.cmpn(0)<0&&K.iadd(o),K},s.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),w=o.clone();f.negative=0,w.negative=0;for(var b=0;f.isEven()&&w.isEven();b++)f.iushrn(1),w.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;w.isEven();)w.iushrn(1);var S=f.cmp(w);if(S<0){var k=f;f=w,w=k}else if(S===0||w.cmpn(1)===0)break;f.isub(w)}while(!0);return w.iushln(b)},s.prototype.invm=function(o){return this.egcd(o).a.umod(o)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(o){return this.words[0]&o},s.prototype.bincn=function(o){n(typeof o=="number");var f=o%26,w=(o-f)/26,b=1<>>26,N&=67108863,this.words[k]=N}return S!==0&&(this.words[k]=S,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this._strip();var w;if(this.length>1)w=1;else{f&&(o=-o),n(o<=67108863,"Number is too big");var b=this.words[0]|0;w=b===o?0:bo.length)return 1;if(this.length=0;w--){var b=this.words[w]|0,S=o.words[w]|0;if(b!==S){bS&&(f=1);break}}return f},s.prototype.gtn=function(o){return this.cmpn(o)===1},s.prototype.gt=function(o){return this.cmp(o)===1},s.prototype.gten=function(o){return this.cmpn(o)>=0},s.prototype.gte=function(o){return this.cmp(o)>=0},s.prototype.ltn=function(o){return this.cmpn(o)===-1},s.prototype.lt=function(o){return this.cmp(o)===-1},s.prototype.lten=function(o){return this.cmpn(o)<=0},s.prototype.lte=function(o){return this.cmp(o)<=0},s.prototype.eqn=function(o){return this.cmpn(o)===0},s.prototype.eq=function(o){return this.cmp(o)===0},s.red=function(o){return new oe(o)},s.prototype.toRed=function(o){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(o){return this.red=o,this},s.prototype.forceRed=function(o){return n(!this.red,"Already a number in reduction context"),this._forceRed(o)},s.prototype.redAdd=function(o){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},s.prototype.redIAdd=function(o){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},s.prototype.redSub=function(o){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},s.prototype.redISub=function(o){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},s.prototype.redShl=function(o){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},s.prototype.redMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},s.prototype.redIMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(o){return n(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function z(x,o){this.name=x,this.p=new s(o,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}z.prototype._tmp=function(){var o=new s(null);return o.words=new Array(Math.ceil(this.n/13)),o},z.prototype.ireduce=function(o){var f=o,w;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),w=f.bitLength();while(w>this.n);var b=w0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},z.prototype.split=function(o,f){o.iushrn(this.n,0,f)},z.prototype.imulK=function(o){return o.imul(this.k)};function te(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(te,z),te.prototype.split=function(o,f){for(var w=4194303,b=Math.min(o.length,9),S=0;S>>22,k=N}k>>>=22,o.words[S-10]=k,k===0&&o.length>10?o.length-=10:o.length-=9},te.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,w=0;w>>=26,o.words[w]=S,f=b}return f!==0&&(o.words[o.length++]=f),o},s._prime=function(o){if(j[o])return j[o];var f;if(o==="k256")f=new te;else if(o==="p224")f=new Y;else if(o==="p192")f=new Q;else if(o==="p25519")f=new fe;else throw new Error("Unknown prime "+o);return j[o]=f,f};function oe(x){if(typeof x=="string"){var o=s._prime(x);this.m=o.p,this.prime=o}else n(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}oe.prototype._verify1=function(o){n(o.negative===0,"red works only with positives"),n(o.red,"red works only with red numbers")},oe.prototype._verify2=function(o,f){n((o.negative|f.negative)===0,"red works only with positives"),n(o.red&&o.red===f.red,"red works only with red numbers")},oe.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(g(o,o.umod(this.m)._forceRed(this)),o)},oe.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},oe.prototype.add=function(o,f){this._verify2(o,f);var w=o.add(f);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},oe.prototype.iadd=function(o,f){this._verify2(o,f);var w=o.iadd(f);return w.cmp(this.m)>=0&&w.isub(this.m),w},oe.prototype.sub=function(o,f){this._verify2(o,f);var w=o.sub(f);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},oe.prototype.isub=function(o,f){this._verify2(o,f);var w=o.isub(f);return w.cmpn(0)<0&&w.iadd(this.m),w},oe.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},oe.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},oe.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},oe.prototype.isqr=function(o){return this.imul(o,o.clone())},oe.prototype.sqr=function(o){return this.mul(o,o)},oe.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(n(f%2===1),f===3){var w=this.m.add(new s(1)).iushrn(2);return this.pow(o,w)}for(var b=this.m.subn(1),S=0;!b.isZero()&&b.andln(1)===0;)S++,b.iushrn(1);n(!b.isZero());var k=new s(1).toRed(this),N=k.redNeg(),v=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);this.pow(u,v).cmp(N)!==0;)u.redIAdd(N);for(var R=this.pow(u,b),K=this.pow(o,b.addn(1).iushrn(1)),J=this.pow(o,b),T=S;J.cmp(k)!==0;){for(var $=J,W=0;$.cmp(k)!==0;W++)$=$.redSqr();n(W=0;S--){for(var R=f.words[S],K=u-1;K>=0;K--){var J=R>>K&1;if(k!==b[0]&&(k=this.sqr(k)),J===0&&N===0){v=0;continue}N<<=1,N|=J,v++,!(v!==w&&(S!==0||K!==0))&&(k=this.mul(k,b[N]),v=0,N=0)}u=26}return k},oe.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},oe.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},s.mont=function(o){return new pe(o)};function pe(x){oe.call(this,x),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(pe,oe),pe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},pe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},pe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var w=o.imul(f),b=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=w.isub(b).iushrn(this.shift),k=S;return S.cmp(this.m)>=0?k=S.isub(this.m):S.cmpn(0)<0&&(k=S.iadd(this.m)),k._forceRed(this)},pe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new s(0)._forceRed(this);var w=o.mul(f),b=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=w.isub(b).iushrn(this.shift),k=S;return S.cmp(this.m)>=0?k=S.isub(this.m):S.cmpn(0)<0&&(k=S.iadd(this.m)),k._forceRed(this)},pe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,ee)})(Qs);var ui=Qs.exports,wn={},Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.errorValues=Ft.standardErrorCodes=void 0;Ft.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}};Ft.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}};var hi={},di={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serialize=e.getErrorCode=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=Ft,r="Unspecified error message.";e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function n(_,A=r){if(_&&Number.isInteger(_)){const L=_.toString();if(g(t.errorValues,L))return t.errorValues[L].message;if(d(_))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return A}e.getMessageFromCode=n;function i(_){if(!Number.isInteger(_))return!1;const A=_.toString();return!!(t.errorValues[A]||d(_))}e.isValidCode=i;function s(_){var A;if(typeof _=="number")return _;if(c(_))return(A=_.code)!==null&&A!==void 0?A:_.errorCode}e.getErrorCode=s;function c(_){return typeof _=="object"&&_!==null&&(typeof _.code=="number"||typeof _.errorCode=="number")}function a(_,{shouldIncludeStack:A=!1}={}){const L={};if(_&&typeof _=="object"&&!Array.isArray(_)&&g(_,"code")&&i(_.code)){const H=_;L.code=H.code,H.message&&typeof H.message=="string"?(L.message=H.message,g(H,"data")&&(L.data=H.data)):(L.message=n(L.code),L.data={originalError:p(_)})}else L.code=t.standardErrorCodes.rpc.internal,L.message=y(_,"message")?_.message:r,L.data={originalError:p(_)};return A&&(L.stack=y(_,"stack")?_.stack:void 0),L}e.serialize=a;function d(_){return _>=-32099&&_<=-32e3}function p(_){return _&&typeof _=="object"&&!Array.isArray(_)?Object.assign({},_):_}function g(_,A){return Object.prototype.hasOwnProperty.call(_,A)}function y(_,A){return typeof _=="object"&&_!==null&&A in _&&typeof _[A]=="string"}})(di);Object.defineProperty(hi,"__esModule",{value:!0});hi.standardErrors=void 0;const et=Ft,mc=di;hi.standardErrors={rpc:{parse:e=>ft(et.standardErrorCodes.rpc.parse,e),invalidRequest:e=>ft(et.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>ft(et.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>ft(et.standardErrorCodes.rpc.methodNotFound,e),internal:e=>ft(et.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return ft(t,e)},invalidInput:e=>ft(et.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>ft(et.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>ft(et.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>ft(et.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>ft(et.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>ft(et.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>Tr(et.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>Tr(et.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>Tr(et.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>Tr(et.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>Tr(et.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>Tr(et.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:n}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new bc(t,r,n)}}};function ft(e,t){const[r,n]=wc(t);return new yc(e,r||(0,mc.getMessageFromCode)(e),n)}function Tr(e,t){const[r,n]=wc(t);return new bc(e,r||(0,mc.getMessageFromCode)(e),n)}function wc(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}let yc=class extends Error{constructor(t,r,n){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string.');super(r),this.code=t,n!==void 0&&(this.data=n)}},bc=class extends yc{constructor(t,r,n){if(!vu(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,r,n)}};function vu(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}var fi={},Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.isErrorResponse=void 0;function _u(e){return e.errorMessage!==void 0}Qr.isErrorResponse=_u;var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.LIB_VERSION=void 0;Yr.LIB_VERSION="3.9.3";Object.defineProperty(fi,"__esModule",{value:!0});fi.serializeError=void 0;const Eu=Qr,Su=Yr,Ru=Ft,Cu=di;function Mu(e,t){const r=(0,Cu.serialize)(ku(e),{shouldIncludeStack:!0}),n=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");n.searchParams.set("version",Su.LIB_VERSION),n.searchParams.set("code",r.code.toString());const i=xu(r.data,t);return i&&n.searchParams.set("method",i),n.searchParams.set("message",r.message),Object.assign(Object.assign({},r),{docUrl:n.href})}fi.serializeError=Mu;function ku(e){return typeof e=="string"?{message:e,code:Ru.standardErrorCodes.rpc.internal}:(0,Eu.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e}function xu(e,t){const r=e==null?void 0:e.method;if(r)return r;if(t!==void 0){if(typeof t=="string")return t;if(Array.isArray(t)){if(t.length>0)return t[0].method}else return t.method}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.standardErrors=e.standardErrorCodes=e.serializeError=e.getMessageFromCode=e.getErrorCode=void 0;const t=Ft;Object.defineProperty(e,"standardErrorCodes",{enumerable:!0,get:function(){return t.standardErrorCodes}});const r=hi;Object.defineProperty(e,"standardErrors",{enumerable:!0,get:function(){return r.standardErrors}});const n=fi;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}});const i=di;Object.defineProperty(e,"getErrorCode",{enumerable:!0,get:function(){return i.getErrorCode}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}})})(wn);var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.ProviderType=Ze.RegExpString=Ze.IntNumber=Ze.BigIntString=Ze.AddressString=Ze.HexString=Ze.OpaqueType=void 0;function yn(){return e=>e}Ze.OpaqueType=yn;Ze.HexString=yn();Ze.AddressString=yn();Ze.BigIntString=yn();function Iu(e){return Math.floor(e)}Ze.IntNumber=Iu;Ze.RegExpString=yn();var $o;(function(e){e.CoinbaseWallet="CoinbaseWallet",e.MetaMask="MetaMask",e.Unselected=""})($o||(Ze.ProviderType=$o={}));var Au=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(X,"__esModule",{value:!0});X.isMobileWeb=X.getLocation=X.isInIFrame=X.createQrUrl=X.getFavicon=X.range=X.isBigNumber=X.ensureParsedJSONObject=X.ensureBN=X.ensureRegExpString=X.ensureIntNumber=X.ensureBuffer=X.ensureAddressString=X.ensureEvenLengthHexString=X.ensureHexString=X.isHexString=X.prepend0x=X.strip0x=X.has0xPrefix=X.hexStringFromIntNumber=X.intNumberFromHexString=X.bigIntStringFromBN=X.hexStringFromBuffer=X.hexStringToUint8Array=X.uint8ArrayToHex=X.randomBytesHex=void 0;const Ht=Au(ui),yr=wn,yt=Ze,vc=/^[0-9]*$/,_c=/^[a-f0-9]*$/;function Tu(e){return Ec(crypto.getRandomValues(new Uint8Array(e)))}X.randomBytesHex=Tu;function Ec(e){return[...e].map(t=>t.toString(16).padStart(2,"0")).join("")}X.uint8ArrayToHex=Ec;function Nu(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>parseInt(t,16)))}X.hexStringToUint8Array=Nu;function Lu(e,t=!1){const r=e.toString("hex");return(0,yt.HexString)(t?`0x${r}`:r)}X.hexStringFromBuffer=Lu;function Bu(e){return(0,yt.BigIntString)(e.toString(10))}X.bigIntStringFromBN=Bu;function Pu(e){return(0,yt.IntNumber)(new Ht.default(vn(e,!1),16).toNumber())}X.intNumberFromHexString=Pu;function Ou(e){return(0,yt.HexString)(`0x${new Ht.default(e).toString(16)}`)}X.hexStringFromIntNumber=Ou;function Ys(e){return e.startsWith("0x")||e.startsWith("0X")}X.has0xPrefix=Ys;function pi(e){return Ys(e)?e.slice(2):e}X.strip0x=pi;function Sc(e){return Ys(e)?`0x${e.slice(2)}`:`0x${e}`}X.prepend0x=Sc;function bn(e){if(typeof e!="string")return!1;const t=pi(e).toLowerCase();return _c.test(t)}X.isHexString=bn;function Rc(e,t=!1){if(typeof e=="string"){const r=pi(e).toLowerCase();if(_c.test(r))return(0,yt.HexString)(t?`0x${r}`:r)}throw yr.standardErrors.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`)}X.ensureHexString=Rc;function vn(e,t=!1){let r=Rc(e,!1);return r.length%2===1&&(r=(0,yt.HexString)(`0${r}`)),t?(0,yt.HexString)(`0x${r}`):r}X.ensureEvenLengthHexString=vn;function $u(e){if(typeof e=="string"){const t=pi(e).toLowerCase();if(bn(t)&&t.length===40)return(0,yt.AddressString)(Sc(t))}throw yr.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}X.ensureAddressString=$u;function Fu(e){if(Buffer.isBuffer(e))return e;if(typeof e=="string"){if(bn(e)){const t=vn(e,!1);return Buffer.from(t,"hex")}return Buffer.from(e,"utf8")}throw yr.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)}X.ensureBuffer=Fu;function Cc(e){if(typeof e=="number"&&Number.isInteger(e))return(0,yt.IntNumber)(e);if(typeof e=="string"){if(vc.test(e))return(0,yt.IntNumber)(Number(e));if(bn(e))return(0,yt.IntNumber)(new Ht.default(vn(e,!1),16).toNumber())}throw yr.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}X.ensureIntNumber=Cc;function Du(e){if(e instanceof RegExp)return(0,yt.RegExpString)(e.toString());throw yr.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)}X.ensureRegExpString=Du;function ju(e){if(e!==null&&(Ht.default.isBN(e)||Mc(e)))return new Ht.default(e.toString(10),10);if(typeof e=="number")return new Ht.default(Cc(e));if(typeof e=="string"){if(vc.test(e))return new Ht.default(e,10);if(bn(e))return new Ht.default(vn(e,!1),16)}throw yr.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}X.ensureBN=ju;function Uu(e){if(typeof e=="string")return JSON.parse(e);if(typeof e=="object")return e;throw yr.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}X.ensureParsedJSONObject=Uu;function Mc(e){if(e==null||typeof e.constructor!="function")return!1;const{constructor:t}=e;return typeof t.config=="function"&&typeof t.EUCLID=="number"}X.isBigNumber=Mc;function Hu(e,t){return Array.from({length:t-e},(r,n)=>e+n)}X.range=Hu;function Wu(){const e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:t,host:r}=document.location,n=e?e.getAttribute("href"):null;return!n||n.startsWith("javascript:")||n.startsWith("vbscript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?t+n:`${t}//${r}${n}`}X.getFavicon=Wu;function Vu(e,t,r,n,i,s){const c=n?"parent-id":"id",a=new URLSearchParams({[c]:e,secret:t,server:r,v:i,chainId:s.toString()}).toString();return`${r}/#/link?${a}`}X.createQrUrl=Vu;function kc(){try{return window.frameElement!==null}catch{return!1}}X.isInIFrame=kc;function qu(){try{return kc()&&window.top?window.top.location:window.location}catch{return window.location}}X.getLocation=qu;function zu(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((e=window==null?void 0:window.navigator)===null||e===void 0?void 0:e.userAgent)}X.isMobileWeb=zu;var gi={};Object.defineProperty(gi,"__esModule",{value:!0});gi.ScopedLocalStorage=void 0;class Gu{constructor(t){this.scope=t}setItem(t,r){localStorage.setItem(this.scopedKey(t),r)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){const t=this.scopedKey(""),r=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(t){return`${this.scope}:${t}`}}gi.ScopedLocalStorage=Gu;var Vr={},xc={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(d,p,g){this.fn=d,this.context=p,this.once=g||!1}function s(d,p,g,y,_){if(typeof g!="function")throw new TypeError("The listener must be a function");var A=new i(g,y||d,_),L=r?r+p:p;return d._events[L]?d._events[L].fn?d._events[L]=[d._events[L],A]:d._events[L].push(A):(d._events[L]=A,d._eventsCount++),d}function c(d,p){--d._eventsCount===0?d._events=new n:delete d._events[p]}function a(){this._events=new n,this._eventsCount=0}a.prototype.eventNames=function(){var p=[],g,y;if(this._eventsCount===0)return p;for(y in g=this._events)t.call(g,y)&&p.push(r?y.slice(1):y);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(g)):p},a.prototype.listeners=function(p){var g=r?r+p:p,y=this._events[g];if(!y)return[];if(y.fn)return[y.fn];for(var _=0,A=y.length,L=new Array(A);_n.json()).then(n=>{if(!n)throw Fo.standardErrors.rpc.parse({});const i=n,{error:s}=i;if(s)throw(0,Fo.serializeError)(s,t.method);return i})}}wt.RelayAbstract=Zu;var en={},Ic={exports:{}},js={exports:{}};typeof Object.create=="function"?js.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:js.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var St=js.exports,Us={exports:{}},Sn={},mi={};mi.byteLength=Yu;mi.toByteArray=eh;mi.fromByteArray=nh;var Tt=[],mt=[],Ku=typeof Uint8Array<"u"?Uint8Array:Array,us="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Nr=0,Qu=us.length;Nr0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Yu(e){var t=Ac(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Xu(e,t,r){return(t+r)*3/4-r}function eh(e){var t,r=Ac(e),n=r[0],i=r[1],s=new Ku(Xu(e,n,i)),c=0,a=i>0?n-4:n,d;for(d=0;d>16&255,s[c++]=t>>8&255,s[c++]=t&255;return i===2&&(t=mt[e.charCodeAt(d)]<<2|mt[e.charCodeAt(d+1)]>>4,s[c++]=t&255),i===1&&(t=mt[e.charCodeAt(d)]<<10|mt[e.charCodeAt(d+1)]<<4|mt[e.charCodeAt(d+2)]>>2,s[c++]=t>>8&255,s[c++]=t&255),s}function th(e){return Tt[e>>18&63]+Tt[e>>12&63]+Tt[e>>6&63]+Tt[e&63]}function rh(e,t,r){for(var n,i=[],s=t;sa?a:c+s));return n===1?(t=e[r-1],i.push(Tt[t>>2]+Tt[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Tt[t>>10]+Tt[t>>4&63]+Tt[t<<2&63]+"=")),i.join("")}var Xs={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Xs.read=function(e,t,r,n,i){var s,c,a=i*8-n-1,d=(1<>1,g=-7,y=r?i-1:0,_=r?-1:1,A=e[t+y];for(y+=_,s=A&(1<<-g)-1,A>>=-g,g+=a;g>0;s=s*256+e[t+y],y+=_,g-=8);for(c=s&(1<<-g)-1,s>>=-g,g+=n;g>0;c=c*256+e[t+y],y+=_,g-=8);if(s===0)s=1-p;else{if(s===d)return c?NaN:(A?-1:1)*(1/0);c=c+Math.pow(2,n),s=s-p}return(A?-1:1)*c*Math.pow(2,s-n)};Xs.write=function(e,t,r,n,i,s){var c,a,d,p=s*8-i-1,g=(1<>1,_=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=n?0:s-1,L=n?1:-1,H=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,c=g):(c=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-c))<1&&(c--,d*=2),c+y>=1?t+=_/d:t+=_*Math.pow(2,1-y),t*d>=2&&(c++,d/=2),c+y>=g?(a=0,c=g):c+y>=1?(a=(t*d-1)*Math.pow(2,i),c=c+y):(a=t*Math.pow(2,y-1)*Math.pow(2,i),c=0));i>=8;e[r+A]=a&255,A+=L,a/=256,i-=8);for(c=c<0;e[r+A]=c&255,A+=L,c/=256,p-=8);e[r+A-L]|=H*128};/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */(function(e){const t=mi,r=Xs,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=s(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const m=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(m,l),m.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function c(m){if(m>i)throw new RangeError('The value "'+m+'" is invalid for option "size"');const l=new Uint8Array(m);return Object.setPrototypeOf(l,a.prototype),l}function a(m,l,h){if(typeof m=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(m)}return d(m,l,h)}a.poolSize=8192;function d(m,l,h){if(typeof m=="string")return _(m,l);if(ArrayBuffer.isView(m))return L(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(Je(m,ArrayBuffer)||m&&Je(m.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Je(m,SharedArrayBuffer)||m&&Je(m.buffer,SharedArrayBuffer)))return H(m,l,h);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const E=m.valueOf&&m.valueOf();if(E!=null&&E!==m)return a.from(E,l,h);const P=F(m);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return a.from(m[Symbol.toPrimitive]("string"),l,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}a.from=function(m,l,h){return d(m,l,h)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function p(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function g(m,l,h){return p(m),m<=0?c(m):l!==void 0?typeof h=="string"?c(m).fill(l,h):c(m).fill(l):c(m)}a.alloc=function(m,l,h){return g(m,l,h)};function y(m){return p(m),c(m<0?0:I(m)|0)}a.allocUnsafe=function(m){return y(m)},a.allocUnsafeSlow=function(m){return y(m)};function _(m,l){if((typeof l!="string"||l==="")&&(l="utf8"),!a.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const h=B(m,l)|0;let E=c(h);const P=E.write(m,l);return P!==h&&(E=E.slice(0,P)),E}function A(m){const l=m.length<0?0:I(m.length)|0,h=c(l);for(let E=0;E=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return m|0}function O(m){return+m!=m&&(m=0),a.alloc(+m)}a.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==a.prototype},a.compare=function(l,h){if(Je(l,Uint8Array)&&(l=a.from(l,l.offset,l.byteLength)),Je(h,Uint8Array)&&(h=a.from(h,h.offset,h.byteLength)),!a.isBuffer(l)||!a.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===h)return 0;let E=l.length,P=h.length;for(let D=0,U=Math.min(E,P);DP.length?(a.isBuffer(U)||(U=a.from(U)),U.copy(P,D)):Uint8Array.prototype.set.call(P,U,D);else if(a.isBuffer(U))U.copy(P,D);else throw new TypeError('"list" argument must be an Array of Buffers');D+=U.length}return P};function B(m,l){if(a.isBuffer(m))return m.length;if(ArrayBuffer.isView(m)||Je(m,ArrayBuffer))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);const h=m.length,E=arguments.length>2&&arguments[2]===!0;if(!E&&h===0)return 0;let P=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return re(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return Se(m).length;default:if(P)return E?-1:re(m).length;l=(""+l).toLowerCase(),P=!0}}a.byteLength=B;function V(m,l,h){let E=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,l>>>=0,h<=l))return"";for(m||(m="utf8");;)switch(m){case"hex":return k(this,l,h);case"utf8":case"utf-8":return o(this,l,h);case"ascii":return b(this,l,h);case"latin1":case"binary":return S(this,l,h);case"base64":return x(this,l,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,l,h);default:if(E)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),E=!0}}a.prototype._isBuffer=!0;function j(m,l,h){const E=m[l];m[l]=m[h],m[h]=E}a.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let h=0;hh&&(l+=" ... "),""},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(l,h,E,P,D){if(Je(l,Uint8Array)&&(l=a.from(l,l.offset,l.byteLength)),!a.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(h===void 0&&(h=0),E===void 0&&(E=l?l.length:0),P===void 0&&(P=0),D===void 0&&(D=this.length),h<0||E>l.length||P<0||D>this.length)throw new RangeError("out of range index");if(P>=D&&h>=E)return 0;if(P>=D)return-1;if(h>=E)return 1;if(h>>>=0,E>>>=0,P>>>=0,D>>>=0,this===l)return 0;let U=D-P,he=E-h;const ae=Math.min(U,he),ie=this.slice(P,D),Ce=l.slice(h,E);for(let ne=0;ne2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,ve(h)&&(h=P?0:m.length-1),h<0&&(h=m.length+h),h>=m.length){if(P)return-1;h=m.length-1}else if(h<0)if(P)h=0;else return-1;if(typeof l=="string"&&(l=a.from(l,E)),a.isBuffer(l))return l.length===0?-1:te(m,l,h,E,P);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(m,l,h):Uint8Array.prototype.lastIndexOf.call(m,l,h):te(m,[l],h,E,P);throw new TypeError("val must be string, number or Buffer")}function te(m,l,h,E,P){let D=1,U=m.length,he=l.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(m.length<2||l.length<2)return-1;D=2,U/=2,he/=2,h/=2}function ae(Ce,ne){return D===1?Ce[ne]:Ce.readUInt16BE(ne*D)}let ie;if(P){let Ce=-1;for(ie=h;ieU&&(h=U-he),ie=h;ie>=0;ie--){let Ce=!0;for(let ne=0;neP&&(E=P)):E=P;const D=l.length;E>D/2&&(E=D/2);let U;for(U=0;U>>0,isFinite(E)?(E=E>>>0,P===void 0&&(P="utf8")):(P=E,E=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const D=this.length-h;if((E===void 0||E>D)&&(E=D),l.length>0&&(E<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");let U=!1;for(;;)switch(P){case"hex":return Y(this,l,h,E);case"utf8":case"utf-8":return Q(this,l,h,E);case"ascii":case"latin1":case"binary":return fe(this,l,h,E);case"base64":return oe(this,l,h,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,l,h,E);default:if(U)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),U=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function x(m,l,h){return l===0&&h===m.length?t.fromByteArray(m):t.fromByteArray(m.slice(l,h))}function o(m,l,h){h=Math.min(m.length,h);const E=[];let P=l;for(;P239?4:D>223?3:D>191?2:1;if(P+he<=h){let ae,ie,Ce,ne;switch(he){case 1:D<128&&(U=D);break;case 2:ae=m[P+1],(ae&192)===128&&(ne=(D&31)<<6|ae&63,ne>127&&(U=ne));break;case 3:ae=m[P+1],ie=m[P+2],(ae&192)===128&&(ie&192)===128&&(ne=(D&15)<<12|(ae&63)<<6|ie&63,ne>2047&&(ne<55296||ne>57343)&&(U=ne));break;case 4:ae=m[P+1],ie=m[P+2],Ce=m[P+3],(ae&192)===128&&(ie&192)===128&&(Ce&192)===128&&(ne=(D&15)<<18|(ae&63)<<12|(ie&63)<<6|Ce&63,ne>65535&&ne<1114112&&(U=ne))}}U===null?(U=65533,he=1):U>65535&&(U-=65536,E.push(U>>>10&1023|55296),U=56320|U&1023),E.push(U),P+=he}return w(E)}const f=4096;function w(m){const l=m.length;if(l<=f)return String.fromCharCode.apply(String,m);let h="",E=0;for(;EE)&&(h=E);let P="";for(let D=l;DE&&(l=E),h<0?(h+=E,h<0&&(h=0)):h>E&&(h=E),hh)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(l,h,E){l=l>>>0,h=h>>>0,E||v(l,h,this.length);let P=this[l],D=1,U=0;for(;++U>>0,h=h>>>0,E||v(l,h,this.length);let P=this[l+--h],D=1;for(;h>0&&(D*=256);)P+=this[l+--h]*D;return P},a.prototype.readUint8=a.prototype.readUInt8=function(l,h){return l=l>>>0,h||v(l,1,this.length),this[l]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(l,h){return l=l>>>0,h||v(l,2,this.length),this[l]|this[l+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(l,h){return l=l>>>0,h||v(l,2,this.length),this[l]<<8|this[l+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(l,h){return l=l>>>0,h||v(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(l,h){return l=l>>>0,h||v(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},a.prototype.readBigUInt64LE=Qe(function(l){l=l>>>0,q(l,"offset");const h=this[l],E=this[l+7];(h===void 0||E===void 0)&&G(l,this.length-8);const P=h+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,D=this[++l]+this[++l]*2**8+this[++l]*2**16+E*2**24;return BigInt(P)+(BigInt(D)<>>0,q(l,"offset");const h=this[l],E=this[l+7];(h===void 0||E===void 0)&&G(l,this.length-8);const P=h*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],D=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+E;return(BigInt(P)<>>0,h=h>>>0,E||v(l,h,this.length);let P=this[l],D=1,U=0;for(;++U=D&&(P-=Math.pow(2,8*h)),P},a.prototype.readIntBE=function(l,h,E){l=l>>>0,h=h>>>0,E||v(l,h,this.length);let P=h,D=1,U=this[l+--P];for(;P>0&&(D*=256);)U+=this[l+--P]*D;return D*=128,U>=D&&(U-=Math.pow(2,8*h)),U},a.prototype.readInt8=function(l,h){return l=l>>>0,h||v(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},a.prototype.readInt16LE=function(l,h){l=l>>>0,h||v(l,2,this.length);const E=this[l]|this[l+1]<<8;return E&32768?E|4294901760:E},a.prototype.readInt16BE=function(l,h){l=l>>>0,h||v(l,2,this.length);const E=this[l+1]|this[l]<<8;return E&32768?E|4294901760:E},a.prototype.readInt32LE=function(l,h){return l=l>>>0,h||v(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},a.prototype.readInt32BE=function(l,h){return l=l>>>0,h||v(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},a.prototype.readBigInt64LE=Qe(function(l){l=l>>>0,q(l,"offset");const h=this[l],E=this[l+7];(h===void 0||E===void 0)&&G(l,this.length-8);const P=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(E<<24);return(BigInt(P)<>>0,q(l,"offset");const h=this[l],E=this[l+7];(h===void 0||E===void 0)&&G(l,this.length-8);const P=(h<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(P)<>>0,h||v(l,4,this.length),r.read(this,l,!0,23,4)},a.prototype.readFloatBE=function(l,h){return l=l>>>0,h||v(l,4,this.length),r.read(this,l,!1,23,4)},a.prototype.readDoubleLE=function(l,h){return l=l>>>0,h||v(l,8,this.length),r.read(this,l,!0,52,8)},a.prototype.readDoubleBE=function(l,h){return l=l>>>0,h||v(l,8,this.length),r.read(this,l,!1,52,8)};function u(m,l,h,E,P,D){if(!a.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>P||lm.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(l,h,E,P){if(l=+l,h=h>>>0,E=E>>>0,!P){const he=Math.pow(2,8*E)-1;u(this,l,h,E,he,0)}let D=1,U=0;for(this[h]=l&255;++U>>0,E=E>>>0,!P){const he=Math.pow(2,8*E)-1;u(this,l,h,E,he,0)}let D=E-1,U=1;for(this[h+D]=l&255;--D>=0&&(U*=256);)this[h+D]=l/U&255;return h+E},a.prototype.writeUint8=a.prototype.writeUInt8=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,1,255,0),this[h]=l&255,h+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,2,65535,0),this[h]=l&255,this[h+1]=l>>>8,h+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,2,65535,0),this[h]=l>>>8,this[h+1]=l&255,h+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,4,4294967295,0),this[h+3]=l>>>24,this[h+2]=l>>>16,this[h+1]=l>>>8,this[h]=l&255,h+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,4,4294967295,0),this[h]=l>>>24,this[h+1]=l>>>16,this[h+2]=l>>>8,this[h+3]=l&255,h+4};function R(m,l,h,E,P){M(l,E,P,m,h,7);let D=Number(l&BigInt(4294967295));m[h++]=D,D=D>>8,m[h++]=D,D=D>>8,m[h++]=D,D=D>>8,m[h++]=D;let U=Number(l>>BigInt(32)&BigInt(4294967295));return m[h++]=U,U=U>>8,m[h++]=U,U=U>>8,m[h++]=U,U=U>>8,m[h++]=U,h}function K(m,l,h,E,P){M(l,E,P,m,h,7);let D=Number(l&BigInt(4294967295));m[h+7]=D,D=D>>8,m[h+6]=D,D=D>>8,m[h+5]=D,D=D>>8,m[h+4]=D;let U=Number(l>>BigInt(32)&BigInt(4294967295));return m[h+3]=U,U=U>>8,m[h+2]=U,U=U>>8,m[h+1]=U,U=U>>8,m[h]=U,h+8}a.prototype.writeBigUInt64LE=Qe(function(l,h=0){return R(this,l,h,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Qe(function(l,h=0){return K(this,l,h,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(l,h,E,P){if(l=+l,h=h>>>0,!P){const ae=Math.pow(2,8*E-1);u(this,l,h,E,ae-1,-ae)}let D=0,U=1,he=0;for(this[h]=l&255;++D>0)-he&255;return h+E},a.prototype.writeIntBE=function(l,h,E,P){if(l=+l,h=h>>>0,!P){const ae=Math.pow(2,8*E-1);u(this,l,h,E,ae-1,-ae)}let D=E-1,U=1,he=0;for(this[h+D]=l&255;--D>=0&&(U*=256);)l<0&&he===0&&this[h+D+1]!==0&&(he=1),this[h+D]=(l/U>>0)-he&255;return h+E},a.prototype.writeInt8=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,1,127,-128),l<0&&(l=255+l+1),this[h]=l&255,h+1},a.prototype.writeInt16LE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,2,32767,-32768),this[h]=l&255,this[h+1]=l>>>8,h+2},a.prototype.writeInt16BE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,2,32767,-32768),this[h]=l>>>8,this[h+1]=l&255,h+2},a.prototype.writeInt32LE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,4,2147483647,-2147483648),this[h]=l&255,this[h+1]=l>>>8,this[h+2]=l>>>16,this[h+3]=l>>>24,h+4},a.prototype.writeInt32BE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[h]=l>>>24,this[h+1]=l>>>16,this[h+2]=l>>>8,this[h+3]=l&255,h+4},a.prototype.writeBigInt64LE=Qe(function(l,h=0){return R(this,l,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Qe(function(l,h=0){return K(this,l,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function J(m,l,h,E,P,D){if(h+E>m.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function T(m,l,h,E,P){return l=+l,h=h>>>0,P||J(m,l,h,4),r.write(m,l,h,E,23,4),h+4}a.prototype.writeFloatLE=function(l,h,E){return T(this,l,h,!0,E)},a.prototype.writeFloatBE=function(l,h,E){return T(this,l,h,!1,E)};function $(m,l,h,E,P){return l=+l,h=h>>>0,P||J(m,l,h,8),r.write(m,l,h,E,52,8),h+8}a.prototype.writeDoubleLE=function(l,h,E){return $(this,l,h,!0,E)},a.prototype.writeDoubleBE=function(l,h,E){return $(this,l,h,!1,E)},a.prototype.copy=function(l,h,E,P){if(!a.isBuffer(l))throw new TypeError("argument should be a Buffer");if(E||(E=0),!P&&P!==0&&(P=this.length),h>=l.length&&(h=l.length),h||(h=0),P>0&&P=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),l.length-h>>0,E=E===void 0?this.length:E>>>0,l||(l=0);let D;if(typeof l=="number")for(D=h;D2**32?P=le(String(h)):typeof h=="bigint"&&(P=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(P=le(P)),P+="n"),E+=` It must be ${l}. Received ${P}`,E},RangeError);function le(m){let l="",h=m.length;const E=m[0]==="-"?1:0;for(;h>=E+4;h-=3)l=`_${m.slice(h-3,h)}${l}`;return`${m.slice(0,h)}${l}`}function C(m,l,h){q(l,"offset"),(m[l]===void 0||m[l+h]===void 0)&&G(l,m.length-(h+1))}function M(m,l,h,E,P,D){if(m>h||m= 0${U} and < 2${U} ** ${(D+1)*8}${U}`:he=`>= -(2${U} ** ${(D+1)*8-1}${U}) and < 2 ** ${(D+1)*8-1}${U}`,new W.ERR_OUT_OF_RANGE("value",he,m)}C(E,P,D)}function q(m,l){if(typeof m!="number")throw new W.ERR_INVALID_ARG_TYPE(l,"number",m)}function G(m,l,h){throw Math.floor(m)!==m?(q(m,h),new W.ERR_OUT_OF_RANGE("offset","an integer",m)):l<0?new W.ERR_BUFFER_OUT_OF_BOUNDS:new W.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,m)}const se=/[^+/0-9A-Za-z-_]/g;function ue(m){if(m=m.split("=")[0],m=m.trim().replace(se,""),m.length<2)return"";for(;m.length%4!==0;)m=m+"=";return m}function re(m,l){l=l||1/0;let h;const E=m.length;let P=null;const D=[];for(let U=0;U55295&&h<57344){if(!P){if(h>56319){(l-=3)>-1&&D.push(239,191,189);continue}else if(U+1===E){(l-=3)>-1&&D.push(239,191,189);continue}P=h;continue}if(h<56320){(l-=3)>-1&&D.push(239,191,189),P=h;continue}h=(P-55296<<10|h-56320)+65536}else P&&(l-=3)>-1&&D.push(239,191,189);if(P=null,h<128){if((l-=1)<0)break;D.push(h)}else if(h<2048){if((l-=2)<0)break;D.push(h>>6|192,h&63|128)}else if(h<65536){if((l-=3)<0)break;D.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((l-=4)<0)break;D.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return D}function be(m){const l=[];for(let h=0;h>8,P=h%256,D.push(P),D.push(E);return D}function Se(m){return t.toByteArray(ue(m))}function Ee(m,l,h,E){let P;for(P=0;P=l.length||P>=m.length);++P)l[P+h]=m[P];return P}function Je(m,l){return m instanceof l||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===l.name}function ve(m){return m!==m}const Re=function(){const m="0123456789abcdef",l=new Array(256);for(let h=0;h<16;++h){const E=h*16;for(let P=0;P<16;++P)l[E+P]=m[h]+m[P]}return l}();function Qe(m){return typeof BigInt>"u"?_e:m}function _e(){throw new Error("BigInt not supported")}})(Sn);/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(e,t){var r=Sn,n=r.Buffer;function i(c,a){for(var d in c)a[d]=c[d]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=s);function s(c,a,d){return n(c,a,d)}s.prototype=Object.create(n.prototype),i(n,s),s.from=function(c,a,d){if(typeof c=="number")throw new TypeError("Argument must not be a number");return n(c,a,d)},s.alloc=function(c,a,d){if(typeof c!="number")throw new TypeError("Argument must be a number");var p=n(c);return a!==void 0?typeof d=="string"?p.fill(a,d):p.fill(a):p.fill(0),p},s.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return n(c)},s.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(c)}})(Us,Us.exports);var zt=Us.exports,Tc=zt.Buffer;function wi(e,t){this._block=Tc.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}wi.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=Tc.from(e,t));for(var r=this._block,n=this._blockSize,i=e.length,s=this._len,c=0;c=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(r&4294967295)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var s=this._hash();return e?s.toString(e):s};wi.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var tn=wi,ih=St,Nc=tn,sh=zt.Buffer,oh=[1518500249,1859775393,-1894007588,-899497514],ah=new Array(80);function Rn(){this.init(),this._w=ah,Nc.call(this,64,56)}ih(Rn,Nc);Rn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function ch(e){return e<<5|e>>>27}function lh(e){return e<<30|e>>>2}function uh(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}Rn.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,a=0;a<16;++a)t[a]=e.readInt32BE(a*4);for(;a<80;++a)t[a]=t[a-3]^t[a-8]^t[a-14]^t[a-16];for(var d=0;d<80;++d){var p=~~(d/20),g=ch(r)+uh(p,n,i,s)+c+t[d]+oh[p]|0;c=s,s=i,i=lh(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0};Rn.prototype._hash=function(){var e=sh.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var hh=Rn,dh=St,Lc=tn,fh=zt.Buffer,ph=[1518500249,1859775393,-1894007588,-899497514],gh=new Array(80);function Cn(){this.init(),this._w=gh,Lc.call(this,64,56)}dh(Cn,Lc);Cn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function mh(e){return e<<1|e>>>31}function wh(e){return e<<5|e>>>27}function yh(e){return e<<30|e>>>2}function bh(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}Cn.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,a=0;a<16;++a)t[a]=e.readInt32BE(a*4);for(;a<80;++a)t[a]=mh(t[a-3]^t[a-8]^t[a-14]^t[a-16]);for(var d=0;d<80;++d){var p=~~(d/20),g=wh(r)+bh(p,n,i,s)+c+t[d]+ph[p]|0;c=s,s=i,i=yh(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0};Cn.prototype._hash=function(){var e=fh.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var vh=Cn,_h=St,Bc=tn,Eh=zt.Buffer,Sh=[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],Rh=new Array(64);function Mn(){this.init(),this._w=Rh,Bc.call(this,64,56)}_h(Mn,Bc);Mn.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function Ch(e,t,r){return r^e&(t^r)}function Mh(e,t,r){return e&t|r&(e|t)}function kh(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function xh(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function Ih(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function Ah(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}Mn.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,a=this._f|0,d=this._g|0,p=this._h|0,g=0;g<16;++g)t[g]=e.readInt32BE(g*4);for(;g<64;++g)t[g]=Ah(t[g-2])+t[g-7]+Ih(t[g-15])+t[g-16]|0;for(var y=0;y<64;++y){var _=p+xh(c)+Ch(c,a,d)+Sh[y]+t[y]|0,A=kh(r)+Mh(r,n,i)|0;p=d,d=a,a=c,c=s+_|0,s=i,i=n,n=r,r=_+A|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=a+this._f|0,this._g=d+this._g|0,this._h=p+this._h|0};Mn.prototype._hash=function(){var e=Eh.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var Pc=Mn,Th=St,Nh=Pc,Lh=tn,Bh=zt.Buffer,Ph=new Array(64);function yi(){this.init(),this._w=Ph,Lh.call(this,64,56)}Th(yi,Nh);yi.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};yi.prototype._hash=function(){var e=Bh.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var Oh=yi,$h=St,Oc=tn,Fh=zt.Buffer,Do=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Dh=new Array(160);function kn(){this.init(),this._w=Dh,Oc.call(this,128,112)}$h(kn,Oc);kn.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function jo(e,t,r){return r^e&(t^r)}function Uo(e,t,r){return e&t|r&(e|t)}function Ho(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function Wo(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function jh(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Uh(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Hh(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Wh(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Ye(e,t){return e>>>0>>0?1:0}kn.prototype._update=function(e){for(var t=this._w,r=this._ah|0,n=this._bh|0,i=this._ch|0,s=this._dh|0,c=this._eh|0,a=this._fh|0,d=this._gh|0,p=this._hh|0,g=this._al|0,y=this._bl|0,_=this._cl|0,A=this._dl|0,L=this._el|0,H=this._fl|0,F=this._gl|0,I=this._hl|0,O=0;O<32;O+=2)t[O]=e.readInt32BE(O*4),t[O+1]=e.readInt32BE(O*4+4);for(;O<160;O+=2){var B=t[O-30],V=t[O-15*2+1],j=jh(B,V),z=Uh(V,B);B=t[O-2*2],V=t[O-2*2+1];var te=Hh(B,V),Y=Wh(V,B),Q=t[O-7*2],fe=t[O-7*2+1],oe=t[O-16*2],pe=t[O-16*2+1],x=z+fe|0,o=j+Q+Ye(x,z)|0;x=x+Y|0,o=o+te+Ye(x,Y)|0,x=x+pe|0,o=o+oe+Ye(x,pe)|0,t[O]=o,t[O+1]=x}for(var f=0;f<160;f+=2){o=t[f],x=t[f+1];var w=Uo(r,n,i),b=Uo(g,y,_),S=Ho(r,g),k=Ho(g,r),N=Wo(c,L),v=Wo(L,c),u=Do[f],R=Do[f+1],K=jo(c,a,d),J=jo(L,H,F),T=I+v|0,$=p+N+Ye(T,I)|0;T=T+J|0,$=$+K+Ye(T,J)|0,T=T+R|0,$=$+u+Ye(T,R)|0,T=T+x|0,$=$+o+Ye(T,x)|0;var W=k+b|0,Z=S+w+Ye(W,k)|0;p=d,I=F,d=a,F=H,a=c,H=L,L=A+T|0,c=s+$+Ye(L,A)|0,s=i,A=_,i=n,_=y,n=r,y=g,g=T+W|0,r=$+Z+Ye(g,T)|0}this._al=this._al+g|0,this._bl=this._bl+y|0,this._cl=this._cl+_|0,this._dl=this._dl+A|0,this._el=this._el+L|0,this._fl=this._fl+H|0,this._gl=this._gl+F|0,this._hl=this._hl+I|0,this._ah=this._ah+r+Ye(this._al,g)|0,this._bh=this._bh+n+Ye(this._bl,y)|0,this._ch=this._ch+i+Ye(this._cl,_)|0,this._dh=this._dh+s+Ye(this._dl,A)|0,this._eh=this._eh+c+Ye(this._el,L)|0,this._fh=this._fh+a+Ye(this._fl,H)|0,this._gh=this._gh+d+Ye(this._gl,F)|0,this._hh=this._hh+p+Ye(this._hl,I)|0};kn.prototype._hash=function(){var e=Fh.allocUnsafe(64);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var $c=kn,Vh=St,qh=$c,zh=tn,Gh=zt.Buffer,Jh=new Array(160);function bi(){this.init(),this._w=Jh,zh.call(this,128,112)}Vh(bi,qh);bi.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};bi.prototype._hash=function(){var e=Gh.allocUnsafe(48);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var Zh=bi,br=Ic.exports=function(t){t=t.toLowerCase();var r=br[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r};br.sha=hh;br.sha1=vh;br.sha224=Oh;br.sha256=Pc;br.sha384=Zh;br.sha512=$c;var Kh=Ic.exports;Object.defineProperty(en,"__esModule",{value:!0});en.Session=void 0;const Vo=Kh,qo=X,zo="session:id",Go="session:secret",Jo="session:linked";class eo{constructor(t,r,n,i){this._storage=t,this._id=r||(0,qo.randomBytesHex)(16),this._secret=n||(0,qo.randomBytesHex)(32),this._key=new Vo.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!i}static load(t){const r=t.getItem(zo),n=t.getItem(Jo),i=t.getItem(Go);return r&&i?new eo(t,r,i,n==="1"):null}static hash(t){return new Vo.sha256().update(t).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(t){this._linked=t,this.persistLinked()}save(){return this._storage.setItem(zo,this._id),this._storage.setItem(Go,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(Jo,this._linked?"1":"0")}}en.Session=eo;var vi={},_i={};Object.defineProperty(_i,"__esModule",{value:!0});_i.Cipher=void 0;const Wn=X;class Qh{constructor(t){this.secret=t}async encrypt(t){const r=this.secret;if(r.length!==64)throw Error("secret must be 256 bits");const n=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey("raw",(0,Wn.hexStringToUint8Array)(r),{name:"aes-gcm"},!1,["encrypt","decrypt"]),s=new TextEncoder,c=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},i,s.encode(t)),a=16,d=c.slice(c.byteLength-a),p=c.slice(0,c.byteLength-a),g=new Uint8Array(d),y=new Uint8Array(p),_=new Uint8Array([...n,...g,...y]);return(0,Wn.uint8ArrayToHex)(_)}async decrypt(t){const r=this.secret;if(r.length!==64)throw Error("secret must be 256 bits");return new Promise((n,i)=>{(async function(){const s=await crypto.subtle.importKey("raw",(0,Wn.hexStringToUint8Array)(r),{name:"aes-gcm"},!1,["encrypt","decrypt"]),c=(0,Wn.hexStringToUint8Array)(t),a=c.slice(0,12),d=c.slice(12,28),p=c.slice(28),g=new Uint8Array([...p,...d]),y={name:"AES-GCM",iv:new Uint8Array(a)};try{const _=await window.crypto.subtle.decrypt(y,s,g),A=new TextDecoder;n(A.decode(_))}catch(_){i(_)}})()})}}_i.Cipher=Qh;var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0});Ei.WalletLinkHTTP=void 0;class Yh{constructor(t,r,n){this.linkAPIUrl=t,this.sessionId=r;const i=`${r}:${n}`;this.auth=`Basic ${btoa(i)}`}async markUnseenEventsAsSeen(t){return Promise.all(t.map(r=>fetch(`${this.linkAPIUrl}/events/${r.eventId}/seen`,{method:"POST",headers:{Authorization:this.auth}}))).catch(r=>console.error("Unabled to mark event as failed:",r))}async fetchUnseenEvents(){var t;const r=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(r.ok){const{events:n,error:i}=await r.json();if(i)throw new Error(`Check unseen events failed: ${i}`);const s=(t=n==null?void 0:n.filter(c=>c.event==="Web3Response").map(c=>({type:"Event",sessionId:this.sessionId,eventId:c.id,event:c.event,data:c.data})))!==null&&t!==void 0?t:[];return this.markUnseenEventsAsSeen(s),s}throw new Error(`Check unseen events failed: ${r.status}`)}}Ei.WalletLinkHTTP=Yh;var qr={};Object.defineProperty(qr,"__esModule",{value:!0});qr.WalletLinkWebSocket=qr.ConnectionState=void 0;var Dr;(function(e){e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED"})(Dr||(qr.ConnectionState=Dr={}));class Xh{setConnectionStateListener(t){this.connectionStateListener=t}setIncomingDataListener(t){this.incomingDataListener=t}constructor(t,r=WebSocket){this.WebSocketClass=r,this.webSocket=null,this.pendingData=[],this.url=t.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw new Error("webSocket object is not null");return new Promise((t,r)=>{var n;let i;try{this.webSocket=i=new this.WebSocketClass(this.url)}catch(s){r(s);return}(n=this.connectionStateListener)===null||n===void 0||n.call(this,Dr.CONNECTING),i.onclose=s=>{var c;this.clearWebSocket(),r(new Error(`websocket error ${s.code}: ${s.reason}`)),(c=this.connectionStateListener)===null||c===void 0||c.call(this,Dr.DISCONNECTED)},i.onopen=s=>{var c;t(),(c=this.connectionStateListener)===null||c===void 0||c.call(this,Dr.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(d=>this.sendData(d)),this.pendingData=[])},i.onmessage=s=>{var c,a;if(s.data==="h")(c=this.incomingDataListener)===null||c===void 0||c.call(this,{type:"Heartbeat"});else try{const d=JSON.parse(s.data);(a=this.incomingDataListener)===null||a===void 0||a.call(this,d)}catch{}}})}disconnect(){var t;const{webSocket:r}=this;if(r){this.clearWebSocket(),(t=this.connectionStateListener)===null||t===void 0||t.call(this,Dr.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{r.close()}catch{}}}sendData(t){const{webSocket:r}=this;if(!r){this.pendingData.push(t),this.connect();return}r.send(t)}clearWebSocket(){const{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}}qr.WalletLinkWebSocket=Xh;Object.defineProperty(vi,"__esModule",{value:!0});vi.WalletLinkConnection=void 0;const Lr=Ze,ed=_i,Mt=Xr,Zo=wt,Br=en,td=Ei,Vn=qr,Ko=1e4,rd=6e4;class nd{constructor({session:t,linkAPIUrl:r,listener:n,diagnostic:i,WebSocketClass:s=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,Lr.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=a=>{if(!a)return;new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",p=>a.JsonRpcUrl&&this.handleChainUpdated(p,a.JsonRpcUrl)]]).forEach((p,g)=>{const y=a[g];y!==void 0&&p(y)})},this.handleDestroyed=a=>{var d,p;a==="1"&&((d=this.listener)===null||d===void 0||d.resetAndReload(),(p=this.diagnostic)===null||p===void 0||p.log(Mt.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:Br.Session.hash(this.session.id)}))},this.handleAccountUpdated=async a=>{var d,p;try{const g=await this.cipher.decrypt(a);(d=this.listener)===null||d===void 0||d.accountUpdated(g)}catch{(p=this.diagnostic)===null||p===void 0||p.log(Mt.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}},this.handleMetadataUpdated=async(a,d)=>{var p,g;try{const y=await this.cipher.decrypt(d);(p=this.listener)===null||p===void 0||p.metadataUpdated(a,y)}catch{(g=this.diagnostic)===null||g===void 0||g.log(Mt.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:a})}},this.handleWalletUsernameUpdated=async a=>{this.handleMetadataUpdated(Zo.WALLET_USER_NAME_KEY,a)},this.handleAppVersionUpdated=async a=>{this.handleMetadataUpdated(Zo.APP_VERSION_KEY,a)},this.handleChainUpdated=async(a,d)=>{var p,g;try{const y=await this.cipher.decrypt(a),_=await this.cipher.decrypt(d);(p=this.listener)===null||p===void 0||p.chainUpdated(y,_)}catch{(g=this.diagnostic)===null||g===void 0||g.log(Mt.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}},this.session=t,this.cipher=new ed.Cipher(t.secret),this.diagnostic=i,this.listener=n;const c=new Vn.WalletLinkWebSocket(`${r}/rpc`,s);c.setConnectionStateListener(async a=>{var d;(d=this.diagnostic)===null||d===void 0||d.log(Mt.EVENTS.CONNECTED_STATE_CHANGE,{state:a,sessionIdHash:Br.Session.hash(t.id)});let p=!1;switch(a){case Vn.ConnectionState.DISCONNECTED:if(!this.destroyed){const g=async()=>{await new Promise(y=>setTimeout(y,5e3)),this.destroyed||c.connect().catch(()=>{g()})};g()}break;case Vn.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),p=!0}catch{}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},Ko),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case Vn.ConnectionState.CONNECTING:break}this.connected!==p&&(this.connected=p)}),c.setIncomingDataListener(a=>{var d,p,g;switch(a.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{const y=a.type==="IsLinkedOK"?a.linked:void 0;(d=this.diagnostic)===null||d===void 0||d.log(Mt.EVENTS.LINKED,{sessionIdHash:Br.Session.hash(t.id),linked:y,type:a.type,onlineGuests:a.onlineGuests}),this.linked=y||a.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":{(p=this.diagnostic)===null||p===void 0||p.log(Mt.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:Br.Session.hash(t.id),metadata_keys:a&&a.metadata?Object.keys(a.metadata):void 0}),this.handleSessionMetadataUpdated(a.metadata);break}case"Event":{this.handleIncomingEvent(a);break}}a.id!==void 0&&((g=this.requestResolutions.get(a.id))===null||g===void 0||g(a))}),this.ws=c,this.http=new td.WalletLinkHTTP(r,t.id,t.key)}connect(){var t;if(this.destroyed)throw new Error("instance is destroyed");(t=this.diagnostic)===null||t===void 0||t.log(Mt.EVENTS.STARTED_CONNECTING,{sessionIdHash:Br.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var t;this.destroyed=!0,this.ws.disconnect(),(t=this.diagnostic)===null||t===void 0||t.log(Mt.EVENTS.DISCONNECTED,{sessionIdHash:Br.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(t){var r,n;this._connected=t,t&&((r=this.onceConnected)===null||r===void 0||r.call(this)),(n=this.listener)===null||n===void 0||n.connectedUpdated(t)}setOnceConnected(t){return new Promise(r=>{this.connected?t().then(r):this.onceConnected=()=>{t().then(r),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(t){var r,n;this._linked=t,t&&((r=this.onceLinked)===null||r===void 0||r.call(this)),(n=this.listener)===null||n===void 0||n.linkedUpdated(t)}setOnceLinked(t){return new Promise(r=>{this.linked?t().then(r):this.onceLinked=()=>{t().then(r),this.onceLinked=void 0}})}async handleIncomingEvent(t){var r,n;if(!(t.type!=="Event"||t.event!=="Web3Response"))try{const i=await this.cipher.decrypt(t.data),s=JSON.parse(i);if(s.type!=="WEB3_RESPONSE")return;(r=this.listener)===null||r===void 0||r.handleWeb3ResponseMessage(s)}catch{(n=this.diagnostic)===null||n===void 0||n.log(Mt.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(t=>setTimeout(t,250));try{await this.fetchUnseenEventsAPI()}catch(t){console.error("Unable to check for unseen events",t)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(r=>this.handleIncomingEvent(r))}async setSessionMetadata(t,r){const n={type:"SetSessionConfig",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[t]:r}};return this.setOnceConnected(async()=>{const i=await this.makeRequest(n);if(i.type==="Fail")throw new Error(i.error||"failed to set session metadata")})}async publishEvent(t,r,n=!1){const i=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},r),{origin:location.origin,relaySource:window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),s={type:"PublishEvent",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:t,data:i,callWebhook:n};return this.setOnceLinked(async()=>{const c=await this.makeRequest(s);if(c.type==="Fail")throw new Error(c.error||"failed to publish event");return c.eventId})}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>Ko*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}async makeRequest(t,r=rd){const n=t.id;this.sendData(t);let i;return Promise.race([new Promise((s,c)=>{i=window.setTimeout(()=>{c(new Error(`request ${n} timed out`))},r)}),new Promise(s=>{this.requestResolutions.set(n,c=>{clearTimeout(i),s(c),this.requestResolutions.delete(n)})})])}async authenticate(){const t={type:"HostSession",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},r=await this.makeRequest(t);if(r.type==="Fail")throw new Error(r.error||"failed to authentcate")}sendIsLinked(){const t={type:"IsLinked",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}sendGetSessionConfig(){const t={type:"GetSessionConfig",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}}vi.WalletLinkConnection=nd;var xn={},In={},to={};Object.defineProperty(to,"__esModule",{value:!0});to.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}';var id=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(In,"__esModule",{value:!0});In.injectCssReset=void 0;const sd=id(to);function od(){const e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(sd.default)),document.documentElement.appendChild(e)}In.injectCssReset=od;var Si={};const at=mn(wu);var Ri={};function Fc(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t65536?(n[0]=240|(i&1835008)>>>18,n[1]=128|(i&258048)>>>12,n[2]=128|(i&4032)>>>6,n[3]=128|i&63):i>2048?(n[0]=224|(i&61440)>>>12,n[1]=128|(i&4032)>>>6,n[2]=128|i&63):i>128?(n[0]=192|(i&1984)>>>6,n[1]=128|i&63):n[0]=i,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}Dc.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,r=this.parsedData.length;t=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=Lt.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(0<=r&&r<=6&&(n==0||n==6)||0<=n&&n<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[e+r][t+n]=!0:this.modules[e+r][t+n]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=Ve.getLostPoint(this);(r==0||e>n)&&(e=n,t=r)}return t},createMovieClip:function(e,t,r){var n=e.createEmptyMovieClip(t,r),i=1;this.make();for(var s=0;s>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=Ve.getBCHTypeInfo(r),i=0;i<15;i++){var s=!e&&(n>>i&1)==1;i<6?this.modules[i][8]=s:i<8?this.modules[i+1][8]=s:this.modules[this.moduleCount-15+i][8]=s}for(var i=0;i<15;i++){var s=!e&&(n>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=s:i<9?this.modules[8][15-i-1+1]=s:this.modules[8][15-i-1]=s}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,s=0,c=this.moduleCount-1;c>0;c-=2)for(c==6&&c--;;){for(var a=0;a<2;a++)if(this.modules[n][c-a]==null){var d=!1;s>>i&1)==1);var p=Ve.getMask(t,n,c-a);p&&(d=!d),this.modules[n][c-a]=d,i--,i==-1&&(s++,i=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}};Lt.PAD0=236;Lt.PAD1=17;Lt.createData=function(e,t,r){for(var n=Nt.getRSBlocks(e,t),i=new jc,s=0;sa*8)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+a*8+")");for(i.getLengthInBits()+4<=a*8&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=a*8||(i.put(Lt.PAD0,8),i.getLengthInBits()>=a*8));)i.put(Lt.PAD1,8);return Lt.createBytes(i,n)};Lt.createBytes=function(e,t){for(var r=0,n=0,i=0,s=new Array(t.length),c=new Array(t.length),a=0;a=0?A.get(L):0}}for(var H=0,g=0;g=0;)t^=Ve.G15<=0;)t^=Ve.G18<>>=1;return t},getPatternPosition:function(e){return Ve.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case jt.PATTERN000:return(t+r)%2==0;case jt.PATTERN001:return t%2==0;case jt.PATTERN010:return r%3==0;case jt.PATTERN011:return(t+r)%3==0;case jt.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case jt.PATTERN101:return t*r%2+t*r%3==0;case jt.PATTERN110:return(t*r%2+t*r%3)%2==0;case jt.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new jr([1],0),r=0;r5&&(r+=3+s-5)}for(var n=0;n=256;)e-=255;return Xe.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var tt=0;tt<8;tt++)Xe.EXP_TABLE[tt]=1<>>7-e%8&1)==1},put:function(e,t){for(var r=0;r>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var hs=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function Uc(e){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof e=="string"&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function r(d){switch(d){case"L":return Wt.L;case"M":return Wt.M;case"Q":return Wt.Q;case"H":return Wt.H;default:throw new Error("Unknwon error correction level: "+d)}}function n(d,p){for(var g=i(d),y=1,_=0,A=0,L=hs.length;A<=L;A++){var H=hs[A];if(!H)throw new Error("Content too long: expected "+_+" but got "+g);switch(p){case"L":_=H[0];break;case"M":_=H[1];break;case"Q":_=H[2];break;case"H":_=H[3];break;default:throw new Error("Unknwon error correction level: "+p)}if(g<=_)break;y++}if(y>hs.length)throw new Error("Content too long");return y}function i(d){var p=encodeURI(d).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return p.length+(p.length!=d?3:0)}var s=this.options.content,c=n(s,this.options.ecl),a=r(this.options.ecl);this.qrcode=new Lt(c,a),this.qrcode.addData(s),this.qrcode.make()}Uc.prototype.svg=function(e){var t=this.options||{},r=this.qrcode.modules;typeof e>"u"&&(e={container:t.container||"svg"});for(var n=typeof t.pretty<"u"?!!t.pretty:!0,i=n?" ":"",s=n?`\r -`:"",c=t.width,a=t.height,d=r.length,p=c/(d+2*t.padding),g=a/(d+2*t.padding),y=typeof t.join<"u"?!!t.join:!1,_=typeof t.swap<"u"?!!t.swap:!1,A=typeof t.xmlDeclaration<"u"?!!t.xmlDeclaration:!0,L=typeof t.predefined<"u"?!!t.predefined:!1,H=L?i+''+s:"",F=i+''+s,I="",O="",B=0;B'+s:I+=i+''+s}}y&&(I=i+'');let oe="";if(this.options.image!==void 0&&this.options.image.svg){const x=c*this.options.image.width/100,o=a*this.options.image.height/100,f=c/2-x/2,w=a/2-o/2;oe+=``,oe+=this.options.image.svg+s,oe+=""}var pe="";switch(e.container){case"svg":A&&(pe+=''+s),pe+=''+s,pe+=H+F+I,pe+=oe,pe+="";break;case"svg-viewbox":A&&(pe+=''+s),pe+=''+s,pe+=H+F+I,pe+=oe,pe+="";break;case"g":pe+=''+s,pe+=H+F+I,pe+=oe,pe+="";break;default:pe+=(H+F+I+oe).replace(/^\s+/,"");break}return pe};var hd=Uc,dd=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ii,"__esModule",{value:!0});Ii.QRCode=void 0;const fd=at,Xo=Ci,pd=dd(hd),gd=e=>{const[t,r]=(0,Xo.useState)("");return(0,Xo.useEffect)(()=>{var n,i;const s=new pd.default({content:e.content,background:e.bgColor||"#ffffff",color:e.fgColor||"#000000",container:"svg",ecl:"M",width:(n=e.width)!==null&&n!==void 0?n:256,height:(i=e.height)!==null&&i!==void 0?i:256,padding:0,image:e.image}),c=Buffer.from(s.svg(),"utf8").toString("base64");r(`data:image/svg+xml;base64,${c}`)},[e.bgColor,e.content,e.fgColor,e.height,e.image,e.width]),t?(0,fd.h)("img",{src:t,alt:"QR Code"}):null};Ii.QRCode=gd;var Ai={},ro={};Object.defineProperty(ro,"__esModule",{value:!0});ro.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}";var md=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.Spinner=void 0;const zn=at,wd=md(ro),yd=e=>{var t;const r=(t=e.size)!==null&&t!==void 0?t:64,n=e.color||"#000";return(0,zn.h)("div",{class:"-cbwsdk-spinner"},(0,zn.h)("style",null,wd.default),(0,zn.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:r,height:r}},(0,zn.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))};Ai.Spinner=yd;var no={};Object.defineProperty(no,"__esModule",{value:!0});no.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer;border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}";var Hc=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zr,"__esModule",{value:!0});zr.CoinbaseWalletSteps=zr.ConnectContent=void 0;const gr=Hc(An),we=at,bd=X,vd=Yr,_d=Mi,Ed=ki,Sd=xi,Rd=Ii,Cd=Ai,Md=Hc(no),ds={title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",steps:Wc},kd=e=>e==="light"?"#FFFFFF":"#0A0B0D";function xd(e){const{theme:t}=e,r=(0,bd.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId),n=ds.steps;return(0,we.h)("div",{"data-testid":"connect-content",className:(0,gr.default)("-cbwsdk-connect-content",t)},(0,we.h)("style",null,Md.default),(0,we.h)("div",{className:"-cbwsdk-connect-content-header"},(0,we.h)("h2",{className:(0,gr.default)("-cbwsdk-connect-content-heading",t)},"Scan to connect with our mobile app"),e.onCancel&&(0,we.h)("button",{type:"button",className:"-cbwsdk-cancel-button",onClick:e.onCancel},(0,we.h)(_d.CloseIcon,{fill:t==="light"?"#0A0B0D":"#FFFFFF"}))),(0,we.h)("div",{className:"-cbwsdk-connect-content-layout"},(0,we.h)("div",{className:"-cbwsdk-connect-content-column-left"},(0,we.h)(Id,{title:ds.title,description:ds.description,theme:t})),(0,we.h)("div",{className:"-cbwsdk-connect-content-column-right"},(0,we.h)("div",{className:"-cbwsdk-connect-content-qr-wrapper"},(0,we.h)(Rd.QRCode,{content:r,width:200,height:200,fgColor:"#000",bgColor:"transparent"}),(0,we.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:vd.LIB_VERSION}),(0,we.h)("input",{type:"hidden",value:r})),(0,we.h)(n,{theme:t}),!e.isConnected&&(0,we.h)("div",{"data-testid":"connecting-spinner",className:(0,gr.default)("-cbwsdk-connect-content-qr-connecting",t)},(0,we.h)(Cd.Spinner,{size:36,color:t==="dark"?"#FFF":"#000"}),(0,we.h)("p",null,"Connecting...")))))}zr.ConnectContent=xd;function Id({title:e,description:t,theme:r}){return(0,we.h)("div",{className:(0,gr.default)("-cbwsdk-connect-item",r)},(0,we.h)("div",null,(0,we.h)(Ed.CoinbaseWalletRound,null)),(0,we.h)("div",{className:"-cbwsdk-connect-item-copy-wrapper"},(0,we.h)("h3",{className:"-cbwsdk-connect-item-title"},e),(0,we.h)("p",{className:"-cbwsdk-connect-item-description"},t)))}function Wc({theme:e}){return(0,we.h)("ol",{className:"-cbwsdk-wallet-steps"},(0,we.h)("li",{className:(0,gr.default)("-cbwsdk-wallet-steps-item",e)},(0,we.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,we.h)("li",{className:(0,gr.default)("-cbwsdk-wallet-steps-item",e)},(0,we.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},(0,we.h)("span",null,"Tap ",(0,we.h)("strong",null,"Scan")," "),(0,we.h)("span",{className:(0,gr.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,we.h)(Sd.QRCodeIcon,{fill:kd(e)})))))}zr.CoinbaseWalletSteps=Wc;var Ti={},Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ArrowLeftIcon=void 0;const ea=at;function Ad(e){return(0,ea.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,ea.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}Ni.ArrowLeftIcon=Ad;var Li={};Object.defineProperty(Li,"__esModule",{value:!0});Li.LaptopIcon=void 0;const fs=at;function Td(e){return(0,fs.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,fs.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,fs.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}Li.LaptopIcon=Td;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});Bi.SafeIcon=void 0;const ta=at;function Nd(e){return(0,ta.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,ta.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}Bi.SafeIcon=Nd;var io={};Object.defineProperty(io,"__esModule",{value:!0});io.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}";var Vc=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.TryExtensionContent=void 0;const ar=Vc(An),Ge=at,ps=Ci,Ld=Ni,Bd=Li,Pd=Bi,Od=Vc(io);function $d({theme:e}){const[t,r]=(0,ps.useState)(!1),n=(0,ps.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),i=(0,ps.useCallback)(()=>{t?window.location.reload():(n(),r(!0))},[n,t]);return(0,Ge.h)("div",{class:(0,ar.default)("-cbwsdk-try-extension",e)},(0,Ge.h)("style",null,Od.default),(0,Ge.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Ge.h)("h3",{class:(0,ar.default)("-cbwsdk-try-extension-heading",e)},"Or try the Coinbase Wallet browser extension"),(0,Ge.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,Ge.h)("button",{class:(0,ar.default)("-cbwsdk-try-extension-cta",e),onClick:i},t?"Refresh":"Install"),(0,Ge.h)("div",null,!t&&(0,Ge.h)(Ld.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:e==="light"?"#0052FF":"#588AF5"})))),(0,Ge.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Ge.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,Ge.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Ge.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Ge.h)("span",{class:(0,ar.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,Ge.h)(Bd.LaptopIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Ge.h)("div",{class:(0,ar.default)("-cbwsdk-try-extension-list-item-copy",e)},"Connect with dapps with just one click on your desktop browser")),(0,Ge.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Ge.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Ge.h)("span",{class:(0,ar.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,Ge.h)(Pd.SafeIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Ge.h)("div",{class:(0,ar.default)("-cbwsdk-try-extension-list-item-copy",e)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}Ti.TryExtensionContent=$d;var so={};Object.defineProperty(so,"__esModule",{value:!0});so.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}";var qc=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.ConnectDialog=void 0;const gs=qc(An),cr=at,ms=Ci,Fd=zr,Dd=Ti,jd=qc(so),Ud=e=>{const{isOpen:t,darkMode:r}=e,[n,i]=(0,ms.useState)(!t),[s,c]=(0,ms.useState)(!t);(0,ms.useEffect)(()=>{const d=[window.setTimeout(()=>{c(!t)},10)];return t?i(!1):d.push(window.setTimeout(()=>{i(!0)},360)),()=>{d.forEach(window.clearTimeout)}},[t]);const a=r?"dark":"light";return(0,cr.h)("div",{class:(0,gs.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,cr.h)("style",null,jd.default),(0,cr.h)("div",{class:(0,gs.default)("-cbwsdk-connect-dialog-backdrop",a,s&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,cr.h)("div",{class:"-cbwsdk-connect-dialog"},(0,cr.h)("div",{class:(0,gs.default)("-cbwsdk-connect-dialog-box",s&&"-cbwsdk-connect-dialog-box-hidden")},e.connectDisabled?null:(0,cr.h)(Fd.ConnectContent,{theme:a,version:e.version,sessionId:e.sessionId,sessionSecret:e.sessionSecret,linkAPIUrl:e.linkAPIUrl,isConnected:e.isConnected,isParentConnection:e.isParentConnection,chainId:e.chainId,onCancel:e.onCancel}),(0,cr.h)(Dd.TryExtensionContent,{theme:a}))))};Ri.ConnectDialog=Ud;Object.defineProperty(Si,"__esModule",{value:!0});Si.LinkFlow=void 0;const ws=at,Hd=Ri;class Wd{constructor(t){this.connected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=t.darkMode,this.version=t.version,this.sessionId=t.sessionId,this.sessionSecret=t.sessionSecret,this.linkAPIUrl=t.linkAPIUrl,this.isParentConnection=t.isParentConnection}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",t.appendChild(this.root),this.render()}setConnected(t){this.connected!==t&&(this.connected=t,this.render())}setChainId(t){this.chainId!==t&&(this.chainId=t,this.render())}detach(){var t;this.root&&((0,ws.render)(null,this.root),(t=this.root.parentElement)===null||t===void 0||t.removeChild(this.root))}setConnectDisabled(t){this.connectDisabled=t}open(t){this.isOpen=!0,this.onCancel=t.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){this.root&&(0,ws.render)((0,ws.h)(Hd.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.connected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}}Si.LinkFlow=Wd;var oo={},ao={};Object.defineProperty(ao,"__esModule",{value:!0});ao.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}";(function(e){var t=ee&&ee.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.SnackbarInstance=e.SnackbarContainer=e.Snackbar=void 0;const r=t(An),n=at,i=Ci,s=t(ao),c="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";class d{constructor(_){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=_.darkMode}attach(_){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",_.appendChild(this.root),this.render()}presentItem(_){const A=this.nextItemKey++;return this.items.set(A,_),this.render(),()=>{this.items.delete(A),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,n.render)((0,n.h)("div",null,(0,n.h)(e.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([_,A])=>(0,n.h)(e.SnackbarInstance,Object.assign({},A,{key:_}))))),this.root)}}e.Snackbar=d;const p=y=>(0,n.h)("div",{class:(0,r.default)("-cbwsdk-snackbar-container")},(0,n.h)("style",null,s.default),(0,n.h)("div",{class:"-cbwsdk-snackbar"},y.children));e.SnackbarContainer=p;const g=({autoExpand:y,message:_,menuItems:A})=>{const[L,H]=(0,i.useState)(!0),[F,I]=(0,i.useState)(y??!1);(0,i.useEffect)(()=>{const B=[window.setTimeout(()=>{H(!1)},1),window.setTimeout(()=>{I(!0)},1e4)];return()=>{B.forEach(window.clearTimeout)}});const O=()=>{I(!F)};return(0,n.h)("div",{class:(0,r.default)("-cbwsdk-snackbar-instance",L&&"-cbwsdk-snackbar-instance-hidden",F&&"-cbwsdk-snackbar-instance-expanded")},(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:O},(0,n.h)("img",{src:c,class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},_),(0,n.h)("div",{class:"-gear-container"},!F&&(0,n.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,n.h)("img",{src:a,class:"-gear-icon",title:"Expand"}))),A&&A.length>0&&(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},A.map((B,V)=>(0,n.h)("div",{class:(0,r.default)("-cbwsdk-snackbar-instance-menu-item",B.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:B.onClick,key:V},(0,n.h)("svg",{width:B.svgWidth,height:B.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("path",{"fill-rule":B.defaultFillRule,"clip-rule":B.defaultClipRule,d:B.path,fill:"#AAAAAA"})),(0,n.h)("span",{class:(0,r.default)("-cbwsdk-snackbar-instance-menu-item-info",B.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},B.info)))))};e.SnackbarInstance=g})(oo);Object.defineProperty(xn,"__esModule",{value:!0});xn.WalletLinkRelayUI=void 0;const Vd=In,qd=Si,zd=oo;class Gd{constructor(t){this.standalone=null,this.attached=!1,this.snackbar=new zd.Snackbar({darkMode:t.darkMode}),this.linkFlow=new qd.LinkFlow({darkMode:t.darkMode,version:t.version,sessionId:t.session.id,sessionSecret:t.session.secret,linkAPIUrl:t.linkAPIUrl,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const t=document.documentElement,r=document.createElement("div");r.className="-cbwsdk-css-reset",t.appendChild(r),this.linkFlow.attach(r),this.snackbar.attach(r),this.attached=!0,(0,Vd.injectCssReset)()}setConnected(t){this.linkFlow.setConnected(t)}setChainId(t){this.linkFlow.setChainId(t)}setConnectDisabled(t){this.linkFlow.setConnectDisabled(t)}addEthereumChain(){}watchAsset(){}switchEthereumChain(){}requestEthereumAccounts(t){this.linkFlow.open({onCancel:t.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}showConnecting(t){let r;return t.isUnlinkedErrorState?r={autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]}:r={message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:t.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]},this.snackbar.presentItem(r)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(t){this.standalone=t}isStandalone(){var t;return(t=this.standalone)!==null&&t!==void 0?t:!1}}xn.WalletLinkRelayUI=Gd;Object.defineProperty(En,"__esModule",{value:!0});En.WalletLinkRelay=void 0;const Pr=wn,Jd=Ze,We=X,lr=Xr,ra=wt,Ut=en,Zd=vi,ur=Qr,Kd=xn;class $t extends ra.RelayAbstract{constructor(t){var r;super(),this.accountsCallback=null,this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.chainCallback=null,this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.linkedUpdated=c=>{var a;this.isLinked=c;const d=this.storage.getItem(ra.LOCAL_STORAGE_ADDRESSES_KEY);if(c&&(this.session.linked=c),this.isUnlinkedErrorState=!1,d){const p=d.split(" "),g=this.storage.getItem("IsStandaloneSigning")==="true";if(p[0]!==""&&!c&&this.session.linked&&!g){this.isUnlinkedErrorState=!0;const y=this.getSessionIdHash();(a=this.diagnostic)===null||a===void 0||a.log(lr.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:y})}}},this.metadataUpdated=(c,a)=>{this.storage.setItem(c,a)},this.chainUpdated=(c,a)=>{this.chainCallbackParams.chainId===c&&this.chainCallbackParams.jsonRpcUrl===a||(this.chainCallbackParams={chainId:c,jsonRpcUrl:a},this.chainCallback&&this.chainCallback(c,a))},this.accountUpdated=c=>{this.accountsCallback&&this.accountsCallback([c]),$t.accountRequestCallbackIds.size>0&&(Array.from($t.accountRequestCallbackIds.values()).forEach(a=>{const d={type:"WEB3_RESPONSE",id:a,response:{method:"requestEthereumAccounts",result:[c]}};this.invokeCallback(Object.assign(Object.assign({},d),{id:a}))}),$t.accountRequestCallbackIds.clear())},this.connectedUpdated=c=>{this.ui.setConnected(c)},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.options=t;const{session:n,ui:i,connection:s}=this.subscribe();this._session=n,this.connection=s,this.relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this._reloadOnDisconnect=(r=t.reloadOnDisconnect)!==null&&r!==void 0?r:!0,this.ui=i}subscribe(){const t=Ut.Session.load(this.storage)||new Ut.Session(this.storage).save(),{linkAPIUrl:r,diagnostic:n}=this,i=new Zd.WalletLinkConnection({session:t,linkAPIUrl:r,diagnostic:n,listener:this}),{version:s,darkMode:c}=this.options,a=this.options.uiConstructor({linkAPIUrl:r,version:s,darkMode:c,session:t});return i.connect(),{session:t,ui:a,connection:i}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata("__destroyed","1"),new Promise(t=>setTimeout(()=>t(null),1e3))]).then(()=>{var t,r;const n=this.ui.isStandalone();(t=this.diagnostic)===null||t===void 0||t.log(lr.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const i=Ut.Session.load(this.storage);if((i==null?void 0:i.id)===this._session.id?this.storage.clear():i&&((r=this.diagnostic)===null||r===void 0||r.log(lr.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:Ut.Session.hash(i.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);const{session:s,ui:c,connection:a}=this.subscribe();this._session=s,this.connection=a,this.ui=c,n&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.options.headlessMode||this.attachUI()}).catch(t=>{var r;(r=this.diagnostic)===null||r===void 0||r.log(lr.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${t}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(t,r){this.appName=t,this.appLogoUrl=r}getStorageItem(t){return this.storage.getItem(t)}get session(){return this._session}setStorageItem(t,r){this.storage.setItem(t,r)}signEthereumMessage(t,r,n,i){return this.sendRequest({method:"signEthereumMessage",params:{message:(0,We.hexStringFromBuffer)(t,!0),address:r,addPrefix:n,typedDataJson:i||null}})}ethereumAddressFromSignedMessage(t,r,n){return this.sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:(0,We.hexStringFromBuffer)(t,!0),signature:(0,We.hexStringFromBuffer)(r,!0),addPrefix:n}})}signEthereumTransaction(t){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,We.bigIntStringFromBN)(t.weiValue),data:(0,We.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,We.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?(0,We.bigIntStringFromBN)(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?(0,We.bigIntStringFromBN)(t.gasPriceInWei):null,gasLimit:t.gasLimit?(0,We.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,We.bigIntStringFromBN)(t.weiValue),data:(0,We.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,We.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?(0,We.bigIntStringFromBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?(0,We.bigIntStringFromBN)(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?(0,We.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,r){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:(0,We.hexStringFromBuffer)(t,!0),chainId:r}})}scanQRCode(t){return this.sendRequest({method:"scanQRCode",params:{regExp:t}})}getQRCodeUrl(){return(0,We.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(t,r){return this.sendRequest({method:"generic",params:{action:r,data:t}})}sendGenericMessage(t){return this.sendRequest(t)}sendRequest(t){let r=null;const n=(0,We.randomBytesHex)(8),i=c=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,c),r==null||r()};return{promise:new Promise((c,a)=>{this.ui.isStandalone()||(r=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:i,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,d=>{if(r==null||r(),(0,ur.isErrorResponse)(d))return a(new Error(d.errorMessage));c(d)}),this.ui.isStandalone()?this.sendRequestStandalone(n,t):this.publishWeb3RequestEvent(n,t)}),cancel:i}}setConnectDisabled(t){this.ui.setConnectDisabled(t)}setAccountsCallback(t){this.accountsCallback=t}setChainCallback(t){this.chainCallback=t}setDappDefaultChainCallback(t){this.dappDefaultChain=t,this.ui instanceof Kd.WalletLinkRelayUI&&this.ui.setChainId(t)}publishWeb3RequestEvent(t,r){var n;const i={type:"WEB3_REQUEST",id:t,request:r},s=Ut.Session.load(this.storage);(n=this.diagnostic)===null||n===void 0||n.log(lr.EVENTS.WEB3_REQUEST,{eventId:i.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?Ut.Session.hash(s.id):"",isSessionMismatched:((s==null?void 0:s.id)!==this._session.id).toString()}),this.publishEvent("Web3Request",i,!0).then(c=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(lr.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:i.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?Ut.Session.hash(s.id):"",isSessionMismatched:((s==null?void 0:s.id)!==this._session.id).toString()})}).catch(c=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i.id,response:{method:r.method,errorMessage:c.message}})})}publishWeb3RequestCanceledEvent(t){const r={type:"WEB3_REQUEST_CANCELED",id:t};this.publishEvent("Web3RequestCanceled",r,!1).then()}publishEvent(t,r,n){return this.connection.publishEvent(t,r,n)}handleWeb3ResponseMessage(t){var r;const{response:n}=t;if((r=this.diagnostic)===null||r===void 0||r.log(lr.EVENTS.WEB3_RESPONSE,{eventId:t.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),n.method==="requestEthereumAccounts"){$t.accountRequestCallbackIds.forEach(i=>this.invokeCallback(Object.assign(Object.assign({},t),{id:i}))),$t.accountRequestCallbackIds.clear();return}this.invokeCallback(t)}handleErrorResponse(t,r,n,i){var s;const c=(s=n==null?void 0:n.message)!==null&&s!==void 0?s:(0,Pr.getMessageFromCode)(i);this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:t,response:{method:r,errorMessage:c,errorCode:i}})}invokeCallback(t){const r=this.relayEventManager.callbacks.get(t.id);r&&(r(t.response),this.relayEventManager.callbacks.delete(t.id))}requestEthereumAccounts(){const t={method:"requestEthereumAccounts",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},r=(0,We.randomBytesHex)(8),n=s=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,s)};return{promise:new Promise((s,c)=>{if(this.relayEventManager.callbacks.set(r,a=>{if(this.ui.hideRequestEthereumAccounts(),(0,ur.isErrorResponse)(a))return c(new Error(a.errorMessage));s(a)}),this.ui.inlineAccountsResponse()){const a=d=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:r,response:{method:"requestEthereumAccounts",result:d}})};this.ui.requestEthereumAccounts({onCancel:n,onAccounts:a})}else{const a=Pr.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>n(a)})}$t.accountRequestCallbackIds.add(r),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(r,t)}),cancel:n}}selectProvider(t){const r={method:"selectProvider",params:{providerOptions:t}},n=(0,We.randomBytesHex)(8),i=c=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,r.method,c)},s=new Promise((c,a)=>{this.relayEventManager.callbacks.set(n,g=>{if((0,ur.isErrorResponse)(g))return a(new Error(g.errorMessage));c(g)});const d=g=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:n,response:{method:"selectProvider",result:Jd.ProviderType.Unselected}})},p=g=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:n,response:{method:"selectProvider",result:g}})};this.ui.selectProvider&&this.ui.selectProvider({onApprove:p,onCancel:d,providerOptions:t})});return{cancel:i,promise:s}}watchAsset(t,r,n,i,s,c){const a={method:"watchAsset",params:{type:t,options:{address:r,symbol:n,decimals:i,image:s},chainId:c}};let d=null;const p=(0,We.randomBytesHex)(8),g=_=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,a.method,_),d==null||d()};this.ui.inlineWatchAsset()||(d=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:g,onResetConnection:this.resetAndReload}));const y=new Promise((_,A)=>{this.relayEventManager.callbacks.set(p,F=>{if(d==null||d(),(0,ur.isErrorResponse)(F))return A(new Error(F.errorMessage));_(F)});const L=F=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"watchAsset",result:!1}})},H=()=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"watchAsset",result:!0}})};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:H,onCancel:L,type:t,address:r,symbol:n,decimals:i,image:s,chainId:c}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(p,a)});return{cancel:g,promise:y}}addEthereumChain(t,r,n,i,s,c){const a={method:"addEthereumChain",params:{chainId:t,rpcUrls:r,blockExplorerUrls:i,chainName:s,iconUrls:n,nativeCurrency:c}};let d=null;const p=(0,We.randomBytesHex)(8),g=_=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,a.method,_),d==null||d()};return this.ui.inlineAddEthereumChain(t)||(d=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:g,onResetConnection:this.resetAndReload})),{promise:new Promise((_,A)=>{this.relayEventManager.callbacks.set(p,F=>{if(d==null||d(),(0,ur.isErrorResponse)(F))return A(new Error(F.errorMessage));_(F)});const L=F=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"addEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},H=F=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"addEthereumChain",result:{isApproved:!0,rpcUrl:F}}})};this.ui.inlineAddEthereumChain(t)&&this.ui.addEthereumChain({onCancel:L,onApprove:H,chainId:a.params.chainId,rpcUrls:a.params.rpcUrls,blockExplorerUrls:a.params.blockExplorerUrls,chainName:a.params.chainName,iconUrls:a.params.iconUrls,nativeCurrency:a.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(t)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(p,a)}),cancel:g}}switchEthereumChain(t,r){const n={method:"switchEthereumChain",params:Object.assign({chainId:t},{address:r})},i=(0,We.randomBytesHex)(8),s=a=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,n.method,a)};return{promise:new Promise((a,d)=>{this.relayEventManager.callbacks.set(i,y=>{if((0,ur.isErrorResponse)(y)&&y.errorCode)return d(Pr.standardErrors.provider.custom({code:y.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if((0,ur.isErrorResponse)(y))return d(new Error(y.errorMessage));a(y)});const p=y=>{var _;if(y){const A=(_=(0,Pr.getErrorCode)(y))!==null&&_!==void 0?_:Pr.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(i,"switchEthereumChain",y instanceof Error?y:Pr.standardErrors.provider.unsupportedChain(t),A)}else this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i,response:{method:"switchEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},g=y=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i,response:{method:"switchEthereumChain",result:{isApproved:!0,rpcUrl:y}}})};this.ui.switchEthereumChain({onCancel:p,onApprove:g,chainId:n.params.chainId,address:n.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(i,n)}),cancel:s}}inlineAddEthereumChain(t){return this.ui.inlineAddEthereumChain(t)}getSessionIdHash(){return Ut.Session.hash(this._session.id)}sendRequestStandalone(t,r){const n=s=>{this.handleErrorResponse(t,r.method,s)},i=s=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:t,response:s})};switch(r.method){case"signEthereumMessage":this.ui.signEthereumMessage({request:r,onSuccess:i,onCancel:n});break;case"signEthereumTransaction":this.ui.signEthereumTransaction({request:r,onSuccess:i,onCancel:n});break;case"submitEthereumTransaction":this.ui.submitEthereumTransaction({request:r,onSuccess:i,onCancel:n});break;case"ethereumAddressFromSignedMessage":this.ui.ethereumAddressFromSignedMessage({request:r,onSuccess:i});break;default:n();break}}}En.WalletLinkRelay=$t;$t.accountRequestCallbackIds=new Set;var Tn={},Pi={},zc={};(function(e){var t=ee&&ee.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,c,a)}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=ee&&ee.__exportStar||function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(oo,e)})(zc);var co={};Object.defineProperty(co,"__esModule",{value:!0});co.default=".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}";var Gc=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pi,"__esModule",{value:!0});Pi.RedirectDialog=void 0;const Qd=Gc(An),At=at,Yd=In,Xd=zc,ef=Gc(co);class tf{constructor(){this.root=null}attach(){const t=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",t.appendChild(this.root),(0,Yd.injectCssReset)()}present(t){this.render(t)}clear(){this.render(null)}render(t){this.root&&((0,At.render)(null,this.root),t&&(0,At.render)((0,At.h)(rf,Object.assign({},t,{onDismiss:()=>{this.clear()}})),this.root))}}Pi.RedirectDialog=tf;const rf=({title:e,buttonText:t,darkMode:r,onButtonClick:n,onDismiss:i})=>{const s=r?"dark":"light";return(0,At.h)(Xd.SnackbarContainer,{darkMode:r},(0,At.h)("div",{class:"-cbwsdk-redirect-dialog"},(0,At.h)("style",null,ef.default),(0,At.h)("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:i}),(0,At.h)("div",{class:(0,Qd.default)("-cbwsdk-redirect-dialog-box",s)},(0,At.h)("p",null,e),(0,At.h)("button",{onClick:n},t))))};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.MobileRelayUI=void 0;const nf=Pi;class sf{constructor(t){this.attached=!1,this.darkMode=!1,this.redirectDialog=new nf.RedirectDialog,this.darkMode=t.darkMode}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}setConnected(t){}redirectToCoinbaseWallet(t){const r=new URL("https://go.cb-w.com/walletlink");r.searchParams.append("redirect_url",window.location.href),t&&r.searchParams.append("wl_url",t);const n=document.createElement("a");n.target="cbw-opener",n.href=r.href,n.rel="noreferrer noopener",n.click()}openCoinbaseWalletDeeplink(t){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",darkMode:this.darkMode,onButtonClick:()=>{this.redirectToCoinbaseWallet(t)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(t)},99)}showConnecting(t){return()=>{this.redirectDialog.clear()}}hideRequestEthereumAccounts(){this.redirectDialog.clear()}requestEthereumAccounts(){}addEthereumChain(){}watchAsset(){}selectProvider(){}switchEthereumChain(){}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}reloadUI(){}setStandalone(){}setConnectDisabled(){}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}isStandalone(){return!1}}Tn.MobileRelayUI=sf;Object.defineProperty(_n,"__esModule",{value:!0});_n.MobileRelay=void 0;const of=X,af=En,cf=Tn;class lf extends af.WalletLinkRelay{constructor(t){var r;super(t),this._enableMobileWalletLink=(r=t.enableMobileWalletLink)!==null&&r!==void 0?r:!1}requestEthereumAccounts(){return this._enableMobileWalletLink?super.requestEthereumAccounts():{promise:new Promise(()=>{const t=(0,of.getLocation)();t.href=`https://go.cb-w.com/dapp?cb_url=${encodeURIComponent(t.href)}`}),cancel:()=>{}}}publishWeb3RequestEvent(t,r){if(super.publishWeb3RequestEvent(t,r),!(this._enableMobileWalletLink&&this.ui instanceof cf.MobileRelayUI))return;let n=!1;switch(r.method){case"requestEthereumAccounts":case"connectAndSignIn":n=!0,this.ui.openCoinbaseWalletDeeplink(this.getQRCodeUrl());break;case"switchEthereumChain":return;default:n=!0,this.ui.openCoinbaseWalletDeeplink();break}n&&window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0})}handleWeb3ResponseMessage(t){super.handleWeb3ResponseMessage(t)}connectAndSignIn(t){if(!this._enableMobileWalletLink)throw new Error("connectAndSignIn is supported only when enableMobileWalletLink is on");return this.sendRequest({method:"connectAndSignIn",params:{appName:this.appName,appLogoUrl:this.appLogoUrl,domain:window.location.hostname,aud:window.location.href,version:"1",type:"eip4361",nonce:t.nonce,iat:new Date().toISOString(),chainId:`eip155:${this.dappDefaultChain}`,statement:t.statement,resources:t.resources}})}}_n.MobileRelay=lf;var Hs={exports:{}},Jc=ai.EventEmitter,ys,na;function uf(){if(na)return ys;na=1;function e(L,H){var F=Object.keys(L);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(L);H&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(L,O).enumerable})),F.push.apply(F,I)}return F}function t(L){for(var H=1;H0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(F){var I={data:F,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var F=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,F}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(F){if(this.length===0)return"";for(var I=this.head,O=""+I.data;I=I.next;)O+=F+I.data;return O}},{key:"concat",value:function(F){if(this.length===0)return p.alloc(0);for(var I=p.allocUnsafe(F>>>0),O=this.head,B=0;O;)A(O.data,I,B),B+=O.data.length,O=O.next;return I}},{key:"consume",value:function(F,I){var O;return FV.length?V.length:F;if(j===V.length?B+=V:B+=V.slice(0,F),F-=j,F===0){j===V.length?(++O,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=V.slice(j));break}++O}return this.length-=O,B}},{key:"_getBuffer",value:function(F){var I=p.allocUnsafe(F),O=this.head,B=1;for(O.data.copy(I),F-=O.data.length;O=O.next;){var V=O.data,j=F>V.length?V.length:F;if(V.copy(I,I.length-F,0,j),F-=j,F===0){j===V.length?(++B,O.next?this.head=O.next:this.head=this.tail=null):(this.head=O,O.data=V.slice(j));break}++B}return this.length-=B,I}},{key:_,value:function(F,I){return y(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),L}(),ys}function hf(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Ws,this,e)):process.nextTick(Ws,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(ri,r):(r._writableState.errorEmitted=!0,process.nextTick(ia,r,s)):process.nextTick(ia,r,s):t?(process.nextTick(ri,r),t(s)):process.nextTick(ri,r)}),this)}function ia(e,t){Ws(e,t),ri(e)}function ri(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function df(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ws(e,t){e.emit("error",t)}function ff(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}var Zc={destroy:hf,undestroy:df,errorOrDestroy:ff},vr={};function pf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Kc={};function vt(e,t,r){r||(r=Error);function n(s,c,a){return typeof t=="string"?t:t(s,c,a)}var i=function(s){pf(c,s);function c(a,d,p){return s.call(this,n(a,d,p))||this}return c}(r);i.prototype.name=r.name,i.prototype.code=e,Kc[e]=i}function sa(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function gf(e,t,r){return e.substr(0,t.length)===t}function mf(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function wf(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}vt("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);vt("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&gf(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(mf(e," argument"))i="The ".concat(e," ").concat(n," ").concat(sa(t,"type"));else{var s=wf(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(s," ").concat(n," ").concat(sa(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);vt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");vt("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});vt("ERR_STREAM_PREMATURE_CLOSE","Premature close");vt("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});vt("ERR_MULTIPLE_CALLBACK","Callback called multiple times");vt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");vt("ERR_STREAM_WRITE_AFTER_END","write after end");vt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);vt("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);vt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");vr.codes=Kc;var yf=vr.codes.ERR_INVALID_OPT_VALUE;function bf(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function vf(e,t,r,n){var i=bf(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new yf(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}var Qc={getHighWaterMark:vf},_f=Ef;function Ef(e,t){if(bs("noDeprecation"))return e;var r=!1;function n(){if(!r){if(bs("throwDeprecation"))throw new Error(t);bs("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function bs(e){try{if(!ee.localStorage)return!1}catch{return!1}var t=ee.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var vs,oa;function Yc(){if(oa)return vs;oa=1,vs=Y;function e(T){var $=this;this.next=null,this.entry=null,this.finish=function(){J($,T)}}var t;Y.WritableState=z;var r={deprecate:_f},n=Jc,i=Sn.Buffer,s=(typeof ee<"u"?ee:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c(T){return i.from(T)}function a(T){return i.isBuffer(T)||T instanceof s}var d=Zc,p=Qc,g=p.getHighWaterMark,y=vr.codes,_=y.ERR_INVALID_ARG_TYPE,A=y.ERR_METHOD_NOT_IMPLEMENTED,L=y.ERR_MULTIPLE_CALLBACK,H=y.ERR_STREAM_CANNOT_PIPE,F=y.ERR_STREAM_DESTROYED,I=y.ERR_STREAM_NULL_VALUES,O=y.ERR_STREAM_WRITE_AFTER_END,B=y.ERR_UNKNOWN_ENCODING,V=d.errorOrDestroy;St(Y,n);function j(){}function z(T,$,W){t=t||Gr(),T=T||{},typeof W!="boolean"&&(W=$ instanceof t),this.objectMode=!!T.objectMode,W&&(this.objectMode=this.objectMode||!!T.writableObjectMode),this.highWaterMark=g(this,T,"writableHighWaterMark",W),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=T.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){w($,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=T.emitClose!==!1,this.autoDestroy=!!T.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}z.prototype.getBuffer=function(){for(var $=this.bufferedRequest,W=[];$;)W.push($),$=$.next;return W},function(){try{Object.defineProperty(z.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var te;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(te=Function.prototype[Symbol.hasInstance],Object.defineProperty(Y,Symbol.hasInstance,{value:function($){return te.call(this,$)?!0:this!==Y?!1:$&&$._writableState instanceof z}})):te=function($){return $ instanceof this};function Y(T){t=t||Gr();var $=this instanceof t;if(!$&&!te.call(Y,this))return new Y(T);this._writableState=new z(T,this,$),this.writable=!0,T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final)),n.call(this)}Y.prototype.pipe=function(){V(this,new H)};function Q(T,$){var W=new O;V(T,W),process.nextTick($,W)}function fe(T,$,W,Z){var le;return W===null?le=new I:typeof W!="string"&&!$.objectMode&&(le=new _("chunk",["string","Buffer"],W)),le?(V(T,le),process.nextTick(Z,le),!1):!0}Y.prototype.write=function(T,$,W){var Z=this._writableState,le=!1,C=!Z.objectMode&&a(T);return C&&!i.isBuffer(T)&&(T=c(T)),typeof $=="function"&&(W=$,$=null),C?$="buffer":$||($=Z.defaultEncoding),typeof W!="function"&&(W=j),Z.ending?Q(this,W):(C||fe(this,Z,T,W))&&(Z.pendingcb++,le=pe(this,Z,C,T,$,W)),le},Y.prototype.cork=function(){this._writableState.corked++},Y.prototype.uncork=function(){var T=this._writableState;T.corked&&(T.corked--,!T.writing&&!T.corked&&!T.bufferProcessing&&T.bufferedRequest&&k(this,T))},Y.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=$.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf(($+"").toLowerCase())>-1))throw new B($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(Y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function oe(T,$,W){return!T.objectMode&&T.decodeStrings!==!1&&typeof $=="string"&&($=i.from($,W)),$}Object.defineProperty(Y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function pe(T,$,W,Z,le,C){if(!W){var M=oe($,Z,le);Z!==M&&(W=!0,le="buffer",Z=M)}var q=$.objectMode?1:Z.length;$.length+=q;var G=$.length<$.highWaterMark;if(G||($.needDrain=!0),$.writing||$.corked){var se=$.lastBufferedRequest;$.lastBufferedRequest={chunk:Z,encoding:le,isBuf:W,callback:C,next:null},se?se.next=$.lastBufferedRequest:$.bufferedRequest=$.lastBufferedRequest,$.bufferedRequestCount+=1}else x(T,$,!1,q,Z,le,C);return G}function x(T,$,W,Z,le,C,M){$.writelen=Z,$.writecb=M,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new F("write")):W?T._writev(le,$.onwrite):T._write(le,C,$.onwrite),$.sync=!1}function o(T,$,W,Z,le){--$.pendingcb,W?(process.nextTick(le,Z),process.nextTick(R,T,$),T._writableState.errorEmitted=!0,V(T,Z)):(le(Z),T._writableState.errorEmitted=!0,V(T,Z),R(T,$))}function f(T){T.writing=!1,T.writecb=null,T.length-=T.writelen,T.writelen=0}function w(T,$){var W=T._writableState,Z=W.sync,le=W.writecb;if(typeof le!="function")throw new L;if(f(W),$)o(T,W,Z,$,le);else{var C=N(W)||T.destroyed;!C&&!W.corked&&!W.bufferProcessing&&W.bufferedRequest&&k(T,W),Z?process.nextTick(b,T,W,C,le):b(T,W,C,le)}}function b(T,$,W,Z){W||S(T,$),$.pendingcb--,Z(),R(T,$)}function S(T,$){$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"))}function k(T,$){$.bufferProcessing=!0;var W=$.bufferedRequest;if(T._writev&&W&&W.next){var Z=$.bufferedRequestCount,le=new Array(Z),C=$.corkedRequestsFree;C.entry=W;for(var M=0,q=!0;W;)le[M]=W,W.isBuf||(q=!1),W=W.next,M+=1;le.allBuffers=q,x(T,$,!0,$.length,le,"",C.finish),$.pendingcb++,$.lastBufferedRequest=null,C.next?($.corkedRequestsFree=C.next,C.next=null):$.corkedRequestsFree=new e($),$.bufferedRequestCount=0}else{for(;W;){var G=W.chunk,se=W.encoding,ue=W.callback,re=$.objectMode?1:G.length;if(x(T,$,!1,re,G,se,ue),W=W.next,$.bufferedRequestCount--,$.writing)break}W===null&&($.lastBufferedRequest=null)}$.bufferedRequest=W,$.bufferProcessing=!1}Y.prototype._write=function(T,$,W){W(new A("_write()"))},Y.prototype._writev=null,Y.prototype.end=function(T,$,W){var Z=this._writableState;return typeof T=="function"?(W=T,T=null,$=null):typeof $=="function"&&(W=$,$=null),T!=null&&this.write(T,$),Z.corked&&(Z.corked=1,this.uncork()),Z.ending||K(this,Z,W),this},Object.defineProperty(Y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function N(T){return T.ending&&T.length===0&&T.bufferedRequest===null&&!T.finished&&!T.writing}function v(T,$){T._final(function(W){$.pendingcb--,W&&V(T,W),$.prefinished=!0,T.emit("prefinish"),R(T,$)})}function u(T,$){!$.prefinished&&!$.finalCalled&&(typeof T._final=="function"&&!$.destroyed?($.pendingcb++,$.finalCalled=!0,process.nextTick(v,T,$)):($.prefinished=!0,T.emit("prefinish")))}function R(T,$){var W=N($);if(W&&(u(T,$),$.pendingcb===0&&($.finished=!0,T.emit("finish"),$.autoDestroy))){var Z=T._readableState;(!Z||Z.autoDestroy&&Z.endEmitted)&&T.destroy()}return W}function K(T,$,W){$.ending=!0,R(T,$),W&&($.finished?process.nextTick(W):T.once("finish",W)),$.ended=!0,T.writable=!1}function J(T,$,W){var Z=T.entry;for(T.entry=null;Z;){var le=Z.callback;$.pendingcb--,le(W),Z=Z.next}$.corkedRequestsFree.next=T}return Object.defineProperty(Y.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function($){this._writableState&&(this._writableState.destroyed=$)}}),Y.prototype.destroy=d.destroy,Y.prototype._undestroy=d.undestroy,Y.prototype._destroy=function(T,$){$(T)},vs}var _s,aa;function Gr(){if(aa)return _s;aa=1;var e=Object.keys||function(p){var g=[];for(var y in p)g.push(y);return g};_s=c;var t=el(),r=Yc();St(c,t);for(var n=e(r.prototype),i=0;i>5===6?2:I>>4===14?3:I>>3===30?4:I>>6===2?-1:-2}function c(I,O,B){var V=O.length-1;if(V=0?(j>0&&(I.lastNeed=j-1),j):--V=0?(j>0&&(I.lastNeed=j-2),j):--V=0?(j>0&&(j===2?j=0:I.lastNeed=j-3),j):0))}function a(I,O,B){if((O[0]&192)!==128)return I.lastNeed=0,"�";if(I.lastNeed>1&&O.length>1){if((O[1]&192)!==128)return I.lastNeed=1,"�";if(I.lastNeed>2&&O.length>2&&(O[2]&192)!==128)return I.lastNeed=2,"�"}}function d(I){var O=this.lastTotal-this.lastNeed,B=a(this,I);if(B!==void 0)return B;if(this.lastNeed<=I.length)return I.copy(this.lastChar,O,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);I.copy(this.lastChar,O,0,I.length),this.lastNeed-=I.length}function p(I,O){var B=c(this,I,O);if(!this.lastNeed)return I.toString("utf8",O);this.lastTotal=B;var V=I.length-(B-this.lastNeed);return I.copy(this.lastChar,0,V),I.toString("utf8",O,V)}function g(I){var O=I&&I.length?this.write(I):"";return this.lastNeed?O+"�":O}function y(I,O){if((I.length-O)%2===0){var B=I.toString("utf16le",O);if(B){var V=B.charCodeAt(B.length-1);if(V>=55296&&V<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1],B.slice(0,-1)}return B}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=I[I.length-1],I.toString("utf16le",O,I.length-1)}function _(I){var O=I&&I.length?this.write(I):"";if(this.lastNeed){var B=this.lastTotal-this.lastNeed;return O+this.lastChar.toString("utf16le",0,B)}return O}function A(I,O){var B=(I.length-O)%3;return B===0?I.toString("base64",O):(this.lastNeed=3-B,this.lastTotal=3,B===1?this.lastChar[0]=I[I.length-1]:(this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1]),I.toString("base64",O,I.length-B))}function L(I){var O=I&&I.length?this.write(I):"";return this.lastNeed?O+this.lastChar.toString("base64",0,3-this.lastNeed):O}function H(I){return I.toString(this.encoding)}function F(I){return I&&I.length?this.write(I):""}return Es}var ua=vr.codes.ERR_STREAM_PREMATURE_CLOSE;function Sf(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i0)if(typeof M!="string"&&!ue.objectMode&&Object.getPrototypeOf(M)!==n.prototype&&(M=s(M)),G)ue.endEmitted?j(C,new I):oe(C,ue,M,!0);else if(ue.ended)j(C,new H);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!q?(M=ue.decoder.write(M),ue.objectMode||M.length!==0?oe(C,ue,M,!1):k(C,ue)):oe(C,ue,M,!1)}else G||(ue.reading=!1,k(C,ue))}return!ue.ended&&(ue.length=x?C=x:(C--,C|=C>>>1,C|=C>>>2,C|=C>>>4,C|=C>>>8,C|=C>>>16,C++),C}function f(C,M){return C<=0||M.length===0&&M.ended?0:M.objectMode?1:C!==C?M.flowing&&M.length?M.buffer.head.data.length:M.length:(C>M.highWaterMark&&(M.highWaterMark=o(C)),C<=M.length?C:M.ended?M.length:(M.needReadable=!0,0))}Q.prototype.read=function(C){d("read",C),C=parseInt(C,10);var M=this._readableState,q=C;if(C!==0&&(M.emittedReadable=!1),C===0&&M.needReadable&&((M.highWaterMark!==0?M.length>=M.highWaterMark:M.length>0)||M.ended))return d("read: emitReadable",M.length,M.ended),M.length===0&&M.ended?W(this):b(this),null;if(C=f(C,M),C===0&&M.ended)return M.length===0&&W(this),null;var G=M.needReadable;d("need readable",G),(M.length===0||M.length-C0?se=$(C,M):se=null,se===null?(M.needReadable=M.length<=M.highWaterMark,C=0):(M.length-=C,M.awaitDrain=0),M.length===0&&(M.ended||(M.needReadable=!0),q!==C&&M.ended&&W(this)),se!==null&&this.emit("data",se),se};function w(C,M){if(d("onEofChunk"),!M.ended){if(M.decoder){var q=M.decoder.end();q&&q.length&&(M.buffer.push(q),M.length+=M.objectMode?1:q.length)}M.ended=!0,M.sync?b(C):(M.needReadable=!1,M.emittedReadable||(M.emittedReadable=!0,S(C)))}}function b(C){var M=C._readableState;d("emitReadable",M.needReadable,M.emittedReadable),M.needReadable=!1,M.emittedReadable||(d("emitReadable",M.flowing),M.emittedReadable=!0,process.nextTick(S,C))}function S(C){var M=C._readableState;d("emitReadable_",M.destroyed,M.length,M.ended),!M.destroyed&&(M.length||M.ended)&&(C.emit("readable"),M.emittedReadable=!1),M.needReadable=!M.flowing&&!M.ended&&M.length<=M.highWaterMark,T(C)}function k(C,M){M.readingMore||(M.readingMore=!0,process.nextTick(N,C,M))}function N(C,M){for(;!M.reading&&!M.ended&&(M.length1&&le(G.pipes,C)!==-1)&&!Se&&(d("false write response, pause",G.awaitDrain),G.awaitDrain++),q.pause())}function ve(m){d("onerror",m),_e(),C.removeListener("error",ve),t(C,"error")===0&&j(C,m)}te(C,"error",ve);function Re(){C.removeListener("finish",Qe),_e()}C.once("close",Re);function Qe(){d("onfinish"),C.removeListener("close",Re),_e()}C.once("finish",Qe);function _e(){d("unpipe"),q.unpipe(C)}return C.emit("pipe",q),G.flowing||(d("pipe resume"),q.resume()),C};function v(C){return function(){var q=C._readableState;d("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&t(C,"data")&&(q.flowing=!0,T(C))}}Q.prototype.unpipe=function(C){var M=this._readableState,q={hasUnpiped:!1};if(M.pipesCount===0)return this;if(M.pipesCount===1)return C&&C!==M.pipes?this:(C||(C=M.pipes),M.pipes=null,M.pipesCount=0,M.flowing=!1,C&&C.emit("unpipe",this,q),this);if(!C){var G=M.pipes,se=M.pipesCount;M.pipes=null,M.pipesCount=0,M.flowing=!1;for(var ue=0;ue0,G.flowing!==!1&&this.resume()):C==="readable"&&!G.endEmitted&&!G.readableListening&&(G.readableListening=G.needReadable=!0,G.flowing=!1,G.emittedReadable=!1,d("on readable",G.length,G.reading),G.length?b(this):G.reading||process.nextTick(R,this)),q},Q.prototype.addListener=Q.prototype.on,Q.prototype.removeListener=function(C,M){var q=r.prototype.removeListener.call(this,C,M);return C==="readable"&&process.nextTick(u,this),q},Q.prototype.removeAllListeners=function(C){var M=r.prototype.removeAllListeners.apply(this,arguments);return(C==="readable"||C===void 0)&&process.nextTick(u,this),M};function u(C){var M=C._readableState;M.readableListening=C.listenerCount("readable")>0,M.resumeScheduled&&!M.paused?M.flowing=!0:C.listenerCount("data")>0&&C.resume()}function R(C){d("readable nexttick read 0"),C.read(0)}Q.prototype.resume=function(){var C=this._readableState;return C.flowing||(d("resume"),C.flowing=!C.readableListening,K(this,C)),C.paused=!1,this};function K(C,M){M.resumeScheduled||(M.resumeScheduled=!0,process.nextTick(J,C,M))}function J(C,M){d("resume",M.reading),M.reading||C.read(0),M.resumeScheduled=!1,C.emit("resume"),T(C),M.flowing&&!M.reading&&C.read(0)}Q.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function T(C){var M=C._readableState;for(d("flow",M.flowing);M.flowing&&C.read()!==null;);}Q.prototype.wrap=function(C){var M=this,q=this._readableState,G=!1;C.on("end",function(){if(d("wrapped end"),q.decoder&&!q.ended){var re=q.decoder.end();re&&re.length&&M.push(re)}M.push(null)}),C.on("data",function(re){if(d("wrapped data"),q.decoder&&(re=q.decoder.write(re)),!(q.objectMode&&re==null)&&!(!q.objectMode&&(!re||!re.length))){var be=M.push(re);be||(G=!0,C.pause())}});for(var se in C)this[se]===void 0&&typeof C[se]=="function"&&(this[se]=function(be){return function(){return C[be].apply(C,arguments)}}(se));for(var ue=0;ue=M.length?(M.decoder?q=M.buffer.join(""):M.buffer.length===1?q=M.buffer.first():q=M.buffer.concat(M.length),M.buffer.clear()):q=M.buffer.consume(C,M.decoder),q}function W(C){var M=C._readableState;d("endReadable",M.endEmitted),M.endEmitted||(M.ended=!0,process.nextTick(Z,M,C))}function Z(C,M){if(d("endReadableNT",C.endEmitted,C.length),!C.endEmitted&&C.length===0&&(C.endEmitted=!0,M.readable=!1,M.emit("end"),C.autoDestroy)){var q=M._writableState;(!q||q.autoDestroy&&q.finished)&&M.destroy()}}typeof Symbol=="function"&&(Q.from=function(C,M){return V===void 0&&(V=kf()),V(Q,C,M)});function le(C,M){for(var q=0,G=C.length;q0;return Df(c,d,p,function(g){i||(i=g),g&&s.forEach(ma),!d&&(s.forEach(ma),n(i))})});return t.reduce(jf)}var Wf=Hf;(function(e,t){t=e.exports=el(),t.Stream=t,t.Readable=t,t.Writable=Yc(),t.Duplex=Gr(),t.Transform=tl,t.PassThrough=Bf,t.finished=lo,t.pipeline=Wf})(Hs,Hs.exports);var il=Hs.exports;const{Transform:Vf}=il;var qf=e=>class sl extends Vf{constructor(r,n,i,s,c){super(c),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=s,this._options=c,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let s=null;try{this.update(r,n)}catch(c){s=c}i(s)}_flush(r){let n=null;try{this.push(this.digest())}catch(i){n=i}r(n)}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(n=n.toString(r)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new sl(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const{Transform:zf}=il;var Gf=e=>class ol extends zf{constructor(r,n,i,s){super(s),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._options=s,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let s=null;try{this.update(r,n)}catch(c){s=c}i(s)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}squeeze(r,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(r);return n!==void 0&&(i=i.toString(n)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new ol(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const Jf=qf,Zf=Gf;var Kf=function(e){const t=Jf(e),r=Zf(e);return function(n,i){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new t(1152,448,null,224,i);case"keccak256":return new t(1088,512,null,256,i);case"keccak384":return new t(832,768,null,384,i);case"keccak512":return new t(576,1024,null,512,i);case"sha3-224":return new t(1152,448,6,224,i);case"sha3-256":return new t(1088,512,6,256,i);case"sha3-384":return new t(832,768,6,384,i);case"sha3-512":return new t(576,1024,6,512,i);case"shake128":return new r(1344,256,31,i);case"shake256":return new r(1088,512,31,i);default:throw new Error("Invald algorithm: "+n)}}},al={};const wa=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];al.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],i=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],a=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],p=e[7]^e[17]^e[27]^e[37]^e[47],g=e[8]^e[18]^e[28]^e[38]^e[48],y=e[9]^e[19]^e[29]^e[39]^e[49];let _=g^(i<<1|s>>>31),A=y^(s<<1|i>>>31);const L=e[0]^_,H=e[1]^A,F=e[10]^_,I=e[11]^A,O=e[20]^_,B=e[21]^A,V=e[30]^_,j=e[31]^A,z=e[40]^_,te=e[41]^A;_=r^(c<<1|a>>>31),A=n^(a<<1|c>>>31);const Y=e[2]^_,Q=e[3]^A,fe=e[12]^_,oe=e[13]^A,pe=e[22]^_,x=e[23]^A,o=e[32]^_,f=e[33]^A,w=e[42]^_,b=e[43]^A;_=i^(d<<1|p>>>31),A=s^(p<<1|d>>>31);const S=e[4]^_,k=e[5]^A,N=e[14]^_,v=e[15]^A,u=e[24]^_,R=e[25]^A,K=e[34]^_,J=e[35]^A,T=e[44]^_,$=e[45]^A;_=c^(g<<1|y>>>31),A=a^(y<<1|g>>>31);const W=e[6]^_,Z=e[7]^A,le=e[16]^_,C=e[17]^A,M=e[26]^_,q=e[27]^A,G=e[36]^_,se=e[37]^A,ue=e[46]^_,re=e[47]^A;_=d^(r<<1|n>>>31),A=p^(n<<1|r>>>31);const be=e[8]^_,dt=e[9]^A,Se=e[18]^_,Ee=e[19]^A,Je=e[28]^_,ve=e[29]^A,Re=e[38]^_,Qe=e[39]^A,_e=e[48]^_,m=e[49]^A,l=L,h=H,E=I<<4|F>>>28,P=F<<4|I>>>28,D=O<<3|B>>>29,U=B<<3|O>>>29,he=j<<9|V>>>23,ae=V<<9|j>>>23,ie=z<<18|te>>>14,Ce=te<<18|z>>>14,ne=Y<<1|Q>>>31,Me=Q<<1|Y>>>31,Sr=oe<<12|fe>>>20,ke=fe<<12|oe>>>20,xe=pe<<10|x>>>22,Rr=x<<10|pe>>>22,Ie=f<<13|o>>>19,Ae=o<<13|f>>>19,Cr=w<<2|b>>>30,Te=b<<2|w>>>30,Ne=k<<30|S>>>2,Mr=S<<30|k>>>2,Le=N<<6|v>>>26,Be=v<<6|N>>>26,kr=R<<11|u>>>21,Pe=u<<11|R>>>21,Oe=K<<15|J>>>17,xr=J<<15|K>>>17,$e=$<<29|T>>>3,Fe=T<<29|$>>>3,Ir=W<<28|Z>>>4,De=Z<<28|W>>>4,je=C<<23|le>>>9,Ar=le<<23|C>>>9,Ue=M<<25|q>>>7,He=q<<25|M>>>7,Gt=G<<21|se>>>11,Jt=se<<21|G>>>11,Zt=re<<24|ue>>>8,Kt=ue<<24|re>>>8,Qt=be<<27|dt>>>5,Yt=dt<<27|be>>>5,Xt=Se<<20|Ee>>>12,er=Ee<<20|Se>>>12,tr=ve<<7|Je>>>25,rr=Je<<7|ve>>>25,nr=Re<<8|Qe>>>24,ir=Qe<<8|Re>>>24,sr=_e<<14|m>>>18,or=m<<14|_e>>>18;e[0]=l^~Sr&kr,e[1]=h^~ke&Pe,e[10]=Ir^~Xt&D,e[11]=De^~er&U,e[20]=ne^~Le&Ue,e[21]=Me^~Be&He,e[30]=Qt^~E&xe,e[31]=Yt^~P&Rr,e[40]=Ne^~je&tr,e[41]=Mr^~Ar&rr,e[2]=Sr^~kr&Gt,e[3]=ke^~Pe&Jt,e[12]=Xt^~D&Ie,e[13]=er^~U&Ae,e[22]=Le^~Ue&nr,e[23]=Be^~He&ir,e[32]=E^~xe&Oe,e[33]=P^~Rr&xr,e[42]=je^~tr&he,e[43]=Ar^~rr&ae,e[4]=kr^~Gt&sr,e[5]=Pe^~Jt&or,e[14]=D^~Ie&$e,e[15]=U^~Ae&Fe,e[24]=Ue^~nr&ie,e[25]=He^~ir&Ce,e[34]=xe^~Oe&Zt,e[35]=Rr^~xr&Kt,e[44]=tr^~he&Cr,e[45]=rr^~ae&Te,e[6]=Gt^~sr&l,e[7]=Jt^~or&h,e[16]=Ie^~$e&Ir,e[17]=Ae^~Fe&De,e[26]=nr^~ie&ne,e[27]=ir^~Ce&Me,e[36]=Oe^~Zt&Qt,e[37]=xr^~Kt&Yt,e[46]=he^~Cr&Ne,e[47]=ae^~Te&Mr,e[8]=sr^~l&Sr,e[9]=or^~h&ke,e[18]=$e^~Ir&Xt,e[19]=Fe^~De&er,e[28]=ie^~ne&Le,e[29]=Ce^~Me&Be,e[38]=Zt^~Qt&E,e[39]=Kt^~Yt&P,e[48]=Cr^~Ne&je,e[49]=Te^~Mr&Ar,e[0]^=wa[t*2],e[1]^=wa[t*2+1]}};const ii=al;function rn(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}rn.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};rn.prototype.absorb=function(e){for(let t=0;t>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(ii.p1600(this.state),this.count=0);return t};rn.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};var Qf=rn,Yf=Kf(Qf);const Xf=Yf,e0=ui;function cl(e){return Buffer.allocUnsafe(e).fill(0)}function ll(e,t,r){const n=cl(t);return e=Fi(e),r?e.length"u")throw new Error("Not an array?");if(r=pl(e),r!=="dynamic"&&r!==0&&t.length>r)throw new Error("Elements exceed array size: "+r);i=[],e=e.slice(0,e.lastIndexOf("[")),typeof t=="string"&&(t=JSON.parse(t));for(s in t)i.push(It(e,t[s]));if(r==="dynamic"){var c=It("uint256",t.length);i.unshift(c)}return Buffer.concat(i)}else{if(e==="bytes")return t=new Buffer(t),i=Buffer.concat([It("uint256",t.length),t]),t.length%32!==0&&(i=Buffer.concat([i,mr.zeros(32-t.length%32)])),i;if(e.startsWith("bytes")){if(r=Ur(e),r<1||r>32)throw new Error("Invalid bytes width: "+r);return mr.setLengthRight(t,32)}else if(e.startsWith("uint")){if(r=Ur(e),r%8||r<8||r>256)throw new Error("Invalid uint width: "+r);if(n=hr(t),n.bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+n.bitLength());if(n<0)throw new Error("Supplied uint is negative");return n.toArrayLike(Buffer,"be",32)}else if(e.startsWith("int")){if(r=Ur(e),r%8||r<8||r>256)throw new Error("Invalid int width: "+r);if(n=hr(t),n.bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+n.bitLength());return n.toTwos(256).toArrayLike(Buffer,"be",32)}else if(e.startsWith("ufixed")){if(r=ya(e),n=hr(t),n<0)throw new Error("Supplied ufixed is negative");return It("uint256",n.mul(new fr(2).pow(new fr(r[1]))))}else if(e.startsWith("fixed"))return r=ya(e),It("int256",hr(t).mul(new fr(2).pow(new fr(r[1]))))}throw new Error("Unsupported or invalid type: "+e)}function s0(e){return e==="string"||e==="bytes"||pl(e)==="dynamic"}function o0(e){return e.lastIndexOf("]")===e.length-1}function a0(e,t){var r=[],n=[],i=32*e.length;for(var s in e){var c=fl(e[s]),a=t[s],d=It(c,a);s0(c)?(r.push(It("uint256",i)),n.push(d),i+=d.length):r.push(d)}return Buffer.concat(r.concat(n))}function gl(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var r,n,i=[],s=0;s32)throw new Error("Invalid bytes width: "+r);i.push(mr.setLengthRight(a,r))}else if(c.startsWith("uint")){if(r=Ur(c),r%8||r<8||r>256)throw new Error("Invalid uint width: "+r);if(n=hr(a),n.bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+n.bitLength());i.push(n.toArrayLike(Buffer,"be",r/8))}else if(c.startsWith("int")){if(r=Ur(c),r%8||r<8||r>256)throw new Error("Invalid int width: "+r);if(n=hr(a),n.bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+n.bitLength());i.push(n.toTwos(r).toArrayLike(Buffer,"be",r/8))}else throw new Error("Unsupported or invalid type: "+c)}return Buffer.concat(i)}function c0(e,t){return mr.keccak(gl(e,t))}var l0={rawEncode:a0,solidityPack:gl,soliditySHA3:c0};const Et=dl,hn=l0,ml={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},ks={encodeData(e,t,r,n=!0){const i=["bytes32"],s=[this.hashType(e,r)];if(n){const c=(a,d,p)=>{if(r[d]!==void 0)return["bytes32",p==null?"0x0000000000000000000000000000000000000000000000000000000000000000":Et.keccak(this.encodeData(d,p,r,n))];if(p===void 0)throw new Error(`missing value for field ${a} of type ${d}`);if(d==="bytes")return["bytes32",Et.keccak(p)];if(d==="string")return typeof p=="string"&&(p=Buffer.from(p,"utf8")),["bytes32",Et.keccak(p)];if(d.lastIndexOf("]")===d.length-1){const g=d.slice(0,d.lastIndexOf("[")),y=p.map(_=>c(a,g,_));return["bytes32",Et.keccak(hn.rawEncode(y.map(([_])=>_),y.map(([,_])=>_)))]}return[d,p]};for(const a of r[e]){const[d,p]=c(a.name,a.type,t[a.name]);i.push(d),s.push(p)}}else for(const c of r[e]){let a=t[c.name];if(a!==void 0)if(c.type==="bytes")i.push("bytes32"),a=Et.keccak(a),s.push(a);else if(c.type==="string")i.push("bytes32"),typeof a=="string"&&(a=Buffer.from(a,"utf8")),a=Et.keccak(a),s.push(a);else if(r[c.type]!==void 0)i.push("bytes32"),a=Et.keccak(this.encodeData(c.type,a,r,n)),s.push(a);else{if(c.type.lastIndexOf("]")===c.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");i.push(c.type),s.push(a)}}return hn.rawEncode(i,s)},encodeType(e,t){let r="",n=this.findTypeDependencies(e,t).filter(i=>i!==e);n=[e].concat(n.sort());for(const i of n){if(!t[i])throw new Error("No type definition specified: "+i);r+=i+"("+t[i].map(({name:c,type:a})=>a+" "+c).join(",")+")"}return r},findTypeDependencies(e,t,r=[]){if(e=e.match(/^\w*/)[0],r.includes(e)||t[e]===void 0)return r;r.push(e);for(const n of t[e])for(const i of this.findTypeDependencies(n.type,t,r))!r.includes(i)&&r.push(i);return r},hashStruct(e,t,r,n=!0){return Et.keccak(this.encodeData(e,t,r,n))},hashType(e,t){return Et.keccak(this.encodeType(e,t))},sanitizeData(e){const t={};for(const r in ml.properties)e[r]&&(t[r]=e[r]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){const r=this.sanitizeData(e),n=[Buffer.from("1901","hex")];return n.push(this.hashStruct("EIP712Domain",r.domain,r.types,t)),r.primaryType!=="EIP712Domain"&&n.push(this.hashStruct(r.primaryType,r.message,r.types,t)),Et.keccak(Buffer.concat(n))}};var u0={TYPED_MESSAGE_SCHEMA:ml,TypedDataUtils:ks,hashForSignTypedDataLegacy:function(e){return h0(e.data)},hashForSignTypedData_v3:function(e){return ks.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return ks.hash(e.data)}};function h0(e){const t=new Error("Expect argument to be non-empty array");if(typeof e!="object"||!e.length)throw t;const r=e.map(function(s){return s.type==="bytes"?Et.toBuffer(s.value):s.value}),n=e.map(function(s){return s.type}),i=e.map(function(s){if(!s.name)throw t;return s.type+" "+s.name});return hn.soliditySHA3(["bytes32","bytes32"],[hn.soliditySHA3(new Array(e.length).fill("string"),i),hn.soliditySHA3(n,r)])}var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.filterFromParam=Jr.FilterPolyfill=void 0;const Fr=Ze,it=X,d0=5*60*1e3,dr={jsonrpc:"2.0",id:0};class f0{constructor(t){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,Fr.IntNumber)(1),this.REQUEST_THROTTLE_INTERVAL=1e3,this.lastFetchTimestamp=new Date(0),this.resolvers=[],this.provider=t}async newFilter(t){const r=wl(t),n=this.makeFilterId(),i=await this.setInitialCursorPosition(n,r.fromBlock);return console.info(`Installing new log filter(${n}):`,r,"initial cursor position:",i),this.logFilters.set(n,r),this.setFilterTimeout(n),(0,it.hexStringFromIntNumber)(n)}async newBlockFilter(){const t=this.makeFilterId(),r=await this.setInitialCursorPosition(t,"latest");return console.info(`Installing new block filter (${t}) with initial cursor position:`,r),this.blockFilters.add(t),this.setFilterTimeout(t),(0,it.hexStringFromIntNumber)(t)}async newPendingTransactionFilter(){const t=this.makeFilterId(),r=await this.setInitialCursorPosition(t,"latest");return console.info(`Installing new block filter (${t}) with initial cursor position:`,r),this.pendingTransactionFilters.add(t),this.setFilterTimeout(t),(0,it.hexStringFromIntNumber)(t)}uninstallFilter(t){const r=(0,it.intNumberFromHexString)(t);return console.info(`Uninstalling filter (${r})`),this.deleteFilter(r),!0}getFilterChanges(t){const r=(0,it.intNumberFromHexString)(t);return this.timeouts.has(r)&&this.setFilterTimeout(r),this.logFilters.has(r)?this.getLogFilterChanges(r):this.blockFilters.has(r)?this.getBlockFilterChanges(r):this.pendingTransactionFilters.has(r)?this.getPendingTransactionFilterChanges(r):Promise.resolve(Gn())}async getFilterLogs(t){const r=(0,it.intNumberFromHexString)(t),n=this.logFilters.get(r);return n?this.sendAsyncPromise(Object.assign(Object.assign({},dr),{method:"eth_getLogs",params:[ba(n)]})):Gn()}makeFilterId(){return(0,Fr.IntNumber)(++this.nextFilterId)}sendAsyncPromise(t){return new Promise((r,n)=>{this.provider.sendAsync(t,(i,s)=>{if(i)return n(i);if(Array.isArray(s)||s==null)return n(new Error(`unexpected response received: ${JSON.stringify(s)}`));r(s)})})}deleteFilter(t){console.info(`Deleting filter (${t})`),this.logFilters.delete(t),this.blockFilters.delete(t),this.pendingTransactionFilters.delete(t),this.cursors.delete(t),this.timeouts.delete(t)}async getLogFilterChanges(t){const r=this.logFilters.get(t),n=this.cursors.get(t);if(!n||!r)return Gn();const i=await this.getCurrentBlockHeight(),s=r.toBlock==="latest"?i:r.toBlock;if(n>i||n>Number(r.toBlock))return Jn();console.info(`Fetching logs from ${n} to ${s} for filter ${t}`);const c=await this.sendAsyncPromise(Object.assign(Object.assign({},dr),{method:"eth_getLogs",params:[ba(Object.assign(Object.assign({},r),{fromBlock:n,toBlock:s}))]}));if(Array.isArray(c.result)){const a=c.result.map(p=>(0,it.intNumberFromHexString)(p.blockNumber||"0x0")),d=Math.max(...a);if(d&&d>n){const p=(0,Fr.IntNumber)(d+1);console.info(`Moving cursor position for filter (${t}) from ${n} to ${p}`),this.cursors.set(t,p)}}return c}async getBlockFilterChanges(t){const r=this.cursors.get(t);if(!r)return Gn();const n=await this.getCurrentBlockHeight();if(r>n)return Jn();console.info(`Fetching blocks from ${r} to ${n} for filter (${t})`);const i=(await Promise.all((0,it.range)(r,n+1).map(c=>this.getBlockHashByNumber((0,Fr.IntNumber)(c))))).filter(c=>!!c),s=(0,Fr.IntNumber)(r+i.length);return console.info(`Moving cursor position for filter (${t}) from ${r} to ${s}`),this.cursors.set(t,s),Object.assign(Object.assign({},dr),{result:i})}async getPendingTransactionFilterChanges(t){return Promise.resolve(Jn())}async setInitialCursorPosition(t,r){const n=await this.getCurrentBlockHeight(),i=typeof r=="number"&&r>n?r:n;return this.cursors.set(t,i),i}setFilterTimeout(t){const r=this.timeouts.get(t);r&&window.clearTimeout(r);const n=window.setTimeout(()=>{console.info(`Filter (${t}) timed out`),this.deleteFilter(t)},d0);this.timeouts.set(t,n)}async getCurrentBlockHeight(){const t=new Date;if(t.getTime()-this.lastFetchTimestamp.getTime()>this.REQUEST_THROTTLE_INTERVAL){this.lastFetchTimestamp=t;const r=await this._getCurrentBlockHeight();this.currentBlockHeight=r,this.resolvers.forEach(n=>n(r)),this.resolvers=[]}return this.currentBlockHeight?this.currentBlockHeight:new Promise(r=>this.resolvers.push(r))}async _getCurrentBlockHeight(){const{result:t}=await this.sendAsyncPromise(Object.assign(Object.assign({},dr),{method:"eth_blockNumber",params:[]}));return(0,it.intNumberFromHexString)((0,it.ensureHexString)(t))}async getBlockHashByNumber(t){const r=await this.sendAsyncPromise(Object.assign(Object.assign({},dr),{method:"eth_getBlockByNumber",params:[(0,it.hexStringFromIntNumber)(t),!1]}));return r.result&&typeof r.result.hash=="string"?(0,it.ensureHexString)(r.result.hash):null}}Jr.FilterPolyfill=f0;function wl(e){return{fromBlock:va(e.fromBlock),toBlock:va(e.toBlock),addresses:e.address===void 0?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}Jr.filterFromParam=wl;function ba(e){const t={fromBlock:_a(e.fromBlock),toBlock:_a(e.toBlock),topics:e.topics};return e.addresses!==null&&(t.address=e.addresses),t}function va(e){if(e===void 0||e==="latest"||e==="pending")return"latest";if(e==="earliest")return(0,Fr.IntNumber)(0);if((0,it.isHexString)(e))return(0,it.intNumberFromHexString)(e);throw new Error(`Invalid block option: ${String(e)}`)}function _a(e){return e==="latest"?e:(0,it.hexStringFromIntNumber)(e)}function Gn(){return Object.assign(Object.assign({},dr),{error:{code:-32e3,message:"filter not found"}})}function Jn(){return Object.assign(Object.assign({},dr),{result:[]})}var Di={},yl={},ji={},uo=p0;function p0(e){e=e||{};var t=e.max||Number.MAX_SAFE_INTEGER,r=typeof e.start<"u"?e.start:Math.floor(Math.random()*t);return function(){return r=r%t,r++}}const Ea=(e,t)=>function(){const r=t.promiseModule,n=new Array(arguments.length);for(let i=0;i{t.errorFirst?n.push(function(c,a){if(t.multiArgs){const d=new Array(arguments.length-1);for(let p=1;p{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const r=i=>{const s=c=>typeof c=="string"?i===c:c.test(i);return t.include?t.include.some(s):!t.exclude.some(s)};let n;typeof e=="function"?n=function(){return t.excludeMain?e.apply(this,arguments):Ea(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(const i in e){const s=e[i];n[i]=typeof s=="function"&&r(i)?Ea(s,t):s}return n},Nn={},Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});const m0=ai;function Sa(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout(()=>{throw n})}}function w0(e){const t=e.length,r=new Array(t);for(let n=0;n0&&([c]=r),c instanceof Error)throw c;const a=new Error(`Unhandled error.${c?` (${c.message})`:""}`);throw a.context=c,a}const s=i[t];if(s===void 0)return!1;if(typeof s=="function")Sa(s,this,r);else{const c=s.length,a=w0(s);for(let d=0;de+t,Ra=["sync","latest"];class S0 extends v0.default{constructor(t){super(),this._blockResetDuration=t.blockResetDuration||20*_0,this._usePastBlocks=t.usePastBlocks||!1,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(r=>this.once("latest",r))}removeAllListeners(t){return t?super.removeAllListeners(t):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(t){Ra.includes(t)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit("_started"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit("_ended"))}_getBlockTrackerEventCount(){return Ra.map(t=>this.listenerCount(t)).reduce(E0)}_shouldUseNewBlock(t){const r=this._currentBlock;if(!r)return!0;const n=Ca(t),i=Ca(r);return this._usePastBlocks&&ni}_newPotentialLatest(t){this._shouldUseNewBlock(t)&&this._setCurrentBlock(t)}_setCurrentBlock(t){const r=this._currentBlock;this._currentBlock=t,this.emit("latest",t),this.emit("sync",{oldBlock:r,newBlock:t})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}Nn.BaseBlockTracker=S0;function Ca(e){return Number.parseInt(e,16)}var bl={},vl={},rt={};class _l extends TypeError{constructor(t,r){let n;const{message:i,explanation:s,...c}=t,{path:a}=t,d=a.length===0?i:`At path: ${a.join(".")} -- ${i}`;super(s??d),s!=null&&(this.cause=d),Object.assign(this,c),this.name=this.constructor.name,this.failures=()=>n??(n=[t,...r()])}}function R0(e){return bt(e)&&typeof e[Symbol.iterator]=="function"}function bt(e){return typeof e=="object"&&e!=null}function Ma(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ke(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function C0(e){const{done:t,value:r}=e.next();return t?void 0:r}function M0(e,t,r,n){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:i,branch:s}=t,{type:c}=r,{refinement:a,message:d=`Expected a value of type \`${c}\`${a?` with refinement \`${a}\``:""}, but received: \`${Ke(n)}\``}=e;return{value:n,type:c,refinement:a,key:i[i.length-1],path:i,branch:s,...e,message:d}}function*Vs(e,t,r,n){R0(e)||(e=[e]);for(const i of e){const s=M0(i,t,r,n);s&&(yield s)}}function*ho(e,t,r={}){const{path:n=[],branch:i=[e],coerce:s=!1,mask:c=!1}=r,a={path:n,branch:i};if(s&&(e=t.coercer(e,a),c&&t.type!=="type"&&bt(t.schema)&&bt(e)&&!Array.isArray(e)))for(const p in e)t.schema[p]===void 0&&delete e[p];let d="valid";for(const p of t.validator(e,a))p.explanation=r.message,d="not_valid",yield[p,void 0];for(let[p,g,y]of t.entries(e,a)){const _=ho(g,y,{path:p===void 0?n:[...n,p],branch:p===void 0?i:[...i,g],coerce:s,mask:c,message:r.message});for(const A of _)A[0]?(d=A[0].refinement!=null?"not_refined":"not_valid",yield[A[0],void 0]):s&&(g=A[1],p===void 0?e=g:e instanceof Map?e.set(p,g):e instanceof Set?e.add(g):bt(e)&&(g!==void 0||p in e)&&(e[p]=g))}if(d!=="not_valid")for(const p of t.refiner(e,a))p.explanation=r.message,d="not_refined",yield[p,void 0];d==="valid"&&(yield[void 0,e])}class ze{constructor(t){const{type:r,schema:n,validator:i,refiner:s,coercer:c=d=>d,entries:a=function*(){}}=t;this.type=r,this.schema=n,this.entries=a,this.coercer=c,i?this.validator=(d,p)=>{const g=i(d,p);return Vs(g,p,this,d)}:this.validator=()=>[],s?this.refiner=(d,p)=>{const g=s(d,p);return Vs(g,p,this,d)}:this.refiner=()=>[]}assert(t,r){return El(t,this,r)}create(t,r){return Sl(t,this,r)}is(t){return fo(t,this)}mask(t,r){return Rl(t,this,r)}validate(t,r={}){return nn(t,this,r)}}function El(e,t,r){const n=nn(e,t,{message:r});if(n[0])throw n[0]}function Sl(e,t,r){const n=nn(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function Rl(e,t,r){const n=nn(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function fo(e,t){return!nn(e,t)[0]}function nn(e,t,r={}){const n=ho(e,t,r),i=C0(n);return i[0]?[new _l(i[0],function*(){for(const c of n)c[0]&&(yield c[0])}),void 0]:[void 0,i[1]]}function k0(...e){const t=e[0].type==="type",r=e.map(i=>i.schema),n=Object.assign({},...r);return t?Pn(n):Bn(n)}function ct(e,t){return new ze({type:e,schema:null,validator:t})}function x0(e,t){return new ze({...e,refiner:(r,n)=>r===void 0||e.refiner(r,n),validator(r,n){return r===void 0?!0:(t(r,n),e.validator(r,n))}})}function I0(e){return new ze({type:"dynamic",schema:null,*entries(t,r){yield*e(t,r).entries(t,r)},validator(t,r){return e(t,r).validator(t,r)},coercer(t,r){return e(t,r).coercer(t,r)},refiner(t,r){return e(t,r).refiner(t,r)}})}function A0(e){let t;return new ze({type:"lazy",schema:null,*entries(r,n){t??(t=e()),yield*t.entries(r,n)},validator(r,n){return t??(t=e()),t.validator(r,n)},coercer(r,n){return t??(t=e()),t.coercer(r,n)},refiner(r,n){return t??(t=e()),t.refiner(r,n)}})}function T0(e,t){const{schema:r}=e,n={...r};for(const i of t)delete n[i];switch(e.type){case"type":return Pn(n);default:return Bn(n)}}function N0(e){const t=e instanceof ze,r=t?{...e.schema}:{...e};for(const n in r)r[n]=Cl(r[n]);return t&&e.type==="type"?Pn(r):Bn(r)}function L0(e,t){const{schema:r}=e,n={};for(const i of t)n[i]=r[i];switch(e.type){case"type":return Pn(n);default:return Bn(n)}}function B0(e,t){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),ct(e,t)}function P0(){return ct("any",()=>!0)}function O0(e){return new ze({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,n]of t.entries())yield[r,n,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${Ke(t)}`}})}function $0(){return ct("bigint",e=>typeof e=="bigint")}function F0(){return ct("boolean",e=>typeof e=="boolean")}function D0(){return ct("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${Ke(e)}`)}function j0(e){const t={},r=e.map(n=>Ke(n)).join();for(const n of e)t[n]=n;return new ze({type:"enums",schema:t,validator(n){return e.includes(n)||`Expected one of \`${r}\`, but received: ${Ke(n)}`}})}function U0(){return ct("func",e=>typeof e=="function"||`Expected a function, but received: ${Ke(e)}`)}function H0(e){return ct("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${Ke(t)}`)}function W0(){return ct("integer",e=>typeof e=="number"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${Ke(e)}`)}function V0(e){return new ze({type:"intersection",schema:null,*entries(t,r){for(const n of e)yield*n.entries(t,r)},*validator(t,r){for(const n of e)yield*n.validator(t,r)},*refiner(t,r){for(const n of e)yield*n.refiner(t,r)}})}function q0(e){const t=Ke(e),r=typeof e;return new ze({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?e:null,validator(n){return n===e||`Expected the literal \`${t}\`, but received: ${Ke(n)}`}})}function z0(e,t){return new ze({type:"map",schema:null,*entries(r){if(e&&t&&r instanceof Map)for(const[n,i]of r.entries())yield[n,n,e],yield[n,i,t]},coercer(r){return r instanceof Map?new Map(r):r},validator(r){return r instanceof Map||`Expected a \`Map\` object, but received: ${Ke(r)}`}})}function po(){return ct("never",()=>!1)}function G0(e){return new ze({...e,validator:(t,r)=>t===null||e.validator(t,r),refiner:(t,r)=>t===null||e.refiner(t,r)})}function J0(){return ct("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${Ke(e)}`)}function Bn(e){const t=e?Object.keys(e):[],r=po();return new ze({type:"object",schema:e||null,*entries(n){if(e&&bt(n)){const i=new Set(Object.keys(n));for(const s of t)i.delete(s),yield[s,n[s],e[s]];for(const s of i)yield[s,n[s],r]}},validator(n){return bt(n)||`Expected an object, but received: ${Ke(n)}`},coercer(n){return bt(n)?{...n}:n}})}function Cl(e){return new ze({...e,validator:(t,r)=>t===void 0||e.validator(t,r),refiner:(t,r)=>t===void 0||e.refiner(t,r)})}function Z0(e,t){return new ze({type:"record",schema:null,*entries(r){if(bt(r))for(const n in r){const i=r[n];yield[n,n,e],yield[n,i,t]}},validator(r){return bt(r)||`Expected an object, but received: ${Ke(r)}`}})}function K0(){return ct("regexp",e=>e instanceof RegExp)}function Q0(e){return new ze({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(const r of t)yield[r,r,e]},coercer(t){return t instanceof Set?new Set(t):t},validator(t){return t instanceof Set||`Expected a \`Set\` object, but received: ${Ke(t)}`}})}function Ml(){return ct("string",e=>typeof e=="string"||`Expected a string, but received: ${Ke(e)}`)}function Y0(e){const t=po();return new ze({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const n=Math.max(e.length,r.length);for(let i=0;ir.type).join(" | ");return new ze({type:"union",schema:null,coercer(r){for(const n of e){const[i,s]=n.validate(r,{coerce:!0});if(!i)return s}return r},validator(r,n){const i=[];for(const s of e){const[...c]=ho(r,s,n),[a]=c;if(a[0])for(const[d]of c)d&&i.push(d);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${Ke(r)}`,...i]}})}function kl(){return ct("unknown",()=>!0)}function go(e,t,r){return new ze({...e,coercer:(n,i)=>fo(n,t)?e.coercer(r(n,i),i):e.coercer(n,i)})}function e1(e,t,r={}){return go(e,kl(),n=>{const i=typeof t=="function"?t():t;if(n===void 0)return i;if(!r.strict&&Ma(n)&&Ma(i)){const s={...n};let c=!1;for(const a in i)s[a]===void 0&&(s[a]=i[a],c=!0);if(c)return s}return n})}function t1(e){return go(e,Ml(),t=>t.trim())}function r1(e){return _r(e,"empty",t=>{const r=xl(t);return r===0||`Expected an empty ${e.type} but received one with a size of \`${r}\``})}function xl(e){return e instanceof Map||e instanceof Set?e.size:e.length}function n1(e,t,r={}){const{exclusive:n}=r;return _r(e,"max",i=>n?in?i>t:i>=t||`Expected a ${e.type} greater than ${n?"":"or equal to "}${t} but received \`${i}\``)}function s1(e){return _r(e,"nonempty",t=>xl(t)>0||`Expected a nonempty ${e.type} but received an empty one`)}function o1(e,t){return _r(e,"pattern",r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`)}function a1(e,t,r=t){const n=`Expected a ${e.type}`,i=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return _r(e,"size",s=>{if(typeof s=="number"||s instanceof Date)return t<=s&&s<=r||`${n} ${i} but received \`${s}\``;if(s instanceof Map||s instanceof Set){const{size:c}=s;return t<=c&&c<=r||`${n} with a size ${i} but received one with a size of \`${c}\``}else{const{length:c}=s;return t<=c&&c<=r||`${n} with a length ${i} but received one with a length of \`${c}\``}})}function _r(e,t,r){return new ze({...e,*refiner(n,i){yield*e.refiner(n,i);const s=r(n,i),c=Vs(s,i,e,n);for(const a of c)yield{...a,refinement:t}}})}const c1=Object.freeze(Object.defineProperty({__proto__:null,Struct:ze,StructError:_l,any:P0,array:O0,assert:El,assign:k0,bigint:$0,boolean:F0,coerce:go,create:Sl,date:D0,defaulted:e1,define:ct,deprecated:x0,dynamic:I0,empty:r1,enums:j0,func:U0,instance:H0,integer:W0,intersection:V0,is:fo,lazy:A0,literal:q0,map:z0,mask:Rl,max:n1,min:i1,never:po,nonempty:s1,nullable:G0,number:J0,object:Bn,omit:T0,optional:Cl,partial:N0,pattern:o1,pick:L0,record:Z0,refine:_r,regexp:K0,set:Q0,size:a1,string:Ml,struct:B0,trimmed:t1,tuple:Y0,type:Pn,union:X0,unknown:kl,validate:nn},Symbol.toStringTag,{value:"Module"})),Er=mn(c1);Object.defineProperty(rt,"__esModule",{value:!0});rt.assertExhaustive=rt.assertStruct=rt.assert=rt.AssertionError=void 0;const l1=Er;function u1(e){return typeof e=="object"&&e!==null&&"message"in e}function h1(e){var t,r;return typeof((r=(t=e==null?void 0:e.prototype)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.name)=="string"}function d1(e){const t=u1(e)?e.message:String(e);return t.endsWith(".")?t.slice(0,-1):t}function Il(e,t){return h1(e)?new e({message:t}):e({message:t})}class mo extends Error{constructor(t){super(t.message),this.code="ERR_ASSERTION"}}rt.AssertionError=mo;function f1(e,t="Assertion failed.",r=mo){if(!e)throw t instanceof Error?t:Il(r,t)}rt.assert=f1;function p1(e,t,r="Assertion failed",n=mo){try{(0,l1.assert)(e,t)}catch(i){throw Il(n,`${r}: ${d1(i)}.`)}}rt.assertStruct=p1;function g1(e){throw new Error("Invalid branch reached. Should be detected during compilation.")}rt.assertExhaustive=g1;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.base64=void 0;const m1=Er,w1=rt,y1=(e,t={})=>{var r,n;const i=(r=t.paddingRequired)!==null&&r!==void 0?r:!1,s=(n=t.characterSet)!==null&&n!==void 0?n:"base64";let c;s==="base64"?c=String.raw`[A-Za-z0-9+\/]`:((0,w1.assert)(s==="base64url"),c=String.raw`[-_A-Za-z0-9]`);let a;return i?a=new RegExp(`^(?:${c}{4})*(?:${c}{3}=|${c}{2}==)?$`,"u"):a=new RegExp(`^(?:${c}{4})*(?:${c}{2,3}|${c}{3}=|${c}{2}==)?$`,"u"),(0,m1.pattern)(e,a)};On.base64=y1;var ye={},$n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.StrictHexStruct=e.HexStruct=void 0;const t=Er,r=rt;e.HexStruct=(0,t.pattern)((0,t.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]+$/iu);function n(p){return(0,t.is)(p,e.HexStruct)}e.isHexString=n;function i(p){return(0,t.is)(p,e.StrictHexStruct)}e.isStrictHexString=i;function s(p){(0,r.assert)(n(p),"Value must be a hexadecimal string.")}e.assertIsHexString=s;function c(p){(0,r.assert)(i(p),'Value must be a hexadecimal string, starting with "0x".')}e.assertIsStrictHexString=c;function a(p){return p.startsWith("0x")?p:p.startsWith("0X")?`0x${p.substring(2)}`:`0x${p}`}e.add0x=a;function d(p){return p.startsWith("0x")||p.startsWith("0X")?p.substring(2):p}e.remove0x=d})($n);Object.defineProperty(ye,"__esModule",{value:!0});ye.createDataView=ye.concatBytes=ye.valueToBytes=ye.stringToBytes=ye.numberToBytes=ye.signedBigIntToBytes=ye.bigIntToBytes=ye.hexToBytes=ye.bytesToString=ye.bytesToNumber=ye.bytesToSignedBigInt=ye.bytesToBigInt=ye.bytesToHex=ye.assertIsBytes=ye.isBytes=void 0;const ht=rt,qs=$n,ka=48,xa=58,Ia=87;function b1(){const e=[];return()=>{if(e.length===0)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}const v1=b1();function wo(e){return e instanceof Uint8Array}ye.isBytes=wo;function sn(e){(0,ht.assert)(wo(e),"Value must be a Uint8Array.")}ye.assertIsBytes=sn;function Al(e){if(sn(e),e.length===0)return"0x";const t=v1(),r=new Array(e.length);for(let n=0;n=BigInt(0),"Value must be a non-negative bigint.");const t=e.toString(16);return Ui(t)}ye.bigIntToBytes=Nl;function R1(e,t){(0,ht.assert)(t>0);const r=e>>BigInt(31);return!((~e&r)+(e&~r)>>BigInt(t*8+-1))}function C1(e,t){(0,ht.assert)(typeof e=="bigint","Value must be a bigint."),(0,ht.assert)(typeof t=="number","Byte length must be a number."),(0,ht.assert)(t>0,"Byte length must be greater than 0."),(0,ht.assert)(R1(e,t),"Byte length is too small to represent the given value.");let r=e;const n=new Uint8Array(t);for(let i=0;i>=BigInt(8);return n.reverse()}ye.signedBigIntToBytes=C1;function Ll(e){(0,ht.assert)(typeof e=="number","Value must be a number."),(0,ht.assert)(e>=0,"Value must be a non-negative number."),(0,ht.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");const t=e.toString(16);return Ui(t)}ye.numberToBytes=Ll;function Bl(e){return(0,ht.assert)(typeof e=="string","Value must be a string."),new TextEncoder().encode(e)}ye.stringToBytes=Bl;function Pl(e){if(typeof e=="bigint")return Nl(e);if(typeof e=="number")return Ll(e);if(typeof e=="string")return e.startsWith("0x")?Ui(e):Bl(e);if(wo(e))return e;throw new TypeError(`Unsupported value type: "${typeof e}".`)}ye.valueToBytes=Pl;function M1(e){const t=new Array(e.length);let r=0;for(let i=0;it.call(r,n,i,this))}get(t){return st(this,_t,"f").get(t)}has(t){return st(this,_t,"f").has(t)}keys(){return st(this,_t,"f").keys()}values(){return st(this,_t,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([t,r])=>`${String(t)} => ${String(r)}`).join(", ")} `:""}}`}}Zr.FrozenMap=yo;class bo{constructor(t){kt.set(this,void 0),Fl(this,kt,new Set(t),"f"),Object.freeze(this)}get size(){return st(this,kt,"f").size}[(kt=new WeakMap,Symbol.iterator)](){return st(this,kt,"f")[Symbol.iterator]()}entries(){return st(this,kt,"f").entries()}forEach(t,r){return st(this,kt,"f").forEach((n,i,s)=>t.call(r,n,i,this))}has(t){return st(this,kt,"f").has(t)}keys(){return st(this,kt,"f").keys()}values(){return st(this,kt,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(t=>String(t)).join(", ")} `:""}}`}}Zr.FrozenSet=bo;Object.freeze(yo);Object.freeze(yo.prototype);Object.freeze(bo);Object.freeze(bo.prototype);var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0});var jl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.getJsonSize=e.isValidJson=e.JsonStruct=e.UnsafeJsonStruct=void 0;const t=Er,r=rt,n=()=>(0,t.define)("finite number",j=>(0,t.is)(j,(0,t.number)())&&Number.isFinite(j));e.UnsafeJsonStruct=(0,t.union)([(0,t.literal)(null),(0,t.boolean)(),n(),(0,t.string)(),(0,t.array)((0,t.lazy)(()=>e.UnsafeJsonStruct)),(0,t.record)((0,t.string)(),(0,t.lazy)(()=>e.UnsafeJsonStruct))]),e.JsonStruct=(0,t.define)("Json",(j,z)=>{function te(Y,Q){const oe=[...Q.validator(Y,z)];return oe.length>0?oe:!0}try{const Y=te(j,e.UnsafeJsonStruct);return Y!==!0?Y:te(JSON.parse(JSON.stringify(j)),e.UnsafeJsonStruct)}catch(Y){return Y instanceof RangeError?"Circular reference detected":!1}});function i(j){return(0,t.is)(j,e.JsonStruct)}e.isValidJson=i;function s(j){(0,r.assertStruct)(j,e.JsonStruct,"Invalid JSON value");const z=JSON.stringify(j);return new TextEncoder().encode(z).byteLength}e.getJsonSize=s,e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,t.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,t.nullable)((0,t.union)([(0,t.number)(),(0,t.string)()])),e.JsonRpcErrorStruct=(0,t.object)({code:(0,t.integer)(),message:(0,t.string)(),data:(0,t.optional)(e.JsonStruct),stack:(0,t.optional)((0,t.string)())}),e.JsonRpcParamsStruct=(0,t.optional)((0,t.union)([(0,t.record)((0,t.string)(),e.JsonStruct),(0,t.array)(e.JsonStruct)])),e.JsonRpcRequestStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:e.JsonRpcParamsStruct}),e.JsonRpcNotificationStruct=(0,t.omit)(e.JsonRpcRequestStruct,["id"]);function c(j){return(0,t.is)(j,e.JsonRpcNotificationStruct)}e.isJsonRpcNotification=c;function a(j,z){(0,r.assertStruct)(j,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",z)}e.assertIsJsonRpcNotification=a;function d(j){return(0,t.is)(j,e.JsonRpcRequestStruct)}e.isJsonRpcRequest=d;function p(j,z){(0,r.assertStruct)(j,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",z)}e.assertIsJsonRpcRequest=p,e.PendingJsonRpcResponseStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,t.optional)((0,t.unknown)()),error:(0,t.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,t.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]);function g(j){return(0,t.is)(j,e.PendingJsonRpcResponseStruct)}e.isPendingJsonRpcResponse=g;function y(j,z){(0,r.assertStruct)(j,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",z)}e.assertIsPendingJsonRpcResponse=y;function _(j){return(0,t.is)(j,e.JsonRpcResponseStruct)}e.isJsonRpcResponse=_;function A(j,z){(0,r.assertStruct)(j,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",z)}e.assertIsJsonRpcResponse=A;function L(j){return(0,t.is)(j,e.JsonRpcSuccessStruct)}e.isJsonRpcSuccess=L;function H(j,z){(0,r.assertStruct)(j,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",z)}e.assertIsJsonRpcSuccess=H;function F(j){return(0,t.is)(j,e.JsonRpcFailureStruct)}e.isJsonRpcFailure=F;function I(j,z){(0,r.assertStruct)(j,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",z)}e.assertIsJsonRpcFailure=I;function O(j){return(0,t.is)(j,e.JsonRpcErrorStruct)}e.isJsonRpcError=O;function B(j,z){(0,r.assertStruct)(j,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",z)}e.assertIsJsonRpcError=B;function V(j){const{permitEmptyString:z,permitFractions:te,permitNull:Y}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},j);return fe=>!!(typeof fe=="number"&&(te||Number.isInteger(fe))||typeof fe=="string"&&(z||fe.length>0)||Y&&fe===null)}e.getJsonRpcIdValidator=V})(jl);var Ul={};Object.defineProperty(Ul,"__esModule",{value:!0});var Kr={},zs={exports:{}},xs,Ta;function F1(){if(Ta)return xs;Ta=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,s=n*365.25;xs=function(g,y){y=y||{};var _=typeof g;if(_==="string"&&g.length>0)return c(g);if(_==="number"&&isFinite(g))return y.long?d(g):a(g);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(g))};function c(g){if(g=String(g),!(g.length>100)){var y=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(y){var _=parseFloat(y[1]),A=(y[2]||"ms").toLowerCase();switch(A){case"years":case"year":case"yrs":case"yr":case"y":return _*s;case"weeks":case"week":case"w":return _*i;case"days":case"day":case"d":return _*n;case"hours":case"hour":case"hrs":case"hr":case"h":return _*r;case"minutes":case"minute":case"mins":case"min":case"m":return _*t;case"seconds":case"second":case"secs":case"sec":case"s":return _*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return _;default:return}}}}function a(g){var y=Math.abs(g);return y>=n?Math.round(g/n)+"d":y>=r?Math.round(g/r)+"h":y>=t?Math.round(g/t)+"m":y>=e?Math.round(g/e)+"s":g+"ms"}function d(g){var y=Math.abs(g);return y>=n?p(g,y,n,"day"):y>=r?p(g,y,r,"hour"):y>=t?p(g,y,t,"minute"):y>=e?p(g,y,e,"second"):g+" ms"}function p(g,y,_,A){var L=y>=_*1.5;return Math.round(g/_)+" "+A+(L?"s":"")}return xs}function D1(e){r.debug=r,r.default=r,r.coerce=d,r.disable=s,r.enable=i,r.enabled=c,r.humanize=F1(),r.destroy=p,Object.keys(e).forEach(g=>{r[g]=e[g]}),r.names=[],r.skips=[],r.formatters={};function t(g){let y=0;for(let _=0;_{if(z==="%%")return"%";V++;const Y=r.formatters[te];if(typeof Y=="function"){const Q=F[V];z=Y.call(I,Q),F.splice(V,1),V--}return z}),r.formatArgs.call(I,F),(I.log||r.log).apply(I,F)}return H.namespace=g,H.useColors=r.useColors(),H.color=r.selectColor(g),H.extend=n,H.destroy=r.destroy,Object.defineProperty(H,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(A!==r.namespaces&&(A=r.namespaces,L=r.enabled(g)),L),set:F=>{_=F}}),typeof r.init=="function"&&r.init(H),H}function n(g,y){const _=r(this.namespace+(typeof y>"u"?":":y)+g);return _.log=this.log,_}function i(g){r.save(g),r.namespaces=g,r.names=[],r.skips=[];let y;const _=(typeof g=="string"?g:"").split(/[\s,]+/),A=_.length;for(y=0;y"-"+y)].join(",");return r.enable(""),g}function c(g){if(g[g.length-1]==="*")return!0;let y,_;for(y=0,_=r.skips.length;y<_;y++)if(r.skips[y].test(g))return!1;for(y=0,_=r.names.length;y<_;y++)if(r.names[y].test(g))return!0;return!1}function a(g){return g.toString().substring(2,g.toString().length-2).replace(/\.\*\?$/,"*")}function d(g){return g instanceof Error?g.stack||g.message:g}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var j1=D1;(function(e,t){var r={};t.formatArgs=i,t.save=s,t.load=c,t.useColors=n,t.storage=a(),t.destroy=(()=>{let p=!1;return()=>{p||(p=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(p){if(p[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+p[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const g="color: "+this.color;p.splice(1,0,g,"color: inherit");let y=0,_=0;p[0].replace(/%[a-zA-Z%]/g,A=>{A!=="%%"&&(y++,A==="%c"&&(_=y))}),p.splice(_,0,g)}t.log=console.debug||console.log||(()=>{});function s(p){try{p?t.storage.setItem("debug",p):t.storage.removeItem("debug")}catch{}}function c(){let p;try{p=t.storage.getItem("debug")}catch{}return!p&&typeof process<"u"&&"env"in process&&(p=r.DEBUG),p}function a(){try{return localStorage}catch{}}e.exports=j1(t);const{formatters:d}=e.exports;d.j=function(p){try{return JSON.stringify(p)}catch(g){return"[UnexpectedJSONParseError]: "+g.message}}})(zs,zs.exports);var U1=zs.exports,H1=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kr,"__esModule",{value:!0});Kr.createModuleLogger=Kr.createProjectLogger=void 0;const W1=H1(U1),V1=(0,W1.default)("metamask");function q1(e){return V1.extend(e)}Kr.createProjectLogger=q1;function z1(e,t){return e.extend(t)}Kr.createModuleLogger=z1;var Hl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0;function t(p){return Array.isArray(p)&&p.length>0}e.isNonEmptyArray=t;function r(p){return p==null}e.isNullOrUndefined=r;function n(p){return!!p&&typeof p=="object"&&!Array.isArray(p)}e.isObject=n;const i=(p,g)=>Object.hasOwnProperty.call(p,g);e.hasProperty=i,function(p){p[p.Null=4]="Null",p[p.Comma=1]="Comma",p[p.Wrapper=1]="Wrapper",p[p.True=4]="True",p[p.False=5]="False",p[p.Quote=1]="Quote",p[p.Colon=1]="Colon",p[p.Date=24]="Date"}(e.JsonSize||(e.JsonSize={})),e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu;function s(p){if(typeof p!="object"||p===null)return!1;try{let g=p;for(;Object.getPrototypeOf(g)!==null;)g=Object.getPrototypeOf(g);return Object.getPrototypeOf(p)===g}catch{return!1}}e.isPlainObject=s;function c(p){return p.charCodeAt(0)<=127}e.isASCII=c;function a(p){var g;return p.split("").reduce((_,A)=>c(A)?_+1:_+2,0)+((g=p.match(e.ESCAPE_CHARACTERS_REGEXP))!==null&&g!==void 0?g:[]).length}e.calculateStringSize=a;function d(p){return p.toString().length}e.calculateNumberSize=d})(Hl);var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.hexToBigInt=Pt.hexToNumber=Pt.bigIntToHex=Pt.numberToHex=void 0;const Hr=rt,pn=$n,G1=e=>((0,Hr.assert)(typeof e=="number","Value must be a number."),(0,Hr.assert)(e>=0,"Value must be a non-negative number."),(0,Hr.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,pn.add0x)(e.toString(16)));Pt.numberToHex=G1;const J1=e=>((0,Hr.assert)(typeof e=="bigint","Value must be a bigint."),(0,Hr.assert)(e>=0,"Value must be a non-negative bigint."),(0,pn.add0x)(e.toString(16)));Pt.bigIntToHex=J1;const Z1=e=>{(0,pn.assertIsHexString)(e);const t=parseInt(e,16);return(0,Hr.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t};Pt.hexToNumber=Z1;const K1=e=>((0,pn.assertIsHexString)(e),BigInt((0,pn.add0x)(e)));Pt.hexToBigInt=K1;var Wl={};Object.defineProperty(Wl,"__esModule",{value:!0});var Vl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,function(s){s[s.Millisecond=1]="Millisecond",s[s.Second=1e3]="Second",s[s.Minute=6e4]="Minute",s[s.Hour=36e5]="Hour",s[s.Day=864e5]="Day",s[s.Week=6048e5]="Week",s[s.Year=31536e6]="Year"}(e.Duration||(e.Duration={}));const t=s=>Number.isInteger(s)&&s>=0,r=(s,c)=>{if(!t(s))throw new Error(`"${c}" must be a non-negative integer. Received: "${s}".`)};function n(s,c){return r(s,"count"),s*c}e.inMilliseconds=n;function i(s){return r(s,"timestamp"),Date.now()-s}e.timeSince=i})(Vl);var ql={};Object.defineProperty(ql,"__esModule",{value:!0});var zl={},Gs={exports:{}};const Q1="2.0.0",Gl=256,Y1=Number.MAX_SAFE_INTEGER||9007199254740991,X1=16,ep=Gl-6,tp=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Vi={MAX_LENGTH:Gl,MAX_SAFE_COMPONENT_LENGTH:X1,MAX_SAFE_BUILD_LENGTH:ep,MAX_SAFE_INTEGER:Y1,RELEASE_TYPES:tp,SEMVER_SPEC_VERSION:Q1,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Is={};const rp=typeof process=="object"&&Is&&Is.NODE_DEBUG&&/\bsemver\b/i.test(Is.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var qi=rp;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=Vi,s=qi;t=e.exports={};const c=t.re=[],a=t.safeRe=[],d=t.src=[],p=t.t={};let g=0;const y="[a-zA-Z0-9-]",_=[["\\s",1],["\\d",i],[y,n]],A=H=>{for(const[F,I]of _)H=H.split(`${F}*`).join(`${F}{0,${I}}`).split(`${F}+`).join(`${F}{1,${I}}`);return H},L=(H,F,I)=>{const O=A(F),B=g++;s(H,B,F),p[H]=B,d[B]=F,c[B]=new RegExp(F,I?"g":void 0),a[B]=new RegExp(O,I?"g":void 0)};L("NUMERICIDENTIFIER","0|[1-9]\\d*"),L("NUMERICIDENTIFIERLOOSE","\\d+"),L("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`),L("MAINVERSION",`(${d[p.NUMERICIDENTIFIER]})\\.(${d[p.NUMERICIDENTIFIER]})\\.(${d[p.NUMERICIDENTIFIER]})`),L("MAINVERSIONLOOSE",`(${d[p.NUMERICIDENTIFIERLOOSE]})\\.(${d[p.NUMERICIDENTIFIERLOOSE]})\\.(${d[p.NUMERICIDENTIFIERLOOSE]})`),L("PRERELEASEIDENTIFIER",`(?:${d[p.NUMERICIDENTIFIER]}|${d[p.NONNUMERICIDENTIFIER]})`),L("PRERELEASEIDENTIFIERLOOSE",`(?:${d[p.NUMERICIDENTIFIERLOOSE]}|${d[p.NONNUMERICIDENTIFIER]})`),L("PRERELEASE",`(?:-(${d[p.PRERELEASEIDENTIFIER]}(?:\\.${d[p.PRERELEASEIDENTIFIER]})*))`),L("PRERELEASELOOSE",`(?:-?(${d[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[p.PRERELEASEIDENTIFIERLOOSE]})*))`),L("BUILDIDENTIFIER",`${y}+`),L("BUILD",`(?:\\+(${d[p.BUILDIDENTIFIER]}(?:\\.${d[p.BUILDIDENTIFIER]})*))`),L("FULLPLAIN",`v?${d[p.MAINVERSION]}${d[p.PRERELEASE]}?${d[p.BUILD]}?`),L("FULL",`^${d[p.FULLPLAIN]}$`),L("LOOSEPLAIN",`[v=\\s]*${d[p.MAINVERSIONLOOSE]}${d[p.PRERELEASELOOSE]}?${d[p.BUILD]}?`),L("LOOSE",`^${d[p.LOOSEPLAIN]}$`),L("GTLT","((?:<|>)?=?)"),L("XRANGEIDENTIFIERLOOSE",`${d[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),L("XRANGEIDENTIFIER",`${d[p.NUMERICIDENTIFIER]}|x|X|\\*`),L("XRANGEPLAIN",`[v=\\s]*(${d[p.XRANGEIDENTIFIER]})(?:\\.(${d[p.XRANGEIDENTIFIER]})(?:\\.(${d[p.XRANGEIDENTIFIER]})(?:${d[p.PRERELEASE]})?${d[p.BUILD]}?)?)?`),L("XRANGEPLAINLOOSE",`[v=\\s]*(${d[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[p.XRANGEIDENTIFIERLOOSE]})(?:${d[p.PRERELEASELOOSE]})?${d[p.BUILD]}?)?)?`),L("XRANGE",`^${d[p.GTLT]}\\s*${d[p.XRANGEPLAIN]}$`),L("XRANGELOOSE",`^${d[p.GTLT]}\\s*${d[p.XRANGEPLAINLOOSE]}$`),L("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),L("COERCE",`${d[p.COERCEPLAIN]}(?:$|[^\\d])`),L("COERCEFULL",d[p.COERCEPLAIN]+`(?:${d[p.PRERELEASE]})?(?:${d[p.BUILD]})?(?:$|[^\\d])`),L("COERCERTL",d[p.COERCE],!0),L("COERCERTLFULL",d[p.COERCEFULL],!0),L("LONETILDE","(?:~>?)"),L("TILDETRIM",`(\\s*)${d[p.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",L("TILDE",`^${d[p.LONETILDE]}${d[p.XRANGEPLAIN]}$`),L("TILDELOOSE",`^${d[p.LONETILDE]}${d[p.XRANGEPLAINLOOSE]}$`),L("LONECARET","(?:\\^)"),L("CARETTRIM",`(\\s*)${d[p.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",L("CARET",`^${d[p.LONECARET]}${d[p.XRANGEPLAIN]}$`),L("CARETLOOSE",`^${d[p.LONECARET]}${d[p.XRANGEPLAINLOOSE]}$`),L("COMPARATORLOOSE",`^${d[p.GTLT]}\\s*(${d[p.LOOSEPLAIN]})$|^$`),L("COMPARATOR",`^${d[p.GTLT]}\\s*(${d[p.FULLPLAIN]})$|^$`),L("COMPARATORTRIM",`(\\s*)${d[p.GTLT]}\\s*(${d[p.LOOSEPLAIN]}|${d[p.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",L("HYPHENRANGE",`^\\s*(${d[p.XRANGEPLAIN]})\\s+-\\s+(${d[p.XRANGEPLAIN]})\\s*$`),L("HYPHENRANGELOOSE",`^\\s*(${d[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[p.XRANGEPLAINLOOSE]})\\s*$`),L("STAR","(<|>)?=?\\s*\\*"),L("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),L("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Gs,Gs.exports);var Fn=Gs.exports;const np=Object.freeze({loose:!0}),ip=Object.freeze({}),sp=e=>e?typeof e!="object"?np:e:ip;var vo=sp;const Na=/^[0-9]+$/,Jl=(e,t)=>{const r=Na.test(e),n=Na.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:eJl(t,e);var Zl={compareIdentifiers:Jl,rcompareIdentifiers:op};const Zn=qi,{MAX_LENGTH:La,MAX_SAFE_INTEGER:Kn}=Vi,{safeRe:Ba,t:Pa}=Fn,ap=vo,{compareIdentifiers:Or}=Zl;let cp=class xt{constructor(t,r){if(r=ap(r),t instanceof xt){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>La)throw new TypeError(`version is longer than ${La} characters`);Zn("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Ba[Pa.LOOSE]:Ba[Pa.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Kn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Kn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Kn||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const s=+i;if(s>=0&&s=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),Or(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var ot=cp;const Oa=ot,lp=(e,t,r=!1)=>{if(e instanceof Oa)return e;try{return new Oa(e,t)}catch(n){if(!r)return null;throw n}};var on=lp;const up=on,hp=(e,t)=>{const r=up(e,t);return r?r.version:null};var dp=hp;const fp=on,pp=(e,t)=>{const r=fp(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var gp=pp;const $a=ot,mp=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new $a(e instanceof $a?e.version:e,r).inc(t,n,i).version}catch{return null}};var wp=mp;const Fa=on,yp=(e,t)=>{const r=Fa(e,null,!0),n=Fa(t,null,!0),i=r.compare(n);if(i===0)return null;const s=i>0,c=s?r:n,a=s?n:r,d=!!c.prerelease.length;if(!!a.prerelease.length&&!d)return!a.patch&&!a.minor?"major":c.patch?"patch":c.minor?"minor":"major";const g=d?"pre":"";return r.major!==n.major?g+"major":r.minor!==n.minor?g+"minor":r.patch!==n.patch?g+"patch":"prerelease"};var bp=yp;const vp=ot,_p=(e,t)=>new vp(e,t).major;var Ep=_p;const Sp=ot,Rp=(e,t)=>new Sp(e,t).minor;var Cp=Rp;const Mp=ot,kp=(e,t)=>new Mp(e,t).patch;var xp=kp;const Ip=on,Ap=(e,t)=>{const r=Ip(e,t);return r&&r.prerelease.length?r.prerelease:null};var Tp=Ap;const Da=ot,Np=(e,t,r)=>new Da(e,r).compare(new Da(t,r));var Rt=Np;const Lp=Rt,Bp=(e,t,r)=>Lp(t,e,r);var Pp=Bp;const Op=Rt,$p=(e,t)=>Op(e,t,!0);var Fp=$p;const ja=ot,Dp=(e,t,r)=>{const n=new ja(e,r),i=new ja(t,r);return n.compare(i)||n.compareBuild(i)};var _o=Dp;const jp=_o,Up=(e,t)=>e.sort((r,n)=>jp(r,n,t));var Hp=Up;const Wp=_o,Vp=(e,t)=>e.sort((r,n)=>Wp(n,r,t));var qp=Vp;const zp=Rt,Gp=(e,t,r)=>zp(e,t,r)>0;var zi=Gp;const Jp=Rt,Zp=(e,t,r)=>Jp(e,t,r)<0;var Eo=Zp;const Kp=Rt,Qp=(e,t,r)=>Kp(e,t,r)===0;var Kl=Qp;const Yp=Rt,Xp=(e,t,r)=>Yp(e,t,r)!==0;var Ql=Xp;const eg=Rt,tg=(e,t,r)=>eg(e,t,r)>=0;var So=tg;const rg=Rt,ng=(e,t,r)=>rg(e,t,r)<=0;var Ro=ng;const ig=Kl,sg=Ql,og=zi,ag=So,cg=Eo,lg=Ro,ug=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return ig(e,r,n);case"!=":return sg(e,r,n);case">":return og(e,r,n);case">=":return ag(e,r,n);case"<":return cg(e,r,n);case"<=":return lg(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var Yl=ug;const hg=ot,dg=on,{safeRe:Qn,t:Yn}=Fn,fg=(e,t)=>{if(e instanceof hg)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Qn[Yn.COERCEFULL]:Qn[Yn.COERCE]);else{const d=t.includePrerelease?Qn[Yn.COERCERTLFULL]:Qn[Yn.COERCERTL];let p;for(;(p=d.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||p.index+p[0].length!==r.index+r[0].length)&&(r=p),d.lastIndex=p.index+p[1].length+p[2].length;d.lastIndex=-1}if(r===null)return null;const n=r[2],i=r[3]||"0",s=r[4]||"0",c=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return dg(`${n}.${i}.${s}${c}${a}`,t)};var pg=fg;class gg{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}}var mg=gg,As,Ua;function Ct(){if(Ua)return As;Ua=1;const e=/\s+/g;class t{constructor(f,w){if(w=i(w),f instanceof t)return f.loose===!!w.loose&&f.includePrerelease===!!w.includePrerelease?f:new t(f.raw,w);if(f instanceof s)return this.raw=f.value,this.set=[[f]],this.formatted=void 0,this;if(this.options=w,this.loose=!!w.loose,this.includePrerelease=!!w.includePrerelease,this.raw=f.trim().replace(e," "),this.set=this.raw.split("||").map(b=>this.parseRange(b.trim())).filter(b=>b.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const b=this.set[0];if(this.set=this.set.filter(S=>!H(S[0])),this.set.length===0)this.set=[b];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&F(S[0])){this.set=[S];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let f=0;f0&&(this.formatted+="||");const w=this.set[f];for(let b=0;b0&&(this.formatted+=" "),this.formatted+=w[b].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(f){const b=((this.options.includePrerelease&&A)|(this.options.loose&&L))+":"+f,S=n.get(b);if(S)return S;const k=this.options.loose,N=k?d[p.HYPHENRANGELOOSE]:d[p.HYPHENRANGE];f=f.replace(N,pe(this.options.includePrerelease)),c("hyphen replace",f),f=f.replace(d[p.COMPARATORTRIM],g),c("comparator trim",f),f=f.replace(d[p.TILDETRIM],y),c("tilde trim",f),f=f.replace(d[p.CARETTRIM],_),c("caret trim",f);let v=f.split(" ").map(J=>O(J,this.options)).join(" ").split(/\s+/).map(J=>oe(J,this.options));k&&(v=v.filter(J=>(c("loose invalid filter",J,this.options),!!J.match(d[p.COMPARATORLOOSE])))),c("range list",v);const u=new Map,R=v.map(J=>new s(J,this.options));for(const J of R){if(H(J))return[J];u.set(J.value,J)}u.size>1&&u.has("")&&u.delete("");const K=[...u.values()];return n.set(b,K),K}intersects(f,w){if(!(f instanceof t))throw new TypeError("a Range is required");return this.set.some(b=>I(b,w)&&f.set.some(S=>I(S,w)&&b.every(k=>S.every(N=>k.intersects(N,w)))))}test(f){if(!f)return!1;if(typeof f=="string")try{f=new a(f,this.options)}catch{return!1}for(let w=0;wo.value==="<0.0.0-0",F=o=>o.value==="",I=(o,f)=>{let w=!0;const b=o.slice();let S=b.pop();for(;w&&b.length;)w=b.every(k=>S.intersects(k,f)),S=b.pop();return w},O=(o,f)=>(c("comp",o,f),o=z(o,f),c("caret",o),o=V(o,f),c("tildes",o),o=Y(o,f),c("xrange",o),o=fe(o,f),c("stars",o),o),B=o=>!o||o.toLowerCase()==="x"||o==="*",V=(o,f)=>o.trim().split(/\s+/).map(w=>j(w,f)).join(" "),j=(o,f)=>{const w=f.loose?d[p.TILDELOOSE]:d[p.TILDE];return o.replace(w,(b,S,k,N,v)=>{c("tilde",o,b,S,k,N,v);let u;return B(S)?u="":B(k)?u=`>=${S}.0.0 <${+S+1}.0.0-0`:B(N)?u=`>=${S}.${k}.0 <${S}.${+k+1}.0-0`:v?(c("replaceTilde pr",v),u=`>=${S}.${k}.${N}-${v} <${S}.${+k+1}.0-0`):u=`>=${S}.${k}.${N} <${S}.${+k+1}.0-0`,c("tilde return",u),u})},z=(o,f)=>o.trim().split(/\s+/).map(w=>te(w,f)).join(" "),te=(o,f)=>{c("caret",o,f);const w=f.loose?d[p.CARETLOOSE]:d[p.CARET],b=f.includePrerelease?"-0":"";return o.replace(w,(S,k,N,v,u)=>{c("caret",o,S,k,N,v,u);let R;return B(k)?R="":B(N)?R=`>=${k}.0.0${b} <${+k+1}.0.0-0`:B(v)?k==="0"?R=`>=${k}.${N}.0${b} <${k}.${+N+1}.0-0`:R=`>=${k}.${N}.0${b} <${+k+1}.0.0-0`:u?(c("replaceCaret pr",u),k==="0"?N==="0"?R=`>=${k}.${N}.${v}-${u} <${k}.${N}.${+v+1}-0`:R=`>=${k}.${N}.${v}-${u} <${k}.${+N+1}.0-0`:R=`>=${k}.${N}.${v}-${u} <${+k+1}.0.0-0`):(c("no pr"),k==="0"?N==="0"?R=`>=${k}.${N}.${v}${b} <${k}.${N}.${+v+1}-0`:R=`>=${k}.${N}.${v}${b} <${k}.${+N+1}.0-0`:R=`>=${k}.${N}.${v} <${+k+1}.0.0-0`),c("caret return",R),R})},Y=(o,f)=>(c("replaceXRanges",o,f),o.split(/\s+/).map(w=>Q(w,f)).join(" ")),Q=(o,f)=>{o=o.trim();const w=f.loose?d[p.XRANGELOOSE]:d[p.XRANGE];return o.replace(w,(b,S,k,N,v,u)=>{c("xRange",o,b,S,k,N,v,u);const R=B(k),K=R||B(N),J=K||B(v),T=J;return S==="="&&T&&(S=""),u=f.includePrerelease?"-0":"",R?S===">"||S==="<"?b="<0.0.0-0":b="*":S&&T?(K&&(N=0),v=0,S===">"?(S=">=",K?(k=+k+1,N=0,v=0):(N=+N+1,v=0)):S==="<="&&(S="<",K?k=+k+1:N=+N+1),S==="<"&&(u="-0"),b=`${S+k}.${N}.${v}${u}`):K?b=`>=${k}.0.0${u} <${+k+1}.0.0-0`:J&&(b=`>=${k}.${N}.0${u} <${k}.${+N+1}.0-0`),c("xRange return",b),b})},fe=(o,f)=>(c("replaceStars",o,f),o.trim().replace(d[p.STAR],"")),oe=(o,f)=>(c("replaceGTE0",o,f),o.trim().replace(d[f.includePrerelease?p.GTE0PRE:p.GTE0],"")),pe=o=>(f,w,b,S,k,N,v,u,R,K,J,T)=>(B(b)?w="":B(S)?w=`>=${b}.0.0${o?"-0":""}`:B(k)?w=`>=${b}.${S}.0${o?"-0":""}`:N?w=`>=${w}`:w=`>=${w}${o?"-0":""}`,B(R)?u="":B(K)?u=`<${+R+1}.0.0-0`:B(J)?u=`<${R}.${+K+1}.0-0`:T?u=`<=${R}.${K}.${J}-${T}`:o?u=`<${R}.${K}.${+J+1}-0`:u=`<=${u}`,`${w} ${u}`.trim()),x=(o,f,w)=>{for(let b=0;b0){const S=o[b].semver;if(S.major===f.major&&S.minor===f.minor&&S.patch===f.patch)return!0}return!1}return!0};return As}var Ts,Ha;function Gi(){if(Ha)return Ts;Ha=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(g,y){if(y=r(y),g instanceof t){if(g.loose===!!y.loose)return g;g=g.value}g=g.trim().split(/\s+/).join(" "),c("comparator",g,y),this.options=y,this.loose=!!y.loose,this.parse(g),this.semver===e?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(g){const y=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],_=g.match(y);if(!_)throw new TypeError(`Invalid comparator: ${g}`);this.operator=_[1]!==void 0?_[1]:"",this.operator==="="&&(this.operator=""),_[2]?this.semver=new a(_[2],this.options.loose):this.semver=e}toString(){return this.value}test(g){if(c("Comparator.test",g,this.options.loose),this.semver===e||g===e)return!0;if(typeof g=="string")try{g=new a(g,this.options)}catch{return!1}return s(g,this.operator,this.semver,this.options)}intersects(g,y){if(!(g instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new d(g.value,y).test(this.value):g.operator===""?g.value===""?!0:new d(this.value,y).test(g.semver):(y=r(y),y.includePrerelease&&(this.value==="<0.0.0-0"||g.value==="<0.0.0-0")||!y.includePrerelease&&(this.value.startsWith("<0.0.0")||g.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&g.operator.startsWith(">")||this.operator.startsWith("<")&&g.operator.startsWith("<")||this.semver.version===g.semver.version&&this.operator.includes("=")&&g.operator.includes("=")||s(this.semver,"<",g.semver,y)&&this.operator.startsWith(">")&&g.operator.startsWith("<")||s(this.semver,">",g.semver,y)&&this.operator.startsWith("<")&&g.operator.startsWith(">")))}}Ts=t;const r=vo,{safeRe:n,t:i}=Fn,s=Yl,c=qi,a=ot,d=Ct();return Ts}const wg=Ct(),yg=(e,t,r)=>{try{t=new wg(t,r)}catch{return!1}return t.test(e)};var Ji=yg;const bg=Ct(),vg=(e,t)=>new bg(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var _g=vg;const Eg=ot,Sg=Ct(),Rg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new Sg(t,r)}catch{return null}return e.forEach(c=>{s.test(c)&&(!n||i.compare(c)===-1)&&(n=c,i=new Eg(n,r))}),n};var Cg=Rg;const Mg=ot,kg=Ct(),xg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new kg(t,r)}catch{return null}return e.forEach(c=>{s.test(c)&&(!n||i.compare(c)===1)&&(n=c,i=new Mg(n,r))}),n};var Ig=xg;const Ns=ot,Ag=Ct(),Wa=zi,Tg=(e,t)=>{e=new Ag(e,t);let r=new Ns("0.0.0");if(e.test(r)||(r=new Ns("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n{const a=new Ns(c.semver.version);switch(c.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||Wa(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),s&&(!r||Wa(r,s))&&(r=s)}return r&&e.test(r)?r:null};var Ng=Tg;const Lg=Ct(),Bg=(e,t)=>{try{return new Lg(e,t).range||"*"}catch{return null}};var Pg=Bg;const Og=ot,Xl=Gi(),{ANY:$g}=Xl,Fg=Ct(),Dg=Ji,Va=zi,qa=Eo,jg=Ro,Ug=So,Hg=(e,t,r,n)=>{e=new Og(e,n),t=new Fg(t,n);let i,s,c,a,d;switch(r){case">":i=Va,s=jg,c=qa,a=">",d=">=";break;case"<":i=qa,s=Ug,c=Va,a="<",d="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Dg(e,t,n))return!1;for(let p=0;p{A.semver===$g&&(A=new Xl(">=0.0.0")),y=y||A,_=_||A,i(A.semver,y.semver,n)?y=A:c(A.semver,_.semver,n)&&(_=A)}),y.operator===a||y.operator===d||(!_.operator||_.operator===a)&&s(e,_.semver))return!1;if(_.operator===d&&c(e,_.semver))return!1}return!0};var Co=Hg;const Wg=Co,Vg=(e,t,r)=>Wg(e,t,">",r);var qg=Vg;const zg=Co,Gg=(e,t,r)=>zg(e,t,"<",r);var Jg=Gg;const za=Ct(),Zg=(e,t,r)=>(e=new za(e,r),t=new za(t,r),e.intersects(t,r));var Kg=Zg;const Qg=Ji,Yg=Rt;var Xg=(e,t,r)=>{const n=[];let i=null,s=null;const c=e.sort((g,y)=>Yg(g,y,r));for(const g of c)Qg(g,t,r)?(s=g,i||(i=g)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const a=[];for(const[g,y]of n)g===y?a.push(g):!y&&g===c[0]?a.push("*"):y?g===c[0]?a.push(`<=${y}`):a.push(`${g} - ${y}`):a.push(`>=${g}`);const d=a.join(" || "),p=typeof t.raw=="string"?t.raw:String(t);return d.length{if(e===t)return!0;e=new Ga(e,r),t=new Ga(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const c=rm(i,s,r);if(n=n||c!==null,c)continue e}if(n)return!1}return!0},tm=[new Mo(">=0.0.0-0")],Ja=[new Mo(">=0.0.0")],rm=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Ls){if(t.length===1&&t[0].semver===Ls)return!0;r.includePrerelease?e=tm:e=Ja}if(t.length===1&&t[0].semver===Ls){if(r.includePrerelease)return!0;t=Ja}const n=new Set;let i,s;for(const A of e)A.operator===">"||A.operator===">="?i=Za(i,A,r):A.operator==="<"||A.operator==="<="?s=Ka(s,A,r):n.add(A.semver);if(n.size>1)return null;let c;if(i&&s){if(c=ko(i.semver,s.semver,r),c>0)return null;if(c===0&&(i.operator!==">="||s.operator!=="<="))return null}for(const A of n){if(i&&!cn(A,String(i),r)||s&&!cn(A,String(s),r))return null;for(const L of t)if(!cn(A,String(L),r))return!1;return!0}let a,d,p,g,y=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,_=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;y&&y.prerelease.length===1&&s.operator==="<"&&y.prerelease[0]===0&&(y=!1);for(const A of t){if(g=g||A.operator===">"||A.operator===">=",p=p||A.operator==="<"||A.operator==="<=",i){if(_&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===_.major&&A.semver.minor===_.minor&&A.semver.patch===_.patch&&(_=!1),A.operator===">"||A.operator===">="){if(a=Za(i,A,r),a===A&&a!==i)return!1}else if(i.operator===">="&&!cn(i.semver,String(A),r))return!1}if(s){if(y&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===y.major&&A.semver.minor===y.minor&&A.semver.patch===y.patch&&(y=!1),A.operator==="<"||A.operator==="<="){if(d=Ka(s,A,r),d===A&&d!==s)return!1}else if(s.operator==="<="&&!cn(s.semver,String(A),r))return!1}if(!A.operator&&(s||i)&&c!==0)return!1}return!(i&&p&&!s&&c!==0||s&&g&&!i&&c!==0||_||y)},Za=(e,t,r)=>{if(!e)return t;const n=ko(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},Ka=(e,t,r)=>{if(!e)return t;const n=ko(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var nm=em;const Bs=Fn,Qa=Vi,im=ot,Ya=Zl,sm=on,om=dp,am=gp,cm=wp,lm=bp,um=Ep,hm=Cp,dm=xp,fm=Tp,pm=Rt,gm=Pp,mm=Fp,wm=_o,ym=Hp,bm=qp,vm=zi,_m=Eo,Em=Kl,Sm=Ql,Rm=So,Cm=Ro,Mm=Yl,km=pg,xm=Gi(),Im=Ct(),Am=Ji,Tm=_g,Nm=Cg,Lm=Ig,Bm=Ng,Pm=Pg,Om=Co,$m=qg,Fm=Jg,Dm=Kg,jm=Xg,Um=nm;var Hm={parse:sm,valid:om,clean:am,inc:cm,diff:lm,major:um,minor:hm,patch:dm,prerelease:fm,compare:pm,rcompare:gm,compareLoose:mm,compareBuild:wm,sort:ym,rsort:bm,gt:vm,lt:_m,eq:Em,neq:Sm,gte:Rm,lte:Cm,cmp:Mm,coerce:km,Comparator:xm,Range:Im,satisfies:Am,toComparators:Tm,maxSatisfying:Nm,minSatisfying:Lm,minVersion:Bm,validRange:Pm,outside:Om,gtr:$m,ltr:Fm,intersects:Dm,simplifyRange:jm,subset:Um,SemVer:im,re:Bs.re,src:Bs.src,tokens:Bs.t,SEMVER_SPEC_VERSION:Qa.SEMVER_SPEC_VERSION,RELEASE_TYPES:Qa.RELEASE_TYPES,compareIdentifiers:Ya.compareIdentifiers,rcompareIdentifiers:Ya.rcompareIdentifiers};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const t=Hm,r=Er,n=rt;e.VersionStruct=(0,r.refine)((0,r.string)(),"Version",y=>(0,t.valid)(y)===null?`Expected SemVer version, got "${y}"`:!0),e.VersionRangeStruct=(0,r.refine)((0,r.string)(),"Version range",y=>(0,t.validRange)(y)===null?`Expected SemVer range, got "${y}"`:!0);function i(y){return(0,r.is)(y,e.VersionStruct)}e.isValidSemVerVersion=i;function s(y){return(0,r.is)(y,e.VersionRangeStruct)}e.isValidSemVerRange=s;function c(y){(0,n.assertStruct)(y,e.VersionStruct)}e.assertIsSemVerVersion=c;function a(y){(0,n.assertStruct)(y,e.VersionRangeStruct)}e.assertIsSemVerRange=a;function d(y,_){return(0,t.gt)(y,_)}e.gtVersion=d;function p(y,_){return(0,t.gtr)(y,_)}e.gtRange=p;function g(y,_){return(0,t.satisfies)(y,_,{includePrerelease:!0})}e.satisfiesVersionRange=g})(zl);(function(e){var t=ee&&ee.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,c,a)}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=ee&&ee.__exportStar||function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(rt,e),r(On,e),r(ye,e),r(Hi,e),r(Bt,e),r(Zr,e),r(Dl,e),r($n,e),r(jl,e),r(Ul,e),r(Kr,e),r(Hl,e),r(Pt,e),r(Wl,e),r(Vl,e),r(ql,e),r(zl,e)})(vl);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createModuleLogger=e.projectLogger=void 0;const t=vl;Object.defineProperty(e,"createModuleLogger",{enumerable:!0,get:function(){return t.createModuleLogger}}),e.projectLogger=(0,t.createProjectLogger)("eth-block-tracker")})(bl);var eu=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ji,"__esModule",{value:!0});ji.PollingBlockTracker=void 0;const Wm=eu(uo),Vm=eu(g0),qm=Nn,Xa=bl,ec=(0,Xa.createModuleLogger)(Xa.projectLogger,"polling-block-tracker"),zm=(0,Wm.default)(),Gm=1e3;class Jm extends qm.BaseBlockTracker{constructor(t={}){var r;if(!t.provider)throw new Error("PollingBlockTracker - no provider specified.");super(Object.assign(Object.assign({},t),{blockResetDuration:(r=t.blockResetDuration)!==null&&r!==void 0?r:t.pollingInterval})),this._provider=t.provider,this._pollingInterval=t.pollingInterval||20*Gm,this._retryTimeout=t.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=t.keepEventLoopActive===void 0?!0:t.keepEventLoopActive,this._setSkipCacheFlag=t.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var t;this._isRunning;)try{await this._updateLatestBlock();const r=tc(this._pollingInterval,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await r}catch(r){const n=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block: -${(t=r.stack)!==null&&t!==void 0?t:r}`);try{this.emit("error",n)}catch{console.error(n)}const i=tc(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await i}}async _updateLatestBlock(){const t=await this._fetchLatestBlock();this._newPotentialLatest(t)}async _fetchLatestBlock(){const t={jsonrpc:"2.0",id:zm(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(t.skipCache=!0),ec("Making request",t);const r=await(0,Vm.default)(n=>this._provider.sendAsync(t,n))();if(ec("Got response",r),r.error)throw new Error(`PollingBlockTracker - encountered error fetching block: -${r.error.message}`);return r.result}}ji.PollingBlockTracker=Jm;function tc(e,t){return new Promise(r=>{const n=setTimeout(r,e);n.unref&&t&&n.unref()})}var Zi={},Zm=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.SubscribeBlockTracker=void 0;const Km=Zm(uo),Qm=Nn,Ym=(0,Km.default)();class Xm extends Qm.BaseBlockTracker{constructor(t={}){if(!t.provider)throw new Error("SubscribeBlockTracker - no provider specified.");super(t),this._provider=t.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(this._subscriptionId===void 0||this._subscriptionId===null)try{const t=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(t)}catch(t){this.emit("error",t)}}async _end(){if(this._subscriptionId!==null&&this._subscriptionId!==void 0)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(t){this.emit("error",t)}}_call(t,...r){return new Promise((n,i)=>{this._provider.sendAsync({id:Ym(),method:t,params:r,jsonrpc:"2.0"},(s,c)=>{s?i(s):n(c.result)})})}_handleSubData(t,r){var n;r.method==="eth_subscription"&&((n=r.params)===null||n===void 0?void 0:n.subscription)===this._subscriptionId&&this._newPotentialLatest(r.params.result.number)}}Zi.SubscribeBlockTracker=Xm;(function(e){var t=ee&&ee.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=ee&&ee.__exportStar||function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(ji,e),r(Zi,e)})(yl);var xo={},Ki={},Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.getUniqueId=void 0;const tu=4294967295;let Ps=Math.floor(Math.random()*tu);function ew(){return Ps=(Ps+1)%tu,Ps}Dn.getUniqueId=ew;Object.defineProperty(Ki,"__esModule",{value:!0});Ki.createIdRemapMiddleware=void 0;const tw=Dn;function rw(){return(e,t,r,n)=>{const i=e.id,s=tw.getUniqueId();e.id=s,t.id=s,r(c=>{e.id=i,t.id=i,c()})}}Ki.createIdRemapMiddleware=rw;var Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.createAsyncMiddleware=void 0;function nw(e){return async(t,r,n,i)=>{let s;const c=new Promise(g=>{s=g});let a=null,d=!1;const p=async()=>{d=!0,n(g=>{a=g,s()}),await c};try{await e(t,r,p),d?(await c,a(null)):i(null)}catch(g){a?a(g):i(g)}}}Qi.createAsyncMiddleware=nw;var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.createScaffoldMiddleware=void 0;function iw(e){return(t,r,n,i)=>{const s=e[t.method];return s===void 0?n():typeof s=="function"?s(t,r,n,i):(r.result=s,i())}}Yi.createScaffoldMiddleware=iw;var jn={},Io={};Object.defineProperty(Io,"__esModule",{value:!0});const sw=ai;function rc(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout(()=>{throw n})}}function ow(e){const t=e.length,r=new Array(t);for(let n=0;n0&&([c]=r),c instanceof Error)throw c;const a=new Error(`Unhandled error.${c?` (${c.message})`:""}`);throw a.context=c,a}const s=i[t];if(s===void 0)return!1;if(typeof s=="function")rc(s,this,r);else{const c=s.length,a=ow(s);for(let d=0;d"u"&&(n=iu()),Js(e,"",0,[],void 0,0,n);var i;try{pr.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,ou(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;wr.length!==0;){var s=wr.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Wr(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),wr.push([n,r,t,i])):pr.push([t,r,e]):(n[r]=e,wr.push([n,r,t]))}function Js(e,t,r,n,i,s,c){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;ac.depthLimit){Wr(si,e,t,i);return}if(typeof c.edgesLimit<"u"&&r+1>c.edgesLimit){Wr(si,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;at?1:0}function su(e,t,r,n){typeof n>"u"&&(n=iu());var i=Zs(e,"",0,[],void 0,0,n)||e,s;try{pr.length===0?s=JSON.stringify(i,t,r):s=JSON.stringify(i,ou(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;wr.length!==0;){var c=wr.pop();c.length===4?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function Zs(e,t,r,n,i,s,c){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;ac.depthLimit){Wr(si,e,t,i);return}if(typeof c.edgesLimit<"u"&&r+1>c.edgesLimit){Wr(si,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a0)for(var n=0;n=1e3&&e<=4999}function fw(e,t){if(t!=="[Circular]")return t}var Ao={},qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.errorValues=qt.errorCodes=void 0;qt.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};qt.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=qt,r=Vt,n=t.errorCodes.rpc.internal,i="Unspecified error message. This is a bug, please report it.",s={code:n,message:c(n)};e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function c(_,A=i){if(Number.isInteger(_)){const L=_.toString();if(y(t.errorValues,L))return t.errorValues[L].message;if(p(_))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return A}e.getMessageFromCode=c;function a(_){if(!Number.isInteger(_))return!1;const A=_.toString();return!!(t.errorValues[A]||p(_))}e.isValidCode=a;function d(_,{fallbackError:A=s,shouldIncludeStack:L=!1}={}){var H,F;if(!A||!Number.isInteger(A.code)||typeof A.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(_ instanceof r.EthereumRpcError)return _.serialize();const I={};if(_&&typeof _=="object"&&!Array.isArray(_)&&y(_,"code")&&a(_.code)){const B=_;I.code=B.code,B.message&&typeof B.message=="string"?(I.message=B.message,y(B,"data")&&(I.data=B.data)):(I.message=c(I.code),I.data={originalError:g(_)})}else{I.code=A.code;const B=(H=_)===null||H===void 0?void 0:H.message;I.message=B&&typeof B=="string"?B:A.message,I.data={originalError:g(_)}}const O=(F=_)===null||F===void 0?void 0:F.stack;return L&&_&&O&&typeof O=="string"&&(I.stack=O),I}e.serializeError=d;function p(_){return _>=-32099&&_<=-32e3}function g(_){return _&&typeof _=="object"&&!Array.isArray(_)?Object.assign({},_):_}function y(_,A){return Object.prototype.hasOwnProperty.call(_,A)}})(Ao);var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.ethErrors=void 0;const To=Vt,cu=Ao,nt=qt;Xi.ethErrors={rpc:{parse:e=>pt(nt.errorCodes.rpc.parse,e),invalidRequest:e=>pt(nt.errorCodes.rpc.invalidRequest,e),invalidParams:e=>pt(nt.errorCodes.rpc.invalidParams,e),methodNotFound:e=>pt(nt.errorCodes.rpc.methodNotFound,e),internal:e=>pt(nt.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return pt(t,e)},invalidInput:e=>pt(nt.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>pt(nt.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>pt(nt.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>pt(nt.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>pt(nt.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>pt(nt.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>ln(nt.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>ln(nt.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>ln(nt.errorCodes.provider.unsupportedMethod,e),disconnected:e=>ln(nt.errorCodes.provider.disconnected,e),chainDisconnected:e=>ln(nt.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:n}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new To.EthereumProviderError(t,r,n)}}};function pt(e,t){const[r,n]=lu(t);return new To.EthereumRpcError(e,r||cu.getMessageFromCode(e),n)}function ln(e,t){const[r,n]=lu(t);return new To.EthereumProviderError(e,r||cu.getMessageFromCode(e),n)}function lu(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=Vt;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const r=Ao;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const n=Xi;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return n.ethErrors}});const i=qt;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return i.errorCodes}})})(ru);var pw=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jn,"__esModule",{value:!0});jn.JsonRpcEngine=void 0;const gw=pw(Io),gt=ru;class Ot extends gw.default{constructor(){super(),this._middleware=[]}push(t){this._middleware.push(t)}handle(t,r){if(r&&typeof r!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(t)?r?this._handleBatch(t,r):this._handleBatch(t):r?this._handle(t,r):this._promiseHandle(t)}asMiddleware(){return async(t,r,n,i)=>{try{const[s,c,a]=await Ot._runAllMiddleware(t,r,this._middleware);return c?(await Ot._runReturnHandlers(a),i(s)):n(async d=>{try{await Ot._runReturnHandlers(a)}catch(p){return d(p)}return d()})}catch(s){return i(s)}}}async _handleBatch(t,r){try{const n=await Promise.all(t.map(this._promiseHandle.bind(this)));return r?r(null,n):n}catch(n){if(r)return r(n);throw n}}_promiseHandle(t){return new Promise(r=>{this._handle(t,(n,i)=>{r(i)})})}async _handle(t,r){if(!t||Array.isArray(t)||typeof t!="object"){const c=new gt.EthereumRpcError(gt.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof t}`,{request:t});return r(c,{id:void 0,jsonrpc:"2.0",error:c})}if(typeof t.method!="string"){const c=new gt.EthereumRpcError(gt.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof t.method}`,{request:t});return r(c,{id:t.id,jsonrpc:"2.0",error:c})}const n=Object.assign({},t),i={id:n.id,jsonrpc:n.jsonrpc};let s=null;try{await this._processRequest(n,i)}catch(c){s=c}return s&&(delete i.result,i.error||(i.error=gt.serializeError(s))),r(s,i)}async _processRequest(t,r){const[n,i,s]=await Ot._runAllMiddleware(t,r,this._middleware);if(Ot._checkForCompletion(t,r,i),await Ot._runReturnHandlers(s),n)throw n}static async _runAllMiddleware(t,r,n){const i=[];let s=null,c=!1;for(const a of n)if([s,c]=await Ot._runMiddleware(t,r,a,i),c)break;return[s,c,i.reverse()]}static _runMiddleware(t,r,n,i){return new Promise(s=>{const c=d=>{const p=d||r.error;p&&(r.error=gt.serializeError(p)),s([p,!0])},a=d=>{r.error?c(r.error):(d&&(typeof d!="function"&&c(new gt.EthereumRpcError(gt.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof d}" for request: -${Os(t)}`,{request:t})),i.push(d)),s([null,!1]))};try{n(t,r,a,c)}catch(d){c(d)}})}static async _runReturnHandlers(t){for(const r of t)await new Promise((n,i)=>{r(s=>s?i(s):n())})}static _checkForCompletion(t,r,n){if(!("result"in r)&&!("error"in r))throw new gt.EthereumRpcError(gt.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: -${Os(t)}`,{request:t});if(!n)throw new gt.EthereumRpcError(gt.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: -${Os(t)}`,{request:t})}}jn.JsonRpcEngine=Ot;function Os(e){return JSON.stringify(e,null,2)}var es={};Object.defineProperty(es,"__esModule",{value:!0});es.mergeMiddleware=void 0;const mw=jn;function ww(e){const t=new mw.JsonRpcEngine;return e.forEach(r=>t.push(r)),t.asMiddleware()}es.mergeMiddleware=ww;(function(e){var t=ee&&ee.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=ee&&ee.__exportStar||function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(Ki,e),r(Qi,e),r(Yi,e),r(Dn,e),r(jn,e),r(es,e)})(xo);var uu={},No={};const Lo=mn(gu);var ts={};Object.defineProperty(ts,"__esModule",{value:!0});var nc=Lo,yw=function(){function e(t){if(this._maxConcurrency=t,this._queue=[],t<=0)throw new Error("semaphore must be initialized to a positive value");this._value=t}return e.prototype.acquire=function(){var t=this,r=this.isLocked(),n=new Promise(function(i){return t._queue.push(i)});return r||this._dispatch(),n},e.prototype.runExclusive=function(t){return nc.__awaiter(this,void 0,void 0,function(){var r,n,i;return nc.__generator(this,function(s){switch(s.label){case 0:return[4,this.acquire()];case 1:r=s.sent(),n=r[0],i=r[1],s.label=2;case 2:return s.trys.push([2,,4,5]),[4,t(n)];case 3:return[2,s.sent()];case 4:return i(),[7];case 5:return[2]}})})},e.prototype.isLocked=function(){return this._value<=0},e.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},e.prototype._dispatch=function(){var t=this,r=this._queue.shift();if(r){var n=!1;this._currentReleaser=function(){n||(n=!0,t._value++,t._dispatch())},r([this._value--,this._currentReleaser])}},e}();ts.default=yw;Object.defineProperty(No,"__esModule",{value:!0});var ic=Lo,bw=ts,vw=function(){function e(){this._semaphore=new bw.default(1)}return e.prototype.acquire=function(){return ic.__awaiter(this,void 0,void 0,function(){var t,r;return ic.__generator(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return t=n.sent(),r=t[1],[2,r]}})})},e.prototype.runExclusive=function(t){return this._semaphore.runExclusive(function(){return t()})},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e}();No.default=vw;var rs={};Object.defineProperty(rs,"__esModule",{value:!0});rs.withTimeout=void 0;var Xn=Lo;function _w(e,t,r){var n=this;return r===void 0&&(r=new Error("timeout")),{acquire:function(){return new Promise(function(i,s){return Xn.__awaiter(n,void 0,void 0,function(){var c,a,d;return Xn.__generator(this,function(p){switch(p.label){case 0:return c=!1,setTimeout(function(){c=!0,s(r)},t),[4,e.acquire()];case 1:return a=p.sent(),c?(d=Array.isArray(a)?a[1]:a,d()):i(a),[2]}})})})},runExclusive:function(i){return Xn.__awaiter(this,void 0,void 0,function(){var s,c;return Xn.__generator(this,function(a){switch(a.label){case 0:s=function(){},a.label=1;case 1:return a.trys.push([1,,7,8]),[4,this.acquire()];case 2:return c=a.sent(),Array.isArray(c)?(s=c[1],[4,i(c[0])]):[3,4];case 3:return[2,a.sent()];case 4:return s=c,[4,i()];case 5:return[2,a.sent()];case 6:return[3,8];case 7:return s(),[7];case 8:return[2]}})})},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}rs.withTimeout=_w;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.withTimeout=e.Semaphore=e.Mutex=void 0;var t=No;Object.defineProperty(e,"Mutex",{enumerable:!0,get:function(){return t.default}});var r=ts;Object.defineProperty(e,"Semaphore",{enumerable:!0,get:function(){return r.default}});var n=rs;Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return n.withTimeout}})})(uu);var Ew=Rw,Sw=Object.prototype.hasOwnProperty;function Rw(){for(var e={},t=0;tfunction(...i){const s=t.promiseModule;return new s((c,a)=>{t.multiArgs?i.push((...p)=>{t.errorFirst?p[0]?a(p):(p.shift(),c(p)):c(p)}):t.errorFirst?i.push((p,g)=>{p?a(p):c(g)}):i.push(c),Reflect.apply(e,this===r?n:this,i)})},oc=new WeakMap;var Iw=(e,t)=>{t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};const r=typeof e;if(!(e!==null&&(r==="object"||r==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":r}\``);const n=(c,a)=>{let d=oc.get(c);if(d||(d={},oc.set(c,d)),a in d)return d[a];const p=L=>typeof L=="string"||typeof a=="symbol"?a===L:L.test(a),g=Reflect.getOwnPropertyDescriptor(c,a),y=g===void 0||g.writable||g.configurable,A=(t.include?t.include.some(p):!t.exclude.some(p))&&y;return d[a]=A,A},i=new WeakMap,s=new Proxy(e,{apply(c,a,d){const p=i.get(c);if(p)return Reflect.apply(p,a,d);const g=t.excludeMain?c:sc(c,t,s,c);return i.set(c,g),Reflect.apply(g,a,d)},get(c,a){const d=c[a];if(!n(c,a)||d===Function.prototype[a])return d;const p=i.get(d);if(p)return p;if(typeof d=="function"){const g=sc(d,t,s,c);return i.set(d,g),g}return d}});return s};const Aw=Ln.default;let Tw=class extends Aw{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(t){this.updates=this.updates.concat(t),t.forEach(r=>this.emit("update",r))}addInitialResults(t){}getChangesAndClear(){const t=this.updates;return this.updates=[],t}};var Bo=Tw;const Nw=Bo;let Lw=class extends Nw{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(t){this.allResults=this.allResults.concat(t),super.addResults(t)}addInitialResults(t){this.allResults=this.allResults.concat(t),super.addInitialResults(t)}getAllResults(){return this.allResults}};var Bw=Lw,Hn={minBlockRef:Pw,maxBlockRef:Ow,sortBlockRefs:Po,bnToHex:$w,blockRefIsNumber:Fw,hexToInt:oi,incrementHexInt:Dw,intToHex:hu,unsafeRandomBytes:jw};function Pw(...e){return Po(e)[0]}function Ow(...e){const t=Po(e);return t[t.length-1]}function Po(e){return e.sort((t,r)=>t==="latest"||r==="earliest"?1:r==="latest"||t==="earliest"?-1:oi(t)-oi(r))}function $w(e){return"0x"+e.toString(16)}function Fw(e){return e&&!["earliest","latest","pending"].includes(e)}function oi(e){return e==null?e:Number.parseInt(e,16)}function Dw(e){if(e==null)return e;const t=oi(e);return hu(t+1)}function hu(e){if(e==null)return e;let t=e.toString(16);return t.length%2&&(t="0"+t),"0x"+t}function jw(e){let t="0x";for(let r=0;rn.toLowerCase()))}async initialize({currentBlock:t}){let r=this.params.fromBlock;["latest","pending"].includes(r)&&(r=t),r==="earliest"&&(r="0x0"),this.params.fromBlock=r;const n=qw(this.params.toBlock,t),i=Object.assign({},this.params,{toBlock:n}),s=await this._fetchLogs(i);this.addInitialResults(s)}async update({oldBlock:t,newBlock:r}){const n=r;let i;t?i=Vw(t):i=r;const s=Object.assign({},this.params,{fromBlock:i,toBlock:n}),a=(await this._fetchLogs(s)).filter(d=>this.matchLog(d));this.addResults(a)}async _fetchLogs(t){return await Hw(n=>this.ethQuery.getLogs(t,n))()}matchLog(t){if(ei(this.params.fromBlock)>=ei(t.blockNumber)||zw(this.params.toBlock)&&ei(this.params.toBlock)<=ei(t.blockNumber))return!1;const r=t.address&&t.address.toLowerCase();return this.params.address&&r&&!this.params.address.includes(r)?!1:this.params.topics.every((i,s)=>{let c=t.topics[s];if(!c)return!1;c=c.toLowerCase();let a=Array.isArray(i)?i:[i];return a.includes(null)?!0:(a=a.map(g=>g.toLowerCase()),a.includes(c))})}};var Jw=Gw,Oo=Zw;async function Zw({provider:e,fromBlock:t,toBlock:r}){t||(t=r);const n=cc(t),s=cc(r)-n+1,c=Array(s).fill().map((d,p)=>n+p).map(Kw);let a=await Promise.all(c.map(d=>Yw(e,"eth_getBlockByNumber",[d,!1])));return a=a.filter(d=>d!==null),a}function cc(e){return e==null?e:Number.parseInt(e,16)}function Kw(e){return e==null?e:"0x"+e.toString(16)}function Qw(e,t){return new Promise((r,n)=>{e.sendAsync(t,(i,s)=>{i?n(i):s.error?n(s.error):s.result?r(s.result):n(new Error("Result was empty"))})})}async function Yw(e,t,r){for(let n=0;n<3;n++)try{return await Qw(e,{id:1,jsonrpc:"2.0",method:t,params:r})}catch(i){console.error(`provider.sendAsync failed: ${i.stack||i.message||i}`)}return null}const Xw=Bo,ey=Oo,{incrementHexInt:ty}=Hn;let ry=class extends Xw{constructor({provider:t,params:r}){super(),this.type="block",this.provider=t}async update({oldBlock:t,newBlock:r}){const n=r,i=ty(t),c=(await ey({provider:this.provider,fromBlock:i,toBlock:n})).map(a=>a.hash);this.addResults(c)}};var ny=ry;const iy=Bo,sy=Oo,{incrementHexInt:oy}=Hn;let ay=class extends iy{constructor({provider:t}){super(),this.type="tx",this.provider=t}async update({oldBlock:t}){const r=t,n=oy(t),i=await sy({provider:this.provider,fromBlock:n,toBlock:r}),s=[];for(const c of i)s.push(...c.transactions);this.addResults(s)}};var cy=ay;const ly=uu.Mutex,{createAsyncMiddleware:uy,createScaffoldMiddleware:hy}=xo,dy=Jw,fy=ny,py=cy,{intToHex:du,hexToInt:$s}=Hn;var gy=my;function my({blockTracker:e,provider:t}){let r=0,n={};const i=new ly,s=wy({mutex:i}),c=hy({eth_newFilter:s(Fs(d)),eth_newBlockFilter:s(Fs(p)),eth_newPendingTransactionFilter:s(Fs(g)),eth_uninstallFilter:s(ni(A)),eth_getFilterChanges:s(ni(y)),eth_getFilterLogs:s(ni(_))}),a=async({oldBlock:O,newBlock:B})=>{if(n.length===0)return;const V=await i.acquire();try{await Promise.all($r(n).map(async j=>{try{await j.update({oldBlock:O,newBlock:B})}catch(z){console.error(z)}}))}catch(j){console.error(j)}V()};return c.newLogFilter=d,c.newBlockFilter=p,c.newPendingTransactionFilter=g,c.uninstallFilter=A,c.getFilterChanges=y,c.getFilterLogs=_,c.destroy=()=>{F()},c;async function d(O){const B=new dy({provider:t,params:O});return await L(B),B}async function p(){const O=new fy({provider:t});return await L(O),O}async function g(){const O=new py({provider:t});return await L(O),O}async function y(O){const B=$s(O),V=n[B];if(!V)throw new Error(`No filter for index "${B}"`);return V.getChangesAndClear()}async function _(O){const B=$s(O),V=n[B];if(!V)throw new Error(`No filter for index "${B}"`);let j=[];return V.type==="log"&&(j=V.getAllResults()),j}async function A(O){const B=$s(O),j=!!n[B];return j&&await H(B),j}async function L(O){const B=$r(n).length,V=await e.getLatestBlock();await O.initialize({currentBlock:V}),r++,n[r]=O,O.id=r,O.idHex=du(r);const j=$r(n).length;return I({prevFilterCount:B,newFilterCount:j}),r}async function H(O){const B=$r(n).length;delete n[O];const V=$r(n).length;I({prevFilterCount:B,newFilterCount:V})}async function F(){const O=$r(n).length;n={},I({prevFilterCount:O,newFilterCount:0})}function I({prevFilterCount:O,newFilterCount:B}){if(O===0&&B>0){e.on("sync",a);return}if(O>0&&B===0){e.removeListener("sync",a);return}}}function Fs(e){return ni(async(...t)=>{const r=await e(...t);return du(r.id)})}function ni(e){return uy(async(t,r)=>{const n=await e.apply(null,t.params);r.result=n})}function wy({mutex:e}){return t=>async(r,n,i,s)=>{(await e.acquire())(),t(r,n,i,s)}}function $r(e,t){const r=[];for(let n in e)r.push(e[n]);return r}const yy=Ln.default,{createAsyncMiddleware:lc,createScaffoldMiddleware:by}=xo,vy=gy,{unsafeRandomBytes:_y,incrementHexInt:Ey}=Hn,Sy=Oo;var Ry=Cy;function Cy({blockTracker:e,provider:t}){const r={},n=vy({blockTracker:e,provider:t});let i=!1;const s=new yy,c=by({eth_subscribe:lc(a),eth_unsubscribe:lc(d)});return c.destroy=g,{events:s,middleware:c};async function a(y,_){if(i)throw new Error("SubscriptionManager - attempting to use after destroying");const A=y.params[0],L=_y(16);let H;switch(A){case"newHeads":H=F({subId:L});break;case"logs":const O=y.params[1],B=await n.newLogFilter(O);H=I({subId:L,filter:B});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${A}"`)}r[L]=H,_.result=L;return;function F({subId:O}){const B={type:A,destroy:async()=>{e.removeListener("sync",B.update)},update:async({oldBlock:V,newBlock:j})=>{const z=j,te=Ey(V);(await Sy({provider:t,fromBlock:te,toBlock:z})).map(My).filter(fe=>fe!==null).forEach(fe=>{p(O,fe)})}};return e.on("sync",B.update),B}function I({subId:O,filter:B}){return B.on("update",j=>p(O,j)),{type:A,destroy:async()=>await n.uninstallFilter(B.idHex)}}}async function d(y,_){if(i)throw new Error("SubscriptionManager - attempting to use after destroying");const A=y.params[0],L=r[A];if(!L){_.result=!1;return}delete r[A],await L.destroy(),_.result=!0}function p(y,_){s.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:y,result:_}})}function g(){s.removeAllListeners();for(const y in r)r[y].destroy(),delete r[y];i=!0}}function My(e){return e==null?null:{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLimit:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}Object.defineProperty(Di,"__esModule",{value:!0});Di.SubscriptionManager=void 0;const ky=yl,xy=Ry,uc=()=>{};class Iy{constructor(t){const r=new ky.PollingBlockTracker({provider:t,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:i}=xy({blockTracker:r,provider:t});this.events=n,this.subscriptionMiddleware=i}async handleRequest(t){const r={};return await this.subscriptionMiddleware(t,r,uc,uc),r}destroy(){this.subscriptionMiddleware.destroy()}}Di.SubscriptionManager=Iy;var fu=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.CoinbaseWalletProvider=void 0;const Ay=fu(ui),Ty=Ju,me=wn,de=X,Ny=_n,hc=wt,ti=en,lt=Qr,Ds=fu(u0),un=Xr,Ly=Jr,By=Di,dc="DefaultChainId",fc="DefaultJsonRpcUrl";class Py extends Ty.EventEmitter{constructor(t){var r,n;super(),this._filterPolyfill=new Ly.FilterPolyfill(this),this._subscriptionManager=new By.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=t.chainId,this._jsonRpcUrlFromOpts=t.jsonRpcUrl,this._overrideIsMetaMask=t.overrideIsMetaMask,this._relayProvider=t.relayProvider,this._storage=t.storage,this._relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(r=t.overrideIsCoinbaseWallet)!==null&&r!==void 0?r:!0,this.isCoinbaseBrowser=(n=t.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this.qrUrl=t.qrUrl;const i=this.getChainId(),s=(0,de.prepend0x)(i.toString(16));this.emit("connect",{chainIdStr:s});const c=this._storage.getItem(hc.LOCAL_STORAGE_ADDRESSES_KEY);if(c){const a=c.split(" ");a[0]!==""&&(this._addresses=a.map(d=>(0,de.ensureAddressString)(d)),this.emit("accountsChanged",a))}this._subscriptionManager.events.on("notification",a=>{this.emit("message",{type:a.method,data:a.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener("message",a=>{var d;if(!(a.origin!==location.origin||a.source!==window)&&a.data.type==="walletLinkMessage"&&a.data.data.action==="dappChainSwitched"){const p=a.data.data.chainId,g=(d=a.data.data.jsonRpcUrl)!==null&&d!==void 0?d:this.jsonRpcUrl;this.updateProviderInfo(g,Number(p))}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,de.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var t;return(t=this._storage.getItem(fc))!==null&&t!==void 0?t:this._jsonRpcUrlFromOpts}set jsonRpcUrl(t){this._storage.setItem(fc,t)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(t,r){this.isCoinbaseBrowser||(this._chainIdFromOpts=r,this._jsonRpcUrlFromOpts=t),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(t,r){this.jsonRpcUrl=t;const n=this.getChainId();this._storage.setItem(dc,r.toString(10)),((0,de.ensureIntNumber)(r)!==n||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(t,r,n,i,s,c){const d=await(await this.initializeRelay()).watchAsset(t,r,n,i,s,c==null?void 0:c.toString()).promise;return(0,lt.isErrorResponse)(d)?!1:!!d.result}async addEthereumChain(t,r,n,i,s,c){var a,d;if((0,de.ensureIntNumber)(t)===this.getChainId())return!1;const p=await this.initializeRelay(),g=p.inlineAddEthereumChain(t.toString());!this._isAuthorized()&&!g&&await p.requestEthereumAccounts().promise;const y=await p.addEthereumChain(t.toString(),r,s,n,i,c).promise;return(0,lt.isErrorResponse)(y)?!1:(((a=y.result)===null||a===void 0?void 0:a.isApproved)===!0&&this.updateProviderInfo(r[0],t),((d=y.result)===null||d===void 0?void 0:d.isApproved)===!0)}async switchEthereumChain(t){const n=await(await this.initializeRelay()).switchEthereumChain(t.toString(10),this.selectedAddress||void 0).promise;if((0,lt.isErrorResponse)(n)){if(!n.errorCode)return;throw n.errorCode===me.standardErrorCodes.provider.unsupportedChain?me.standardErrors.provider.unsupportedChain():me.standardErrors.provider.custom({message:n.errorMessage,code:n.errorCode})}const i=n.result;i.isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,t)}setAppInfo(t,r){this.initializeRelay().then(n=>n.setAppInfo(t,r))}async enable(){var t;return(t=this.diagnostic)===null||t===void 0||t.log(un.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?ti.Session.hash(this._relay.session.id):void 0}),this._isAuthorized()?[...this._addresses]:await this.send("eth_requestAccounts")}async close(){(await this.initializeRelay()).resetAndReload()}send(t,r){try{const n=this._send(t,r);if(n instanceof Promise)return n.catch(i=>{throw(0,me.serializeError)(i,t)})}catch(n){throw(0,me.serializeError)(n,t)}}_send(t,r){if(typeof t=="string"){const i=t,s=Array.isArray(r)?r:r!==void 0?[r]:[],c={jsonrpc:"2.0",id:0,method:i,params:s};return this._sendRequestAsync(c).then(a=>a.result)}if(typeof r=="function"){const i=t,s=r;return this._sendAsync(i,s)}if(Array.isArray(t))return t.map(s=>this._sendRequest(s));const n=t;return this._sendRequest(n)}async sendAsync(t,r){try{return this._sendAsync(t,r).catch(n=>{throw(0,me.serializeError)(n,t)})}catch(n){return Promise.reject((0,me.serializeError)(n,t))}}async _sendAsync(t,r){if(typeof r!="function")throw new Error("callback is required");if(Array.isArray(t)){const i=r;this._sendMultipleRequestsAsync(t).then(s=>i(null,s)).catch(s=>i(s,null));return}const n=r;return this._sendRequestAsync(t).then(i=>n(null,i)).catch(i=>n(i,null))}async request(t){try{return this._request(t).catch(r=>{throw(0,me.serializeError)(r,t.method)})}catch(r){return Promise.reject((0,me.serializeError)(r,t.method))}}async _request(t){if(!t||typeof t!="object"||Array.isArray(t))throw me.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:t});const{method:r,params:n}=t;if(typeof r!="string"||r.length===0)throw me.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:t});if(n!==void 0&&!Array.isArray(n)&&(typeof n!="object"||n===null))throw me.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:t});const i=n===void 0?[]:n,s=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:r,params:i,jsonrpc:"2.0",id:s})).result}async scanQRCode(t){const n=await(await this.initializeRelay()).scanQRCode((0,de.ensureRegExpString)(t)).promise;if((0,lt.isErrorResponse)(n))throw(0,me.serializeError)(n.errorMessage,"scanQRCode");if(typeof n.result!="string")throw(0,me.serializeError)("result was not a string","scanQRCode");return n.result}async genericRequest(t,r){const i=await(await this.initializeRelay()).genericRequest(t,r).promise;if((0,lt.isErrorResponse)(i))throw(0,me.serializeError)(i.errorMessage,"generic");if(typeof i.result!="string")throw(0,me.serializeError)("result was not a string","generic");return i.result}async connectAndSignIn(t){var r;(r=this.diagnostic)===null||r===void 0||r.log(un.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::connectAndSignIn",sessionIdHash:this._relay?ti.Session.hash(this._relay.session.id):void 0});let n;try{const s=await this.initializeRelay();if(!(s instanceof Ny.MobileRelay))throw new Error("connectAndSignIn is only supported on mobile");if(n=await s.connectAndSignIn(t).promise,(0,lt.isErrorResponse)(n))throw new Error(n.errorMessage)}catch(s){throw typeof s.message=="string"&&s.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied account authorization"):s}if(!n.result)throw new Error("accounts received is empty");const{accounts:i}=n.result;return this._setAddresses(i),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),n.result}async selectProvider(t){const n=await(await this.initializeRelay()).selectProvider(t).promise;if((0,lt.isErrorResponse)(n))throw(0,me.serializeError)(n.errorMessage,"selectProvider");if(typeof n.result!="string")throw(0,me.serializeError)("result was not a string","selectProvider");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(t){const r={jsonrpc:"2.0",id:t.id},{method:n}=t;if(r.result=this._handleSynchronousMethods(t),r.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return r}_setAddresses(t,r){if(!Array.isArray(t))throw new Error("addresses is not an array");const n=t.map(i=>(0,de.ensureAddressString)(i));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(hc.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" ")))}_sendRequestAsync(t){return new Promise((r,n)=>{try{const i=this._handleSynchronousMethods(t);if(i!==void 0)return r({jsonrpc:"2.0",id:t.id,result:i});const s=this._handleAsynchronousFilterMethods(t);if(s!==void 0){s.then(a=>r(Object.assign(Object.assign({},a),{id:t.id}))).catch(a=>n(a));return}const c=this._handleSubscriptionMethods(t);if(c!==void 0){c.then(a=>r({jsonrpc:"2.0",id:t.id,result:a.result})).catch(a=>n(a));return}}catch(i){return n(i)}this._handleAsynchronousMethods(t).then(i=>i&&r(Object.assign(Object.assign({},i),{id:t.id}))).catch(i=>n(i))})}_sendMultipleRequestsAsync(t){return Promise.all(t.map(r=>this._sendRequestAsync(r)))}_handleSynchronousMethods(t){const{method:r}=t,n=t.params||[];switch(r){case"eth_accounts":return this._eth_accounts();case"eth_coinbase":return this._eth_coinbase();case"eth_uninstallFilter":return this._eth_uninstallFilter(n);case"net_version":return this._net_version();case"eth_chainId":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(t){const{method:r}=t,n=t.params||[];switch(r){case"eth_requestAccounts":return this._eth_requestAccounts();case"eth_sign":return this._eth_sign(n);case"eth_ecRecover":return this._eth_ecRecover(n);case"personal_sign":return this._personal_sign(n);case"personal_ecRecover":return this._personal_ecRecover(n);case"eth_signTransaction":return this._eth_signTransaction(n);case"eth_sendRawTransaction":return this._eth_sendRawTransaction(n);case"eth_sendTransaction":return this._eth_sendTransaction(n);case"eth_signTypedData_v1":return this._eth_signTypedData_v1(n);case"eth_signTypedData_v2":return this._throwUnsupportedMethodError();case"eth_signTypedData_v3":return this._eth_signTypedData_v3(n);case"eth_signTypedData_v4":case"eth_signTypedData":return this._eth_signTypedData_v4(n);case"cbWallet_arbitrary":return this._cbwallet_arbitrary(n);case"wallet_addEthereumChain":return this._wallet_addEthereumChain(n);case"wallet_switchEthereumChain":return this._wallet_switchEthereumChain(n);case"wallet_watchAsset":return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(t,this.jsonRpcUrl).catch(s=>{var c;throw(s.code===me.standardErrorCodes.rpc.methodNotFound||s.code===me.standardErrorCodes.rpc.methodNotSupported)&&((c=this.diagnostic)===null||c===void 0||c.log(un.EVENTS.METHOD_NOT_IMPLEMENTED,{method:t.method,sessionIdHash:this._relay?ti.Session.hash(this._relay.session.id):void 0})),s})}_handleAsynchronousFilterMethods(t){const{method:r}=t,n=t.params||[];switch(r){case"eth_newFilter":return this._eth_newFilter(n);case"eth_newBlockFilter":return this._eth_newBlockFilter();case"eth_newPendingTransactionFilter":return this._eth_newPendingTransactionFilter();case"eth_getFilterChanges":return this._eth_getFilterChanges(n);case"eth_getFilterLogs":return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(t){switch(t.method){case"eth_subscribe":case"eth_unsubscribe":return this._subscriptionManager.handleRequest(t)}}_isKnownAddress(t){try{const r=(0,de.ensureAddressString)(t);return this._addresses.map(i=>(0,de.ensureAddressString)(i)).includes(r)}catch{}return!1}_ensureKnownAddress(t){var r;if(!this._isKnownAddress(t))throw(r=this.diagnostic)===null||r===void 0||r.log(un.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(t){const r=t.from?(0,de.ensureAddressString)(t.from):this.selectedAddress;if(!r)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(r);const n=t.to?(0,de.ensureAddressString)(t.to):null,i=t.value!=null?(0,de.ensureBN)(t.value):new Ay.default(0),s=t.data?(0,de.ensureBuffer)(t.data):Buffer.alloc(0),c=t.nonce!=null?(0,de.ensureIntNumber)(t.nonce):null,a=t.gasPrice!=null?(0,de.ensureBN)(t.gasPrice):null,d=t.maxFeePerGas!=null?(0,de.ensureBN)(t.maxFeePerGas):null,p=t.maxPriorityFeePerGas!=null?(0,de.ensureBN)(t.maxPriorityFeePerGas):null,g=t.gas!=null?(0,de.ensureBN)(t.gas):null,y=t.chainId?(0,de.ensureIntNumber)(t.chainId):this.getChainId();return{fromAddress:r,toAddress:n,weiValue:i,data:s,nonce:c,gasPriceInWei:a,maxFeePerGas:d,maxPriorityFeePerGas:p,gasLimit:g,chainId:y}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw me.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw me.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(t,r,n,i){this._ensureKnownAddress(r);try{const c=await(await this.initializeRelay()).signEthereumMessage(t,r,n,i).promise;if((0,lt.isErrorResponse)(c))throw new Error(c.errorMessage);return{jsonrpc:"2.0",id:0,result:c.result}}catch(s){throw typeof s.message=="string"&&s.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied message signature"):s}}async _ethereumAddressFromSignedMessage(t,r,n){const s=await(await this.initializeRelay()).ethereumAddressFromSignedMessage(t,r,n).promise;if((0,lt.isErrorResponse)(s))throw new Error(s.errorMessage);return{jsonrpc:"2.0",id:0,result:s.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,de.hexStringFromIntNumber)(this.getChainId())}getChainId(){const t=this._storage.getItem(dc);if(!t)return(0,de.ensureIntNumber)(this._chainIdFromOpts);const r=parseInt(t,10);return(0,de.ensureIntNumber)(r)}async _eth_requestAccounts(){var t;if((t=this.diagnostic)===null||t===void 0||t.log(un.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?ti.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let r;try{if(r=await(await this.initializeRelay()).requestEthereumAccounts().promise,(0,lt.isErrorResponse)(r))throw new Error(r.errorMessage)}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied account authorization"):n}if(!r.result)throw new Error("accounts received is empty");return this._setAddresses(r.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(t){this._requireAuthorization();const r=(0,de.ensureAddressString)(t[0]),n=(0,de.ensureBuffer)(t[1]);return this._signEthereumMessage(n,r,!1)}_eth_ecRecover(t){const r=(0,de.ensureBuffer)(t[0]),n=(0,de.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(r,n,!1)}_personal_sign(t){this._requireAuthorization();const r=(0,de.ensureBuffer)(t[0]),n=(0,de.ensureAddressString)(t[1]);return this._signEthereumMessage(r,n,!0)}_personal_ecRecover(t){const r=(0,de.ensureBuffer)(t[0]),n=(0,de.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(r,n,!0)}async _eth_signTransaction(t){this._requireAuthorization();const r=this._prepareTransactionParams(t[0]||{});try{const i=await(await this.initializeRelay()).signEthereumTransaction(r).promise;if((0,lt.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:"2.0",id:0,result:i.result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_sendRawTransaction(t){const r=(0,de.ensureBuffer)(t[0]),i=await(await this.initializeRelay()).submitEthereumTransaction(r,this.getChainId()).promise;if((0,lt.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:"2.0",id:0,result:i.result}}async _eth_sendTransaction(t){this._requireAuthorization();const r=this._prepareTransactionParams(t[0]||{});try{const i=await(await this.initializeRelay()).signAndSubmitEthereumTransaction(r).promise;if((0,lt.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:"2.0",id:0,result:i.result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_signTypedData_v1(t){this._requireAuthorization();const r=(0,de.ensureParsedJSONObject)(t[0]),n=(0,de.ensureAddressString)(t[1]);this._ensureKnownAddress(n);const i=Ds.default.hashForSignTypedDataLegacy({data:r}),s=JSON.stringify(r,null,2);return this._signEthereumMessage(i,n,!1,s)}async _eth_signTypedData_v3(t){this._requireAuthorization();const r=(0,de.ensureAddressString)(t[0]),n=(0,de.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(r);const i=Ds.default.hashForSignTypedData_v3({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,r,!1,s)}async _eth_signTypedData_v4(t){this._requireAuthorization();const r=(0,de.ensureAddressString)(t[0]),n=(0,de.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(r);const i=Ds.default.hashForSignTypedData_v4({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,r,!1,s)}async _cbwallet_arbitrary(t){const r=t[0],n=t[1];if(typeof n!="string")throw new Error("parameter must be a string");if(typeof r!="object"||r===null)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(r,n)}}async _wallet_addEthereumChain(t){var r,n,i,s;const c=t[0];if(((r=c.rpcUrls)===null||r===void 0?void 0:r.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!c.chainName||c.chainName.trim()==="")throw me.standardErrors.rpc.invalidParams("chainName is a required field");if(!c.nativeCurrency)throw me.standardErrors.rpc.invalidParams("nativeCurrency is a required field");const a=parseInt(c.chainId,16);return await this.addEthereumChain(a,(n=c.rpcUrls)!==null&&n!==void 0?n:[],(i=c.blockExplorerUrls)!==null&&i!==void 0?i:[],c.chainName,(s=c.iconUrls)!==null&&s!==void 0?s:[],c.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(t){const r=t[0];return await this.switchEthereumChain(parseInt(r.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(t){const r=Array.isArray(t)?t[0]:t;if(!r.type)throw me.standardErrors.rpc.invalidParams("Type is required");if((r==null?void 0:r.type)!=="ERC20")throw me.standardErrors.rpc.invalidParams(`Asset of type '${r.type}' is not supported`);if(!(r!=null&&r.options))throw me.standardErrors.rpc.invalidParams("Options are required");if(!(r!=null&&r.options.address))throw me.standardErrors.rpc.invalidParams("Address is required");const n=this.getChainId(),{address:i,symbol:s,image:c,decimals:a}=r.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(r.type,i,s,a,c,n)}}_eth_uninstallFilter(t){const r=(0,de.ensureHexString)(t[0]);return this._filterPolyfill.uninstallFilter(r)}async _eth_newFilter(t){const r=t[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(r)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(t){const r=(0,de.ensureHexString)(t[0]);return this._filterPolyfill.getFilterChanges(r)}_eth_getFilterLogs(t){const r=(0,de.ensureHexString)(t[0]);return this._filterPolyfill.getFilterLogs(r)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(t=>(t.setAccountsCallback((r,n)=>this._setAddresses(r,n)),t.setChainCallback((r,n)=>{this.updateProviderInfo(n,parseInt(r,10))}),t.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=t,t))}}Vr.CoinbaseWalletProvider=Py;var ns={};Object.defineProperty(ns,"__esModule",{value:!0});ns.RelayEventManager=void 0;const Oy=X;class $y{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const t=this._nextRequestId,r=(0,Oy.prepend0x)(t.toString(16));return this.callbacks.get(r)&&this.callbacks.delete(r),t}}ns.RelayEventManager=$y;Object.defineProperty(dn,"__esModule",{value:!0});dn.CoinbaseWalletSDK=void 0;const Fy=ci,Dy=li,pc=X,jy=gi,Uy=Vr,Hy=_n,Wy=Tn,Vy=ns,qy=xn,zy=En,pu=Yr;class is{constructor(t){var r,n,i;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;const s=t.linkAPIUrl||Dy.LINK_API_URL;typeof t.overrideIsMetaMask>"u"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=t.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(r=t.overrideIsCoinbaseWallet)!==null&&r!==void 0?r:!0,this._overrideIsCoinbaseBrowser=(n=t.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this._diagnosticLogger=t.diagnosticLogger,this._reloadOnDisconnect=(i=t.reloadOnDisconnect)!==null&&i!==void 0?i:!0;const c=new URL(s),a=`${c.protocol}//${c.host}`;if(this._storage=new jy.ScopedLocalStorage(`-walletlink:${a}`),this._storage.setItem("version",is.VERSION),this.walletExtension||this.coinbaseBrowser)return;this._relayEventManager=new Vy.RelayEventManager;const d=(0,pc.isMobileWeb)(),p=t.uiConstructor||(y=>d?new Wy.MobileRelayUI(y):new qy.WalletLinkRelayUI(y)),g={linkAPIUrl:s,version:pu.LIB_VERSION,darkMode:!!t.darkMode,headlessMode:!!t.headlessMode,uiConstructor:p,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect,enableMobileWalletLink:t.enableMobileWalletLink};this._relay=d?new Hy.MobileRelay(g):new zy.WalletLinkRelay(g),this.setAppInfo(t.appName,t.appLogoUrl),!t.headlessMode&&this._relay.attachUI()}makeWeb3Provider(t="",r=1){const n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(t,r),this._reloadOnDisconnect===!1&&typeof n.disableReloadOnDisconnect=="function"&&n.disableReloadOnDisconnect(),n;const i=this.coinbaseBrowser;if(i)return i;const s=this._relay;if(!s||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return t||s.setConnectDisabled(!0),new Uy.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(s),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:t,chainId:r,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(t,r){var n;this._appName=t||"DApp",this._appLogoUrl=r||(0,pc.getFavicon)();const i=this.walletExtension;i?this.isCipherProvider(i)||i.setAppInfo(this._appName,this._appLogoUrl):(n=this._relay)===null||n===void 0||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var t;const r=this===null||this===void 0?void 0:this.walletExtension;r?r.close():(t=this._relay)===null||t===void 0||t.resetAndReload()}getQrUrl(){var t,r;return(r=(t=this._relay)===null||t===void 0?void 0:t.getQRCodeUrl())!==null&&r!==void 0?r:null}getCoinbaseWalletLogo(t,r=240){return(0,Fy.walletLogo)(t,r)}get walletExtension(){var t;return(t=window.coinbaseWalletExtension)!==null&&t!==void 0?t:window.walletLinkExtension}get coinbaseBrowser(){var t,r;try{const n=(t=window.ethereum)!==null&&t!==void 0?t:(r=window.top)===null||r===void 0?void 0:r.ethereum;return n&&"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch{return}}isCipherProvider(t){return typeof t.isCipher=="boolean"&&t.isCipher}}dn.CoinbaseWalletSDK=is;is.VERSION=pu.LIB_VERSION;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletProvider=e.CoinbaseWalletSDK=void 0;const t=dn,r=Vr;var n=dn;Object.defineProperty(e,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return n.CoinbaseWalletSDK}});var i=Vr;Object.defineProperty(e,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return i.CoinbaseWalletProvider}}),e.default=t.CoinbaseWalletSDK,typeof window<"u"&&(window.CoinbaseWalletSDK=t.CoinbaseWalletSDK,window.CoinbaseWalletProvider=r.CoinbaseWalletProvider,window.WalletLink=t.CoinbaseWalletSDK,window.WalletLinkProvider=r.CoinbaseWalletProvider)})(gc);const Gy=mu(gc),ab=Object.freeze(Object.defineProperty({__proto__:null,default:Gy},Symbol.toStringTag,{value:"Module"}));export{ab as i}; -//# sourceMappingURL=index-AVOVxDWm.js.map diff --git a/apps/web/public/assets/index-BWLXyvD6.js b/apps/web/public/assets/index-BWLXyvD6.js deleted file mode 100644 index 3ea4efb2..00000000 --- a/apps/web/public/assets/index-BWLXyvD6.js +++ /dev/null @@ -1,3 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BcX4A68S.js","./index-CTwKNzhK.js","./index-C5o-2F8D.css"])))=>i.map(i=>d[i]); -import{_ as pe}from"./index-CTwKNzhK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="449f04fe-ccb1-4103-82a0-6d8bb89612c1",e._sentryDebugIdIdentifier="sentry-dbid-449f04fe-ccb1-4103-82a0-6d8bb89612c1")}catch{}})();const me=Symbol(),ee=Object.getPrototypeOf,G=new WeakMap,ge=e=>e&&(G.has(e)?G.get(e):ee(e)===Object.prototype||ee(e)===Array.prototype),he=e=>ge(e)&&e[me]||null,te=(e,t=!0)=>{G.set(e,t)};var z={VITE_WALLET_CONNECT_ID:"2719448e2ce94fdd269a3c8587123bcc",VITE_GRAPHQL_ENDPOINT:"https://apollo.helixbridge.app/graphql",VITE_NETWORK_TYPE:"mainnet",BASE_URL:"./",MODE:"mainnet",DEV:!1,PROD:!0,SSR:!1};const J=e=>typeof e=="object"&&e!==null,A=new WeakMap,x=new WeakSet,be=(e=Object.is,t=(n,h)=>new Proxy(n,h),s=n=>J(n)&&!x.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,h,v=r)=>{const y=l.get(n);if((y==null?void 0:y[0])===h)return y[1];const I=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return te(I,!0),l.set(n,[h,I]),Reflect.ownKeys(n).forEach(U=>{if(Object.getOwnPropertyDescriptor(I,U))return;const O=Reflect.get(n,U),D={value:O,enumerable:!0,configurable:!0};if(x.has(O))te(O,!1);else if(O instanceof Promise)delete D.value,D.get=()=>v(O);else if(A.has(O)){const[b,H]=A.get(O);D.value=c(b,H(),v)}Object.defineProperty(I,U,D)}),Object.preventExtensions(I)},m=new WeakMap,p=[1,1],W=n=>{if(!J(n))throw new Error("object required");const h=m.get(n);if(h)return h;let v=p[0];const y=new Set,I=(i,a=++p[0])=>{v!==a&&(v=a,y.forEach(o=>o(i,a)))};let U=p[1];const O=(i=++p[1])=>(U!==i&&!y.size&&(U=i,b.forEach(([a])=>{const o=a[1](i);o>v&&(v=o)})),v),D=i=>(a,o)=>{const g=[...a];g[1]=[i,...g[1]],I(g,o)},b=new Map,H=(i,a)=>{if((z?"mainnet":void 0)!=="production"&&b.has(i))throw new Error("prop listener already exists");if(y.size){const o=a[3](D(i));b.set(i,[a,o])}else b.set(i,[a])},Z=i=>{var a;const o=b.get(i);o&&(b.delete(i),(a=o[1])==null||a.call(o))},ue=i=>(y.add(i),y.size===1&&b.forEach(([o,g],S)=>{if((z?"mainnet":void 0)!=="production"&&g)throw new Error("remove already exists");const N=o[3](D(S));b.set(S,[o,N])}),()=>{y.delete(i),y.size===0&&b.forEach(([o,g],S)=>{g&&(g(),b.set(S,[o]))})}),q=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),V=t(q,{deleteProperty(i,a){const o=Reflect.get(i,a);Z(a);const g=Reflect.deleteProperty(i,a);return g&&I(["delete",[a],o]),g},set(i,a,o,g){const S=Reflect.has(i,a),N=Reflect.get(i,a,g);if(S&&(e(N,o)||m.has(o)&&e(N,m.get(o))))return!0;Z(a),J(o)&&(o=he(o)||o);let $=o;if(o instanceof Promise)o.then(C=>{o.status="fulfilled",o.value=C,I(["resolve",[a],C])}).catch(C=>{o.status="rejected",o.reason=C,I(["reject",[a],C])});else{!A.has(o)&&s(o)&&($=W(o));const C=!x.has($)&&A.get($);C&&H(a,C)}return Reflect.set(i,a,$,g),I(["set",[a],o,N]),!0}});m.set(n,V);const fe=[q,O,c,ue];return A.set(V,fe),Reflect.ownKeys(n).forEach(i=>{const a=Object.getOwnPropertyDescriptor(n,i);"value"in a&&(V[i]=n[i],delete a.value,delete a.writable),Object.defineProperty(q,i,a)}),V})=>[W,A,x,e,t,s,r,l,c,m,p],[ye]=be();function j(e={}){return ye(e)}function P(e,t,s){const r=A.get(e);(z?"mainnet":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let p=!1;const n=m(h=>{c.push(h),l||(l=Promise.resolve().then(()=>{l=void 0,p&&t(c.splice(0))}))});return p=!0,()=>{p=!1,n()}}function Ie(e,t){const s=A.get(e);(z?"mainnet":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=j({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),de={state:d,subscribe(e){return P(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},f={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return f.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return f.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(f.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!f.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(f.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(f.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(f.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(f.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=de.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),u=j({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ve={state:u,subscribe(e){return P(u.events,()=>e(Ie(u.events[u.events.length-1])))},initialize(){u.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(u.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){u.connectedWalletId=e},click(e){if(u.enabled){const t={type:"CLICK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},track(e){if(u.enabled){const t={type:"TRACK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},view(e){if(u.enabled){const t={type:"VIEW",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}}},E=j({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),w={state:E,subscribe(e){return P(E,()=>e(E))},setChains(e){E.chains=e},setWalletConnectUri(e){E.walletConnectUri=e},setIsCustomDesktop(e){E.isCustomDesktop=e},setIsCustomMobile(e){E.isCustomMobile=e},setIsDataLoaded(e){E.isDataLoaded=e},setIsUiLoaded(e){E.isUiLoaded=e},setIsAuth(e){E.isAuth=e}},B=j({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),T={state:B,subscribe(e){return P(B,()=>e(B))},setConfig(e){var t,s;ve.initialize(),w.setChains(e.chains),w.setIsAuth(!!e.enableAuthMode),w.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),w.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),f.setModalVersionInStorage(),Object.assign(B,e)}};var Ee=Object.defineProperty,se=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,ne=(e,t,s)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,We=(e,t)=>{for(var s in t||(t={}))Le.call(t,s)&&ne(e,s,t[s]);if(se)for(var s of se(t))Oe.call(t,s)&&ne(e,s,t[s]);return e};const Q="https://explorer-api.walletconnect.com",Y="wcm",X="js-2.6.2";async function K(e,t){const s=We({sdkType:Y,sdkVersion:X},t),r=new URL(e,Q);return r.searchParams.append("projectId",T.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const _={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${Q}/w3m/v1/getWalletImage/${e}?projectId=${T.state.projectId}&sdkType=${Y}&sdkVersion=${X}`},getAssetImageUrl(e){return`${Q}/w3m/v1/getAssetImage/${e}?projectId=${T.state.projectId}&sdkType=${Y}&sdkVersion=${X}`}};var Ce=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,De=(e,t)=>{for(var s in t||(t={}))Ae.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))je.call(t,s)&&re(e,s,t[s]);return e};const ae=f.isMobile(),L=j({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Re={state:L,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=T.state;if(e==="NONE"||t==="ALL"&&!e)return L.recomendedWallets;if(f.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await _.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const p=e.indexOf(c.id),W=e.indexOf(m.id);return p-W}),L.recomendedWallets=l}else{const{chains:s,isAuth:r}=w.state,l=s==null?void 0:s.join(","),c=f.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:f.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:p}=ae?await _.getMobileListings(m):await _.getDesktopListings(m);L.recomendedWallets=Object.values(p)}return L.recomendedWallets},async getWallets(e){const t=De({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=T.state,{recomendedWallets:l}=L;if(r==="ALL")return L.wallets;l.length?t.excludedIds=l.map(v=>v.id).join(","):f.isArray(s)&&(t.excludedIds=s.join(",")),f.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),w.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:p,total:W}=ae?await _.getMobileListings(t):await _.getDesktopListings(t),n=Object.values(p),h=m?"search":"wallets";return L[h]={listings:[...L[h].listings,...n],total:W,page:c??1},{listings:n,total:W}},getWalletImageUrl(e){return _.getWalletImageUrl(e)},getAssetImageUrl(e){return _.getAssetImageUrl(e)},resetSearch(){L.search={listings:[],total:0,page:1}}},k=j({open:!1}),F={state:k,subscribe(e){return P(k,()=>e(k))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=w.state;if(f.removeWalletConnectDeepLink(),w.setWalletConnectUri(e==null?void 0:e.uri),w.setChains(e==null?void 0:e.chains),de.reset("ConnectWallet"),s&&r)k.open=!0,t();else{const l=setInterval(()=>{const c=w.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),k.open=!0,t())},200)}})},close(){k.open=!1}};var _e=Object.defineProperty,ie=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,le=(e,t,s)=>t in e?_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ue=(e,t)=>{for(var s in t||(t={}))Me.call(t,s)&&le(e,s,t[s]);if(ie)for(var s of ie(t))Pe.call(t,s)&&le(e,s,t[s]);return e};function Se(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const R=j({themeMode:Se()?"dark":"light"}),ce={state:R,subscribe(e){return P(R,()=>e(R))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(R.themeMode=t),s&&(R.themeVariables=Ue({},s))}},M=j({open:!1,message:"",variant:"success"}),Ve={state:M,subscribe(e){return P(M,()=>e(M))},openToast(e,t){M.open=!0,M.message=e,M.variant=t},closeToast(){M.open=!1}};class ke{constructor(t){this.openModal=F.open,this.closeModal=F.close,this.subscribeModal=F.subscribe,this.setTheme=ce.setThemeConfig,ce.setThemeConfig(t),T.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await pe(()=>import("./index-BcX4A68S.js"),__vite__mapDeps([0,1,2]),import.meta.url);const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),w.setIsUiLoaded(!0)}}}const $e=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:ke},Symbol.toStringTag,{value:"Module"}));export{ve as R,de as T,f as a,$e as i,ce as n,Ve as o,w as p,F as s,Re as t,T as y}; -//# sourceMappingURL=index-BWLXyvD6.js.map diff --git a/apps/web/public/assets/index-B_Tlc-nD.js b/apps/web/public/assets/index-B_Tlc-nD.js deleted file mode 100644 index b224ff83..00000000 --- a/apps/web/public/assets/index-B_Tlc-nD.js +++ /dev/null @@ -1,516 +0,0 @@ -import{q as Fn,p as me,aN as Hn,aO as zn,aP as Qn,aQ as Jn,aR as Vn,aS as Gn,aT as Yn,aU as Kn,aV as Zn,aW as Xn,aX as er,aY as tr,aZ as nr,a_ as rr,a$ as or,b0 as ir,b1 as sr,b2 as ar,t as ht,b3 as cr,Y as ft}from"./index-CTwKNzhK.js";import{r as lr,f as ur,g as dr,i as hr,b as fr,a as _r,s as pr,m as gr,d as Q,o as mr,h as Ke,n as wr}from"./index.es-BYCv7dOh.js";import{b as A,l as S,_ as x,k as $,H as O,B as Z,D as yr,q as we,x as ye,P as be,y as te,g as ve,F as Ee,a as J,T as Se,p as Ce,A as ke,h as ne,E as br,G as _t,m as pt,c as vr}from"./hooks.module-D456YPrV.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7602d111-41c1-4856-9a03-2a14149c8230",t._sentryDebugIdIdentifier="sentry-dbid-7602d111-41c1-4856-9a03-2a14149c8230")}catch{}})();class Ze extends lr{constructor(e){super(e),this.events=new Fn.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async request(e,n){return this.requestStrict(ur(e.method,e.params||[],e.id||dr().toString()),n)}async requestStrict(e,n){return new Promise(async(r,o)=>{if(!this.connection.connected)try{await this.open()}catch(i){o(i)}this.events.on(`${e.id}`,i=>{hr(i)?o(i.error):r(i.result)});try{await this.connection.send(e,n)}catch(i){o(i)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),fr(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}const le="Session currently connected",q="Session currently disconnected",Er="Session Rejected",Sr="Missing JSON RPC response",Cr='JSON-RPC success response must include "result" field',kr='JSON-RPC error response must include "error" field',xr='JSON RPC request must have valid "method" value',Ir='JSON RPC request must have valid "id" value',Rr="Missing one of the required parameters: bridge / uri / session",Xe="JSON RPC response format is invalid",Tr="URI format is invalid",Or="QRCode Modal not provided",et="User close QRCode Modal",Nr=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],Mr=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],xe=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...Mr],he="WALLETCONNECT_DEEPLINK_CHOICE",Lr={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"};var gt=Ie;Ie.strict=mt;Ie.loose=wt;var qr=Object.prototype.toString,Ar={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function Ie(t){return mt(t)||wt(t)}function mt(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function wt(t){return Ar[qr.call(t)]}const Ur=me(gt);var Dr=gt.strict,Pr=function(e){if(Dr(e)){var n=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(n=n.slice(e.byteOffset,e.byteOffset+e.byteLength)),n}else return Buffer.from(e)};const $r=me(Pr),Re="hex",Te="utf8",jr="binary",Br="buffer",Wr="array",Fr="typed-array",Hr="array-buffer",re="0";function j(t){return new Uint8Array(t)}function Oe(t,e=!1){const n=t.toString(Re);return e?V(n):n}function Ne(t){return t.toString(Te)}function yt(t){return t.readUIntBE(0,t.length)}function W(t){return $r(t)}function N(t,e=!1){return Oe(W(t),e)}function bt(t){return Ne(W(t))}function vt(t){return yt(W(t))}function Me(t){return Buffer.from(B(t),Re)}function M(t){return j(Me(t))}function zr(t){return Ne(Me(t))}function Qr(t){return vt(M(t))}function Le(t){return Buffer.from(t,Te)}function Et(t){return j(Le(t))}function Jr(t,e=!1){return Oe(Le(t),e)}function Vr(t){const e=parseInt(t,10);return fo(ho(e),"Number can only safely store up to 53 bits"),e}function Gr(t){return Xr(qe(t))}function Yr(t){return Ae(qe(t))}function Kr(t,e){return eo(qe(t),e)}function Zr(t){return`${t}`}function qe(t){const e=(t>>>0).toString(2);return De(e)}function Xr(t){return W(Ae(t))}function Ae(t){return new Uint8Array(so(t).map(e=>parseInt(e,2)))}function eo(t,e){return N(Ae(t),e)}function to(t){return!(typeof t!="string"||!new RegExp(/^[01]+$/).test(t)||t.length%8!==0)}function St(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}function oe(t){return Buffer.isBuffer(t)}function Ue(t){return Ur.strict(t)&&!oe(t)}function Ct(t){return!Ue(t)&&!oe(t)&&typeof t.byteLength<"u"}function no(t){return oe(t)?Br:Ue(t)?Fr:Ct(t)?Hr:Array.isArray(t)?Wr:typeof t}function ro(t){return to(t)?jr:St(t)?Re:Te}function oo(...t){return Buffer.concat(t)}function kt(...t){let e=[];return t.forEach(n=>e=e.concat(Array.from(n))),new Uint8Array([...e])}function io(t,e=8){const n=t%e;return n?(t-n)/e*e+e:t}function so(t,e=8){const n=De(t).match(new RegExp(`.{${e}}`,"gi"));return Array.from(n||[])}function De(t,e=8,n=re){return ao(t,io(t.length,e),n)}function ao(t,e,n=re){return _o(t,e,!0,n)}function B(t){return t.replace(/^0x/,"")}function V(t){return t.startsWith("0x")?t:`0x${t}`}function co(t){return t=B(t),t=De(t,2),t&&(t=V(t)),t}function lo(t){const e=t.startsWith("0x");return t=B(t),t=t.startsWith(re)?t.substring(1):t,e?V(t):t}function uo(t){return typeof t>"u"}function ho(t){return!uo(t)}function fo(t,e){if(!t)throw new Error(e)}function _o(t,e,n,r=re){const o=e-t.length;let i=t;return o>0&&(i=r.repeat(o)+t),i}function X(t){return W(new Uint8Array(t))}function po(t){return bt(new Uint8Array(t))}function xt(t,e){return N(new Uint8Array(t),!e)}function go(t){return vt(new Uint8Array(t))}function mo(...t){return M(t.map(e=>N(new Uint8Array(e))).join("")).buffer}function It(t){return j(t).buffer}function wo(t){return Ne(t)}function yo(t,e){return Oe(t,!e)}function bo(t){return yt(t)}function vo(...t){return oo(...t)}function Eo(t){return Et(t).buffer}function So(t){return Le(t)}function Co(t,e){return Jr(t,!e)}function ko(t){return Vr(t)}function xo(t){return Me(t)}function Rt(t){return M(t).buffer}function Io(t){return zr(t)}function Ro(t){return Qr(t)}function To(t){return Gr(t)}function Oo(t){return Yr(t).buffer}function No(t){return Zr(t)}function Tt(t,e){return Kr(Number(t),!e)}const Mo=Jn,Lo=Vn,qo=Gn,Ao=Yn,Uo=Kn,Ot=Qn,Do=Zn,Nt=Hn,Po=Xn,$o=er,jo=tr,ie=zn;function se(t){return nr(t)}function ae(){const t=se();return t&&t.os?t.os:void 0}function Mt(){const t=ae();return t?t.toLowerCase().includes("android"):!1}function Lt(){const t=ae();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function qt(){return ae()?Mt()||Lt():!1}function At(){const t=se();return t&&t.name?t.name.toLowerCase()==="node":!1}function Ut(){return!At()&&!!Ot()}const Dt=_r,Pt=pr;function Pe(t,e){const n=Pt(e),r=ie();r&&r.setItem(t,n)}function $e(t){let e=null,n=null;const r=ie();return r&&(n=r.getItem(t)),e=n&&Dt(n),e}function je(t){const e=ie();e&&e.removeItem(t)}function fe(){return rr()}function Bo(t){return co(t)}function Wo(t){return V(t)}function Fo(t){return B(t)}function Ho(t){return lo(V(t))}const $t=gr;function K(){return((e,n)=>{for(n=e="";e++<36;n+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return n})()}function zo(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function jt(t,e){let n;const r=Lr[t];return r&&(n=`https://${r}.infura.io/v3/${e}`),n}function Bt(t,e){let n;const r=jt(t,e.infuraId);return e.custom&&e.custom[t]?n=e.custom[t]:r&&(n=r),n}function Qo(t,e){const n=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${n}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function Jo(t){const e=t.href.split("?")[0];Pe(he,Object.assign(Object.assign({},t),{href:e}))}function Wt(t,e){return t.filter(n=>n.name.toLowerCase().includes(e.toLowerCase()))[0]}function Vo(t,e){let n=t;return e&&(n=e.map(r=>Wt(t,r)).filter(Boolean)),n}function Go(t,e){return async(...r)=>new Promise((o,i)=>{const d=(f,p)=>{(f===null||typeof f>"u")&&i(f),o(p)};t.apply(e,[...r,d])})}function Ft(t){const e=t.message||"Failed or Rejected Request";let n=-32e3;if(t&&!t.code)switch(e){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3;break}const r={code:n,message:e};return t.data&&(r.data=t.data),r}const Ht="https://registry.walletconnect.com";function Yo(){return Ht+"/api/v2/wallets"}function Ko(){return Ht+"/api/v2/dapps"}function zt(t,e="mobile"){var n;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(n=t.image_url.sm)!==null&&n!==void 0?n:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function Zo(t,e="mobile"){return Object.values(t).filter(n=>!!n[e].universal||!!n[e].native).map(n=>zt(n,e))}var Be={};(function(t){const e=sr,n=ar,r=or,o=ir,i=s=>s==null;function d(s){switch(s.arrayFormat){case"index":return a=>(u,c)=>{const h=u.length;return c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[",h,"]"].join("")]:[...u,[g(a,s),"[",g(h,s),"]=",g(c,s)].join("")]};case"bracket":return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[]"].join("")]:[...u,[g(a,s),"[]=",g(c,s)].join("")];case"comma":case"separator":return a=>(u,c)=>c==null||c.length===0?u:u.length===0?[[g(a,s),"=",g(c,s)].join("")]:[[u,g(c,s)].join(s.arrayFormatSeparator)];default:return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,g(a,s)]:[...u,[g(a,s),"=",g(c,s)].join("")]}}function f(s){let a;switch(s.arrayFormat){case"index":return(u,c,h)=>{if(a=/\[(\d*)\]$/.exec(u),u=u.replace(/\[\d*\]$/,""),!a){h[u]=c;return}h[u]===void 0&&(h[u]={}),h[u][a[1]]=c};case"bracket":return(u,c,h)=>{if(a=/(\[\])$/.exec(u),u=u.replace(/\[\]$/,""),!a){h[u]=c;return}if(h[u]===void 0){h[u]=[c];return}h[u]=[].concat(h[u],c)};case"comma":case"separator":return(u,c,h)=>{const m=typeof c=="string"&&c.includes(s.arrayFormatSeparator),_=typeof c=="string"&&!m&&w(c,s).includes(s.arrayFormatSeparator);c=_?w(c,s):c;const v=m||_?c.split(s.arrayFormatSeparator).map(T=>w(T,s)):c===null?c:w(c,s);h[u]=v};default:return(u,c,h)=>{if(h[u]===void 0){h[u]=c;return}h[u]=[].concat(h[u],c)}}}function p(s){if(typeof s!="string"||s.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function g(s,a){return a.encode?a.strict?e(s):encodeURIComponent(s):s}function w(s,a){return a.decode?n(s):s}function y(s){return Array.isArray(s)?s.sort():typeof s=="object"?y(Object.keys(s)).sort((a,u)=>Number(a)-Number(u)).map(a=>s[a]):s}function b(s){const a=s.indexOf("#");return a!==-1&&(s=s.slice(0,a)),s}function C(s){let a="";const u=s.indexOf("#");return u!==-1&&(a=s.slice(u)),a}function k(s){s=b(s);const a=s.indexOf("?");return a===-1?"":s.slice(a+1)}function I(s,a){return a.parseNumbers&&!Number.isNaN(Number(s))&&typeof s=="string"&&s.trim()!==""?s=Number(s):a.parseBooleans&&s!==null&&(s.toLowerCase()==="true"||s.toLowerCase()==="false")&&(s=s.toLowerCase()==="true"),s}function R(s,a){a=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},a),p(a.arrayFormatSeparator);const u=f(a),c=Object.create(null);if(typeof s!="string"||(s=s.trim().replace(/^[?#&]/,""),!s))return c;for(const h of s.split("&")){if(h==="")continue;let[m,_]=r(a.decode?h.replace(/\+/g," "):h,"=");_=_===void 0?null:["comma","separator"].includes(a.arrayFormat)?_:w(_,a),u(w(m,a),_,c)}for(const h of Object.keys(c)){const m=c[h];if(typeof m=="object"&&m!==null)for(const _ of Object.keys(m))m[_]=I(m[_],a);else c[h]=I(m,a)}return a.sort===!1?c:(a.sort===!0?Object.keys(c).sort():Object.keys(c).sort(a.sort)).reduce((h,m)=>{const _=c[m];return _&&typeof _=="object"&&!Array.isArray(_)?h[m]=y(_):h[m]=_,h},Object.create(null))}t.extract=k,t.parse=R,t.stringify=(s,a)=>{if(!s)return"";a=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},a),p(a.arrayFormatSeparator);const u=_=>a.skipNull&&i(s[_])||a.skipEmptyString&&s[_]==="",c=d(a),h={};for(const _ of Object.keys(s))u(_)||(h[_]=s[_]);const m=Object.keys(h);return a.sort!==!1&&m.sort(a.sort),m.map(_=>{const v=s[_];return v===void 0?"":v===null?g(_,a):Array.isArray(v)?v.reduce(c(_),[]).join("&"):g(_,a)+"="+g(v,a)}).filter(_=>_.length>0).join("&")},t.parseUrl=(s,a)=>{a=Object.assign({decode:!0},a);const[u,c]=r(s,"#");return Object.assign({url:u.split("?")[0]||"",query:R(k(s),a)},a&&a.parseFragmentIdentifier&&c?{fragmentIdentifier:w(c,a)}:{})},t.stringifyUrl=(s,a)=>{a=Object.assign({encode:!0,strict:!0},a);const u=b(s.url).split("?")[0]||"",c=t.extract(s.url),h=t.parse(c,{sort:!1}),m=Object.assign(h,s.query);let _=t.stringify(m,a);_&&(_=`?${_}`);let v=C(s.url);return s.fragmentIdentifier&&(v=`#${g(s.fragmentIdentifier,a)}`),`${u}${_}${v}`},t.pick=(s,a,u)=>{u=Object.assign({parseFragmentIdentifier:!0},u);const{url:c,query:h,fragmentIdentifier:m}=t.parseUrl(s,u);return t.stringifyUrl({url:c,query:o(h,a),fragmentIdentifier:m},u)},t.exclude=(s,a,u)=>{const c=Array.isArray(a)?h=>!a.includes(h):(h,m)=>!a(h,m);return t.pick(s,c,u)}})(Be);function Qt(t){const e=t.indexOf("?")!==-1?t.indexOf("?"):void 0;return typeof e<"u"?t.substr(e):""}function Jt(t,e){let n=We(t);return n=Object.assign(Object.assign({},n),e),t=Vt(n),t}function We(t){return Be.parse(t)}function Vt(t){return Be.stringify(t)}function Gt(t){return typeof t.bridge<"u"}function Yt(t){const e=t.indexOf(":"),n=t.indexOf("?")!==-1?t.indexOf("?"):void 0,r=t.substring(0,e),o=t.substring(e+1,n);function i(y){const C=y.split("@");return{handshakeTopic:C[0],version:parseInt(C[1],10)}}const d=i(o),f=typeof n<"u"?t.substr(n):"";function p(y){const b=We(y);return{key:b.key||"",bridge:b.bridge||""}}const g=p(f);return Object.assign(Object.assign({protocol:r},d),g)}function Xo(t){return t===""||typeof t=="string"&&t.trim()===""}function ei(t){return!(t&&t.length)}function ti(t){return oe(t)}function ni(t){return Ue(t)}function ri(t){return Ct(t)}function oi(t){return no(t)}function ii(t){return ro(t)}function si(t,e){return St(t,e)}function ai(t){return typeof t.params=="object"}function Kt(t){return typeof t.method<"u"}function D(t){return typeof t.result<"u"}function z(t){return typeof t.error<"u"}function _e(t){return typeof t.event<"u"}function Zt(t){return Nr.includes(t)||t.startsWith("wc_")}function Xt(t){return t.method.startsWith("wc_")?!0:!xe.includes(t.method)}const ci=Object.freeze(Object.defineProperty({__proto__:null,addHexPrefix:Wo,appendToQueryString:Jt,concatArrayBuffers:mo,concatBuffers:vo,convertArrayBufferToBuffer:X,convertArrayBufferToHex:xt,convertArrayBufferToNumber:go,convertArrayBufferToUtf8:po,convertBufferToArrayBuffer:It,convertBufferToHex:yo,convertBufferToNumber:bo,convertBufferToUtf8:wo,convertHexToArrayBuffer:Rt,convertHexToBuffer:xo,convertHexToNumber:Ro,convertHexToUtf8:Io,convertNumberToArrayBuffer:Oo,convertNumberToBuffer:To,convertNumberToHex:Tt,convertNumberToUtf8:No,convertUtf8ToArrayBuffer:Eo,convertUtf8ToBuffer:So,convertUtf8ToHex:Co,convertUtf8ToNumber:ko,detectEnv:se,detectOS:ae,formatIOSMobile:Qo,formatMobileRegistry:Zo,formatMobileRegistryEntry:zt,formatQueryString:Vt,formatRpcError:Ft,getClientMeta:fe,getCrypto:$o,getCryptoOrThrow:Po,getDappRegistryUrl:Ko,getDocument:Ao,getDocumentOrThrow:qo,getEncoding:ii,getFromWindow:Mo,getFromWindowOrThrow:Lo,getInfuraRpcUrl:jt,getLocal:$e,getLocalStorage:ie,getLocalStorageOrThrow:jo,getLocation:Nt,getLocationOrThrow:Do,getMobileLinkRegistry:Vo,getMobileRegistryEntry:Wt,getNavigator:Ot,getNavigatorOrThrow:Uo,getQueryString:Qt,getRpcUrl:Bt,getType:oi,getWalletRegistryUrl:Yo,isAndroid:Mt,isArrayBuffer:ri,isBrowser:Ut,isBuffer:ti,isEmptyArray:ei,isEmptyString:Xo,isHexString:si,isIOS:Lt,isInternalEvent:_e,isJsonRpcRequest:Kt,isJsonRpcResponseError:z,isJsonRpcResponseSuccess:D,isJsonRpcSubscription:ai,isMobile:qt,isNode:At,isReservedEvent:Zt,isSilentPayload:Xt,isTypedArray:ni,isWalletConnectSession:Gt,logDeprecationWarning:zo,parseQueryString:We,parseWalletConnectUri:Yt,payloadId:$t,promisify:Go,removeHexLeadingZeros:Ho,removeHexPrefix:Fo,removeLocal:je,safeJsonParse:Dt,safeJsonStringify:Pt,sanitizeHex:Bo,saveMobileLinkInfo:Jo,setLocal:Pe,uuid:K},Symbol.toStringTag,{value:"Module"}));class li{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,n){this._eventEmitters.push({event:e,callback:n})}trigger(e){let n=[];e&&(n=this._eventEmitters.filter(r=>r.event===e)),n.forEach(r=>{r.callback()})}}const ui=typeof global.WebSocket<"u"?global.WebSocket:require("ws");class di{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new li,!e.url||typeof e.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return this.readyState===0}set connected(e){}get connected(){return this.readyState===1}set closing(e){}get closing(){return this.readyState===2}set closed(e){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(e,n,r){if(!n||typeof n!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:n,type:"pub",payload:e,silent:!!r})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,n){this._events.push({event:e,callback:n})}_socketCreate(){if(this._nextSocket)return;const e=hi(this._url,this._protocol,this._version);if(this._nextSocket=new ui(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=n=>this._socketReceive(n),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=n=>this._socketError(n),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){const n=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(n):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let n;try{n=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:n.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){const r=this._events.filter(o=>o.event==="message");r&&r.length&&r.forEach(o=>o.callback(n))}}_socketError(e){const n=this._events.filter(r=>r.event==="error");n&&n.length&&n.forEach(r=>r.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(n=>this._queue.push({topic:n,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(n=>this._socketSend(n)),this._queue=[]}}function hi(t,e,n){var r,o;const d=(t.startsWith("https")?t.replace("https","wss"):t.startsWith("http")?t.replace("http","ws"):t).split("?"),f=Ut()?{protocol:e,version:n,env:"browser",host:((r=Nt())===null||r===void 0?void 0:r.host)||""}:{protocol:e,version:n,env:((o=se())===null||o===void 0?void 0:o.name)||""},p=Jt(Qt(d[1]||""),f);return d[0]+"?"+p}class fi{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(n=>n.event!==e)}trigger(e){let n=[],r;Kt(e)?r=e.method:D(e)||z(e)?r=`response:${e.id}`:_e(e)?r=e.event:r="",r&&(n=this._eventEmitters.filter(o=>o.event===r)),(!n||!n.length)&&!Zt(r)&&!_e(r)&&(n=this._eventEmitters.filter(o=>o.event==="call_request")),n.forEach(o=>{if(z(e)){const i=new Error(e.error.message);o.callback(i,null)}else o.callback(null,e)})}}class _i{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null;const n=$e(this.storageId);return n&&Gt(n)&&(e=n),e}setSession(e){return Pe(this.storageId,e),e}removeSession(){je(this.storageId)}}const pi="walletconnect.org",gi="abcdefghijklmnopqrstuvwxyz0123456789",en=gi.split("").map(t=>`https://${t}.bridge.walletconnect.org`);function mi(t){let e=t.indexOf("//")>-1?t.split("/")[2]:t.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function wi(t){return mi(t).split(".").slice(-2).join(".")}function yi(){return Math.floor(Math.random()*en.length)}function bi(){return en[yi()]}function vi(t){return wi(t)===pi}function Ei(t){return vi(t)?bi():t}class Si{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new fi,this._clientMeta=fe()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new _i(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...xe,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(Rr);e.connectorOpts.bridge&&(this.bridge=Ei(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);const n=e.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new di({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;const n=Rt(e);this._key=n}get key(){return this._key?xt(this._key,!0):""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=K()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=fe()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;const{handshakeTopic:n,bridge:r,key:o}=this._parseUri(e);this.handshakeTopic=n,this.bridge=r,this.key=o}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,n){const r={event:e,callback:n};this._eventManager.subscribe(r)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();const n=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=n.id,this.handshakeTopic=K(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(et)});const r=()=>{this.killSession()};try{const o=await this._sendCallRequest(n);return o&&r(),o}catch(o){throw r(),o}}async connect(e){if(!this._qrcodeModal)throw new Error(Or);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(n,r)=>{this.on("modal_closed",()=>r(new Error(et))),this.on("connect",(o,i)=>{if(o)return r(o);n(i.params[0])})}))}async createSession(e){if(this._connected)throw new Error(le);if(this.pending)return;this._key=await this._generateKey();const n=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=n.id,this.handshakeTopic=K(),this._sendSessionRequest(n,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(le);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},r={id:this.handshakeId,jsonrpc:"2.0",result:n};this._sendResponse(r),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(le);const n=e&&e.message?e.message:Er,r=this._formatResponse({id:this.handshakeId,error:{message:n}});this._sendResponse(r),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(q);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},r=this._formatRequest({method:"wc_sessionUpdate",params:[n]});this._sendSessionRequest(r,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){const n=e?e.message:"Session Disconnected",r={approved:!1,chainId:null,networkId:null,accounts:null},o=this._formatRequest({method:"wc_sessionUpdate",params:[r]});await this._sendRequest(o),this._handleSessionDisconnect(n)}async sendTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_sendTransaction",params:[n]});return await this._sendCallRequest(r)}async signTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_signTransaction",params:[n]});return await this._sendCallRequest(r)}async signMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(n)}async signPersonalMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(n)}async signTypedData(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(n)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");const n=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(n)}unsafeSend(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),new Promise((r,o)=>{this._subscribeToResponse(e.id,(i,d)=>{if(i){o(i);return}if(!d)throw new Error(Sr);r(d)})})}async sendCustomRequest(e,n){if(!this._connected)throw new Error(q);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return Tt(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params;break;case"personal_sign":e.params;break}const r=this._formatRequest(e);return await this._sendCallRequest(r,n)}approveRequest(e){if(D(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(Cr)}rejectRequest(e){if(z(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(kr)}transportClose(){this._transport.close()}async _sendRequest(e,n){const r=this._formatRequest(e),o=await this._encrypt(r),i=typeof(n==null?void 0:n.topic)<"u"?n.topic:this.peerId,d=JSON.stringify(o),f=typeof(n==null?void 0:n.forcePushNotification)<"u"?!n.forcePushNotification:Xt(r);this._transport.send(d,i,f)}async _sendResponse(e){const n=await this._encrypt(e),r=this.peerId,o=JSON.stringify(n);this._transport.send(o,r,!0)}async _sendSessionRequest(e,n,r){this._sendRequest(e,r),this._subscribeToSessionResponse(e.id,n)}_sendCallRequest(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(xr);return{id:typeof e.id>"u"?$t():e.id,jsonrpc:"2.0",method:e.method,params:typeof e.params>"u"?[]:e.params}}_formatResponse(e){if(typeof e.id>"u")throw new Error(Ir);const n={id:e.id,jsonrpc:"2.0"};if(z(e)){const r=Ft(e.error);return Object.assign(Object.assign(Object.assign({},n),e),{error:r})}else if(D(e))return Object.assign(Object.assign({},n),e);throw new Error(Xe)}_handleSessionDisconnect(e){const n=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),je(he)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,n){n?n.approved?(this._connected?(n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),n.peerId&&!this.peerId&&(this.peerId=n.peerId),n.peerMeta&&!this.peerMeta&&(this.peerMeta=n.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let r;try{r=JSON.parse(e.payload)}catch{return}const o=await this._decrypt(r);o&&this._eventManager.trigger(o)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,n){this.on(`response:${e}`,n)}_subscribeToSessionResponse(e,n){this._subscribeToResponse(e,(r,o)=>{if(r){this._handleSessionResponse(r.message);return}D(o)?this._handleSessionResponse(n,o.result):o.error&&o.error.message?this._handleSessionResponse(o.error.message):this._handleSessionResponse(n)})}_subscribeToCallResponse(e){return new Promise((n,r)=>{this._subscribeToResponse(e,(o,i)=>{if(o){r(o);return}D(i)?n(i.result):i.error&&i.error.message?r(i.error):r(new Error(Xe))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,n)=>{const{request:r}=n.params[0];if(qt()&&this._signingMethods.includes(r.method)){const o=$e(he);o&&(window.location.href=o.href)}}),this.on("wc_sessionRequest",(e,n)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=n.id,this.peerId=n.params[0].peerId,this.peerMeta=n.params[0].peerMeta;const r=Object.assign(Object.assign({},n),{method:"session_request"});this._eventManager.trigger(r)}),this.on("wc_sessionUpdate",(e,n)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",n.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){const e=this.protocol,n=this.handshakeTopic,r=this.version,o=encodeURIComponent(this.bridge),i=this.key;return`${e}:${n}@${r}?bridge=${o}&key=${i}`}_parseUri(e){const n=Yt(e);if(n.protocol===this.protocol){if(!n.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const r=n.handshakeTopic;if(!n.bridge)throw Error("Invalid or missing bridge url parameter value");const o=decodeURIComponent(n.bridge);if(!n.key)throw Error("Invalid or missing key parameter value");const i=n.key;return{handshakeTopic:r,bridge:o,key:i}}else throw new Error(Tr)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.encrypt(e,n):null}async _decrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.decrypt(e,n):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||typeof e.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||typeof e.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||typeof e.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");const n={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(r,o)=>{if(r)throw r;if(e.peerMeta){const i=o.params[0].peerMeta.name;n.peerName=i}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}}function Ci(t){return Q.getBrowerCrypto().getRandomValues(new Uint8Array(t))}const tn=256,nn=tn,ki=tn,L="AES-CBC",xi=`SHA-${nn}`,pe="HMAC",Ii="encrypt",Ri="decrypt",Ti="sign",Oi="verify";function Ni(t){return t===L?{length:nn,name:L}:{hash:{name:xi},name:pe}}function Mi(t){return t===L?[Ii,Ri]:[Ti,Oi]}async function Fe(t,e=L){return Q.getSubtleCrypto().importKey("raw",t,Ni(e),!0,Mi(e))}async function Li(t,e,n){const r=Q.getSubtleCrypto(),o=await Fe(e,L),i=await r.encrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function qi(t,e,n){const r=Q.getSubtleCrypto(),o=await Fe(e,L),i=await r.decrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function Ai(t,e){const n=Q.getSubtleCrypto(),r=await Fe(t,pe),o=await n.sign({length:ki,name:pe},r,e);return new Uint8Array(o)}function Ui(t,e,n){return Li(t,e,n)}function Di(t,e,n){return qi(t,e,n)}async function rn(t,e){return await Ai(t,e)}async function on(t){const e=(t||256)/8,n=Ci(e);return It(W(n))}async function sn(t,e){const n=M(t.data),r=M(t.iv),o=M(t.hmac),i=N(o,!1),d=kt(n,r),f=await rn(e,d),p=N(f,!1);return B(i)===B(p)}async function Pi(t,e,n){const r=j(X(e)),o=n||await on(128),i=j(X(o)),d=N(i,!1),f=JSON.stringify(t),p=Et(f),g=await Ui(i,r,p),w=N(g,!1),y=kt(g,i),b=await rn(r,y),C=N(b,!1);return{data:w,hmac:C,iv:d}}async function $i(t,e){const n=j(X(e));if(!n)throw new Error("Missing key: required for decryption");if(!await sn(t,n))return null;const o=M(t.data),i=M(t.iv),d=await Di(i,n,o),f=bt(d);let p;try{p=JSON.parse(f)}catch{return null}return p}const ji=Object.freeze(Object.defineProperty({__proto__:null,decrypt:$i,encrypt:Pi,generateKey:on,verifyHmac:sn},Symbol.toStringTag,{value:"Module"}));class Bi extends Si{constructor(e,n){super({cryptoLib:ji,connectorOpts:e,pushServerOpts:n})}}const Wi=ht(ci);var Fi=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=tt[e.format]||tt.default;window.clipboardData.setData(y,t)}else w.clipboardData.clearData(),w.clipboardData.setData(e.format,t);e.onCopy&&(w.preventDefault(),e.onCopy(w.clipboardData))}),document.body.appendChild(f),i.selectNodeContents(f),d.addRange(i);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");p=!0}catch(w){n&&console.error("unable to copy using execCommand: ",w),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),p=!0}catch(y){n&&console.error("unable to copy using clipboardData: ",y),n&&console.error("falling back to prompt"),r=Qi("message"in e?e.message:zi),window.prompt(r,t)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(i):d.removeAllRanges()),f&&document.body.removeChild(f),o()}return p}var Vi=Ji;function an(t,e){for(var n in e)t[n]=e[n];return t}function ge(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function ee(t,e){this.props=t,this.context=e}function cn(t,e){function n(o){var i=this.props.ref,d=i==o.ref;return!d&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!d:ge(this.props,o)}function r(o){return this.shouldComponentUpdate=n,x(t,o)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ee.prototype=new A).isPureReactComponent=!0,ee.prototype.shouldComponentUpdate=function(t,e){return ge(this.props,t)||ge(this.state,e)};var nt=S.__b;S.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),nt&&nt(t)};var Gi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ln(t){function e(n){var r=an({},n);return delete r.ref,t(r,n.ref||null)}return e.$$typeof=Gi,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var rt=function(t,e){return t==null?null:O(O(t).map(e))},un={map:rt,forEach:rt,count:function(t){return t?O(t).length:0},only:function(t){var e=O(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:O},Yi=S.__e;S.__e=function(t,e,n,r){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e)}Yi(t,e,n,r)};var ot=S.unmount;function dn(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=an({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return dn(r,e,n)})),t}function hn(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return hn(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function H(){this.__u=0,this.t=null,this.__b=null}function fn(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function _n(t){var e,n,r;function o(i){if(e||(e=t()).then(function(d){n=d.default||d},function(d){r=d}),r)throw r;if(!n)throw e;return x(n,i)}return o.displayName="Lazy",o.__f=!0,o}function P(){this.u=null,this.o=null}S.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),ot&&ot(t)},(H.prototype=new A).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=fn(r.__v),i=!1,d=function(){i||(i=!0,n.__R=null,o?o(f):f())};n.__R=d;var f=function(){if(!--r.__u){if(r.state.__a){var p=r.state.__a;r.__v.__k[0]=hn(p,p.__c.__P,p.__c.__O)}var g;for(r.setState({__a:r.__b=null});g=r.t.pop();)g.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(d,d)},H.prototype.componentWillUnmount=function(){this.t=[]},H.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=dn(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__a&&x($,null,t.fallback);return o&&(o.__u&=-33),[x($,null,e.__a?null:t.children),o]};var it=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(r)}}),Z(x(Ki,{context:e.context},t.__v),e.l)}function pn(t,e){var n=x(Zi,{__v:t,i:e});return n.containerInfo=e,n}(P.prototype=new A).__a=function(t){var e=this,n=fn(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),it(e,t,r)):o()};n?n(i):i()}},P.prototype.render=function(t){this.u=null,this.o=new Map;var e=O(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},P.prototype.componentDidUpdate=P.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){it(t,n,e)})};var gn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Xi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,es=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ts=/[A-Z0-9]/g,ns=typeof document<"u",rs=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function mn(t,e,n){return e.__k==null&&(e.textContent=""),Z(t,e),typeof n=="function"&&n(),t?t.__c:null}function wn(t,e,n){return yr(t,e),typeof n=="function"&&n(),t?t.__c:null}A.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(A.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var st=S.event;function os(){}function is(){return this.cancelBubble}function ss(){return this.defaultPrevented}S.event=function(t){return st&&(t=st(t)),t.persist=os,t.isPropagationStopped=is,t.isDefaultPrevented=ss,t.nativeEvent=t};var He,as={enumerable:!1,configurable:!0,get:function(){return this.class}},at=S.vnode;S.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,r=e.type,o={};for(var i in n){var d=n[i];if(!(i==="value"&&"defaultValue"in n&&d==null||ns&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var f=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&d===!0?d="":f==="translate"&&d==="no"?d=!1:f==="ondoubleclick"?i="ondblclick":f!=="onchange"||r!=="input"&&r!=="textarea"||rs(n.type)?f==="onfocus"?i="onfocusin":f==="onblur"?i="onfocusout":es.test(i)?i=f:r.indexOf("-")===-1&&Xi.test(i)?i=i.replace(ts,"-$&").toLowerCase():d===null&&(d=void 0):f=i="oninput",f==="oninput"&&o[i=f]&&(i="oninputCapture"),o[i]=d}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.value.indexOf(p.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.multiple?o.defaultValue.indexOf(p.props.value)!=-1:o.defaultValue==p.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",as)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),e.props=o}(t),t.$$typeof=gn,at&&at(t)};var ct=S.__r;S.__r=function(t){ct&&ct(t),He=t.__c};var lt=S.diffed;S.diffed=function(t){lt&<(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value),He=null};var yn={ReactCurrentDispatcher:{current:{readContext:function(t){return He.__n[t.__c].props.value},useCallback:we,useContext:ye,useDebugValue:be,useDeferredValue:Qe,useEffect:te,useId:ve,useImperativeHandle:Ee,useInsertionEffect:Ve,useLayoutEffect:J,useMemo:Se,useReducer:Ce,useRef:ke,useState:ne,useSyncExternalStore:Ge,useTransition:Je}}},cs="17.0.2";function bn(t){return x.bind(null,t)}function G(t){return!!t&&t.$$typeof===gn}function vn(t){return G(t)&&t.type===$}function En(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Sn(t){return G(t)?br.apply(null,arguments):t}function Cn(t){return!!t.__k&&(Z(null,t),!0)}function kn(t){return t&&(t.base||t.nodeType===1&&t)||null}var xn=function(t,e){return t(e)},In=function(t,e){return t(e)},Rn=$;function ze(t){t()}function Qe(t){return t}function Je(){return[!1,ze]}var Ve=J,Tn=G;function Ge(t,e){var n=e(),r=ne({h:{__:n,v:e}}),o=r[0].h,i=r[1];return J(function(){o.__=n,o.v=e,ue(o)&&i({h:o})},[t,n,e]),te(function(){return ue(o)&&i({h:o}),t(function(){ue(o)&&i({h:o})})},[t]),n}function ue(t){var e,n,r=t.v,o=t.__;try{var i=r();return!((e=o)===(n=i)&&(e!==0||1/e==1/n)||e!=e&&n!=n)}catch{return!0}}var ls={useState:ne,useId:ve,useReducer:Ce,useEffect:te,useLayoutEffect:J,useInsertionEffect:Ve,useTransition:Je,useDeferredValue:Qe,useSyncExternalStore:Ge,startTransition:ze,useRef:ke,useImperativeHandle:Ee,useMemo:Se,useCallback:we,useContext:ye,useDebugValue:be,version:"17.0.2",Children:un,render:mn,hydrate:wn,unmountComponentAtNode:Cn,createPortal:pn,createElement:x,createContext:_t,createFactory:bn,cloneElement:Sn,createRef:pt,Fragment:$,isValidElement:G,isElement:Tn,isFragment:vn,isMemo:En,findDOMNode:kn,Component:A,PureComponent:ee,memo:cn,forwardRef:ln,flushSync:In,unstable_batchedUpdates:xn,StrictMode:Rn,Suspense:H,SuspenseList:P,lazy:_n,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:yn};const us=Object.freeze(Object.defineProperty({__proto__:null,Children:un,Component:A,Fragment:$,PureComponent:ee,StrictMode:Rn,Suspense:H,SuspenseList:P,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:yn,cloneElement:Sn,createContext:_t,createElement:x,createFactory:bn,createPortal:pn,createRef:pt,default:ls,findDOMNode:kn,flushSync:In,forwardRef:ln,hydrate:wn,isElement:Tn,isFragment:vn,isMemo:En,isValidElement:G,lazy:_n,memo:cn,render:mn,startTransition:ze,unmountComponentAtNode:Cn,unstable_batchedUpdates:xn,useCallback:we,useContext:ye,useDebugValue:be,useDeferredValue:Qe,useEffect:te,useErrorBoundary:vr,useId:ve,useImperativeHandle:Ee,useInsertionEffect:Ve,useLayoutEffect:J,useMemo:Se,useReducer:Ce,useRef:ke,useState:ne,useSyncExternalStore:Ge,useTransition:Je,version:cs},Symbol.toStringTag,{value:"Module"})),ds=ht(us);function On(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var E=Wi,Nn=On(cr),hs=On(Vi),l=ds;function fs(t){Nn.toString(t,{type:"terminal"}).then(console.log)}var _s=`:root { - --animation-duration: 300ms; -} - -@keyframes fadeIn { - from { - opacity: 0; - } - to { - opacity: 1; - } -} - -@keyframes fadeOut { - from { - opacity: 1; - } - to { - opacity: 0; - } -} - -.animated { - animation-duration: var(--animation-duration); - animation-fill-mode: both; -} - -.fadeIn { - animation-name: fadeIn; -} - -.fadeOut { - animation-name: fadeOut; -} - -#walletconnect-wrapper { - -webkit-user-select: none; - align-items: center; - display: flex; - height: 100%; - justify-content: center; - left: 0; - pointer-events: none; - position: fixed; - top: 0; - user-select: none; - width: 100%; - z-index: 99999999999999; -} - -.walletconnect-modal__headerLogo { - height: 21px; -} - -.walletconnect-modal__header p { - color: #ffffff; - font-size: 20px; - font-weight: 600; - margin: 0; - align-items: flex-start; - display: flex; - flex: 1; - margin-left: 5px; -} - -.walletconnect-modal__close__wrapper { - position: absolute; - top: 0px; - right: 0px; - z-index: 10000; - background: white; - border-radius: 26px; - padding: 6px; - box-sizing: border-box; - width: 26px; - height: 26px; - cursor: pointer; -} - -.walletconnect-modal__close__icon { - position: relative; - top: 7px; - right: 0; - display: flex; - align-items: center; - justify-content: center; - transform: rotate(45deg); -} - -.walletconnect-modal__close__line1 { - position: absolute; - width: 100%; - border: 1px solid rgb(48, 52, 59); -} - -.walletconnect-modal__close__line2 { - position: absolute; - width: 100%; - border: 1px solid rgb(48, 52, 59); - transform: rotate(90deg); -} - -.walletconnect-qrcode__base { - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); - background: rgba(37, 41, 46, 0.95); - height: 100%; - left: 0; - pointer-events: auto; - position: fixed; - top: 0; - transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); - width: 100%; - will-change: opacity; - padding: 40px; - box-sizing: border-box; -} - -.walletconnect-qrcode__text { - color: rgba(60, 66, 82, 0.6); - font-size: 16px; - font-weight: 600; - letter-spacing: 0; - line-height: 1.1875em; - margin: 10px 0 20px 0; - text-align: center; - width: 100%; -} - -@media only screen and (max-width: 768px) { - .walletconnect-qrcode__text { - font-size: 4vw; - } -} - -@media only screen and (max-width: 320px) { - .walletconnect-qrcode__text { - font-size: 14px; - } -} - -.walletconnect-qrcode__image { - width: calc(100% - 30px); - box-sizing: border-box; - cursor: none; - margin: 0 auto; -} - -.walletconnect-qrcode__notification { - position: absolute; - bottom: 0; - left: 0; - right: 0; - font-size: 16px; - padding: 16px 20px; - border-radius: 16px; - text-align: center; - transition: all 0.1s ease-in-out; - background: white; - color: black; - margin-bottom: -60px; - opacity: 0; -} - -.walletconnect-qrcode__notification.notification__show { - opacity: 1; -} - -@media only screen and (max-width: 768px) { - .walletconnect-modal__header { - height: 130px; - } - .walletconnect-modal__base { - overflow: auto; - } -} - -@media only screen and (min-device-width: 415px) and (max-width: 768px) { - #content { - max-width: 768px; - box-sizing: border-box; - } -} - -@media only screen and (min-width: 375px) and (max-width: 415px) { - #content { - max-width: 414px; - box-sizing: border-box; - } -} - -@media only screen and (min-width: 320px) and (max-width: 375px) { - #content { - max-width: 375px; - box-sizing: border-box; - } -} - -@media only screen and (max-width: 320px) { - #content { - max-width: 320px; - box-sizing: border-box; - } -} - -.walletconnect-modal__base { - -webkit-font-smoothing: antialiased; - background: #ffffff; - border-radius: 24px; - box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4); - font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font, - -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; - margin-top: 41px; - padding: 24px 24px 22px; - pointer-events: auto; - position: relative; - text-align: center; - transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); - will-change: transform; - overflow: visible; - transform: translateY(-50%); - top: 50%; - max-width: 500px; - margin: auto; -} - -@media only screen and (max-width: 320px) { - .walletconnect-modal__base { - padding: 24px 12px; - } -} - -.walletconnect-modal__base .hidden { - transform: translateY(150%); - transition: 0.125s cubic-bezier(0.4, 0, 1, 1); -} - -.walletconnect-modal__header { - align-items: center; - display: flex; - height: 26px; - left: 0; - justify-content: space-between; - position: absolute; - top: -42px; - width: 100%; -} - -.walletconnect-modal__base .wc-logo { - align-items: center; - display: flex; - height: 26px; - margin-top: 15px; - padding-bottom: 15px; - pointer-events: auto; -} - -.walletconnect-modal__base .wc-logo div { - background-color: #3399ff; - height: 21px; - margin-right: 5px; - mask-image: url("images/wc-logo.svg") center no-repeat; - width: 32px; -} - -.walletconnect-modal__base .wc-logo p { - color: #ffffff; - font-size: 20px; - font-weight: 600; - margin: 0; -} - -.walletconnect-modal__base h2 { - color: rgba(60, 66, 82, 0.6); - font-size: 16px; - font-weight: 600; - letter-spacing: 0; - line-height: 1.1875em; - margin: 0 0 19px 0; - text-align: center; - width: 100%; -} - -.walletconnect-modal__base__row { - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); - align-items: center; - border-radius: 20px; - cursor: pointer; - display: flex; - height: 56px; - justify-content: space-between; - padding: 0 15px; - position: relative; - margin: 0px 0px 8px; - text-align: left; - transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94); - will-change: transform; - text-decoration: none; -} - -.walletconnect-modal__base__row:hover { - background: rgba(60, 66, 82, 0.06); -} - -.walletconnect-modal__base__row:active { - background: rgba(60, 66, 82, 0.06); - transform: scale(0.975); - transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94); -} - -.walletconnect-modal__base__row__h3 { - color: #25292e; - font-size: 20px; - font-weight: 700; - margin: 0; - padding-bottom: 3px; -} - -.walletconnect-modal__base__row__right { - align-items: center; - display: flex; - justify-content: center; -} - -.walletconnect-modal__base__row__right__app-icon { - border-radius: 8px; - height: 34px; - margin: 0 11px 2px 0; - width: 34px; - background-size: 100%; - box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25); -} - -.walletconnect-modal__base__row__right__caret { - height: 18px; - opacity: 0.3; - transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94); - width: 8px; - will-change: opacity; -} - -.walletconnect-modal__base__row:hover .caret, -.walletconnect-modal__base__row:active .caret { - opacity: 0.6; -} - -.walletconnect-modal__mobile__toggle { - width: 80%; - display: flex; - margin: 0 auto; - position: relative; - overflow: hidden; - border-radius: 8px; - margin-bottom: 18px; - background: #d4d5d9; -} - -.walletconnect-modal__single_wallet { - display: flex; - justify-content: center; - margin-top: 7px; - margin-bottom: 18px; -} - -.walletconnect-modal__single_wallet a { - cursor: pointer; - color: rgb(64, 153, 255); - font-size: 21px; - font-weight: 800; - text-decoration: none !important; - margin: 0 auto; -} - -.walletconnect-modal__mobile__toggle_selector { - width: calc(50% - 8px); - background: white; - position: absolute; - border-radius: 5px; - height: calc(100% - 8px); - top: 4px; - transition: all 0.2s ease-in-out; - transform: translate3d(4px, 0, 0); -} - -.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector { - transform: translate3d(calc(100% + 12px), 0, 0); -} - -.walletconnect-modal__mobile__toggle a { - font-size: 12px; - width: 50%; - text-align: center; - padding: 8px; - margin: 0; - font-weight: 600; - z-index: 1; -} - -.walletconnect-modal__footer { - display: flex; - justify-content: center; - margin-top: 20px; -} - -@media only screen and (max-width: 768px) { - .walletconnect-modal__footer { - margin-top: 5vw; - } -} - -.walletconnect-modal__footer a { - cursor: pointer; - color: #898d97; - font-size: 15px; - margin: 0 auto; -} - -@media only screen and (max-width: 320px) { - .walletconnect-modal__footer a { - font-size: 14px; - } -} - -.walletconnect-connect__buttons__wrapper { - max-height: 44vh; -} - -.walletconnect-connect__buttons__wrapper__android { - margin: 50% 0; -} - -.walletconnect-connect__buttons__wrapper__wrap { - display: grid; - grid-template-columns: repeat(4, 1fr); - margin: 10px 0; -} - -@media only screen and (min-width: 768px) { - .walletconnect-connect__buttons__wrapper__wrap { - margin-top: 40px; - } -} - -.walletconnect-connect__button { - background-color: rgb(64, 153, 255); - padding: 12px; - border-radius: 8px; - text-decoration: none; - color: rgb(255, 255, 255); - font-weight: 500; -} - -.walletconnect-connect__button__icon_anchor { - cursor: pointer; - display: flex; - justify-content: flex-start; - align-items: center; - margin: 8px; - width: 42px; - justify-self: center; - flex-direction: column; - text-decoration: none !important; -} - -@media only screen and (max-width: 320px) { - .walletconnect-connect__button__icon_anchor { - margin: 4px; - } -} - -.walletconnect-connect__button__icon { - border-radius: 10px; - height: 42px; - margin: 0; - width: 42px; - background-size: cover !important; - box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25); -} - -.walletconnect-connect__button__text { - color: #424952; - font-size: 2.7vw; - text-decoration: none !important; - padding: 0; - margin-top: 1.8vw; - font-weight: 600; -} - -@media only screen and (min-width: 768px) { - .walletconnect-connect__button__text { - font-size: 16px; - margin-top: 12px; - } -} - -.walletconnect-search__input { - border: none; - background: #d4d5d9; - border-style: none; - padding: 8px 16px; - outline: none; - font-style: normal; - font-stretch: normal; - font-size: 16px; - font-style: normal; - font-stretch: normal; - line-height: normal; - letter-spacing: normal; - text-align: left; - border-radius: 8px; - width: calc(100% - 16px); - margin: 0; - margin-bottom: 8px; -} -`;typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function ps(t,e){try{var n=t()}catch(r){return e(r)}return n&&n.then?n.then(void 0,e):n}var gs="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='300px' height='185px' viewBox='0 0 300 185' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 49.3 (51167) - http://www.bohemiancoding.com/sketch --%3E %3Ctitle%3EWalletConnect%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cdefs%3E%3C/defs%3E %3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='walletconnect-logo-alt' fill='%233B99FC' fill-rule='nonzero'%3E %3Cpath d='M61.4385429,36.2562612 C110.349767,-11.6319051 189.65053,-11.6319051 238.561752,36.2562612 L244.448297,42.0196786 C246.893858,44.4140867 246.893858,48.2961898 244.448297,50.690599 L224.311602,70.406102 C223.088821,71.6033071 221.106302,71.6033071 219.883521,70.406102 L211.782937,62.4749541 C177.661245,29.0669724 122.339051,29.0669724 88.2173582,62.4749541 L79.542302,70.9685592 C78.3195204,72.1657633 76.337001,72.1657633 75.1142214,70.9685592 L54.9775265,51.2530561 C52.5319653,48.8586469 52.5319653,44.9765439 54.9775265,42.5821357 L61.4385429,36.2562612 Z M280.206339,77.0300061 L298.128036,94.5769031 C300.573585,96.9713 300.573599,100.85338 298.128067,103.247793 L217.317896,182.368927 C214.872352,184.763353 210.907314,184.76338 208.461736,182.368989 C208.461726,182.368979 208.461714,182.368967 208.461704,182.368957 L151.107561,126.214385 C150.496171,125.615783 149.504911,125.615783 148.893521,126.214385 C148.893517,126.214389 148.893514,126.214393 148.89351,126.214396 L91.5405888,182.368927 C89.095052,184.763359 85.1300133,184.763399 82.6844276,182.369014 C82.6844133,182.369 82.684398,182.368986 82.6843827,182.36897 L1.87196327,103.246785 C-0.573596939,100.852377 -0.573596939,96.9702735 1.87196327,94.5758653 L19.7936929,77.028998 C22.2392531,74.6345898 26.2042918,74.6345898 28.6498531,77.028998 L86.0048306,133.184355 C86.6162214,133.782957 87.6074796,133.782957 88.2188704,133.184355 C88.2188796,133.184346 88.2188878,133.184338 88.2188969,133.184331 L145.571,77.028998 C148.016505,74.6345347 151.981544,74.6344449 154.427161,77.028798 C154.427195,77.0288316 154.427229,77.0288653 154.427262,77.028899 L211.782164,133.184331 C212.393554,133.782932 213.384814,133.782932 213.996204,133.184331 L271.350179,77.0300061 C273.79574,74.6355969 277.760778,74.6355969 280.206339,77.0300061 Z' id='WalletConnect'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E",ms="WalletConnect",ws=300,ys="rgb(64, 153, 255)",Mn="walletconnect-wrapper",ut="walletconnect-style-sheet",Ln="walletconnect-qrcode-modal",bs="walletconnect-qrcode-close",qn="walletconnect-qrcode-text",vs="walletconnect-connect-button";function Es(t){return l.createElement("div",{className:"walletconnect-modal__header"},l.createElement("img",{src:gs,className:"walletconnect-modal__headerLogo"}),l.createElement("p",null,ms),l.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:t.onClose},l.createElement("div",{id:bs,className:"walletconnect-modal__close__icon"},l.createElement("div",{className:"walletconnect-modal__close__line1"}),l.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function Ss(t){return l.createElement("a",{className:"walletconnect-connect__button",href:t.href,id:vs+"-"+t.name,onClick:t.onClick,rel:"noopener noreferrer",style:{backgroundColor:t.color},target:"_blank"},t.name)}var Cs="data:image/svg+xml,%3Csvg width='8' height='18' viewBox='0 0 8 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.586301 0.213898C0.150354 0.552968 0.0718197 1.18124 0.41089 1.61719L5.2892 7.88931C5.57007 8.25042 5.57007 8.75608 5.2892 9.11719L0.410889 15.3893C0.071819 15.8253 0.150353 16.4535 0.586301 16.7926C1.02225 17.1317 1.65052 17.0531 1.98959 16.6172L6.86791 10.3451C7.7105 9.26174 7.7105 7.74476 6.86791 6.66143L1.98959 0.38931C1.65052 -0.0466374 1.02225 -0.125172 0.586301 0.213898Z' fill='%233C4252'/%3E %3C/svg%3E";function ks(t){var e=t.color,n=t.href,r=t.name,o=t.logo,i=t.onClick;return l.createElement("a",{className:"walletconnect-modal__base__row",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},l.createElement("h3",{className:"walletconnect-modal__base__row__h3"},r),l.createElement("div",{className:"walletconnect-modal__base__row__right"},l.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+o+"') "+e,backgroundSize:"100%"}}),l.createElement("img",{src:Cs,className:"walletconnect-modal__base__row__right__caret"})))}function xs(t){var e=t.color,n=t.href,r=t.name,o=t.logo,i=t.onClick,d=window.innerWidth<768?(r.length>8?2.5:2.7)+"vw":"inherit";return l.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},l.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+o+"') "+e,backgroundSize:"100%"}}),l.createElement("div",{style:{fontSize:d},className:"walletconnect-connect__button__text"},r))}var Is=5,de=12;function Rs(t){var e=E.isAndroid(),n=l.useState(""),r=n[0],o=n[1],i=l.useState(""),d=i[0],f=i[1],p=l.useState(1),g=p[0],w=p[1],y=d?t.links.filter(function(c){return c.name.toLowerCase().includes(d.toLowerCase())}):t.links,b=t.errorMessage,C=d||y.length>Is,k=Math.ceil(y.length/de),I=[(g-1)*de+1,g*de],R=y.length?y.filter(function(c,h){return h+1>=I[0]&&h+1<=I[1]}):[],s=!e&&k>1,a=void 0;function u(c){o(c.target.value),clearTimeout(a),c.target.value?a=setTimeout(function(){f(c.target.value),w(1)},1e3):(o(""),f(""),w(1))}return l.createElement("div",null,l.createElement("p",{id:qn,className:"walletconnect-qrcode__text"},e?t.text.connect_mobile_wallet:t.text.choose_preferred_wallet),!e&&l.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:r,onChange:u}),l.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(e?"__android":C&&y.length?"__wrap":"")},e?l.createElement(Ss,{name:t.text.connect,color:ys,href:t.uri,onClick:l.useCallback(function(){E.saveMobileLinkInfo({name:"Unknown",href:t.uri})},[])}):R.length?R.map(function(c){var h=c.color,m=c.name,_=c.shortName,v=c.logo,T=E.formatIOSMobile(t.uri,c),U=l.useCallback(function(){E.saveMobileLinkInfo({name:m,href:T})},[R]);return C?l.createElement(xs,{color:h,href:T,name:_||m,logo:v,onClick:U}):l.createElement(ks,{color:h,href:T,name:m,logo:v,onClick:U})}):l.createElement(l.Fragment,null,l.createElement("p",null,b.length?t.errorMessage:t.links.length&&!y.length?t.text.no_wallets_found:t.text.loading))),s&&l.createElement("div",{className:"walletconnect-modal__footer"},Array(k).fill(0).map(function(c,h){var m=h+1,_=g===m;return l.createElement("a",{style:{margin:"auto 10px",fontWeight:_?"bold":"normal"},onClick:function(){return w(m)}},m)})))}function Ts(t){var e=!!t.message.trim();return l.createElement("div",{className:"walletconnect-qrcode__notification"+(e?" notification__show":"")},t.message)}var Os=function(t){try{var e="";return Promise.resolve(Nn.toString(t,{margin:0,type:"svg"})).then(function(n){return typeof n=="string"&&(e=n.replace("0||l.useEffect(function(){var Pn=function(){try{if(e)return Promise.resolve();d(!0);var ce=ps(function(){var F=t.qrcodeModalOptions&&t.qrcodeModalOptions.registryUrl?t.qrcodeModalOptions.registryUrl:E.getWalletRegistryUrl();return Promise.resolve(fetch(F)).then(function($n){return Promise.resolve($n.json()).then(function(jn){var Bn=jn.listings,Wn=n?"mobile":"desktop",Y=E.getMobileLinkRegistry(E.formatMobileRegistry(Bn,Wn),r);d(!1),g(!0),T(Y.length?"":t.text.no_supported_wallets),m(Y);var Ye=Y.length===1;Ye&&(R(E.formatIOSMobile(t.uri,Y[0])),b(!0)),u(Ye)})})},function(F){d(!1),g(!0),T(t.text.something_went_wrong),console.error(F)});return Promise.resolve(ce&&ce.then?ce.then(function(){}):void 0)}catch(F){return Promise.reject(F)}};Pn()})};U();var Dn=n?y:!y;return l.createElement("div",{id:Ln,className:"walletconnect-qrcode__base animated fadeIn"},l.createElement("div",{className:"walletconnect-modal__base"},l.createElement(Es,{onClose:t.onClose}),a&&y?l.createElement("div",{className:"walletconnect-modal__single_wallet"},l.createElement("a",{onClick:function(){return E.saveMobileLinkInfo({name:h[0].name,href:I})},href:I,rel:"noopener noreferrer",target:"_blank"},t.text.connect_with+" "+(a?h[0].name:"")+" ›")):e||i||!i&&h.length?l.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(Dn?" right__selected":"")},l.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),n?l.createElement(l.Fragment,null,l.createElement("a",{onClick:function(){return b(!1),U()}},t.text.mobile),l.createElement("a",{onClick:function(){return b(!0)}},t.text.qrcode)):l.createElement(l.Fragment,null,l.createElement("a",{onClick:function(){return b(!0)}},t.text.qrcode),l.createElement("a",{onClick:function(){return b(!1),U()}},t.text.desktop))):null,l.createElement("div",null,y||!e&&!i&&!h.length?l.createElement(Ns,Object.assign({},C)):l.createElement(Rs,Object.assign({},C,{links:h,errorMessage:v})))))}var Ls={choose_preferred_wallet:"Wähle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterstützten Wallet",no_wallets_found:"keine Wallet gefunden"},qs={choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},As={choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera móvil",scan_qrcode_with_wallet:"Escanea el código QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo salió mal",no_supported_wallets:"Todavía no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},Us={choose_preferred_wallet:"Choisissez votre portefeuille préféré",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copié!",connect_with:"Connectez-vous à l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourné",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouvé"},Ds={choose_preferred_wallet:"원하는 지갑을 선택하세요",connect_mobile_wallet:"모바일 지갑과 연결",scan_qrcode_with_wallet:"WalletConnect 지원 지갑에서 QR코드를 스캔하세요",connect:"연결",qrcode:"QR 코드",mobile:"모바일",desktop:"데스크탑",copy_to_clipboard:"클립보드에 복사",copied_to_clipboard:"클립보드에 복사되었습니다!",connect_with:"와 연결하다",loading:"로드 중...",something_went_wrong:"문제가 발생했습니다.",no_supported_wallets:"아직 지원되는 지갑이 없습니다",no_wallets_found:"지갑을 찾을 수 없습니다"},Ps={choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se à carteira móvel",scan_qrcode_with_wallet:"Ler o código QR com uma carteira compatível com WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda não há carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},$s={choose_preferred_wallet:"选择你的钱包",connect_mobile_wallet:"连接至移动端钱包",scan_qrcode_with_wallet:"使用兼容 WalletConnect 的钱包扫描二维码",connect:"连接",qrcode:"二维码",mobile:"移动",desktop:"桌面",copy_to_clipboard:"复制到剪贴板",copied_to_clipboard:"复制到剪贴板成功!",connect_with:"通过以下方式连接",loading:"正在加载...",something_went_wrong:"出了问题",no_supported_wallets:"目前还没有支持的钱包",no_wallets_found:"没有找到钱包"},js={choose_preferred_wallet:"کیف پول مورد نظر خود را انتخاب کنید",connect_mobile_wallet:"به کیف پول موبایل وصل شوید",scan_qrcode_with_wallet:"کد QR را با یک کیف پول سازگار با WalletConnect اسکن کنید",connect:"اتصال",qrcode:"کد QR",mobile:"سیار",desktop:"دسکتاپ",copy_to_clipboard:"کپی به کلیپ بورد",copied_to_clipboard:"در کلیپ بورد کپی شد!",connect_with:"ارتباط با",loading:"...بارگذاری",something_went_wrong:"مشکلی پیش آمد",no_supported_wallets:"هنوز هیچ کیف پول پشتیبانی شده ای وجود ندارد",no_wallets_found:"هیچ کیف پولی پیدا نشد"},dt={de:Ls,en:qs,es:As,fr:Us,ko:Ds,pt:Ps,zh:$s,fa:js};function Bs(){var t=E.getDocumentOrThrow(),e=t.getElementById(ut);e&&t.head.removeChild(e);var n=t.createElement("style");n.setAttribute("id",ut),n.innerText=_s,t.head.appendChild(n)}function Ws(){var t=E.getDocumentOrThrow(),e=t.createElement("div");return e.setAttribute("id",Mn),t.body.appendChild(e),e}function An(){var t=E.getDocumentOrThrow(),e=t.getElementById(Ln);e&&(e.className=e.className.replace("fadeIn","fadeOut"),setTimeout(function(){var n=t.getElementById(Mn);n&&t.body.removeChild(n)},ws))}function Fs(t){return function(){An(),t&&t()}}function Hs(){var t=E.getNavigatorOrThrow().language.split("-")[0]||"en";return dt[t]||dt.en}function zs(t,e,n){Bs();var r=Ws();l.render(l.createElement(Ms,{text:Hs(),uri:t,onClose:Fs(e),qrcodeModalOptions:n}),r)}function Qs(){An()}var Un=function(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"};function Js(t,e,n){console.log(t),Un()?fs(t):zs(t,e,n)}function Vs(){Un()||Qs()}var Gs={open:Js,close:Vs},Ys=Gs;const Ks=me(Ys);class Zs extends mr{constructor(e){super(),this.events=new ft,this.accounts=[],this.chainId=1,this.pending=!1,this.bridge="https://bridge.walletconnect.org",this.qrcode=!0,this.qrcodeModalOptions=void 0,this.opts=e,this.chainId=(e==null?void 0:e.chainId)||this.chainId,this.wc=this.register(e)}get connected(){return typeof this.wc<"u"&&this.wc.connected}get connecting(){return this.pending}get connector(){return this.wc=this.register(this.opts),this.wc}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async open(e){if(this.connected){this.onOpen();return}return new Promise((n,r)=>{this.on("error",o=>{r(o)}),this.on("open",()=>{n()}),this.create(e)})}async close(){typeof this.wc>"u"||(this.wc.connected&&this.wc.killSession(),this.onClose())}async send(e){this.wc=this.register(this.opts),this.connected||await this.open(),this.sendPayload(e).then(n=>this.events.emit("payload",n)).catch(n=>this.events.emit("payload",Ke(e.id,n.message)))}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e!=null&&e.connector?e.connector.bridge:(e==null?void 0:e.bridge)||"https://bridge.walletconnect.org",this.qrcode=typeof(e==null?void 0:e.qrcode)>"u"||e.qrcode!==!1,this.chainId=typeof(e==null?void 0:e.chainId)<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e==null?void 0:e.qrcodeModalOptions;const n={bridge:this.bridge,qrcodeModal:this.qrcode?Ks:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e==null?void 0:e.storageId,signingMethods:e==null?void 0:e.signingMethods,clientMeta:e==null?void 0:e.clientMeta};if(this.wc=typeof(e==null?void 0:e.connector)<"u"?e.connector:new Bi(n),typeof this.wc>"u")throw new Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}onOpen(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}onClose(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}onError(e,n="Failed or Rejected Request",r=-32e3){const o={id:e.id,jsonrpc:e.jsonrpc,error:{code:r,message:n}};return this.events.emit("payload",o),o}create(e){this.wc=this.register(this.opts),this.chainId=e||this.chainId,!(this.connected||this.pending)&&(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then(()=>this.events.emit("created")).catch(n=>this.events.emit("error",n)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{var n,r;if(e){this.events.emit("error",e);return}this.accounts=((n=this.wc)===null||n===void 0?void 0:n.accounts)||[],this.chainId=((r=this.wc)===null||r===void 0?void 0:r.chainId)||this.chainId,this.onOpen()}),this.wc.on("disconnect",e=>{if(e){this.events.emit("error",e);return}this.onClose()}),this.wc.on("modal_closed",()=>{this.events.emit("error",new Error("User closed modal"))}),this.wc.on("session_update",(e,n)=>{const{accounts:r,chainId:o}=n.params[0];(!this.accounts||r&&this.accounts!==r)&&(this.accounts=r,this.events.emit("accountsChanged",r)),(!this.chainId||o&&this.chainId!==o)&&(this.chainId=o,this.events.emit("chainChanged",o))})}async sendPayload(e){this.wc=this.register(this.opts);try{const n=await this.wc.unsafeSend(e);return this.sanitizeResponse(n)}catch(n){return this.onError(e,n.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?Ke(e.id,e.error.message,e.error.data):e}}class na{constructor(e){this.events=new ft,this.rpc={infuraId:e==null?void 0:e.infuraId,custom:e==null?void 0:e.rpc},this.signer=new Ze(new Zs(e));const n=this.signer.connection.chainId||(e==null?void 0:e.chainId)||1;this.http=this.setHttpProvider(n),this.registerEventListeners()}get connected(){return this.signer.connection.connected}get connector(){return this.signer.connection.connector}get accounts(){return this.signer.connection.accounts}get chainId(){return this.signer.connection.chainId}get rpcUrl(){var e;return((e=this.http)===null||e===void 0?void 0:e.connection).url||""}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.signer.connection.accounts;case"eth_accounts":return this.signer.connection.accounts;case"eth_chainId":return this.signer.connection.chainId}if(xe.includes(e.method))return this.signer.request(e);if(typeof this.http>"u")throw new Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}sendAsync(e,n){this.request(e).then(r=>n(null,r)).catch(r=>n(r,void 0))}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){this.signer.connection.connected||await this.signer.connect()}async disconnect(){this.signer.connection.connected&&await this.signer.disconnect()}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}removeListener(e,n){this.events.removeListener(e,n)}off(e,n){this.events.off(e,n)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.connection.on("accountsChanged",e=>{this.events.emit("accountsChanged",e)}),this.signer.connection.on("chainChanged",e=>{this.http=this.setHttpProvider(e),this.events.emit("chainChanged",e)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){const n=Bt(e,this.rpc);return typeof n>"u"?void 0:new Ze(new wr(n))}}export{na as default}; -//# sourceMappingURL=index-B_Tlc-nD.js.map diff --git a/apps/web/public/assets/index-BcX4A68S.js b/apps/web/public/assets/index-BcX4A68S.js deleted file mode 100644 index 8f068d87..00000000 --- a/apps/web/public/assets/index-BcX4A68S.js +++ /dev/null @@ -1,48 +0,0 @@ -import{n as fe,s as Ke,T as k,t as P,a as g,o as Y,R as Dr,p as H,y as ae}from"./index-BWLXyvD6.js";import{b3 as Ur}from"./index-CTwKNzhK.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="65c96809-9004-426d-8ae7-9fcf9dfa63d1",t._sentryDebugIdIdentifier="sentry-dbid-65c96809-9004-426d-8ae7-9fcf9dfa63d1")}catch{}})();/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Qe=window,jt=Qe.ShadowRoot&&(Qe.ShadyCSS===void 0||Qe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ht=Symbol(),Vt=new WeakMap;let br=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Ht)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(jt&&e===void 0){const i=r!==void 0&&r.length===1;i&&(e=Vt.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Vt.set(r,e))}return e}toString(){return this.cssText}};const jr=t=>new br(typeof t=="string"?t:t+"",void 0,Ht),C=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((i,o,n)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[n+1],t[0]);return new br(r,t,Ht)},Hr=(t,e)=>{jt?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const i=document.createElement("style"),o=Qe.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,t.appendChild(i)})},Ft=jt?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const i of e.cssRules)r+=i.cssText;return jr(r)})(t):t;/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */var rt;const Ye=window,qt=Ye.trustedTypes,Br=qt?qt.emptyScript:"",Kt=Ye.reactiveElementPolyfillSupport,Lt={toAttribute(t,e){switch(e){case Boolean:t=t?Br:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},yr=(t,e)=>e!==t&&(e==e||t==t),ot={attribute:!0,type:String,converter:Lt,reflect:!1,hasChanged:yr},Pt="finalized";let ue=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,i)=>{const o=this._$Ep(i,r);o!==void 0&&(this._$Ev.set(o,i),e.push(o))}),e}static createProperty(e,r=ot){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const i=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,r);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,r,i){return{get(){return this[r]},set(o){const n=this[e];this[r]=o,this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||ot}static finalize(){if(this.hasOwnProperty(Pt))return!1;this[Pt]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const o of i)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)r.unshift(Ft(o))}else e!==void 0&&r.push(Ft(e));return r}static _$Ep(e,r){const i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Hr(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostConnected)===null||i===void 0?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)})}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r,i=ot){var o;const n=this.constructor._$Ep(e,i);if(n!==void 0&&i.reflect===!0){const a=(((o=i.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?i.converter:Lt).toAttribute(r,i.type);this._$El=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$El=null}}_$AK(e,r){var i;const o=this.constructor,n=o._$Ev.get(e);if(n!==void 0&&this._$El!==n){const a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?a.converter:Lt;this._$El=n,this[n]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,i){let o=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||yr)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,n)=>this[n]=o),this._$Ei=void 0);let r=!1;const i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var n;return(n=o.hostUpdate)===null||n===void 0?void 0:n.call(o)}),this.update(i)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(i)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var o;return(o=i.hostUpdated)===null||o===void 0?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};ue[Pt]=!0,ue.elementProperties=new Map,ue.elementStyles=[],ue.shadowRootOptions={mode:"open"},Kt==null||Kt({ReactiveElement:ue}),((rt=Ye.reactiveElementVersions)!==null&&rt!==void 0?rt:Ye.reactiveElementVersions=[]).push("1.6.3");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */var it;const Ge=window,be=Ge.trustedTypes,Qt=be?be.createPolicy("lit-html",{createHTML:t=>t}):void 0,Wt="$lit$",Q=`lit$${(Math.random()+"").slice(9)}$`,xr="?"+Q,Zr=`<${xr}>`,se=document,Se=()=>se.createComment(""),Le=t=>t===null||typeof t!="object"&&typeof t!="function",$r=Array.isArray,zr=t=>$r(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",nt=`[ -\f\r]`,Ce=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yt=/-->/g,Gt=/>/g,ee=RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Xt=/'/g,Jt=/"/g,Cr=/^(?:script|style|textarea|title)$/i,_r=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),l=_r(1),E=_r(2),le=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),er=new WeakMap,ie=se.createTreeWalker(se,129,null,!1);function Ar(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Qt!==void 0?Qt.createHTML(e):e}const Vr=(t,e)=>{const r=t.length-1,i=[];let o,n=e===2?"":"",a=Ce;for(let s=0;s"?(a=o??Ce,$=-1):x[1]===void 0?$=-2:($=a.lastIndex-x[2].length,d=x[1],a=x[3]===void 0?ee:x[3]==='"'?Jt:Xt):a===Jt||a===Xt?a=ee:a===Yt||a===Gt?a=Ce:(a=ee,o=void 0);const A=a===ee&&t[s+1].startsWith("/>")?" ":"";n+=a===Ce?c+Zr:$>=0?(i.push(d),c.slice(0,$)+Wt+c.slice($)+Q+A):c+Q+($===-2?(i.push(void 0),s):A)}return[Ar(t,n+(t[r]||"")+(e===2?"":"")),i]};class Pe{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[d,x]=Vr(e,r);if(this.el=Pe.createElement(d,i),ie.currentNode=this.el.content,r===2){const $=this.el.content,m=$.firstChild;m.remove(),$.append(...m.childNodes)}for(;(o=ie.nextNode())!==null&&c.length0){o.textContent=be?be.emptyScript:"";for(let A=0;A2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=M}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,o){const n=this.strings;let a=!1;if(n===void 0)e=ye(this,e,r,0),a=!Le(e)||e!==this._$AH&&e!==le,a&&(this._$AH=e);else{const s=e;let c,d;for(e=n[0],c=0;c{var i,o;const n=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:e;let a=n._$litPart$;if(a===void 0){const s=(o=r==null?void 0:r.renderBefore)!==null&&o!==void 0?o:null;n._$litPart$=a=new Ne(e.insertBefore(Se(),s),s,void 0,r??{})}return a._$AI(t),a};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */var at,st;class w extends ue{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const i=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Xr(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return le}}w.finalized=!0,w._$litElement$=!0,(at=globalThis.litElementHydrateSupport)===null||at===void 0||at.call(globalThis,{LitElement:w});const rr=globalThis.litElementPolyfillSupport;rr==null||rr({LitElement:w});((st=globalThis.litElementVersions)!==null&&st!==void 0?st:globalThis.litElementVersions=[]).push("3.3.3");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const y=t=>e=>typeof e=="function"?((r,i)=>(customElements.define(r,i),i))(t,e):((r,i)=>{const{kind:o,elements:n}=i;return{kind:o,elements:n,finisher(a){customElements.define(r,a)}}})(t,e);/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Jr=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}},eo=(t,e,r)=>{e.constructor.createProperty(r,t)};function p(t){return(e,r)=>r!==void 0?eo(t,e,r):Jr(t,e)}/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function W(t){return p({...t,state:!0})}/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */var lt;((lt=window.HTMLSlotElement)===null||lt===void 0?void 0:lt.prototype.assignedElements)!=null;/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const to={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ro=t=>(...e)=>({_$litDirective$:t,values:e});class oo{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}/** - * @license - * Copyright 2018 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Z=ro(class extends oo{constructor(t){var e;if(super(t),t.type!==to.ATTRIBUTE||t.name!=="class"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,i;if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in e)e[n]&&!(!((r=this.nt)===null||r===void 0)&&r.has(n))&&this.it.add(n);return this.render(e)}const o=t.element.classList;this.it.forEach(n=>{n in e||(o.remove(n),this.it.delete(n))});for(const n in e){const a=!!e[n];a===this.it.has(n)||!((i=this.nt)===null||i===void 0)&&i.has(n)||(a?(o.add(n),this.it.add(n)):(o.remove(n),this.it.delete(n)))}return le}});function io(t,e){t.indexOf(e)===-1&&t.push(e)}const Er=(t,e,r)=>Math.min(Math.max(r,t),e),D={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Xe=t=>typeof t=="number",we=t=>Array.isArray(t)&&!Xe(t[0]),no=(t,e,r)=>{const i=e-t;return((r-t)%i+i)%i+t};function ao(t,e){return we(t)?t[no(0,t.length,e)]:t}const kr=(t,e,r)=>-r*t+r*e+t,Or=()=>{},G=t=>t,Bt=(t,e,r)=>e-t===0?1:(r-t)/(e-t);function Ir(t,e){const r=t[t.length-1];for(let i=1;i<=e;i++){const o=Bt(0,e,i);t.push(kr(r,1,o))}}function so(t){const e=[0];return Ir(e,t-1),e}function lo(t,e=so(t.length),r=G){const i=t.length,o=i-e.length;return o>0&&Ir(e,o),n=>{let a=0;for(;aArray.isArray(t)&&Xe(t[0]),Nt=t=>typeof t=="object"&&!!t.createAnimation,xe=t=>typeof t=="function",co=t=>typeof t=="string",Re={ms:t=>t*1e3,s:t=>t/1e3},Mr=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,ho=1e-7,mo=12;function po(t,e,r,i,o){let n,a,s=0;do a=e+(r-e)/2,n=Mr(a,i,o)-t,n>0?r=a:e=a;while(Math.abs(n)>ho&&++spo(n,0,1,t,r);return n=>n===0||n===1?n:Mr(o(n),e,i)}const uo=(t,e="end")=>r=>{r=e==="end"?Math.min(r,.999):Math.max(r,.001);const i=r*t,o=e==="end"?Math.floor(i):Math.ceil(i);return Er(0,1,o/t)},go={ease:Me(.25,.1,.25,1),"ease-in":Me(.42,0,1,1),"ease-in-out":Me(.42,0,.58,1),"ease-out":Me(0,0,.58,1)},wo=/\((.*?)\)/;function or(t){if(xe(t))return t;if(Tr(t))return Me(...t);const e=go[t];if(e)return e;if(t.startsWith("steps")){const r=wo.exec(t);if(r){const i=r[1].split(",");return uo(parseFloat(i[0]),i[1].trim())}}return G}class Rr{constructor(e,r=[0,1],{easing:i,duration:o=D.duration,delay:n=D.delay,endDelay:a=D.endDelay,repeat:s=D.repeat,offset:c,direction:d="normal",autoplay:x=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=G,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((m,A)=>{this.resolve=m,this.reject=A}),i=i||D.easing,Nt(i)){const m=i.createAnimation(r);i=m.easing,r=m.keyframes||r,o=m.duration||o}this.repeat=s,this.easing=we(i)?G:or(i),this.updateDuration(o);const $=lo(r,c,we(i)?i.map(or):G);this.tick=m=>{var A;n=n;let f=0;this.pauseTime!==void 0?f=this.pauseTime:f=(m-this.startTime)*this.rate,this.t=f,f/=1e3,f=Math.max(f-n,0),this.playState==="finished"&&this.pauseTime===void 0&&(f=this.totalDuration);const u=f/this.duration;let I=Math.floor(u),b=u%1;!b&&u>=1&&(b=1),b===1&&I--;const R=I%2;(d==="reverse"||d==="alternate"&&R||d==="alternate-reverse"&&!R)&&(b=1-b);const S=f>=this.totalDuration?1:Math.min(b,1),N=$(this.easing(S));e(N),this.pauseTime===void 0&&(this.playState==="finished"||f>=this.totalDuration+a)?(this.playState="finished",(A=this.resolve)===null||A===void 0||A.call(this,N)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},x&&this.play()}play(){const e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}class vo{setAnimation(e){this.animation=e,e==null||e.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const ct=new WeakMap;function Sr(t){return ct.has(t)||ct.set(t,{transforms:[],values:new Map}),ct.get(t)}function fo(t,e){return t.has(e)||t.set(e,new vo),t.get(e)}const bo=["","X","Y","Z"],yo=["translate","scale","rotate","skew"],Je={x:"translateX",y:"translateY",z:"translateZ"},ir={syntax:"",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},xo={translate:{syntax:"",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:ir,scale:{syntax:"",initialValue:1,toDefaultUnit:G},skew:ir},We=new Map,Zt=t=>`--motion-${t}`,et=["x","y","z"];yo.forEach(t=>{bo.forEach(e=>{et.push(t+e),We.set(Zt(t+e),xo[t])})});const $o=(t,e)=>et.indexOf(t)-et.indexOf(e),Co=new Set(et),Lr=t=>Co.has(t),_o=(t,e)=>{Je[e]&&(e=Je[e]);const{transforms:r}=Sr(t);io(r,e),t.style.transform=Ao(r)},Ao=t=>t.sort($o).reduce(Eo,"").trim(),Eo=(t,e)=>`${t} ${e}(var(${Zt(e)}))`,Dt=t=>t.startsWith("--"),nr=new Set;function ko(t){if(!nr.has(t)){nr.add(t);try{const{syntax:e,initialValue:r}=We.has(t)?We.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:r})}catch{}}}const dt=(t,e)=>document.createElement("div").animate(t,e),ar={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{dt({opacity:[1]})}catch{return!1}return!0},finished:()=>!!dt({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{dt({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},ht={},ge={};for(const t in ar)ge[t]=()=>(ht[t]===void 0&&(ht[t]=ar[t]()),ht[t]);const Oo=.015,Io=(t,e)=>{let r="";const i=Math.round(e/Oo);for(let o=0;oxe(t)?ge.linearEasing()?`linear(${Io(t,e)})`:D.easing:Tr(t)?To(t):t,To=([t,e,r,i])=>`cubic-bezier(${t}, ${e}, ${r}, ${i})`;function Mo(t,e){for(let r=0;rArray.isArray(t)?t:[t];function Ut(t){return Je[t]&&(t=Je[t]),Lr(t)?Zt(t):t}const je={get:(t,e)=>{e=Ut(e);let r=Dt(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!r&&r!==0){const i=We.get(e);i&&(r=i.initialValue)}return r},set:(t,e,r)=>{e=Ut(e),Dt(e)?t.style.setProperty(e,r):t.style[e]=r}};function Pr(t,e=!0){if(!(!t||t.playState==="finished"))try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch{}}function So(t,e){var r;let i=(e==null?void 0:e.toDefaultUnit)||G;const o=t[t.length-1];if(co(o)){const n=((r=o.match(/(-?[\d.]+)([a-z%]*)/))===null||r===void 0?void 0:r[2])||"";n&&(i=a=>a+n)}return i}function Lo(){return window.__MOTION_DEV_TOOLS_RECORD}function Po(t,e,r,i={},o){const n=Lo(),a=i.record!==!1&&n;let s,{duration:c=D.duration,delay:d=D.delay,endDelay:x=D.endDelay,repeat:$=D.repeat,easing:m=D.easing,persist:A=!1,direction:f,offset:u,allowWebkitAcceleration:I=!1,autoplay:b=!0}=i;const R=Sr(t),S=Lr(e);let N=ge.waapi();S&&_o(t,e);const U=Ut(e),De=fo(R.values,U),z=We.get(U);return Pr(De.animation,!(Nt(m)&&De.generator)&&i.record!==!1),()=>{const Ue=()=>{var O,$e;return($e=(O=je.get(t,U))!==null&&O!==void 0?O:z==null?void 0:z.initialValue)!==null&&$e!==void 0?$e:0};let T=Mo(Ro(r),Ue);const zt=So(T,z);if(Nt(m)){const O=m.createAnimation(T,e!=="opacity",Ue,U,De);m=O.easing,T=O.keyframes||T,c=O.duration||c}if(Dt(U)&&(ge.cssRegisterProperty()?ko(U):N=!1),S&&!ge.linearEasing()&&(xe(m)||we(m)&&m.some(xe))&&(N=!1),N){z&&(T=T.map(J=>Xe(J)?z.toDefaultUnit(J):J)),T.length===1&&(!ge.partialKeyframes()||a)&&T.unshift(Ue());const O={delay:Re.ms(d),duration:Re.ms(c),endDelay:Re.ms(x),easing:we(m)?void 0:sr(m,c),direction:f,iterations:$+1,fill:"both"};s=t.animate({[U]:T,offset:u,easing:we(m)?m.map(J=>sr(J,c)):void 0},O),s.finished||(s.finished=new Promise((J,Nr)=>{s.onfinish=J,s.oncancel=Nr}));const $e=T[T.length-1];s.finished.then(()=>{A||(je.set(t,U,$e),s.cancel())}).catch(Or),I||(s.playbackRate=1.000001)}else if(o&&S)T=T.map(O=>typeof O=="string"?parseFloat(O):O),T.length===1&&T.unshift(parseFloat(Ue())),s=new o(O=>{je.set(t,U,zt?zt(O):O)},T,Object.assign(Object.assign({},i),{duration:c,easing:m}));else{const O=T[T.length-1];je.set(t,U,z&&Xe(O)?z.toDefaultUnit(O):O)}return a&&n(t,e,T,{duration:c,delay:d,easing:m,repeat:$,offset:u},"motion-one"),De.setAnimation(s),s&&!b&&s.pause(),s}}const Wo=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function No(t,e){return typeof t=="string"?t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}const Do=t=>t(),Wr=(t,e,r=D.duration)=>new Proxy({animations:t.map(Do).filter(Boolean),duration:r,options:e},jo),Uo=t=>t.animations[0],jo={get:(t,e)=>{const r=Uo(t);switch(e){case"duration":return t.duration;case"currentTime":return Re.s((r==null?void 0:r[e])||0);case"playbackRate":case"playState":return r==null?void 0:r[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(Ho)).catch(Or)),t.finished;case"stop":return()=>{t.animations.forEach(i=>Pr(i))};case"forEachNative":return i=>{t.animations.forEach(o=>i(o,t))};default:return typeof(r==null?void 0:r[e])>"u"?void 0:()=>t.animations.forEach(i=>i[e]())}},set:(t,e,r)=>{switch(e){case"currentTime":r=Re.ms(r);case"playbackRate":for(let i=0;it.finished;function Bo(t,e,r){return xe(t)?t(e,r):t}function Zo(t){return function(r,i,o={}){r=No(r);const n=r.length,a=[];for(let s=0;s{const r=new Rr(t,[0,1],e);return r.finished.catch(()=>{}),r}],e,e.duration)}function ne(t,e,r){return(xe(t)?Vo:zo)(t,e,r)}/** - * @license - * Copyright 2018 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const L=t=>t??M;var Fo=Object.defineProperty,lr=Object.getOwnPropertySymbols,qo=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable,cr=(t,e,r)=>e in t?Fo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mt=(t,e)=>{for(var r in e||(e={}))qo.call(e,r)&&cr(t,r,e[r]);if(lr)for(var r of lr(e))Ko.call(e,r)&&cr(t,r,e[r]);return t};function Qo(){var t;const e=(t=fe.state.themeMode)!=null?t:"dark",r={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[e];return{"--wcm-color-fg-1":r.foreground[1],"--wcm-color-fg-2":r.foreground[2],"--wcm-color-fg-3":r.foreground[3],"--wcm-color-bg-1":r.background[1],"--wcm-color-bg-2":r.background[2],"--wcm-color-bg-3":r.background[3],"--wcm-color-overlay":r.overlay}}function dr(){return{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}}const v={getPreset(t){return dr()[t]},setTheme(){const t=document.querySelector(":root"),{themeVariables:e}=fe.state;if(t){const r=mt(mt(mt({},Qo()),dr()),e);Object.entries(r).forEach(([i,o])=>t.style.setProperty(i,o))}},globalCss:C`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},Yo=C`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var Go=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,ce=(t,e,r,i)=>{for(var o=i>1?void 0:i?Xo(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Go(e,r,o),o};let V=class extends w{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const t={"wcm-icon-left":this.iconLeft!==void 0,"wcm-icon-right":this.iconRight!==void 0,"wcm-ghost":this.variant==="ghost","wcm-outline":this.variant==="outline"};let e="inverse";return this.variant==="ghost"&&(e="secondary"),this.variant==="outline"&&(e="accent"),l``}};V.styles=[v.globalCss,Yo],ce([p({type:Boolean})],V.prototype,"disabled",2),ce([p()],V.prototype,"iconLeft",2),ce([p()],V.prototype,"iconRight",2),ce([p()],V.prototype,"onClick",2),ce([p()],V.prototype,"variant",2),V=ce([y("wcm-button")],V);const Jo=C`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,pt=(t,e,r,i)=>{for(var o=i>1?void 0:i?ti(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&ei(e,r,o),o};let _e=class extends w{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const t={"wcm-secondary":this.variant==="secondary"};return l``}};_e.styles=[v.globalCss,Jo],pt([p({type:Boolean})],_e.prototype,"disabled",2),pt([p()],_e.prototype,"variant",2),_e=pt([y("wcm-button-big")],_e);const ri=C`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var oi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let ut=class extends w{render(){return l`
`}};ut.styles=[v.globalCss,ri],ut=oi([y("wcm-info-footer")],ut);const _={CROSS_ICON:E``,WALLET_CONNECT_LOGO:E``,WALLET_CONNECT_ICON:E``,WALLET_CONNECT_ICON_COLORED:E``,BACK_ICON:E``,COPY_ICON:E``,RETRY_ICON:E``,DESKTOP_ICON:E``,MOBILE_ICON:E``,ARROW_DOWN_ICON:E``,ARROW_UP_RIGHT_ICON:E``,ARROW_RIGHT_ICON:E``,QRCODE_ICON:E``,SCAN_ICON:E``,CHECKMARK_ICON:E``,SEARCH_ICON:E``,WALLET_PLACEHOLDER:E``,GLOBE_ICON:E``},ii=C`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var ni=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let gt=class extends w{render(){return l`
${_.WALLET_CONNECT_LOGO}
`}};gt.styles=[v.globalCss,ii],gt=ni([y("wcm-modal-backcard")],gt);const ai=C`main{padding:20px;padding-top:0;width:100%}`;var si=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let wt=class extends w{render(){return l`
`}};wt.styles=[v.globalCss,ai],wt=si([y("wcm-modal-content")],wt);const li=C`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var ci=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let vt=class extends w{render(){return l`
`}};vt.styles=[v.globalCss,li],vt=ci([y("wcm-modal-footer")],vt);const di=C`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var hi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,Ae=(t,e,r,i)=>{for(var o=i>1?void 0:i?mi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&hi(e,r,o),o};let te=class extends w{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return l``}actionBtnTemplate(){return l``}render(){const t={"wcm-border":this.border},e=k.state.history.length>1,r=this.title?l`${this.title}`:l``;return l`
${e?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}
`}};te.styles=[v.globalCss,di],Ae([p()],te.prototype,"title",2),Ae([p()],te.prototype,"onAction",2),Ae([p()],te.prototype,"actionIcon",2),Ae([p({type:Boolean})],te.prototype,"border",2),te=Ae([y("wcm-modal-header")],te);const h={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(t,e){const r=t.renderRoot.querySelector(e);if(!r)throw new Error(`${e} not found`);return r},getWalletIcon({id:t,image_id:e}){const{walletImages:r}=ae.state;return r!=null&&r[t]?r[t]:e?P.getWalletImageUrl(e):""},getWalletName(t,e=!1){return e&&t.length>8?`${t.substring(0,8)}..`:t},isMobileAnimation(){return window.innerWidth<=h.MOBILE_BREAKPOINT},async preloadImage(t){const e=new Promise((r,i)=>{const o=new Image;o.onload=r,o.onerror=i,o.crossOrigin="anonymous",o.src=t});return Promise.race([e,g.wait(3e3)])},getErrorMessage(t){return t instanceof Error?t.message:"Unknown Error"},debounce(t,e=500){let r;return(...i)=>{function o(){t(...i)}r&&clearTimeout(r),r=setTimeout(o,e)}},handleMobileLinking(t){const{walletConnectUri:e}=H.state,{mobile:r,name:i}=t,o=r==null?void 0:r.native,n=r==null?void 0:r.universal;h.setRecentWallet(t);function a(s){let c="";o?c=g.formatUniversalUrl(o,s,i):n&&(c=g.formatNativeUrl(n,s,i)),g.openHref(c,"_self")}e&&a(e)},handleAndroidLinking(){const{walletConnectUri:t}=H.state;t&&(g.setWalletConnectAndroidDeepLink(t),g.openHref(t,"_self"))},async handleUriCopy(){const{walletConnectUri:t}=H.state;if(t)try{await navigator.clipboard.writeText(t),Y.openToast("Link copied","success")}catch{Y.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:t}=ae.state,e=Object.values(t??{});return Object.values(e)},truncate(t,e=8){return t.length<=e?t:`${t.substring(0,4)}...${t.substring(t.length-4)}`},setRecentWallet(t){try{localStorage.setItem(h.WCM_RECENT_WALLET_DATA,JSON.stringify(t))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const t=localStorage.getItem(h.WCM_RECENT_WALLET_DATA);return t?JSON.parse(t):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes(t,e){return t.toUpperCase().includes(e.toUpperCase())},openWalletExplorerUrl(){g.openHref(h.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:t,mobile:e}=g.getWalletRouterData(),r=!!(t!=null&&t.native),i=!!(t!=null&&t.universal),o=!!(e!=null&&e.native)||!!(e!=null&&e.universal);return{isDesktop:r,isMobile:o,isWeb:i}},goToConnectingView(t){k.setData({Wallet:t});const e=g.isMobile(),{isDesktop:r,isWeb:i,isMobile:o}=h.getCachedRouterWalletPlatforms();e?o?k.push("MobileConnecting"):i?k.push("WebConnecting"):k.push("InstallWallet"):r?k.push("DesktopConnecting"):i?k.push("WebConnecting"):o?k.push("MobileQrcodeConnecting"):k.push("InstallWallet")}},pi=C`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var ui=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,ft=(t,e,r,i)=>{for(var o=i>1?void 0:i?gi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&ui(e,r,o),o};let Ee=class extends w{constructor(){super(),this.view=k.state.view,this.prevView=k.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=k.subscribe(t=>{this.view!==t.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([t])=>{const e=`${t.contentRect.height}px`;this.oldHeight!=="0px"&&ne(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),this.oldHeight=e}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var t,e;(t=this.unsubscribe)==null||t.call(this),(e=this.resizeObserver)==null||e.disconnect()}get routerEl(){return h.getShadowRootElement(this,".wcm-router")}get contentEl(){return h.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return l``;case"DesktopConnecting":return l``;case"MobileConnecting":return l``;case"WebConnecting":return l``;case"MobileQrcodeConnecting":return l``;case"WalletExplorer":return l``;case"Qrcode":return l``;case"InstallWallet":return l``;default:return l`
Not Found
`}}async onChangeRoute(){await ne(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=k.state.view,ne(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return l`
${this.viewTemplate()}
`}};Ee.styles=[v.globalCss,pi],ft([W()],Ee.prototype,"view",2),ft([W()],Ee.prototype,"prevView",2),Ee=ft([y("wcm-modal-router")],Ee);const wi=C`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var vi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,hr=(t,e,r,i)=>{for(var o=i>1?void 0:i?fi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&vi(e,r,o),o};let He=class extends w{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=Y.subscribe(t=>{t.open?(this.open=!0,this.timeout=setTimeout(()=>Y.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var t;(t=this.unsubscribe)==null||t.call(this),clearTimeout(this.timeout),Y.closeToast()}render(){const{message:t,variant:e}=Y.state,r={"wcm-success":e==="success","wcm-error":e==="error"};return this.open?l`
${e==="success"?_.CHECKMARK_ICON:null} ${e==="error"?_.CROSS_ICON:null}${t}
`:null}};He.styles=[v.globalCss,wi],hr([W()],He.prototype,"open",2),He=hr([y("wcm-modal-toast")],He);const bi=.1,mr=2.5,B=7;function bt(t,e,r){return t===e?!1:(t-e<0?e-t:t-e)<=r+bi}function yi(t,e){const r=Array.prototype.slice.call(Ur.create(t,{errorCorrectionLevel:e}).modules.data,0),i=Math.sqrt(r.length);return r.reduce((o,n,a)=>(a%i===0?o.push([n]):o[o.length-1].push(n))&&o,[])}const xi={generate(t,e,r){const i="#141414",o="#ffffff",n=[],a=yi(t,"Q"),s=e/a.length,c=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];c.forEach(({x:f,y:u})=>{const I=(a.length-B)*s*f,b=(a.length-B)*s*u,R=.45;for(let S=0;S`)}});const d=Math.floor((r+25)/s),x=a.length/2-d/2,$=a.length/2+d/2-1,m=[];a.forEach((f,u)=>{f.forEach((I,b)=>{if(a[u][b]&&!(ua.length-(B+1)&&ba.length-(B+1))&&!(u>x&&u<$&&b>x&&b<$)){const R=u*s+s/2,S=b*s+s/2;m.push([R,S])}})});const A={};return m.forEach(([f,u])=>{A[f]?A[f].push(u):A[f]=[u]}),Object.entries(A).map(([f,u])=>{const I=u.filter(b=>u.every(R=>!bt(b,R,s)));return[Number(f),I]}).forEach(([f,u])=>{u.forEach(I=>{n.push(E``)})}),Object.entries(A).filter(([f,u])=>u.length>1).map(([f,u])=>{const I=u.filter(b=>u.some(R=>bt(b,R,s)));return[Number(f),I]}).map(([f,u])=>{u.sort((b,R)=>bS.some(N=>bt(b,N,s)));R?R.push(b):I.push([b])}return[f,I.map(b=>[b[0],b[b.length-1]])]}).forEach(([f,u])=>{u.forEach(([I,b])=>{n.push(E``)})}),n}},$i=C`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var Ci=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,de=(t,e,r,i)=>{for(var o=i>1?void 0:i?_i(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Ci(e,r,o),o};let F=class extends w{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const t=fe.state.themeMode==="light"?this.size:this.size-36;return E`${xi.generate(this.uri,t,t/4)}`}render(){const t={"wcm-dark":fe.state.themeMode==="dark"};return l`
${this.walletId||this.imageUrl?l``:_.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};F.styles=[v.globalCss,$i],de([p()],F.prototype,"uri",2),de([p({type:Number})],F.prototype,"size",2),de([p()],F.prototype,"imageId",2),de([p()],F.prototype,"walletId",2),de([p()],F.prototype,"imageUrl",2),F=de([y("wcm-qrcode")],F);const Ai=C`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var Ei=Object.defineProperty,ki=Object.getOwnPropertyDescriptor,pr=(t,e,r,i)=>{for(var o=i>1?void 0:i?ki(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Ei(e,r,o),o};let Be=class extends w{constructor(){super(...arguments),this.onChange=()=>null}render(){return l` ${_.SEARCH_ICON}`}};Be.styles=[v.globalCss,Ai],pr([p()],Be.prototype,"onChange",2),Be=pr([y("wcm-search-input")],Be);const Oi=C`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;var Ii=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let yt=class extends w{render(){return l``}};yt.styles=[v.globalCss,Oi],yt=Ii([y("wcm-spinner")],yt);const Ti=C`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var Mi=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,xt=(t,e,r,i)=>{for(var o=i>1?void 0:i?Ri(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Mi(e,r,o),o};let ke=class extends w{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const t={"wcm-big-bold":this.variant==="big-bold","wcm-medium-regular":this.variant==="medium-regular","wcm-small-regular":this.variant==="small-regular","wcm-small-thin":this.variant==="small-thin","wcm-xsmall-regular":this.variant==="xsmall-regular","wcm-xsmall-bold":this.variant==="xsmall-bold","wcm-color-primary":this.color==="primary","wcm-color-secondary":this.color==="secondary","wcm-color-tertiary":this.color==="tertiary","wcm-color-inverse":this.color==="inverse","wcm-color-accnt":this.color==="accent","wcm-color-error":this.color==="error"};return l``}};ke.styles=[v.globalCss,Ti],xt([p()],ke.prototype,"variant",2),xt([p()],ke.prototype,"color",2),ke=xt([y("wcm-text")],ke);const Si=C`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var Li=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,q=(t,e,r,i)=>{for(var o=i>1?void 0:i?Pi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Li(e,r,o),o};let j=class extends w{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?l`RECENT`:this.installed?l`INSTALLED`:null}handleClick(){Dr.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var t;return l``}};j.styles=[v.globalCss,Si],q([p()],j.prototype,"onClick",2),q([p()],j.prototype,"name",2),q([p()],j.prototype,"walletId",2),q([p()],j.prototype,"label",2),q([p()],j.prototype,"imageId",2),q([p({type:Boolean})],j.prototype,"installed",2),q([p({type:Boolean})],j.prototype,"recent",2),j=q([y("wcm-wallet-button")],j);const Wi=C`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Ni=Object.defineProperty,Di=Object.getOwnPropertyDescriptor,Ze=(t,e,r,i)=>{for(var o=i>1?void 0:i?Di(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Ni(e,r,o),o};let he=class extends w{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var t;const e=(t=this.imageUrl)!=null&&t.length?this.imageUrl:h.getWalletIcon({id:this.walletId,image_id:this.imageId});return l`${e.length?l`
${this.id}
`:_.WALLET_PLACEHOLDER}`}};he.styles=[v.globalCss,Wi],Ze([p()],he.prototype,"walletId",2),Ze([p()],he.prototype,"imageId",2),Ze([p()],he.prototype,"imageUrl",2),he=Ze([y("wcm-wallet-image")],he);var Ui=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,ur=(t,e,r,i)=>{for(var o=i>1?void 0:i?ji(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Ui(e,r,o),o};let $t=class extends w{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(t){try{t!=null&&t.length&&await Promise.all(t.map(async e=>h.preloadImage(e)))}catch{console.info("Unsuccessful attempt at preloading some images",t)}}async preloadListings(){if(ae.state.enableExplorer){await P.getRecomendedWallets(),H.setIsDataLoaded(!0);const{recomendedWallets:t}=P.state,e=t.map(r=>h.getWalletIcon(r));await this.loadImages(e)}else H.setIsDataLoaded(!0)}async preloadCustomImages(){const t=h.getCustomImageUrls();await this.loadImages(t)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(t){console.error(t),Y.openToast("Failed preloading","error")}}};ur([W()],$t.prototype,"preload",2),$t=ur([y("wcm-explorer-context")],$t);var Hi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let gr=class extends w{constructor(){super(),this.unsubscribeTheme=void 0,v.setTheme(),this.unsubscribeTheme=fe.subscribe(v.setTheme)}disconnectedCallback(){var t;(t=this.unsubscribeTheme)==null||t.call(this)}};gr=Hi([y("wcm-theme-context")],gr);const Bi=C`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Zi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Ct=class extends w{onGoToQrcode(){k.push("Qrcode")}render(){const{recomendedWallets:t}=P.state,e=[...t,...t],r=g.RECOMMENDED_WALLET_AMOUNT*2;return l`
${_.MOBILE_ICON}WalletConnect
${[...Array(r)].map((i,o)=>{const n=e[o%e.length];return n?l``:_.WALLET_PLACEHOLDER})}
Select Wallet
Choose WalletConnect to see supported apps on your device`}};Ct.styles=[v.globalCss,Bi],Ct=Zi([y("wcm-android-wallet-selection")],Ct);const zi=C`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var Vi=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,me=(t,e,r,i)=>{for(var o=i>1?void 0:i?Fi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Vi(e,r,o),o};let K=class extends w{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var t,e;const r=(e=(t=fe.state.themeVariables)==null?void 0:t["--wcm-wallet-icon-large-border-radius"])!=null?e:v.getPreset("--wcm-wallet-icon-large-border-radius");let i=0;r.includes("%")?i=88/100*parseInt(r,10):i=parseInt(r,10),i*=1.17;const o=317-i*1.57,n=425-i*1.8;return l``}render(){const t={"wcm-error":this.isError,"wcm-stale":this.isStale};return l`
${this.svgLoaderTemplate()}
${this.isError?"Connection declined":this.label}`}};K.styles=[v.globalCss,zi],me([p()],K.prototype,"walletId",2),me([p()],K.prototype,"imageId",2),me([p({type:Boolean})],K.prototype,"isError",2),me([p({type:Boolean})],K.prototype,"isStale",2),me([p()],K.prototype,"label",2),K=me([y("wcm-connector-waiting")],K);const ve={manualWallets(){var t,e;const{mobileWallets:r,desktopWallets:i}=ae.state,o=(t=ve.recentWallet())==null?void 0:t.id,n=g.isMobile()?r:i,a=n==null?void 0:n.filter(s=>o!==s.id);return(e=g.isMobile()?a==null?void 0:a.map(({id:s,name:c,links:d})=>({id:s,name:c,mobile:d,links:d})):a==null?void 0:a.map(({id:s,name:c,links:d})=>({id:s,name:c,desktop:d,links:d})))!=null?e:[]},recentWallet(){return h.getRecentWallet()},recomendedWallets(t=!1){var e;const r=t||(e=ve.recentWallet())==null?void 0:e.id,{recomendedWallets:i}=P.state;return i.filter(o=>r!==o.id)}},X={onConnecting(t){h.goToConnectingView(t)},manualWalletsTemplate(){return ve.manualWallets().map(t=>l``)},recomendedWalletsTemplate(t=!1){return ve.recomendedWallets(t).map(e=>l``)},recentWalletTemplate(){const t=ve.recentWallet();if(t)return l``}},qi=C`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;var Ki=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let _t=class extends w{render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=ae.state,r=t!=="ALL"&&e,i=X.manualWalletsTemplate(),o=X.recomendedWalletsTemplate();let n=[X.recentWalletTemplate(),...i,...o];n=n.filter(Boolean);const a=n.length>4||r;let s=[];a?s=n.slice(0,3):s=n;const c=!!s.length;return l`
${_.MOBILE_ICON}Mobile
${_.SCAN_ICON}Scan with your wallet
${c?l`
${_.DESKTOP_ICON}Desktop
${s} ${a?l``:null}
`:null}`}};_t.styles=[v.globalCss,qi],_t=Ki([y("wcm-desktop-wallet-selection")],_t);const Qi=C`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var Yi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let At=class extends w{render(){const{termsOfServiceUrl:t,privacyPolicyUrl:e}=ae.state;return t??e?l`
By connecting your wallet to this app, you agree to the app's ${t?l`Terms of Service`:null} ${t&&e?"and":null} ${e?l`Privacy Policy`:null}
`:null}};At.styles=[v.globalCss,Qi],At=Yi([y("wcm-legal-notice")],At);const Gi=C`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var Xi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Et=class extends w{onQrcode(){k.push("Qrcode")}render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=ae.state,r=t!=="ALL"&&e,i=X.manualWalletsTemplate(),o=X.recomendedWalletsTemplate();let n=[X.recentWalletTemplate(),...i,...o];n=n.filter(Boolean);const a=n.length>8||r;let s=[];a?s=n.slice(0,7):s=n;const c=!!s.length;return l`${c?l`
${s} ${a?l``:null}
`:null}`}};Et.styles=[v.globalCss,Gi],Et=Xi([y("wcm-mobile-wallet-selection")],Et);const Ji=C`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var en=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,kt=(t,e,r,i)=>{for(var o=i>1?void 0:i?tn(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&en(e,r,o),o};let Oe=class extends w{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=Ke.subscribe(t=>{t.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var t;(t=this.unsubscribeModal)==null||t.call(this)}get overlayEl(){return h.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return h.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(t){if(document.querySelector("body"))if(t){const e=document.getElementById("wcm-styles");e==null||e.remove()}else document.head.insertAdjacentHTML("beforeend",'')}onCloseModal(t){t.target===t.currentTarget&&Ke.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{const t=h.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]},e=.1,r=.2;await Promise.all([ne(this.overlayEl,{opacity:[0,1]},{delay:e,duration:r}).finished,ne(this.containerEl,t,{delay:e,duration:r}).finished]),this.active=!0},0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const t=h.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]},e=.2;await Promise.all([ne(this.overlayEl,{opacity:[1,0]},{duration:e}).finished,ne(this.containerEl,t,{duration:e}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",t=>{var e;t.key==="Escape"?Ke.close():t.key==="Tab"&&((e=t.target)!=null&&e.tagName.includes("wcm-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var t;(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){const t={"wcm-overlay":!0,"wcm-active":this.active};return l`
${this.open?l`
`:null}
`}};Oe.styles=[v.globalCss,Ji],kt([W()],Oe.prototype,"open",2),kt([W()],Oe.prototype,"active",2),Oe=kt([y("wcm-modal")],Oe);const rn=C`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var on=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,Ie=(t,e,r,i)=>{for(var o=i>1?void 0:i?nn(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&on(e,r,o),o};let re=class extends w{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){g.isMobile()?k.replace("MobileConnecting"):k.replace("MobileQrcodeConnecting")}onDesktop(){k.replace("DesktopConnecting")}onWeb(){k.replace("WebConnecting")}render(){return l`
${this.isRetry?l``:null} ${this.isMobile?l`Mobile`:null} ${this.isDesktop?l`Desktop`:null} ${this.isWeb?l`Web`:null}
`}};re.styles=[v.globalCss,rn],Ie([p({type:Boolean})],re.prototype,"isMobile",2),Ie([p({type:Boolean})],re.prototype,"isDesktop",2),Ie([p({type:Boolean})],re.prototype,"isWeb",2),Ie([p({type:Boolean})],re.prototype,"isRetry",2),re=Ie([y("wcm-platform-selection")],re);const an=C`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var sn=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Ot=class extends w{onClick(){k.push("WalletExplorer")}render(){const{recomendedWallets:t}=P.state,e=ve.manualWallets(),r=[...t,...e].reverse().slice(0,4);return l``}};Ot.styles=[v.globalCss,an],Ot=sn([y("wcm-view-all-wallets-button")],Ot);const ln=C`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var cn=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,ze=(t,e,r,i)=>{for(var o=i>1?void 0:i?dn(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&cn(e,r,o),o};let pe=class extends w{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout(()=>{const{walletConnectUri:t}=H.state;this.uri=t},0)}get overlayEl(){return h.getShadowRootElement(this,".wcm-qr-container")}render(){return l`
${this.uri?l``:l``}
`}};pe.styles=[v.globalCss,ln],ze([p()],pe.prototype,"walletId",2),ze([p()],pe.prototype,"imageId",2),ze([W()],pe.prototype,"uri",2),pe=ze([y("wcm-walletconnect-qr")],pe);var hn=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let It=class extends w{viewTemplate(){return g.isAndroid()?l``:g.isMobile()?l``:l``}render(){return l`${this.viewTemplate()}`}};It.styles=[v.globalCss],It=hn([y("wcm-connect-wallet-view")],It);const mn=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var pn=Object.defineProperty,un=Object.getOwnPropertyDescriptor,wr=(t,e,r,i)=>{for(var o=i>1?void 0:i?un(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&pn(e,r,o),o};let Ve=class extends w{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(t){const{desktop:e,name:r}=g.getWalletRouterData(),i=e==null?void 0:e.native;if(i){const o=g.formatNativeUrl(i,t,r);g.openHref(o,"_self")}}openDesktopApp(){const{walletConnectUri:t}=H.state,e=g.getWalletRouterData();h.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=g.getWalletRouterData(),{isMobile:i,isWeb:o}=h.getCachedRouterWalletPlatforms();return l`${`Connection can continue loading if ${t} is not installed on your device`}Retry`}};Ve.styles=[v.globalCss,mn],wr([W()],Ve.prototype,"isError",2),Ve=wr([y("wcm-desktop-connecting-view")],Ve);const gn=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;var wn=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Tt=class extends w{onInstall(t){t&&g.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,homepage:i}=g.getWalletRouterData();return l`${`Download ${t} to continue. If multiple browser extensions are installed, disable non ${t} ones and try again`}Download`}};Tt.styles=[v.globalCss,gn],Tt=wn([y("wcm-install-wallet-view")],Tt);const vn=C`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var fn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,vr=(t,e,r,i)=>{for(var o=i>1?void 0:i?bn(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&fn(e,r,o),o};let Fe=class extends w{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(t,e=!1){const{mobile:r,name:i}=g.getWalletRouterData(),o=r==null?void 0:r.native,n=r==null?void 0:r.universal;if(o&&!e){const a=g.formatNativeUrl(o,t,i);g.openHref(a,"_self")}else if(n){const a=g.formatUniversalUrl(n,t,i);g.openHref(a,"_self")}}openMobileApp(t=!1){const{walletConnectUri:e}=H.state,r=g.getWalletRouterData();h.setRecentWallet(r),e&&this.onFormatAndRedirect(e,t)}onGoToAppStore(t){t&&g.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,app:i,mobile:o}=g.getWalletRouterData(),{isWeb:n}=h.getCachedRouterWalletPlatforms(),a=i==null?void 0:i.ios,s=o==null?void 0:o.universal;return l`Retry${s?l`Still doesn't work? Try this alternate link`:null}
${`Get ${t}`}
App Store
`}};Fe.styles=[v.globalCss,vn],vr([W()],Fe.prototype,"isError",2),Fe=vr([y("wcm-mobile-connecting-view")],Fe);const yn=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var xn=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Mt=class extends w{render(){const{name:t,id:e,image_id:r}=g.getWalletRouterData(),{isDesktop:i,isWeb:o}=h.getCachedRouterWalletPlatforms();return l`${`Scan this QR Code with your phone's camera or inside ${t} app`}`}};Mt.styles=[v.globalCss,yn],Mt=xn([y("wcm-mobile-qr-connecting-view")],Mt);var $n=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Rt=class extends w{render(){return l``}};Rt.styles=[v.globalCss],Rt=$n([y("wcm-qrcode-view")],Rt);const Cn=C`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var _n=Object.defineProperty,An=Object.getOwnPropertyDescriptor,Te=(t,e,r,i)=>{for(var o=i>1?void 0:i?An(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&_n(e,r,o),o};const St=40;let oe=class extends w{constructor(){super(...arguments),this.loading=!P.state.wallets.listings.length,this.firstFetch=!P.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=h.debounce(t=>{t.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=t,P.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),P.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var t;(t=this.intersectionObserver)==null||t.disconnect()}get placeholderEl(){return h.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([t])=>{t.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:t,search:e}=P.state,{listings:r,total:i}=this.search?e:t;return i<=St||r.length>=i}async fetchWallets(){var t;const{wallets:e,search:r}=P.state,{listings:i,total:o,page:n}=this.search?r:e;if(!this.endReached&&(this.firstFetch||o>St&&i.lengthh.getWalletIcon(d));await Promise.all([...c.map(async d=>h.preloadImage(d)),g.wait(300)]),this.endReached=this.isLastPage()}catch(a){console.error(a),Y.openToast(h.getErrorMessage(a),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(t){g.isAndroid()?h.handleMobileLinking(t):h.goToConnectingView(t)}onSearchChange(t){const{value:e}=t.target;this.searchDebounce(e)}render(){const{wallets:t,search:e}=P.state,{listings:r}=this.search?e:t,i=this.loading&&!r.length,o=this.search.length>=3;let n=X.manualWalletsTemplate(),a=X.recomendedWalletsTemplate(!0);o&&(n=n.filter(({values:d})=>h.caseSafeIncludes(d[0],this.search)),a=a.filter(({values:d})=>h.caseSafeIncludes(d[0],this.search)));const s=!this.loading&&!r.length&&!a.length,c={"wcm-loading":i,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":s};return l`
${i?null:n} ${i?null:a} ${i?null:r.map(d=>l`${d?l``:null}`)}
${s?l`No results found`:null} ${!s&&this.loading?l``:null}
`}};oe.styles=[v.globalCss,Cn],Te([W()],oe.prototype,"loading",2),Te([W()],oe.prototype,"firstFetch",2),Te([W()],oe.prototype,"search",2),Te([W()],oe.prototype,"endReached",2),oe=Te([y("wcm-wallet-explorer-view")],oe);const En=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var kn=Object.defineProperty,On=Object.getOwnPropertyDescriptor,fr=(t,e,r,i)=>{for(var o=i>1?void 0:i?On(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&kn(e,r,o),o};let qe=class extends w{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(t){const{desktop:e,name:r}=g.getWalletRouterData(),i=e==null?void 0:e.universal;if(i){const o=g.formatUniversalUrl(i,t,r);g.openHref(o,"_blank")}}openWebWallet(){const{walletConnectUri:t}=H.state,e=g.getWalletRouterData();h.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=g.getWalletRouterData(),{isMobile:i,isDesktop:o}=h.getCachedRouterWalletPlatforms(),n=g.isMobile();return l`${`${t} web app has opened in a new tab. Go there, accept the connection, and come back`}Retry`}};qe.styles=[v.globalCss,En],fr([W()],qe.prototype,"isError",2),qe=fr([y("wcm-web-connecting-view")],qe);export{Oe as WcmModal,F as WcmQrCode}; -//# sourceMappingURL=index-BcX4A68S.js.map diff --git a/apps/web/public/assets/index-Bl6Lkf65.js b/apps/web/public/assets/index-Bl6Lkf65.js deleted file mode 100644 index 75283395..00000000 --- a/apps/web/public/assets/index-Bl6Lkf65.js +++ /dev/null @@ -1,1552 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.es-DAoTMZAm.js","./index.es-BlHtwxd-.js","./index-CPuAEUoa.js","./hooks.module-D456YPrV.js","./index-DKyRIqqa.js"])))=>i.map(i=>d[i]); -var tne=Object.defineProperty;var nne=(e,t,n)=>t in e?tne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ve=(e,t,n)=>nne(e,typeof t!="symbol"?t+"":t,n);(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c03b9762-e56d-49da-a751-5f886b64bbb6",e._sentryDebugIdIdentifier="sentry-dbid-c03b9762-e56d-49da-a751-5f886b64bbb6")}catch{}})();function Ak(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var rne=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};rne.SENTRY_RELEASE={id:"2c65e88f943844b0f9f4dedac767099cedc67d40"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var We=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ns(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var XL={exports:{}},a_={},JL={exports:{}},ht={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ig=Symbol.for("react.element"),one=Symbol.for("react.portal"),ane=Symbol.for("react.fragment"),ine=Symbol.for("react.strict_mode"),sne=Symbol.for("react.profiler"),cne=Symbol.for("react.provider"),lne=Symbol.for("react.context"),une=Symbol.for("react.forward_ref"),dne=Symbol.for("react.suspense"),fne=Symbol.for("react.memo"),hne=Symbol.for("react.lazy"),y7=Symbol.iterator;function mne(e){return e===null||typeof e!="object"?null:(e=y7&&e[y7]||e["@@iterator"],typeof e=="function"?e:null)}var ZL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eU=Object.assign,tU={};function Kh(e,t,n){this.props=e,this.context=t,this.refs=tU,this.updater=n||ZL}Kh.prototype.isReactComponent={};Kh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Kh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nU(){}nU.prototype=Kh.prototype;function Dk(e,t,n){this.props=e,this.context=t,this.refs=tU,this.updater=n||ZL}var kk=Dk.prototype=new nU;kk.constructor=Dk;eU(kk,Kh.prototype);kk.isPureReactComponent=!0;var b7=Array.isArray,rU=Object.prototype.hasOwnProperty,jk={current:null},oU={key:!0,ref:!0,__self:!0,__source:!0};function aU(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)rU.call(t,r)&&!oU.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,J=N[X];if(0>>1;Xo(Z,L))aeo(ne,Z)?(N[X]=ne,N[ae]=L,X=ae):(N[X]=Z,N[G]=L,X=G);else if(aeo(ne,L))N[X]=ne,N[ae]=L,X=ae;else break e}}return M}function o(N,M){var L=N.sortIndex-M.sortIndex;return L!==0?L:N.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var c=[],l=[],u=1,d=null,f=3,h=!1,m=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(N){for(var M=n(l);M!==null;){if(M.callback===null)r(l);else if(M.startTime<=N)r(l),M.sortIndex=M.expirationTime,t(c,M);else break;M=n(l)}}function _(N){if(p=!1,w(N),!m)if(n(c)!==null)m=!0,O(C);else{var M=n(l);M!==null&&I(_,M.startTime-N)}}function C(N,M){m=!1,p&&(p=!1,v(T),T=-1),h=!0;var L=f;try{for(w(M),d=n(c);d!==null&&(!(d.expirationTime>M)||N&&!R());){var X=d.callback;if(typeof X=="function"){d.callback=null,f=d.priorityLevel;var J=X(d.expirationTime<=M);M=e.unstable_now(),typeof J=="function"?d.callback=J:d===n(c)&&r(c),w(M)}else r(c);d=n(c)}if(d!==null)var U=!0;else{var G=n(l);G!==null&&I(_,G.startTime-M),U=!1}return U}finally{d=null,f=L,h=!1}}var x=!1,E=null,T=-1,k=5,D=-1;function R(){return!(e.unstable_now()-DN||125X?(N.sortIndex=L,t(l,N),n(c)===null&&N===n(l)&&(p?(v(T),T=-1):p=!0,I(_,L-X))):(N.sortIndex=J,t(c,N),m||h||(m=!0,O(C))),N},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(N){var M=f;return function(){var L=f;f=M;try{return N.apply(this,arguments)}finally{f=L}}}})(dU);uU.exports=dU;var Sne=uU.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Tne=S,Vo=Sne;function ue(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),FT=Object.prototype.hasOwnProperty,Ane=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w7={},E7={};function Dne(e){return FT.call(E7,e)?!0:FT.call(w7,e)?!1:Ane.test(e)?E7[e]=!0:(w7[e]=!0,!1)}function kne(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function jne(e,t,n,r){if(t===null||typeof t>"u"||kne(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function co(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yr[e]=new co(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yr[t]=new co(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yr[e]=new co(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yr[e]=new co(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yr[e]=new co(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yr[e]=new co(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yr[e]=new co(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yr[e]=new co(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yr[e]=new co(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ik=/[\-:]([a-z])/g;function Ok(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ik,Ok);yr[t]=new co(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ik,Ok);yr[t]=new co(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ik,Ok);yr[t]=new co(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yr[e]=new co(e,1,!1,e.toLowerCase(),null,!1,!1)});yr.xlinkHref=new co("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yr[e]=new co(e,1,!1,e.toLowerCase(),null,!0,!0)});function Rk(e,t,n,r){var o=yr.hasOwnProperty(t)?yr[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==a[s]){var c=` -`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{G6=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wp(e):""}function Pne(e){switch(e.tag){case 5:return Wp(e.type);case 16:return Wp("Lazy");case 13:return Wp("Suspense");case 19:return Wp("SuspenseList");case 0:case 2:case 15:return e=V6(e.type,!1),e;case 11:return e=V6(e.type.render,!1),e;case 1:return e=V6(e.type,!0),e;default:return""}}function $T(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bf:return"Fragment";case yf:return"Portal";case MT:return"Profiler";case Nk:return"StrictMode";case LT:return"Suspense";case UT:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mU:return(e.displayName||"Context")+".Consumer";case hU:return(e._context.displayName||"Context")+".Provider";case Bk:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fk:return t=e.displayName||null,t!==null?t:$T(e.type)||"Memo";case bc:t=e._payload,e=e._init;try{return $T(e(t))}catch{}}return null}function Ine(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $T(t);case 8:return t===Nk?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gU(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function One(e){var t=gU(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ob(e){e._valueTracker||(e._valueTracker=One(e))}function yU(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gU(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function U1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zT(e,t){var n=t.checked;return cn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function x7(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jc(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bU(e,t){t=t.checked,t!=null&&Rk(e,"checked",t,!1)}function HT(e,t){bU(e,t);var n=Jc(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?qT(e,t.type,n):t.hasOwnProperty("defaultValue")&&qT(e,t.type,Jc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function C7(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function qT(e,t,n){(t!=="number"||U1(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gp=Array.isArray;function zf(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Rb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function P0(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var s0={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Rne=["Webkit","ms","Moz","O"];Object.keys(s0).forEach(function(e){Rne.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),s0[t]=s0[e]})});function _U(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||s0.hasOwnProperty(e)&&s0[e]?(""+t).trim():t+"px"}function xU(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=_U(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Nne=cn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function VT(e,t){if(t){if(Nne[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ue(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ue(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ue(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ue(62))}}function KT(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var YT=null;function Mk(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var QT=null,Hf=null,qf=null;function A7(e){if(e=Ng(e)){if(typeof QT!="function")throw Error(ue(280));var t=e.stateNode;t&&(t=u_(t),QT(e.stateNode,e.type,t))}}function CU(e){Hf?qf?qf.push(e):qf=[e]:Hf=e}function SU(){if(Hf){var e=Hf,t=qf;if(qf=Hf=null,A7(e),t)for(e=0;e>>=0,e===0?32:31-(Gne(e)/Vne|0)|0}var Nb=64,Bb=4194304;function Vp(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function q1(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Vp(s):(a&=i,a!==0&&(r=Vp(a)))}else i=n&~o,i!==0?r=Vp(i):a!==0&&(r=Vp(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Og(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xa(t),e[t]=n}function Xne(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=l0),B7=" ",F7=!1;function WU(e,t){switch(e){case"keyup":return Sre.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GU(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vf=!1;function Are(e,t){switch(e){case"compositionend":return GU(t);case"keypress":return t.which!==32?null:(F7=!0,B7);case"textInput":return e=t.data,e===B7&&F7?null:e;default:return null}}function Dre(e,t){if(vf)return e==="compositionend"||!Gk&&WU(e,t)?(e=HU(),Xv=Hk=Oc=null,vf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$7(n)}}function QU(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?QU(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function XU(){for(var e=window,t=U1();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=U1(e.document)}return t}function Vk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Fre(e){var t=XU(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&QU(n.ownerDocument.documentElement,n)){if(r!==null&&Vk(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=z7(n,a);var i=z7(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,wf=null,nA=null,d0=null,rA=!1;function H7(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rA||wf==null||wf!==U1(r)||(r=wf,"selectionStart"in r&&Vk(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),d0&&F0(d0,r)||(d0=r,r=V1(nA,"onSelect"),0xf||(e.current=lA[xf],lA[xf]=null,xf--)}function Kt(e,t){xf++,lA[xf]=e.current,e.current=t}var Zc={},Fr=wl(Zc),yo=wl(!1),Ou=Zc;function lh(e,t){var n=e.type.contextTypes;if(!n)return Zc;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function bo(e){return e=e.childContextTypes,e!=null}function Y1(){Qt(yo),Qt(Fr)}function Q7(e,t,n){if(Fr.current!==Zc)throw Error(ue(168));Kt(Fr,t),Kt(yo,n)}function i$(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ue(108,Ine(e)||"Unknown",o));return cn({},n,r)}function Q1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zc,Ou=Fr.current,Kt(Fr,e),Kt(yo,yo.current),!0}function X7(e,t,n){var r=e.stateNode;if(!r)throw Error(ue(169));n?(e=i$(e,t,Ou),r.__reactInternalMemoizedMergedChildContext=e,Qt(yo),Qt(Fr),Kt(Fr,e)):Qt(yo),Kt(yo,n)}var ns=null,d_=!1,sS=!1;function s$(e){ns===null?ns=[e]:ns.push(e)}function Yre(e){d_=!0,s$(e)}function El(){if(!sS&&ns!==null){sS=!0;var e=0,t=Ot;try{var n=ns;for(Ot=1;e>=i,o-=i,os=1<<32-Xa(t)+o|n<T?(k=E,E=null):k=E.sibling;var D=f(v,E,w[T],_);if(D===null){E===null&&(E=k);break}e&&E&&D.alternate===null&&t(v,E),g=a(D,g,T),x===null?C=D:x.sibling=D,x=D,E=k}if(T===w.length)return n(v,E),Zt&&Zl(v,T),C;if(E===null){for(;TT?(k=E,E=null):k=E.sibling;var R=f(v,E,D.value,_);if(R===null){E===null&&(E=k);break}e&&E&&R.alternate===null&&t(v,E),g=a(R,g,T),x===null?C=R:x.sibling=R,x=R,E=k}if(D.done)return n(v,E),Zt&&Zl(v,T),C;if(E===null){for(;!D.done;T++,D=w.next())D=d(v,D.value,_),D!==null&&(g=a(D,g,T),x===null?C=D:x.sibling=D,x=D);return Zt&&Zl(v,T),C}for(E=r(v,E);!D.done;T++,D=w.next())D=h(E,v,T,D.value,_),D!==null&&(e&&D.alternate!==null&&E.delete(D.key===null?T:D.key),g=a(D,g,T),x===null?C=D:x.sibling=D,x=D);return e&&E.forEach(function(F){return t(v,F)}),Zt&&Zl(v,T),C}function b(v,g,w,_){if(typeof w=="object"&&w!==null&&w.type===bf&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ib:e:{for(var C=w.key,x=g;x!==null;){if(x.key===C){if(C=w.type,C===bf){if(x.tag===7){n(v,x.sibling),g=o(x,w.props.children),g.return=v,v=g;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===bc&&eI(C)===x.type){n(v,x.sibling),g=o(x,w.props),g.ref=ip(v,x,w),g.return=v,v=g;break e}n(v,x);break}else t(v,x);x=x.sibling}w.type===bf?(g=Cu(w.props.children,v.mode,_,w.key),g.return=v,v=g):(_=a1(w.type,w.key,w.props,null,v.mode,_),_.ref=ip(v,g,w),_.return=v,v=_)}return i(v);case yf:e:{for(x=w.key;g!==null;){if(g.key===x)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(v,g.sibling),g=o(g,w.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=pS(w,v.mode,_),g.return=v,v=g}return i(v);case bc:return x=w._init,b(v,g,x(w._payload),_)}if(Gp(w))return m(v,g,w,_);if(tp(w))return p(v,g,w,_);Hb(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(v,g.sibling),g=o(g,w),g.return=v,v=g):(n(v,g),g=mS(w,v.mode,_),g.return=v,v=g),i(v)):n(v,g)}return b}var dh=d$(!0),f$=d$(!1),Z1=wl(null),ew=null,Tf=null,Xk=null;function Jk(){Xk=Tf=ew=null}function Zk(e){var t=Z1.current;Qt(Z1),e._currentValue=t}function fA(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Gf(e,t){ew=e,Xk=Tf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(po=!0),e.firstContext=null)}function va(e){var t=e._currentValue;if(Xk!==e)if(e={context:e,memoizedValue:t,next:null},Tf===null){if(ew===null)throw Error(ue(308));Tf=e,ew.dependencies={lanes:0,firstContext:e}}else Tf=Tf.next=e;return t}var fu=null;function e8(e){fu===null?fu=[e]:fu.push(e)}function h$(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,e8(t)):(n.next=o.next,o.next=n),t.interleaved=n,ws(e,r)}function ws(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var vc=!1;function t8(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function m$(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ss(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $c(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Et&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ws(e,n)}return o=r.interleaved,o===null?(t.next=t,e8(r)):(t.next=o.next,o.next=t),r.interleaved=t,ws(e,n)}function Zv(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uk(e,n)}}function tI(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tw(e,t,n,r){var o=e.updateQueue;vc=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,l=c.next;c.next=null,i===null?a=l:i.next=l,i=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==i&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=o.baseState;i=0,u=l=c=null,s=a;do{var f=s.lane,h=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,p=s;switch(f=t,h=n,p.tag){case 1:if(m=p.payload,typeof m=="function"){d=m.call(h,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=p.payload,f=typeof m=="function"?m.call(h,d,f):m,f==null)break e;d=cn({},d,f);break e;case 2:vc=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=h,c=d):u=u.next=h,i|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(c=d),o.baseState=c,o.firstBaseUpdate=l,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);Bu|=i,e.lanes=i,e.memoizedState=d}}function nI(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=lS.transition;lS.transition={};try{e(!1),t()}finally{Ot=n,lS.transition=r}}function P$(){return wa().memoizedState}function Zre(e,t,n){var r=Hc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},I$(e))O$(t,n);else if(n=h$(e,t,n,r),n!==null){var o=Qr();Ja(n,e,r,o),R$(n,t,r)}}function eoe(e,t,n){var r=Hc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(I$(e))O$(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,ri(s,i)){var c=t.interleaved;c===null?(o.next=o,e8(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=h$(e,t,o,r),n!==null&&(o=Qr(),Ja(n,e,r,o),R$(n,t,r))}}function I$(e){var t=e.alternate;return e===sn||t!==null&&t===sn}function O$(e,t){f0=rw=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function R$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uk(e,n)}}var ow={readContext:va,useCallback:Sr,useContext:Sr,useEffect:Sr,useImperativeHandle:Sr,useInsertionEffect:Sr,useLayoutEffect:Sr,useMemo:Sr,useReducer:Sr,useRef:Sr,useState:Sr,useDebugValue:Sr,useDeferredValue:Sr,useTransition:Sr,useMutableSource:Sr,useSyncExternalStore:Sr,useId:Sr,unstable_isNewReconciler:!1},toe={readContext:va,useCallback:function(e,t){return wi().memoizedState=[e,t===void 0?null:t],e},useContext:va,useEffect:oI,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,t1(4194308,4,T$.bind(null,t,e),n)},useLayoutEffect:function(e,t){return t1(4194308,4,e,t)},useInsertionEffect:function(e,t){return t1(4,2,e,t)},useMemo:function(e,t){var n=wi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Zre.bind(null,sn,e),[r.memoizedState,e]},useRef:function(e){var t=wi();return e={current:e},t.memoizedState=e},useState:rI,useDebugValue:l8,useDeferredValue:function(e){return wi().memoizedState=e},useTransition:function(){var e=rI(!1),t=e[0];return e=Jre.bind(null,e[1]),wi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sn,o=wi();if(Zt){if(n===void 0)throw Error(ue(407));n=n()}else{if(n=t(),tr===null)throw Error(ue(349));Nu&30||b$(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,oI(w$.bind(null,r,a,e),[e]),r.flags|=2048,W0(9,v$.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=wi(),t=tr.identifierPrefix;if(Zt){var n=as,r=os;n=(r&~(1<<32-Xa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=H0++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[xi]=t,e[U0]=r,q$(e,t,!1,!1),t.stateNode=e;e:{switch(i=KT(n,r),n){case"dialog":Yt("cancel",e),Yt("close",e),o=r;break;case"iframe":case"object":case"embed":Yt("load",e),o=r;break;case"video":case"audio":for(o=0;omh&&(t.flags|=128,r=!0,sp(a,!1),t.lanes=4194304)}else{if(!r)if(e=nw(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sp(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Zt)return Tr(t),null}else 2*En()-a.renderingStartTime>mh&&n!==1073741824&&(t.flags|=128,r=!0,sp(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=En(),t.sibling=null,n=rn.current,Kt(rn,r?n&1|2:n&1),t):(Tr(t),null);case 22:case 23:return p8(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Oo&1073741824&&(Tr(t),t.subtreeFlags&6&&(t.flags|=8192)):Tr(t),null;case 24:return null;case 25:return null}throw Error(ue(156,t.tag))}function loe(e,t){switch(Yk(t),t.tag){case 1:return bo(t.type)&&Y1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fh(),Qt(yo),Qt(Fr),o8(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return r8(t),null;case 13:if(Qt(rn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ue(340));uh()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qt(rn),null;case 4:return fh(),null;case 10:return Zk(t.type._context),null;case 22:case 23:return p8(),null;case 24:return null;default:return null}}var Wb=!1,kr=!1,uoe=typeof WeakSet=="function"?WeakSet:Set,xe=null;function Af(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fn(e,t,r)}else n.current=null}function EA(e,t,n){try{n()}catch(r){fn(e,t,r)}}var pI=!1;function doe(e,t){if(oA=W1,e=XU(),Vk(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,c=-1,l=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(s=i+o),d!==a||r!==0&&d.nodeType!==3||(c=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++l===o&&(s=i),f===a&&++u===r&&(c=i),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(aA={focusedElem:e,selectionRange:n},W1=!1,xe=t;xe!==null;)if(t=xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xe=e;else for(;xe!==null;){t=xe;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var p=m.memoizedProps,b=m.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?p:Ua(t.type,p),b);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(_){fn(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,xe=e;break}xe=t.return}return m=pI,pI=!1,m}function h0(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&EA(t,n,a)}o=o.next}while(o!==r)}}function m_(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _A(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function V$(e){var t=e.alternate;t!==null&&(e.alternate=null,V$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xi],delete t[U0],delete t[cA],delete t[Vre],delete t[Kre])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function K$(e){return e.tag===5||e.tag===3||e.tag===4}function gI(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||K$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xA(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=K1));else if(r!==4&&(e=e.child,e!==null))for(xA(e,t,n),e=e.sibling;e!==null;)xA(e,t,n),e=e.sibling}function CA(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(CA(e,t,n),e=e.sibling;e!==null;)CA(e,t,n),e=e.sibling}var sr=null,$a=!1;function ac(e,t,n){for(n=n.child;n!==null;)Y$(e,t,n),n=n.sibling}function Y$(e,t,n){if(Ii&&typeof Ii.onCommitFiberUnmount=="function")try{Ii.onCommitFiberUnmount(i_,n)}catch{}switch(n.tag){case 5:kr||Af(n,t);case 6:var r=sr,o=$a;sr=null,ac(e,t,n),sr=r,$a=o,sr!==null&&($a?(e=sr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):sr.removeChild(n.stateNode));break;case 18:sr!==null&&($a?(e=sr,n=n.stateNode,e.nodeType===8?iS(e.parentNode,n):e.nodeType===1&&iS(e,n),N0(e)):iS(sr,n.stateNode));break;case 4:r=sr,o=$a,sr=n.stateNode.containerInfo,$a=!0,ac(e,t,n),sr=r,$a=o;break;case 0:case 11:case 14:case 15:if(!kr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&EA(n,t,i),o=o.next}while(o!==r)}ac(e,t,n);break;case 1:if(!kr&&(Af(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fn(n,t,s)}ac(e,t,n);break;case 21:ac(e,t,n);break;case 22:n.mode&1?(kr=(r=kr)||n.memoizedState!==null,ac(e,t,n),kr=r):ac(e,t,n);break;default:ac(e,t,n)}}function yI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new uoe),t.forEach(function(r){var o=woe.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Oa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=En()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hoe(r/1960))-r,10e?16:e,Rc===null)var r=!1;else{if(e=Rc,Rc=null,sw=0,Et&6)throw Error(ue(331));var o=Et;for(Et|=4,xe=e.current;xe!==null;){var a=xe,i=a.child;if(xe.flags&16){var s=a.deletions;if(s!==null){for(var c=0;cEn()-h8?xu(e,0):f8|=n),vo(e,t)}function rz(e,t){t===0&&(e.mode&1?(t=Bb,Bb<<=1,!(Bb&130023424)&&(Bb=4194304)):t=1);var n=Qr();e=ws(e,t),e!==null&&(Og(e,t,n),vo(e,n))}function voe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rz(e,n)}function woe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(t),rz(e,n)}var oz;oz=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yo.current)po=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return po=!1,soe(e,t,n);po=!!(e.flags&131072)}else po=!1,Zt&&t.flags&1048576&&c$(t,J1,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;n1(e,t),e=t.pendingProps;var o=lh(t,Fr.current);Gf(t,n),o=i8(null,t,r,e,o,n);var a=s8();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bo(r)?(a=!0,Q1(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,t8(t),o.updater=h_,t.stateNode=o,o._reactInternals=t,mA(t,r,e,n),t=yA(null,t,r,!0,a,n)):(t.tag=0,Zt&&a&&Kk(t),Gr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(n1(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=_oe(r),e=Ua(r,e),o){case 0:t=gA(null,t,r,e,n);break e;case 1:t=fI(null,t,r,e,n);break e;case 11:t=uI(null,t,r,e,n);break e;case 14:t=dI(null,t,r,Ua(r.type,e),n);break e}throw Error(ue(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ua(r,o),gA(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ua(r,o),fI(e,t,r,o,n);case 3:e:{if($$(t),e===null)throw Error(ue(387));r=t.pendingProps,a=t.memoizedState,o=a.element,m$(e,t),tw(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=hh(Error(ue(423)),t),t=hI(e,t,r,n,o);break e}else if(r!==o){o=hh(Error(ue(424)),t),t=hI(e,t,r,n,o);break e}else for($o=Uc(t.stateNode.containerInfo.firstChild),Ho=t,Zt=!0,Ha=null,n=f$(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uh(),r===o){t=Es(e,t,n);break e}Gr(e,t,r,n)}t=t.child}return t;case 5:return p$(t),e===null&&dA(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,iA(r,o)?i=null:a!==null&&iA(r,a)&&(t.flags|=32),U$(e,t),Gr(e,t,i,n),t.child;case 6:return e===null&&dA(t),null;case 13:return z$(e,t,n);case 4:return n8(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dh(t,null,r,n):Gr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ua(r,o),uI(e,t,r,o,n);case 7:return Gr(e,t,t.pendingProps,n),t.child;case 8:return Gr(e,t,t.pendingProps.children,n),t.child;case 12:return Gr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Kt(Z1,r._currentValue),r._currentValue=i,a!==null)if(ri(a.value,i)){if(a.children===o.children&&!yo.current){t=Es(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=ss(-1,n&-n),c.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),fA(a.return,n,t),s.lanes|=n;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(ue(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),fA(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Gr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Gf(t,n),o=va(o),r=r(o),t.flags|=1,Gr(e,t,r,n),t.child;case 14:return r=t.type,o=Ua(r,t.pendingProps),o=Ua(r.type,o),dI(e,t,r,o,n);case 15:return M$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ua(r,o),n1(e,t),t.tag=1,bo(r)?(e=!0,Q1(t)):e=!1,Gf(t,n),N$(t,r,o),mA(t,r,o,n),yA(null,t,r,!0,e,n);case 19:return H$(e,t,n);case 22:return L$(e,t,n)}throw Error(ue(156,t.tag))};function az(e,t){return IU(e,t)}function Eoe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ma(e,t,n,r){return new Eoe(e,t,n,r)}function y8(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _oe(e){if(typeof e=="function")return y8(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bk)return 11;if(e===Fk)return 14}return 2}function qc(e,t){var n=e.alternate;return n===null?(n=ma(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function a1(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")y8(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case bf:return Cu(n.children,o,a,t);case Nk:i=8,o|=8;break;case MT:return e=ma(12,n,t,o|2),e.elementType=MT,e.lanes=a,e;case LT:return e=ma(13,n,t,o),e.elementType=LT,e.lanes=a,e;case UT:return e=ma(19,n,t,o),e.elementType=UT,e.lanes=a,e;case pU:return g_(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hU:i=10;break e;case mU:i=9;break e;case Bk:i=11;break e;case Fk:i=14;break e;case bc:i=16,r=null;break e}throw Error(ue(130,e==null?e:typeof e,""))}return t=ma(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Cu(e,t,n,r){return e=ma(7,e,r,t),e.lanes=n,e}function g_(e,t,n,r){return e=ma(22,e,r,t),e.elementType=pU,e.lanes=n,e.stateNode={isHidden:!1},e}function mS(e,t,n){return e=ma(6,e,null,t),e.lanes=n,e}function pS(e,t,n){return t=ma(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xoe(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Y6(0),this.expirationTimes=Y6(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Y6(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function b8(e,t,n,r,o,a,i,s,c){return e=new xoe(e,t,n,s,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ma(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},t8(a),e}function Coe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lz)}catch(e){console.error(e)}}lz(),lU.exports=Qo;var Fs=lU.exports;const Yp=cd(Fs),koe=Ak({__proto__:null,default:Yp},[Fs]);var uz,SI=Fs;uz=BT.createRoot=SI.createRoot,BT.hydrateRoot=SI.hydrateRoot;/** - * @remix-run/router v1.18.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Mu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Poe(){return Math.random().toString(36).substr(2,8)}function AI(e,t){return{usr:e.state,key:e.key,idx:t}}function V0(e,t,n,r){return n===void 0&&(n=null),nn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ms(t):t,{state:n,key:t&&t.key||r||Poe()})}function Lu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ms(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ioe(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s=Tn.Pop,c=null,l=u();l==null&&(l=0,i.replaceState(nn({},i.state,{idx:l}),""));function u(){return(i.state||{idx:null}).idx}function d(){s=Tn.Pop;let b=u(),v=b==null?null:b-l;l=b,c&&c({action:s,location:p.location,delta:v})}function f(b,v){s=Tn.Push;let g=V0(p.location,b,v);n&&n(g,b),l=u()+1;let w=AI(g,l),_=p.createHref(g);try{i.pushState(w,"",_)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(_)}a&&c&&c({action:s,location:p.location,delta:1})}function h(b,v){s=Tn.Replace;let g=V0(p.location,b,v);n&&n(g,b),l=u();let w=AI(g,l),_=p.createHref(g);i.replaceState(w,"",_),a&&c&&c({action:s,location:p.location,delta:0})}function m(b){let v=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof b=="string"?b:Lu(b);return g=g.replace(/ $/,"%20"),lt(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let p={get action(){return s},get location(){return e(o,i)},listen(b){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(TI,d),c=b,()=>{o.removeEventListener(TI,d),c=null}},createHref(b){return t(o,b)},createURL:m,encodeLocation(b){let v=m(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(b){return i.go(b)}};return p}var Vt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Vt||(Vt={}));const Ooe=new Set(["lazy","caseSensitive","path","id","index","children"]);function Roe(e){return e.index===!0}function K0(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,a)=>{let i=[...n,String(a)],s=typeof o.id=="string"?o.id:i.join("-");if(lt(o.index!==!0||!o.children,"Cannot specify children on an index route"),lt(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Roe(o)){let c=nn({},o,t(o),{id:s});return r[s]=c,c}else{let c=nn({},o,t(o),{id:s,children:void 0});return r[s]=c,o.children&&(c.children=K0(o.children,t,i,r)),c}})}function iu(e,t,n){return n===void 0&&(n="/"),i1(e,t,n,!1)}function i1(e,t,n,r){let o=typeof t=="string"?Ms(t):t,a=Xh(o.pathname||"/",n);if(a==null)return null;let i=dz(e);Boe(i);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(lt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let l=cs([r,c.relativePath]),u=n.concat(c);a.children&&a.children.length>0&&(lt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),dz(a.children,t,u,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:Hoe(l,a.index),routesMeta:u})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let c of fz(a.path))o(a,i,c)}),t}function fz(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=fz(r.join("/")),s=[];return s.push(...i.map(c=>c===""?a:[a,c].join("/"))),o&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function Boe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:qoe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Foe=/^:[\w-]+$/,Moe=3,Loe=2,Uoe=1,$oe=10,zoe=-2,DI=e=>e==="*";function Hoe(e,t){let n=e.split("/"),r=n.length;return n.some(DI)&&(r+=zoe),t&&(r+=Loe),n.filter(o=>!DI(o)).reduce((o,a)=>o+(Foe.test(a)?Moe:a===""?Uoe:$oe),r)}function qoe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Woe(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s{let{paramName:f,isOptional:h}=u;if(f==="*"){let p=s[d]||"";i=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?l[f]=void 0:l[f]=(m||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:i,pattern:e}}function Goe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Mu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Voe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Xh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Koe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ms(e):e;return{pathname:n?n.startsWith("/")?n:Yoe(n,t):t,search:Xoe(r),hash:Joe(o)}}function Yoe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function gS(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function hz(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _8(e,t){let n=hz(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function x8(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ms(e):(o=nn({},e),lt(!o.pathname||!o.pathname.includes("?"),gS("?","pathname","search",o)),lt(!o.pathname||!o.pathname.includes("#"),gS("#","pathname","hash",o)),lt(!o.search||!o.search.includes("#"),gS("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let c=Koe(o,s),l=i&&i!=="/"&&i.endsWith("/"),u=(a||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}const cs=e=>e.join("/").replace(/\/\/+/g,"/"),Qoe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Xoe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Joe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class C8{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function E_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mz=["post","put","patch","delete"],Zoe=new Set(mz),eae=["get",...mz],tae=new Set(eae),nae=new Set([301,302,303,307,308]),rae=new Set([307,308]),yS={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oae={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},lp={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},S8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,aae=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),pz="remix-router-transitions";function iae(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;lt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let H=e.detectErrorBoundary;o=V=>({hasErrorBoundary:H(V)})}else o=aae;let a={},i=K0(e.routes,o,void 0,a),s,c=e.basename||"/",l=e.unstable_dataStrategy||dae,u=e.unstable_patchRoutesOnMiss,d=nn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,h=new Set,m=null,p=null,b=null,v=e.hydrationData!=null,g=iu(i,e.history.location,c),w=null;if(g==null&&!u){let H=Wr(404,{pathname:e.history.location.pathname}),{matches:V,route:oe}=LI(i);g=V,w={[oe.id]:H}}g&&u&&!e.hydrationData&&Hl(g,i,e.history.location.pathname).active&&(g=null);let _;if(!g)_=!1,g=[];else if(g.some(H=>H.route.lazy))_=!1;else if(!g.some(H=>H.route.loader))_=!0;else if(d.v7_partialHydration){let H=e.hydrationData?e.hydrationData.loaderData:null,V=e.hydrationData?e.hydrationData.errors:null,oe=se=>se.route.loader?typeof se.route.loader=="function"&&se.route.loader.hydrate===!0?!1:H&&H[se.route.id]!==void 0||V&&V[se.route.id]!==void 0:!0;if(V){let se=g.findIndex(we=>V[we.route.id]!==void 0);_=g.slice(0,se+1).every(oe)}else _=g.every(oe)}else _=e.hydrationData!=null;let C,x={historyAction:e.history.action,location:e.history.location,matches:g,initialized:_,navigation:yS,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||w,fetchers:new Map,blockers:new Map},E=Tn.Pop,T=!1,k,D=!1,R=new Map,F=null,B=!1,j=!1,P=[],O=[],I=new Map,N=0,M=-1,L=new Map,X=new Set,J=new Map,U=new Map,G=new Set,Z=new Map,ae=new Map,ne=new Map,ie=!1;function te(){if(f=e.history.listen(H=>{let{action:V,location:oe,delta:se}=H;if(ie){ie=!1;return}Mu(ae.size===0||se!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let we=fi({currentLocation:x.location,nextLocation:oe,historyAction:V});if(we&&se!=null){ie=!0,e.history.go(se*-1),Zs(we,{state:"blocked",location:oe,proceed(){Zs(we,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(se)},reset(){let je=new Map(x.blockers);je.set(we,lp),z({blockers:je})}});return}return ke(V,oe)}),n){Cae(t,R);let H=()=>Sae(t,R);t.addEventListener("pagehide",H),F=()=>t.removeEventListener("pagehide",H)}return x.initialized||ke(Tn.Pop,x.location,{initialHydration:!0}),C}function ee(){f&&f(),F&&F(),h.clear(),k&&k.abort(),x.fetchers.forEach((H,V)=>Oe(V)),x.blockers.forEach((H,V)=>$d(V))}function re(H){return h.add(H),()=>h.delete(H)}function z(H,V){V===void 0&&(V={}),x=nn({},x,H);let oe=[],se=[];d.v7_fetcherPersist&&x.fetchers.forEach((we,je)=>{we.state==="idle"&&(G.has(je)?se.push(je):oe.push(je))}),[...h].forEach(we=>we(x,{deletedFetchers:se,unstable_viewTransitionOpts:V.viewTransitionOpts,unstable_flushSync:V.flushSync===!0})),d.v7_fetcherPersist&&(oe.forEach(we=>x.fetchers.delete(we)),se.forEach(we=>Oe(we)))}function fe(H,V,oe){var se,we;let{flushSync:je}=oe===void 0?{}:oe,ze=x.actionData!=null&&x.navigation.formMethod!=null&&za(x.navigation.formMethod)&&x.navigation.state==="loading"&&((se=H.state)==null?void 0:se._isRedirect)!==!0,be;V.actionData?Object.keys(V.actionData).length>0?be=V.actionData:be=null:ze?be=x.actionData:be=null;let Ze=V.loaderData?FI(x.loaderData,V.loaderData,V.matches||[],V.errors):x.loaderData,Re=x.blockers;Re.size>0&&(Re=new Map(Re),Re.forEach((Tt,Pt)=>Re.set(Pt,lp)));let Le=T===!0||x.navigation.formMethod!=null&&za(x.navigation.formMethod)&&((we=H.state)==null?void 0:we._isRedirect)!==!0;s&&(i=s,s=void 0),B||E===Tn.Pop||(E===Tn.Push?e.history.push(H,H.state):E===Tn.Replace&&e.history.replace(H,H.state));let Dt;if(E===Tn.Pop){let Tt=R.get(x.location.pathname);Tt&&Tt.has(H.pathname)?Dt={currentLocation:x.location,nextLocation:H}:R.has(H.pathname)&&(Dt={currentLocation:H,nextLocation:x.location})}else if(D){let Tt=R.get(x.location.pathname);Tt?Tt.add(H.pathname):(Tt=new Set([H.pathname]),R.set(x.location.pathname,Tt)),Dt={currentLocation:x.location,nextLocation:H}}z(nn({},V,{actionData:be,loaderData:Ze,historyAction:E,location:H,initialized:!0,navigation:yS,revalidation:"idle",restoreScrollPosition:zd(H,V.matches||x.matches),preventScrollReset:Le,blockers:Re}),{viewTransitionOpts:Dt,flushSync:je===!0}),E=Tn.Pop,T=!1,D=!1,B=!1,j=!1,P=[],O=[]}async function ve(H,V){if(typeof H=="number"){e.history.go(H);return}let oe=kA(x.location,x.matches,c,d.v7_prependBasename,H,d.v7_relativeSplatPath,V==null?void 0:V.fromRouteId,V==null?void 0:V.relative),{path:se,submission:we,error:je}=jI(d.v7_normalizeFormMethod,!1,oe,V),ze=x.location,be=V0(x.location,se,V&&V.state);be=nn({},be,e.history.encodeLocation(be));let Ze=V&&V.replace!=null?V.replace:void 0,Re=Tn.Push;Ze===!0?Re=Tn.Replace:Ze===!1||we!=null&&za(we.formMethod)&&we.formAction===x.location.pathname+x.location.search&&(Re=Tn.Replace);let Le=V&&"preventScrollReset"in V?V.preventScrollReset===!0:void 0,Dt=(V&&V.unstable_flushSync)===!0,Tt=fi({currentLocation:ze,nextLocation:be,historyAction:Re});if(Tt){Zs(Tt,{state:"blocked",location:be,proceed(){Zs(Tt,{state:"proceeding",proceed:void 0,reset:void 0,location:be}),ve(H,V)},reset(){let Pt=new Map(x.blockers);Pt.set(Tt,lp),z({blockers:Pt})}});return}return await ke(Re,be,{submission:we,pendingError:je,preventScrollReset:Le,replace:V&&V.replace,enableViewTransition:V&&V.unstable_viewTransition,flushSync:Dt})}function Ue(){if(pe(),z({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){ke(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}ke(E||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation})}}async function ke(H,V,oe){k&&k.abort(),k=null,E=H,B=(oe&&oe.startUninterruptedRevalidation)===!0,Zm(x.location,x.matches),T=(oe&&oe.preventScrollReset)===!0,D=(oe&&oe.enableViewTransition)===!0;let se=s||i,we=oe&&oe.overrideNavigation,je=iu(se,V,c),ze=(oe&&oe.flushSync)===!0,be=Hl(je,se,V.pathname);if(be.active&&be.matches&&(je=be.matches),!je){let{error:Ct,notFoundMatches:Nn,route:ln}=Ia(V.pathname);fe(V,{matches:Nn,loaderData:{},errors:{[ln.id]:Ct}},{flushSync:ze});return}if(x.initialized&&!j&&yae(x.location,V)&&!(oe&&oe.submission&&za(oe.submission.formMethod))){fe(V,{matches:je},{flushSync:ze});return}k=new AbortController;let Ze=Vd(e.history,V,k.signal,oe&&oe.submission),Re;if(oe&&oe.pendingError)Re=[kf(je).route.id,{type:Vt.error,error:oe.pendingError}];else if(oe&&oe.submission&&za(oe.submission.formMethod)){let Ct=await Qe(Ze,V,oe.submission,je,be.active,{replace:oe.replace,flushSync:ze});if(Ct.shortCircuited)return;if(Ct.pendingActionResult){let[Nn,ln]=Ct.pendingActionResult;if(Ro(ln)&&E_(ln.error)&&ln.error.status===404){k=null,fe(V,{matches:Ct.matches,loaderData:{},errors:{[Nn]:ln.error}});return}}je=Ct.matches||je,Re=Ct.pendingActionResult,we=bS(V,oe.submission),ze=!1,be.active=!1,Ze=Vd(e.history,Ze.url,Ze.signal)}let{shortCircuited:Le,matches:Dt,loaderData:Tt,errors:Pt}=await Te(Ze,V,je,be.active,we,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,oe&&oe.initialHydration===!0,ze,Re);Le||(k=null,fe(V,nn({matches:Dt||je},MI(Re),{loaderData:Tt,errors:Pt})))}async function Qe(H,V,oe,se,we,je){je===void 0&&(je={}),pe();let ze=_ae(V,oe);if(z({navigation:ze},{flushSync:je.flushSync===!0}),we){let Re=await nc(se,V.pathname,H.signal);if(Re.type==="aborted")return{shortCircuited:!0};if(Re.type==="error"){let{boundaryId:Le,error:Dt}=ta(V.pathname,Re);return{matches:Re.partialMatches,pendingActionResult:[Le,{type:Vt.error,error:Dt}]}}else if(Re.matches)se=Re.matches;else{let{notFoundMatches:Le,error:Dt,route:Tt}=Ia(V.pathname);return{matches:Le,pendingActionResult:[Tt.id,{type:Vt.error,error:Dt}]}}}let be,Ze=Qp(se,V);if(!Ze.route.action&&!Ze.route.lazy)be={type:Vt.error,error:Wr(405,{method:H.method,pathname:V.pathname,routeId:Ze.route.id})};else if(be=(await Q("action",H,[Ze],se))[0],H.signal.aborted)return{shortCircuited:!0};if(pu(be)){let Re;return je&&je.replace!=null?Re=je.replace:Re=RI(be.response.headers.get("Location"),new URL(H.url),c)===x.location.pathname+x.location.search,await W(H,be,{submission:oe,replace:Re}),{shortCircuited:!0}}if(mu(be))throw Wr(400,{type:"defer-action"});if(Ro(be)){let Re=kf(se,Ze.route.id);return(je&&je.replace)!==!0&&(E=Tn.Push),{matches:se,pendingActionResult:[Re.route.id,be]}}return{matches:se,pendingActionResult:[Ze.route.id,be]}}async function Te(H,V,oe,se,we,je,ze,be,Ze,Re,Le){let Dt=we||bS(V,je),Tt=je||ze||zI(Dt),Pt=!B&&(!d.v7_partialHydration||!Ze);if(se){if(Pt){let Ut=Ee(Le);z(nn({navigation:Dt},Ut!==void 0?{actionData:Ut}:{}),{flushSync:Re})}let tt=await nc(oe,V.pathname,H.signal);if(tt.type==="aborted")return{shortCircuited:!0};if(tt.type==="error"){let{boundaryId:Ut,error:$r}=ta(V.pathname,tt);return{matches:tt.partialMatches,loaderData:{},errors:{[Ut]:$r}}}else if(tt.matches)oe=tt.matches;else{let{error:Ut,notFoundMatches:$r,route:$t}=Ia(V.pathname);return{matches:$r,loaderData:{},errors:{[$t.id]:Ut}}}}let Ct=s||i,[Nn,ln]=PI(e.history,x,oe,Tt,V,d.v7_partialHydration&&Ze===!0,d.v7_skipActionErrorRevalidation,j,P,O,G,J,X,Ct,c,Le);if(na(tt=>!(oe&&oe.some(Ut=>Ut.route.id===tt))||Nn&&Nn.some(Ut=>Ut.route.id===tt)),M=++N,Nn.length===0&&ln.length===0){let tt=Lt();return fe(V,nn({matches:oe,loaderData:{},errors:Le&&Ro(Le[1])?{[Le[0]]:Le[1].error}:null},MI(Le),tt?{fetchers:new Map(x.fetchers)}:{}),{flushSync:Re}),{shortCircuited:!0}}if(Pt){let tt={};if(!se){tt.navigation=Dt;let Ut=Ee(Le);Ut!==void 0&&(tt.actionData=Ut)}ln.length>0&&(tt.fetchers=he(ln)),z(tt,{flushSync:Re})}ln.forEach(tt=>{I.has(tt.key)&&at(tt.key),tt.controller&&I.set(tt.key,tt.controller)});let ql=()=>ln.forEach(tt=>at(tt.key));k&&k.signal.addEventListener("abort",ql);let{loaderResults:hi,fetcherResults:mi}=await ce(x.matches,oe,Nn,ln,H);if(H.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",ql),ln.forEach(tt=>I.delete(tt.key));let rc=UI([...hi,...mi]);if(rc){if(rc.idx>=Nn.length){let tt=ln[rc.idx-Nn.length].key;X.add(tt)}return await W(H,rc.result,{replace:be}),{shortCircuited:!0}}let{loaderData:oc,errors:ra}=BI(x,oe,Nn,hi,Le,ln,mi,Z);Z.forEach((tt,Ut)=>{tt.subscribe($r=>{($r||tt.done)&&Z.delete(Ut)})}),d.v7_partialHydration&&Ze&&x.errors&&Object.entries(x.errors).filter(tt=>{let[Ut]=tt;return!Nn.some($r=>$r.route.id===Ut)}).forEach(tt=>{let[Ut,$r]=tt;ra=Object.assign(ra||{},{[Ut]:$r})});let Hd=Lt(),qd=Js(M),Wd=Hd||qd||ln.length>0;return nn({matches:oe,loaderData:oc,errors:ra},Wd?{fetchers:new Map(x.fetchers)}:{})}function Ee(H){if(H&&!Ro(H[1]))return{[H[0]]:H[1].data};if(x.actionData)return Object.keys(x.actionData).length===0?null:x.actionData}function he(H){return H.forEach(V=>{let oe=x.fetchers.get(V.key),se=up(void 0,oe?oe.data:void 0);x.fetchers.set(V.key,se)}),new Map(x.fetchers)}function Me(H,V,oe,se){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");I.has(H)&&at(H);let we=(se&&se.unstable_flushSync)===!0,je=s||i,ze=kA(x.location,x.matches,c,d.v7_prependBasename,oe,d.v7_relativeSplatPath,V,se==null?void 0:se.relative),be=iu(je,ze,c),Ze=Hl(be,je,ze);if(Ze.active&&Ze.matches&&(be=Ze.matches),!be){Ie(H,V,Wr(404,{pathname:ze}),{flushSync:we});return}let{path:Re,submission:Le,error:Dt}=jI(d.v7_normalizeFormMethod,!0,ze,se);if(Dt){Ie(H,V,Dt,{flushSync:we});return}let Tt=Qp(be,Re);if(T=(se&&se.preventScrollReset)===!0,Le&&za(Le.formMethod)){ge(H,V,Re,Tt,be,Ze.active,we,Le);return}J.set(H,{routeId:V,path:Re}),Y(H,V,Re,Tt,be,Ze.active,we,Le)}async function ge(H,V,oe,se,we,je,ze,be){pe(),J.delete(H);function Ze($t){if(!$t.route.action&&!$t.route.lazy){let Do=Wr(405,{method:be.formMethod,pathname:oe,routeId:V});return Ie(H,V,Do,{flushSync:ze}),!0}return!1}if(!je&&Ze(se))return;let Re=x.fetchers.get(H);De(H,xae(be,Re),{flushSync:ze});let Le=new AbortController,Dt=Vd(e.history,oe,Le.signal,be);if(je){let $t=await nc(we,oe,Dt.signal);if($t.type==="aborted")return;if($t.type==="error"){let{error:Do}=ta(oe,$t);Ie(H,V,Do,{flushSync:ze});return}else if($t.matches){if(we=$t.matches,se=Qp(we,oe),Ze(se))return}else{Ie(H,V,Wr(404,{pathname:oe}),{flushSync:ze});return}}I.set(H,Le);let Tt=N,Ct=(await Q("action",Dt,[se],we))[0];if(Dt.signal.aborted){I.get(H)===Le&&I.delete(H);return}if(d.v7_fetcherPersist&&G.has(H)){if(pu(Ct)||Ro(Ct)){De(H,pc(void 0));return}}else{if(pu(Ct))if(I.delete(H),M>Tt){De(H,pc(void 0));return}else return X.add(H),De(H,up(be)),W(Dt,Ct,{fetcherSubmission:be});if(Ro(Ct)){Ie(H,V,Ct.error);return}}if(mu(Ct))throw Wr(400,{type:"defer-action"});let Nn=x.navigation.location||x.location,ln=Vd(e.history,Nn,Le.signal),ql=s||i,hi=x.navigation.state!=="idle"?iu(ql,x.navigation.location,c):x.matches;lt(hi,"Didn't find any matches after fetcher action");let mi=++N;L.set(H,mi);let rc=up(be,Ct.data);x.fetchers.set(H,rc);let[oc,ra]=PI(e.history,x,hi,be,Nn,!1,d.v7_skipActionErrorRevalidation,j,P,O,G,J,X,ql,c,[se.route.id,Ct]);ra.filter($t=>$t.key!==H).forEach($t=>{let Do=$t.key,g7=x.fetchers.get(Do),ene=up(void 0,g7?g7.data:void 0);x.fetchers.set(Do,ene),I.has(Do)&&at(Do),$t.controller&&I.set(Do,$t.controller)}),z({fetchers:new Map(x.fetchers)});let Hd=()=>ra.forEach($t=>at($t.key));Le.signal.addEventListener("abort",Hd);let{loaderResults:qd,fetcherResults:Wd}=await ce(x.matches,hi,oc,ra,ln);if(Le.signal.aborted)return;Le.signal.removeEventListener("abort",Hd),L.delete(H),I.delete(H),ra.forEach($t=>I.delete($t.key));let tt=UI([...qd,...Wd]);if(tt){if(tt.idx>=oc.length){let $t=ra[tt.idx-oc.length].key;X.add($t)}return W(ln,tt.result)}let{loaderData:Ut,errors:$r}=BI(x,x.matches,oc,qd,void 0,ra,Wd,Z);if(x.fetchers.has(H)){let $t=pc(Ct.data);x.fetchers.set(H,$t)}Js(mi),x.navigation.state==="loading"&&mi>M?(lt(E,"Expected pending action"),k&&k.abort(),fe(x.navigation.location,{matches:hi,loaderData:Ut,errors:$r,fetchers:new Map(x.fetchers)})):(z({errors:$r,loaderData:FI(x.loaderData,Ut,hi,$r),fetchers:new Map(x.fetchers)}),j=!1)}async function Y(H,V,oe,se,we,je,ze,be){let Ze=x.fetchers.get(H);De(H,up(be,Ze?Ze.data:void 0),{flushSync:ze});let Re=new AbortController,Le=Vd(e.history,oe,Re.signal);if(je){let Ct=await nc(we,oe,Le.signal);if(Ct.type==="aborted")return;if(Ct.type==="error"){let{error:Nn}=ta(oe,Ct);Ie(H,V,Nn,{flushSync:ze});return}else if(Ct.matches)we=Ct.matches,se=Qp(we,oe);else{Ie(H,V,Wr(404,{pathname:oe}),{flushSync:ze});return}}I.set(H,Re);let Dt=N,Pt=(await Q("loader",Le,[se],we))[0];if(mu(Pt)&&(Pt=await wz(Pt,Le.signal,!0)||Pt),I.get(H)===Re&&I.delete(H),!Le.signal.aborted){if(G.has(H)){De(H,pc(void 0));return}if(pu(Pt))if(M>Dt){De(H,pc(void 0));return}else{X.add(H),await W(Le,Pt);return}if(Ro(Pt)){Ie(H,V,Pt.error);return}lt(!mu(Pt),"Unhandled fetcher deferred data"),De(H,pc(Pt.data))}}async function W(H,V,oe){let{submission:se,fetcherSubmission:we,replace:je}=oe===void 0?{}:oe;V.response.headers.has("X-Remix-Revalidate")&&(j=!0);let ze=V.response.headers.get("Location");lt(ze,"Expected a Location header on the redirect Response"),ze=RI(ze,new URL(H.url),c);let be=V0(x.location,ze,{_isRedirect:!0});if(n){let Pt=!1;if(V.response.headers.has("X-Remix-Reload-Document"))Pt=!0;else if(S8.test(ze)){const Ct=e.history.createURL(ze);Pt=Ct.origin!==t.location.origin||Xh(Ct.pathname,c)==null}if(Pt){je?t.location.replace(ze):t.location.assign(ze);return}}k=null;let Ze=je===!0?Tn.Replace:Tn.Push,{formMethod:Re,formAction:Le,formEncType:Dt}=x.navigation;!se&&!we&&Re&&Le&&Dt&&(se=zI(x.navigation));let Tt=se||we;if(rae.has(V.response.status)&&Tt&&za(Tt.formMethod))await ke(Ze,be,{submission:nn({},Tt,{formAction:ze}),preventScrollReset:T});else{let Pt=bS(be,se);await ke(Ze,be,{overrideNavigation:Pt,fetcherSubmission:we,preventScrollReset:T})}}async function Q(H,V,oe,se){try{let we=await fae(l,H,V,oe,se,a,o);return await Promise.all(we.map((je,ze)=>{if(vae(je)){let be=je.result;return{type:Vt.redirect,response:pae(be,V,oe[ze].route.id,se,c,d.v7_relativeSplatPath)}}return mae(je)}))}catch(we){return oe.map(()=>({type:Vt.error,error:we}))}}async function ce(H,V,oe,se,we){let[je,...ze]=await Promise.all([oe.length?Q("loader",we,oe,V):[],...se.map(be=>{if(be.matches&&be.match&&be.controller){let Ze=Vd(e.history,be.path,be.controller.signal);return Q("loader",Ze,[be.match],be.matches).then(Re=>Re[0])}else return Promise.resolve({type:Vt.error,error:Wr(404,{pathname:be.path})})})]);return await Promise.all([$I(H,oe,je,je.map(()=>we.signal),!1,x.loaderData),$I(H,se.map(be=>be.match),ze,se.map(be=>be.controller?be.controller.signal:null),!0)]),{loaderResults:je,fetcherResults:ze}}function pe(){j=!0,P.push(...na()),J.forEach((H,V)=>{I.has(V)&&(O.push(V),at(V))})}function De(H,V,oe){oe===void 0&&(oe={}),x.fetchers.set(H,V),z({fetchers:new Map(x.fetchers)},{flushSync:(oe&&oe.flushSync)===!0})}function Ie(H,V,oe,se){se===void 0&&(se={});let we=kf(x.matches,V);Oe(H),z({errors:{[we.route.id]:oe},fetchers:new Map(x.fetchers)},{flushSync:(se&&se.flushSync)===!0})}function Je(H){return d.v7_fetcherPersist&&(U.set(H,(U.get(H)||0)+1),G.has(H)&&G.delete(H)),x.fetchers.get(H)||oae}function Oe(H){let V=x.fetchers.get(H);I.has(H)&&!(V&&V.state==="loading"&&L.has(H))&&at(H),J.delete(H),L.delete(H),X.delete(H),G.delete(H),x.fetchers.delete(H)}function _e(H){if(d.v7_fetcherPersist){let V=(U.get(H)||0)-1;V<=0?(U.delete(H),G.add(H)):U.set(H,V)}else Oe(H);z({fetchers:new Map(x.fetchers)})}function at(H){let V=I.get(H);lt(V,"Expected fetch controller: "+H),V.abort(),I.delete(H)}function Ft(H){for(let V of H){let oe=Je(V),se=pc(oe.data);x.fetchers.set(V,se)}}function Lt(){let H=[],V=!1;for(let oe of X){let se=x.fetchers.get(oe);lt(se,"Expected fetcher: "+oe),se.state==="loading"&&(X.delete(oe),H.push(oe),V=!0)}return Ft(H),V}function Js(H){let V=[];for(let[oe,se]of L)if(se0}function Jm(H,V){let oe=x.blockers.get(H)||lp;return ae.get(H)!==V&&ae.set(H,V),oe}function $d(H){x.blockers.delete(H),ae.delete(H)}function Zs(H,V){let oe=x.blockers.get(H)||lp;lt(oe.state==="unblocked"&&V.state==="blocked"||oe.state==="blocked"&&V.state==="blocked"||oe.state==="blocked"&&V.state==="proceeding"||oe.state==="blocked"&&V.state==="unblocked"||oe.state==="proceeding"&&V.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+V.state);let se=new Map(x.blockers);se.set(H,V),z({blockers:se})}function fi(H){let{currentLocation:V,nextLocation:oe,historyAction:se}=H;if(ae.size===0)return;ae.size>1&&Mu(!1,"A router only supports one blocker at a time");let we=Array.from(ae.entries()),[je,ze]=we[we.length-1],be=x.blockers.get(je);if(!(be&&be.state==="proceeding")&&ze({currentLocation:V,nextLocation:oe,historyAction:se}))return je}function Ia(H){let V=Wr(404,{pathname:H}),oe=s||i,{matches:se,route:we}=LI(oe);return na(),{notFoundMatches:se,route:we,error:V}}function ta(H,V){return{boundaryId:kf(V.partialMatches).route.id,error:Wr(400,{type:"route-discovery",pathname:H,message:V.error!=null&&"message"in V.error?V.error:String(V.error)})}}function na(H){let V=[];return Z.forEach((oe,se)=>{(!H||H(se))&&(oe.cancel(),V.push(se),Z.delete(se))}),V}function ec(H,V,oe){if(m=H,b=V,p=oe||null,!v&&x.navigation===yS){v=!0;let se=zd(x.location,x.matches);se!=null&&z({restoreScrollPosition:se})}return()=>{m=null,b=null,p=null}}function tc(H,V){return p&&p(H,V.map(se=>Noe(se,x.loaderData)))||H.key}function Zm(H,V){if(m&&b){let oe=tc(H,V);m[oe]=b()}}function zd(H,V){if(m){let oe=tc(H,V),se=m[oe];if(typeof se=="number")return se}return null}function Hl(H,V,oe){if(u)if(H){let se=H[H.length-1].route;if(se.path&&(se.path==="*"||se.path.endsWith("/*")))return{active:!0,matches:i1(V,oe,c,!0)}}else return{active:!0,matches:i1(V,oe,c,!0)||[]};return{active:!1,matches:null}}async function nc(H,V,oe){let se=H,we=se.length>0?se[se.length-1].route:null;for(;;){let je=s==null,ze=s||i;try{await uae(u,V,se,ze,a,o,ne,oe)}catch(Le){return{type:"error",error:Le,partialMatches:se}}finally{je&&(i=[...i])}if(oe.aborted)return{type:"aborted"};let be=iu(ze,V,c),Ze=!1;if(be){let Le=be[be.length-1].route;if(Le.index)return{type:"success",matches:be};if(Le.path&&Le.path.length>0)if(Le.path==="*")Ze=!0;else return{type:"success",matches:be}}let Re=i1(ze,V,c,!0);if(!Re||se.map(Le=>Le.route.id).join("-")===Re.map(Le=>Le.route.id).join("-"))return{type:"success",matches:Ze?be:null};if(se=Re,we=se[se.length-1].route,we.path==="*")return{type:"success",matches:se}}}function ep(H){a={},s=K0(H,o,void 0,a)}function H6(H,V){let oe=s==null;yz(H,V,s||i,a,o),oe&&(i=[...i],z({}))}return C={get basename(){return c},get future(){return d},get state(){return x},get routes(){return i},get window(){return t},initialize:te,subscribe:re,enableScrollRestoration:ec,navigate:ve,fetch:Me,revalidate:Ue,createHref:H=>e.history.createHref(H),encodeLocation:H=>e.history.encodeLocation(H),getFetcher:Je,deleteFetcher:_e,dispose:ee,getBlocker:Jm,deleteBlocker:$d,patchRoutes:H6,_internalFetchControllers:I,_internalActiveDeferreds:Z,_internalSetRoutes:ep},C}function sae(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function kA(e,t,n,r,o,a,i,s){let c,l;if(i){c=[];for(let d of t)if(c.push(d),d.route.id===i){l=d;break}}else c=t,l=t[t.length-1];let u=x8(o||".",_8(c,a),Xh(e.pathname,n)||e.pathname,s==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!T8(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:cs([n,u.pathname])),Lu(u)}function jI(e,t,n,r){if(!r||!sae(r))return{path:n};if(r.formMethod&&!Eae(r.formMethod))return{path:n,error:Wr(405,{method:r.formMethod})};let o=()=>({path:n,error:Wr(400,{type:"invalid-body"})}),a=r.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),s=bz(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!za(i))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[p,b]=m;return""+h+p+"="+b+` -`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!za(i))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}lt(typeof FormData=="function","FormData is not available in this environment");let c,l;if(r.formData)c=jA(r.formData),l=r.formData;else if(r.body instanceof FormData)c=jA(r.body),l=r.body;else if(r.body instanceof URLSearchParams)c=r.body,l=NI(c);else if(r.body==null)c=new URLSearchParams,l=new FormData;else try{c=new URLSearchParams(r.body),l=NI(c)}catch{return o()}let u={formMethod:i,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(za(u.formMethod))return{path:n,submission:u};let d=Ms(n);return t&&d.search&&T8(d.search)&&c.append("index",""),d.search="?"+c,{path:Lu(d),submission:u}}function cae(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function PI(e,t,n,r,o,a,i,s,c,l,u,d,f,h,m,p){let b=p?Ro(p[1])?p[1].error:p[1].data:void 0,v=e.createURL(t.location),g=e.createURL(o),w=p&&Ro(p[1])?p[0]:void 0,_=w?cae(n,w):n,C=p?p[1].statusCode:void 0,x=i&&C&&C>=400,E=_.filter((k,D)=>{let{route:R}=k;if(R.lazy)return!0;if(R.loader==null)return!1;if(a)return typeof R.loader!="function"||R.loader.hydrate?!0:t.loaderData[R.id]===void 0&&(!t.errors||t.errors[R.id]===void 0);if(lae(t.loaderData,t.matches[D],k)||c.some(j=>j===k.route.id))return!0;let F=t.matches[D],B=k;return II(k,nn({currentUrl:v,currentParams:F.params,nextUrl:g,nextParams:B.params},r,{actionResult:b,actionStatus:C,defaultShouldRevalidate:x?!1:s||v.pathname+v.search===g.pathname+g.search||v.search!==g.search||gz(F,B)}))}),T=[];return d.forEach((k,D)=>{if(a||!n.some(P=>P.route.id===k.routeId)||u.has(D))return;let R=iu(h,k.path,m);if(!R){T.push({key:D,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(D),B=Qp(R,k.path),j=!1;f.has(D)?j=!1:l.includes(D)?j=!0:F&&F.state!=="idle"&&F.data===void 0?j=s:j=II(B,nn({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:b,actionStatus:C,defaultShouldRevalidate:x?!1:s})),j&&T.push({key:D,routeId:k.routeId,path:k.path,matches:R,match:B,controller:new AbortController})}),[E,T]}function lae(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function gz(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function II(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function uae(e,t,n,r,o,a,i,s){let c=[t,...n.map(l=>l.route.id)].join("-");try{let l=i.get(c);l||(l=e({path:t,matches:n,patch:(u,d)=>{s.aborted||yz(u,d,r,o,a)}}),i.set(c,l)),l&&bae(l)&&await l}finally{i.delete(c)}}function yz(e,t,n,r,o){if(e){var a;let i=r[e];lt(i,"No route found to patch children into: routeId = "+e);let s=K0(t,o,[e,"patch",String(((a=i.children)==null?void 0:a.length)||"0")],r);i.children?i.children.push(...s):i.children=s}else{let i=K0(t,o,["patch",String(n.length||"0")],r);n.push(...i)}}async function OI(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];lt(o,"No route found in manifest");let a={};for(let i in r){let c=o[i]!==void 0&&i!=="hasErrorBoundary";Mu(!c,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!c&&!Ooe.has(i)&&(a[i]=r[i])}Object.assign(o,a),Object.assign(o,nn({},t(o),{lazy:void 0}))}function dae(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function fae(e,t,n,r,o,a,i,s){let c=r.reduce((d,f)=>d.add(f.route.id),new Set),l=new Set,u=await e({matches:o.map(d=>{let f=c.has(d.route.id);return nn({},d,{shouldLoad:f,resolve:m=>(l.add(d.route.id),f?hae(t,n,d,a,i,m,s):Promise.resolve({type:Vt.data,result:void 0}))})}),request:n,params:o[0].params,context:s});return o.forEach(d=>lt(l.has(d.route.id),'`match.resolve()` was not called for route id "'+d.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),u.filter((d,f)=>c.has(o[f].route.id))}async function hae(e,t,n,r,o,a,i){let s,c,l=u=>{let d,f=new Promise((p,b)=>d=b);c=()=>d(),t.signal.addEventListener("abort",c);let h=p=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:i},...p!==void 0?[p]:[]),m;return a?m=a(p=>h(p)):m=(async()=>{try{return{type:"data",result:await h()}}catch(p){return{type:"error",result:p}}})(),Promise.race([m,f])};try{let u=n.route[e];if(n.route.lazy)if(u){let d,[f]=await Promise.all([l(u).catch(h=>{d=h}),OI(n.route,o,r)]);if(d!==void 0)throw d;s=f}else if(await OI(n.route,o,r),u=n.route[e],u)s=await l(u);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw Wr(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:Vt.data,result:void 0};else if(u)s=await l(u);else{let d=new URL(t.url),f=d.pathname+d.search;throw Wr(404,{pathname:f})}lt(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:Vt.error,result:u}}finally{c&&t.signal.removeEventListener("abort",c)}return s}async function mae(e){let{result:t,type:n,status:r}=e;if(vz(t)){let i;try{let s=t.headers.get("Content-Type");s&&/\bapplication\/json\b/.test(s)?t.body==null?i=null:i=await t.json():i=await t.text()}catch(s){return{type:Vt.error,error:s}}return n===Vt.error?{type:Vt.error,error:new C8(t.status,t.statusText,i),statusCode:t.status,headers:t.headers}:{type:Vt.data,data:i,statusCode:t.status,headers:t.headers}}if(n===Vt.error)return{type:Vt.error,error:t,statusCode:E_(t)?t.status:r};if(wae(t)){var o,a;return{type:Vt.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}return{type:Vt.data,data:t,statusCode:r}}function pae(e,t,n,r,o,a){let i=e.headers.get("Location");if(lt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!S8.test(i)){let s=r.slice(0,r.findIndex(c=>c.route.id===n)+1);i=kA(new URL(t.url),s,o,!0,i,a),e.headers.set("Location",i)}return e}function RI(e,t,n){if(S8.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Xh(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function Vd(e,t,n,r){let o=e.createURL(bz(t)).toString(),a={signal:n};if(r&&za(r.formMethod)){let{formMethod:i,formEncType:s}=r;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=jA(r.formData):a.body=r.formData}return new Request(o,a)}function jA(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function NI(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function gae(e,t,n,r,o,a){let i={},s=null,c,l=!1,u={},d=r&&Ro(r[1])?r[1].error:void 0;return n.forEach((f,h)=>{let m=t[h].route.id;if(lt(!pu(f),"Cannot handle redirect results in processLoaderData"),Ro(f)){let p=f.error;d!==void 0&&(p=d,d=void 0),s=s||{};{let b=kf(e,m);s[b.route.id]==null&&(s[b.route.id]=p)}i[m]=void 0,l||(l=!0,c=E_(f.error)?f.error.status:500),f.headers&&(u[m]=f.headers)}else mu(f)?(o.set(m,f.deferredData),i[m]=f.deferredData.data,f.statusCode!=null&&f.statusCode!==200&&!l&&(c=f.statusCode),f.headers&&(u[m]=f.headers)):(i[m]=f.data,f.statusCode&&f.statusCode!==200&&!l&&(c=f.statusCode),f.headers&&(u[m]=f.headers))}),d!==void 0&&r&&(s={[r[0]]:d},i[r[0]]=void 0),{loaderData:i,errors:s,statusCode:c||200,loaderHeaders:u}}function BI(e,t,n,r,o,a,i,s){let{loaderData:c,errors:l}=gae(t,n,r,o,s);for(let u=0;ur.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function LI(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Wr(e,t){let{pathname:n,routeId:r,method:o,type:a,message:i}=t===void 0?{}:t,s="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(s="Bad Request",a==="route-discovery"?c='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error: -`+i):o&&n&&r?c="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?c="defer() is not supported in actions":a==="invalid-body"&&(c="Unable to encode submission body")):e===403?(s="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",c='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?c="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new C8(e||500,s,new Error(c),!0)}function UI(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(pu(n))return{result:n,idx:t}}}function bz(e){let t=typeof e=="string"?Ms(e):e;return Lu(nn({},t,{hash:""}))}function yae(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function bae(e){return typeof e=="object"&&e!=null&&"then"in e}function vae(e){return vz(e.result)&&nae.has(e.result.status)}function mu(e){return e.type===Vt.deferred}function Ro(e){return e.type===Vt.error}function pu(e){return(e&&e.type)===Vt.redirect}function wae(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function vz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Eae(e){return tae.has(e.toLowerCase())}function za(e){return Zoe.has(e.toLowerCase())}async function $I(e,t,n,r,o,a){for(let i=0;id.route.id===c.route.id),u=l!=null&&!gz(l,c)&&(a&&a[c.route.id])!==void 0;if(mu(s)&&(o||u)){let d=r[i];lt(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await wz(s,d,o).then(f=>{f&&(n[i]=f||n[i])})}}}async function wz(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Vt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Vt.error,error:o}}return{type:Vt.data,data:e.deferredData.data}}}function T8(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Qp(e,t){let n=typeof t=="string"?Ms(t).search:t.search;if(e[e.length-1].route.index&&T8(n||""))return e[e.length-1];let r=hz(e);return r[r.length-1]}function zI(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function bS(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function _ae(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function up(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function xae(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function pc(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Cae(e,t){try{let n=e.sessionStorage.getItem(pz);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function Sae(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(pz,JSON.stringify(n))}catch(r){Mu(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.25.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function uw(){return uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),S.useCallback(function(l,u){if(u===void 0&&(u={}),!s.current)return;if(typeof l=="number"){r.go(l);return}let d=x8(l,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:cs([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,i,a,e])}const Dae=S.createContext(null);function kae(e){let t=S.useContext(Ls).outlet;return t&&S.createElement(Dae.Provider,{value:e},t)}function jae(){let{matches:e}=S.useContext(Ls),t=e[e.length-1];return t?t.params:{}}function Cz(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=S.useContext(dd),{matches:o}=S.useContext(Ls),{pathname:a}=fd(),i=JSON.stringify(_8(o,r.v7_relativeSplatPath));return S.useMemo(()=>x8(e,JSON.parse(i),a,n==="path"),[e,i,a,n])}function Pae(e,t,n,r){Fg()||lt(!1);let{navigator:o}=S.useContext(dd),{matches:a}=S.useContext(Ls),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let l=fd(),u;u=l;let d=u.pathname||"/",f=d;if(c!=="/"){let p=c.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(p.length).join("/")}let h=iu(e,{pathname:f});return Bae(h&&h.map(p=>Object.assign({},p,{params:Object.assign({},s,p.params),pathname:cs([c,o.encodeLocation?o.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?c:cs([c,o.encodeLocation?o.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),a,n,r)}function Iae(){let e=Az(),t=E_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:o},n):null,null)}const Oae=S.createElement(Iae,null);class Rae extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(Ls.Provider,{value:this.props.routeContext},S.createElement(_z.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Nae(e){let{routeContext:t,match:n,children:r}=e,o=S.useContext(__);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Ls.Provider,{value:t},r)}function Bae(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let i=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||lt(!1),i=i.slice(0,Math.min(i.length,u+1))}let c=!1,l=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((u,d,f)=>{let h,m=!1,p=null,b=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,p=d.route.errorElement||Oae,c&&(l<0&&f===0?($ae("route-fallback"),m=!0,b=null):l===f&&(m=!0,b=d.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,f+1)),g=()=>{let w;return h?w=p:m?w=b:d.route.Component?w=S.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=u,S.createElement(Nae,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?S.createElement(Rae,{location:n.location,revalidation:n.revalidation,component:p,error:h,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var Sz=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Sz||{}),dw=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(dw||{});function Fae(e){let t=S.useContext(__);return t||lt(!1),t}function Mae(e){let t=S.useContext(Ez);return t||lt(!1),t}function Lae(e){let t=S.useContext(Ls);return t||lt(!1),t}function Tz(e){let t=Lae(),n=t.matches[t.matches.length-1];return n.route.id||lt(!1),n.route.id}function Az(){var e;let t=S.useContext(_z),n=Mae(dw.UseRouteError),r=Tz(dw.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Uae(){let{router:e}=Fae(Sz.UseNavigateStable),t=Tz(dw.UseNavigateStable),n=S.useRef(!1);return xz(()=>{n.current=!0}),S.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,uw({fromRouteId:t},a)))},[e,t])}const HI={};function $ae(e,t,n){HI[e]||(HI[e]=!0)}function zae(e){return kae(e.context)}function Hae(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Tn.Pop,navigator:a,static:i=!1,future:s}=e;Fg()&<(!1);let c=t.replace(/^\/*/,"/"),l=S.useMemo(()=>({basename:c,navigator:a,static:i,future:uw({v7_relativeSplatPath:!1},s)}),[c,s,a,i]);typeof r=="string"&&(r=Ms(r));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:m="default"}=r,p=S.useMemo(()=>{let b=Xh(u,c);return b==null?null:{location:{pathname:b,search:d,hash:f,state:h,key:m},navigationType:o}},[c,u,d,f,h,m,o]);return p==null?null:S.createElement(dd.Provider,{value:l},S.createElement(A8.Provider,{children:n,value:p}))}new Promise(()=>{});function qae(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:S.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.25.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Y0(){return Y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Gae(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Vae(e,t){return e.button===0&&(!t||t==="_self")&&!Gae(e)}function PA(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Kae(e,t){let n=PA(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(a=>{n.append(o,a)})}),n}const Yae=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Qae="6";try{window.__reactRouterVersion=Qae}catch{}function Xae(e,t){return iae({basename:void 0,future:Y0({},void 0,{v7_prependBasename:!0}),history:joe({window:void 0}),hydrationData:Jae(),routes:e,mapRouteProperties:qae,unstable_dataStrategy:void 0,unstable_patchRoutesOnMiss:void 0,window:void 0}).initialize()}function Jae(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Y0({},t,{errors:Zae(t.errors)})),t}function Zae(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new C8(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}const eie=S.createContext({isTransitioning:!1}),tie=S.createContext(new Map),nie="startTransition",qI=sU[nie],rie="flushSync",WI=koe[rie];function oie(e){qI?qI(e):e()}function dp(e){WI?WI(e):e()}class aie{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function iie(e){let{fallbackElement:t,router:n,future:r}=e,[o,a]=S.useState(n.state),[i,s]=S.useState(),[c,l]=S.useState({isTransitioning:!1}),[u,d]=S.useState(),[f,h]=S.useState(),[m,p]=S.useState(),b=S.useRef(new Map),{v7_startTransition:v}=r||{},g=S.useCallback(T=>{v?oie(T):T()},[v]),w=S.useCallback((T,k)=>{let{deletedFetchers:D,unstable_flushSync:R,unstable_viewTransitionOpts:F}=k;D.forEach(j=>b.current.delete(j)),T.fetchers.forEach((j,P)=>{j.data!==void 0&&b.current.set(P,j.data)});let B=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!F||B){R?dp(()=>a(T)):g(()=>a(T));return}if(R){dp(()=>{f&&(u&&u.resolve(),f.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let j=n.window.document.startViewTransition(()=>{dp(()=>a(T))});j.finished.finally(()=>{dp(()=>{d(void 0),h(void 0),s(void 0),l({isTransitioning:!1})})}),dp(()=>h(j));return}f?(u&&u.resolve(),f.skipTransition(),p({state:T,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(s(T),l({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[n.window,f,u,b,g]);S.useLayoutEffect(()=>n.subscribe(w),[n,w]),S.useEffect(()=>{c.isTransitioning&&!c.flushSync&&d(new aie)},[c]),S.useEffect(()=>{if(u&&i&&n.window){let T=i,k=u.promise,D=n.window.document.startViewTransition(async()=>{g(()=>a(T)),await k});D.finished.finally(()=>{d(void 0),h(void 0),s(void 0),l({isTransitioning:!1})}),h(D)}},[g,i,u,n.window]),S.useEffect(()=>{u&&i&&o.location.key===i.location.key&&u.resolve()},[u,f,o.location,i]),S.useEffect(()=>{!c.isTransitioning&&m&&(s(m.state),l({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),p(void 0))},[c.isTransitioning,m]),S.useEffect(()=>{},[]);let _=S.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:T=>n.navigate(T),push:(T,k,D)=>n.navigate(T,{state:k,preventScrollReset:D==null?void 0:D.preventScrollReset}),replace:(T,k,D)=>n.navigate(T,{replace:!0,state:k,preventScrollReset:D==null?void 0:D.preventScrollReset})}),[n]),C=n.basename||"/",x=S.useMemo(()=>({router:n,navigator:_,static:!1,basename:C}),[n,_,C]),E=S.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return S.createElement(S.Fragment,null,S.createElement(__.Provider,{value:x},S.createElement(Ez.Provider,{value:o},S.createElement(tie.Provider,{value:b.current},S.createElement(eie.Provider,{value:c},S.createElement(Hae,{basename:C,location:o.location,navigationType:o.historyAction,navigator:_,future:E},o.initialized||n.future.v7_partialHydration?S.createElement(sie,{routes:n.routes,future:n.future,state:o}):t))))),null)}const sie=S.memo(cie);function cie(e){let{routes:t,future:n,state:r}=e;return Pae(t,void 0,r,n)}const lie=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Su=S.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:i,state:s,target:c,to:l,preventScrollReset:u,unstable_viewTransition:d}=t,f=Wae(t,Yae),{basename:h}=S.useContext(dd),m,p=!1;if(typeof l=="string"&&uie.test(l)&&(m=l,lie))try{let w=new URL(window.location.href),_=l.startsWith("//")?new URL(w.protocol+l):new URL(l),C=Xh(_.pathname,h);_.origin===w.origin&&C!=null?l=C+_.search+_.hash:p=!0}catch{}let b=Tae(l,{relative:o}),v=die(l,{replace:i,state:s,target:c,preventScrollReset:u,relative:o,unstable_viewTransition:d});function g(w){r&&r(w),w.defaultPrevented||v(w)}return S.createElement("a",Y0({},f,{href:m||b,onClick:p||a?r:g,ref:n,target:c}))});var GI;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(GI||(GI={}));var VI;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(VI||(VI={}));function die(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,c=Mg(),l=fd(),u=Cz(e,{relative:i});return S.useCallback(d=>{if(Vae(d,n)){d.preventDefault();let f=r!==void 0?r:Lu(l)===Lu(u);c(e,{replace:f,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s})}},[l,c,u,r,o,n,e,a,i,s])}function Dz(e){let t=S.useRef(PA(e)),n=S.useRef(!1),r=fd(),o=S.useMemo(()=>Kae(r.search,n.current?null:t.current),[r.search]),a=Mg(),i=S.useCallback((s,c)=>{const l=PA(typeof s=="function"?s(o):s);n.current=!0,a("?"+l,c)},[a,o]);return[o,i]}function Jh(e){return kz(e)?(e.nodeName||"").toLowerCase():"#document"}function wo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Us(e){var t;return(t=(kz(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kz(e){return e instanceof Node||e instanceof wo(e).Node}function Mt(e){return e instanceof Element||e instanceof wo(e).Element}function xo(e){return e instanceof HTMLElement||e instanceof wo(e).HTMLElement}function IA(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wo(e).ShadowRoot}function Lg(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ko(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function fie(e){return["table","td","th"].includes(Jh(e))}function x_(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function D8(e){const t=k8(),n=Mt(e)?Ko(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function hie(e){let t=_s(e);for(;xo(t)&&!el(t);){if(D8(t))return t;if(x_(t))return null;t=_s(t)}return null}function k8(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function el(e){return["html","body","#document"].includes(Jh(e))}function Ko(e){return wo(e).getComputedStyle(e)}function C_(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _s(e){if(Jh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||IA(e)&&e.host||Us(e);return IA(t)?t.host:t}function jz(e){const t=_s(e);return el(t)?e.ownerDocument?e.ownerDocument.body:e.body:xo(t)&&Lg(t)?t:jz(t)}function Wc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=jz(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=wo(o);return a?t.concat(i,i.visualViewport||[],Lg(o)?o:[],i.frameElement&&n?Wc(i.frameElement):[]):t.concat(o,Wc(o,[],n))}function OA(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function ls(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&IA(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Pz(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Iz(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function mie(e){return gie()?!1:!KI()&&e.width===0&&e.height===0||KI()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Oz(){return/apple/i.test(navigator.vendor)}function KI(){const e=/android/i;return e.test(Pz())||e.test(Iz())}function pie(){return Pz().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function gie(){return Iz().includes("jsdom/")}function Q0(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function yie(e){return"nativeEvent"in e}function bie(e){return e.matches("html,body")}function Nc(e){return(e==null?void 0:e.ownerDocument)||document}function vS(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function su(e){return"composedPath"in e?e.composedPath()[0]:e.target}const vie="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Rz(e){return xo(e)&&e.matches(vie)}const Ai=Math.min,Bo=Math.max,fw=Math.round,Kb=Math.floor,tl=e=>({x:e,y:e}),wie={left:"right",right:"left",bottom:"top",top:"bottom"},Eie={start:"end",end:"start"};function RA(e,t,n){return Bo(e,Ai(t,n))}function Zh(e,t){return typeof e=="function"?e(t):e}function nl(e){return e.split("-")[0]}function em(e){return e.split("-")[1]}function Nz(e){return e==="x"?"y":"x"}function j8(e){return e==="y"?"height":"width"}function Uu(e){return["top","bottom"].includes(nl(e))?"y":"x"}function P8(e){return Nz(Uu(e))}function _ie(e,t,n){n===void 0&&(n=!1);const r=em(e),o=P8(e),a=j8(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=hw(i)),[i,hw(i)]}function xie(e){const t=hw(e);return[NA(e),t,NA(t)]}function NA(e){return e.replace(/start|end/g,t=>Eie[t])}function Cie(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function Sie(e,t,n,r){const o=em(e);let a=Cie(nl(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(NA)))),a}function hw(e){return e.replace(/left|right|bottom|top/g,t=>wie[t])}function Tie(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bz(e){return typeof e!="number"?Tie(e):{top:e,right:e,bottom:e,left:e}}function mw(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}/*! -* tabbable 6.2.0 -* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var Aie=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],BA=Aie.join(","),Fz=typeof Element>"u",X0=Fz?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pw=!Fz&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},gw=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=o===""||o==="true",i=a||n&&t&&e(t.parentNode);return i},Die=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},kie=function(t,n,r){if(gw(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(BA));return n&&X0.call(t,BA)&&o.unshift(t),o=o.filter(r),o},jie=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!gw(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),c=s.length?s:i.children,l=e(c,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{var u=X0.call(i,BA);u&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),f=!gw(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&f){var h=e(d===!0?i.children:d.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:i,candidates:h})}else a.unshift.apply(a,i.children)}}return o},Mz=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Lz=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Die(t))&&!Mz(t)?0:t.tabIndex},Pie=function(t,n){var r=Lz(t);return r<0&&n&&!Mz(t)?0:r},Iie=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Uz=function(t){return t.tagName==="INPUT"},Oie=function(t){return Uz(t)&&t.type==="hidden"},Rie=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Nie=function(t,n){for(var r=0;rsummary:first-of-type"),i=a?t.parentElement:t;if(X0.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var s=t;t;){var c=t.parentElement,l=pw(t);if(c&&!c.shadowRoot&&o(c)===!0)return YI(t);t.assignedSlot?t=t.assignedSlot:!c&&l!==t.ownerDocument?t=l.host:t=c}t=s}if(Lie(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return YI(t);return!1},$ie=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},qie=function e(t){var n=[],r=[];return t.forEach(function(o,a){var i=!!o.scopeParent,s=i?o.scopeParent:o,c=Pie(s,i),l=i?e(o.candidates):s;c===0?i?n.push.apply(n,l):n.push(s):r.push({documentOrder:a,tabIndex:c,item:o,isScope:i,content:l})}),r.sort(Iie).reduce(function(o,a){return a.isScope?o.push.apply(o,a.content):o.push(a.content),o},[]).concat(n)},$z=function(t,n){n=n||{};var r;return n.getShadowRoot?r=jie([t],n.includeContainer,{filter:QI.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Hie}):r=kie(t,n.includeContainer,QI.bind(null,n)),qie(r)};function XI(e,t,n){let{reference:r,floating:o}=e;const a=Uu(t),i=P8(t),s=j8(i),c=nl(t),l=a==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(em(t)){case"start":h[i]-=f*(n&&l?-1:1);break;case"end":h[i]+=f*(n&&l?-1:1);break}return h}const Wie=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=XI(l,r,c),f=r,h={},m=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Zh(e,t)||{};if(l==null)return{};const d=Bz(u),f={x:n,y:r},h=P8(o),m=j8(h),p=await i.getDimensions(l),b=h==="y",v=b?"top":"left",g=b?"bottom":"right",w=b?"clientHeight":"clientWidth",_=a.reference[m]+a.reference[h]-f[h]-a.floating[m],C=f[h]-a.reference[h],x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let E=x?x[w]:0;(!E||!await(i.isElement==null?void 0:i.isElement(x)))&&(E=s.floating[w]||a.floating[m]);const T=_/2-C/2,k=E/2-p[m]/2-1,D=Ai(d[v],k),R=Ai(d[g],k),F=D,B=E-p[m]-R,j=E/2-p[m]/2+T,P=RA(F,j,B),O=!c.arrow&&em(o)!=null&&j!==P&&a.reference[m]/2-(jj<=0)){var R,F;const j=(((R=a.flip)==null?void 0:R.index)||0)+1,P=E[j];if(P)return{data:{index:j,overflows:D},reset:{placement:P}};let O=(F=D.filter(I=>I.overflows[0]<=0).sort((I,N)=>I.overflows[1]-N.overflows[1])[0])==null?void 0:F.placement;if(!O)switch(h){case"bestFit":{var B;const I=(B=D.filter(N=>{if(x){const M=Uu(N.placement);return M===g||M==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(M=>M>0).reduce((M,L)=>M+L,0)]).sort((N,M)=>N[1]-M[1])[0])==null?void 0:B[0];I&&(O=I);break}case"initialPlacement":O=s;break}if(o!==O)return{reset:{placement:O}}}return{}}}};async function Kie(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=nl(n),s=em(n),c=Uu(n)==="y",l=["left","top"].includes(i)?-1:1,u=a&&c?-1:1,d=Zh(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof m=="number"&&(h=s==="end"?m*-1:m),c?{x:h*u,y:f*l}:{x:f*l,y:h*u}}const Yie=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await Kie(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},Qie=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:b=>{let{x:v,y:g}=b;return{x:v,y:g}}},...c}=Zh(e,t),l={x:n,y:r},u=await I8(t,c),d=Uu(nl(o)),f=Nz(d);let h=l[f],m=l[d];if(a){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",g=h+u[b],w=h-u[v];h=RA(g,h,w)}if(i){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",g=m+u[b],w=m-u[v];m=RA(g,m,w)}const p=s.fn({...t,[f]:h,[d]:m});return{...p,data:{x:p.x-n,y:p.y-r}}}}},Xie=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=()=>{},...s}=Zh(e,t),c=await I8(t,s),l=nl(n),u=em(n),d=Uu(n)==="y",{width:f,height:h}=r.floating;let m,p;l==="top"||l==="bottom"?(m=l,p=u===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(p=l,m=u==="end"?"top":"bottom");const b=h-c.top-c.bottom,v=f-c.left-c.right,g=Ai(h-c[m],b),w=Ai(f-c[p],v),_=!t.middlewareData.shift;let C=g,x=w;if(d?x=u||_?Ai(w,v):v:C=u||_?Ai(g,b):b,_&&!u){const T=Bo(c.left,0),k=Bo(c.right,0),D=Bo(c.top,0),R=Bo(c.bottom,0);d?x=f-2*(T!==0||k!==0?T+k:Bo(c.left,c.right)):C=h-2*(D!==0||R!==0?D+R:Bo(c.top,c.bottom))}await i({...t,availableWidth:x,availableHeight:C});const E=await o.getDimensions(a.floating);return f!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function zz(e){const t=Ko(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xo(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=fw(n)!==a||fw(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function O8(e){return Mt(e)?e:e.contextElement}function Kf(e){const t=O8(e);if(!xo(t))return tl(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=zz(t);let i=(a?fw(n.width):n.width)/r,s=(a?fw(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Jie=tl(0);function Hz(e){const t=wo(e);return!k8()||!t.visualViewport?Jie:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zie(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wo(e)?!1:t}function $u(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=O8(e);let i=tl(1);t&&(r?Mt(r)&&(i=Kf(r)):i=Kf(e));const s=Zie(a,n,r)?Hz(a):tl(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const f=wo(a),h=r&&Mt(r)?wo(r):r;let m=f,p=m.frameElement;for(;p&&r&&h!==m;){const b=Kf(p),v=p.getBoundingClientRect(),g=Ko(p),w=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*b.x,_=v.top+(p.clientTop+parseFloat(g.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,d*=b.y,c+=w,l+=_,m=wo(p),p=m.frameElement}}return mw({width:u,height:d,x:c,y:l})}function ese(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Us(r),s=t?x_(t.floating):!1;if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=tl(1);const u=tl(0),d=xo(r);if((d||!d&&!a)&&((Jh(r)!=="body"||Lg(i))&&(c=C_(r)),xo(r))){const f=$u(r);l=Kf(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function tse(e){return Array.from(e.getClientRects())}function qz(e){return $u(Us(e)).left+C_(e).scrollLeft}function nse(e){const t=Us(e),n=C_(e),r=e.ownerDocument.body,o=Bo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Bo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+qz(e);const s=-n.scrollTop;return Ko(r).direction==="rtl"&&(i+=Bo(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function rse(e,t){const n=wo(e),r=Us(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const l=k8();(!l||l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}function ose(e,t){const n=$u(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=xo(e)?Kf(e):tl(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,l=r*a.y;return{width:i,height:s,x:c,y:l}}function JI(e,t,n){let r;if(t==="viewport")r=rse(e,n);else if(t==="document")r=nse(Us(e));else if(Mt(t))r=ose(t,n);else{const o=Hz(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return mw(r)}function Wz(e,t){const n=_s(e);return n===t||!Mt(n)||el(n)?!1:Ko(n).position==="fixed"||Wz(n,t)}function ase(e,t){const n=t.get(e);if(n)return n;let r=Wc(e,[],!1).filter(s=>Mt(s)&&Jh(s)!=="body"),o=null;const a=Ko(e).position==="fixed";let i=a?_s(e):e;for(;Mt(i)&&!el(i);){const s=Ko(i),c=D8(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Lg(i)&&!c&&Wz(e,i))?r=r.filter(u=>u!==i):o=s,i=_s(i)}return t.set(e,r),r}function ise(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?x_(t)?[]:ase(t,this._c):[].concat(n),r],s=i[0],c=i.reduce((l,u)=>{const d=JI(t,u,o);return l.top=Bo(d.top,l.top),l.right=Ai(d.right,l.right),l.bottom=Ai(d.bottom,l.bottom),l.left=Bo(d.left,l.left),l},JI(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function sse(e){const{width:t,height:n}=zz(e);return{width:t,height:n}}function cse(e,t,n){const r=xo(t),o=Us(t),a=n==="fixed",i=$u(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=tl(0);if(r||!r&&!a)if((Jh(t)!=="body"||Lg(o))&&(s=C_(t)),r){const d=$u(t,!0,a,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else o&&(c.x=qz(o));const l=i.left+s.scrollLeft-c.x,u=i.top+s.scrollTop-c.y;return{x:l,y:u,width:i.width,height:i.height}}function wS(e){return Ko(e).position==="static"}function ZI(e,t){return!xo(e)||Ko(e).position==="fixed"?null:t?t(e):e.offsetParent}function Gz(e,t){const n=wo(e);if(x_(e))return n;if(!xo(e)){let o=_s(e);for(;o&&!el(o);){if(Mt(o)&&!wS(o))return o;o=_s(o)}return n}let r=ZI(e,t);for(;r&&fie(r)&&wS(r);)r=ZI(r,t);return r&&el(r)&&wS(r)&&!D8(r)?n:r||hie(e)||n}const lse=async function(e){const t=this.getOffsetParent||Gz,n=this.getDimensions,r=await n(e.floating);return{reference:cse(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function use(e){return Ko(e).direction==="rtl"}const dse={convertOffsetParentRelativeRectToViewportRelativeRect:ese,getDocumentElement:Us,getClippingRect:ise,getOffsetParent:Gz,getElementRects:lse,getClientRects:tse,getDimensions:sse,getScale:Kf,isElement:Mt,isRTL:use};function fse(e,t){let n=null,r;const o=Us(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const{left:l,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const h=Kb(u),m=Kb(o.clientWidth-(l+d)),p=Kb(o.clientHeight-(u+f)),b=Kb(l),g={rootMargin:-h+"px "+-m+"px "+-p+"px "+-b+"px",threshold:Bo(0,Ai(1,c))||1};let w=!0;function _(C){const x=C[0].intersectionRatio;if(x!==c){if(!w)return i();x?i(!1,x):r=setTimeout(()=>{i(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(_,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return i(!0),a}function hse(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=O8(e),u=o||a?[...l?Wc(l):[],...Wc(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const d=l&&s?fse(l,n):null;let f=-1,h=null;i&&(h=new ResizeObserver(v=>{let[g]=v;g&&g.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let m,p=c?$u(e):null;c&&b();function b(){const v=$u(e);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&n(),p=v,m=requestAnimationFrame(b)}return n(),()=>{var v;u.forEach(g=>{o&&g.removeEventListener("scroll",n),a&&g.removeEventListener("resize",n)}),d==null||d(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const mse=Yie,pse=Qie,gse=Vie,yse=Xie,eO=Gie,bse=(e,t,n)=>{const r=new Map,o={platform:dse,...n},a={...o.platform,_c:r};return Wie(e,t,{...o,platform:a})};var s1=typeof document<"u"?S.useLayoutEffect:S.useEffect;function yw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!yw(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!yw(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Vz(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tO(e,t){const n=Vz(e);return Math.round(t*n)/n}function nO(e){const t=S.useRef(e);return s1(()=>{t.current=e}),t}function vse(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=S.useState(r);yw(f,r)||h(r);const[m,p]=S.useState(null),[b,v]=S.useState(null),g=S.useCallback(I=>{I!==x.current&&(x.current=I,p(I))},[]),w=S.useCallback(I=>{I!==E.current&&(E.current=I,v(I))},[]),_=a||m,C=i||b,x=S.useRef(null),E=S.useRef(null),T=S.useRef(u),k=c!=null,D=nO(c),R=nO(o),F=S.useCallback(()=>{if(!x.current||!E.current)return;const I={placement:t,strategy:n,middleware:f};R.current&&(I.platform=R.current),bse(x.current,E.current,I).then(N=>{const M={...N,isPositioned:!0};B.current&&!yw(T.current,M)&&(T.current=M,Fs.flushSync(()=>{d(M)}))})},[f,t,n,R]);s1(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(I=>({...I,isPositioned:!1})))},[l]);const B=S.useRef(!1);s1(()=>(B.current=!0,()=>{B.current=!1}),[]),s1(()=>{if(_&&(x.current=_),C&&(E.current=C),_&&C){if(D.current)return D.current(_,C,F);F()}},[_,C,F,D,k]);const j=S.useMemo(()=>({reference:x,floating:E,setReference:g,setFloating:w}),[g,w]),P=S.useMemo(()=>({reference:_,floating:C}),[_,C]),O=S.useMemo(()=>{const I={position:n,left:0,top:0};if(!P.floating)return I;const N=tO(P.floating,u.x),M=tO(P.floating,u.y);return s?{...I,transform:"translate("+N+"px, "+M+"px)",...Vz(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:M}},[n,s,P.floating,u.x,u.y]);return S.useMemo(()=>({...u,update:F,refs:j,elements:P,floatingStyles:O}),[u,F,j,P,O])}const wse=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?eO({element:r.current,padding:o}).fn(n):{}:r?eO({element:r,padding:o}).fn(n):{}}}},hd=(e,t)=>({...mse(e),options:[e,t]}),Ese=(e,t)=>({...pse(e),options:[e,t]}),_se=(e,t)=>({...gse(e),options:[e,t]}),S_=(e,t)=>({...yse(e),options:[e,t]}),xse=(e,t)=>({...wse(e),options:[e,t]}),Kz={...sU},Cse=Kz.useInsertionEffect,Sse=Cse||(e=>e());function Pc(e){const t=S.useRef(()=>{});return Sse(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+Tse++;function Ase(){const[e,t]=S.useState(()=>rO?oO():void 0);return qo(()=>{e==null&&t(oO())},[]),S.useEffect(()=>{rO=!0},[]),e}const Dse=Kz.useId,T_=Dse||Ase,kse=S.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:a}},width:i=14,height:s=7,tipRadius:c=0,strokeWidth:l=0,staticOffset:u,stroke:d,d:f,style:{transform:h,...m}={},...p}=t,b=T_(),[v,g]=S.useState(!1);if(qo(()=>{if(!o)return;Ko(o).direction==="rtl"&&g(!0)},[o]),!o)return null;const w=l*2,_=w/2,C=i/2*(c/-8+1),x=s/2*c/4,[E,T]=r.split("-"),k=!!f,D=E==="top"||E==="bottom",R=u&&T==="end"?"bottom":"top";let F=u&&T==="end"?"right":"left";u&&v&&(F=T==="end"?"left":"right");const B=(a==null?void 0:a.x)!=null?u||a.x:"",j=(a==null?void 0:a.y)!=null?u||a.y:"",P=f||"M0,0"+(" H"+i)+(" L"+(i-C)+","+(s-x))+(" Q"+i/2+","+s+" "+C+","+(s-x))+" Z",O={top:k?"rotate(180deg)":"",left:k?"rotate(90deg)":"rotate(-90deg)",bottom:k?"":"rotate(180deg)",right:k?"rotate(-90deg)":"rotate(90deg)"}[E];return S.createElement("svg",bw({},p,{"aria-hidden":!0,ref:n,width:k?i:i+w,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[F]:B,[R]:j,[E]:D||k?"100%":"calc(100% - "+w/2+"px)",transform:""+O+(h??""),...m}}),w>0&&S.createElement("path",{clipPath:"url(#"+b+")",fill:"none",stroke:d,strokeWidth:w+(f?0:1),d:P}),S.createElement("path",{stroke:w&&!f?p.fill:"none",d:P}),S.createElement("clipPath",{id:b},S.createElement("rect",{x:-_,y:_*(k?-1:1),width:i+w,height:i})))});function jse(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Pse=S.createContext(null),Ise=S.createContext(null),R8=()=>{var e;return((e=S.useContext(Pse))==null?void 0:e.id)||null},N8=()=>S.useContext(Ise);function Ug(e){return"data-floating-ui-"+e}function gu(e){const t=S.useRef(e);return qo(()=>{t.current=e}),t}const aO=Ug("safe-polygon");function ES(e,t,n){return n&&!Q0(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function A_(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:a,elements:i}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,h=N8(),m=R8(),p=gu(l),b=gu(c),v=gu(n),g=S.useRef(),w=S.useRef(-1),_=S.useRef(),C=S.useRef(-1),x=S.useRef(!0),E=S.useRef(!1),T=S.useRef(()=>{}),k=S.useCallback(()=>{var P;const O=(P=o.current.openEvent)==null?void 0:P.type;return(O==null?void 0:O.includes("mouse"))&&O!=="mousedown"},[o]);S.useEffect(()=>{if(!s)return;function P(O){let{open:I}=O;I||(clearTimeout(w.current),clearTimeout(C.current),x.current=!0)}return a.on("openchange",P),()=>{a.off("openchange",P)}},[s,a]),S.useEffect(()=>{if(!s||!p.current||!n)return;function P(I){k()&&r(!1,I,"hover")}const O=Nc(i.floating).documentElement;return O.addEventListener("mouseleave",P),()=>{O.removeEventListener("mouseleave",P)}},[i.floating,n,r,s,p,k]);const D=S.useCallback(function(P,O,I){O===void 0&&(O=!0),I===void 0&&(I="hover");const N=ES(b.current,"close",g.current);N&&!_.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,P,I),N)):O&&(clearTimeout(w.current),r(!1,P,I))},[b,r]),R=Pc(()=>{T.current(),_.current=void 0}),F=Pc(()=>{if(E.current){const P=Nc(i.floating).body;P.style.pointerEvents="",P.removeAttribute(aO),E.current=!1}});S.useEffect(()=>{if(!s)return;function P(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function O(L){if(clearTimeout(w.current),x.current=!1,u&&!Q0(g.current)||d>0&&!ES(b.current,"open"))return;const X=ES(b.current,"open",g.current);X?w.current=window.setTimeout(()=>{v.current||r(!0,L,"hover")},X):r(!0,L,"hover")}function I(L){if(P())return;T.current();const X=Nc(i.floating);if(clearTimeout(C.current),p.current&&o.current.floatingContext){n||clearTimeout(w.current),_.current=p.current({...o.current.floatingContext,tree:h,x:L.clientX,y:L.clientY,onClose(){F(),R(),D(L,!0,"safe-polygon")}});const U=_.current;X.addEventListener("mousemove",U),T.current=()=>{X.removeEventListener("mousemove",U)};return}(g.current==="touch"?!ls(i.floating,L.relatedTarget):!0)&&D(L)}function N(L){P()||o.current.floatingContext&&(p.current==null||p.current({...o.current.floatingContext,tree:h,x:L.clientX,y:L.clientY,onClose(){F(),R(),D(L)}})(L))}if(Mt(i.domReference)){var M;const L=i.domReference;return n&&L.addEventListener("mouseleave",N),(M=i.floating)==null||M.addEventListener("mouseleave",N),f&&L.addEventListener("mousemove",O,{once:!0}),L.addEventListener("mouseenter",O),L.addEventListener("mouseleave",I),()=>{var X;n&&L.removeEventListener("mouseleave",N),(X=i.floating)==null||X.removeEventListener("mouseleave",N),f&&L.removeEventListener("mousemove",O),L.removeEventListener("mouseenter",O),L.removeEventListener("mouseleave",I)}}},[i,s,e,u,d,f,D,R,F,r,n,v,h,b,p,o]),qo(()=>{var P;if(s&&n&&(P=p.current)!=null&&P.__options.blockPointerEvents&&k()){const I=Nc(i.floating).body;I.setAttribute(aO,""),I.style.pointerEvents="none",E.current=!0;const N=i.floating;if(Mt(i.domReference)&&N){var O;const M=i.domReference,L=h==null||(O=h.nodesRef.current.find(X=>X.id===m))==null||(O=O.context)==null?void 0:O.elements.floating;return L&&(L.style.pointerEvents=""),M.style.pointerEvents="auto",N.style.pointerEvents="auto",()=>{M.style.pointerEvents="",N.style.pointerEvents=""}}}},[s,n,m,i,h,p,k]),qo(()=>{n||(g.current=void 0,R(),F())},[n,R,F]),S.useEffect(()=>()=>{R(),clearTimeout(w.current),clearTimeout(C.current),F()},[s,i.domReference,R,F]);const B=S.useMemo(()=>{function P(O){g.current=O.pointerType}return{onPointerDown:P,onPointerEnter:P,onMouseMove(O){const{nativeEvent:I}=O;function N(){!x.current&&!v.current&&r(!0,I,"hover")}u&&!Q0(g.current)||n||d===0||(clearTimeout(C.current),g.current==="touch"?N():C.current=window.setTimeout(N,d))}}},[u,r,n,v,d]),j=S.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(P){D(P.nativeEvent,!1)}}),[D]);return S.useMemo(()=>s?{reference:B,floating:j}:{},[s,B,j])}function c1(e,t){let n=e.filter(o=>{var a;return o.parentId===t&&((a=o.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(o=>{var a;return(a=r)==null?void 0:a.some(i=>{var s;return o.parentId===i.id&&((s=o.context)==null?void 0:s.open)})}),n=n.concat(r);return n}const Yz=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Qz(e,t){const n=$z(e,Yz());t==="prev"&&n.reverse();const r=n.indexOf(OA(Nc(e)));return n.slice(r+1)[0]}function Ose(){return Qz(document.body,"next")}function Rse(){return Qz(document.body,"prev")}function _S(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!ls(n,r)}function Nse(e){$z(e,Yz()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Bse(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Xz={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let Fse;function iO(e){e.key==="Tab"&&(e.target,clearTimeout(Fse))}const sO=S.forwardRef(function(t,n){const[r,o]=S.useState();qo(()=>(Oz()&&o("button"),document.addEventListener("keydown",iO),()=>{document.removeEventListener("keydown",iO)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Ug("focus-guard")]:"",style:Xz};return S.createElement("span",bw({},t,a))}),Jz=S.createContext(null),cO=Ug("portal");function Mse(e){e===void 0&&(e={});const{id:t,root:n}=e,r=T_(),o=Lse(),[a,i]=S.useState(null),s=S.useRef(null);return qo(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),qo(()=>{if(!r||s.current)return;const c=t?document.getElementById(t):null;if(!c)return;const l=document.createElement("div");l.id=r,l.setAttribute(cO,""),c.appendChild(l),s.current=l,i(l)},[t,r]),qo(()=>{if(!r||s.current)return;let c=n||(o==null?void 0:o.portalNode);c&&!Mt(c)&&(c=c.current),c=c||document.body;let l=null;t&&(l=document.createElement("div"),l.id=t,c.appendChild(l));const u=document.createElement("div");u.id=r,u.setAttribute(cO,""),c=l||c,c.appendChild(u),s.current=u,i(u)},[t,n,r,o]),a}function md(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,a=Mse({id:n,root:r}),[i,s]=S.useState(null),c=S.useRef(null),l=S.useRef(null),u=S.useRef(null),d=S.useRef(null),f=!!i&&!i.modal&&i.open&&o&&!!(r||a);return S.useEffect(()=>{if(!a||!o||i!=null&&i.modal)return;function h(m){a&&_S(m)&&(m.type==="focusin"?Bse:Nse)(a)}return a.addEventListener("focusin",h,!0),a.addEventListener("focusout",h,!0),()=>{a.removeEventListener("focusin",h,!0),a.removeEventListener("focusout",h,!0)}},[a,o,i==null?void 0:i.modal]),S.createElement(Jz.Provider,{value:S.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:l,beforeInsideRef:u,afterInsideRef:d,portalNode:a,setFocusManagerState:s}),[o,a])},f&&a&&S.createElement(sO,{"data-type":"outside",ref:c,onFocus:h=>{if(_S(h,a)){var m;(m=u.current)==null||m.focus()}else{const p=Rse()||(i==null?void 0:i.refs.domReference.current);p==null||p.focus()}}}),f&&a&&S.createElement("span",{"aria-owns":a.id,style:Xz}),a&&Fs.createPortal(t,a),f&&a&&S.createElement(sO,{"data-type":"outside",ref:l,onFocus:h=>{if(_S(h,a)){var m;(m=d.current)==null||m.focus()}else{const p=Ose()||(i==null?void 0:i.refs.domReference.current);p==null||p.focus(),i!=null&&i.closeOnFocusOut&&(i==null||i.onOpenChange(!1,h.nativeEvent))}}}))}const Lse=()=>S.useContext(Jz);function lO(e){return xo(e.target)&&e.target.tagName==="BUTTON"}function uO(e){return Rz(e)}function tm(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:a}}=e,{enabled:i=!0,event:s="click",toggle:c=!0,ignoreMouse:l=!1,keyboardHandlers:u=!0}=t,d=S.useRef(),f=S.useRef(!1),h=S.useMemo(()=>({onPointerDown(m){d.current=m.pointerType},onMouseDown(m){const p=d.current;m.button===0&&s!=="click"&&(Q0(p,!0)&&l||(n&&c&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?r(!1,m.nativeEvent,"click"):(m.preventDefault(),r(!0,m.nativeEvent,"click"))))},onClick(m){const p=d.current;if(s==="mousedown"&&d.current){d.current=void 0;return}Q0(p,!0)&&l||(n&&c&&(!o.current.openEvent||o.current.openEvent.type==="click")?r(!1,m.nativeEvent,"click"):r(!0,m.nativeEvent,"click"))},onKeyDown(m){d.current=void 0,!(m.defaultPrevented||!u||lO(m))&&(m.key===" "&&!uO(a)&&(m.preventDefault(),f.current=!0),m.key==="Enter"&&r(!(n&&c),m.nativeEvent,"click"))},onKeyUp(m){m.defaultPrevented||!u||lO(m)||uO(a)||m.key===" "&&f.current&&(f.current=!1,r(!(n&&c),m.nativeEvent,"click"))}}),[o,a,s,l,u,r,n,c]);return S.useMemo(()=>i?{reference:h}:{},[i,h])}const Use={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},$se={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},dO=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function pd(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:a}=e,{enabled:i=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:h,capture:m}=t,p=N8(),b=Pc(typeof c=="function"?c:()=>!1),v=typeof c=="function"?b:c,g=S.useRef(!1),w=S.useRef(!1),{escapeKey:_,outsidePress:C}=dO(h),{escapeKey:x,outsidePress:E}=dO(m),T=Pc(j=>{var P;if(!n||!i||!s||j.key!=="Escape")return;const O=(P=a.current.floatingContext)==null?void 0:P.nodeId,I=p?c1(p.nodesRef.current,O):[];if(!_&&(j.stopPropagation(),I.length>0)){let N=!0;if(I.forEach(M=>{var L;if((L=M.context)!=null&&L.open&&!M.context.dataRef.current.__escapeKeyBubbles){N=!1;return}}),!N)return}r(!1,yie(j)?j.nativeEvent:j,"escape-key")}),k=Pc(j=>{var P;const O=()=>{var I;T(j),(I=su(j))==null||I.removeEventListener("keydown",O)};(P=su(j))==null||P.addEventListener("keydown",O)}),D=Pc(j=>{var P;const O=g.current;g.current=!1;const I=w.current;if(w.current=!1,l==="click"&&I||O||typeof v=="function"&&!v(j))return;const N=su(j),M="["+Ug("inert")+"]",L=Nc(o.floating).querySelectorAll(M);let X=Mt(N)?N:null;for(;X&&!el(X);){const Z=_s(X);if(el(Z)||!Mt(Z))break;X=Z}if(L.length&&Mt(N)&&!bie(N)&&!ls(N,o.floating)&&Array.from(L).every(Z=>!ls(X,Z)))return;if(xo(N)&&B){const Z=N.clientWidth>0&&N.scrollWidth>N.clientWidth,ae=N.clientHeight>0&&N.scrollHeight>N.clientHeight;let ne=ae&&j.offsetX>N.clientWidth;if(ae&&Ko(N).direction==="rtl"&&(ne=j.offsetX<=N.offsetWidth-N.clientWidth),ne||Z&&j.offsetY>N.clientHeight)return}const J=(P=a.current.floatingContext)==null?void 0:P.nodeId,U=p&&c1(p.nodesRef.current,J).some(Z=>{var ae;return vS(j,(ae=Z.context)==null?void 0:ae.elements.floating)});if(vS(j,o.floating)||vS(j,o.domReference)||U)return;const G=p?c1(p.nodesRef.current,J):[];if(G.length>0){let Z=!0;if(G.forEach(ae=>{var ne;if((ne=ae.context)!=null&&ne.open&&!ae.context.dataRef.current.__outsidePressBubbles){Z=!1;return}}),!Z)return}r(!1,j,"outside-press")}),R=Pc(j=>{var P;const O=()=>{var I;D(j),(I=su(j))==null||I.removeEventListener(l,O)};(P=su(j))==null||P.addEventListener(l,O)});S.useEffect(()=>{if(!n||!i)return;a.current.__escapeKeyBubbles=_,a.current.__outsidePressBubbles=C;function j(I){r(!1,I,"ancestor-scroll")}const P=Nc(o.floating);s&&P.addEventListener("keydown",x?k:T,x),v&&P.addEventListener(l,E?R:D,E);let O=[];return f&&(Mt(o.domReference)&&(O=Wc(o.domReference)),Mt(o.floating)&&(O=O.concat(Wc(o.floating))),!Mt(o.reference)&&o.reference&&o.reference.contextElement&&(O=O.concat(Wc(o.reference.contextElement)))),O=O.filter(I=>{var N;return I!==((N=P.defaultView)==null?void 0:N.visualViewport)}),O.forEach(I=>{I.addEventListener("scroll",j,{passive:!0})}),()=>{s&&P.removeEventListener("keydown",x?k:T,x),v&&P.removeEventListener(l,E?R:D,E),O.forEach(I=>{I.removeEventListener("scroll",j)})}},[a,o,s,v,l,n,r,f,i,_,C,T,x,k,D,E,R]),S.useEffect(()=>{g.current=!1},[v,l]);const F=S.useMemo(()=>({onKeyDown:T,[Use[d]]:j=>{u&&r(!1,j.nativeEvent,"reference-press")}}),[T,r,u,d]),B=S.useMemo(()=>({onKeyDown:T,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[$se[l]]:()=>{g.current=!0}}),[T,l]);return S.useMemo(()=>i?{reference:F,floating:B}:{},[i,F,B])}function zse(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=T_(),a=S.useRef({}),[i]=S.useState(()=>jse()),s=R8()!=null,[c,l]=S.useState(r.reference),u=Pc((h,m,p)=>{a.current.openEvent=h?m:void 0,i.emit("openchange",{open:h,event:m,reason:p,nested:s}),n==null||n(h,m,p)}),d=S.useMemo(()=>({setPositionReference:l}),[]),f=S.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return S.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:i,floatingId:o,refs:d}),[t,u,f,i,o,d])}function gd(e){e===void 0&&(e={});const{nodeId:t}=e,n=zse({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=S.useState(null),[s,c]=S.useState(null),u=(o==null?void 0:o.reference)||a,d=S.useRef(null),f=N8();qo(()=>{u&&(d.current=u)},[u]);const h=vse({...e,elements:{...o,...s&&{reference:s}}}),m=S.useCallback(w=>{const _=Mt(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;c(_),h.refs.setReference(_)},[h.refs]),p=S.useCallback(w=>{(Mt(w)||w===null)&&(d.current=w,i(w)),(Mt(h.refs.reference.current)||h.refs.reference.current===null||w!==null&&!Mt(w))&&h.refs.setReference(w)},[h.refs]),b=S.useMemo(()=>({...h.refs,setReference:p,setPositionReference:m,domReference:d}),[h.refs,p,m]),v=S.useMemo(()=>({...h.elements,domReference:u}),[h.elements,u]),g=S.useMemo(()=>({...h,...r,refs:b,elements:v,nodeId:t}),[h,b,v,t,r]);return qo(()=>{r.dataRef.current.floatingContext=g;const w=f==null?void 0:f.nodesRef.current.find(_=>_.id===t);w&&(w.context=g)}),S.useMemo(()=>({...h,context:g,refs:b,elements:v}),[h,b,v,g])}function Hse(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:a,elements:i}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=S.useRef(!1),u=S.useRef(),d=S.useRef(!0);S.useEffect(()=>{if(!s)return;const h=wo(i.domReference);function m(){!n&&xo(i.domReference)&&i.domReference===OA(Nc(i.domReference))&&(l.current=!0)}function p(){d.current=!0}return h.addEventListener("blur",m),h.addEventListener("keydown",p,!0),()=>{h.removeEventListener("blur",m),h.removeEventListener("keydown",p,!0)}},[i.domReference,n,s]),S.useEffect(()=>{if(!s)return;function h(m){let{reason:p}=m;(p==="reference-press"||p==="escape-key")&&(l.current=!0)}return o.on("openchange",h),()=>{o.off("openchange",h)}},[o,s]),S.useEffect(()=>()=>{clearTimeout(u.current)},[]);const f=S.useMemo(()=>({onPointerDown(h){mie(h.nativeEvent)||(d.current=!1)},onMouseLeave(){l.current=!1},onFocus(h){if(l.current)return;const m=su(h.nativeEvent);if(c&&Mt(m))try{if(Oz()&&pie())throw Error();if(!m.matches(":focus-visible"))return}catch{if(!d.current&&!Rz(m))return}r(!0,h.nativeEvent,"focus")},onBlur(h){l.current=!1;const m=h.relatedTarget,p=h.nativeEvent,b=Mt(m)&&m.hasAttribute(Ug("focus-guard"))&&m.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{var v;const g=OA(i.domReference?i.domReference.ownerDocument:document);!m&&g===i.domReference||ls((v=a.current.floatingContext)==null?void 0:v.refs.floating.current,g)||ls(i.domReference,g)||b||r(!1,p,"focus")})}}),[a,i.domReference,r,c]);return S.useMemo(()=>s?{reference:f}:{},[s,f])}const fO="active",hO="selected";function xS(e,t,n){const r=new Map,o=n==="item";let a=e;if(o&&e){const{[fO]:i,[hO]:s,...c}=e;a=c}return{...n==="floating"&&{tabIndex:-1},...a,...t.map(i=>{const s=i?i[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((i,s)=>(s&&Object.entries(s).forEach(c=>{let[l,u]=c;if(!(o&&[fO,hO].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof u=="function"){var d;(d=r.get(l))==null||d.push(u),i[l]=function(){for(var f,h=arguments.length,m=new Array(h),p=0;pb(...m)).find(b=>b!==void 0)}}}else i[l]=u}),i),{})}}function yd(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),o=S.useCallback(s=>xS(s,e,"reference"),t),a=S.useCallback(s=>xS(s,e,"floating"),n),i=S.useCallback(s=>xS(s,e,"item"),r);return S.useMemo(()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i}),[o,a,i])}const qse=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Wse(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:a=!0,role:i="dialog"}=t,s=(n=qse.get(i))!=null?n:i,c=T_(),u=R8()!=null,d=S.useMemo(()=>s==="tooltip"||i==="label"?{["aria-"+(i==="label"?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?o:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:c},...s==="menu"&&u&&{role:"menuitem"},...i==="select"&&{"aria-autocomplete":"none"},...i==="combobox"&&{"aria-autocomplete":"list"}},[s,o,u,r,c,i]),f=S.useMemo(()=>{const m={id:o,...s&&{role:s}};return s==="tooltip"||i==="label"?m:{...m,...s==="menu"&&{"aria-labelledby":c}}},[s,o,c,i]),h=S.useCallback(m=>{let{active:p,selected:b}=m;const v={role:"option",...p&&{id:o+"-option"}};switch(i){case"select":return{...v,"aria-selected":p&&b};case"combobox":return{...v,...p&&{"aria-selected":!0}}}return{}},[o,i]);return S.useMemo(()=>a?{reference:d,floating:f,item:h}:{},[a,d,f,h])}const mO=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Kd(e,t){return typeof e=="function"?e(t):e}function Gse(e,t){const[n,r]=S.useState(e);return e&&!n&&r(!0),S.useEffect(()=>{if(!e&&n){const o=setTimeout(()=>r(!1),t);return()=>clearTimeout(o)}},[e,n,t]),n}function Vse(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,i=(typeof o=="number"?o:o.close)||0,[s,c]=S.useState("unmounted"),l=Gse(n,i);return!l&&s==="close"&&c("unmounted"),qo(()=>{if(r){if(n){c("initial");const u=requestAnimationFrame(()=>{c("open")});return()=>{cancelAnimationFrame(u)}}c("close")}},[n,r]),{isMounted:l,status:s}}function bd(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:o,common:a,duration:i=250}=t,s=e.placement,c=s.split("-")[0],l=S.useMemo(()=>({side:c,placement:s}),[c,s]),u=typeof i=="number",d=(u?i:i.open)||0,f=(u?i:i.close)||0,[h,m]=S.useState(()=>({...Kd(a,l),...Kd(n,l)})),{isMounted:p,status:b}=Vse(e,{duration:i}),v=gu(n),g=gu(r),w=gu(o),_=gu(a);return qo(()=>{const C=Kd(v.current,l),x=Kd(w.current,l),E=Kd(_.current,l),T=Kd(g.current,l)||Object.keys(C).reduce((k,D)=>(k[D]="",k),{});if(b==="initial"&&m(k=>({transitionProperty:k.transitionProperty,...E,...C})),b==="open"&&m({transitionProperty:Object.keys(T).map(mO).join(","),transitionDuration:d+"ms",...E,...T}),b==="close"){const k=x||C;m({transitionProperty:Object.keys(k).map(mO).join(","),transitionDuration:f+"ms",...E,...k})}},[f,w,v,g,_,d,b,l]),{isMounted:p,styles:h}}function pO(e,t){const[n,r]=e;let o=!1;const a=t.length;for(let i=0,s=a-1;i=r!=d>=r&&n<=(u-c)*(r-l)/(d-l)+c&&(o=!o)}return o}function Kse(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Zz(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,a=!1,i=null,s=null,c=performance.now();function l(d,f){const h=performance.now(),m=h-c;if(i===null||s===null||m===0)return i=d,s=f,c=h,null;const p=d-i,b=f-s,g=Math.sqrt(p*p+b*b)/m;return i=d,s=f,c=h,g}const u=d=>{let{x:f,y:h,placement:m,elements:p,onClose:b,nodeId:v,tree:g}=d;return function(_){function C(){clearTimeout(o),b()}if(clearTimeout(o),!p.domReference||!p.floating||m==null||f==null||h==null)return;const{clientX:x,clientY:E}=_,T=[x,E],k=su(_),D=_.type==="mouseleave",R=ls(p.floating,k),F=ls(p.domReference,k),B=p.domReference.getBoundingClientRect(),j=p.floating.getBoundingClientRect(),P=m.split("-")[0],O=f>j.right-j.width/2,I=h>j.bottom-j.height/2,N=Kse(T,B),M=j.width>B.width,L=j.height>B.height,X=(M?B:j).left,J=(M?B:j).right,U=(L?B:j).top,G=(L?B:j).bottom;if(R&&(a=!0,!D))return;if(F&&(a=!1),F&&!D){a=!0;return}if(D&&Mt(_.relatedTarget)&&ls(p.floating,_.relatedTarget)||g&&c1(g.nodesRef.current,v).some(ne=>{let{context:ie}=ne;return ie==null?void 0:ie.open}))return;if(P==="top"&&h>=B.bottom-1||P==="bottom"&&h<=B.top+1||P==="left"&&f>=B.right-1||P==="right"&&f<=B.left+1)return C();let Z=[];switch(P){case"top":Z=[[X,B.top+1],[X,j.bottom-1],[J,j.bottom-1],[J,B.top+1]];break;case"bottom":Z=[[X,j.top+1],[X,B.bottom-1],[J,B.bottom-1],[J,j.top+1]];break;case"left":Z=[[j.right-1,G],[j.right-1,U],[B.left+1,U],[B.left+1,G]];break;case"right":Z=[[B.right-1,G],[B.right-1,U],[j.left+1,U],[j.left+1,G]];break}function ae(ne){let[ie,te]=ne;switch(P){case"top":{const ee=[M?ie+t/2:O?ie+t*4:ie-t*4,te+t+1],re=[M?ie-t/2:O?ie+t*4:ie-t*4,te+t+1],z=[[j.left,O||M?j.bottom-t:j.top],[j.right,O?M?j.bottom-t:j.top:j.bottom-t]];return[ee,re,...z]}case"bottom":{const ee=[M?ie+t/2:O?ie+t*4:ie-t*4,te-t],re=[M?ie-t/2:O?ie+t*4:ie-t*4,te-t],z=[[j.left,O||M?j.top+t:j.bottom],[j.right,O?M?j.top+t:j.bottom:j.top+t]];return[ee,re,...z]}case"left":{const ee=[ie+t+1,L?te+t/2:I?te+t*4:te-t*4],re=[ie+t+1,L?te-t/2:I?te+t*4:te-t*4];return[...[[I||L?j.right-t:j.left,j.top],[I?L?j.right-t:j.left:j.right-t,j.bottom]],ee,re]}case"right":{const ee=[ie-t,L?te+t/2:I?te+t*4:te-t*4],re=[ie-t,L?te-t/2:I?te+t*4:te-t*4],z=[[I||L?j.left+t:j.right,j.top],[I?L?j.left+t:j.right:j.left+t,j.bottom]];return[ee,re,...z]}}}if(!pO([x,E],Z)){if(a&&!N)return C();if(!D&&r){const ne=l(_.clientX,_.clientY);if(ne!==null&&ne<.1)return C()}pO([x,E],ae([f,h]))?!a&&r&&(o=window.setTimeout(C,40)):C()}}};return u.__options={blockPointerEvents:n},u}function At({children:e,content:t,enabledSafePolygon:n,className:r,contentClassName:o,enabled:a=!0,status:i="default"}){const[s,c]=S.useState(!1),l=S.useRef(null),{refs:u,context:d,floatingStyles:f}=gd({open:s,onOpenChange:c,placement:"top",middleware:[hd(10),_se(),Ese(),xse({element:l})],whileElementsMounted:hse}),h=A_(d,{move:!1,handleClose:n?Zz():void 0}),m=Hse(d),p=pd(d),b=Wse(d,{role:"tooltip"}),{getReferenceProps:v,getFloatingProps:g}=yd([h,m,p,b]),{styles:w,isMounted:_}=bd(d,{initial:{transform:"scale(0.5)",opacity:0},open:{transform:"scale(1)",opacity:1},close:{transform:"scale(0.5)",opacity:0}});return a?y.jsxs(y.Fragment,{children:[y.jsx("div",{ref:u.setReference,...v(),className:r,children:e}),_&&y.jsx(md,{children:y.jsxs("div",{ref:u.setFloating,style:f,...g(),className:"z-30",children:[y.jsx(kse,{ref:l,style:w,context:d,fill:i==="warning"?"#FAAD14":"#0085FF"}),y.jsx("div",{style:w,className:`px-medium py-small flex items-center rounded-lg ${i==="warning"?"bg-app-orange":"bg-primary"} ${o}`,children:typeof t=="string"?y.jsx("span",{className:"text-xs font-semibold",children:t}):t})]})})]}):y.jsx("div",{className:r,children:e})}function Yse(){return y.jsxs("div",{className:"app-footer gap-medium px-medium flex w-full items-center justify-center lg:justify-between lg:px-5",children:[y.jsx("span",{className:"text-xs font-semibold text-white/50",children:`© ${new Date().getFullYear()} Helix Bridge`}),y.jsx("div",{className:"h-3 w-[1px] bg-white/30 lg:hidden"}),y.jsxs("div",{className:"flex items-center gap-5",children:[y.jsx(Qse,{}),y.jsx("div",{className:"hidden h-3 w-[1px] bg-white/30 lg:block"}),y.jsx(Xse,{})]})]})}function Qse(){const e=[{label:"Explorer",path:"/explorer"},{label:"XToken",path:"https://xtoken.box",external:!0},{label:"Docs",path:"https://docs.helixbridge.app",external:!0}],[t,n]=S.useState({label:"Saa",path:"ss",pc:!0,external:!0});return S.useEffect(()=>{window.location.hostname==="helixbridge.app"?n(r=>({...r,label:"Testnet",path:"https://testnet.helixbridge.app"})):window.location.hostname==="testnet.helixbridge.app"?n(r=>({...r,label:"Mainnet",path:"https://helixbridge.app"})):window.location.hostname==="helix-stg-mainnet.vercel.app"?n(r=>({...r,label:"Testnet",path:"https://helix-stg-testnet.vercel.app"})):window.location.hostname==="helix-stg-testnet.vercel.app"?n(r=>({...r,label:"Mainnet",path:"https://helix-stg-mainnet.vercel.app"})):window.location.hostname==="helix-dev-mainnet.vercel.app"?n(r=>({...r,label:"Testnet",path:"https://helix-dev-testnet.vercel.app"})):window.location.hostname==="helix-dev-testnet.vercel.app"?n(r=>({...r,label:"Mainnet",path:"https://helix-dev-mainnet.vercel.app"})):n(r=>({...r,label:"",path:""}))},[]),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[e.concat(t).filter(r=>r.path).map(r=>r.external?y.jsx("a",{href:r.path,target:"_blank",rel:"noopener noreferrer",className:`text-xs font-semibold text-white/50 transition hover:text-white hover:underline active:scale-95 ${r.pc?"hidden lg:inline":""}`,children:r.label},r.label):y.jsx(Su,{to:r.path,className:`text-xs font-semibold text-white/50 transition hover:text-white hover:underline active:scale-95 ${r.pc?"hidden lg:inline":""}`,children:r.label},r.label)),window.location.hostname==="helixbridge.app"&&y.jsx(At,{contentClassName:"w-72",content:"For a fully decentralized experience, you can use the IPFS deployed version.",children:y.jsx("a",{href:"https://helixbridge.eth.limo",target:"_blank",rel:"noopener noreferrer",className:"hidden text-xs font-semibold text-white/50 transition hover:text-white hover:underline active:scale-95 lg:inline",children:"IPFS mirror"})})]})}function Xse(){const e=[{link:"https://github.com/helix-bridge",icon:y.jsx("img",{width:16,height:16,alt:"Github",src:"images/social/github.svg"})},{link:"https://x.com/helixofficialx",icon:y.jsx("img",{width:16,height:16,alt:"X",src:"images/social/x.svg"})},{link:"https://discord.gg/6XyyNGugdE",icon:y.jsx("img",{width:20,height:20,alt:"Discord",src:"images/social/discord.svg"})},{link:"mailto:hello@helixbridge.app",icon:y.jsx("img",{width:16,height:16,alt:"Email",src:"images/social/email.svg"})}];return y.jsx("div",{className:"hidden items-center gap-5 lg:flex",children:e.map((t,n)=>y.jsx("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"opacity-60 transition hover:-translate-y-[2px] hover:opacity-100 active:translate-y-0",children:t.icon},n))})}const eH=S.createContext({}),$g=()=>S.useContext(eH),tH=S.createContext({}),nH=()=>S.useContext(tH),rH=S.createContext({}),B8=()=>S.useContext(rH);function zg(e){const[t,n]=S.useState(e),r=S.useCallback(()=>n(!0),[]),o=S.useCallback(()=>n(!1),[]),a=S.useCallback(()=>n(i=>!i),[]);return{state:t,toggle:a,setTrue:r,setFalse:o,setState:n}}function zu(e,t=5,n=4){return e.length>16?`${e.slice(0,t)}...${e.slice(-1*n)}`:e}const Jse="modulepreload",Zse=function(e,t){return new URL(e,t).href},gO={},me=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(c=>{if(c=Zse(c,r),c in gO)return;gO[c]=!0;const l=c.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(!!r)for(let h=a.length-1;h>=0;h--){const m=a[h];if(m.href===c&&(!l||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${u}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":Jse,l||(f.as="script",f.crossOrigin=""),f.href=c,s&&f.setAttribute("nonce",s),document.head.appendChild(f),l)return new Promise((h,m)=>{f.addEventListener("load",h),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}return o.then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})},ece="0.9.8";let Mr=class FA extends Error{constructor(t,n={}){var i;const r=n.cause instanceof FA?n.cause.details:(i=n.cause)!=null&&i.message?n.cause.message:n.details,o=n.cause instanceof FA&&n.cause.docsPath||n.docsPath,a=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${ece}`].join(` -`);super(a),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 tce(e){return e}function _l(e,t){const n=e.exec(t);return n==null?void 0:n.groups}const oH=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,aH=/^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)?$/,iH=/^\(.+?\).*?$/,yO=/^tuple(?(\[(\d*)\])*)$/;function vw(e){let t=e.type;if(yO.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let o=0;o[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function rce(e){return sH.test(e)}function oce(e){return _l(sH,e)}const cH=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function ace(e){return cH.test(e)}function ice(e){return _l(cH,e)}const lH=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;function sce(e){return lH.test(e)}function cce(e){return _l(lH,e)}const uH=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;function Hg(e){return uH.test(e)}function lce(e){return _l(uH,e)}const dH=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;function uce(e){return dH.test(e)}function dce(e){return _l(dH,e)}const fce=/^fallback\(\)$/;function hce(e){return fce.test(e)}const mce=/^receive\(\) external payable$/;function pce(e){return mce.test(e)}const ww=new Set(["memory","indexed","storage","calldata"]),gce=new Set(["indexed"]),MA=new Set(["calldata","memory","storage"]);class fH extends Mr{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human.html#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class hH extends Mr{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 mH extends Mr{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 pH extends Mr{constructor({param:t}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(t,null,2)})`,docsPath:"/api/human.html#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}class gH extends Mr{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human.html#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class yH extends Mr{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class bH extends Mr{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 vH extends Mr{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 wH extends Mr{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 EH extends Mr{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 jf extends Mr{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class _H extends Mr{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class xH extends Mr{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 CH extends Mr{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 SH extends Mr{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 yce(e,t){return t?`${t}:${e}`:e}const CS=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 LA(e,t={}){if(sce(e)){const n=cce(e);if(!n)throw new jf({signature:e,type:"function"});const r=Mo(n.parameters),o=[],a=r.length;for(let s=0;s[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,vce=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,wce=/^u?int$/;function Va(e,t){var d,f;const n=yce(e,t==null?void 0:t.type);if(CS.has(n))return CS.get(n);const r=iH.test(e),o=_l(r?vce:bce,e);if(!o)throw new yH({param:e});if(o.name&&_ce(o.name))throw new bH({param:e,name:o.name});const a=o.name?{name:o.name}:{},i=o.modifier==="indexed"?{indexed:!0}:{},s=(t==null?void 0:t.structs)??{};let c,l={};if(r){c="tuple";const h=Mo(o.type),m=[],p=h.length;for(let b=0;b[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/;function AH(e,t,n=new Set){const r=[],o=e.length;for(let a=0;a{var o;return((o=e[t.name||n])==null?void 0:o.call(e,r))??t(e,r)}}function xs(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new qce(e.type);return`${e.name}(${k_(e.inputs,{includeName:t})})`}function k_(e,{includeName:t=!1}={}){return e?e.map(n=>jce(n,{includeName:t})).join(t?", ":","):""}function jce(e,{includeName:t}){return e.type.startsWith("tuple")?`(${k_(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function Ea(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Pn(e){return Ea(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const Pce="1.21.3",Ice=e=>e,j_=e=>e,Oce=()=>`viem@${Pce}`;let de=class UA extends Error{constructor(t,n={}){var a;super(),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:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:Oce()});const r=n.cause instanceof UA?n.cause.details:(a=n.cause)!=null&&a.message?n.cause.message:n.details,o=n.cause instanceof UA&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(` -`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return DH(this,t)}};function DH(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e?DH(e.cause,t):t?null:e}class Rce extends de{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(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class bO extends de{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(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class M8 extends de{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(` -`),{metaMessages:[`Params: (${k_(n,{includeName:!0})})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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 P_ extends de{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class Nce extends de{constructor({expectedLength:t,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class Bce extends de{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${Pn(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class kH extends de{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class jH extends de{constructor(t,{docsPath:n}){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://openchain.xyz/signatures?query=${t}.`].join(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class Fce extends de{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class Mce extends de{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://openchain.xyz/signatures?query=${t}.`].join(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class vO extends de{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(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class Ew extends de{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(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class Lce extends de{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(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class Uce extends de{constructor(t,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${xs(t.abiItem)}\`, and`,`\`${n.type}\` in \`${xs(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:"AbiItemAmbiguityError"})}}class PH extends de{constructor({expectedSize:t,givenSize:n}){super(`Expected bytes${t}, got bytes${n}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class Hu extends de{constructor({abiItem:t,data:n,params:r,size:o}){super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join(` -`),{metaMessages:[`Params: (${k_(r,{includeName:!0})})`,`Data: ${n} (${o} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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 nm extends de{constructor({abiItem:t,param:n}){super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${xs(t,{includeName:!0})}".`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class $ce extends de{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class zce extends de{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class Hce extends de{constructor(t){super([`Value "${t}" is not a valid array.`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class qce extends de{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}class Wce extends de{constructor(t){super(`Type "${t}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}let Gce=class extends de{constructor(t){super(`Filter type "${t}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}},IH=class extends de{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:"SliceOffsetOutOfBoundsError"})}},OH=class extends de{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:"SizeExceedsPaddingSizeError"})}};function us(e,{dir:t,size:n=32}={}){return typeof e=="string"?Gc(e,{dir:t,size:n}):Vce(e,{dir:t,size:n})}function Gc(e,{dir:t,size:n=32}={}){if(n===null)return e;const r=e.replace("0x","");if(r.length>n*2)throw new OH({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function Vce(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new OH({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let o=0;ot)throw new Qce({givenSize:Pn(e),maxSize:t})}function wn(e,t={}){const{signed:n}=t;t.size&&xl(e,{size:t.size});const r=BigInt(e);if(!n)return r;const o=(e.length-2)/2,a=(1n<t.toString(16).padStart(2,"0"));function rt(e,t={}){return typeof e=="number"||typeof e=="bigint"?Xe(e,t):typeof e=="string"?I_(e,t):typeof e=="boolean"?L8(e,t):qu(e,t)}function L8(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(xl(n,{size:t.size}),us(n,{size:t.size})):n}function qu(e,t={}){let n="";for(let o=0;oa||o=Ki.zero&&e<=Ki.nine)return e-Ki.zero;if(e>=Ki.A&&e<=Ki.F)return e-(Ki.A-10);if(e>=Ki.a&&e<=Ki.f)return e-(Ki.a-10)}function qg(e,t={}){let n=e;t.size&&(xl(n,{size:t.size}),n=us(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const o=r.length/2,a=new Uint8Array(o);for(let i=0,s=0;i{const t=typeof e=="string"?e:F8(e);return rle(t)},ole=e=>NH(e);function _w(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function U8(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function ale(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");_w(e.outputLen),_w(e.blockLen)}function ph(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 BH(e,t){U8(e);const n=t.outputLen;if(e.length>EO&Yb)}:{h:Number(e>>EO&Yb)|0,l:Number(e&Yb)|0}}function sle(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;oe<>>32-n,lle=(e,t,n)=>t<>>32-n,ule=(e,t,n)=>t<>>64-n,dle=(e,t,n)=>e<>>64-n,SS=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const FH=e=>e instanceof Uint8Array,fle=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),TS=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),gi=(e,t)=>e<<32-t|e>>>t,hle=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!hle)throw new Error("Non little-endian hardware is not supported");function mle(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Wg(e){if(typeof e=="string"&&(e=mle(e)),!FH(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}function ple(...e){const t=new Uint8Array(e.reduce((r,o)=>r+o.length,0));let n=0;return e.forEach(r=>{if(!FH(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}class $8{clone(){return this._cloneInto()}}function O_(e){const t=r=>e().update(Wg(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function gle(e){const t=(r,o)=>e(o).update(Wg(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}function MH(e=32){if(SS&&typeof SS.getRandomValues=="function")return SS.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}const[LH,UH,$H]=[[],[],[]],yle=BigInt(0),fp=BigInt(1),ble=BigInt(2),vle=BigInt(7),wle=BigInt(256),Ele=BigInt(113);for(let e=0,t=fp,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],LH.push(2*(5*r+n)),UH.push((e+1)*(e+2)/2%64);let o=yle;for(let a=0;a<7;a++)t=(t<>vle)*Ele)%wle,t&ble&&(o^=fp<<(fp<n>32?ule(e,t,n):cle(e,t,n),xO=(e,t,n)=>n>32?dle(e,t,n):lle(e,t,n);function zH(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 s=(i+8)%10,c=(i+2)%10,l=n[c],u=n[c+1],d=_O(l,u,1)^n[s],f=xO(l,u,1)^n[s+1];for(let h=0;h<50;h+=10)e[i+h]^=d,e[i+h+1]^=f}let o=e[2],a=e[3];for(let i=0;i<24;i++){const s=UH[i],c=_O(o,a,s),l=xO(o,a,s),u=LH[i];o=e[u],a=e[u+1],e[u]=c,e[u+1]=l}for(let i=0;i<50;i+=10){for(let s=0;s<10;s++)n[s]=e[i+s];for(let s=0;s<10;s++)e[i+s]^=~n[(s+2)%10]&n[(s+4)%10]}e[0]^=_le[r],e[1]^=xle[r]}n.fill(0)}class Gg extends $8{constructor(t,n,r,o=!1,a=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,_w(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=fle(this.state)}keccak(){zH(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){ph(this);const{blockLen:n,state:r}=this;t=Wg(t);const o=t.length;for(let a=0;a=r&&this.keccak();const i=Math.min(r-this.posOut,a-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 _w(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(BH(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,this.state.fill(0)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:o,rounds:a,enableXOF:i}=this;return t||(t=new Gg(n,r,o,i,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=r,t.outputLen=o,t.enableXOF=i,t.destroyed=this.destroyed,t}}const Cl=(e,t,n)=>O_(()=>new Gg(t,e,n)),Cle=Cl(6,144,224/8),Sle=Cl(6,136,256/8),Tle=Cl(6,104,384/8),Ale=Cl(6,72,512/8),Dle=Cl(1,144,224/8),HH=Cl(1,136,256/8),kle=Cl(1,104,384/8),jle=Cl(1,72,512/8),qH=(e,t,n)=>gle((r={})=>new Gg(t,e,r.dkLen===void 0?n:r.dkLen,!0)),Ple=qH(31,168,128/8),Ile=qH(31,136,256/8),Ole=Object.freeze(Object.defineProperty({__proto__:null,Keccak:Gg,keccakP:zH,keccak_224:Dle,keccak_256:HH,keccak_384:kle,keccak_512:jle,sha3_224:Cle,sha3_256:Sle,sha3_384:Tle,sha3_512:Ale,shake128:Ple,shake256:Ile},Symbol.toStringTag,{value:"Module"}));function Or(e,t){const n=t||"hex",r=HH(Ea(e,{strict:!1})?rl(e):e);return n==="bytes"?r:rt(r)}const Rle=e=>Or(rl(e)),z8=e=>Rle(ole(e));let Wo=class extends de{constructor({address:t}){super(`Address "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}};const Nle=/^0x[a-fA-F0-9]{40}$/;function Hn(e){return Nle.test(e)}function Cs(e){return typeof e[0]=="string"?Sl(e):Ble(e)}function Ble(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 Sl(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function kn(e,t,n,{strict:r}={}){return Ea(e,{strict:!1})?Mle(e,t,n,{strict:r}):Fle(e,t,n,{strict:r})}function WH(e,t){if(typeof t=="number"&&t>0&&t>Pn(e)-1)throw new IH({offset:t,position:"start",size:Pn(e)})}function GH(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Pn(e)!==n-t)throw new IH({offset:n,position:"end",size:Pn(e)})}function Fle(e,t,n,{strict:r}={}){WH(e,t);const o=e.slice(t,n);return r&&GH(o,t,n),o}function Mle(e,t,n,{strict:r}={}){WH(e,t);const o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&GH(o,t,n),o}function Vg(e,t){if(e.length!==t.length)throw new kH({expectedLength:e.length,givenLength:t.length});const n=Lle({params:e,values:t}),r=q8(n);return r.length===0?"0x":r}function Lle({params:e,values:t}){const n=[];for(let r=0;r0?Cs([s,i]):s}}if(o)return{dynamic:!0,encoded:i}}return{dynamic:!1,encoded:Cs(a.map(({encoded:i})=>i))}}function zle(e,{param:t}){const[,n]=t.type.split("bytes"),r=Pn(e);if(!n){let o=e;return r%32!==0&&(o=Gc(o,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Cs([Gc(Xe(r,{size:32})),o])}}if(r!==parseInt(n))throw new Bce({expectedSize:parseInt(n),value:e});return{dynamic:!1,encoded:Gc(e,{dir:"right"})}}function Hle(e){return{dynamic:!1,encoded:Gc(L8(e))}}function qle(e,{signed:t}){return{dynamic:!1,encoded:Xe(e,{size:32,signed:t})}}function Wle(e){const t=I_(e),n=Math.ceil(Pn(t)/32),r=[];for(let o=0;oo))}}function R_(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}const Vle=e=>Or(rl(e)),W8=e=>kn(Vle(NH(e)),0,4);function Kg({abi:e,args:t=[],name:n}){const r=Ea(n,{strict:!1}),o=e.filter(i=>r?i.type==="function"?W8(i)===n:i.type==="event"?z8(i)===n:!1:"name"in i&&i.name===n);if(o.length===0)return;if(o.length===1)return o[0];let a;for(const i of o){if(!("inputs"in i))continue;if(!t||t.length===0){if(!i.inputs||i.inputs.length===0)return i;continue}if(!i.inputs||i.inputs.length===0||i.inputs.length!==t.length)continue;if(t.every((c,l)=>{const u="inputs"in i&&i.inputs[l];return u?$A(c,u):!1})){if(a&&"inputs"in a&&a.inputs){const c=VH(i.inputs,a.inputs,t);if(c)throw new Uce({abiItem:i,type:c[0]},{abiItem:a,type:c[1]})}a=i}}return a||o[0]}function $A(e,t){const n=typeof e,r=t.type;switch(r){case"address":return Hn(e);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,a)=>$A(Object.values(e)[a],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=>$A(o,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function VH(e,t,n){for(const r in e){const o=e[r],a=t[r];if(o.type==="tuple"&&a.type==="tuple"&&"components"in o&&"components"in a)return VH(o.components,a.components,n[r]);const i=[o.type,a.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")||i.includes("address")&&i.includes("bytes")?Hn(n[r]):!1)return i}}function Yg({abi:e,eventName:t,args:n}){var s;let r=e[0];if(t&&(r=Kg({abi:e,args:n,name:t}),!r))throw new vO(t,{docsPath:"/docs/contract/encodeEventTopics"});if(r.type!=="event")throw new vO(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const o=xs(r),a=z8(o);let i=[];if(n&&"inputs"in r){const c=(s=r.inputs)==null?void 0:s.filter(u=>"indexed"in u&&u.indexed),l=Array.isArray(n)?n:Object.values(n).length>0?(c==null?void 0:c.map(u=>n[u.name]))??[]:[];l.length>0&&(i=(c==null?void 0:c.map((u,d)=>Array.isArray(l[d])?l[d].map((f,h)=>CO({param:u,value:l[d][h]})):l[d]?CO({param:u,value:l[d]}):null))??[])}return[a,...i]}function CO({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return Or(rl(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new Gce(e.type);return Vg([e],[t])}function N_(e,{method:t}){var r,o;const n={};return e.transport.type==="fallback"&&((o=(r=e.transport).onResponse)==null||o.call(r,({method:a,response:i,status:s,transport:c})=>{s==="success"&&t===a&&(n[i]=c.request)})),a=>n[a]||e.request}async function G8(e,{address:t,abi:n,args:r,eventName:o,fromBlock:a,strict:i,toBlock:s}){const c=N_(e,{method:"eth_newFilter"}),l=o?Yg({abi:n,args:r,eventName:o}):void 0,u=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?Xe(a):a,toBlock:typeof s=="bigint"?Xe(s):s,topics:l}]});return{abi:n,args:r,eventName:o,id:u,request:c(u),strict:i,type:"event"}}function Ta(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}function oi({abi:e,args:t,functionName:n}){let r=e[0];if(n&&(r=Kg({abi:e,args:t,name:n}),!r))throw new Ew(n,{docsPath:"/docs/contract/encodeFunctionData"});if(r.type!=="function")throw new Ew(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const o=xs(r),a=W8(o),i="inputs"in r&&r.inputs?Vg(r.inputs,t??[]):void 0;return Sl([a,i??"0x"])}const KH={1:"An `assert` condition failed.",17:"Arithmic 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."},Kle={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},Yle={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function V8(e,t){const n=e.substring(2).toLowerCase(),r=Or(ds(n),"bytes"),o=n.split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&o[a]&&(o[a]=o[a].toUpperCase()),(r[a>>1]&15)>=8&&o[a+1]&&(o[a+1]=o[a+1].toUpperCase());return`0x${o.join("")}`}function Rr(e,t){if(!Hn(e))throw new Wo({address:e});return V8(e)}function B_(e,t){if(t==="0x"&&e.length>0)throw new P_;if(Pn(t)&&Pn(t)<32)throw new M8({data:t,params:e,size:Pn(t)});return Qle({data:t,params:e})}function Qle({data:e,params:t}){const n=[];let r=0;for(let o=0;o=Pn(e))throw new M8({data:e,params:t,size:Pn(e)});const a=t[o],{consumed:i,value:s}=Yf({data:e,param:a,position:r});n.push(s),r+=i}return n}function Yf({data:e,param:t,position:n}){const r=R_(t.type);if(r){const[a,i]=r;return Jle(e,{length:a,param:{...t,type:i},position:n})}if(t.type==="tuple")return rue(e,{param:t,position:n});if(t.type==="string")return nue(e,{position:n});if(t.type.startsWith("bytes"))return eue(e,{param:t,position:n});const o=kn(e,n,n+32,{strict:!0});if(t.type.startsWith("uint")||t.type.startsWith("int"))return tue(o,{param:t});if(t.type==="address")return Xle(o);if(t.type==="bool")return Zle(o);throw new zce(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function Xle(e){return{consumed:32,value:V8(kn(e,-20))}}function Jle(e,{param:t,length:n,position:r}){if(!n){const i=pr(kn(e,r,r+32,{strict:!0})),s=pr(kn(e,i,i+32,{strict:!0}));let c=0;const l=[];for(let u=0;u48?wn(e,{signed:n}):pr(e,{signed:n})}}function nue(e,{position:t}){const n=pr(kn(e,t,t+32,{strict:!0})),r=pr(kn(e,n,n+32,{strict:!0}));return r===0?{consumed:32,value:""}:{consumed:32,value:RH(Za(kn(e,n+32,n+32+r,{strict:!0})))}}function rue(e,{param:t,position:n}){const r=t.components.length===0||t.components.some(({name:i})=>!i),o=r?[]:{};let a=0;if(xw(t)){const i=pr(kn(e,n,n+32,{strict:!0}));for(let s=0;sa.type==="error"&&n===W8(xs(a)));if(!o)throw new jH(n,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:o,args:"inputs"in o&&o.inputs&&o.inputs.length>0?B_(o.inputs,kn(t,4)):void 0,errorName:o.name}}const Xr=(e,t,n)=>JSON.stringify(e,(r,o)=>{const a=typeof o=="bigint"?o.toString():o;return typeof t=="function"?t(r,a):a},n);function YH({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,a)=>`${r&&o.name?`${o.name}: `:""}${typeof t[a]=="object"?Xr(t[a]):t[a]}`).join(", ")})`}const aue={gwei:9,wei:18},iue={ether:-9,wei:9},sue={ether:-18,gwei:-9};function Wu(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[o,a]=[n.slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),`${r?"-":""}${o||"0"}${a?`.${a}`:""}`}function K8(e,t="wei"){return Wu(e,aue[t])}function Eo(e,t="wei"){return Wu(e,iue[t])}function Qg(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(` -`)}let cue=class extends de{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}},lue=class extends de{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}},uue=class extends de{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Qg(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","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}},due=class extends de{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}},fue=class extends de{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var m;const h=Qg({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"&&`${K8(f)} ${((m=o==null?void 0:o.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${Eo(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${Eo(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${Eo(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",h].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=t}},QH=class extends de{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:o,index:a}){let i="Transaction";r&&a!==void 0&&(i=`Transaction at block time "${r}" at index "${a}"`),t&&a!==void 0&&(i=`Transaction at block hash "${t}" at index "${a}"`),n&&a!==void 0&&(i=`Transaction at block number "${n}" at index "${a}"`),o&&(i=`Transaction with hash "${o}"`),super(`${i} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}},XH=class extends de{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}},hue=class extends de{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}},JH=class extends de{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var p;const h=n?Ta(n):void 0,m=Qg({from:h==null?void 0:h.address,to:d,value:typeof f<"u"&&`${K8(f)} ${((p=o==null?void 0:o.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${Eo(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${Eo(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${Eo(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=t}},Y8=class extends de{constructor(t,{abi:n,args:r,contractAddress:o,docsPath:a,functionName:i,sender:s}){const c=Kg({abi:n,args:r,name:i}),l=c?YH({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,u=c?xs(c,{includeName:!0}):void 0,d=Qg({address:o&&Ice(o),function:u,args:l&&l!=="()"&&`${[...Array((i==null?void 0:i.length)??0).keys()].map(()=>" ").join("")}${l}`,sender:s});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Contract Call:",d].filter(Boolean)}),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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=o,this.functionName=i,this.sender=s}},zA=class extends de{constructor({abi:t,data:n,functionName:r,message:o}){let a,i,s,c;if(n&&n!=="0x")try{i=oue({abi:t,data:n});const{abiItem:u,errorName:d,args:f}=i;if(d==="Error")c=f[0];else if(d==="Panic"){const[h]=f;c=KH[h]}else{const h=u?xs(u,{includeName:!0}):void 0,m=u&&f?YH({abiItem:u,args:f,includeFunctionName:!1,includeName:!1}):void 0;s=[h?`Error: ${h}`:"",m&&m!=="()"?` ${[...Array((d==null?void 0:d.length)??0).keys()].map(()=>" ").join("")}${m}`:""]}}catch(u){a=u}else o&&(c=o);let l;a instanceof jH&&(l=a.signature,s=[`Unable to decode signature "${l}" 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://openchain.xyz/signatures?query=${l}.`]),super(c&&c!=="execution reverted"||l?[`The contract function "${r}" reverted with the following ${l?"signature":"reason"}:`,c||l].join(` -`):`The contract function "${r}" reverted.`,{cause:a,metaMessages:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{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=i,this.reason=c,this.signature=l}},mue=class extends de{constructor({functionName:t}){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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}},Q8=class extends de{constructor({data:t,message:n}){super(n||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}},g0=class extends de{constructor({body:t,details:n,headers:r,status:o,url:a}){super("HTTP request failed.",{details:n,metaMessages:[o&&`Status: ${o}`,`URL: ${j_(a)}`,t&&`Request body: ${Xr(t)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=r,this.status=o,this.url=a}},pue=class extends de{constructor({body:t,details:n,url:r}){super("WebSocket request failed.",{details:n,metaMessages:[`URL: ${j_(r)}`,`Request body: ${Xr(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}},X8=class extends de{constructor({body:t,error:n,url:r}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${j_(r)}`,`Request body: ${Xr(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code}},HA=class extends de{constructor({body:t,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${j_(n)}`,`Request body: ${Xr(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}};const gue=-1;let So=class extends de{constructor(t,{code:n,docsPath:r,metaMessages:o,shortMessage:a}){super(a,{cause:t,docsPath:r,metaMessages:o||(t==null?void 0:t.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=t.name,this.code=t instanceof X8?t.code:n??gue}},rm=class extends So{constructor(t,n){super(t,n),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}},qA=class ZH extends So{constructor(t){super(t,{code:ZH.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}};Object.defineProperty(qA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});let WA=class eq extends So{constructor(t){super(t,{code:eq.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}};Object.defineProperty(WA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});let GA=class tq extends So{constructor(t){super(t,{code:tq.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}};Object.defineProperty(GA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});let VA=class nq extends So{constructor(t){super(t,{code:nq.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}};Object.defineProperty(VA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});let Cw=class rq extends So{constructor(t){super(t,{code:rq.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}};Object.defineProperty(Cw,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});let J0=class oq extends So{constructor(t){super(t,{code:oq.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}};Object.defineProperty(J0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});let KA=class aq extends So{constructor(t){super(t,{code:aq.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}};Object.defineProperty(KA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});let gh=class iq extends So{constructor(t){super(t,{code:iq.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}};Object.defineProperty(gh,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});let YA=class sq extends So{constructor(t){super(t,{code:sq.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}};Object.defineProperty(YA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});let QA=class cq extends So{constructor(t){super(t,{code:cq.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}};Object.defineProperty(QA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});let XA=class lq extends So{constructor(t){super(t,{code:lq.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}};Object.defineProperty(XA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});let JA=class uq extends So{constructor(t){super(t,{code:uq.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}};Object.defineProperty(JA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});let dr=class dq extends rm{constructor(t){super(t,{code:dq.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}};Object.defineProperty(dr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});let ZA=class fq extends rm{constructor(t){super(t,{code:fq.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}};Object.defineProperty(ZA,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});let e5=class hq extends rm{constructor(t){super(t,{code:hq.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}};Object.defineProperty(e5,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});let t5=class mq extends rm{constructor(t){super(t,{code:mq.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}};Object.defineProperty(t5,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});let n5=class pq extends rm{constructor(t){super(t,{code:pq.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}};Object.defineProperty(n5,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});let ol=class gq extends rm{constructor(t){super(t,{code:gq.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}};Object.defineProperty(ol,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});let yue=class extends So{constructor(t){super(t,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}};const bue=3;function Z0(e,{abi:t,address:n,args:r,docsPath:o,functionName:a,sender:i}){const{code:s,data:c,message:l,shortMessage:u}=e instanceof Q8?e:e instanceof de?e.walk(f=>"data"in f)||e.walk():{},d=e instanceof P_?new mue({functionName:a}):[bue,Cw.code].includes(s)&&(c||l||u)?new zA({abi:t,data:typeof c=="object"?c.data:c,functionName:a,message:u??l}):e;return new Y8(d,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:a,sender:i})}let om=class extends de{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 WalletClient."].join(` -`),{docsPath:t,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}},vue=class extends de{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var m;const h=Qg({from:n==null?void 0:n.address,to:d,value:typeof f<"u"&&`${K8(f)} ${((m=o==null?void 0:o.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${Eo(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${Eo(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${Eo(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",h].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=t}},Pf=class extends de{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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}};Object.defineProperty(Pf,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Pf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});let Gu=class extends de{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${Eo(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}};Object.defineProperty(Gu,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});let r5=class extends de{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${Eo(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}};Object.defineProperty(r5,"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/});let o5=class extends de{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}};Object.defineProperty(o5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});let a5=class extends de{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(` -`),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}};Object.defineProperty(a5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});let i5=class extends de{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}};Object.defineProperty(i5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});let s5=class extends de{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` -`),{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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}};Object.defineProperty(s5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});let c5=class extends de{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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}};Object.defineProperty(c5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});let l5=class extends de{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}};Object.defineProperty(l5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});let u5=class extends de{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}};Object.defineProperty(u5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});let eg=class extends de{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${Eo(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${Eo(r)} gwei`:""}).`].join(` -`),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}};Object.defineProperty(eg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});let F_=class extends de{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}};function J8(e,t){const n=(e.details||"").toLowerCase(),r=e.walk(o=>o.code===Pf.code);return r instanceof de?new Pf({cause:e,message:r.details}):Pf.nodeMessage.test(n)?new Pf({cause:e,message:e.details}):Gu.nodeMessage.test(n)?new Gu({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):r5.nodeMessage.test(n)?new r5({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):o5.nodeMessage.test(n)?new o5({cause:e,nonce:t==null?void 0:t.nonce}):a5.nodeMessage.test(n)?new a5({cause:e,nonce:t==null?void 0:t.nonce}):i5.nodeMessage.test(n)?new i5({cause:e,nonce:t==null?void 0:t.nonce}):s5.nodeMessage.test(n)?new s5({cause:e}):c5.nodeMessage.test(n)?new c5({cause:e,gas:t==null?void 0:t.gas}):l5.nodeMessage.test(n)?new l5({cause:e,gas:t==null?void 0:t.gas}):u5.nodeMessage.test(n)?new u5({cause:e}):eg.nodeMessage.test(n)?new eg({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new F_({cause:e})}function wue(e,{docsPath:t,...n}){const r=(()=>{const o=J8(e,n);return o instanceof F_?e:o})();return new vue(r,{docsPath:t,...n})}function Z8(e,{format:t}){if(!t)return{};const n={};function r(a){const i=Object.keys(a);for(const s of i)s in e&&(n[s]=e[s]),a[s]&&typeof a[s]=="object"&&!Array.isArray(a[s])&&r(a[s])}const o=t(e||{});return r(o),n}function M_(e,t){return({exclude:n,format:r})=>({exclude:n,format:o=>{const a=t(o);if(n)for(const i of n)delete a[i];return{...a,...r(o)}},type:e})}const Eue={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function Xg(e){return{...e,gas:typeof e.gas<"u"?Xe(e.gas):void 0,gasPrice:typeof e.gasPrice<"u"?Xe(e.gasPrice):void 0,maxFeePerGas:typeof e.maxFeePerGas<"u"?Xe(e.maxFeePerGas):void 0,maxPriorityFeePerGas:typeof e.maxPriorityFeePerGas<"u"?Xe(e.maxPriorityFeePerGas):void 0,nonce:typeof e.nonce<"u"?Xe(e.nonce):void 0,type:typeof e.type<"u"?Eue[e.type]:void 0,value:typeof e.value<"u"?Xe(e.value):void 0}}const _ue=M_("transactionRequest",Xg);function Jg(e){const{account:t,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:o,to:a}=e,i=t?Ta(t):void 0;if(i&&!Hn(i.address))throw new Wo({address:i.address});if(a&&!Hn(a))throw new Wo({address:a});if(typeof n<"u"&&(typeof r<"u"||typeof o<"u"))throw new cue;if(r&&r>2n**256n-1n)throw new Gu({maxFeePerGas:r});if(o&&r&&o>r)throw new eg({maxFeePerGas:r,maxPriorityFeePerGas:o})}let xue=class extends de{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}},ej=class extends de{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}},Cue=class extends de{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Eo(t)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}},yq=class extends de{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.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}};const bq={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function L_(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?pr(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?pr(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?bq[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 t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof t.v=="bigint"){if(t.v===0n||t.v===27n)return 0;if(t.v===1n||t.v===28n)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),t.type==="legacy"&&(delete t.accessList,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),t.type==="eip2930"&&(delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t}const vq=M_("transaction",L_);function tj(e){var n;const t=(n=e.transactions)==null?void 0:n.map(r=>typeof r=="string"?r:L_(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):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:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const wq=M_("block",tj);async function al(e,{blockHash:t,blockNumber:n,blockTag:r,includeTransactions:o}={}){var u,d,f;const a=r??"latest",i=o??!1,s=n!==void 0?Xe(n):void 0;let c=null;if(t?c=await e.request({method:"eth_getBlockByHash",params:[t,i]}):c=await e.request({method:"eth_getBlockByNumber",params:[s||a,i]}),!c)throw new yq({blockHash:t,blockNumber:n});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.block)==null?void 0:f.format)||tj)(c)}async function nj(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function Sue(e,t){return Eq(e,t)}async function Eq(e,t){var a,i,s;const{block:n,chain:r=e.chain,request:o}=t||{};if(typeof((a=r==null?void 0:r.fees)==null?void 0:a.defaultPriorityFee)=="function"){const c=n||await Fe(e,al,"getBlock")({});return r.fees.defaultPriorityFee({block:c,client:e,request:o})}if(typeof((i=r==null?void 0:r.fees)==null?void 0:i.defaultPriorityFee)<"u")return(s=r==null?void 0:r.fees)==null?void 0:s.defaultPriorityFee;try{const c=await e.request({method:"eth_maxPriorityFeePerGas"});return wn(c)}catch{const[c,l]=await Promise.all([n?Promise.resolve(n):Fe(e,al,"getBlock")({}),Fe(e,nj,"getGasPrice")({})]);if(typeof c.baseFeePerGas!="bigint")throw new ej;const u=l-c.baseFeePerGas;return u<0n?0n:u}}async function Tue(e,t){return d5(e,t)}async function d5(e,t){var f,h;const{block:n,chain:r=e.chain,request:o,type:a="eip1559"}=t||{},i=await(async()=>{var m,p;return typeof((m=r==null?void 0:r.fees)==null?void 0:m.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:e,request:o}):((p=r==null?void 0:r.fees)==null?void 0:p.baseFeeMultiplier)??1.2})();if(i<1)throw new xue;const c=10**(((f=i.toString().split(".")[1])==null?void 0:f.length)??0),l=m=>m*BigInt(Math.ceil(i*c))/BigInt(c),u=n||await Fe(e,al,"getBlock")({});if(typeof((h=r==null?void 0:r.fees)==null?void 0:h.estimateFeesPerGas)=="function")return r.fees.estimateFeesPerGas({block:n,client:e,multiply:l,request:o,type:a});if(a==="eip1559"){if(typeof u.baseFeePerGas!="bigint")throw new ej;const m=o!=null&&o.maxPriorityFeePerGas?o.maxPriorityFeePerGas:await Eq(e,{block:u,chain:r,request:o}),p=l(u.baseFeePerGas);return{maxFeePerGas:(o==null?void 0:o.maxFeePerGas)??p+m,maxPriorityFeePerGas:m}}return{gasPrice:(o==null?void 0:o.gasPrice)??l(await Fe(e,nj,"getGasPrice")({}))}}async function _q(e,{address:t,blockTag:n="latest",blockNumber:r}){const o=await e.request({method:"eth_getTransactionCount",params:[t,r?Xe(r):n]});return pr(o)}function xq(e){if(e.type)return e.type;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 uue({transaction:e})}async function U_(e,t){const{account:n=e.account,chain:r,gas:o,nonce:a,type:i}=t;if(!n)throw new om;const s=Ta(n),c=await Fe(e,al,"getBlock")({blockTag:"latest"}),l={...t,from:s.address};if(typeof a>"u"&&(l.nonce=await Fe(e,_q,"getTransactionCount")({address:s.address,blockTag:"pending"})),typeof i>"u")try{l.type=xq(l)}catch{l.type=typeof c.baseFeePerGas=="bigint"?"eip1559":"legacy"}if(l.type==="eip1559"){const{maxFeePerGas:u,maxPriorityFeePerGas:d}=await d5(e,{block:c,chain:r,request:l});if(typeof t.maxPriorityFeePerGas>"u"&&t.maxFeePerGas&&t.maxFeePerGas"u"&&(l.gas=await Fe(e,rj,"estimateGas")({...l,account:{address:s.address,type:"json-rpc"}})),Jg(l),l}async function rj(e,t){var o,a,i;const n=t.account??e.account;if(!n)throw new om({docsPath:"/docs/actions/public/estimateGas"});const r=Ta(n);try{const{accessList:s,blockNumber:c,blockTag:l,data:u,gas:d,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:p,to:b,value:v,...g}=r.type==="local"?await U_(e,t):t,_=(c?Xe(c):void 0)||l;Jg(t);const C=(i=(a=(o=e.chain)==null?void 0:o.formatters)==null?void 0:a.transactionRequest)==null?void 0:i.format,E=(C||Xg)({...Z8(g,{format:C}),from:r.address,accessList:s,data:u,gas:d,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:p,to:b,value:v}),T=await e.request({method:"eth_estimateGas",params:_?[E,_]:[E]});return BigInt(T)}catch(s){throw wue(s,{...t,account:r,chain:e.chain})}}async function Cq(e,{abi:t,address:n,args:r,functionName:o,...a}){const i=oi({abi:t,args:r,functionName:o});try{return await Fe(e,rj,"estimateGas")({data:i,to:n,...a})}catch(s){const c=a.account?Ta(a.account):void 0;throw Z0(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:c==null?void 0:c.address})}}const SO="/docs/contract/decodeEventLog";function Zg({abi:e,data:t,strict:n,topics:r}){const o=n??!0,[a,...i]=r;if(!a)throw new Fce({docsPath:SO});const s=e.find(m=>m.type==="event"&&a===z8(xs(m)));if(!(s&&"name"in s)||s.type!=="event")throw new Mce(a,{docsPath:SO});const{name:c,inputs:l}=s,u=l==null?void 0:l.some(m=>!("name"in m&&m.name));let d=u?[]:{};const f=l.filter(m=>"indexed"in m&&m.indexed);for(let m=0;m!("indexed"in m&&m.indexed));if(h.length>0){if(t&&t!=="0x")try{const m=B_(h,t);if(m)if(u)d=[...d,...m];else for(let p=0;p0?d:void 0}}function Aue({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(B_([e],t)||[])[0]}function _a(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,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}:{}}}async function oj(e,{address:t,blockHash:n,fromBlock:r,toBlock:o,event:a,events:i,args:s,strict:c}={}){const l=c??!1,u=i??(a?[a]:void 0);let d=[];u&&(d=[u.flatMap(h=>Yg({abi:[h],eventName:h.name,args:s}))],a&&(d=d[0]));let f;return 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"?Xe(r):r,toBlock:typeof o=="bigint"?Xe(o):o}]}),f.map(h=>{var m;try{const{eventName:p,args:b}=u?Zg({abi:u,data:h.data,topics:h.topics,strict:l}):{eventName:void 0,args:void 0};return _a(h,{args:b,eventName:p})}catch(p){let b,v;if(p instanceof Hu||p instanceof nm){if(l)return;b=p.abiItem.name,v=(m=p.abiItem.inputs)==null?void 0:m.some(g=>!("name"in g&&g.name))}return _a(h,{args:v?[]:{},eventName:b})}}).filter(Boolean)}async function aj(e,{abi:t,address:n,args:r,blockHash:o,eventName:a,fromBlock:i,toBlock:s,strict:c}){const l=a?Kg({abi:t,name:a}):void 0,u=l?void 0:t.filter(d=>d.type==="event");return Fe(e,oj,"getLogs")({address:n,args:r,blockHash:o,event:l,events:u,fromBlock:i,toBlock:s,strict:c})}const AS="/docs/contract/decodeFunctionResult";function am({abi:e,args:t,functionName:n,data:r}){let o=e[0];if(n&&(o=Kg({abi:e,args:t,name:n}),!o))throw new Ew(n,{docsPath:AS});if(o.type!=="function")throw new Ew(void 0,{docsPath:AS});if(!o.outputs)throw new Lce(o.name,{docsPath:AS});const a=B_(o.outputs,r);if(a&&a.length>1)return a;if(a&&a.length===1)return a[0]}const f5=[{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"}],Sq=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],Tq=[...Sq,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],Due=[...Sq,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],TO=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],AO=[{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"}]}],kue=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}],jue="0x82ad56cb";let h5=class extends de{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.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}},Pue=class extends de{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}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}},Iue=class extends de{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(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}},Aq=class extends de{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}},$_=class extends de{constructor({chainId:t}){super(`Chain ID "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}};function im({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 h5({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new h5({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}function Oue(e,{docsPath:t,...n}){const r=(()=>{const o=J8(e,n);return o instanceof F_?e:o})();return new JH(r,{docsPath:t,...n})}const DS=new Map;function ij({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){const a=async()=>{const u=c();i();const d=u.map(({args:f})=>f);d.length!==0&&e(d).then(f=>{var h;o&&Array.isArray(f)&&f.sort(o);for(let m=0;m{var h;for(let m=0;mDS.delete(t),s=()=>c().map(({args:u})=>u),c=()=>DS.get(t)||[],l=u=>DS.set(t,[...c(),u]);return{flush:i,async schedule(u){const d={},f=new Promise((p,b)=>{d.resolve=p,d.reject=b});return(n==null?void 0:n([...s(),u]))&&a(),c().length>0?(l({args:u,pendingPromise:d}),f):(l({args:u,pendingPromise:d}),setTimeout(a,r),f)}}}async function z_(e,t){var v,g,w,_;const{account:n=e.account,batch:r=!!((v=e.batch)!=null&&v.multicall),blockNumber:o,blockTag:a="latest",accessList:i,data:s,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:h,value:m,...p}=t,b=n?Ta(n):void 0;try{Jg(t);const x=(o?Xe(o):void 0)||a,E=(_=(w=(g=e.chain)==null?void 0:g.formatters)==null?void 0:w.transactionRequest)==null?void 0:_.format,k=(E||Xg)({...Z8(p,{format:E}),from:b==null?void 0:b.address,accessList:i,data:s,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:h,value:m});if(r&&Rue({request:k}))try{return await Nue(e,{...k,blockNumber:o,blockTag:a})}catch(R){if(!(R instanceof Aq)&&!(R instanceof h5))throw R}const D=await e.request({method:"eth_call",params:x?[k,x]:[k]});return D==="0x"?{data:void 0}:{data:D}}catch(C){const x=Bue(C),{offchainLookup:E,offchainLookupSignature:T}=await me(async()=>{const{offchainLookup:k,offchainLookupSignature:D}=await import("./ccip-DjkOoLC9.js");return{offchainLookup:k,offchainLookupSignature:D}},[],import.meta.url);if((x==null?void 0:x.slice(0,10))===T&&h)return{data:await E(e,{data:x,to:h})};throw Oue(C,{...t,account:b,chain:e.chain})}}function Rue({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith(jue)||!n||Object.values(r).filter(o=>typeof o<"u").length>0)}async function Nue(e,t){var p;const{batchSize:n=1024,wait:r=0}=typeof((p=e.batch)==null?void 0:p.multicall)=="object"?e.batch.multicall:{},{blockNumber:o,blockTag:a="latest",data:i,multicallAddress:s,to:c}=t;let l=s;if(!l){if(!e.chain)throw new Aq;l=im({blockNumber:o,chain:e.chain,contract:"multicall3"})}const d=(o?Xe(o):void 0)||a,{schedule:f}=ij({id:`${e.uid}.${d}`,wait:r,shouldSplitBatch(b){return b.reduce((g,{data:w})=>g+(w.length-2),0)>n*2},fn:async b=>{const v=b.map(_=>({allowFailure:!0,callData:_.data,target:_.to})),g=oi({abi:f5,args:[v],functionName:"aggregate3"}),w=await e.request({method:"eth_call",params:[{data:g,to:l},d]});return am({abi:f5,args:[v],functionName:"aggregate3",data:w||"0x"})}}),[{returnData:h,success:m}]=await f({data:i,to:c});if(!m)throw new Q8({data:h});return h==="0x"?{data:void 0}:{data:h}}function Bue(e){if(!(e instanceof de))return;const t=e.walk();return typeof t.data=="object"?t.data.data:t.data}async function Ss(e,{abi:t,address:n,args:r,functionName:o,...a}){const i=oi({abi:t,args:r,functionName:o});try{const{data:s}=await Fe(e,z_,"call")({data:i,to:n,...a});return am({abi:t,args:r,functionName:o,data:s||"0x"})}catch(s){throw Z0(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/readContract",functionName:o})}}async function Dq(e,{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}){const s=i.account?Ta(i.account):void 0,c=oi({abi:t,args:r,functionName:a});try{const{data:l}=await Fe(e,z_,"call")({batch:!1,data:`${c}${o?o.replace("0x",""):""}`,to:n,...i});return{result:am({abi:t,args:r,functionName:a,data:l||"0x"}),request:{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}}}catch(l){throw Z0(l,{abi:t,address:n,args:r,docsPath:"/docs/contract/simulateContract",functionName:a,sender:s==null?void 0:s.address})}}const kS=new Map,DO=new Map;let Fue=0;function sm(e,t,n){const r=++Fue,o=()=>kS.get(e)||[],a=()=>{const u=o();kS.set(e,u.filter(d=>d.id!==r))},i=()=>{const u=DO.get(e);o().length===1&&u&&u(),a()},s=o();if(kS.set(e,[...s,{id:r,fns:t}]),s&&s.length>0)return i;const c={};for(const u in t)c[u]=(...d)=>{var h,m;const f=o();if(f.length!==0)for(const p of f)(m=(h=p.fns)[u])==null||m.call(h,...d)};const l=n(c);return typeof l=="function"&&DO.set(e,l),i}async function Sw(e){return new Promise(t=>setTimeout(t,e))}function ey(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let o=!0;const a=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:a}));const c=await(n==null?void 0:n(s))??r;await Sw(c);const l=async()=>{o&&(await e({unpoll:a}),await Sw(r),l())};l()})(),a}const Mue=new Map,Lue=new Map;function Uue(e){const t=(o,a)=>({clear:()=>a.delete(o),get:()=>a.get(o),set:i=>a.set(o,i)}),n=t(e,Mue),r=t(e,Lue);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function $ue(e,{cacheKey:t,cacheTime:n=1/0}){const r=Uue(t),o=r.response.get();if(o&&n>0&&new Date().getTime()-o.created.getTime()`blockNumber.${e}`;async function ty(e,{cacheTime:t=e.cacheTime,maxAge:n}={}){const r=await $ue(()=>e.request({method:"eth_blockNumber"}),{cacheKey:zue(e.uid),cacheTime:n??t});return BigInt(r)}async function H_(e,{filter:t}){const n="strict"in t&&t.strict;return(await t.request({method:"eth_getFilterChanges",params:[t.id]})).map(o=>{var a;if(typeof o=="string")return o;try{const{eventName:i,args:s}="abi"in t&&t.abi?Zg({abi:t.abi,data:o.data,topics:o.topics,strict:n}):{eventName:void 0,args:void 0};return _a(o,{args:s,eventName:i})}catch(i){let s,c;if(i instanceof Hu||i instanceof nm){if("strict"in t&&t.strict)return;s=i.abiItem.name,c=(a=i.abiItem.inputs)==null?void 0:a.some(l=>!("name"in l&&l.name))}return _a(o,{args:c?[]:{},eventName:s})}}).filter(Boolean)}async function q_(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}function kq(e,{abi:t,address:n,args:r,batch:o=!0,eventName:a,onError:i,onLogs:s,poll:c,pollingInterval:l=e.pollingInterval,strict:u}){return(typeof c<"u"?c:e.transport.type!=="webSocket")?(()=>{const m=Xr(["watchContractEvent",n,r,o,e.uid,a,l]),p=u??!1;return sm(m,{onLogs:s,onError:i},b=>{let v,g,w=!1;const _=ey(async()=>{var C;if(!w){try{g=await Fe(e,G8,"createContractEventFilter")({abi:t,address:n,args:r,eventName:a,strict:p})}catch{}w=!0;return}try{let x;if(g)x=await Fe(e,H_,"getFilterChanges")({filter:g});else{const E=await Fe(e,ty,"getBlockNumber")({});v&&v!==E?x=await Fe(e,aj,"getContractEvents")({abi:t,address:n,args:r,eventName:a,fromBlock:v+1n,toBlock:E,strict:p}):x=[],v=E}if(x.length===0)return;if(o)b.onLogs(x);else for(const E of x)b.onLogs([E])}catch(x){g&&x instanceof J0&&(w=!1),(C=b.onError)==null||C.call(b,x)}},{emitOnBegin:!0,interval:l});return async()=>{g&&await Fe(e,q_,"uninstallFilter")({filter:g}),_()}})})():(()=>{let m=!0,p=()=>m=!1;return(async()=>{try{const b=a?Yg({abi:t,eventName:a,args:r}):[],{unsubscribe:v}=await e.transport.subscribe({params:["logs",{address:n,topics:b}],onData(g){var _;if(!m)return;const w=g.result;try{const{eventName:C,args:x}=Zg({abi:t,data:w.data,topics:w.topics,strict:u}),E=_a(w,{args:x,eventName:C});s([E])}catch(C){let x,E;if(C instanceof Hu||C instanceof nm){if(u)return;x=C.abiItem.name,E=(_=C.abiItem.inputs)==null?void 0:_.some(k=>!("name"in k&&k.name))}const T=_a(w,{args:E?[]:{},eventName:x});s([T])}},onError(g){i==null||i(g)}});p=v,m||p()}catch(b){i==null||i(b)}})(),p})()}function jq({chain:e,currentChainId:t}){if(!e)throw new Iue;if(t!==e.id)throw new Pue({chain:e,currentChainId:t})}function Hue(e,{docsPath:t,...n}){const r=(()=>{const o=J8(e,n);return o instanceof F_?e:o})();return new fue(r,{docsPath:t,...n})}async function tg(e){const t=await e.request({method:"eth_chainId"});return pr(t)}async function sj(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]})}async function cj(e,t){var p,b,v,g;const{account:n=e.account,chain:r=e.chain,accessList:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,...h}=t;if(!n)throw new om({docsPath:"/docs/actions/wallet/sendTransaction"});const m=Ta(n);try{Jg(t);let w;if(r!==null&&(w=await Fe(e,tg,"getChainId")({}),jq({currentChainId:w,chain:r})),m.type==="local"){const E=await Fe(e,U_,"prepareTransactionRequest")({account:m,accessList:o,chain:r,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,...h});w||(w=await Fe(e,tg,"getChainId")({}));const T=(p=r==null?void 0:r.serializers)==null?void 0:p.transaction,k=await m.signTransaction({...E,chainId:w},{serializer:T});return await Fe(e,sj,"sendRawTransaction")({serializedTransaction:k})}const _=(g=(v=(b=e.chain)==null?void 0:b.formatters)==null?void 0:v.transactionRequest)==null?void 0:g.format,x=(_||Xg)({...Z8(h,{format:_}),accessList:o,data:a,from:m.address,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f});return await e.request({method:"eth_sendTransaction",params:[x]})}catch(w){throw Hue(w,{...t,account:m,chain:t.chain||void 0})}}async function Pq(e,{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}){const s=oi({abi:t,args:r,functionName:a});return await Fe(e,cj,"sendTransaction")({data:`${s}${o?o.replace("0x",""):""}`,to:n,...i})}function que({abi:e,address:t,publicClient:n,walletClient:r}){const o=n!=null,a=r!=null,i={};let s=!1,c=!1,l=!1;for(const u of e)if(u.type==="function"?u.stateMutability==="view"||u.stateMutability==="pure"?s=!0:c=!0:u.type==="event"&&(l=!0),s&&c&&l)break;return o&&(s&&(i.read=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=Qb(f);return Fe(n,Ss,"readContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),c&&(i.simulate=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=Qb(f);return Fe(n,Dq,"simulateContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),l&&(i.createEventFilter=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=jS(f,h);return Fe(n,G8,"createContractEventFilter")({abi:e,address:t,eventName:d,args:m,...p})}}}),i.getEvents=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=jS(f,h);return Fe(n,aj,"getContractEvents")({abi:e,address:t,eventName:d,args:m,...p})}}}),i.watchEvent=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=jS(f,h);return Fe(n,kq,"watchContractEvent")({abi:e,address:t,eventName:d,args:m,...p})}}}))),a&&c&&(i.write=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=Qb(f);return Fe(r,Pq,"writeContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),(o||a)&&c&&(i.estimateGas=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=Qb(f);return Fe(n??r,Cq,"estimateContractGas")({abi:e,address:t,functionName:d,args:h,...m,account:m.account??r.account})}}})),i.address=t,i.abi=e,i}function Qb(e){const t=e.length&&Array.isArray(e[0]),n=t?e[0]:[],r=(t?e[1]:e[0])??{};return{args:n,options:r}}function jS(e,t){let n=!1;Array.isArray(e[0])?n=!0:e.length===1?n=t.inputs.some(a=>a.indexed):e.length===2&&(n=!0);const r=n?e[0]:void 0,o=(n?e[1]:e[0])??{};return{args:r,options:o}}async function Wue(e,{chain:t}){const{id:n,name:r,nativeCurrency:o,rpcUrls:a,blockExplorers:i}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:Xe(n),chainName:r,nativeCurrency:o,rpcUrls:a.default.http,blockExplorerUrls:i?Object.values(i).map(({url:s})=>s):void 0}]})}const m5=256;let Xb=m5,Jb;function Gue(e=11){if(!Jb||Xb+e>m5*2){Jb="",Xb=0;for(let t=0;t{const v=b(p);for(const w in h)delete v[w];const g={...p,...v};return Object.assign(g,{extend:m(g)})}}return Object.assign(h,{extend:m(h)})}function p5(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((o,a)=>{const i=async({count:s=0}={})=>{const c=async({error:l})=>{const u=typeof t=="function"?t({count:s,error:l}):t;u&&await Sw(u),i({count:s+1})};try{const l=await e();o(l)}catch(l){if(s"code"in e?e.code!==-1&&e.code!==-32004&&e.code!==-32005&&e.code!==-32042&&e.code!==-32603:e instanceof g0&&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:!1;function Vue(e,{retryDelay:t=150,retryCount:n=3}={}){return async r=>p5(async()=>{try{return await e(r)}catch(o){const a=o;switch(a.code){case qA.code:throw new qA(a);case WA.code:throw new WA(a);case GA.code:throw new GA(a);case VA.code:throw new VA(a);case Cw.code:throw new Cw(a);case J0.code:throw new J0(a);case KA.code:throw new KA(a);case gh.code:throw new gh(a);case YA.code:throw new YA(a);case QA.code:throw new QA(a);case XA.code:throw new XA(a);case JA.code:throw new JA(a);case dr.code:throw new dr(a);case ZA.code:throw new ZA(a);case e5.code:throw new e5(a);case t5.code:throw new t5(a);case n5.code:throw new n5(a);case ol.code:throw new ol(a);case 5e3:throw new dr(a);default:throw o instanceof de?o:new yue(a)}}},{delay:({count:o,error:a})=>{var i;if(a&&a instanceof g0){const s=(i=a==null?void 0:a.headers)==null?void 0:i.get("Retry-After");if(s!=null&&s.match(/\d/))return parseInt(s)*1e3}return~~(1<!Oq(o)})}function W_({key:e,name:t,request:n,retryCount:r=3,retryDelay:o=150,timeout:a,type:i},s){return{config:{key:e,name:t,request:n,retryCount:r,retryDelay:o,timeout:a,type:i},request:Vue(n,{retryCount:r,retryDelay:o}),value:s}}function ny(e,t={}){const{key:n="custom",name:r="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>W_({key:n,name:r,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})}function kO(e,t={}){const{key:n="fallback",name:r="Fallback",rank:o=!1,retryCount:a,retryDelay:i}=t;return({chain:s,pollingInterval:c=4e3,timeout:l})=>{let u=e,d=()=>{};const f=W_({key:n,name:r,async request({method:h,params:m}){const p=async(b=0)=>{const v=u[b]({chain:s,retryCount:0,timeout:l});try{const g=await v.request({method:h,params:m});return d({method:h,params:m,response:g,transport:v,status:"success"}),g}catch(g){if(d({error:g,method:h,params:m,transport:v,status:"error"}),Oq(g)||b===u.length-1)throw g;return p(b+1)}};return p()},retryCount:a,retryDelay:i,type:"fallback"},{onResponse:h=>d=h,transports:u.map(h=>h({chain:s,retryCount:0}))});if(o){const h=typeof o=="object"?o:{};Kue({chain:s,interval:h.interval??c,onTransports:m=>u=m,sampleCount:h.sampleCount,timeout:h.timeout,transports:u,weights:h.weights})}return f}}function Kue({chain:e,interval:t=4e3,onTransports:n,sampleCount:r=10,timeout:o=1e3,transports:a,weights:i={}}){const{stability:s=.7,latency:c=.3}=i,l=[],u=async()=>{const d=await Promise.all(a.map(async m=>{const p=m({chain:e,retryCount:0,timeout:o}),b=Date.now();let v,g;try{await p.request({method:"net_listening"}),g=1}catch{g=0}finally{v=Date.now()}return{latency:v-b,success:g}}));l.push(d),l.length>r&&l.shift();const f=Math.max(...l.map(m=>Math.max(...m.map(({latency:p})=>p)))),h=a.map((m,p)=>{const b=l.map(C=>C[p].latency),g=1-b.reduce((C,x)=>C+x,0)/b.length/f,w=l.map(C=>C[p].success),_=w.reduce((C,x)=>C+x,0)/w.length;return _===0?[0,p]:[c*g+s*_,p]}).sort((m,p)=>p[0]-m[0]);n(h.map(([,m])=>a[m])),await Sw(t),u()};u()}let Rq=class extends de{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}};function Yue(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const g5=Yue(),Que=Object.freeze(Object.defineProperty({__proto__:null,WebSocket:g5},Symbol.toStringTag,{value:"Module"}));function Nq(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:r}){return new Promise((o,a)=>{(async()=>{let i;try{const s=new AbortController;n>0&&(i=setTimeout(()=>{r?s.abort():a(t)},n)),o(await e({signal:s==null?void 0:s.signal}))}catch(s){s.name==="AbortError"&&a(t),a(s)}finally{clearTimeout(i)}})()})}let y5=0;async function Xue(e,{body:t,fetchOptions:n={},timeout:r=1e4}){var s;const{headers:o,method:a,signal:i}=n;try{const c=await Nq(async({signal:u})=>await fetch(e,{...n,body:Array.isArray(t)?Xr(t.map(f=>({jsonrpc:"2.0",id:f.id??y5++,...f}))):Xr({jsonrpc:"2.0",id:t.id??y5++,...t}),headers:{...o,"Content-Type":"application/json"},method:a||"POST",signal:i||(r>0?u:void 0)}),{errorInstance:new HA({body:t,url:e}),timeout:r,signal:!0});let l;if((s=c.headers.get("Content-Type"))!=null&&s.startsWith("application/json")?l=await c.json():l=await c.text(),!c.ok)throw new g0({body:t,details:Xr(l.error)||c.statusText,headers:c.headers,status:c.status,url:e});return l}catch(c){throw c instanceof g0||c instanceof HA?c:new g0({body:t,details:c.message,url:e})}}const PS=new Map;async function IS(e){let t=PS.get(e);if(t)return t;const{schedule:n}=ij({id:e,fn:async()=>{const a=new g5(e),i=new Map,s=new Map,c=({data:u})=>{const d=JSON.parse(u),f=d.method==="eth_subscription",h=f?d.params.subscription:d.id,m=f?s:i,p=m.get(h);p&&p({data:u}),f||m.delete(h)},l=()=>{PS.delete(e),a.removeEventListener("close",l),a.removeEventListener("message",c)};return a.addEventListener("close",l),a.addEventListener("message",c),a.readyState===g5.CONNECTING&&await new Promise((u,d)=>{a&&(a.onopen=u,a.onerror=d)}),t=Object.assign(a,{requests:i,subscriptions:s}),PS.set(e,t),[t]}}),[r,[o]]=await n();return o}function Jue(e,{body:t,onResponse:n}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new pue({body:t,url:e.url,details:"Socket is closed."});const r=y5++,o=({data:a})=>{var s;const i=JSON.parse(a);typeof i.id=="number"&&r!==i.id||(n==null||n(i),t.method==="eth_subscribe"&&typeof i.result=="string"&&e.subscriptions.set(i.result,o),t.method==="eth_unsubscribe"&&e.subscriptions.delete((s=t.params)==null?void 0:s[0]))};return e.requests.set(r,o),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:r})),e}async function Zue(e,{body:t,timeout:n=1e4}){return Nq(()=>new Promise(r=>Qf.webSocket(e,{body:t,onResponse:r})),{errorInstance:new HA({body:t,url:e.url}),timeout:n})}const Qf={http:Xue,webSocket:Jue,webSocketAsync:Zue};function yh(e,t={}){const{batch:n,fetchOptions:r,key:o="http",name:a="HTTP JSON-RPC",retryDelay:i}=t;return({chain:s,retryCount:c,timeout:l})=>{const{batchSize:u=1e3,wait:d=0}=typeof n=="object"?n:{},f=t.retryCount??c,h=l??t.timeout??1e4,m=e||(s==null?void 0:s.rpcUrls.default.http[0]);if(!m)throw new Rq;return W_({key:o,name:a,async request({method:p,params:b}){const v={method:p,params:b},{schedule:g}=ij({id:`${e}`,wait:d,shouldSplitBatch(x){return x.length>u},fn:x=>Qf.http(m,{body:x,fetchOptions:r,timeout:h}),sort:(x,E)=>x.id-E.id}),w=async x=>n?g(x):[await Qf.http(m,{body:x,fetchOptions:r,timeout:h})],[{error:_,result:C}]=await w(v);if(_)throw new X8({body:v,error:_,url:m});return C},retryCount:f,retryDelay:i,timeout:h,type:"http"},{fetchOptions:r,url:e})}}function lj(e,t){var r,o,a;if(!(e instanceof de))return!1;const n=e.walk(i=>i instanceof zA);return n instanceof zA?!!(((r=n.data)==null?void 0:r.errorName)==="ResolverNotFound"||((o=n.data)==null?void 0:o.errorName)==="ResolverWildcardNotSupported"||(a=n.reason)!=null&&a.includes("Wildcard on non-extended resolvers is not supported")||t==="reverse"&&n.reason===KH[50]):!1}function Bq(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return Ea(t)?t:null}function l1(e){let t=new Uint8Array(32).fill(0);if(!e)return qu(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const o=Bq(n[r]),a=o?rl(o):Or(ds(n[r]),"bytes");t=Or(Cs([t,a]),"bytes")}return qu(t)}function ede(e){return`[${e.slice(2)}]`}function tde(e){const t=new Uint8Array(32).fill(0);return e?Bq(e)||Or(ds(e)):qu(t)}function G_(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const n=new Uint8Array(ds(t).byteLength+2);let r=0;const o=t.split(".");for(let a=0;a255&&(i=ds(ede(tde(o[a])))),n[r]=i.length,n.set(i,r+1),r+=i.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}async function nde(e,{blockNumber:t,blockTag:n,coinType:r,name:o,universalResolverAddress:a}){let i=a;if(!i){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=im({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s=oi({abi:AO,functionName:"addr",...r!=null?{args:[l1(o),BigInt(r)]}:{args:[l1(o)]}}),c=await Fe(e,Ss,"readContract")({address:i,abi:Tq,functionName:"resolve",args:[rt(G_(o)),s],blockNumber:t,blockTag:n});if(c[0]==="0x")return null;const l=am({abi:AO,args:r!=null?[l1(o),BigInt(r)]:void 0,functionName:"addr",data:c[0]});return l==="0x"||Za(l)==="0x00"?null:l}catch(s){if(lj(s,"resolve"))return null;throw s}}let rde=class extends de{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)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}},hp=class extends de{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}},uj=class extends de{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.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}},ode=class extends de{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}};const ade=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,ide=/^(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,})(\/(?[\w\-.]+))?(?\/.*)?$/,sde=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,cde=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function lde(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"||!globalThis.hasOwnProperty("Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}function jO(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function Fq({uri:e,gatewayUrls:t}){const n=sde.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=jO(t==null?void 0:t.ipfs,"https://ipfs.io"),o=jO(t==null?void 0:t.arweave,"https://arweave.net"),a=e.match(ade),{protocol:i,subpath:s,target:c,subtarget:l=""}=(a==null?void 0:a.groups)||{},u=i==="ipns:/"||s==="ipns/",d=i==="ipfs:/"||s==="ipfs/"||ide.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(cde,"");if(f.startsWith("o.json());return await dj({gatewayUrls:e,uri:Mq(n)})}catch{throw new uj({uri:t})}}async function dj({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=Fq({uri:t,gatewayUrls:e});if(r||await lde(n))return n;throw new uj({uri:t})}function dde(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,o]=t.split("/"),[a,i]=n.split(":"),[s,c]=r.split(":");if(!a||a.toLowerCase()!=="eip155")throw new hp({reason:"Only EIP-155 supported"});if(!i)throw new hp({reason:"Chain ID not found"});if(!c)throw new hp({reason:"Contract address not found"});if(!o)throw new hp({reason:"Token ID not found"});if(!s)throw new hp({reason:"ERC namespace not found"});return{chainID:parseInt(i),namespace:s.toLowerCase(),contractAddress:c,tokenID:o}}async function fde(e,{nft:t}){if(t.namespace==="erc721")return Ss(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 Ss(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 ode({namespace:t.namespace})}async function hde(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?mde(e,{gatewayUrls:t,record:n}):dj({uri:n,gatewayUrls:t})}async function mde(e,{gatewayUrls:t,record:n}){const r=dde(n),o=await fde(e,{nft:r}),{uri:a,isOnChain:i,isEncoded:s}=Fq({uri:o,gatewayUrls:t});if(i&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const l=s?atob(a.replace("data:application/json;base64,","")):a,u=JSON.parse(l);return dj({uri:Mq(u),gatewayUrls:t})}let c=r.tokenID;return r.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),ude({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,c)})}async function Lq(e,{blockNumber:t,blockTag:n,name:r,key:o,universalResolverAddress:a}){let i=a;if(!i){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=im({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s=await Fe(e,Ss,"readContract")({address:i,abi:Tq,functionName:"resolve",args:[rt(G_(r)),oi({abi:TO,functionName:"text",args:[l1(r),o]})],blockNumber:t,blockTag:n});if(s[0]==="0x")return null;const c=am({abi:TO,functionName:"text",data:s[0]});return c===""?null:c}catch(s){if(lj(s,"resolve"))return null;throw s}}async function pde(e,{blockNumber:t,blockTag:n,gatewayUrls:r,name:o,universalResolverAddress:a}){const i=await Fe(e,Lq,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:o,universalResolverAddress:a});if(!i)return null;try{return await hde(e,{record:i,gatewayUrls:r})}catch{return null}}async function gde(e,{address:t,blockNumber:n,blockTag:r,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=im({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}const i=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const[s,c]=await Fe(e,Ss,"readContract")({address:a,abi:Due,functionName:"reverse",args:[rt(G_(i))],blockNumber:n,blockTag:r});return t.toLowerCase()!==c.toLowerCase()?null:s}catch(s){if(lj(s,"reverse"))return null;throw s}}async function yde(e,{blockNumber:t,blockTag:n,name:r,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=im({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}const[i]=await Fe(e,Ss,"readContract")({address:a,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[rt(G_(r))],blockNumber:t,blockTag:n});return i}async function bde(e){const t=N_(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}async function Uq(e,{address:t,args:n,event:r,events:o,fromBlock:a,strict:i,toBlock:s}={}){const c=o??(r?[r]:void 0),l=N_(e,{method:"eth_newFilter"});let u=[];c&&(u=[c.flatMap(f=>Yg({abi:[f],eventName:f.name,args:n}))],r&&(u=u[0]));const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?Xe(a):a,toBlock:typeof s=="bigint"?Xe(s):s,...u.length?{topics:u}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:a,id:d,request:l(d),strict:i,toBlock:s,type:"event"}}async function $q(e){const t=N_(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}async function vde(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n?Xe(n):void 0,a=await e.request({method:"eth_getBalance",params:[t,o||r]});return BigInt(a)}async function wde(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){const o=n!==void 0?Xe(n):void 0;let a;return t?a=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):a=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[o||r]}),pr(a)}async function Ede(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n!==void 0?Xe(n):void 0,a=await e.request({method:"eth_getCode",params:[t,o||r]});if(a!=="0x")return a}function _de(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 xde(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:o}){const a=n?Xe(n):void 0,i=await e.request({method:"eth_feeHistory",params:[Xe(t),a||r,o]});return _de(i)}async function Cde(e,{filter:t}){const n=t.strict??!1;return(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(o=>{var a;try{const{eventName:i,args:s}="abi"in t&&t.abi?Zg({abi:t.abi,data:o.data,topics:o.topics,strict:n}):{eventName:void 0,args:void 0};return _a(o,{args:s,eventName:i})}catch(i){let s,c;if(i instanceof Hu||i instanceof nm){if("strict"in t&&t.strict)return;s=i.abiItem.name,c=(a=i.abiItem.inputs)==null?void 0:a.some(l=>!("name"in l&&l.name))}return _a(o,{args:c?[]:{},eventName:s})}}).filter(Boolean)}function Er(e,t={}){const{fees:n=e.fees,formatters:r=e.formatters,serializers:o=e.serializers}=t;return{...e,fees:n,formatters:r,serializers:o}}const Sde=/^(.*)\[([0-9]*)\]$/,zq=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Hq=/^(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 Tde({domain:e,message:t,primaryType:n,types:r}){const o=typeof e>"u"?{}:e,a={EIP712Domain:Yq({domain:o}),...r};Kq({domain:o,message:t,primaryType:n,types:a});const i=["0x1901"];return o&&i.push(Ade({domain:o,types:a})),n!=="EIP712Domain"&&i.push(qq({data:t,primaryType:n,types:a})),Or(Cs(i))}function Ade({domain:e,types:t}){return qq({data:e,primaryType:"EIP712Domain",types:t})}function qq({data:e,primaryType:t,types:n}){const r=Wq({data:e,primaryType:t,types:n});return Or(r)}function Wq({data:e,primaryType:t,types:n}){const r=[{type:"bytes32"}],o=[Dde({primaryType:t,types:n})];for(const a of n[t]){const[i,s]=Vq({types:n,name:a.name,type:a.type,value:e[a.name]});r.push(i),o.push(s)}return Vg(r,o)}function Dde({primaryType:e,types:t}){const n=rt(kde({primaryType:e,types:t}));return Or(n)}function kde({primaryType:e,types:t}){let n="";const r=Gq({primaryType:e,types:t});r.delete(e);const o=[e,...Array.from(r).sort()];for(const a of o)n+=`${a}(${t[a].map(({name:i,type:s})=>`${s} ${i}`).join(",")})`;return n}function Gq({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 a of t[o])Gq({primaryType:a.type,types:t},n);return n}function Vq({types:e,name:t,type:n,value:r}){if(e[n]!==void 0)return[{type:"bytes32"},Or(Wq({data:r,primaryType:n,types:e}))];if(n==="bytes")return r=`0x${(r.length%2?"0":"")+r.slice(2)}`,[{type:"bytes32"},Or(r)];if(n==="string")return[{type:"bytes32"},Or(rt(r))];if(n.lastIndexOf("]")===n.length-1){const o=n.slice(0,n.lastIndexOf("[")),a=r.map(i=>Vq({name:t,type:o,types:e,value:i}));return[{type:"bytes32"},Or(Vg(a.map(([i])=>i),a.map(([,i])=>i)))]}return[{type:n},r]}function Kq({domain:e,message:t,primaryType:n,types:r}){const o=r,a=(i,s)=>{for(const c of i){const{name:l,type:u}=c,d=u,f=s[l],h=d.match(Hq);if(h&&(typeof f=="number"||typeof f=="bigint")){const[b,v,g]=h;Xe(f,{signed:v==="int",size:parseInt(g)/8})}if(d==="address"&&typeof f=="string"&&!Hn(f))throw new Wo({address:f});const m=d.match(zq);if(m){const[b,v]=m;if(v&&Pn(f)!==parseInt(v))throw new PH({expectedSize:parseInt(v),givenSize:Pn(f)})}const p=o[d];p&&a(p,f)}};if(o.EIP712Domain&&e&&a(o.EIP712Domain,e),n!=="EIP712Domain"){const i=o[n];a(i,t)}}function Yq({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"&&{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)}const OS="/docs/contract/encodeDeployData";function Qq({abi:e,args:t,bytecode:n}){if(!t||t.length===0)return n;const r=e.find(a=>"type"in a&&a.type==="constructor");if(!r)throw new Rce({docsPath:OS});if(!("inputs"in r))throw new bO({docsPath:OS});if(!r.inputs||r.inputs.length===0)throw new bO({docsPath:OS});const o=Vg(r.inputs,t);return Sl([n,o])}function jde(e,t){if(e.length!==t.length)throw new kH({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;rthis.bytes.length-1)throw new Pde({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new PO({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},incrementPosition(e){if(e<0)throw new PO({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(){const e=this.inspectByte();return this.position++,e},readBytes(e){const t=this.inspectBytes(e);return this.position+=e,t},readUint8(){const e=this.inspectUint8();return this.position+=1,e},readUint16(){const e=this.inspectUint16();return this.position+=2,e},readUint24(){const e=this.inspectUint24();return this.position+=3,e},readUint32(){const e=this.inspectUint32();return this.position+=4,e},setPosition(e){this.assertPosition(e),this.position=e}};function Ode(e){const t=Object.create(Ide);return t.bytes=e,t.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),t}function V_(e,t="hex"){const n=Jq(e),r=Ode(new Uint8Array(n.length));return n.encode(r),t==="hex"?qu(r.bytes):r.bytes}function Jq(e){return Array.isArray(e)?Rde(e.map(t=>Jq(t))):Nde(e)}function Rde(e){const t=e.reduce((o,a)=>o+a.length,0),n=Zq(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:a}of e)a(o)}}}function Nde(e){const t=typeof e=="string"?qg(e):e,n=Zq(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 Zq(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 de("Length is too large.")}const Bde={"0x0":"reverted","0x1":"success"};function eW(e){return{...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(t=>_a(t)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?pr(e.transactionIndex):null,status:e.status?Bde[e.status]:null,type:e.type?bq[e.type]||e.type:null}}const tW=M_("transactionReceipt",eW);function fj(e){return Ea(e)&&Pn(e)===32}function Fde(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),a=BigInt(4294967295),i=Number(n>>o&a),s=Number(n&a),c=r?4:0,l=r?0:4;e.setUint32(t+c,i,r),e.setUint32(t+l,s,r)}class nW extends $8{constructor(t,n,r,o){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=TS(this.buffer)}update(t){ph(this);const{view:n,buffer:r,blockLen:o}=this;t=Wg(t);const a=t.length;for(let i=0;io-i&&(this.process(r,0),i=0);for(let d=i;du.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;de&t^~e&n,Lde=(e,t,n)=>e&t^e&n^t&n,Ude=new Uint32Array([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]),ic=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),sc=new Uint32Array(64);class rW extends nW{constructor(){super(64,32,8,!1),this.A=ic[0]|0,this.B=ic[1]|0,this.C=ic[2]|0,this.D=ic[3]|0,this.E=ic[4]|0,this.F=ic[5]|0,this.G=ic[6]|0,this.H=ic[7]|0}get(){const{A:t,B:n,C:r,D:o,E:a,F:i,G:s,H:c}=this;return[t,n,r,o,a,i,s,c]}set(t,n,r,o,a,i,s,c){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=a|0,this.F=i|0,this.G=s|0,this.H=c|0}process(t,n){for(let d=0;d<16;d++,n+=4)sc[d]=t.getUint32(n,!1);for(let d=16;d<64;d++){const f=sc[d-15],h=sc[d-2],m=gi(f,7)^gi(f,18)^f>>>3,p=gi(h,17)^gi(h,19)^h>>>10;sc[d]=p+sc[d-7]+m+sc[d-16]|0}let{A:r,B:o,C:a,D:i,E:s,F:c,G:l,H:u}=this;for(let d=0;d<64;d++){const f=gi(s,6)^gi(s,11)^gi(s,25),h=u+f+Mde(s,c,l)+Ude[d]+sc[d]|0,p=(gi(r,2)^gi(r,13)^gi(r,22))+Lde(r,o,a)|0;u=l,l=c,c=s,s=i+h|0,i=a,a=o,o=r,r=h+p|0}r=r+this.A|0,o=o+this.B|0,a=a+this.C|0,i=i+this.D|0,s=s+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(r,o,a,i,s,c,l,u)}roundClean(){sc.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class $de extends rW{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const ng=O_(()=>new rW),zde=O_(()=>new $de),Hde=Object.freeze(Object.defineProperty({__proto__:null,sha224:zde,sha256:ng},Symbol.toStringTag,{value:"Module"})),qde=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),oW=Uint8Array.from({length:16},(e,t)=>t),Wde=oW.map(e=>(9*e+5)%16);let hj=[oW],mj=[Wde];for(let e=0;e<4;e++)for(let t of[hj,mj])t.push(t[e].map(n=>qde[n]));const aW=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>new Uint8Array(e)),Gde=hj.map((e,t)=>e.map(n=>aW[t][n])),Vde=mj.map((e,t)=>e.map(n=>aW[t][n])),Kde=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Yde=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),Zb=(e,t)=>e<>>32-t;function IO(e,t,n,r){return e===0?t^n^r:e===1?t&n|~t&r:e===2?(t|~n)^r:e===3?t&r|n&~r:t^(n|~r)}const ev=new Uint32Array(16);class iW extends nW{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:t,h1:n,h2:r,h3:o,h4:a}=this;return[t,n,r,o,a]}set(t,n,r,o,a){this.h0=t|0,this.h1=n|0,this.h2=r|0,this.h3=o|0,this.h4=a|0}process(t,n){for(let h=0;h<16;h++,n+=4)ev[h]=t.getUint32(n,!0);let r=this.h0|0,o=r,a=this.h1|0,i=a,s=this.h2|0,c=s,l=this.h3|0,u=l,d=this.h4|0,f=d;for(let h=0;h<5;h++){const m=4-h,p=Kde[h],b=Yde[h],v=hj[h],g=mj[h],w=Gde[h],_=Vde[h];for(let C=0;C<16;C++){const x=Zb(r+IO(h,a,s,l)+ev[v[C]]+p,w[C])+d|0;r=d,d=l,l=Zb(s,10)|0,s=a,a=x}for(let C=0;C<16;C++){const x=Zb(o+IO(m,i,c,u)+ev[g[C]]+b,_[C])+f|0;o=f,f=u,u=Zb(c,10)|0,c=i,i=x}}this.set(this.h1+s+u|0,this.h2+l+f|0,this.h3+d+o|0,this.h4+r+i|0,this.h0+a+c|0)}roundClean(){ev.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const Qde=O_(()=>new iW),Xde=Object.freeze(Object.defineProperty({__proto__:null,RIPEMD160:iW,ripemd160:Qde},Symbol.toStringTag,{value:"Module"})),Jde=`Ethereum Signed Message: -`;function Zde(e,t){const n=typeof e=="string"?ds(e):e.raw instanceof Uint8Array?e.raw:rl(e.raw),r=ds(`${Jde}${n.length}`);return Or(Cs([r,n]),t)}function efe(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=e;if(t<=0)throw new $_({chainId:t});if(a&&!Hn(a))throw new Wo({address:a});if(r)throw new de("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(o&&o>2n**256n-1n)throw new Gu({maxFeePerGas:o});if(n&&o&&n>o)throw new eg({maxFeePerGas:o,maxPriorityFeePerGas:n})}function tfe(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=e;if(t<=0)throw new $_({chainId:t});if(a&&!Hn(a))throw new Wo({address:a});if(n||o)throw new de("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>2n**256n-1n)throw new Gu({maxFeePerGas:r})}function nfe(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a,accessList:i}=e;if(a&&!Hn(a))throw new Wo({address:a});if(typeof t<"u"&&t<=0)throw new $_({chainId:t});if(n||o)throw new de("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>2n**256n-1n)throw new Gu({maxFeePerGas:r});if(i)throw new de("`accessList` is not a valid Legacy Transaction attribute.")}function sW(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n{if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);const d=27n+(t.v===27n?0n:1n);if(t.v!==d)throw new lue({v:t.v});return d})();l=[...l,rt(u),t.r,t.s]}else n>0&&(l=[...l,rt(n),"0x","0x"]);return V_(l)}function pj(e,t){let[n,r="0"]=e.split(".");const o=n.startsWith("-");if(o&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),t===0)Math.round(+`.${r}`)===1&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>t){const[a,i,s]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],c=Math.round(+`${i}.${s}`);c>9?r=`${BigInt(a)+BigInt(1)}0`.padStart(a.length+1,"0"):r=`${a}${c}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${o?"-":""}${n}${r}`)}function sfe(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function cfe(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?pr(e.nonce):void 0,storageProof:e.storageProof?sfe(e.storageProof):void 0}}async function lfe(e,{address:t,blockNumber:n,blockTag:r,storageKeys:o}){const a=r??"latest",i=n!==void 0?Xe(n):void 0,s=await e.request({method:"eth_getProof",params:[t,o,i||a]});return cfe(s)}async function ufe(e,{address:t,blockNumber:n,blockTag:r="latest",slot:o}){const a=n!==void 0?Xe(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,o,a||r]})}async function gj(e,{blockHash:t,blockNumber:n,blockTag:r,hash:o,index:a}){var u,d,f;const i=r||"latest",s=n!==void 0?Xe(n):void 0;let c=null;if(o?c=await e.request({method:"eth_getTransactionByHash",params:[o]}):t?c=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,Xe(a)]}):(s||i)&&(c=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[s||i,Xe(a)]})),!c)throw new QH({blockHash:t,blockNumber:n,blockTag:i,hash:o,index:a});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.transaction)==null?void 0:f.format)||L_)(c)}async function dfe(e,{hash:t,transactionReceipt:n}){const[r,o]=await Promise.all([Fe(e,ty,"getBlockNumber")({}),t?Fe(e,gj,"getBlockNumber")({hash:t}):void 0]),a=(n==null?void 0:n.blockNumber)||(o==null?void 0:o.blockNumber);return a?r-a+1n:0n}async function b5(e,{hash:t}){var o,a,i;const n=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!n)throw new XH({hash:t});return(((i=(a=(o=e.chain)==null?void 0:o.formatters)==null?void 0:a.transactionReceipt)==null?void 0:i.format)||eW)(n)}async function ffe(e,t){var p;const{allowFailure:n=!0,batchSize:r,blockNumber:o,blockTag:a,contracts:i,multicallAddress:s}=t,c=r??(typeof((p=e.batch)==null?void 0:p.multicall)=="object"&&e.batch.multicall.batchSize||1024);let l=s;if(!l){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");l=im({blockNumber:o,chain:e.chain,contract:"multicall3"})}const u=[[]];let d=0,f=0;for(let b=0;b0&&f>c&&u[d].length>0&&(d++,f=(C.length-2)/2,u[d]=[]),u[d]=[...u[d],{allowFailure:!0,callData:C,target:g}]}catch(C){const x=Z0(C,{abi:v,address:g,args:w,docsPath:"/docs/contract/multicall",functionName:_});if(!n)throw x;u[d]=[...u[d],{allowFailure:!0,callData:"0x",target:g}]}}const h=await Promise.allSettled(u.map(b=>Fe(e,Ss,"readContract")({abi:f5,address:l,args:[b],blockNumber:o,blockTag:a,functionName:"aggregate3"}))),m=[];for(let b=0;be instanceof Uint8Array,pfe=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function bh(e){if(!Y_(e))throw new Error("Uint8Array expected");let t="";for(let n=0;nr+o.length,0));let n=0;return e.forEach(r=>{if(!Y_(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}function uW(e,t){if(e.length!==t.length)return!1;for(let n=0;ncW;e>>=K_,t+=1);return t}function bfe(e,t){return e>>BigInt(t)&K_}const vfe=(e,t,n)=>e|(n?K_:cW)<(mfe<new Uint8Array(e),OO=e=>Uint8Array.from(e);function dW(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=RS(e),o=RS(e),a=0;const i=()=>{r.fill(1),o.fill(0),a=0},s=(...d)=>n(o,r,...d),c=(d=RS())=>{o=s(OO([0]),d),r=s(),d.length!==0&&(o=s(OO([1]),d),r=s())},l=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const f=[];for(;d{i(),c(d);let h;for(;!(h=f(l()));)c();return i(),h}}const wfe={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"||e instanceof Uint8Array,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 cm(e,t,n={}){const r=(o,a,i)=>{const s=wfe[a];if(typeof s!="function")throw new Error(`Invalid validator "${a}", expected function`);const c=e[o];if(!(i&&c===void 0)&&!s(c,e))throw new Error(`Invalid param ${String(o)}=${c} (${typeof c}), expected ${a}`)};for(const[o,a]of Object.entries(t))r(o,a,!1);for(const[o,a]of Object.entries(n))r(o,a,!0);return e}const fW=Object.freeze(Object.defineProperty({__proto__:null,bitGet:bfe,bitLen:yfe,bitMask:wj,bitSet:vfe,bytesToHex:bh,bytesToNumberBE:Jr,bytesToNumberLE:bj,concatBytes:Fo,createHmacDrbg:dW,ensureBytes:Dr,equalBytes:uW,hexToBytes:vh,hexToNumber:yj,numberToBytesBE:il,numberToBytesLE:vj,numberToHexUnpadded:lW,numberToVarBytesBE:gfe,utf8ToBytes:Q_,validateObject:cm},Symbol.toStringTag,{value:"Module"}));function Efe(e,t){const n=Ea(e)?rl(e):e,r=Ea(t)?rl(t):t;return uW(n,r)}async function hW(e,{address:t,hash:n,signature:r,...o}){const a=Ea(r)?r:rt(r);try{const{data:i}=await Fe(e,z_,"call")({data:Qq({abi:kue,args:[t,n,a],bytecode:hfe}),...o});return Efe(i??"0x0","0x1")}catch(i){if(i instanceof JH)return!1;throw i}}async function _fe(e,{address:t,message:n,signature:r,...o}){const a=Zde(n);return hW(e,{address:t,hash:a,signature:r,...o})}async function xfe(e,{address:t,signature:n,message:r,primaryType:o,types:a,domain:i,...s}){const c=Tde({message:r,primaryType:o,types:a,domain:i});return hW(e,{address:t,hash:c,signature:n,...s})}function mW(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:o,poll:a,pollingInterval:i=e.pollingInterval}){const s=typeof a<"u"?a:e.transport.type!=="webSocket";let c;return s?(()=>{const d=Xr(["watchBlockNumber",e.uid,t,n,i]);return sm(d,{onBlockNumber:r,onError:o},f=>ey(async()=>{var h;try{const m=await Fe(e,ty,"getBlockNumber")({cacheTime:0});if(c){if(m===c)return;if(m-c>1&&n)for(let p=c+1n;pc)&&(f.onBlockNumber(m,c),c=m)}catch(m){(h=f.onError)==null||h.call(f,m)}},{emitOnBegin:t,interval:i}))})():(()=>{let d=!0,f=()=>d=!1;return(async()=>{try{const{unsubscribe:h}=await e.transport.subscribe({params:["newHeads"],onData(m){var b;if(!d)return;const p=wn((b=m.result)==null?void 0:b.number);r(p,c),c=p},onError(m){o==null||o(m)}});f=h,d||f()}catch(h){o==null||o(h)}})(),f})()}async function Cfe(e,{confirmations:t=1,hash:n,onReplaced:r,pollingInterval:o=e.pollingInterval,timeout:a}){const i=Xr(["waitForTransactionReceipt",e.uid,n]);let s,c,l,u=!1;return new Promise((d,f)=>{a&&setTimeout(()=>f(new hue({hash:n})),a);const h=sm(i,{onReplaced:r,resolve:d,reject:f},m=>{const p=Fe(e,mW,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:o,async onBlockNumber(b){if(u)return;let v=b;const g=w=>{p(),w(),h()};try{if(l){if(t>1&&(!l.blockNumber||v-l.blockNumber+1nm.resolve(l));return}if(s||(u=!0,await p5(async()=>{s=await Fe(e,gj,"getTransaction")({hash:n}),s.blockNumber&&(v=s.blockNumber)},{delay:({count:w})=>~~(1<1&&(!l.blockNumber||v-l.blockNumber+1nm.resolve(l))}catch(w){if(s&&(w instanceof QH||w instanceof XH))try{c=s,u=!0;const _=await p5(()=>Fe(e,al,"getBlock")({blockNumber:v,includeTransactions:!0}),{delay:({count:E})=>~~(1<E instanceof yq});u=!1;const C=_.transactions.find(({from:E,nonce:T})=>E===c.from&&T===c.nonce);if(!C||(l=await Fe(e,b5,"getTransactionReceipt")({hash:C.hash}),t>1&&(!l.blockNumber||v-l.blockNumber+1n{var E;(E=m.onReplaced)==null||E.call(m,{reason:x,replacedTransaction:c,transaction:C,transactionReceipt:l}),m.resolve(l)})}catch(_){g(()=>m.reject(_))}else g(()=>m.reject(w))}}})})})}function Sfe(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:o,onError:a,includeTransactions:i,poll:s,pollingInterval:c=e.pollingInterval}){const l=typeof s<"u"?s:e.transport.type!=="webSocket",u=i??!1;let d;return l?(()=>{const m=Xr(["watchBlocks",e.uid,n,r,u,c]);return sm(m,{onBlock:o,onError:a},p=>ey(async()=>{var b;try{const v=await Fe(e,al,"getBlock")({blockTag:t,includeTransactions:u});if(v.number&&(d!=null&&d.number)){if(v.number===d.number)return;if(v.number-d.number>1&&n)for(let g=(d==null?void 0:d.number)+1n;gd.number)&&(p.onBlock(v,d),d=v)}catch(v){(b=p.onError)==null||b.call(p,v)}},{emitOnBegin:r,interval:c}))})():(()=>{let m=!0,p=()=>m=!1;return(async()=>{try{const{unsubscribe:b}=await e.transport.subscribe({params:["newHeads"],onData(v){var _,C,x;if(!m)return;const w=(((x=(C=(_=e.chain)==null?void 0:_.formatters)==null?void 0:C.block)==null?void 0:x.format)||tj)(v.result);o(w,d),d=w},onError(v){a==null||a(v)}});p=b,m||p()}catch(b){a==null||a(b)}})(),p})()}function Tfe(e,{address:t,args:n,batch:r=!0,event:o,events:a,onError:i,onLogs:s,poll:c,pollingInterval:l=e.pollingInterval,strict:u}){const d=typeof c<"u"?c:e.transport.type!=="webSocket",f=u??!1;return d?(()=>{const p=Xr(["watchEvent",t,n,r,e.uid,o,l]);return sm(p,{onLogs:s,onError:i},b=>{let v,g,w=!1;const _=ey(async()=>{var C;if(!w){try{g=await Fe(e,Uq,"createEventFilter")({address:t,args:n,event:o,events:a,strict:f})}catch{}w=!0;return}try{let x;if(g)x=await Fe(e,H_,"getFilterChanges")({filter:g});else{const E=await Fe(e,ty,"getBlockNumber")({});v&&v!==E?x=await Fe(e,oj,"getLogs")({address:t,args:n,event:o,events:a,fromBlock:v+1n,toBlock:E}):x=[],v=E}if(x.length===0)return;if(r)b.onLogs(x);else for(const E of x)b.onLogs([E])}catch(x){g&&x instanceof J0&&(w=!1),(C=b.onError)==null||C.call(b,x)}},{emitOnBegin:!0,interval:l});return async()=>{g&&await Fe(e,q_,"uninstallFilter")({filter:g}),_()}})})():(()=>{let p=!0,b=()=>p=!1;return(async()=>{try{const v=a??(o?[o]:void 0);let g=[];v&&(g=[v.flatMap(_=>Yg({abi:[_],eventName:_.name,args:n}))],o&&(g=g[0]));const{unsubscribe:w}=await e.transport.subscribe({params:["logs",{address:t,topics:g}],onData(_){var x;if(!p)return;const C=_.result;try{const{eventName:E,args:T}=Zg({abi:v,data:C.data,topics:C.topics,strict:f}),k=_a(C,{args:T,eventName:E});s([k])}catch(E){let T,k;if(E instanceof Hu||E instanceof nm){if(u)return;T=E.abiItem.name,k=(x=E.abiItem.inputs)==null?void 0:x.some(R=>!("name"in R&&R.name))}const D=_a(C,{args:k?[]:{},eventName:T});s([D])}},onError(_){i==null||i(_)}});b=w,p||b()}catch(v){i==null||i(v)}})(),b})()}function Afe(e,{batch:t=!0,onError:n,onTransactions:r,poll:o,pollingInterval:a=e.pollingInterval}){return(typeof o<"u"?o:e.transport.type!=="webSocket")?(()=>{const l=Xr(["watchPendingTransactions",e.uid,t,a]);return sm(l,{onTransactions:r,onError:n},u=>{let d;const f=ey(async()=>{var h;try{if(!d)try{d=await Fe(e,$q,"createPendingTransactionFilter")({});return}catch(p){throw f(),p}const m=await Fe(e,H_,"getFilterChanges")({filter:d});if(m.length===0)return;if(t)u.onTransactions(m);else for(const p of m)u.onTransactions([p])}catch(m){(h=u.onError)==null||h.call(u,m)}},{emitOnBegin:!0,interval:a});return async()=>{d&&await Fe(e,q_,"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})()}function Dfe(e){return{call:t=>z_(e,t),createBlockFilter:()=>bde(e),createContractEventFilter:t=>G8(e,t),createEventFilter:t=>Uq(e,t),createPendingTransactionFilter:()=>$q(e),estimateContractGas:t=>Cq(e,t),estimateGas:t=>rj(e,t),getBalance:t=>vde(e,t),getBlock:t=>al(e,t),getBlockNumber:t=>ty(e,t),getBlockTransactionCount:t=>wde(e,t),getBytecode:t=>Ede(e,t),getChainId:()=>tg(e),getContractEvents:t=>aj(e,t),getEnsAddress:t=>nde(e,t),getEnsAvatar:t=>pde(e,t),getEnsName:t=>gde(e,t),getEnsResolver:t=>yde(e,t),getEnsText:t=>Lq(e,t),getFeeHistory:t=>xde(e,t),estimateFeesPerGas:t=>Tue(e,t),getFilterChanges:t=>H_(e,t),getFilterLogs:t=>Cde(e,t),getGasPrice:()=>nj(e),getLogs:t=>oj(e,t),getProof:t=>lfe(e,t),estimateMaxPriorityFeePerGas:t=>Sue(e,t),getStorageAt:t=>ufe(e,t),getTransaction:t=>gj(e,t),getTransactionConfirmations:t=>dfe(e,t),getTransactionCount:t=>_q(e,t),getTransactionReceipt:t=>b5(e,t),multicall:t=>ffe(e,t),prepareTransactionRequest:t=>U_(e,t),readContract:t=>Ss(e,t),sendRawTransaction:t=>sj(e,t),simulateContract:t=>Dq(e,t),verifyMessage:t=>_fe(e,t),verifyTypedData:t=>xfe(e,t),uninstallFilter:t=>q_(e,t),waitForTransactionReceipt:t=>Cfe(e,t),watchBlocks:t=>Sfe(e,t),watchBlockNumber:t=>mW(e,t),watchContractEvent:t=>kq(e,t),watchEvent:t=>Tfe(e,t),watchPendingTransactions:t=>Afe(e,t)}}function Vu(e){const{key:t="public",name:n="Public Client"}=e;return Iq({...e,key:t,name:n,type:"publicClient"}).extend(Dfe)}function kfe(e,{abi:t,args:n,bytecode:r,...o}){const a=Qq({abi:t,args:n,bytecode:r});return cj(e,{...o,data:a})}async function jfe(e){var n;return((n=e.account)==null?void 0:n.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"})).map(r=>V8(r))}async function Pfe(e){return await e.request({method:"wallet_getPermissions"})}async function Ife(e){return(await e.request({method:"eth_requestAccounts"})).map(n=>Rr(n))}async function Ofe(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}async function Rfe(e,{account:t=e.account,message:n}){if(!t)throw new om({docsPath:"/docs/actions/wallet/signMessage"});const r=Ta(t);if(r.type==="local")return r.signMessage({message:n});const o=typeof n=="string"?I_(n):n.raw instanceof Uint8Array?rt(n.raw):n.raw;return e.request({method:"personal_sign",params:[o,r.address]})}async function Nfe(e,t){var l,u,d,f;const{account:n=e.account,chain:r=e.chain,...o}=t;if(!n)throw new om({docsPath:"/docs/actions/wallet/signTransaction"});const a=Ta(n);Jg({account:a,...t});const i=await Fe(e,tg,"getChainId")({});r!==null&&jq({currentChainId:i,chain:r});const s=(r==null?void 0:r.formatters)||((l=e.chain)==null?void 0:l.formatters),c=((u=s==null?void 0:s.transactionRequest)==null?void 0:u.format)||Xg;return a.type==="local"?a.signTransaction({...o,chainId:i},{serializer:(f=(d=e.chain)==null?void 0:d.serializers)==null?void 0:f.transaction}):await e.request({method:"eth_signTransaction",params:[{...c(o),chainId:Xe(i),from:a.address}]})}async function Bfe(e,{account:t=e.account,domain:n,message:r,primaryType:o,types:a}){if(!t)throw new om({docsPath:"/docs/actions/wallet/signTypedData"});const i=Ta(t),s={EIP712Domain:Yq({domain:n}),...a};if(Kq({domain:n,message:r,primaryType:o,types:s}),i.type==="local")return i.signTypedData({domain:n,primaryType:o,types:s,message:r});const c=Xr({domain:n??{},primaryType:o,types:s,message:r},(l,u)=>Ea(u)?u.toLowerCase():u);return e.request({method:"eth_signTypedData_v4",params:[i.address,c]})}async function Ffe(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:Xe(t)}]})}async function Mfe(e,t){return await e.request({method:"wallet_watchAsset",params:t})}function Lfe(e){return{addChain:t=>Wue(e,t),deployContract:t=>kfe(e,t),getAddresses:()=>jfe(e),getChainId:()=>tg(e),getPermissions:()=>Pfe(e),prepareTransactionRequest:t=>U_(e,t),requestAddresses:()=>Ife(e),requestPermissions:t=>Ofe(e,t),sendRawTransaction:t=>sj(e,t),sendTransaction:t=>cj(e,t),signMessage:t=>Rfe(e,t),signTransaction:t=>Nfe(e,t),signTypedData:t=>Bfe(e,t),switchChain:t=>Ffe(e,t),watchAsset:t=>Mfe(e,t),writeContract:t=>Pq(e,t)}}function ry(e){const{key:t="wallet",name:n="Wallet Client",transport:r}=e;return Iq({...e,key:t,name:n,transport:a=>r({...a,retryCount:0}),type:"walletClient"}).extend(Lfe)}function Ufe(e,t={}){const{key:n="webSocket",name:r="WebSocket JSON-RPC",retryDelay:o}=t;return({chain:a,retryCount:i,timeout:s})=>{var d;const c=t.retryCount??i,l=s??t.timeout??1e4,u=e||((d=a==null?void 0:a.rpcUrls.default.webSocket)==null?void 0:d[0]);if(!u)throw new Rq;return W_({key:n,name:r,async request({method:f,params:h}){const m={method:f,params:h},p=await IS(u),{error:b,result:v}=await Qf.webSocketAsync(p,{body:m,timeout:l});if(b)throw new X8({body:m,error:b,url:u});return v},retryCount:c,retryDelay:o,timeout:l,type:"webSocket"},{getSocket(){return IS(u)},async subscribe({params:f,onData:h,onError:m}){const p=await IS(u),{result:b}=await new Promise((v,g)=>Qf.webSocket(p,{body:{method:"eth_subscribe",params:f},onResponse(w){if(w.error){g(w.error),m==null||m(w.error);return}if(typeof w.id=="number"){v(w);return}w.method==="eth_subscription"&&h(w.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(v=>Qf.webSocket(p,{body:{method:"eth_unsubscribe",params:[b]},onResponse:v}))}}}})}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const er=BigInt(0),_n=BigInt(1),cu=BigInt(2),$fe=BigInt(3),v5=BigInt(4),RO=BigInt(5),NO=BigInt(8);BigInt(9);BigInt(16);function Xn(e,t){const n=e%t;return n>=er?n:t+n}function zfe(e,t,n){if(n<=er||t 0");if(n===_n)return er;let r=_n;for(;t>er;)t&_n&&(r=r*e%n),e=e*e%n,t>>=_n;return r}function oa(e,t,n){let r=e;for(;t-- >er;)r*=r,r%=n;return r}function w5(e,t){if(e===er||t<=er)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=Xn(e,t),r=t,o=er,a=_n;for(;n!==er;){const s=r/n,c=r%n,l=o-a*s;r=n,n=c,o=a,a=l}if(r!==_n)throw new Error("invert: does not exist");return Xn(o,t)}function Hfe(e){const t=(e-_n)/cu;let n,r,o;for(n=e-_n,r=0;n%cu===er;n/=cu,r++);for(o=cu;o(r[o]="function",r),t);return cm(e,n)}function Gfe(e,t,n){if(n 0");if(n===er)return e.ONE;if(n===_n)return t;let r=e.ONE,o=t;for(;n>er;)n&_n&&(r=e.mul(r,o)),o=e.sqr(o),n>>=_n;return r}function Vfe(e,t){const n=new Array(t.length),r=t.reduce((a,i,s)=>e.is0(i)?a:(n[s]=a,e.mul(a,i)),e.ONE),o=e.inv(r);return t.reduceRight((a,i,s)=>e.is0(i)?a:(n[s]=e.mul(a,n[s]),e.mul(a,i)),o),n}function gW(e,t){const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Kfe(e,t,n=!1,r={}){if(e<=er)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:o,nByteLength:a}=gW(e,t);if(a>2048)throw new Error("Field lengths over 2048 bytes are not supported");const i=qfe(e),s=Object.freeze({ORDER:e,BITS:o,BYTES:a,MASK:wj(o),ZERO:er,ONE:_n,create:c=>Xn(c,e),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return er<=c&&cc===er,isOdd:c=>(c&_n)===_n,neg:c=>Xn(-c,e),eql:(c,l)=>c===l,sqr:c=>Xn(c*c,e),add:(c,l)=>Xn(c+l,e),sub:(c,l)=>Xn(c-l,e),mul:(c,l)=>Xn(c*l,e),pow:(c,l)=>Gfe(s,c,l),div:(c,l)=>Xn(c*w5(l,e),e),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>w5(c,e),sqrt:r.sqrt||(c=>i(s,c)),invertBatch:c=>Vfe(s,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>n?vj(c,a):il(c,a),fromBytes:c=>{if(c.length!==a)throw new Error(`Fp.fromBytes: expected ${a}, got ${c.length}`);return n?bj(c):Jr(c)}});return Object.freeze(s)}function yW(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 bW(e){const t=yW(e);return t+Math.ceil(t/2)}function Yfe(e,t,n=!1){const r=e.length,o=yW(t),a=bW(t);if(r<16||r1024)throw new Error(`expected ${a}-1024 bytes of input, got ${r}`);const i=n?Jr(e):bj(e),s=Xn(i,t-_n)+_n;return n?vj(s,o):il(s,o)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Qfe=BigInt(0),NS=BigInt(1);function Xfe(e,t){const n=(o,a)=>{const i=a.negate();return o?i:a},r=o=>{const a=Math.ceil(t/o)+1,i=2**(o-1);return{windows:a,windowSize:i}};return{constTimeNegate:n,unsafeLadder(o,a){let i=e.ZERO,s=o;for(;a>Qfe;)a&NS&&(i=i.add(s)),s=s.double(),a>>=NS;return i},precomputeWindow(o,a){const{windows:i,windowSize:s}=r(a),c=[];let l=o,u=l;for(let d=0;d>=h,b>c&&(b-=f,i+=NS);const v=p,g=p+Math.abs(b)-1,w=m%2!==0,_=b<0;b===0?u=u.add(n(w,a[v])):l=l.add(n(_,a[g]))}return{p:l,f:u}},wNAFCached(o,a,i,s){const c=o._WINDOW_SIZE||1;let l=a.get(o);return l||(l=this.precomputeWindow(o,c),c!==1&&a.set(o,s(l))),this.wNAF(c,l,i)}}}function vW(e){return pW(e.Fp),cm(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...gW(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Jfe(e){const t=vW(e);cm(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:o}=t;if(n){if(!r.eql(o,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}const{bytesToNumberBE:Zfe,hexToBytes:ehe}=fW,yu={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(e){const{Err:t}=yu;if(e.length<2||e[0]!==2)throw new t("Invalid signature integer tag");const n=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)throw new t("Invalid signature integer: wrong length");if(r[0]&128)throw new t("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:Zfe(r),l:e.subarray(n+2)}},toSig(e){const{Err:t}=yu,n=typeof e=="string"?ehe(e):e;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||n[0]!=48)throw new t("Invalid signature tag");if(n[1]!==r-2)throw new t("Invalid signature: incorrect length");const{d:o,l:a}=yu._parseInt(n.subarray(2)),{d:i,l:s}=yu._parseInt(a);if(s.length)throw new t("Invalid signature: left bytes after parsing");return{r:o,s:i}},hexFromSig(e){const t=l=>Number.parseInt(l[0],16)&8?"00"+l:l,n=l=>{const u=l.toString(16);return u.length&1?`0${u}`:u},r=t(n(e.s)),o=t(n(e.r)),a=r.length/2,i=o.length/2,s=n(a),c=n(i);return`30${n(i+a+4)}02${c}${o}02${s}${r}`}},Ka=BigInt(0),dn=BigInt(1),cc=BigInt(2),Tw=BigInt(3),BO=BigInt(4);function the(e){const t=Jfe(e),{Fp:n}=t,r=t.toBytes||((m,p,b)=>{const v=p.toAffine();return Fo(Uint8Array.from([4]),n.toBytes(v.x),n.toBytes(v.y))}),o=t.fromBytes||(m=>{const p=m.subarray(1),b=n.fromBytes(p.subarray(0,n.BYTES)),v=n.fromBytes(p.subarray(n.BYTES,2*n.BYTES));return{x:b,y:v}});function a(m){const{a:p,b}=t,v=n.sqr(m),g=n.mul(v,m);return n.add(n.add(g,n.mul(m,p)),b)}if(!n.eql(n.sqr(t.Gy),a(t.Gx)))throw new Error("bad generator point: equation left != right");function i(m){return typeof m=="bigint"&&Kan.eql(w,n.ZERO);return g(b)&&g(v)?d.ZERO:new d(b,v,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(p){const b=n.invertBatch(p.map(v=>v.pz));return p.map((v,g)=>v.toAffine(b[g])).map(d.fromAffine)}static fromHex(p){const b=d.fromAffine(o(Dr("pointHex",p)));return b.assertValidity(),b}static fromPrivateKey(p){return d.BASE.multiply(c(p))}_setWindowSize(p){this._WINDOW_SIZE=p,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:p,y:b}=this.toAffine();if(!n.isValid(p)||!n.isValid(b))throw new Error("bad point: x or y not FE");const v=n.sqr(b),g=a(p);if(!n.eql(v,g))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:p}=this.toAffine();if(n.isOdd)return!n.isOdd(p);throw new Error("Field doesn't support isOdd")}equals(p){u(p);const{px:b,py:v,pz:g}=this,{px:w,py:_,pz:C}=p,x=n.eql(n.mul(b,C),n.mul(w,g)),E=n.eql(n.mul(v,C),n.mul(_,g));return x&&E}negate(){return new d(this.px,n.neg(this.py),this.pz)}double(){const{a:p,b}=t,v=n.mul(b,Tw),{px:g,py:w,pz:_}=this;let C=n.ZERO,x=n.ZERO,E=n.ZERO,T=n.mul(g,g),k=n.mul(w,w),D=n.mul(_,_),R=n.mul(g,w);return R=n.add(R,R),E=n.mul(g,_),E=n.add(E,E),C=n.mul(p,E),x=n.mul(v,D),x=n.add(C,x),C=n.sub(k,x),x=n.add(k,x),x=n.mul(C,x),C=n.mul(R,C),E=n.mul(v,E),D=n.mul(p,D),R=n.sub(T,D),R=n.mul(p,R),R=n.add(R,E),E=n.add(T,T),T=n.add(E,T),T=n.add(T,D),T=n.mul(T,R),x=n.add(x,T),D=n.mul(w,_),D=n.add(D,D),T=n.mul(D,R),C=n.sub(C,T),E=n.mul(D,k),E=n.add(E,E),E=n.add(E,E),new d(C,x,E)}add(p){u(p);const{px:b,py:v,pz:g}=this,{px:w,py:_,pz:C}=p;let x=n.ZERO,E=n.ZERO,T=n.ZERO;const k=t.a,D=n.mul(t.b,Tw);let R=n.mul(b,w),F=n.mul(v,_),B=n.mul(g,C),j=n.add(b,v),P=n.add(w,_);j=n.mul(j,P),P=n.add(R,F),j=n.sub(j,P),P=n.add(b,g);let O=n.add(w,C);return P=n.mul(P,O),O=n.add(R,B),P=n.sub(P,O),O=n.add(v,g),x=n.add(_,C),O=n.mul(O,x),x=n.add(F,B),O=n.sub(O,x),T=n.mul(k,P),x=n.mul(D,B),T=n.add(x,T),x=n.sub(F,T),T=n.add(F,T),E=n.mul(x,T),F=n.add(R,R),F=n.add(F,R),B=n.mul(k,B),P=n.mul(D,P),F=n.add(F,B),B=n.sub(R,B),B=n.mul(k,B),P=n.add(P,B),R=n.mul(F,P),E=n.add(E,R),R=n.mul(O,P),x=n.mul(j,x),x=n.sub(x,R),R=n.mul(j,F),T=n.mul(O,T),T=n.add(T,R),new d(x,E,T)}subtract(p){return this.add(p.negate())}is0(){return this.equals(d.ZERO)}wNAF(p){return h.wNAFCached(this,l,p,b=>{const v=n.invertBatch(b.map(g=>g.pz));return b.map((g,w)=>g.toAffine(v[w])).map(d.fromAffine)})}multiplyUnsafe(p){const b=d.ZERO;if(p===Ka)return b;if(s(p),p===dn)return this;const{endo:v}=t;if(!v)return h.unsafeLadder(this,p);let{k1neg:g,k1:w,k2neg:_,k2:C}=v.splitScalar(p),x=b,E=b,T=this;for(;w>Ka||C>Ka;)w&dn&&(x=x.add(T)),C&dn&&(E=E.add(T)),T=T.double(),w>>=dn,C>>=dn;return g&&(x=x.negate()),_&&(E=E.negate()),E=new d(n.mul(E.px,v.beta),E.py,E.pz),x.add(E)}multiply(p){s(p);let b=p,v,g;const{endo:w}=t;if(w){const{k1neg:_,k1:C,k2neg:x,k2:E}=w.splitScalar(b);let{p:T,f:k}=this.wNAF(C),{p:D,f:R}=this.wNAF(E);T=h.constTimeNegate(_,T),D=h.constTimeNegate(x,D),D=new d(n.mul(D.px,w.beta),D.py,D.pz),v=T.add(D),g=k.add(R)}else{const{p:_,f:C}=this.wNAF(b);v=_,g=C}return d.normalizeZ([v,g])[0]}multiplyAndAddUnsafe(p,b,v){const g=d.BASE,w=(C,x)=>x===Ka||x===dn||!C.equals(g)?C.multiplyUnsafe(x):C.multiply(x),_=w(this,b).add(w(p,v));return _.is0()?void 0:_}toAffine(p){const{px:b,py:v,pz:g}=this,w=this.is0();p==null&&(p=w?n.ONE:n.inv(g));const _=n.mul(b,p),C=n.mul(v,p),x=n.mul(g,p);if(w)return{x:n.ZERO,y:n.ZERO};if(!n.eql(x,n.ONE))throw new Error("invZ was invalid");return{x:_,y:C}}isTorsionFree(){const{h:p,isTorsionFree:b}=t;if(p===dn)return!0;if(b)return b(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:p,clearCofactor:b}=t;return p===dn?this:b?b(d,this):this.multiplyUnsafe(t.h)}toRawBytes(p=!0){return this.assertValidity(),r(d,this,p)}toHex(p=!0){return bh(this.toRawBytes(p))}}d.BASE=new d(t.Gx,t.Gy,n.ONE),d.ZERO=new d(n.ZERO,n.ONE,n.ZERO);const f=t.nBitLength,h=Xfe(d,t.endo?Math.ceil(f/2):f);return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:c,weierstrassEquation:a,isWithinCurveOrder:i}}function nhe(e){const t=vW(e);return cm(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function rhe(e){const t=nhe(e),{Fp:n,n:r}=t,o=n.BYTES+1,a=2*n.BYTES+1;function i(P){return Kabh(il(P,t.nByteLength));function m(P){const O=r>>dn;return P>O}function p(P){return m(P)?s(-P):P}const b=(P,O,I)=>Jr(P.slice(O,I));class v{constructor(O,I,N){this.r=O,this.s=I,this.recovery=N,this.assertValidity()}static fromCompact(O){const I=t.nByteLength;return O=Dr("compactSignature",O,I*2),new v(b(O,0,I),b(O,I,2*I))}static fromDER(O){const{r:I,s:N}=yu.toSig(Dr("DER",O));return new v(I,N)}assertValidity(){if(!f(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!f(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(O){return new v(this.r,this.s,O)}recoverPublicKey(O){const{r:I,s:N,recovery:M}=this,L=E(Dr("msgHash",O));if(M==null||![0,1,2,3].includes(M))throw new Error("recovery id invalid");const X=M===2||M===3?I+t.n:I;if(X>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const J=M&1?"03":"02",U=l.fromHex(J+h(X)),G=c(X),Z=s(-L*G),ae=s(N*G),ne=l.BASE.multiplyAndAddUnsafe(U,Z,ae);if(!ne)throw new Error("point at infinify");return ne.assertValidity(),ne}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new v(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return vh(this.toDERHex())}toDERHex(){return yu.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return vh(this.toCompactHex())}toCompactHex(){return h(this.r)+h(this.s)}}const g={isValidPrivateKey(P){try{return u(P),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const P=bW(t.n);return Yfe(t.randomBytes(P),t.n)},precompute(P=8,O=l.BASE){return O._setWindowSize(P),O.multiply(BigInt(3)),O}};function w(P,O=!0){return l.fromPrivateKey(P).toRawBytes(O)}function _(P){const O=P instanceof Uint8Array,I=typeof P=="string",N=(O||I)&&P.length;return O?N===o||N===a:I?N===2*o||N===2*a:P instanceof l}function C(P,O,I=!0){if(_(P))throw new Error("first arg must be private key");if(!_(O))throw new Error("second arg must be public key");return l.fromHex(O).multiply(u(P)).toRawBytes(I)}const x=t.bits2int||function(P){const O=Jr(P),I=P.length*8-t.nBitLength;return I>0?O>>BigInt(I):O},E=t.bits2int_modN||function(P){return s(x(P))},T=wj(t.nBitLength);function k(P){if(typeof P!="bigint")throw new Error("bigint expected");if(!(Ka<=P&&Pte in I))throw new Error("sign() legacy options not supported");const{hash:N,randomBytes:M}=t;let{lowS:L,prehash:X,extraEntropy:J}=I;L==null&&(L=!0),P=Dr("msgHash",P),X&&(P=Dr("prehashed msgHash",N(P)));const U=E(P),G=u(O),Z=[k(G),k(U)];if(J!=null){const te=J===!0?M(n.BYTES):J;Z.push(Dr("extraEntropy",te))}const ae=Fo(...Z),ne=U;function ie(te){const ee=x(te);if(!f(ee))return;const re=c(ee),z=l.BASE.multiply(ee).toAffine(),fe=s(z.x);if(fe===Ka)return;const ve=s(re*s(ne+fe*G));if(ve===Ka)return;let Ue=(z.x===fe?0:2)|Number(z.y&dn),ke=ve;return L&&m(ve)&&(ke=p(ve),Ue^=1),new v(fe,ke,Ue)}return{seed:ae,k2sig:ie}}const R={lowS:t.lowS,prehash:!1},F={lowS:t.lowS,prehash:!1};function B(P,O,I=R){const{seed:N,k2sig:M}=D(P,O,I),L=t;return dW(L.hash.outputLen,L.nByteLength,L.hmac)(N,M)}l.BASE._setWindowSize(8);function j(P,O,I,N=F){var z;const M=P;if(O=Dr("msgHash",O),I=Dr("publicKey",I),"strict"in N)throw new Error("options.strict was renamed to lowS");const{lowS:L,prehash:X}=N;let J,U;try{if(typeof M=="string"||M instanceof Uint8Array)try{J=v.fromDER(M)}catch(fe){if(!(fe instanceof yu.Err))throw fe;J=v.fromCompact(M)}else if(typeof M=="object"&&typeof M.r=="bigint"&&typeof M.s=="bigint"){const{r:fe,s:ve}=M;J=new v(fe,ve)}else throw new Error("PARSE");U=l.fromHex(I)}catch(fe){if(fe.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(L&&J.hasHighS())return!1;X&&(O=t.hash(O));const{r:G,s:Z}=J,ae=E(O),ne=c(Z),ie=s(ae*ne),te=s(G*ne),ee=(z=l.BASE.multiplyAndAddUnsafe(U,ie,te))==null?void 0:z.toAffine();return ee?s(ee.x)===G:!1}return{CURVE:t,getPublicKey:w,getSharedSecret:C,sign:B,verify:j,ProjectivePoint:l,Signature:v,utils:g}}function ohe(e,t){const n=e.ORDER;let r=Ka;for(let m=n-dn;m%cc===Ka;m/=cc)r+=dn;const o=r,a=cc<{let b=d,v=e.pow(p,l),g=e.sqr(v);g=e.mul(g,p);let w=e.mul(m,g);w=e.pow(w,c),w=e.mul(w,v),v=e.mul(w,p),g=e.mul(w,m);let _=e.mul(g,v);w=e.pow(_,u);let C=e.eql(w,e.ONE);v=e.mul(g,f),w=e.mul(_,b),g=e.cmov(v,g,C),_=e.cmov(w,_,C);for(let x=o;x>dn;x--){let E=x-cc;E=cc<{let g=e.sqr(v);const w=e.mul(b,v);g=e.mul(g,w);let _=e.pow(g,m);_=e.mul(_,w);const C=e.mul(_,p),x=e.mul(e.sqr(_),v),E=e.eql(x,b);let T=e.cmov(C,_,E);return{isValid:E,value:T}}}return h}function ahe(e,t){if(pW(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=ohe(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let o,a,i,s,c,l,u,d;o=e.sqr(r),o=e.mul(o,t.Z),a=e.sqr(o),a=e.add(a,o),i=e.add(a,e.ONE),i=e.mul(i,t.B),s=e.cmov(t.Z,e.neg(a),!e.eql(a,e.ZERO)),s=e.mul(s,t.A),a=e.sqr(i),l=e.sqr(s),c=e.mul(l,t.A),a=e.add(a,c),a=e.mul(a,i),l=e.mul(l,s),c=e.mul(l,t.B),a=e.add(a,c),u=e.mul(o,i);const{isValid:f,value:h}=n(a,l);d=e.mul(o,r),d=e.mul(d,h),u=e.cmov(u,i,f),d=e.cmov(d,h,f);const m=e.isOdd(r)===e.isOdd(d);return d=e.cmov(e.neg(d),d,m),u=e.div(u,s),{x:u,y:d}}}function ihe(e){if(e instanceof Uint8Array)return e;if(typeof e=="string")return Q_(e);throw new Error("DST must be Uint8Array or string")}const she=Jr;function wc(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=e&255,e>>>=8;return new Uint8Array(n)}function che(e,t){const n=new Uint8Array(e.length);for(let r=0;r255&&(t=r(Fo(Q_("H2C-OVERSIZE-DST-"),t)));const{outputLen:o,blockLen:a}=r,i=Math.ceil(n/o);if(i>255)throw new Error("Invalid xmd length");const s=Fo(t,wc(t.length,1)),c=wc(0,a),l=wc(n,2),u=new Array(i),d=r(Fo(c,e,l,wc(0,1),s));u[0]=r(Fo(d,wc(1,1),s));for(let h=1;h<=i;h++){const m=[che(d,u[h-1]),wc(h+1,1),s];u[h]=r(Fo(...m))}return Fo(...u).slice(0,n)}function uhe(e,t,n,r,o){if(rg(e),rg(t),Ej(n),t.length>255){const a=Math.ceil(2*r/8);t=o.create({dkLen:a}).update(Q_("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:n}).update(e).update(wc(n,2)).update(t).update(wc(t.length,1)).digest()}function FO(e,t,n){cm(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:r,k:o,m:a,hash:i,expand:s,DST:c}=n;rg(e),Ej(t);const l=ihe(c),u=r.toString(2).length,d=Math.ceil((u+o)/8),f=t*a*d;let h;if(s==="xmd")h=lhe(e,l,f,i);else if(s==="xof")h=uhe(e,l,f,o,i);else if(s==="_internal_pass")h=e;else throw new Error('expand must be "xmd" or "xof"');const m=new Array(t);for(let p=0;pArray.from(r).reverse());return(r,o)=>{const[a,i,s,c]=n.map(l=>l.reduce((u,d)=>e.add(e.mul(u,r),d)));return r=e.div(a,i),o=e.mul(o,e.div(s,c)),{x:r,y:o}}}function fhe(e,t,n){if(typeof t!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(r,o){const a=FO(r,2,{...n,DST:n.DST,...o}),i=e.fromAffine(t(a[0])),s=e.fromAffine(t(a[1])),c=i.add(s).clearCofactor();return c.assertValidity(),c},encodeToCurve(r,o){const a=FO(r,1,{...n,DST:n.encodeDST,...o}),i=e.fromAffine(t(a[0])).clearCofactor();return i.assertValidity(),i}}}let wW=class extends $8{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,ale(t);const r=Wg(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,a=new Uint8Array(o);a.set(r.length>o?t.create().update(r).digest():r);for(let i=0;inew wW(e,t).update(n).digest();EW.create=(e,t)=>new wW(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function hhe(e){return{hash:e,hmac:(t,...n)=>EW(e,t,ple(...n)),randomBytes:MH}}function mhe(e,t){const n=r=>rhe({...e,...hhe(r)});return Object.freeze({...n(t),create:n})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const X_=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Aw=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_W=BigInt(1),Dw=BigInt(2),MO=(e,t)=>(e+t/Dw)/t;function xW(e){const t=X_,n=BigInt(3),r=BigInt(6),o=BigInt(11),a=BigInt(22),i=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=oa(u,n,t)*u%t,f=oa(d,n,t)*u%t,h=oa(f,Dw,t)*l%t,m=oa(h,o,t)*h%t,p=oa(m,a,t)*m%t,b=oa(p,s,t)*p%t,v=oa(b,c,t)*b%t,g=oa(v,s,t)*p%t,w=oa(g,n,t)*u%t,_=oa(w,i,t)*m%t,C=oa(_,r,t)*l%t,x=oa(C,Dw,t);if(!sl.eql(sl.sqr(x),e))throw new Error("Cannot find square root");return x}const sl=Kfe(X_,void 0,void 0,{sqrt:xW}),oy=mhe({a:BigInt(0),b:BigInt(7),Fp:sl,n:Aw,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=Aw,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-_W*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=n,i=BigInt("0x100000000000000000000000000000000"),s=MO(a*e,t),c=MO(-r*e,t);let l=Xn(e-s*n-c*o,t),u=Xn(-s*r-c*a,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}}}},ng),J_=BigInt(0),CW=e=>typeof e=="bigint"&&J_typeof e=="bigint"&&J_o.charCodeAt(0)));n=Fo(r,r),LO[e]=n}return ng(Fo(n,...t))}const _j=e=>e.toRawBytes(!0).slice(1),E5=e=>il(e,32),BS=e=>Xn(e,X_),og=e=>Xn(e,Aw),xj=oy.ProjectivePoint,ghe=(e,t,n)=>xj.BASE.multiplyAndAddUnsafe(e,t,n);function _5(e){let t=oy.utils.normPrivateKeyToScalar(e),n=xj.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:og(-t),bytes:_j(n)}}function SW(e){if(!CW(e))throw new Error("bad x: need 0 < x < p");const t=BS(e*e),n=BS(t*e+BigInt(7));let r=xW(n);r%Dw!==J_&&(r=BS(-r));const o=new xj(e,r,_W);return o.assertValidity(),o}function TW(...e){return og(Jr(kw("BIP0340/challenge",...e)))}function yhe(e){return _5(e).bytes}function bhe(e,t,n=MH(32)){const r=Dr("message",e),{bytes:o,scalar:a}=_5(t),i=Dr("auxRand",n,32),s=E5(a^Jr(kw("BIP0340/aux",i))),c=kw("BIP0340/nonce",s,o,r),l=og(Jr(c));if(l===J_)throw new Error("sign failed: k is zero");const{bytes:u,scalar:d}=_5(l),f=TW(u,o,r),h=new Uint8Array(64);if(h.set(u,0),h.set(E5(og(d+f*a)),32),!AW(h,r,o))throw new Error("sign: Invalid signature produced");return h}function AW(e,t,n){const r=Dr("signature",e,64),o=Dr("message",t),a=Dr("publicKey",n,32);try{const i=SW(Jr(a)),s=Jr(r.subarray(0,32));if(!CW(s))return!1;const c=Jr(r.subarray(32,64));if(!phe(c))return!1;const l=TW(E5(s),_j(i),o),u=ghe(i,c,og(-l));return!(!u||!u.hasEvenY()||u.toAffine().x!==s)}catch{return!1}}const vhe={getPublicKey:yhe,sign:bhe,verify:AW,utils:{randomPrivateKey:oy.utils.randomPrivateKey,lift_x:SW,pointToBytes:_j,numberToBytesBE:il,bytesToNumberBE:Jr,taggedHash:kw,mod:Xn}},whe=dhe(sl,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(t=>BigInt(t)))),Ehe=ahe(sl,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:sl.create(BigInt("-11"))}),DW=fhe(oy.ProjectivePoint,e=>{const{x:t,y:n}=Ehe(sl.create(e[0]));return whe(t,n)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:sl.ORDER,m:1,k:128,expand:"xmd",hash:ng}),_he=DW.hashToCurve,xhe=DW.encodeToCurve,Che=Object.freeze(Object.defineProperty({__proto__:null,encodeToCurve:xhe,hashToCurve:_he,schnorr:vhe,secp256k1:oy},Symbol.toStringTag,{value:"Module"}));function ut(e,t=18,n){const r=(n==null?void 0:n.precision)??4,o=(n==null?void 0:n.keepZero)??!1,[a,i]=Wu(e,t).split("."),s=a.replace(/(?=(?!^)(\d{3})+$)/g,",");let c=(+`0.${i||0}`).toFixed(r);return o||(c=Number(c).toString()),`${s}${c.slice(1)}`}function She(e){const[t,n]=e.toString().split("."),r=t.replace(/(?=(?!^)(\d{3})+$)/g,",");return n?`${r}.${n}`:r}async function UO(e,t,n){let r=0n;return t.type==="native"?r=await n.getBalance({address:e}):r=await n.readContract({address:t.address,abi:(await me(async()=>{const{default:o}=await Promise.resolve().then(()=>aD);return{default:o}},void 0,import.meta.url)).default,functionName:"balanceOf",args:[e]}),{value:r,token:t}}var jt={},wt={},$O={};Object.defineProperty(wt,"__esModule",{value:!0});wt.HelixChainConf=wt.ChainRpc=wt.PickRPCStrategy=void 0;var Io;(function(e){e[e.Custom=0]="Custom",e[e.First=1]="First",e[e.Best=2]="Best",e[e.Random=3]="Random",e[e.PrivateFirst=4]="PrivateFirst",e[e.PublicFirst=5]="PublicFirst"})(Io||(wt.PickRPCStrategy=Io={}));class Z_{constructor(t){Ve(this,"options");this.options=t}static fromOptions(t){return t.map(n=>new Z_(n))}get provider(){return this.options.provider}get endpoint(){return this.options.endpoint}readEnv(t){return process&&$O?$O[t]??"":""}rpc(t){const{provider:n,endpoint:r}=this.options;if(!r)return;if(!n)return r.indexOf("$")>=-1?void 0:r;const o=n.toLowerCase();let a,i;switch(o){case"public":break;case"ankr":a="$ANKR_KEY",i=(t==null?void 0:t.ankrKey)??(t==null?void 0:t.key)??this.readEnv("ANKR_KEY");break;case"alchemy":a="$ALCHEMY_KEY",i=(t==null?void 0:t.alchemyKey)??(t==null?void 0:t.key)??this.readEnv("ALCHEMY_KEY");break;case"infura":a="$INFURA_KEY",i=(t==null?void 0:t.infuraKey)??(t==null?void 0:t.key)??this.readEnv("INFURA_KEY");break;case"blast":a="$BLAST_KEY",i=(t==null?void 0:t.blastKey)??(t==null?void 0:t.key)??this.readEnv("BLAST_KEY");break;default:return}return a&&i?r.replace(a,i):o==="public"?r:void 0}}wt.ChainRpc=Z_;class Cj{constructor(t){Ve(this,"_data");this._data=t}get _network(){return this._data._network}get testnet(){return this._network==="testnets"}get nativeCurrency(){return this.tokens.find(t=>t.type==="native")}get id(){return this._data.id}get lzid(){return this._data.lzid}get code(){return this._data.code}get name(){return this._data.name}get indexers(){return this._data.indexers}get rpcs(){return this.availableRpcs()}get additional(){return this._data.additional}get contract(){return this._data.contract}get protocol(){return this._data.protocol}get messagers(){return this._data.messagers}get tokens(){return this._data.tokens}get couples(){return this._data.couples}get rpc(){return this.pickRpcSync()}get(t){return this._data[t]}availableRpcs(t){const n=[];for(const r of this._data.rpcs){const o=r.rpc(t);o&&n.push(o)}return n}pickRpcSync(t){switch((t==null?void 0:t.strategy)??Io.PrivateFirst){case Io.Custom:return t!=null&&t.picker?t.picker(this.rpcs):this.rpcs[0];case Io.Random:{const r=this.rpcs.length;return this.rpcs[Math.floor(Math.random()*r)]}case Io.PrivateFirst:{const o=this._data.rpcs.filter(i=>i.provider!=="PUBLIC").map(i=>i.rpc(t==null?void 0:t.auth)).find(i=>i),a={...t,strategy:Io.First};return o||this.pickRpcSync(a)}case Io.PublicFirst:{const o=this._data.rpcs.filter(i=>i.provider==="PUBLIC").map(i=>i.rpc(t==null?void 0:t.auth)).find(i=>i),a={...t,strategy:Io.First};return o||this.pickRpcSync(a)}case Io.Best:case Io.First:default:return this.rpcs[0]}}async pickRpc(t){const n=(t==null?void 0:t.strategy)??Io.PrivateFirst;return n===Io.Custom?t!=null&&t.picker?await t.picker(this.rpcs):this.rpcs[0]:this.pickRpcSync({strategy:n})}indexer(t){return this.indexers.find(n=>n.type===t)}keys(){return Object.keys(this._data)}token(t){for(const n of this.tokens)if(n.alias.find(r=>zr(r,t)))return n}messager(t){const n=t.toUpperCase();for(const r of this.messagers)if(r.name.toUpperCase()===n)return r}categories(){return this.couples.map(n=>n.category).reduce((n,r)=>(n.includes(r)||n.push(r),n),[])}filterCouples(t){return t?this.couples.filter(n=>{if(t.category&&!zr(n.category,t.category)||t.messager&&!(zr(n.messager.name,t.messager)||zr(n.messager.address,t.messager)))return!1;if(t.protocol){if(!(zr(n.protocol.name,t.protocol)||zr(n.protocol.address,t.protocol)))return!1}else if(t.relatedProtocol){let r=[];switch(t.relatedProtocol){case"lnv2-default":r=["lnv2-opposite","lnv2-default"];break;case"lnv2-opposite":r=["lnv2-opposite","lnv2-default"];break}if(r.length&&!r.find(a=>zr(n.protocol.name,a)||zr(n.protocol.address,a)))return!1}return!(t.chain&&!(zr(n.chain.id.toString(),t.chain)||zr(n.chain.code,t.chain)||zr(n.chain.name,t.chain))||t.symbolFrom&&!zr(n.symbol.from,t.symbolFrom)||t.symbolTo&&!zr(n.symbol.to,t.symbolTo)||t.symbol&&!(zr(n.symbol.from,t.symbol)&&zr(n.symbol.to,t.symbol)))}):this.couples}toJSON(){return{_network:this._network,id:this.id,lzid:this.lzid,contract:this.contract,additional:this.additional,code:this.code,name:this.name,rpcs:this.rpcs,indexers:this.indexers,protocol:this.protocol,messagers:this.messagers,tokens:this.tokens,couples:this.couples}}static fromJson(t){return new Cj({_network:t._network,id:BigInt(t.id),lzid:t.lzid?BigInt(t.lzid):void 0,contract:t.contract,additional:t.additional,code:t.code,name:t.name,rpcs:Z_.fromOptions(t.rpcs),indexers:t.indexers,protocol:t.protocol,messagers:t.messagers,tokens:t.tokens,couples:t.couples})}}wt.HelixChainConf=Cj;function zr(e,t){return!e||!t?!1:e.toLowerCase()===t.toLowerCase()}var ex={},tx={};Object.defineProperty(tx,"__esModule",{value:!0});tx.arbitrumChain=void 0;const The=wt;tx.arbitrumChain=The.HelixChainConf.fromJson({id:"42161",lzid:"110",code:"arbitrum",name:"Arbitrum",rpcs:[{provider:"PUBLIC",endpoint:"https://arb1.arbitrum.io/rpc"},{provider:"ALCHEMY",endpoint:"https://arb-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://arbitrum-mainnet.infura.io/v3/$INFURA_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/arbitrum/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://arbitrum-one.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23",lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},{name:"eth2arb-receive",address:"0xc95D939Da72ECe8Bd794d42EaEd28974CDb0ADa2"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-arbitrum/v2.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"RING",address:"0x9e523234D36973f9e38642886197D023C88e307e",decimals:18,type:"erc20",alias:["RING"],name:"RING",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png"},{symbol:"WBTC",address:"0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",decimals:8,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"},{symbol:"DAI",address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",decimals:18,type:"erc20",alias:["DAI"],name:"DAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/dai.png"},{symbol:"LINK",address:"0xf97f4df75117a78c1A5a0DBb814Af92458539FB4",decimals:18,type:"erc20",alias:["LINK"],name:"LINK",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/link.png"}],couples:[{chain:{id:"81457",code:"blast",name:"Blast"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"3776",code:"astar-zkevm",name:"Astar zkEVM"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"48900",code:"zircuit",name:"Zircuit"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"1",code:"ethereum",name:"Ethereum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-opposite",address:"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23"},fee:"100000000000000000000",messager:{name:"eth2arb-receive",address:"0xc95D939Da72ECe8Bd794d42EaEd28974CDb0ADa2"},category:"RING"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"RING",to:"Ring"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"RING"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"RING",to:"Ring"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"RING"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"10000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"324",code:"zksync",name:"zksync"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"1284",code:"moonbeam",name:"Moonbeam"},symbol:{from:"USDT",to:"xcUSDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"BTC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"BTC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"BTC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"BTC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"DAI"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"DAI"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"DAI"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"DAI",to:"xDAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"DAI"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"LINK"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"LINK"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"LINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var nx={};Object.defineProperty(nx,"__esModule",{value:!0});nx.astarZkevmChain=void 0;const Ahe=wt;nx.astarZkevmChain=Ahe.HelixChainConf.fromJson({id:"3776",lzid:"257",code:"astar-zkevm",name:"Astar zkEVM",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.startale.com/astar-zkevm"}],contract:{"proxy-admin":"0x7684389eAa307e25Af38A31873E31Cc3B513EE01","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-astar-zkevm/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var rx={};Object.defineProperty(rx,"__esModule",{value:!0});rx.avalancheChain=void 0;const Dhe=wt;rx.avalancheChain=Dhe.HelixChainConf.fromJson({id:"43114",lzid:"106",code:"avalanche",name:"Avalanche",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/avalanche"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/avalanche/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://ava-mainnet.blastapi.io/$BLAST_KEY/ext/bc/C/rpc"},{provider:"ALCHEMY",endpoint:"https://avax-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://avalanche-mainnet.infura.io/v3/$INFURA_KEY"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"AVAX",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["AVAX"],name:"AVAX",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/avax.png"},{symbol:"USDT",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"WBTC",address:"0x152b9d0FdC40C096757F570A51E494bd4b943E50",decimals:8,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"},{symbol:"DAI",address:"0xd586E7F844cEa2F87f50152665BCbc2C279D8d70",decimals:18,type:"erc20",alias:["DAI"],name:"DAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/dai.png"},{symbol:"LINK",address:"0x5947BB275c521040051D82396192181b413227A3",decimals:18,type:"erc20",alias:["LINK"],name:"LINK",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/link.png"}],couples:[{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"DAI",to:"xDAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var ox={};Object.defineProperty(ox,"__esModule",{value:!0});ox.baseChain=void 0;const khe=wt;ox.baseChain=khe.HelixChainConf.fromJson({id:"8453",lzid:"184",code:"base",name:"base",rpcs:[{provider:"PUBLIC",endpoint:"https://mainnet.base.org"},{provider:"ALCHEMY",endpoint:"https://base-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/base/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://base-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDC",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var ax={};Object.defineProperty(ax,"__esModule",{value:!0});ax.blastChain=void 0;const jhe=wt;ax.blastChain=jhe.HelixChainConf.fromJson({id:"81457",lzid:"243",code:"blast",name:"Blast",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/blast"},{provider:"PUBLIC",endpoint:"https://rpc.blast.io"},{provider:"ALCHEMY",endpoint:"https://blast-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/blast/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://blastl2-mainnet.blastapi.io/$BLAST_KEY"}],contract:{"proxy-admin":"0x7684389eAa307e25Af38A31873E31Cc3B513EE01","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xB180D7DcB5CC161C862aD60442FA37527546cAFC"},messagers:[{name:"msgline",address:"0x98982b1685a63596834a05C1288dA7fbF27d684E"},{name:"layerzero",address:"0x8A87497488073307E1a17e8A12475a94Afcb413f"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-blast/v1.0.0"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xB180D7DcB5CC161C862aD60442FA37527546cAFC"},fee:"10000000000000",messager:{name:"layerzero",address:"0x8A87497488073307E1a17e8A12475a94Afcb413f"},category:"ETH"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var ix={};Object.defineProperty(ix,"__esModule",{value:!0});ix.bscChain=void 0;const Phe=wt;ix.bscChain=Phe.HelixChainConf.fromJson({id:"56",lzid:"102",code:"bsc",name:"bsc",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/bsc"},{provider:"PUBLIC",endpoint:"https://binance.llamarpc.com"},{provider:"PUBLIC",endpoint:"https://bsc-rpc.publicnode.com"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/bsc/$ANKR_KEY"},{provider:"ALCHEMY",endpoint:"https://bnb-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"BLAST",endpoint:"https://bsc-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-bsc/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"BNB",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/bnb.svg",alias:["BNB"],name:"BNB"},{symbol:"USDT",address:"0x55d398326f99059fF775485246999027B3197955",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"WBTC",address:"0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",decimals:18,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"BTC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"BTC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"BTC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"BTC"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var sx={};Object.defineProperty(sx,"__esModule",{value:!0});sx.crabDvmChain=void 0;const Ihe=wt;sx.crabDvmChain=Ihe.HelixChainConf.fromJson({id:"44",code:"crab-dvm",name:"Crab",rpcs:[{provider:"PUBLIC",endpoint:"https://crab-rpc.dcdao.box"},{provider:"PUBLIC",endpoint:"https://crab-rpc.darwinia.network"}],messagers:[{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],tokens:[{symbol:"CRAB",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["CRAB"],name:"CRAB",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/crab.png"},{symbol:"xWRING",alias:["RING","xWRING"],address:"0x273131F7CB50ac002BDd08cA721988731F7e1092",decimals:18,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png",name:"xWRING"}],couples:[{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"CRAB",to:"xWCRAB"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},hidden:!0,category:"CRAB"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"xWRING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"10000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING",hidden:!0}],_network:"mainnets",protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23",lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},indexers:[]});var cx={};Object.defineProperty(cx,"__esModule",{value:!0});cx.darwiniaDvmChain=void 0;const Ohe=wt;cx.darwiniaDvmChain=Ohe.HelixChainConf.fromJson({id:"46",code:"darwinia-dvm",name:"Darwinia",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.darwinia.network"}],indexers:[{type:"thegraph",endpoint:"https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/darwinia"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],messagers:[{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],tokens:[{symbol:"RING",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["RING"],name:"RING",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png"},{symbol:"xWCRAB",alias:["CRAB","xWCRAB"],address:"0x656567Eb75b765FC320783cc6EDd86bD854b2305",decimals:18,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/crab.png",name:"xWCRAB"},{symbol:"ahPINK",alias:["PINK","ahPINK"],address:"0x0000000000000000000000000000000000000404",decimals:10,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/pink.png",name:"ahPINK"},{symbol:"ahUSDT",alias:["USDT","ahUSDT"],address:"0x0000000000000000000000000000000000000403",decimals:6,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png",name:"ahUSDT"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"1",code:"ethereum",name:"Ethereum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-opposite",address:"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"44",code:"crab-dvm",name:"Crab"},symbol:{from:"RING",to:"xWRING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},hidden:!0,category:"RING"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"RING",to:"Ring"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"44",code:"crab-dvm",name:"Crab"},symbol:{from:"xWCRAB",to:"CRAB"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"CRAB",hidden:!0},{chain:{id:"1284",code:"moonbeam",name:"Moonbeam"},symbol:{from:"ahUSDT",to:"xcUSDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"USDT"},{chain:{id:"1284",code:"moonbeam",name:"Moonbeam"},symbol:{from:"ahPINK",to:"xcPINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"PINK"}],_network:"mainnets",protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23",lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var lx={};Object.defineProperty(lx,"__esModule",{value:!0});lx.ethereumChain=void 0;const Rhe=wt;lx.ethereumChain=Rhe.HelixChainConf.fromJson({id:"1",lzid:"101",code:"ethereum",name:"Ethereum",rpcs:[{provider:"PUBLIC",endpoint:"https://eth.llamarpc.com"},{provider:"ALCHEMY",endpoint:"https://eth-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://mainnet.infura.io/v3/$INFURA_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/eth/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://eth-mainnet.blastapi.io/$BLAST_KEY"}],messagers:[{name:"eth2arb-send",address:"0x78a6831Da2293fbEFd0d8aFB4D1f7CBB751e0119"},{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"RING",address:"0x9469D013805bFfB7D3DEBe5E7839237e535ec483",decimals:18,type:"erc20",alias:["RING"],name:"RING",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"eth2arb-send",address:"0x78a6831Da2293fbEFd0d8aFB4D1f7CBB751e0119"},category:"RING"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"}],_network:"mainnets",protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23",lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},indexers:[]});var ux={};Object.defineProperty(ux,"__esModule",{value:!0});ux.gnosisChain=void 0;const Nhe=wt;ux.gnosisChain=Nhe.HelixChainConf.fromJson({id:"100",lzid:"145",code:"gnosis",name:"Gnosis",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.gnosischain.com"},{provider:"PUBLIC",endpoint:"https://gnosis-rpc.publicnode.com"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/gnosis/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://gnosis-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-gnosis/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"xDAI",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["xDAI"],name:"xDAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/xdai.png"},{symbol:"USDT",address:"0x4ECaBa5870353805a9F068101A40E0f32ed605C6",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"xDAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"DAI"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"xDAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"DAI"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"xDAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"DAI"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"xDAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"DAI"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var dx={};Object.defineProperty(dx,"__esModule",{value:!0});dx.lineaChain=void 0;const Bhe=wt;dx.lineaChain=Bhe.HelixChainConf.fromJson({id:"59144",lzid:"183",code:"linea",name:"Linea",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.linea.build"},{provider:"PUBLIC",endpoint:"https://linea.drpc.org"},{provider:"PUBLIC",endpoint:"https://linea.decubate.com"},{provider:"PUBLIC",endpoint:"https://1rpc.io/linea"},{provider:"ALCHEMY",endpoint:"https://linea-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://linea-mainnet.infura.io/v3/$INFURA_KEY"},{provider:"BLAST",endpoint:"https://linea-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/linea"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0xA219439258ca9da29E9Cc4cE5596924745e12B93",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var fx={};Object.defineProperty(fx,"__esModule",{value:!0});fx.mantleChain=void 0;const Fhe=wt;fx.mantleChain=Fhe.HelixChainConf.fromJson({id:"5000",lzid:"181",code:"mantle",name:"Mantle",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/mantle"},{provider:"PUBLIC",endpoint:"https://rpc.mantle.xyz"},{provider:"PUBLIC",endpoint:"https://mantle-rpc.publicnode.com"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/mantle/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://mantle-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/mantle"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"MNT",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["MNT"],name:"MNT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/mnt.png"},{symbol:"USDT",address:"0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"324",code:"zksync",name:"zksync"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var hx={};Object.defineProperty(hx,"__esModule",{value:!0});hx.moonbeamChain=void 0;const Mhe=wt;hx.moonbeamChain=Mhe.HelixChainConf.fromJson({id:"1284",lzid:"126",code:"moonbeam",name:"Moonbeam",rpcs:[{provider:"PUBLIC",endpoint:"https://moonbeam-rpc.dwellir.com"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/moonbeam/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://moonbeam.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-moonbeam/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"GLMR",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",alias:["GLMR"],name:"GLMR"},{symbol:"xcUSDT",alias:["USDT","xcUSDT"],address:"0xFFFFFFfFea09FB06d082fd1275CD48b191cbCD1d",decimals:6,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png",name:"xcUSDT"},{symbol:"xcPINK",alias:["PINK","xcPINK"],address:"0xffffffff30478fafbe935e466da114e14fb3563d",decimals:10,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/pink.png",name:"xcPINK"}],couples:[{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"xcUSDT",to:"ahUSDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"xcUSDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"xcPINK",to:"ahPINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"PINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var mx={};Object.defineProperty(mx,"__esModule",{value:!0});mx.opChain=void 0;const Lhe=wt;mx.opChain=Lhe.HelixChainConf.fromJson({id:"10",lzid:"111",code:"op",name:"Op",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/optimism"},{provider:"PUBLIC",endpoint:"https://mainnet.optimism.io"},{provider:"PUBLIC",endpoint:"https://optimism-rpc.publicnode.com"},{provider:"ALCHEMY",endpoint:"https://opt-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/optimism/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://optimism-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-op/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"WBTC",address:"0x68f180fcCe6836688e9084f035309E29Bf0A2095",decimals:8,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"},{symbol:"DAI",address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",decimals:18,type:"erc20",alias:["DAI"],name:"DAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/dai.png"},{symbol:"LINK",address:"0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6",decimals:18,type:"erc20",alias:["LINK"],name:"LINK",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/link.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"DAI",to:"xDAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var px={};Object.defineProperty(px,"__esModule",{value:!0});px.polygonChain=void 0;const Uhe=wt;px.polygonChain=Uhe.HelixChainConf.fromJson({id:"137",lzid:"109",code:"polygon",name:"Polygon",rpcs:[{provider:"PUBLIC",endpoint:"https://polygon-rpc.com"},{provider:"PUBLIC",endpoint:"https://polygon-bor-rpc.publicnode.com"},{provider:"ALCHEMY",endpoint:"https://polygon-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://polygon-mainnet.infura.io/v3/$INFURA_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/polygon/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://polygon-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-polygon/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"MATIC",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/matic.svg",alias:["MATIC"],name:"MATIC"},{symbol:"Ring",address:"0x9C1C23E60B72Bc88a043bf64aFdb16A02540Ae8f",decimals:18,type:"erc20",alias:["Ring"],name:"Ring",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png"},{symbol:"USDT",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"WBTC",address:"0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",decimals:8,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"},{symbol:"DAI",address:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",decimals:18,type:"erc20",alias:["DAI"],name:"DAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/dai.png"},{symbol:"LINK",address:"0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39",decimals:18,type:"erc20",alias:["LINK"],name:"LINK",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/link.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"Ring",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"RING"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"Ring",to:"RING"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"RING"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"Ring",to:"RING"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"BTC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"BTC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"BTC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"BTC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"DAI"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"DAI"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"DAI"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"DAI",to:"xDAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"DAI"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"LINK"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"LINK"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"LINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var gx={};Object.defineProperty(gx,"__esModule",{value:!0});gx.scrollChain=void 0;const $he=wt;gx.scrollChain=$he.HelixChainConf.fromJson({id:"534352",lzid:"214",code:"scroll",name:"Scroll",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/scroll"},{provider:"PUBLIC",endpoint:"https://rpc.scroll.io"},{provider:"PUBLIC",endpoint:"https://scroll-mainnet.public.blastapi.io"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/scroll/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://scroll-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-scroll/v1.0.1"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"ETH"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"ETH"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"ETH"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"324",code:"zksync",name:"zksync"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var yx={};Object.defineProperty(yx,"__esModule",{value:!0});yx.zircuitChain=void 0;const zhe=wt;yx.zircuitChain=zhe.HelixChainConf.fromJson({id:"48900",lzid:"303",code:"zircuit",name:"Zircuit",rpcs:[{provider:"PUBLIC",endpoint:"https://zircuit1-mainnet.p2pify.com"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/zircuit"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var bx={};Object.defineProperty(bx,"__esModule",{value:!0});bx.zksyncChain=void 0;const Hhe=wt;bx.zksyncChain=Hhe.HelixChainConf.fromJson({id:"324",lzid:"165",code:"zksync",name:"zksync",rpcs:[{provider:"PUBLIC",endpoint:"https://mainnet.era.zksync.io"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/zksync_era/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://zksync-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x767Bc046c989f5e63683fB530f939DD34b91ceAC","lnv2-opposite":null,lnv3:null},additional:{dao:"0x38b9145b6F4f363C42C83F62Ee09df0Ade6F8Dec",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0xA0d8a3C04580a8503ed3Ff30deBb22B83EE615F4","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},messagers:[{name:"layerzero",address:"0x96892F3EaD26515592Da38432cFABad991BBd69d"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x493257fD37EDB34451f62EDf8D2a0C418852bA4C",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC.e",address:"0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4",decimals:6,type:"erc20",alias:["USDC.e"],name:"USDC.e",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.e.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x767Bc046c989f5e63683fB530f939DD34b91ceAC"},fee:"100000",messager:{name:"layerzero",address:"0x96892F3EaD26515592Da38432cFABad991BBd69d"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x767Bc046c989f5e63683fB530f939DD34b91ceAC"},fee:"100000",messager:{name:"layerzero",address:"0x96892F3EaD26515592Da38432cFABad991BBd69d"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x767Bc046c989f5e63683fB530f939DD34b91ceAC"},fee:"100000",messager:{name:"layerzero",address:"0x96892F3EaD26515592Da38432cFABad991BBd69d"},category:"USDT"}],_network:"mainnets",indexers:[]});var vx={};Object.defineProperty(vx,"__esModule",{value:!0});vx.arbitrumSepoliaChain=void 0;const qhe=wt;vx.arbitrumSepoliaChain=qhe.HelixChainConf.fromJson({id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://public.stackup.sh/api/v1/node/arbitrum-sepolia"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x3b8Bb7348D4F581e67E2498574F73e4B9Fc51855",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x8A87497488073307E1a17e8A12475a94Afcb413f",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"2810",code:"morph",name:"morph"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"167009",code:"taiko-hekla",name:"taiko-hekla"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",category:"USDC",messager:{name:"layerzero"}},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",category:"USDC"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"2810",code:"morph",name:"morph"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"80084",code:"bera",name:"bera"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"167009",code:"taiko-hekla",name:"taiko-hekla"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",category:"USDC",messager:{name:"layerzero"}},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"48899",code:"zircuit-sepolia",name:"Zircuit sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"1000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"2810",code:"morph",name:"morph"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"167009",code:"taiko-hekla",name:"taiko-hekla"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"2810",code:"morph",name:"morph"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"80084",code:"bera",name:"bera"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"167009",code:"taiko-hekla",name:"taiko-hekla"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"48899",code:"zircuit-sepolia",name:"Zircuit sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"1000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"2810",code:"morph",name:"morph"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"}],_network:"testnets",protocol:{"lnv2-default":"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739","lnv2-opposite":"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f",lnv3:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},messagers:[],indexers:[]});var wx={};Object.defineProperty(wx,"__esModule",{value:!0});wx.baseSepoliaChain=void 0;const Whe=wt;wx.baseSepoliaChain=Whe.HelixChainConf.fromJson({id:"84532",code:"base-sepolia",name:"base-sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://sepolia.base.org"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0x29D148A9e87C763292a33A55B9dBcAf44A194102"},tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x463D1730a8527CA58d48EF70C7460B9920346567",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x29D148A9e87C763292a33A55B9dBcAf44A194102"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x29D148A9e87C763292a33A55B9dBcAf44A194102"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"}],_network:"testnets",messagers:[],indexers:[]});var Ex={};Object.defineProperty(Ex,"__esModule",{value:!0});Ex.beraChain=void 0;const Ghe=wt;Ex.beraChain=Ghe.HelixChainConf.fromJson({id:"80084",code:"bera",name:"bera",rpcs:[{provider:"PUBLIC",endpoint:"https://bartio.rpc.berachain.com"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},tokens:[{symbol:"BERA",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/bera.svg",alias:["BERA"],name:"BERA"},{symbol:"USDT",address:"0x1E58fE2262301bdC13D9F691D01808045B4D3d0B",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x4F20B4631dB09A699477550cc83503E5925E3654",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"}],_network:"testnets",messagers:[],indexers:[]});var _x={};Object.defineProperty(_x,"__esModule",{value:!0});_x.morphChain=void 0;const Vhe=wt;_x.morphChain=Vhe.HelixChainConf.fromJson({id:"2810",code:"morph",name:"morph",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc-holesky.morphl2.io"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0xBBFb503e37de678074f26b7178b45dA2FCDaA8A4",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x5d016cC247CF6bF03524489C104C1F5016B01Bff",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"}],_network:"testnets",messagers:[],indexers:[]});var xx={};Object.defineProperty(xx,"__esModule",{value:!0});xx.sepoliaChain=void 0;const Khe=wt;xx.sepoliaChain=Khe.HelixChainConf.fromJson({id:"11155111",code:"sepolia",name:"Sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://ethereum-sepolia-rpc.publicnode.com"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x876A4f6eCF13EEb101F9E75FCeF58f19Ff383eEB",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x0ac58Df0cc3542beC4cDa71B16D06C3cCc39f405",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"84532",code:"base-sepolia",name:"base-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"84532",code:"base-sepolia",name:"base-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"84532",code:"base-sepolia",name:"base-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"}],_network:"testnets",protocol:{"lnv2-default":"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739","lnv2-opposite":"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f",lnv3:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},messagers:[],indexers:[]});var Cx={};Object.defineProperty(Cx,"__esModule",{value:!0});Cx.taikoHeklaChain=void 0;const Yhe=wt;Cx.taikoHeklaChain=Yhe.HelixChainConf.fromJson({id:"167009",code:"taiko-hekla",name:"taiko-hekla",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.hekla.taiko.xyz"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x463D1730a8527CA58d48EF70C7460B9920346567",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"}],_network:"testnets",messagers:[],indexers:[]});var Sx={};Object.defineProperty(Sx,"__esModule",{value:!0});Sx.zircuitSepoliaChain=void 0;const Qhe=wt;Sx.zircuitSepoliaChain=Qhe.HelixChainConf.fromJson({id:"48899",code:"zircuit-sepolia",name:"Zircuit sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://zircuit1-testnet.p2pify.com/"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0x369642b7b9cf4eAc16b07797F77e1C0907Ea62c1"},tokens:[{symbol:"USDT",address:"0x9C80EdD342b5D179c3a87946fC1F0963BfcaAa09",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x8A87497488073307E1a17e8A12475a94Afcb413f",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x369642b7b9cf4eAc16b07797F77e1C0907Ea62c1"},fee:"1000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x369642b7b9cf4eAc16b07797F77e1C0907Ea62c1"},fee:"1000000000000000",messager:{name:"layerzero"},category:"USDC"}],_network:"testnets",messagers:[],indexers:[]});var Tx={};Object.defineProperty(Tx,"__esModule",{value:!0});Tx.zksyncSepoliaChain=void 0;const Xhe=wt;Tx.zksyncSepoliaChain=Xhe.HelixChainConf.fromJson({id:"300",code:"zksync-sepolia",name:"zksync-sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://zksync-sepolia.drpc.org"}],protocol:{"lnv2-default":"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37","lnv2-opposite":null,lnv3:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x3350f1ef046e21E052dCbA60Fc575919CCaFEdeb",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x253adBFE99Fcd096B9b5502753F96CF78D42eaD0",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"}],_network:"testnets",messagers:[],indexers:[]});Object.defineProperty(ex,"__esModule",{value:!0});ex.HelixChain=void 0;const Jhe=tx,Zhe=nx,eme=rx,tme=ox,nme=ax,rme=ix,ome=sx,ame=cx,ime=lx,sme=ux,cme=dx,lme=fx,ume=hx,dme=mx,fme=px,hme=gx,mme=yx,pme=bx,gme=vx,yme=wx,bme=Ex,vme=_x,wme=xx,Eme=Cx,_me=Sx,xme=Tx,Be=class Be{static codes(){return["arbitrum","astar-zkevm","avalanche","base","blast","bsc","crab-dvm","darwinia-dvm","ethereum","gnosis","linea","mantle","moonbeam","op","polygon","scroll","zircuit","zksync","arbitrum-sepolia","base-sepolia","bera","morph","sepolia","taiko-hekla","zircuit-sepolia","zksync-sepolia"]}static chains(t){const n=[Be.arbitrum,Be.astarZkevm,Be.avalanche,Be.base,Be.blast,Be.bsc,Be.crabDvm,Be.darwiniaDvm,Be.ethereum,Be.gnosis,Be.linea,Be.mantle,Be.moonbeam,Be.op,Be.polygon,Be.scroll,Be.zircuit,Be.zksync,Be.arbitrumSepolia,Be.baseSepolia,Be.bera,Be.morph,Be.sepolia,Be.taikoHekla,Be.zircuitSepolia,Be.zksyncSepolia],r=t==null?void 0:t.network;return r?n.filter(o=>o._network===r):n}static get(t){const n=t.toString().toUpperCase();return Be.chains().find(r=>r.code.toUpperCase()===n||r.id.toString()===n)}};Ve(Be,"arbitrum",Jhe.arbitrumChain),Ve(Be,"astarZkevm",Zhe.astarZkevmChain),Ve(Be,"avalanche",eme.avalancheChain),Ve(Be,"base",tme.baseChain),Ve(Be,"blast",nme.blastChain),Ve(Be,"bsc",rme.bscChain),Ve(Be,"crabDvm",ome.crabDvmChain),Ve(Be,"darwiniaDvm",ame.darwiniaDvmChain),Ve(Be,"ethereum",ime.ethereumChain),Ve(Be,"gnosis",sme.gnosisChain),Ve(Be,"linea",cme.lineaChain),Ve(Be,"mantle",lme.mantleChain),Ve(Be,"moonbeam",ume.moonbeamChain),Ve(Be,"op",dme.opChain),Ve(Be,"polygon",fme.polygonChain),Ve(Be,"scroll",hme.scrollChain),Ve(Be,"zircuit",mme.zircuitChain),Ve(Be,"zksync",pme.zksyncChain),Ve(Be,"arbitrumSepolia",gme.arbitrumSepoliaChain),Ve(Be,"baseSepolia",yme.baseSepoliaChain),Ve(Be,"bera",bme.beraChain),Ve(Be,"morph",vme.morphChain),Ve(Be,"sepolia",wme.sepoliaChain),Ve(Be,"taikoHekla",Eme.taikoHeklaChain),Ve(Be,"zircuitSepolia",_me.zircuitSepoliaChain),Ve(Be,"zksyncSepolia",xme.zksyncSepoliaChain);let x5=Be;ex.HelixChain=x5;(function(e){var t=We&&We.__createBinding||(Object.create?function(r,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(r,i,s)}:function(r,o,a,i){i===void 0&&(i=a),r[i]=o[a]}),n=We&&We.__exportStar||function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(wt,e),n(ex,e)})(jt);const Ax=1e3,Cme=0,Sme=.25*Ax,Tme=100*Ax,mo=2;var C5=function(e,t){return C5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},C5(e,t)};function or(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");C5(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var K=function(){return K=Object.assign||function(t){for(var n,r=1,o=arguments.length;r=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function jW(e,t){return function(n,r){t(n,r,e)}}function Ame(e,t,n,r,o,a){function i(v){if(v!==void 0&&typeof v!="function")throw new TypeError("Function expected");return v}for(var s=r.kind,c=s==="getter"?"get":s==="setter"?"set":"value",l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,h=n.length-1;h>=0;h--){var m={};for(var p in r)m[p]=p==="access"?{}:r[p];for(var p in r.access)m.access[p]=r.access[p];m.addInitializer=function(v){if(f)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(v||null))};var b=(0,n[h])(s==="accessor"?{get:u.get,set:u.set}:u[c],m);if(s==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(d=i(b.get))&&(u.get=d),(d=i(b.set))&&(u.set=d),(d=i(b.init))&&o.unshift(d)}else(d=i(b))&&(s==="field"?o.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function Dme(e,t,n){for(var r=arguments.length>2,o=0;o0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function cl(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function OW(){for(var e=[],t=0;t1||c(h,p)})},m&&(o[h]=m(o[h])))}function c(h,m){try{l(r[h](m))}catch(p){f(a[0][3],p)}}function l(h){h.value instanceof fs?Promise.resolve(h.value.v).then(u,d):f(a[0][2],h)}function u(h){c("next",h)}function d(h){c("throw",h)}function f(h,m){h(m),a.shift(),a.length&&c(a[0][0],a[0][1])}}function NW(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,a){t[o]=e[o]?function(i){return(n=!n)?{value:fs(e[o](i)),done:!1}:a?a(i):i}:a}}function Tj(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ku=="function"?Ku(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(i){return new Promise(function(s,c){i=e[a](i),o(s,c,i.done,i.value)})}}function o(a,i,s,c){Promise.resolve(c).then(function(l){a({value:l,done:s})},i)}}function BW(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Pme=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function FW(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Dx(t,e,n);return Pme(t,e),t}function MW(e){return e&&e.__esModule?e:{default:e}}function LW(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)}function UW(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function $W(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function zW(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var Ime=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function HW(e){function t(r){e.error=e.hasError?new Ime(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}const Ome={__extends:or,__assign:K,__rest:Zr,__decorate:kW,__param:jW,__metadata:PW,__awaiter:qa,__generator:la,__createBinding:Dx,__exportStar:IW,__values:Ku,__read:cl,__spread:OW,__spreadArrays:RW,__spreadArray:vn,__await:fs,__asyncGenerator:Sj,__asyncDelegator:NW,__asyncValues:Tj,__makeTemplateObject:BW,__importStar:FW,__importDefault:MW,__classPrivateFieldGet:LW,__classPrivateFieldSet:UW,__classPrivateFieldIn:$W,__addDisposableResource:zW,__disposeResources:HW},zYe=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:zW,get __assign(){return K},__asyncDelegator:NW,__asyncGenerator:Sj,__asyncValues:Tj,__await:fs,__awaiter:qa,__classPrivateFieldGet:LW,__classPrivateFieldIn:$W,__classPrivateFieldSet:UW,__createBinding:Dx,__decorate:kW,__disposeResources:HW,__esDecorate:Ame,__exportStar:IW,__extends:or,__generator:la,__importDefault:MW,__importStar:FW,__makeTemplateObject:BW,__metadata:PW,__param:jW,__propKey:kme,__read:cl,__rest:Zr,__runInitializers:Dme,__setFunctionName:jme,__spread:OW,__spreadArray:vn,__spreadArrays:RW,__values:Ku,default:Ome},Symbol.toStringTag,{value:"Module"}));var FS="Invariant Violation",zO=Object.setPrototypeOf,Rme=zO===void 0?function(e,t){return e.__proto__=t,e}:zO,qW=function(e){or(t,e);function t(n){n===void 0&&(n=FS);var r=e.call(this,typeof n=="number"?FS+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=FS,Rme(r,t.prototype),r}return t}(Error);function lu(e,t){if(!e)throw new qW(t)}var WW=["debug","log","warn","error","silent"],Nme=WW.indexOf("log");function tv(e){return function(){if(WW.indexOf(e)>=Nme){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=tv("debug"),e.log=tv("log"),e.warn=tv("warn"),e.error=tv("error")})(lu||(lu={}));var Aj="3.11.1";function Wa(e){try{return e()}catch{}}const S5=Wa(function(){return globalThis})||Wa(function(){return window})||Wa(function(){return self})||Wa(function(){return global})||Wa(function(){return Wa.constructor("return this")()});var HO=new Map;function T5(e){var t=HO.get(e)||1;return HO.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function GW(e,t){t===void 0&&(t=0);var n=T5("stringifyForDisplay");return JSON.stringify(e,function(r,o){return o===void 0?n:o},t).split(JSON.stringify(n)).join("")}function nv(e){return function(t){for(var n=[],r=1;r"}}function Dj(e,t){if(t===void 0&&(t=[]),!!e)return S5[qO]&&S5[qO](e,t.map(VW))}function kj(e,t){if(t===void 0&&(t=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Aj,message:e,args:t.map(VW)})))}function u1(e,t){if(!!!e)throw new Error(t)}function Bme(e){return typeof e=="object"&&e!==null}function Fme(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const Mme=/\r\n|[\n\r]/g;function A5(e,t){let n=0,r=1;for(const o of e.body.matchAll(Mme)){if(typeof o.index=="number"||Fme(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function Lme(e){return KW(e.source,A5(e.source,e.start))}function KW(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,a=e.locationOffset.line-1,i=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${i}:${c} -`,u=r.split(/\r\n|[\n\r]/g),d=u[o];if(d.length>120){const f=Math.floor(c/80),h=c%80,m=[];for(let p=0;p["|",p]),["|","^".padStart(h)],["|",m[f+1]]])}return l+WO([[`${i-1} |`,u[o-1]],[`${i} |`,d],["|","^".padStart(c)],[`${i+1} |`,u[o+1]]])}function WO(e){const t=e.filter(([r,o])=>o!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,o])=>r.padStart(n)+(o?" "+o:"")).join(` -`)}function Ume(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class jj extends Error{constructor(t,...n){var r,o,a;const{nodes:i,source:s,positions:c,path:l,originalError:u,extensions:d}=Ume(n);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=u??void 0,this.nodes=GO(Array.isArray(i)?i:i?[i]:void 0);const f=GO((r=this.nodes)===null||r===void 0?void 0:r.map(m=>m.loc).filter(m=>m!=null));this.source=s??(f==null||(o=f[0])===null||o===void 0?void 0:o.source),this.positions=c??(f==null?void 0:f.map(m=>m.start)),this.locations=c&&s?c.map(m=>A5(s,m)):f==null?void 0:f.map(m=>A5(m.source,m.start));const h=Bme(u==null?void 0:u.extensions)?u==null?void 0:u.extensions:void 0;this.extensions=(a=d??h)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,jj):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=` - -`+Lme(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=` - -`+KW(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function GO(e){return e===void 0||e.length===0?void 0:e}function Jn(e,t,n){return new jj(`Syntax Error: ${n}`,{source:e,positions:[t]})}class $me{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class YW{constructor(t,n,r,o,a,i){this.kind=t,this.start=n,this.end=r,this.line=o,this.column=a,this.value=i,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const QW={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},zme=new Set(Object.keys(QW));function VO(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&zme.has(t)}var If;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(If||(If={}));var D5;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(D5||(D5={}));var Ce;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Ce||(Ce={}));function k5(e){return e===9||e===32}function ag(e){return e>=48&&e<=57}function XW(e){return e>=97&&e<=122||e>=65&&e<=90}function JW(e){return XW(e)||e===95}function Hme(e){return XW(e)||ag(e)||e===95}function qme(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let i=0;is===0?i:i.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,o+1)}function Wme(e){let t=0;for(;t1&&r.slice(1).every(h=>h.length===0||k5(h.charCodeAt(0))),i=n.endsWith('\\"""'),s=e.endsWith('"')&&!i,c=e.endsWith("\\"),l=s||c,u=!o||e.length>70||l||a||i;let d="";const f=o&&k5(e.charCodeAt(0));return(u&&!f||a)&&(d+=` -`),d+=n,(u||l)&&(d+=` -`),'"""'+d+'"""'}var le;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(le||(le={}));class Vme{constructor(t){const n=new YW(le.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==le.EOF)do if(t.next)t=t.next;else{const n=Yme(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===le.COMMENT);return t}}function Kme(e){return e===le.BANG||e===le.DOLLAR||e===le.AMP||e===le.PAREN_L||e===le.PAREN_R||e===le.SPREAD||e===le.COLON||e===le.EQUALS||e===le.AT||e===le.BRACKET_L||e===le.BRACKET_R||e===le.BRACE_L||e===le.PIPE||e===le.BRACE_R}function lm(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function kx(e,t){return ZW(e.charCodeAt(t))&&eG(e.charCodeAt(t+1))}function ZW(e){return e>=55296&&e<=56319}function eG(e){return e>=56320&&e<=57343}function Yu(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return le.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Sn(e,t,n,r,o){const a=e.line,i=1+n-e.lineStart;return new YW(t,n,r,a,i,o)}function Yme(e,t){const n=e.source.body,r=n.length;let o=t;for(;o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function tpe(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` -`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Jn(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function npe(e,t){const n=e.source.body,r=n.length;let o=e.lineStart,a=t+3,i=a,s="";const c=[];for(;atG?"["+lpe(e)+"]":"{ "+n.map(([o,a])=>o+": "+jx(a,t)).join(", ")+" }"}function cpe(e,t){if(e.length===0)return"[]";if(t.length>tG)return"[Array]";const n=Math.min(ope,e.length),r=e.length-n,o=[];for(let a=0;a1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}function lpe(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const upe=globalThis.process&&!0,dpe=upe?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;const o=n.prototype[Symbol.toStringTag],a=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(o===a){const i=Pj(t);throw new Error(`Cannot use ${o} "${i}" from another module or realm. - -Ensure that there is only one instance of "graphql" in the node_modules -directory. If different versions of "graphql" are the dependencies of other -relied on modules, use "resolutions" to ensure only one version is installed. - -https://yarnpkg.com/en/docs/selective-version-resolutions - -Duplicate "graphql" modules cannot be used at the same time since different -versions may have different capabilities and behavior. The data from one -version used in the function from another could produce confusing and -spurious results.`)}}return!1};class nG{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||u1(!1,`Body must be a string. Received: ${Pj(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||u1(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||u1(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function fpe(e){return dpe(e,nG)}function hpe(e,t){return new mpe(e,t).parseDocument()}class mpe{constructor(t,n={}){const r=fpe(t)?t:new nG(t);this._lexer=new Vme(r),this._options=n,this._tokenCounter=0}parseName(){const t=this.expectToken(le.NAME);return this.node(t,{kind:Ce.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Ce.DOCUMENT,definitions:this.many(le.SOF,this.parseDefinition,le.EOF)})}parseDefinition(){if(this.peek(le.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===le.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw Jn(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(le.BRACE_L))return this.node(t,{kind:Ce.OPERATION_DEFINITION,operation:If.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(le.NAME)&&(r=this.parseName()),this.node(t,{kind:Ce.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(le.NAME);switch(t.value){case"query":return If.QUERY;case"mutation":return If.MUTATION;case"subscription":return If.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(le.PAREN_L,this.parseVariableDefinition,le.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Ce.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(le.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(le.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(le.DOLLAR),this.node(t,{kind:Ce.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Ce.SELECTION_SET,selections:this.many(le.BRACE_L,this.parseSelection,le.BRACE_R)})}parseSelection(){return this.peek(le.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,o;return this.expectOptionalToken(le.COLON)?(r=n,o=this.parseName()):o=n,this.node(t,{kind:Ce.FIELD,alias:r,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(le.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(le.PAREN_L,n,le.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:Ce.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(le.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(le.NAME)?this.node(t,{kind:Ce.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Ce.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:Ce.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Ce.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case le.BRACKET_L:return this.parseList(t);case le.BRACE_L:return this.parseObject(t);case le.INT:return this.advanceLexer(),this.node(n,{kind:Ce.INT,value:n.value});case le.FLOAT:return this.advanceLexer(),this.node(n,{kind:Ce.FLOAT,value:n.value});case le.STRING:case le.BLOCK_STRING:return this.parseStringLiteral();case le.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:Ce.BOOLEAN,value:!0});case"false":return this.node(n,{kind:Ce.BOOLEAN,value:!1});case"null":return this.node(n,{kind:Ce.NULL});default:return this.node(n,{kind:Ce.ENUM,value:n.value})}case le.DOLLAR:if(t)if(this.expectToken(le.DOLLAR),this._lexer.token.kind===le.NAME){const r=this._lexer.token.value;throw Jn(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:Ce.STRING,value:t.value,block:t.kind===le.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:Ce.LIST,values:this.any(le.BRACKET_L,n,le.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:Ce.OBJECT,fields:this.any(le.BRACE_L,n,le.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:Ce.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(le.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(le.AT),this.node(n,{kind:Ce.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(le.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(le.BRACKET_R),n=this.node(t,{kind:Ce.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(le.BANG)?this.node(t,{kind:Ce.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Ce.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(le.STRING)||this.peek(le.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),o=this.many(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);return this.node(t,{kind:Ce.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(le.COLON);const r=this.parseNamedType();return this.node(t,{kind:Ce.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:Ce.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(t,{kind:Ce.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:a,fields:i})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(le.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseFieldDefinition,le.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),o=this.parseArgumentDefs();this.expectToken(le.COLON);const a=this.parseTypeReference(),i=this.parseConstDirectives();return this.node(t,{kind:Ce.FIELD_DEFINITION,description:n,name:r,arguments:o,type:a,directives:i})}parseArgumentDefs(){return this.optionalMany(le.PAREN_L,this.parseInputValueDef,le.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(le.COLON);const o=this.parseTypeReference();let a;this.expectOptionalToken(le.EQUALS)&&(a=this.parseConstValueLiteral());const i=this.parseConstDirectives();return this.node(t,{kind:Ce.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:a,directives:i})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(t,{kind:Ce.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:a,fields:i})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),o=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:Ce.UNION_TYPE_DEFINITION,description:n,name:r,directives:o,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(le.EQUALS)?this.delimitedMany(le.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),o=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:Ce.ENUM_TYPE_DEFINITION,description:n,name:r,directives:o,values:a})}parseEnumValuesDefinition(){return this.optionalMany(le.BRACE_L,this.parseEnumValueDefinition,le.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:Ce.ENUM_VALUE_DEFINITION,description:n,name:r,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Jn(this._lexer.source,this._lexer.token.start,`${rv(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),o=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:Ce.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:o,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseInputValueDef,le.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===le.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Ce.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:Ce.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:Ce.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:a})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:Ce.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:a})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Ce.UNION_TYPE_EXTENSION,name:n,directives:r,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Ce.ENUM_TYPE_EXTENSION,name:n,directives:r,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Ce.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:o})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(le.AT);const r=this.parseName(),o=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const i=this.parseDirectiveLocations();return this.node(t,{kind:Ce.DIRECTIVE_DEFINITION,description:n,name:r,arguments:o,repeatable:a,locations:i})}parseDirectiveLocations(){return this.delimitedMany(le.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(D5,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new $me(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Jn(this._lexer.source,n.start,`Expected ${rG(t)}, found ${rv(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===le.NAME&&n.value===t)this.advanceLexer();else throw Jn(this._lexer.source,n.start,`Expected "${t}", found ${rv(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===le.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return Jn(this._lexer.source,n.start,`Unexpected ${rv(n)}.`)}any(t,n,r){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(r);)o.push(n.call(this));return o}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}return[]}many(t,n,r){this.expectToken(t);const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==le.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Jn(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function rv(e){const t=e.value;return rG(e.kind)+(t!=null?` "${t}"`:"")}function rG(e){return Kme(e)?`"${e}"`:e}function ppe(e){return`"${e.replace(gpe,ype)}"`}const gpe=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ype(e){return bpe[e.charCodeAt(0)]}const bpe=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Ij=Object.freeze({});function Ts(e,t,n=QW){const r=new Map;for(const v of Object.values(Ce))r.set(v,vpe(t,v));let o,a=Array.isArray(e),i=[e],s=-1,c=[],l=e,u,d;const f=[],h=[];do{s++;const v=s===i.length,g=v&&c.length!==0;if(v){if(u=h.length===0?void 0:f[f.length-1],l=d,d=h.pop(),g)if(a){l=l.slice();let _=0;for(const[C,x]of c){const E=C-_;x===null?(l.splice(E,1),_++):l[E]=x}}else{l=Object.defineProperties({},Object.getOwnPropertyDescriptors(l));for(const[_,C]of c)l[_]=C}s=o.index,i=o.keys,c=o.edits,a=o.inArray,o=o.prev}else if(d){if(u=a?s:i[s],l=d[u],l==null)continue;f.push(u)}let w;if(!Array.isArray(l)){var m,p;VO(l)||u1(!1,`Invalid AST Node: ${Pj(l)}.`);const _=v?(m=r.get(l.kind))===null||m===void 0?void 0:m.leave:(p=r.get(l.kind))===null||p===void 0?void 0:p.enter;if(w=_==null?void 0:_.call(t,l,u,d,f,h),w===Ij)break;if(w===!1){if(!v){f.pop();continue}}else if(w!==void 0&&(c.push([u,w]),!v))if(VO(w))l=w;else{f.pop();continue}}if(w===void 0&&g&&c.push([u,l]),v)f.pop();else{var b;o={inArray:a,index:s,keys:i,edits:c,prev:o},a=Array.isArray(l),i=a?l:(b=n[l.kind])!==null&&b!==void 0?b:[],s=-1,c=[],d&&h.push(d),d=l}}while(o!==void 0);return c.length!==0?c[c.length-1][1]:e}function vpe(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function wpe(e){return Ts(e,_pe)}const Epe=80,_pe={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Se(e.definitions,` - -`)},OperationDefinition:{leave(e){const t=mt("(",Se(e.variableDefinitions,", "),")"),n=Se([e.operation,Se([e.name,t]),Se(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+mt(" = ",n)+mt(" ",Se(r," "))},SelectionSet:{leave:({selections:e})=>Ra(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){const a=mt("",e,": ")+t;let i=a+mt("(",Se(n,", "),")");return i.length>Epe&&(i=a+mt(`( -`,d1(Se(n,` -`)),` -)`)),Se([i,Se(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+mt(" ",Se(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Se(["...",mt("on ",e),Se(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${mt("(",Se(n,", "),")")} on ${t} ${mt("",Se(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Gme(e):ppe(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Se(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Se(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+mt("(",Se(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>mt("",e,` -`)+Se(["schema",Se(t," "),Ra(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>mt("",e,` -`)+Se(["scalar",t,Se(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>mt("",e,` -`)+Se(["type",t,mt("implements ",Se(n," & ")),Se(r," "),Ra(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>mt("",e,` -`)+t+(YO(n)?mt(`( -`,d1(Se(n,` -`)),` -)`):mt("(",Se(n,", "),")"))+": "+r+mt(" ",Se(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>mt("",e,` -`)+Se([t+": "+n,mt("= ",r),Se(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>mt("",e,` -`)+Se(["interface",t,mt("implements ",Se(n," & ")),Se(r," "),Ra(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>mt("",e,` -`)+Se(["union",t,Se(n," "),mt("= ",Se(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>mt("",e,` -`)+Se(["enum",t,Se(n," "),Ra(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>mt("",e,` -`)+Se([t,Se(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>mt("",e,` -`)+Se(["input",t,Se(n," "),Ra(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>mt("",e,` -`)+"directive @"+t+(YO(n)?mt(`( -`,d1(Se(n,` -`)),` -)`):mt("(",Se(n,", "),")"))+(r?" repeatable":"")+" on "+Se(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Se(["extend schema",Se(e," "),Ra(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Se(["extend scalar",e,Se(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Se(["extend type",e,mt("implements ",Se(t," & ")),Se(n," "),Ra(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Se(["extend interface",e,mt("implements ",Se(t," & ")),Se(n," "),Ra(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Se(["extend union",e,Se(t," "),mt("= ",Se(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Se(["extend enum",e,Se(t," "),Ra(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Se(["extend input",e,Se(t," "),Ra(n)]," ")}};function Se(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function Ra(e){return mt(`{ -`,d1(Se(e,` -`)),` -}`)}function mt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function d1(e){return mt(" ",e.replace(/\n/g,` - `))}function YO(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!==null&&t!==void 0?t:!1}function QO(e){return e.kind===Ce.FIELD||e.kind===Ce.FRAGMENT_SPREAD||e.kind===Ce.INLINE_FRAGMENT}function ay(e,t){var n=e.directives;return!n||!n.length?!0:Spe(n).every(function(r){var o=r.directive,a=r.ifArgument,i=!1;return a.value.kind==="Variable"?(i=t&&t[a.value.name.value],Pe(i!==void 0,69,o.name.value)):i=a.value.value,o.name.value==="skip"?!i:i})}function ig(e,t,n){var r=new Set(e),o=r.size;return Ts(t,{Directive:function(a){if(r.delete(a.name.value)&&(!n||!r.size))return Ij}}),n?!r.size:r.sizeObject.create(null),{forEach:Ape,slice:XO}=Array.prototype,{hasOwnProperty:Dpe}=Object.prototype;let um=class oG{constructor(t=!0,n=Tpe){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return Ape.call(t,r=>n=n.getChildTrie(r)),Dpe.call(n,"data")?n.data:n.data=this.makeData(XO.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let r=0,o=t.length;n&&r=0})||!1,Ipe=(jpe||aG)&&!Ppe;function yn(e){return e!==null&&typeof e=="object"}function Ope(e,t){var n=t,r=[];e.definitions.forEach(function(a){if(a.kind==="OperationDefinition")throw ro(73,a.operation,a.name?" named '".concat(a.name.value,"'"):"");a.kind==="FragmentDefinition"&&r.push(a)}),typeof n>"u"&&(Pe(r.length===1,74,r.length),n=r[0].name.value);var o=K(K({},e),{definitions:vn([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)});return o}function Ix(e){e===void 0&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function Ox(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var n=e.name.value;if(typeof t=="function")return t(n);var r=t&&t[n];return Pe(r,75,n),r||null}default:return null}}function Rpe(){}class j5{constructor(t=1/0,n=Rpe){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:o}=n;o&&(o.older=r),r&&(r.newer=o),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=o)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1}}function P5(){}const Npe=P5,Bpe=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},Fpe=typeof WeakMap<"u"?WeakMap:Map,Mpe=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:P5,unregister:P5}},Lpe=10024;class jw{constructor(t=1/0,n=Npe){this.max=t,this.dispose=n,this.map=new Fpe,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let o=0;o0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Mpe(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:o}=n;o&&(o.older=r),r&&(r.newer=o),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=o)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;const n=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,n),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),n&&this.map.delete(n)}delete(t){const n=this.map.get(t);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var LS=new WeakSet;function sG(e){e.size<=(e.max||-1)||LS.has(e)||(LS.add(e),setTimeout(function(){e.clean(),LS.delete(e)},100))}var Rj=function(e,t){var n=new jw(e,t);return n.set=function(r,o){var a=jw.prototype.set.call(this,r,o);return sG(this),a},n},Upe=function(e,t){var n=new j5(e,t);return n.set=function(r,o){var a=j5.prototype.set.call(this,r,o);return sG(this),a},n},$pe=Symbol.for("apollo.cacheSize"),Fi=K({},S5[$pe]),tu={};function Nj(e,t){tu[e]=t}var zpe=globalThis.__DEV__!==!1?Gpe:void 0,Hpe=globalThis.__DEV__!==!1?Vpe:void 0,qpe=globalThis.__DEV__!==!1?cG:void 0;function Wpe(){var e={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],r=t[1];return[n,Fi[n]||r]}))}function Gpe(){var e,t,n,r,o;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:Wpe(),sizes:K({print:(e=tu.print)===null||e===void 0?void 0:e.call(tu),parser:(t=tu.parser)===null||t===void 0?void 0:t.call(tu),canonicalStringify:(n=tu.canonicalStringify)===null||n===void 0?void 0:n.call(tu),links:O5(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:uG(this.queryManager.documentTransform)}},(o=(r=this.cache).getMemoryInternals)===null||o===void 0?void 0:o.call(r))}}function cG(){return{cache:{fragmentQueryDocuments:Ec(this.getFragmentDoc)}}}function Vpe(){var e=this.config.fragments;return K(K({},cG.apply(this)),{addTypenameDocumentTransform:uG(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Ec(this.storeReader.executeSelectionSet),executeSubSelectedArray:Ec(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Ec(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Ec(e==null?void 0:e.findFragmentSpreads),lookup:Ec(e==null?void 0:e.lookup),transform:Ec(e==null?void 0:e.transform)}})}function Kpe(e){return!!e&&"dirtyKey"in e}function Ec(e){return Kpe(e)?e.size:void 0}function lG(e){return e!=null}function uG(e){return I5(e).map(function(t){return{cache:t}})}function I5(e){return e?vn(vn([Ec(e==null?void 0:e.performWork)],I5(e==null?void 0:e.left),!0),I5(e==null?void 0:e.right),!0).filter(lG):[]}function O5(e){var t;return e?vn(vn([(t=e==null?void 0:e.getMemoryInternals)===null||t===void 0?void 0:t.call(e)],O5(e==null?void 0:e.left),!0),O5(e==null?void 0:e.right),!0).filter(lG):[]}var Vc=Object.assign(function(t){return JSON.stringify(t,Ype)},{reset:function(){Of=new Upe(Fi.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&Nj("canonicalStringify",function(){return Of.size});var Of;Vc.reset();function Ype(e,t){if(t&&typeof t=="object"){var n=Object.getPrototypeOf(t);if(n===Object.prototype||n===null){var r=Object.keys(t);if(r.every(Qpe))return t;var o=JSON.stringify(r),a=Of.get(o);if(!a){r.sort();var i=JSON.stringify(r);a=Of.get(i)||r,Of.set(o,a),Of.set(i,a)}var s=Object.create(n);return a.forEach(function(c){s[c]=t[c]}),s}}return t}function Qpe(e,t,n){return t===0||n[t-1]<=e}function Xf(e){return{__ref:String(e)}}function kt(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function Xpe(e){return yn(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function Jpe(e){return e.kind==="StringValue"}function Zpe(e){return e.kind==="BooleanValue"}function e0e(e){return e.kind==="IntValue"}function t0e(e){return e.kind==="FloatValue"}function n0e(e){return e.kind==="Variable"}function r0e(e){return e.kind==="ObjectValue"}function o0e(e){return e.kind==="ListValue"}function a0e(e){return e.kind==="EnumValue"}function i0e(e){return e.kind==="NullValue"}function wh(e,t,n,r){if(e0e(n)||t0e(n))e[t.value]=Number(n.value);else if(Zpe(n)||Jpe(n))e[t.value]=n.value;else if(r0e(n)){var o={};n.fields.map(function(i){return wh(o,i.name,i.value,r)}),e[t.value]=o}else if(n0e(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(o0e(n))e[t.value]=n.values.map(function(i){var s={};return wh(s,t,i,r),s[t.value]});else if(a0e(n))e[t.value]=n.value;else if(i0e(n))e[t.value]=null;else throw ro(84,t.value,n.kind)}function s0e(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(o){n[o.name.value]={},o.arguments&&o.arguments.forEach(function(a){var i=a.name,s=a.value;return wh(n[o.name.value],i,s,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(o){var a=o.name,i=o.value;return wh(r,a,i,t)})),dG(e.name.value,r,n)}var c0e=["connection","include","skip","client","rest","export","nonreactive"],mp=Vc,dG=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o={};return r.forEach(function(s){o[s]=t[s]}),"".concat(n.connection.key,"(").concat(mp(o),")")}else return n.connection.key;var a=e;if(t){var i=mp(t);a+="(".concat(i,")")}return n&&Object.keys(n).forEach(function(s){c0e.indexOf(s)===-1&&(n[s]&&Object.keys(n[s]).length?a+="@".concat(s,"(").concat(mp(n[s]),")"):a+="@".concat(s))}),a},{setStringify:function(e){var t=mp;return mp=e,t}});function Rx(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){var o=r.name,a=r.value;return wh(n,o,a,t)}),n}return null}function ll(e){return e.alias?e.alias.value:e.name.value}function R5(e,t,n){for(var r,o=0,a=t.selections;oObject.create(null),{forEach:f0e,slice:h0e}=Array.prototype,{hasOwnProperty:m0e}=Object.prototype;class Fj{constructor(t=!0,n=d0e){this.weakness=t,this.makeData=n}lookup(...t){return this.lookupArray(t)}lookupArray(t){let n=this;return f0e.call(t,r=>n=n.getChildTrie(r)),m0e.call(n,"data")?n.data:n.data=this.makeData(h0e.call(t))}peek(...t){return this.peekArray(t)}peekArray(t){let n=this;for(let r=0,o=t.length;n&&rclass{constructor(){this.id=["slot",p0e++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=ir;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===ZO)break;return t!==ir&&(ir.slots[this.id]=n),!0}return ir&&(ir.slots[this.id]=ZO),!1}getValue(){if(this.hasValue())return ir.slots[this.id]}withValue(t,n,r,o){const a={__proto__:null,[this.id]:t},i=ir;ir={parent:i,slots:a};try{return n.apply(o,r)}finally{ir=i}}static bind(t){const n=ir;return function(){const r=ir;try{return ir=n,t.apply(this,arguments)}finally{ir=r}}}static noContext(t,n,r){if(ir){const o=ir;try{return ir=null,t.apply(r,n)}finally{ir=o}}else return t.apply(r,n)}};function eR(e){try{return e()}catch{}}const US="@wry/context:Slot",y0e=eR(()=>globalThis)||eR(()=>global)||Object.create(null),tR=y0e,hG=tR[US]||Array[US]||function(e){try{Object.defineProperty(tR,US,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(g0e()),Bx=new hG,{hasOwnProperty:b0e}=Object.prototype,Mj=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function Lj(e){const{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}const sg=[],v0e=100;function Eh(e,t){if(!e)throw new Error(t||"assertion failure")}function mG(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function pG(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function gG(e){return e.slice(0)}class Fx{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Fx.count}peek(){if(this.value.length===1&&!dl(this))return nR(this),this.value[0]}recompute(t){return Eh(!this.recomputing,"already recomputing"),nR(this),dl(this)?w0e(this,t):pG(this.value)}setDirty(){this.dirty||(this.dirty=!0,yG(this),Lj(this))}dispose(){this.setDirty(),_G(this),Uj(this,(t,n)=>{t.setDirty(),xG(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=sg.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(Mj(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),sg.push(this.deps),this.deps=null)}}Fx.count=0;function nR(e){const t=Bx.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),dl(e)?vG(t,e):wG(t,e),t}function w0e(e,t){return _G(e),Bx.withValue(e,E0e,[e,t]),x0e(e,t)&&_0e(e),pG(e.value)}function E0e(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&e.value.length===1&&(r=gG(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!mG(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(o){e.value[1]=o}e.recomputing=!1}function dl(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function _0e(e){e.dirty=!1,!dl(e)&&bG(e)}function yG(e){Uj(e,vG)}function bG(e){Uj(e,wG)}function Uj(e,t){const n=e.parents.size;if(n){const r=Mj(e.parents);for(let o=0;o0&&e.childValues.forEach((t,n)=>{xG(e,n)}),e.forgetDeps(),Eh(e.dirtyChildren===null)}function xG(e,t){t.parents.delete(e),e.childValues.delete(t),EG(e,t)}function x0e(e,t){if(typeof e.subscribe=="function")try{Lj(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}const C0e={setDirty:!0,dispose:!0,forget:!0};function CG(e){const t=new Map;function n(r){const o=Bx.getValue();if(o){let a=t.get(r);a||t.set(r,a=new Set),o.dependOn(a)}}return n.dirty=function(o,a){const i=t.get(o);if(i){const s=a&&b0e.call(C0e,a)?a:"setDirty";Mj(i).forEach(c=>c[s]()),t.delete(o),Lj(i)}},n}let rR;function S0e(...e){return(rR||(rR=new Fj(typeof WeakMap=="function"))).lookupArray(e)}const $S=new Set;function cg(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=S0e,normalizeResult:o,subscribe:a,cache:i=j5}=Object.create(null)){const s=typeof i=="function"?new i(t,f=>f.dispose()):i,c=function(){const f=r.apply(null,n?n.apply(null,arguments):arguments);if(f===void 0)return e.apply(null,arguments);let h=s.get(f);h||(s.set(f,h=new Fx(e)),h.normalizeResult=o,h.subscribe=a,h.forget=()=>s.delete(f));const m=h.recompute(Array.prototype.slice.call(arguments));return s.set(f,h),$S.add(s),Bx.hasValue()||($S.forEach(p=>p.clean()),$S.clear()),m};Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:o,subscribe:a,cache:s});function l(f){const h=f&&s.get(f);h&&h.setDirty()}c.dirtyKey=l,c.dirty=function(){l(r.apply(null,arguments))};function u(f){const h=f&&s.get(f);if(h)return h.peek()}c.peekKey=u,c.peek=function(){return u(r.apply(null,arguments))};function d(f){return f?s.delete(f):!1}return c.forgetKey=d,c.forget=function(){return d(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function T0e(e){return e}var SG=function(){function e(t,n){n===void 0&&(n=Object.create(null)),this.resultCache=iG?new WeakSet:new Set,this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(T0e,{cache:!1})},e.split=function(t,n,r){return r===void 0&&(r=e.identity()),Object.assign(new e(function(o){var a=t(o)?n:r;return a.transformDocument(o)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new um(dm);this.performWork=cg(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var o=t.getCacheKey(r);if(o)return Pe(Array.isArray(o),68),n.lookupArray(o)},max:Fi["documentTransform.cache"],cache:jw})}},e.prototype.performWork=function(t){return iy(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var n=this.performWork(t);return this.resultCache.add(n),n},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(r){return t.transformDocument(n.transformDocument(r))},{cache:!1}),{left:this,right:t})},e}(),y0,Mx=Object.assign(function(e){var t=y0.get(e);return t||(t=wpe(e),y0.set(e,t)),t},{reset:function(){y0=new Rj(Fi.print||2e3)}});Mx.reset();globalThis.__DEV__!==!1&&Nj("print",function(){return y0?y0.size:0});var bn=Array.isArray;function xa(e){return Array.isArray(e)&&e.length>0}var oR={kind:Ce.FIELD,name:{kind:Ce.NAME,value:"__typename"}};function TG(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===Ce.FRAGMENT_SPREAD&&TG(t[n.name.value],t)})}function A0e(e){return TG(sy(e)||u0e(e),Ix(Nx(e)))?null:e}function D0e(e){var t=new Map,n=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&n.set(r.test,r))}),function(r){var o=t.get(r.name.value);return!o&&n.size&&n.forEach(function(a,i){i(r)&&(o=a)}),o}}function aR(e){var t=new Map;return function(r){r===void 0&&(r=e);var o=t.get(r);return o||t.set(r,o={variables:new Set,fragmentSpreads:new Set}),o}}function AG(e,t){iy(t);for(var n=aR(""),r=aR(""),o=function(v){for(var g=0,w=void 0;g=0;--i)t.definitions[i].kind===Ce.OPERATION_DEFINITION&&++a;var s=D0e(e),c=function(v){return xa(v)&&v.map(s).some(function(g){return g&&g.remove})},l=new Map,u=!1,d={enter:function(v){if(c(v.directives))return u=!0,null}},f=Ts(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(v,g,w,_,C){var x=o(C);x&&x.variables.add(v.name.value)}},FragmentSpread:{enter:function(v,g,w,_,C){if(c(v.directives))return u=!0,null;var x=o(C);x&&x.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter:function(v,g,w,_){l.set(JSON.stringify(_),v)},leave:function(v,g,w,_){var C=l.get(JSON.stringify(_));if(v===C)return v;if(a>0&&v.selectionSet.selections.every(function(x){return x.kind===Ce.FIELD&&x.name.value==="__typename"}))return r(v.name.value).removed=!0,u=!0,null}},Directive:{leave:function(v){if(s(v))return u=!0,null}}});if(!u)return t;var h=function(v){return v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(function(g){h(r(g)).transitiveVars.forEach(function(w){v.transitiveVars.add(w)})})),v},m=new Set;f.definitions.forEach(function(v){v.kind===Ce.OPERATION_DEFINITION?h(n(v.name&&v.name.value)).fragmentSpreads.forEach(function(g){m.add(g)}):v.kind===Ce.FRAGMENT_DEFINITION&&a===0&&!r(v.name.value).removed&&m.add(v.name.value)}),m.forEach(function(v){h(r(v)).fragmentSpreads.forEach(function(g){m.add(g)})});var p=function(v){return!!(!m.has(v)||r(v).removed)},b={enter:function(v){if(p(v.name.value))return null}};return A0e(Ts(f,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(v){if(v.variableDefinitions){var g=h(n(v.name&&v.name.value)).transitiveVars;if(g.size1)for(var r=new fl,o=1;o=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O0e(e,t){if(e){if(typeof e=="string")return sR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sR(e,t)}}function sR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,s=!1,c=arguments[1],l=c;return new a(function(u){return o.subscribe({next:function(d){var f=!s;if(s=!0,!f||i)try{l=r(l,d)}catch(h){return u.error(h)}else l=d},error:function(d){u.error(d)},complete:function(){if(!s&&!i)return u.error(new TypeError("Cannot reduce an empty sequence"));u.next(l),u.complete()}})})},t.concat=function(){for(var r=this,o=arguments.length,a=new Array(o),i=0;i=0&&s.splice(f,1),l()}});s.push(d)},error:function(u){i.error(u)},complete:function(){l()}});function l(){c.closed&&s.length===0&&i.complete()}return function(){s.forEach(function(u){return u.unsubscribe()}),c.unsubscribe()}})},t[B5]=function(){return this},e.from=function(r){var o=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var a=Pw(r,B5);if(a){var i=a.call(r);if(Object(i)!==i)throw new TypeError(i+" is not an object");return N0e(i)&&i.constructor===o?i:new o(function(s){return i.subscribe(s)})}if(qj("iterator")&&(a=Pw(r,R0e),a))return new o(function(s){f1(function(){if(!s.closed){for(var c=I0e(a.call(r)),l;!(l=c()).done;){var u=l.value;if(s.next(u),s.closed)return}s.complete()}})});if(Array.isArray(r))return new o(function(s){f1(function(){if(!s.closed){for(var c=0;c=0;--s){var c=i[s],l=!isNaN(+c),u=l?[]:{};u[c]=a,a=u}n=r.merge(n,a)}),n}function h1(e){var t=L5(e);return xa(t)}function L5(e){var t=xa(e.errors)?e.errors.slice(0):[];return Jf(e)&&xa(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function Qu(){for(var e=[],t=0;t-1;){if(b=void 0,E=[s.slice(0,p),s.slice(p+i.length)],b=E[0],s=E[1],v=b.indexOf(`\r -\r -`),g=uge(b.slice(0,v)),w=g["content-type"],w&&w.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(_=b.slice(v),_){if(C=BG(e,_),Object.keys(C).length>1||"data"in C||"incremental"in C||"errors"in C||"payload"in C)if(W0e(C)){if(x={},"payload"in C){if(Object.keys(C).length===1&&C.payload===null)return[2];x=K({},C.payload)}"errors"in C&&(x=K(K({},x),{extensions:K(K({},"extensions"in x?x.extensions:null),(T={},T[Gj]=C.errors,T))})),t(x)}else t(C);else if(Object.keys(C).length===1&&"hasNext"in C&&!C.hasNext)return[2]}p=s.indexOf(i)}return[3,1];case 3:return[2]}})})}function uge(e){var t={};return e.split(` -`).forEach(function(n){var r=n.indexOf(":");if(r>-1){var o=n.slice(0,r).trim().toLowerCase(),a=n.slice(r+1).trim();t[o]=a}}),t}function BG(e,t){if(e.status>=300){var n=function(){try{return JSON.parse(t)}catch{return t}};NG(e,n(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(o){var r=o;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function dge(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function fge(e){return function(t){return t.text().then(function(n){return BG(t,n)}).then(function(n){return!Array.isArray(n)&&!mR.call(n,"data")&&!mR.call(n,"errors")&&NG(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}var $5=function(e,t){var n;try{n=JSON.stringify(e)}catch(o){var r=ro(39,t,o.message);throw r.parseError=o,r}return n},hge={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},mge={accept:"*/*","content-type":"application/json"},pge={method:"POST"},gge={http:hge,headers:mge,options:pge},yge=function(e,t){return t(e)};function bge(e,t){for(var n=[],r=2;r"u")throw ro(37)},Ege=function(e,t){var n=e.getContext(),r=n.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function _ge(e,t){var n=[],r=function(d,f){n.push("".concat(d,"=").concat(encodeURIComponent(f)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var o=void 0;try{o=$5(t.variables,"Variables map")}catch(d){return{parseError:d}}r("variables",o)}if(t.extensions){var a=void 0;try{a=$5(t.extensions,"Extensions map")}catch(d){return{parseError:d}}r("extensions",a)}var i="",s=e,c=e.indexOf("#");c!==-1&&(i=e.substr(c),s=e.substr(0,c));var l=s.indexOf("?")===-1?"?":"&",u=s+l+n.join("&")+i;return{newURI:u}}var pR=Wa(function(){return fetch}),xge=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?"/graphql":t,r=e.fetch,o=e.print,a=o===void 0?yge:o,i=e.includeExtensions,s=e.preserveHeaderCase,c=e.useGETForQueries,l=e.includeUnusedVariables,u=l===void 0?!1:l,d=Zr(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&wge(r||pR);var f={http:{includeExtensions:i,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new ly(function(h){var m=Ege(h,n),p=h.getContext(),b={};if(p.clientAwareness){var v=p.clientAwareness,g=v.name,w=v.version;g&&(b["apollographql-client-name"]=g),w&&(b["apollographql-client-version"]=w)}var _=K(K({},b),p.headers),C={http:p.http,options:p.fetchOptions,credentials:p.credentials,headers:_};if(ig(["client"],h.query)){var x=DG(h.query);if(!x)return qS(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));h.query=x}var E=bge(h,a,gge,f,C),T=E.options,k=E.body;k.variables&&!u&&(k.variables=Y0e(k.variables,h.query));var D;!T.signal&&typeof AbortController<"u"&&(D=new AbortController,T.signal=D.signal);var R=function(M){return M.kind==="OperationDefinition"&&M.operation==="mutation"},F=function(M){return M.kind==="OperationDefinition"&&M.operation==="subscription"},B=F(cy(h.query)),j=ig(["defer"],h.query);if(c&&!h.query.definitions.some(R)&&(T.method="GET"),j||B){T.headers=T.headers||{};var P="multipart/mixed;";B&&j&&globalThis.__DEV__!==!1&&Pe.warn(38),B?P+="boundary=graphql;subscriptionSpec=1.0,application/json":j&&(P+="deferSpec=20220824,application/json"),T.headers.accept=P}if(T.method==="GET"){var O=_ge(m,k),I=O.newURI,N=O.parseError;if(N)return qS(N);m=I}else try{T.body=$5(k,"Payload")}catch(M){return qS(M)}return new Gt(function(M){var L=r||Wa(function(){return fetch})||pR,X=M.next.bind(M);return L(m,T).then(function(J){var U;h.setContext({response:J});var G=(U=J.headers)===null||U===void 0?void 0:U.get("content-type");return G!==null&&/^multipart\/mixed/i.test(G)?lge(J,X):fge(h)(J).then(X)}).then(function(){D=void 0,M.complete()}).catch(function(J){D=void 0,dge(J,M)}),function(){D&&D.abort()}})})},Cge=function(e){or(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,xge(n).request)||this;return r.options=n,r}return t}(ly);const{toString:gR,hasOwnProperty:Sge}=Object.prototype,yR=Function.prototype.toString,z5=new Map;function Rt(e,t){try{return H5(e,t)}finally{z5.clear()}}function H5(e,t){if(e===t)return!0;const n=gR.call(e),r=gR.call(t);if(n!==r)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(vR(e,t))return!0;const o=bR(e),a=bR(t),i=o.length;if(i!==a.length)return!1;for(let s=0;s=0&&e.indexOf(t,n)===n}function vR(e,t){let n=z5.get(e);if(n){if(n.has(t))return!0}else z5.set(e,n=new Set);return n.add(t),!1}function FG(e,t,n,r){var o=t.data,a=Zr(t,["data"]),i=n.data,s=Zr(n,["data"]);return Rt(a,s)&&p1(cy(e).selectionSet,o,i,{fragmentMap:Ix(Nx(e)),variables:r})}function p1(e,t,n,r){if(t===n)return!0;var o=new Set;return e.selections.every(function(a){if(o.has(a)||(o.add(a),!ay(a,r.variables))||wR(a))return!0;if(ul(a)){var i=ll(a),s=t&&t[i],c=n&&n[i],l=a.selectionSet;if(!l)return Rt(s,c);var u=Array.isArray(s),d=Array.isArray(c);if(u!==d)return!1;if(u&&d){var f=s.length;if(c.length!==f)return!1;for(var h=0;h=0;--c)s.missing=(i={},i[s.path[c]]=s.missing,i)}else s.missing=s.path;return s.__proto__=t.prototype,s}return t}(Error),Kn=Object.prototype.hasOwnProperty;function yp(e){return e==null}function UG(e,t){var n=e.__typename,r=e.id,o=e._id;if(typeof n=="string"&&(t&&(t.keyObject=yp(r)?yp(o)?void 0:{_id:o}:{id:r}),yp(r)&&!yp(o)&&(r=o),!yp(r)))return"".concat(n,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var $G={dataIdFromObject:UG,addTypename:!0,resultCaching:!0,canonizeResults:!1};function jge(e){return Qu($G,e)}function zG(e){var t=e.canonizeResults;return t===void 0?$G.canonizeResults:t}function Pge(e,t){return kt(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var HG=/^[_a-z][_0-9a-z]*/i;function hl(e){var t=e.match(HG);return t?t[0]:e}function q5(e,t,n){return yn(t)?bn(t)?t.every(function(r){return q5(e,r,n)}):e.selections.every(function(r){if(ul(r)&&ay(r,n)){var o=ll(r);return Kn.call(t,o)&&(!r.selectionSet||q5(r.selectionSet,t[o],n))}return!0}):!1}function Rf(e){return yn(e)&&!kt(e)&&!bn(e)}function Ige(){return new fl}function qG(e,t){var n=Ix(Nx(e));return{fragmentMap:n,lookupFragment:function(r){var o=n[r];return!o&&t&&(o=t.lookup(r)),o||null}}}var g1=Object.create(null),WS=function(){return g1},ER=Object.create(null),ug=function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(o,a){return lg(kt(o)?r.get(o.__ref,a):o&&o[a])},this.canRead=function(o){return kt(o)?r.has(o.__ref):typeof o=="object"},this.toReference=function(o,a){if(typeof o=="string")return Xf(o);if(kt(o))return o;var i=r.policies.identify(o)[0];if(i){var s=Xf(i);return a&&r.merge(i,o),s}}}return e.prototype.toObject=function(){return K({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,n){if(this.group.depend(t,n),Kn.call(this.data,t)){var r=this.data[t];if(r&&Kn.call(r,n))return r[n]}if(n==="__typename"&&Kn.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof gc)return this.parent.get(t,n)},e.prototype.lookup=function(t,n){if(n&&this.group.depend(t,"__exists"),Kn.call(this.data,t))return this.data[t];if(this instanceof gc)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,n){var r=this,o;kt(t)&&(t=t.__ref),kt(n)&&(n=n.__ref);var a=typeof t=="string"?this.lookup(o=t):t,i=typeof n=="string"?this.lookup(o=n):n;if(i){Pe(typeof o=="string",1);var s=new fl(Rge).merge(a,i);if(this.data[o]=s,s!==a&&(delete this.refs[o],this.group.caching)){var c=Object.create(null);a||(c.__exists=1),Object.keys(i).forEach(function(l){if(!a||a[l]!==s[l]){c[l]=1;var u=hl(l);u!==l&&!r.policies.hasKeyArgs(s.__typename,u)&&(c[u]=1),s[l]===void 0&&!(r instanceof gc)&&delete s[l]}}),c.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[o]===s.__typename&&delete c.__typename,Object.keys(c).forEach(function(l){return r.group.dirty(o,l)})}}},e.prototype.modify=function(t,n){var r=this,o=this.lookup(t);if(o){var a=Object.create(null),i=!1,s=!0,c={DELETE:g1,INVALIDATE:ER,isReference:kt,toReference:this.toReference,canRead:this.canRead,readField:function(l,u){return r.policies.readField(typeof l=="string"?{fieldName:l,from:u||Xf(t)}:l,{store:r})}};if(Object.keys(o).forEach(function(l){var u=hl(l),d=o[l];if(d!==void 0){var f=typeof n=="function"?n:n[l]||n[u];if(f){var h=f===WS?g1:f(lg(d),K(K({},c),{fieldName:u,storeFieldName:l,storage:r.getStorage(t,l)}));if(h===ER)r.group.dirty(t,l);else if(h===g1&&(h=void 0),h!==d&&(a[l]=h,i=!0,d=h,globalThis.__DEV__!==!1)){var m=function(C){if(r.lookup(C.__ref)===void 0)return globalThis.__DEV__!==!1&&Pe.warn(2,C),!0};if(kt(h))m(h);else if(Array.isArray(h))for(var p=!1,b=void 0,v=0,g=h;v0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof gc?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(i){Kn.call(r,i)&&(Object.keys(t.findChildRefIds(i)).forEach(n.add,n),delete r[i])});var o=Object.keys(r);if(o.length){for(var a=this;a instanceof gc;)a=a.parent;o.forEach(function(i){return a.delete(i)})}return o},e.prototype.findChildRefIds=function(t){if(!Kn.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var o=new Set([r]);o.forEach(function(a){kt(a)&&(n[a.__ref]=!0),yn(a)&&Object.keys(a).forEach(function(i){var s=a[i];yn(s)&&o.add(s)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),WG=function(){function e(t,n){n===void 0&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?CG():null,this.keyMaker=new um(dm)},e.prototype.depend=function(t,n){if(this.d){this.d(GS(t,n));var r=hl(n);r!==n&&this.d(GS(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(GS(t,n),n==="__exists"?"forget":"setDirty")},e}();function GS(e,t){return t+"#"+e}function _R(e,t){v0(e)&&e.group.depend(t,"__exists")}(function(e){var t=function(n){or(r,n);function r(o){var a=o.policies,i=o.resultCaching,s=i===void 0?!0:i,c=o.seed,l=n.call(this,a,new WG(s))||this;return l.stump=new Oge(l),l.storageTrie=new um(dm),c&&l.replace(c),l}return r.prototype.addLayer=function(o,a){return this.stump.addLayer(o,a)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(e);e.Root=t})(ug||(ug={}));var gc=function(e){or(t,e);function t(n,r,o,a){var i=e.call(this,r.policies,a)||this;return i.id=n,i.parent=r,i.replay=o,i.group=a,o(i),i}return t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,o=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(a){var i=r.data[a],s=o.lookup(a);s?i?i!==s&&Object.keys(i).forEach(function(c){Rt(i[c],s[c])||r.group.dirty(a,c)}):(r.group.dirty(a,"__exists"),Object.keys(s).forEach(function(c){r.group.dirty(a,c)})):r.delete(a)}),o):o===this.parent?this:o.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return K(K({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return Kn.call(this.data,n)?K(K({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t}(ug),Oge=function(e){or(t,e);function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new WG(n.group.caching,n.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(n,r){return this.parent.merge(n,r)},t}(gc);function Rge(e,t,n){var r=e[n],o=t[n];return Rt(r,o)?r:o}function v0(e){return!!(e instanceof ug&&e.group.caching)}function Nge(e){return yn(e)?bn(e)?e.slice(0):K({__proto__:Object.getPrototypeOf(e)},e):e}var xR=function(){function e(){this.known=new(iG?WeakSet:Set),this.pool=new um(dm),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return yn(t)&&this.known.has(t)},e.prototype.pass=function(t){if(yn(t)){var n=Nge(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(yn(t)){var r=this.passes.get(t);if(r)return r;var o=Object.getPrototypeOf(t);switch(o){case Array.prototype:{if(this.known.has(t))return t;var a=t.map(this.admit,this),i=this.pool.lookupArray(a);return i.array||(this.known.add(i.array=a),globalThis.__DEV__!==!1&&Object.freeze(a)),i.array}case null:case Object.prototype:{if(this.known.has(t))return t;var s=Object.getPrototypeOf(t),c=[s],l=this.sortedKeys(t);c.push(l.json);var u=c.length;l.sorted.forEach(function(h){c.push(n.admit(t[h]))});var i=this.pool.lookupArray(c);if(!i.object){var d=i.object=Object.create(s);this.known.add(d),l.sorted.forEach(function(h,m){d[h]=c[u+m]}),globalThis.__DEV__!==!1&&Object.freeze(d)}return i.object}}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var o=JSON.stringify(n);(r.keys=this.keysByJSON.get(o))||this.keysByJSON.set(o,r.keys={sorted:n,json:o})}return r.keys},e}();function CR(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Bge=function(){function e(t){var n=this;this.knownResults=new(dm?WeakMap:Map),this.config=Qu(t,{addTypename:t.addTypename!==!1,canonizeResults:zG(t)}),this.canon=t.canon||new xR,this.executeSelectionSet=cg(function(r){var o,a=r.context.canonizeResults,i=CR(r);i[3]=!a;var s=(o=n.executeSelectionSet).peek.apply(o,i);return s?a?K(K({},s),{result:n.canon.admit(s.result)}):s:(_R(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||Fi["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:CR,makeCacheKey:function(r,o,a,i){if(v0(a.store))return a.store.makeCacheKey(r,kt(o)?o.__ref:o,a.varString,i)}}),this.executeSubSelectedArray=cg(function(r){return _R(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||Fi["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var o=r.field,a=r.array,i=r.context;if(v0(i.store))return i.store.makeCacheKey(o,a,i.varString)}})}return e.prototype.resetCanon=function(){this.canon=new xR},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,o=t.rootId,a=o===void 0?"ROOT_QUERY":o,i=t.variables,s=t.returnPartialData,c=s===void 0?!0:s,l=t.canonizeResults,u=l===void 0?this.config.canonizeResults:l,d=this.config.cache.policies;i=K(K({},Bj(fG(r))),i);var f=Xf(a),h=this.executeSelectionSet({selectionSet:cy(r).selectionSet,objectOrReference:f,enclosingRef:f,context:K({store:n,query:r,policies:d,variables:i,varString:Vc(i),canonizeResults:u},qG(r,this.config.fragments))}),m;if(h.missing&&(m=[new LG(Fge(h.missing),h.missing,r,i)],!c))throw m[0];return{result:h.result,complete:!m,missing:m}},e.prototype.isFresh=function(t,n,r,o){if(v0(o.store)&&this.knownResults.get(t)===r){var a=this.executeSelectionSet.peek(r,n,o,this.canon.isKnown(t));if(a&&t===a.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,o=t.objectOrReference,a=t.enclosingRef,i=t.context;if(kt(o)&&!i.policies.rootTypenamesById[o.__ref]&&!i.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var s=i.variables,c=i.policies,l=i.store,u=l.getFieldValue(o,"__typename"),d=[],f,h=new fl;this.config.addTypename&&typeof u=="string"&&!c.rootIdsByTypename[u]&&d.push({__typename:u});function m(w,_){var C;return w.missing&&(f=h.merge(f,(C={},C[_]=w.missing,C))),w.result}var p=new Set(r.selections);p.forEach(function(w){var _,C;if(ay(w,s))if(ul(w)){var x=c.readField({fieldName:w.name.value,field:w,variables:i.variables,from:o},i),E=ll(w);x===void 0?$j.added(w)||(f=h.merge(f,(_={},_[E]="Can't find field '".concat(w.name.value,"' on ").concat(kt(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),_))):bn(x)?x.length>0&&(x=m(n.executeSubSelectedArray({field:w,array:x,enclosingRef:a,context:i}),E)):w.selectionSet?x!=null&&(x=m(n.executeSelectionSet({selectionSet:w.selectionSet,objectOrReference:x,enclosingRef:kt(x)?x:a,context:i}),E)):i.canonizeResults&&(x=n.canon.pass(x)),x!==void 0&&d.push((C={},C[E]=x,C))}else{var T=Ox(w,i.lookupFragment);if(!T&&w.kind===Ce.FRAGMENT_SPREAD)throw ro(9,w.name.value);T&&c.fragmentMatches(T,u)&&T.selectionSet.selections.forEach(p.add,p)}});var b=Lx(d),v={result:b,missing:f},g=i.canonizeResults?this.canon.admit(v):lg(v);return g.result&&this.knownResults.set(g.result,r),g},e.prototype.execSubSelectedArrayImpl=function(t){var n=this,r=t.field,o=t.array,a=t.enclosingRef,i=t.context,s,c=new fl;function l(u,d){var f;return u.missing&&(s=c.merge(s,(f={},f[d]=u.missing,f))),u.result}return r.selectionSet&&(o=o.filter(i.store.canRead)),o=o.map(function(u,d){return u===null?null:bn(u)?l(n.executeSubSelectedArray({field:r,array:u,enclosingRef:a,context:i}),d):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:u,enclosingRef:kt(u)?u:a,context:i}),d):(globalThis.__DEV__!==!1&&Mge(i.store,r,u),u)}),{result:i.canonizeResults?this.canon.admit(o):o,missing:s}},e}();function Fge(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function Mge(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(o){yn(o)&&(Pe(!kt(o),10,Pge(e,o),t.name.value),Object.values(o).forEach(r.add,r))})}}var Vj=new hG,SR=new WeakMap;function w0(e){var t=SR.get(e);return t||SR.set(e,t={vars:new Set,dep:CG()}),t}function TR(e){w0(e).vars.forEach(function(t){return t.forgetCache(e)})}function Lge(e){w0(e).vars.forEach(function(t){return t.attachCache(e)})}function Uge(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(c){w0(c).dep.dirty(r),$ge(c)});var i=Array.from(n);n.clear(),i.forEach(function(c){return c(e)})}}else{var s=Vj.getValue();s&&(o(s),w0(s).dep(r))}return e};r.onNextChange=function(a){return n.add(a),function(){n.delete(a)}};var o=r.attachCache=function(a){return t.add(a),w0(a).vars.add(r),r};return r.forgetCache=function(a){return t.delete(a)},r}function $ge(e){e.broadcastWatches&&e.broadcastWatches()}var AR=Object.create(null);function Kj(e){var t=JSON.stringify(e);return AR[t]||(AR[t]=Object.create(null))}function DR(e){var t=Kj(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var o=function(i,s){return r.readField(s,i)},a=r.keyObject=Yj(e,function(i){var s=Zf(r.storeObject,i,o);return s===void 0&&n!==r.storeObject&&Kn.call(n,i[0])&&(s=Zf(n,i,VG)),Pe(s!==void 0,4,i.join("."),n),s});return"".concat(r.typename,":").concat(JSON.stringify(a))})}function kR(e){var t=Kj(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var o=r.field,a=r.variables,i=r.fieldName,s=Yj(e,function(l){var u=l[0],d=u.charAt(0);if(d==="@"){if(o&&xa(o.directives)){var f=u.slice(1),h=o.directives.find(function(v){return v.name.value===f}),m=h&&Rx(h,a);return m&&Zf(m,l.slice(1))}return}if(d==="$"){var p=u.slice(1);if(a&&Kn.call(a,p)){var b=l.slice(0);return b[0]=p,Zf(a,b)}return}if(n)return Zf(n,l)}),c=JSON.stringify(s);return(n||c!=="{}")&&(i+=":"+c),i})}function Yj(e,t){var n=new fl;return GG(e).reduce(function(r,o){var a,i=t(o);if(i!==void 0){for(var s=o.length-1;s>=0;--s)i=(a={},a[o[s]]=i,a);r=n.merge(r,i)}return r},Object.create(null))}function GG(e){var t=Kj(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(o,a){bn(o)?(GG(o).forEach(function(i){return n.push(r.concat(i))}),r.length=0):(r.push(o),bn(e[a+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function VG(e,t){return e[t]}function Zf(e,t,n){return n=n||VG,KG(t.reduce(function r(o,a){return bn(o)?o.map(function(i){return r(i,a)}):o&&n(o,a)},e))}function KG(e){return yn(e)?bn(e)?e.map(KG):Yj(Object.keys(e).sort(),function(t){return Zf(e,t)}):e}function W5(e){return e.args!==void 0?e.args:e.field?Rx(e.field,e.variables):null}var zge=function(){},jR=function(e,t){return t.fieldName},PR=function(e,t,n){var r=n.mergeObjects;return r(e,t)},IR=function(e,t){return t},Hge=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=K({dataIdFromObject:UG},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,o=this,a=n&&(n.typename||((r=n.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i=n&&n.storeObject||t,s=K(K({},n),{typename:a,storeObject:i,readField:n&&n.readField||function(){var f=Qj(arguments,i);return o.readField(f,{store:o.cache.data,variables:f.variables})}}),c,l=a&&this.getTypePolicy(a),u=l&&l.keyFn||this.config.dataIdFromObject;u;){var d=u(K(K({},t),i),s);if(bn(d))u=DR(d);else{c=d;break}}return c=c?String(c):void 0,s.keyObject?[c,s.keyObject]:[c]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var o=t[r],a=o.queryType,i=o.mutationType,s=o.subscriptionType,c=Zr(o,["queryType","mutationType","subscriptionType"]);a&&n.setRootTypename("Query",r),i&&n.setRootTypename("Mutation",r),s&&n.setRootTypename("Subscription",r),Kn.call(n.toBeAdded,r)?n.toBeAdded[r].push(c):n.toBeAdded[r]=[c]})},e.prototype.updateTypePolicy=function(t,n){var r=this,o=this.getTypePolicy(t),a=n.keyFields,i=n.fields;function s(c,l){c.merge=typeof l=="function"?l:l===!0?PR:l===!1?IR:c.merge}s(o,n.merge),o.keyFn=a===!1?zge:bn(a)?DR(a):typeof a=="function"?a:o.keyFn,i&&Object.keys(i).forEach(function(c){var l=r.getFieldPolicy(t,c,!0),u=i[c];if(typeof u=="function")l.read=u;else{var d=u.keyArgs,f=u.read,h=u.merge;l.keyFn=d===!1?jR:bn(d)?kR(d):typeof d=="function"?d:l.keyFn,typeof f=="function"&&(l.read=f),s(l,h)}l.read&&l.merge&&(l.keyFn=l.keyFn||jR)})},e.prototype.setRootTypename=function(t,n){n===void 0&&(n=t);var r="ROOT_"+t.toUpperCase(),o=this.rootTypenamesById[r];n!==o&&(Pe(!o||o===t,5,t),o&&delete this.rootIdsByTypename[o],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(o){n.getSupertypeSet(o,!0).add(r);var a=o.match(HG);(!a||a[0]!==o)&&n.fuzzySubtypes.set(o,new RegExp(o))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!Kn.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var o=this.supertypeMap.get(t);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(i,s){if(i.test(t)){var c=n.supertypeMap.get(s);c&&c.forEach(function(l){return o.add(l)})}})),o&&o.size&&o.forEach(function(i){var s=n.getTypePolicy(i),c=s.fields,l=Zr(s,["fields"]);Object.assign(r,l),Object.assign(r.fields,c)})}var a=this.toBeAdded[t];return a&&a.length&&a.splice(0).forEach(function(i){n.updateTypePolicy(t,i)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var o=this.getTypePolicy(t).fields;return o[n]||r&&(o[n]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,o){var a=this;if(!t.typeCondition)return!0;if(!n)return!1;var i=t.typeCondition.name.value;if(n===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i))for(var s=this.getSupertypeSet(n,!0),c=[s],l=function(m){var p=a.getSupertypeSet(m,!1);p&&p.size&&c.indexOf(p)<0&&c.push(p)},u=!!(r&&this.fuzzySubtypes.size),d=!1,f=0;f1?o:t}:(i=K({},r),Kn.call(i,"from")||(i.from=t)),globalThis.__DEV__!==!1&&i.from===void 0&&globalThis.__DEV__!==!1&&Pe.warn(7,GW(Array.from(e))),i.variables===void 0&&(i.variables=n),i}function YG(e){return function(n,r){if(bn(n)||bn(r))throw ro(8);if(yn(n)&&yn(r)){var o=e.getFieldValue(n,"__typename"),a=e.getFieldValue(r,"__typename"),i=o&&a&&o!==a;if(i)return r;if(kt(n)&&Rf(r))return e.merge(n.__ref,r),n;if(Rf(n)&&kt(r))return e.merge(n,r.__ref),r;if(Rf(n)&&Rf(r))return K(K({},n),r)}return r}}function VS(e,t,n){var r="".concat(t).concat(n),o=e.flavors.get(r);return o||e.flavors.set(r,o=e.clientOnly===t&&e.deferred===n?e:K(K({},e),{clientOnly:t,deferred:n})),o}var qge=function(){function e(t,n,r){this.cache=t,this.reader=n,this.fragments=r}return e.prototype.writeToStore=function(t,n){var r=this,o=n.query,a=n.result,i=n.dataId,s=n.variables,c=n.overwrite,l=sy(o),u=Ige();s=K(K({},Bj(l)),s);var d=K(K({store:t,written:Object.create(null),merge:function(h,m){return u.merge(h,m)},variables:s,varString:Vc(s)},qG(o,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:a||Object.create(null),dataId:i,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:d});if(!kt(f))throw ro(11,a);return d.incomingById.forEach(function(h,m){var p=h.storeObject,b=h.mergeTree,v=h.fieldNodeSet,g=Xf(m);if(b&&b.map.size){var w=r.applyMerges(b,g,p,d);if(kt(w))return;p=w}if(globalThis.__DEV__!==!1&&!d.overwrite){var _=Object.create(null);v.forEach(function(E){E.selectionSet&&(_[E.name.value]=!0)});var C=function(E){return _[hl(E)]===!0},x=function(E){var T=b&&b.map.get(E);return!!(T&&T.info&&T.info.merge)};Object.keys(p).forEach(function(E){C(E)&&!x(E)&&Wge(g,p,E,d.store)})}t.merge(m,p)}),t.retain(f.__ref),f},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,o=t.result,a=t.selectionSet,i=t.context,s=t.mergeTree,c=this.cache.policies,l=Object.create(null),u=r&&c.rootTypenamesById[r]||R5(o,a,i.fragmentMap)||r&&i.store.get(r,"__typename");typeof u=="string"&&(l.__typename=u);var d=function(){var w=Qj(arguments,l,i.variables);if(kt(w.from)){var _=i.incomingById.get(w.from.__ref);if(_){var C=c.readField(K(K({},w),{from:_.storeObject}),i);if(C!==void 0)return C}}return c.readField(w,i)},f=new Set;this.flattenFields(a,o,i,u).forEach(function(w,_){var C,x=ll(_),E=o[x];if(f.add(_),E!==void 0){var T=c.getStoreFieldName({typename:u,fieldName:_.name.value,field:_,variables:w.variables}),k=RR(s,T),D=n.processFieldValue(E,_,_.selectionSet?VS(w,!1,!1):w,k),R=void 0;_.selectionSet&&(kt(D)||Rf(D))&&(R=d("__typename",D));var F=c.getMergeFunction(u,_.name.value,R);F?k.info={field:_,typename:u,merge:F}:NR(s,T),l=w.merge(l,(C={},C[T]=D,C))}else globalThis.__DEV__!==!1&&!w.clientOnly&&!w.deferred&&!$j.added(_)&&!c.getReadFunction(u,_.name.value)&&globalThis.__DEV__!==!1&&Pe.error(12,ll(_),o)});try{var h=c.identify(o,{typename:u,selectionSet:a,fragmentMap:i.fragmentMap,storeObject:l,readField:d}),m=h[0],p=h[1];r=r||m,p&&(l=i.merge(l,p))}catch(w){if(!r)throw w}if(typeof r=="string"){var b=Xf(r),v=i.written[r]||(i.written[r]=[]);if(v.indexOf(a)>=0||(v.push(a),this.reader&&this.reader.isFresh(o,b,a,i)))return b;var g=i.incomingById.get(r);return g?(g.storeObject=i.merge(g.storeObject,l),g.mergeTree=G5(g.mergeTree,s),f.forEach(function(w){return g.fieldNodeSet.add(w)})):i.incomingById.set(r,{storeObject:l,mergeTree:Iw(s)?void 0:s,fieldNodeSet:f}),b}return l},e.prototype.processFieldValue=function(t,n,r,o){var a=this;return!n.selectionSet||t===null?globalThis.__DEV__!==!1?IG(t):t:bn(t)?t.map(function(i,s){var c=a.processFieldValue(i,n,r,RR(o,s));return NR(o,s),c}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:o})},e.prototype.flattenFields=function(t,n,r,o){o===void 0&&(o=R5(n,t,r.fragmentMap));var a=new Map,i=this.cache.policies,s=new um(!1);return function c(l,u){var d=s.lookup(l,u.clientOnly,u.deferred);d.visited||(d.visited=!0,l.selections.forEach(function(f){if(ay(f,r.variables)){var h=u.clientOnly,m=u.deferred;if(!(h&&m)&&xa(f.directives)&&f.directives.forEach(function(v){var g=v.name.value;if(g==="client"&&(h=!0),g==="defer"){var w=Rx(v,r.variables);(!w||w.if!==!1)&&(m=!0)}}),ul(f)){var p=a.get(f);p&&(h=h&&p.clientOnly,m=m&&p.deferred),a.set(f,VS(r,h,m))}else{var b=Ox(f,r.lookupFragment);if(!b&&f.kind===Ce.FRAGMENT_SPREAD)throw ro(13,f.name.value);b&&i.fragmentMatches(b,o,n,r.variables)&&c(b.selectionSet,VS(r,h,m))}}}))}(t,r),a},e.prototype.applyMerges=function(t,n,r,o,a){var i,s=this;if(t.map.size&&!kt(r)){var c=!bn(r)&&(kt(n)||Rf(n))?n:void 0,l=r;c&&!a&&(a=[kt(c)?c.__ref:c]);var u,d=function(f,h){return bn(f)?typeof h=="number"?f[h]:void 0:o.store.getFieldValue(f,String(h))};t.map.forEach(function(f,h){var m=d(c,h),p=d(l,h);if(p!==void 0){a&&a.push(h);var b=s.applyMerges(f,m,p,o,a);b!==p&&(u=u||new Map,u.set(h,b)),a&&Pe(a.pop()===h)}}),u&&(r=bn(l)?l.slice(0):K({},l),u.forEach(function(f,h){r[h]=f}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,o,a&&(i=o.store).getStorage.apply(i,a)):r},e}(),QG=[];function RR(e,t){var n=e.map;return n.has(t)||n.set(t,QG.pop()||{map:new Map}),n.get(t)}function G5(e,t){if(e===t||!t||Iw(t))return e;if(!e||Iw(e))return t;var n=e.info&&t.info?K(K({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,o=r?new Map:e.map.size?e.map:t.map,a={info:n,map:o};if(r){var i=new Set(t.map.keys());e.map.forEach(function(s,c){a.map.set(c,G5(s,t.map.get(c))),i.delete(c)}),i.forEach(function(s){a.map.set(s,G5(t.map.get(s),e.map.get(s)))})}return a}function Iw(e){return!e||!(e.info||e.map.size)}function NR(e,t){var n=e.map,r=n.get(t);r&&Iw(r)&&(QG.push(r),n.delete(t))}var BR=new Set;function Wge(e,t,n,r){var o=function(d){var f=r.getFieldValue(d,n);return typeof f=="object"&&f},a=o(e);if(a){var i=o(t);if(i&&!kt(a)&&!Rt(a,i)&&!Object.keys(a).every(function(d){return r.getFieldValue(i,d)!==void 0})){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=hl(n),l="".concat(s,".").concat(c);if(!BR.has(l)){BR.add(l);var u=[];!bn(a)&&!bn(i)&&[a,i].forEach(function(d){var f=r.getFieldValue(d,"__typename");typeof f=="string"&&!u.includes(f)&&u.push(f)}),globalThis.__DEV__!==!1&&Pe.warn(14,c,s,u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"",l,K({},a),K({},i))}}}}var XG=function(e){or(t,e);function t(n){n===void 0&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new SG($j),r.assumeImmutableResults=!0,r.makeVar=Uge,r.txCount=0,r.config=jge(n),r.addTypename=!!r.config.addTypename,r.policies=new Hge({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var n=this.data=new ug.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,o=this.storeReader,a=this.config.fragments;this.storeWriter=new qge(this,this.storeReader=new Bge({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:zG(this.config),canon:n?void 0:o&&o.canon,fragments:a}),a),this.maybeBroadcastWatch=cg(function(i,s){return r.broadcastWatch(i,s)},{max:this.config.resultCacheMaxSize||Fi["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(i){var s=i.optimistic?r.optimisticData:r.data;if(v0(s)){var c=i.optimistic,l=i.id,u=i.variables;return s.makeCacheKey(i.query,i.callback,Vc({optimistic:c,id:l,variables:u}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(i){return i.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,o=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(K(K({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:o})).result||null}catch(a){if(a instanceof LG)return null;throw a}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(n){if(Kn.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(K(K({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||Lge(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&TR(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){var r;Vc.reset(),Mx.reset(),this.addTypenameTransform.resetCache(),(r=this.config.fragments)===null||r===void 0||r.resetCaches();var o=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),o},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(kt(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){globalThis.__DEV__!==!1&&Pe.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(Kn.call(n,"id"))return!1;n=K(K({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),Vc.reset(),n&&n.discardWatches?(this.watches.forEach(function(o){return r.maybeBroadcastWatch.forget(o)}),this.watches.clear(),TR(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var r=this,o=n.update,a=n.optimistic,i=a===void 0?!0:a,s=n.removeOptimistic,c=n.onWatchUpdated,l,u=function(f){var h=r,m=h.data,p=h.optimisticData;++r.txCount,f&&(r.data=r.optimisticData=f);try{return l=o(r)}finally{--r.txCount,r.data=m,r.optimisticData=p}},d=new Set;return c&&!this.txCount&&this.broadcastWatches(K(K({},n),{onWatchUpdated:function(f){return d.add(f),!1}})),typeof i=="string"?this.optimisticData=this.optimisticData.addLayer(i,u):i===!1?u(this.data):u(),typeof s=="string"&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&d.size?(this.broadcastWatches(K(K({},n),{onWatchUpdated:function(f,h){var m=c.call(this,f,h);return m!==!1&&d.delete(f),m}})),d.size&&d.forEach(function(f){return r.maybeBroadcastWatch.dirty(f)})):this.broadcastWatches(n),l},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||r!==null})},t.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},t.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(o){return r.maybeBroadcastWatch(o,n)})},t.prototype.addFragmentsToDocument=function(n){var r=this.config.fragments;return r?r.transform(n):n},t.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},t.prototype.broadcastWatch=function(n,r){var o=n.lastDiff,a=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(a.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,a,o)===!1)||(!o||!Rt(o.result,a.result))&&n.callback(n.lastDiff=a,o)},t}(MG);globalThis.__DEV__!==!1&&(XG.prototype.getMemoryInternals=Hpe);var dt;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(dt||(dt={}));function dg(e){return e?e<7:!1}var FR=Object.assign,Gge=Object.hasOwnProperty,V5=function(e){or(t,e);function t(n){var r=n.queryManager,o=n.queryInfo,a=n.options,i=e.call(this,function(b){try{var v=b._subscription._observer;v&&!v.error&&(v.error=Vge)}catch{}var g=!i.observers.size;i.observers.add(b);var w=i.last;return w&&w.error?b.error&&b.error(w.error):w&&w.result&&b.next&&b.next(w.result),g&&i.reobserve().catch(function(){}),function(){i.observers.delete(b)&&!i.observers.size&&i.tearDownQuery()}})||this;i.observers=new Set,i.subscriptions=new Set,i.queryInfo=o,i.queryManager=r,i.waitForOwnResult=KS(a.fetchPolicy),i.isTornDown=!1,i.subscribeToMore=i.subscribeToMore.bind(i);var s=r.defaultOptions.watchQuery,c=s===void 0?{}:s,l=c.fetchPolicy,u=l===void 0?"cache-first":l,d=a.fetchPolicy,f=d===void 0?u:d,h=a.initialFetchPolicy,m=h===void 0?f==="standby"?u:f:h;i.options=K(K({},a),{initialFetchPolicy:m,fetchPolicy:f}),i.queryId=o.queryId||r.generateQueryId();var p=sy(i.query);return i.queryName=p&&p.name&&p.name.value,i}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var n=this;return new Promise(function(r,o){var a={next:function(s){r(s),n.observers.delete(a),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){i.unsubscribe()},0)},error:o},i=n.subscribe(a)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(n){n===void 0&&(n=!0);var r=this.getLastResult(!0),o=this.queryInfo.networkStatus||r&&r.networkStatus||dt.ready,a=K(K({},r),{loading:dg(o),networkStatus:o}),i=this.options.fetchPolicy,s=i===void 0?"cache-first":i;if(!(KS(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(a.data=c.result),Rt(a.data,{})&&(a.data=void 0),c.complete?(delete a.partial,c.complete&&a.networkStatus===dt.loading&&(s==="cache-first"||s==="cache-only")&&(a.networkStatus=dt.ready,a.loading=!1)):a.partial=!0,globalThis.__DEV__!==!1&&!c.complete&&!this.options.partialRefetch&&!a.loading&&!a.data&&!a.error&&ZG(c.missing)}return n&&this.updateLastResult(a),a},t.prototype.isDifferentFromLastResult=function(n,r){if(!this.last)return!0;var o=this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!FG(this.query,this.last.result,n,this.variables):!Rt(this.last.result,n);return o||r&&!Rt(this.last.variables,r)},t.prototype.getLast=function(n,r){var o=this.last;if(o&&o[n]&&(!r||Rt(o.variables,this.variables)))return o[n]},t.prototype.getLastResult=function(n){return this.getLast("result",n)},t.prototype.getLastError=function(n){return this.getLast("error",n)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(n){var r,o={pollInterval:0},a=this.options.fetchPolicy;if(a==="cache-and-network"?o.fetchPolicy=a:a==="no-cache"?o.fetchPolicy="no-cache":o.fetchPolicy="network-only",globalThis.__DEV__!==!1&&n&&Gge.call(n,"variables")){var i=fG(this.query),s=i.variableDefinitions;(!s||!s.some(function(c){return c.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&Pe.warn(20,n,((r=i.name)===null||r===void 0?void 0:r.value)||i)}return n&&!Rt(this.options.variables,n)&&(o.variables=this.options.variables=K(K({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(o,dt.refetch)},t.prototype.fetchMore=function(n){var r=this,o=K(K({},n.query?n:K(K(K(K({},this.options),{query:this.options.query}),n),{variables:K(K({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"});o.query=this.transformDocument(o.query);var a=this.queryManager.generateQueryId();this.lastQuery=n.query?this.transformDocument(this.options.query):o.query;var i=this.queryInfo,s=i.networkStatus;i.networkStatus=dt.fetchMore,o.notifyOnNetworkStatusChange&&this.observe();var c=new Set;return this.queryManager.fetchQuery(a,o,dt.fetchMore).then(function(l){return r.queryManager.removeQuery(a),i.networkStatus===dt.fetchMore&&(i.networkStatus=s),r.queryManager.cache.batch({update:function(u){var d=n.updateQuery;d?u.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(f){return d(f,{fetchMoreResult:l.data,variables:o.variables})}):u.writeQuery({query:o.query,variables:o.variables,data:l.data})},onWatchUpdated:function(u){c.add(u.query)}}),l}).finally(function(){c.has(r.query)||JG(r)})},t.prototype.subscribeToMore=function(n){var r=this,o=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(a){var i=n.updateQuery;i&&r.updateQuery(function(s,c){var l=c.variables;return i(s,{subscriptionData:a,variables:l})})},error:function(a){if(n.onError){n.onError(a);return}globalThis.__DEV__!==!1&&Pe.error(21,a)}});return this.subscriptions.add(o),function(){r.subscriptions.delete(o)&&o.unsubscribe()}},t.prototype.setOptions=function(n){return this.reobserve(n)},t.prototype.silentSetOptions=function(n){var r=Qu(this.options,n||{});FR(this.options,r)},t.prototype.setVariables=function(n){return Rt(this.variables,n)?this.observers.size?this.result():Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},dt.setVariables):Promise.resolve())},t.prototype.updateQuery=function(n){var r=this.queryManager,o=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,a=n(o,{variables:this.variables});a&&(r.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(n,r){if(r.nextFetchPolicy){var o=r.fetchPolicy,a=o===void 0?"cache-first":o,i=r.initialFetchPolicy,s=i===void 0?a:i;a==="standby"||(typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(a,{reason:n,options:r,observable:this,initialFetchPolicy:s}):n==="variables-changed"?r.fetchPolicy=s:r.fetchPolicy=r.nextFetchPolicy)}return r.fetchPolicy},t.prototype.fetch=function(n,r,o){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,n,r,o)},t.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var r=this,o=r.pollingInfo,a=r.options.pollInterval;if(!a||!this.hasObservers()){o&&(clearTimeout(o.timeout),delete this.pollingInfo);return}if(!(o&&o.interval===a)){Pe(a,22);var i=o||(this.pollingInfo={});i.interval=a;var s=function(){var l,u;n.pollingInfo&&(!dg(n.queryInfo.networkStatus)&&!(!((u=(l=n.options).skipPollAttempt)===null||u===void 0)&&u.call(l))?n.reobserve({fetchPolicy:n.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},dt.poll).then(c,c):c())},c=function(){var l=n.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(s,l.interval))};c()}}},t.prototype.updateLastResult=function(n,r){r===void 0&&(r=this.variables);var o=this.getLastError();return o&&this.last&&!Rt(r,this.last.variables)&&(o=void 0),this.last=K({result:this.queryManager.assumeImmutableResults?n:IG(n),variables:r},o?{error:o}:null)},t.prototype.reobserveAsConcast=function(n,r){var o=this;this.isTornDown=!1;var a=r===dt.refetch||r===dt.fetchMore||r===dt.poll,i=this.options.variables,s=this.options.fetchPolicy,c=Qu(this.options,n||{}),l=a?c:FR(this.options,c),u=this.transformDocument(l.query);this.lastQuery=u,a||(this.updatePolling(),n&&n.variables&&!Rt(n.variables,i)&&l.fetchPolicy!=="standby"&&(l.fetchPolicy===s||typeof l.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",l),r===void 0&&(r=dt.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=KS(l.fetchPolicy));var d=function(){o.concast===m&&(o.waitForOwnResult=!1)},f=l.variables&&K({},l.variables),h=this.fetch(l,r,u),m=h.concast,p=h.fromLink,b={next:function(v){Rt(o.variables,f)&&(d(),o.reportResult(v,f))},error:function(v){Rt(o.variables,f)&&(d(),o.reportError(v,f))}};return!a&&(p||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=m,this.observer=b),m.addObserver(b),m},t.prototype.reobserve=function(n,r){return this.reobserveAsConcast(n,r).promise},t.prototype.resubscribeAfterError=function(){for(var n=[],r=0;r0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(n){return this.queryManager.transform(n)},t}(Gt);OG(V5);function JG(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(o,a){return this.nextFetchPolicy=r,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(o,a):n}}):e.reobserve()}function Vge(e){globalThis.__DEV__!==!1&&Pe.error(23,e.message,e.stack)}function ZG(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&Pe.debug(24,e)}function KS(e){return e==="network-only"||e==="no-cache"||e==="standby"}var Nf=new(dm?WeakMap:Map);function YS(e,t){var n=e[t];typeof n=="function"&&(e[t]=function(){return Nf.set(e,(Nf.get(e)+1)%1e15),n.apply(this,arguments)})}function MR(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var QS=function(){function e(t,n){n===void 0&&(n=t.generateQueryId()),this.queryId=n,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=t.cache;Nf.has(r)||(Nf.set(r,0),YS(r,"evict"),YS(r,"modify"),YS(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||dt.loading;return this.variables&&this.networkStatus!==dt.loading&&!Rt(this.variables,t.variables)&&(n=dt.setVariables),Rt(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){MR(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&Rt(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy==="no-cache")return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var n=this,r,o=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&(!((r=this.observableQuery)===null||r===void 0)&&r.getLastError())||(this.updateLastDiff(t),!this.dirty&&!Rt(o&&o.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0))))},e.prototype.setObservableQuery=function(t){var n=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){var r=n.getDiff();r.fromOptimisticTransaction?t.observe():JG(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;MR(this),this.shouldNotify()&&this.listeners.forEach(function(n){return n(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(dg(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if(t!=="cache-only"&&t!=="cache-and-network")return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(t){var n=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var o=K(K({},this.getDiffOptions(t)),{watcher:this,callback:function(a){return n.setDiff(a)}});(!this.lastWatch||!Rt(o,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=o))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===Nf.get(this.cache)&&Rt(n,r.variables)&&Rt(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,o){var a=this,i=new fl,s=xa(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&xa(t.incremental)){var c=RG(this.getDiff().result,t);t.data=c}else if("hasNext"in t&&t.hasNext){var l=this.getDiff();t.data=i.merge(l.result,t.data)}this.graphQLErrors=s,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):o!==0&&(K5(t,r.errorPolicy)?this.cache.performTransaction(function(u){if(a.shouldWrite(t,r.variables))u.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:o===1}),a.lastWrite={result:t,variables:r.variables,dmCount:Nf.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){t.data=a.lastDiff.diff.result;return}var d=a.getDiffOptions(r.variables),f=u.diff(d);!a.stopped&&Rt(a.variables,r.variables)&&a.updateWatch(r.variables),a.updateLastDiff(f,d),f.complete&&(t.data=f.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=dt.ready},e.prototype.markError=function(t){return this.networkStatus=dt.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function K5(e,t){t===void 0&&(t="none");var n=t==="ignore"||t==="all",r=!h1(e);return!r&&n&&e.data&&(r=!0),r}var Kge=Object.prototype.hasOwnProperty,LR=Object.create(null),Yge=function(){function e(t){var n=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Rj(Fi["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new um(!1);var r=new SG(function(a){return n.cache.transformDocument(a)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults;var o=t.documentTransform;this.documentTransform=o?r.concat(o).concat(r):r,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(ro(25))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return qa(this,arguments,void 0,function(n){var r,o,a,i,s,c,l,u=n.mutation,d=n.variables,f=n.optimisticResponse,h=n.updateQueries,m=n.refetchQueries,p=m===void 0?[]:m,b=n.awaitRefetchQueries,v=b===void 0?!1:b,g=n.update,w=n.onQueryUpdated,_=n.fetchPolicy,C=_===void 0?((c=this.defaultOptions.mutate)===null||c===void 0?void 0:c.fetchPolicy)||"network-only":_,x=n.errorPolicy,E=x===void 0?((l=this.defaultOptions.mutate)===null||l===void 0?void 0:l.errorPolicy)||"none":x,T=n.keepRootFields,k=n.context;return la(this,function(D){switch(D.label){case 0:return Pe(u,26),Pe(C==="network-only"||C==="no-cache",27),r=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),o=this.getDocumentInfo(u).hasClientExports,d=this.getVariables(u,d),o?[4,this.localState.addExportedVariables(u,d,k)]:[3,2];case 1:d=D.sent(),D.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[r]={mutation:u,variables:d,loading:!0,error:null}),i=f&&this.markMutationOptimistic(f,{mutationId:r,document:u,variables:d,fetchPolicy:C,errorPolicy:E,context:k,updateQueries:h,update:g,keepRootFields:T}),this.broadcastQueries(),s=this,[2,new Promise(function(R,F){return HS(s.getObservableFromLink(u,K(K({},k),{optimisticResponse:i?f:void 0}),d,{},!1),function(B){if(h1(B)&&E==="none")throw new _c({graphQLErrors:L5(B)});a&&(a.loading=!1,a.error=null);var j=K({},B);return typeof p=="function"&&(p=p(j)),E==="ignore"&&h1(j)&&delete j.errors,s.markMutationResult({mutationId:r,result:j,document:u,variables:d,fetchPolicy:C,errorPolicy:E,context:k,update:g,updateQueries:h,awaitRefetchQueries:v,refetchQueries:p,removeOptimistic:i?r:void 0,onQueryUpdated:w,keepRootFields:T})}).subscribe({next:function(B){s.broadcastQueries(),(!("hasNext"in B)||B.hasNext===!1)&&R(B)},error:function(B){a&&(a.loading=!1,a.error=B),i&&s.cache.removeOptimistic(r),s.broadcastQueries(),F(B instanceof _c?B:new _c({networkError:B}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;n===void 0&&(n=this.cache);var o=t.result,a=[],i=t.fetchPolicy==="no-cache";if(!i&&K5(o,t.errorPolicy)){if(Jf(o)||a.push({result:o.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),Jf(o)&&xa(o.incremental)){var s=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),c=void 0;s.result&&(c=RG(s.result,o)),typeof c<"u"&&(o.data=c,a.push({result:c,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var l=t.updateQueries;l&&this.queries.forEach(function(d,f){var h=d.observableQuery,m=h&&h.queryName;if(!(!m||!Kge.call(l,m))){var p=l[m],b=r.queries.get(f),v=b.document,g=b.variables,w=n.diff({query:v,variables:g,returnPartialData:!0,optimistic:!1}),_=w.result,C=w.complete;if(C&&_){var x=p(_,{mutationResult:o,queryName:v&&N5(v)||void 0,queryVariables:g});x&&a.push({result:x,dataId:"ROOT_QUERY",query:v,variables:g})}}})}if(a.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(d){i||a.forEach(function(p){return d.write(p)});var f=t.update,h=!q0e(o)||Jf(o)&&!o.hasNext;if(f){if(!i){var m=d.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});m.complete&&(o=K(K({},o),{data:m.result}),"incremental"in o&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}h&&f(d,o,{context:t.context,variables:t.variables})}!i&&!t.keepRootFields&&h&&d.modify({id:"ROOT_MUTATION",fields:function(p,b){var v=b.fieldName,g=b.DELETE;return v==="__typename"?p:g}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(d){return u.push(d)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(u).then(function(){return o})}return Promise.resolve(o)},e.prototype.markMutationOptimistic=function(t,n){var r=this,o=typeof t=="function"?t(n.variables,{IGNORE:LR}):t;return o===LR?!1:(this.cache.recordOptimisticTransaction(function(a){try{r.markMutationResult(K(K({},n),{result:{data:o}}),a)}catch(i){globalThis.__DEV__!==!1&&Pe.error(i)}},n.mutationId),!0)},e.prototype.fetchQuery=function(t,n,r){return this.fetchConcastWithInfo(t,n,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var r={hasClientExports:xpe(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:ig(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:AG([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:Bj(sy(t)),asQuery:K(K({},t),{definitions:t.definitions.map(function(o){return o.kind==="OperationDefinition"&&o.operation!=="query"?K(K({},o),{operation:"query"}):o})})};n.set(t,r)}return n.get(t)},e.prototype.getVariables=function(t,n){return K(K({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);t=K(K({},t),{variables:this.getVariables(n,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new QS(this),o=new V5({queryManager:this,queryInfo:r,options:t});return o.lastQuery=n,this.queries.set(o.queryId,r),r.init({document:n,observableQuery:o,variables:o.variables}),o},e.prototype.query=function(t,n){var r=this;return n===void 0&&(n=this.generateQueryId()),Pe(t.query,28),Pe(t.query.kind==="Document",29),Pe(!t.returnPartialData,30),Pe(!t.pollInterval,31),this.fetchQuery(n,K(K({},t),{query:this.transform(t.query)})).finally(function(){return r.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(ro(32)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=dt.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;t===void 0&&(t="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(t)&&t.forEach(function(i){typeof i=="string"?o.set(i,!1):Xpe(i)?o.set(n.transform(i),!1):yn(i)&&i.query&&a.add(i)}),this.queries.forEach(function(i,s){var c=i.observableQuery,l=i.document;if(c){if(t==="all"){r.set(s,c);return}var u=c.queryName,d=c.options.fetchPolicy;if(d==="standby"||t==="active"&&!c.hasObservers())return;(t==="active"||u&&o.has(u)||l&&o.has(l))&&(r.set(s,c),u&&o.set(u,!0),l&&o.set(l,!0))}}),a.size&&a.forEach(function(i){var s=T5("legacyOneTimeQuery"),c=n.getQuery(s).init({document:i.query,variables:i.variables}),l=new V5({queryManager:n,queryInfo:c,options:K(K({},i),{fetchPolicy:"network-only"})});Pe(l.queryId===s),c.setObservableQuery(l),r.set(s,l)}),globalThis.__DEV__!==!1&&o.size&&o.forEach(function(i,s){i||globalThis.__DEV__!==!1&&Pe.warn(typeof s=="string"?33:34,s)}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(o,a){var i=o.options.fetchPolicy;o.resetLastResults(),(t||i!=="standby"&&i!=="cache-only")&&r.push(o.refetch()),n.getQuery(a).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,o=t.fetchPolicy,a=t.errorPolicy,i=a===void 0?"none":a,s=t.variables,c=t.context,l=c===void 0?{}:c,u=t.extensions,d=u===void 0?{}:u;r=this.transform(r),s=this.getVariables(r,s);var f=function(m){return n.getObservableFromLink(r,l,m,d).map(function(p){o!=="no-cache"&&(K5(p,i)&&n.cache.write({query:r,result:p.data,dataId:"ROOT_SUBSCRIPTION",variables:m}),n.broadcastQueries());var b=h1(p),v=ige(p);if(b||v){var g={};if(b&&(g.graphQLErrors=p.errors),v&&(g.protocolErrors=p.extensions[Gj]),i==="none"||v)throw new _c(g)}return i==="ignore"&&delete p.errors,p})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,s,l).then(f);return new Gt(function(m){var p=null;return h.then(function(b){return p=b.subscribe(m)},m.error),function(){return p&&p.unsubscribe()}})}return f(s)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,o,a){var i=this,s;a===void 0&&(a=(s=n==null?void 0:n.queryDeduplication)!==null&&s!==void 0?s:this.queryDeduplication);var c,l=this.getDocumentInfo(t),u=l.serverQuery,d=l.clientQuery;if(u){var f=this,h=f.inFlightLinkObservables,m=f.link,p={query:u,variables:r,operationName:N5(u)||void 0,context:this.prepareContext(K(K({},n),{forceFetch:!a})),extensions:o};if(n=p.context,a){var b=Mx(u),v=Vc(r),g=h.lookup(b,v);if(c=g.observable,!c){var w=new lf([U5(m,p)]);c=g.observable=w,w.beforeNext(function(){h.remove(b,v)})}}else c=new lf([U5(m,p)])}else c=new lf([Gt.of({data:{}})]),n=this.prepareContext(n);return d&&(c=HS(c,function(_){return i.localState.runResolvers({document:d,remoteResult:_,context:n,variables:r})})),c},e.prototype.getResultsFromLink=function(t,n,r){var o=t.lastRequestId=this.generateRequestId(),a=this.cache.transformForLink(r.query);return HS(this.getObservableFromLink(a,r.context,r.variables),function(i){var s=L5(i),c=s.length>0;if(o>=t.lastRequestId){if(c&&r.errorPolicy==="none")throw t.markError(new _c({graphQLErrors:s}));t.markResult(i,a,r,n),t.markReady()}var l={data:i.data,loading:!1,networkStatus:dt.ready};return c&&r.errorPolicy!=="ignore"&&(l.errors=s,l.networkStatus=dt.error),l},function(i){var s=sge(i)?i:new _c({networkError:i});throw o>=t.lastRequestId&&t.markError(s),s})},e.prototype.fetchConcastWithInfo=function(t,n,r,o){var a=this;r===void 0&&(r=dt.loading),o===void 0&&(o=n.query);var i=this.getVariables(o,n.variables),s=this.getQuery(t),c=this.defaultOptions.watchQuery,l=n.fetchPolicy,u=l===void 0?c&&c.fetchPolicy||"cache-first":l,d=n.errorPolicy,f=d===void 0?c&&c.errorPolicy||"none":d,h=n.returnPartialData,m=h===void 0?!1:h,p=n.notifyOnNetworkStatusChange,b=p===void 0?!1:p,v=n.context,g=v===void 0?{}:v,w=Object.assign({},n,{query:o,variables:i,fetchPolicy:u,errorPolicy:f,returnPartialData:m,notifyOnNetworkStatusChange:b,context:g}),_=function(k){w.variables=k;var D=a.fetchQueryByPolicy(s,w,r);return w.fetchPolicy!=="standby"&&D.sources.length>0&&s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",n),D},C=function(){return a.fetchCancelFns.delete(t)};this.fetchCancelFns.set(t,function(k){C(),setTimeout(function(){return x.cancel(k)})});var x,E;if(this.getDocumentInfo(w.query).hasClientExports)x=new lf(this.localState.addExportedVariables(w.query,w.variables,w.context).then(_).then(function(k){return k.sources})),E=!0;else{var T=_(w.variables);E=T.fromLink,x=new lf(T.sources)}return x.promise.then(C,C),{concast:x,fromLink:E}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,o=t.include,a=t.optimistic,i=a===void 0?!1:a,s=t.removeOptimistic,c=s===void 0?i?T5("refetchQueries"):void 0:s,l=t.onQueryUpdated,u=new Map;o&&this.getObservableQueries(o).forEach(function(f,h){u.set(h,{oq:f,lastDiff:n.getQuery(h).getDiff()})});var d=new Map;return r&&this.cache.batch({update:r,optimistic:i&&c||!1,removeOptimistic:c,onWatchUpdated:function(f,h,m){var p=f.watcher instanceof QS&&f.watcher.observableQuery;if(p){if(l){u.delete(p.queryId);var b=l(p,h,m);return b===!0&&(b=p.refetch()),b!==!1&&d.set(p,b),b}l!==null&&u.set(p.queryId,{oq:p,lastDiff:m,diff:h})}}}),u.size&&u.forEach(function(f,h){var m=f.oq,p=f.lastDiff,b=f.diff,v;if(l){if(!b){var g=m.queryInfo;g.reset(),b=g.getDiff()}v=l(m,b,p)}(!l||v===!0)&&(v=m.refetch()),v!==!1&&d.set(m,v),h.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(h)}),c&&this.cache.removeOptimistic(c),d},e.prototype.fetchQueryByPolicy=function(t,n,r){var o=this,a=n.query,i=n.variables,s=n.fetchPolicy,c=n.refetchWritePolicy,l=n.errorPolicy,u=n.returnPartialData,d=n.context,f=n.notifyOnNetworkStatusChange,h=t.networkStatus;t.init({document:a,variables:i,networkStatus:r});var m=function(){return t.getDiff()},p=function(_,C){C===void 0&&(C=t.networkStatus||dt.loading);var x=_.result;globalThis.__DEV__!==!1&&!u&&!Rt(x,{})&&ZG(_.missing);var E=function(T){return Gt.of(K({data:T,loading:dg(C),networkStatus:C},_.complete?null:{partial:!0}))};return x&&o.getDocumentInfo(a).hasForcedResolvers?o.localState.runResolvers({document:a,remoteResult:{data:x},context:d,variables:i,onlyRunForcedResolvers:!0}).then(function(T){return E(T.data||void 0)}):l==="none"&&C===dt.refetch&&Array.isArray(_.missing)?E(void 0):E(x)},b=s==="no-cache"?0:r===dt.refetch&&c!=="merge"?1:2,v=function(){return o.getResultsFromLink(t,b,{query:a,variables:i,context:d,fetchPolicy:s,errorPolicy:l})},g=f&&typeof h=="number"&&h!==r&&dg(r);switch(s){default:case"cache-first":{var w=m();return w.complete?{fromLink:!1,sources:[p(w,t.markReady())]}:u||g?{fromLink:!0,sources:[p(w),v()]}:{fromLink:!0,sources:[v()]}}case"cache-and-network":{var w=m();return w.complete||u||g?{fromLink:!0,sources:[p(w),v()]}:{fromLink:!0,sources:[v()]}}case"cache-only":return{fromLink:!1,sources:[p(m(),t.markReady())]};case"network-only":return g?{fromLink:!0,sources:[p(m()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return g?{fromLink:!0,sources:[p(t.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new QS(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var n=this.localState.prepareContext(t);return K(K(K({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},e}(),Qge=function(){function e(t){var n=t.cache,r=t.client,o=t.resolvers,a=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),o&&this.addResolvers(o),a&&this.setFragmentMatcher(a)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=iR(n.resolvers,r)}):this.resolvers=iR(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return qa(this,arguments,void 0,function(n){var r=n.document,o=n.remoteResult,a=n.context,i=n.variables,s=n.onlyRunForcedResolvers,c=s===void 0?!1:s;return la(this,function(l){return r?[2,this.resolveDocument(r,o.data,a,i,this.fragmentMatcher,c).then(function(u){return K(K({},o),{data:u.result})})]:[2,o]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return ig(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return DG(t)},e.prototype.prepareContext=function(t){var n=this.cache;return K(K({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t){return qa(this,arguments,void 0,function(n,r,o){return r===void 0&&(r={}),o===void 0&&(o={}),la(this,function(a){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,r)||{},this.prepareContext(o),r).then(function(i){return K(K({},r),i.exportedVariables)})]:[2,K({},r)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return Ts(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(n=r.arguments.some(function(o){return o.name.value==="always"&&o.value.kind==="BooleanValue"&&o.value.value===!0}),n))return Ij}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:k0e(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n){return qa(this,arguments,void 0,function(r,o,a,i,s,c){var l,u,d,f,h,m,p,b,v,g,w;return a===void 0&&(a={}),i===void 0&&(i={}),s===void 0&&(s=function(){return!0}),c===void 0&&(c=!1),la(this,function(_){return l=cy(r),u=Nx(r),d=Ix(u),f=this.collectSelectionsToResolve(l,d),h=l.operation,m=h?h.charAt(0).toUpperCase()+h.slice(1):"Query",p=this,b=p.cache,v=p.client,g={fragmentMap:d,context:K(K({},a),{cache:b,client:v}),variables:i,fragmentMatcher:s,defaultOperationType:m,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:c},w=!1,[2,this.resolveSelectionSet(l.selectionSet,w,o,g).then(function(C){return{result:C,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,o){return qa(this,void 0,void 0,function(){var a,i,s,c,l,u=this;return la(this,function(d){return a=o.fragmentMap,i=o.context,s=o.variables,c=[r],l=function(f){return qa(u,void 0,void 0,function(){var h,m;return la(this,function(p){return!n&&!o.selectionsToResolve.has(f)?[2]:ay(f,s)?ul(f)?[2,this.resolveField(f,n,r,o).then(function(b){var v;typeof b<"u"&&c.push((v={},v[ll(f)]=b,v))})]:(l0e(f)?h=f:(h=a[f.name.value],Pe(h,18,f.name.value)),h&&h.typeCondition&&(m=h.typeCondition.name.value,o.fragmentMatcher(r,m,i))?[2,this.resolveSelectionSet(h.selectionSet,n,r,o).then(function(b){c.push(b)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(l)).then(function(){return Lx(c)})]})})},e.prototype.resolveField=function(t,n,r,o){return qa(this,void 0,void 0,function(){var a,i,s,c,l,u,d,f,h,m=this;return la(this,function(p){return r?(a=o.variables,i=t.name.value,s=ll(t),c=i!==s,l=r[s]||r[i],u=Promise.resolve(l),(!o.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(d=r.__typename||o.defaultOperationType,f=this.resolvers&&this.resolvers[d],f&&(h=f[c?i:s],h&&(u=Promise.resolve(Vj.withValue(this.cache,h,[r,Rx(t,a),o.context,{field:t,fragmentMap:o.fragmentMap}]))))),[2,u.then(function(b){var v,g;if(b===void 0&&(b=l),t.directives&&t.directives.forEach(function(_){_.name.value==="export"&&_.arguments&&_.arguments.forEach(function(C){C.name.value==="as"&&C.value.kind==="StringValue"&&(o.exportedVariables[C.value.value]=b)})}),!t.selectionSet||b==null)return b;var w=(g=(v=t.directives)===null||v===void 0?void 0:v.some(function(_){return _.name.value==="client"}))!==null&&g!==void 0?g:!1;if(Array.isArray(b))return m.resolveSubSelectedArray(t,n||w,b,o);if(t.selectionSet)return m.resolveSelectionSet(t.selectionSet,n||w,b,o)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,o){var a=this;return Promise.all(r.map(function(i){if(i===null)return null;if(Array.isArray(i))return a.resolveSubSelectedArray(t,n,i,o);if(t.selectionSet)return a.resolveSelectionSet(t.selectionSet,n,i,o)}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(i){return!Array.isArray(i)},o=this.selectionsToResolveCache;function a(i){if(!o.has(i)){var s=new Set;o.set(i,s),Ts(i,{Directive:function(c,l,u,d,f){c.name.value==="client"&&f.forEach(function(h){r(h)&&QO(h)&&s.add(h)})},FragmentSpread:function(c,l,u,d,f){var h=n[c.name.value];Pe(h,19,c.name.value);var m=a(h);m.size>0&&(f.forEach(function(p){r(p)&&QO(p)&&s.add(p)}),s.add(c),m.forEach(function(p){s.add(p)}))}})}return o.get(i)}return a(t)},e}(),UR=!1,eV=function(){function e(t){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw ro(15);var r=t.uri,o=t.credentials,a=t.headers,i=t.cache,s=t.documentTransform,c=t.ssrMode,l=c===void 0?!1:c,u=t.ssrForceFetchDelay,d=u===void 0?0:u,f=t.connectToDevTools,h=t.queryDeduplication,m=h===void 0?!0:h,p=t.defaultOptions,b=t.defaultContext,v=t.assumeImmutableResults,g=v===void 0?i.assumeImmutableResults:v,w=t.resolvers,_=t.typeDefs,C=t.fragmentMatcher,x=t.name,E=t.version,T=t.devtools,k=t.link;k||(k=r?new Cge({uri:r,credentials:o,headers:a}):ly.empty()),this.link=k,this.cache=i,this.disableNetworkFetches=l||d>0,this.queryDeduplication=m,this.defaultOptions=p||Object.create(null),this.typeDefs=_,this.devtoolsConfig=K(K({},T),{enabled:(T==null?void 0:T.enabled)||f}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),d&&setTimeout(function(){return n.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Aj,this.localState=new Qge({cache:i,client:this,resolvers:w,fragmentMatcher:C}),this.queryManager=new Yge({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:b,documentTransform:s,queryDeduplication:m,ssrMode:l,clientAwareness:{name:x,version:E},localState:this.localState,assumeImmutableResults:g,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this,!UR&&globalThis.__DEV__!==!1&&(UR=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,o=r&&r.userAgent,a=void 0;typeof o=="string"&&(o.indexOf("Chrome/")>-1?a="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":o.indexOf("Firefox/")>-1&&(a="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),a&&globalThis.__DEV__!==!1&&Pe.log("Download the Apollo DevTools for a better development experience: %s",a)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=m1(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=K(K({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=m1(this.defaultOptions.query,t)),Pe(t.fetchPolicy!=="cache-and-network",16),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=K(K({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=m1(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!1),this.cache.readQuery(t,n)},e.prototype.watchFragment=function(t){return this.cache.watchFragment(t)},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return U5(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],o=[];n.forEach(function(i,s){r.push(s),o.push(i)});var a=Promise.all(o);return a.queries=r,a.results=o,a.catch(function(i){globalThis.__DEV__!==!1&&Pe.debug(17,i)}),a},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();globalThis.__DEV__!==!1&&(eV.prototype.getMemoryInternals=zpe);var y1=new Map,Y5=new Map,tV=!0,Ow=!1;function nV(e){return e.replace(/[\s,]+/g," ").trim()}function Xge(e){return nV(e.source.body.substring(e.start,e.end))}function Jge(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var o=r.name.value,a=Xge(r.loc),i=Y5.get(o);i&&!i.has(a)?tV&&console.warn("Warning: fragment with name "+o+` already exists. -graphql-tag enforces all fragment names across your application to be unique; read more about -this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):i||Y5.set(o,i=new Set),i.add(a),t.has(a)||(t.add(a),n.push(r))}else n.push(r)}),K(K({},e),{definitions:n})}function Zge(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(o){var a=r[o];a&&typeof a=="object"&&t.add(a)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function eye(e){var t=nV(e);if(!y1.has(t)){var n=hpe(e,{experimentalFragmentVariables:Ow,allowLegacyFragmentVariables:Ow});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");y1.set(t,Zge(Jge(n)))}return y1.get(t)}function br(e){for(var t=[],n=1;n{var d;return u.symbol===((d=t.sourceToken)==null?void 0:d.symbol)}))==null?void 0:s.cross.find(u=>{var d,f;return u.bridge.category===t.category&&u.target.network===((d=t.targetChain)==null?void 0:d.network)&&u.target.symbol===((f=t.targetToken)==null?void 0:f.symbol)}),this.sourceChain=t.sourceChain,this.targetChain=t.targetChain,this.sourceToken=t.sourceToken,this.targetToken=t.targetToken,this.sourceNativeToken=(c=t.sourceChain)==null?void 0:c.tokens.find(({type:u})=>u==="native"),this.targetNativeToken=(l=t.targetChain)==null?void 0:l.tokens.find(({type:u})=>u==="native"),this.walletClient=t.walletClient,this.publicClient=t.publicClient,t.sourceChain&&t.targetChain&&(this.sourcePublicClient=Vu({chain:t.sourceChain,transport:yh()}),this.targetPublicClient=Vu({chain:t.targetChain,transport:yh()}));const n=jt.HelixChain.chains().find(u=>{var d;return u.code===((d=t.sourceChain)==null?void 0:d.network)}),r=n==null?void 0:n.couples.find(u=>{var d,f,h;return u.chain.code===((d=t.targetChain)==null?void 0:d.network)&&u.symbol.from===((f=t.sourceToken)==null?void 0:f.symbol)&&u.symbol.to===((h=t.targetToken)==null?void 0:h.symbol)&&u.protocol.name===t.protocol}),o=n!=null&&n.protocol&&(r!=null&&r.protocol)?n.protocol[r.protocol.name]:void 0,a=r==null?void 0:r.protocol.address;o&&a&&(this.contract={sourceAddress:o,targetAddress:a})}async getSigner(){if(this.walletClient)return(await this.walletClient.getAddresses()).at(0)}async validateNetwork(t){var r;const n=t==="source"?this.sourceChain:this.targetChain;if((n==null?void 0:n.id)!==await((r=this.publicClient)==null?void 0:r.getChainId()))throw new Error("Wrong network")}isLnBridge(){return!1}getLogo(){return this.logo}getName(){return this.name}getCategory(){return this.category}getContract(){return this.contract}getSourceToken(){return this.sourceToken}getTargetToken(){return this.targetToken}getSourceChain(){return this.sourceChain}getTargetChain(){return this.targetChain}getCrossInfo(){return this.crossInfo}getEstimateTime(){return this.estimateTime}formatEstimateTime(){return`${this.estimateTime.min}~${this.estimateTime.max} Minutes`}getTxGasLimit(){var t,n;return((t=this.sourceChain)==null?void 0:t.network)==="arbitrum"||((n=this.sourceChain)==null?void 0:n.network)==="arbitrum-sepolia"?3000000n:void 0}async getFee(t){}async getDailyLimit(){}async getSourceBalance(t){if(this.sourceToken&&this.sourcePublicClient)return UO(t,this.sourceToken,this.sourcePublicClient)}async getTargetBalance(t){if(this.targetToken&&this.targetPublicClient)return UO(t,this.targetToken,this.targetPublicClient)}async getAllowance(t,n,r,o){if(r.type==="erc20")return{value:await o.readContract({address:r.address,abi:(await me(async()=>{const{default:i}=await Promise.resolve().then(()=>aD);return{default:i}},void 0,import.meta.url)).default,functionName:"allowance",args:[t,n]}),token:r}}async getSourceAllowance(t){if(this.contract&&this.sourceToken&&this.sourcePublicClient)return this.getAllowance(t,this.contract.sourceAddress,this.sourceToken,this.sourcePublicClient)}async getTargetAllowance(t){if(this.contract&&this.targetToken&&this.targetPublicClient)return this.getAllowance(t,this.contract.targetAddress,this.targetToken,this.targetPublicClient)}async approve(t,n,r,o){if(this.publicClient&&this.walletClient){const{request:a}=await this.publicClient.simulateContract({address:o.address,abi:(await me(async()=>{const{default:s}=await Promise.resolve().then(()=>aD);return{default:s}},void 0,import.meta.url)).default,functionName:"approve",args:[r,t],account:n}),i=await this.walletClient.writeContract(a);return this.publicClient.waitForTransactionReceipt({hash:i,confirmations:mo})}}async sourceApprove(t,n){if(await this.validateNetwork("source"),this.sourceToken&&this.contract)return this.approve(t,n,this.contract.sourceAddress,this.sourceToken)}async targetApprove(t,n){if(await this.validateNetwork("target"),this.targetToken&&this.contract)return this.approve(t,n,this.contract.targetAddress,this.targetToken)}async transfer(t,n,r,o){return await this.validateNetwork("source"),this._transfer(t,n,r,o)}async estimateTransferGas(t,n,r,o){return this._transfer(t,n,r,{...o,askEstimateGas:!0})}async estimateTransferGasFee(t,n,r,o){const a=await this.estimateTransferGas(t,n,r,o);if(a&&this.sourcePublicClient){const{maxFeePerGas:i}=await this.sourcePublicClient.estimateFeesPerGas();return i?i*a:void 0}}}class Jj extends Nye{constructor(t){super(t),this.logo={horizontal:"helix-horizontal.svg",symbol:"helix-symbol.svg"},this.name="Helix LnBridge(v2)",this.estimateTime={min:1,max:2}}isLnBridge(){return!0}async getFee(t){if(t!=null&&t.relayer&&this.contract&&this.targetChain&&this.sourceToken&&this.targetToken&&this.sourcePublicClient)return{value:await this.sourcePublicClient.readContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnv2-default-D6l1N3uU.js");return{default:r}},[],import.meta.url)).default,functionName:"totalFee",args:[BigInt(this.targetChain.id),t.relayer,this.sourceToken.address,this.targetToken.address,t.transferAmount??0n]}),token:this.sourceToken}}async _getLayerzeroFee(t,n,r){const[o]=await r.readContract({address:t,abi:(await me(async()=>{const{default:a}=await import("./lnaccess-controller-CY66MO2d.js");return{default:a}},[],import.meta.url)).default,functionName:"fee",args:[BigInt(n.id),qu(Uint8Array.from([123]),{size:750})]});return o}async _getMsglineFeeAndParams(t,n,r,o,a,i,s,c){var f,h,m,p;const l=(h=(f=jt.HelixChain.chains().find(b=>b.id.toString()===r.id.toString()))==null?void 0:f.messager("msgline"))==null?void 0:h.address,u=(p=(m=jt.HelixChain.chains().find(b=>b.id.toString()===r.id.toString()))==null?void 0:m.couples.find(b=>b.chain.code===o.network&&b.symbol.from===(s==null?void 0:s.symbol)&&b.symbol.to===(c==null?void 0:c.symbol)&&b.protocol.name===this.protocol))==null?void 0:p.messager,d=(u==null?void 0:u.name)==="msgline"?u.address:void 0;if(n&&l&&d&&a&&i){const b=oi({abi:(await me(async()=>{const{default:v}=await import("./msgline-messager-B71sigHl.js");return{default:v}},[],import.meta.url)).default,functionName:"receiveMessage",args:[BigInt(r.id),a,i,t]});return Kye(r.id,o.id,l,d,n,b)}}async _getLayerzeroWithdrawFee(){if(this.contract&&this.targetChain&&this.sourceNativeToken&&this.sourcePublicClient){const[t]=await this.sourcePublicClient.readContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnv2-default-D6l1N3uU.js");return{default:r}},[],import.meta.url)).default,functionName:"messagers",args:[BigInt(this.targetChain.id)]}),n=await this._getLayerzeroFee(t,this.targetChain,this.sourcePublicClient);return typeof n=="bigint"?{value:n,token:this.sourceNativeToken,params:void 0}:void 0}}async _getMsglineWithdrawFeeAndParams(t){if(this.sourceChain&&this.targetChain&&this.sourceToken&&this.targetToken&&this.contract&&this.sourceNativeToken&&t.transferId&&t.withdrawNonce&&t.relayer&&t.sender){const n=oi({abi:(await me(async()=>{const{default:o}=await import("./lnv2-default-D6l1N3uU.js");return{default:o}},[],import.meta.url)).default,functionName:"withdraw",args:[BigInt(this.sourceChain.id),t.transferId,BigInt(t.withdrawNonce),t.relayer,this.sourceToken.address,this.targetToken.address,t.amount]}),r=await this._getMsglineFeeAndParams(n,t.sender,this.sourceChain,this.targetChain,this.contract.sourceAddress,this.contract.targetAddress,this.sourceToken,this.targetToken);return r?{value:r.fee,token:this.sourceNativeToken,params:r.extParams}:void 0}}async getWithdrawFeeParams(t){if(t.messageChannel==="layerzero")return this._getLayerzeroWithdrawFee();if(t.messageChannel==="msgline")return this._getMsglineWithdrawFeeAndParams(t)}async _transfer(t,n,r,o){}}class dV extends Jj{constructor(t){super(t)}async _transfer(t,n,r,o){const a=await this.getSigner(),i=o==null?void 0:o.relayer,s=o==null?void 0:o.transferId;if(a&&i&&s&&this.contract&&this.sourcePublicClient&&this.targetChain&&this.sourceToken&&this.targetToken){const c=(o==null?void 0:o.askEstimateGas)??!1,l=(o==null?void 0:o.totalFee)??0n,u={remoteChainId:BigInt(this.targetChain.id),provider:i,sourceToken:this.sourceToken.address,targetToken:this.targetToken.address,transferId:s,totalFee:l,withdrawNonce:(o==null?void 0:o.withdrawNonce)||0n},d={address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:f}=await import("./lnv2-default-D6l1N3uU.js");return{default:f}},[],import.meta.url)).default,functionName:"transferAndLockMargin",args:[u,r,n],value:this.sourceToken.type==="native"?r+l:void 0,gas:this.getTxGasLimit(),account:a};if(c)return this.sourcePublicClient.estimateContractGas(d);if(this.walletClient){const f=await this.walletClient.writeContract(d);return this.sourcePublicClient.waitForTransactionReceipt({hash:f,confirmations:mo})}}}async depositMargin(t){if(await this.validateNetwork("target"),this.contract&&this.sourceChain&&this.sourceToken&&this.targetToken&&this.publicClient&&this.walletClient){const n=await this.walletClient.writeContract({address:this.contract.targetAddress,abi:(await me(async()=>{const{default:r}=await import("./lnv2-default-D6l1N3uU.js");return{default:r}},[],import.meta.url)).default,functionName:"depositProviderMargin",args:[BigInt(this.sourceChain.id),this.sourceToken.address,this.targetToken.address,t],value:this.targetToken.type==="native"?t:void 0,gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:n,confirmations:mo})}}async setFeeAndRate(t,n){if(await this.validateNetwork("source"),this.contract&&this.targetChain&&this.sourceToken&&this.targetToken&&this.publicClient&&this.walletClient){const r=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:o}=await import("./lnv2-default-D6l1N3uU.js");return{default:o}},[],import.meta.url)).default,functionName:"setProviderFee",args:[BigInt(this.targetChain.id),this.sourceToken.address,this.targetToken.address,t,n],gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:r,confirmations:mo})}}async withdrawMargin(t,n,r){if(await this.validateNetwork("source"),this.contract&&this.sourceToken&&this.targetToken&&this.targetChain&&this.publicClient&&this.walletClient){const o=BigInt(this.targetChain.id),a=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:i}=await import("./lnv2-default-D6l1N3uU.js");return{default:i}},[],import.meta.url)).default,functionName:"requestWithdrawMargin",args:[o,this.sourceToken.address,this.targetToken.address,n,t],gas:this.getTxGasLimit(),value:r});return this.publicClient.waitForTransactionReceipt({hash:a,confirmations:mo})}}}class fV extends Jj{constructor(t){super(t)}async _transfer(t,n,r,o){const a=await this.getSigner(),i=o==null?void 0:o.relayer,s=o==null?void 0:o.transferId;if(a&&i&&s&&this.contract&&this.sourcePublicClient&&this.sourceToken&&this.targetToken&&this.targetChain){const c=(o==null?void 0:o.askEstimateGas)??!1,l=(o==null?void 0:o.totalFee)??0n,u={remoteChainId:BigInt(this.targetChain.id),provider:i,sourceToken:this.sourceToken.address,targetToken:this.targetToken.address,transferId:s,totalFee:l,depositedMargin:(o==null?void 0:o.depositedMargin)||0n},d={address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:f}=await import("./lnv2-opposite-CY9WgYrv.js");return{default:f}},[],import.meta.url)).default,functionName:"transferAndLockMargin",args:[u,r,n],value:this.sourceToken.type==="native"?r+l:void 0,gas:this.getTxGasLimit(),account:a};if(c)return this.sourcePublicClient.estimateContractGas(d);if(this.walletClient){const f=await this.walletClient.writeContract(d);return this.sourcePublicClient.waitForTransactionReceipt({hash:f,confirmations:mo})}}}async updateFeeAndMargin(t,n,r){if(await this.validateNetwork("source"),this.contract&&this.targetChain&&this.sourceToken&&this.targetToken&&this.publicClient&&this.walletClient){const o=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:a}=await import("./lnv2-opposite-CY9WgYrv.js");return{default:a}},[],import.meta.url)).default,functionName:"updateProviderFeeAndMargin",args:[BigInt(this.targetChain.id),this.sourceToken.address,this.targetToken.address,t,n,r],value:this.sourceToken.type==="native"?t:void 0,gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:o,confirmations:mo})}}}class Zj extends Jj{constructor(t){super(t),this.name="Helix LnBridge(v3)"}async _transfer(t,n,r,o){const a=await this.getSigner(),i=o==null?void 0:o.relayer;if(a&&i&&this.contract&&this.sourcePublicClient&&this.targetChain&&this.sourceToken&&this.targetToken){const s=(o==null?void 0:o.askEstimateGas)??!1,c=(o==null?void 0:o.totalFee)??0n,l={address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:u}=await import("./lnbridge-v3-CO3fue1_.js");return{default:u}},[],import.meta.url)).default,functionName:"lockAndRemoteRelease",args:[{remoteChainId:BigInt(this.targetChain.id),provider:i,sourceToken:this.sourceToken.address,targetToken:this.targetToken.address,totalFee:c,amount:r,receiver:n,timestamp:BigInt(Math.floor(Date.now()/1e3))}],value:this.sourceToken.type==="native"?r+c:void 0,gas:this.getTxGasLimit(),account:a};if(s)return this.sourcePublicClient.estimateContractGas(l);if(this.walletClient){const u=await this.walletClient.writeContract(l);return this.sourcePublicClient.waitForTransactionReceipt({hash:u,confirmations:mo})}}}async getFee(t){const n=t==null?void 0:t.relayer;if(n&&this.sourcePublicClient&&this.contract&&this.targetChain&&this.sourceToken&&this.targetToken)return{value:await this.sourcePublicClient.readContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnbridge-v3-CO3fue1_.js");return{default:r}},[],import.meta.url)).default,functionName:"totalFee",args:[BigInt(this.targetChain.id),n,this.sourceToken.address,this.targetToken.address,t.transferAmount??0n]}),token:this.sourceToken}}async getPenaltyReserves(t){if(t&&this.contract&&this.sourceToken&&this.sourcePublicClient)return{value:await this.sourcePublicClient.readContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnbridge-v3-CO3fue1_.js");return{default:r}},[],import.meta.url)).default,functionName:"penaltyReserves",args:[Or(jde(["address","address"],[this.sourceToken.address,t]))]}),token:this.sourceToken}}async registerLnProvider(t,n,r){if(await this.validateNetwork("source"),this.contract&&this.publicClient&&this.walletClient&&this.targetChain&&this.sourceToken&&this.targetToken){const o=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:a}=await import("./lnbridge-v3-CO3fue1_.js");return{default:a}},[],import.meta.url)).default,functionName:"registerLnProvider",args:[BigInt(this.targetChain.id),this.sourceToken.address,this.targetToken.address,t,n,r],gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:o,confirmations:mo})}}async depositPenaltyReserve(t){if(await this.validateNetwork("source"),this.contract&&this.publicClient&&this.walletClient&&this.sourceToken){const n=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnbridge-v3-CO3fue1_.js");return{default:r}},[],import.meta.url)).default,functionName:"depositPenaltyReserve",args:[this.sourceToken.address,t],value:this.sourceToken.type==="native"?t:void 0,gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:n,confirmations:mo})}}async withdrawPenaltyReserve(t){if(await this.validateNetwork("source"),this.contract&&this.sourceToken&&this.publicClient&&this.walletClient){const n=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnbridge-v3-CO3fue1_.js");return{default:r}},[],import.meta.url)).default,functionName:"withdrawPenaltyReserve",args:[this.sourceToken.address,t]});return this.publicClient.waitForTransactionReceipt({hash:n,confirmations:mo})}}async getWithdrawLiquidityFeeAndParams(t,n,r){if(r==="layerzero"){if(this.contract&&this.sourceChain&&this.targetNativeToken&&this.targetPublicClient){const[o]=await this.targetPublicClient.readContract({address:this.contract.targetAddress,abi:(await me(async()=>{const{default:i}=await import("./lnbridge-v3-CO3fue1_.js");return{default:i}},[],import.meta.url)).default,functionName:"messagers",args:[BigInt(this.sourceChain.id)]}),a=await this._getLayerzeroFee(o,this.sourceChain,this.targetPublicClient);return typeof a=="bigint"?{value:a,token:this.targetNativeToken,params:void 0}:void 0}}else if(r==="msgline"&&this.targetNativeToken&&this.sourceChain&&this.targetChain&&this.contract){const o=oi({abi:(await me(async()=>{const{default:i}=await import("./lnbridge-v3-CO3fue1_.js");return{default:i}},[],import.meta.url)).default,functionName:"withdrawLiquidity",args:[n,BigInt(this.targetChain.id),t]}),a=await this._getMsglineFeeAndParams(o,t,this.targetChain,this.sourceChain,this.contract.targetAddress,this.contract.sourceAddress,this.targetToken,this.sourceToken);return a?{value:a.fee,token:this.targetNativeToken,params:a.extParams}:void 0}}async requestWithdrawLiquidity(t,n,r,o){if(await this.validateNetwork("target"),this.contract&&this.sourceChain&&this.publicClient&&this.walletClient){const a=BigInt(this.sourceChain.id),i=await this.walletClient.writeContract({address:this.contract.targetAddress,abi:(await me(async()=>{const{default:s}=await import("./lnbridge-v3-CO3fue1_.js");return{default:s}},[],import.meta.url)).default,functionName:"requestWithdrawLiquidity",args:[a,n,t,o],value:r,gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:i,confirmations:mo})}}}function fm(e){switch(e.category){case"lnv3":return new Zj({...e,category:"lnbridge",protocol:"lnv3"});case"lnv2-default":return new dV({...e,category:"lnbridge",protocol:"lnv2-default"});case"lnv2-opposite":return new fV({...e,category:"lnbridge",protocol:"lnv2-opposite"});default:return}}function Bye(e,t){return!!(e!=null&&e.cross.some(n=>n.target.network===(t==null?void 0:t.network)&&n.bridge.category==="lnbridge"&&n.bridge.lnv2Type==="default"))}function Fye(e,t){return!!(e!=null&&e.cross.some(n=>n.target.network===(t==null?void 0:t.network)&&n.bridge.category==="lnbridge"&&n.bridge.lnv2Type==="opposite"))}const hV=Er({id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),mV=Er({id:421614,name:"Arbitrum Sepolia",network:"arbitrum-sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-sepolia.g.alchemy.com/v2"],webSocket:["wss://arb-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]},public:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"},default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0}),pV=Er({id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),e4={block:wq({format(e){var n;return{transactions:(n=e.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const o=L_(r);return o.typeHex==="0x7e"&&(o.isSystemTx=r.isSystemTx,o.mint=r.mint?wn(r.mint):void 0,o.sourceHash=r.sourceHash,o.type="deposit"),o}),stateRoot:e.stateRoot}}}),transaction:vq({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?wn(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:tW({format(e){return{l1GasPrice:e.l1GasPrice?wn(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?wn(e.l1GasUsed):null,l1Fee:e.l1Fee?wn(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})},gV=Er({id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-mainnet.g.alchemy.com/v2"],webSocket:["wss://base-mainnet.g.alchemy.com/v2"]},infura:{http:["https://base-mainnet.infura.io/v3"],webSocket:["wss://base-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{blockscout:{name:"Basescout",url:"https://base.blockscout.com"},default:{name:"Basescan",url:"https://basescan.org"},etherscan:{name:"Basescan",url:"https://basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022}}},{formatters:e4}),yV=Er({id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-sepolia.g.alchemy.com/v2"],webSocket:["wss://base-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"},default:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"}},testnet:!0,sourceId:11155111},{formatters:e4}),bV=Er({id:56,name:"BNB Smart Chain",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),Mye=Er({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),vV=Er({id:100,name:"Gnosis",network:"gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]},public:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{etherscan:{name:"Gnosisscan",url:"https://gnosisscan.io"},default:{name:"Gnosis Chain Explorer",url:"https://blockscout.com/xdai/mainnet"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}}),wV=Er({id:59144,name:"Linea Mainnet",network:"linea-mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-mainnet.infura.io/v3"],webSocket:["wss://linea-mainnet.infura.io/ws/v3"]},default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.linea.build"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42}},testnet:!1}),Ux=Er({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),EV=Er({id:5e3,name:"Mantle",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]},public:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"},default:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}}),_V=Er({id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},{formatters:e4}),xV=Er({id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),CV=Er({id:534352,name:"Scroll",network:"scroll",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]},public:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com"},blockscout:{name:"Blockscout",url:"https://blockscout.scroll.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1}),SV=Er({id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x21B000Fd62a880b2125A61e36a284BB757b76025",blockCreated:3914906}},testnet:!0}),t4={block:wq({format(e){var n;const t=(n=e.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const o=t4.transaction.format(r);return o.typeHex==="0x71"?o.type="eip712":o.typeHex==="0xff"&&(o.type="priority"),o});return{l1BatchNumber:e.l1BatchNumber?wn(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?wn(e.l1BatchTimestamp):null,transactions:t}}}),transaction:vq({format(e){const t={};return e.type==="0x71"?t.type="eip712":e.type==="0xff"&&(t.type="priority"),{...t,l1BatchNumber:e.l1BatchNumber?wn(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?wn(e.l1BatchTxIndex):null}}}),transactionReceipt:tW({format(e){return{l1BatchNumber:e.l1BatchNumber?wn(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?wn(e.l1BatchTxIndex):null,logs:e.logs.map(t=>({..._a(t),l1BatchNumber:t.l1BatchNumber?wn(t.l1BatchNumber):null,transactionLogIndex:pr(t.transactionLogIndex),logType:t.logType})),l2ToL1Logs:e.l2ToL1Logs.map(t=>({blockNumber:wn(t.blockHash),blockHash:t.blockHash,l1BatchNumber:wn(t.l1BatchNumber),transactionIndex:wn(t.transactionIndex),shardId:wn(t.shardId),isService:t.isService,sender:t.sender,key:t.key,value:t.value,transactionHash:t.transactionHash,logIndex:wn(t.logIndex)}))}}}),transactionRequest:_ue({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format(e){return e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:rt(e.gasPerPubdata)}:{},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from(qg(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps}:{},...e.customSignature?{customSignature:e.customSignature}:{}},type:e.type==="eip712"?"0x71":"0xff"}:{}}})},Lye=(e,t)=>$ye(e)?Uye(e):rfe(e,t),TV={transaction:Lye};function Uye(e){const{chainId:t,gas:n,nonce:r,to:o,from:a,value:i,maxFeePerGas:s,maxPriorityFeePerGas:c,customSignature:l,factoryDeps:u,paymaster:d,paymasterInput:f,gasPerPubdata:h,data:m}=e;zye(e);const p=[r?rt(r):"0x",c?rt(c):"0x",s?rt(s):"0x",n?rt(n):"0x",o??"0x",i?rt(i):"0x",m??"0x",rt(t),rt(""),rt(""),rt(t),a??"0x",h?rt(h):"0x",u??[],l??"0x",d&&f?[d,f]:[]];return Sl(["0x71",V_(p)])}function $ye(e){return"customSignature"in e||"paymaster"in e||"paymasterInput"in e||"gasPerPubdata"in e||"factoryDeps"in e}function zye(e){const{chainId:t,to:n,from:r,paymaster:o,paymasterInput:a}=e;if(t<=0)throw new $_({chainId:t});if(n&&!Hn(n))throw new Wo({address:n});if(r&&!Hn(r))throw new Wo({address:r});if(o&&!Hn(o))throw new Wo({address:o});if(o&&!a)throw new de("`paymasterInput` must be provided when `paymaster` is defined");if(!o&&a)throw new de("`paymaster` must be provided when `paymasterInput` is defined")}const AV=Er({id:324,name:"zkSync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]},public:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}}},{serializers:TV,formatters:t4}),DV=Er({id:300,name:"zkSync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]},public:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://sepolia.explorer.zksync.io/"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},{serializers:TV,formatters:t4}),Rw=jt.HelixChain.arbitrum,kV=Rw.tokens.map(e=>{var a;const t=Rw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Rw.couples.length&&!Rw.tokens.some(e=>e.type==="native")&&kV.push({...hV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const jV={...hV,network:"arbitrum",name:"Arbitrum One",logo:"arbitrum.png",tokens:kV},Nw=jt.HelixChain.arbitrumSepolia,PV=Nw.tokens.map(e=>{var a;const t=Nw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Nw.couples.length&&!Nw.tokens.some(e=>e.type==="native")&&PV.push({...mV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const IV={...mV,network:"arbitrum-sepolia",name:"Arbitrum Sepolia",logo:"arbitrum.png",tokens:PV},Bw=jt.HelixChain.base,OV=Bw.tokens.map(e=>{var a;const t=Bw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Bw.couples.length&&!Bw.tokens.some(e=>e.type==="native")&&OV.push({...gV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const RV={...gV,network:"base",name:"Base",logo:"base.png",tokens:OV},Fw=jt.HelixChain.bsc,NV=Fw.tokens.map(e=>{var a;const t=Fw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Fw.couples.length&&!Fw.tokens.some(e=>e.type==="native")&&NV.push({...bV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const BV={...bV,network:"bsc",name:"BSC",logo:"bsc.png",tokens:NV};var ct=(e=>(e[e.DARWINIA=46]="DARWINIA",e[e.CRAB=44]="CRAB",e[e.PANGOLIN=43]="PANGOLIN",e[e.ETHEREUM=1]="ETHEREUM",e[e.SEPOLIA=11155111]="SEPOLIA",e[e.ARBITRUM=42161]="ARBITRUM",e[e.ARBITRUM_SEPOLIA=421614]="ARBITRUM_SEPOLIA",e[e.ZKSYNC=324]="ZKSYNC",e[e.ZKSYNC_SEPOLIA=300]="ZKSYNC_SEPOLIA",e[e.POLYGON=137]="POLYGON",e[e.LINEA=59144]="LINEA",e[e.MANTLE=5e3]="MANTLE",e[e.BASE=8453]="BASE",e[e.BASE_SEPOLIA=84532]="BASE_SEPOLIA",e[e.SCROLL=534352]="SCROLL",e[e.BSC=56]="BSC",e[e.OPTIMISM=10]="OPTIMISM",e[e.GNOSIS=100]="GNOSIS",e[e.BLAST=81457]="BLAST",e[e.BERA=80084]="BERA",e[e.TAIKO_HEKLA=167009]="TAIKO_HEKLA",e[e.ASTAR_ZKEVM=3776]="ASTAR_ZKEVM",e[e.MORPH=2810]="MORPH",e[e.MOONBEAM=1284]="MOONBEAM",e[e.AVALANCHE=43114]="AVALANCHE",e[e.ZIRCUIT=48900]="ZIRCUIT",e[e.ZIRCUIT_SEPOLIA=48899]="ZIRCUIT_SEPOLIA",e))(ct||{});const Mw=jt.HelixChain.crabDvm,FV=Mw.tokens.map(e=>{var a;const t=Mw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Mw.couples.length&&!Mw.tokens.some(e=>e.type==="native")&&FV.push({name:"CRAB",symbol:"CRAB",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const MV={id:ct.CRAB,network:"crab-dvm",name:"Crab",nativeCurrency:{name:"CRAB",symbol:"CRAB",decimals:18},rpcUrls:{default:{http:["https://crab-rpc.darwinia.network"],webSocket:["wss://crab-rpc.darwinia.network"]},public:{http:["https://crab-rpc.darwinia.network"],webSocket:["wss://crab-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Subscan",url:"https://crab.subscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:599936}},logo:"crab.png",tokens:FV},Lw=jt.HelixChain.darwiniaDvm,LV=Lw.tokens.map(e=>{var a;const t=Lw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Lw.couples.length&&!Lw.tokens.some(e=>e.type==="native")&&LV.push({name:"RING",symbol:"RING",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const UV={id:ct.DARWINIA,network:"darwinia-dvm",name:"Darwinia",nativeCurrency:{name:"RING",symbol:"RING",decimals:18},rpcUrls:{default:{http:["https://rpc.darwinia.network"],webSocket:["wss://rpc.darwinia.network"]},public:{http:["https://rpc.darwinia.network"],webSocket:["wss://rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.darwinia.network/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:251739}},logo:"darwinia.png",tokens:LV},Uw=jt.HelixChain.ethereum,$V=Uw.tokens.map(e=>{var a;const t=Uw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Uw.couples.length&&!Uw.tokens.some(e=>e.type==="native")&&$V.push({...Ux.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const zV={...Ux,network:"ethereum",name:"Ethereum",logo:"ethereum.png",tokens:$V},$w=jt.HelixChain.sepolia,HV=$w.tokens.map(e=>{var a;const t=$w.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});$w.couples.length&&!$w.tokens.some(e=>e.type==="native")&&HV.push({...SV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const qV={...SV,network:"sepolia",name:"Sepolia",logo:"sepolia.png",tokens:HV},zw=jt.HelixChain.linea,WV=zw.tokens.map(e=>{var a;const t=zw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});zw.couples.length&&!zw.tokens.some(e=>e.type==="native")&&WV.push({...wV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const GV={...wV,network:"linea",name:"Linea",logo:"linea.png",tokens:WV},Hw=jt.HelixChain.mantle,VV=Hw.tokens.map(e=>{var a;const t=Hw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Hw.couples.length&&!Hw.tokens.some(e=>e.type==="native")&&VV.push({...EV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const KV={...EV,network:"mantle",name:"Mantle",logo:"mantle.png",tokens:VV},qw=jt.HelixChain.op,YV=qw.tokens.map(e=>{var a;const t=qw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});qw.couples.length&&!qw.tokens.some(e=>e.type==="native")&&YV.push({..._V.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const QV={..._V,network:"op",name:"OP Mainnet",logo:"optimism.png",tokens:YV},Ww=jt.HelixChain.polygon,XV=Ww.tokens.map(e=>{var a;const t=Ww.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Ww.couples.length&&!Ww.tokens.some(e=>e.type==="native")&&XV.push({...xV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const JV={...xV,network:"polygon",name:"Polygon PoS",logo:"polygon.png",tokens:XV},Gw=jt.HelixChain.scroll,ZV=Gw.tokens.map(e=>{var a;const t=Gw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Gw.couples.length&&!Gw.tokens.some(e=>e.type==="native")&&ZV.push({...CV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const eK={...CV,network:"scroll",name:"Scroll",logo:"scroll.png",tokens:ZV},Vw=jt.HelixChain.zksync,tK=Vw.tokens.map(e=>{var a;const t=Vw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Vw.couples.length&&!Vw.tokens.some(e=>e.type==="native")&&tK.push({...AV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const nK={...AV,network:"zksync",name:"zkSync era",logo:"zksync.png",tokens:tK},Kw=jt.HelixChain.zksyncSepolia,rK=Kw.tokens.map(e=>{var a;const t=Kw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Kw.couples.length&&!Kw.tokens.some(e=>e.type==="native")&&rK.push({...DV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const oK={...DV,network:"zksync-sepolia",name:"zkSync Sepolia Testnet",logo:"zksync.png",tokens:rK},Yw=jt.HelixChain.gnosis,aK=Yw.tokens.map(e=>{var a;const t=Yw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Yw.couples.length&&!Yw.tokens.some(e=>e.type==="native")&&aK.push({...vV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const iK={...vV,network:"gnosis",name:"Gnosis Chain",blockExplorers:{default:{name:"Gnosisscan",url:"https://gnosisscan.io"}},logo:"gnosis.png",tokens:aK};var xn=(e=>(e[e.PENDING=0]="PENDING",e[e.PENDING_TO_REFUND=1]="PENDING_TO_REFUND",e[e.PENDING_TO_CLAIM=2]="PENDING_TO_CLAIM",e[e.SUCCESS=3]="SUCCESS",e[e.REFUNDED=4]="REFUNDED",e[e.PENDING_TO_CONFIRM_REFUND=5]="PENDING_TO_CONFIRM_REFUND",e[e.FAILED=6]="FAILED",e))(xn||{}),Mn=(e=>(e.ADDRESS="address",e.PAGE="page",e.TAB="tab",e.BRIDGE="bridge",e.SOURCE_CHAIN="source_chain",e.TARGET_CHAIN="target_chain",e.SOURCE_TOKEN="source_token",e.TARGET_TOKEN="target_token",e.TOKEN_CATEGORY="token_category",e))(Mn||{});const Qw=jt.HelixChain.blast,sK=Qw.tokens.map(e=>{var a;const t=Qw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Qw.couples.length&&!Qw.tokens.some(e=>e.type==="native")&&sK.push({decimals:18,name:"Ether",symbol:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const cK={id:ct.BLAST,network:"blast",name:"Blast",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.blast.io"]},public:{http:["https://rpc.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://blastscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:212929}},logo:"blast.png",tokens:sK},Xw=jt.HelixChain.bera,lK=Xw.tokens.map(e=>{var a;const t=Xw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Xw.couples.length&&!Xw.tokens.some(e=>e.type==="native")&&lK.push({name:"BERA",symbol:"BERA",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const uK={id:ct.BERA,network:"bera",name:"Berachain Bartio",nativeCurrency:{name:"BERA",symbol:"BERA",decimals:18},rpcUrls:{default:{http:["https://bartio.rpc.berachain.com/"]},public:{http:["https://bartio.rpc.berachain.com/"]}},blockExplorers:{default:{name:"Bartio",url:"https://bartio.beratrail.io"}},testnet:!0,logo:"bera.png",tokens:lK},Jw=jt.HelixChain.astarZkevm,dK=Jw.tokens.map(e=>{var a;const t=Jw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Jw.couples.length&&!Jw.tokens.some(e=>e.type==="native")&&dK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const fK={id:ct.ASTAR_ZKEVM,network:"astar-zkevm",name:"Astar zkEVM",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.startale.com/astar-zkevm"],webSocket:[]},public:{http:["https://rpc.startale.com/astar-zkevm"],webSocket:[]}},blockExplorers:{default:{name:"Blockscout",url:"https://astar-zkevm.explorer.startale.com/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:183817}},logo:"astar.png",tokens:dK},Zw=jt.HelixChain.moonbeam,hK=Zw.tokens.map(e=>{var a;const t=Zw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Zw.couples.length&&!Zw.tokens.some(e=>e.type==="native")&&hK.push({name:"GLMR",symbol:"GLMR",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const mK={id:ct.MOONBEAM,network:"moonbeam",name:"Moonbeam",nativeCurrency:{name:"GLMR",symbol:"GLMR",decimals:18},rpcUrls:{default:{http:["https://rpc.api.moonbeam.network"]},public:{http:["https://rpc.api.moonbeam.network"]}},blockExplorers:{default:{name:"Subscan",url:"https://moonbeam.subscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},logo:"moonbeam.png",tokens:hK},eE=jt.HelixChain.baseSepolia,pK=eE.tokens.map(e=>{var a;const t=eE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});eE.couples.length&&!eE.tokens.some(e=>e.type==="native")&&pK.push({...yV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const gK={...yV,network:"base-sepolia",name:"Base Sepolia",logo:"base.png",tokens:pK},tE=jt.HelixChain.avalanche,yK=tE.tokens.map(e=>{var a;const t=tE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});tE.couples.length&&!tE.tokens.some(e=>e.type==="native")&&yK.push({...pV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const bK={...pV,network:"avalanche",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/chains/avax.png",tokens:yK},nE=jt.HelixChain.taikoHekla,vK=nE.tokens.map(e=>{var a;const t=nE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});nE.couples.length&&!nE.tokens.some(e=>e.type==="native")&&vK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const wK={id:ct.TAIKO_HEKLA,network:"taiko-hekla",name:"Taiko Hekla",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hekla.taiko.xyz"]},public:{http:["https://rpc.hekla.taiko.xyz"]}},blockExplorers:{default:{name:"Taikoscan",url:"https://hekla.taikoscan.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:59757}},testnet:!0,logo:"taiko.png",tokens:vK},rE=jt.HelixChain.zircuit,EK=rE.tokens.map(e=>{var a;const t=rE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});rE.couples.length&&!rE.tokens.some(e=>e.type==="native")&&EK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const _K={id:ct.ZIRCUIT,network:"zircuit",name:"Zircuit",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zircuit1-mainnet.p2pify.com"]},public:{http:["https://zircuit1-mainnet.p2pify.com"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},logo:"zircuit.png",tokens:EK},oE=jt.HelixChain.zircuitSepolia,xK=oE.tokens.map(e=>{var a;const t=oE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});oE.couples.length&&!oE.tokens.some(e=>e.type==="native")&&xK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const CK={id:ct.ZIRCUIT_SEPOLIA,network:"zircuit-sepolia",name:"Zircuit Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zircuit1.p2pify.com"]},public:{http:["https://zircuit1.p2pify.com"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.testnet.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6040287}},testnet:!0,logo:"zircuit.png",tokens:xK};function Hye(){return!1}const aE=jt.HelixChain.morph,SK=aE.tokens.map(e=>{var a;const t=aE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});aE.couples.length&&!aE.tokens.some(e=>e.type==="native")&&SK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const TK={id:ct.MORPH,network:"morph",name:"Morph Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-holesky.morphl2.io"],webSocket:[]},public:{http:["https://rpc-holesky.morphl2.io"],webSocket:[]}},blockExplorers:{default:{name:"Morph",url:"https://explorer-holesky.morphl2.io/"}},testnet:!0,logo:"morph.png",tokens:SK};function st(e){switch(e){case ct.DARWINIA:case"darwinia-dvm":return UV;case ct.CRAB:case"crab-dvm":return MV;case ct.ETHEREUM:case"ethereum":return zV;case ct.ARBITRUM:case"arbitrum":return jV;case ct.ARBITRUM_SEPOLIA:case"arbitrum-sepolia":return IV;case ct.ZKSYNC:case"zksync":return nK;case ct.ZKSYNC_SEPOLIA:case"zksync-sepolia":return oK;case ct.LINEA:case"linea":return GV;case ct.MANTLE:case"mantle":return KV;case ct.POLYGON:case"polygon":return JV;case ct.SCROLL:case"scroll":return eK;case ct.BASE:case"base":return RV;case ct.BSC:case"bsc":return BV;case ct.OPTIMISM:case"op":return QV;case ct.GNOSIS:case"gnosis":return iK;case ct.SEPOLIA:case"sepolia":return qV;case ct.BLAST:case"blast":return cK;case ct.BERA:case"bera":return uK;case ct.TAIKO_HEKLA:case"taiko-hekla":return wK;case ct.ASTAR_ZKEVM:case"astar-zkevm":return fK;case ct.MORPH:case"morph":return TK;case ct.MOONBEAM:case"moonbeam":return mK;case ct.BASE_SEPOLIA:case"base-sepolia":return gK;case ct.AVALANCHE:case"avalanche":return bK;case ct.ZIRCUIT:case"zircuit":return _K;case ct.ZIRCUIT_SEPOLIA:case"zircuit-sepolia":return CK;default:return}}function hm(e){return[jV,IV,MV,UV,zV,qV,GV,KV,nK,oK,JV,eK,RV,BV,QV,iK,cK,uK,wK,fK,TK,mK,gK,bK,_K,CK].sort((n,r)=>n.name.localeCompare(r.name)).filter(n=>!n.hidden&&!n.testnet)}let VR,E0,iE,sE,X5=[],AK=[],v1=[],DK=[],av={},w1={},uu={},uf={},cE=[],lE=[],J5=[],Z5=[],Jp={},E1={},Zp={},_1={};hm().forEach(e=>{let t=[];e.tokens.forEach(n=>{n.cross.forEach(r=>{var i,s,c,l,u,d,f,h,m;const o=st(r.target.network),a=o==null?void 0:o.tokens.find(p=>p.symbol===r.target.symbol);!r.hidden&&o&&a&&(t=t.filter(p=>p.symbol!==n.symbol).concat(n),VR=VR??r.bridge.category,iE=iE??o,av={...av,[e.network]:{...av[e.network],[o.network]:(((i=av[e.network])==null?void 0:i[o.network])||[]).filter(p=>p.symbol!==n.symbol).concat(n)}},w1={...w1,[e.network]:(w1[e.network]||[]).filter(p=>p.id!=o.id).concat(o)},uu={...uu,[e.network]:{...uu[e.network],[o.network]:{...(s=uu[e.network])==null?void 0:s[o.network],[n.symbol]:(((l=(c=uu[e.network])==null?void 0:c[o.network])==null?void 0:l[n.symbol])||[]).filter(p=>p.symbol!==a.symbol).concat(a)}}},uf={...uf,[e.network]:{...uf[e.network],[o.network]:{...(u=uf[e.network])==null?void 0:u[o.network],[n.symbol]:(((f=(d=uf[e.network])==null?void 0:d[o.network])==null?void 0:f[n.symbol])||[]).filter(p=>p!==r.bridge.category).concat(r.bridge.category)}}},r.bridge.category==="lnbridge"&&(cE=cE.filter(p=>p.id!==e.id).concat(e),lE=lE.filter(p=>p.id!==o.id).concat(o),Jp={...Jp,[e.network]:{...Jp[e.network],[o.network]:(((h=Jp[e.network])==null?void 0:h[o.network])||[]).filter(p=>p.symbol!==n.symbol).concat(n)}},E1={...E1,[e.network]:(E1[e.network]||[]).filter(p=>p.id!==o.id).concat(o)},r.bridge.disableV2||(J5=J5.filter(p=>p.id!=e.id).concat(e),Z5=Z5.filter(p=>p.id!==o.id).concat(o),Zp={...Zp,[e.network]:{...Zp[e.network],[o.network]:(((m=Zp[e.network])==null?void 0:m[o.network])||[]).filter(p=>p.symbol!==n.symbol).concat(n)}},_1={..._1,[e.network]:(_1[e.network]||[]).filter(p=>p.id!==o.id).concat(o)})))})}),t.length&&(E0=E0??e,sE=sE??t[0],X5=X5.concat(e),v1=v1.length?v1:t)});var YL,QL;E0&&(AK=w1[E0.network]||[],iE&&sE&&(DK=((QL=(YL=uu[E0.network])==null?void 0:YL[iE.network])==null?void 0:QL[sE.symbol])||[]));function dy(e,t){return e.name.localeCompare(t.name)}function $x(e,t){return e.type==="native"?1:e.symbol.localeCompare(t.symbol)}X5.sort(dy);AK.sort(dy);v1.sort($x);DK.sort($x);cE.sort(dy);lE.sort(dy);function qye(e,t,n){var r,o;return e&&t&&n?((o=(r=uf[e.network])==null?void 0:r[t.network])==null?void 0:o[n.symbol])||[]:[]}function kK(e,t,n,r=[]){var o,a;if(e&&t&&n){const i=(((a=(o=uu[e.network])==null?void 0:o[t.network])==null?void 0:a[n.symbol])||[]).sort($x);return i.length?i:r}return r}function n4(e){return{defaultSourceChains:e?J5:cE,defaultTargetChains:e?Z5:lE}}function uE(e,t,n=[],r){var o;if(e&&t){const i=(((o=(r?Zp:Jp)[e.network])==null?void 0:o[t.network])||[]).sort($x);return i.length?i:n}return n}function r4(e,t=[],n){if(e){const o=((n?_1:E1)[e.network]||[]).sort(dy);return o.length?o:t}return t}function Wye(e){switch(e){case xn.PENDING:return"Pending";case xn.PENDING_TO_CONFIRM_REFUND:return"Refunding";case xn.PENDING_TO_REFUND:return"Pending to Refund";case xn.PENDING_TO_CLAIM:return"Pending to Claim";case xn.REFUNDED:return"Refunded";case xn.SUCCESS:return"Finished";default:return"Unknown"}}function vr(e){var t;return(t=e==null?void 0:e.startsWith)!=null&&t.call(e,"http")?e:`images/token/${e||"unknown.svg"}`}function Rn(e){var t;return(t=e==null?void 0:e.startsWith)!=null&&t.call(e,"http")?e:`images/network/${e||"unknown.png"}`}function Gye(e){var t;return(t=e==null?void 0:e.startsWith)!=null&&t.call(e,"http")?e:`images/bridge/${e}`}function Vye(e){return Math.round(Number(e)*Ax)}function ml(e){return Number((e/Ax).toFixed(3))}function o4(e,t){const n=Cme,r=t?Tme:Sme;return n<=e&&e<=r}async function Kye(e,t,n,r,o,a){const s=await fetch(`https://api.msgport.xyz/ormp/fee?from_chain_id=${e}&to_chain_id=${t}&payload=${a}&from_address=${n}&to_address=${r}&refund_address=${o}`),c=await s.json();if(s.ok&&c.code===0){const l=BigInt(c.data.fee),u=c.data.params;return{fee:l,extParams:u}}}function jK(e){return e.map(t=>{const n=t.split("-").slice(-1).at(0);if(!n||!Ea(n))throw new Error(`Failed to extract transfer id, id: ${t}`);return n})}function Yye(e){let t,n,r;if(e){const o=e.split("/");fj(e)?t=e:o.length===2&&(r=Number(o[0]),n=Number(o[1]))}return{hash:t,total:n,completed:r}}const Qye=()=>{const e=document.createElement("div");return e.className="fixed top-medium right-medium lg:top-5 lg:right-5 flex flex-col overflow-hidden z-40",document.body.appendChild(e),e},Xye=(e,t,n)=>{const r=document.createElement("div");r.className=`rounded-xl shadow-lg border-white/5 border lg:border-none bg-secondary p-medium lg:p-5 flex items-center gap-medium mb-medium animate-notification-enter relative w-[82vw] lg:w-96 ${e.className}`;const o=uz(r);return o.render(y.jsxs(y.Fragment,{children:[y.jsx("img",{alt:t,width:20,height:20,src:`images/notification/${t}.svg`,className:"shrink-0 self-start lg:hidden"}),y.jsx("img",{alt:t,width:24,height:24,src:`images/notification/${t}.svg`,className:"hidden shrink-0 self-start lg:inline"}),y.jsxs("div",{className:"gap-small flex flex-col",children:[e.title&&y.jsx("div",{className:"break-all text-base font-medium text-white",children:e.title}),e.description&&y.jsx("div",{className:"break-all text-sm font-medium text-white",children:e.description})]}),e.closeable&&y.jsx("button",{onClick:n,className:"absolute right-1 top-1 rounded-full bg-transparent p-[2px] transition-transform hover:scale-105 hover:bg-white/10 active:scale-95 lg:right-2 lg:top-2",children:y.jsx("img",{alt:"Close",width:16,height:16,src:"images/close-white.svg"})})]})),{domNode:r,root:o}},Jye=4500;let JS=0,Wl=null;const iv=(e,t)=>{Wl||(Wl=Qye());const{domNode:n,root:r}=Xye(e,t,()=>{n.classList.add("animate-notification-leave")}),o=document.createElement("div");o.appendChild(n),Wl.appendChild(o),JS+=1;let a=!1,i=!1;n.addEventListener("mouseenter",()=>{i=!0}),n.addEventListener("mouseleave",()=>{i=!1,a&&setTimeout(()=>{n.classList.add("animate-notification-leave")},400)}),n.addEventListener("animationend",c=>{c.stopPropagation(),n.classList.contains("animate-notification-enter")?n.classList.remove("animate-notification-enter"):(o.style.height=`${n.offsetHeight}px`,r.unmount(),n.remove(),e.onClose&&e.onClose(),o.classList.add("animate-notification-fadeout"))}),o.addEventListener("animationend",()=>{o.remove(),JS-=1,JS===0&&(Wl==null||Wl.remove(),Wl=null)});const s=()=>{n.classList.add("animate-notification-leave")};return e.duration!==0&&setTimeout(()=>{a=!0,i||n.classList.add("animate-notification-leave")},e.duration&&e.duration>1e3?e.duration:Jye),s},ms={error:e=>iv(e,"error"),warn:e=>iv(e,"warn"),info:e=>iv(e,"info"),success:e=>iv(e,"success")};function KR({href:e,children:t}){return y.jsx("a",{target:"_blank",rel:"noopener",className:"text-primary break-all hover:underline",href:e,children:t})}function Vr(e,t,n){var i;const r=(i=t==null?void 0:t.blockExplorers)==null?void 0:i.default.url,o=e==null?void 0:e.transactionHash,a=new URL(`tx/${o}`,r).href;(e==null?void 0:e.status)==="success"&&o?ms.success({title:`${n??"Transaction"} successful`,description:y.jsx(KR,{href:a,children:o})}):(e==null?void 0:e.status)==="reverted"&&r&&ms.error({title:`${n??"Transaction"} failed`,description:y.jsx(KR,{href:a,children:o})})}function an(e){return ms.error({title:"Oops an error occurred",description:e.message})}function fr(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Xu(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const PK=6048e5,Zye=864e5,YR=6e4,QR=525600,XR=43200,JR=1440;let ebe={};function fy(){return ebe}function fg(e,t){var s,c,l,u;const n=fy(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,o=fr(e),a=o.getDay(),i=(a=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function ZR(e){const t=fr(e);return t.setHours(0,0,0,0),t}function fE(e){const t=fr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function tbe(e,t){const n=ZR(e),r=ZR(t),o=+n-fE(n),a=+r-fE(r);return Math.round((o-a)/Zye)}function nbe(e){const t=IK(e),n=Xu(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),dE(n)}function rbe(e,t){const n=fr(e),r=fr(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function obe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function abe(e){if(!obe(e)&&typeof e!="number")return!1;const t=fr(e);return!isNaN(Number(t))}function ibe(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function sbe(e){const t=fr(e),n=Xu(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const cbe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},lbe=(e,t,n)=>{let r;const o=cbe[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ZS(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ube={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},dbe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fbe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hbe={date:ZS({formats:ube,defaultWidth:"full"}),time:ZS({formats:dbe,defaultWidth:"full"}),dateTime:ZS({formats:fbe,defaultWidth:"full"})},mbe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pbe=(e,t,n,r)=>mbe[e];function vp(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const gbe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ybe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bbe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},vbe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},wbe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ebe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},_be=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},xbe={ordinalNumber:_be,era:vp({values:gbe,defaultWidth:"wide"}),quarter:vp({values:ybe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:vp({values:bbe,defaultWidth:"wide"}),day:vp({values:vbe,defaultWidth:"wide"}),dayPeriod:vp({values:wbe,defaultWidth:"wide",formattingValues:Ebe,defaultFormattingWidth:"wide"})};function wp(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Sbe(s,d=>d.test(i)):Cbe(s,d=>d.test(i));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(i.length);return{value:l,rest:u}}}function Cbe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Sbe(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const Abe=/^(\d+)(th|st|nd|rd)?/i,Dbe=/\d+/i,kbe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},jbe={any:[/^b/i,/^(a|c)/i]},Pbe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ibe={any:[/1/i,/2/i,/3/i,/4/i]},Obe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Rbe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Nbe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Bbe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Fbe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Mbe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Lbe={ordinalNumber:Tbe({matchPattern:Abe,parsePattern:Dbe,valueCallback:e=>parseInt(e,10)}),era:wp({matchPatterns:kbe,defaultMatchWidth:"wide",parsePatterns:jbe,defaultParseWidth:"any"}),quarter:wp({matchPatterns:Pbe,defaultMatchWidth:"wide",parsePatterns:Ibe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:wp({matchPatterns:Obe,defaultMatchWidth:"wide",parsePatterns:Rbe,defaultParseWidth:"any"}),day:wp({matchPatterns:Nbe,defaultMatchWidth:"wide",parsePatterns:Bbe,defaultParseWidth:"any"}),dayPeriod:wp({matchPatterns:Fbe,defaultMatchWidth:"any",parsePatterns:Mbe,defaultParseWidth:"any"})},OK={code:"en-US",formatDistance:lbe,formatLong:hbe,formatRelative:pbe,localize:xbe,match:Lbe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ube(e){const t=fr(e);return tbe(t,sbe(t))+1}function $be(e){const t=fr(e),n=+dE(t)-+nbe(t);return Math.round(n/PK)+1}function RK(e,t){var u,d,f,h;const n=fr(e),r=n.getFullYear(),o=fy(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((h=(f=o.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=Xu(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=fg(i,t),c=Xu(e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const l=fg(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function zbe(e,t){var s,c,l,u;const n=fy(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??1,o=RK(e,t),a=Xu(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),fg(a,t)}function Hbe(e,t){const n=fr(e),r=+fg(n,t)-+zbe(n,t);return Math.round(r/PK)+1}function It(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const lc={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return It(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):It(n+1,2)},d(e,t){return It(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return It(e.getHours()%12||12,t.length)},H(e,t){return It(e.getHours(),t.length)},m(e,t){return It(e.getMinutes(),t.length)},s(e,t){return It(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return It(o,t.length)}},Yd={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},eN={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return lc.y(e,t)},Y:function(e,t,n,r){const o=RK(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return It(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):It(a,t.length)},R:function(e,t){const n=IK(e);return It(n,t.length)},u:function(e,t){const n=e.getFullYear();return It(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return It(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return It(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return lc.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return It(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Hbe(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):It(o,t.length)},I:function(e,t,n){const r=$be(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):It(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):lc.d(e,t)},D:function(e,t,n){const r=Ube(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):It(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return It(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return It(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return It(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Yd.noon:r===0?o=Yd.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Yd.evening:r>=12?o=Yd.afternoon:r>=4?o=Yd.morning:o=Yd.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return lc.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):lc.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):It(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):It(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):lc.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):lc.s(e,t)},S:function(e,t){return lc.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return nN(r);case"XXXX":case"XX":return nu(r);case"XXXXX":case"XXX":default:return nu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return nN(r);case"xxxx":case"xx":return nu(r);case"xxxxx":case"xxx":default:return nu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+tN(r,":");case"OOOO":default:return"GMT"+nu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+tN(r,":");case"zzzz":default:return"GMT"+nu(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return It(r,t.length)},T:function(e,t,n){const r=e.getTime();return It(r,t.length)}};function tN(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+It(a,2)}function nN(e,t){return e%60===0?(e>0?"-":"+")+It(Math.abs(e)/60,2):nu(e,t)}function nu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=It(Math.trunc(r/60),2),a=It(r%60,2);return n+o+t+a}const rN=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},NK=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},qbe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return rN(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",rN(r,t)).replace("{{time}}",NK(o,t))},Wbe={p:NK,P:qbe},Gbe=/^D+$/,Vbe=/^Y+$/,Kbe=["D","DD","YY","YYYY"];function Ybe(e){return Gbe.test(e)}function Qbe(e){return Vbe.test(e)}function Xbe(e,t,n){const r=Jbe(e,t,n);if(console.warn(r),Kbe.includes(e))throw new RangeError(r)}function Jbe(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Zbe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eve=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tve=/^'([^]*?)'?$/,nve=/''/g,rve=/[a-zA-Z]/;function ove(e,t,n){var u,d,f,h,m,p,b,v;const r=fy(),o=(n==null?void 0:n.locale)??r.locale??OK,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((p=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((v=(b=r.locale)==null?void 0:b.options)==null?void 0:v.weekStartsOn)??0,s=fr(e);if(!abe(s))throw new RangeError("Invalid time value");let c=t.match(eve).map(g=>{const w=g[0];if(w==="p"||w==="P"){const _=Wbe[w];return _(g,o.formatLong)}return g}).join("").match(Zbe).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const w=g[0];if(w==="'")return{isToken:!1,value:ave(g)};if(eN[w])return{isToken:!0,value:g};if(w.match(rve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:g}});o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const l={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return c.map(g=>{if(!g.isToken)return g.value;const w=g.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Qbe(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ybe(w))&&Xbe(w,t,String(e));const _=eN[w[0]];return _(s,w,o.localize,l)}).join("")}function ave(e){const t=e.match(tve);return t?t[1].replace(nve,"'"):e}function BK(e,t,n){const r=fy(),o=(n==null?void 0:n.locale)??r.locale??OK,a=rbe(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a});let s,c;a>0?(s=fr(t),c=fr(e)):(s=fr(e),c=fr(t));const l=ibe((n==null?void 0:n.roundingMethod)??"round"),u=c.getTime()-s.getTime(),d=u/YR,f=fE(c)-fE(s),h=(u-f)/YR,m=n==null?void 0:n.unit;let p;if(m?p=m:d<1?p="second":d<60?p="minute":d=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function sve(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function cve(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function lve(e,t){const n=hve(t);return"formatToParts"in n?dve(n,e):fve(n,e)}const uve={year:0,month:1,day:2,hour:3,minute:4,second:5};function dve(e,t){try{const n=e.formatToParts(t),r=[];for(let o=0;o=0?a:1e3+a,r-o}function gve(e,t,n){let o=e.getTime()-t;const a=eD(new Date(o),n);if(t===a)return t;o-=a-t;const i=eD(new Date(o),n);return a===i?a:Math.max(a,i)}function iN(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const sN={};function yve(e){if(sN[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),sN[e]=!0,!0}catch{return!1}}const bve=60*1e3,vve={X:function(e,t,n){const r=n3(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return cN(r);case"XXXX":case"XX":return df(r);case"XXXXX":case"XXX":default:return df(r,":")}},x:function(e,t,n){const r=n3(n.timeZone,e);switch(t){case"x":return cN(r);case"xxxx":case"xx":return df(r);case"xxxxx":case"xxx":default:return df(r,":")}},O:function(e,t,n){const r=n3(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+wve(r,":");case"OOOO":default:return"GMT"+df(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return oN("short",e,n);case"zzzz":default:return oN("long",e,n)}}};function n3(e,t){const n=e?a4(e,t,!0)/bve:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function hE(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length0?"-":"+",r=Math.abs(e),o=hE(Math.floor(r/60),2),a=hE(Math.floor(r%60),2);return n+o+t+a}function cN(e,t){return e%60===0?(e>0?"-":"+")+hE(Math.abs(e)/60,2):df(e,t)}function wve(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+hE(a,2)}function lN(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const Eve=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r3=36e5,uN=6e4,_ve=2,Kr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Eve};function MK(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?_ve:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=xve(e),{year:o,restDateString:a}=Cve(r.date,n),i=Sve(a,o);if(i===null||isNaN(i.getTime()))return new Date(NaN);if(i){const s=i.getTime();let c=0,l;if(r.time&&(c=Tve(r.time),c===null||isNaN(c)))return new Date(NaN);if(r.timeZone||t.timeZone){if(l=a4(r.timeZone||t.timeZone,new Date(s+c)),isNaN(l))return new Date(NaN)}else l=lN(new Date(s+c)),l=lN(new Date(s+c+l));return new Date(s+c+l)}else return new Date(NaN)}function xve(e){const t={};let n=Kr.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=Kr.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const o=Kr.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function Cve(e,t){if(e){const n=Kr.YYY[t],r=Kr.YYYYY[t];let o=Kr.YYYY.exec(e)||r.exec(e);if(o){const a=o[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(o=Kr.YY.exec(e)||n.exec(e),o){const a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}}return{year:null}}function Sve(e,t){if(t===null)return null;let n,r,o;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let a=Kr.MM.exec(e);if(a)return n=new Date(0),r=parseInt(a[1],10)-1,fN(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(a=Kr.DDD.exec(e),a){n=new Date(0);const i=parseInt(a[1],10);return kve(t,i)?(n.setUTCFullYear(t,0,i),n):new Date(NaN)}if(a=Kr.MMDD.exec(e),a){n=new Date(0),r=parseInt(a[1],10)-1;const i=parseInt(a[2],10);return fN(t,r,i)?(n.setUTCFullYear(t,r,i),n):new Date(NaN)}if(a=Kr.Www.exec(e),a)return o=parseInt(a[1],10)-1,hN(o)?dN(t,o):new Date(NaN);if(a=Kr.WwwD.exec(e),a){o=parseInt(a[1],10)-1;const i=parseInt(a[2],10)-1;return hN(o,i)?dN(t,o,i):new Date(NaN)}return null}function Tve(e){let t,n,r=Kr.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),o3(t)?t%24*r3:NaN;if(r=Kr.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),o3(t,n)?t%24*r3+n*uN:NaN;if(r=Kr.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const o=parseFloat(r[3].replace(",","."));return o3(t,n,o)?t%24*r3+n*uN+o*1e3:NaN}return null}function dN(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}const Ave=[31,28,31,30,31,30,31,31,30,31,30,31],Dve=[31,29,31,30,31,30,31,31,30,31,30,31];function LK(e){return e%400===0||e%4===0&&e%100!==0}function fN(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=LK(e);if(r&&n>Dve[t]||!r&&n>Ave[t])return!1}return!0}function kve(e,t){if(t<1)return!1;const n=LK(e);return!(n&&t>366||!n&&t>365)}function hN(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function o3(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const jve=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Pve(e,t,n={}){t=String(t);const r=t.match(jve);if(r){const o=MK(n.originalDate||e,n);t=r.reduce(function(a,i){if(i[0]==="'")return a;const s=a.indexOf(i),c=a[s-1]==="'",l=a.replace(i,"'"+vve[i[0]](o,i,n)+"'");return c?l.substring(0,s-1)+l.substring(s+1):l},t)}return ove(e,t,n)}function Ive(e,t,n){e=MK(e,n);const r=a4(t,e,!0),o=new Date(e.getTime()-r),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}function mN(e,t,n,r){return r={...r,timeZone:t,originalDate:e},Pve(Ive(e,t,{timeZone:r.timeZone}),n,r)}function Ove(e){return`${BK(e,Date.now(),{addSuffix:!0})}`}function hy(e,t){return t!=null&&t.compact?mN(e,"Africa/Abidjan","yyyy-MM-dd hh:mm:ss"):`${mN(e,"Africa/Abidjan","MMM-dd-yyyy hh:mm:ss aa")} +UTC`}function Rve(e){const o=Math.floor(e/36e5),a=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3);return`0${o}`.slice(-2)+":"+`0${a}`.slice(-2)+":"+`0${i}`.slice(-2)}const Nve={CRAB:{logo:"crab.png",category:"CRAB",symbol:"CRAB"},ETH:{logo:"eth.png",category:"ETH",symbol:"ETH"},RING:{logo:"ring.png",category:"RING",symbol:"RING"},USDC:{logo:"usdc.png",category:"USDC",symbol:"USDC"},USDT:{logo:"usdt.png",category:"USDT",symbol:"USDT"},PINK:{logo:"pink.png",category:"PINK",symbol:"PINK"},LINK:{logo:"link.png",category:"LINK",symbol:"LINK"},DAI:{logo:"dai.png",category:"DAI",symbol:"DAI"},BTC:{logo:"btc.png",category:"BTC",symbol:"BTC"}},UK=["USDC","USDT","ETH","BTC","DAI","LINK","RING","CRAB","PINK"],$K=new Set,tD=new Map;hm().filter(({hidden:e})=>!e).forEach(e=>{e.tokens.filter(({category:t})=>UK.some(n=>n===t)).forEach(t=>{t.cross.filter(({hidden:n,bridge:r})=>!n&&r.category==="lnbridge").forEach(n=>{const r=st(n.target.network);(r==null?void 0:r.tokens.find(({symbol:a})=>a===n.target.symbol))&&($K.add(t.category),tD.set(t.category,(tD.get(t.category)||[]).filter(({id:a})=>a!==e.id).concat(e)))})})});function Bve(){return UK.filter(e=>$K.has(e)||!0).map(e=>Nve[e])}function a3(e){return tD.get(e)||[]}function ff(e,t){return e.tokens.filter(({category:n,cross:r})=>n===t&&r.filter(({hidden:o,bridge:a})=>!o&&a.category==="lnbridge").length)}function Ep(e){return e.cross.filter(({hidden:t,bridge:n})=>!t&&n.category==="lnbridge").map(({target:t})=>st(t.network)).filter(t=>t)}function yc(e,t){return t.tokens.filter(({symbol:n})=>e.cross.some(r=>!r.hidden&&r.target.symbol===n&&r.target.network===t.network&&r.bridge.category==="lnbridge"))}function In(e){return typeof e=="function"}function Fve(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var i3=Fve(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription: -`+n.map(function(r,o){return o+1+") "+r.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=n}});function nD(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var zx=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,a;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Ku(i),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(p){t={error:p}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}else i.remove(this);var u=this.initialTeardown;if(In(u))try{u()}catch(p){a=p instanceof i3?p.errors:[p]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=Ku(d),h=f.next();!h.done;h=f.next()){var m=h.value;try{pN(m)}catch(p){a=a??[],p instanceof i3?a=vn(vn([],cl(a)),cl(p.errors)):a.push(p)}}}catch(p){r={error:p}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}if(a)throw new i3(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)pN(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&nD(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&nD(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();zx.EMPTY;function zK(e){return e instanceof zx||e&&"closed"in e&&In(e.remove)&&In(e.add)&&In(e.unsubscribe)}function pN(e){In(e)?e():e.unsubscribe()}var HK={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},qK={setTimeout:function(e,t){for(var n=[],r=2;r{try{e.setItem(t,r(s));return}catch(c){return c}};return{persistClient:P1e(s=>{let c=s,l=i(c),u=0;for(;l&&c;)u++,c=a==null?void 0:a({persistedClient:c,error:l,errorCount:u}),c&&(l=i(c))},n),restoreClient:()=>{const s=e.getItem(t);if(s)return o(s)},removeClient:()=>{e.removeItem(t)}}}return{persistClient:vN,restoreClient:()=>{},removeClient:vN}}function P1e(e,t=100){let n=null,r;return function(...o){r=o,n===null&&(n=setTimeout(()=>{e(...r),n=null},t))}}function vN(){}class mm{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const mg=typeof window>"u"||"Deno"in window;function ia(){}function I1e(e,t){return typeof e=="function"?e(t):e}function iD(e){return typeof e=="number"&&e>=0&&e!==1/0}function fY(e,t){return Math.max(e+(t||0)-Date.now(),0)}function cv(e,t,n){return my(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function hY(e,t,n){return my(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function xc(e,t,n){return my(e)?[{...t,queryKey:e},n]:[e||{},t]}function wN(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(my(i)){if(r){if(t.queryHash!==u4(i,t.options))return!1}else if(!mE(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||a&&!a(t))}function EN(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:a}=e;if(my(a)){if(!t.options.mutationKey)return!1;if(n){if(vu(t.options.mutationKey)!==vu(a))return!1}else if(!mE(t.options.mutationKey,a))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function u4(e,t){return((t==null?void 0:t.queryKeyHashFn)||vu)(e)}function vu(e){return JSON.stringify(e,(t,n)=>sD(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function mE(e,t){return mY(e,t)}function mY(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!mY(e[n],t[n])):!1}function pY(e,t){if(e===t)return e;const n=_N(e)&&_N(t);if(n||sD(e)&&sD(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),a=o.length,i=n?[]:{};let s=0;for(let c=0;c"u")return!0;const n=t.prototype;return!(!xN(n)||!n.hasOwnProperty("isPrototypeOf"))}function xN(e){return Object.prototype.toString.call(e)==="[object Object]"}function my(e){return Array.isArray(e)}function gY(e){return new Promise(t=>{setTimeout(t,e)})}function CN(e){gY(0).then(e)}function O1e(){if(typeof AbortController=="function")return new AbortController}function cD(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?pY(e,t):t}class R1e extends mm{constructor(){super(),this.setup=t=>{if(!mg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const gE=new R1e,SN=["online","offline"];class N1e extends mm{constructor(){super(),this.setup=t=>{if(!mg&&window.addEventListener){const n=()=>t();return SN.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{SN.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const yE=new N1e;function B1e(e){return Math.min(1e3*2**e,3e4)}function Wx(e){return(e??"online")==="online"?yE.isOnline():!0}class yY{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function x1(e){return e instanceof yY}function bY(e){let t=!1,n=0,r=!1,o,a,i;const s=new Promise((b,v)=>{a=b,i=v}),c=b=>{r||(h(new yY(b)),e.abort==null||e.abort())},l=()=>{t=!0},u=()=>{t=!1},d=()=>!gE.isFocused()||e.networkMode!=="always"&&!yE.isOnline(),f=b=>{r||(r=!0,e.onSuccess==null||e.onSuccess(b),o==null||o(),a(b))},h=b=>{r||(r=!0,e.onError==null||e.onError(b),o==null||o(),i(b))},m=()=>new Promise(b=>{o=v=>{const g=r||!d();return g&&b(v),g},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),p=()=>{if(r)return;let b;try{b=e.fn()}catch(v){b=Promise.reject(v)}Promise.resolve(b).then(f).catch(v=>{var g,w;if(r)return;const _=(g=e.retry)!=null?g:3,C=(w=e.retryDelay)!=null?w:B1e,x=typeof C=="function"?C(n,v):C,E=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,v);if(t||!E){h(v);return}n++,e.onFail==null||e.onFail(n,v),gY(x).then(()=>{if(d())return m()}).then(()=>{t?h(v):p()})})};return Wx(e.networkMode)?p():m().then(p),{promise:s,cancel:c,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:l,continueRetry:u}}const d4=console;function F1e(){let e=[],t=0,n=u=>{u()},r=u=>{u()};const o=u=>{let d;t++;try{d=u()}finally{t--,t||s()}return d},a=u=>{t?e.push(u):CN(()=>{n(u)})},i=u=>(...d)=>{a(()=>{u(...d)})},s=()=>{const u=e;e=[],u.length&&CN(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:o,batchCalls:i,schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u}}}const gn=F1e();class vY{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),iD(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(mg?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class M1e extends vY{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||d4,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||L1e(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=cD(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(ia).catch(ia):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!fY(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const i=O1e(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};c(s);const l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),u={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};if(c(u),(r=this.options.behavior)==null||r.onFetch(u),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=u.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=u.fetchOptions)==null?void 0:d.meta})}const f=h=>{if(x1(h)&&h.silent||this.dispatch({type:"error",error:h}),!x1(h)){var m,p,b,v;(m=(p=this.cache.config).onError)==null||m.call(p,h,this),(b=(v=this.cache.config).onSettled)==null||b.call(v,this.state.data,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=bY({fn:u.fetchFn,abort:i==null?void 0:i.abort.bind(i),onSuccess:h=>{var m,p,b,v;if(typeof h>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(h),(m=(p=this.cache.config).onSuccess)==null||m.call(p,h,this),(b=(v=this.cache.config).onSettled)==null||b.call(v,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(h,m)=>{this.dispatch({type:"failed",failureCount:h,error:m})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,a;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:Wx(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return x1(i)&&i.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),gn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function L1e(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class U1e extends mm{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const a=n.queryKey,i=(o=n.queryHash)!=null?o:u4(a,n);let s=this.get(i);return s||(s=new M1e({cache:this,logger:t.getLogger(),queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){gn.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=xc(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>wN(r,o))}findAll(t,n){const[r]=xc(t,n);return Object.keys(r).length>0?this.queries.filter(o=>wN(r,o)):this.queries}notify(t){gn.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){gn.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){gn.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class $1e extends vY{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||d4,this.observers=[],this.state=t.state||wY(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var E;return this.retryer=bY({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(T,k)=>{this.dispatch({type:"failed",failureCount:T,error:k})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(E=this.options.retry)!=null?E:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,a,i,s,c,l,u;if(!n){var d,f,h,m;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(f=this.mutationCache.config).onMutate)==null?void 0:d.call(f,this.state.variables,this));const T=await((h=(m=this.options).onMutate)==null?void 0:h.call(m,this.state.variables));T!==this.state.context&&this.dispatch({type:"loading",context:T,variables:this.state.variables})}const E=await t();return await((r=(o=this.mutationCache.config).onSuccess)==null?void 0:r.call(o,E,this.state.variables,this.state.context,this)),await((a=(i=this.options).onSuccess)==null?void 0:a.call(i,E,this.state.variables,this.state.context)),await((s=(c=this.mutationCache.config).onSettled)==null?void 0:s.call(c,E,null,this.state.variables,this.state.context,this)),await((l=(u=this.options).onSettled)==null?void 0:l.call(u,E,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:E}),E}catch(E){try{var p,b,v,g,w,_,C,x;throw await((p=(b=this.mutationCache.config).onError)==null?void 0:p.call(b,E,this.state.variables,this.state.context,this)),await((v=(g=this.options).onError)==null?void 0:v.call(g,E,this.state.variables,this.state.context)),await((w=(_=this.mutationCache.config).onSettled)==null?void 0:w.call(_,void 0,E,this.state.variables,this.state.context,this)),await((C=(x=this.options).onSettled)==null?void 0:C.call(x,void 0,E,this.state.variables,this.state.context)),E}finally{this.dispatch({type:"error",error:E})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Wx(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),gn.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function wY(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class z1e extends mm{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new $1e({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){gn.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>EN(t,n))}findAll(t){return this.mutations.filter(n=>EN(t,n))}notify(t){gn.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return gn.batch(()=>n.reduce((r,o)=>r.then(()=>o.continue().catch(ia)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function H1e(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,a,i;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,c=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,l=c==null?void 0:c.pageParam,u=(c==null?void 0:c.direction)==="forward",d=(c==null?void 0:c.direction)==="backward",f=((a=e.state.data)==null?void 0:a.pages)||[],h=((i=e.state.data)==null?void 0:i.pageParams)||[];let m=h,p=!1;const b=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>{var E;if((E=e.signal)!=null&&E.aborted)p=!0;else{var T;(T=e.signal)==null||T.addEventListener("abort",()=>{p=!0})}return e.signal}})},v=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),g=(x,E,T,k)=>(m=k?[E,...m]:[...m,E],k?[T,...x]:[...x,T]),w=(x,E,T,k)=>{if(p)return Promise.reject("Cancelled");if(typeof T>"u"&&!E&&x.length)return Promise.resolve(x);const D={queryKey:e.queryKey,pageParam:T,meta:e.options.meta};b(D);const R=v(D);return Promise.resolve(R).then(B=>g(x,T,B,k))};let _;if(!f.length)_=w([]);else if(u){const x=typeof l<"u",E=x?l:TN(e.options,f);_=w(f,x,E)}else if(d){const x=typeof l<"u",E=x?l:q1e(e.options,f);_=w(f,x,E,!0)}else{m=[];const x=typeof e.options.getNextPageParam>"u";_=(s&&f[0]?s(f[0],0,f):!0)?w([],x,h[0]):Promise.resolve(g([],h[0],f[0]));for(let T=1;T{if(s&&f[T]?s(f[T],T,f):!0){const R=x?h[T]:TN(e.options,k);return w(k,x,R)}return Promise.resolve(g(k,h[T],f[T]))})}return _.then(x=>({pages:x,pageParams:m}))}}}}function TN(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function q1e(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class W1e{constructor(t={}){this.queryCache=t.queryCache||new U1e,this.mutationCache=t.mutationCache||new z1e,this.logger=t.logger||d4,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=gE.subscribe(()=>{gE.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=yE.subscribe(()=>{yE.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=xc(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const o=cv(t,n,r),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),a=o==null?void 0:o.state.data,i=I1e(n,a);if(typeof i>"u")return;const s=cv(t),c=this.defaultQueryOptions(s);return this.queryCache.build(this,c).setData(i,{...r,manual:!0})}setQueriesData(t,n,r){return gn.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=xc(t,n),o=this.queryCache;gn.batch(()=>{o.findAll(r).forEach(a=>{o.remove(a)})})}resetQueries(t,n,r){const[o,a]=xc(t,n,r),i=this.queryCache,s={type:"active",...o};return gn.batch(()=>(i.findAll(o).forEach(c=>{c.reset()}),this.refetchQueries(s,a)))}cancelQueries(t,n,r){const[o,a={}]=xc(t,n,r);typeof a.revert>"u"&&(a.revert=!0);const i=gn.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(a)));return Promise.all(i).then(ia).catch(ia)}invalidateQueries(t,n,r){const[o,a]=xc(t,n,r);return gn.batch(()=>{var i,s;if(this.queryCache.findAll(o).forEach(l=>{l.invalidate()}),o.refetchType==="none")return Promise.resolve();const c={...o,type:(i=(s=o.refetchType)!=null?s:o.type)!=null?i:"active"};return this.refetchQueries(c,a)})}refetchQueries(t,n,r){const[o,a]=xc(t,n,r),i=gn.batch(()=>this.queryCache.findAll(o).filter(c=>!c.isDisabled()).map(c=>{var l;return c.fetch(void 0,{...a,cancelRefetch:(l=a==null?void 0:a.cancelRefetch)!=null?l:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(i).then(ia);return a!=null&&a.throwOnError||(s=s.catch(ia)),s}fetchQuery(t,n,r){const o=cv(t,n,r),a=this.defaultQueryOptions(o);typeof a.retry>"u"&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(ia).catch(ia)}fetchInfiniteQuery(t,n,r){const o=cv(t,n,r);return o.behavior=H1e(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(ia).catch(ia)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>vu(t)===vu(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>mE(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>vu(t)===vu(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>mE(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=u4(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class G1e extends mm{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),AN(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lD(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lD(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),pE(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const a=this.hasListeners();a&&DN(this.currentQuery,o,this.options,r)&&this.executeFetch(),this.updateResult(n),a&&(this.currentQuery!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const i=this.computeRefetchInterval();a&&(this.currentQuery!==o||this.options.enabled!==r.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return K1e(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ia)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),mg||this.currentResult.isStale||!iD(this.options.staleTime))return;const n=fY(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(mg||this.options.enabled===!1||!iD(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||gE.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,o=this.options,a=this.currentResult,i=this.currentResultState,s=this.currentResultOptions,c=t!==r,l=c?t.state:this.currentQueryInitialState,u=c?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:f,error:h,errorUpdatedAt:m,fetchStatus:p,status:b}=d,v=!1,g=!1,w;if(n._optimisticResults){const T=this.hasListeners(),k=!T&&AN(t,n),D=T&&DN(t,r,n,o);(k||D)&&(p=Wx(t.options.networkMode)?"fetching":"paused",f||(b="loading")),n._optimisticResults==="isRestoring"&&(p="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&u!=null&&u.isSuccess&&b!=="error")w=u.data,f=u.dataUpdatedAt,b=u.status,v=!0;else if(n.select&&typeof d.data<"u")if(a&&d.data===(i==null?void 0:i.data)&&n.select===this.selectFn)w=this.selectResult;else try{this.selectFn=n.select,w=n.select(d.data),w=cD(a==null?void 0:a.data,w,n),this.selectResult=w,this.selectError=null}catch(T){this.selectError=T}else w=d.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&b==="loading"){let T;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))T=a.data;else if(T=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof T<"u")try{T=n.select(T),this.selectError=null}catch(k){this.selectError=k}typeof T<"u"&&(b="success",w=cD(a==null?void 0:a.data,T,n),g=!0)}this.selectError&&(h=this.selectError,w=this.selectResult,m=Date.now(),b="error");const _=p==="fetching",C=b==="loading",x=b==="error";return{status:b,fetchStatus:p,isLoading:C,isSuccess:b==="success",isError:x,isInitialLoading:C&&_,data:w,dataUpdatedAt:f,error:h,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:_,isRefetching:_&&!C,isLoadingError:x&&d.dataUpdatedAt===0,isPaused:p==="paused",isPlaceholderData:g,isPreviousData:v,isRefetchError:x&&d.dataUpdatedAt!==0,isStale:f4(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,pE(r,n))return;this.currentResult=r;const o={cache:!0},a=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!this.trackedProps.size)return!0;const c=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&c.add("error"),Object.keys(this.currentResult).some(l=>{const u=l;return this.currentResult[u]!==n[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&a()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!x1(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){gn.batch(()=>{if(t.onSuccess){var n,r,o,a;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(o=(a=this.options).onSettled)==null||o.call(a,this.currentResult.data,null)}else if(t.onError){var i,s,c,l;(i=(s=this.options).onError)==null||i.call(s,this.currentResult.error),(c=(l=this.options).onSettled)==null||c.call(l,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function V1e(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function AN(e,t){return V1e(e,t)||e.state.dataUpdatedAt>0&&lD(e,t,t.refetchOnMount)}function lD(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&f4(e,t)}return!1}function DN(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&f4(e,n)}function f4(e,t){return e.isStaleByTime(t.staleTime)}function K1e(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!pE(e.getCurrentResult(),t)}let Y1e=class extends mm{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),pE(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:wY(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){gn.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,o,a;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(o=(a=this.mutateOptions).onSettled)==null||o.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var i,s,c,l;(i=(s=this.mutateOptions).onError)==null||i.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(c=(l=this.mutateOptions).onSettled)==null||c.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)})})}};function Q1e(e){return{mutationKey:e.options.mutationKey,state:e.state}}function X1e(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}function J1e(e){return e.state.isPaused}function Z1e(e){return e.state.status==="success"}function ewe(e,t={}){const n=[],r=[];if(t.dehydrateMutations!==!1){const o=t.shouldDehydrateMutation||J1e;e.getMutationCache().getAll().forEach(a=>{o(a)&&n.push(Q1e(a))})}if(t.dehydrateQueries!==!1){const o=t.shouldDehydrateQuery||Z1e;e.getQueryCache().getAll().forEach(a=>{o(a)&&r.push(X1e(a))})}return{mutations:n,queries:r}}function twe(e,t,n){if(typeof t!="object"||t===null)return;const r=e.getMutationCache(),o=e.getQueryCache(),a=t.mutations||[],i=t.queries||[];a.forEach(s=>{var c;r.build(e,{...n==null||(c=n.defaultOptions)==null?void 0:c.mutations,mutationKey:s.mutationKey},s.state)}),i.forEach(({queryKey:s,state:c,queryHash:l})=>{var u;const d=o.get(l);if(d){if(d.state.dataUpdatedAt"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?lwe:cwe;_Y.useSyncExternalStore=xh.useSyncExternalStore!==void 0?xh.useSyncExternalStore:uwe;EY.exports=_Y;var h4=EY.exports;const dwe=h4.useSyncExternalStore,kN=S.createContext(void 0),xY=S.createContext(!1);function CY(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=kN),window.ReactQueryClientContext):kN)}const m4=({context:e}={})=>{const t=S.useContext(CY(e,S.useContext(xY)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},fwe=({client:e,children:t,context:n,contextSharing:r=!1})=>{S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=CY(n,r);return S.createElement(xY.Provider,{value:!n&&r},S.createElement(o.Provider,{value:e},t))},SY=S.createContext(!1),hwe=()=>S.useContext(SY);SY.Provider;function mwe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const pwe=S.createContext(mwe()),gwe=()=>S.useContext(pwe);function ywe(e,t){return typeof e=="function"?e(...t):!!e}function bwe(e,t,n){const r=hY(e,t,n),o=m4({context:r.context}),[a]=S.useState(()=>new Y1e(o,r));S.useEffect(()=>{a.setOptions(r)},[a,r]);const i=dwe(S.useCallback(c=>a.subscribe(gn.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s=S.useCallback((c,l)=>{a.mutate(c,l).catch(vwe)},[a]);if(i.error&&ywe(a.options.useErrorBoundary,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}function vwe(){}const wwe=["added","removed","updated"];function jN(e){return wwe.includes(e)}async function Ewe({queryClient:e,persister:t,maxAge:n=1e3*60*60*24,buster:r="",hydrateOptions:o}){try{const a=await t.restoreClient();if(a)if(a.timestamp){const i=Date.now()-a.timestamp>n,s=a.buster!==r;i||s?t.removeClient():twe(e,a.clientState,o)}else t.removeClient()}catch{t.removeClient()}}async function PN({queryClient:e,persister:t,buster:n="",dehydrateOptions:r}){const o={buster:n,timestamp:Date.now(),clientState:ewe(e,r)};await t.persistClient(o)}function _we(e){const t=e.queryClient.getQueryCache().subscribe(r=>{jN(r.type)&&PN(e)}),n=e.queryClient.getMutationCache().subscribe(r=>{jN(r.type)&&PN(e)});return()=>{t(),n()}}function xwe(e){let t=!1,n;const r=()=>{t=!0,n==null||n()},o=Ewe(e).then(()=>{t||(n=_we(e))});return[r,o]}var TY=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured for connector "${t}".`),this.name="ChainNotConfiguredForConnectorError"}},ua=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}};function Ju(e){return typeof e=="string"?Number.parseInt(e,e.trim().substring(0,2)==="0x"?16:10):typeof e=="bigint"?Number(e):e}var AY={exports:{}};(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 a(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),m=n?n+l:l;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],h]:c._events[m].push(h):(c._events[m]=h,c._eventsCount++),c}function i(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function s(){this._events=new r,this._eventsCount=0}s.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},s.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,m=new Array(h);f{if(!t.has(e))throw TypeError("Cannot "+n)},ft=(e,t,n)=>(p4(e,t,"read from private field"),n?n.call(e):t.get(e)),Fn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},As=(e,t,n,r)=>(p4(e,t,"write to private field"),t.set(e,n),n),Bn=(e,t,n)=>(p4(e,t,"access private method"),n),py=class extends Swe{constructor({chains:e=[Ux,Mye],options:t}){super(),this.chains=e,this.options=t}getBlockExplorerUrls(e){const{default:t,...n}=e.blockExplorers??{};if(t)return[t.url,...Object.values(n).map(r=>r.url)]}isChainUnsupported(e){return!this.chains.some(t=>t.id===e)}setStorage(e){this.storage=e}};function Twe(e){var n;if(!e)return"Injected";const t=r=>{if(r.isApexWallet)return"Apex Wallet";if(r.isAvalanche)return"Core Wallet";if(r.isBackpack)return"Backpack";if(r.isBifrost)return"Bifrost Wallet";if(r.isBitKeep)return"BitKeep";if(r.isBitski)return"Bitski";if(r.isBlockWallet)return"BlockWallet";if(r.isBraveWallet)return"Brave Wallet";if(r.isCoin98)return"Coin98 Wallet";if(r.isCoinbaseWallet)return"Coinbase Wallet";if(r.isDawn)return"Dawn Wallet";if(r.isDefiant)return"Defiant";if(r.isDesig)return"Desig Wallet";if(r.isEnkrypt)return"Enkrypt";if(r.isExodus)return"Exodus";if(r.isFordefi)return"Fordefi";if(r.isFrame)return"Frame";if(r.isFrontier)return"Frontier Wallet";if(r.isGamestop)return"GameStop Wallet";if(r.isHaqqWallet)return"HAQQ Wallet";if(r.isHyperPay)return"HyperPay Wallet";if(r.isImToken)return"ImToken";if(r.isHaloWallet)return"Halo Wallet";if(r.isKuCoinWallet)return"KuCoin Wallet";if(r.isMathWallet)return"MathWallet";if(r.isNovaWallet)return"Nova Wallet";if(r.isOkxWallet||r.isOKExWallet)return"OKX Wallet";if(r.isOktoWallet)return"Okto Wallet";if(r.isOneInchIOSWallet||r.isOneInchAndroidWallet)return"1inch Wallet";if(r.isOneKey)return"OneKey Wallet";if(r.isOpera)return"Opera";if(r.isPhantom)return"Phantom";if(r.isPortal)return"Ripio Portal";if(r.isRabby)return"Rabby Wallet";if(r.isRainbow)return"Rainbow";if(r.isSafePal)return"SafePal Wallet";if(r.isStatus)return"Status";if(r.isSubWallet)return"SubWallet";if(r.isTalisman)return"Talisman";if(r.isTally)return"Taho";if(r.isTokenPocket)return"TokenPocket";if(r.isTokenary)return"Tokenary";if(r.isTrust||r.isTrustWallet)return"Trust Wallet";if(r.isTTWallet)return"TTWallet";if(r.isXDEFI)return"XDEFI Wallet";if(r.isZeal)return"Zeal";if(r.isZerion)return"Zerion";if(r.isMetaMask)return"MetaMask"};if((n=e.providers)!=null&&n.length){const r=new Set;let o=1;for(const i of e.providers){let s=t(i);s||(s=`Unknown Wallet #${o}`,o+=1),r.add(s)}const a=[...r];return a.length?a:a[0]??"Injected"}return t(e)??"Injected"}var C1,Ds=class extends py{constructor({chains:e,options:t}={}){const n={shimDisconnect:!0,getProvider(){if(typeof window>"u")return;const o=window.ethereum;return o!=null&&o.providers&&o.providers.length>0?o.providers[0]:o},...t};super({chains:e,options:n}),this.id="injected",Fn(this,C1,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=o=>{o.length===0?this.emit("disconnect"):this.emit("change",{account:Rr(o[0])})},this.onChainChanged=o=>{const a=Ju(o),i=this.isChainUnsupported(a);this.emit("change",{chain:{id:a,unsupported:i}})},this.onDisconnect=async o=>{var a;o.code===1013&&await this.getProvider()&&await this.getAccount()||(this.emit("disconnect"),this.options.shimDisconnect&&((a=this.storage)==null||a.removeItem(this.shimDisconnectKey)))};const r=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(r){const o=Twe(r);n.name?this.name=n.name(o):typeof o=="string"?this.name=o:this.name=o[0]}else this.name="Injected";this.ready=!!r}async connect({chainId:e}={}){var t;try{const n=await this.getProvider();if(!n)throw new ua;n.on&&(n.on("accountsChanged",this.onAccountsChanged),n.on("chainChanged",this.onChainChanged),n.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const r=await n.request({method:"eth_requestAccounts"}),o=Rr(r[0]);let a=await this.getChainId(),i=this.isChainUnsupported(a);return e&&a!==e&&(a=(await this.switchChain(e)).id,i=this.isChainUnsupported(a)),this.options.shimDisconnect&&((t=this.storage)==null||t.setItem(this.shimDisconnectKey,!0)),{account:o,chain:{id:a,unsupported:i}}}catch(n){throw this.isUserRejectedRequestError(n)?new dr(n):n.code===-32002?new gh(n):n}}async disconnect(){var t;const e=await this.getProvider();e!=null&&e.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((t=this.storage)==null||t.removeItem(this.shimDisconnectKey)))}async getAccount(){const e=await this.getProvider();if(!e)throw new ua;const t=await e.request({method:"eth_accounts"});return Rr(t[0])}async getChainId(){const e=await this.getProvider();if(!e)throw new ua;return e.request({method:"eth_chainId"}).then(Ju)}async getProvider(){const e=this.options.getProvider();return e&&As(this,C1,e),ft(this,C1)}async getWalletClient({chainId:e}={}){const[t,n]=await Promise.all([this.getProvider(),this.getAccount()]),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){var e;try{if(this.options.shimDisconnect&&!((e=this.storage)!=null&&e.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new ua;return!!await this.getAccount()}catch{return!1}}async switchChain(e){var r,o,a;const t=await this.getProvider();if(!t)throw new ua;const n=Xe(e);try{return await Promise.all([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(i=>this.on("change",({chain:s})=>{(s==null?void 0:s.id)===e&&i()}))]),this.chains.find(i=>i.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(i){const s=this.chains.find(c=>c.id===e);if(!s)throw new TY({chainId:e,connectorId:this.id});if(i.code===4902||((o=(r=i==null?void 0:i.data)==null?void 0:r.originalError)==null?void 0:o.code)===4902)try{if(await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:[((a=s.rpcUrls.public)==null?void 0:a.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(s)}]}),await this.getChainId()!==e)throw new dr(new Error("User rejected switch after adding network."));return s}catch(c){throw new dr(c)}throw this.isUserRejectedRequestError(i)?new dr(i):new ol(i)}}async watchAsset({address:e,decimals:t=18,image:n,symbol:r}){const o=await this.getProvider();if(!o)throw new ua;return o.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:n,symbol:r}}})}isUserRejectedRequestError(e){return e.code===4001}};C1=new WeakMap;var g4=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},l3=(e,t,n)=>(g4(e,t,"read from private field"),t.get(e)),u3=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},lv=(e,t,n,r)=>(g4(e,t,"write to private field"),t.set(e,n),n),Awe=(e,t,n)=>(g4(e,t,"access private method"),n),Dwe={VITE_WALLET_CONNECT_ID:"2719448e2ce94fdd269a3c8587123bcc",VITE_GRAPHQL_ENDPOINT:"https://apollo.helixbridge.app/graphql",VITE_NETWORK_TYPE:"mainnet",BASE_URL:"./",MODE:"mainnet",DEV:!1,PROD:!0,SSR:!1};const kwe=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(i,s,c)=>{let l=i;if(s){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 m=d;s(d=h,m)}},c!=null&&c.fireImmediately&&s(d,d)}return o(l)},e(t,n,r)},jwe=kwe;function Pwe(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var a;const i=c=>c===null?null:JSON.parse(c,void 0),s=(a=n.getItem(o))!=null?a:null;return s instanceof Promise?s.then(i):i(s)},setItem:(o,a)=>n.setItem(o,JSON.stringify(a,void 0)),removeItem:o=>n.removeItem(o)}}const pg=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return pg(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return pg(r)(n)}}}},Iwe=(e,t)=>(n,r,o)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:b=>b,version:0,merge:(b,v)=>({...v,...b}),...t},i=!1;const s=new Set,c=new Set;let l;try{l=a.getStorage()}catch{}if(!l)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...b)},r,o);const u=pg(a.serialize),d=()=>{const b=a.partialize({...r()});let v;const g=u({state:b,version:a.version}).then(w=>l.setItem(a.name,w)).catch(w=>{v=w});if(v)throw v;return g},f=o.setState;o.setState=(b,v)=>{f(b,v),d()};const h=e((...b)=>{n(...b),d()},r,o);let m;const p=()=>{var b;if(!l)return;i=!1,s.forEach(g=>g(r()));const v=((b=a.onRehydrateStorage)==null?void 0:b.call(a,r()))||void 0;return pg(l.getItem.bind(l))(a.name).then(g=>{if(g)return a.deserialize(g)}).then(g=>{if(g)if(typeof g.version=="number"&&g.version!==a.version){if(a.migrate)return a.migrate(g.state,g.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return g.state}).then(g=>{var w;return m=a.merge(g,(w=r())!=null?w:h),n(m,!0),d()}).then(()=>{v==null||v(m,void 0),i=!0,c.forEach(g=>g(m))}).catch(g=>{v==null||v(void 0,g)})};return o.persist={setOptions:b=>{a={...a,...b},b.getStorage&&(l=b.getStorage())},clearStorage:()=>{l==null||l.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>p(),hasHydrated:()=>i,onHydrate:b=>(s.add(b),()=>{s.delete(b)}),onFinishHydration:b=>(c.add(b),()=>{c.delete(b)})},p(),m||h},Owe=(e,t)=>(n,r,o)=>{let a={storage:Pwe(()=>localStorage),partialize:p=>p,version:0,merge:(p,b)=>({...b,...p}),...t},i=!1;const s=new Set,c=new Set;let l=a.storage;if(!l)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...p)},r,o);const u=()=>{const p=a.partialize({...r()});return l.setItem(a.name,{state:p,version:a.version})},d=o.setState;o.setState=(p,b)=>{d(p,b),u()};const f=e((...p)=>{n(...p),u()},r,o);o.getInitialState=()=>f;let h;const m=()=>{var p,b;if(!l)return;i=!1,s.forEach(g=>{var w;return g((w=r())!=null?w:f)});const v=((b=a.onRehydrateStorage)==null?void 0:b.call(a,(p=r())!=null?p:f))||void 0;return pg(l.getItem.bind(l))(a.name).then(g=>{if(g)if(typeof g.version=="number"&&g.version!==a.version){if(a.migrate)return a.migrate(g.state,g.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return g.state}).then(g=>{var w;return h=a.merge(g,(w=r())!=null?w:f),n(h,!0),u()}).then(()=>{v==null||v(h,void 0),h=r(),i=!0,c.forEach(g=>g(h))}).catch(g=>{v==null||v(void 0,g)})};return o.persist={setOptions:p=>{a={...a,...p},p.storage&&(l=p.storage)},clearStorage:()=>{l==null||l.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>i,onHydrate:p=>(s.add(p),()=>{s.delete(p)}),onFinishHydration:p=>(c.add(p),()=>{c.delete(p)})},a.skipHydration||m(),h||f},Rwe=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Dwe?"mainnet":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Iwe(e,t)):Owe(e,t),Nwe=Rwe;var Bwe={VITE_WALLET_CONNECT_ID:"2719448e2ce94fdd269a3c8587123bcc",VITE_GRAPHQL_ENDPOINT:"https://apollo.helixbridge.app/graphql",VITE_NETWORK_TYPE:"mainnet",BASE_URL:"./",MODE:"mainnet",DEV:!1,PROD:!0,SSR:!1};const IN=e=>{let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const h=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(m=>m(t,h))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(Bwe?"mainnet":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},l=t=e(r,o,c);return c},Fwe=e=>e?IN(e):IN;function y4(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function Mwe(e,t,{batch:n={multicall:{wait:32}},pollingInterval:r=4e3,rank:o,retryCount:a,retryDelay:i,stallTimeout:s}={}){if(!e.length)throw new Error("must have at least one chain");let c=[];const l={},u={};for(const d of e){let f=!1;for(const h of t){const m=h(d);m&&(f=!0,c.some(({id:p})=>p===d.id)||(c=[...c,m.chain]),l[d.id]=[...l[d.id]||[],...m.rpcUrls.http],m.rpcUrls.webSocket&&(u[d.id]=[...u[d.id]||[],...m.rpcUrls.webSocket]))}if(!f)throw new Error([`Could not find valid provider configuration for chain "${d.name}". -`,"You may need to add `jsonRpcProvider` to `configureChains` with the chain's RPC URLs.","Read more: https://wagmi.sh/core/providers/jsonRpc"].join(` -`))}return{chains:c,publicClient:({chainId:d})=>{const f=c.find(p=>p.id===d)??e[0],h=l[f.id];if(!h||!h[0])throw new Error(`No providers configured for chain "${f.id}"`);const m=Vu({batch:n,chain:f,transport:kO(h.map(p=>yh(p,{timeout:s})),{rank:o,retryCount:a,retryDelay:i}),pollingInterval:r});return Object.assign(m,{chains:c})},webSocketPublicClient:({chainId:d})=>{const f=c.find(p=>p.id===d)??e[0],h=u[f.id];if(!h||!h[0])return;const m=Vu({batch:n,chain:f,transport:kO(h.map(p=>Ufe(p,{timeout:s})),{rank:o,retryCount:a,retryDelay:i}),pollingInterval:r});return Object.assign(m,{chains:c})}}}var Lwe=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured${t?` for connector "${t}"`:""}.`),this.name="ChainNotConfigured"}},Uwe=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},$we=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},zwe=class extends Error{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}};function uD(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(!uD(e[r],t[r]))return!1;return!0}if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(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.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(a&&!uD(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}var dD=(e,{find:t,replace:n})=>e&&t(e)?n(e):typeof e!="object"?e:Array.isArray(e)?e.map(r=>dD(r,{find:t,replace:n})):e instanceof Object?Object.entries(e).reduce((r,[o,a])=>({...r,[o]:dD(a,{find:t,replace:n})}),{}):e;function Hwe(e){const t=JSON.parse(e);return dD(t,{find:r=>typeof r=="string"&&r.startsWith("#bigint."),replace:r=>BigInt(r.replace("#bigint.",""))})}function ON(e){return typeof e=="number"?e:e==="wei"?0:Math.abs(sue[e])}function RN(e,t){return e.slice(0,t).join(".")||"."}function NN(e,t){const{length:n}=e;for(let r=0;r{const i=typeof a=="bigint"?`#bigint.${a.toString()}`:a;return(t==null?void 0:t(o,i))||i},r),n??void 0)}var DY={getItem:e=>"",setItem:(e,t)=>null,removeItem:e=>null};function kY({deserialize:e=Hwe,key:t="wagmi",serialize:n=Wwe,storage:r}){return{...r,getItem:(o,a=null)=>{const i=r.getItem(`${t}.${o}`);try{return i?e(i):a}catch(s){return console.warn(s),a}},setItem:(o,a)=>{if(a===null)r.removeItem(`${t}.${o}`);else try{r.setItem(`${t}.${o}`,n(a))}catch(i){console.error(i)}},removeItem:o=>r.removeItem(`${t}.${o}`)}}var BN="store",hf,e0,fD,jY,Gwe=class{constructor({autoConnect:e=!1,connectors:t=[new Ds],publicClient:n,storage:r=kY({storage:typeof window<"u"?window.localStorage:DY}),logger:o={warn:console.warn},webSocketPublicClient:a}){var l,u;u3(this,fD),this.publicClients=new Map,this.webSocketPublicClients=new Map,u3(this,hf,void 0),u3(this,e0,void 0),this.args={autoConnect:e,connectors:t,logger:o,publicClient:n,storage:r,webSocketPublicClient:a};let i="disconnected",s;if(e)try{const d=r.getItem(BN),f=(l=d==null?void 0:d.state)==null?void 0:l.data;i=f!=null&&f.account?"reconnecting":"connecting",s=(u=f==null?void 0:f.chain)==null?void 0:u.id}catch{}const c=typeof t=="function"?t():t;c.forEach(d=>d.setStorage(r)),this.store=Fwe(jwe(Nwe(()=>({connectors:c,publicClient:this.getPublicClient({chainId:s}),status:i,webSocketPublicClient:this.getWebSocketPublicClient({chainId:s})}),{name:BN,storage:r,partialize:d=>{var f,h;return{...e&&{data:{account:(f=d==null?void 0:d.data)==null?void 0:f.account,chain:(h=d==null?void 0:d.data)==null?void 0:h.chain}},chains:d==null?void 0:d.chains}},version:2}))),this.storage=r,lv(this,e0,r==null?void 0:r.getItem("wallet")),Awe(this,fD,jY).call(this),e&&typeof window<"u"&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){var e,t;return(t=(e=this.data)==null?void 0:e.chain)==null?void 0:t.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(e){const t=typeof e=="function"?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState(e=>({...e,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){var e,t;this.connector&&await((t=(e=this.connector).disconnect)==null?void 0:t.call(e)),lv(this,hf,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(l3(this,hf))return;lv(this,hf,!0),this.setState(n=>{var r;return{...n,status:(r=n.data)!=null&&r.account?"reconnecting":"connecting"}});const e=l3(this,e0)?[...this.connectors].sort(n=>n.id===l3(this,e0)?-1:1):this.connectors;let t=!1;for(const n of e){if(!n.ready||!n.isAuthorized||!await n.isAuthorized())continue;const o=await n.connect();this.setState(a=>({...a,connector:n,chains:n==null?void 0:n.chains,data:o,status:"connected"})),t=!0;break}return t||this.setState(n=>({...n,data:void 0,status:"disconnected"})),lv(this,hf,!1),this.data}setConnectors(e){this.args={...this.args,connectors:e};const t=typeof e=="function"?e():e;t.forEach(n=>n.setStorage(this.args.storage)),this.setState(n=>({...n,connectors:t}))}getPublicClient({chainId:e}={}){let t=this.publicClients.get(-1);if(t&&(t==null?void 0:t.chain.id)===e||(t=this.publicClients.get(e??-1),t))return t;const{publicClient:n}=this.args;return t=typeof n=="function"?n({chainId:e}):n,this.publicClients.set(e??-1,t),t}setPublicClient(e){var n,r;const t=(r=(n=this.data)==null?void 0:n.chain)==null?void 0:r.id;this.args={...this.args,publicClient:e},this.publicClients.clear(),this.setState(o=>({...o,publicClient:this.getPublicClient({chainId:t})}))}getWebSocketPublicClient({chainId:e}={}){let t=this.webSocketPublicClients.get(-1);if(t&&(t==null?void 0:t.chain.id)===e||(t=this.webSocketPublicClients.get(e??-1),t))return t;const{webSocketPublicClient:n}=this.args;return t=typeof n=="function"?n({chainId:e}):n,t&&this.webSocketPublicClients.set(e??-1,t),t}setWebSocketPublicClient(e){var n,r;const t=(r=(n=this.data)==null?void 0:n.chain)==null?void 0:r.id;this.args={...this.args,webSocketPublicClient:e},this.webSocketPublicClients.clear(),this.setState(o=>({...o,webSocketPublicClient:this.getWebSocketPublicClient({chainId:t})}))}setLastUsedConnector(e=null){var t;(t=this.storage)==null||t.setItem("wallet",e)}};hf=new WeakMap;e0=new WeakMap;fD=new WeakSet;jY=function(){const e=s=>{this.setState(c=>({...c,data:{...c.data,...s}}))},t=()=>{this.clearState()},n=s=>{this.setState(c=>({...c,error:s}))};this.store.subscribe(({connector:s})=>s,(s,c)=>{var l,u,d,f,h,m;(l=c==null?void 0:c.off)==null||l.call(c,"change",e),(u=c==null?void 0:c.off)==null||u.call(c,"disconnect",t),(d=c==null?void 0:c.off)==null||d.call(c,"error",n),s&&((f=s.on)==null||f.call(s,"change",e),(h=s.on)==null||h.call(s,"disconnect",t),(m=s.on)==null||m.call(s,"error",n))});const{publicClient:r,webSocketPublicClient:o}=this.args;(typeof r=="function"||typeof o=="function")&&this.store.subscribe(({data:s})=>{var c;return(c=s==null?void 0:s.chain)==null?void 0:c.id},s=>{this.setState(c=>({...c,publicClient:this.getPublicClient({chainId:s}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:s})}))})};var hD;function Vwe(e){const t=new Gwe(e);return hD=t,t}function oo(){if(!hD)throw new Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return hD}async function Kwe({chainId:e,connector:t}){const n=oo(),r=n.connector;if(r&&t.id===r.id)throw new Uwe;try{n.setState(a=>({...a,status:"connecting"}));const o=await t.connect({chainId:e});return n.setLastUsedConnector(t.id),n.setState(a=>({...a,connector:t,chains:t==null?void 0:t.chains,data:o,status:"connected"})),n.storage.setItem("connected",!0),{...o,connector:t}}catch(o){throw n.setState(a=>({...a,status:a.connector?"connected":"disconnected"})),o}}async function Ywe(){const e=oo();e.connector&&await e.connector.disconnect(),e.clearState(),e.storage.removeItem("connected")}var Qwe=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],Xwe=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function Mi({chainId:e}={}){const t=oo();return e&&t.getPublicClient({chainId:e})||t.publicClient}async function b4({chainId:e}={}){var r,o;return await((o=(r=oo().connector)==null?void 0:r.getWalletClient)==null?void 0:o.call(r,{chainId:e}))||null}function mD({chainId:e}={}){const t=oo();return e&&t.getWebSocketPublicClient({chainId:e})||t.webSocketPublicClient}function Jwe(e,t){const n=oo(),r=async()=>t(Mi(e));return n.subscribe(({publicClient:a})=>a,r)}function Zwe({chainId:e},t){const n=oo(),r=async({chainId:a})=>{if(e&&a&&e!==a)return;const i=await b4({chainId:e});return oo().connector?t(i):t(null)};return n.subscribe(({data:a,connector:i})=>{var s;return{account:a==null?void 0:a.account,chainId:(s=a==null?void 0:a.chain)==null?void 0:s.id,connector:i}},r,{equalityFn:y4})}function eEe(e,t){const n=oo(),r=async()=>t(mD(e));return n.subscribe(({webSocketPublicClient:a})=>a,r)}async function tEe({chainId:e,contracts:t,blockNumber:n,blockTag:r,...o}){const a=Mi({chainId:e});if(!a.chains)throw new $we;if(e&&a.chain.id!==e)throw new Lwe({chainId:e});return a.multicall({allowFailure:o.allowFailure??!0,blockNumber:n,blockTag:r,contracts:t})}async function nEe({address:e,account:t,chainId:n,abi:r,args:o,functionName:a,blockNumber:i,blockTag:s}){return Mi({chainId:n}).readContract({abi:r,address:e,account:t,functionName:a,args:o,blockNumber:i,blockTag:s})}async function rEe({contracts:e,blockNumber:t,blockTag:n,...r}){const{allowFailure:o=!0}=r;try{const a=Mi(),i=e.reduce((u,d,f)=>{const h=d.chainId??a.chain.id;return{...u,[h]:[...u[h]||[],{contract:d,index:f}]}},{}),s=()=>Object.entries(i).map(([u,d])=>tEe({allowFailure:o,chainId:parseInt(u),contracts:d.map(({contract:f})=>f),blockNumber:t,blockTag:n})),c=(await Promise.all(s())).flat(),l=Object.values(i).flatMap(u=>u.map(({index:d})=>d));return c.reduce((u,d,f)=>(u&&(u[l[f]]=d),u),[])}catch(a){if(a instanceof Y8)throw a;const i=()=>e.map(s=>nEe({...s,blockNumber:t,blockTag:n}));return o?(await Promise.allSettled(i())).map(s=>s.status==="fulfilled"?{result:s.value,status:"success"}:{error:s.reason,result:void 0,status:"failure"}):await Promise.all(i())}}async function oEe({address:e,chainId:t,formatUnits:n,token:r}){const o=oo(),a=Mi({chainId:t});if(r){const l=async({abi:u})=>{const d={abi:u,address:r,chainId:t},[f,h,m]=await rEe({allowFailure:!1,contracts:[{...d,functionName:"balanceOf",args:[e]},{...d,functionName:"decimals"},{...d,functionName:"symbol"}]});return{decimals:h,formatted:Wu(f??"0",ON(n??h)),symbol:m,value:f}};try{return await l({abi:Qwe})}catch(u){if(u instanceof Y8){const{symbol:d,...f}=await l({abi:Xwe});return{symbol:RH(Za(d,{dir:"right"})),...f}}throw u}}const i=[...o.publicClient.chains||[],...o.chains??[]],s=await a.getBalance({address:e}),c=i.find(l=>l.id===a.chain.id);return{decimals:(c==null?void 0:c.nativeCurrency.decimals)??18,formatted:Wu(s??"0",ON(n??18)),symbol:(c==null?void 0:c.nativeCurrency.symbol)??"ETH",value:s}}function PY(){const{data:e,connector:t,status:n}=oo();switch(n){case"connected":return{address:e==null?void 0:e.account,connector:t,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:n};case"reconnecting":return{address:e==null?void 0:e.account,connector:t,isConnected:!!(e!=null&&e.account),isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:n};case"connecting":return{address:e==null?void 0:e.account,connector:t,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:n};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:n}}}function IY(){var o,a,i,s;const e=oo(),t=(a=(o=e.data)==null?void 0:o.chain)==null?void 0:a.id,n=e.chains??[],r=[...((i=e.publicClient)==null?void 0:i.chains)||[],...n].find(c=>c.id===t)??{id:t,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:t?{...r,...(s=e.data)==null?void 0:s.chain,id:t}:void 0,chains:n}}async function aEe(e){const t=await b4();if(!t)throw new ua;return await t.signMessage({message:e.message})}async function iEe({chainId:e}){const{connector:t}=oo();if(!t)throw new ua;if(!t.switchChain)throw new zwe({connector:t});return t.switchChain(e)}function sEe(e,{selector:t=n=>n}={}){const n=oo(),r=()=>e(PY());return n.subscribe(({data:a,connector:i,status:s})=>t({address:a==null?void 0:a.account,connector:i,status:s}),r,{equalityFn:y4})}function cEe(e,{selector:t=n=>n}={}){const n=oo(),r=()=>e(IY());return n.subscribe(({data:a,chains:i})=>{var s;return t({chainId:(s=a==null?void 0:a.chain)==null?void 0:s.id,chains:i})},r,{equalityFn:y4})}async function lEe({name:e,chainId:t}){const{normalize:n}=await me(async()=>{const{normalize:a}=await import("./index-Ca5iS1sT.js");return{normalize:a}},[],import.meta.url);return await Mi({chainId:t}).getEnsAvatar({name:n(e)})}async function uEe({address:e,chainId:t}){return Mi({chainId:t}).getEnsName({address:Rr(e)})}async function dEe({chainId:e}={}){return await Mi({chainId:e}).getBlockNumber()}var OY={exports:{}},RY={};/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Gx=S,fEe=h4;function hEe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mEe=typeof Object.is=="function"?Object.is:hEe,pEe=fEe.useSyncExternalStore,gEe=Gx.useRef,yEe=Gx.useEffect,bEe=Gx.useMemo,vEe=Gx.useDebugValue;RY.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a=gEe(null);if(a.current===null){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=bEe(function(){function c(h){if(!l){if(l=!0,u=h,h=r(h),o!==void 0&&i.hasValue){var m=i.value;if(o(m,h))return d=m}return d=h}if(m=d,mEe(u,h))return m;var p=r(h);return o!==void 0&&o(m,p)?m:(u=h,d=p)}var l=!1,u,d,f=n===void 0?null:n;return[function(){return c(t())},f===null?void 0:function(){return c(f())}]},[t,n,r,o]);var s=pEe(e,a[0],a[1]);return yEe(function(){i.hasValue=!0,i.value=s},[s]),vEe(s),s};OY.exports=RY;var v4=OY.exports;function wEe({queryClient:e=new W1e({defaultOptions:{queries:{cacheTime:1e3*60*60*24,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:t=kY({storage:typeof window<"u"&&window.localStorage?window.localStorage:DY}),persister:n=typeof window<"u"?j1e({key:"cache",storage:t,serialize:o=>o,deserialize:o=>o}):void 0,...r}){const o=Vwe({...r,storage:t});return n&&xwe({queryClient:e,persister:n,dehydrateOptions:{shouldDehydrateQuery:a=>a.cacheTime!==0&&a.queryKey[0].persist!==!1}}),Object.assign(o,{queryClient:e})}var NY=S.createContext(void 0),Vx=S.createContext(void 0);function EEe({children:e,config:t}){return S.createElement(NY.Provider,{children:S.createElement(fwe,{children:e,client:t.queryClient,context:Vx}),value:t})}function Kx(){const e=S.useContext(NY);if(!e)throw new Error(["`useConfig` must be used within `WagmiConfig`.\n","Read more: https://wagmi.sh/react/WagmiConfig"].join(` -`));return e}var _Ee=h4.useSyncExternalStore;function xEe(e){return Array.isArray(e)}function CEe(e){if(!FN(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!FN(n)||!n.hasOwnProperty("isPrototypeOf"))}function FN(e){return Object.prototype.toString.call(e)==="[object Object]"}function SEe(e,t,n){return xEe(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function TEe(e){return JSON.stringify(e,(t,n)=>CEe(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):typeof n=="bigint"?n.toString():n)}function AEe(e,t){return typeof e=="function"?e(...t):!!e}function DEe(e,t){const n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(t.trackedProps.add(r),e[r])})}),n}function kEe(e,t){const n=m4({context:e.context}),r=hwe(),o=gwe(),a=n.defaultQueryOptions({...e,queryKeyHashFn:TEe});a._optimisticResults=r?"isRestoring":"optimistic",a.onError&&(a.onError=gn.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=gn.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=gn.batchCalls(a.onSettled)),a.suspense&&typeof a.staleTime!="number"&&(a.staleTime=1e3),(a.suspense||a.useErrorBoundary)&&(o.isReset()||(a.retryOnMount=!1));const[i]=S.useState(()=>new t(n,a)),s=i.getOptimisticResult(a);if(_Ee(S.useCallback(d=>r?()=>{}:i.subscribe(gn.batchCalls(d)),[i,r]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),S.useEffect(()=>{o.clearReset()},[o]),S.useEffect(()=>{i.setOptions(a,{listeners:!1})},[a,i]),a.suspense&&s.isLoading&&s.isFetching&&!r)throw i.fetchOptimistic(a).then(({data:d})=>{var f,h;(f=a.onSuccess)==null||f.call(a,d),(h=a.onSettled)==null||h.call(a,d,null)}).catch(d=>{var f,h;o.clearReset(),(f=a.onError)==null||f.call(a,d),(h=a.onSettled)==null||h.call(a,void 0,d)});if(s.isError&&!o.isReset()&&!s.isFetching&&AEe(a.useErrorBoundary,[s.error,i.getCurrentQuery()]))throw s.error;const c=s.status==="loading"&&s.fetchStatus==="idle"?"idle":s.status,l=c==="idle",u=c==="loading"&&s.fetchStatus==="fetching";return{...s,defaultedOptions:a,isIdle:l,isLoading:u,observer:i,status:c}}function Yx(e,t,n){const r=hY(e,t,n);return bwe({context:Vx,...r})}function gy(e,t,n){const r=SEe(e,t,n),o=kEe({context:Vx,...r},G1e),a={data:o.data,error:o.error,fetchStatus:o.fetchStatus,isError:o.isError,isFetched:o.isFetched,isFetchedAfterMount:o.isFetchedAfterMount,isFetching:o.isFetching,isIdle:o.isIdle,isLoading:o.isLoading,isRefetching:o.isRefetching,isSuccess:o.isSuccess,refetch:o.refetch,status:o.status,internal:{dataUpdatedAt:o.dataUpdatedAt,errorUpdatedAt:o.errorUpdatedAt,failureCount:o.failureCount,isFetchedAfterMount:o.isFetchedAfterMount,isLoadingError:o.isLoadingError,isPaused:o.isPaused,isPlaceholderData:o.isPlaceholderData,isPreviousData:o.isPreviousData,isRefetchError:o.isRefetchError,isStale:o.isStale,remove:o.remove}};return o.defaultedOptions.notifyOnChangeProps?a:DEe(a,o.observer)}var w4=()=>m4({context:Vx});function zs({chainId:e}={}){return v4.useSyncExternalStoreWithSelector(t=>Jwe({chainId:e},t),()=>Mi({chainId:e}),()=>Mi({chainId:e}),t=>t,(t,n)=>t.uid===n.uid)}function d3({chainId:e}){return[{entity:"walletClient",chainId:e,persist:!1}]}function jEe({queryKey:[{chainId:e}]}){return b4({chainId:e})}function yy({chainId:e,suspense:t,onError:n,onSettled:r,onSuccess:o}={}){const{connector:a}=tn(),i=by({chainId:e}),s=gy(d3({chainId:i}),jEe,{cacheTime:0,enabled:!!a,staleTime:1/0,suspense:t,onError:n,onSettled:r,onSuccess:o}),c=w4();return S.useEffect(()=>Zwe({chainId:i},u=>{u?c.invalidateQueries(d3({chainId:i})):c.removeQueries(d3({chainId:i}))}),[c,i]),s}function PEe({chainId:e}={}){return v4.useSyncExternalStoreWithSelector(t=>eEe({chainId:e},t),()=>mD({chainId:e}),()=>mD({chainId:e}),t=>t,(t,n)=>(t==null?void 0:t.uid)===(n==null?void 0:n.uid))}function by({chainId:e}={}){return zs({chainId:e}).chain.id}function IEe(){const[,e]=S.useReducer(t=>t+1,0);return e}function MN({chainId:e,scopeKey:t}){return[{entity:"blockNumber",chainId:e,scopeKey:t}]}function OEe({queryKey:[{chainId:e}]}){return dEe({chainId:e})}function REe({cacheTime:e=0,chainId:t,enabled:n=!0,scopeKey:r,staleTime:o,suspense:a,watch:i=!1,onBlock:s,onError:c,onSettled:l,onSuccess:u}={}){const d=by({chainId:t}),f=zs({chainId:d}),h=PEe({chainId:d}),m=w4();return S.useEffect(()=>!n||!i&&!s?void 0:(h??f).watchBlockNumber({onBlockNumber:v=>{i&&m.setQueryData(MN({chainId:d,scopeKey:r}),v),s&&s(v)},emitOnBegin:!0}),[d,r,s,f,m,i,h,n]),gy(MN({scopeKey:r,chainId:d}),OEe,{cacheTime:e,enabled:n,staleTime:o,suspense:a,onError:c,onSettled:l,onSuccess:u})}function NEe({chainId:e,enabled:t,queryKey:n}){const r=w4(),o=S.useCallback(()=>r.invalidateQueries({queryKey:n},{cancelRefetch:!1}),[r,n]);REe({chainId:e,enabled:t,onBlock:t?o:void 0,scopeKey:t?void 0:"idle"})}var f3=e=>typeof e=="object"&&!Array.isArray(e);function BY(e,t,n=t,r=uD){const o=S.useRef([]),a=v4.useSyncExternalStoreWithSelector(e,t,n,i=>i,(i,s)=>{if(f3(i)&&f3(s)&&o.current.length){for(const c of o.current)if(!r(i[c],s[c]))return!1;return!0}return r(i,s)});if(f3(a)){const i={...a};return Object.defineProperties(i,Object.entries(i).reduce((s,[c,l])=>({...s,[c]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(c)||o.current.push(c),l)}}),{})),i}return a}function tn({onConnect:e,onDisconnect:t}={}){const n=Kx(),r=S.useCallback(s=>sEe(s),[n]),o=BY(r,PY),a=S.useRef(),i=a.current;return S.useEffect(()=>{(i==null?void 0:i.status)!=="connected"&&o.status==="connected"&&(e==null||e({address:o.address,connector:o.connector,isReconnected:(i==null?void 0:i.status)==="reconnecting"||(i==null?void 0:i.status)===void 0})),(i==null?void 0:i.status)==="connected"&&o.status==="disconnected"&&(t==null||t()),a.current=o},[e,t,i,o]),o}function BEe({address:e,chainId:t,formatUnits:n,scopeKey:r,token:o}){return[{entity:"balance",address:e,chainId:t,formatUnits:n,scopeKey:r,token:o}]}function FEe({queryKey:[{address:e,chainId:t,formatUnits:n,token:r}]}){if(!e)throw new Error("address is required");return oEe({address:e,chainId:t,formatUnits:n,token:r})}function FY({address:e,cacheTime:t,chainId:n,enabled:r=!0,formatUnits:o,scopeKey:a,staleTime:i,suspense:s,token:c,watch:l,onError:u,onSettled:d,onSuccess:f}={}){const h=by({chainId:n}),m=S.useMemo(()=>BEe({address:e,chainId:h,formatUnits:o,scopeKey:a,token:c}),[e,h,o,a,c]),p=gy(m,FEe,{cacheTime:t,enabled:!!(r&&e),staleTime:i,suspense:s,onError:u,onSettled:d,onSuccess:f});return NEe({chainId:h,enabled:!!(r&&l&&e),queryKey:m}),p}var MEe=e=>[{entity:"connect",...e}],LEe=e=>{const{connector:t,chainId:n}=e;if(!t)throw new Error("connector is required");return Kwe({connector:t,chainId:n})};function UEe({chainId:e,connector:t,onError:n,onMutate:r,onSettled:o,onSuccess:a}={}){const i=Kx(),{data:s,error:c,isError:l,isIdle:u,isLoading:d,isSuccess:f,mutate:h,mutateAsync:m,reset:p,status:b,variables:v}=Yx(MEe({connector:t,chainId:e}),LEe,{onError:n,onMutate:r,onSettled:o,onSuccess:a}),g=S.useCallback(_=>h({chainId:(_==null?void 0:_.chainId)??e,connector:(_==null?void 0:_.connector)??t}),[e,t,h]),w=S.useCallback(_=>m({chainId:(_==null?void 0:_.chainId)??e,connector:(_==null?void 0:_.connector)??t}),[e,t,m]);return{connect:g,connectAsync:w,connectors:i.connectors,data:s,error:c,isError:l,isIdle:u,isLoading:d,isSuccess:f,pendingConnector:v==null?void 0:v.connector,reset:p,status:b,variables:v}}var $Ee=[{entity:"disconnect"}],zEe=()=>Ywe();function Qx({onError:e,onMutate:t,onSettled:n,onSuccess:r}={}){const{error:o,isError:a,isIdle:i,isLoading:s,isSuccess:c,mutate:l,mutateAsync:u,reset:d,status:f}=Yx($Ee,zEe,{...e?{onError(h,m,p){e(h,p)}}:{},onMutate:t,...n?{onSettled(h,m,p,b){n(m,b)}}:{},...r?{onSuccess(h,m,p){r(p)}}:{}});return{disconnect:l,disconnectAsync:u,error:o,isError:a,isIdle:i,isLoading:s,isSuccess:c,reset:d,status:f}}function To(){const e=Kx(),t=S.useCallback(n=>cEe(n),[e]);return BY(t,IY)}var HEe=e=>[{entity:"signMessage",...e}],qEe=e=>{const{message:t}=e;if(!t)throw new Error("message is required");return aEe({message:t})};function WEe({message:e,onError:t,onMutate:n,onSettled:r,onSuccess:o}={}){const{data:a,error:i,isError:s,isIdle:c,isLoading:l,isSuccess:u,mutate:d,mutateAsync:f,reset:h,status:m,variables:p}=Yx(HEe({message:e}),qEe,{onError:t,onMutate:n,onSettled:r,onSuccess:o}),b=S.useCallback(g=>d(g||{message:e}),[e,d]),v=S.useCallback(g=>f(g||{message:e}),[e,f]);return{data:a,error:i,isError:s,isIdle:c,isLoading:l,isSuccess:u,reset:h,signMessage:b,signMessageAsync:v,status:m,variables:p}}var GEe=e=>[{entity:"switchNetwork",...e}],VEe=e=>{const{chainId:t}=e;if(!t)throw new Error("chainId is required");return iEe({chainId:t})};function Tl({chainId:e,throwForSwitchChainNotSupported:t,onError:n,onMutate:r,onSettled:o,onSuccess:a}={}){var T;const i=Kx(),s=IEe(),{data:c,error:l,isError:u,isIdle:d,isLoading:f,isSuccess:h,mutate:m,mutateAsync:p,reset:b,status:v,variables:g}=Yx(GEe({chainId:e}),VEe,{onError:n,onMutate:r,onSettled:o,onSuccess:a}),w=S.useCallback(k=>m({chainId:k??e}),[e,m]),_=S.useCallback(k=>p({chainId:k??e}),[e,p]);S.useEffect(()=>i.subscribe(({chains:D,connector:R})=>({chains:D,connector:R}),s),[i,s]);let C,x;const E=!!((T=i.connector)!=null&&T.switchChain);return(t||E)&&(C=w,x=_),{chains:i.chains??[],data:c,error:l,isError:u,isIdle:d,isLoading:f,isSuccess:h,pendingChainId:g==null?void 0:g.chainId,reset:b,status:v,switchNetwork:C,switchNetworkAsync:x,variables:g}}function KEe({name:e,chainId:t,scopeKey:n}){return[{entity:"ensAvatar",name:e,chainId:t,scopeKey:n}]}function YEe({queryKey:[{name:e,chainId:t}]}){if(!e)throw new Error("name is required");return lEe({name:e,chainId:t})}function QEe({cacheTime:e,chainId:t,enabled:n=!0,name:r,scopeKey:o,staleTime:a=1e3*60*60*24,suspense:i,onError:s,onSettled:c,onSuccess:l}={}){const u=by({chainId:t});return gy(KEe({name:r,chainId:u,scopeKey:o}),YEe,{cacheTime:e,enabled:!!(n&&r&&u),staleTime:a,suspense:i,onError:s,onSettled:c,onSuccess:l})}function XEe({address:e,chainId:t,scopeKey:n}){return[{entity:"ensName",address:e,chainId:t,scopeKey:n}]}function JEe({queryKey:[{address:e,chainId:t}]}){if(!e)throw new Error("address is required");return uEe({address:e,chainId:t})}function MY({address:e,cacheTime:t,chainId:n,enabled:r=!0,scopeKey:o,staleTime:a=1e3*60*60*24,suspense:i,onError:s,onSettled:c,onSuccess:l}={}){const u=by({chainId:n});return gy(XEe({address:e,chainId:u,scopeKey:o}),JEe,{cacheTime:t,enabled:!!(r&&e&&u),staleTime:a,suspense:i,onError:s,onSettled:c,onSuccess:l})}const ZEe=hm().filter(e=>e.id!==ct.BERA);function e_e(){const[e,t]=S.useState([]),[n,r]=S.useState(!1),{address:o}=tn(),a=S.useRef(e),i=S.useCallback(()=>{if(o){const s=ZEe.map(c=>{const l=Vu({chain:c,batch:{multicall:!0},transport:yh()}),u=c.tokens.map(d=>d.type==="native"?l.getBalance({address:o}):que({address:d.address,abi:eh,publicClient:l}).read.balanceOf([o]));return u.length?qx(u).pipe(l4(d=>d.map((f,h)=>({chain:c,token:c.tokens[h],balance:f})))):p1e([])});return a.current=[],r(!0),k1e(s,3).pipe(uY()).subscribe({next:c=>{a.current=c.reduce((l,u)=>l.concat(u).sort((d,f)=>d.token.symbol.localeCompare(f.token.symbol)),a.current)},error:c=>{console.error(c),a.current=[],r(!1)},complete:()=>{r(!1)}})}else a.current=[],t([]),r(!1)},[o]);return S.useEffect(()=>{const s=i();return()=>{s==null||s.unsubscribe()}},[i]),S.useEffect(()=>{n||t(a.current)},[n]),{loadingBalanceAll:n,balanceAll:e,updateBalanceAll:i}}function LY(e,t,n,r,o=10){const a=S.useRef(0);S.useEffect(()=>{a.current=0},[e,t,n,r]);const{loading:i,data:s,refetch:c,fetchMore:l}=$s(Dye,{variables:{page:0,row:o,relayer:e,recvTokenAddress:t,fromChain:n,toChain:r},skip:!e||!t||!n||!r}),u=S.useCallback(()=>{c({page:0}),a.current=0},[c]),d=S.useCallback(()=>{a.current=a.current+1,l({variables:{page:a.current}})},[l]);return{loading:i,total:(s==null?void 0:s.historyRecords.total)??0,data:(s==null?void 0:s.historyRecords.records)??[],refetch:u,fetchMore:d}}function t_e(e,t,n){const[r,o]=S.useState(),[a,i]=S.useState(!1),{bridgeInstance:s}=B8();return S.useEffect(()=>{let c;return e.length&&t&&n?(i(!0),c=Yo(s.getWithdrawLiquidityFeeAndParams(t,jK(e.map(({id:l})=>l)),n)).subscribe({next:l=>{i(!1),o(l)},error:l=>{console.error(l),i(!1),o(void 0)}})):(i(!1),o(void 0)),()=>{c==null||c.unsubscribe()}},[e,t,n,s]),{feeAndParams:r,loading:a}}hm();function n_e(e,t,n,r){const[o,a]=S.useState(0n),[i,s]=S.useState(!1),[c,l]=S.useState(!1),{data:u}=yy(),d=zs(),f=S.useCallback(()=>{const m=BigInt(Number.MAX_SAFE_INTEGER)**BigInt(t.decimals);if(t.type==="native")a(m);else if(n&&r){s(!0);const p=Vu({chain:e,transport:yh()});return Yo(p.readContract({address:t.address,abi:eh,functionName:"allowance",args:[n,r]})).subscribe({next:b=>{s(!1),a(b)},error:b=>{console.error(b),s(!1),a(0n)}})}else a(0n)},[e,n,r,t.address,t.decimals,t.type]),h=S.useCallback(async m=>{if(n&&r&&u){l(!0);try{const p=await u.writeContract({address:t.address,abi:eh,functionName:"approve",args:[r,m]}),b=await d.waitForTransactionReceipt({hash:p,confirmations:mo});return b.status==="success"&&a(await d.readContract({address:t.address,abi:eh,functionName:"allowance",args:[n,r]})),l(!1),b}catch(p){console.error(p),an(p),l(!1)}}},[n,r,t.address,d,u]);return S.useEffect(()=>{const m=f();return()=>{m==null||m.unsubscribe()}},[f]),{loading:i,busy:c,allowance:o,refresh:f,approve:h}}function r_e(e,t,n){const[r,o]=S.useState(!1),[a,i]=S.useState(0n),s=S.useCallback(()=>{if(n){const c=Vu({transport:yh(),chain:e});return o(!0),Yo(t.type==="native"?c.getBalance({address:n}):c.readContract({address:t.address,abi:eh,functionName:"balanceOf",args:[n]})).subscribe({next:l=>{o(!1),i(l)},error:l=>{console.error(l),o(!1),i(0n)}})}else o(!1),i(0n)},[e,t.address,t.type,n]);return S.useEffect(()=>{const c=s();return()=>{c==null||c.unsubscribe()}},[s]),{loading:r,balance:a,refresh:s}}function o_e(e,t,n,r){const{loading:o,data:a,refetch:i}=$s(Tye,{variables:{amount:e.toString(),decimals:t.decimals,token:t.address,fromChain:n.network,toChain:r.network},fetchPolicy:"cache-and-network"});return{loading:o,data:a,refetch:i}}const UY=S.createContext({});function a_e(){return S.useContext(UY)}function i_e(e,t,n,r,o){var l;const[a,i]=S.useState(),[s,c]=S.useState(!1);return S.useEffect(()=>{var f;const u=(f=o==null?void 0:o.sortedLnBridgeRelayInfos)==null?void 0:f.records.at(0);c(!0);const d=Yo((e==null?void 0:e.getFee({sender:t,recipient:n,transferAmount:r,relayer:u==null?void 0:u.relayer,baseFee:u!=null&&u.baseFee?BigInt(u.baseFee):void 0,protocolFee:u!=null&&u.protocolFee?BigInt(u.protocolFee):void 0,liquidityFeeRate:u!=null&&u.liquidityFeeRate?BigInt(u.liquidityFeeRate):void 0}))||Promise.resolve(void 0)).subscribe({next:h=>{c(!1),i(h)},error:h=>{console.error(h),c(!1),i(null)}});return()=>{d.unsubscribe()}},[e,r,t,n,(l=o==null?void 0:o.sortedLnBridgeRelayInfos)==null?void 0:l.records]),{loading:s,fee:a}}function s_e(e){const[t,n]=S.useState(!1),[r,o]=S.useState();return S.useEffect(()=>{n(!0);const a=Yo((e==null?void 0:e.getDailyLimit())||Promise.resolve(void 0)).subscribe({next:i=>{n(!1),o(i)},error:i=>{console.error(i),n(!1),o(null)}});return()=>{a.unsubscribe()}},[e]),{loading:t,dailyLimit:r}}function LN(e){const{loading:t,data:n}=$s(kye,{variables:{tokenKey:e.toUpperCase()},fetchPolicy:"cache-and-network"});return S.useMemo(()=>({loading:t,data:(n==null?void 0:n.queryLnBridgeSupportedChains)||[]}),[t,n==null?void 0:n.queryLnBridgeSupportedChains])}function c_e(e,t,n,r){const{loading:o,data:a}=$s(jye,{variables:{fromChain:e.network,toChain:t.network,token:n.address,balance:r.toString()},fetchPolicy:"no-cache"}),[i,s]=S.useState(BigInt(Number.MAX_SAFE_INTEGER)**BigInt(n.decimals));return S.useEffect(()=>{o||s(c=>BigInt((a==null?void 0:a.queryMaxTransfer)??c))},[o,a==null?void 0:a.queryMaxTransfer]),{loadingMaxTransfer:o,maxTransfer:i}}function l_e(e,t){const n=tn(),{loading:r,data:o,refetch:a}=$s(Pye,{variables:{bridges:["lnv2-opposite","lnv2-default","lnv3"],sender:n.address,row:10,page:e},fetchPolicy:"cache-and-network",pollInterval:t?3e3:0,skip:!t});return{loading:r,data:(o==null?void 0:o.historyRecords.records)??[],total:(o==null?void 0:o.historyRecords.total)??0,refetch:a}}function u_e(e){const{loading:t,data:n}=$s(Iye,{variables:{txHash:e??""},fetchPolicy:"cache-and-network",pollInterval:e?4500:0,skip:!e});return{loading:t,data:n==null?void 0:n.historyRecordByTxHash}}function d_e(e,t,n=10){const{loading:r,data:o,networkStatus:a,refetch:i}=$s(Oye,{variables:{sender:e,bridges:["lnv3","lnv2-default","lnv2-opposite"],page:t,row:n},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"});return{loading:r,data:(o==null?void 0:o.historyRecords.records)??[],total:(o==null?void 0:o.historyRecords.total)??0,networkStatus:a,refetch:i}}const f_e={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function $Y(e){const[t,n]=S.useState(!1);return S.useEffect(()=>{const r=window.matchMedia(`(min-width: ${f_e[e]})`);n(r.matches);const o=a=>{n(a.matches)};return r.addEventListener("change",o,!1),()=>{r.addEventListener("change",o,!1)}},[e]),t}function zY(e,t,n,r,o,a){const{loading:i,data:s,refetch:c}=$s(Rye,{variables:{relayer:typeof r=="string"?r.toLowerCase()||void 0:"",fromChain:o==null?void 0:o.network,toChain:a==null?void 0:a.network,version:e,page:t,row:n},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"});return{loading:i,data:(s==null?void 0:s.queryLnBridgeRelayInfos.records)??[],total:(s==null?void 0:s.queryLnBridgeRelayInfos.total)??0,refetch:c}}function pD(){return pD=Object.assign?Object.assign.bind():function(e){for(var t=1;tt??e,[t,e]),o=st(r==null?void 0:r.fromChain),a=st(r==null?void 0:r.toChain),i=o==null?void 0:o.tokens.find(({symbol:s})=>{var c;return s.toUpperCase()===((c=r==null?void 0:r.sendToken)==null?void 0:c.toUpperCase())});return y.jsxs("div",{className:"relative overflow-x-auto pb-2",children:[y.jsx(qs,{loading:n,color:"white",className:"backdrop-blur-[2px]"}),y.jsxs("div",{className:"w-[39.5rem] px-5",children:[y.jsxs("div",{className:"flex flex-col gap-3 text-sm font-normal",children:[y.jsx(zN,{label:"Timestamp",value:r!=null&&r.startTime?hy(r.startTime*1e3):void 0}),y.jsx(zN,{label:"Value",value:r!=null&&r.sendAmount&&i?`${ut(BigInt(r.sendAmount),i.decimals,{precision:8})} ${i.symbol}`:void 0})]}),y.jsxs("div",{className:"mt-8 flex justify-between rounded-3xl bg-white/5 px-14 py-10",children:[y.jsx(HN,{chain:o,tx:r==null?void 0:r.requestTxHash,completed:!!(r!=null&&r.requestTxHash)}),y.jsx(x_e,{data:r}),y.jsx(HN,{chain:a,completed:(r==null?void 0:r.result)===xn.SUCCESS,tx:fj((r==null?void 0:r.confirmedBlocks)??"")?r==null?void 0:r.confirmedBlocks:r==null?void 0:r.responseTxHash})]}),r&&y.jsx("div",{className:"mt-2 inline-flex w-full justify-end pr-2",children:y.jsx(Su,{className:"hover:text-primary text-sm font-light text-white underline transition-colors",target:"_blank",to:`/tx/${r.id}`,rel:"noopener noreferrer",children:"More"})})]})]})}function zN({label:e,value:t}){return y.jsxs("div",{className:"inline-block",children:[y.jsx("span",{className:"inline-block w-24 font-medium",children:e}),y.jsx("span",{className:"text-white/90",children:t})]})}function HN({completed:e,chain:t,tx:n}){var r;return y.jsxs("div",{className:"flex flex-col items-center gap-6",children:[y.jsx("span",{className:"text-sm font-bold text-white",children:(t==null?void 0:t.name)??"-"}),y.jsx("div",{className:"border-primary/25 flex h-28 w-28 items-center justify-center rounded-full border",children:t?y.jsx("img",{alt:t.name,width:64,height:64,src:Rn(t.logo),className:"rounded-full"}):"-"}),y.jsxs("div",{className:"inline-flex min-h-7 min-w-36 items-center justify-center gap-1",children:[e?y.jsx(w_e,{width:18,height:18}):y.jsx(E_e,{width:25,height:25}),t&&n?y.jsxs("a",{target:"_blank",rel:"noopener noreferrer",href:new URL(`tx/${n}`,(r=t.blockExplorers)==null?void 0:r.default.url).href,className:"hover:text-primary text-sm font-normal text-white underline transition-colors",children:["Tx: ",zu(n)]}):y.jsx("span",{className:"ellipsis ml-2",children:"."})]})]})}function x_e({data:e}){const{hash:t,total:n=0,completed:r=0}=Yye(e==null?void 0:e.confirmedBlocks);return y.jsx("div",{className:"flex flex-col items-center justify-center gap-2",children:(e==null?void 0:e.result)===xn.SUCCESS?y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"72",height:"72",viewBox:"0 0 72 72",fill:"none",children:[y.jsx("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M35.5 17V36L2 55V36L35.5 17ZM69 17V36L35.5 55V36L69 17Z",fill:"#FFFFFF"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 17L35.5 36V55L2 36V17ZM35.5 17L69 36V55L35.5 36V17Z",fill:"#FFFFFF"})]}):y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"scale-[0.7]",children:y.jsx("span",{className:"tx-in-progress"})}),y.jsxs("span",{className:"text-sm font-normal italic text-white",children:[" ",n+r?`${r} / ${n}`:t?"Finishing":""," "]})]})})}function C_e({className:e,total:t,currentPage:n,pageSize:r=10,onChange:o=()=>{}}){const a=Math.ceil(t/r);return a>1&&y.jsxs("div",{className:`${e} gap-small flex items-center justify-end`,children:[y.jsx(Fa,{page:"previous",disabled:n===0,onClick:()=>o(n-1)}),S_e(a,n,o),y.jsx(Fa,{page:"next",disabled:n+1===a,onClick:()=>o(n+1)})]})}function Fa({page:e,disabled:t,currentPage:n,onClick:r}){return y.jsx("button",{className:`rounded-small inline-flex h-8 w-8 items-center justify-center border text-sm font-medium text-white transition disabled:scale-100 disabled:cursor-not-allowed disabled:border-transparent disabled:opacity-60 ${e==="more"||e===n?"hover:cursor-default":"hover:border-primary active:scale-95"} ${e===n?"border-primary bg-primary":"bg-component border-transparent"}`,onClick:r,disabled:t,children:e==="more"?y.jsx("span",{children:"..."}):e==="previous"?y.jsx("img",{alt:"Previous",width:16,height:16,src:"images/pagination/previous-page.svg"}):e==="next"?y.jsx("img",{alt:"Next",width:16,height:16,src:"images/pagination/next-page.svg"}):y.jsx("span",{children:e+1})})}function S_e(e,t,n){const r=new Array(e).fill(0).map((o,a)=>a);return t<3||e-48?y.jsxs(y.Fragment,{children:[r.slice(0,4).map(o=>y.jsx(Fa,{page:o,currentPage:t,onClick:()=>n(o)},o)),y.jsx(Fa,{page:"more"}),r.slice(-4).map(o=>y.jsx(Fa,{page:o,currentPage:t,onClick:()=>n(o)},o))]}):r.slice(0,e).map(o=>y.jsx(Fa,{page:o,currentPage:t,onClick:()=>n(o)},o)):y.jsxs(y.Fragment,{children:[y.jsx(Fa,{page:0,currentPage:t,onClick:()=>n(0)}),y.jsx(Fa,{page:"more"}),r.slice(t-1,t+2).map(o=>y.jsx(Fa,{page:o,currentPage:t,onClick:()=>n(o)},o)),y.jsx(Fa,{page:"more"}),y.jsx(Fa,{page:e-1,currentPage:t,onClick:()=>n(e-1)})]})}function T_e({onPageChange:e,onRowClick:t,totalRecords:n,currentPage:r,pageSize:o,dataSource:a,loading:i,columns:s}){const c=S.useMemo(()=>s.reduce((l,u)=>{const d=typeof u.width=="string"?u.width:typeof u.width=="number"?`${u.width}px`:"1fr";return l==="auto"?l=d:l=`${l} ${d}`,l},"auto"),[s]);return y.jsxs("div",{className:"space-y-3",children:[y.jsx("div",{className:"w-full overflow-x-auto pb-1",children:y.jsxs("div",{className:"w-[39.5rem]",children:[y.jsx("div",{className:"grid items-center gap-x-2 rounded-xl bg-white/10 px-3 py-2 text-sm font-semibold text-white",style:{gridTemplateColumns:c},children:s.map(({key:l,title:u})=>typeof u=="string"?y.jsx("h5",{children:u},l):y.jsx(S.Fragment,{children:u},l))}),y.jsxs("div",{className:"relative mt-1",children:[y.jsx(qs,{loading:i,className:`rounded-xl ${a!=null&&a.length?"bg-black/10 backdrop-blur-[2px]":""}`,color:"white"}),a!=null&&a.length?y.jsx("div",{className:"space-y-1 rounded-b-xl",children:a.map(l=>y.jsx("div",{className:`${t?"transition-colors hover:cursor-pointer hover:bg-white/5":""} grid items-center gap-x-2 rounded-xl px-3 py-2 text-sm font-normal text-white`,style:{gridTemplateColumns:c},onClick:()=>t&&t(l),children:s.map(({key:u,dataIndex:d,render:f})=>y.jsx(S.Fragment,{children:f?f(l):y.jsx("span",{children:`${l[d]}`})},u))},l.id))}):y.jsx("div",{className:"flex h-48 flex-col items-center justify-center gap-4",children:i?null:y.jsxs(y.Fragment,{children:[y.jsx("img",{width:50,height:63,alt:"No data",src:"images/no-data.svg"}),y.jsx("span",{className:"text-sm font-medium text-slate-400",children:"No data"})]})})]})]})}),n!==void 0&&r!==void 0&&y.jsx("div",{className:"overflow-x-auto pb-1",children:y.jsx(C_e,{total:n,pageSize:o,currentPage:r,onChange:e})})]})}const A_e=[{title:"",key:"status",width:"10%",render:e=>y.jsx("div",{className:"pl-[20%]",children:e.result===xn.SUCCESS?y.jsx(k_e,{}):y.jsx(j_e,{})})},{title:"Time",key:"time",width:"35%",render:e=>y.jsx("span",{children:hy(e.startTime*1e3,{compact:!0})})},{title:"Value",key:"value",render:e=>{var n;const t=(n=st(e.fromChain))==null?void 0:n.tokens.find(({symbol:r})=>r.toUpperCase()===e.sendToken.toUpperCase());return y.jsx("span",{className:"truncate",children:t?`${ut(BigInt(e.sendAmount),t.decimals)} ${t.symbol}`:"-"})}},{title:y.jsx("span",{className:"text-center",children:"From"}),key:"from",width:"15%",render:e=>{const t=st(e.fromChain);return y.jsx("div",{className:"flex justify-center",children:t?y.jsx("img",{alt:t.name,width:20,height:20,src:Rn(t.logo),className:"rounded-full"}):y.jsx("span",{children:"-"})})}},{title:y.jsx("span",{className:"text-center",children:"To"}),key:"to",width:"15%",render:e=>{const t=st(e.toChain);return y.jsx("div",{className:"flex justify-center",children:t?y.jsx("img",{alt:t.name,width:20,height:20,src:Rn(t.logo),className:"rounded-full"}):y.jsx("span",{children:"-"})})}}];function D_e({onPageChange:e,onRowClick:t,dataSource:n,currentPage:r,totalRecords:o,loading:a}){return y.jsx(T_e,{dataSource:n,totalRecords:o,currentPage:r,pageSize:10,columns:A_e,loading:a,onPageChange:e,onRowClick:t})}function k_e(){return y.jsx("svg",{viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",children:y.jsx("path",{d:"M364.032 896a46.144 46.144 0 0 1-35.712-15.424L15.36 559.936c-20.48-20.608-18.752-53.184 0-73.792 20.352-20.544 52.672-18.816 73.088 0l275.584 284.672 573.248-584.704a51.072 51.072 0 0 1 73.088 0 52.032 52.032 0 0 1 0 73.728l-610.624 620.736a48.768 48.768 0 0 1-35.712 15.424z",fill:"#1afa29"})})}function j_e(){return y.jsxs("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[y.jsx("path",{d:"M554.656 170.656h-85.344v362.656l273.056 183.456 51.2-68.256-238.944-157.856z",fill:"#00B2FF"}),y.jsx("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0z m0 938.656c-234.656 0-426.656-192-426.656-426.656S277.344 85.344 512 85.344s426.656 192 426.656 426.656-192 426.656-426.656 426.656z",fill:"#00B2FF"})]})}function P_e({children:e,isDetail:t,isOpen:n,onBack:r,onClose:o}){const a=S.useRef(null);return S.useEffect(()=>()=>{document.body.style.overflow="auto"},[]),Fs.createPortal(y.jsx(Al,{in:n,timeout:300,nodeRef:a,classNames:"modal-fade",unmountOnExit:!0,onEnter:()=>{document.body.style.overflow="hidden"},onExited:()=>{document.body.style.overflow="auto"},children:y.jsx("div",{className:"bg-background/80 p-medium fixed left-0 top-0 z-[21] flex h-screen w-screen items-center justify-center overflow-auto backdrop-blur-sm",onClick:i=>i.stopPropagation(),ref:a,children:y.jsxs("div",{className:"bg-secondary p-medium relative h-[36rem] w-full rounded-3xl lg:w-[42rem] lg:p-5",children:[y.jsx("button",{className:"right-medium top-medium absolute rounded-full bg-transparent p-[4px] transition hover:scale-105 hover:bg-white/10 active:scale-95",onClick:o,children:y.jsx("img",{width:20,height:20,alt:"Close modal",src:"images/close-white.svg"})}),y.jsx("div",{className:"flex h-6 items-center pl-1 lg:pl-0",children:t?y.jsx("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",className:"text-white/60 transition-[transform,color] hover:scale-105 hover:cursor-pointer hover:text-white active:scale-95",onClick:r,children:y.jsx("path",{d:"M402.746 146.746l-320 320c-24.994 24.992-24.994 65.516 0 90.508l320 320c24.994 24.992 65.516 24.992 90.51 0 24.996-24.992 24.996-65.516 0-90.508L282.508 576 896 576c35.346 0 64-28.652 64-64 0-35.346-28.654-64-64-64L282.508 448l210.746-210.746C505.75 224.758 512 208.378 512 192s-6.248-32.758-18.744-45.254C468.26 121.752 427.74 121.752 402.746 146.746z",fill:"currentColor"})}):y.jsx("h3",{className:"font-bold text-white",children:"History"})}),y.jsx("div",{className:"mt-5",children:e})]})})}),document.body)}function WY({children:e,className:t}){const[n,r]=S.useState(0),{isHistoryOpen:o,historyDetails:a,setIsHistoryOpen:i,setHistoryDetails:s}=$g(),{loading:c,data:l,total:u,refetch:d}=l_e(n,o);S.useEffect(()=>{o?d():(r(0),s(null))},[o,d,s]);const f=S.useRef(null),h=S.useRef(null),m=a?h:f,p=tn(),b=S.useCallback(v=>s(v),[s]);return p.address?y.jsxs(y.Fragment,{children:[y.jsx("button",{className:`${t}`,onClick:v=>{v.stopPropagation(),i(!0)},children:e??y.jsx("span",{children:"History"})}),y.jsx(P_e,{isOpen:o,isDetail:!!a,onClose:()=>i(!1),onBack:()=>s(null),children:y.jsx(vy,{children:y.jsx(Al,{classNames:a?"history-detail-fade":"history-table-fade",timeout:100,nodeRef:m,unmountOnExit:!0,children:y.jsx("div",{ref:m,children:a?y.jsx(__e,{data:a}):y.jsx(D_e,{onPageChange:r,onRowClick:b,currentPage:n,totalRecords:u,dataSource:l,loading:c})})},a?"detail":"history")})})]}):null}function I_e({label:e,children:t,placement:n,hoverable:r,sameWidth:o,labelClassName:a,childClassName:i}){const{state:s,setState:c,setFalse:l}=zg(!1),{refs:u,context:d,floatingStyles:f}=gd({open:s,onOpenChange:c,middleware:[hd(6),o?S_({apply({rects:_,elements:C}){Object.assign(C.floating.style,{width:`${_.reference.width}px`})}}):void 0],placement:n}),{styles:h,isMounted:m}=bd(d,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),p=A_(d,{enabled:!!r}),b=tm(d),v=pd(d),{getReferenceProps:g,getFloatingProps:w}=yd([p,b,v]);return y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:`${a}`,ref:u.setReference,...g(),children:[e,y.jsx("img",{style:{transform:s?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 transition-transform",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})]}),m&&y.jsx(md,{children:y.jsx("div",{style:f,ref:u.setFloating,...w(),className:"z-20",children:y.jsx("div",{className:`${i}`,style:h,onClick:l,children:t})})})]})}var qN='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',O_e={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${qN}`,system:qN},_p={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"}},R_e={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},GY=({borderRadius:e="large",fontStack:t="rounded",overlayBlur:n="none"})=>({blurs:{modalOverlay:R_e[n].modalOverlay},fonts:{body:O_e[t]},radii:{actionButton:_p[e].actionButton,connectButton:_p[e].connectButton,menuButton:_p[e].connectButton,modal:_p[e].modal,modalMobile:_p[e].modalMobile}}),S1="#1A1B1F",VY={blue:{accentColor:"#3898FF",accentColorForeground:"#FFF"},green:{accentColor:"#4BD166",accentColorForeground:S1},orange:{accentColor:"#FF983D",accentColorForeground:S1},pink:{accentColor:"#FF7AB8",accentColorForeground:S1},purple:{accentColor:"#7A70FF",accentColorForeground:"#FFF"},red:{accentColor:"#FF6257",accentColorForeground:"#FFF"}},WN=VY.blue,KY=({accentColor:e=WN.accentColor,accentColorForeground:t=WN.accentColorForeground,...n}={})=>({...GY(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:S1,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)"}});KY.accentColors=VY;var YY={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"}},GN=YY.blue,QY=({accentColor:e=GN.accentColor,accentColorForeground:t=GN.accentColorForeground,...n}={})=>({...GY(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)"}});QY.accentColors=YY;var yD=`{ - "connect_wallet": { - "label": "Connect Wallet", - "wrong_network": { - "label": "Wrong network" - } - }, - - "intro": { - "title": "What is a Wallet?", - "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.", - "digital_asset": { - "title": "A Home for your Digital Assets", - "description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs." - }, - "login": { - "title": "A New Way to Log In", - "description": "Instead of creating new accounts and passwords on every website, just connect your wallet." - }, - "get": { - "label": "Get a Wallet" - }, - "learn_more": { - "label": "Learn More" - } - }, - - "sign_in": { - "label": "Verify your account", - "description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.", - "message": { - "send": "Sign message", - "preparing": "Preparing message...", - "cancel": "Cancel", - "preparing_error": "Error preparing message, please retry!" - }, - "signature": { - "waiting": "Waiting for signature...", - "verifying": "Verifying signature...", - "signing_error": "Error signing message, please retry!", - "verifying_error": "Error verifying signature, please retry!", - "oops_error": "Oops, something went wrong!" - } - }, - - "connect": { - "label": "Connect", - "title": "Connect a Wallet", - "new_to_ethereum": { - "description": "New to Ethereum wallets?", - "learn_more": { - "label": "Learn More" - } - }, - "learn_more": { - "label": "Learn more" - }, - "recent": "Recent", - "status": { - "opening": "Opening %{wallet}...", - "connecting": "Connecting", - "connect_mobile": "Continue in %{wallet}", - "not_installed": "%{wallet} is not installed", - "not_available": "%{wallet} is not available", - "confirm": "Confirm connection in the extension", - "confirm_mobile": "Accept connection request in the wallet" - }, - "secondary_action": { - "get": { - "description": "Don't have %{wallet}?", - "label": "GET" - }, - "install": { - "label": "INSTALL" - }, - "retry": { - "label": "RETRY" - } - }, - "walletconnect": { - "description": { - "full": "Need the official WalletConnect modal?", - "compact": "Need the WalletConnect modal?" - }, - "open": { - "label": "OPEN" - } - } - }, - - "connect_scan": { - "title": "Scan with %{wallet}", - "fallback_title": "Scan with your phone" - }, - - "connector_group": { - "recommended": "Recommended", - "other": "Other", - "popular": "Popular", - "more": "More", - "others": "Others" - }, - - "get": { - "title": "Get a Wallet", - "action": { - "label": "GET" - }, - "mobile": { - "description": "Mobile Wallet" - }, - "extension": { - "description": "Browser Extension" - }, - "mobile_and_extension": { - "description": "Mobile Wallet and Extension" - }, - "mobile_and_desktop": { - "description": "Mobile and Desktop Wallet" - }, - "looking_for": { - "title": "Not what you're looking for?", - "mobile": { - "description": "Select a wallet on the main screen to get started with a different wallet provider." - }, - "desktop": { - "compact_description": "Select a wallet on the main screen to get started with a different wallet provider.", - "wide_description": "Select a wallet on the left to get started with a different wallet provider." - } - } - }, - - "get_options": { - "title": "Get started with %{wallet}", - "short_title": "Get %{wallet}", - "mobile": { - "title": "%{wallet} for Mobile", - "description": "Use the mobile wallet to explore the world of Ethereum.", - "download": { - "label": "Get the app" - } - }, - "extension": { - "title": "%{wallet} for %{browser}", - "description": "Access your wallet right from your favorite web browser.", - "download": { - "label": "Add to %{browser}" - } - }, - "desktop": { - "title": "%{wallet} for %{platform}", - "description": "Access your wallet natively from your powerful desktop.", - "download": { - "label": "Add to %{platform}" - } - } - }, - - "get_mobile": { - "title": "Install %{wallet}", - "description": "Scan with your phone to download on iOS or Android", - "continue": { - "label": "Continue" - } - }, - - "get_instructions": { - "mobile": { - "connect": { - "label": "Connect" - }, - "learn_more": { - "label": "Learn More" - } - }, - "extension": { - "refresh": { - "label": "Refresh" - }, - "learn_more": { - "label": "Learn More" - } - }, - "desktop": { - "connect": { - "label": "Connect" - }, - "learn_more": { - "label": "Learn More" - } - } - }, - - "chains": { - "title": "Switch Networks", - "wrong_network": "Wrong network detected, switch or disconnect to continue.", - "confirm": "Confirm in Wallet", - "switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.", - "switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.", - "disconnect": "Disconnect", - "connected": "Connected" - }, - - "profile": { - "disconnect": { - "label": "Disconnect" - }, - "copy_address": { - "label": "Copy Address", - "copied": "Copied!" - }, - "explorer": { - "label": "View more on explorer" - }, - "transactions": { - "description": "%{appName} transactions will appear here...", - "description_fallback": "Your transactions will appear here...", - "recent": { - "title": "Recent Transactions" - }, - "clear": { - "label": "Clear All" - } - } - }, - - "wallet_connectors": { - "argent": { - "qr_code": { - "step1": { - "description": "Put Argent on your home screen for faster access to your wallet.", - "title": "Open the Argent app" - }, - "step2": { - "description": "Create a wallet and username, or import an existing wallet.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the Scan QR button" - } - } - }, - - "bifrost": { - "qr_code": { - "step1": { - "description": "We recommend putting Bifrost Wallet on your home screen for quicker access.", - "title": "Open the Bifrost Wallet app" - }, - "step2": { - "description": "Create or import a wallet using your recovery phrase.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - } - }, - - "bitget": { - "qr_code": { - "step1": { - "description": "We recommend putting Bitget Wallet on your home screen for quicker access.", - "title": "Open the Bitget Wallet app" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - }, - - "extension": { - "step1": { - "description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.", - "title": "Install the Bitget Wallet extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "bitski": { - "extension": { - "step1": { - "description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.", - "title": "Install the Bitski extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "coin98": { - "qr_code": { - "step1": { - "description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.", - "title": "Open the Coin98 Wallet app" - }, - "step2": { - "description": "You can easily backup your wallet using our backup feature on your phone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the WalletConnect button" - } - }, - - "extension": { - "step1": { - "description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.", - "title": "Install the Coin98 Wallet extension" - }, - "step2": { - "description": "Create a new wallet or import an existing one.", - "title": "Create or Import a wallet" - }, - "step3": { - "description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "coinbase": { - "qr_code": { - "step1": { - "description": "We recommend putting Coinbase Wallet on your home screen for quicker access.", - "title": "Open the Coinbase Wallet app" - }, - "step2": { - "description": "You can easily backup your wallet using the cloud backup feature.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - }, - - "extension": { - "step1": { - "description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.", - "title": "Install the Coinbase Wallet extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "core": { - "qr_code": { - "step1": { - "description": "We recommend putting Core on your home screen for faster access to your wallet.", - "title": "Open the Core app" - }, - "step2": { - "description": "You can easily backup your wallet using our backup feature on your phone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the WalletConnect button" - } - }, - - "extension": { - "step1": { - "description": "We recommend pinning Core to your taskbar for quicker access to your wallet.", - "title": "Install the Core extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "fox": { - "qr_code": { - "step1": { - "description": "We recommend putting FoxWallet on your home screen for quicker access.", - "title": "Open the FoxWallet app" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - } - }, - - "frontier": { - "qr_code": { - "step1": { - "description": "We recommend putting Frontier Wallet on your home screen for quicker access.", - "title": "Open the Frontier Wallet app" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - }, - - "extension": { - "step1": { - "description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.", - "title": "Install the Frontier Wallet extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "im_token": { - "qr_code": { - "step1": { - "title": "Open the imToken app", - "description": "Put imToken app on your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap Scanner Icon in top right corner", - "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." - } - } - }, - - "metamask": { - "qr_code": { - "step1": { - "title": "Open the MetaMask app", - "description": "We recommend putting MetaMask on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - }, - - "extension": { - "step1": { - "title": "Install the MetaMask extension", - "description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "okx": { - "qr_code": { - "step1": { - "title": "Open the OKX Wallet app", - "description": "We recommend putting OKX Wallet on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - }, - - "extension": { - "step1": { - "title": "Install the OKX Wallet extension", - "description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "omni": { - "qr_code": { - "step1": { - "title": "Open the Omni app", - "description": "Add Omni to your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap the QR icon and scan", - "description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect." - } - } - }, - - "token_pocket": { - "qr_code": { - "step1": { - "title": "Open the TokenPocket app", - "description": "We recommend putting TokenPocket on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - }, - - "extension": { - "step1": { - "title": "Install the TokenPocket extension", - "description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "trust": { - "qr_code": { - "step1": { - "title": "Open the Trust Wallet app", - "description": "Put Trust Wallet on your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap WalletConnect in Settings", - "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." - } - }, - - "extension": { - "step1": { - "title": "Install the Trust Wallet extension", - "description": "Click at the top right of your browser and pin Trust Wallet for easy access." - }, - "step2": { - "title": "Create or Import a wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "uniswap": { - "qr_code": { - "step1": { - "title": "Open the Uniswap app", - "description": "Add Uniswap Wallet to your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap the QR icon and scan", - "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect." - } - } - }, - - "zerion": { - "qr_code": { - "step1": { - "title": "Open the Zerion app", - "description": "We recommend putting Zerion on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - }, - - "extension": { - "step1": { - "title": "Install the Zerion extension", - "description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "rainbow": { - "qr_code": { - "step1": { - "title": "Open the Rainbow app", - "description": "We recommend putting Rainbow on your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "You can easily backup your wallet using our backup feature on your phone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - } - }, - - "enkrypt": { - "extension": { - "step1": { - "description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.", - "title": "Install the Enkrypt Wallet extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "frame": { - "extension": { - "step1": { - "description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.", - "title": "Install Frame & the companion extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "one_key": { - "extension": { - "step1": { - "title": "Install the OneKey Wallet extension", - "description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "phantom": { - "extension": { - "step1": { - "title": "Install the Phantom extension", - "description": "We recommend pinning Phantom to your taskbar for easier access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "rabby": { - "extension": { - "step1": { - "title": "Install the Rabby extension", - "description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "safeheron": { - "extension": { - "step1": { - "title": "Install the Core extension", - "description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "taho": { - "extension": { - "step1": { - "title": "Install the Taho extension", - "description": "We recommend pinning Taho to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "talisman": { - "extension": { - "step1": { - "title": "Install the Talisman extension", - "description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import an Ethereum Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "xdefi": { - "extension": { - "step1": { - "title": "Install the XDEFI Wallet extension", - "description": "We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "zeal": { - "extension": { - "step1": { - "title": "Install the Zeal extension", - "description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "safepal": { - "extension": { - "step1": { - "title": "Install the SafePal Wallet extension", - "description": "Click at the top right of your browser and pin SafePal Wallet for easy access." - }, - "step2": { - "title": "Create or Import a wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension." - } - }, - "qr_code": { - "step1": { - "title": "Open the SafePal Wallet app", - "description": "Put SafePal Wallet on your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap WalletConnect in Settings", - "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." - } - } - }, - - "desig": { - "extension": { - "step1": { - "title": "Install the Desig extension", - "description": "We recommend pinning Desig to your taskbar for easier access to your wallet." - }, - "step2": { - "title": "Create a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "subwallet": { - "extension": { - "step1": { - "title": "Install the SubWallet extension", - "description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - }, - "qr_code": { - "step1": { - "title": "Open the SubWallet app", - "description": "We recommend putting SubWallet on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - } - }, - - "clv": { - "extension": { - "step1": { - "title": "Install the CLV Wallet extension", - "description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - }, - "qr_code": { - "step1": { - "title": "Open the CLV Wallet app", - "description": "We recommend putting CLV Wallet on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - } - }, - - "okto": { - "qr_code": { - "step1": { - "title": "Open the Okto app", - "description": "Add Okto to your home screen for quick access" - }, - "step2": { - "title": "Create an MPC Wallet", - "description": "Create an account and generate a wallet" - }, - "step3": { - "title": "Tap WalletConnect in Settings", - "description": "Tap the Scan QR icon at the top right and confirm the prompt to connect." - } - } - }, - - "ledger": { - "desktop": { - "step1": { - "title": "Open the Ledger Live app", - "description": "We recommend putting Ledger Live on your home screen for quicker access." - }, - "step2": { - "title": "Set up your Ledger", - "description": "Set up a new Ledger or connect to an existing one." - }, - "step3": { - "title": "Connect", - "description": "A connection prompt will appear for you to connect your wallet." - } - }, - "qr_code": { - "step1": { - "title": "Open the Ledger Live app", - "description": "We recommend putting Ledger Live on your home screen for quicker access." - }, - "step2": { - "title": "Set up your Ledger", - "description": "You can either sync with the desktop app or connect your Ledger." - }, - "step3": { - "title": "Scan the code", - "description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet." - } - } - } - } -} -`;function N_e(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e}var XY=N_e;function JY(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 a in t.responsiveArray)r[a]!=null&&(o[t.responsiveArray[a]]=r[a]);return o}return r}return XY(n,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function B_e(e){var{conditions:t}=e;if(!t)throw new Error("Styles have no conditions");var n=JY(e);function r(o,a){if(typeof o=="string"||typeof o=="number"||typeof o=="boolean"){if(!t.defaultCondition)throw new Error("No default condition");return a(o,t.defaultCondition)}var i=Array.isArray(o)?n(o):o,s={};for(var c in i)i[c]!=null&&(s[c]=a(i[c],c));return s}return XY(r,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}function F_e(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M_e(e){var t=F_e(e,"string");return typeof t=="symbol"?t:String(t)}function L_e(e,t,n){return t=M_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VN(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 m3(e){for(var t=1;tfunction(){for(var t=arguments.length,n=new Array(t),r=0;rc.styles)),a=Object.keys(o),i=a.filter(c=>"mappings"in o[c]),s=c=>{var l=[],u={},d=m3({},c),f=!1;for(var h of i){var m=c[h];if(m!=null){var p=o[h];f=!0;for(var b of p.mappings)u[b]=m,d[b]==null&&delete d[b]}}var v=f?m3(m3({},u),d):c,g=function(){var x=v[w],E=o[w];try{if(E.mappings)return"continue";if(typeof x=="string"||typeof x=="number")l.push(E.values[x].defaultClass);else if(Array.isArray(x))for(var T=0;Te,z_e=function(){return U_e($_e)(...arguments)};function ZY(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t"u")return oxe;var t=axe(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},sxe=rQ(),th="data-scroll-locked",cxe=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(H_e,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(s,"px ").concat(r,`; - } - body[`).concat(th,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(a,`px; - padding-right: `).concat(i,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(s,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(T1,` { - right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(A1,` { - margin-right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(T1," .").concat(T1,` { - right: 0 `).concat(r,`; - } - - .`).concat(A1," .").concat(A1,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(th,`] { - `).concat(q_e,": ").concat(s,`px; - } -`)},YN=function(){var e=parseInt(document.body.getAttribute(th)||"0",10);return isFinite(e)?e:0},lxe=function(){S.useEffect(function(){return document.body.setAttribute(th,(YN()+1).toString()),function(){var e=YN()-1;e<=0?document.body.removeAttribute(th):document.body.setAttribute(th,e.toString())}},[])},uxe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;lxe();var a=S.useMemo(function(){return ixe(o)},[o]);return S.createElement(sxe,{styles:cxe(a,!t,o,n?"":"!important")})},bD=!1;if(typeof window<"u")try{var fv=Object.defineProperty({},"passive",{get:function(){return bD=!0,!0}});window.addEventListener("test",fv,fv),window.removeEventListener("test",fv,fv)}catch{bD=!1}var Xd=bD?{passive:!1}:!1,dxe=function(e){return e.tagName==="TEXTAREA"},oQ=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!dxe(e)&&n[t]==="visible")},fxe=function(e){return oQ(e,"overflowY")},hxe=function(e){return oQ(e,"overflowX")},QN=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=aQ(e,r);if(o){var a=iQ(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},mxe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},pxe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},aQ=function(e,t){return e==="v"?fxe(t):hxe(t)},iQ=function(e,t){return e==="v"?mxe(t):pxe(t)},gxe=function(e,t){return e==="h"&&t==="rtl"?-1:1},yxe=function(e,t,n,r,o){var a=gxe(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,c=t.contains(s),l=!1,u=i>0,d=0,f=0;do{var h=iQ(e,s),m=h[0],p=h[1],b=h[2],v=p-b-a*m;(m||v)&&aQ(e,s)&&(d+=v,f+=m),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(Math.abs(d)<1||!o)||!u&&(Math.abs(f)<1||!o))&&(l=!0),l},hv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},XN=function(e){return[e.deltaX,e.deltaY]},JN=function(e){return e&&"current"in e?e.current:e},bxe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vxe=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},wxe=0,Jd=[];function Exe(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(wxe++)[0],a=S.useState(rQ)[0],i=S.useRef(e);S.useEffect(function(){i.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=vn([e.lockRef.current],(e.shards||[]).map(JN),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(p,b){if("touches"in p&&p.touches.length===2)return!i.current.allowPinchZoom;var v=hv(p),g=n.current,w="deltaX"in p?p.deltaX:g[0]-v[0],_="deltaY"in p?p.deltaY:g[1]-v[1],C,x=p.target,E=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in p&&E==="h"&&x.type==="range")return!1;var T=QN(E,x);if(!T)return!0;if(T?C=E:(C=E==="v"?"h":"v",T=QN(E,x)),!T)return!1;if(!r.current&&"changedTouches"in p&&(w||_)&&(r.current=C),!C)return!0;var k=r.current||C;return yxe(k,b,p,k==="h"?w:_,!0)},[]),c=S.useCallback(function(p){var b=p;if(!(!Jd.length||Jd[Jd.length-1]!==a)){var v="deltaY"in b?XN(b):hv(b),g=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&bxe(C.delta,v)})[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var w=(i.current.shards||[]).map(JN).filter(Boolean).filter(function(C){return C.contains(b.target)}),_=w.length>0?s(b,w[0]):!i.current.noIsolation;_&&b.cancelable&&b.preventDefault()}}},[]),l=S.useCallback(function(p,b,v,g){var w={name:p,delta:b,target:v,should:g,shadowParent:_xe(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),u=S.useCallback(function(p){n.current=hv(p),r.current=void 0},[]),d=S.useCallback(function(p){l(p.type,XN(p),p.target,s(p,e.lockRef.current))},[]),f=S.useCallback(function(p){l(p.type,hv(p),p.target,s(p,e.lockRef.current))},[]);S.useEffect(function(){return Jd.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Xd),document.addEventListener("touchmove",c,Xd),document.addEventListener("touchstart",u,Xd),function(){Jd=Jd.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,Xd),document.removeEventListener("touchmove",c,Xd),document.removeEventListener("touchstart",u,Xd)}},[]);var h=e.removeScrollBar,m=e.inert;return S.createElement(S.Fragment,null,m?S.createElement(a,{styles:vxe(o)}):null,h?S.createElement(uxe,{gapMode:e.gapMode}):null)}function _xe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xxe=X_e(nQ,Exe);var sQ=S.forwardRef(function(e,t){return S.createElement(Xx,K({},e,{ref:t,sideCar:xxe}))});sQ.classNames=Xx.classNames;function ZN(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function Cxe(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 cQ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r={};for(var o in e){var a=e[o],i=[...n,o];typeof a=="string"||typeof a=="number"||a==null?r[o]=t(a,i):typeof a=="object"&&!Array.isArray(a)?r[o]=cQ(a,t,i):console.warn('Skipping invalid key "'.concat(i.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(a)?"Array":typeof a,'"'))}return r}function eB(e,t){var n={};if(typeof t=="object"){var r=e;cQ(t,(s,c)=>{if(s!=null){var l=Cxe(r,c);n[ZN(l)]=String(s)}})}else{var o=e;for(var a in o){var i=o[a];i!=null&&(n[ZN(a)]=i)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(c=>"".concat(c,":").concat(this[c])).join(";")},writable:!1}),n}var vD={exports:{}};(function(e,t){(function(n,r){var o="1.0.38",a="",i="?",s="function",c="undefined",l="object",u="string",d="major",f="model",h="name",m="type",p="vendor",b="version",v="architecture",g="console",w="mobile",_="tablet",C="smarttv",x="wearable",E="embedded",T=500,k="Amazon",D="Apple",R="ASUS",F="BlackBerry",B="Browser",j="Chrome",P="Edge",O="Firefox",I="Google",N="Huawei",M="LG",L="Microsoft",X="Motorola",J="Opera",U="Samsung",G="Sharp",Z="Sony",ae="Xiaomi",ne="Zebra",ie="Facebook",te="Chromium OS",ee="Mac OS",re=function(Q,ce){var pe={};for(var De in Q)ce[De]&&ce[De].length%2===0?pe[De]=ce[De].concat(Q[De]):pe[De]=Q[De];return pe},z=function(Q){for(var ce={},pe=0;pe0?Oe.length===2?typeof Oe[1]==s?this[Oe[0]]=Oe[1].call(this,at):this[Oe[0]]=Oe[1]:Oe.length===3?typeof Oe[1]===s&&!(Oe[1].exec&&Oe[1].test)?this[Oe[0]]=at?Oe[1].call(this,at,Oe[2]):r:this[Oe[0]]=at?at.replace(Oe[1],Oe[2]):r:Oe.length===4&&(this[Oe[0]]=at?Oe[3].call(this,at.replace(Oe[1],Oe[2])):r):this[Oe]=at||r;pe+=2}},Te=function(Q,ce){for(var pe in ce)if(typeof ce[pe]===l&&ce[pe].length>0){for(var De=0;De2&&(_e[f]="iPad",_e[m]=_),_e},this.getEngine=function(){var _e={};return _e[h]=r,_e[b]=r,Qe.call(_e,De,Je.engine),_e},this.getOS=function(){var _e={};return _e[h]=r,_e[b]=r,Qe.call(_e,De,Je.os),Oe&&!_e[h]&&Ie&&Ie.platform&&Ie.platform!="Unknown"&&(_e[h]=Ie.platform.replace(/chrome os/i,te).replace(/macos/i,ee)),_e},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 De},this.setUA=function(_e){return De=typeof _e===u&&_e.length>T?ke(_e,T):_e,this},this.setUA(De),this};ge.VERSION=o,ge.BROWSER=z([h,b,d]),ge.CPU=z([v]),ge.DEVICE=z([f,p,m,g,w,C,_,x,E]),ge.ENGINE=ge.OS=z([h,b]),e.exports&&(t=e.exports=ge),t.UAParser=ge;var Y=typeof n!==c&&(n.jQuery||n.Zepto);if(Y&&!Y.ua){var W=new ge;Y.ua=W.getResult(),Y.ua.get=function(){return W.getUA()},Y.ua.set=function(Q){W.setUA(Q);var ce=W.getResult();for(var pe in ce)Y.ua[pe]=ce[pe]}}})(typeof window=="object"?window:We)})(vD,vD.exports);var Sxe=vD.exports,wy={},Txe=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},lQ={},Jo={};let x4;const Axe=[0,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];Jo.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Jo.getSymbolTotalCodewords=function(t){return Axe[t]};Jo.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Jo.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');x4=t};Jo.isKanjiModeEnabled=function(){return typeof x4<"u"};Jo.toSJIS=function(t){return x4(t)};var Jx={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,o){if(e.isValid(r))return r;try{return t(r)}catch{return o}}})(Jx);function uQ(){this.buffer=[],this.length=0}uQ.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Dxe=uQ;function Ey(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Ey.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)};Ey.prototype.get=function(e,t){return this.data[e*this.size+t]};Ey.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Ey.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var kxe=Ey,dQ={};(function(e){const t=Jo.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const o=Math.floor(r/7)+2,a=t(r),i=a===145?26:Math.ceil((a-13)/(2*o-2))*2,s=[a-7];for(let c=1;c=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const a=o.size;let i=0,s=0,c=0,l=null,u=null;for(let d=0;d=5&&(i+=t.N1+(s-5)),l=h,s=1),h=o.get(f,d),h===u?c++:(c>=5&&(i+=t.N1+(c-5)),u=h,c=1)}s>=5&&(i+=t.N1+(s-5)),c>=5&&(i+=t.N1+(c-5))}return i},e.getPenaltyN2=function(o){const a=o.size;let i=0;for(let s=0;s=10&&(s===1488||s===93)&&i++,c=c<<1&2047|o.get(u,l),u>=10&&(c===1488||c===93)&&i++}return i*t.N3},e.getPenaltyN4=function(o){let a=0;const i=o.data.length;for(let c=0;c=0;){const i=a[0];for(let c=0;c0){const a=new Uint8Array(this.degree);return a.set(r,o),a}return r};var Pxe=C4,gQ={},Dl={},S4={};S4.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var $i={};const yQ="[0-9]+",Ixe="[A-Z $%*+\\-./:]+";let yg="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";yg=yg.replace(/u/g,"\\u");const Oxe="(?:(?![A-Z0-9 $%*+\\-./:]|"+yg+`)(?:.|[\r -]))+`;$i.KANJI=new RegExp(yg,"g");$i.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");$i.BYTE=new RegExp(Oxe,"g");$i.NUMERIC=new RegExp(yQ,"g");$i.ALPHANUMERIC=new RegExp(Ixe,"g");const Rxe=new RegExp("^"+yg+"$"),Nxe=new RegExp("^"+yQ+"$"),Bxe=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");$i.testKanji=function(t){return Rxe.test(t)};$i.testNumeric=function(t){return Nxe.test(t)};$i.testAlphanumeric=function(t){return Bxe.test(t)};(function(e){const t=S4,n=$i;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,i){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?a.ccBits[0]:i<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return n.testNumeric(a)?e.NUMERIC:n.testAlphanumeric(a)?e.ALPHANUMERIC:n.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(a,i){if(e.isValid(a))return a;try{return r(a)}catch{return i}}})(Dl);(function(e){const t=Jo,n=Zx,r=Jx,o=Dl,a=S4,i=7973,s=t.getBCHDigit(i);function c(f,h,m){for(let p=1;p<=40;p++)if(h<=e.getCapacity(p,m,f))return p}function l(f,h){return o.getCharCountIndicator(f,h)+4}function u(f,h){let m=0;return f.forEach(function(p){const b=l(p.mode,h);m+=b+p.getBitsLength()}),m}function d(f,h){for(let m=1;m<=40;m++)if(u(f,m)<=e.getCapacity(m,h,o.MIXED))return m}e.from=function(h,m){return a.isValid(h)?parseInt(h,10):m},e.getCapacity=function(h,m,p){if(!a.isValid(h))throw new Error("Invalid QR Code version");typeof p>"u"&&(p=o.BYTE);const b=t.getSymbolTotalCodewords(h),v=n.getTotalCodewordsCount(h,m),g=(b-v)*8;if(p===o.MIXED)return g;const w=g-l(p,h);switch(p){case o.NUMERIC:return Math.floor(w/10*3);case o.ALPHANUMERIC:return Math.floor(w/11*2);case o.KANJI:return Math.floor(w/13);case o.BYTE:default:return Math.floor(w/8)}},e.getBestVersionForData=function(h,m){let p;const b=r.from(m,r.M);if(Array.isArray(h)){if(h.length>1)return d(h,b);if(h.length===0)return 1;p=h[0]}else p=h;return c(p.mode,p.getLength(),b)},e.getEncodedBits=function(h){if(!a.isValid(h)||h<7)throw new Error("Invalid QR Code version");let m=h<<12;for(;t.getBCHDigit(m)-s>=0;)m^=i<=0;)o^=vQ<0&&(r=this.data.substr(n),o=parseInt(r,10),t.put(o,a*3+1))};var Lxe=Th;const Uxe=Dl,b3=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Ah(e){this.mode=Uxe.ALPHANUMERIC,this.data=e}Ah.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Ah.prototype.getLength=function(){return this.data.length};Ah.prototype.getBitsLength=function(){return Ah.getBitsLength(this.data.length)};Ah.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=b3.indexOf(this.data[n])*45;r+=b3.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(b3.indexOf(this.data[n]),6)};var $xe=Ah,zxe=function(t){for(var n=[],r=t.length,o=0;o=55296&&a<=56319&&r>o+1){var i=t.charCodeAt(o+1);i>=56320&&i<=57343&&(a=(a-55296)*1024+i-56320+65536,o+=1)}if(a<128){n.push(a);continue}if(a<2048){n.push(a>>6|192),n.push(a&63|128);continue}if(a<55296||a>=57344&&a<65536){n.push(a>>12|224),n.push(a>>6&63|128),n.push(a&63|128);continue}if(a>=65536&&a<=1114111){n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(a&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const Hxe=zxe,qxe=Dl;function Dh(e){this.mode=qxe.BYTE,typeof e=="string"&&(e=Hxe(e)),this.data=new Uint8Array(e)}Dh.getBitsLength=function(t){return t*8};Dh.prototype.getLength=function(){return this.data.length};Dh.prototype.getBitsLength=function(){return Dh.getBitsLength(this.data.length)};Dh.prototype.write=function(e){for(let t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` -Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var Kxe=kh,EQ={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,o){var a={},i={};i[r]=0;var s=t.PriorityQueue.make();s.push(r,0);for(var c,l,u,d,f,h,m,p,b;!s.empty();){c=s.pop(),l=c.value,d=c.cost,f=n[l]||{};for(u in f)f.hasOwnProperty(u)&&(h=f[u],m=d+h,p=i[u],b=typeof i[u]>"u",(b||p>m)&&(i[u]=m,s.push(u,m),a[u]=l))}if(typeof o<"u"&&typeof i[o]>"u"){var v=["Could not find a path from ",r," to ",o,"."].join("");throw new Error(v)}return a},extract_shortest_path_from_predecessor_list:function(n,r){for(var o=[],a=r;a;)o.push(a),n[a],a=n[a];return o.reverse(),o},find_path:function(n,r,o){var a=t.single_source_shortest_paths(n,r,o);return t.extract_shortest_path_from_predecessor_list(a,o)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,o={},a;n=n||{};for(a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);return o.queue=[],o.sorter=n.sorter||r.default_sorter,o},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var o={value:n,cost:r};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(EQ);var Yxe=EQ.exports;(function(e){const t=Dl,n=Lxe,r=$xe,o=Wxe,a=Kxe,i=$i,s=Jo,c=Yxe;function l(v){return unescape(encodeURIComponent(v)).length}function u(v,g,w){const _=[];let C;for(;(C=v.exec(w))!==null;)_.push({data:C[0],index:C.index,mode:g,length:C[0].length});return _}function d(v){const g=u(i.NUMERIC,t.NUMERIC,v),w=u(i.ALPHANUMERIC,t.ALPHANUMERIC,v);let _,C;return s.isKanjiModeEnabled()?(_=u(i.BYTE,t.BYTE,v),C=u(i.KANJI,t.KANJI,v)):(_=u(i.BYTE_KANJI,t.BYTE,v),C=[]),g.concat(w,_,C).sort(function(E,T){return E.index-T.index}).map(function(E){return{data:E.data,mode:E.mode,length:E.length}})}function f(v,g){switch(g){case t.NUMERIC:return n.getBitsLength(v);case t.ALPHANUMERIC:return r.getBitsLength(v);case t.KANJI:return a.getBitsLength(v);case t.BYTE:return o.getBitsLength(v)}}function h(v){return v.reduce(function(g,w){const _=g.length-1>=0?g[g.length-1]:null;return _&&_.mode===w.mode?(g[g.length-1].data+=w.data,g):(g.push(w),g)},[])}function m(v){const g=[];for(let w=0;w=0&&s<=6&&(c===0||c===6)||c>=0&&c<=6&&(s===0||s===6)||s>=2&&s<=4&&c>=2&&c<=4?e.set(a+s,i+c,!0,!0):e.set(a+s,i+c,!1,!0))}}function o2e(e){const t=e.size;for(let n=8;n>s&1)===1,e.set(o,a,i,!0),e.set(a,o,i,!0)}function E3(e,t,n){const r=e.size,o=t2e.getEncodedBits(t,n);let a,i;for(a=0;a<15;a++)i=(o>>a&1)===1,a<6?e.set(a,8,i,!0):a<8?e.set(a+1,8,i,!0):e.set(r-15+a,8,i,!0),a<8?e.set(8,r-a-1,i,!0):a<9?e.set(8,15-a-1+1,i,!0):e.set(8,15-a-1,i,!0);e.set(r-8,8,1,!0)}function s2e(e,t){const n=e.size;let r=-1,o=n-1,a=7,i=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let c=0;c<2;c++)if(!e.isReserved(o,s-c)){let l=!1;i>>a&1)===1),e.set(o,s-c,l),a--,a===-1&&(i++,a=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}function c2e(e,t,n){const r=new Qxe;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),n2e.getCharCountIndicator(c.mode,e)),c.write(r)});const o=t2.getSymbolTotalCodewords(e),a=_D.getTotalCodewordsCount(e,t),i=(o-a)*8;for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const s=(i-r.getLengthInBits())/8;for(let c=0;c=7&&i2e(c,t),s2e(c,i),isNaN(r)&&(r=ED.getBestMask(c,E3.bind(null,c,n))),ED.applyMask(r,c),E3(c,n,r),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}lQ.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let r=v3.M,o,a;return typeof n<"u"&&(r=v3.from(n.errorCorrectionLevel,v3.M),o=wE.from(n.version),a=ED.from(n.maskPattern),n.toSJISFunc&&t2.setToSJISFunction(n.toSJISFunc)),u2e(t,o,r,a)};var _Q={},T4={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");const o=parseInt(r.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const o=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,a=r.width&&r.width>=21?r.width:void 0,i=r.scale||4;return{width:a,scale:a?4:i,margin:o,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,o){return o.width&&o.width>=r+o.margin*2?o.width/(r+o.margin*2):o.scale},e.getImageWidth=function(r,o){const a=e.getScale(r,o);return Math.floor((r+o.margin*2)*a)},e.qrToImageData=function(r,o,a){const i=o.modules.size,s=o.modules.data,c=e.getScale(i,a),l=Math.floor((i+a.margin*2)*c),u=a.margin*c,d=[a.color.light,a.color.dark];for(let f=0;f=u&&h>=u&&f"u"&&(!i||!i.getContext)&&(c=i,i=void 0),i||(l=r()),c=t.getOptions(c);const u=t.getImageWidth(a.modules.size,c),d=l.getContext("2d"),f=d.createImageData(u,u);return t.qrToImageData(f.data,a,c),n(d,l,u),d.putImageData(f,0,0),l},e.renderToDataURL=function(a,i,s){let c=s;typeof c>"u"&&(!i||!i.getContext)&&(c=i,i=void 0),c||(c={});const l=e.render(a,i,c),u=c.type||"image/png",d=c.rendererOpts||{};return l.toDataURL(u,d.quality)}})(_Q);var xQ={};const d2e=T4;function rB(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function _3(e,t,n){let r=e+t;return typeof n<"u"&&(r+=" "+n),r}function f2e(e,t,n){let r="",o=0,a=!1,i=0;for(let s=0;s0&&c>0&&e[s-1]||(r+=a?_3("M",c+n,.5+l+n):_3("m",o,0),o=0,a=!1),c+1':"",l="',u='viewBox="0 0 '+s+" "+s+'"',f=''+c+l+` -`;return typeof r=="function"&&r(null,f),f};const h2e=Txe,xD=lQ,CQ=_Q,m2e=xQ;function A4(e,t,n,r,o){const a=[].slice.call(arguments,1),i=a.length,s=typeof a[i-1]=="function";if(!s&&!h2e())throw new Error("Callback required as last argument");if(s){if(i<2)throw new Error("Too few arguments provided");i===2?(o=n,n=t,t=r=void 0):i===3&&(t.getContext&&typeof o>"u"?(o=r,r=void 0):(o=r,r=n,n=t,t=void 0))}else{if(i<1)throw new Error("Too few arguments provided");return i===1?(n=t,t=r=void 0):i===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(c,l){try{const u=xD.create(n,r);c(e(u,t,r))}catch(u){l(u)}})}try{const c=xD.create(n,r);o(null,e(c,t,r))}catch(c){o(c)}}wy.create=xD.create;wy.toCanvas=A4.bind(null,CQ.render);wy.toDataURL=A4.bind(null,CQ.renderToDataURL);wy.toString=A4.bind(null,function(e,t,n){return m2e.render(e,n)});var D4={},n2={},ot={},SQ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){var l=s>>>16&65535,u=s&65535,d=c>>>16&65535,f=c&65535;return u*f+(l*f+u*d<<16>>>0)|0}e.mul=Math.imul||t;function n(s,c){return s+c|0}e.add=n;function r(s,c){return s-c|0}e.sub=r;function o(s,c){return s<>>32-c}e.rotl=o;function a(s,c){return s<<32-c|s>>>c}e.rotr=a;function i(s){return typeof s=="number"&&isFinite(s)&&Math.floor(s)===s}e.isInteger=Number.isInteger||i,e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(s){return e.isInteger(s)&&s>=-e.MAX_SAFE_INTEGER&&s<=e.MAX_SAFE_INTEGER}})(SQ);Object.defineProperty(ot,"__esModule",{value:!0});var TQ=SQ;function p2e(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}ot.readInt16BE=p2e;function g2e(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}ot.readUint16BE=g2e;function y2e(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}ot.readInt16LE=y2e;function b2e(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}ot.readUint16LE=b2e;function AQ(e,t,n){return t===void 0&&(t=new Uint8Array(2)),n===void 0&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}ot.writeUint16BE=AQ;ot.writeInt16BE=AQ;function DQ(e,t,n){return t===void 0&&(t=new Uint8Array(2)),n===void 0&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}ot.writeUint16LE=DQ;ot.writeInt16LE=DQ;function CD(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}ot.readInt32BE=CD;function SD(e,t){return t===void 0&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}ot.readUint32BE=SD;function TD(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}ot.readInt32LE=TD;function AD(e,t){return t===void 0&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}ot.readUint32LE=AD;function EE(e,t,n){return t===void 0&&(t=new Uint8Array(4)),n===void 0&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}ot.writeUint32BE=EE;ot.writeInt32BE=EE;function _E(e,t,n){return t===void 0&&(t=new Uint8Array(4)),n===void 0&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}ot.writeUint32LE=_E;ot.writeInt32LE=_E;function v2e(e,t){t===void 0&&(t=0);var n=CD(e,t),r=CD(e,t+4);return n*4294967296+r-(r>>31)*4294967296}ot.readInt64BE=v2e;function w2e(e,t){t===void 0&&(t=0);var n=SD(e,t),r=SD(e,t+4);return n*4294967296+r}ot.readUint64BE=w2e;function E2e(e,t){t===void 0&&(t=0);var n=TD(e,t),r=TD(e,t+4);return r*4294967296+n-(n>>31)*4294967296}ot.readInt64LE=E2e;function _2e(e,t){t===void 0&&(t=0);var n=AD(e,t),r=AD(e,t+4);return r*4294967296+n}ot.readUint64LE=_2e;function kQ(e,t,n){return t===void 0&&(t=new Uint8Array(8)),n===void 0&&(n=0),EE(e/4294967296>>>0,t,n),EE(e>>>0,t,n+4),t}ot.writeUint64BE=kQ;ot.writeInt64BE=kQ;function jQ(e,t,n){return t===void 0&&(t=new Uint8Array(8)),n===void 0&&(n=0),_E(e>>>0,t,n),_E(e/4294967296>>>0,t,n+4),t}ot.writeUint64LE=jQ;ot.writeInt64LE=jQ;function x2e(e,t,n){if(n===void 0&&(n=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,o=1,a=e/8+n-1;a>=n;a--)r+=t[a]*o,o*=256;return r}ot.readUintBE=x2e;function C2e(e,t,n){if(n===void 0&&(n=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,o=1,a=n;a=r;a--)n[a]=t/o&255,o*=256;return n}ot.writeUintBE=S2e;function T2e(e,t,n,r){if(n===void 0&&(n=new Uint8Array(e/8)),r===void 0&&(r=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!TQ.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var o=1,a=r;a>>16|P<<16,R=R+P|0,E^=R,E=E>>>20|E<<12,_=_+T|0,O^=_,O=O>>>16|O<<16,F=F+O|0,T^=F,T=T>>>20|T<<12,C=C+k|0,I^=C,I=I>>>16|I<<16,B=B+I|0,k^=B,k=k>>>20|k<<12,x=x+D|0,N^=x,N=N>>>16|N<<16,j=j+N|0,D^=j,D=D>>>20|D<<12,C=C+k|0,I^=C,I=I>>>24|I<<8,B=B+I|0,k^=B,k=k>>>25|k<<7,x=x+D|0,N^=x,N=N>>>24|N<<8,j=j+N|0,D^=j,D=D>>>25|D<<7,_=_+T|0,O^=_,O=O>>>24|O<<8,F=F+O|0,T^=F,T=T>>>25|T<<7,w=w+E|0,P^=w,P=P>>>24|P<<8,R=R+P|0,E^=R,E=E>>>25|E<<7,w=w+T|0,N^=w,N=N>>>16|N<<16,B=B+N|0,T^=B,T=T>>>20|T<<12,_=_+k|0,P^=_,P=P>>>16|P<<16,j=j+P|0,k^=j,k=k>>>20|k<<12,C=C+D|0,O^=C,O=O>>>16|O<<16,R=R+O|0,D^=R,D=D>>>20|D<<12,x=x+E|0,I^=x,I=I>>>16|I<<16,F=F+I|0,E^=F,E=E>>>20|E<<12,C=C+D|0,O^=C,O=O>>>24|O<<8,R=R+O|0,D^=R,D=D>>>25|D<<7,x=x+E|0,I^=x,I=I>>>24|I<<8,F=F+I|0,E^=F,E=E>>>25|E<<7,_=_+k|0,P^=_,P=P>>>24|P<<8,j=j+P|0,k^=j,k=k>>>25|k<<7,w=w+T|0,N^=w,N=N>>>24|N<<8,B=B+N|0,T^=B,T=T>>>25|T<<7;Ar.writeUint32LE(w+r|0,e,0),Ar.writeUint32LE(_+o|0,e,4),Ar.writeUint32LE(C+a|0,e,8),Ar.writeUint32LE(x+i|0,e,12),Ar.writeUint32LE(E+s|0,e,16),Ar.writeUint32LE(T+c|0,e,20),Ar.writeUint32LE(k+l|0,e,24),Ar.writeUint32LE(D+u|0,e,28),Ar.writeUint32LE(R+d|0,e,32),Ar.writeUint32LE(F+f|0,e,36),Ar.writeUint32LE(B+h|0,e,40),Ar.writeUint32LE(j+m|0,e,44),Ar.writeUint32LE(P+p|0,e,48),Ar.writeUint32LE(O+b|0,e,52),Ar.writeUint32LE(I+v|0,e,56),Ar.writeUint32LE(N+g|0,e,60)}function PQ(e,t,n,r,o){if(o===void 0&&(o=0),e.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(r.length>>=8,t++;if(r>0)throw new Error("ChaCha: counter overflow")}var IQ={},kl={};Object.defineProperty(kl,"__esModule",{value:!0});function U2e(e,t,n){return~(e-1)&t|e-1&n}kl.select=U2e;function $2e(e,t){return(e|0)-(t|0)-1>>>31&1}kl.lessOrEqual=$2e;function OQ(e,t){if(e.length!==t.length)return 0;for(var n=0,r=0;r>>8}kl.compare=OQ;function z2e(e,t){return e.length===0||t.length===0?!1:OQ(e,t)!==0}kl.equal=z2e;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=kl,n=si;e.DIGEST_LENGTH=16;var r=function(){function i(s){this.digestLength=e.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var c=s[0]|s[1]<<8;this._r[0]=c&8191;var l=s[2]|s[3]<<8;this._r[1]=(c>>>13|l<<3)&8191;var u=s[4]|s[5]<<8;this._r[2]=(l>>>10|u<<6)&7939;var d=s[6]|s[7]<<8;this._r[3]=(u>>>7|d<<9)&8191;var f=s[8]|s[9]<<8;this._r[4]=(d>>>4|f<<12)&255,this._r[5]=f>>>1&8190;var h=s[10]|s[11]<<8;this._r[6]=(f>>>14|h<<2)&8191;var m=s[12]|s[13]<<8;this._r[7]=(h>>>11|m<<5)&8065;var p=s[14]|s[15]<<8;this._r[8]=(m>>>8|p<<8)&8191,this._r[9]=p>>>5&127,this._pad[0]=s[16]|s[17]<<8,this._pad[1]=s[18]|s[19]<<8,this._pad[2]=s[20]|s[21]<<8,this._pad[3]=s[22]|s[23]<<8,this._pad[4]=s[24]|s[25]<<8,this._pad[5]=s[26]|s[27]<<8,this._pad[6]=s[28]|s[29]<<8,this._pad[7]=s[30]|s[31]<<8}return i.prototype._blocks=function(s,c,l){for(var u=this._fin?0:2048,d=this._h[0],f=this._h[1],h=this._h[2],m=this._h[3],p=this._h[4],b=this._h[5],v=this._h[6],g=this._h[7],w=this._h[8],_=this._h[9],C=this._r[0],x=this._r[1],E=this._r[2],T=this._r[3],k=this._r[4],D=this._r[5],R=this._r[6],F=this._r[7],B=this._r[8],j=this._r[9];l>=16;){var P=s[c+0]|s[c+1]<<8;d+=P&8191;var O=s[c+2]|s[c+3]<<8;f+=(P>>>13|O<<3)&8191;var I=s[c+4]|s[c+5]<<8;h+=(O>>>10|I<<6)&8191;var N=s[c+6]|s[c+7]<<8;m+=(I>>>7|N<<9)&8191;var M=s[c+8]|s[c+9]<<8;p+=(N>>>4|M<<12)&8191,b+=M>>>1&8191;var L=s[c+10]|s[c+11]<<8;v+=(M>>>14|L<<2)&8191;var X=s[c+12]|s[c+13]<<8;g+=(L>>>11|X<<5)&8191;var J=s[c+14]|s[c+15]<<8;w+=(X>>>8|J<<8)&8191,_+=J>>>5|u;var U=0,G=U;G+=d*C,G+=f*(5*j),G+=h*(5*B),G+=m*(5*F),G+=p*(5*R),U=G>>>13,G&=8191,G+=b*(5*D),G+=v*(5*k),G+=g*(5*T),G+=w*(5*E),G+=_*(5*x),U+=G>>>13,G&=8191;var Z=U;Z+=d*x,Z+=f*C,Z+=h*(5*j),Z+=m*(5*B),Z+=p*(5*F),U=Z>>>13,Z&=8191,Z+=b*(5*R),Z+=v*(5*D),Z+=g*(5*k),Z+=w*(5*T),Z+=_*(5*E),U+=Z>>>13,Z&=8191;var ae=U;ae+=d*E,ae+=f*x,ae+=h*C,ae+=m*(5*j),ae+=p*(5*B),U=ae>>>13,ae&=8191,ae+=b*(5*F),ae+=v*(5*R),ae+=g*(5*D),ae+=w*(5*k),ae+=_*(5*T),U+=ae>>>13,ae&=8191;var ne=U;ne+=d*T,ne+=f*E,ne+=h*x,ne+=m*C,ne+=p*(5*j),U=ne>>>13,ne&=8191,ne+=b*(5*B),ne+=v*(5*F),ne+=g*(5*R),ne+=w*(5*D),ne+=_*(5*k),U+=ne>>>13,ne&=8191;var ie=U;ie+=d*k,ie+=f*T,ie+=h*E,ie+=m*x,ie+=p*C,U=ie>>>13,ie&=8191,ie+=b*(5*j),ie+=v*(5*B),ie+=g*(5*F),ie+=w*(5*R),ie+=_*(5*D),U+=ie>>>13,ie&=8191;var te=U;te+=d*D,te+=f*k,te+=h*T,te+=m*E,te+=p*x,U=te>>>13,te&=8191,te+=b*C,te+=v*(5*j),te+=g*(5*B),te+=w*(5*F),te+=_*(5*R),U+=te>>>13,te&=8191;var ee=U;ee+=d*R,ee+=f*D,ee+=h*k,ee+=m*T,ee+=p*E,U=ee>>>13,ee&=8191,ee+=b*x,ee+=v*C,ee+=g*(5*j),ee+=w*(5*B),ee+=_*(5*F),U+=ee>>>13,ee&=8191;var re=U;re+=d*F,re+=f*R,re+=h*D,re+=m*k,re+=p*T,U=re>>>13,re&=8191,re+=b*E,re+=v*x,re+=g*C,re+=w*(5*j),re+=_*(5*B),U+=re>>>13,re&=8191;var z=U;z+=d*B,z+=f*F,z+=h*R,z+=m*D,z+=p*k,U=z>>>13,z&=8191,z+=b*T,z+=v*E,z+=g*x,z+=w*C,z+=_*(5*j),U+=z>>>13,z&=8191;var fe=U;fe+=d*j,fe+=f*B,fe+=h*F,fe+=m*R,fe+=p*D,U=fe>>>13,fe&=8191,fe+=b*k,fe+=v*T,fe+=g*E,fe+=w*x,fe+=_*C,U+=fe>>>13,fe&=8191,U=(U<<2)+U|0,U=U+G|0,G=U&8191,U=U>>>13,Z+=U,d=G,f=Z,h=ae,m=ne,p=ie,b=te,v=ee,g=re,w=z,_=fe,c+=16,l-=16}this._h[0]=d,this._h[1]=f,this._h[2]=h,this._h[3]=m,this._h[4]=p,this._h[5]=b,this._h[6]=v,this._h[7]=g,this._h[8]=w,this._h[9]=_},i.prototype.finish=function(s,c){c===void 0&&(c=0);var l=new Uint16Array(10),u,d,f,h;if(this._leftover){for(h=this._leftover,this._buffer[h++]=1;h<16;h++)this._buffer[h]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(u=this._h[1]>>>13,this._h[1]&=8191,h=2;h<10;h++)this._h[h]+=u,u=this._h[h]>>>13,this._h[h]&=8191;for(this._h[0]+=u*5,u=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=u,u=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=u,l[0]=this._h[0]+5,u=l[0]>>>13,l[0]&=8191,h=1;h<10;h++)l[h]=this._h[h]+u,u=l[h]>>>13,l[h]&=8191;for(l[9]-=8192,d=(u^1)-1,h=0;h<10;h++)l[h]&=d;for(d=~d,h=0;h<10;h++)this._h[h]=this._h[h]&d|l[h];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,f=this._h[0]+this._pad[0],this._h[0]=f&65535,h=1;h<8;h++)f=(this._h[h]+this._pad[h]|0)+(f>>>16)|0,this._h[h]=f&65535;return s[c+0]=this._h[0]>>>0,s[c+1]=this._h[0]>>>8,s[c+2]=this._h[1]>>>0,s[c+3]=this._h[1]>>>8,s[c+4]=this._h[2]>>>0,s[c+5]=this._h[2]>>>8,s[c+6]=this._h[3]>>>0,s[c+7]=this._h[3]>>>8,s[c+8]=this._h[4]>>>0,s[c+9]=this._h[4]>>>8,s[c+10]=this._h[5]>>>0,s[c+11]=this._h[5]>>>8,s[c+12]=this._h[6]>>>0,s[c+13]=this._h[6]>>>8,s[c+14]=this._h[7]>>>0,s[c+15]=this._h[7]>>>8,this._finished=!0,this},i.prototype.update=function(s){var c=0,l=s.length,u;if(this._leftover){u=16-this._leftover,u>l&&(u=l);for(var d=0;d=16&&(u=l-l%16,this._blocks(s,c,u),c+=u,l-=u),l){for(var d=0;d16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var h=new Uint8Array(16);h.set(l,h.length-l.length);var m=new Uint8Array(32);t.stream(this._key,h,m,4);var p=u.length+this.tagLength,b;if(f){if(f.length!==p)throw new Error("ChaCha20Poly1305: incorrect destination length");b=f}else b=new Uint8Array(p);return t.streamXOR(this._key,h,u,b,4),this._authenticate(b.subarray(b.length-this.tagLength,b.length),m,b.subarray(0,b.length-this.tagLength),d),r.wipe(h),b},c.prototype.open=function(l,u,d,f){if(l.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(u.length0&&h.update(i.subarray(f.length%16))),h.update(d),d.length%16>0&&h.update(i.subarray(d.length%16));var m=new Uint8Array(8);f&&o.writeUint64LE(f.length,m),h.update(m),o.writeUint64LE(d.length,m),h.update(m);for(var p=h.digest(),b=0;bthis.blockSize?this._inner.update(n).finish(r).clean():r.set(n);for(var o=0;o1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(t){for(var n=new Uint8Array(t),r=0;r256)throw new Error("randomString charset is too long");let f="";const h=u.length,m=256-256%h;for(;l>0;){const p=o(Math.ceil(l*256/m),d);for(let b=0;b0;b++){const v=p[b];v0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=c[u++],l--;this._bufferLength===this.blockSize&&(a(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(l>=this.blockSize&&(u=a(this._temp,this._state,c,u,l),l%=this.blockSize);l>0;)this._buffer[this._bufferLength++]=c[u++],l--;return this},s.prototype.finish=function(c){if(!this._finished){var l=this._bytesHashed,u=this._bufferLength,d=l/536870912|0,f=l<<3,h=l%64<56?64:128;this._buffer[u]=128;for(var m=u+1;m0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},s.prototype.restoreState=function(c){return this._state.set(c.state),this._bufferLength=c.bufferLength,c.buffer&&this._buffer.set(c.buffer),this._bytesHashed=c.bytesHashed,this._finished=!1,this},s.prototype.cleanSavedState=function(c){n.wipe(c.state),c.buffer&&n.wipe(c.buffer),c.bufferLength=0,c.bytesHashed=0},s}();e.SHA256=r;var o=new Int32Array([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]);function a(s,c,l,u,d){for(;d>=64;){for(var f=c[0],h=c[1],m=c[2],p=c[3],b=c[4],v=c[5],g=c[6],w=c[7],_=0;_<16;_++){var C=u+_*4;s[_]=t.readUint32BE(l,C)}for(var _=16;_<64;_++){var x=s[_-2],E=(x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10;x=s[_-15];var T=(x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3;s[_]=(E+s[_-7]|0)+(T+s[_-16]|0)}for(var _=0;_<64;_++){var E=(((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&v^~b&g)|0)+(w+(o[_]+s[_]|0)|0)|0,T=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&h^f&m^h&m)|0;w=g,g=v,v=b,b=p+E|0,p=m,m=h,h=f,f=E+T|0}c[0]+=f,c[1]+=h,c[2]+=m,c[3]+=p,c[4]+=b,c[5]+=v,c[6]+=g,c[7]+=w,u+=64,d-=64}return u}function i(s){var c=new r;c.update(s);var l=c.digest();return c.clean(),l}e.hash=i})(s2);var j4={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sharedKey=e.generateKeyPair=e.generateKeyPairFromSeed=e.scalarMultBase=e.scalarMult=e.SHARED_KEY_LENGTH=e.SECRET_KEY_LENGTH=e.PUBLIC_KEY_LENGTH=void 0;const t=r2,n=si;e.PUBLIC_KEY_LENGTH=32,e.SECRET_KEY_LENGTH=32,e.SHARED_KEY_LENGTH=32;function r(_){const C=new Float64Array(16);if(_)for(let x=0;x<_.length;x++)C[x]=_[x];return C}const o=new Uint8Array(32);o[0]=9;const a=r([56129,1]);function i(_){let C=1;for(let x=0;x<16;x++){let E=_[x]+C+65535;C=Math.floor(E/65536),_[x]=E-C*65536}_[0]+=C-1+37*(C-1)}function s(_,C,x){const E=~(x-1);for(let T=0;T<16;T++){const k=E&(_[T]^C[T]);_[T]^=k,C[T]^=k}}function c(_,C){const x=r(),E=r();for(let T=0;T<16;T++)E[T]=C[T];i(E),i(E),i(E);for(let T=0;T<2;T++){x[0]=E[0]-65517;for(let D=1;D<15;D++)x[D]=E[D]-65535-(x[D-1]>>16&1),x[D-1]&=65535;x[15]=E[15]-32767-(x[14]>>16&1);const k=x[15]>>16&1;x[14]&=65535,s(E,x,1-k)}for(let T=0;T<16;T++)_[2*T]=E[T]&255,_[2*T+1]=E[T]>>8}function l(_,C){for(let x=0;x<16;x++)_[x]=C[2*x]+(C[2*x+1]<<8);_[15]&=32767}function u(_,C,x){for(let E=0;E<16;E++)_[E]=C[E]+x[E]}function d(_,C,x){for(let E=0;E<16;E++)_[E]=C[E]-x[E]}function f(_,C,x){let E,T,k=0,D=0,R=0,F=0,B=0,j=0,P=0,O=0,I=0,N=0,M=0,L=0,X=0,J=0,U=0,G=0,Z=0,ae=0,ne=0,ie=0,te=0,ee=0,re=0,z=0,fe=0,ve=0,Ue=0,ke=0,Qe=0,Te=0,Ee=0,he=x[0],Me=x[1],ge=x[2],Y=x[3],W=x[4],Q=x[5],ce=x[6],pe=x[7],De=x[8],Ie=x[9],Je=x[10],Oe=x[11],_e=x[12],at=x[13],Ft=x[14],Lt=x[15];E=C[0],k+=E*he,D+=E*Me,R+=E*ge,F+=E*Y,B+=E*W,j+=E*Q,P+=E*ce,O+=E*pe,I+=E*De,N+=E*Ie,M+=E*Je,L+=E*Oe,X+=E*_e,J+=E*at,U+=E*Ft,G+=E*Lt,E=C[1],D+=E*he,R+=E*Me,F+=E*ge,B+=E*Y,j+=E*W,P+=E*Q,O+=E*ce,I+=E*pe,N+=E*De,M+=E*Ie,L+=E*Je,X+=E*Oe,J+=E*_e,U+=E*at,G+=E*Ft,Z+=E*Lt,E=C[2],R+=E*he,F+=E*Me,B+=E*ge,j+=E*Y,P+=E*W,O+=E*Q,I+=E*ce,N+=E*pe,M+=E*De,L+=E*Ie,X+=E*Je,J+=E*Oe,U+=E*_e,G+=E*at,Z+=E*Ft,ae+=E*Lt,E=C[3],F+=E*he,B+=E*Me,j+=E*ge,P+=E*Y,O+=E*W,I+=E*Q,N+=E*ce,M+=E*pe,L+=E*De,X+=E*Ie,J+=E*Je,U+=E*Oe,G+=E*_e,Z+=E*at,ae+=E*Ft,ne+=E*Lt,E=C[4],B+=E*he,j+=E*Me,P+=E*ge,O+=E*Y,I+=E*W,N+=E*Q,M+=E*ce,L+=E*pe,X+=E*De,J+=E*Ie,U+=E*Je,G+=E*Oe,Z+=E*_e,ae+=E*at,ne+=E*Ft,ie+=E*Lt,E=C[5],j+=E*he,P+=E*Me,O+=E*ge,I+=E*Y,N+=E*W,M+=E*Q,L+=E*ce,X+=E*pe,J+=E*De,U+=E*Ie,G+=E*Je,Z+=E*Oe,ae+=E*_e,ne+=E*at,ie+=E*Ft,te+=E*Lt,E=C[6],P+=E*he,O+=E*Me,I+=E*ge,N+=E*Y,M+=E*W,L+=E*Q,X+=E*ce,J+=E*pe,U+=E*De,G+=E*Ie,Z+=E*Je,ae+=E*Oe,ne+=E*_e,ie+=E*at,te+=E*Ft,ee+=E*Lt,E=C[7],O+=E*he,I+=E*Me,N+=E*ge,M+=E*Y,L+=E*W,X+=E*Q,J+=E*ce,U+=E*pe,G+=E*De,Z+=E*Ie,ae+=E*Je,ne+=E*Oe,ie+=E*_e,te+=E*at,ee+=E*Ft,re+=E*Lt,E=C[8],I+=E*he,N+=E*Me,M+=E*ge,L+=E*Y,X+=E*W,J+=E*Q,U+=E*ce,G+=E*pe,Z+=E*De,ae+=E*Ie,ne+=E*Je,ie+=E*Oe,te+=E*_e,ee+=E*at,re+=E*Ft,z+=E*Lt,E=C[9],N+=E*he,M+=E*Me,L+=E*ge,X+=E*Y,J+=E*W,U+=E*Q,G+=E*ce,Z+=E*pe,ae+=E*De,ne+=E*Ie,ie+=E*Je,te+=E*Oe,ee+=E*_e,re+=E*at,z+=E*Ft,fe+=E*Lt,E=C[10],M+=E*he,L+=E*Me,X+=E*ge,J+=E*Y,U+=E*W,G+=E*Q,Z+=E*ce,ae+=E*pe,ne+=E*De,ie+=E*Ie,te+=E*Je,ee+=E*Oe,re+=E*_e,z+=E*at,fe+=E*Ft,ve+=E*Lt,E=C[11],L+=E*he,X+=E*Me,J+=E*ge,U+=E*Y,G+=E*W,Z+=E*Q,ae+=E*ce,ne+=E*pe,ie+=E*De,te+=E*Ie,ee+=E*Je,re+=E*Oe,z+=E*_e,fe+=E*at,ve+=E*Ft,Ue+=E*Lt,E=C[12],X+=E*he,J+=E*Me,U+=E*ge,G+=E*Y,Z+=E*W,ae+=E*Q,ne+=E*ce,ie+=E*pe,te+=E*De,ee+=E*Ie,re+=E*Je,z+=E*Oe,fe+=E*_e,ve+=E*at,Ue+=E*Ft,ke+=E*Lt,E=C[13],J+=E*he,U+=E*Me,G+=E*ge,Z+=E*Y,ae+=E*W,ne+=E*Q,ie+=E*ce,te+=E*pe,ee+=E*De,re+=E*Ie,z+=E*Je,fe+=E*Oe,ve+=E*_e,Ue+=E*at,ke+=E*Ft,Qe+=E*Lt,E=C[14],U+=E*he,G+=E*Me,Z+=E*ge,ae+=E*Y,ne+=E*W,ie+=E*Q,te+=E*ce,ee+=E*pe,re+=E*De,z+=E*Ie,fe+=E*Je,ve+=E*Oe,Ue+=E*_e,ke+=E*at,Qe+=E*Ft,Te+=E*Lt,E=C[15],G+=E*he,Z+=E*Me,ae+=E*ge,ne+=E*Y,ie+=E*W,te+=E*Q,ee+=E*ce,re+=E*pe,z+=E*De,fe+=E*Ie,ve+=E*Je,Ue+=E*Oe,ke+=E*_e,Qe+=E*at,Te+=E*Ft,Ee+=E*Lt,k+=38*Z,D+=38*ae,R+=38*ne,F+=38*ie,B+=38*te,j+=38*ee,P+=38*re,O+=38*z,I+=38*fe,N+=38*ve,M+=38*Ue,L+=38*ke,X+=38*Qe,J+=38*Te,U+=38*Ee,T=1,E=k+T+65535,T=Math.floor(E/65536),k=E-T*65536,E=D+T+65535,T=Math.floor(E/65536),D=E-T*65536,E=R+T+65535,T=Math.floor(E/65536),R=E-T*65536,E=F+T+65535,T=Math.floor(E/65536),F=E-T*65536,E=B+T+65535,T=Math.floor(E/65536),B=E-T*65536,E=j+T+65535,T=Math.floor(E/65536),j=E-T*65536,E=P+T+65535,T=Math.floor(E/65536),P=E-T*65536,E=O+T+65535,T=Math.floor(E/65536),O=E-T*65536,E=I+T+65535,T=Math.floor(E/65536),I=E-T*65536,E=N+T+65535,T=Math.floor(E/65536),N=E-T*65536,E=M+T+65535,T=Math.floor(E/65536),M=E-T*65536,E=L+T+65535,T=Math.floor(E/65536),L=E-T*65536,E=X+T+65535,T=Math.floor(E/65536),X=E-T*65536,E=J+T+65535,T=Math.floor(E/65536),J=E-T*65536,E=U+T+65535,T=Math.floor(E/65536),U=E-T*65536,E=G+T+65535,T=Math.floor(E/65536),G=E-T*65536,k+=T-1+37*(T-1),T=1,E=k+T+65535,T=Math.floor(E/65536),k=E-T*65536,E=D+T+65535,T=Math.floor(E/65536),D=E-T*65536,E=R+T+65535,T=Math.floor(E/65536),R=E-T*65536,E=F+T+65535,T=Math.floor(E/65536),F=E-T*65536,E=B+T+65535,T=Math.floor(E/65536),B=E-T*65536,E=j+T+65535,T=Math.floor(E/65536),j=E-T*65536,E=P+T+65535,T=Math.floor(E/65536),P=E-T*65536,E=O+T+65535,T=Math.floor(E/65536),O=E-T*65536,E=I+T+65535,T=Math.floor(E/65536),I=E-T*65536,E=N+T+65535,T=Math.floor(E/65536),N=E-T*65536,E=M+T+65535,T=Math.floor(E/65536),M=E-T*65536,E=L+T+65535,T=Math.floor(E/65536),L=E-T*65536,E=X+T+65535,T=Math.floor(E/65536),X=E-T*65536,E=J+T+65535,T=Math.floor(E/65536),J=E-T*65536,E=U+T+65535,T=Math.floor(E/65536),U=E-T*65536,E=G+T+65535,T=Math.floor(E/65536),G=E-T*65536,k+=T-1+37*(T-1),_[0]=k,_[1]=D,_[2]=R,_[3]=F,_[4]=B,_[5]=j,_[6]=P,_[7]=O,_[8]=I,_[9]=N,_[10]=M,_[11]=L,_[12]=X,_[13]=J,_[14]=U,_[15]=G}function h(_,C){f(_,C,C)}function m(_,C){const x=r();for(let E=0;E<16;E++)x[E]=C[E];for(let E=253;E>=0;E--)h(x,x),E!==2&&E!==4&&f(x,x,C);for(let E=0;E<16;E++)_[E]=x[E]}function p(_,C){const x=new Uint8Array(32),E=new Float64Array(80),T=r(),k=r(),D=r(),R=r(),F=r(),B=r();for(let I=0;I<31;I++)x[I]=_[I];x[31]=_[31]&127|64,x[0]&=248,l(E,C);for(let I=0;I<16;I++)k[I]=E[I];T[0]=R[0]=1;for(let I=254;I>=0;--I){const N=x[I>>>3]>>>(I&7)&1;s(T,k,N),s(D,R,N),u(F,T,D),d(T,T,D),u(D,k,R),d(k,k,R),h(R,F),h(B,T),f(T,D,T),f(D,k,F),u(F,T,D),d(T,T,D),h(k,T),d(D,R,B),f(T,D,a),u(T,T,R),f(D,D,T),f(T,R,B),f(R,k,E),h(k,F),s(T,k,N),s(D,R,N)}for(let I=0;I<16;I++)E[I+16]=T[I],E[I+32]=D[I],E[I+48]=k[I],E[I+64]=R[I];const j=E.subarray(32),P=E.subarray(16);m(j,j),f(P,P,j);const O=new Uint8Array(32);return c(O,P),O}e.scalarMult=p;function b(_){return p(_,o)}e.scalarMultBase=b;function v(_){if(_.length!==e.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${e.SECRET_KEY_LENGTH} bytes`);const C=new Uint8Array(_);return{publicKey:b(C),secretKey:C}}e.generateKeyPairFromSeed=v;function g(_){const C=(0,t.randomBytes)(32,_),x=v(C);return(0,n.wipe)(C),x}e.generateKeyPair=g;function w(_,C,x=!1){if(_.length!==e.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(C.length!==e.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const E=p(_,C);if(x){let T=0;for(let k=0;ko+a.length,0));const n=BQ(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return P4(n)}function aCe(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,_=new Uint8Array(w);v!==g;){for(var C=m[v],x=0,E=w-1;(C!==0||x>>0,_[E]=C%s>>>0,C=C/s>>>0;if(C!==0)throw new Error("Non-zero carry");b=x,v++}for(var T=w-b;T!==w&&_[T]===0;)T++;for(var k=c.repeat(p);T>>0,w=new Uint8Array(g);m[p];){var _=n[m.charCodeAt(p)];if(_===255)return;for(var C=0,x=g-1;(_!==0||C>>0,w[x]=_%256>>>0,_=_/256>>>0;if(_!==0)throw new Error("Non-zero carry");v=C,p++}if(m[p]!==" "){for(var E=g-v;E!==g&&w[E]===0;)E++;for(var T=new Uint8Array(b+(g-E)),k=b;E!==g;)T[k++]=w[E++];return T}}}function h(m){var p=f(m);if(p)return p;throw new Error(`Non-${t} character`)}return{encode:d,decodeUnsafe:f,decode:h}}var iCe=aCe,sCe=iCe;const cCe=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},lCe=e=>new TextEncoder().encode(e),uCe=e=>new TextDecoder().decode(e);class dCe{constructor(t,n,r){this.name=t,this.prefix=n,this.baseEncode=r}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class fCe{constructor(t,n,r){if(this.name=t,this.prefix=n,n.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=n.codePointAt(0),this.baseDecode=r}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return FQ(this,t)}}class hCe{constructor(t){this.decoders=t}or(t){return FQ(this,t)}decode(t){const n=t[0],r=this.decoders[n];if(r)return r.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const FQ=(e,t)=>new hCe({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class mCe{constructor(t,n,r,o){this.name=t,this.prefix=n,this.baseEncode=r,this.baseDecode=o,this.encoder=new dCe(t,n,r),this.decoder=new fCe(t,n,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const c2=({name:e,prefix:t,encode:n,decode:r})=>new mCe(e,t,n,r),xy=({prefix:e,name:t,alphabet:n})=>{const{encode:r,decode:o}=sCe(n,t);return c2({prefix:e,name:t,encode:r,decode:a=>cCe(o(a))})},pCe=(e,t,n,r)=>{const o={};for(let u=0;u=8&&(s-=8,i[l++]=255&c>>s)}if(s>=n||255&c<<8-s)throw new SyntaxError("Unexpected end of data");return i},gCe=(e,t,n)=>{const r=t[t.length-1]==="=",o=(1<n;)i-=n,a+=t[o&s>>i];if(i&&(a+=t[o&s<c2({prefix:t,name:e,encode(o){return gCe(o,r,n)},decode(o){return pCe(o,r,n,e)}}),yCe=c2({prefix:"\0",name:"identity",encode:e=>uCe(e),decode:e=>lCe(e)}),bCe=Object.freeze(Object.defineProperty({__proto__:null,identity:yCe},Symbol.toStringTag,{value:"Module"})),vCe=_r({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),wCe=Object.freeze(Object.defineProperty({__proto__:null,base2:vCe},Symbol.toStringTag,{value:"Module"})),ECe=_r({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),_Ce=Object.freeze(Object.defineProperty({__proto__:null,base8:ECe},Symbol.toStringTag,{value:"Module"})),xCe=xy({prefix:"9",name:"base10",alphabet:"0123456789"}),CCe=Object.freeze(Object.defineProperty({__proto__:null,base10:xCe},Symbol.toStringTag,{value:"Module"})),SCe=_r({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),TCe=_r({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),ACe=Object.freeze(Object.defineProperty({__proto__:null,base16:SCe,base16upper:TCe},Symbol.toStringTag,{value:"Module"})),DCe=_r({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),kCe=_r({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),jCe=_r({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),PCe=_r({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),ICe=_r({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),OCe=_r({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),RCe=_r({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),NCe=_r({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),BCe=_r({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),FCe=Object.freeze(Object.defineProperty({__proto__:null,base32:DCe,base32hex:ICe,base32hexpad:RCe,base32hexpadupper:NCe,base32hexupper:OCe,base32pad:jCe,base32padupper:PCe,base32upper:kCe,base32z:BCe},Symbol.toStringTag,{value:"Module"})),MCe=xy({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),LCe=xy({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),UCe=Object.freeze(Object.defineProperty({__proto__:null,base36:MCe,base36upper:LCe},Symbol.toStringTag,{value:"Module"})),$Ce=xy({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),zCe=xy({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),HCe=Object.freeze(Object.defineProperty({__proto__:null,base58btc:$Ce,base58flickr:zCe},Symbol.toStringTag,{value:"Module"})),qCe=_r({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),WCe=_r({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),GCe=_r({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),VCe=_r({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),KCe=Object.freeze(Object.defineProperty({__proto__:null,base64:qCe,base64pad:WCe,base64url:GCe,base64urlpad:VCe},Symbol.toStringTag,{value:"Module"})),MQ=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),YCe=MQ.reduce((e,t,n)=>(e[n]=t,e),[]),QCe=MQ.reduce((e,t,n)=>(e[t.codePointAt(0)]=n,e),[]);function XCe(e){return e.reduce((t,n)=>(t+=YCe[n],t),"")}function JCe(e){const t=[];for(const n of e){const r=QCe[n.codePointAt(0)];if(r===void 0)throw new Error(`Non-base256emoji character: ${n}`);t.push(r)}return new Uint8Array(t)}const ZCe=c2({prefix:"🚀",name:"base256emoji",encode:XCe,decode:JCe}),e6e=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:ZCe},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const cB={...bCe,...wCe,..._Ce,...CCe,...ACe,...FCe,...UCe,...HCe,...KCe,...e6e};function LQ(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const lB=LQ("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),x3=LQ("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=BQ(e.length);for(let n=0;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new a6e:typeof navigator<"u"?hB(navigator.userAgent):f6e()}function u6e(e){return e!==""&&c6e.reduce(function(t,n){var r=n[0],o=n[1];if(t)return t;var a=o.exec(e);return!!a&&[r,a]},!1)}function hB(e){var t=u6e(e);if(!t)return null;var n=t[0],r=t[1];if(n==="searchbot")return new o6e;var o=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);o?o.length=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function y6e(e,t){return function(n,r){t(n,r,e)}}function b6e(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function v6e(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function s(u){try{l(r.next(u))}catch(d){i(d)}}function c(u){try{l(r.throw(u))}catch(d){i(d)}}function l(u){u.done?a(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})}function w6e(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $Q(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function x6e(){for(var e=[],t=0;t1||s(f,h)})})}function s(f,h){try{c(r[f](h))}catch(m){d(a[0][3],m)}}function c(f){f.value instanceof bg?Promise.resolve(f.value.v).then(l,u):d(a[0][2],f)}function l(f){s("next",f)}function u(f){s("throw",f)}function d(f,h){f(h),a.shift(),a.length&&s(a[0][0],a[0][1])}}function T6e(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,a){t[o]=e[o]?function(i){return(n=!n)?{value:bg(e[o](i)),done:o==="return"}:a?a(i):i}:a}}function A6e(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof PD=="function"?PD(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(i){return new Promise(function(s,c){i=e[a](i),o(s,c,i.done,i.value)})}}function o(a,i,s,c){Promise.resolve(c).then(function(l){a({value:l,done:s})},i)}}function D6e(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function k6e(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function j6e(e){return e&&e.__esModule?e:{default:e}}function P6e(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I6e(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}const O6e=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return jD},__asyncDelegator:T6e,__asyncGenerator:S6e,__asyncValues:A6e,__await:bg,__awaiter:v6e,__classPrivateFieldGet:P6e,__classPrivateFieldSet:I6e,__createBinding:E6e,__decorate:g6e,__exportStar:_6e,__extends:m6e,__generator:w6e,__importDefault:j6e,__importStar:k6e,__makeTemplateObject:D6e,__metadata:b6e,__param:y6e,__read:$Q,__rest:p6e,__spread:x6e,__spreadArrays:C6e,__values:PD},Symbol.toStringTag,{value:"Module"})),l2=Ns(O6e);var C3={},xp={},mB;function R6e(){if(mB)return xp;mB=1,Object.defineProperty(xp,"__esModule",{value:!0}),xp.delay=void 0;function e(t){return new Promise(n=>{setTimeout(()=>{n(!0)},t)})}return xp.delay=e,xp}var Gl={},S3={},Vl={},pB;function N6e(){return pB||(pB=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.ONE_THOUSAND=Vl.ONE_HUNDRED=void 0,Vl.ONE_HUNDRED=100,Vl.ONE_THOUSAND=1e3),Vl}var T3={},gB;function B6e(){return gB||(gB=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_YEAR=e.FOUR_WEEKS=e.THREE_WEEKS=e.TWO_WEEKS=e.ONE_WEEK=e.THIRTY_DAYS=e.SEVEN_DAYS=e.FIVE_DAYS=e.THREE_DAYS=e.ONE_DAY=e.TWENTY_FOUR_HOURS=e.TWELVE_HOURS=e.SIX_HOURS=e.THREE_HOURS=e.ONE_HOUR=e.SIXTY_MINUTES=e.THIRTY_MINUTES=e.TEN_MINUTES=e.FIVE_MINUTES=e.ONE_MINUTE=e.SIXTY_SECONDS=e.THIRTY_SECONDS=e.TEN_SECONDS=e.FIVE_SECONDS=e.ONE_SECOND=void 0,e.ONE_SECOND=1,e.FIVE_SECONDS=5,e.TEN_SECONDS=10,e.THIRTY_SECONDS=30,e.SIXTY_SECONDS=60,e.ONE_MINUTE=e.SIXTY_SECONDS,e.FIVE_MINUTES=e.ONE_MINUTE*5,e.TEN_MINUTES=e.ONE_MINUTE*10,e.THIRTY_MINUTES=e.ONE_MINUTE*30,e.SIXTY_MINUTES=e.ONE_MINUTE*60,e.ONE_HOUR=e.SIXTY_MINUTES,e.THREE_HOURS=e.ONE_HOUR*3,e.SIX_HOURS=e.ONE_HOUR*6,e.TWELVE_HOURS=e.ONE_HOUR*12,e.TWENTY_FOUR_HOURS=e.ONE_HOUR*24,e.ONE_DAY=e.TWENTY_FOUR_HOURS,e.THREE_DAYS=e.ONE_DAY*3,e.FIVE_DAYS=e.ONE_DAY*5,e.SEVEN_DAYS=e.ONE_DAY*7,e.THIRTY_DAYS=e.ONE_DAY*30,e.ONE_WEEK=e.SEVEN_DAYS,e.TWO_WEEKS=e.ONE_WEEK*2,e.THREE_WEEKS=e.ONE_WEEK*3,e.FOUR_WEEKS=e.ONE_WEEK*4,e.ONE_YEAR=e.ONE_DAY*365}(T3)),T3}var yB;function zQ(){return yB||(yB=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=l2;t.__exportStar(N6e(),e),t.__exportStar(B6e(),e)}(S3)),S3}var bB;function F6e(){if(bB)return Gl;bB=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.fromMiliseconds=Gl.toMiliseconds=void 0;const e=zQ();function t(r){return r*e.ONE_THOUSAND}Gl.toMiliseconds=t;function n(r){return Math.floor(r/e.ONE_THOUSAND)}return Gl.fromMiliseconds=n,Gl}var vB;function M6e(){return vB||(vB=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=l2;t.__exportStar(R6e(),e),t.__exportStar(F6e(),e)}(C3)),C3}var Zd={},wB;function L6e(){if(wB)return Zd;wB=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.Watch=void 0;class e{constructor(){this.timestamps=new Map}start(n){if(this.timestamps.has(n))throw new Error(`Watch already started for label: ${n}`);this.timestamps.set(n,{started:Date.now()})}stop(n){const r=this.get(n);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${n}`);const o=Date.now()-r.started;this.timestamps.set(n,{started:r.started,elapsed:o})}get(n){const r=this.timestamps.get(n);if(typeof r>"u")throw new Error(`No timestamp found for label: ${n}`);return r}elapsed(n){const r=this.get(n);return r.elapsed||Date.now()-r.started}}return Zd.Watch=e,Zd.default=e,Zd}var A3={},Cp={},EB;function U6e(){if(EB)return Cp;EB=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.IWatch=void 0;class e{}return Cp.IWatch=e,Cp}var _B;function $6e(){return _B||(_B=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),l2.__exportStar(U6e(),e)}(A3)),A3}(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=l2;t.__exportStar(M6e(),e),t.__exportStar(L6e(),e),t.__exportStar($6e(),e),t.__exportStar(zQ(),e)})(Au);var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});var z6e=Wt.getLocalStorage=aSe=Wt.getLocalStorageOrThrow=rSe=Wt.getCrypto=tSe=Wt.getCryptoOrThrow=HQ=Wt.getLocation=J6e=Wt.getLocationOrThrow=O4=Wt.getNavigator=Y6e=Wt.getNavigatorOrThrow=I4=Wt.getDocument=G6e=Wt.getDocumentOrThrow=q6e=Wt.getFromWindowOrThrow=H6e=Wt.getFromWindow=void 0;function wd(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}var H6e=Wt.getFromWindow=wd;function pm(e){const t=wd(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}var q6e=Wt.getFromWindowOrThrow=pm;function W6e(){return pm("document")}var G6e=Wt.getDocumentOrThrow=W6e;function V6e(){return wd("document")}var I4=Wt.getDocument=V6e;function K6e(){return pm("navigator")}var Y6e=Wt.getNavigatorOrThrow=K6e;function Q6e(){return wd("navigator")}var O4=Wt.getNavigator=Q6e;function X6e(){return pm("location")}var J6e=Wt.getLocationOrThrow=X6e;function Z6e(){return wd("location")}var HQ=Wt.getLocation=Z6e;function eSe(){return pm("crypto")}var tSe=Wt.getCryptoOrThrow=eSe;function nSe(){return wd("crypto")}var rSe=Wt.getCrypto=nSe;function oSe(){return pm("localStorage")}var aSe=Wt.getLocalStorageOrThrow=oSe;function iSe(){return wd("localStorage")}z6e=Wt.getLocalStorage=iSe;var R4={};Object.defineProperty(R4,"__esModule",{value:!0});var qQ=R4.getWindowMetadata=void 0;const xB=Wt;function sSe(){let e,t;try{e=xB.getDocumentOrThrow(),t=xB.getLocationOrThrow()}catch{return null}function n(){const d=e.getElementsByTagName("link"),f=[];for(let h=0;h-1){const b=m.getAttribute("href");if(b)if(b.toLowerCase().indexOf("https:")===-1&&b.toLowerCase().indexOf("http:")===-1&&b.indexOf("//")!==0){let v=t.protocol+"//"+t.host;if(b.indexOf("/")===0)v+=b;else{const g=t.pathname.split("/");g.pop();const w=g.join("/");v+=w+"/"+b}f.push(v)}else if(b.indexOf("//")===0){const v=t.protocol+b;f.push(v)}else f.push(b)}}return f}function r(...d){const f=e.getElementsByTagName("meta");for(let h=0;hm.getAttribute(b)).filter(b=>b?d.includes(b):!1);if(p.length&&p){const b=m.getAttribute("content");if(b)return b}}return""}function o(){let d=r("name","og:site_name","og:title","twitter:title");return d||(d=e.title),d}function a(){return r("description","og:description","twitter:description","keywords")}const i=o(),s=a(),c=t.origin,l=n();return{description:s,url:c,icons:l,name:i}}qQ=R4.getWindowMetadata=sSe;var vg={},cSe=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),WQ="%[a-f0-9]{2}",CB=new RegExp("("+WQ+")|([^%]+?)","gi"),SB=new RegExp("("+WQ+")+","gi");function ID(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],ID(n),ID(r))}function lSe(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(CB)||[],n=1;n{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]},hSe=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),a=0;ag==null,i=Symbol("encodeFragmentIdentifier");function s(g){switch(g.arrayFormat){case"index":return w=>(_,C)=>{const x=_.length;return C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?_:C===null?[..._,[u(w,g),"[",x,"]"].join("")]:[..._,[u(w,g),"[",u(x,g),"]=",u(C,g)].join("")]};case"bracket":return w=>(_,C)=>C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?_:C===null?[..._,[u(w,g),"[]"].join("")]:[..._,[u(w,g),"[]=",u(C,g)].join("")];case"colon-list-separator":return w=>(_,C)=>C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?_:C===null?[..._,[u(w,g),":list="].join("")]:[..._,[u(w,g),":list=",u(C,g)].join("")];case"comma":case"separator":case"bracket-separator":{const w=g.arrayFormat==="bracket-separator"?"[]=":"=";return _=>(C,x)=>x===void 0||g.skipNull&&x===null||g.skipEmptyString&&x===""?C:(x=x===null?"":x,C.length===0?[[u(_,g),w,u(x,g)].join("")]:[[C,u(x,g)].join(g.arrayFormatSeparator)])}default:return w=>(_,C)=>C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?_:C===null?[..._,u(w,g)]:[..._,[u(w,g),"=",u(C,g)].join("")]}}function c(g){let w;switch(g.arrayFormat){case"index":return(_,C,x)=>{if(w=/\[(\d*)\]$/.exec(_),_=_.replace(/\[\d*\]$/,""),!w){x[_]=C;return}x[_]===void 0&&(x[_]={}),x[_][w[1]]=C};case"bracket":return(_,C,x)=>{if(w=/(\[\])$/.exec(_),_=_.replace(/\[\]$/,""),!w){x[_]=C;return}if(x[_]===void 0){x[_]=[C];return}x[_]=[].concat(x[_],C)};case"colon-list-separator":return(_,C,x)=>{if(w=/(:list)$/.exec(_),_=_.replace(/:list$/,""),!w){x[_]=C;return}if(x[_]===void 0){x[_]=[C];return}x[_]=[].concat(x[_],C)};case"comma":case"separator":return(_,C,x)=>{const E=typeof C=="string"&&C.includes(g.arrayFormatSeparator),T=typeof C=="string"&&!E&&d(C,g).includes(g.arrayFormatSeparator);C=T?d(C,g):C;const k=E||T?C.split(g.arrayFormatSeparator).map(D=>d(D,g)):C===null?C:d(C,g);x[_]=k};case"bracket-separator":return(_,C,x)=>{const E=/(\[\])$/.test(_);if(_=_.replace(/\[\]$/,""),!E){x[_]=C&&d(C,g);return}const T=C===null?[]:C.split(g.arrayFormatSeparator).map(k=>d(k,g));if(x[_]===void 0){x[_]=T;return}x[_]=[].concat(x[_],T)};default:return(_,C,x)=>{if(x[_]===void 0){x[_]=C;return}x[_]=[].concat(x[_],C)}}}function l(g){if(typeof g!="string"||g.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(g,w){return w.encode?w.strict?t(g):encodeURIComponent(g):g}function d(g,w){return w.decode?n(g):g}function f(g){return Array.isArray(g)?g.sort():typeof g=="object"?f(Object.keys(g)).sort((w,_)=>Number(w)-Number(_)).map(w=>g[w]):g}function h(g){const w=g.indexOf("#");return w!==-1&&(g=g.slice(0,w)),g}function m(g){let w="";const _=g.indexOf("#");return _!==-1&&(w=g.slice(_)),w}function p(g){g=h(g);const w=g.indexOf("?");return w===-1?"":g.slice(w+1)}function b(g,w){return w.parseNumbers&&!Number.isNaN(Number(g))&&typeof g=="string"&&g.trim()!==""?g=Number(g):w.parseBooleans&&g!==null&&(g.toLowerCase()==="true"||g.toLowerCase()==="false")&&(g=g.toLowerCase()==="true"),g}function v(g,w){w=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},w),l(w.arrayFormatSeparator);const _=c(w),C=Object.create(null);if(typeof g!="string"||(g=g.trim().replace(/^[?#&]/,""),!g))return C;for(const x of g.split("&")){if(x==="")continue;let[E,T]=r(w.decode?x.replace(/\+/g," "):x,"=");T=T===void 0?null:["comma","separator","bracket-separator"].includes(w.arrayFormat)?T:d(T,w),_(d(E,w),T,C)}for(const x of Object.keys(C)){const E=C[x];if(typeof E=="object"&&E!==null)for(const T of Object.keys(E))E[T]=b(E[T],w);else C[x]=b(E,w)}return w.sort===!1?C:(w.sort===!0?Object.keys(C).sort():Object.keys(C).sort(w.sort)).reduce((x,E)=>{const T=C[E];return T&&typeof T=="object"&&!Array.isArray(T)?x[E]=f(T):x[E]=T,x},Object.create(null))}e.extract=p,e.parse=v,e.stringify=(g,w)=>{if(!g)return"";w=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},w),l(w.arrayFormatSeparator);const _=T=>w.skipNull&&a(g[T])||w.skipEmptyString&&g[T]==="",C=s(w),x={};for(const T of Object.keys(g))_(T)||(x[T]=g[T]);const E=Object.keys(x);return w.sort!==!1&&E.sort(w.sort),E.map(T=>{const k=g[T];return k===void 0?"":k===null?u(T,w):Array.isArray(k)?k.length===0&&w.arrayFormat==="bracket-separator"?u(T,w)+"[]":k.reduce(C(T),[]).join("&"):u(T,w)+"="+u(k,w)}).filter(T=>T.length>0).join("&")},e.parseUrl=(g,w)=>{w=Object.assign({decode:!0},w);const[_,C]=r(g,"#");return Object.assign({url:_.split("?")[0]||"",query:v(p(g),w)},w&&w.parseFragmentIdentifier&&C?{fragmentIdentifier:d(C,w)}:{})},e.stringifyUrl=(g,w)=>{w=Object.assign({encode:!0,strict:!0,[i]:!0},w);const _=h(g.url).split("?")[0]||"",C=e.extract(g.url),x=e.parse(C,{sort:!1}),E=Object.assign(x,g.query);let T=e.stringify(E,w);T&&(T=`?${T}`);let k=m(g.url);return g.fragmentIdentifier&&(k=`#${w[i]?u(g.fragmentIdentifier,w):g.fragmentIdentifier}`),`${_}${T}${k}`},e.pick=(g,w,_)=>{_=Object.assign({parseFragmentIdentifier:!0,[i]:!1},_);const{url:C,query:x,fragmentIdentifier:E}=e.parseUrl(g,_);return e.stringifyUrl({url:C,query:o(x,w),fragmentIdentifier:E},_)},e.exclude=(g,w,_)=>{const C=Array.isArray(w)?x=>!w.includes(x):(x,E)=>!w(x,E);return e.pick(g,C,_)}})(vg);const mSe={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}},pSe=":";function WYe(e){const[t,n]=e.split(pSe);return{namespace:t,reference:n}}function GYe(e,t=[]){const n=[];return Object.keys(e).forEach(r=>{if(t.length&&!t.includes(r))return;const o=e[r];n.push(...o.accounts)}),n}function GQ(e,t){return e.includes(":")?[e]:t.chains||[]}const VQ="base10",_o="base16",OD="base64pad",N4="utf8",KQ=0,Cy=1,gSe=0,TB=1,RD=12,B4=32;function VYe(){const e=j4.generateKeyPair();return{privateKey:ai(e.secretKey,_o),publicKey:ai(e.publicKey,_o)}}function KYe(){const e=r2.randomBytes(B4);return ai(e,_o)}function YYe(e,t){const n=j4.sharedKey(Ya(e,_o),Ya(t,_o),!0),r=new K2e(s2.SHA256,n).expand(B4);return ai(r,_o)}function QYe(e){const t=s2.hash(Ya(e,_o));return ai(t,_o)}function XYe(e){const t=s2.hash(Ya(e,N4));return ai(t,_o)}function ySe(e){return Ya(`${e}`,VQ)}function u2(e){return Number(ai(e,VQ))}function JYe(e){const t=ySe(typeof e.type<"u"?e.type:KQ);if(u2(t)===Cy&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const n=typeof e.senderPublicKey<"u"?Ya(e.senderPublicKey,_o):void 0,r=typeof e.iv<"u"?Ya(e.iv,_o):r2.randomBytes(RD),o=new D4.ChaCha20Poly1305(Ya(e.symKey,_o)).seal(r,Ya(e.message,N4));return bSe({type:t,sealed:o,iv:r,senderPublicKey:n})}function ZYe(e){const t=new D4.ChaCha20Poly1305(Ya(e.symKey,_o)),{sealed:n,iv:r}=YQ(e.encoded),o=t.open(r,n);if(o===null)throw new Error("Failed to decrypt");return ai(o,N4)}function bSe(e){if(u2(e.type)===Cy){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return ai(sB([e.type,e.senderPublicKey,e.iv,e.sealed]),OD)}return ai(sB([e.type,e.iv,e.sealed]),OD)}function YQ(e){const t=Ya(e,OD),n=t.slice(gSe,TB),r=TB;if(u2(n)===Cy){const s=r+B4,c=s+RD,l=t.slice(r,s),u=t.slice(s,c),d=t.slice(c);return{type:n,sealed:d,iv:u,senderPublicKey:l}}const o=r+RD,a=t.slice(r,o),i=t.slice(o);return{type:n,sealed:i,iv:a}}function eQe(e,t){const n=YQ(e);return vSe({type:u2(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?ai(n.senderPublicKey,_o):void 0,receiverPublicKey:t==null?void 0:t.receiverPublicKey})}function vSe(e){const t=(e==null?void 0:e.type)||KQ;if(t===Cy){if(typeof(e==null?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(e==null?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:e==null?void 0:e.senderPublicKey,receiverPublicKey:e==null?void 0:e.receiverPublicKey}}function tQe(e){return e.type===Cy&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}var wSe=Object.defineProperty,AB=Object.getOwnPropertySymbols,ESe=Object.prototype.hasOwnProperty,_Se=Object.prototype.propertyIsEnumerable,DB=(e,t,n)=>t in e?wSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kB=(e,t)=>{for(var n in t||(t={}))ESe.call(t,n)&&DB(e,n,t[n]);if(AB)for(var n of AB(t))_Se.call(t,n)&&DB(e,n,t[n]);return e};const xSe="ReactNative",zo={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},CSe="js";function QQ(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function Sy(){return!I4()&&!!O4()&&navigator.product===xSe}function d2(){return!QQ()&&!!O4()&&!!I4()}function Ty(){return Sy()?zo.reactNative:QQ()?zo.node:d2()?zo.browser:zo.unknown}function nQe(){var e;try{return Sy()&&typeof global<"u"&&typeof(global==null?void 0:global.Application)<"u"?(e=global.Application)==null?void 0:e.applicationId:void 0}catch{return}}function SSe(e,t){let n=vg.parse(e);return n=kB(kB({},n),t),e=vg.stringify(n),e}function rQe(){return qQ()||{name:"",description:"",url:"",icons:[""]}}function TSe(){if(Ty()===zo.reactNative&&typeof global<"u"&&typeof(global==null?void 0:global.Platform)<"u"){const{OS:n,Version:r}=global.Platform;return[n,r].join("-")}const e=l6e();if(e===null)return"unknown";const t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return e.type==="browser"?[t,e.name,e.version].join("-"):[t,e.version].join("-")}function ASe(){var e;const t=Ty();return t===zo.browser?[t,((e=HQ())==null?void 0:e.host)||"unknown"].join(":"):t}function DSe(e,t,n){const r=TSe(),o=ASe();return[[e,t].join("-"),[CSe,n].join("-"),r,o].join("/")}function oQe({protocol:e,version:t,relayUrl:n,sdkVersion:r,auth:o,projectId:a,useOnCloseEvent:i,bundleId:s}){const c=n.split("?"),l=DSe(e,t,r),u={auth:o,ua:l,projectId:a,useOnCloseEvent:i||void 0,origin:s||void 0},d=SSe(c[1]||"",u);return c[0]+"?"+d}function wu(e,t){return e.filter(n=>t.includes(n)).length===e.length}function aQe(e){return Object.fromEntries(e.entries())}function iQe(e){return new Map(Object.entries(e))}function sQe(e=Au.FIVE_MINUTES,t){const n=Au.toMiliseconds(e||Au.FIVE_MINUTES);let r,o,a;return{resolve:i=>{a&&r&&(clearTimeout(a),r(i))},reject:i=>{a&&o&&(clearTimeout(a),o(i))},done:()=>new Promise((i,s)=>{a=setTimeout(()=>{s(new Error(t))},n),r=i,o=s})}}function cQe(e,t,n){return new Promise(async(r,o)=>{const a=setTimeout(()=>o(new Error(n)),t);try{const i=await e;r(i)}catch(i){o(i)}clearTimeout(a)})}function XQ(e,t){if(typeof t=="string"&&t.startsWith(`${e}:`))return t;if(e.toLowerCase()==="topic"){if(typeof t!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}else if(e.toLowerCase()==="id"){if(typeof t!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${e}`)}function lQe(e){return XQ("topic",e)}function uQe(e){return XQ("id",e)}function dQe(e){const[t,n]=e.split(":"),r={id:void 0,topic:void 0};if(t==="topic"&&typeof n=="string")r.topic=n;else if(t==="id"&&Number.isInteger(Number(n)))r.id=Number(n);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${n}`);return r}function fQe(e,t){return Au.fromMiliseconds(Date.now()+Au.toMiliseconds(e))}function hQe(e){return Date.now()>=Au.toMiliseconds(e)}function mQe(e,t){return`${e}${t?`:${t}`:""}`}function D3(e=[],t=[]){return[...new Set([...e,...t])]}async function pQe({id:e,topic:t,wcDeepLink:n}){try{if(!n)return;const r=typeof n=="string"?JSON.parse(n):n;let o=r==null?void 0:r.href;if(typeof o!="string")return;o.endsWith("/")&&(o=o.slice(0,-1));const a=`${o}/wc?requestId=${e}&sessionTopic=${t}`,i=Ty();i===zo.browser?a.startsWith("https://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,"_self","noreferrer noopener"):i===zo.reactNative&&typeof(global==null?void 0:global.Linking)<"u"&&await global.Linking.openURL(a)}catch(r){console.error(r)}}async function gQe(e,t){try{return await e.getItem(t)||(d2()?localStorage.getItem(t):void 0)}catch(n){console.error(n)}}const kSe="irn";function yQe(e){return(e==null?void 0:e.relay)||{protocol:kSe}}function bQe(e){const t=mSe[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var jSe=Object.defineProperty,jB=Object.getOwnPropertySymbols,PSe=Object.prototype.hasOwnProperty,ISe=Object.prototype.propertyIsEnumerable,PB=(e,t,n)=>t in e?jSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,OSe=(e,t)=>{for(var n in t||(t={}))PSe.call(t,n)&&PB(e,n,t[n]);if(jB)for(var n of jB(t))ISe.call(t,n)&&PB(e,n,t[n]);return e};function RSe(e,t="-"){const n={},r="relay"+t;return Object.keys(e).forEach(o=>{if(o.startsWith(r)){const a=o.replace(r,""),i=e[o];n[a]=i}}),n}function vQe(e){e=e.includes("wc://")?e.replace("wc://",""):e,e=e.includes("wc:")?e.replace("wc:",""):e;const t=e.indexOf(":"),n=e.indexOf("?")!==-1?e.indexOf("?"):void 0,r=e.substring(0,t),o=e.substring(t+1,n).split("@"),a=typeof n<"u"?e.substring(n):"",i=vg.parse(a);return{protocol:r,topic:NSe(o[0]),version:parseInt(o[1],10),symKey:i.symKey,relay:RSe(i)}}function NSe(e){return e.startsWith("//")?e.substring(2):e}function BSe(e,t="-"){const n="relay",r={};return Object.keys(e).forEach(o=>{const a=n+t+o;e[o]&&(r[a]=e[o])}),r}function wQe(e){return`${e.protocol}:${e.topic}@${e.version}?`+vg.stringify(OSe({symKey:e.symKey},BSe(e.relay)))}var FSe=Object.defineProperty,MSe=Object.defineProperties,LSe=Object.getOwnPropertyDescriptors,IB=Object.getOwnPropertySymbols,USe=Object.prototype.hasOwnProperty,$Se=Object.prototype.propertyIsEnumerable,OB=(e,t,n)=>t in e?FSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zSe=(e,t)=>{for(var n in t||(t={}))USe.call(t,n)&&OB(e,n,t[n]);if(IB)for(var n of IB(t))$Se.call(t,n)&&OB(e,n,t[n]);return e},HSe=(e,t)=>MSe(e,LSe(t));function gm(e){const t=[];return e.forEach(n=>{const[r,o]=n.split(":");t.push(`${r}:${o}`)}),t}function qSe(e){const t=[];return Object.values(e).forEach(n=>{t.push(...gm(n.accounts))}),t}function WSe(e,t){const n=[];return Object.values(e).forEach(r=>{gm(r.accounts).includes(t)&&n.push(...r.methods)}),n}function GSe(e,t){const n=[];return Object.values(e).forEach(r=>{gm(r.accounts).includes(t)&&n.push(...r.events)}),n}function EQe(e,t){const n=n3e(e,t);if(n)throw new Error(n.message);const r={};for(const[o,a]of Object.entries(e))r[o]={methods:a.methods,events:a.events,chains:a.accounts.map(i=>`${i.split(":")[0]}:${i.split(":")[1]}`)};return r}function JQ(e){return e.includes(":")}function VSe(e){return JQ(e)?e.split(":")[0]:e}function ZQ(e){var t,n,r;const o={};if(!F4(e))return o;for(const[a,i]of Object.entries(e)){const s=JQ(a)?[a]:i.chains,c=i.methods||[],l=i.events||[],u=VSe(a);o[u]=HSe(zSe({},o[u]),{chains:D3(s,(t=o[u])==null?void 0:t.chains),methods:D3(c,(n=o[u])==null?void 0:n.methods),events:D3(l,(r=o[u])==null?void 0:r.events)})}return o}const KSe={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},YSe={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Ic(e,t){const{message:n,code:r}=YSe[e];return{message:t?`${n} ${t}`:n,code:r}}function jh(e,t){const{message:n,code:r}=KSe[e];return{message:t?`${n} ${t}`:n,code:r}}function f2(e,t){return!!Array.isArray(e)}function F4(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function nh(e){return typeof e>"u"}function Da(e,t){return t&&nh(e)?!0:typeof e=="string"&&!!e.trim().length}function M4(e,t){return typeof e=="number"&&!isNaN(e)}function _Qe(e,t){const{requiredNamespaces:n}=t,r=Object.keys(e.namespaces),o=Object.keys(n);let a=!0;return wu(o,r)?(r.forEach(i=>{const{accounts:s,methods:c,events:l}=e.namespaces[i],u=gm(s),d=n[i];(!wu(GQ(i,d),u)||!wu(d.methods,c)||!wu(d.events,l))&&(a=!1)}),a):!1}function xE(e){return Da(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function QSe(e){if(Da(e,!1)&&e.includes(":")){const t=e.split(":");if(t.length===3){const n=t[0]+":"+t[1];return!!t[2]&&xE(n)}}return!1}function xQe(e){if(Da(e,!1))try{return typeof new URL(e)<"u"}catch{return!1}return!1}function CQe(e){var t;return(t=e==null?void 0:e.proposer)==null?void 0:t.publicKey}function SQe(e){return e==null?void 0:e.topic}function TQe(e,t){let n=null;return Da(e==null?void 0:e.publicKey,!1)||(n=Ic("MISSING_OR_INVALID",`${t} controller public key should be a string`)),n}function RB(e){let t=!0;return f2(e)?e.length&&(t=e.every(n=>Da(n,!1))):t=!1,t}function XSe(e,t,n){let r=null;return f2(t)&&t.length?t.forEach(o=>{r||xE(o)||(r=jh("UNSUPPORTED_CHAINS",`${n}, chain ${o} should be a string and conform to "namespace:chainId" format`))}):xE(e)||(r=jh("UNSUPPORTED_CHAINS",`${n}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),r}function JSe(e,t,n){let r=null;return Object.entries(e).forEach(([o,a])=>{if(r)return;const i=XSe(o,GQ(o,a),`${t} ${n}`);i&&(r=i)}),r}function ZSe(e,t){let n=null;return f2(e)?e.forEach(r=>{n||QSe(r)||(n=jh("UNSUPPORTED_ACCOUNTS",`${t}, account ${r} should be a string and conform to "namespace:chainId:address" format`))}):n=jh("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),n}function e3e(e,t){let n=null;return Object.values(e).forEach(r=>{if(n)return;const o=ZSe(r==null?void 0:r.accounts,`${t} namespace`);o&&(n=o)}),n}function t3e(e,t){let n=null;return RB(e==null?void 0:e.methods)?RB(e==null?void 0:e.events)||(n=jh("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):n=jh("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),n}function eX(e,t){let n=null;return Object.values(e).forEach(r=>{if(n)return;const o=t3e(r,`${t}, namespace`);o&&(n=o)}),n}function AQe(e,t,n){let r=null;if(e&&F4(e)){const o=eX(e,t);o&&(r=o);const a=JSe(e,t,n);a&&(r=a)}else r=Ic("MISSING_OR_INVALID",`${t}, ${n} should be an object with data`);return r}function n3e(e,t){let n=null;if(e&&F4(e)){const r=eX(e,t);r&&(n=r);const o=e3e(e,t);o&&(n=o)}else n=Ic("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return n}function r3e(e){return Da(e.protocol,!0)}function DQe(e,t){let n=!1;return e?e&&f2(e)&&e.length&&e.forEach(r=>{n=r3e(r)}):n=!0,n}function kQe(e){return typeof e=="number"}function jQe(e){return typeof e<"u"&&typeof e!==null}function PQe(e){return!(!e||typeof e!="object"||!e.code||!M4(e.code)||!e.message||!Da(e.message,!1))}function IQe(e){return!(nh(e)||!Da(e.method,!1))}function OQe(e){return!(nh(e)||nh(e.result)&&nh(e.error)||!M4(e.id)||!Da(e.jsonrpc,!1))}function RQe(e){return!(nh(e)||!Da(e.name,!1))}function NQe(e,t){return!(!xE(t)||!qSe(e).includes(t))}function BQe(e,t,n){return Da(n,!1)?WSe(e,t).includes(n):!1}function FQe(e,t,n){return Da(n,!1)?GSe(e,t).includes(n):!1}function MQe(e,t,n){let r=null;const o=o3e(e),a=a3e(t),i=Object.keys(o),s=Object.keys(a),c=NB(Object.keys(e)),l=NB(Object.keys(t)),u=c.filter(d=>!l.includes(d));return u.length&&(r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces keys don't satisfy requiredNamespaces. - Required: ${u.toString()} - Received: ${Object.keys(t).toString()}`)),wu(i,s)||(r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces chains don't satisfy required namespaces. - Required: ${i.toString()} - Approved: ${s.toString()}`)),Object.keys(t).forEach(d=>{if(!d.includes(":")||r)return;const f=gm(t[d].accounts);f.includes(d)||(r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces accounts don't satisfy namespace accounts for ${d} - Required: ${d} - Approved: ${f.toString()}`))}),i.forEach(d=>{r||(wu(o[d].methods,a[d].methods)?wu(o[d].events,a[d].events)||(r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces events don't satisfy namespace events for ${d}`)):r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces methods don't satisfy namespace methods for ${d}`))}),r}function o3e(e){const t={};return Object.keys(e).forEach(n=>{var r;n.includes(":")?t[n]=e[n]:(r=e[n].chains)==null||r.forEach(o=>{t[o]={methods:e[n].methods,events:e[n].events}})}),t}function NB(e){return[...new Set(e.map(t=>t.includes(":")?t.split(":")[0]:t))]}function a3e(e){const t={};return Object.keys(e).forEach(n=>{if(n.includes(":"))t[n]=e[n];else{const r=gm(e[n].accounts);r==null||r.forEach(o=>{t[o]={accounts:e[n].accounts.filter(a=>a.includes(`${o}:`)),methods:e[n].methods,events:e[n].events}})}}),t}function LQe(e,t){return M4(e)&&e<=t.max&&e>=t.min}function UQe(){const e=Ty();return new Promise(t=>{switch(e){case zo.browser:t(i3e());break;case zo.reactNative:t(s3e());break;case zo.node:t(c3e());break;default:t(!0)}})}function i3e(){return d2()&&(navigator==null?void 0:navigator.onLine)}async function s3e(){if(Sy()&&typeof global<"u"&&global!=null&&global.NetInfo){const e=await(global==null?void 0:global.NetInfo.fetch());return e==null?void 0:e.isConnected}return!0}function c3e(){return!0}function $Qe(e){switch(Ty()){case zo.browser:l3e(e);break;case zo.reactNative:u3e(e);break}}function l3e(e){!Sy()&&d2()&&(window.addEventListener("online",()=>e(!0)),window.addEventListener("offline",()=>e(!1)))}function u3e(e){Sy()&&typeof global<"u"&&global!=null&&global.NetInfo&&(global==null||global.NetInfo.addEventListener(t=>e(t==null?void 0:t.isConnected)))}const k3={};class zQe{static get(t){return k3[t]}static set(t,n){k3[t]=n}static delete(t){delete k3[t]}}var tX="eip155",d3e="store",nX="requestedChains",ND="wallet_addEthereumChain",on,x0,D1,BD,L4,rX,k1,FD,MD,oX,CE,U4,mf,n0,SE,$4,TE,z4,AE,H4,q4=class extends py{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),Fn(this,D1),Fn(this,L4),Fn(this,k1),Fn(this,MD),Fn(this,CE),Fn(this,mf),Fn(this,SE),Fn(this,TE),Fn(this,AE),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,Fn(this,on,void 0),Fn(this,x0,void 0),this.onAccountsChanged=t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Rr(t[0])})},this.onChainChanged=t=>{const n=Number(t),r=this.isChainUnsupported(n);this.emit("change",{chain:{id:n,unsupported:r}})},this.onDisconnect=()=>{Bn(this,mf,n0).call(this,[]),this.emit("disconnect")},this.onDisplayUri=t=>{this.emit("message",{type:"display_uri",data:t})},this.onConnect=()=>{this.emit("connect",{})},Bn(this,D1,BD).call(this)}async connect({chainId:e,pairingTopic:t}={}){var n,r,o,a,i;try{let s=e;if(!s){const m=(n=this.storage)==null?void 0:n.getItem(d3e),p=(a=(o=(r=m==null?void 0:m.state)==null?void 0:r.data)==null?void 0:o.chain)==null?void 0:a.id;p&&!this.isChainUnsupported(p)?s=p:s=(i=this.chains[0])==null?void 0:i.id}if(!s)throw new Error("No chains found on connector.");const c=await this.getProvider();Bn(this,MD,oX).call(this);const l=Bn(this,k1,FD).call(this);if(c.session&&l&&await c.disconnect(),!c.session||l){const m=this.chains.filter(p=>p.id!==s).map(p=>p.id);this.emit("message",{type:"connecting"}),await c.connect({pairingTopic:t,optionalChains:[s,...m]}),Bn(this,mf,n0).call(this,this.chains.map(({id:p})=>p))}const u=await c.enable(),d=Rr(u[0]),f=await this.getChainId(),h=this.isChainUnsupported(f);return{account:d,chain:{id:f,unsupported:h}}}catch(s){throw/user rejected/i.test(s==null?void 0:s.message)?new dr(s):s}}async disconnect(){const e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{Bn(this,CE,U4).call(this),Bn(this,mf,n0).call(this,[])}}async getAccount(){const{accounts:e}=await this.getProvider();return Rr(e[0])}async getChainId(){const{chainId:e}=await this.getProvider();return e}async getProvider({chainId:e}={}){return ft(this,on)||await Bn(this,D1,BD).call(this),e&&await this.switchChain(e),ft(this,on)}async getWalletClient({chainId:e}={}){const[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){try{const[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=Bn(this,k1,FD).call(this);if(!e)return!1;if(n&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){var n,r;const t=this.chains.find(o=>o.id===e);if(!t)throw new ol(new Error("chain not found on connector."));try{const o=await this.getProvider(),a=Bn(this,TE,z4).call(this),i=Bn(this,AE,H4).call(this);if(!a.includes(e)&&i.includes(ND)){await o.request({method:ND,params:[{chainId:Xe(t.id),blockExplorerUrls:[(r=(n=t.blockExplorers)==null?void 0:n.default)==null?void 0:r.url],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpcUrls.default.http]}]});const c=Bn(this,SE,$4).call(this);c.push(e),Bn(this,mf,n0).call(this,c)}return await o.request({method:"wallet_switchEthereumChain",params:[{chainId:Xe(e)}]}),t}catch(o){const a=typeof o=="string"?o:o==null?void 0:o.message;throw/user rejected request/i.test(a)?new dr(o):new ol(o)}}};on=new WeakMap;x0=new WeakMap;D1=new WeakSet;BD=async function(){return!ft(this,x0)&&typeof window<"u"&&As(this,x0,Bn(this,L4,rX).call(this)),ft(this,x0)};L4=new WeakSet;rX=async function(){const{EthereumProvider:e}=await me(async()=>{const{EthereumProvider:n}=await import("./index.es-DAoTMZAm.js");return{EthereumProvider:n}},__vite__mapDeps([0,1]),import.meta.url),t=this.chains.map(({id:n})=>n);if(t.length){const{projectId:n,showQrModal:r=!0,qrModalOptions:o,metadata:a,relayUrl:i}=this.options;As(this,on,await e.init({showQrModal:r,qrModalOptions:o,projectId:n,optionalChains:t,rpcMap:Object.fromEntries(this.chains.map(s=>[s.id,s.rpcUrls.default.http[0]])),metadata:a,relayUrl:i}))}};k1=new WeakSet;FD=function(){if(Bn(this,AE,H4).call(this).includes(ND)||!this.options.isNewChainsStale)return!1;const t=Bn(this,SE,$4).call(this),n=this.chains.map(({id:o})=>o),r=Bn(this,TE,z4).call(this);return r.length&&!r.some(o=>n.includes(o))?!1:!n.every(o=>t.includes(o))};MD=new WeakSet;oX=function(){ft(this,on)&&(Bn(this,CE,U4).call(this),ft(this,on).on("accountsChanged",this.onAccountsChanged),ft(this,on).on("chainChanged",this.onChainChanged),ft(this,on).on("disconnect",this.onDisconnect),ft(this,on).on("session_delete",this.onDisconnect),ft(this,on).on("display_uri",this.onDisplayUri),ft(this,on).on("connect",this.onConnect))};CE=new WeakSet;U4=function(){ft(this,on)&&(ft(this,on).removeListener("accountsChanged",this.onAccountsChanged),ft(this,on).removeListener("chainChanged",this.onChainChanged),ft(this,on).removeListener("disconnect",this.onDisconnect),ft(this,on).removeListener("session_delete",this.onDisconnect),ft(this,on).removeListener("display_uri",this.onDisplayUri),ft(this,on).removeListener("connect",this.onConnect))};mf=new WeakSet;n0=function(e){var t;(t=this.storage)==null||t.setItem(nX,e)};SE=new WeakSet;$4=function(){var e;return((e=this.storage)==null?void 0:e.getItem(nX))??[]};TE=new WeakSet;z4=function(){var r,o,a;if(!ft(this,on))return[];const e=(r=ft(this,on).session)==null?void 0:r.namespaces;return e?((a=(o=ZQ(e)[tX])==null?void 0:o.chains)==null?void 0:a.map(i=>parseInt(i.split(":")[1]||"")))??[]:[]};AE=new WeakSet;H4=function(){var r,o;if(!ft(this,on))return[];const e=(r=ft(this,on).session)==null?void 0:r.namespaces;return e?((o=ZQ(e)[tX])==null?void 0:o.methods)??[]:[]};var r0,pf,f3e=class extends py{constructor({chains:e,options:t}){super({chains:e,options:{reloadOnDisconnect:!1,...t}}),this.id="coinbaseWallet",this.name="Coinbase Wallet",this.ready=!0,Fn(this,r0,void 0),Fn(this,pf,void 0),this.onAccountsChanged=n=>{n.length===0?this.emit("disconnect"):this.emit("change",{account:Rr(n[0])})},this.onChainChanged=n=>{const r=Ju(n),o=this.isChainUnsupported(r);this.emit("change",{chain:{id:r,unsupported:o}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:e}={}){try{const t=await this.getProvider();t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});const n=await t.enable(),r=Rr(n[0]);let o=await this.getChainId(),a=this.isChainUnsupported(o);return e&&o!==e&&(o=(await this.switchChain(e)).id,a=this.isChainUnsupported(o)),{account:r,chain:{id:o,unsupported:a}}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new dr(t):t}}async disconnect(){if(!ft(this,pf))return;const e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){const t=await(await this.getProvider()).request({method:"eth_accounts"});return Rr(t[0])}async getChainId(){const e=await this.getProvider();return Ju(e.chainId)}async getProvider(){var e;if(!ft(this,pf)){let t=(await me(async()=>{const{default:i}=await import("./index-CPuAEUoa.js").then(s=>s.i);return{default:i}},__vite__mapDeps([2,3]),import.meta.url)).default;typeof t!="function"&&typeof t.default=="function"&&(t=t.default),As(this,r0,new t(this.options));const n=(e=ft(this,r0).walletExtension)==null?void 0:e.getChainId(),r=this.chains.find(i=>this.options.chainId?i.id===this.options.chainId:i.id===n)||this.chains[0],o=this.options.chainId||(r==null?void 0:r.id),a=this.options.jsonRpcUrl||(r==null?void 0:r.rpcUrls.default.http[0]);As(this,pf,ft(this,r0).makeWeb3Provider(a,o))}return ft(this,pf)}async getWalletClient({chainId:e}={}){const[t,n]=await Promise.all([this.getProvider(),this.getAccount()]),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){var r;const t=await this.getProvider(),n=Xe(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(o=>o.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(o){const a=this.chains.find(i=>i.id===e);if(!a)throw new TY({chainId:e,connectorId:this.id});if(o.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:a.name,nativeCurrency:a.nativeCurrency,rpcUrls:[((r=a.rpcUrls.public)==null?void 0:r.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(a)}]}),a}catch(i){throw new dr(i)}throw new ol(o)}}async watchAsset({address:e,decimals:t=18,image:n,symbol:r}){return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:n,symbol:r}}})}};r0=new WeakMap;pf=new WeakMap;var j1,h3e=class extends Ds{constructor({chains:e,options:t}={}){const n={name:"MetaMask",shimDisconnect:!0,getProvider(){function r(a){if(a!=null&&a.isMetaMask&&!(a.isBraveWallet&&!a._events&&!a._state)&&!a.isApexWallet&&!a.isAvalanche&&!a.isBitKeep&&!a.isBlockWallet&&!a.isCoin98&&!a.isFordefi&&!a.isMathWallet&&!(a.isOkxWallet||a.isOKExWallet)&&!(a.isOneInchIOSWallet||a.isOneInchAndroidWallet)&&!a.isOpera&&!a.isPortal&&!a.isRabby&&!a.isDefiant&&!a.isTokenPocket&&!a.isTokenary&&!a.isZeal&&!a.isZerion)return a}if(typeof window>"u")return;const o=window.ethereum;return o!=null&&o.providers?o.providers.find(r):r(o)},...t};super({chains:e,options:n}),this.id="metaMask",this.shimDisconnectKey=`${this.id}.shimDisconnect`,Fn(this,j1,void 0),As(this,j1,n.UNSTABLE_shimOnConnectSelectAccount)}async connect({chainId:e}={}){var t,n,r,o;try{const a=await this.getProvider();if(!a)throw new ua;a.on&&(a.on("accountsChanged",this.onAccountsChanged),a.on("chainChanged",this.onChainChanged),a.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let i=null;if(ft(this,j1)&&((t=this.options)!=null&&t.shimDisconnect)&&!((n=this.storage)!=null&&n.getItem(this.shimDisconnectKey))&&(i=await this.getAccount().catch(()=>null),!!i))try{await a.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}),i=await this.getAccount()}catch(u){if(this.isUserRejectedRequestError(u))throw new dr(u);if(u.code===new gh(u).code)throw u}if(!i){const l=await a.request({method:"eth_requestAccounts"});i=Rr(l[0])}let s=await this.getChainId(),c=this.isChainUnsupported(s);return e&&s!==e&&(s=(await this.switchChain(e)).id,c=this.isChainUnsupported(s)),(r=this.options)!=null&&r.shimDisconnect&&((o=this.storage)==null||o.setItem(this.shimDisconnectKey,!0)),{account:i,chain:{id:s,unsupported:c},provider:a}}catch(a){throw this.isUserRejectedRequestError(a)?new dr(a):a.code===-32002?new gh(a):a}}};j1=new WeakMap;var m3e=/(imtoken|metamask|rainbow|trust wallet|uniswap wallet|ledger)/i,ou,LD,aX,iX=class extends py{constructor(){super(...arguments),Fn(this,LD),this.id="walletConnectLegacy",this.name="WalletConnectLegacy",this.ready=!0,Fn(this,ou,void 0),this.onAccountsChanged=e=>{e.length===0?this.emit("disconnect"):this.emit("change",{account:Rr(e[0])})},this.onChainChanged=e=>{const t=Ju(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:e}={}){var t,n,r,o,a,i;try{let s=e;if(!s){const m=(t=this.storage)==null?void 0:t.getItem("store"),p=(o=(r=(n=m==null?void 0:m.state)==null?void 0:n.data)==null?void 0:r.chain)==null?void 0:o.id;p&&!this.isChainUnsupported(p)&&(s=p)}const c=await this.getProvider({chainId:s,create:!0});c.on("accountsChanged",this.onAccountsChanged),c.on("chainChanged",this.onChainChanged),c.on("disconnect",this.onDisconnect),setTimeout(()=>this.emit("message",{type:"connecting"}),0);const l=await c.enable(),u=Rr(l[0]),d=await this.getChainId(),f=this.isChainUnsupported(d),h=((i=(a=c.connector)==null?void 0:a.peerMeta)==null?void 0:i.name)??"";return m3e.test(h)&&(this.switchChain=Bn(this,LD,aX)),{account:u,chain:{id:d,unsupported:f}}}catch(s){throw/user closed modal/i.test(s.message)?new dr(s):s}}async disconnect(){const e=await this.getProvider();await e.disconnect(),e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),typeof localStorage<"u"&&localStorage.removeItem("walletconnect")}async getAccount(){const t=(await this.getProvider()).accounts;return Rr(t[0])}async getChainId(){const e=await this.getProvider();return Ju(e.chainId)}async getProvider({chainId:e,create:t}={}){var n,r;if(!ft(this,ou)||e||t){const o=(n=this.options)!=null&&n.infuraId?{}:this.chains.reduce((i,s)=>({...i,[s.id]:s.rpcUrls.default.http[0]}),{}),a=(await me(async()=>{const{default:i}=await import("./index-DKyRIqqa.js");return{default:i}},__vite__mapDeps([4,1,3]),import.meta.url)).default;As(this,ou,new a({...this.options,chainId:e,rpc:{...o,...(r=this.options)==null?void 0:r.rpc}})),ft(this,ou).http=await ft(this,ou).setHttpProvider(e)}return ft(this,ou)}async getWalletClient({chainId:e}={}){const[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}};ou=new WeakMap;LD=new WeakSet;aX=async function(e){const t=await this.getProvider(),n=Xe(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(r=>this.on("change",({chain:o})=>{(o==null?void 0:o.id)===e&&r(e)}))]),this.chains.find(r=>r.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(r){const o=typeof r=="string"?r:r==null?void 0:r.message;throw/user rejected request/i.test(o)?new dr(r):new ol(r)}};var sX={},h2={},W4={exports:{}},rh=typeof Reflect=="object"?Reflect:null,BB=rh&&typeof rh.apply=="function"?rh.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},P1;rh&&typeof rh.ownKeys=="function"?P1=rh.ownKeys:Object.getOwnPropertySymbols?P1=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:P1=function(t){return Object.getOwnPropertyNames(t)};function p3e(e){console&&console.warn&&console.warn(e)}var cX=Number.isNaN||function(t){return t!==t};function Nt(){Nt.init.call(this)}W4.exports=Nt;W4.exports.once=v3e;Nt.EventEmitter=Nt;Nt.prototype._events=void 0;Nt.prototype._eventsCount=0;Nt.prototype._maxListeners=void 0;var FB=10;function m2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Nt,"defaultMaxListeners",{enumerable:!0,get:function(){return FB},set:function(e){if(typeof e!="number"||e<0||cX(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");FB=e}});Nt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Nt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||cX(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function lX(e){return e._maxListeners===void 0?Nt.defaultMaxListeners:e._maxListeners}Nt.prototype.getMaxListeners=function(){return lX(this)};Nt.prototype.emit=function(t){for(var n=[],r=1;r0&&(i=n[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var c=a[t];if(c===void 0)return!1;if(typeof c=="function")BB(c,this,n);else for(var l=c.length,u=mX(c,l),r=0;r0&&i.length>o&&!i.warned){i.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=i.length,p3e(s)}return e}Nt.prototype.addListener=function(t,n){return uX(this,t,n,!1)};Nt.prototype.on=Nt.prototype.addListener;Nt.prototype.prependListener=function(t,n){return uX(this,t,n,!0)};function g3e(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function dX(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=g3e.bind(r);return o.listener=n,r.wrapFn=o,o}Nt.prototype.once=function(t,n){return m2(n),this.on(t,dX(this,t,n)),this};Nt.prototype.prependOnceListener=function(t,n){return m2(n),this.prependListener(t,dX(this,t,n)),this};Nt.prototype.removeListener=function(t,n){var r,o,a,i,s;if(m2(n),o=this._events,o===void 0)return this;if(r=o[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(a=-1,i=r.length-1;i>=0;i--)if(r[i]===n||r[i].listener===n){s=r[i].listener,a=i;break}if(a<0)return this;a===0?r.shift():y3e(r,a),r.length===1&&(o[t]=r[0]),o.removeListener!==void 0&&this.emit("removeListener",t,s||n)}return this};Nt.prototype.off=Nt.prototype.removeListener;Nt.prototype.removeAllListeners=function(t){var n,r,o;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var a=Object.keys(r),i;for(o=0;o=0;o--)this.removeListener(t,n[o]);return this};function fX(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?b3e(o):mX(o,o.length)}Nt.prototype.listeners=function(t){return fX(this,t,!0)};Nt.prototype.rawListeners=function(t){return fX(this,t,!1)};Nt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):hX.call(e,t)};Nt.prototype.listenerCount=hX;function hX(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Nt.prototype.eventNames=function(){return this._eventsCount>0?P1(this._events):[]};function mX(e,t){for(var n=new Array(t),r=0;r(c&&(c.hash=r[0]),c));case"eth_getTransactionReceipt":{let c=r[0];try{c=(await this.sdk.txs.getBySafeTxHash(c)).txHash||c}catch{}return this.sdk.eth.getTransactionReceipt([c]).then(l=>(l&&(l.transactionHash=r[0]),l))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(r[0]);case"eth_call":return this.sdk.eth.call([r[0],r[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([r[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(r[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([r[0]]);default:throw Error(`"${t.method}" not implemented`)}}send(t,n){t||n("Undefined request"),this.request(t).then(r=>n(null,{jsonrpc:"2.0",id:t.id,result:r})).catch(r=>n(r,null))}}h2.SafeAppProvider=x3e;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAppProvider=void 0;var t=h2;Object.defineProperty(e,"SafeAppProvider",{enumerable:!0,get:function(){return t.SafeAppProvider}})})(sX);var yX={},DE={},bX={},Ay={},Dy={};const C3e="@safe-global/safe-apps-sdk",S3e="8.1.0",T3e="SDK developed to integrate third-party apps with Safe app.",A3e="dist/src/index.js",D3e="dist/src/index.d.ts",k3e=["dist/**/*","src/**/*","CHANGELOG.md","README.md"],j3e=!1,P3e=["Safe","sdk","apps"],I3e={test:"jest","format-dist":`sed -i '' 's/"files":/"_files":/' dist/package.json`,build:"yarn rimraf dist && tsc && yarn format-dist"},O3e="Safe (https://safe.global)",R3e="MIT",N3e={"@safe-global/safe-gateway-typescript-sdk":"^3.5.3",viem:"^1.0.0"},B3e={type:"git",url:"git+https://github.com/safe-global/safe-apps-sdk.git"},F3e={url:"https://github.com/safe-global/safe-apps-sdk/issues"},M3e="https://github.com/safe-global/safe-apps-sdk#readme",L3e={access:"public"},U3e={name:C3e,version:S3e,description:T3e,main:A3e,typings:D3e,_files:k3e,sideEffects:j3e,keywords:P3e,scripts:I3e,author:O3e,license:R3e,dependencies:N3e,repository:B3e,bugs:F3e,homepage:M3e,publishConfig:L3e};var $3e=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dy,"__esModule",{value:!0});Dy.getSDKVersion=void 0;const z3e=$3e(U3e),H3e=()=>z3e.default.version.split("-")[0];Dy.getSDKVersion=H3e;var g2={};Object.defineProperty(g2,"__esModule",{value:!0});g2.generateRequestId=void 0;const q3e=e=>e.toString(16).padStart(2,"0"),W3e=e=>{const t=new Uint8Array(e/2);return window.crypto.getRandomValues(t),Array.from(t,q3e).join("")},G3e=()=>typeof window<"u"?W3e(10):new Date().getTime().toString(36);g2.generateRequestId=G3e;Object.defineProperty(Ay,"__esModule",{value:!0});Ay.MessageFormatter=void 0;const V3e=Dy,K3e=g2;class y2{}Ay.MessageFormatter=y2;y2.makeRequest=(e,t)=>({id:(0,K3e.generateRequestId)(),method:e,params:t,env:{sdkVersion:(0,V3e.getSDKVersion)()}});y2.makeResponse=(e,t,n)=>({id:e,success:!0,version:n,data:t});y2.makeErrorResponse=(e,t,n)=>({id:e,success:!1,error:t,version:n});var Ed={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RestrictedMethods=e.Methods=void 0,function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"}(e.Methods||(e.Methods={})),function(t){t.requestAddressBook="requestAddressBook"}(e.RestrictedMethods||(e.RestrictedMethods={}))})(Ed);(function(e){var t=We&&We.__createBinding||(Object.create?function(a,i,s,c){c===void 0&&(c=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(a,c,l)}:function(a,i,s,c){c===void 0&&(c=s),a[c]=i[s]}),n=We&&We.__exportStar||function(a,i){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,a,s)};Object.defineProperty(e,"__esModule",{value:!0});const r=Ay;class o{constructor(i=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:c,data:l,source:u})=>{const d=!l,f=!this.isServer&&u===window.parent,m=(typeof l.version<"u"&&parseInt(l.version.split(".")[0]))>=1;let p=!0;return Array.isArray(this.allowedOrigins)&&(p=this.allowedOrigins.find(b=>b.test(c))!==void 0),!d&&f&&m&&p},this.logIncomingMessage=c=>{console.info(`Safe Apps SDK v1: A message was received from origin ${c.origin}. `,c.data)},this.onParentMessage=c=>{this.isValidMessage(c)&&(this.debugMode&&this.logIncomingMessage(c),this.handleIncomingMessage(c.data))},this.handleIncomingMessage=c=>{const{id:l}=c,u=this.callbacks.get(l);u&&(u(c),this.callbacks.delete(l))},this.send=(c,l)=>{const u=r.MessageFormatter.makeRequest(c,l);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(u,"*"),new Promise((d,f)=>{this.callbacks.set(u.id,h=>{if(!h.success){f(new Error(h.error));return}d(h)})})},this.allowedOrigins=i,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Ed,e)})(bX);var b2={},v2={},w2={};Object.defineProperty(w2,"__esModule",{value:!0});w2.isObjectEIP712TypedData=void 0;const Y3e=e=>typeof e=="object"&&e!=null&&"domain"in e&&"types"in e&&"message"in e;w2.isObjectEIP712TypedData=Y3e;var vX={};Object.defineProperty(vX,"__esModule",{value:!0});var wX={},EX={},Di={},ki={},G4=We&&We.__awaiter||function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function s(u){try{l(r.next(u))}catch(d){i(d)}}function c(u){try{l(r.throw(u))}catch(d){i(d)}}function l(u){u.done?a(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(ki,"__esModule",{value:!0});ki.getData=ki.fetchData=ki.stringifyQuery=ki.insertParams=void 0;const Q3e=e=>typeof e=="object"&&e!==null&&"code"in e&&"message"in e;function X3e(e,t,n){return e.replace(new RegExp(`\\{${t}\\}`,"g"),n)}function J3e(e,t){return t?Object.keys(t).reduce((n,r)=>X3e(n,r,String(t[r])),e):e}ki.insertParams=J3e;function Z3e(e){if(!e)return"";const t=new URLSearchParams;Object.keys(e).forEach(r=>{e[r]!=null&&t.append(r,String(e[r]))});const n=t.toString();return n?`?${n}`:""}ki.stringifyQuery=Z3e;function _X(e){return G4(this,void 0,void 0,function*(){let t;try{t=yield e.json()}catch{t={}}if(!e.ok){const n=Q3e(t)?`CGW error - ${t.code}: ${t.message}`:`CGW error - status ${e.statusText}`;throw new Error(n)}return t})}function eTe(e,t,n,r,o){return G4(this,void 0,void 0,function*(){const a=Object.assign({"Content-Type":"application/json"},r),i={method:t??"POST",headers:a};o&&(i.credentials=o),n!=null&&(i.body=typeof n=="string"?n:JSON.stringify(n));const s=yield fetch(e,i);return _X(s)})}ki.fetchData=eTe;function tTe(e,t,n){return G4(this,void 0,void 0,function*(){const r={method:"GET"};t&&(r.headers=Object.assign(Object.assign({},t),{"Content-Type":"application/json"})),n&&(r.credentials=n);const o=yield fetch(e,r);return _X(o)})}ki.getData=tTe;Object.defineProperty(Di,"__esModule",{value:!0});Di.getEndpoint=Di.deleteEndpoint=Di.putEndpoint=Di.postEndpoint=void 0;const Zu=ki;function E2(e,t,n,r){const o=(0,Zu.insertParams)(t,n),a=(0,Zu.stringifyQuery)(r);return`${e}${o}${a}`}function nTe(e,t,n){const r=E2(e,t,n==null?void 0:n.path,n==null?void 0:n.query);return(0,Zu.fetchData)(r,"POST",n==null?void 0:n.body,n==null?void 0:n.headers,n==null?void 0:n.credentials)}Di.postEndpoint=nTe;function rTe(e,t,n){const r=E2(e,t,n==null?void 0:n.path,n==null?void 0:n.query);return(0,Zu.fetchData)(r,"PUT",n==null?void 0:n.body,n==null?void 0:n.headers,n==null?void 0:n.credentials)}Di.putEndpoint=rTe;function oTe(e,t,n){const r=E2(e,t,n==null?void 0:n.path,n==null?void 0:n.query);return(0,Zu.fetchData)(r,"DELETE",n==null?void 0:n.body,n==null?void 0:n.headers,n==null?void 0:n.credentials)}Di.deleteEndpoint=oTe;function aTe(e,t,n,r){if(r)return(0,Zu.getData)(r,void 0,n==null?void 0:n.credentials);const o=E2(e,t,n==null?void 0:n.path,n==null?void 0:n.query);return(0,Zu.getData)(o,n==null?void 0:n.headers,n==null?void 0:n.credentials)}Di.getEndpoint=aTe;var _2={};Object.defineProperty(_2,"__esModule",{value:!0});_2.DEFAULT_BASE_URL=void 0;_2.DEFAULT_BASE_URL="https://safe-client.safe.global";var xX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationVersionState=void 0,function(t){t.UP_TO_DATE="UP_TO_DATE",t.OUTDATED="OUTDATED",t.UNKNOWN="UNKNOWN"}(e.ImplementationVersionState||(e.ImplementationVersionState={}))})(xX);var CX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAppSocialPlatforms=e.SafeAppFeatures=e.SafeAppAccessPolicyTypes=void 0,function(t){t.NoRestrictions="NO_RESTRICTIONS",t.DomainAllowlist="DOMAIN_ALLOWLIST"}(e.SafeAppAccessPolicyTypes||(e.SafeAppAccessPolicyTypes={})),function(t){t.BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS"}(e.SafeAppFeatures||(e.SafeAppFeatures={})),function(t){t.TWITTER="TWITTER",t.GITHUB="GITHUB",t.DISCORD="DISCORD"}(e.SafeAppSocialPlatforms||(e.SafeAppSocialPlatforms={}))})(CX);var SX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LabelValue=e.StartTimeValue=e.DurationType=e.DetailedExecutionInfoType=e.TransactionListItemType=e.ConflictType=e.TransactionInfoType=e.SettingsInfoType=e.TransactionTokenType=e.TransferDirection=e.TransactionStatus=e.Operation=void 0,function(t){t[t.CALL=0]="CALL",t[t.DELEGATE=1]="DELEGATE"}(e.Operation||(e.Operation={})),function(t){t.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",t.AWAITING_EXECUTION="AWAITING_EXECUTION",t.CANCELLED="CANCELLED",t.FAILED="FAILED",t.SUCCESS="SUCCESS"}(e.TransactionStatus||(e.TransactionStatus={})),function(t){t.INCOMING="INCOMING",t.OUTGOING="OUTGOING",t.UNKNOWN="UNKNOWN"}(e.TransferDirection||(e.TransferDirection={})),function(t){t.ERC20="ERC20",t.ERC721="ERC721",t.NATIVE_COIN="NATIVE_COIN"}(e.TransactionTokenType||(e.TransactionTokenType={})),function(t){t.SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",t.ADD_OWNER="ADD_OWNER",t.REMOVE_OWNER="REMOVE_OWNER",t.SWAP_OWNER="SWAP_OWNER",t.CHANGE_THRESHOLD="CHANGE_THRESHOLD",t.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",t.ENABLE_MODULE="ENABLE_MODULE",t.DISABLE_MODULE="DISABLE_MODULE",t.SET_GUARD="SET_GUARD",t.DELETE_GUARD="DELETE_GUARD"}(e.SettingsInfoType||(e.SettingsInfoType={})),function(t){t.TRANSFER="Transfer",t.SETTINGS_CHANGE="SettingsChange",t.CUSTOM="Custom",t.CREATION="Creation",t.SWAP_ORDER="SwapOrder",t.TWAP_ORDER="TwapOrder",t.SWAP_TRANSFER="SwapTransfer"}(e.TransactionInfoType||(e.TransactionInfoType={})),function(t){t.NONE="None",t.HAS_NEXT="HasNext",t.END="End"}(e.ConflictType||(e.ConflictType={})),function(t){t.TRANSACTION="TRANSACTION",t.LABEL="LABEL",t.CONFLICT_HEADER="CONFLICT_HEADER",t.DATE_LABEL="DATE_LABEL"}(e.TransactionListItemType||(e.TransactionListItemType={})),function(t){t.MULTISIG="MULTISIG",t.MODULE="MODULE"}(e.DetailedExecutionInfoType||(e.DetailedExecutionInfoType={})),function(t){t.AUTO="AUTO",t.LIMIT_DURATION="LIMIT_DURATION"}(e.DurationType||(e.DurationType={})),function(t){t.AT_MINING_TIME="AT_MINING_TIME",t.AT_EPOCH="AT_EPOCH"}(e.StartTimeValue||(e.StartTimeValue={})),function(t){t.Queued="Queued",t.Next="Next"}(e.LabelValue||(e.LabelValue={}))})(SX);var TX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FEATURES=e.GAS_PRICE_TYPE=e.RPC_AUTHENTICATION=void 0,function(t){t.API_KEY_PATH="API_KEY_PATH",t.NO_AUTHENTICATION="NO_AUTHENTICATION",t.UNKNOWN="UNKNOWN"}(e.RPC_AUTHENTICATION||(e.RPC_AUTHENTICATION={})),function(t){t.ORACLE="ORACLE",t.FIXED="FIXED",t.FIXED_1559="FIXED1559",t.UNKNOWN="UNKNOWN"}(e.GAS_PRICE_TYPE||(e.GAS_PRICE_TYPE={})),function(t){t.ERC721="ERC721",t.SAFE_APPS="SAFE_APPS",t.CONTRACT_INTERACTION="CONTRACT_INTERACTION",t.DOMAIN_LOOKUP="DOMAIN_LOOKUP",t.SPENDING_LIMIT="SPENDING_LIMIT",t.EIP1559="EIP1559",t.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",t.TX_SIMULATION="TX_SIMULATION",t.EIP1271="EIP1271"}(e.FEATURES||(e.FEATURES={}))})(TX);var AX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TokenType=void 0,function(t){t.ERC20="ERC20",t.ERC721="ERC721",t.NATIVE_TOKEN="NATIVE_TOKEN"}(e.TokenType||(e.TokenType={}))})(AX);var DX={};Object.defineProperty(DX,"__esModule",{value:!0});var kX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfirmationViewTypes=void 0,function(t){t.COW_SWAP_ORDER="COW_SWAP_ORDER",t.COW_SWAP_TWAP_ORDER="COW_SWAP_TWAP_ORDER"}(e.ConfirmationViewTypes||(e.ConfirmationViewTypes={}))})(kX);var jX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeMessageStatus=e.SafeMessageListItemType=void 0,function(t){t.DATE_LABEL="DATE_LABEL",t.MESSAGE="MESSAGE"}(e.SafeMessageListItemType||(e.SafeMessageListItemType={})),function(t){t.NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",t.CONFIRMED="CONFIRMED"}(e.SafeMessageStatus||(e.SafeMessageStatus={}))})(jX);var PX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeviceType=void 0,function(t){t.ANDROID="ANDROID",t.IOS="IOS",t.WEB="WEB"}(e.DeviceType||(e.DeviceType={}))})(PX);var IX={};Object.defineProperty(IX,"__esModule",{value:!0});(function(e){var t=We&&We.__createBinding||(Object.create?function(Y,W,Q,ce){ce===void 0&&(ce=Q);var pe=Object.getOwnPropertyDescriptor(W,Q);(!pe||("get"in pe?!W.__esModule:pe.writable||pe.configurable))&&(pe={enumerable:!0,get:function(){return W[Q]}}),Object.defineProperty(Y,ce,pe)}:function(Y,W,Q,ce){ce===void 0&&(ce=Q),Y[ce]=W[Q]}),n=We&&We.__exportStar||function(Y,W){for(var Q in Y)Q!=="default"&&!Object.prototype.hasOwnProperty.call(W,Q)&&t(W,Y,Q)};Object.defineProperty(e,"__esModule",{value:!0}),e.deleteAccount=e.getAccount=e.createAccount=e.verifyAuth=e.getAuthNonce=e.getContract=e.getSafeOverviews=e.unsubscribeAll=e.unsubscribeSingle=e.registerRecoveryModule=e.deleteRegisteredEmail=e.getRegisteredEmail=e.verifyEmail=e.resendEmailVerificationCode=e.changeEmail=e.registerEmail=e.unregisterDevice=e.unregisterSafe=e.registerDevice=e.getDelegates=e.confirmSafeMessage=e.proposeSafeMessage=e.getSafeMessage=e.getSafeMessages=e.getDecodedData=e.getMasterCopies=e.getSafeApps=e.getChainConfig=e.getChainsConfig=e.getConfirmationView=e.proposeTransaction=e.getNonces=e.postSafeGasEstimation=e.deleteTransaction=e.getTransactionDetails=e.getTransactionQueue=e.getTransactionHistory=e.getCollectiblesPage=e.getCollectibles=e.getAllOwnedSafes=e.getOwnedSafes=e.getFiatCurrencies=e.getBalances=e.getMultisigTransactions=e.getModuleTransactions=e.getIncomingTransfers=e.getSafeInfo=e.getRelayCount=e.relayTransaction=e.setBaseUrl=void 0,e.putAccountDataSettings=e.getAccountDataSettings=e.getAccountDataTypes=void 0;const r=Di,o=_2;n(xX,e),n(CX,e),n(SX,e),n(TX,e),n(AX,e),n(DX,e),n(kX,e),n(jX,e),n(PX,e),n(IX,e);let a=o.DEFAULT_BASE_URL;const i=Y=>{a=Y};e.setBaseUrl=i;function s(Y,W){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/relay",{path:{chainId:Y},body:W})}e.relayTransaction=s;function c(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/relay/{address}",{path:{chainId:Y,address:W}})}e.getRelayCount=c;function l(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:Y,address:W}})}e.getSafeInfo=l;function u(Y,W,Q,ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:Y,address:W},query:Q},ce)}e.getIncomingTransfers=u;function d(Y,W,Q,ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:Y,address:W},query:Q},ce)}e.getModuleTransactions=d;function f(Y,W,Q,ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:Y,address:W},query:Q},ce)}e.getMultisigTransactions=f;function h(Y,W,Q="usd",ce={}){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:Y,address:W,currency:Q},query:ce})}e.getBalances=h;function m(){return(0,r.getEndpoint)(a,"/v1/balances/supported-fiat-codes")}e.getFiatCurrencies=m;function p(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:Y,address:W}})}e.getOwnedSafes=p;function b(Y){return(0,r.getEndpoint)(a,"/v1/owners/{address}/safes",{path:{address:Y}})}e.getAllOwnedSafes=b;function v(Y,W,Q={}){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:Y,address:W},query:Q})}e.getCollectibles=v;function g(Y,W,Q={},ce){return(0,r.getEndpoint)(a,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:Y,address:W},query:Q},ce)}e.getCollectiblesPage=g;function w(Y,W,Q={},ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:Y,safe_address:W},query:Q},ce)}e.getTransactionHistory=w;function _(Y,W,Q={},ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:Y,safe_address:W},query:Q},ce)}e.getTransactionQueue=_;function C(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:Y,transactionId:W}})}e.getTransactionDetails=C;function x(Y,W,Q){return(0,r.deleteEndpoint)(a,"/v1/chains/{chainId}/transactions/{safeTxHash}",{path:{chainId:Y,safeTxHash:W},body:{signature:Q}})}e.deleteTransaction=x;function E(Y,W,Q){return(0,r.postEndpoint)(a,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:Y,safe_address:W},body:Q})}e.postSafeGasEstimation=E;function T(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/nonces",{path:{chainId:Y,safe_address:W}})}e.getNonces=T;function k(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:Y,safe_address:W},body:Q})}e.proposeTransaction=k;function D(Y,W,Q,ce){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/views/transaction-confirmation",{path:{chainId:Y,safe_address:W},body:{data:Q,to:ce}})}e.getConfirmationView=D;function R(Y){return(0,r.getEndpoint)(a,"/v1/chains",{query:Y})}e.getChainsConfig=R;function F(Y){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}",{path:{chainId:Y}})}e.getChainConfig=F;function B(Y,W={}){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safe-apps",{path:{chainId:Y},query:W})}e.getSafeApps=B;function j(Y){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:Y}})}e.getMasterCopies=j;function P(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/data-decoder",{path:{chainId:Y},body:{data:W,to:Q}})}e.getDecodedData=P;function O(Y,W,Q){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:Y,safe_address:W},query:{}},Q)}e.getSafeMessages=O;function I(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:Y,message_hash:W}})}e.getSafeMessage=I;function N(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:Y,safe_address:W},body:Q})}e.proposeSafeMessage=N;function M(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:Y,message_hash:W},body:Q})}e.confirmSafeMessage=M;function L(Y,W={}){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/delegates",{path:{chainId:Y},query:W})}e.getDelegates=L;function X(Y){return(0,r.postEndpoint)(a,"/v1/register/notifications",{body:Y})}e.registerDevice=X;function J(Y,W,Q){return(0,r.deleteEndpoint)(a,"/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}",{path:{chainId:Y,safe_address:W,uuid:Q}})}e.unregisterSafe=J;function U(Y,W){return(0,r.deleteEndpoint)(a,"/v1/chains/{chainId}/notifications/devices/{uuid}",{path:{chainId:Y,uuid:W}})}e.unregisterDevice=U;function G(Y,W,Q,ce){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails",{path:{chainId:Y,safe_address:W},body:Q,headers:ce})}e.registerEmail=G;function Z(Y,W,Q,ce,pe){return(0,r.putEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:Y,safe_address:W,signer:Q},body:ce,headers:pe})}e.changeEmail=Z;function ae(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify-resend",{path:{chainId:Y,safe_address:W,signer:Q},body:""})}e.resendEmailVerificationCode=ae;function ne(Y,W,Q,ce){return(0,r.putEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify",{path:{chainId:Y,safe_address:W,signer:Q},body:ce})}e.verifyEmail=ne;function ie(Y,W,Q,ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:Y,safe_address:W,signer:Q},headers:ce})}e.getRegisteredEmail=ie;function te(Y,W,Q,ce){return(0,r.deleteEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:Y,safe_address:W,signer:Q},headers:ce})}e.deleteRegisteredEmail=te;function ee(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/recovery",{path:{chainId:Y,safe_address:W},body:Q})}e.registerRecoveryModule=ee;function re(Y){return(0,r.deleteEndpoint)(a,"/v1/subscriptions",{query:Y})}e.unsubscribeSingle=re;function z(Y){return(0,r.deleteEndpoint)(a,"/v1/subscriptions/all",{query:Y})}e.unsubscribeAll=z;function fe(Y,W){return(0,r.getEndpoint)(a,"/v1/safes",{query:Object.assign(Object.assign({},W),{safes:Y.join(",")})})}e.getSafeOverviews=fe;function ve(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/contracts/{contractAddress}",{path:{chainId:Y,contractAddress:W}})}e.getContract=ve;function Ue(){return(0,r.getEndpoint)(a,"/v1/auth/nonce",{credentials:"include"})}e.getAuthNonce=Ue;function ke(Y){return(0,r.postEndpoint)(a,"/v1/auth/verify",{body:Y,credentials:"include"})}e.verifyAuth=ke;function Qe(Y){return(0,r.postEndpoint)(a,"/v1/accounts",{body:Y,credentials:"include"})}e.createAccount=Qe;function Te(Y){return(0,r.getEndpoint)(a,"/v1/accounts/{address}",{path:{address:Y},credentials:"include"})}e.getAccount=Te;function Ee(Y){return(0,r.deleteEndpoint)(a,"/v1/accounts/{address}",{path:{address:Y},credentials:"include"})}e.deleteAccount=Ee;function he(){return(0,r.getEndpoint)(a,"/v1/accounts/data-types")}e.getAccountDataTypes=he;function Me(Y){return(0,r.getEndpoint)(a,"/v1/accounts/{address}/data-settings",{path:{address:Y},credentials:"include"})}e.getAccountDataSettings=Me;function ge(Y,W){return(0,r.putEndpoint)(a,"/v1/accounts/{address}/data-settings",{path:{address:Y},body:W,credentials:"include"})}e.putAccountDataSettings=ge})(EX);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var t=EX;Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return t.Operation}}),Object.defineProperty(e,"TokenType",{enumerable:!0,get:function(){return t.TokenType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return t.TransactionStatus}}),Object.defineProperty(e,"TransferDirection",{enumerable:!0,get:function(){return t.TransferDirection}})})(wX);var OX={};Object.defineProperty(OX,"__esModule",{value:!0});(function(e){var t=We&&We.__createBinding||(Object.create?function(r,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(r,i,s)}:function(r,o,a,i){i===void 0&&(i=a),r[i]=o[a]}),n=We&&We.__exportStar||function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(w2,e),n(vX,e),n(wX,e),n(OX,e)})(v2);Object.defineProperty(b2,"__esModule",{value:!0});b2.TXs=void 0;const yv=Ed,iTe=v2;class sTe{constructor(t){this.communicator=t}async getBySafeTxHash(t){if(!t)throw new Error("Invalid safeTxHash");return(await this.communicator.send(yv.Methods.getTxBySafeTxHash,{safeTxHash:t})).data}async signMessage(t){const n={message:t};return(await this.communicator.send(yv.Methods.signMessage,n)).data}async signTypedMessage(t){if(!(0,iTe.isObjectEIP712TypedData)(t))throw new Error("Invalid typed data");return(await this.communicator.send(yv.Methods.signTypedMessage,{typedData:t})).data}async send({txs:t,params:n}){if(!t||!t.length)throw new Error("No transactions were passed");const r={txs:t,params:n};return(await this.communicator.send(yv.Methods.sendTransactions,r)).data}}b2.TXs=sTe;var x2={},ky={};Object.defineProperty(ky,"__esModule",{value:!0});ky.RPC_CALLS=void 0;ky.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"};Object.defineProperty(x2,"__esModule",{value:!0});x2.Eth=void 0;const ko=ky,cTe=Ed,Yi={defaultBlockParam:(e="latest")=>e,returnFullTxObjectParam:(e=!1)=>e,blockNumberToHex:e=>Number.isInteger(e)?`0x${e.toString(16)}`:e};class lTe{constructor(t){this.communicator=t,this.call=this.buildRequest({call:ko.RPC_CALLS.eth_call,formatters:[null,Yi.defaultBlockParam]}),this.getBalance=this.buildRequest({call:ko.RPC_CALLS.eth_getBalance,formatters:[null,Yi.defaultBlockParam]}),this.getCode=this.buildRequest({call:ko.RPC_CALLS.eth_getCode,formatters:[null,Yi.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:ko.RPC_CALLS.eth_getStorageAt,formatters:[null,Yi.blockNumberToHex,Yi.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:ko.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:ko.RPC_CALLS.eth_getBlockByHash,formatters:[null,Yi.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:ko.RPC_CALLS.eth_getBlockByNumber,formatters:[Yi.blockNumberToHex,Yi.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:ko.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:ko.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:ko.RPC_CALLS.eth_getTransactionCount,formatters:[null,Yi.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:ko.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=n=>this.buildRequest({call:ko.RPC_CALLS.eth_estimateGas})([n]),this.setSafeSettings=this.buildRequest({call:ko.RPC_CALLS.safe_setSettings})}buildRequest(t){const{call:n,formatters:r}=t;return async o=>{r&&Array.isArray(o)&&r.forEach((s,c)=>{s&&(o[c]=s(o[c]))});const a={call:n,params:o||[]};return(await this.communicator.send(cTe.Methods.rpcCall,a)).data}}}x2.Eth=lTe;var C2={},j3={};const V4=Ns(kce);var Kc={},Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getAction=void 0;function uTe(e,t,n){return r=>{var o;return((o=e[t.name||n])==null?void 0:o.call(e,r))??t(e,r)}}Bt.getAction=uTe;var ym={},Ws={},Ne={},Kl={},MB;function Gs(){if(MB)return Kl;MB=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.formatAbiParams=Kl.formatAbiItem=void 0;const e=Jt();function t(o,{includeName:a=!1}={}){if(o.type!=="function"&&o.type!=="event"&&o.type!=="error")throw new e.InvalidDefinitionTypeError(o.type);return`${o.name}(${n(o.inputs,{includeName:a})})`}Kl.formatAbiItem=t;function n(o,{includeName:a=!1}={}){return o?o.map(i=>r(i,{includeName:a})).join(a?", ":","):""}Kl.formatAbiParams=n;function r(o,{includeName:a}){return o.type.startsWith("tuple")?`(${n(o.components,{includeName:a})})${o.type.slice(5)}`:o.type+(a&&o.name?` ${o.name}`:"")}return Kl}var ka={},qn={};Object.defineProperty(qn,"__esModule",{value:!0});qn.isHex=void 0;function dTe(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}qn.isHex=dTe;Object.defineProperty(ka,"__esModule",{value:!0});ka.size=void 0;const fTe=qn;function hTe(e){return(0,fTe.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}ka.size=hTe;var xt={},ei={},S2={};Object.defineProperty(S2,"__esModule",{value:!0});S2.version=void 0;S2.version="1.21.3";Object.defineProperty(ei,"__esModule",{value:!0});ei.getVersion=ei.getUrl=ei.getContractAddress=void 0;const mTe=S2,pTe=e=>e;ei.getContractAddress=pTe;const gTe=e=>e;ei.getUrl=gTe;const yTe=()=>`viem@${mTe.version}`;ei.getVersion=yTe;Object.defineProperty(xt,"__esModule",{value:!0});xt.BaseError=void 0;const bTe=ei;class kE extends Error{constructor(t,n={}){var a;super(),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:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,bTe.getVersion)()});const r=n.cause instanceof kE?n.cause.details:(a=n.cause)!=null&&a.message?n.cause.message:n.details,o=n.cause instanceof kE&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(` -`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return RX(this,t)}}xt.BaseError=kE;function RX(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e?RX(e.cause,t):t?null:e}var LB;function Jt(){if(LB)return Ne;LB=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.UnsupportedPackedAbiType=Ne.InvalidDefinitionTypeError=Ne.InvalidArrayError=Ne.InvalidAbiDecodingTypeError=Ne.InvalidAbiEncodingTypeError=Ne.DecodeLogTopicsMismatch=Ne.DecodeLogDataMismatch=Ne.BytesSizeMismatchError=Ne.AbiItemAmbiguityError=Ne.AbiFunctionSignatureNotFoundError=Ne.AbiFunctionOutputsNotFoundError=Ne.AbiFunctionNotFoundError=Ne.AbiEventNotFoundError=Ne.AbiEventSignatureNotFoundError=Ne.AbiEventSignatureEmptyTopicsError=Ne.AbiErrorSignatureNotFoundError=Ne.AbiErrorNotFoundError=Ne.AbiErrorInputsNotFoundError=Ne.AbiEncodingLengthMismatchError=Ne.AbiEncodingBytesSizeMismatchError=Ne.AbiEncodingArrayLengthMismatchError=Ne.AbiDecodingZeroDataError=Ne.AbiDecodingDataSizeTooSmallError=Ne.AbiDecodingDataSizeInvalidError=Ne.AbiConstructorParamsNotFoundError=Ne.AbiConstructorNotFoundError=void 0;const e=Gs(),t=ka,n=xt;class r extends n.BaseError{constructor({docsPath:j}){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(` -`),{docsPath:j}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}Ne.AbiConstructorNotFoundError=r;class o extends n.BaseError{constructor({docsPath:j}){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(` -`),{docsPath:j}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}Ne.AbiConstructorParamsNotFoundError=o;class a extends n.BaseError{constructor({data:j,size:P}){super([`Data size of ${P} bytes is invalid.`,"Size must be in increments of 32 bytes (size % 32 === 0)."].join(` -`),{metaMessages:[`Data: ${j} (${P} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeInvalidError"})}}Ne.AbiDecodingDataSizeInvalidError=a;class i extends n.BaseError{constructor({data:j,params:P,size:O}){super([`Data size of ${O} bytes is too small for given parameters.`].join(` -`),{metaMessages:[`Params: (${(0,e.formatAbiParams)(P,{includeName:!0})})`,`Data: ${j} (${O} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=j,this.params=P,this.size=O}}Ne.AbiDecodingDataSizeTooSmallError=i;class s extends n.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}Ne.AbiDecodingZeroDataError=s;class c extends n.BaseError{constructor({expectedLength:j,givenLength:P,type:O}){super([`ABI encoding array length mismatch for type ${O}.`,`Expected length: ${j}`,`Given length: ${P}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}Ne.AbiEncodingArrayLengthMismatchError=c;class l extends n.BaseError{constructor({expectedSize:j,value:P}){super(`Size of bytes "${P}" (bytes${(0,t.size)(P)}) does not match expected size (bytes${j}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}Ne.AbiEncodingBytesSizeMismatchError=l;class u extends n.BaseError{constructor({expectedLength:j,givenLength:P}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${j}`,`Given length (values): ${P}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}Ne.AbiEncodingLengthMismatchError=u;class d extends n.BaseError{constructor(j,{docsPath:P}){super([`Arguments (\`args\`) were provided to "${j}", but "${j}" 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(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorInputsNotFoundError"})}}Ne.AbiErrorInputsNotFoundError=d;class f extends n.BaseError{constructor(j,{docsPath:P}={}){super([`Error ${j?`"${j}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorNotFoundError"})}}Ne.AbiErrorNotFoundError=f;class h extends n.BaseError{constructor(j,{docsPath:P}){super([`Encoded error signature "${j}" 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://openchain.xyz/signatures?query=${j}.`].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=j}}Ne.AbiErrorSignatureNotFoundError=h;class m extends n.BaseError{constructor({docsPath:j}){super("Cannot extract event signature from empty topics.",{docsPath:j}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}Ne.AbiEventSignatureEmptyTopicsError=m;class p extends n.BaseError{constructor(j,{docsPath:P}){super([`Encoded event signature "${j}" 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://openchain.xyz/signatures?query=${j}.`].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}Ne.AbiEventSignatureNotFoundError=p;class b extends n.BaseError{constructor(j,{docsPath:P}={}){super([`Event ${j?`"${j}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}Ne.AbiEventNotFoundError=b;class v extends n.BaseError{constructor(j,{docsPath:P}={}){super([`Function ${j?`"${j}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}Ne.AbiFunctionNotFoundError=v;class g extends n.BaseError{constructor(j,{docsPath:P}){super([`Function "${j}" 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(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}Ne.AbiFunctionOutputsNotFoundError=g;class w extends n.BaseError{constructor(j,{docsPath:P}){super([`Encoded function signature "${j}" 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://openchain.xyz/signatures?query=${j}.`].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionSignatureNotFoundError"})}}Ne.AbiFunctionSignatureNotFoundError=w;class _ extends n.BaseError{constructor(j,P){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${j.type}\` in \`${(0,e.formatAbiItem)(j.abiItem)}\`, and`,`\`${P.type}\` in \`${(0,e.formatAbiItem)(P.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:"AbiItemAmbiguityError"})}}Ne.AbiItemAmbiguityError=_;class C extends n.BaseError{constructor({expectedSize:j,givenSize:P}){super(`Expected bytes${j}, got bytes${P}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}Ne.BytesSizeMismatchError=C;class x extends n.BaseError{constructor({abiItem:j,data:P,params:O,size:I}){super([`Data size of ${I} bytes is too small for non-indexed event parameters.`].join(` -`),{metaMessages:[`Params: (${(0,e.formatAbiParams)(O,{includeName:!0})})`,`Data: ${P} (${I} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=j,this.data=P,this.params=O,this.size=I}}Ne.DecodeLogDataMismatch=x;class E extends n.BaseError{constructor({abiItem:j,param:P}){super([`Expected a topic for indexed event parameter${P.name?` "${P.name}"`:""} on event "${(0,e.formatAbiItem)(j,{includeName:!0})}".`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=j}}Ne.DecodeLogTopicsMismatch=E;class T extends n.BaseError{constructor(j,{docsPath:P}){super([`Type "${j}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}Ne.InvalidAbiEncodingTypeError=T;class k extends n.BaseError{constructor(j,{docsPath:P}){super([`Type "${j}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}Ne.InvalidAbiDecodingTypeError=k;class D extends n.BaseError{constructor(j){super([`Value "${j}" is not a valid array.`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}Ne.InvalidArrayError=D;class R extends n.BaseError{constructor(j){super([`"${j}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}Ne.InvalidDefinitionTypeError=R;class F extends n.BaseError{constructor(j){super(`Type "${j}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}return Ne.UnsupportedPackedAbiType=F,Ne}var jy={};Object.defineProperty(jy,"__esModule",{value:!0});jy.FilterTypeNotSupportedError=void 0;const vTe=xt;class wTe extends vTe.BaseError{constructor(t){super(`Filter type "${t}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}jy.FilterTypeNotSupportedError=wTe;var jo={},eo={},pl={};Object.defineProperty(pl,"__esModule",{value:!0});pl.SizeExceedsPaddingSizeError=pl.SliceOffsetOutOfBoundsError=void 0;const NX=xt;class ETe extends NX.BaseError{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:"SliceOffsetOutOfBoundsError"})}}pl.SliceOffsetOutOfBoundsError=ETe;class _Te extends NX.BaseError{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:"SizeExceedsPaddingSizeError"})}}pl.SizeExceedsPaddingSizeError=_Te;Object.defineProperty(eo,"__esModule",{value:!0});eo.padBytes=eo.padHex=eo.pad=void 0;const BX=pl;function xTe(e,{dir:t,size:n=32}={}){return typeof e=="string"?FX(e,{dir:t,size:n}):MX(e,{dir:t,size:n})}eo.pad=xTe;function FX(e,{dir:t,size:n=32}={}){if(n===null)return e;const r=e.replace("0x","");if(r.length>n*2)throw new BX.SizeExceedsPaddingSizeError({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}eo.padHex=FX;function MX(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new BX.SizeExceedsPaddingSizeError({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let o=0;od)throw new e.SizeOverflowError({givenSize:(0,t.size)(u),maxSize:d})}Hr.assertSize=o;function a(u,d){const f=typeof d=="string"?{to:d}:d,h=f.to;return h==="number"?c(u,f):h==="bigint"?i(u,f):h==="string"?l(u,f):h==="boolean"?s(u,f):(0,r.hexToBytes)(u,f)}Hr.fromHex=a;function i(u,d={}){const{signed:f}=d;d.size&&o(u,{size:d.size});const h=BigInt(u);if(!f)return h;const m=(u.length-2)/2,p=(1n<d.toString(16).padStart(2,"0"));function o(u,d={}){return typeof u=="number"||typeof u=="bigint"?s(u,d):typeof u=="string"?l(u,d):typeof u=="boolean"?a(u,d):i(u,d)}Po.toHex=o;function a(u,d={}){const f=`0x${Number(u)}`;return typeof d.size=="number"?((0,n.assertSize)(f,{size:d.size}),(0,t.pad)(f,{size:d.size})):f}Po.boolToHex=a;function i(u,d={}){let f="";for(let m=0;mp||m=c.zero&&h<=c.nine)return h-c.zero;if(h>=c.A&&h<=c.F)return h-(c.A-10);if(h>=c.a&&h<=c.f)return h-(c.a-10)}function u(h,m={}){let p=h;m.size&&((0,r.assertSize)(p,{size:m.size}),p=(0,n.pad)(p,{dir:"right",size:m.size}));let b=p.slice(2);b.length%2&&(b=`0${b}`);const v=b.length/2,g=new Uint8Array(v);for(let w=0,_=0;w{const t=typeof e=="string"?e:(0,NTe.formatAbiItem)(e);return(0,BTe.normalizeSignature)(t)};bm.getFunctionSignature=FTe;Object.defineProperty(Py,"__esModule",{value:!0});Py.getEventSignature=void 0;const MTe=bm,LTe=e=>(0,MTe.getFunctionSignature)(e);Py.getEventSignature=LTe;var lo={};const UTe=Ns(Ole);Object.defineProperty(lo,"__esModule",{value:!0});lo.keccak256=void 0;const $Te=UTe,zTe=qn,HTe=Gn(),qTe=$e();function WTe(e,t){const n=t||"hex",r=(0,$Te.keccak_256)((0,zTe.isHex)(e,{strict:!1})?(0,HTe.toBytes)(e):e);return n==="bytes"?r:(0,qTe.toHex)(r)}lo.keccak256=WTe;Object.defineProperty(Pl,"__esModule",{value:!0});Pl.getEventSelector=void 0;const GTe=Gn(),VTe=Py,KTe=lo,YTe=e=>(0,KTe.keccak256)((0,GTe.toBytes)(e)),QTe=e=>YTe((0,VTe.getEventSignature)(e));Pl.getEventSelector=QTe;var ao={},Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});Zo.InvalidAddressError=void 0;const XTe=xt;class JTe extends XTe.BaseError{constructor({address:t}){super(`Address "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}Zo.InvalidAddressError=JTe;var uo={};Object.defineProperty(uo,"__esModule",{value:!0});uo.isAddress=void 0;const ZTe=/^0x[a-fA-F0-9]{40}$/;function eAe(e){return ZTe.test(e)}uo.isAddress=eAe;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.concatHex=On.concatBytes=On.concat=void 0;function tAe(e){return typeof e[0]=="string"?UX(e):LX(e)}On.concat=tAe;function LX(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}On.concatBytes=LX;function UX(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}On.concatHex=UX;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.sliceHex=Nr.sliceBytes=Nr.slice=void 0;const $X=pl,nAe=qn,jE=ka;function rAe(e,t,n,{strict:r}={}){return(0,nAe.isHex)(e,{strict:!1})?WX(e,t,n,{strict:r}):qX(e,t,n,{strict:r})}Nr.slice=rAe;function zX(e,t){if(typeof t=="number"&&t>0&&t>(0,jE.size)(e)-1)throw new $X.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:(0,jE.size)(e)})}function HX(e,t,n){if(typeof t=="number"&&typeof n=="number"&&(0,jE.size)(e)!==n-t)throw new $X.SliceOffsetOutOfBoundsError({offset:n,position:"end",size:(0,jE.size)(e)})}function qX(e,t,n,{strict:r}={}){zX(e,t);const o=e.slice(t,n);return r&&HX(o,t,n),o}Nr.sliceBytes=qX;function WX(e,t,n,{strict:r}={}){zX(e,t);const o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&HX(o,t,n),o}Nr.sliceHex=WX;Object.defineProperty(ao,"__esModule",{value:!0});ao.getArrayComponents=ao.encodeAbiParameters=void 0;const wg=Jt(),oAe=Zo,aAe=uo,Ph=On,Du=eo,Eg=ka,iAe=Nr,ed=$e();function sAe(e,t){if(e.length!==t.length)throw new wg.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});const n=cAe({params:e,values:t}),r=Y4(n);return r.length===0?"0x":r}ao.encodeAbiParameters=sAe;function cAe({params:e,values:t}){const n=[];for(let r=0;r0?(0,Ph.concat)([s,i]):s}}if(o)return{dynamic:!0,encoded:i}}return{dynamic:!1,encoded:(0,Ph.concat)(a.map(({encoded:i})=>i))}}function dAe(e,{param:t}){const[,n]=t.type.split("bytes"),r=(0,Eg.size)(e);if(!n){let o=e;return r%32!==0&&(o=(0,Du.padHex)(o,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:(0,Ph.concat)([(0,Du.padHex)((0,ed.numberToHex)(r,{size:32})),o])}}if(r!==parseInt(n))throw new wg.AbiEncodingBytesSizeMismatchError({expectedSize:parseInt(n),value:e});return{dynamic:!1,encoded:(0,Du.padHex)(e,{dir:"right"})}}function fAe(e){return{dynamic:!1,encoded:(0,Du.padHex)((0,ed.boolToHex)(e))}}function hAe(e,{signed:t}){return{dynamic:!1,encoded:(0,ed.numberToHex)(e,{size:32,signed:t})}}function mAe(e){const t=(0,ed.stringToHex)(e),n=Math.ceil((0,Eg.size)(t)/32),r=[];for(let o=0;oo))}}function GX(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}ao.getArrayComponents=GX;var Br={},zi={};Object.defineProperty(zi,"__esModule",{value:!0});zi.getFunctionSelector=void 0;const gAe=Nr,yAe=Gn(),bAe=bm,vAe=lo,wAe=e=>(0,vAe.keccak256)((0,yAe.toBytes)(e)),EAe=e=>(0,gAe.slice)(wAe((0,bAe.getFunctionSignature)(e)),0,4);zi.getFunctionSelector=EAe;Object.defineProperty(Br,"__esModule",{value:!0});Br.getAmbiguousTypes=Br.isArgOfType=Br.getAbiItem=void 0;const _Ae=Jt(),xAe=qn,CAe=Pl,SAe=zi,UD=uo;function TAe({abi:e,args:t=[],name:n}){const r=(0,xAe.isHex)(n,{strict:!1}),o=e.filter(i=>r?i.type==="function"?(0,SAe.getFunctionSelector)(i)===n:i.type==="event"?(0,CAe.getEventSelector)(i)===n:!1:"name"in i&&i.name===n);if(o.length===0)return;if(o.length===1)return o[0];let a;for(const i of o){if(!("inputs"in i))continue;if(!t||t.length===0){if(!i.inputs||i.inputs.length===0)return i;continue}if(!i.inputs||i.inputs.length===0||i.inputs.length!==t.length)continue;if(t.every((c,l)=>{const u="inputs"in i&&i.inputs[l];return u?PE(c,u):!1})){if(a&&"inputs"in a&&a.inputs){const c=Q4(i.inputs,a.inputs,t);if(c)throw new _Ae.AbiItemAmbiguityError({abiItem:i,type:c[0]},{abiItem:a,type:c[1]})}a=i}}return a||o[0]}Br.getAbiItem=TAe;function PE(e,t){const n=typeof e,r=t.type;switch(r){case"address":return(0,UD.isAddress)(e);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,a)=>PE(Object.values(e)[a],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=>PE(o,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}Br.isArgOfType=PE;function Q4(e,t,n){for(const r in e){const o=e[r],a=t[r];if(o.type==="tuple"&&a.type==="tuple"&&"components"in o&&"components"in a)return Q4(o.components,a.components,n[r]);const i=[o.type,a.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")||i.includes("address")&&i.includes("bytes")?(0,UD.isAddress)(n[r]):!1)return i}}Br.getAmbiguousTypes=Q4;Object.defineProperty(Ws,"__esModule",{value:!0});Ws.encodeEventTopics=void 0;const HB=Jt(),AAe=jy,DAe=Gn(),kAe=Pl,jAe=lo,PAe=ao,IAe=Gs(),OAe=Br;function RAe({abi:e,eventName:t,args:n}){var s;let r=e[0];if(t&&(r=(0,OAe.getAbiItem)({abi:e,args:n,name:t}),!r))throw new HB.AbiEventNotFoundError(t,{docsPath:"/docs/contract/encodeEventTopics"});if(r.type!=="event")throw new HB.AbiEventNotFoundError(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const o=(0,IAe.formatAbiItem)(r),a=(0,kAe.getEventSelector)(o);let i=[];if(n&&"inputs"in r){const c=(s=r.inputs)==null?void 0:s.filter(u=>"indexed"in u&&u.indexed),l=Array.isArray(n)?n:Object.values(n).length>0?(c==null?void 0:c.map(u=>n[u.name]))??[]:[];l.length>0&&(i=(c==null?void 0:c.map((u,d)=>Array.isArray(l[d])?l[d].map((f,h)=>qB({param:u,value:l[d][h]})):l[d]?qB({param:u,value:l[d]}):null))??[])}return[a,...i]}Ws.encodeEventTopics=RAe;function qB({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return(0,jAe.keccak256)((0,DAe.toBytes)(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new AAe.FilterTypeNotSupportedError(e.type);return(0,PAe.encodeAbiParameters)([e],[t])}var _d={};Object.defineProperty(_d,"__esModule",{value:!0});_d.createFilterRequestScope=void 0;function NAe(e,{method:t}){var r,o;const n={};return e.transport.type==="fallback"&&((o=(r=e.transport).onResponse)==null||o.call(r,({method:a,response:i,status:s,transport:c})=>{s==="success"&&t===a&&(n[i]=c.request)})),a=>n[a]||e.request}_d.createFilterRequestScope=NAe;Object.defineProperty(ym,"__esModule",{value:!0});ym.createContractEventFilter=void 0;const BAe=Ws,WB=$e(),FAe=_d;async function MAe(e,{address:t,abi:n,args:r,eventName:o,fromBlock:a,strict:i,toBlock:s}){const c=(0,FAe.createFilterRequestScope)(e,{method:"eth_newFilter"}),l=o?(0,BAe.encodeEventTopics)({abi:n,args:r,eventName:o}):void 0,u=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?(0,WB.numberToHex)(a):a,toBlock:typeof s=="bigint"?(0,WB.numberToHex)(s):s,topics:l}]});return{abi:n,args:r,eventName:o,id:u,request:c(u),strict:i,type:"event"}}ym.createContractEventFilter=MAe;var Iy={},Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.parseAccount=void 0;function LAe(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}Lr.parseAccount=LAe;var ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.encodeFunctionData=void 0;const GB=Jt(),UAe=On,$Ae=zi,zAe=ao,HAe=Gs(),qAe=Br;function WAe({abi:e,args:t,functionName:n}){let r=e[0];if(n&&(r=(0,qAe.getAbiItem)({abi:e,args:t,name:n}),!r))throw new GB.AbiFunctionNotFoundError(n,{docsPath:"/docs/contract/encodeFunctionData"});if(r.type!=="function")throw new GB.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const o=(0,HAe.formatAbiItem)(r),a=(0,$Ae.getFunctionSelector)(o),i="inputs"in r&&r.inputs?(0,zAe.encodeAbiParameters)(r.inputs,t??[]):void 0;return(0,UAe.concatHex)([a,i??"0x"])}ea.encodeFunctionData=WAe;var Vs={},Zn={},Ri={};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.solidityPanic=Ri.solidityError=Ri.panicReasons=void 0;Ri.panicReasons={1:"An `assert` condition failed.",17:"Arithmic 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."};Ri.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"};Ri.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};var xd={},Hi={},Co={};Object.defineProperty(Co,"__esModule",{value:!0});Co.getAddress=Co.checksumAddress=void 0;const GAe=Zo,VAe=Gn(),KAe=lo,YAe=uo;function VX(e,t){const n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,KAe.keccak256)((0,VAe.stringToBytes)(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&o[a]&&(o[a]=o[a].toUpperCase()),(r[a>>1]&15)>=8&&o[a+1]&&(o[a+1]=o[a+1].toUpperCase());return`0x${o.join("")}`}Co.checksumAddress=VX;function QAe(e,t){if(!(0,YAe.isAddress)(e))throw new GAe.InvalidAddressError({address:e});return VX(e,t)}Co.getAddress=QAe;Object.defineProperty(Hi,"__esModule",{value:!0});Hi.decodeAbiParameters=void 0;const IE=Jt(),XAe=Co,C0=ka,jr=Nr,JAe=ci,ga=Wn(),X4=ao;function ZAe(e,t){if(t==="0x"&&e.length>0)throw new IE.AbiDecodingZeroDataError;if((0,C0.size)(t)&&(0,C0.size)(t)<32)throw new IE.AbiDecodingDataSizeTooSmallError({data:t,params:e,size:(0,C0.size)(t)});return e5e({data:t,params:e})}Hi.decodeAbiParameters=ZAe;function e5e({data:e,params:t}){const n=[];let r=0;for(let o=0;o=(0,C0.size)(e))throw new IE.AbiDecodingDataSizeTooSmallError({data:e,params:t,size:(0,C0.size)(e)});const a=t[o],{consumed:i,value:s}=oh({data:e,param:a,position:r});n.push(s),r+=i}return n}function oh({data:e,param:t,position:n}){const r=(0,X4.getArrayComponents)(t.type);if(r){const[a,i]=r;return n5e(e,{length:a,param:{...t,type:i},position:n})}if(t.type==="tuple")return s5e(e,{param:t,position:n});if(t.type==="string")return i5e(e,{position:n});if(t.type.startsWith("bytes"))return o5e(e,{param:t,position:n});const o=(0,jr.slice)(e,n,n+32,{strict:!0});if(t.type.startsWith("uint")||t.type.startsWith("int"))return a5e(o,{param:t});if(t.type==="address")return t5e(o);if(t.type==="bool")return r5e(o);throw new IE.InvalidAbiDecodingTypeError(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function t5e(e){return{consumed:32,value:(0,XAe.checksumAddress)((0,jr.slice)(e,-20))}}function n5e(e,{param:t,length:n,position:r}){if(!n){const i=(0,ga.hexToNumber)((0,jr.slice)(e,r,r+32,{strict:!0})),s=(0,ga.hexToNumber)((0,jr.slice)(e,i,i+32,{strict:!0}));let c=0;const l=[];for(let u=0;u48?(0,ga.hexToBigInt)(e,{signed:n}):(0,ga.hexToNumber)(e,{signed:n})}}function i5e(e,{position:t}){const n=(0,ga.hexToNumber)((0,jr.slice)(e,t,t+32,{strict:!0})),r=(0,ga.hexToNumber)((0,jr.slice)(e,n,n+32,{strict:!0}));return r===0?{consumed:32,value:""}:{consumed:32,value:(0,ga.hexToString)((0,JAe.trim)((0,jr.slice)(e,n+32,n+32+r,{strict:!0})))}}function s5e(e,{param:t,position:n}){const r=t.components.length===0||t.components.some(({name:i})=>!i),o=r?[]:{};let a=0;if(OE(t)){const i=(0,ga.hexToNumber)((0,jr.slice)(e,n,n+32,{strict:!0}));for(let s=0;sa.type==="error"&&n===(0,c5e.getFunctionSelector)((0,u5e.formatAbiItem)(a)));if(!o)throw new KB.AbiErrorSignatureNotFoundError(n,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:o,args:"inputs"in o&&o.inputs&&o.inputs.length>0?(0,l5e.decodeAbiParameters)(o.inputs,(0,YB.slice)(t,4)):void 0,errorName:o.name}}xd.decodeErrorResult=d5e;var Oy={},xr={};Object.defineProperty(xr,"__esModule",{value:!0});xr.stringify=void 0;const f5e=(e,t,n)=>JSON.stringify(e,(r,o)=>{const a=typeof o=="bigint"?o.toString():o;return typeof t=="function"?t(r,a):a},n);xr.stringify=f5e;Object.defineProperty(Oy,"__esModule",{value:!0});Oy.formatAbiItemWithArgs=void 0;const h5e=xr;function m5e({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,a)=>`${r&&o.name?`${o.name}: `:""}${typeof t[a]=="object"?(0,h5e.stringify)(t[a]):t[a]}`).join(", ")})`}Oy.formatAbiItemWithArgs=m5e;var Il={},ya={};Object.defineProperty(ya,"__esModule",{value:!0});ya.weiUnits=ya.gweiUnits=ya.etherUnits=void 0;ya.etherUnits={gwei:9,wei:18};ya.gweiUnits={ether:-9,wei:9};ya.weiUnits={ether:-18,gwei:-9};var Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});Cd.formatUnits=void 0;function p5e(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[o,a]=[n.slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),`${r?"-":""}${o||"0"}${a?`.${a}`:""}`}Cd.formatUnits=p5e;Object.defineProperty(Il,"__esModule",{value:!0});Il.formatEther=void 0;const g5e=ya,y5e=Cd;function b5e(e,t="wei"){return(0,y5e.formatUnits)(e,g5e.etherUnits[t])}Il.formatEther=b5e;var qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.formatGwei=void 0;const v5e=ya,w5e=Cd;function E5e(e,t="wei"){return(0,w5e.formatUnits)(e,v5e.gweiUnits[t])}qi.formatGwei=E5e;var pt={};Object.defineProperty(pt,"__esModule",{value:!0});pt.WaitForTransactionReceiptTimeoutError=pt.TransactionReceiptNotFoundError=pt.TransactionNotFoundError=pt.TransactionExecutionError=pt.InvalidStorageKeySizeError=pt.InvalidSerializedTransactionError=pt.InvalidSerializedTransactionTypeError=pt.InvalidSerializableTransactionError=pt.InvalidLegacyVError=pt.FeeConflictError=pt.prettyPrint=void 0;const _5e=Il,P3=qi,Wi=xt;function J4(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(` -`)}pt.prettyPrint=J4;class x5e extends Wi.BaseError{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}pt.FeeConflictError=x5e;class C5e extends Wi.BaseError{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}pt.InvalidLegacyVError=C5e;class S5e extends Wi.BaseError{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",J4(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","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}pt.InvalidSerializableTransactionError=S5e;class T5e extends Wi.BaseError{constructor({serializedType:t}){super(`Serialized transaction type "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=t}}pt.InvalidSerializedTransactionTypeError=T5e;class A5e extends Wi.BaseError{constructor({attributes:t,serializedTransaction:n,type:r}){const o=Object.entries(t).map(([a,i])=>typeof i>"u"?a:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${n}"`,o.length>0?`Missing Attributes: ${o.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=n,this.type=r}}pt.InvalidSerializedTransactionError=A5e;class D5e extends Wi.BaseError{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}pt.InvalidStorageKeySizeError=D5e;class k5e extends Wi.BaseError{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var m;const h=J4({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"&&`${(0,_5e.formatEther)(f)} ${((m=o==null?void 0:o.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${(0,P3.formatGwei)(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${(0,P3.formatGwei)(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${(0,P3.formatGwei)(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",h].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=t}}pt.TransactionExecutionError=k5e;class j5e extends Wi.BaseError{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:o,index:a}){let i="Transaction";r&&a!==void 0&&(i=`Transaction at block time "${r}" at index "${a}"`),t&&a!==void 0&&(i=`Transaction at block hash "${t}" at index "${a}"`),n&&a!==void 0&&(i=`Transaction at block number "${n}" at index "${a}"`),o&&(i=`Transaction with hash "${o}"`),super(`${i} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}pt.TransactionNotFoundError=j5e;class P5e extends Wi.BaseError{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}pt.TransactionReceiptNotFoundError=P5e;class I5e extends Wi.BaseError{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}pt.WaitForTransactionReceiptTimeoutError=I5e;Object.defineProperty(Zn,"__esModule",{value:!0});Zn.RawContractError=Zn.ContractFunctionZeroDataError=Zn.ContractFunctionRevertedError=Zn.ContractFunctionExecutionError=Zn.CallExecutionError=void 0;const O5e=Lr,R5e=Ri,N5e=xd,KX=Gs(),YX=Oy,B5e=Br,F5e=Il,I3=qi,M5e=Jt(),Ry=xt,QX=pt,L5e=ei;class U5e extends Ry.BaseError{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var p;const h=n?(0,O5e.parseAccount)(n):void 0,m=(0,QX.prettyPrint)({from:h==null?void 0:h.address,to:d,value:typeof f<"u"&&`${(0,F5e.formatEther)(f)} ${((p=o==null?void 0:o.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${(0,I3.formatGwei)(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${(0,I3.formatGwei)(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${(0,I3.formatGwei)(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=t}}Zn.CallExecutionError=U5e;class $5e extends Ry.BaseError{constructor(t,{abi:n,args:r,contractAddress:o,docsPath:a,functionName:i,sender:s}){const c=(0,B5e.getAbiItem)({abi:n,args:r,name:i}),l=c?(0,YX.formatAbiItemWithArgs)({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,u=c?(0,KX.formatAbiItem)(c,{includeName:!0}):void 0,d=(0,QX.prettyPrint)({address:o&&(0,L5e.getContractAddress)(o),function:u,args:l&&l!=="()"&&`${[...Array((i==null?void 0:i.length)??0).keys()].map(()=>" ").join("")}${l}`,sender:s});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Contract Call:",d].filter(Boolean)}),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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=o,this.functionName=i,this.sender=s}}Zn.ContractFunctionExecutionError=$5e;class z5e extends Ry.BaseError{constructor({abi:t,data:n,functionName:r,message:o}){let a,i,s,c;if(n&&n!=="0x")try{i=(0,N5e.decodeErrorResult)({abi:t,data:n});const{abiItem:u,errorName:d,args:f}=i;if(d==="Error")c=f[0];else if(d==="Panic"){const[h]=f;c=R5e.panicReasons[h]}else{const h=u?(0,KX.formatAbiItem)(u,{includeName:!0}):void 0,m=u&&f?(0,YX.formatAbiItemWithArgs)({abiItem:u,args:f,includeFunctionName:!1,includeName:!1}):void 0;s=[h?`Error: ${h}`:"",m&&m!=="()"?` ${[...Array((d==null?void 0:d.length)??0).keys()].map(()=>" ").join("")}${m}`:""]}}catch(u){a=u}else o&&(c=o);let l;a instanceof M5e.AbiErrorSignatureNotFoundError&&(l=a.signature,s=[`Unable to decode signature "${l}" 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://openchain.xyz/signatures?query=${l}.`]),super(c&&c!=="execution reverted"||l?[`The contract function "${r}" reverted with the following ${l?"signature":"reason"}:`,c||l].join(` -`):`The contract function "${r}" reverted.`,{cause:a,metaMessages:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{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=i,this.reason=c,this.signature=l}}Zn.ContractFunctionRevertedError=z5e;class H5e extends Ry.BaseError{constructor({functionName:t}){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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}Zn.ContractFunctionZeroDataError=H5e;class q5e extends Ry.BaseError{constructor({data:t,message:n}){super(n||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}Zn.RawContractError=q5e;var qe={},hr={};Object.defineProperty(hr,"__esModule",{value:!0});hr.TimeoutError=hr.RpcRequestError=hr.WebSocketRequestError=hr.HttpRequestError=void 0;const A2=xr,D2=xt,k2=ei;class W5e extends D2.BaseError{constructor({body:t,details:n,headers:r,status:o,url:a}){super("HTTP request failed.",{details:n,metaMessages:[o&&`Status: ${o}`,`URL: ${(0,k2.getUrl)(a)}`,t&&`Request body: ${(0,A2.stringify)(t)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=r,this.status=o,this.url=a}}hr.HttpRequestError=W5e;class G5e extends D2.BaseError{constructor({body:t,details:n,url:r}){super("WebSocket request failed.",{details:n,metaMessages:[`URL: ${(0,k2.getUrl)(r)}`,`Request body: ${(0,A2.stringify)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}hr.WebSocketRequestError=G5e;class V5e extends D2.BaseError{constructor({body:t,error:n,url:r}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${(0,k2.getUrl)(r)}`,`Request body: ${(0,A2.stringify)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code}}hr.RpcRequestError=V5e;class K5e extends D2.BaseError{constructor({body:t,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,k2.getUrl)(n)}`,`Request body: ${(0,A2.stringify)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}hr.TimeoutError=K5e;Object.defineProperty(qe,"__esModule",{value:!0});qe.UnknownRpcError=qe.SwitchChainError=qe.ChainDisconnectedError=qe.ProviderDisconnectedError=qe.UnsupportedProviderMethodError=qe.UnauthorizedProviderError=qe.UserRejectedRequestError=qe.JsonRpcVersionUnsupportedError=qe.LimitExceededRpcError=qe.MethodNotSupportedRpcError=qe.TransactionRejectedRpcError=qe.ResourceUnavailableRpcError=qe.ResourceNotFoundRpcError=qe.InvalidInputRpcError=qe.InternalRpcError=qe.InvalidParamsRpcError=qe.MethodNotFoundRpcError=qe.InvalidRequestRpcError=qe.ParseRpcError=qe.ProviderRpcError=qe.RpcError=void 0;const Y5e=xt,Q5e=hr,X5e=-1;class fo extends Y5e.BaseError{constructor(t,{code:n,docsPath:r,metaMessages:o,shortMessage:a}){super(a,{cause:t,docsPath:r,metaMessages:o||(t==null?void 0:t.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=t.name,this.code=t instanceof Q5e.RpcRequestError?t.code:n??X5e}}qe.RpcError=fo;class Sd extends fo{constructor(t,n){super(t,n),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}}qe.ProviderRpcError=Sd;class j2 extends fo{constructor(t){super(t,{code:j2.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(j2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});qe.ParseRpcError=j2;class P2 extends fo{constructor(t){super(t,{code:P2.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(P2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});qe.InvalidRequestRpcError=P2;class I2 extends fo{constructor(t){super(t,{code:I2.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(I2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});qe.MethodNotFoundRpcError=I2;class O2 extends fo{constructor(t){super(t,{code:O2.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(O2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});qe.InvalidParamsRpcError=O2;class R2 extends fo{constructor(t){super(t,{code:R2.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(R2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});qe.InternalRpcError=R2;class N2 extends fo{constructor(t){super(t,{code:N2.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(N2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});qe.InvalidInputRpcError=N2;class B2 extends fo{constructor(t){super(t,{code:B2.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(B2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});qe.ResourceNotFoundRpcError=B2;class F2 extends fo{constructor(t){super(t,{code:F2.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(F2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});qe.ResourceUnavailableRpcError=F2;class M2 extends fo{constructor(t){super(t,{code:M2.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(M2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});qe.TransactionRejectedRpcError=M2;class L2 extends fo{constructor(t){super(t,{code:L2.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(L2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});qe.MethodNotSupportedRpcError=L2;class U2 extends fo{constructor(t){super(t,{code:U2.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(U2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});qe.LimitExceededRpcError=U2;class $2 extends fo{constructor(t){super(t,{code:$2.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty($2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});qe.JsonRpcVersionUnsupportedError=$2;class z2 extends Sd{constructor(t){super(t,{code:z2.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(z2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});qe.UserRejectedRequestError=z2;class H2 extends Sd{constructor(t){super(t,{code:H2.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(H2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});qe.UnauthorizedProviderError=H2;class q2 extends Sd{constructor(t){super(t,{code:q2.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(q2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});qe.UnsupportedProviderMethodError=q2;class W2 extends Sd{constructor(t){super(t,{code:W2.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(W2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});qe.ProviderDisconnectedError=W2;class G2 extends Sd{constructor(t){super(t,{code:G2.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(G2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});qe.ChainDisconnectedError=G2;class V2 extends Sd{constructor(t){super(t,{code:V2.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(V2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});qe.SwitchChainError=V2;class J5e extends fo{constructor(t){super(t,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}qe.UnknownRpcError=J5e;Object.defineProperty(Vs,"__esModule",{value:!0});Vs.getContractError=void 0;const Z5e=Jt(),eDe=xt,bv=Zn,tDe=qe,nDe=3;function rDe(e,{abi:t,address:n,args:r,docsPath:o,functionName:a,sender:i}){const{code:s,data:c,message:l,shortMessage:u}=e instanceof bv.RawContractError?e:e instanceof eDe.BaseError?e.walk(f=>"data"in f)||e.walk():{},d=e instanceof Z5e.AbiDecodingZeroDataError?new bv.ContractFunctionZeroDataError({functionName:a}):[nDe,tDe.InternalRpcError.code].includes(s)&&(c||l||u)?new bv.ContractFunctionRevertedError({abi:t,data:typeof c=="object"?c.data:c,functionName:a,message:u??l}):e;return new bv.ContractFunctionExecutionError(d,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:a,sender:i})}Vs.getContractError=rDe;var Sp={},Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});Ks.AccountNotFoundError=void 0;const oDe=xt;class aDe extends oDe.BaseError{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 WalletClient."].join(` -`),{docsPath:t,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}Ks.AccountNotFoundError=aDe;var Ny={},By={};Object.defineProperty(By,"__esModule",{value:!0});By.EstimateGasExecutionError=void 0;const iDe=Il,O3=qi,sDe=xt,cDe=pt;class lDe extends sDe.BaseError{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var m;const h=(0,cDe.prettyPrint)({from:n==null?void 0:n.address,to:d,value:typeof f<"u"&&`${(0,iDe.formatEther)(f)} ${((m=o==null?void 0:o.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${(0,O3.formatGwei)(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${(0,O3.formatGwei)(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${(0,O3.formatGwei)(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",h].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=t}}By.EstimateGasExecutionError=lDe;var St={};Object.defineProperty(St,"__esModule",{value:!0});St.UnknownNodeError=St.TipAboveFeeCapError=St.TransactionTypeNotSupportedError=St.IntrinsicGasTooLowError=St.IntrinsicGasTooHighError=St.InsufficientFundsError=St.NonceMaxValueError=St.NonceTooLowError=St.NonceTooHighError=St.FeeCapTooLowError=St.FeeCapTooHighError=St.ExecutionRevertedError=void 0;const RE=qi,ja=xt;class Z4 extends ja.BaseError{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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(Z4,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Z4,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});St.ExecutionRevertedError=Z4;class XX extends ja.BaseError{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${(0,RE.formatGwei)(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(XX,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});St.FeeCapTooHighError=XX;class JX extends ja.BaseError{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${(0,RE.formatGwei)(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(JX,"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/});St.FeeCapTooLowError=JX;class ZX extends ja.BaseError{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(ZX,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});St.NonceTooHighError=ZX;class eJ extends ja.BaseError{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(` -`),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(eJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});St.NonceTooLowError=eJ;class tJ extends ja.BaseError{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(tJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});St.NonceMaxValueError=tJ;class nJ extends ja.BaseError{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` -`),{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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(nJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});St.InsufficientFundsError=nJ;class rJ extends ja.BaseError{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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(rJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});St.IntrinsicGasTooHighError=rJ;class oJ extends ja.BaseError{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(oJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});St.IntrinsicGasTooLowError=oJ;class aJ extends ja.BaseError{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(aJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});St.TransactionTypeNotSupportedError=aJ;class iJ extends ja.BaseError{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${(0,RE.formatGwei)(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,RE.formatGwei)(r)} gwei`:""}).`].join(` -`),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(iJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});St.TipAboveFeeCapError=iJ;class uDe extends ja.BaseError{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}St.UnknownNodeError=uDe;var ks={};Object.defineProperty(ks,"__esModule",{value:!0});ks.getNodeError=ks.containsNodeError=void 0;const dDe=xt,Ht=St,fDe=hr,QB=qe;function hDe(e){return e instanceof QB.TransactionRejectedRpcError||e instanceof QB.InvalidInputRpcError||e instanceof fDe.RpcRequestError&&e.code===Ht.ExecutionRevertedError.code}ks.containsNodeError=hDe;function mDe(e,t){const n=(e.details||"").toLowerCase(),r=e.walk(o=>o.code===Ht.ExecutionRevertedError.code);return r instanceof dDe.BaseError?new Ht.ExecutionRevertedError({cause:e,message:r.details}):Ht.ExecutionRevertedError.nodeMessage.test(n)?new Ht.ExecutionRevertedError({cause:e,message:e.details}):Ht.FeeCapTooHighError.nodeMessage.test(n)?new Ht.FeeCapTooHighError({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Ht.FeeCapTooLowError.nodeMessage.test(n)?new Ht.FeeCapTooLowError({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Ht.NonceTooHighError.nodeMessage.test(n)?new Ht.NonceTooHighError({cause:e,nonce:t==null?void 0:t.nonce}):Ht.NonceTooLowError.nodeMessage.test(n)?new Ht.NonceTooLowError({cause:e,nonce:t==null?void 0:t.nonce}):Ht.NonceMaxValueError.nodeMessage.test(n)?new Ht.NonceMaxValueError({cause:e,nonce:t==null?void 0:t.nonce}):Ht.InsufficientFundsError.nodeMessage.test(n)?new Ht.InsufficientFundsError({cause:e}):Ht.IntrinsicGasTooHighError.nodeMessage.test(n)?new Ht.IntrinsicGasTooHighError({cause:e,gas:t==null?void 0:t.gas}):Ht.IntrinsicGasTooLowError.nodeMessage.test(n)?new Ht.IntrinsicGasTooLowError({cause:e,gas:t==null?void 0:t.gas}):Ht.TransactionTypeNotSupportedError.nodeMessage.test(n)?new Ht.TransactionTypeNotSupportedError({cause:e}):Ht.TipAboveFeeCapError.nodeMessage.test(n)?new Ht.TipAboveFeeCapError({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new Ht.UnknownNodeError({cause:e})}ks.getNodeError=mDe;Object.defineProperty(Ny,"__esModule",{value:!0});Ny.getEstimateGasError=void 0;const pDe=By,gDe=St,yDe=ks;function bDe(e,{docsPath:t,...n}){const r=(()=>{const o=(0,yDe.getNodeError)(e,n);return o instanceof gDe.UnknownNodeError?e:o})();return new pDe.EstimateGasExecutionError(r,{docsPath:t,...n})}Ny.getEstimateGasError=bDe;var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});Ol.extract=void 0;function vDe(e,{format:t}){if(!t)return{};const n={};function r(a){const i=Object.keys(a);for(const s of i)s in e&&(n[s]=e[s]),a[s]&&typeof a[s]=="object"&&!Array.isArray(a[s])&&r(a[s])}const o=t(e||{});return r(o),n}Ol.extract=vDe;var Rl={},Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});Nl.defineFormatter=void 0;function wDe(e,t){return({exclude:n,format:r})=>({exclude:n,format:o=>{const a=t(o);if(n)for(const i of n)delete a[i];return{...a,...r(o)}},type:e})}Nl.defineFormatter=wDe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defineTransactionRequest=e.formatTransactionRequest=e.rpcTransactionType=void 0;const t=$e(),n=Nl;e.rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function r(o){return{...o,gas:typeof o.gas<"u"?(0,t.numberToHex)(o.gas):void 0,gasPrice:typeof o.gasPrice<"u"?(0,t.numberToHex)(o.gasPrice):void 0,maxFeePerGas:typeof o.maxFeePerGas<"u"?(0,t.numberToHex)(o.maxFeePerGas):void 0,maxPriorityFeePerGas:typeof o.maxPriorityFeePerGas<"u"?(0,t.numberToHex)(o.maxPriorityFeePerGas):void 0,nonce:typeof o.nonce<"u"?(0,t.numberToHex)(o.nonce):void 0,type:typeof o.type<"u"?e.rpcTransactionType[o.type]:void 0,value:typeof o.value<"u"?(0,t.numberToHex)(o.value):void 0}}e.formatTransactionRequest=r,e.defineTransactionRequest=(0,n.defineFormatter)("transactionRequest",r)})(Rl);var Gi={};Object.defineProperty(Gi,"__esModule",{value:!0});Gi.assertRequest=void 0;const EDe=Lr,XB=Zo,JB=St,_De=pt,ZB=uo;function xDe(e){const{account:t,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:o,to:a}=e,i=t?(0,EDe.parseAccount)(t):void 0;if(i&&!(0,ZB.isAddress)(i.address))throw new XB.InvalidAddressError({address:i.address});if(a&&!(0,ZB.isAddress)(a))throw new XB.InvalidAddressError({address:a});if(typeof n<"u"&&(typeof r<"u"||typeof o<"u"))throw new _De.FeeConflictError;if(r&&r>2n**256n-1n)throw new JB.FeeCapTooHighError({maxFeePerGas:r});if(o&&r&&o>r)throw new JB.TipAboveFeeCapError({maxFeePerGas:r,maxPriorityFeePerGas:o})}Gi.assertRequest=xDe;var Tp={},td={},ti={};Object.defineProperty(ti,"__esModule",{value:!0});ti.MaxFeePerGasTooLowError=ti.Eip1559FeesNotSupportedError=ti.BaseFeeScalarError=void 0;const CDe=qi,eP=xt;class SDe extends eP.BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}ti.BaseFeeScalarError=SDe;class TDe extends eP.BaseError{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}ti.Eip1559FeesNotSupportedError=TDe;class ADe extends eP.BaseError{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,CDe.formatGwei)(t)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}ti.MaxFeePerGasTooLowError=ADe;var nd={},Ys={},vm={};Object.defineProperty(vm,"__esModule",{value:!0});vm.BlockNotFoundError=void 0;const DDe=xt;class kDe extends DDe.BaseError{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.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}vm.BlockNotFoundError=kDe;var js={},wm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defineTransaction=e.formatTransaction=e.transactionType=void 0;const t=Wn(),n=Nl;e.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function r(o){const a={...o,blockHash:o.blockHash?o.blockHash:null,blockNumber:o.blockNumber?BigInt(o.blockNumber):null,chainId:o.chainId?(0,t.hexToNumber)(o.chainId):void 0,gas:o.gas?BigInt(o.gas):void 0,gasPrice:o.gasPrice?BigInt(o.gasPrice):void 0,maxFeePerGas:o.maxFeePerGas?BigInt(o.maxFeePerGas):void 0,maxPriorityFeePerGas:o.maxPriorityFeePerGas?BigInt(o.maxPriorityFeePerGas):void 0,nonce:o.nonce?(0,t.hexToNumber)(o.nonce):void 0,to:o.to?o.to:null,transactionIndex:o.transactionIndex?Number(o.transactionIndex):null,type:o.type?e.transactionType[o.type]:void 0,typeHex:o.type?o.type:void 0,value:o.value?BigInt(o.value):void 0,v:o.v?BigInt(o.v):void 0};return a.yParity=(()=>{if(o.yParity)return Number(o.yParity);if(typeof a.v=="bigint"){if(a.v===0n||a.v===27n)return 0;if(a.v===1n||a.v===28n)return 1;if(a.v>=35n)return a.v%2n===0n?1:0}})(),a.type==="legacy"&&(delete a.accessList,delete a.maxFeePerGas,delete a.maxPriorityFeePerGas,delete a.yParity),a.type==="eip2930"&&(delete a.maxFeePerGas,delete a.maxPriorityFeePerGas),a}e.formatTransaction=r,e.defineTransaction=(0,n.defineFormatter)("transaction",r)})(wm);Object.defineProperty(js,"__esModule",{value:!0});js.defineBlock=js.formatBlock=void 0;const jDe=Nl,PDe=wm;function sJ(e){var n;const t=(n=e.transactions)==null?void 0:n.map(r=>typeof r=="string"?r:(0,PDe.formatTransaction)(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):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:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}js.formatBlock=sJ;js.defineBlock=(0,jDe.defineFormatter)("block",sJ);Object.defineProperty(Ys,"__esModule",{value:!0});Ys.getBlock=void 0;const IDe=vm,ODe=$e(),RDe=js;async function NDe(e,{blockHash:t,blockNumber:n,blockTag:r,includeTransactions:o}={}){var u,d,f;const a=r??"latest",i=o??!1,s=n!==void 0?(0,ODe.numberToHex)(n):void 0;let c=null;if(t?c=await e.request({method:"eth_getBlockByHash",params:[t,i]}):c=await e.request({method:"eth_getBlockByNumber",params:[s||a,i]}),!c)throw new IDe.BlockNotFoundError({blockHash:t,blockNumber:n});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.block)==null?void 0:f.format)||RDe.formatBlock)(c)}Ys.getBlock=NDe;var Em={};Object.defineProperty(Em,"__esModule",{value:!0});Em.getGasPrice=void 0;async function BDe(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}Em.getGasPrice=BDe;Object.defineProperty(nd,"__esModule",{value:!0});nd.internal_estimateMaxPriorityFeePerGas=nd.estimateMaxPriorityFeePerGas=void 0;const FDe=ti,MDe=Wn(),R3=Bt,e9=Ys,LDe=Em;async function UDe(e,t){return cJ(e,t)}nd.estimateMaxPriorityFeePerGas=UDe;async function cJ(e,t){var a,i,s;const{block:n,chain:r=e.chain,request:o}=t||{};if(typeof((a=r==null?void 0:r.fees)==null?void 0:a.defaultPriorityFee)=="function"){const c=n||await(0,R3.getAction)(e,e9.getBlock,"getBlock")({});return r.fees.defaultPriorityFee({block:c,client:e,request:o})}if(typeof((i=r==null?void 0:r.fees)==null?void 0:i.defaultPriorityFee)<"u")return(s=r==null?void 0:r.fees)==null?void 0:s.defaultPriorityFee;try{const c=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,MDe.hexToBigInt)(c)}catch{const[c,l]=await Promise.all([n?Promise.resolve(n):(0,R3.getAction)(e,e9.getBlock,"getBlock")({}),(0,R3.getAction)(e,LDe.getGasPrice,"getGasPrice")({})]);if(typeof c.baseFeePerGas!="bigint")throw new FDe.Eip1559FeesNotSupportedError;const u=l-c.baseFeePerGas;return u<0n?0n:u}}nd.internal_estimateMaxPriorityFeePerGas=cJ;Object.defineProperty(td,"__esModule",{value:!0});td.internal_estimateFeesPerGas=td.estimateFeesPerGas=void 0;const t9=ti,n9=Bt,$De=nd,zDe=Ys,HDe=Em;async function qDe(e,t){return lJ(e,t)}td.estimateFeesPerGas=qDe;async function lJ(e,t){var f,h;const{block:n,chain:r=e.chain,request:o,type:a="eip1559"}=t||{},i=await(async()=>{var m,p;return typeof((m=r==null?void 0:r.fees)==null?void 0:m.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:e,request:o}):((p=r==null?void 0:r.fees)==null?void 0:p.baseFeeMultiplier)??1.2})();if(i<1)throw new t9.BaseFeeScalarError;const c=10**(((f=i.toString().split(".")[1])==null?void 0:f.length)??0),l=m=>m*BigInt(Math.ceil(i*c))/BigInt(c),u=n||await(0,n9.getAction)(e,zDe.getBlock,"getBlock")({});if(typeof((h=r==null?void 0:r.fees)==null?void 0:h.estimateFeesPerGas)=="function")return r.fees.estimateFeesPerGas({block:n,client:e,multiply:l,request:o,type:a});if(a==="eip1559"){if(typeof u.baseFeePerGas!="bigint")throw new t9.Eip1559FeesNotSupportedError;const m=o!=null&&o.maxPriorityFeePerGas?o.maxPriorityFeePerGas:await(0,$De.internal_estimateMaxPriorityFeePerGas)(e,{block:u,chain:r,request:o}),p=l(u.baseFeePerGas);return{maxFeePerGas:(o==null?void 0:o.maxFeePerGas)??p+m,maxPriorityFeePerGas:m}}return{gasPrice:(o==null?void 0:o.gasPrice)??l(await(0,n9.getAction)(e,HDe.getGasPrice,"getGasPrice")({}))}}td.internal_estimateFeesPerGas=lJ;var Fy={};Object.defineProperty(Fy,"__esModule",{value:!0});Fy.getTransactionCount=void 0;const WDe=Wn(),GDe=$e();async function VDe(e,{address:t,blockTag:n="latest",blockNumber:r}){const o=await e.request({method:"eth_getTransactionCount",params:[t,r?(0,GDe.numberToHex)(r):n]});return(0,WDe.hexToNumber)(o)}Fy.getTransactionCount=VDe;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});Td.getTransactionType=void 0;const KDe=pt;function YDe(e){if(e.type)return e.type;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 KDe.InvalidSerializableTransactionError({transaction:e})}Td.getTransactionType=YDe;var r9;function My(){if(r9)return Tp;r9=1,Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.prepareTransactionRequest=void 0;const e=Lr,t=td,n=tP(),r=Ys,o=Fy,a=Ks,i=ti,s=Bt,c=Gi,l=Td;async function u(d,f){const{account:h=d.account,chain:m,gas:p,nonce:b,type:v}=f;if(!h)throw new a.AccountNotFoundError;const g=(0,e.parseAccount)(h),w=await(0,s.getAction)(d,r.getBlock,"getBlock")({blockTag:"latest"}),_={...f,from:g.address};if(typeof b>"u"&&(_.nonce=await(0,s.getAction)(d,o.getTransactionCount,"getTransactionCount")({address:g.address,blockTag:"pending"})),typeof v>"u")try{_.type=(0,l.getTransactionType)(_)}catch{_.type=typeof w.baseFeePerGas=="bigint"?"eip1559":"legacy"}if(_.type==="eip1559"){const{maxFeePerGas:C,maxPriorityFeePerGas:x}=await(0,t.internal_estimateFeesPerGas)(d,{block:w,chain:m,request:_});if(typeof f.maxPriorityFeePerGas>"u"&&f.maxFeePerGas&&f.maxFeePerGas"u"&&(_.gas=await(0,s.getAction)(d,n.estimateGas,"estimateGas")({..._,account:{address:g.address,type:"json-rpc"}})),(0,c.assertRequest)(_),_}return Tp.prepareTransactionRequest=u,Tp}var o9;function tP(){if(o9)return Sp;o9=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.estimateGas=void 0;const e=Lr,t=Ks,n=$e(),r=Ny,o=Ol,a=Rl,i=Gi,s=My();async function c(l,u){var h,m,p;const d=u.account??l.account;if(!d)throw new t.AccountNotFoundError({docsPath:"/docs/actions/public/estimateGas"});const f=(0,e.parseAccount)(d);try{const{accessList:b,blockNumber:v,blockTag:g,data:w,gas:_,gasPrice:C,maxFeePerGas:x,maxPriorityFeePerGas:E,nonce:T,to:k,value:D,...R}=f.type==="local"?await(0,s.prepareTransactionRequest)(l,u):u,B=(v?(0,n.numberToHex)(v):void 0)||g;(0,i.assertRequest)(u);const j=(p=(m=(h=l.chain)==null?void 0:h.formatters)==null?void 0:m.transactionRequest)==null?void 0:p.format,O=(j||a.formatTransactionRequest)({...(0,o.extract)(R,{format:j}),from:f.address,accessList:b,data:w,gas:_,gasPrice:C,maxFeePerGas:x,maxPriorityFeePerGas:E,nonce:T,to:k,value:D}),I=await l.request({method:"eth_estimateGas",params:B?[O,B]:[O]});return BigInt(I)}catch(b){throw(0,r.getEstimateGasError)(b,{...u,account:f,chain:l.chain})}}return Sp.estimateGas=c,Sp}Object.defineProperty(Iy,"__esModule",{value:!0});Iy.estimateContractGas=void 0;const QDe=Lr,XDe=ea,JDe=Vs,ZDe=Bt,eke=tP();async function tke(e,{abi:t,address:n,args:r,functionName:o,...a}){const i=(0,XDe.encodeFunctionData)({abi:t,args:r,functionName:o});try{return await(0,ZDe.getAction)(e,eke.estimateGas,"estimateGas")({data:i,to:n,...a})}catch(s){const c=a.account?(0,QDe.parseAccount)(a.account):void 0;throw(0,JDe.getContractError)(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:c==null?void 0:c.address})}}Iy.estimateContractGas=tke;var _m={},xm={},Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.decodeEventLog=void 0;const ef=Jt(),nke=Pl,uJ=Hi,rke=Gs(),a9="/docs/contract/decodeEventLog";function oke({abi:e,data:t,strict:n,topics:r}){const o=n??!0,[a,...i]=r;if(!a)throw new ef.AbiEventSignatureEmptyTopicsError({docsPath:a9});const s=e.find(m=>m.type==="event"&&a===(0,nke.getEventSelector)((0,rke.formatAbiItem)(m)));if(!(s&&"name"in s)||s.type!=="event")throw new ef.AbiEventSignatureNotFoundError(a,{docsPath:a9});const{name:c,inputs:l}=s,u=l==null?void 0:l.some(m=>!("name"in m&&m.name));let d=u?[]:{};const f=l.filter(m=>"indexed"in m&&m.indexed);for(let m=0;m!("indexed"in m&&m.indexed));if(h.length>0){if(t&&t!=="0x")try{const m=(0,uJ.decodeAbiParameters)(h,t);if(m)if(u)d=[...d,...m];else for(let p=0;p0?d:void 0}}Qs.decodeEventLog=oke;function ake({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,uJ.decodeAbiParameters)([e],t)||[])[0]}var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.formatLog=void 0;function ike(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,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}:{}}}Vi.formatLog=ike;Object.defineProperty(xm,"__esModule",{value:!0});xm.getLogs=void 0;const i9=Jt(),ske=Qs,cke=Ws,s9=$e(),c9=Vi;async function lke(e,{address:t,blockHash:n,fromBlock:r,toBlock:o,event:a,events:i,args:s,strict:c}={}){const l=c??!1,u=i??(a?[a]:void 0);let d=[];u&&(d=[u.flatMap(h=>(0,cke.encodeEventTopics)({abi:[h],eventName:h.name,args:s}))],a&&(d=d[0]));let f;return 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"?(0,s9.numberToHex)(r):r,toBlock:typeof o=="bigint"?(0,s9.numberToHex)(o):o}]}),f.map(h=>{var m;try{const{eventName:p,args:b}=u?(0,ske.decodeEventLog)({abi:u,data:h.data,topics:h.topics,strict:l}):{eventName:void 0,args:void 0};return(0,c9.formatLog)(h,{args:b,eventName:p})}catch(p){let b,v;if(p instanceof i9.DecodeLogDataMismatch||p instanceof i9.DecodeLogTopicsMismatch){if(l)return;b=p.abiItem.name,v=(m=p.abiItem.inputs)==null?void 0:m.some(g=>!("name"in g&&g.name))}return(0,c9.formatLog)(h,{args:v?[]:{},eventName:b})}}).filter(Boolean)}xm.getLogs=lke;Object.defineProperty(_m,"__esModule",{value:!0});_m.getContractEvents=void 0;const uke=Br,dke=Bt,fke=xm;async function hke(e,{abi:t,address:n,args:r,blockHash:o,eventName:a,fromBlock:i,toBlock:s,strict:c}){const l=a?(0,uke.getAbiItem)({abi:t,name:a}):void 0,u=l?void 0:t.filter(d=>d.type==="event");return(0,dke.getAction)(e,fke.getLogs,"getLogs")({address:n,args:r,blockHash:o,event:l,events:u,fromBlock:i,toBlock:s,strict:c})}_m.getContractEvents=hke;var li={},ui={};Object.defineProperty(ui,"__esModule",{value:!0});ui.decodeFunctionResult=void 0;const N3=Jt(),mke=Hi,pke=Br,B3="/docs/contract/decodeFunctionResult";function gke({abi:e,args:t,functionName:n,data:r}){let o=e[0];if(n&&(o=(0,pke.getAbiItem)({abi:e,args:t,name:n}),!o))throw new N3.AbiFunctionNotFoundError(n,{docsPath:B3});if(o.type!=="function")throw new N3.AbiFunctionNotFoundError(void 0,{docsPath:B3});if(!o.outputs)throw new N3.AbiFunctionOutputsNotFoundError(o.name,{docsPath:B3});const a=(0,mke.decodeAbiParameters)(o.outputs,r);if(a&&a.length>1)return a;if(a&&a.length===1)return a[0]}ui.decodeFunctionResult=gke;var Yl={},mn={};Object.defineProperty(mn,"__esModule",{value:!0});mn.universalSignatureValidatorAbi=mn.smartAccountAbi=mn.addressResolverAbi=mn.textResolverAbi=mn.universalResolverReverseAbi=mn.universalResolverResolveAbi=mn.multicall3Abi=void 0;mn.multicall3Abi=[{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"}];const dJ=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}];mn.universalResolverResolveAbi=[...dJ,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}];mn.universalResolverReverseAbi=[...dJ,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}];mn.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}];mn.addressResolverAbi=[{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"}]}];mn.smartAccountAbi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}];mn.universalSignatureValidatorAbi=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}];var K2={};Object.defineProperty(K2,"__esModule",{value:!0});K2.aggregate3Signature=void 0;K2.aggregate3Signature="0x82ad56cb";var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.InvalidChainIdError=Pr.ClientChainNotConfiguredError=Pr.ChainNotFoundError=Pr.ChainMismatchError=Pr.ChainDoesNotSupportContract=void 0;const Ly=xt;class yke extends Ly.BaseError{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.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}Pr.ChainDoesNotSupportContract=yke;class bke extends Ly.BaseError{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}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}Pr.ChainMismatchError=bke;class vke extends Ly.BaseError{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(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}Pr.ChainNotFoundError=vke;class wke extends Ly.BaseError{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}Pr.ClientChainNotConfiguredError=wke;class Eke extends Ly.BaseError{constructor({chainId:t}){super(`Chain ID "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}Pr.InvalidChainIdError=Eke;var di={};Object.defineProperty(di,"__esModule",{value:!0});di.getChainContractAddress=void 0;const l9=Pr;function _ke({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 l9.ChainDoesNotSupportContract({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new l9.ChainDoesNotSupportContract({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}di.getChainContractAddress=_ke;var Uy={};Object.defineProperty(Uy,"__esModule",{value:!0});Uy.getCallError=void 0;const xke=Zn,Cke=St,Ske=ks;function Tke(e,{docsPath:t,...n}){const r=(()=>{const o=(0,Ske.getNodeError)(e,n);return o instanceof Cke.UnknownNodeError?e:o})();return new xke.CallExecutionError(r,{docsPath:t,...n})}Uy.getCallError=Tke;var Cm={};Object.defineProperty(Cm,"__esModule",{value:!0});Cm.createBatchScheduler=void 0;const F3=new Map;function Ake({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){const a=async()=>{const u=c();i();const d=u.map(({args:f})=>f);d.length!==0&&e(d).then(f=>{var h;o&&Array.isArray(f)&&f.sort(o);for(let m=0;m{var h;for(let m=0;mF3.delete(t),s=()=>c().map(({args:u})=>u),c=()=>F3.get(t)||[],l=u=>F3.set(t,[...c(),u]);return{flush:i,async schedule(u){const d={},f=new Promise((p,b)=>{d.resolve=p,d.reject=b});return(n==null?void 0:n([...s(),u]))&&a(),c().length>0?(l({args:u,pendingPromise:d}),f):(l({args:u,pendingPromise:d}),setTimeout(a,r),f)}}}Cm.createBatchScheduler=Ake;var M3={},Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});Yc.OffchainLookupSenderMismatchError=Yc.OffchainLookupResponseMalformedError=Yc.OffchainLookupError=void 0;const Dke=xr,nP=xt,fJ=ei;class kke extends nP.BaseError{constructor({callbackSelector:t,cause:n,data:r,extraData:o,sender:a,urls:i}){var s;super(n.shortMessage||"An error occurred while fetching for an offchain result.",{cause:n,metaMessages:[...n.metaMessages||[],(s=n.metaMessages)!=null&&s.length?"":[],"Offchain Gateway Call:",i&&[" Gateway URL(s):",...i.map(c=>` ${(0,fJ.getUrl)(c)}`)],` Sender: ${a}`,` Data: ${r}`,` Callback selector: ${t}`,` Extra data: ${o}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}Yc.OffchainLookupError=kke;class jke extends nP.BaseError{constructor({result:t,url:n}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,fJ.getUrl)(n)}`,`Response: ${(0,Dke.stringify)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}Yc.OffchainLookupResponseMalformedError=jke;class Pke extends nP.BaseError{constructor({sender:t,to:n}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${n}`,`OffchainLookup sender address: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}Yc.OffchainLookupSenderMismatchError=Pke;var Bl={};Object.defineProperty(Bl,"__esModule",{value:!0});Bl.isAddressEqual=void 0;const u9=Zo,d9=uo;function Ike(e,t){if(!(0,d9.isAddress)(e))throw new u9.InvalidAddressError({address:e});if(!(0,d9.isAddress)(t))throw new u9.InvalidAddressError({address:t});return e.toLowerCase()===t.toLowerCase()}Bl.isAddressEqual=Ike;var f9;function rP(){return f9||(f9=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ccipFetch=e.offchainLookup=e.offchainLookupAbiItem=e.offchainLookupSignature=void 0;const t=$y(),n=Yc,r=hr,o=xd,a=ao,i=Bl,s=On,c=qn,l=xr;e.offchainLookupSignature="0x556f1830",e.offchainLookupAbiItem={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function u(f,{blockNumber:h,blockTag:m,data:p,to:b}){const{args:v}=(0,o.decodeErrorResult)({data:p,abi:[e.offchainLookupAbiItem]}),[g,w,_,C,x]=v;try{if(!(0,i.isAddressEqual)(b,g))throw new n.OffchainLookupSenderMismatchError({sender:g,to:b});const E=await d({data:_,sender:g,urls:w}),{data:T}=await(0,t.call)(f,{blockNumber:h,blockTag:m,data:(0,s.concat)([C,(0,a.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[E,x])]),to:b});return T}catch(E){throw new n.OffchainLookupError({callbackSelector:C,cause:E,data:p,extraData:x,sender:g,urls:w})}}e.offchainLookup=u;async function d({data:f,sender:h,urls:m}){var b;let p=new Error("An unknown error occurred.");for(let v=0;vrP());if((Z==null?void 0:Z.slice(0,10))===ne&&O)return{data:await ae(w,{data:Z,to:O})};throw(0,u.getCallError)(G,{..._,account:M,chain:w.chain})}}Yl.call=p;function b({request:w}){const{data:_,to:C,...x}=w;return!(!_||_.startsWith(n.aggregate3Signature)||!C||Object.values(x).filter(E=>typeof E<"u").length>0)}async function v(w,_){var N;const{batchSize:C=1024,wait:x=0}=typeof((N=w.batch)==null?void 0:N.multicall)=="object"?w.batch.multicall:{},{blockNumber:E,blockTag:T="latest",data:k,multicallAddress:D,to:R}=_;let F=D;if(!F){if(!w.chain)throw new o.ClientChainNotConfiguredError;F=(0,c.getChainContractAddress)({blockNumber:E,chain:w.chain,contract:"multicall3"})}const j=(E?(0,l.numberToHex)(E):void 0)||T,{schedule:P}=(0,h.createBatchScheduler)({id:`${w.uid}.${j}`,wait:x,shouldSplitBatch(M){return M.reduce((X,{data:J})=>X+(J.length-2),0)>C*2},fn:async M=>{const L=M.map(U=>({allowFailure:!0,callData:U.data,target:U.to})),X=(0,s.encodeFunctionData)({abi:t.multicall3Abi,args:[L],functionName:"aggregate3"}),J=await w.request({method:"eth_call",params:[{data:X,to:F},j]});return(0,i.decodeFunctionResult)({abi:t.multicall3Abi,args:[L],functionName:"aggregate3",data:J||"0x"})}}),[{returnData:O,success:I}]=await P({data:k,to:R});if(!I)throw new a.RawContractError({data:O});return O==="0x"?{data:void 0}:{data:O}}function g(w){if(!(w instanceof r.BaseError))return;const _=w.walk();return typeof _.data=="object"?_.data.data:_.data}return Yl.getRevertErrorData=g,Yl}Object.defineProperty(li,"__esModule",{value:!0});li.readContract=void 0;const Oke=ui,Rke=ea,Nke=Vs,Bke=Bt,Fke=$y();async function Mke(e,{abi:t,address:n,args:r,functionName:o,...a}){const i=(0,Rke.encodeFunctionData)({abi:t,args:r,functionName:o});try{const{data:s}=await(0,Bke.getAction)(e,Fke.call,"call")({data:i,to:n,...a});return(0,Oke.decodeFunctionResult)({abi:t,args:r,functionName:o,data:s||"0x"})}catch(s){throw(0,Nke.getContractError)(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/readContract",functionName:o})}}li.readContract=Mke;var zy={};Object.defineProperty(zy,"__esModule",{value:!0});zy.simulateContract=void 0;const Lke=Lr,Uke=ui,$ke=ea,zke=Vs,Hke=Bt,qke=$y();async function Wke(e,{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}){const s=i.account?(0,Lke.parseAccount)(i.account):void 0,c=(0,$ke.encodeFunctionData)({abi:t,args:r,functionName:a});try{const{data:l}=await(0,Hke.getAction)(e,qke.call,"call")({batch:!1,data:`${c}${o?o.replace("0x",""):""}`,to:n,...i});return{result:(0,Uke.decodeFunctionResult)({abi:t,args:r,functionName:a,data:l||"0x"}),request:{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}}}catch(l){throw(0,zke.getContractError)(l,{abi:t,address:n,args:r,docsPath:"/docs/contract/simulateContract",functionName:a,sender:s==null?void 0:s.address})}}zy.simulateContract=Wke;var Hy={},Ad={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.observe=e.cleanupCache=e.listenersCache=void 0,e.listenersCache=new Map,e.cleanupCache=new Map;let t=0;function n(r,o,a){const i=++t,s=()=>e.listenersCache.get(r)||[],c=()=>{const h=s();e.listenersCache.set(r,h.filter(m=>m.id!==i))},l=()=>{const h=e.cleanupCache.get(r);s().length===1&&h&&h(),c()},u=s();if(e.listenersCache.set(r,[...u,{id:i,fns:o}]),u&&u.length>0)return l;const d={};for(const h in o)d[h]=(...m)=>{var b,v;const p=s();if(p.length!==0)for(const g of p)(v=(b=g.fns)[h])==null||v.call(b,...m)};const f=a(d);return typeof f=="function"&&e.cleanupCache.set(r,f),l}e.observe=n})(Ad);var Fl={},Sm={};Object.defineProperty(Sm,"__esModule",{value:!0});Sm.wait=void 0;async function Gke(e){return new Promise(t=>setTimeout(t,e))}Sm.wait=Gke;Object.defineProperty(Fl,"__esModule",{value:!0});Fl.poll=void 0;const m9=Sm;function Vke(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let o=!0;const a=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:a}));const c=await(n==null?void 0:n(s))??r;await(0,m9.wait)(c);const l=async()=>{o&&(await e({unpoll:a}),await(0,m9.wait)(r),l())};l()})(),a}Fl.poll=Vke;var Li={},hJ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.withCache=e.getCache=e.responseCache=e.promiseCache=void 0,e.promiseCache=new Map,e.responseCache=new Map;function t(r){const o=(s,c)=>({clear:()=>c.delete(s),get:()=>c.get(s),set:l=>c.set(s,l)}),a=o(r,e.promiseCache),i=o(r,e.responseCache);return{clear:()=>{a.clear(),i.clear()},promise:a,response:i}}e.getCache=t;async function n(r,{cacheKey:o,cacheTime:a=1/0}){const i=t(o),s=i.response.get();if(s&&a>0&&new Date().getTime()-s.created.getTime()`blockNumber.${e}`;function Kke(e){return(0,mJ.getCache)(pJ(e))}Li.getBlockNumberCache=Kke;async function Yke(e,{cacheTime:t=e.cacheTime,maxAge:n}={}){const r=await(0,mJ.withCache)(()=>e.request({method:"eth_blockNumber"}),{cacheKey:pJ(e.uid),cacheTime:n??t});return BigInt(r)}Li.getBlockNumber=Yke;var Dd={};Object.defineProperty(Dd,"__esModule",{value:!0});Dd.getFilterChanges=void 0;const p9=Jt(),Qke=Qs,g9=Vi;async function Xke(e,{filter:t}){const n="strict"in t&&t.strict;return(await t.request({method:"eth_getFilterChanges",params:[t.id]})).map(o=>{var a;if(typeof o=="string")return o;try{const{eventName:i,args:s}="abi"in t&&t.abi?(0,Qke.decodeEventLog)({abi:t.abi,data:o.data,topics:o.topics,strict:n}):{eventName:void 0,args:void 0};return(0,g9.formatLog)(o,{args:s,eventName:i})}catch(i){let s,c;if(i instanceof p9.DecodeLogDataMismatch||i instanceof p9.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;s=i.abiItem.name,c=(a=i.abiItem.inputs)==null?void 0:a.some(l=>!("name"in l&&l.name))}return(0,g9.formatLog)(o,{args:c?[]:{},eventName:s})}}).filter(Boolean)}Dd.getFilterChanges=Xke;var kd={};Object.defineProperty(kd,"__esModule",{value:!0});kd.uninstallFilter=void 0;async function Jke(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}kd.uninstallFilter=Jke;Object.defineProperty(Hy,"__esModule",{value:!0});Hy.watchContractEvent=void 0;const Zke=Ad,e8e=Fl,t8e=xr,y9=Jt(),n8e=qe,r8e=Qs,o8e=Ws,b9=Vi,Ap=Bt,a8e=ym,i8e=Li,s8e=_m,c8e=Dd,l8e=kd;function u8e(e,{abi:t,address:n,args:r,batch:o=!0,eventName:a,onError:i,onLogs:s,poll:c,pollingInterval:l=e.pollingInterval,strict:u}){return(typeof c<"u"?c:e.transport.type!=="webSocket")?(()=>{const m=(0,t8e.stringify)(["watchContractEvent",n,r,o,e.uid,a,l]),p=u??!1;return(0,Zke.observe)(m,{onLogs:s,onError:i},b=>{let v,g,w=!1;const _=(0,e8e.poll)(async()=>{var C;if(!w){try{g=await(0,Ap.getAction)(e,a8e.createContractEventFilter,"createContractEventFilter")({abi:t,address:n,args:r,eventName:a,strict:p})}catch{}w=!0;return}try{let x;if(g)x=await(0,Ap.getAction)(e,c8e.getFilterChanges,"getFilterChanges")({filter:g});else{const E=await(0,Ap.getAction)(e,i8e.getBlockNumber,"getBlockNumber")({});v&&v!==E?x=await(0,Ap.getAction)(e,s8e.getContractEvents,"getContractEvents")({abi:t,address:n,args:r,eventName:a,fromBlock:v+1n,toBlock:E,strict:p}):x=[],v=E}if(x.length===0)return;if(o)b.onLogs(x);else for(const E of x)b.onLogs([E])}catch(x){g&&x instanceof n8e.InvalidInputRpcError&&(w=!1),(C=b.onError)==null||C.call(b,x)}},{emitOnBegin:!0,interval:l});return async()=>{g&&await(0,Ap.getAction)(e,l8e.uninstallFilter,"uninstallFilter")({filter:g}),_()}})})():(()=>{let m=!0,p=()=>m=!1;return(async()=>{try{const b=a?(0,o8e.encodeEventTopics)({abi:t,eventName:a,args:r}):[],{unsubscribe:v}=await e.transport.subscribe({params:["logs",{address:n,topics:b}],onData(g){var _;if(!m)return;const w=g.result;try{const{eventName:C,args:x}=(0,r8e.decodeEventLog)({abi:t,data:w.data,topics:w.topics,strict:u}),E=(0,b9.formatLog)(w,{args:x,eventName:C});s([E])}catch(C){let x,E;if(C instanceof y9.DecodeLogDataMismatch||C instanceof y9.DecodeLogTopicsMismatch){if(u)return;x=C.abiItem.name,E=(_=C.abiItem.inputs)==null?void 0:_.some(k=>!("name"in k&&k.name))}const T=(0,b9.formatLog)(w,{args:E?[]:{},eventName:x});s([T])}},onError(g){i==null||i(g)}});p=v,m||p()}catch(b){i==null||i(b)}})(),p})()}Hy.watchContractEvent=u8e;var qy={},Tm={},jd={};Object.defineProperty(jd,"__esModule",{value:!0});jd.assertCurrentChain=void 0;const v9=Pr;function d8e({chain:e,currentChainId:t}){if(!e)throw new v9.ChainNotFoundError;if(t!==e.id)throw new v9.ChainMismatchError({chain:e,currentChainId:t})}jd.assertCurrentChain=d8e;var Wy={};Object.defineProperty(Wy,"__esModule",{value:!0});Wy.getTransactionError=void 0;const f8e=St,h8e=pt,m8e=ks;function p8e(e,{docsPath:t,...n}){const r=(()=>{const o=(0,m8e.getNodeError)(e,n);return o instanceof f8e.UnknownNodeError?e:o})();return new h8e.TransactionExecutionError(r,{docsPath:t,...n})}Wy.getTransactionError=p8e;var Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});Pd.getChainId=void 0;const g8e=Wn();async function y8e(e){const t=await e.request({method:"eth_chainId"});return(0,g8e.hexToNumber)(t)}Pd.getChainId=y8e;var Am={};Object.defineProperty(Am,"__esModule",{value:!0});Am.sendRawTransaction=void 0;async function b8e(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]})}Am.sendRawTransaction=b8e;Object.defineProperty(Tm,"__esModule",{value:!0});Tm.sendTransaction=void 0;const v8e=Lr,w8e=Ks,E8e=jd,_8e=Wy,x8e=Ol,C8e=Rl,vv=Bt,S8e=Gi,w9=Pd,T8e=My(),A8e=Am;async function D8e(e,t){var p,b,v,g;const{account:n=e.account,chain:r=e.chain,accessList:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,...h}=t;if(!n)throw new w8e.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});const m=(0,v8e.parseAccount)(n);try{(0,S8e.assertRequest)(t);let w;if(r!==null&&(w=await(0,vv.getAction)(e,w9.getChainId,"getChainId")({}),(0,E8e.assertCurrentChain)({currentChainId:w,chain:r})),m.type==="local"){const E=await(0,vv.getAction)(e,T8e.prepareTransactionRequest,"prepareTransactionRequest")({account:m,accessList:o,chain:r,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,...h});w||(w=await(0,vv.getAction)(e,w9.getChainId,"getChainId")({}));const T=(p=r==null?void 0:r.serializers)==null?void 0:p.transaction,k=await m.signTransaction({...E,chainId:w},{serializer:T});return await(0,vv.getAction)(e,A8e.sendRawTransaction,"sendRawTransaction")({serializedTransaction:k})}const _=(g=(v=(b=e.chain)==null?void 0:b.formatters)==null?void 0:v.transactionRequest)==null?void 0:g.format,x=(_||C8e.formatTransactionRequest)({...(0,x8e.extract)(h,{format:_}),accessList:o,data:a,from:m.address,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f});return await e.request({method:"eth_sendTransaction",params:[x]})}catch(w){throw(0,_8e.getTransactionError)(w,{...t,account:m,chain:t.chain||void 0})}}Tm.sendTransaction=D8e;Object.defineProperty(qy,"__esModule",{value:!0});qy.writeContract=void 0;const k8e=ea,j8e=Bt,P8e=Tm;async function I8e(e,{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}){const s=(0,k8e.encodeFunctionData)({abi:t,args:r,functionName:a});return await(0,j8e.getAction)(e,P8e.sendTransaction,"sendTransaction")({data:`${s}${o?o.replace("0x",""):""}`,to:n,...i})}qy.writeContract=I8e;Object.defineProperty(Kc,"__esModule",{value:!0});Kc.getEventParameters=Kc.getFunctionParameters=Kc.getContract=void 0;const Ql=Bt,O8e=ym,R8e=Iy,N8e=_m,B8e=li,F8e=zy,M8e=Hy,L8e=qy;function U8e({abi:e,address:t,publicClient:n,walletClient:r}){const o=n!=null,a=r!=null,i={};let s=!1,c=!1,l=!1;for(const u of e)if(u.type==="function"?u.stateMutability==="view"||u.stateMutability==="pure"?s=!0:c=!0:u.type==="event"&&(l=!0),s&&c&&l)break;return o&&(s&&(i.read=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=o0(f);return(0,Ql.getAction)(n,B8e.readContract,"readContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),c&&(i.simulate=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=o0(f);return(0,Ql.getAction)(n,F8e.simulateContract,"simulateContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),l&&(i.createEventFilter=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=I1(f,h);return(0,Ql.getAction)(n,O8e.createContractEventFilter,"createContractEventFilter")({abi:e,address:t,eventName:d,args:m,...p})}}}),i.getEvents=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=I1(f,h);return(0,Ql.getAction)(n,N8e.getContractEvents,"getContractEvents")({abi:e,address:t,eventName:d,args:m,...p})}}}),i.watchEvent=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=I1(f,h);return(0,Ql.getAction)(n,M8e.watchContractEvent,"watchContractEvent")({abi:e,address:t,eventName:d,args:m,...p})}}}))),a&&c&&(i.write=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=o0(f);return(0,Ql.getAction)(r,L8e.writeContract,"writeContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),(o||a)&&c&&(i.estimateGas=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=o0(f),p=n??r;return(0,Ql.getAction)(p,R8e.estimateContractGas,"estimateContractGas")({abi:e,address:t,functionName:d,args:h,...m,account:m.account??r.account})}}})),i.address=t,i.abi=e,i}Kc.getContract=U8e;function o0(e){const t=e.length&&Array.isArray(e[0]),n=t?e[0]:[],r=(t?e[1]:e[0])??{};return{args:n,options:r}}Kc.getFunctionParameters=o0;function I1(e,t){let n=!1;Array.isArray(e[0])?n=!0:e.length===1?n=t.inputs.some(a=>a.indexed):e.length===2&&(n=!0);const r=n?e[0]:void 0,o=(n?e[1]:e[0])??{};return{args:r,options:o}}Kc.getEventParameters=I1;var Id={},gJ={},Dm={};Object.defineProperty(Dm,"__esModule",{value:!0});Dm.publicKeyToAddress=void 0;const $8e=Co,z8e=lo;function H8e(e){const t=(0,z8e.keccak256)(`0x${e.substring(4)}`).substring(26);return(0,$8e.checksumAddress)(`0x${t}`)}Dm.publicKeyToAddress=H8e;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.publicKeyToAddress=e.parseAccount=void 0;var t=Lr;Object.defineProperty(e,"parseAccount",{enumerable:!0,get:function(){return t.parseAccount}});var n=Dm;Object.defineProperty(e,"publicKeyToAddress",{enumerable:!0,get:function(){return n.publicKeyToAddress}})})(gJ);var Y2={};Object.defineProperty(Y2,"__esModule",{value:!0});Y2.uid=void 0;const $D=256;let wv=$D,Ev;function q8e(e=11){if(!Ev||wv+e>$D*2){Ev="",wv=0;for(let t=0;t<$D;t++)Ev+=(256+Math.random()*256|0).toString(16).substring(1)}return Ev.substring(wv,wv+++e)}Y2.uid=q8e;Object.defineProperty(Id,"__esModule",{value:!0});Id.createClient=void 0;const W8e=gJ,G8e=Y2;function V8e(e){const{batch:t,cacheTime:n=e.pollingInterval??4e3,key:r="base",name:o="Base Client",pollingInterval:a=4e3,type:i="base"}=e,s=e.chain,c=e.account?(0,W8e.parseAccount)(e.account):void 0,{config:l,request:u,value:d}=e.transport({chain:s,pollingInterval:a}),f={...l,...d},h={account:c,batch:t,cacheTime:n,chain:s,key:r,name:o,pollingInterval:a,request:u,transport:f,type:i,uid:(0,G8e.uid)()};function m(p){return b=>{const v=b(p);for(const w in h)delete v[w];const g={...p,...v};return Object.assign(g,{extend:m(g)})}}return Object.assign(h,{extend:m(h)})}Id.createClient=V8e;var Q2={},Ml={},X2={},Gy={};Object.defineProperty(Gy,"__esModule",{value:!0});Gy.withRetry=void 0;const K8e=Sm;function Y8e(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((o,a)=>{const i=async({count:s=0}={})=>{const c=async({error:l})=>{const u=typeof t=="function"?t({count:s,error:l}):t;u&&await(0,K8e.wait)(u),i({count:s+1})};try{const l=await e();o(l)}catch(l){if(s"code"in s?s.code!==-1&&s.code!==-32004&&s.code!==-32005&&s.code!==-32042&&s.code!==-32603:s instanceof n.HttpRequestError&&s.status?s.status!==403&&s.status!==408&&s.status!==413&&s.status!==429&&s.status!==500&&s.status!==502&&s.status!==503&&s.status!==504:!1;e.isDeterministicError=a;function i(s,{retryDelay:c=150,retryCount:l=3}={}){return async u=>(0,o.withRetry)(async()=>{try{return await s(u)}catch(d){const f=d;switch(f.code){case r.ParseRpcError.code:throw new r.ParseRpcError(f);case r.InvalidRequestRpcError.code:throw new r.InvalidRequestRpcError(f);case r.MethodNotFoundRpcError.code:throw new r.MethodNotFoundRpcError(f);case r.InvalidParamsRpcError.code:throw new r.InvalidParamsRpcError(f);case r.InternalRpcError.code:throw new r.InternalRpcError(f);case r.InvalidInputRpcError.code:throw new r.InvalidInputRpcError(f);case r.ResourceNotFoundRpcError.code:throw new r.ResourceNotFoundRpcError(f);case r.ResourceUnavailableRpcError.code:throw new r.ResourceUnavailableRpcError(f);case r.TransactionRejectedRpcError.code:throw new r.TransactionRejectedRpcError(f);case r.MethodNotSupportedRpcError.code:throw new r.MethodNotSupportedRpcError(f);case r.LimitExceededRpcError.code:throw new r.LimitExceededRpcError(f);case r.JsonRpcVersionUnsupportedError.code:throw new r.JsonRpcVersionUnsupportedError(f);case r.UserRejectedRequestError.code:throw new r.UserRejectedRequestError(f);case r.UnauthorizedProviderError.code:throw new r.UnauthorizedProviderError(f);case r.UnsupportedProviderMethodError.code:throw new r.UnsupportedProviderMethodError(f);case r.ProviderDisconnectedError.code:throw new r.ProviderDisconnectedError(f);case r.ChainDisconnectedError.code:throw new r.ChainDisconnectedError(f);case r.SwitchChainError.code:throw new r.SwitchChainError(f);case 5e3:throw new r.UserRejectedRequestError(f);default:throw d instanceof t.BaseError?d:new r.UnknownRpcError(f)}}},{delay:({count:d,error:f})=>{var h;if(f&&f instanceof n.HttpRequestError){const m=(h=f==null?void 0:f.headers)==null?void 0:h.get("Retry-After");if(m!=null&&m.match(/\d/))return parseInt(m)*1e3}return~~(1<!(0,e.isDeterministicError)(d)})}e.buildRequest=i})(X2);Object.defineProperty(Ml,"__esModule",{value:!0});Ml.createTransport=void 0;const Q8e=X2;function X8e({key:e,name:t,request:n,retryCount:r=3,retryDelay:o=150,timeout:a,type:i},s){return{config:{key:e,name:t,request:n,retryCount:r,retryDelay:o,timeout:a,type:i},request:(0,Q8e.buildRequest)(n,{retryCount:r,retryDelay:o}),value:s}}Ml.createTransport=X8e;Object.defineProperty(Q2,"__esModule",{value:!0});Q2.custom=void 0;const J8e=Ml;function Z8e(e,t={}){const{key:n="custom",name:r="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>(0,J8e.createTransport)({key:n,name:r,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})}Q2.custom=Z8e;var Ih={};Object.defineProperty(Ih,"__esModule",{value:!0});Ih.rankTransports=Ih.fallback=void 0;const eje=X2,tje=Sm,nje=Ml;function rje(e,t={}){const{key:n="fallback",name:r="Fallback",rank:o=!1,retryCount:a,retryDelay:i}=t;return({chain:s,pollingInterval:c=4e3,timeout:l})=>{let u=e,d=()=>{};const f=(0,nje.createTransport)({key:n,name:r,async request({method:h,params:m}){const p=async(b=0)=>{const v=u[b]({chain:s,retryCount:0,timeout:l});try{const g=await v.request({method:h,params:m});return d({method:h,params:m,response:g,transport:v,status:"success"}),g}catch(g){if(d({error:g,method:h,params:m,transport:v,status:"error"}),(0,eje.isDeterministicError)(g)||b===u.length-1)throw g;return p(b+1)}};return p()},retryCount:a,retryDelay:i,type:"fallback"},{onResponse:h=>d=h,transports:u.map(h=>h({chain:s,retryCount:0}))});if(o){const h=typeof o=="object"?o:{};yJ({chain:s,interval:h.interval??c,onTransports:m=>u=m,sampleCount:h.sampleCount,timeout:h.timeout,transports:u,weights:h.weights})}return f}}Ih.fallback=rje;function yJ({chain:e,interval:t=4e3,onTransports:n,sampleCount:r=10,timeout:o=1e3,transports:a,weights:i={}}){const{stability:s=.7,latency:c=.3}=i,l=[],u=async()=>{const d=await Promise.all(a.map(async m=>{const p=m({chain:e,retryCount:0,timeout:o}),b=Date.now();let v,g;try{await p.request({method:"net_listening"}),g=1}catch{g=0}finally{v=Date.now()}return{latency:v-b,success:g}}));l.push(d),l.length>r&&l.shift();const f=Math.max(...l.map(m=>Math.max(...m.map(({latency:p})=>p)))),h=a.map((m,p)=>{const b=l.map(C=>C[p].latency),g=1-b.reduce((C,x)=>C+x,0)/b.length/f,w=l.map(C=>C[p].success),_=w.reduce((C,x)=>C+x,0)/w.length;return _===0?[0,p]:[c*g+s*_,p]}).sort((m,p)=>p[0]-m[0]);n(h.map(([,m])=>a[m])),await(0,tje.wait)(t),u()};u()}Ih.rankTransports=yJ;var J2={},km={};Object.defineProperty(km,"__esModule",{value:!0});km.UrlRequiredError=void 0;const oje=xt;class aje extends oje.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}km.UrlRequiredError=aje;var Z2={};const ije=Ns(Que);var eC={};Object.defineProperty(eC,"__esModule",{value:!0});eC.withTimeout=void 0;function sje(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:r}){return new Promise((o,a)=>{(async()=>{let i;try{const s=new AbortController;n>0&&(i=setTimeout(()=>{r?s.abort():a(t)},n)),o(await e({signal:s==null?void 0:s.signal}))}catch(s){s.name==="AbortError"&&a(t),a(s)}finally{clearTimeout(i)}})()})}eC.withTimeout=sje;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.rpc=e.getSocket=e.socketsCache=void 0;const t=ije,n=hr,r=Cm,o=eC,a=xr;let i=0;async function s(d,{body:f,fetchOptions:h={},timeout:m=1e4}){var g;const{headers:p,method:b,signal:v}=h;try{const w=await(0,o.withTimeout)(async({signal:C})=>await fetch(d,{...h,body:Array.isArray(f)?(0,a.stringify)(f.map(E=>({jsonrpc:"2.0",id:E.id??i++,...E}))):(0,a.stringify)({jsonrpc:"2.0",id:f.id??i++,...f}),headers:{...p,"Content-Type":"application/json"},method:b||"POST",signal:v||(m>0?C:void 0)}),{errorInstance:new n.TimeoutError({body:f,url:d}),timeout:m,signal:!0});let _;if((g=w.headers.get("Content-Type"))!=null&&g.startsWith("application/json")?_=await w.json():_=await w.text(),!w.ok)throw new n.HttpRequestError({body:f,details:(0,a.stringify)(_.error)||w.statusText,headers:w.headers,status:w.status,url:d});return _}catch(w){throw w instanceof n.HttpRequestError||w instanceof n.TimeoutError?w:new n.HttpRequestError({body:f,details:w.message,url:d})}}e.socketsCache=new Map;async function c(d){let f=e.socketsCache.get(d);if(f)return f;const{schedule:h}=(0,r.createBatchScheduler)({id:d,fn:async()=>{const b=new t.WebSocket(d),v=new Map,g=new Map,w=({data:C})=>{const x=JSON.parse(C),E=x.method==="eth_subscription",T=E?x.params.subscription:x.id,k=E?g:v,D=k.get(T);D&&D({data:C}),E||k.delete(T)},_=()=>{e.socketsCache.delete(d),b.removeEventListener("close",_),b.removeEventListener("message",w)};return b.addEventListener("close",_),b.addEventListener("message",w),b.readyState===t.WebSocket.CONNECTING&&await new Promise((C,x)=>{b&&(b.onopen=C,b.onerror=x)}),f=Object.assign(b,{requests:v,subscriptions:g}),e.socketsCache.set(d,f),[f]}}),[m,[p]]=await h();return p}e.getSocket=c;function l(d,{body:f,onResponse:h}){if(d.readyState===d.CLOSED||d.readyState===d.CLOSING)throw new n.WebSocketRequestError({body:f,url:d.url,details:"Socket is closed."});const m=i++,p=({data:b})=>{var g;const v=JSON.parse(b);typeof v.id=="number"&&m!==v.id||(h==null||h(v),f.method==="eth_subscribe"&&typeof v.result=="string"&&d.subscriptions.set(v.result,p),f.method==="eth_unsubscribe"&&d.subscriptions.delete((g=f.params)==null?void 0:g[0]))};return d.requests.set(m,p),d.send(JSON.stringify({jsonrpc:"2.0",...f,id:m})),d}async function u(d,{body:f,timeout:h=1e4}){return(0,o.withTimeout)(()=>new Promise(m=>e.rpc.webSocket(d,{body:f,onResponse:m})),{errorInstance:new n.TimeoutError({body:f,url:d.url}),timeout:h})}e.rpc={http:s,webSocket:l,webSocketAsync:u}})(Z2);Object.defineProperty(J2,"__esModule",{value:!0});J2.http=void 0;const cje=hr,lje=km,uje=Cm,E9=Z2,dje=Ml;function fje(e,t={}){const{batch:n,fetchOptions:r,key:o="http",name:a="HTTP JSON-RPC",retryDelay:i}=t;return({chain:s,retryCount:c,timeout:l})=>{const{batchSize:u=1e3,wait:d=0}=typeof n=="object"?n:{},f=t.retryCount??c,h=l??t.timeout??1e4,m=e||(s==null?void 0:s.rpcUrls.default.http[0]);if(!m)throw new lje.UrlRequiredError;return(0,dje.createTransport)({key:o,name:a,async request({method:p,params:b}){const v={method:p,params:b},{schedule:g}=(0,uje.createBatchScheduler)({id:`${e}`,wait:d,shouldSplitBatch(x){return x.length>u},fn:x=>E9.rpc.http(m,{body:x,fetchOptions:r,timeout:h}),sort:(x,E)=>x.id-E.id}),w=async x=>n?g(x):[await E9.rpc.http(m,{body:x,fetchOptions:r,timeout:h})],[{error:_,result:C}]=await w(v);if(_)throw new cje.RpcRequestError({body:v,error:_,url:m});return C},retryCount:f,retryDelay:i,timeout:h,type:"http"},{fetchOptions:r,url:e})}}J2.http=fje;var Dp={},kp={},tC={},jm={};Object.defineProperty(jm,"__esModule",{value:!0});jm.isNullUniversalResolverError=void 0;const hje=Ri,mje=xt,_9=Zn;function pje(e,t){var r,o,a;if(!(e instanceof mje.BaseError))return!1;const n=e.walk(i=>i instanceof _9.ContractFunctionRevertedError);return n instanceof _9.ContractFunctionRevertedError?!!(((r=n.data)==null?void 0:r.errorName)==="ResolverNotFound"||((o=n.data)==null?void 0:o.errorName)==="ResolverWildcardNotSupported"||(a=n.reason)!=null&&a.includes("Wildcard on non-extended resolvers is not supported")||t==="reverse"&&n.reason===hje.panicReasons[50]):!1}jm.isNullUniversalResolverError=pje;var Pm={},Vy={};Object.defineProperty(Vy,"__esModule",{value:!0});Vy.encodedLabelToLabelhash=void 0;const gje=qn;function yje(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return(0,gje.isHex)(t)?t:null}Vy.encodedLabelToLabelhash=yje;Object.defineProperty(Pm,"__esModule",{value:!0});Pm.namehash=void 0;const bje=On,x9=Gn(),C9=$e(),S9=lo,vje=Vy;function wje(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,C9.bytesToHex)(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const o=(0,vje.encodedLabelToLabelhash)(n[r]),a=o?(0,x9.toBytes)(o):(0,S9.keccak256)((0,x9.stringToBytes)(n[r]),"bytes");t=(0,S9.keccak256)((0,bje.concat)([t,a]),"bytes")}return(0,C9.bytesToHex)(t)}Pm.namehash=wje;var Od={},nC={};Object.defineProperty(nC,"__esModule",{value:!0});nC.encodeLabelhash=void 0;function Eje(e){return`[${e.slice(2)}]`}nC.encodeLabelhash=Eje;var Ky={};Object.defineProperty(Ky,"__esModule",{value:!0});Ky.labelhash=void 0;const _je=Gn(),xje=$e(),Cje=lo,Sje=Vy;function Tje(e){const t=new Uint8Array(32).fill(0);return e?(0,Sje.encodedLabelToLabelhash)(e)||(0,Cje.keccak256)((0,_je.stringToBytes)(e)):(0,xje.bytesToHex)(t)}Ky.labelhash=Tje;Object.defineProperty(Od,"__esModule",{value:!0});Od.packetToBytes=void 0;const L3=Gn(),Aje=nC,Dje=Ky;function kje(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const n=new Uint8Array((0,L3.stringToBytes)(t).byteLength+2);let r=0;const o=t.split(".");for(let a=0;a255&&(i=(0,L3.stringToBytes)((0,Aje.encodeLabelhash)((0,Dje.labelhash)(o[a])))),n[r]=i.length,n.set(i,r+1),r+=i.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}Od.packetToBytes=kje;Object.defineProperty(tC,"__esModule",{value:!0});tC.getEnsAddress=void 0;const U3=mn,jje=ui,Pje=ea,Ije=di,Oje=ci,Rje=$e(),Nje=jm,$3=Pm,Bje=Od,Fje=Bt,Mje=li;async function Lje(e,{blockNumber:t,blockTag:n,coinType:r,name:o,universalResolverAddress:a}){let i=a;if(!i){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=(0,Ije.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s=(0,Pje.encodeFunctionData)({abi:U3.addressResolverAbi,functionName:"addr",...r!=null?{args:[(0,$3.namehash)(o),BigInt(r)]}:{args:[(0,$3.namehash)(o)]}}),c=await(0,Fje.getAction)(e,Mje.readContract,"readContract")({address:i,abi:U3.universalResolverResolveAbi,functionName:"resolve",args:[(0,Rje.toHex)((0,Bje.packetToBytes)(o)),s],blockNumber:t,blockTag:n});if(c[0]==="0x")return null;const l=(0,jje.decodeFunctionResult)({abi:U3.addressResolverAbi,args:r!=null?[(0,$3.namehash)(o),BigInt(r)]:void 0,functionName:"addr",data:c[0]});return l==="0x"||(0,Oje.trim)(l)==="0x00"?null:l}catch(s){if((0,Nje.isNullUniversalResolverError)(s,"resolve"))return null;throw s}}tC.getEnsAddress=Lje;var rC={},oC={},Qn={},Qa={};Object.defineProperty(Qa,"__esModule",{value:!0});Qa.EnsAvatarUnsupportedNamespaceError=Qa.EnsAvatarUriResolutionError=Qa.EnsAvatarInvalidNftUriError=Qa.EnsAvatarInvalidMetadataError=void 0;const aC=xt;class Uje extends aC.BaseError{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)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}Qa.EnsAvatarInvalidMetadataError=Uje;class $je extends aC.BaseError{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}Qa.EnsAvatarInvalidNftUriError=$je;class zje extends aC.BaseError{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.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}Qa.EnsAvatarUriResolutionError=zje;class Hje extends aC.BaseError{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}Qa.EnsAvatarUnsupportedNamespaceError=Hje;Object.defineProperty(Qn,"__esModule",{value:!0});Qn.getNftTokenUri=Qn.parseNftUri=Qn.parseAvatarUri=Qn.getMetadataAvatarUri=Qn.getJsonImage=Qn.resolveAvatarUri=Qn.getGateway=Qn.isImageUri=void 0;const T9=li,Si=Qa,qje=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,Wje=/^(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,})(\/(?[\w\-.]+))?(?\/.*)?$/,Gje=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,Vje=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function bJ(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"||!globalThis.hasOwnProperty("Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}Qn.isImageUri=bJ;function zD(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}Qn.getGateway=zD;function vJ({uri:e,gatewayUrls:t}){const n=Gje.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=zD(t==null?void 0:t.ipfs,"https://ipfs.io"),o=zD(t==null?void 0:t.arweave,"https://arweave.net"),a=e.match(qje),{protocol:i,subpath:s,target:c,subtarget:l=""}=(a==null?void 0:a.groups)||{},u=i==="ipns:/"||s==="ipns/",d=i==="ipfs:/"||s==="ipfs/"||Wje.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(Vje,"");if(f.startsWith("o.json());return await EJ({gatewayUrls:e,uri:wJ(n)})}catch{throw new Si.EnsAvatarUriResolutionError({uri:t})}}Qn.getMetadataAvatarUri=Kje;async function EJ({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=vJ({uri:t,gatewayUrls:e});if(r||await bJ(n))return n;throw new Si.EnsAvatarUriResolutionError({uri:t})}Qn.parseAvatarUri=EJ;function Yje(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,o]=t.split("/"),[a,i]=n.split(":"),[s,c]=r.split(":");if(!a||a.toLowerCase()!=="eip155")throw new Si.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!i)throw new Si.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!c)throw new Si.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!o)throw new Si.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!s)throw new Si.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:parseInt(i),namespace:s.toLowerCase(),contractAddress:c,tokenID:o}}Qn.parseNftUri=Yje;async function Qje(e,{nft:t}){if(t.namespace==="erc721")return(0,T9.readContract)(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(0,T9.readContract)(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 Si.EnsAvatarUnsupportedNamespaceError({namespace:t.namespace})}Qn.getNftTokenUri=Qje;Object.defineProperty(oC,"__esModule",{value:!0});oC.parseAvatarRecord=void 0;const au=Qn;async function Xje(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?Jje(e,{gatewayUrls:t,record:n}):(0,au.parseAvatarUri)({uri:n,gatewayUrls:t})}oC.parseAvatarRecord=Xje;async function Jje(e,{gatewayUrls:t,record:n}){const r=(0,au.parseNftUri)(n),o=await(0,au.getNftTokenUri)(e,{nft:r}),{uri:a,isOnChain:i,isEncoded:s}=(0,au.resolveAvatarUri)({uri:o,gatewayUrls:t});if(i&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const l=s?atob(a.replace("data:application/json;base64,","")):a,u=JSON.parse(l);return(0,au.parseAvatarUri)({uri:(0,au.getJsonImage)(u),gatewayUrls:t})}let c=r.tokenID;return r.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),(0,au.getMetadataAvatarUri)({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,c)})}var Yy={};Object.defineProperty(Yy,"__esModule",{value:!0});Yy.getEnsText=void 0;const z3=mn,Zje=ui,e4e=ea,t4e=di,n4e=$e(),r4e=jm,o4e=Pm,a4e=Od,i4e=Bt,s4e=li;async function c4e(e,{blockNumber:t,blockTag:n,name:r,key:o,universalResolverAddress:a}){let i=a;if(!i){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=(0,t4e.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s=await(0,i4e.getAction)(e,s4e.readContract,"readContract")({address:i,abi:z3.universalResolverResolveAbi,functionName:"resolve",args:[(0,n4e.toHex)((0,a4e.packetToBytes)(r)),(0,e4e.encodeFunctionData)({abi:z3.textResolverAbi,functionName:"text",args:[(0,o4e.namehash)(r),o]})],blockNumber:t,blockTag:n});if(s[0]==="0x")return null;const c=(0,Zje.decodeFunctionResult)({abi:z3.textResolverAbi,functionName:"text",data:s[0]});return c===""?null:c}catch(s){if((0,r4e.isNullUniversalResolverError)(s,"resolve"))return null;throw s}}Yy.getEnsText=c4e;Object.defineProperty(rC,"__esModule",{value:!0});rC.getEnsAvatar=void 0;const l4e=oC,u4e=Bt,d4e=Yy;async function f4e(e,{blockNumber:t,blockTag:n,gatewayUrls:r,name:o,universalResolverAddress:a}){const i=await(0,u4e.getAction)(e,d4e.getEnsText,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:o,universalResolverAddress:a});if(!i)return null;try{return await(0,l4e.parseAvatarRecord)(e,{record:i,gatewayUrls:r})}catch{return null}}rC.getEnsAvatar=f4e;var iC={};Object.defineProperty(iC,"__esModule",{value:!0});iC.getEnsName=void 0;const h4e=mn,m4e=di,p4e=$e(),g4e=jm,y4e=Od,b4e=Bt,v4e=li;async function w4e(e,{address:t,blockNumber:n,blockTag:r,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=(0,m4e.getChainContractAddress)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}const i=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const[s,c]=await(0,b4e.getAction)(e,v4e.readContract,"readContract")({address:a,abi:h4e.universalResolverReverseAbi,functionName:"reverse",args:[(0,p4e.toHex)((0,y4e.packetToBytes)(i))],blockNumber:n,blockTag:r});return t.toLowerCase()!==c.toLowerCase()?null:s}catch(s){if((0,g4e.isNullUniversalResolverError)(s,"reverse"))return null;throw s}}iC.getEnsName=w4e;var sC={};Object.defineProperty(sC,"__esModule",{value:!0});sC.getEnsResolver=void 0;const E4e=di,_4e=$e(),x4e=Od,C4e=Bt,S4e=li;async function T4e(e,{blockNumber:t,blockTag:n,name:r,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=(0,E4e.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}const[i]=await(0,C4e.getAction)(e,S4e.readContract,"readContract")({address:a,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,_4e.toHex)((0,x4e.packetToBytes)(r))],blockNumber:t,blockTag:n});return i}sC.getEnsResolver=T4e;var cC={};Object.defineProperty(cC,"__esModule",{value:!0});cC.createBlockFilter=void 0;const A4e=_d;async function D4e(e){const t=(0,A4e.createFilterRequestScope)(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}cC.createBlockFilter=D4e;var Qy={};Object.defineProperty(Qy,"__esModule",{value:!0});Qy.createEventFilter=void 0;const k4e=Ws,A9=$e(),j4e=_d;async function P4e(e,{address:t,args:n,event:r,events:o,fromBlock:a,strict:i,toBlock:s}={}){const c=o??(r?[r]:void 0),l=(0,j4e.createFilterRequestScope)(e,{method:"eth_newFilter"});let u=[];c&&(u=[c.flatMap(f=>(0,k4e.encodeEventTopics)({abi:[f],eventName:f.name,args:n}))],r&&(u=u[0]));const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?(0,A9.numberToHex)(a):a,toBlock:typeof s=="bigint"?(0,A9.numberToHex)(s):s,...u.length?{topics:u}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:a,id:d,request:l(d),strict:i,toBlock:s,type:"event"}}Qy.createEventFilter=P4e;var Xy={};Object.defineProperty(Xy,"__esModule",{value:!0});Xy.createPendingTransactionFilter=void 0;const I4e=_d;async function O4e(e){const t=(0,I4e.createFilterRequestScope)(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}Xy.createPendingTransactionFilter=O4e;var lC={};Object.defineProperty(lC,"__esModule",{value:!0});lC.getBalance=void 0;const R4e=$e();async function N4e(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n?(0,R4e.numberToHex)(n):void 0,a=await e.request({method:"eth_getBalance",params:[t,o||r]});return BigInt(a)}lC.getBalance=N4e;var uC={};Object.defineProperty(uC,"__esModule",{value:!0});uC.getBlockTransactionCount=void 0;const B4e=Wn(),F4e=$e();async function M4e(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){const o=n!==void 0?(0,F4e.numberToHex)(n):void 0;let a;return t?a=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):a=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[o||r]}),(0,B4e.hexToNumber)(a)}uC.getBlockTransactionCount=M4e;var dC={};Object.defineProperty(dC,"__esModule",{value:!0});dC.getBytecode=void 0;const L4e=$e();async function U4e(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n!==void 0?(0,L4e.numberToHex)(n):void 0,a=await e.request({method:"eth_getCode",params:[t,o||r]});if(a!=="0x")return a}dC.getBytecode=U4e;var fC={},hC={};Object.defineProperty(hC,"__esModule",{value:!0});hC.formatFeeHistory=void 0;function $4e(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)))}}hC.formatFeeHistory=$4e;Object.defineProperty(fC,"__esModule",{value:!0});fC.getFeeHistory=void 0;const D9=$e(),z4e=hC;async function H4e(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:o}){const a=n?(0,D9.numberToHex)(n):void 0,i=await e.request({method:"eth_feeHistory",params:[(0,D9.numberToHex)(t),a||r,o]});return(0,z4e.formatFeeHistory)(i)}fC.getFeeHistory=H4e;var mC={};Object.defineProperty(mC,"__esModule",{value:!0});mC.getFilterLogs=void 0;const k9=Jt(),q4e=Qs,j9=Vi;async function W4e(e,{filter:t}){const n=t.strict??!1;return(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(o=>{var a;try{const{eventName:i,args:s}="abi"in t&&t.abi?(0,q4e.decodeEventLog)({abi:t.abi,data:o.data,topics:o.topics,strict:n}):{eventName:void 0,args:void 0};return(0,j9.formatLog)(o,{args:s,eventName:i})}catch(i){let s,c;if(i instanceof k9.DecodeLogDataMismatch||i instanceof k9.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;s=i.abiItem.name,c=(a=i.abiItem.inputs)==null?void 0:a.some(l=>!("name"in l&&l.name))}return(0,j9.formatLog)(o,{args:c?[]:{},eventName:s})}}).filter(Boolean)}mC.getFilterLogs=W4e;var jp={},Pp={},H3={},Jy={};Object.defineProperty(Jy,"__esModule",{value:!0});Jy.defineChain=void 0;function G4e(e,t={}){const{fees:n=e.fees,formatters:r=e.formatters,serializers:o=e.serializers}=t;return{...e,fees:n,formatters:r,serializers:o}}Jy.defineChain=G4e;var Zy={};Object.defineProperty(Zy,"__esModule",{value:!0});Zy.extractChain=void 0;function V4e({chains:e,id:t}){return e.find(n=>n.id===t)}Zy.extractChain=V4e;var Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.integerRegex=Ni.bytesRegex=Ni.arrayRegex=void 0;Ni.arrayRegex=/^(.*)\[([0-9]*)\]$/;Ni.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;Ni.integerRegex=/^(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)?$/;var Qi={},Xl={},P9;function eb(){if(P9)return Xl;P9=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.hashDomain=Xl.hashTypedData=void 0;const e=ao,t=On,n=$e(),r=lo,o=pC();function a({domain:h,message:m,primaryType:p,types:b}){const v=typeof h>"u"?{}:h,g={EIP712Domain:(0,o.getTypesForEIP712Domain)({domain:v}),...b};(0,o.validateTypedData)({domain:v,message:m,primaryType:p,types:g});const w=["0x1901"];return v&&w.push(i({domain:v,types:g})),p!=="EIP712Domain"&&w.push(s({data:m,primaryType:p,types:g})),(0,r.keccak256)((0,t.concat)(w))}Xl.hashTypedData=a;function i({domain:h,types:m}){return s({data:h,primaryType:"EIP712Domain",types:m})}Xl.hashDomain=i;function s({data:h,primaryType:m,types:p}){const b=c({data:h,primaryType:m,types:p});return(0,r.keccak256)(b)}function c({data:h,primaryType:m,types:p}){const b=[{type:"bytes32"}],v=[l({primaryType:m,types:p})];for(const g of p[m]){const[w,_]=f({types:p,name:g.name,type:g.type,value:h[g.name]});b.push(w),v.push(_)}return(0,e.encodeAbiParameters)(b,v)}function l({primaryType:h,types:m}){const p=(0,n.toHex)(u({primaryType:h,types:m}));return(0,r.keccak256)(p)}function u({primaryType:h,types:m}){let p="";const b=d({primaryType:h,types:m});b.delete(h);const v=[h,...Array.from(b).sort()];for(const g of v)p+=`${g}(${m[g].map(({name:w,type:_})=>`${_} ${w}`).join(",")})`;return p}function d({primaryType:h,types:m},p=new Set){const b=h.match(/^\w*/u),v=b==null?void 0:b[0];if(p.has(v)||m[v]===void 0)return p;p.add(v);for(const g of m[v])d({primaryType:g.type,types:m},p);return p}function f({types:h,name:m,type:p,value:b}){if(h[p]!==void 0)return[{type:"bytes32"},(0,r.keccak256)(c({data:b,primaryType:p,types:h}))];if(p==="bytes")return b=`0x${(b.length%2?"0":"")+b.slice(2)}`,[{type:"bytes32"},(0,r.keccak256)(b)];if(p==="string")return[{type:"bytes32"},(0,r.keccak256)((0,n.toHex)(b))];if(p.lastIndexOf("]")===p.length-1){const v=p.slice(0,p.lastIndexOf("[")),g=b.map(w=>f({name:m,type:v,types:h,value:w}));return[{type:"bytes32"},(0,r.keccak256)((0,e.encodeAbiParameters)(g.map(([w])=>w),g.map(([,w])=>w)))]}return[{type:p},b]}return Xl}var I9;function pC(){if(I9)return Qi;I9=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.domainSeparator=Qi.getTypesForEIP712Domain=Qi.validateTypedData=void 0;const e=Jt(),t=Zo,n=uo,r=ka,o=$e(),a=Ni,i=eb();function s({domain:u,message:d,primaryType:f,types:h}){const m=h,p=(b,v)=>{for(const g of b){const{name:w,type:_}=g,C=_,x=v[w],E=C.match(a.integerRegex);if(E&&(typeof x=="number"||typeof x=="bigint")){const[D,R,F]=E;(0,o.numberToHex)(x,{signed:R==="int",size:parseInt(F)/8})}if(C==="address"&&typeof x=="string"&&!(0,n.isAddress)(x))throw new t.InvalidAddressError({address:x});const T=C.match(a.bytesRegex);if(T){const[D,R]=T;if(R&&(0,r.size)(x)!==parseInt(R))throw new e.BytesSizeMismatchError({expectedSize:parseInt(R),givenSize:(0,r.size)(x)})}const k=m[C];k&&p(k,x)}};if(m.EIP712Domain&&u&&p(m.EIP712Domain,u),f!=="EIP712Domain"){const b=m[f];p(b,d)}}Qi.validateTypedData=s;function c({domain:u}){return[typeof(u==null?void 0:u.name)=="string"&&{name:"name",type:"string"},(u==null?void 0:u.version)&&{name:"version",type:"string"},typeof(u==null?void 0:u.chainId)=="number"&&{name:"chainId",type:"uint256"},(u==null?void 0:u.verifyingContract)&&{name:"verifyingContract",type:"address"},(u==null?void 0:u.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}Qi.getTypesForEIP712Domain=c;function l({domain:u}){return(0,i.hashDomain)({domain:u,types:{EIP712Domain:c({domain:u})}})}return Qi.domainSeparator=l,Qi}var tb={};Object.defineProperty(tb,"__esModule",{value:!0});tb.decodeFunctionData=void 0;const K4e=Jt(),O9=Nr,Y4e=zi,Q4e=Hi,X4e=Gs();function J4e({abi:e,data:t}){const n=(0,O9.slice)(t,0,4),r=e.find(o=>o.type==="function"&&n===(0,Y4e.getFunctionSelector)((0,X4e.formatAbiItem)(o)));if(!r)throw new K4e.AbiFunctionSignatureNotFoundError(n,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:r.name,args:"inputs"in r&&r.inputs&&r.inputs.length>0?(0,Q4e.decodeAbiParameters)(r.inputs,(0,O9.slice)(t,4)):void 0}}tb.decodeFunctionData=J4e;var Im={};Object.defineProperty(Im,"__esModule",{value:!0});Im.encodeDeployData=void 0;const q3=Jt(),Z4e=On,ePe=ao,W3="/docs/contract/encodeDeployData";function tPe({abi:e,args:t,bytecode:n}){if(!t||t.length===0)return n;const r=e.find(a=>"type"in a&&a.type==="constructor");if(!r)throw new q3.AbiConstructorNotFoundError({docsPath:W3});if(!("inputs"in r))throw new q3.AbiConstructorParamsNotFoundError({docsPath:W3});if(!r.inputs||r.inputs.length===0)throw new q3.AbiConstructorParamsNotFoundError({docsPath:W3});const o=(0,ePe.encodeAbiParameters)(r.inputs,t);return(0,Z4e.concatHex)([n,o])}Im.encodeDeployData=tPe;var nb={};Object.defineProperty(nb,"__esModule",{value:!0});nb.encodeErrorResult=void 0;const G3=Jt(),nPe=On,rPe=zi,oPe=ao,aPe=Gs(),iPe=Br,V3="/docs/contract/encodeErrorResult";function sPe({abi:e,errorName:t,args:n}){let r=e[0];if(t&&(r=(0,iPe.getAbiItem)({abi:e,args:n,name:t}),!r))throw new G3.AbiErrorNotFoundError(t,{docsPath:V3});if(r.type!=="error")throw new G3.AbiErrorNotFoundError(void 0,{docsPath:V3});const o=(0,aPe.formatAbiItem)(r),a=(0,rPe.getFunctionSelector)(o);let i="0x";if(n&&n.length>0){if(!r.inputs)throw new G3.AbiErrorInputsNotFoundError(r.name,{docsPath:V3});i=(0,oPe.encodeAbiParameters)(r.inputs,n)}return(0,nPe.concatHex)([a,i])}nb.encodeErrorResult=sPe;var rb={};Object.defineProperty(rb,"__esModule",{value:!0});rb.encodeFunctionResult=void 0;const K3=Jt(),cPe=ao,lPe=Br,uPe="/docs/contract/encodeFunctionResult";function dPe({abi:e,functionName:t,result:n}){let r=e[0];if(t&&(r=(0,lPe.getAbiItem)({abi:e,name:t}),!r))throw new K3.AbiFunctionNotFoundError(t,{docsPath:"/docs/contract/encodeFunctionResult"});if(r.type!=="function")throw new K3.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionResult"});if(!r.outputs)throw new K3.AbiFunctionOutputsNotFoundError(r.name,{docsPath:uPe});let o=Array.isArray(n)?n:[n];return r.outputs.length===0&&!o[0]&&(o=[]),(0,cPe.encodeAbiParameters)(r.outputs,o)}rb.encodeFunctionResult=dPe;var ob={};Object.defineProperty(ob,"__esModule",{value:!0});ob.encodePacked=void 0;const HD=Jt(),fPe=Zo,hPe=uo,_J=On,Y3=eo,Q3=$e(),X3=Ni;function mPe(e,t){if(e.length!==t.length)throw new HD.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;rthis.bytes.length-1)throw new J3.PositionOutOfBoundsError({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new J3.NegativeOffsetError({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},incrementPosition(e){if(e<0)throw new J3.NegativeOffsetError({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(){const e=this.inspectByte();return this.position++,e},readBytes(e){const t=this.inspectBytes(e);return this.position+=e,t},readUint8(){const e=this.inspectUint8();return this.position+=1,e},readUint16(){const e=this.inspectUint16();return this.position+=2,e},readUint24(){const e=this.inspectUint24();return this.position+=3,e},readUint32(){const e=this.inspectUint32();return this.position+=4,e},setPosition(e){this.assertPosition(e),this.position=e}};function vPe(e){const t=Object.create(bPe);return t.bytes=e,t.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),t}ab.createCursor=vPe;var R9;function gC(){if(R9)return Ji;R9=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.hexToRlp=Ji.bytesToRlp=Ji.toRlp=void 0;const e=LJ(),t=ab,n=Gn(),r=$e();function o(d,f="hex"){const h=s(d),m=(0,t.createCursor)(new Uint8Array(h.length));return h.encode(m),f==="hex"?(0,r.bytesToHex)(m.bytes):m.bytes}Ji.toRlp=o;function a(d,f="bytes"){return o(d,f)}Ji.bytesToRlp=a;function i(d,f="hex"){return o(d,f)}Ji.hexToRlp=i;function s(d){return Array.isArray(d)?c(d.map(f=>s(f))):l(d)}function c(d){const f=d.reduce((p,b)=>p+b.length,0),h=u(f);return{length:f<=55?1+f:1+h+f,encode(p){f<=55?p.pushByte(192+f):(p.pushByte(247+h),h===1?p.pushUint8(f):h===2?p.pushUint16(f):h===3?p.pushUint24(f):p.pushUint32(f));for(const{encode:b}of d)b(p)}}}function l(d){const f=typeof d=="string"?(0,n.hexToBytes)(d):d,h=u(f.length);return{length:f.length===1&&f[0]<128?1:f.length<=55?1+f.length:1+h+f.length,encode(p){f.length===1&&f[0]<128?p.pushBytes(f):f.length<=55?(p.pushByte(128+f.length),p.pushBytes(f)):(p.pushByte(183+h),h===1?p.pushUint8(f.length):h===2?p.pushUint16(f.length):h===3?p.pushUint24(f.length):p.pushUint32(f.length),p.pushBytes(f))}}}function u(d){if(d<2**8)return 1;if(d<2**16)return 2;if(d<2**24)return 3;if(d<2**32)return 4;throw new e.BaseError("Length is too large.")}return Ji}var N9;function SJ(){if(N9)return Xi;N9=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.getCreate2Address=Xi.getCreateAddress=Xi.getContractAddress=void 0;const e=On,t=Om,n=eo,r=Nr,o=Gn(),a=gC(),i=lo,s=Co;function c(d){return d.opcode==="CREATE2"?u(d):l(d)}Xi.getContractAddress=c;function l(d){const f=(0,o.toBytes)((0,s.getAddress)(d.from));let h=(0,o.toBytes)(d.nonce);return h[0]===0&&(h=new Uint8Array([])),(0,s.getAddress)(`0x${(0,i.keccak256)((0,a.toRlp)([f,h],"bytes")).slice(26)}`)}Xi.getCreateAddress=l;function u(d){const f=(0,o.toBytes)((0,s.getAddress)(d.from)),h=(0,n.pad)((0,t.isBytes)(d.salt)?d.salt:(0,o.toBytes)(d.salt),{size:32}),m="bytecodeHash"in d?(0,t.isBytes)(d.bytecodeHash)?d.bytecodeHash:(0,o.toBytes)(d.bytecodeHash):(0,i.keccak256)(d.bytecode,"bytes");return(0,s.getAddress)((0,r.slice)((0,i.keccak256)((0,e.concat)([(0,o.toBytes)("0xff"),f,h,m])),12))}return Xi.getCreate2Address=u,Xi}var ji={};Object.defineProperty(ji,"__esModule",{value:!0});ji.extractFunctionType=ji.extractFunctionParams=ji.extractFunctionName=ji.extractFunctionParts=void 0;const wPe=/((function|event)\s)?(.*)(\((.*)\))/;function yC(e){const t=e.match(wPe),n=(t==null?void 0:t[2])||void 0,r=t==null?void 0:t[3],o=(t==null?void 0:t[5])||void 0;return{type:n,name:r,params:o}}ji.extractFunctionParts=yC;function EPe(e){return yC(e).name}ji.extractFunctionName=EPe;function _Pe(e){const t=yC(e).params,n=t==null?void 0:t.split(",").map(r=>r.trim().split(" "));return n==null?void 0:n.map(r=>({type:r[0],name:r[1]==="indexed"?r[2]:r[1],...r[1]==="indexed"?{indexed:!0}:{}}))}ji.extractFunctionParams=_Pe;function xPe(e){return yC(e).type}ji.extractFunctionType=xPe;var gl={};Object.defineProperty(gl,"__esModule",{value:!0});gl.defineTransactionReceipt=gl.formatTransactionReceipt=void 0;const CPe=Wn(),SPe=Nl,TPe=Vi,APe=wm,DPe={"0x0":"reverted","0x1":"success"};function TJ(e){return{...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(t=>(0,TPe.formatLog)(t)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,CPe.hexToNumber)(e.transactionIndex):null,status:e.status?DPe[e.status]:null,type:e.type?APe.transactionType[e.type]||e.type:null}}gl.formatTransactionReceipt=TJ;gl.defineTransactionReceipt=(0,SPe.defineFormatter)("transactionReceipt",TJ);var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.bytesToString=Lo.bytesToNumber=Lo.bytesToBool=Lo.bytesToBigInt=Lo.fromBytes=void 0;const kPe=hn,AJ=ci,Rh=Wn(),oP=$e();function jPe(e,t){const n=typeof t=="string"?{to:t}:t,r=n.to;return r==="number"?jJ(e,n):r==="bigint"?DJ(e,n):r==="boolean"?kJ(e,n):r==="string"?PJ(e,n):(0,oP.bytesToHex)(e,n)}Lo.fromBytes=jPe;function DJ(e,t={}){typeof t.size<"u"&&(0,Rh.assertSize)(e,{size:t.size});const n=(0,oP.bytesToHex)(e,t);return(0,Rh.hexToBigInt)(n)}Lo.bytesToBigInt=DJ;function kJ(e,t={}){let n=e;if(typeof t.size<"u"&&((0,Rh.assertSize)(n,{size:t.size}),n=(0,AJ.trim)(n)),n.length>1||n[0]>1)throw new kPe.InvalidBytesBooleanError(n);return!!n[0]}Lo.bytesToBool=kJ;function jJ(e,t={}){typeof t.size<"u"&&(0,Rh.assertSize)(e,{size:t.size});const n=(0,oP.bytesToHex)(e,t);return(0,Rh.hexToNumber)(n)}Lo.bytesToNumber=jJ;function PJ(e,t={}){let n=e;return typeof t.size<"u"&&((0,Rh.assertSize)(n,{size:t.size}),n=(0,AJ.trim)(n,{dir:"right"})),new TextDecoder().decode(n)}Lo.bytesToString=PJ;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});Bi.rlpToHex=Bi.rlpToBytes=Bi.fromRlp=void 0;const PPe=xt,IPe=hn,OPe=ab,RPe=Gn(),B9=$e();function aP(e,t="hex"){const n=(()=>{if(typeof e=="string"){if(e.length>3&&e.length%2!==0)throw new IPe.InvalidHexValueError(e);return(0,RPe.hexToBytes)(e)}return e})(),r=(0,OPe.createCursor)(n);return IJ(r,t)}Bi.fromRlp=aP;function NPe(e,t="bytes"){return aP(e,t)}Bi.rlpToBytes=NPe;function BPe(e,t="hex"){return aP(e,t)}Bi.rlpToHex=BPe;function IJ(e,t="hex"){if(e.bytes.length===0)return t==="hex"?(0,B9.bytesToHex)(e.bytes):e.bytes;const n=e.readByte();if(n<128&&e.decrementPosition(1),n<192){const o=F9(e,n,128),a=e.readBytes(o);return t==="hex"?(0,B9.bytesToHex)(a):a}const r=F9(e,n,192);return FPe(e,r,t)}function F9(e,t,n){if(n===128&&t<128)return 1;if(t<=n+55)return t-n;if(t===n+55+1)return e.readUint8();if(t===n+55+2)return e.readUint16();if(t===n+55+3)return e.readUint24();if(t===n+55+4)return e.readUint32();throw new PPe.BaseError("Invalid RLP prefix")}function FPe(e,t,n){const r=e.position,o=[];for(;e.position-rcb);return`0x${a.Signature.fromCompact(n.substring(2,130)).addRecoveryBit(o-27).recoverPublicKey(r.substring(2)).toHex(!1)}`}Nm.recoverPublicKey=e7e;Object.defineProperty(Rd,"__esModule",{value:!0});Rd.recoverAddress=void 0;const t7e=Dm,n7e=Nm;async function r7e({hash:e,signature:t}){return(0,t7e.publicKeyToAddress)(await(0,n7e.recoverPublicKey)({hash:e,signature:t}))}Rd.recoverAddress=r7e;var Bm={},Fm={},lb={};Object.defineProperty(lb,"__esModule",{value:!0});lb.presignMessagePrefix=void 0;lb.presignMessagePrefix=`Ethereum Signed Message: -`;Object.defineProperty(Fm,"__esModule",{value:!0});Fm.hashMessage=void 0;const o7e=lb,a7e=On,Z3=Gn(),i7e=lo;function s7e(e,t){const n=typeof e=="string"?(0,Z3.stringToBytes)(e):e.raw instanceof Uint8Array?e.raw:(0,Z3.toBytes)(e.raw),r=(0,Z3.stringToBytes)(`${o7e.presignMessagePrefix}${n.length}`);return(0,i7e.keccak256)((0,a7e.concat)([r,n]),t)}Fm.hashMessage=s7e;Object.defineProperty(Bm,"__esModule",{value:!0});Bm.recoverMessageAddress=void 0;const c7e=Fm,l7e=Rd;async function u7e({message:e,signature:t}){return(0,l7e.recoverAddress)({hash:(0,c7e.hashMessage)(e),signature:t})}Bm.recoverMessageAddress=u7e;var Mm={};Object.defineProperty(Mm,"__esModule",{value:!0});Mm.recoverTypedDataAddress=void 0;const d7e=eb(),f7e=Rd;async function h7e({domain:e,message:t,primaryType:n,signature:r,types:o}){return(0,f7e.recoverAddress)({hash:(0,d7e.hashTypedData)({domain:e,message:t,primaryType:n,types:o}),signature:r})}Mm.recoverTypedDataAddress=h7e;var ub={};Object.defineProperty(ub,"__esModule",{value:!0});ub.verifyMessage=void 0;const m7e=Co,p7e=Bl,g7e=Bm;async function y7e({address:e,message:t,signature:n}){return(0,p7e.isAddressEqual)((0,m7e.getAddress)(e),await(0,g7e.recoverMessageAddress)({message:t,signature:n}))}ub.verifyMessage=y7e;var db={};Object.defineProperty(db,"__esModule",{value:!0});db.verifyTypedData=void 0;const b7e=Co,v7e=Bl,w7e=Mm;async function E7e({address:e,domain:t,message:n,primaryType:r,signature:o,types:a}){return(0,v7e.isAddressEqual)((0,b7e.getAddress)(e),await(0,w7e.recoverTypedDataAddress)({domain:t,message:n,primaryType:r,signature:o,types:a}))}db.verifyTypedData=E7e;var Lm={};Object.defineProperty(Lm,"__esModule",{value:!0});Lm.getSerializedTransactionType=void 0;const _7e=pt,x7e=Nr,C7e=Wn();function S7e(e){const t=(0,x7e.sliceHex)(e,0,1);if(t==="0x02")return"eip1559";if(t==="0x01")return"eip2930";if(t!=="0x"&&(0,C7e.hexToNumber)(t)>=192)return"legacy";throw new _7e.InvalidSerializedTransactionTypeError({serializedType:t})}Lm.getSerializedTransactionType=S7e;var ni={};Object.defineProperty(ni,"__esModule",{value:!0});ni.assertTransactionLegacy=ni.assertTransactionEIP2930=ni.assertTransactionEIP1559=void 0;const iP=Zo,NE=xt,sP=Pr,BE=St,cP=uo;function T7e(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=e;if(t<=0)throw new sP.InvalidChainIdError({chainId:t});if(a&&!(0,cP.isAddress)(a))throw new iP.InvalidAddressError({address:a});if(r)throw new NE.BaseError("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(o&&o>2n**256n-1n)throw new BE.FeeCapTooHighError({maxFeePerGas:o});if(n&&o&&n>o)throw new BE.TipAboveFeeCapError({maxFeePerGas:o,maxPriorityFeePerGas:n})}ni.assertTransactionEIP1559=T7e;function A7e(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=e;if(t<=0)throw new sP.InvalidChainIdError({chainId:t});if(a&&!(0,cP.isAddress)(a))throw new iP.InvalidAddressError({address:a});if(n||o)throw new NE.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>2n**256n-1n)throw new BE.FeeCapTooHighError({maxFeePerGas:r})}ni.assertTransactionEIP2930=A7e;function D7e(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a,accessList:i}=e;if(a&&!(0,cP.isAddress)(a))throw new iP.InvalidAddressError({address:a});if(typeof t<"u"&&t<=0)throw new sP.InvalidChainIdError({chainId:t});if(n||o)throw new NE.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>2n**256n-1n)throw new BE.FeeCapTooHighError({maxFeePerGas:r});if(i)throw new NE.BaseError("`accessList` is not a valid Legacy Transaction attribute.")}ni.assertTransactionLegacy=D7e;var ps={};Object.defineProperty(ps,"__esModule",{value:!0});ps.parseAccessList=ps.toTransactionArray=ps.parseTransaction=void 0;const k7e=Zo,FE=pt,j7e=uo,An=qn,U9=eo,P7e=ci,ur=Wn(),OJ=Bi,I7e=Rm,lP=ni,O7e=Lm;function R7e(e){const t=(0,O7e.getSerializedTransactionType)(e);return t==="eip1559"?N7e(e):t==="eip2930"?B7e(e):F7e(e)}ps.parseTransaction=R7e;function N7e(e){const t=uP(e),[n,r,o,a,i,s,c,l,u,d,f,h]=t;if(!(t.length===9||t.length===12))throw new FE.InvalidSerializedTransactionError({attributes:{chainId:n,nonce:r,maxPriorityFeePerGas:o,maxFeePerGas:a,gas:i,to:s,value:c,data:l,accessList:u,...t.length>9?{v:d,r:f,s:h}:{}},serializedTransaction:e,type:"eip1559"});const m={chainId:(0,ur.hexToNumber)(n),type:"eip1559"};return(0,An.isHex)(s)&&s!=="0x"&&(m.to=s),(0,An.isHex)(i)&&i!=="0x"&&(m.gas=(0,ur.hexToBigInt)(i)),(0,An.isHex)(l)&&l!=="0x"&&(m.data=l),(0,An.isHex)(r)&&r!=="0x"&&(m.nonce=(0,ur.hexToNumber)(r)),(0,An.isHex)(c)&&c!=="0x"&&(m.value=(0,ur.hexToBigInt)(c)),(0,An.isHex)(a)&&a!=="0x"&&(m.maxFeePerGas=(0,ur.hexToBigInt)(a)),(0,An.isHex)(o)&&o!=="0x"&&(m.maxPriorityFeePerGas=(0,ur.hexToBigInt)(o)),u.length!==0&&u!=="0x"&&(m.accessList=dP(u)),(0,lP.assertTransactionEIP1559)(m),{...t.length===12?RJ(t):void 0,...m}}function B7e(e){const t=uP(e),[n,r,o,a,i,s,c,l,u,d,f]=t;if(!(t.length===8||t.length===11))throw new FE.InvalidSerializedTransactionError({attributes:{chainId:n,nonce:r,gasPrice:o,gas:a,to:i,value:s,data:c,accessList:l,...t.length>8?{v:u,r:d,s:f}:{}},serializedTransaction:e,type:"eip2930"});const h={chainId:(0,ur.hexToNumber)(n),type:"eip2930"};return(0,An.isHex)(i)&&i!=="0x"&&(h.to=i),(0,An.isHex)(a)&&a!=="0x"&&(h.gas=(0,ur.hexToBigInt)(a)),(0,An.isHex)(c)&&c!=="0x"&&(h.data=c),(0,An.isHex)(r)&&r!=="0x"&&(h.nonce=(0,ur.hexToNumber)(r)),(0,An.isHex)(s)&&s!=="0x"&&(h.value=(0,ur.hexToBigInt)(s)),(0,An.isHex)(o)&&o!=="0x"&&(h.gasPrice=(0,ur.hexToBigInt)(o)),l.length!==0&&l!=="0x"&&(h.accessList=dP(l)),(0,lP.assertTransactionEIP2930)(h),{...t.length===11?RJ(t):void 0,...h}}function F7e(e){const t=(0,OJ.fromRlp)(e,"hex"),[n,r,o,a,i,s,c,l,u]=t;if(!(t.length===6||t.length===9))throw new FE.InvalidSerializedTransactionError({attributes:{nonce:n,gasPrice:r,gas:o,to:a,value:i,data:s,...t.length>6?{v:c,r:l,s:u}:{}},serializedTransaction:e,type:"legacy"});const d={type:"legacy"};if((0,An.isHex)(a)&&a!=="0x"&&(d.to=a),(0,An.isHex)(o)&&o!=="0x"&&(d.gas=(0,ur.hexToBigInt)(o)),(0,An.isHex)(s)&&s!=="0x"&&(d.data=s),(0,An.isHex)(n)&&n!=="0x"&&(d.nonce=(0,ur.hexToNumber)(n)),(0,An.isHex)(i)&&i!=="0x"&&(d.value=(0,ur.hexToBigInt)(i)),(0,An.isHex)(r)&&r!=="0x"&&(d.gasPrice=(0,ur.hexToBigInt)(r)),(0,lP.assertTransactionLegacy)(d),t.length===6)return d;const f=(0,An.isHex)(c)&&c!=="0x"?(0,ur.hexToBigInt)(c):0n;if(u==="0x"&&l==="0x")return f>0&&(d.chainId=Number(f)),d;const h=f,m=Number((h-35n)/2n);if(m>0)d.chainId=m;else if(h!==27n&&h!==28n)throw new FE.InvalidLegacyVError({v:h});return d.v=h,d.s=u,d.r=l,d}function uP(e){return(0,OJ.fromRlp)(`0x${e.slice(4)}`,"hex")}ps.toTransactionArray=uP;function dP(e){const t=[];for(let n=0;n(0,I7e.isHash)(a)?a:(0,P7e.trim)(a))})}return t}ps.parseAccessList=dP;function RJ(e){const t=e.slice(-3),n=t[0]==="0x"||(0,ur.hexToBigInt)(t[0])===0n?27n:28n;return{r:(0,U9.padHex)(t[1],{size:32}),s:(0,U9.padHex)(t[2],{size:32}),v:n,yParity:n===27n?0:1}}var Ip={},Um={};Object.defineProperty(Um,"__esModule",{value:!0});Um.serializeAccessList=void 0;const M7e=Zo,L7e=pt,U7e=uo;function $7e(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n{if(m>0)return BigInt(m*2)+BigInt(35n+h.v-27n);if(h.v>=35n)return(h.v-35n)/2n>0?h.v:27n+(h.v===35n?0n:1n);const E=27n+(h.v===27n?0n:1n);if(h.v!==E)throw new e.InvalidLegacyVError({v:h.v});return E})();C=[...C,(0,r.toHex)(x),h.r,h.s]}else m>0&&(C=[...C,(0,r.toHex)(m),"0x","0x"]);return(0,o.toRlp)(C)}return Ip}var Nd={};Object.defineProperty(Nd,"__esModule",{value:!0});Nd.parseUnits=void 0;function z7e(e,t){let[n,r="0"]=e.split(".");const o=n.startsWith("-");if(o&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),t===0)Math.round(+`.${r}`)===1&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>t){const[a,i,s]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],c=Math.round(+`${i}.${s}`);c>9?r=`${BigInt(a)+BigInt(1)}0`.padStart(a.length+1,"0"):r=`${a}${c}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${o?"-":""}${n}${r}`)}Nd.parseUnits=z7e;var fb={};Object.defineProperty(fb,"__esModule",{value:!0});fb.parseEther=void 0;const H7e=ya,q7e=Nd;function W7e(e,t="wei"){return(0,q7e.parseUnits)(e,H7e.etherUnits[t])}fb.parseEther=W7e;var hb={};Object.defineProperty(hb,"__esModule",{value:!0});hb.parseGwei=void 0;const G7e=ya,V7e=Nd;function K7e(e,t="wei"){return(0,V7e.parseUnits)(e,G7e.gweiUnits[t])}hb.parseGwei=K7e;var z9;function $m(){return z9||(z9=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.concat=e.extractFunctionParts=e.extractFunctionType=e.extractFunctionParams=e.extractFunctionName=e.isAddressEqual=e.isAddress=e.getAddress=e.getCreate2Address=e.getCreateAddress=e.getContractAddress=e.publicKeyToAddress=e.parseAccount=e.formatAbiParams=e.formatAbiItem=e.formatAbiItemWithArgs=e.encodePacked=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.getAbiItem=e.encodeFunctionResult=e.encodeFunctionData=e.encodeEventTopics=e.encodeErrorResult=e.encodeDeployData=e.encodeAbiParameters=e.decodeFunctionResult=e.decodeFunctionData=e.decodeEventLog=e.decodeErrorResult=e.decodeAbiParameters=e.validateTypedData=e.stringify=e.rpc=e.getSocket=e.integerRegex=e.bytesRegex=e.arrayRegex=e.getChainContractAddress=e.extractChain=e.defineChain=e.assertCurrentChain=e.offchainLookupSignature=e.offchainLookupAbiItem=e.offchainLookup=e.ccipFetch=e.buildRequest=e.isDeterministicError=void 0,e.getEstimateGasError=e.getContractError=e.getCallError=e.getNodeError=e.containsNodeError=e.fromRlp=e.hexToString=e.hexToNumber=e.hexToBigInt=e.hexToBool=e.fromHex=e.fromBytes=e.bytesToString=e.bytesToNumber=e.bytesToBool=e.bytesToBigint=e.bytesToBigInt=e.stringToHex=e.numberToHex=e.toHex=e.bytesToHex=e.boolToHex=e.stringToBytes=e.numberToBytes=e.hexToBytes=e.toBytes=e.boolToBytes=e.toRlp=e.extract=e.formatTransactionRequest=e.defineTransactionRequest=e.defineTransactionReceipt=e.formatLog=e.transactionType=e.formatTransaction=e.defineTransaction=e.formatBlock=e.defineBlock=e.trim=e.sliceHex=e.sliceBytes=e.slice=e.size=e.padHex=e.padBytes=e.pad=e.isHex=e.isBytes=e.concatHex=e.concatBytes=void 0,e.parseGwei=e.parseEther=e.parseUnits=e.formatUnits=e.formatGwei=e.formatEther=e.serializeAccessList=e.serializeTransaction=e.prepareTransactionRequest=e.parseTransaction=e.assertTransactionLegacy=e.assertTransactionEIP2930=e.assertTransactionEIP1559=e.assertRequest=e.getTransactionType=e.getSerializedTransactionType=e.hashMessage=e.verifyTypedData=e.verifyMessage=e.recoverTypedDataAddress=e.recoverPublicKey=e.recoverMessageAddress=e.recoverAddress=e.hashTypedData=e.ripemd160=e.sha256=e.keccak256=e.isHash=e.getFunctionSelector=e.getEventSelector=e.defineFormatter=e.getTransactionError=void 0;var t=X2;Object.defineProperty(e,"isDeterministicError",{enumerable:!0,get:function(){return t.isDeterministicError}}),Object.defineProperty(e,"buildRequest",{enumerable:!0,get:function(){return t.buildRequest}});var n=rP();Object.defineProperty(e,"ccipFetch",{enumerable:!0,get:function(){return n.ccipFetch}}),Object.defineProperty(e,"offchainLookup",{enumerable:!0,get:function(){return n.offchainLookup}}),Object.defineProperty(e,"offchainLookupAbiItem",{enumerable:!0,get:function(){return n.offchainLookupAbiItem}}),Object.defineProperty(e,"offchainLookupSignature",{enumerable:!0,get:function(){return n.offchainLookupSignature}});var r=jd;Object.defineProperty(e,"assertCurrentChain",{enumerable:!0,get:function(){return r.assertCurrentChain}});var o=Jy;Object.defineProperty(e,"defineChain",{enumerable:!0,get:function(){return o.defineChain}});var a=Zy;Object.defineProperty(e,"extractChain",{enumerable:!0,get:function(){return a.extractChain}});var i=di;Object.defineProperty(e,"getChainContractAddress",{enumerable:!0,get:function(){return i.getChainContractAddress}});var s=Ni;Object.defineProperty(e,"arrayRegex",{enumerable:!0,get:function(){return s.arrayRegex}}),Object.defineProperty(e,"bytesRegex",{enumerable:!0,get:function(){return s.bytesRegex}}),Object.defineProperty(e,"integerRegex",{enumerable:!0,get:function(){return s.integerRegex}});var c=Z2;Object.defineProperty(e,"getSocket",{enumerable:!0,get:function(){return c.getSocket}}),Object.defineProperty(e,"rpc",{enumerable:!0,get:function(){return c.rpc}});var l=xr;Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}});var u=pC();Object.defineProperty(e,"validateTypedData",{enumerable:!0,get:function(){return u.validateTypedData}});var d=Hi;Object.defineProperty(e,"decodeAbiParameters",{enumerable:!0,get:function(){return d.decodeAbiParameters}});var f=xd;Object.defineProperty(e,"decodeErrorResult",{enumerable:!0,get:function(){return f.decodeErrorResult}});var h=Qs;Object.defineProperty(e,"decodeEventLog",{enumerable:!0,get:function(){return h.decodeEventLog}});var m=tb;Object.defineProperty(e,"decodeFunctionData",{enumerable:!0,get:function(){return m.decodeFunctionData}});var p=ui;Object.defineProperty(e,"decodeFunctionResult",{enumerable:!0,get:function(){return p.decodeFunctionResult}});var b=ao;Object.defineProperty(e,"encodeAbiParameters",{enumerable:!0,get:function(){return b.encodeAbiParameters}});var v=Im;Object.defineProperty(e,"encodeDeployData",{enumerable:!0,get:function(){return v.encodeDeployData}});var g=nb;Object.defineProperty(e,"encodeErrorResult",{enumerable:!0,get:function(){return g.encodeErrorResult}});var w=Ws;Object.defineProperty(e,"encodeEventTopics",{enumerable:!0,get:function(){return w.encodeEventTopics}});var _=ea;Object.defineProperty(e,"encodeFunctionData",{enumerable:!0,get:function(){return _.encodeFunctionData}});var C=rb;Object.defineProperty(e,"encodeFunctionResult",{enumerable:!0,get:function(){return C.encodeFunctionResult}});var x=Br;Object.defineProperty(e,"getAbiItem",{enumerable:!0,get:function(){return x.getAbiItem}});var E=V4;Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return E.parseAbi}}),Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return E.parseAbiItem}}),Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return E.parseAbiParameter}}),Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return E.parseAbiParameters}});var T=ob;Object.defineProperty(e,"encodePacked",{enumerable:!0,get:function(){return T.encodePacked}});var k=Oy;Object.defineProperty(e,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return k.formatAbiItemWithArgs}});var D=Gs();Object.defineProperty(e,"formatAbiItem",{enumerable:!0,get:function(){return D.formatAbiItem}}),Object.defineProperty(e,"formatAbiParams",{enumerable:!0,get:function(){return D.formatAbiParams}});var R=Lr;Object.defineProperty(e,"parseAccount",{enumerable:!0,get:function(){return R.parseAccount}});var F=Dm;Object.defineProperty(e,"publicKeyToAddress",{enumerable:!0,get:function(){return F.publicKeyToAddress}});var B=SJ();Object.defineProperty(e,"getContractAddress",{enumerable:!0,get:function(){return B.getContractAddress}}),Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return B.getCreateAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return B.getCreate2Address}});var j=Co;Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return j.getAddress}});var P=uo;Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return P.isAddress}});var O=Bl;Object.defineProperty(e,"isAddressEqual",{enumerable:!0,get:function(){return O.isAddressEqual}});var I=ji;Object.defineProperty(e,"extractFunctionName",{enumerable:!0,get:function(){return I.extractFunctionName}}),Object.defineProperty(e,"extractFunctionParams",{enumerable:!0,get:function(){return I.extractFunctionParams}}),Object.defineProperty(e,"extractFunctionType",{enumerable:!0,get:function(){return I.extractFunctionType}}),Object.defineProperty(e,"extractFunctionParts",{enumerable:!0,get:function(){return I.extractFunctionParts}});var N=On;Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return N.concat}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return N.concatBytes}}),Object.defineProperty(e,"concatHex",{enumerable:!0,get:function(){return N.concatHex}});var M=Om;Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return M.isBytes}});var L=qn;Object.defineProperty(e,"isHex",{enumerable:!0,get:function(){return L.isHex}});var X=eo;Object.defineProperty(e,"pad",{enumerable:!0,get:function(){return X.pad}}),Object.defineProperty(e,"padBytes",{enumerable:!0,get:function(){return X.padBytes}}),Object.defineProperty(e,"padHex",{enumerable:!0,get:function(){return X.padHex}});var J=ka;Object.defineProperty(e,"size",{enumerable:!0,get:function(){return J.size}});var U=Nr;Object.defineProperty(e,"slice",{enumerable:!0,get:function(){return U.slice}}),Object.defineProperty(e,"sliceBytes",{enumerable:!0,get:function(){return U.sliceBytes}}),Object.defineProperty(e,"sliceHex",{enumerable:!0,get:function(){return U.sliceHex}});var G=ci;Object.defineProperty(e,"trim",{enumerable:!0,get:function(){return G.trim}});var Z=js;Object.defineProperty(e,"defineBlock",{enumerable:!0,get:function(){return Z.defineBlock}}),Object.defineProperty(e,"formatBlock",{enumerable:!0,get:function(){return Z.formatBlock}});var ae=wm;Object.defineProperty(e,"defineTransaction",{enumerable:!0,get:function(){return ae.defineTransaction}}),Object.defineProperty(e,"formatTransaction",{enumerable:!0,get:function(){return ae.formatTransaction}}),Object.defineProperty(e,"transactionType",{enumerable:!0,get:function(){return ae.transactionType}});var ne=Vi;Object.defineProperty(e,"formatLog",{enumerable:!0,get:function(){return ne.formatLog}});var ie=gl;Object.defineProperty(e,"defineTransactionReceipt",{enumerable:!0,get:function(){return ie.defineTransactionReceipt}});var te=Rl;Object.defineProperty(e,"defineTransactionRequest",{enumerable:!0,get:function(){return te.defineTransactionRequest}}),Object.defineProperty(e,"formatTransactionRequest",{enumerable:!0,get:function(){return te.formatTransactionRequest}});var ee=Ol;Object.defineProperty(e,"extract",{enumerable:!0,get:function(){return ee.extract}});var re=gC();Object.defineProperty(e,"toRlp",{enumerable:!0,get:function(){return re.toRlp}});var z=Gn();Object.defineProperty(e,"boolToBytes",{enumerable:!0,get:function(){return z.boolToBytes}}),Object.defineProperty(e,"toBytes",{enumerable:!0,get:function(){return z.toBytes}}),Object.defineProperty(e,"hexToBytes",{enumerable:!0,get:function(){return z.hexToBytes}}),Object.defineProperty(e,"numberToBytes",{enumerable:!0,get:function(){return z.numberToBytes}}),Object.defineProperty(e,"stringToBytes",{enumerable:!0,get:function(){return z.stringToBytes}});var fe=$e();Object.defineProperty(e,"boolToHex",{enumerable:!0,get:function(){return fe.boolToHex}}),Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return fe.bytesToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return fe.toHex}}),Object.defineProperty(e,"numberToHex",{enumerable:!0,get:function(){return fe.numberToHex}}),Object.defineProperty(e,"stringToHex",{enumerable:!0,get:function(){return fe.stringToHex}});var ve=Lo;Object.defineProperty(e,"bytesToBigInt",{enumerable:!0,get:function(){return ve.bytesToBigInt}}),Object.defineProperty(e,"bytesToBigint",{enumerable:!0,get:function(){return ve.bytesToBigInt}}),Object.defineProperty(e,"bytesToBool",{enumerable:!0,get:function(){return ve.bytesToBool}}),Object.defineProperty(e,"bytesToNumber",{enumerable:!0,get:function(){return ve.bytesToNumber}}),Object.defineProperty(e,"bytesToString",{enumerable:!0,get:function(){return ve.bytesToString}}),Object.defineProperty(e,"fromBytes",{enumerable:!0,get:function(){return ve.fromBytes}});var Ue=Wn();Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return Ue.fromHex}}),Object.defineProperty(e,"hexToBool",{enumerable:!0,get:function(){return Ue.hexToBool}}),Object.defineProperty(e,"hexToBigInt",{enumerable:!0,get:function(){return Ue.hexToBigInt}}),Object.defineProperty(e,"hexToNumber",{enumerable:!0,get:function(){return Ue.hexToNumber}}),Object.defineProperty(e,"hexToString",{enumerable:!0,get:function(){return Ue.hexToString}});var ke=Bi;Object.defineProperty(e,"fromRlp",{enumerable:!0,get:function(){return ke.fromRlp}});var Qe=ks;Object.defineProperty(e,"containsNodeError",{enumerable:!0,get:function(){return Qe.containsNodeError}}),Object.defineProperty(e,"getNodeError",{enumerable:!0,get:function(){return Qe.getNodeError}});var Te=Uy;Object.defineProperty(e,"getCallError",{enumerable:!0,get:function(){return Te.getCallError}});var Ee=Vs;Object.defineProperty(e,"getContractError",{enumerable:!0,get:function(){return Ee.getContractError}});var he=Ny;Object.defineProperty(e,"getEstimateGasError",{enumerable:!0,get:function(){return he.getEstimateGasError}});var Me=Wy;Object.defineProperty(e,"getTransactionError",{enumerable:!0,get:function(){return Me.getTransactionError}});var ge=Nl;Object.defineProperty(e,"defineFormatter",{enumerable:!0,get:function(){return ge.defineFormatter}});var Y=Pl;Object.defineProperty(e,"getEventSelector",{enumerable:!0,get:function(){return Y.getEventSelector}});var W=zi;Object.defineProperty(e,"getFunctionSelector",{enumerable:!0,get:function(){return W.getFunctionSelector}});var Q=Rm;Object.defineProperty(e,"isHash",{enumerable:!0,get:function(){return Q.isHash}});var ce=lo;Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return ce.keccak256}});var pe=ib;Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return pe.sha256}});var De=sb;Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return De.ripemd160}});var Ie=eb();Object.defineProperty(e,"hashTypedData",{enumerable:!0,get:function(){return Ie.hashTypedData}});var Je=Rd;Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return Je.recoverAddress}});var Oe=Bm;Object.defineProperty(e,"recoverMessageAddress",{enumerable:!0,get:function(){return Oe.recoverMessageAddress}});var _e=Nm;Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return _e.recoverPublicKey}});var at=Mm;Object.defineProperty(e,"recoverTypedDataAddress",{enumerable:!0,get:function(){return at.recoverTypedDataAddress}});var Ft=ub;Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return Ft.verifyMessage}});var Lt=db;Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return Lt.verifyTypedData}});var Js=Fm;Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return Js.hashMessage}});var Jm=Lm;Object.defineProperty(e,"getSerializedTransactionType",{enumerable:!0,get:function(){return Jm.getSerializedTransactionType}});var $d=Td;Object.defineProperty(e,"getTransactionType",{enumerable:!0,get:function(){return $d.getTransactionType}});var Zs=Gi;Object.defineProperty(e,"assertRequest",{enumerable:!0,get:function(){return Zs.assertRequest}});var fi=ni;Object.defineProperty(e,"assertTransactionEIP1559",{enumerable:!0,get:function(){return fi.assertTransactionEIP1559}}),Object.defineProperty(e,"assertTransactionEIP2930",{enumerable:!0,get:function(){return fi.assertTransactionEIP2930}}),Object.defineProperty(e,"assertTransactionLegacy",{enumerable:!0,get:function(){return fi.assertTransactionLegacy}});var Ia=ps;Object.defineProperty(e,"parseTransaction",{enumerable:!0,get:function(){return Ia.parseTransaction}});var ta=My();Object.defineProperty(e,"prepareTransactionRequest",{enumerable:!0,get:function(){return ta.prepareTransactionRequest}});var na=NJ();Object.defineProperty(e,"serializeTransaction",{enumerable:!0,get:function(){return na.serializeTransaction}});var ec=Um;Object.defineProperty(e,"serializeAccessList",{enumerable:!0,get:function(){return ec.serializeAccessList}});var tc=Il;Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return tc.formatEther}});var Zm=qi;Object.defineProperty(e,"formatGwei",{enumerable:!0,get:function(){return Zm.formatGwei}});var zd=Cd;Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return zd.formatUnits}});var Hl=Nd;Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return Hl.parseUnits}});var nc=fb;Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return nc.parseEther}});var ep=hb;Object.defineProperty(e,"parseGwei",{enumerable:!0,get:function(){return ep.parseGwei}})}(H3)),H3}var H9;function Y7e(){if(H9)return Pp;H9=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.formatProof=void 0;const e=$m();function t(r){return r.map(o=>({...o,value:BigInt(o.value)}))}function n(r){return{...r,balance:r.balance?BigInt(r.balance):void 0,nonce:r.nonce?(0,e.hexToNumber)(r.nonce):void 0,storageProof:r.storageProof?t(r.storageProof):void 0}}return Pp.formatProof=n,Pp}var q9;function Q7e(){if(q9)return jp;q9=1,Object.defineProperty(jp,"__esModule",{value:!0}),jp.getProof=void 0;const e=$e(),t=Y7e();async function n(r,{address:o,blockNumber:a,blockTag:i,storageKeys:s}){const c=i??"latest",l=a!==void 0?(0,e.numberToHex)(a):void 0,u=await r.request({method:"eth_getProof",params:[o,s,l||c]});return(0,t.formatProof)(u)}return jp.getProof=n,jp}var bC={};Object.defineProperty(bC,"__esModule",{value:!0});bC.getStorageAt=void 0;const X7e=$e();async function J7e(e,{address:t,blockNumber:n,blockTag:r="latest",slot:o}){const a=n!==void 0?(0,X7e.numberToHex)(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,o,a||r]})}bC.getStorageAt=J7e;var zm={};Object.defineProperty(zm,"__esModule",{value:!0});zm.getTransaction=void 0;const Z7e=pt,eT=$e(),eIe=wm;async function tIe(e,{blockHash:t,blockNumber:n,blockTag:r,hash:o,index:a}){var u,d,f;const i=r||"latest",s=n!==void 0?(0,eT.numberToHex)(n):void 0;let c=null;if(o?c=await e.request({method:"eth_getTransactionByHash",params:[o]}):t?c=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,eT.numberToHex)(a)]}):(s||i)&&(c=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[s||i,(0,eT.numberToHex)(a)]})),!c)throw new Z7e.TransactionNotFoundError({blockHash:t,blockNumber:n,blockTag:i,hash:o,index:a});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.transaction)==null?void 0:f.format)||eIe.formatTransaction)(c)}zm.getTransaction=tIe;var vC={};Object.defineProperty(vC,"__esModule",{value:!0});vC.getTransactionConfirmations=void 0;const W9=Bt,nIe=Li,rIe=zm;async function oIe(e,{hash:t,transactionReceipt:n}){const[r,o]=await Promise.all([(0,W9.getAction)(e,nIe.getBlockNumber,"getBlockNumber")({}),t?(0,W9.getAction)(e,rIe.getTransaction,"getBlockNumber")({hash:t}):void 0]),a=(n==null?void 0:n.blockNumber)||(o==null?void 0:o.blockNumber);return a?r-a+1n:0n}vC.getTransactionConfirmations=oIe;var mb={};Object.defineProperty(mb,"__esModule",{value:!0});mb.getTransactionReceipt=void 0;const aIe=pt,iIe=gl;async function sIe(e,{hash:t}){var o,a,i;const n=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!n)throw new aIe.TransactionReceiptNotFoundError({hash:t});return(((i=(a=(o=e.chain)==null?void 0:o.formatters)==null?void 0:a.transactionReceipt)==null?void 0:i.format)||iIe.formatTransactionReceipt)(n)}mb.getTransactionReceipt=sIe;var wC={};Object.defineProperty(wC,"__esModule",{value:!0});wC.multicall=void 0;const cIe=mn,lIe=Jt(),uIe=xt,dIe=Zn,fIe=ui,hIe=ea,mIe=di,G9=Vs,pIe=Bt,gIe=li;async function yIe(e,t){var p;const{allowFailure:n=!0,batchSize:r,blockNumber:o,blockTag:a,contracts:i,multicallAddress:s}=t,c=r??(typeof((p=e.batch)==null?void 0:p.multicall)=="object"&&e.batch.multicall.batchSize||1024);let l=s;if(!l){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");l=(0,mIe.getChainContractAddress)({blockNumber:o,chain:e.chain,contract:"multicall3"})}const u=[[]];let d=0,f=0;for(let b=0;b0&&f>c&&u[d].length>0&&(d++,f=(C.length-2)/2,u[d]=[]),u[d]=[...u[d],{allowFailure:!0,callData:C,target:g}]}catch(C){const x=(0,G9.getContractError)(C,{abi:v,address:g,args:w,docsPath:"/docs/contract/multicall",functionName:_});if(!n)throw x;u[d]=[...u[d],{allowFailure:!0,callData:"0x",target:g}]}}const h=await Promise.allSettled(u.map(b=>(0,pIe.getAction)(e,gIe.readContract,"readContract")({abi:cIe.multicall3Abi,address:l,args:[b],blockNumber:o,blockTag:a,functionName:"aggregate3"}))),m=[];for(let b=0;b{const d=(0,AIe.stringify)(["watchBlockNumber",e.uid,t,n,i]);return(0,SIe.observe)(d,{onBlockNumber:r,onError:o},f=>(0,TIe.poll)(async()=>{var h;try{const m=await(0,CIe.getAction)(e,DIe.getBlockNumber,"getBlockNumber")({cacheTime:0});if(c){if(m===c)return;if(m-c>1&&n)for(let p=c+1n;pc)&&(f.onBlockNumber(m,c),c=m)}catch(m){(h=f.onError)==null||h.call(f,m)}},{emitOnBegin:t,interval:i}))})():(()=>{let d=!0,f=()=>d=!1;return(async()=>{try{const{unsubscribe:h}=await e.transport.subscribe({params:["newHeads"],onData(m){var b;if(!d)return;const p=(0,xIe.hexToBigInt)((b=m.result)==null?void 0:b.number);r(p,c),c=p},onError(m){o==null||o(m)}});f=h,d||f()}catch(h){o==null||o(h)}})(),f})()}pb.watchBlockNumber=kIe;Object.defineProperty(xC,"__esModule",{value:!0});xC.waitForTransactionReceipt=void 0;const jIe=vm,tT=pt,Bp=Bt,PIe=Ad,J9=Gy,IIe=xr,OIe=Ys,RIe=zm,Z9=mb,NIe=pb;async function BIe(e,{confirmations:t=1,hash:n,onReplaced:r,pollingInterval:o=e.pollingInterval,timeout:a}){const i=(0,IIe.stringify)(["waitForTransactionReceipt",e.uid,n]);let s,c,l,u=!1;return new Promise((d,f)=>{a&&setTimeout(()=>f(new tT.WaitForTransactionReceiptTimeoutError({hash:n})),a);const h=(0,PIe.observe)(i,{onReplaced:r,resolve:d,reject:f},m=>{const p=(0,Bp.getAction)(e,NIe.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:o,async onBlockNumber(b){if(u)return;let v=b;const g=w=>{p(),w(),h()};try{if(l){if(t>1&&(!l.blockNumber||v-l.blockNumber+1nm.resolve(l));return}if(s||(u=!0,await(0,J9.withRetry)(async()=>{s=await(0,Bp.getAction)(e,RIe.getTransaction,"getTransaction")({hash:n}),s.blockNumber&&(v=s.blockNumber)},{delay:({count:w})=>~~(1<1&&(!l.blockNumber||v-l.blockNumber+1nm.resolve(l))}catch(w){if(s&&(w instanceof tT.TransactionNotFoundError||w instanceof tT.TransactionReceiptNotFoundError))try{c=s,u=!0;const _=await(0,J9.withRetry)(()=>(0,Bp.getAction)(e,OIe.getBlock,"getBlock")({blockNumber:v,includeTransactions:!0}),{delay:({count:E})=>~~(1<E instanceof jIe.BlockNotFoundError});u=!1;const C=_.transactions.find(({from:E,nonce:T})=>E===c.from&&T===c.nonce);if(!C||(l=await(0,Bp.getAction)(e,Z9.getTransactionReceipt,"getTransactionReceipt")({hash:C.hash}),t>1&&(!l.blockNumber||v-l.blockNumber+1n{var E;(E=m.onReplaced)==null||E.call(m,{reason:x,replacedTransaction:c,transaction:C,transactionReceipt:l}),m.resolve(l)})}catch(_){g(()=>m.reject(_))}else g(()=>m.reject(w))}}})})})}xC.waitForTransactionReceipt=BIe;var CC={};Object.defineProperty(CC,"__esModule",{value:!0});CC.watchBlocks=void 0;const FIe=js,eF=Bt,MIe=Ad,LIe=Fl,UIe=xr,tF=Ys;function $Ie(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:o,onError:a,includeTransactions:i,poll:s,pollingInterval:c=e.pollingInterval}){const l=typeof s<"u"?s:e.transport.type!=="webSocket",u=i??!1;let d;return l?(()=>{const m=(0,UIe.stringify)(["watchBlocks",e.uid,n,r,u,c]);return(0,MIe.observe)(m,{onBlock:o,onError:a},p=>(0,LIe.poll)(async()=>{var b;try{const v=await(0,eF.getAction)(e,tF.getBlock,"getBlock")({blockTag:t,includeTransactions:u});if(v.number&&(d!=null&&d.number)){if(v.number===d.number)return;if(v.number-d.number>1&&n)for(let g=(d==null?void 0:d.number)+1n;gd.number)&&(p.onBlock(v,d),d=v)}catch(v){(b=p.onError)==null||b.call(p,v)}},{emitOnBegin:r,interval:c}))})():(()=>{let m=!0,p=()=>m=!1;return(async()=>{try{const{unsubscribe:b}=await e.transport.subscribe({params:["newHeads"],onData(v){var _,C,x;if(!m)return;const w=(((x=(C=(_=e.chain)==null?void 0:_.formatters)==null?void 0:C.block)==null?void 0:x.format)||FIe.formatBlock)(v.result);o(w,d),d=w},onError(v){a==null||a(v)}});p=b,m||p()}catch(b){a==null||a(b)}})(),p})()}CC.watchBlocks=$Ie;var Fp={},nF;function zIe(){if(nF)return Fp;nF=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.watchEvent=void 0;const e=Ad,t=Fl,n=xr,r=Jt(),o=qe,a=Bt,i=$m(),s=Qy,c=Li,l=Dd,u=xm,d=kd;function f(h,{address:m,args:p,batch:b=!0,event:v,events:g,onError:w,onLogs:_,poll:C,pollingInterval:x=h.pollingInterval,strict:E}){const T=typeof C<"u"?C:h.transport.type!=="webSocket",k=E??!1;return T?(()=>{const F=(0,n.stringify)(["watchEvent",m,p,b,h.uid,v,x]);return(0,e.observe)(F,{onLogs:_,onError:w},B=>{let j,P,O=!1;const I=(0,t.poll)(async()=>{var N;if(!O){try{P=await(0,a.getAction)(h,s.createEventFilter,"createEventFilter")({address:m,args:p,event:v,events:g,strict:k})}catch{}O=!0;return}try{let M;if(P)M=await(0,a.getAction)(h,l.getFilterChanges,"getFilterChanges")({filter:P});else{const L=await(0,a.getAction)(h,c.getBlockNumber,"getBlockNumber")({});j&&j!==L?M=await(0,a.getAction)(h,u.getLogs,"getLogs")({address:m,args:p,event:v,events:g,fromBlock:j+1n,toBlock:L}):M=[],j=L}if(M.length===0)return;if(b)B.onLogs(M);else for(const L of M)B.onLogs([L])}catch(M){P&&M instanceof o.InvalidInputRpcError&&(O=!1),(N=B.onError)==null||N.call(B,M)}},{emitOnBegin:!0,interval:x});return async()=>{P&&await(0,a.getAction)(h,d.uninstallFilter,"uninstallFilter")({filter:P}),I()}})})():(()=>{let F=!0,B=()=>F=!1;return(async()=>{try{const j=g??(v?[v]:void 0);let P=[];j&&(P=[j.flatMap(I=>(0,i.encodeEventTopics)({abi:[I],eventName:I.name,args:p}))],v&&(P=P[0]));const{unsubscribe:O}=await h.transport.subscribe({params:["logs",{address:m,topics:P}],onData(I){var M;if(!F)return;const N=I.result;try{const{eventName:L,args:X}=(0,i.decodeEventLog)({abi:j,data:N.data,topics:N.topics,strict:k}),J=(0,i.formatLog)(N,{args:X,eventName:L});_([J])}catch(L){let X,J;if(L instanceof r.DecodeLogDataMismatch||L instanceof r.DecodeLogTopicsMismatch){if(E)return;X=L.abiItem.name,J=(M=L.abiItem.inputs)==null?void 0:M.some(G=>!("name"in G&&G.name))}const U=(0,i.formatLog)(N,{args:J?[]:{},eventName:X});_([U])}},onError(I){w==null||w(I)}});B=O,F||B()}catch(j){w==null||w(j)}})(),B})()}return Fp.watchEvent=f,Fp}var SC={};Object.defineProperty(SC,"__esModule",{value:!0});SC.watchPendingTransactions=void 0;const nT=Bt,HIe=Ad,qIe=Fl,WIe=xr,GIe=Xy,VIe=Dd,KIe=kd;function YIe(e,{batch:t=!0,onError:n,onTransactions:r,poll:o,pollingInterval:a=e.pollingInterval}){return(typeof o<"u"?o:e.transport.type!=="webSocket")?(()=>{const l=(0,WIe.stringify)(["watchPendingTransactions",e.uid,t,a]);return(0,HIe.observe)(l,{onTransactions:r,onError:n},u=>{let d;const f=(0,qIe.poll)(async()=>{var h;try{if(!d)try{d=await(0,nT.getAction)(e,GIe.createPendingTransactionFilter,"createPendingTransactionFilter")({});return}catch(p){throw f(),p}const m=await(0,nT.getAction)(e,VIe.getFilterChanges,"getFilterChanges")({filter:d});if(m.length===0)return;if(t)u.onTransactions(m);else for(const p of m)u.onTransactions([p])}catch(m){(h=u.onError)==null||h.call(u,m)}},{emitOnBegin:!0,interval:a});return async()=>{d&&await(0,nT.getAction)(e,KIe.uninstallFilter,"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})()}SC.watchPendingTransactions=YIe;var rF;function FJ(){if(rF)return kp;rF=1,Object.defineProperty(kp,"__esModule",{value:!0}),kp.publicActions=void 0;const e=tC,t=rC,n=iC,r=sC,o=Yy,a=$y(),i=cC,s=ym,c=Qy,l=Xy,u=Iy,d=td,f=tP(),h=nd,m=lC,p=Ys,b=Li,v=uC,g=dC,w=Pd,_=_m,C=fC,x=Dd,E=mC,T=Em,k=xm,D=Q7e(),R=bC,F=zm,B=vC,j=Fy,P=mb,O=wC,I=li,N=zy,M=kd,L=EIe(),X=_Ie(),J=xC,U=pb,G=CC,Z=Hy,ae=zIe(),ne=SC,ie=My(),te=Am;function ee(re){return{call:z=>(0,a.call)(re,z),createBlockFilter:()=>(0,i.createBlockFilter)(re),createContractEventFilter:z=>(0,s.createContractEventFilter)(re,z),createEventFilter:z=>(0,c.createEventFilter)(re,z),createPendingTransactionFilter:()=>(0,l.createPendingTransactionFilter)(re),estimateContractGas:z=>(0,u.estimateContractGas)(re,z),estimateGas:z=>(0,f.estimateGas)(re,z),getBalance:z=>(0,m.getBalance)(re,z),getBlock:z=>(0,p.getBlock)(re,z),getBlockNumber:z=>(0,b.getBlockNumber)(re,z),getBlockTransactionCount:z=>(0,v.getBlockTransactionCount)(re,z),getBytecode:z=>(0,g.getBytecode)(re,z),getChainId:()=>(0,w.getChainId)(re),getContractEvents:z=>(0,_.getContractEvents)(re,z),getEnsAddress:z=>(0,e.getEnsAddress)(re,z),getEnsAvatar:z=>(0,t.getEnsAvatar)(re,z),getEnsName:z=>(0,n.getEnsName)(re,z),getEnsResolver:z=>(0,r.getEnsResolver)(re,z),getEnsText:z=>(0,o.getEnsText)(re,z),getFeeHistory:z=>(0,C.getFeeHistory)(re,z),estimateFeesPerGas:z=>(0,d.estimateFeesPerGas)(re,z),getFilterChanges:z=>(0,x.getFilterChanges)(re,z),getFilterLogs:z=>(0,E.getFilterLogs)(re,z),getGasPrice:()=>(0,T.getGasPrice)(re),getLogs:z=>(0,k.getLogs)(re,z),getProof:z=>(0,D.getProof)(re,z),estimateMaxPriorityFeePerGas:z=>(0,h.estimateMaxPriorityFeePerGas)(re,z),getStorageAt:z=>(0,R.getStorageAt)(re,z),getTransaction:z=>(0,F.getTransaction)(re,z),getTransactionConfirmations:z=>(0,B.getTransactionConfirmations)(re,z),getTransactionCount:z=>(0,j.getTransactionCount)(re,z),getTransactionReceipt:z=>(0,P.getTransactionReceipt)(re,z),multicall:z=>(0,O.multicall)(re,z),prepareTransactionRequest:z=>(0,ie.prepareTransactionRequest)(re,z),readContract:z=>(0,I.readContract)(re,z),sendRawTransaction:z=>(0,te.sendRawTransaction)(re,z),simulateContract:z=>(0,N.simulateContract)(re,z),verifyMessage:z=>(0,L.verifyMessage)(re,z),verifyTypedData:z=>(0,X.verifyTypedData)(re,z),uninstallFilter:z=>(0,M.uninstallFilter)(re,z),waitForTransactionReceipt:z=>(0,J.waitForTransactionReceipt)(re,z),watchBlocks:z=>(0,G.watchBlocks)(re,z),watchBlockNumber:z=>(0,U.watchBlockNumber)(re,z),watchContractEvent:z=>(0,Z.watchContractEvent)(re,z),watchEvent:z=>(0,ae.watchEvent)(re,z),watchPendingTransactions:z=>(0,ne.watchPendingTransactions)(re,z)}}return kp.publicActions=ee,kp}var oF;function QIe(){if(oF)return Dp;oF=1,Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.createPublicClient=void 0;const e=Id,t=FJ();function n(r){const{key:o="public",name:a="Public Client"}=r;return(0,e.createClient)({...r,key:o,name:a,type:"publicClient"}).extend(t.publicActions)}return Dp.createPublicClient=n,Dp}var TC={},gb={},AC={};Object.defineProperty(AC,"__esModule",{value:!0});AC.dropTransaction=void 0;async function XIe(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}AC.dropTransaction=XIe;var DC={};Object.defineProperty(DC,"__esModule",{value:!0});DC.dumpState=void 0;async function JIe(e){return e.request({method:`${e.mode}_dumpState`})}DC.dumpState=JIe;var kC={};Object.defineProperty(kC,"__esModule",{value:!0});kC.getAutomine=void 0;async function ZIe(e){return e.mode==="ganache"?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}kC.getAutomine=ZIe;var jC={};Object.defineProperty(jC,"__esModule",{value:!0});jC.getTxpoolContent=void 0;async function eOe(e){return await e.request({method:"txpool_content"})}jC.getTxpoolContent=eOe;var PC={};Object.defineProperty(PC,"__esModule",{value:!0});PC.getTxpoolStatus=void 0;const aF=Wn();async function tOe(e){const{pending:t,queued:n}=await e.request({method:"txpool_status"});return{pending:(0,aF.hexToNumber)(t),queued:(0,aF.hexToNumber)(n)}}PC.getTxpoolStatus=tOe;var IC={};Object.defineProperty(IC,"__esModule",{value:!0});IC.impersonateAccount=void 0;async function nOe(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}IC.impersonateAccount=nOe;var OC={};Object.defineProperty(OC,"__esModule",{value:!0});OC.increaseTime=void 0;const rOe=$e();async function oOe(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[(0,rOe.numberToHex)(t)]})}OC.increaseTime=oOe;var RC={};Object.defineProperty(RC,"__esModule",{value:!0});RC.inspectTxpool=void 0;async function aOe(e){return await e.request({method:"txpool_inspect"})}RC.inspectTxpool=aOe;var NC={};Object.defineProperty(NC,"__esModule",{value:!0});NC.loadState=void 0;async function iOe(e,{state:t}){await e.request({method:`${e.mode}_loadState`,params:[t]})}NC.loadState=iOe;var BC={};Object.defineProperty(BC,"__esModule",{value:!0});BC.mine=void 0;const rT=$e();async function sOe(e,{blocks:t,interval:n}){e.mode==="ganache"?await e.request({method:"evm_mine",params:[{blocks:(0,rT.numberToHex)(t)}]}):await e.request({method:`${e.mode}_mine`,params:[(0,rT.numberToHex)(t),(0,rT.numberToHex)(n||0)]})}BC.mine=sOe;var FC={};Object.defineProperty(FC,"__esModule",{value:!0});FC.removeBlockTimestampInterval=void 0;async function cOe(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}FC.removeBlockTimestampInterval=cOe;var MC={};Object.defineProperty(MC,"__esModule",{value:!0});MC.reset=void 0;async function lOe(e,{blockNumber:t,jsonRpcUrl:n}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:n}}]})}MC.reset=lOe;var LC={};Object.defineProperty(LC,"__esModule",{value:!0});LC.revert=void 0;async function uOe(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}LC.revert=uOe;var UC={};Object.defineProperty(UC,"__esModule",{value:!0});UC.sendUnsignedTransaction=void 0;const dOe=Ol,fOe=Rl;async function hOe(e,t){var v,g,w;const{accessList:n,data:r,from:o,gas:a,gasPrice:i,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,to:u,value:d,...f}=t,h=(w=(g=(v=e.chain)==null?void 0:v.formatters)==null?void 0:g.transactionRequest)==null?void 0:w.format,p=(h||fOe.formatTransactionRequest)({...(0,dOe.extract)(f,{format:h}),accessList:n,data:r,from:o,gas:a,gasPrice:i,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,to:u,value:d});return await e.request({method:"eth_sendUnsignedTransaction",params:[p]})}UC.sendUnsignedTransaction=hOe;var $C={};Object.defineProperty($C,"__esModule",{value:!0});$C.setAutomine=void 0;async function mOe(e,t){e.mode==="ganache"?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}$C.setAutomine=mOe;var zC={};Object.defineProperty(zC,"__esModule",{value:!0});zC.setBalance=void 0;const iF=$e();async function pOe(e,{address:t,value:n}){e.mode==="ganache"?await e.request({method:"evm_setAccountBalance",params:[t,(0,iF.numberToHex)(n)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,(0,iF.numberToHex)(n)]})}zC.setBalance=pOe;var HC={};Object.defineProperty(HC,"__esModule",{value:!0});HC.setBlockGasLimit=void 0;const gOe=$e();async function yOe(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[(0,gOe.numberToHex)(t)]})}HC.setBlockGasLimit=yOe;var qC={};Object.defineProperty(qC,"__esModule",{value:!0});qC.setBlockTimestampInterval=void 0;async function bOe(e,{interval:t}){const n=e.mode==="hardhat"?t*1e3:t;await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[n]})}qC.setBlockTimestampInterval=bOe;var WC={};Object.defineProperty(WC,"__esModule",{value:!0});WC.setCode=void 0;async function vOe(e,{address:t,bytecode:n}){await e.request({method:`${e.mode}_setCode`,params:[t,n]})}WC.setCode=vOe;var GC={};Object.defineProperty(GC,"__esModule",{value:!0});GC.setCoinbase=void 0;async function wOe(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}GC.setCoinbase=wOe;var VC={};Object.defineProperty(VC,"__esModule",{value:!0});VC.setIntervalMining=void 0;async function EOe(e,{interval:t}){const n=e.mode==="hardhat"?t*1e3:t;await e.request({method:"evm_setIntervalMining",params:[n]})}VC.setIntervalMining=EOe;var KC={};Object.defineProperty(KC,"__esModule",{value:!0});KC.setLoggingEnabled=void 0;async function _Oe(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}KC.setLoggingEnabled=_Oe;var YC={};Object.defineProperty(YC,"__esModule",{value:!0});YC.setMinGasPrice=void 0;const xOe=$e();async function COe(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[(0,xOe.numberToHex)(t)]})}YC.setMinGasPrice=COe;var QC={};Object.defineProperty(QC,"__esModule",{value:!0});QC.setNextBlockBaseFeePerGas=void 0;const SOe=$e();async function TOe(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[(0,SOe.numberToHex)(t)]})}QC.setNextBlockBaseFeePerGas=TOe;var XC={};Object.defineProperty(XC,"__esModule",{value:!0});XC.setNextBlockTimestamp=void 0;const AOe=$e();async function DOe(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[(0,AOe.numberToHex)(t)]})}XC.setNextBlockTimestamp=DOe;var JC={};Object.defineProperty(JC,"__esModule",{value:!0});JC.setNonce=void 0;const kOe=$e();async function jOe(e,{address:t,nonce:n}){await e.request({method:`${e.mode}_setNonce`,params:[t,(0,kOe.numberToHex)(n)]})}JC.setNonce=jOe;var ZC={};Object.defineProperty(ZC,"__esModule",{value:!0});ZC.setRpcUrl=void 0;async function POe(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}ZC.setRpcUrl=POe;var e6={};Object.defineProperty(e6,"__esModule",{value:!0});e6.setStorageAt=void 0;const IOe=$e();async function OOe(e,{address:t,index:n,value:r}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,typeof n=="number"?(0,IOe.numberToHex)(n):n,r]})}e6.setStorageAt=OOe;var t6={};Object.defineProperty(t6,"__esModule",{value:!0});t6.snapshot=void 0;async function ROe(e){return await e.request({method:"evm_snapshot"})}t6.snapshot=ROe;var n6={};Object.defineProperty(n6,"__esModule",{value:!0});n6.stopImpersonatingAccount=void 0;async function NOe(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}n6.stopImpersonatingAccount=NOe;Object.defineProperty(gb,"__esModule",{value:!0});gb.testActions=void 0;const BOe=AC,FOe=DC,MOe=kC,LOe=jC,UOe=PC,$Oe=IC,zOe=OC,HOe=RC,qOe=NC,WOe=BC,GOe=FC,VOe=MC,KOe=LC,YOe=UC,QOe=$C,XOe=zC,JOe=HC,ZOe=qC,eRe=WC,tRe=GC,nRe=VC,rRe=KC,oRe=YC,aRe=QC,iRe=XC,sRe=JC,cRe=ZC,lRe=e6,uRe=t6,dRe=n6;function fRe({mode:e}){return t=>{const n=t.extend(()=>({mode:e}));return{dropTransaction:r=>(0,BOe.dropTransaction)(n,r),dumpState:()=>(0,FOe.dumpState)(n),getAutomine:()=>(0,MOe.getAutomine)(n),getTxpoolContent:()=>(0,LOe.getTxpoolContent)(n),getTxpoolStatus:()=>(0,UOe.getTxpoolStatus)(n),impersonateAccount:r=>(0,$Oe.impersonateAccount)(n,r),increaseTime:r=>(0,zOe.increaseTime)(n,r),inspectTxpool:()=>(0,HOe.inspectTxpool)(n),loadState:r=>(0,qOe.loadState)(n,r),mine:r=>(0,WOe.mine)(n,r),removeBlockTimestampInterval:()=>(0,GOe.removeBlockTimestampInterval)(n),reset:r=>(0,VOe.reset)(n,r),revert:r=>(0,KOe.revert)(n,r),sendUnsignedTransaction:r=>(0,YOe.sendUnsignedTransaction)(n,r),setAutomine:r=>(0,QOe.setAutomine)(n,r),setBalance:r=>(0,XOe.setBalance)(n,r),setBlockGasLimit:r=>(0,JOe.setBlockGasLimit)(n,r),setBlockTimestampInterval:r=>(0,ZOe.setBlockTimestampInterval)(n,r),setCode:r=>(0,eRe.setCode)(n,r),setCoinbase:r=>(0,tRe.setCoinbase)(n,r),setIntervalMining:r=>(0,nRe.setIntervalMining)(n,r),setLoggingEnabled:r=>(0,rRe.setLoggingEnabled)(n,r),setMinGasPrice:r=>(0,oRe.setMinGasPrice)(n,r),setNextBlockBaseFeePerGas:r=>(0,aRe.setNextBlockBaseFeePerGas)(n,r),setNextBlockTimestamp:r=>(0,iRe.setNextBlockTimestamp)(n,r),setNonce:r=>(0,sRe.setNonce)(n,r),setRpcUrl:r=>(0,cRe.setRpcUrl)(n,r),setStorageAt:r=>(0,lRe.setStorageAt)(n,r),snapshot:()=>(0,uRe.snapshot)(n),stopImpersonatingAccount:r=>(0,dRe.stopImpersonatingAccount)(n,r)}}}gb.testActions=fRe;Object.defineProperty(TC,"__esModule",{value:!0});TC.createTestClient=void 0;const hRe=Id,mRe=gb;function pRe(e){const{key:t="test",name:n="Test Client",mode:r}=e;return(0,hRe.createClient)({...e,key:t,name:n,type:"testClient"}).extend(a=>({mode:r,...(0,mRe.testActions)({mode:r})(a)}))}TC.createTestClient=pRe;var Mp={},r6={};Object.defineProperty(r6,"__esModule",{value:!0});r6.addChain=void 0;const gRe=$e();async function yRe(e,{chain:t}){const{id:n,name:r,nativeCurrency:o,rpcUrls:a,blockExplorers:i}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,gRe.numberToHex)(n),chainName:r,nativeCurrency:o,rpcUrls:a.default.http,blockExplorerUrls:i?Object.values(i).map(({url:s})=>s):void 0}]})}r6.addChain=yRe;var o6={};Object.defineProperty(o6,"__esModule",{value:!0});o6.deployContract=void 0;const bRe=Im,vRe=Tm;function wRe(e,{abi:t,args:n,bytecode:r,...o}){const a=(0,bRe.encodeDeployData)({abi:t,args:n,bytecode:r});return(0,vRe.sendTransaction)(e,{...o,data:a})}o6.deployContract=wRe;var a6={};Object.defineProperty(a6,"__esModule",{value:!0});a6.getAddresses=void 0;const ERe=Co;async function _Re(e){var n;return((n=e.account)==null?void 0:n.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"})).map(r=>(0,ERe.checksumAddress)(r))}a6.getAddresses=_Re;var i6={};Object.defineProperty(i6,"__esModule",{value:!0});i6.getPermissions=void 0;async function xRe(e){return await e.request({method:"wallet_getPermissions"})}i6.getPermissions=xRe;var s6={};Object.defineProperty(s6,"__esModule",{value:!0});s6.requestAddresses=void 0;const CRe=Co;async function SRe(e){return(await e.request({method:"eth_requestAccounts"})).map(n=>(0,CRe.getAddress)(n))}s6.requestAddresses=SRe;var c6={};Object.defineProperty(c6,"__esModule",{value:!0});c6.requestPermissions=void 0;async function TRe(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}c6.requestPermissions=TRe;var l6={};Object.defineProperty(l6,"__esModule",{value:!0});l6.signMessage=void 0;const ARe=Lr,DRe=Ks,sF=$e();async function kRe(e,{account:t=e.account,message:n}){if(!t)throw new DRe.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const r=(0,ARe.parseAccount)(t);if(r.type==="local")return r.signMessage({message:n});const o=typeof n=="string"?(0,sF.stringToHex)(n):n.raw instanceof Uint8Array?(0,sF.toHex)(n.raw):n.raw;return e.request({method:"personal_sign",params:[o,r.address]})}l6.signMessage=kRe;var Lp={},cF;function jRe(){if(cF)return Lp;cF=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.signTransaction=void 0;const e=Lr,t=Ks,n=jd,r=Rl,o=Bt,a=$m(),i=Gi,s=Pd;async function c(l,u){var g,w,_,C;const{account:d=l.account,chain:f=l.chain,...h}=u;if(!d)throw new t.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const m=(0,e.parseAccount)(d);(0,i.assertRequest)({account:m,...u});const p=await(0,o.getAction)(l,s.getChainId,"getChainId")({});f!==null&&(0,n.assertCurrentChain)({currentChainId:p,chain:f});const b=(f==null?void 0:f.formatters)||((g=l.chain)==null?void 0:g.formatters),v=((w=b==null?void 0:b.transactionRequest)==null?void 0:w.format)||r.formatTransactionRequest;return m.type==="local"?m.signTransaction({...h,chainId:p},{serializer:(C=(_=l.chain)==null?void 0:_.serializers)==null?void 0:C.transaction}):await l.request({method:"eth_signTransaction",params:[{...v(h),chainId:(0,a.numberToHex)(p),from:m.address}]})}return Lp.signTransaction=c,Lp}var u6={};Object.defineProperty(u6,"__esModule",{value:!0});u6.signTypedData=void 0;const PRe=Lr,IRe=Ks,ORe=qn,RRe=xr,lF=pC();async function NRe(e,{account:t=e.account,domain:n,message:r,primaryType:o,types:a}){if(!t)throw new IRe.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const i=(0,PRe.parseAccount)(t),s={EIP712Domain:(0,lF.getTypesForEIP712Domain)({domain:n}),...a};if((0,lF.validateTypedData)({domain:n,message:r,primaryType:o,types:s}),i.type==="local")return i.signTypedData({domain:n,primaryType:o,types:s,message:r});const c=(0,RRe.stringify)({domain:n??{},primaryType:o,types:s,message:r},(l,u)=>(0,ORe.isHex)(u)?u.toLowerCase():u);return e.request({method:"eth_signTypedData_v4",params:[i.address,c]})}u6.signTypedData=NRe;var d6={};Object.defineProperty(d6,"__esModule",{value:!0});d6.switchChain=void 0;const BRe=$e();async function FRe(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,BRe.numberToHex)(t)}]})}d6.switchChain=FRe;var f6={};Object.defineProperty(f6,"__esModule",{value:!0});f6.watchAsset=void 0;async function MRe(e,t){return await e.request({method:"wallet_watchAsset",params:t})}f6.watchAsset=MRe;var uF;function MJ(){if(uF)return Mp;uF=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.walletActions=void 0;const e=Pd,t=r6,n=o6,r=a6,o=i6,a=My(),i=s6,s=c6,c=Am,l=Tm,u=l6,d=jRe(),f=u6,h=d6,m=f6,p=qy;function b(v){return{addChain:g=>(0,t.addChain)(v,g),deployContract:g=>(0,n.deployContract)(v,g),getAddresses:()=>(0,r.getAddresses)(v),getChainId:()=>(0,e.getChainId)(v),getPermissions:()=>(0,o.getPermissions)(v),prepareTransactionRequest:g=>(0,a.prepareTransactionRequest)(v,g),requestAddresses:()=>(0,i.requestAddresses)(v),requestPermissions:g=>(0,s.requestPermissions)(v,g),sendRawTransaction:g=>(0,c.sendRawTransaction)(v,g),sendTransaction:g=>(0,l.sendTransaction)(v,g),signMessage:g=>(0,u.signMessage)(v,g),signTransaction:g=>(0,d.signTransaction)(v,g),signTypedData:g=>(0,f.signTypedData)(v,g),switchChain:g=>(0,h.switchChain)(v,g),watchAsset:g=>(0,m.watchAsset)(v,g),writeContract:g=>(0,p.writeContract)(v,g)}}return Mp.walletActions=b,Mp}var Up={},dF;function LRe(){if(dF)return Up;dF=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.createWalletClient=void 0;const e=Id,t=MJ();function n(r){const{key:o="wallet",name:a="Wallet Client",transport:i}=r;return(0,e.createClient)({...r,key:o,name:a,transport:c=>i({...c,retryCount:0}),type:"walletClient"}).extend(t.walletActions)}return Up.createWalletClient=n,Up}var h6={};Object.defineProperty(h6,"__esModule",{value:!0});h6.webSocket=void 0;const URe=hr,$Re=km,tf=Z2,zRe=Ml;function HRe(e,t={}){const{key:n="webSocket",name:r="WebSocket JSON-RPC",retryDelay:o}=t;return({chain:a,retryCount:i,timeout:s})=>{var d;const c=t.retryCount??i,l=s??t.timeout??1e4,u=e||((d=a==null?void 0:a.rpcUrls.default.webSocket)==null?void 0:d[0]);if(!u)throw new $Re.UrlRequiredError;return(0,zRe.createTransport)({key:n,name:r,async request({method:f,params:h}){const m={method:f,params:h},p=await(0,tf.getSocket)(u),{error:b,result:v}=await tf.rpc.webSocketAsync(p,{body:m,timeout:l});if(b)throw new URe.RpcRequestError({body:m,error:b,url:u});return v},retryCount:c,retryDelay:o,timeout:l,type:"webSocket"},{getSocket(){return(0,tf.getSocket)(u)},async subscribe({params:f,onData:h,onError:m}){const p=await(0,tf.getSocket)(u),{result:b}=await new Promise((v,g)=>tf.rpc.webSocket(p,{body:{method:"eth_subscribe",params:f},onResponse(w){if(w.error){g(w.error),m==null||m(w.error);return}if(typeof w.id=="number"){v(w);return}w.method==="eth_subscription"&&h(w.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(v=>tf.rpc.webSocket(p,{body:{method:"eth_unsubscribe",params:[b]},onResponse:v}))}}}})}}h6.webSocket=HRe;var m6={};Object.defineProperty(m6,"__esModule",{value:!0});m6.zeroAddress=void 0;m6.zeroAddress="0x0000000000000000000000000000000000000000";var q={};Object.defineProperty(q,"__esModule",{value:!0});q.minInt144=q.minInt136=q.minInt128=q.minInt120=q.minInt112=q.minInt104=q.minInt96=q.minInt88=q.minInt80=q.minInt72=q.minInt64=q.minInt56=q.minInt48=q.minInt40=q.minInt32=q.minInt24=q.minInt16=q.minInt8=q.maxInt256=q.maxInt248=q.maxInt240=q.maxInt232=q.maxInt224=q.maxInt216=q.maxInt208=q.maxInt200=q.maxInt192=q.maxInt184=q.maxInt176=q.maxInt168=q.maxInt160=q.maxInt152=q.maxInt144=q.maxInt136=q.maxInt128=q.maxInt120=q.maxInt112=q.maxInt104=q.maxInt96=q.maxInt88=q.maxInt80=q.maxInt72=q.maxInt64=q.maxInt56=q.maxInt48=q.maxInt40=q.maxInt32=q.maxInt24=q.maxInt16=q.maxInt8=void 0;q.maxUint256=q.maxUint248=q.maxUint240=q.maxUint232=q.maxUint224=q.maxUint216=q.maxUint208=q.maxUint200=q.maxUint192=q.maxUint184=q.maxUint176=q.maxUint168=q.maxUint160=q.maxUint152=q.maxUint144=q.maxUint136=q.maxUint128=q.maxUint120=q.maxUint112=q.maxUint104=q.maxUint96=q.maxUint88=q.maxUint80=q.maxUint72=q.maxUint64=q.maxUint56=q.maxUint48=q.maxUint40=q.maxUint32=q.maxUint24=q.maxUint16=q.maxUint8=q.minInt256=q.minInt248=q.minInt240=q.minInt232=q.minInt224=q.minInt216=q.minInt208=q.minInt200=q.minInt192=q.minInt184=q.minInt176=q.minInt168=q.minInt160=q.minInt152=void 0;q.maxInt8=2n**(8n-1n)-1n;q.maxInt16=2n**(16n-1n)-1n;q.maxInt24=2n**(24n-1n)-1n;q.maxInt32=2n**(32n-1n)-1n;q.maxInt40=2n**(40n-1n)-1n;q.maxInt48=2n**(48n-1n)-1n;q.maxInt56=2n**(56n-1n)-1n;q.maxInt64=2n**(64n-1n)-1n;q.maxInt72=2n**(72n-1n)-1n;q.maxInt80=2n**(80n-1n)-1n;q.maxInt88=2n**(88n-1n)-1n;q.maxInt96=2n**(96n-1n)-1n;q.maxInt104=2n**(104n-1n)-1n;q.maxInt112=2n**(112n-1n)-1n;q.maxInt120=2n**(120n-1n)-1n;q.maxInt128=2n**(128n-1n)-1n;q.maxInt136=2n**(136n-1n)-1n;q.maxInt144=2n**(144n-1n)-1n;q.maxInt152=2n**(152n-1n)-1n;q.maxInt160=2n**(160n-1n)-1n;q.maxInt168=2n**(168n-1n)-1n;q.maxInt176=2n**(176n-1n)-1n;q.maxInt184=2n**(184n-1n)-1n;q.maxInt192=2n**(192n-1n)-1n;q.maxInt200=2n**(200n-1n)-1n;q.maxInt208=2n**(208n-1n)-1n;q.maxInt216=2n**(216n-1n)-1n;q.maxInt224=2n**(224n-1n)-1n;q.maxInt232=2n**(232n-1n)-1n;q.maxInt240=2n**(240n-1n)-1n;q.maxInt248=2n**(248n-1n)-1n;q.maxInt256=2n**(256n-1n)-1n;q.minInt8=-(2n**(8n-1n));q.minInt16=-(2n**(16n-1n));q.minInt24=-(2n**(24n-1n));q.minInt32=-(2n**(32n-1n));q.minInt40=-(2n**(40n-1n));q.minInt48=-(2n**(48n-1n));q.minInt56=-(2n**(56n-1n));q.minInt64=-(2n**(64n-1n));q.minInt72=-(2n**(72n-1n));q.minInt80=-(2n**(80n-1n));q.minInt88=-(2n**(88n-1n));q.minInt96=-(2n**(96n-1n));q.minInt104=-(2n**(104n-1n));q.minInt112=-(2n**(112n-1n));q.minInt120=-(2n**(120n-1n));q.minInt128=-(2n**(128n-1n));q.minInt136=-(2n**(136n-1n));q.minInt144=-(2n**(144n-1n));q.minInt152=-(2n**(152n-1n));q.minInt160=-(2n**(160n-1n));q.minInt168=-(2n**(168n-1n));q.minInt176=-(2n**(176n-1n));q.minInt184=-(2n**(184n-1n));q.minInt192=-(2n**(192n-1n));q.minInt200=-(2n**(200n-1n));q.minInt208=-(2n**(208n-1n));q.minInt216=-(2n**(216n-1n));q.minInt224=-(2n**(224n-1n));q.minInt232=-(2n**(232n-1n));q.minInt240=-(2n**(240n-1n));q.minInt248=-(2n**(248n-1n));q.minInt256=-(2n**(256n-1n));q.maxUint8=2n**8n-1n;q.maxUint16=2n**16n-1n;q.maxUint24=2n**24n-1n;q.maxUint32=2n**32n-1n;q.maxUint40=2n**40n-1n;q.maxUint48=2n**48n-1n;q.maxUint56=2n**56n-1n;q.maxUint64=2n**64n-1n;q.maxUint72=2n**72n-1n;q.maxUint80=2n**80n-1n;q.maxUint88=2n**88n-1n;q.maxUint96=2n**96n-1n;q.maxUint104=2n**104n-1n;q.maxUint112=2n**112n-1n;q.maxUint120=2n**120n-1n;q.maxUint128=2n**128n-1n;q.maxUint136=2n**136n-1n;q.maxUint144=2n**144n-1n;q.maxUint152=2n**152n-1n;q.maxUint160=2n**160n-1n;q.maxUint168=2n**168n-1n;q.maxUint176=2n**176n-1n;q.maxUint184=2n**184n-1n;q.maxUint192=2n**192n-1n;q.maxUint200=2n**200n-1n;q.maxUint208=2n**208n-1n;q.maxUint216=2n**216n-1n;q.maxUint224=2n**224n-1n;q.maxUint232=2n**232n-1n;q.maxUint240=2n**240n-1n;q.maxUint248=2n**248n-1n;q.maxUint256=2n**256n-1n;var p6={};Object.defineProperty(p6,"__esModule",{value:!0});p6.zeroHash=void 0;p6.zeroHash="0x0000000000000000000000000000000000000000000000000000000000000000";var g6={};Object.defineProperty(g6,"__esModule",{value:!0});g6.decodeDeployData=void 0;const oT=Jt(),qRe=Hi,aT="/docs/contract/decodeDeployData";function WRe({abi:e,bytecode:t,data:n}){if(n===t)return{bytecode:t};const r=e.find(a=>"type"in a&&a.type==="constructor");if(!r)throw new oT.AbiConstructorNotFoundError({docsPath:aT});if(!("inputs"in r))throw new oT.AbiConstructorParamsNotFoundError({docsPath:aT});if(!r.inputs||r.inputs.length===0)throw new oT.AbiConstructorParamsNotFoundError({docsPath:aT});return{args:(0,qRe.decodeAbiParameters)(r.inputs,`0x${n.replace(t,"")}`),bytecode:t}}g6.decodeDeployData=WRe;var y6={};Object.defineProperty(y6,"__esModule",{value:!0});y6.compactSignatureToSignature=void 0;const GRe=Gn(),VRe=$e();function KRe({r:e,yParityAndS:t}){const n=(0,GRe.hexToBytes)(t),r=n[0]&128?28n:27n,o=n;return r===28n&&(o[0]&=127),{r:e,s:(0,VRe.bytesToHex)(o),v:r}}y6.compactSignatureToSignature=KRe;var b6={};Object.defineProperty(b6,"__esModule",{value:!0});b6.hexToCompactSignature=void 0;const YRe=cb,fF=$e();function QRe(e){const{r:t,s:n}=YRe.secp256k1.Signature.fromCompact(e.slice(2,130));return{r:(0,fF.numberToHex)(t,{size:32}),yParityAndS:(0,fF.numberToHex)(n,{size:32})}}b6.hexToCompactSignature=QRe;var v6={};Object.defineProperty(v6,"__esModule",{value:!0});v6.hexToSignature=void 0;const XRe=cb,hF=$e();function JRe(e){const{r:t,s:n}=XRe.secp256k1.Signature.fromCompact(e.slice(2,130)),r=BigInt(`0x${e.slice(130)}`);return{r:(0,hF.numberToHex)(t,{size:32}),s:(0,hF.numberToHex)(n,{size:32}),v:r}}v6.hexToSignature=JRe;var $p={},mF;function ZRe(){if(mF)return $p;mF=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.signatureToCompactSignature=void 0;const e=$m();function t(n){const{r,s:o,v:a}=n,i=a-27n;let s=o;if(i===1n){const c=(0,e.hexToBytes)(o);c[0]|=128,s=(0,e.bytesToHex)(c)}return{r,yParityAndS:s}}return $p.signatureToCompactSignature=t,$p}var w6={};Object.defineProperty(w6,"__esModule",{value:!0});w6.compactSignatureToHex=void 0;const eNe=cb,pF=Wn();function tNe({r:e,yParityAndS:t}){return`0x${new eNe.secp256k1.Signature((0,pF.hexToBigInt)(e),(0,pF.hexToBigInt)(t)).toCompactHex()}`}w6.compactSignatureToHex=tNe;var E6={};Object.defineProperty(E6,"__esModule",{value:!0});E6.signatureToHex=void 0;const nNe=cb,gF=Wn(),rNe=$e();function oNe({r:e,s:t,v:n}){return`0x${new nNe.secp256k1.Signature((0,gF.hexToBigInt)(e),(0,gF.hexToBigInt)(t)).toCompactHex()}${(0,rNe.toHex)(n).slice(2)}`}E6.signatureToHex=oNe;var yF;function LJ(){return yF||(yF=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.maxInt112=e.maxInt104=e.maxInt96=e.maxInt88=e.maxInt80=e.maxInt72=e.maxInt64=e.maxInt56=e.maxInt48=e.maxInt40=e.maxInt32=e.maxInt24=e.maxInt16=e.maxInt8=e.weiUnits=e.gweiUnits=e.etherUnits=e.zeroAddress=e.multicall3Abi=e.webSocket=e.createWalletClient=e.createTransport=e.walletActions=e.testActions=e.publicActions=e.createTestClient=e.createPublicClient=e.http=e.fallback=e.custom=e.createClient=e.getContract=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.UnknownSignatureError=e.UnknownTypeError=e.SolidityProtectedKeywordError=e.InvalidStructSignatureError=e.InvalidSignatureError=e.InvalidParenthesisError=e.InvalidParameterError=e.InvalidModifierError=e.InvalidFunctionModifierError=e.InvalidAbiTypeParameterError=e.InvalidAbiItemError=e.InvalidAbiParametersError=e.InvalidAbiParameterError=e.CircularReferenceError=void 0,e.maxUint256=e.maxUint248=e.maxUint240=e.maxUint232=e.maxUint224=e.maxUint216=e.maxUint208=e.maxUint200=e.maxUint192=e.maxUint184=e.maxUint176=e.maxUint168=e.maxUint160=e.maxUint152=e.maxUint144=e.maxUint136=e.maxUint128=e.maxUint120=e.maxUint112=e.maxUint104=e.maxUint96=e.maxUint88=e.maxUint80=e.maxUint72=e.maxUint64=e.maxUint56=e.maxUint48=e.maxUint40=e.maxUint32=e.maxUint24=e.maxUint16=e.maxUint8=e.maxInt256=e.maxInt248=e.maxInt240=e.maxInt232=e.maxInt224=e.maxInt216=e.maxInt208=e.maxInt200=e.maxInt192=e.maxInt184=e.maxInt176=e.maxInt168=e.maxInt160=e.maxInt152=e.maxInt144=e.maxInt136=e.maxInt128=e.maxInt120=void 0,e.AbiFunctionOutputsNotFoundError=e.AbiFunctionNotFoundError=e.AbiEventSignatureNotFoundError=e.AbiEventSignatureEmptyTopicsError=e.AbiEventNotFoundError=e.AbiErrorSignatureNotFoundError=e.AbiErrorNotFoundError=e.AbiErrorInputsNotFoundError=e.AbiEncodingBytesSizeMismatchError=e.AbiEncodingLengthMismatchError=e.AbiEncodingArrayLengthMismatchError=e.AbiDecodingZeroDataError=e.AbiDecodingDataSizeTooSmallError=e.AbiDecodingDataSizeInvalidError=e.AbiConstructorParamsNotFoundError=e.AbiConstructorNotFoundError=e.presignMessagePrefix=e.zeroHash=e.minInt256=e.minInt248=e.minInt240=e.minInt232=e.minInt224=e.minInt216=e.minInt208=e.minInt200=e.minInt192=e.minInt184=e.minInt176=e.minInt168=e.minInt160=e.minInt152=e.minInt144=e.minInt136=e.minInt128=e.minInt120=e.minInt112=e.minInt104=e.minInt96=e.minInt88=e.minInt80=e.minInt72=e.minInt64=e.minInt56=e.minInt48=e.minInt40=e.minInt32=e.minInt24=e.minInt16=e.minInt8=void 0,e.InvalidHexBooleanError=e.IntegerOutOfRangeError=e.InvalidBytesBooleanError=e.DataLengthTooShortError=e.DataLengthTooLongError=e.InvalidChainIdError=e.ClientChainNotConfiguredError=e.ChainNotFoundError=e.ChainMismatchError=e.ChainDoesNotSupportContract=e.UserRejectedRequestError=e.UnsupportedProviderMethodError=e.UnknownRpcError=e.UnauthorizedProviderError=e.TransactionRejectedRpcError=e.SwitchChainError=e.RpcError=e.ResourceUnavailableRpcError=e.ResourceNotFoundRpcError=e.ProviderRpcError=e.ProviderDisconnectedError=e.ParseRpcError=e.MethodNotSupportedRpcError=e.MethodNotFoundRpcError=e.LimitExceededRpcError=e.JsonRpcVersionUnsupportedError=e.InvalidRequestRpcError=e.InvalidParamsRpcError=e.InvalidInputRpcError=e.InternalRpcError=e.ChainDisconnectedError=e.MaxFeePerGasTooLowError=e.Eip1559FeesNotSupportedError=e.BaseFeeScalarError=e.RawContractError=e.ContractFunctionZeroDataError=e.ContractFunctionRevertedError=e.ContractFunctionExecutionError=e.CallExecutionError=e.BlockNotFoundError=e.BaseError=e.UnsupportedPackedAbiType=e.InvalidDefinitionTypeError=e.InvalidArrayError=e.InvalidAbiEncodingTypeError=e.InvalidAbiDecodingTypeError=e.DecodeLogTopicsMismatch=e.DecodeLogDataMismatch=e.BytesSizeMismatchError=e.AbiFunctionSignatureNotFoundError=void 0,e.encodeAbiParameters=e.decodeFunctionResult=e.decodeFunctionData=e.decodeEventLog=e.decodeErrorResult=e.decodeDeployData=e.decodeAbiParameters=e.formatLog=e.formatBlock=e.defineBlock=e.namehash=e.labelhash=e.UrlRequiredError=e.SliceOffsetOutOfBoundsError=e.SizeExceedsPaddingSizeError=e.WaitForTransactionReceiptTimeoutError=e.TransactionReceiptNotFoundError=e.TransactionNotFoundError=e.TransactionExecutionError=e.InvalidStorageKeySizeError=e.InvalidSerializedTransactionTypeError=e.InvalidSerializedTransactionError=e.InvalidSerializableTransactionError=e.InvalidLegacyVError=e.FeeConflictError=e.InvalidAddressError=e.WebSocketRequestError=e.TimeoutError=e.RpcRequestError=e.HttpRequestError=e.FilterTypeNotSupportedError=e.UnknownNodeError=e.TransactionTypeNotSupportedError=e.TipAboveFeeCapError=e.NonceTooLowError=e.NonceTooHighError=e.NonceMaxValueError=e.IntrinsicGasTooLowError=e.IntrinsicGasTooHighError=e.InsufficientFundsError=e.FeeCapTooLowError=e.FeeCapTooHighError=e.ExecutionRevertedError=e.EstimateGasExecutionError=e.EnsAvatarUnsupportedNamespaceError=e.EnsAvatarInvalidNftUriError=e.EnsAvatarUriResolutionError=e.SizeOverflowError=e.OffsetOutOfBoundsError=e.InvalidHexValueError=void 0,e.toHex=e.stringToHex=e.numberToHex=e.bytesToHex=e.boolToHex=e.toBytes=e.stringToBytes=e.numberToBytes=e.hexToBytes=e.boolToBytes=e.assertTransactionLegacy=e.assertTransactionEIP2930=e.assertTransactionEIP1559=e.assertRequest=e.verifyTypedData=e.verifyMessage=e.toRlp=e.hexToRlp=e.bytesToRlp=e.signatureToHex=e.compactSignatureToHex=e.signatureToCompactSignature=e.recoverTypedDataAddress=e.recoverPublicKey=e.recoverMessageAddress=e.recoverAddress=e.hexToSignature=e.hexToCompactSignature=e.compactSignatureToSignature=e.hashTypedData=e.hashDomain=e.getTransactionType=e.getSerializedTransactionType=e.getCreateAddress=e.getCreate2Address=e.getContractAddress=e.getAbiItem=e.rpcTransactionType=e.formatTransactionRequest=e.defineTransactionRequest=e.formatTransactionReceipt=e.defineTransactionReceipt=e.transactionType=e.formatTransaction=e.defineTransaction=e.encodeFunctionResult=e.encodeFunctionData=e.encodeEventTopics=e.encodeErrorResult=e.encodeDeployData=void 0,e.parseUnits=e.parseTransaction=e.parseGwei=e.parseEther=e.padHex=e.padBytes=e.pad=e.ripemd160=e.sha256=e.keccak256=e.isHex=e.isHash=e.isBytes=e.isAddressEqual=e.isAddress=e.hashMessage=e.getFunctionSignature=e.getFunctionSelector=e.getEventSignature=e.getEventSelector=e.getContractError=e.getAddress=e.checksumAddress=e.fromRlp=e.hexToString=e.hexToNumber=e.hexToBool=e.hexToBigInt=e.fromHex=e.formatUnits=e.formatGwei=e.formatEther=e.encodePacked=e.getChainContractAddress=e.extractChain=e.defineChain=e.assertCurrentChain=e.concatHex=e.concatBytes=e.concat=e.offchainLookupSignature=e.offchainLookupAbiItem=e.offchainLookup=e.ccipFetch=e.fromBytes=e.bytesToString=e.bytesToNumber=e.bytesToBool=e.bytesToBigint=e.bytesToBigInt=void 0,e.getTypesForEIP712Domain=e.domainSeparator=e.validateTypedData=e.trim=e.stringify=e.sliceHex=e.sliceBytes=e.slice=e.size=e.serializeTransaction=e.serializeAccessList=void 0;var t=V4;Object.defineProperty(e,"CircularReferenceError",{enumerable:!0,get:function(){return t.CircularReferenceError}}),Object.defineProperty(e,"InvalidAbiParameterError",{enumerable:!0,get:function(){return t.InvalidAbiParameterError}}),Object.defineProperty(e,"InvalidAbiParametersError",{enumerable:!0,get:function(){return t.InvalidAbiParametersError}}),Object.defineProperty(e,"InvalidAbiItemError",{enumerable:!0,get:function(){return t.InvalidAbiItemError}}),Object.defineProperty(e,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return t.InvalidAbiTypeParameterError}}),Object.defineProperty(e,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return t.InvalidFunctionModifierError}}),Object.defineProperty(e,"InvalidModifierError",{enumerable:!0,get:function(){return t.InvalidModifierError}}),Object.defineProperty(e,"InvalidParameterError",{enumerable:!0,get:function(){return t.InvalidParameterError}}),Object.defineProperty(e,"InvalidParenthesisError",{enumerable:!0,get:function(){return t.InvalidParenthesisError}}),Object.defineProperty(e,"InvalidSignatureError",{enumerable:!0,get:function(){return t.InvalidSignatureError}}),Object.defineProperty(e,"InvalidStructSignatureError",{enumerable:!0,get:function(){return t.InvalidStructSignatureError}}),Object.defineProperty(e,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return t.SolidityProtectedKeywordError}}),Object.defineProperty(e,"UnknownTypeError",{enumerable:!0,get:function(){return t.UnknownTypeError}}),Object.defineProperty(e,"UnknownSignatureError",{enumerable:!0,get:function(){return t.UnknownSignatureError}}),Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return t.parseAbi}}),Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return t.parseAbiItem}}),Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return t.parseAbiParameter}}),Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return t.parseAbiParameters}});var n=Kc;Object.defineProperty(e,"getContract",{enumerable:!0,get:function(){return n.getContract}});var r=Id;Object.defineProperty(e,"createClient",{enumerable:!0,get:function(){return r.createClient}});var o=Q2;Object.defineProperty(e,"custom",{enumerable:!0,get:function(){return o.custom}});var a=Ih;Object.defineProperty(e,"fallback",{enumerable:!0,get:function(){return a.fallback}});var i=J2;Object.defineProperty(e,"http",{enumerable:!0,get:function(){return i.http}});var s=QIe();Object.defineProperty(e,"createPublicClient",{enumerable:!0,get:function(){return s.createPublicClient}});var c=TC;Object.defineProperty(e,"createTestClient",{enumerable:!0,get:function(){return c.createTestClient}});var l=FJ();Object.defineProperty(e,"publicActions",{enumerable:!0,get:function(){return l.publicActions}});var u=gb;Object.defineProperty(e,"testActions",{enumerable:!0,get:function(){return u.testActions}});var d=MJ();Object.defineProperty(e,"walletActions",{enumerable:!0,get:function(){return d.walletActions}});var f=Ml;Object.defineProperty(e,"createTransport",{enumerable:!0,get:function(){return f.createTransport}});var h=LRe();Object.defineProperty(e,"createWalletClient",{enumerable:!0,get:function(){return h.createWalletClient}});var m=h6;Object.defineProperty(e,"webSocket",{enumerable:!0,get:function(){return m.webSocket}});var p=mn;Object.defineProperty(e,"multicall3Abi",{enumerable:!0,get:function(){return p.multicall3Abi}});var b=m6;Object.defineProperty(e,"zeroAddress",{enumerable:!0,get:function(){return b.zeroAddress}});var v=ya;Object.defineProperty(e,"etherUnits",{enumerable:!0,get:function(){return v.etherUnits}}),Object.defineProperty(e,"gweiUnits",{enumerable:!0,get:function(){return v.gweiUnits}}),Object.defineProperty(e,"weiUnits",{enumerable:!0,get:function(){return v.weiUnits}});var g=q;Object.defineProperty(e,"maxInt8",{enumerable:!0,get:function(){return g.maxInt8}}),Object.defineProperty(e,"maxInt16",{enumerable:!0,get:function(){return g.maxInt16}}),Object.defineProperty(e,"maxInt24",{enumerable:!0,get:function(){return g.maxInt24}}),Object.defineProperty(e,"maxInt32",{enumerable:!0,get:function(){return g.maxInt32}}),Object.defineProperty(e,"maxInt40",{enumerable:!0,get:function(){return g.maxInt40}}),Object.defineProperty(e,"maxInt48",{enumerable:!0,get:function(){return g.maxInt48}}),Object.defineProperty(e,"maxInt56",{enumerable:!0,get:function(){return g.maxInt56}}),Object.defineProperty(e,"maxInt64",{enumerable:!0,get:function(){return g.maxInt64}}),Object.defineProperty(e,"maxInt72",{enumerable:!0,get:function(){return g.maxInt72}}),Object.defineProperty(e,"maxInt80",{enumerable:!0,get:function(){return g.maxInt80}}),Object.defineProperty(e,"maxInt88",{enumerable:!0,get:function(){return g.maxInt88}}),Object.defineProperty(e,"maxInt96",{enumerable:!0,get:function(){return g.maxInt96}}),Object.defineProperty(e,"maxInt104",{enumerable:!0,get:function(){return g.maxInt104}}),Object.defineProperty(e,"maxInt112",{enumerable:!0,get:function(){return g.maxInt112}}),Object.defineProperty(e,"maxInt120",{enumerable:!0,get:function(){return g.maxInt120}}),Object.defineProperty(e,"maxInt128",{enumerable:!0,get:function(){return g.maxInt128}}),Object.defineProperty(e,"maxInt136",{enumerable:!0,get:function(){return g.maxInt136}}),Object.defineProperty(e,"maxInt144",{enumerable:!0,get:function(){return g.maxInt144}}),Object.defineProperty(e,"maxInt152",{enumerable:!0,get:function(){return g.maxInt152}}),Object.defineProperty(e,"maxInt160",{enumerable:!0,get:function(){return g.maxInt160}}),Object.defineProperty(e,"maxInt168",{enumerable:!0,get:function(){return g.maxInt168}}),Object.defineProperty(e,"maxInt176",{enumerable:!0,get:function(){return g.maxInt176}}),Object.defineProperty(e,"maxInt184",{enumerable:!0,get:function(){return g.maxInt184}}),Object.defineProperty(e,"maxInt192",{enumerable:!0,get:function(){return g.maxInt192}}),Object.defineProperty(e,"maxInt200",{enumerable:!0,get:function(){return g.maxInt200}}),Object.defineProperty(e,"maxInt208",{enumerable:!0,get:function(){return g.maxInt208}}),Object.defineProperty(e,"maxInt216",{enumerable:!0,get:function(){return g.maxInt216}}),Object.defineProperty(e,"maxInt224",{enumerable:!0,get:function(){return g.maxInt224}}),Object.defineProperty(e,"maxInt232",{enumerable:!0,get:function(){return g.maxInt232}}),Object.defineProperty(e,"maxInt240",{enumerable:!0,get:function(){return g.maxInt240}}),Object.defineProperty(e,"maxInt248",{enumerable:!0,get:function(){return g.maxInt248}}),Object.defineProperty(e,"maxInt256",{enumerable:!0,get:function(){return g.maxInt256}}),Object.defineProperty(e,"maxUint8",{enumerable:!0,get:function(){return g.maxUint8}}),Object.defineProperty(e,"maxUint16",{enumerable:!0,get:function(){return g.maxUint16}}),Object.defineProperty(e,"maxUint24",{enumerable:!0,get:function(){return g.maxUint24}}),Object.defineProperty(e,"maxUint32",{enumerable:!0,get:function(){return g.maxUint32}}),Object.defineProperty(e,"maxUint40",{enumerable:!0,get:function(){return g.maxUint40}}),Object.defineProperty(e,"maxUint48",{enumerable:!0,get:function(){return g.maxUint48}}),Object.defineProperty(e,"maxUint56",{enumerable:!0,get:function(){return g.maxUint56}}),Object.defineProperty(e,"maxUint64",{enumerable:!0,get:function(){return g.maxUint64}}),Object.defineProperty(e,"maxUint72",{enumerable:!0,get:function(){return g.maxUint72}}),Object.defineProperty(e,"maxUint80",{enumerable:!0,get:function(){return g.maxUint80}}),Object.defineProperty(e,"maxUint88",{enumerable:!0,get:function(){return g.maxUint88}}),Object.defineProperty(e,"maxUint96",{enumerable:!0,get:function(){return g.maxUint96}}),Object.defineProperty(e,"maxUint104",{enumerable:!0,get:function(){return g.maxUint104}}),Object.defineProperty(e,"maxUint112",{enumerable:!0,get:function(){return g.maxUint112}}),Object.defineProperty(e,"maxUint120",{enumerable:!0,get:function(){return g.maxUint120}}),Object.defineProperty(e,"maxUint128",{enumerable:!0,get:function(){return g.maxUint128}}),Object.defineProperty(e,"maxUint136",{enumerable:!0,get:function(){return g.maxUint136}}),Object.defineProperty(e,"maxUint144",{enumerable:!0,get:function(){return g.maxUint144}}),Object.defineProperty(e,"maxUint152",{enumerable:!0,get:function(){return g.maxUint152}}),Object.defineProperty(e,"maxUint160",{enumerable:!0,get:function(){return g.maxUint160}}),Object.defineProperty(e,"maxUint168",{enumerable:!0,get:function(){return g.maxUint168}}),Object.defineProperty(e,"maxUint176",{enumerable:!0,get:function(){return g.maxUint176}}),Object.defineProperty(e,"maxUint184",{enumerable:!0,get:function(){return g.maxUint184}}),Object.defineProperty(e,"maxUint192",{enumerable:!0,get:function(){return g.maxUint192}}),Object.defineProperty(e,"maxUint200",{enumerable:!0,get:function(){return g.maxUint200}}),Object.defineProperty(e,"maxUint208",{enumerable:!0,get:function(){return g.maxUint208}}),Object.defineProperty(e,"maxUint216",{enumerable:!0,get:function(){return g.maxUint216}}),Object.defineProperty(e,"maxUint224",{enumerable:!0,get:function(){return g.maxUint224}}),Object.defineProperty(e,"maxUint232",{enumerable:!0,get:function(){return g.maxUint232}}),Object.defineProperty(e,"maxUint240",{enumerable:!0,get:function(){return g.maxUint240}}),Object.defineProperty(e,"maxUint248",{enumerable:!0,get:function(){return g.maxUint248}}),Object.defineProperty(e,"maxUint256",{enumerable:!0,get:function(){return g.maxUint256}}),Object.defineProperty(e,"minInt8",{enumerable:!0,get:function(){return g.minInt8}}),Object.defineProperty(e,"minInt16",{enumerable:!0,get:function(){return g.minInt16}}),Object.defineProperty(e,"minInt24",{enumerable:!0,get:function(){return g.minInt24}}),Object.defineProperty(e,"minInt32",{enumerable:!0,get:function(){return g.minInt32}}),Object.defineProperty(e,"minInt40",{enumerable:!0,get:function(){return g.minInt40}}),Object.defineProperty(e,"minInt48",{enumerable:!0,get:function(){return g.minInt48}}),Object.defineProperty(e,"minInt56",{enumerable:!0,get:function(){return g.minInt56}}),Object.defineProperty(e,"minInt64",{enumerable:!0,get:function(){return g.minInt64}}),Object.defineProperty(e,"minInt72",{enumerable:!0,get:function(){return g.minInt72}}),Object.defineProperty(e,"minInt80",{enumerable:!0,get:function(){return g.minInt80}}),Object.defineProperty(e,"minInt88",{enumerable:!0,get:function(){return g.minInt88}}),Object.defineProperty(e,"minInt96",{enumerable:!0,get:function(){return g.minInt96}}),Object.defineProperty(e,"minInt104",{enumerable:!0,get:function(){return g.minInt104}}),Object.defineProperty(e,"minInt112",{enumerable:!0,get:function(){return g.minInt112}}),Object.defineProperty(e,"minInt120",{enumerable:!0,get:function(){return g.minInt120}}),Object.defineProperty(e,"minInt128",{enumerable:!0,get:function(){return g.minInt128}}),Object.defineProperty(e,"minInt136",{enumerable:!0,get:function(){return g.minInt136}}),Object.defineProperty(e,"minInt144",{enumerable:!0,get:function(){return g.minInt144}}),Object.defineProperty(e,"minInt152",{enumerable:!0,get:function(){return g.minInt152}}),Object.defineProperty(e,"minInt160",{enumerable:!0,get:function(){return g.minInt160}}),Object.defineProperty(e,"minInt168",{enumerable:!0,get:function(){return g.minInt168}}),Object.defineProperty(e,"minInt176",{enumerable:!0,get:function(){return g.minInt176}}),Object.defineProperty(e,"minInt184",{enumerable:!0,get:function(){return g.minInt184}}),Object.defineProperty(e,"minInt192",{enumerable:!0,get:function(){return g.minInt192}}),Object.defineProperty(e,"minInt200",{enumerable:!0,get:function(){return g.minInt200}}),Object.defineProperty(e,"minInt208",{enumerable:!0,get:function(){return g.minInt208}}),Object.defineProperty(e,"minInt216",{enumerable:!0,get:function(){return g.minInt216}}),Object.defineProperty(e,"minInt224",{enumerable:!0,get:function(){return g.minInt224}}),Object.defineProperty(e,"minInt232",{enumerable:!0,get:function(){return g.minInt232}}),Object.defineProperty(e,"minInt240",{enumerable:!0,get:function(){return g.minInt240}}),Object.defineProperty(e,"minInt248",{enumerable:!0,get:function(){return g.minInt248}}),Object.defineProperty(e,"minInt256",{enumerable:!0,get:function(){return g.minInt256}});var w=p6;Object.defineProperty(e,"zeroHash",{enumerable:!0,get:function(){return w.zeroHash}});var _=lb;Object.defineProperty(e,"presignMessagePrefix",{enumerable:!0,get:function(){return _.presignMessagePrefix}});var C=Jt();Object.defineProperty(e,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return C.AbiConstructorNotFoundError}}),Object.defineProperty(e,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return C.AbiConstructorParamsNotFoundError}}),Object.defineProperty(e,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return C.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(e,"AbiDecodingDataSizeTooSmallError",{enumerable:!0,get:function(){return C.AbiDecodingDataSizeTooSmallError}}),Object.defineProperty(e,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return C.AbiDecodingZeroDataError}}),Object.defineProperty(e,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return C.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(e,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return C.AbiEncodingLengthMismatchError}}),Object.defineProperty(e,"AbiEncodingBytesSizeMismatchError",{enumerable:!0,get:function(){return C.AbiEncodingBytesSizeMismatchError}}),Object.defineProperty(e,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return C.AbiErrorInputsNotFoundError}}),Object.defineProperty(e,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return C.AbiErrorNotFoundError}}),Object.defineProperty(e,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return C.AbiErrorSignatureNotFoundError}}),Object.defineProperty(e,"AbiEventNotFoundError",{enumerable:!0,get:function(){return C.AbiEventNotFoundError}}),Object.defineProperty(e,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return C.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(e,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return C.AbiEventSignatureNotFoundError}}),Object.defineProperty(e,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return C.AbiFunctionNotFoundError}}),Object.defineProperty(e,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return C.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(e,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return C.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(e,"BytesSizeMismatchError",{enumerable:!0,get:function(){return C.BytesSizeMismatchError}}),Object.defineProperty(e,"DecodeLogDataMismatch",{enumerable:!0,get:function(){return C.DecodeLogDataMismatch}}),Object.defineProperty(e,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return C.DecodeLogTopicsMismatch}}),Object.defineProperty(e,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return C.InvalidAbiDecodingTypeError}}),Object.defineProperty(e,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return C.InvalidAbiEncodingTypeError}}),Object.defineProperty(e,"InvalidArrayError",{enumerable:!0,get:function(){return C.InvalidArrayError}}),Object.defineProperty(e,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return C.InvalidDefinitionTypeError}}),Object.defineProperty(e,"UnsupportedPackedAbiType",{enumerable:!0,get:function(){return C.UnsupportedPackedAbiType}});var x=xt;Object.defineProperty(e,"BaseError",{enumerable:!0,get:function(){return x.BaseError}});var E=vm;Object.defineProperty(e,"BlockNotFoundError",{enumerable:!0,get:function(){return E.BlockNotFoundError}});var T=Zn;Object.defineProperty(e,"CallExecutionError",{enumerable:!0,get:function(){return T.CallExecutionError}}),Object.defineProperty(e,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return T.ContractFunctionExecutionError}}),Object.defineProperty(e,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return T.ContractFunctionRevertedError}}),Object.defineProperty(e,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return T.ContractFunctionZeroDataError}}),Object.defineProperty(e,"RawContractError",{enumerable:!0,get:function(){return T.RawContractError}});var k=ti;Object.defineProperty(e,"BaseFeeScalarError",{enumerable:!0,get:function(){return k.BaseFeeScalarError}}),Object.defineProperty(e,"Eip1559FeesNotSupportedError",{enumerable:!0,get:function(){return k.Eip1559FeesNotSupportedError}}),Object.defineProperty(e,"MaxFeePerGasTooLowError",{enumerable:!0,get:function(){return k.MaxFeePerGasTooLowError}});var D=qe;Object.defineProperty(e,"ChainDisconnectedError",{enumerable:!0,get:function(){return D.ChainDisconnectedError}}),Object.defineProperty(e,"InternalRpcError",{enumerable:!0,get:function(){return D.InternalRpcError}}),Object.defineProperty(e,"InvalidInputRpcError",{enumerable:!0,get:function(){return D.InvalidInputRpcError}}),Object.defineProperty(e,"InvalidParamsRpcError",{enumerable:!0,get:function(){return D.InvalidParamsRpcError}}),Object.defineProperty(e,"InvalidRequestRpcError",{enumerable:!0,get:function(){return D.InvalidRequestRpcError}}),Object.defineProperty(e,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return D.JsonRpcVersionUnsupportedError}}),Object.defineProperty(e,"LimitExceededRpcError",{enumerable:!0,get:function(){return D.LimitExceededRpcError}}),Object.defineProperty(e,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return D.MethodNotFoundRpcError}}),Object.defineProperty(e,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return D.MethodNotSupportedRpcError}}),Object.defineProperty(e,"ParseRpcError",{enumerable:!0,get:function(){return D.ParseRpcError}}),Object.defineProperty(e,"ProviderDisconnectedError",{enumerable:!0,get:function(){return D.ProviderDisconnectedError}}),Object.defineProperty(e,"ProviderRpcError",{enumerable:!0,get:function(){return D.ProviderRpcError}}),Object.defineProperty(e,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return D.ResourceNotFoundRpcError}}),Object.defineProperty(e,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return D.ResourceUnavailableRpcError}}),Object.defineProperty(e,"RpcError",{enumerable:!0,get:function(){return D.RpcError}}),Object.defineProperty(e,"SwitchChainError",{enumerable:!0,get:function(){return D.SwitchChainError}}),Object.defineProperty(e,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return D.TransactionRejectedRpcError}}),Object.defineProperty(e,"UnauthorizedProviderError",{enumerable:!0,get:function(){return D.UnauthorizedProviderError}}),Object.defineProperty(e,"UnknownRpcError",{enumerable:!0,get:function(){return D.UnknownRpcError}}),Object.defineProperty(e,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return D.UnsupportedProviderMethodError}}),Object.defineProperty(e,"UserRejectedRequestError",{enumerable:!0,get:function(){return D.UserRejectedRequestError}});var R=Pr;Object.defineProperty(e,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return R.ChainDoesNotSupportContract}}),Object.defineProperty(e,"ChainMismatchError",{enumerable:!0,get:function(){return R.ChainMismatchError}}),Object.defineProperty(e,"ChainNotFoundError",{enumerable:!0,get:function(){return R.ChainNotFoundError}}),Object.defineProperty(e,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return R.ClientChainNotConfiguredError}}),Object.defineProperty(e,"InvalidChainIdError",{enumerable:!0,get:function(){return R.InvalidChainIdError}});var F=hn;Object.defineProperty(e,"DataLengthTooLongError",{enumerable:!0,get:function(){return F.DataLengthTooLongError}}),Object.defineProperty(e,"DataLengthTooShortError",{enumerable:!0,get:function(){return F.DataLengthTooShortError}}),Object.defineProperty(e,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return F.InvalidBytesBooleanError}}),Object.defineProperty(e,"IntegerOutOfRangeError",{enumerable:!0,get:function(){return F.IntegerOutOfRangeError}}),Object.defineProperty(e,"InvalidHexBooleanError",{enumerable:!0,get:function(){return F.InvalidHexBooleanError}}),Object.defineProperty(e,"InvalidHexValueError",{enumerable:!0,get:function(){return F.InvalidHexValueError}}),Object.defineProperty(e,"OffsetOutOfBoundsError",{enumerable:!0,get:function(){return F.OffsetOutOfBoundsError}}),Object.defineProperty(e,"SizeOverflowError",{enumerable:!0,get:function(){return F.SizeOverflowError}});var B=Qa;Object.defineProperty(e,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return B.EnsAvatarUriResolutionError}}),Object.defineProperty(e,"EnsAvatarInvalidNftUriError",{enumerable:!0,get:function(){return B.EnsAvatarInvalidNftUriError}}),Object.defineProperty(e,"EnsAvatarUnsupportedNamespaceError",{enumerable:!0,get:function(){return B.EnsAvatarUnsupportedNamespaceError}});var j=By;Object.defineProperty(e,"EstimateGasExecutionError",{enumerable:!0,get:function(){return j.EstimateGasExecutionError}});var P=St;Object.defineProperty(e,"ExecutionRevertedError",{enumerable:!0,get:function(){return P.ExecutionRevertedError}}),Object.defineProperty(e,"FeeCapTooHighError",{enumerable:!0,get:function(){return P.FeeCapTooHighError}}),Object.defineProperty(e,"FeeCapTooLowError",{enumerable:!0,get:function(){return P.FeeCapTooLowError}}),Object.defineProperty(e,"InsufficientFundsError",{enumerable:!0,get:function(){return P.InsufficientFundsError}}),Object.defineProperty(e,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return P.IntrinsicGasTooHighError}}),Object.defineProperty(e,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return P.IntrinsicGasTooLowError}}),Object.defineProperty(e,"NonceMaxValueError",{enumerable:!0,get:function(){return P.NonceMaxValueError}}),Object.defineProperty(e,"NonceTooHighError",{enumerable:!0,get:function(){return P.NonceTooHighError}}),Object.defineProperty(e,"NonceTooLowError",{enumerable:!0,get:function(){return P.NonceTooLowError}}),Object.defineProperty(e,"TipAboveFeeCapError",{enumerable:!0,get:function(){return P.TipAboveFeeCapError}}),Object.defineProperty(e,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return P.TransactionTypeNotSupportedError}}),Object.defineProperty(e,"UnknownNodeError",{enumerable:!0,get:function(){return P.UnknownNodeError}});var O=jy;Object.defineProperty(e,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return O.FilterTypeNotSupportedError}});var I=hr;Object.defineProperty(e,"HttpRequestError",{enumerable:!0,get:function(){return I.HttpRequestError}}),Object.defineProperty(e,"RpcRequestError",{enumerable:!0,get:function(){return I.RpcRequestError}}),Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return I.TimeoutError}}),Object.defineProperty(e,"WebSocketRequestError",{enumerable:!0,get:function(){return I.WebSocketRequestError}});var N=Zo;Object.defineProperty(e,"InvalidAddressError",{enumerable:!0,get:function(){return N.InvalidAddressError}});var M=pt;Object.defineProperty(e,"FeeConflictError",{enumerable:!0,get:function(){return M.FeeConflictError}}),Object.defineProperty(e,"InvalidLegacyVError",{enumerable:!0,get:function(){return M.InvalidLegacyVError}}),Object.defineProperty(e,"InvalidSerializableTransactionError",{enumerable:!0,get:function(){return M.InvalidSerializableTransactionError}}),Object.defineProperty(e,"InvalidSerializedTransactionError",{enumerable:!0,get:function(){return M.InvalidSerializedTransactionError}}),Object.defineProperty(e,"InvalidSerializedTransactionTypeError",{enumerable:!0,get:function(){return M.InvalidSerializedTransactionTypeError}}),Object.defineProperty(e,"InvalidStorageKeySizeError",{enumerable:!0,get:function(){return M.InvalidStorageKeySizeError}}),Object.defineProperty(e,"TransactionExecutionError",{enumerable:!0,get:function(){return M.TransactionExecutionError}}),Object.defineProperty(e,"TransactionNotFoundError",{enumerable:!0,get:function(){return M.TransactionNotFoundError}}),Object.defineProperty(e,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return M.TransactionReceiptNotFoundError}}),Object.defineProperty(e,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return M.WaitForTransactionReceiptTimeoutError}});var L=pl;Object.defineProperty(e,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return L.SizeExceedsPaddingSizeError}}),Object.defineProperty(e,"SliceOffsetOutOfBoundsError",{enumerable:!0,get:function(){return L.SliceOffsetOutOfBoundsError}});var X=km;Object.defineProperty(e,"UrlRequiredError",{enumerable:!0,get:function(){return X.UrlRequiredError}});var J=Ky;Object.defineProperty(e,"labelhash",{enumerable:!0,get:function(){return J.labelhash}});var U=Pm;Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return U.namehash}});var G=js;Object.defineProperty(e,"defineBlock",{enumerable:!0,get:function(){return G.defineBlock}}),Object.defineProperty(e,"formatBlock",{enumerable:!0,get:function(){return G.formatBlock}});var Z=Vi;Object.defineProperty(e,"formatLog",{enumerable:!0,get:function(){return Z.formatLog}});var ae=Hi;Object.defineProperty(e,"decodeAbiParameters",{enumerable:!0,get:function(){return ae.decodeAbiParameters}});var ne=g6;Object.defineProperty(e,"decodeDeployData",{enumerable:!0,get:function(){return ne.decodeDeployData}});var ie=xd;Object.defineProperty(e,"decodeErrorResult",{enumerable:!0,get:function(){return ie.decodeErrorResult}});var te=Qs;Object.defineProperty(e,"decodeEventLog",{enumerable:!0,get:function(){return te.decodeEventLog}});var ee=tb;Object.defineProperty(e,"decodeFunctionData",{enumerable:!0,get:function(){return ee.decodeFunctionData}});var re=ui;Object.defineProperty(e,"decodeFunctionResult",{enumerable:!0,get:function(){return re.decodeFunctionResult}});var z=ao;Object.defineProperty(e,"encodeAbiParameters",{enumerable:!0,get:function(){return z.encodeAbiParameters}});var fe=Im;Object.defineProperty(e,"encodeDeployData",{enumerable:!0,get:function(){return fe.encodeDeployData}});var ve=nb;Object.defineProperty(e,"encodeErrorResult",{enumerable:!0,get:function(){return ve.encodeErrorResult}});var Ue=Ws;Object.defineProperty(e,"encodeEventTopics",{enumerable:!0,get:function(){return Ue.encodeEventTopics}});var ke=ea;Object.defineProperty(e,"encodeFunctionData",{enumerable:!0,get:function(){return ke.encodeFunctionData}});var Qe=rb;Object.defineProperty(e,"encodeFunctionResult",{enumerable:!0,get:function(){return Qe.encodeFunctionResult}});var Te=wm;Object.defineProperty(e,"defineTransaction",{enumerable:!0,get:function(){return Te.defineTransaction}}),Object.defineProperty(e,"formatTransaction",{enumerable:!0,get:function(){return Te.formatTransaction}}),Object.defineProperty(e,"transactionType",{enumerable:!0,get:function(){return Te.transactionType}});var Ee=gl;Object.defineProperty(e,"defineTransactionReceipt",{enumerable:!0,get:function(){return Ee.defineTransactionReceipt}}),Object.defineProperty(e,"formatTransactionReceipt",{enumerable:!0,get:function(){return Ee.formatTransactionReceipt}});var he=Rl;Object.defineProperty(e,"defineTransactionRequest",{enumerable:!0,get:function(){return he.defineTransactionRequest}}),Object.defineProperty(e,"formatTransactionRequest",{enumerable:!0,get:function(){return he.formatTransactionRequest}}),Object.defineProperty(e,"rpcTransactionType",{enumerable:!0,get:function(){return he.rpcTransactionType}});var Me=Br;Object.defineProperty(e,"getAbiItem",{enumerable:!0,get:function(){return Me.getAbiItem}});var ge=SJ();Object.defineProperty(e,"getContractAddress",{enumerable:!0,get:function(){return ge.getContractAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return ge.getCreate2Address}}),Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return ge.getCreateAddress}});var Y=Lm;Object.defineProperty(e,"getSerializedTransactionType",{enumerable:!0,get:function(){return Y.getSerializedTransactionType}});var W=Td;Object.defineProperty(e,"getTransactionType",{enumerable:!0,get:function(){return W.getTransactionType}});var Q=eb();Object.defineProperty(e,"hashDomain",{enumerable:!0,get:function(){return Q.hashDomain}}),Object.defineProperty(e,"hashTypedData",{enumerable:!0,get:function(){return Q.hashTypedData}});var ce=y6;Object.defineProperty(e,"compactSignatureToSignature",{enumerable:!0,get:function(){return ce.compactSignatureToSignature}});var pe=b6;Object.defineProperty(e,"hexToCompactSignature",{enumerable:!0,get:function(){return pe.hexToCompactSignature}});var De=v6;Object.defineProperty(e,"hexToSignature",{enumerable:!0,get:function(){return De.hexToSignature}});var Ie=Rd;Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return Ie.recoverAddress}});var Je=Bm;Object.defineProperty(e,"recoverMessageAddress",{enumerable:!0,get:function(){return Je.recoverMessageAddress}});var Oe=Nm;Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return Oe.recoverPublicKey}});var _e=Mm;Object.defineProperty(e,"recoverTypedDataAddress",{enumerable:!0,get:function(){return _e.recoverTypedDataAddress}});var at=ZRe();Object.defineProperty(e,"signatureToCompactSignature",{enumerable:!0,get:function(){return at.signatureToCompactSignature}});var Ft=w6;Object.defineProperty(e,"compactSignatureToHex",{enumerable:!0,get:function(){return Ft.compactSignatureToHex}});var Lt=E6;Object.defineProperty(e,"signatureToHex",{enumerable:!0,get:function(){return Lt.signatureToHex}});var Js=gC();Object.defineProperty(e,"bytesToRlp",{enumerable:!0,get:function(){return Js.bytesToRlp}}),Object.defineProperty(e,"hexToRlp",{enumerable:!0,get:function(){return Js.hexToRlp}}),Object.defineProperty(e,"toRlp",{enumerable:!0,get:function(){return Js.toRlp}});var Jm=ub;Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return Jm.verifyMessage}});var $d=db;Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return $d.verifyTypedData}});var Zs=Gi;Object.defineProperty(e,"assertRequest",{enumerable:!0,get:function(){return Zs.assertRequest}});var fi=ni;Object.defineProperty(e,"assertTransactionEIP1559",{enumerable:!0,get:function(){return fi.assertTransactionEIP1559}}),Object.defineProperty(e,"assertTransactionEIP2930",{enumerable:!0,get:function(){return fi.assertTransactionEIP2930}}),Object.defineProperty(e,"assertTransactionLegacy",{enumerable:!0,get:function(){return fi.assertTransactionLegacy}});var Ia=Gn();Object.defineProperty(e,"boolToBytes",{enumerable:!0,get:function(){return Ia.boolToBytes}}),Object.defineProperty(e,"hexToBytes",{enumerable:!0,get:function(){return Ia.hexToBytes}}),Object.defineProperty(e,"numberToBytes",{enumerable:!0,get:function(){return Ia.numberToBytes}}),Object.defineProperty(e,"stringToBytes",{enumerable:!0,get:function(){return Ia.stringToBytes}}),Object.defineProperty(e,"toBytes",{enumerable:!0,get:function(){return Ia.toBytes}});var ta=$e();Object.defineProperty(e,"boolToHex",{enumerable:!0,get:function(){return ta.boolToHex}}),Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return ta.bytesToHex}}),Object.defineProperty(e,"numberToHex",{enumerable:!0,get:function(){return ta.numberToHex}}),Object.defineProperty(e,"stringToHex",{enumerable:!0,get:function(){return ta.stringToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return ta.toHex}});var na=Lo;Object.defineProperty(e,"bytesToBigInt",{enumerable:!0,get:function(){return na.bytesToBigInt}}),Object.defineProperty(e,"bytesToBigint",{enumerable:!0,get:function(){return na.bytesToBigInt}}),Object.defineProperty(e,"bytesToBool",{enumerable:!0,get:function(){return na.bytesToBool}}),Object.defineProperty(e,"bytesToNumber",{enumerable:!0,get:function(){return na.bytesToNumber}}),Object.defineProperty(e,"bytesToString",{enumerable:!0,get:function(){return na.bytesToString}}),Object.defineProperty(e,"fromBytes",{enumerable:!0,get:function(){return na.fromBytes}});var ec=rP();Object.defineProperty(e,"ccipFetch",{enumerable:!0,get:function(){return ec.ccipFetch}}),Object.defineProperty(e,"offchainLookup",{enumerable:!0,get:function(){return ec.offchainLookup}}),Object.defineProperty(e,"offchainLookupAbiItem",{enumerable:!0,get:function(){return ec.offchainLookupAbiItem}}),Object.defineProperty(e,"offchainLookupSignature",{enumerable:!0,get:function(){return ec.offchainLookupSignature}});var tc=On;Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return tc.concat}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return tc.concatBytes}}),Object.defineProperty(e,"concatHex",{enumerable:!0,get:function(){return tc.concatHex}});var Zm=jd;Object.defineProperty(e,"assertCurrentChain",{enumerable:!0,get:function(){return Zm.assertCurrentChain}});var zd=Jy;Object.defineProperty(e,"defineChain",{enumerable:!0,get:function(){return zd.defineChain}});var Hl=Zy;Object.defineProperty(e,"extractChain",{enumerable:!0,get:function(){return Hl.extractChain}});var nc=di;Object.defineProperty(e,"getChainContractAddress",{enumerable:!0,get:function(){return nc.getChainContractAddress}});var ep=ob;Object.defineProperty(e,"encodePacked",{enumerable:!0,get:function(){return ep.encodePacked}});var H6=Il;Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return H6.formatEther}});var H=qi;Object.defineProperty(e,"formatGwei",{enumerable:!0,get:function(){return H.formatGwei}});var V=Cd;Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return V.formatUnits}});var oe=Wn();Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return oe.fromHex}}),Object.defineProperty(e,"hexToBigInt",{enumerable:!0,get:function(){return oe.hexToBigInt}}),Object.defineProperty(e,"hexToBool",{enumerable:!0,get:function(){return oe.hexToBool}}),Object.defineProperty(e,"hexToNumber",{enumerable:!0,get:function(){return oe.hexToNumber}}),Object.defineProperty(e,"hexToString",{enumerable:!0,get:function(){return oe.hexToString}});var se=Bi;Object.defineProperty(e,"fromRlp",{enumerable:!0,get:function(){return se.fromRlp}});var we=Co;Object.defineProperty(e,"checksumAddress",{enumerable:!0,get:function(){return we.checksumAddress}}),Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return we.getAddress}});var je=Vs;Object.defineProperty(e,"getContractError",{enumerable:!0,get:function(){return je.getContractError}});var ze=Pl;Object.defineProperty(e,"getEventSelector",{enumerable:!0,get:function(){return ze.getEventSelector}});var be=Py;Object.defineProperty(e,"getEventSignature",{enumerable:!0,get:function(){return be.getEventSignature}});var Ze=zi;Object.defineProperty(e,"getFunctionSelector",{enumerable:!0,get:function(){return Ze.getFunctionSelector}});var Re=bm;Object.defineProperty(e,"getFunctionSignature",{enumerable:!0,get:function(){return Re.getFunctionSignature}});var Le=Fm;Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return Le.hashMessage}});var Dt=uo;Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return Dt.isAddress}});var Tt=Bl;Object.defineProperty(e,"isAddressEqual",{enumerable:!0,get:function(){return Tt.isAddressEqual}});var Pt=Om;Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return Pt.isBytes}});var Ct=Rm;Object.defineProperty(e,"isHash",{enumerable:!0,get:function(){return Ct.isHash}});var Nn=qn;Object.defineProperty(e,"isHex",{enumerable:!0,get:function(){return Nn.isHex}});var ln=lo;Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return ln.keccak256}});var ql=ib;Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return ql.sha256}});var hi=sb;Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return hi.ripemd160}});var mi=eo;Object.defineProperty(e,"pad",{enumerable:!0,get:function(){return mi.pad}}),Object.defineProperty(e,"padBytes",{enumerable:!0,get:function(){return mi.padBytes}}),Object.defineProperty(e,"padHex",{enumerable:!0,get:function(){return mi.padHex}});var rc=fb;Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return rc.parseEther}});var oc=hb;Object.defineProperty(e,"parseGwei",{enumerable:!0,get:function(){return oc.parseGwei}});var ra=ps;Object.defineProperty(e,"parseTransaction",{enumerable:!0,get:function(){return ra.parseTransaction}});var Hd=Nd;Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return Hd.parseUnits}});var qd=Um;Object.defineProperty(e,"serializeAccessList",{enumerable:!0,get:function(){return qd.serializeAccessList}});var Wd=NJ();Object.defineProperty(e,"serializeTransaction",{enumerable:!0,get:function(){return Wd.serializeTransaction}});var tt=ka;Object.defineProperty(e,"size",{enumerable:!0,get:function(){return tt.size}});var Ut=Nr;Object.defineProperty(e,"slice",{enumerable:!0,get:function(){return Ut.slice}}),Object.defineProperty(e,"sliceBytes",{enumerable:!0,get:function(){return Ut.sliceBytes}}),Object.defineProperty(e,"sliceHex",{enumerable:!0,get:function(){return Ut.sliceHex}});var $r=xr;Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return $r.stringify}});var $t=ci;Object.defineProperty(e,"trim",{enumerable:!0,get:function(){return $t.trim}});var Do=pC();Object.defineProperty(e,"validateTypedData",{enumerable:!0,get:function(){return Do.validateTypedData}}),Object.defineProperty(e,"domainSeparator",{enumerable:!0,get:function(){return Do.domainSeparator}}),Object.defineProperty(e,"getTypesForEIP712Domain",{enumerable:!0,get:function(){return Do.getTypesForEIP712Domain}})}(j3)),j3}var Nh={};Object.defineProperty(Nh,"__esModule",{value:!0});Nh.MAGIC_VALUE_BYTES=Nh.MAGIC_VALUE=void 0;const aNe="0x1626ba7e";Nh.MAGIC_VALUE=aNe;const iNe="0x20c13b0b";Nh.MAGIC_VALUE_BYTES=iNe;var fP={},yb={},rd={};Object.defineProperty(rd,"__esModule",{value:!0});rd.PermissionsError=rd.PERMISSIONS_REQUEST_REJECTED=void 0;rd.PERMISSIONS_REQUEST_REJECTED=4001;class hP extends Error{constructor(t,n,r){super(t),this.code=n,this.data=r,Object.setPrototypeOf(this,hP.prototype)}}rd.PermissionsError=hP;Object.defineProperty(yb,"__esModule",{value:!0});yb.Wallet=void 0;const iT=Ed,_v=rd;class sNe{constructor(t){this.communicator=t}async getPermissions(){return(await this.communicator.send(iT.Methods.wallet_getPermissions,void 0)).data}async requestPermissions(t){if(!this.isPermissionRequestValid(t))throw new _v.PermissionsError("Permissions request is invalid",_v.PERMISSIONS_REQUEST_REJECTED);try{return(await this.communicator.send(iT.Methods.wallet_requestPermissions,t)).data}catch{throw new _v.PermissionsError("Permissions rejected",_v.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(t){return t.every(n=>typeof n=="object"?Object.keys(n).every(r=>!!Object.values(iT.RestrictedMethods).includes(r)):!1)}}yb.Wallet=sNe;Object.defineProperty(fP,"__esModule",{value:!0});const cNe=yb,bF=rd,vF=(e,t)=>t.some(n=>n.parentCapability===e),lNe=()=>(e,t,n)=>{const r=n.value;return n.value=async function(){const o=new cNe.Wallet(this.communicator);let a=await o.getPermissions();if(vF(t,a)||(a=await o.requestPermissions([{[t]:{}}])),!vF(t,a))throw new bF.PermissionsError("Permissions rejected",bF.PERMISSIONS_REQUEST_REJECTED);return r.apply(this)},n};fP.default=lNe;var uNe=We&&We.__decorate||function(e,t,n,r){var o=arguments.length,a=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},dNe=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(C2,"__esModule",{value:!0});C2.Safe=void 0;const xv=LJ(),wF=Nh,uc=Ed,EF=ky,fNe=v2,hNe=dNe(fP);class UJ{constructor(t){this.communicator=t}async getChainInfo(){return(await this.communicator.send(uc.Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(uc.Methods.getSafeInfo,void 0)).data}async experimental_getBalances({currency:t="usd"}={}){return(await this.communicator.send(uc.Methods.getSafeBalances,{currency:t})).data}async check1271Signature(t,n="0x"){const r=await this.getInfo(),o=(0,xv.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[t,n]}),a={call:EF.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:o},"latest"]};try{return(await this.communicator.send(uc.Methods.rpcCall,a)).data.slice(0,10).toLowerCase()===wF.MAGIC_VALUE}catch{return!1}}async check1271SignatureBytes(t,n="0x"){const r=await this.getInfo(),o=(0,xv.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[t,n]}),a={call:EF.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:o},"latest"]};try{return(await this.communicator.send(uc.Methods.rpcCall,a)).data.slice(0,10).toLowerCase()===wF.MAGIC_VALUE_BYTES}catch{return!1}}calculateMessageHash(t){return(0,xv.hashMessage)(t)}calculateTypedMessageHash(t){const n=typeof t.domain.chainId=="object"?t.domain.chainId.toNumber():Number(t.domain.chainId);let r=t.primaryType;if(!r){const o=Object.values(t.types),a=Object.keys(t.types).filter(i=>o.every(s=>s.every(({type:c})=>c.replace("[","").replace("]","")!==i)));if(a.length===0||a.length>1)throw new Error("Please specify primaryType");r=a[0]}return(0,xv.hashTypedData)({message:t.message,domain:Object.assign(Object.assign({},t.domain),{chainId:n,verifyingContract:t.domain.verifyingContract,salt:t.domain.salt}),types:t.types,primaryType:r})}async getOffChainSignature(t){return(await this.communicator.send(uc.Methods.getOffChainSignature,t)).data}async isMessageSigned(t,n="0x"){let r;if(typeof t=="string"&&(r=async()=>{const o=this.calculateMessageHash(t);return await this.isMessageHashSigned(o,n)}),(0,fNe.isObjectEIP712TypedData)(t)&&(r=async()=>{const o=this.calculateTypedMessageHash(t);return await this.isMessageHashSigned(o,n)}),r)return await r();throw new Error("Invalid message type")}async isMessageHashSigned(t,n="0x"){const r=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const o of r)if(await o(t,n))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(uc.Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(uc.Methods.requestAddressBook,void 0)).data}}uNe([(0,hNe.default)()],UJ.prototype,"requestAddressBook",null);C2.Safe=UJ;var mNe=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(DE,"__esModule",{value:!0});const pNe=mNe(bX),gNe=b2,yNe=x2,bNe=C2,vNe=yb;let wNe=class{constructor(t={}){const{allowedDomains:n=null,debug:r=!1}=t;this.communicator=new pNe.default(n,r),this.eth=new yNe.Eth(this.communicator),this.txs=new gNe.TXs(this.communicator),this.safe=new bNe.Safe(this.communicator),this.wallet=new vNe.Wallet(this.communicator)}};DE.default=wNe;(function(e){var t=We&&We.__createBinding||(Object.create?function(i,s,c,l){l===void 0&&(l=c);var u=Object.getOwnPropertyDescriptor(s,c);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(i,l,u)}:function(i,s,c,l){l===void 0&&(l=c),i[l]=s[c]}),n=We&&We.__exportStar||function(i,s){for(var c in i)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&t(s,i,c)},r=We&&We.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.getSDKVersion=void 0;const o=r(DE);e.default=o.default,n(DE,e),n(v2,e),n(Ed,e),n(Ay,e);var a=Dy;Object.defineProperty(e,"getSDKVersion",{enumerable:!0,get:function(){return a.getSDKVersion}})})(yX);const Cv=cd(yX);var a0,i0,$J=class extends py{constructor({chains:e,options:t}){const n={shimDisconnect:!1,...t};super({chains:e,options:n}),this.id="safe",this.name="Safe",this.ready=!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,Fn(this,a0,void 0),Fn(this,i0,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`;let r=Cv;typeof Cv!="function"&&typeof Cv.default=="function"&&(r=Cv.default),As(this,i0,new r(n))}async connect(){var r;const e=await this.getProvider();if(!e)throw new ua;e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const t=await this.getAccount(),n=await this.getChainId();return this.options.shimDisconnect&&((r=this.storage)==null||r.setItem(this.shimDisconnectKey,!0)),{account:t,chain:{id:n,unsupported:this.isChainUnsupported(n)}}}async disconnect(){var t;const e=await this.getProvider();e!=null&&e.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((t=this.storage)==null||t.removeItem(this.shimDisconnectKey)))}async getAccount(){const e=await this.getProvider();if(!e)throw new ua;const t=await e.request({method:"eth_accounts"});return Rr(t[0])}async getChainId(){const e=await this.getProvider();if(!e)throw new ua;return Ju(e.chainId)}async getProvider(){if(!ft(this,a0)){const e=await ft(this,i0).safe.getInfo();if(!e)throw new Error("Could not load Safe information");As(this,a0,new sX.SafeAppProvider(e,ft(this,i0)))}return ft(this,a0)}async getWalletClient({chainId:e}={}){const t=await this.getProvider(),n=await this.getAccount(),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){var e;try{return this.options.shimDisconnect&&!((e=this.storage)!=null&&e.getItem(this.shimDisconnectKey))?!1:!!await this.getAccount()}catch{return!1}}onAccountsChanged(e){}onChainChanged(e){}onDisconnect(){this.emit("disconnect")}};a0=new WeakMap;i0=new WeakMap;var ENe=768;B_e({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}});var _Ne=JY({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),qD=z_e({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"}}}}}),_F={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)"}},xNe={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},CNe="_12cbo8i3 ju367v8r",SNe={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function wr({active:e,hover:t}){return[CNe,t&&SNe[t],xNe[e]]}var zJ=S.createContext(null);function TNe(){var e;const{adapter:t}=(e=S.useContext(zJ))!=null?e:{};if(!t)throw new Error("No authentication adapter found");return t}function _6(){var e;const t=S.useContext(zJ);return(e=t==null?void 0:t.status)!=null?e:null}function HJ(){const e=_6(),{isConnected:t}=tn();return t?e&&(e==="loading"||e==="unauthenticated")?e:"connected":"disconnected"}function mP(){return typeof navigator<"u"&&/android/i.test(navigator.userAgent)}function ANe(){return typeof navigator<"u"&&/iPhone|iPod/.test(navigator.userAgent)}function DNe(){return typeof navigator<"u"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function Ll(){return ANe()||DNe()}function Cr(){return mP()||Ll()}var kNe="iekbcc0",jNe={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"},PNe=({reset:e,...t})=>{if(!e)return qD(t);const n=jNe[e],r=qD(t);return eQ(kNe,n,r)},$=S.forwardRef(({as:e="div",className:t,testId:n,...r},o)=>{const a={},i={};for(const c in r)qD.properties.has(c)?a[c]=r[c]:i[c]=r[c];const s=PNe({reset:typeof e=="string"?e:"div",...a});return S.createElement(e,{className:eQ(s,t),...i,"data-testid":n?`rk-${n.replace(/^rk-/,"")}`:void 0,ref:o})});$.displayName="Box";var qJ=new Map,sT=new Map;async function WJ(e){const t=sT.get(e);if(t)return t;const n=async()=>e().then(async o=>(qJ.set(e,o),o)),r=n().catch(o=>n().catch(a=>{sT.delete(e)}));return sT.set(e,r),r}async function Ui(...e){return await Promise.all(e.map(t=>typeof t=="function"?WJ(t):t))}function INe(){const[,e]=S.useReducer(t=>t+1,0);return e}function pP(e){const t=typeof e=="function"?qJ.get(e):void 0,n=INe();return S.useEffect(()=>{typeof e=="function"&&!t&&WJ(e).then(n)},[e,t,n]),typeof e=="function"?t:e}function nr({alt:e,background:t,borderColor:n,borderRadius:r,boxShadow:o,height:a,src:i,width:s,testId:c}){const l=Ll(),u=pP(i),d=u&&/^http/.test(u),[f,h]=S.useReducer(()=>!0,!1);return A.createElement($,{"aria-label":e,borderRadius:r,boxShadow:o,height:typeof a=="string"?a:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:t,height:typeof a=="number"?a:void 0,width:typeof s=="number"?s:void 0},width:typeof s=="string"?s:void 0,testId:c},A.createElement($,{...d?{"aria-hidden":!0,as:"img",onLoad:h,src:u}:{backgroundSize:"cover"},height:"full",position:"absolute",...l?{WebkitUserSelect:"none"}:{},style:{touchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...d?{opacity:f?1:0}:{backgroundImage:u?`url(${u})`:void 0,backgroundRepeat:"no-repeat",opacity:u?1:0}},width:"full"}),n?A.createElement($,{...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 ONe="_1luule42",RNe="_1luule43",NNe=e=>S.useMemo(()=>`${e}_${Math.round(Math.random()*1e9)}`,[e]),_g=({height:e=21,width:t=21})=>{const n=NNe("spinner");return A.createElement("svg",{className:ONe,fill:"none",height:e,viewBox:"0 0 21 21",width:t,xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Loading"),A.createElement("clipPath",{id:n},A.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"})),A.createElement("foreignObject",{clipPath:`url(#${n})`,height:"21",width:"21",x:"0",y:"0"},A.createElement("div",{className:RNe})))},yt=["#FC5C54","#FFD95A","#E95D72","#6A87C8","#5FD0F3","#75C06B","#FFDD86","#5FC6D4","#FF949A","#FF8024","#9BA1A4","#EC66FF","#FF8CBC","#FF9A23","#C5DADB","#A8CE63","#71ABFF","#FFE279","#B6B1B6","#FF6780","#A575FF","#4D82FF","#FFB35A"],xF=[{color:yt[0],emoji:"🌶"},{color:yt[1],emoji:"🤑"},{color:yt[2],emoji:"🐙"},{color:yt[3],emoji:"🫐"},{color:yt[4],emoji:"🐳"},{color:yt[0],emoji:"🤶"},{color:yt[5],emoji:"🌲"},{color:yt[6],emoji:"🌞"},{color:yt[7],emoji:"🐒"},{color:yt[8],emoji:"🐵"},{color:yt[9],emoji:"🦊"},{color:yt[10],emoji:"🐼"},{color:yt[11],emoji:"🦄"},{color:yt[12],emoji:"🐷"},{color:yt[13],emoji:"🐧"},{color:yt[8],emoji:"🦩"},{color:yt[14],emoji:"👽"},{color:yt[0],emoji:"🎈"},{color:yt[8],emoji:"🍉"},{color:yt[1],emoji:"🎉"},{color:yt[15],emoji:"🐲"},{color:yt[16],emoji:"🌎"},{color:yt[17],emoji:"🍊"},{color:yt[18],emoji:"🐭"},{color:yt[19],emoji:"🍣"},{color:yt[1],emoji:"🐥"},{color:yt[20],emoji:"👾"},{color:yt[15],emoji:"🥦"},{color:yt[0],emoji:"👹"},{color:yt[17],emoji:"🙀"},{color:yt[4],emoji:"⛱"},{color:yt[21],emoji:"⛵️"},{color:yt[17],emoji:"🥳"},{color:yt[8],emoji:"🤯"},{color:yt[22],emoji:"🤠"}];function BNe(e){let t=0;if(e.length===0)return t;for(let n=0;n{const[r,o]=S.useState(!1);S.useEffect(()=>{if(t){const s=new Image;s.src=t,s.onload=()=>o(!0)}},[t]);const{color:a,emoji:i}=S.useMemo(()=>FNe(e),[e]);return t?r?A.createElement($,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${t})`,backgroundPosition:"center",height:n,width:n}}):A.createElement($,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:n,width:n}},A.createElement(_g,null)):A.createElement($,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!t&&{backgroundColor:a},height:n,width:n}},i)},GJ=MNe,VJ=S.createContext(GJ);function LNe({address:e,imageUrl:t,loading:n,size:r}){const o=S.useContext(VJ);return A.createElement($,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${r}px`,width:`${r}px`},userSelect:"none"},A.createElement($,{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"},A.createElement(o,{address:e,ensImage:t,size:r})),n&&A.createElement($,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},A.createElement(_g,{height:"100%",width:"100%"})))}var CF={defaultLocale:"en",locale:"en"},UNe=class{constructor(e){this.listeners=new Set,this.defaultLocale=CF.defaultLocale,this.enableFallback=!1,this.locale=CF.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,a)=>{for(const i of Object.keys(o)){const s=`${a}.${i}`,c=o[i];typeof c=="object"&&c!==null?r(c,s):n[s]=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){const n=`${this.locale}.${e}`,r=this.translations[n];if(!r){if(this.enableFallback){const o=`${this.defaultLocale}.${e}`,a=this.translations[o];if(a)return this.translateWithReplacements(a,t)}return this.missingMessage(e)}return this.translateWithReplacements(r,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)}}},ha=new UNe({en:JSON.parse(yD),"en-US":JSON.parse(yD)});ha.defaultLocale="en-US";ha.locale="en-US";ha.enableFallback=!0;var $Ne=async e=>{switch(e){case"ar":case"ar-AR":return(await me(async()=>{const{default:t}=await import("./ar_AR-PQJDYWVZ-APfsCj9O.js");return{default:t}},[],import.meta.url)).default;case"en":case"en-US":return(await me(async()=>{const{default:t}=await Promise.resolve().then(()=>KL);return{default:t}},void 0,import.meta.url)).default;case"es":case"es-419":return(await me(async()=>{const{default:t}=await import("./es_419-GLICGTYE-DAMYsXQt.js");return{default:t}},[],import.meta.url)).default;case"fr":case"fr-FR":return(await me(async()=>{const{default:t}=await import("./fr_FR-UC7Z4T6O-B67bog61.js");return{default:t}},[],import.meta.url)).default;case"hi":case"hi-IN":return(await me(async()=>{const{default:t}=await import("./hi_IN-RGKVTIVE-Do-3nNHB.js");return{default:t}},[],import.meta.url)).default;case"id":case"id-ID":return(await me(async()=>{const{default:t}=await import("./id_ID-3SKVJ2RK-DLkFahck.js");return{default:t}},[],import.meta.url)).default;case"ja":case"ja-JP":return(await me(async()=>{const{default:t}=await import("./ja_JP-GYCPH6AT-B2ynLT17.js");return{default:t}},[],import.meta.url)).default;case"ko":case"ko-KR":return(await me(async()=>{const{default:t}=await import("./ko_KR-V2HAEAHG-MSD6VZVz.js");return{default:t}},[],import.meta.url)).default;case"pt":case"pt-BR":return(await me(async()=>{const{default:t}=await import("./pt_BR-JDDVMLRA-aYSlgkhd.js");return{default:t}},[],import.meta.url)).default;case"ru":case"ru-RU":return(await me(async()=>{const{default:t}=await import("./ru_RU-3W6WVVOI-CElW9r3c.js");return{default:t}},[],import.meta.url)).default;case"th":case"th-TH":return(await me(async()=>{const{default:t}=await import("./th_TH-UWDENI2F-isfr4Uax.js");return{default:t}},[],import.meta.url)).default;case"tr":case"tr-TR":return(await me(async()=>{const{default:t}=await import("./tr_TR-NAI3OICG-BccpdJoF.js");return{default:t}},[],import.meta.url)).default;case"ua":case"uk-UA":return(await me(async()=>{const{default:t}=await import("./uk_UA-H7BFRWP5-BxO6MaLd.js");return{default:t}},[],import.meta.url)).default;case"zh":case"zh-CN":return(await me(async()=>{const{default:t}=await import("./zh_CN-BO5MSGV2-D6N76dxU.js");return{default:t}},[],import.meta.url)).default;default:return(await me(async()=>{const{default:t}=await Promise.resolve().then(()=>KL);return{default:t}},void 0,import.meta.url)).default}};async function SF(e){if(ha.isLocaleCached(e)){ha.updateLocale(e);return}const n=await $Ne(e);ha.setTranslations(e,JSON.parse(n))}var zNe=()=>{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}},ar=S.createContext({i18n:ha}),HNe=({children:e,locale:t})=>{const[n,r]=S.useState(0),o=S.useMemo(()=>zNe(),[]);S.useEffect(()=>ha.onChange(()=>{r(s=>s+1)}),[]),S.useEffect(()=>{t&&t!==ha.locale?SF(t):!t&&o&&o!==ha.locale&&SF(o)},[t,o]);const a=S.useMemo(()=>({t:(s,c)=>ha.t(s,c),i18n:ha}),[n]);return A.createElement(ar.Provider,{value:a},e)};function gP(e){return e!=null}var cT={iconBackground:"#96bedc",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./arbitrum-LYDBJZP3-BMNNBURC.js");return{default:e}},[],import.meta.url)).default},TF={iconBackground:"#e84141",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./avalanche-TFPKP544-BAW5xZLs.js");return{default:e}},[],import.meta.url)).default},lT={iconBackground:"#0052ff",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./base-3MIUIYGA-BacvpD6v.js");return{default:e}},[],import.meta.url)).default},AF={iconBackground:"#ebac0e",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./bsc-S2GSW6VX-Bz0b4JEm.js");return{default:e}},[],import.meta.url)).default},DF={iconBackground:"#002D74",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./cronos-DQKKIEX7-D-xN-IeE.js");return{default:e}},[],import.meta.url)).default},dc={iconBackground:"#484c50",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./ethereum-4FY57XJF-BF1-Gkmk.js");return{default:e}},[],import.meta.url)).default},qNe={iconBackground:"#f9f7ec",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./hardhat-ARRFHFKB-BsaKr6xa.js");return{default:e}},[],import.meta.url)).default},Sv={iconBackground:"#ff5a57",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./optimism-UUP5Y7TB-BI-bx6R2.js");return{default:e}},[],import.meta.url)).default},kF={iconBackground:"#9f71ec",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./polygon-Z4QITDL7-DuMBfvk7.js");return{default:e}},[],import.meta.url)).default},jF={iconBackground:"#f9f7ec",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./xdc-5UHQ25DW-DoSn3ve8.js");return{default:e}},[],import.meta.url)).default},PF={iconBackground:"#f9f7ec",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./zkSync-XRUC4ZHO-CS2pRbzJ.js");return{default:e}},[],import.meta.url)).default},uT={iconBackground:"#000000",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./zora-KVO7WIOK-CYiMysry.js");return{default:e}},[],import.meta.url)).default},WNe={arbitrum:{chainId:42161,name:"Arbitrum",...cT},arbitrumGoerli:{chainId:421613,...cT},arbitrumSepolia:{chainId:421614,...cT},avalanche:{chainId:43114,...TF},avalancheFuji:{chainId:43113,...TF},base:{chainId:8453,name:"Base",...lT},baseGoerli:{chainId:84531,...lT},baseSepolia:{chainId:84532,...lT},bsc:{chainId:56,name:"BSC",...AF},bscTestnet:{chainId:97,...AF},cronos:{chainId:25,...DF},cronosTestnet:{chainId:338,...DF},goerli:{chainId:5,...dc},hardhat:{chainId:31337,...qNe},holesky:{chainId:17e3,...dc},kovan:{chainId:42,...dc},localhost:{chainId:1337,...dc},mainnet:{chainId:1,name:"Ethereum",...dc},optimism:{chainId:10,name:"Optimism",...Sv},optimismGoerli:{chainId:420,...Sv},optimismKovan:{chainId:69,...Sv},optimismSepolia:{chainId:11155420,...Sv},polygon:{chainId:137,name:"Polygon",...kF},polygonMumbai:{chainId:80001,...kF},rinkeby:{chainId:4,...dc},ropsten:{chainId:3,...dc},sepolia:{chainId:11155111,...dc},xdc:{chainId:50,name:"XinFin",...jF},xdcTestnet:{chainId:51,...jF},zkSync:{chainId:324,name:"zkSync",...PF},zkSyncTestnet:{chainId:280,...PF},zora:{chainId:7777777,name:"Zora",...uT},zoraSepolia:{chainId:999999999,...uT},zoraTestnet:{chainId:999,...uT}},GNe=Object.fromEntries(Object.values(WNe).filter(gP).map(({chainId:e,...t})=>[e,t])),VNe=e=>e.map(t=>{var n,r,o,a;const i=(n=GNe[t.id])!=null?n:{};return{...t,name:(r=i.name)!=null?r:t.name,iconUrl:(o=t.iconUrl)!=null?o:i.iconUrl,iconBackground:(a=t.iconBackground)!=null?a:i.iconBackground}}),yP=S.createContext({chains:[]});function KNe({chains:e,children:t,initialChain:n}){return A.createElement(yP.Provider,{value:S.useMemo(()=>({chains:VNe(e),initialChainId:typeof n=="number"?n:n==null?void 0:n.id}),[e,n])},t)}var x6=()=>S.useContext(yP).chains,YNe=()=>S.useContext(yP).initialChainId,QNe=()=>{const e=x6();return S.useMemo(()=>{const t={};for(const n of e)t[n.id]=n;return t},[e])},KJ=S.createContext({showBalance:void 0,setShowBalance:()=>{}});function XNe({children:e}){const[t,n]=S.useState();return A.createElement(KJ.Provider,{value:{showBalance:t,setShowBalance:n}},e)}var JNe=()=>S.useContext(KJ);function ZNe(){const[e,t]=S.useState(!1);return S.useEffect(()=>(t(!0),()=>{t(!1)}),[]),S.useCallback(()=>e,[e])}function YJ(){const e=Ux.id,t=zs(),n=Array.isArray(t.chains)?t.chains:[],r=n==null?void 0:n.some(o=>(o==null?void 0:o.id)===e);return{chainId:e,enabled:r}}function QJ(e){const{chainId:t,enabled:n}=YJ(),{data:r}=QEe({chainId:t,enabled:n,name:e});return r}function XJ(e){const{chainId:t,enabled:n}=YJ(),{data:r}=MY({address:e,chainId:t,enabled:n});return r}function bP(){var e;const{chain:t}=To();return(e=t==null?void 0:t.id)!=null?e:null}var JJ="rk-transactions";function eBe(e){try{const t=e?JSON.parse(e):{};return typeof t=="object"?t:{}}catch{return{}}}function IF(){return eBe(typeof localStorage<"u"?localStorage.getItem(JJ):null)}var tBe=/^0x([A-Fa-f0-9]{64})$/;function nBe(e){const t=[];return tBe.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 rBe({provider:e}){let t=IF(),n=e;const r=new Set,o=new Map;function a(p){n=p}function i(p,b){var v,g;return(g=(v=t[p])==null?void 0:v[b])!=null?g:[]}function s(p,b,v){const g=nBe(v);if(g.length>0)throw new Error(["Unable to add transaction",...g].join(` -`));d(p,b,w=>[{...v,status:"pending"},...w.filter(({hash:_})=>_!==v.hash)])}function c(p,b){d(p,b,()=>[])}function l(p,b,v,g){d(p,b,w=>w.map(_=>_.hash===v?{..._,status:g}:_))}async function u(p,b){await Promise.all(i(p,b).filter(v=>v.status==="pending").map(async v=>{const{confirmations:g,hash:w}=v,_=o.get(w);if(_)return await _;const C=n.waitForTransactionReceipt({confirmations:g,hash:w,timeout:3e5}).then(({status:x})=>{o.delete(w),x!==void 0&&l(p,b,w,x===0||x==="reverted"?"failed":"confirmed")}).catch(()=>{l(p,b,w,"failed")});return o.set(w,C),await C}))}function d(p,b,v){var g,w;t=IF(),t[p]=(g=t[p])!=null?g:{};let _=0;const C=10,x=v((w=t[p][b])!=null?w:[]).filter(({status:E})=>E==="pending"?!0:_++<=C);t[p][b]=x.length>0?x:void 0,f(),h(),u(p,b)}function f(){localStorage.setItem(JJ,JSON.stringify(t))}function h(){for(const p of r)p()}function m(p){return r.add(p),()=>{r.delete(p)}}return{addTransaction:s,clearTransactions:c,getTransactions:i,onChange:m,setProvider:a,waitForPendingTransactions:u}}var dT,ZJ=S.createContext(null);function oBe({children:e}){const t=zs(),{address:n}=tn(),r=bP(),[o]=S.useState(()=>dT??(dT=rBe({provider:t})));return S.useEffect(()=>{o.setProvider(t)},[o,t]),S.useEffect(()=>{n&&r&&o.waitForPendingTransactions(n,r)},[o,n,r]),A.createElement(ZJ.Provider,{value:o},e)}function eZ(){const e=S.useContext(ZJ);if(!e)throw new Error("Transaction hooks must be used within RainbowKitProvider");return e}function tZ(){const e=eZ(),{address:t}=tn(),n=bP(),[r,o]=S.useState(()=>e&&t&&n?e.getTransactions(t,n):[]);return S.useEffect(()=>{if(e&&t&&n)return o(e.getTransactions(t,n)),e.onChange(()=>{o(e.getTransactions(t,n))})},[e,t,n]),r}var OF=e=>typeof e=="function"?e():e;function aBe(e,{extends:t}={}){const n={...eB(_F,OF(e))};if(!t)return n;const r=eB(_F,OF(t));return Object.fromEntries(Object.entries(n).filter(([a,i])=>i!==r[a]))}function RF(e,t={}){return Object.entries(aBe(e,t)).map(([n,r])=>`${n}:${r.replace(/[:;{}]/g,"")};`).join("")}var nZ={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},Hm=S.createContext(nZ),rZ=S.createContext(!1);function iBe(e,t){let n;return()=>{n&&clearTimeout(n),n=setTimeout(()=>{n=null,e()},t)}}var oZ=()=>{const[e,t]=S.useState({height:void 0,width:void 0});return S.useEffect(()=>{const n=iBe(()=>{t({height:window.innerHeight,width:window.innerWidth})},500);return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),e},bb=S.createContext({connector:null,setConnector:()=>{}});function sBe({children:e}){const[t,n]=S.useState(null);return A.createElement(bb.Provider,{value:S.useMemo(()=>({connector:t,setConnector:n}),[t])},e)}var vb={COMPACT:"compact",WIDE:"wide"},C6=S.createContext(vb.WIDE);function cBe({children:e,modalSize:t}){const{width:n}=oZ(),r=n&&n{uBe({version:"1.3.7"})},[]);S.useEffect(()=>{e()},[e])}function fBe(e){const t=[];for(const n of e)t.push(...n);return t}function hBe(e,t){const n={};for(const r of e){const o=t(r);o&&(n[o]=r)}return n}function wP(){return typeof navigator<"u"&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function mBe(){return typeof document<"u"&&getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")!==""}function EP(){var e;if(typeof navigator>"u")return"Browser";const t=navigator.userAgent.toLowerCase();return(e=navigator.brave)!=null&&e.isBrave?"Brave":t.indexOf("edg/")>-1?"Edge":t.indexOf("op")>-1?"Opera":mBe()?"Arc":t.indexOf("chrome")>-1?"Chrome":t.indexOf("firefox")>-1?"Firefox":wP()?"Safari":"Browser"}var pBe=Sxe.UAParser(),{os:_P}=pBe;function gBe(){return _P.name==="Windows"}function yBe(){return _P.name==="Mac OS"}function bBe(){return["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(_P.name)}function xP(){return gBe()?"Windows":yBe()?"macOS":bBe()?"Linux":"Desktop"}var vBe=e=>{var t,n,r,o,a,i,s,c,l,u,d,f;const h=EP();return(f={Arc:(t=e==null?void 0:e.downloadUrls)==null?void 0:t.chrome,Brave:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.chrome,Chrome:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.chrome,Edge:((o=e==null?void 0:e.downloadUrls)==null?void 0:o.edge)||((a=e==null?void 0:e.downloadUrls)==null?void 0:a.chrome),Firefox:(i=e==null?void 0:e.downloadUrls)==null?void 0:i.firefox,Opera:((s=e==null?void 0:e.downloadUrls)==null?void 0:s.opera)||((c=e==null?void 0:e.downloadUrls)==null?void 0:c.chrome),Safari:(l=e==null?void 0:e.downloadUrls)==null?void 0:l.safari,Browser:(u=e==null?void 0:e.downloadUrls)==null?void 0:u.browserExtension}[h])!=null?f:(d=e==null?void 0:e.downloadUrls)==null?void 0:d.browserExtension},wBe=e=>{var t,n,r,o;return(o=Ll()?(t=e==null?void 0:e.downloadUrls)==null?void 0:t.ios:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.android)!=null?o:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.mobile},EBe=e=>{var t,n,r,o,a,i;const s=xP();return(i={Windows:(t=e==null?void 0:e.downloadUrls)==null?void 0:t.windows,macOS:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.macos,Linux:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.linux,Desktop:(o=e==null?void 0:e.downloadUrls)==null?void 0:o.desktop}[s])!=null?i:(a=e==null?void 0:e.downloadUrls)==null?void 0:a.desktop},aZ="rk-recent";function _Be(e){try{const t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch{return[]}}function iZ(){return typeof localStorage<"u"?_Be(localStorage.getItem(aZ)):[]}function xBe(e){return[...new Set(e)]}function CBe(e){const t=xBe([e,...iZ()]);localStorage.setItem(aZ,JSON.stringify(t))}function S6(){var e;const t=x6(),n=YNe(),{connectAsync:r,connectors:o}=UEe(),a=o;async function i(m,p){var b,v,g;const w=await p.getChainId(),_=await r({chainId:(g=n??((b=t.find(({id:C})=>C===w))==null?void 0:b.id))!=null?g:(v=t[0])==null?void 0:v.id,connector:p});return _&&CBe(m),_}async function s(m,p){try{return await i(m,p)}catch(b){if(!(b.name==="UserRejectedRequestError"||b.message==="Connection request reset. Please try again."))throw b}}const c=fBe(a.map(m=>{var p;return(p=m._wallets)!=null?p:[]})).sort((m,p)=>m.index-p.index),l=hBe(c,m=>m.id),d=iZ().map(m=>l[m]).filter(gP).slice(0,3),f=[...d,...c.filter(m=>!d.includes(m))],h=[];for(const m of f){if(!m)continue;const p=d.includes(m);h.push({...m,connect:()=>m.connector.showQrModal?s(m.id,m.connector):i(m.id,m.connector),desktopDownloadUrl:EBe(m),extensionDownloadUrl:vBe(m),groupName:m.groupName,mobileDownloadUrl:wBe(m),onConnecting:b=>m.connector.on("message",({type:v})=>v==="connecting"?b():void 0),ready:((e=m.installed)!=null?e:!0)&&m.connector.ready,recent:p,showWalletConnectModal:m.walletConnectModalConnector?()=>s(m.id,m.walletConnectModalConnector):void 0})}return h}var sZ=async()=>(await me(async()=>{const{default:e}=await import("./assets-26YY4GVD-BJE_4jQP.js");return{default:e}},[],import.meta.url)).default,SBe=()=>Ui(sZ),TBe=()=>A.createElement(nr,{background:"#d0d5de",borderRadius:"10",height:"48",src:sZ,width:"48"}),cZ=async()=>(await me(async()=>{const{default:e}=await import("./login-ZSMM5UYL-DT0rm6wp.js");return{default:e}},[],import.meta.url)).default,ABe=()=>Ui(cZ),DBe=()=>A.createElement(nr,{background:"#d0d5de",borderRadius:"10",height:"48",src:cZ,width:"48"}),Ae=A.forwardRef(({as:e="div",children:t,className:n,color:r,display:o,font:a="body",id:i,size:s="16",style:c,tabIndex:l,textAlign:u="inherit",weight:d="regular",testId:f},h)=>A.createElement($,{as:e,className:n,color:r,display:o,fontFamily:a,fontSize:s,fontWeight:d,id:i,ref:h,style:c,tabIndex:l,textAlign:u,testId:f},t));Ae.displayName="Text";var kBe={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function to({disabled:e=!1,href:t,label:n,onClick:r,rel:o="noreferrer noopener",size:a="medium",target:i="_blank",testId:s,type:c="primary"}){const l=c==="primary",u=a!=="large",d=Cr(),f=e?"actionButtonSecondaryBackground":l?"accentColor":u?"actionButtonSecondaryBackground":null,{fontSize:h,height:m,paddingX:p,paddingY:b}=kBe[a],v=!d||!u;return A.createElement($,{...t?e?{}:{as:"a",href:t,rel:o,target:i}:{as:"button",type:"button"},onClick:e?void 0:r,...v?{borderColor:d&&!u&&!l?"actionButtonBorderMobile":"actionButtonBorder",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!e&&wr({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:p,paddingY:b,style:{willChange:"transform"},testId:s,textAlign:"center",transition:"transform",...f?{background:f}:{},...m?{height:m}:{}},A.createElement(Ae,{color:e?"modalTextSecondary":l?"accentColorForeground":"accentColor",size:h,weight:"bold"},n))}var jBe=()=>Cr()?A.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"},A.createElement("title",null,"Close"),A.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"})):A.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Close"),A.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"})),od=({"aria-label":e="Close",onClose:t})=>{const n=Cr();return A.createElement($,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:wr({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"},A.createElement(jBe,null))},lZ=async()=>(await me(async()=>{const{default:e}=await import("./sign-FZVB2CS6-DXQn9z7A.js");return{default:e}},[],import.meta.url)).default;function PBe({onClose:e,onCloseModal:t}){const{i18n:n}=S.useContext(ar),[{status:r,...o},a]=A.useState({status:"idle"}),i=TNe(),s=S.useCallback(async()=>{try{const m=await i.getNonce();a(p=>({...p,nonce:m}))}catch{a(m=>({...m,errorMessage:n.t("sign_in.message.preparing_error"),status:"idle"}))}},[i,n.t]),c=S.useRef(!1);A.useEffect(()=>{c.current||(c.current=!0,s())},[s]);const l=Cr(),{address:u}=tn(),{chain:d}=To(),{signMessageAsync:f}=WEe(),h=async()=>{try{const m=d==null?void 0:d.id,{nonce:p}=o;if(!u||!m||!p)return;a(g=>({...g,errorMessage:void 0,status:"signing"}));const b=i.createMessage({address:u,chainId:m,nonce:p});let v;try{v=await f({message:i.getMessageBody({message:b})})}catch(g){return g instanceof dr?a(w=>({...w,status:"idle"})):a(w=>({...w,errorMessage:n.t("sign_in.signature.signing_error"),status:"idle"}))}a(g=>({...g,status:"verifying"}));try{if(await i.verify({message:b,signature:v})){t();return}throw new Error}catch{return a(g=>({...g,errorMessage:n.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{a({errorMessage:n.t("sign_in.signature.oops_error"),status:"idle"})}};return A.createElement($,{position:"relative"},A.createElement($,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},A.createElement(od,{onClose:e})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:l?"60px":"36px"}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"6":"4",style:{maxWidth:l?320:280}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"32":"16"},A.createElement(nr,{height:40,src:lZ,width:40}),A.createElement(Ae,{color:"modalText",size:l?"20":"18",textAlign:"center",weight:"heavy"},n.t("sign_in.label"))),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"16":"12"},A.createElement(Ae,{color:"modalTextSecondary",size:l?"16":"14",textAlign:"center"},n.t("sign_in.description")),r==="idle"&&o.errorMessage?A.createElement(Ae,{color:"error",size:l?"16":"14",textAlign:"center",weight:"bold"},o.errorMessage):null)),A.createElement($,{alignItems:l?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},A.createElement(to,{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?A.createElement(to,{label:"Cancel",onClick:e,size:"large",type:"secondary"}):A.createElement($,{as:"button",borderRadius:"full",className:wr({active:"shrink",hover:"grow"}),display:"block",onClick:e,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"closeButton",size:l?"16":"14",weight:"bold"},n.t("sign_in.message.cancel"))))))}function IBe(){const e=x6(),t=S6(),n=_6()==="unauthenticated",r=S.useCallback(()=>{Ui(...t.map(o=>o.iconUrl),...e.map(o=>o.iconUrl).filter(gP)),Cr()||(SBe(),ABe()),n&&Ui(lZ)},[t,e,n]);S.useEffect(()=>{r()},[r])}var uZ="WALLETCONNECT_DEEPLINK_CHOICE";function OBe({mobileUri:e,name:t}){localStorage.setItem(uZ,JSON.stringify({href:e.split("?")[0],name:t}))}function RBe(){localStorage.removeItem(uZ)}var dZ=S.createContext(void 0),WD="data-rk",fZ=e=>({[WD]:e||""}),NBe=e=>{if(e&&!/^[a-zA-Z0-9_]+$/.test(e))throw new Error(`Invalid ID: ${e}`);return e?`[${WD}="${e}"]`:`[${WD}]`},BBe=()=>{const e=S.useContext(dZ);return fZ(e)},FBe=QY();function MBe({appInfo:e,avatar:t,chains:n,children:r,coolMode:o=!1,id:a,initialChain:i,locale:s,modalSize:c=vb.WIDE,showRecentTransactions:l=!1,theme:u=FBe}){if(IBe(),dBe(),tn({onDisconnect:RBe}),typeof u=="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 d=NBe(a),f={...nZ,...e},h=t??GJ;return A.createElement(KNe,{chains:n,initialChain:i},A.createElement(sBe,null,A.createElement(HNe,{locale:s},A.createElement(rZ.Provider,{value:o},A.createElement(cBe,{modalSize:c},A.createElement(vP.Provider,{value:l},A.createElement(oBe,null,A.createElement(VJ.Provider,{value:h},A.createElement(Hm.Provider,{value:f},A.createElement(dZ.Provider,{value:a},A.createElement(XNe,null,A.createElement(X9e,null,u?A.createElement("div",{...fZ(a)},A.createElement("style",{dangerouslySetInnerHTML:{__html:[`${d}{${RF("lightMode"in u?u.lightMode:u)}}`,"darkMode"in u?`@media(prefers-color-scheme:dark){${d}{${RF(u.darkMode,{extends:u.lightMode})}}}`:null].join("")}}),r):r))))))))))))}var LBe="_9pm4ki5 ju367va ju367v15 ju367v8r",UBe="_9pm4ki3 ju367v9h ju367vb3 ju367va ju367v2q ju367v8q",NF=(e,t)=>{const n=e.querySelectorAll("button:not(:disabled), a[href]");n.length!==0&&n[t==="end"?n.length-1:0].focus()};function $Be(e){const t=S.useRef(null);return S.useEffect(()=>{const n=document.activeElement;return()=>{var r;(r=n.focus)==null||r.call(n)}},[]),S.useEffect(()=>{if(t.current){const n=t.current.querySelector("[data-auto-focus]");n?n.focus():t.current.focus()}},[]),A.createElement(A.Fragment,null,A.createElement("div",{onFocus:S.useCallback(()=>t.current&&NF(t.current,"end"),[]),tabIndex:0}),A.createElement("div",{ref:t,style:{outline:"none"},tabIndex:-1,...e}),A.createElement("div",{onFocus:S.useCallback(()=>t.current&&NF(t.current,"start"),[]),tabIndex:0}))}var zBe=e=>e.stopPropagation();function ME({children:e,onClose:t,open:n,titleId:r}){S.useEffect(()=>{const l=u=>n&&u.key==="Escape"&&t();return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[n,t]);const[o,a]=S.useState(!0);S.useEffect(()=>{a(getComputedStyle(window.document.body).overflow!=="hidden")},[]);const i=S.useCallback(()=>t(),[t]),s=BBe(),c=Cr();return A.createElement(A.Fragment,null,n?Fs.createPortal(A.createElement(sQ,{enabled:o},A.createElement($,{...s},A.createElement($,{...s,alignItems:c?"flex-end":"center","aria-labelledby":r,"aria-modal":!0,className:UBe,onClick:i,position:"fixed",role:"dialog"},A.createElement($Be,{className:LBe,onClick:zBe,role:"document"},e)))),document.body):null)}var HBe="_1ckjpok7",qBe="_1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",WBe="_1ckjpok4 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",GBe="_1ckjpok6 ju367vq",VBe="_1ckjpok3 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",KBe="_1ckjpok2 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r";function LE({bottomSheetOnMobile:e=!1,children:t,marginTop:n,padding:r="16",paddingBottom:o,wide:a=!1}){const i=Cr(),c=S.useContext(C6)===vb.COMPACT;return A.createElement($,{marginTop:n},A.createElement($,{className:[a?i?KBe:c?WBe:VBe:qBe,i?GBe:null,i&&e?HBe:null].join(" ")},A.createElement($,{padding:r,paddingBottom:o??r},t)))}var BF=["k","m","b","t"];function Tv(e,t=1){return e.toString().replace(new RegExp(`(.+\\.\\d{${t}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function hZ(e){if(e<1)return Tv(e,3);if(e<10**2)return Tv(e,2);if(e<10**4)return new Intl.NumberFormat().format(parseFloat(Tv(e,1)));const t=10**1;let n=String(e);for(let r=BF.length-1;r>=0;r--){const o=10**((r+1)*3);if(o<=e){e=e*t/o/t,n=Tv(e,1)+BF[r];break}}return n}function mZ(e){return e.length<8?e:`${e.substring(0,4)}…${e.substring(e.length-4)}`}function pZ(e){const t=e.split("."),n=t.pop();return t.join(".").length>24?`${t.join(".").substring(0,24)}...`:`${t.join(".")}.${n}`}var YBe=()=>A.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Copied"),A.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"})),QBe=()=>A.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Copy"),A.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"})),XBe=()=>A.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Disconnect"),A.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 JBe(){const e=eZ(),{address:t}=tn(),n=bP();return S.useCallback(()=>{if(!t||!n)throw new Error("No address or chain ID found");e.clearTransactions(t,n)},[e,t,n])}var gZ=e=>{var t,n;return(n=(t=e==null?void 0:e.blockExplorers)==null?void 0:t.default)==null?void 0:n.url},yZ=()=>A.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Link"),A.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"})),ZBe=()=>A.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Cancel"),A.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"})),e9e=()=>A.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Success"),A.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"})),t9e=e=>{switch(e){case"pending":return _g;case"confirmed":return e9e;case"failed":return ZBe;default:return _g}};function n9e({tx:e}){const t=Cr(),n=t9e(e.status),r=e.status==="failed"?"error":"accentColor",{chain:o}=To(),a=e.status==="confirmed"?"Confirmed":e.status==="failed"?"Failed":"Pending",i=gZ(o);return A.createElement(A.Fragment,null,A.createElement($,{...i?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:wr({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"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:t?"16":"14"},A.createElement($,{color:r},A.createElement(n,null)),A.createElement($,{display:"flex",flexDirection:"column",gap:t?"3":"1"},A.createElement($,null,A.createElement(Ae,{color:"modalText",font:"body",size:t?"16":"14",weight:"bold"},e==null?void 0:e.description)),A.createElement($,null,A.createElement(Ae,{color:e.status==="pending"?"modalTextSecondary":r,font:"body",size:"14",weight:t?"medium":"regular"},a)))),i&&A.createElement($,{alignItems:"center",color:"modalTextDim",display:"flex"},A.createElement(yZ,null))))}var r9e=3;function o9e({address:e}){const t=tZ(),n=JBe(),{chain:r}=To(),o=gZ(r),a=t.slice(0,r9e),i=a.length>0,s=Cr(),{appName:c}=S.useContext(Hm),{i18n:l}=S.useContext(ar);return A.createElement(A.Fragment,null,A.createElement($,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:s?"8":"18"},i&&A.createElement($,{paddingBottom:s?"4":"0",paddingTop:"8",paddingX:s?"12":"6"},A.createElement($,{display:"flex",justifyContent:"space-between"},A.createElement(Ae,{color:"modalTextSecondary",size:s?"16":"14",weight:"semibold"},l.t("profile.transactions.recent.title")),A.createElement($,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},A.createElement($,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:wr({active:"shrink"}),onClick:n,paddingX:s?"8":"12",paddingY:s?"4":"5",transition:"default",type:"button"},A.createElement(Ae,{color:"modalTextSecondary",size:s?"16":"14",weight:"semibold"},l.t("profile.transactions.clear.label")))))),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},i?a.map(u=>A.createElement(n9e,{key:u.hash,tx:u})):A.createElement(A.Fragment,null,A.createElement($,{padding:s?"12":"8"},A.createElement(Ae,{color:"modalTextDim",size:s?"16":"14",weight:s?"medium":"bold"},c?l.t("profile.transactions.description",{appName:c}):l.t("profile.transactions.description_fallback"))),s&&A.createElement($,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),o&&A.createElement($,{paddingBottom:"18",paddingX:s?"8":"18"},A.createElement($,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:wr({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",...s?{paddingLeft:"12"}:{}},A.createElement(Ae,{color:"modalText",font:"body",size:s?"16":"14",weight:s?"semibold":"bold"},l.t("profile.explorer.label")),A.createElement(yZ,null))))}function FF({action:e,icon:t,label:n,testId:r,url:o}){const a=Cr();return A.createElement($,{...o?{as:"a",href:o,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...a?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:wr({active:"shrinkSm",hover:a?void 0:"grow"}),display:"flex",onClick:e,padding:a?"6":"8",style:{willChange:"transform"},testId:r,transition:"default",width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},A.createElement($,{color:"modalText",height:"max"},t),A.createElement($,null,A.createElement(Ae,{color:"modalText",size:a?"12":"13",weight:"semibold"},n))))}function a9e({address:e,ensAvatar:t,ensName:n,onClose:r,onDisconnect:o}){const a=S.useContext(vP),{data:i}=FY({address:e}),[s,c]=S.useState(!1),l=S.useCallback(()=>{e&&(navigator.clipboard.writeText(e),c(!0))},[e]);if(S.useEffect(()=>{if(s){const b=setTimeout(()=>{c(!1)},1500);return()=>clearTimeout(b)}},[s]),!e)return null;const u=n?pZ(n):mZ(e),d=i==null?void 0:i.formatted,f=d?hZ(parseFloat(d)):void 0,h="rk_profile_title",m=Cr(),{i18n:p}=S.useContext(ar);return A.createElement(A.Fragment,null,A.createElement($,{display:"flex",flexDirection:"column"},A.createElement($,{background:"profileForeground",padding:"16"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:m?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},A.createElement($,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},A.createElement(od,{onClose:r}))," ",A.createElement($,{marginTop:m?"24":"0"},A.createElement(LNe,{address:e,imageUrl:t,size:m?82:74})),A.createElement($,{display:"flex",flexDirection:"column",gap:m?"4":"0",textAlign:"center"},A.createElement($,{textAlign:"center"},A.createElement(Ae,{as:"h1",color:"modalText",id:h,size:m?"20":"18",weight:"heavy"},u)),i&&A.createElement($,{textAlign:"center"},A.createElement(Ae,{as:"h1",color:"modalTextSecondary",id:h,size:m?"16":"14",weight:"semibold"},f," ",i.symbol)))),A.createElement($,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},A.createElement(FF,{action:l,icon:s?A.createElement(YBe,null):A.createElement(QBe,null),label:s?p.t("profile.copy_address.copied"):p.t("profile.copy_address.label")}),A.createElement(FF,{action:o,icon:A.createElement(XBe,null),label:p.t("profile.disconnect.label"),testId:"disconnect-button"}))),a&&A.createElement(A.Fragment,null,A.createElement($,{background:"generalBorder",height:"1",marginTop:"-1"}),A.createElement($,null,A.createElement(o9e,{address:e})))))}function i9e({onClose:e,open:t}){const{address:n}=tn(),r=XJ(n),o=QJ(r),{disconnect:a}=Qx();return n?A.createElement(A.Fragment,null,n&&A.createElement(ME,{onClose:e,open:t,titleId:"rk_account_modal_title"},A.createElement(LE,{bottomSheetOnMobile:!0,padding:"0"},A.createElement(a9e,{address:n,ensAvatar:o,ensName:r,onClose:e,onDisconnect:a})))):null}var s9e=({size:e})=>A.createElement("svg",{fill:"none",height:e,viewBox:"0 0 28 28",width:e,xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Disconnect"),A.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"})),c9e="v9horb0",GD=A.forwardRef(({children:e,currentlySelected:t=!1,onClick:n,testId:r,...o},a)=>{const i=Cr();return A.createElement($,{as:"button",borderRadius:"menuButton",disabled:t,display:"flex",onClick:n,ref:a,testId:r,type:"button"},A.createElement($,{borderRadius:"menuButton",className:[i?c9e:void 0,!t&&wr({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))});GD.displayName="MenuButton";var l9e="_18dqw9x0",u9e="_18dqw9x1";function d9e({onClose:e,open:t}){var n;const{chain:r}=To(),{chains:o,pendingChainId:a,reset:i,switchNetwork:s}=Tl({onSettled:()=>{i(),e()}}),{i18n:c}=S.useContext(ar),{disconnect:l}=Qx(),u="rk_chain_modal_title",d=Cr(),f=(n=r==null?void 0:r.unsupported)!=null?n:!1,h=d?"36":"28",{appName:m}=S.useContext(Hm),p=x6();return!r||!(r!=null&&r.id)?null:A.createElement(ME,{onClose:e,open:t,titleId:u},A.createElement(LE,{bottomSheetOnMobile:!0,paddingBottom:"0"},A.createElement($,{display:"flex",flexDirection:"column",gap:"14"},A.createElement($,{display:"flex",flexDirection:"row",justifyContent:"space-between"},d&&A.createElement($,{width:"30"}),A.createElement($,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},A.createElement(Ae,{as:"h1",color:"modalText",id:u,size:d?"20":"18",weight:"heavy"},c.t("chains.title"))),A.createElement(od,{onClose:e})),f&&A.createElement($,{marginX:"8",textAlign:d?"center":"left"},A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},c.t("chains.wrong_network"))),A.createElement($,{className:d?u9e:l9e,display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},s?p.map(({iconBackground:b,iconUrl:v,id:g,name:w},_)=>{const C=o.find(T=>T.id===g);if(!C)return null;const x=C.id===(r==null?void 0:r.id),E=!x&&C.id===a;return A.createElement(S.Fragment,{key:C.id},A.createElement(GD,{currentlySelected:x,onClick:x?void 0:()=>s(C.id),testId:`chain-option-${C.id}`},A.createElement($,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:h},v&&A.createElement($,{height:"full",marginRight:"8"},A.createElement(nr,{alt:w??C.name,background:b,borderRadius:"full",height:h,src:v,width:h,testId:`chain-option-${C.id}-icon`})),A.createElement("div",null,w??C.name)),x&&A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},A.createElement(Ae,{color:"accentColorForeground",size:"14",weight:"medium"},c.t("chains.connected")),A.createElement($,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),E&&A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},A.createElement(Ae,{color:"modalText",size:"14",weight:"medium"},c.t("chains.confirm")),A.createElement($,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),d&&_l(),testId:"chain-option-disconnect"},A.createElement($,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:h},A.createElement($,{alignItems:"center",color:"error",height:h,justifyContent:"center",marginRight:"8"},A.createElement(s9e,{size:Number(h)})),A.createElement("div",null,c.t("chains.disconnect")))))))))))}function f9e(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 h9e="rk-latest-id";function m9e(e){localStorage.setItem(h9e,e)}var CP=({children:e,href:t})=>A.createElement($,{as:"a",color:"accentColor",href:t,rel:"noreferrer",target:"_blank"},e),SP=({children:e})=>A.createElement(Ae,{color:"modalTextSecondary",size:"12",weight:"medium"},e);function MF({compactModeEnabled:e=!1,getWallet:t}){const{disclaimer:n,learnMoreUrl:r}=S.useContext(Hm),{i18n:o}=S.useContext(ar);return A.createElement(A.Fragment,null,A.createElement($,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},A.createElement($,{marginBottom:"10"},!e&&A.createElement(Ae,{color:"modalText",size:"18",weight:"heavy"},o.t("intro.title"))),A.createElement($,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},A.createElement($,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},A.createElement(TBe,null)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},o.t("intro.digital_asset.title")),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},o.t("intro.digital_asset.description")))),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},A.createElement($,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},A.createElement(DBe,null)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},o.t("intro.login.title")),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},o.t("intro.login.description"))))),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},A.createElement(to,{label:o.t("intro.get.label"),onClick:t}),A.createElement($,{as:"a",className:wr({active:"shrink",hover:"grow"}),display:"block",href:r,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},o.t("intro.learn_more.label")))),n&&!e&&A.createElement($,{marginBottom:"8",marginTop:"12",textAlign:"center"},A.createElement(n,{Link:CP,Text:SP}))))}var bZ=()=>A.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Back"),A.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"})),p9e=()=>A.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Info"),A.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"})),g9e=({"aria-label":e="Info",onClick:t})=>{const n=Cr();return A.createElement($,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:wr({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"},A.createElement(p9e,null))},vZ=e=>{const t=S.useRef(null),n=S.useContext(rZ),r=pP(e);return S.useEffect(()=>{if(n&&t.current&&r)return b9e(t.current,r)},[n,r]),t},y9e=()=>{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},LF=0;function b9e(e,t){LF++;const n=[15,20,25,35,45],r=35;let o=[],a=!1,i=0,s=0;const c=y9e();function l(){const _=n[Math.floor(Math.random()*n.length)],C=Math.random()*10,x=Math.random()*25,E=Math.random()*360,T=Math.random()*35*(Math.random()<=.5?-1:1),k=s-_/2,D=i-_/2,R=Math.random()<=.5?-1:1,F=document.createElement("div");F.innerHTML=``,F.setAttribute("style",["position:absolute","will-change:transform",`top:${k}px`,`left:${D}px`,`transform:rotate(${E}deg)`].join(";")),c.appendChild(F),o.push({direction:R,element:F,left:D,size:_,speedHorz:C,speedUp:x,spinSpeed:T,spinVal:E,top:k})}function u(){for(const _ of o)_.left=_.left-_.speedHorz*_.direction,_.top=_.top-_.speedUp,_.speedUp=Math.min(_.size,_.speedUp-1),_.spinVal=_.spinVal+_.spinSpeed,_.top>=Math.max(window.innerHeight,document.body.clientHeight)+_.size&&(o=o.filter(C=>C!==_),_.element.remove()),_.element.setAttribute("style",["position:absolute","will-change:transform",`top:${_.top}px`,`left:${_.left}px`,`transform:rotate(${_.spinVal}deg)`].join(";"))}let d;function f(){a&&o.length{var C,x;"touches"in _?(i=(C=_.touches)==null?void 0:C[0].clientX,s=(x=_.touches)==null?void 0:x[0].clientY):(i=_.clientX,s=_.clientY)},g=_=>{v(_),a=!0},w=()=>{a=!1};return e.addEventListener(b,v,{passive:!1}),e.addEventListener(m,g),e.addEventListener(p,w),e.addEventListener("mouseleave",w),()=>{e.removeEventListener(b,v),e.removeEventListener(m,g),e.removeEventListener(p,w),e.removeEventListener("mouseleave",w);const _=setInterval(()=>{d&&o.length===0&&(cancelAnimationFrame(d),clearInterval(_),--LF===0&&c.remove())},500)}}var v9e="g5kl0l0",wZ=({as:e="button",currentlySelected:t=!1,iconBackground:n,iconUrl:r,name:o,onClick:a,ready:i,recent:s,testId:c,...l})=>{const u=vZ(r),[d,f]=S.useState(!1),{i18n:h}=S.useContext(ar);return A.createElement($,{display:"flex",flexDirection:"column",onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),ref:u},A.createElement($,{as:e,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:t?void 0:[v9e,wr({active:"shrink"})],disabled:t,onClick:a,padding:"5",style:{willChange:"transform"},testId:c,transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...l},A.createElement($,{color:t?"accentColorForeground":"modalText",disabled:!i,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},A.createElement(nr,{background:n,...d?{}:{borderColor:"actionButtonBorder"},borderRadius:"6",height:"28",src:r,width:"28"}),A.createElement($,null,A.createElement($,{style:{marginTop:s?-2:void 0}},o),s&&A.createElement(Ae,{color:t?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},h.t("connect.recent")))))))};wZ.displayName="ModalSelection";var fT=(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=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),a=parseInt(n.substring(4,6),16);return t>1&&t<=100&&(t=t/100),`rgba(${r},${o},${a},${t})`},w9e=e=>e?[fT(e,.2),fT(e,.14),fT(e,.1)]:null,E9e=e=>/^#([0-9a-f]{3}){1,2}$/i.test(e),EZ=async()=>(await me(async()=>{const{default:e}=await import("./connect-XNDTNVUH-Rkfb_zm3.js");return{default:e}},[],import.meta.url)).default,_9e=()=>Ui(EZ),x9e=()=>A.createElement(nr,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:EZ,width:"48"}),_Z=async()=>(await me(async()=>{const{default:e}=await import("./create-PAJXJDV3-CO2P7llu.js");return{default:e}},[],import.meta.url)).default,xZ=()=>Ui(_Z),C9e=()=>A.createElement(nr,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:_Z,width:"48"}),CZ=async()=>(await me(async()=>{const{default:e}=await import("./refresh-5KGGHTJP-CHhFOl-t.js");return{default:e}},[],import.meta.url)).default,S9e=()=>Ui(CZ),T9e=()=>A.createElement(nr,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:CZ,width:"48"}),SZ=async()=>(await me(async()=>{const{default:e}=await import("./scan-HZBLXLM4-DxZfTx07.js");return{default:e}},[],import.meta.url)).default,TZ=()=>Ui(SZ),A9e=()=>A.createElement(nr,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:SZ,width:"48"}),D9e="_1vwt0cg0",k9e="_1vwt0cg2 ju367v7a ju367v7v",j9e="_1vwt0cg3",P9e="_1vwt0cg4",I9e=(e,t)=>{const n=Array.prototype.slice.call(wy.create(e,{errorCorrectionLevel:t}).modules.data,0),r=Math.sqrt(n.length);return n.reduce((o,a,i)=>(i%r===0?o.push([a]):o[o.length-1].push(a))&&o,[])};function AZ({ecl:e="M",logoBackground:t,logoMargin:n=10,logoSize:r=50,logoUrl:o,size:a=200,uri:i}){const s="20",c=a-parseInt(s,10)*2,l=S.useMemo(()=>{const f=[],h=I9e(i,e),m=c/h.length;[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:w,y:_})=>{const C=(h.length-7)*m*w,x=(h.length-7)*m*_;for(let E=0;E<3;E++)f.push(A.createElement("rect",{fill:E%2!==0?"white":"black",height:m*(7-E*2),key:`${E}-${w}-${_}`,rx:(E-2)*-5+(E===0?2:0),ry:(E-2)*-5+(E===0?2:0),width:m*(7-E*2),x:C+m*E,y:x+m*E}))});const b=Math.floor((r+25)/m),v=h.length/2-b/2,g=h.length/2+b/2-1;return h.forEach((w,_)=>{w.forEach((C,x)=>{h[_][x]&&(_<7&&x<7||_>h.length-8&&x<7||_<7&&x>h.length-8||_>v&&_v&&x{switch(EP()){case"Arc":return(await me(async()=>{const{default:t}=await import("./Arc-QDJFTGH2-kQUVOusT.js");return{default:t}},[],import.meta.url)).default;case"Brave":return(await me(async()=>{const{default:t}=await import("./Brave-YATE5BIM-Crgwi_gE.js");return{default:t}},[],import.meta.url)).default;case"Chrome":return(await me(async()=>{const{default:t}=await import("./Chrome-LGF33C3S-CKyHgdNL.js");return{default:t}},[],import.meta.url)).default;case"Edge":return(await me(async()=>{const{default:t}=await import("./Edge-K2JEGI5S-_s-lgiRS.js");return{default:t}},[],import.meta.url)).default;case"Firefox":return(await me(async()=>{const{default:t}=await import("./Firefox-NP5SYEK5-7GCpd7vS.js");return{default:t}},[],import.meta.url)).default;case"Opera":return(await me(async()=>{const{default:t}=await import("./Opera-KV54PXPA-7mn5oIb-.js");return{default:t}},[],import.meta.url)).default;case"Safari":return(await me(async()=>{const{default:t}=await import("./Safari-2QIYKJ4P-DQKkg1Bn.js");return{default:t}},[],import.meta.url)).default;default:return(await me(async()=>{const{default:t}=await import("./Browser-HN7O5MN7-DHqH2OSI.js");return{default:t}},[],import.meta.url)).default}},O9e=()=>Ui(DZ),kZ=async()=>{switch(xP()){case"Windows":return(await me(async()=>{const{default:t}=await import("./Windows-R3CKAIUV-PWNRgNSo.js");return{default:t}},[],import.meta.url)).default;case"macOS":return(await me(async()=>{const{default:t}=await import("./Macos-2KTZ2XLP-pPa2wwwq.js");return{default:t}},[],import.meta.url)).default;case"Linux":return(await me(async()=>{const{default:t}=await import("./Linux-NS2LQPT4-BSWfZXoy.js");return{default:t}},[],import.meta.url)).default;default:return(await me(async()=>{const{default:t}=await import("./Linux-NS2LQPT4-BSWfZXoy.js");return{default:t}},[],import.meta.url)).default}},R9e=()=>Ui(kZ);function N9e({getWalletDownload:e,compactModeEnabled:t}){const r=S6().splice(0,5),{i18n:o}=S.useContext(ar);return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},r==null?void 0:r.filter(a=>{var i;return a.extensionDownloadUrl||a.desktopDownloadUrl||a.qrCode&&((i=a.downloadUrls)==null?void 0:i.qrCode)}).map(a=>{const{downloadUrls:i,iconBackground:s,iconUrl:c,id:l,name:u,qrCode:d}=a,f=(i==null?void 0:i.qrCode)&&d,h=!!a.extensionDownloadUrl,m=(i==null?void 0:i.qrCode)&&h,p=(i==null?void 0:i.qrCode)&&!!a.desktopDownloadUrl;return A.createElement($,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:a.id,width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},A.createElement(nr,{background:s,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:c,width:"48"}),A.createElement($,{display:"flex",flexDirection:"column",gap:"2"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},u),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},m?o.t("get.mobile_and_extension.description"):p?o.t("get.mobile_and_desktop.description"):f?o.t("get.mobile.description"):h?o.t("get.extension.description"):null))),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(to,{label:o.t("get.action.label"),onClick:()=>e(l),type:"secondary"})))})),A.createElement($,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},o.t("get.looking_for.title")),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},t?o.t("get.looking_for.desktop.compact_description"):o.t("get.looking_for.desktop.wide_description"))))}var hT="44";function B9e({changeWalletStep:e,compactModeEnabled:t,connectionError:n,onClose:r,qrCodeUri:o,reconnect:a,wallet:i}){var s;const{downloadUrls:c,iconBackground:l,iconUrl:u,name:d,qrCode:f,ready:h,showWalletConnectModal:m}=i,p=(s=i.desktop)==null?void 0:s.getUri,b=wP(),{i18n:v}=S.useContext(ar),g=!!i.extensionDownloadUrl,w=(c==null?void 0:c.qrCode)&&g,_=(c==null?void 0:c.qrCode)&&!!i.desktopDownloadUrl,C=f&&o,x=m?{description:t?v.t("connect.walletconnect.description.compact"):v.t("connect.walletconnect.description.full"),label:v.t("connect.walletconnect.open.label"),onClick:()=>{r(),m()}}:C?{description:v.t("connect.secondary_action.get.description",{wallet:d}),label:v.t("connect.secondary_action.get.label"),onClick:()=>e(w||_?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:E}=oZ(),T=E&&E<768;return S.useEffect(()=>{O9e(),R9e()},[]),A.createElement($,{display:"flex",flexDirection:"column",height:"full",width:"full"},C?A.createElement($,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},A.createElement(AZ,{logoBackground:l,logoSize:t?60:72,logoUrl:u,size:t?318:T?Math.max(280,Math.min(E-308,382)):382,uri:o})):A.createElement($,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},A.createElement($,{borderRadius:"10",height:hT,overflow:"hidden"},A.createElement(nr,{height:hT,src:u,width:hT})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},A.createElement(Ae,{color:"modalText",size:"18",weight:"bold"},h?v.t("connect.status.opening",{wallet:d}):g?v.t("connect.status.not_installed",{wallet:d}):v.t("connect.status.not_available",{wallet:d})),!h&&g?A.createElement($,{paddingTop:"20"},A.createElement(to,{href:i.extensionDownloadUrl,label:v.t("connect.secondary_action.install.label"),type:"secondary"})):null,h&&!C&&A.createElement(A.Fragment,null,A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},A.createElement(Ae,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},v.t("connect.status.confirm"))),A.createElement($,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},n?A.createElement(to,{label:v.t("connect.secondary_action.retry.label"),onClick:p?async()=>{const k=await p();window.open(k,b?"_blank":"_self")}:()=>{a(i)}}):A.createElement($,{color:"modalTextSecondary"},A.createElement(_g,null))))))),A.createElement($,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},h&&x&&A.createElement(A.Fragment,null,A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},x.description),A.createElement(to,{label:x.label,onClick:x.onClick,type:"secondary"}))))}var mT=({actionLabel:e,description:t,iconAccent:n,iconBackground:r,iconUrl:o,isCompact:a,onAction:i,title:s,url:c,variant:l})=>{const u=l==="browser",d=!u&&n&&w9e(n);return A.createElement($,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:a?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},A.createElement($,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),u&&A.createElement($,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},A.createElement($,{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)"}},A.createElement($,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},A.createElement(nr,{borderRadius:"full",height:"200",src:o,width:"200"})),A.createElement($,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},A.createElement(nr,{borderRadius:"full",height:"200",src:o,width:"200"})))),!u&&d&&A.createElement($,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},A.createElement($,{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}}),A.createElement($,{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}})),A.createElement($,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},A.createElement($,null,A.createElement(nr,{height:"60",src:o,width:"60",...r?{background:r,borderColor:"generalBorder",borderRadius:"10"}:null})),A.createElement($,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},s),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},t),A.createElement($,{marginTop:"14",width:"max"},A.createElement(to,{href:c,label:e,onClick:i,size:"medium"})))))};function F9e({changeWalletStep:e,wallet:t}){const n=EP(),r=xP(),a=S.useContext(C6)==="compact",{desktop:i,desktopDownloadUrl:s,extension:c,extensionDownloadUrl:l,mobileDownloadUrl:u}=t,{i18n:d}=S.useContext(ar);return S.useEffect(()=>{xZ(),TZ(),S9e(),_9e()},[]),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},l&&A.createElement(mT,{actionLabel:d.t("get_options.extension.download.label",{browser:n}),description:d.t("get_options.extension.description"),iconUrl:DZ,isCompact:a,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"}),s&&A.createElement(mT,{actionLabel:d.t("get_options.desktop.download.label",{platform:r}),description:d.t("get_options.desktop.description"),iconUrl:kZ,isCompact:a,onAction:()=>e(i!=null&&i.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:d.t("get_options.desktop.title",{wallet:t.name,platform:r}),url:s,variant:"desktop"}),u&&A.createElement(mT,{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:a,onAction:()=>{e("DOWNLOAD")},title:d.t("get_options.mobile.title",{wallet:t.name}),variant:"app"})))}function M9e({changeWalletStep:e,wallet:t}){const{downloadUrls:n,qrCode:r}=t,{i18n:o}=S.useContext(ar);return S.useEffect(()=>{xZ(),TZ()},[]),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},A.createElement($,{style:{maxWidth:220,textAlign:"center"}},A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"semibold"},o.t("get_mobile.description"))),A.createElement($,{height:"full"},n!=null&&n.qrCode?A.createElement(AZ,{logoSize:0,size:268,uri:n.qrCode}):null),A.createElement($,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},A.createElement(to,{label:o.t("get_mobile.continue.label"),onClick:()=>e(r!=null&&r.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var Bh={connect:()=>A.createElement(x9e,null),create:()=>A.createElement(C9e,null),install:e=>A.createElement(nr,{background:e.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:e.iconUrl,width:"48"}),refresh:()=>A.createElement(T9e,null),scan:()=>A.createElement(A9e,null)};function L9e({connectWallet:e,wallet:t}){var n,r,o,a;const{i18n:i}=S.useContext(ar);return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},A.createElement($,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(r=(n=t==null?void 0:t.qrCode)==null?void 0:n.instructions)==null?void 0:r.steps.map((s,c)=>{var l;return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:c},A.createElement($,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(l=Bh[s.step])==null?void 0:l.call(Bh,t)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},i.t(s.title)),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t(s.description))))})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},A.createElement(to,{label:i.t("get_instructions.mobile.connect.label"),onClick:()=>e(t)}),A.createElement($,{as:"a",className:wr({active:"shrink",hover:"grow"}),display:"block",href:(a=(o=t==null?void 0:t.qrCode)==null?void 0:o.instructions)==null?void 0:a.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},i.t("get_instructions.mobile.learn_more.label")))))}function U9e({wallet:e}){var t,n,r,o;const{i18n:a}=S.useContext(ar);return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},A.createElement($,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(n=(t=e==null?void 0:e.extension)==null?void 0:t.instructions)==null?void 0:n.steps.map((i,s)=>{var c;return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:s},A.createElement($,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(c=Bh[i.step])==null?void 0:c.call(Bh,e)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},a.t(i.title)),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t(i.description))))})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},A.createElement(to,{label:a.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),A.createElement($,{as:"a",className:wr({active:"shrink",hover:"grow"}),display:"block",href:(o=(r=e==null?void 0:e.extension)==null?void 0:r.instructions)==null?void 0:o.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},a.t("get_instructions.extension.learn_more.label")))))}function $9e({connectWallet:e,wallet:t}){var n,r,o,a;const{i18n:i}=S.useContext(ar);return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},A.createElement($,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(r=(n=t==null?void 0:t.desktop)==null?void 0:n.instructions)==null?void 0:r.steps.map((s,c)=>{var l;return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:c},A.createElement($,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(l=Bh[s.step])==null?void 0:l.call(Bh,t)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},i.t(s.title)),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t(s.description))))})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},A.createElement(to,{label:i.t("get_instructions.desktop.connect.label"),onClick:()=>e(t)}),A.createElement($,{as:"a",className:wr({active:"shrink",hover:"grow"}),display:"block",href:(a=(o=t==null?void 0:t.desktop)==null?void 0:o.instructions)==null?void 0:a.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},i.t("get_instructions.desktop.learn_more.label")))))}function z9e({onClose:e}){const t="rk_connect_title",n=wP(),[r,o]=S.useState(),[a,i]=S.useState(),[s,c]=S.useState(),l=!!(a!=null&&a.qrCode)&&s,[u,d]=S.useState(!1),h=S.useContext(C6)===vb.COMPACT,{disclaimer:m}=S.useContext(Hm),{i18n:p}=S.useContext(ar),b=S.useRef(!1),{connector:v}=S.useContext(bb),g=S6().filter(L=>L.ready||!!L.extensionDownloadUrl).sort((L,X)=>L.groupIndex-X.groupIndex),w=f9e(g,L=>L.groupName),_=["Recommended","Other","Popular","More","Others"];S.useEffect(()=>{v&&!b.current&&(k("CONNECT"),x(v),b.current=!0)},[v]);const C=L=>{var X,J,U;if(d(!1),L.ready){(J=(X=L==null?void 0:L.connect)==null?void 0:X.call(L))==null||J.catch(()=>{d(!0)});const G=(U=L.desktop)==null?void 0:U.getUri;G&&setTimeout(async()=>{const Z=await G();window.open(Z,n?"_blank":"_self")},0)}},x=L=>{var X;if(m9e(L.id),C(L),o(L.id),L.ready){let J=!1;(X=L==null?void 0:L.onConnecting)==null||X.call(L,async()=>{var U,G;if(J)return;J=!0;const Z=g.find(te=>L.id===te.id),ae=await((U=Z==null?void 0:Z.qrCode)==null?void 0:U.getUri());c(ae),setTimeout(()=>{i(Z),k("CONNECT")},ae?0:50);const ne=await(Z==null?void 0:Z.connector.getProvider()),ie=(G=ne==null?void 0:ne.signer)==null?void 0:G.connection;if(ie!=null&&ie.on&&(ie!=null&&ie.off)){const te=()=>{ee(),x(L)},ee=()=>{ie.off("close",te),ie.off("open",ee)};ie.on("close",te),ie.on("open",ee)}})}else i(L),k(L!=null&&L.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT")},E=L=>{var X;o(L);const J=g.find(ae=>L===ae.id),U=(X=J==null?void 0:J.downloadUrls)==null?void 0:X.qrCode,G=!!(J!=null&&J.desktopDownloadUrl),Z=!!(J!=null&&J.extensionDownloadUrl);i(J),k(U&&(Z||G)?"DOWNLOAD_OPTIONS":U?"DOWNLOAD":G?"INSTRUCTIONS_DESKTOP":"INSTRUCTIONS_EXTENSION")},T=()=>{o(void 0),i(void 0),c(void 0)},k=(L,X=!1)=>{X&&L==="GET"&&D==="GET"?T():!X&&L==="GET"?R("GET"):!X&&L==="CONNECT"&&R("CONNECT"),B(L)},[D,R]=S.useState("NONE"),[F,B]=S.useState("NONE");let j=null,P=null,O=null,I;S.useEffect(()=>{d(!1)},[F,a]);const M=!!(!!(a!=null&&a.extensionDownloadUrl)&&(a!=null&&a.mobileDownloadUrl));switch(F){case"NONE":j=A.createElement(MF,{getWallet:()=>k("GET")});break;case"LEARN_COMPACT":j=A.createElement(MF,{compactModeEnabled:h,getWallet:()=>k("GET")}),P=p.t("intro.title"),O="NONE";break;case"GET":j=A.createElement(N9e,{getWalletDownload:E,compactModeEnabled:h}),P=p.t("get.title"),O=h?"LEARN_COMPACT":"NONE";break;case"CONNECT":j=a&&A.createElement(B9e,{changeWalletStep:k,compactModeEnabled:h,connectionError:u,onClose:e,qrCodeUri:s,reconnect:C,wallet:a}),P=l&&(a.name==="WalletConnect"?p.t("connect_scan.fallback_title"):p.t("connect_scan.title",{wallet:a.name})),O=h?v?null:"NONE":null,I=h?v?()=>{}:T:()=>{};break;case"DOWNLOAD_OPTIONS":j=a&&A.createElement(F9e,{changeWalletStep:k,wallet:a}),P=a&&p.t("get_options.short_title",{wallet:a.name}),O=v?"CONNECT":h?"NONE":null;break;case"DOWNLOAD":j=a&&A.createElement(M9e,{changeWalletStep:k,wallet:a}),P=a&&p.t("get_mobile.title",{wallet:a.name}),O=M?"DOWNLOAD_OPTIONS":D;break;case"INSTRUCTIONS_MOBILE":j=a&&A.createElement(L9e,{connectWallet:x,wallet:a}),P=a&&p.t("get_options.title",{wallet:h&&a.shortName||a.name}),O="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":j=a&&A.createElement(U9e,{wallet:a}),P=a&&p.t("get_options.title",{wallet:h&&a.shortName||a.name}),O="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":j=a&&A.createElement($9e,{connectWallet:x,wallet:a}),P=a&&p.t("get_options.title",{wallet:h&&a.shortName||a.name}),O="DOWNLOAD_OPTIONS";break}return A.createElement($,{display:"flex",flexDirection:"row",style:{maxHeight:h?468:504}},(h?F==="NONE":!0)&&A.createElement($,{className:h?P9e:j9e,display:"flex",flexDirection:"column",marginTop:"16"},A.createElement($,{display:"flex",justifyContent:"space-between"},h&&m&&A.createElement($,{marginLeft:"16",width:"28"},A.createElement(g9e,{onClick:()=>k("LEARN_COMPACT")})),h&&!m&&A.createElement($,{marginLeft:"16",width:"28"}),A.createElement($,{marginLeft:h?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},A.createElement(Ae,{as:"h1",color:"modalText",id:t,size:"18",weight:"heavy",testId:"connect-header-label"},p.t("connect.title"))),h&&A.createElement($,{marginRight:"16"},A.createElement(od,{onClose:e}))),A.createElement($,{className:k9e,paddingBottom:"18"},Object.entries(w).map(([L,X],J)=>X.length>0&&A.createElement(S.Fragment,{key:J},L?A.createElement($,{marginBottom:"8",marginTop:"16",marginX:"6"},A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"bold"},_.includes(L)?p.t(`connector_group.${L.toLowerCase()}`):L)):null,A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},X.map(U=>A.createElement(wZ,{currentlySelected:U.id===r,iconBackground:U.iconBackground,iconUrl:U.iconUrl,key:U.id,name:U.name,onClick:()=>x(U),ready:U.ready,recent:U.recent,testId:`wallet-option-${U.id}`})))))),h&&A.createElement(A.Fragment,null,A.createElement($,{background:"generalBorder",height:"1",marginTop:"-1"}),m?A.createElement($,{paddingX:"24",paddingY:"16",textAlign:"center"},A.createElement(m,{Link:CP,Text:SP})):A.createElement($,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},A.createElement($,{paddingY:"4"},A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},p.t("connect.new_to_ethereum.description"))),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},A.createElement($,{className:wr({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>k("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},p.t("connect.new_to_ethereum.learn_more.label"))))))),(h?F!=="NONE":!0)&&A.createElement(A.Fragment,null,!h&&A.createElement($,{background:"generalBorder",minWidth:"1",width:"1"}),A.createElement($,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},A.createElement($,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},A.createElement($,{width:"28"},O&&A.createElement($,{as:"button",className:wr({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{O&&k(O,!0),I==null||I()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},A.createElement(bZ,null))),A.createElement($,{display:"flex",justifyContent:"center",style:{flexGrow:1}},P&&A.createElement(Ae,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},P)),A.createElement(od,{onClose:e})),A.createElement($,{display:"flex",flexDirection:"column",style:{minHeight:h?396:432}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},j)))))}var H9e="_1am14412",q9e="_1am14410",W9e="_1am14413",G9e=({wallet:e})=>A.createElement("svg",{className:W9e,viewBox:"0 0 86 86",width:"86",height:"86"},A.createElement("title",null,"Loading"),A.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:`${160/3} ${2*160/3}`,strokeDashoffset:160,className:H9e,style:{stroke:(e==null?void 0:e.iconAccent)||"#0D3887"}}));function jZ({onClose:e,wallet:t,connecting:n}){const{connect:r,connector:o,iconBackground:a,iconUrl:i,id:s,mobile:c,name:l,onConnecting:u,ready:d,shortName:f}=t,h=c==null?void 0:c.getUri,m=vZ(i),p=S.useRef(!1),{i18n:b}=S.useContext(ar),v=S.useCallback(async()=>{var g;s==="walletConnect"&&(e==null||e()),(g=r==null?void 0:r())==null||g.catch(()=>{});let w=!1;u==null||u(async()=>{if(!w&&(w=!0,h)){const _=await h();if((o.id==="walletConnect"||o.id==="walletConnectLegacy")&&OBe({mobileUri:_,name:l}),_.startsWith("http")){const C=document.createElement("a");C.href=_,C.target="_blank",C.rel="noreferrer noopener",C.click()}else window.location.href=_}})},[o,r,h,u,e,l,s]);return S.useEffect(()=>{n&&!p.current&&(v(),p.current=!0)},[n,v]),A.createElement($,{as:"button",color:d?"modalText":"modalTextSecondary",disabled:!d,fontFamily:"body",key:s,onClick:v,ref:m,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${s}`,type:"button",width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},A.createElement($,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},n?A.createElement(G9e,{wallet:t}):null,A.createElement(nr,{background:a,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:i,width:"60"})),n?null:A.createElement($,{display:"flex",flexDirection:"column",textAlign:"center"},A.createElement(Ae,{as:"h2",color:t.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},A.createElement($,{as:"span",position:"relative"},f??l,!t.ready&&" (unsupported)")),t.recent&&A.createElement(Ae,{color:"accentColor",size:"12",weight:"medium"},b.t("connect.recent")))))}function V9e({onClose:e}){var t;const n="rk_connect_title",r=S6(),{disclaimer:o,learnMoreUrl:a}=S.useContext(Hm);let i=null,s=null,c=!1,l=null;const[u,d]=S.useState("CONNECT"),{i18n:f}=S.useContext(ar),h=Ll();switch(u){case"CONNECT":{i=f.t("connect.title"),c=!0,s=A.createElement($,null,A.createElement($,{background:"profileForeground",className:q9e,display:"flex",paddingBottom:"20",paddingTop:"6"},A.createElement($,{display:"flex",style:{margin:"0 auto"}},r.filter(m=>m.ready).map(m=>A.createElement($,{key:m.id,paddingX:"20"},A.createElement($,{width:"60"},A.createElement(jZ,{onClose:e,wallet:m})))))),A.createElement($,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},A.createElement($,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},A.createElement(Ae,{color:"modalText",size:"16",weight:"bold"},f.t("intro.title")),A.createElement(Ae,{color:"modalTextSecondary",size:"16"},f.t("intro.description")))),A.createElement($,{paddingTop:"32",paddingX:"20"},A.createElement($,{display:"flex",gap:"14",justifyContent:"center"},A.createElement(to,{label:f.t("intro.get.label"),onClick:()=>d("GET"),size:"large",type:"secondary"}),A.createElement(to,{href:a,label:f.t("intro.learn_more.label"),size:"large",type:"secondary"}))),o&&A.createElement($,{marginTop:"28",marginX:"32",textAlign:"center"},A.createElement(o,{Link:CP,Text:SP})));break}case"GET":{i=f.t("get.title"),l="CONNECT";const m=(t=r==null?void 0:r.filter(p=>{var b,v,g;return((b=p.downloadUrls)==null?void 0:b.ios)||((v=p.downloadUrls)==null?void 0:v.android)||((g=p.downloadUrls)==null?void 0:g.mobile)}))==null?void 0:t.splice(0,3);s=A.createElement($,null,A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},m.map((p,b)=>{const{downloadUrls:v,iconBackground:g,iconUrl:w,name:_}=p;return!(v!=null&&v.ios)&&!(v!=null&&v.android)&&!(v!=null&&v.mobile)?null:A.createElement($,{display:"flex",gap:"16",key:p.id,paddingX:"20",width:"full"},A.createElement($,{style:{minHeight:48,minWidth:48}},A.createElement(nr,{background:g,borderColor:"generalBorder",borderRadius:"10",height:"48",src:w,width:"48"})),A.createElement($,{display:"flex",flexDirection:"column",width:"full"},A.createElement($,{alignItems:"center",display:"flex",height:"48"},A.createElement($,{width:"full"},A.createElement(Ae,{color:"modalText",size:"18",weight:"bold"},_)),A.createElement(to,{href:(h?v==null?void 0:v.ios:v==null?void 0:v.android)||(v==null?void 0:v.mobile),label:f.t("get.action.label"),size:"small",type:"secondary"})),bd(l),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},A.createElement(bZ,null))),A.createElement($,{marginTop:"4",textAlign:"center",width:"full"},A.createElement(Ae,{as:"h1",color:"modalText",id:n,size:"20",weight:"bold"},i)),A.createElement($,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},A.createElement($,{style:{marginBottom:-20,marginTop:-20}},A.createElement(od,{onClose:e}))))),A.createElement($,{display:"flex",flexDirection:"column"},s))}var K9e=({onClose:e})=>{const{connector:t}=S.useContext(bb),{i18n:n}=S.useContext(ar),r=(t==null?void 0:t.name)||"";return A.createElement($,null,A.createElement($,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},A.createElement($,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},A.createElement(od,{onClose:e})),A.createElement($,{width:"60"},A.createElement(jZ,{onClose:e,wallet:t,connecting:!0})),A.createElement($,{marginTop:"20"},A.createElement(Ae,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},n.t("connect.status.connect_mobile",{wallet:r}))),A.createElement($,{maxWidth:"full",marginTop:"8"},A.createElement(Ae,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},n.t("connect.status.confirm_mobile",{wallet:r})))))};function Y9e({onClose:e}){const{connector:t}=S.useContext(bb);return Cr()?t?A.createElement(K9e,{onClose:e}):A.createElement(V9e,{onClose:e}):A.createElement(z9e,{onClose:e})}function Q9e({onClose:e,open:t}){const n="rk_connect_title",r=HJ(),{disconnect:o}=Qx(),{isConnecting:a}=tn(),i=A.useCallback(()=>{e(),o()},[e,o]),s=A.useCallback(()=>{a&&o(),e()},[e,o,a]);return r==="disconnected"?A.createElement(ME,{onClose:s,open:t,titleId:n},A.createElement(LE,{bottomSheetOnMobile:!0,padding:"0",wide:!0},A.createElement(Y9e,{onClose:s}))):r==="unauthenticated"?A.createElement(ME,{onClose:i,open:t,titleId:n},A.createElement(LE,{bottomSheetOnMobile:!0,padding:"0"},A.createElement(PBe,{onClose:i,onCloseModal:e}))):null}function pT(){const[e,t]=S.useState(!1);return{closeModal:S.useCallback(()=>t(!1),[]),isModalOpen:e,openModal:S.useCallback(()=>t(!0),[])}}var wb=S.createContext({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1});function X9e({children:e}){const{closeModal:t,isModalOpen:n,openModal:r}=pT(),{closeModal:o,isModalOpen:a,openModal:i}=pT(),{closeModal:s,isModalOpen:c,openModal:l}=pT(),u=HJ(),{chain:d}=To(),f=!(d!=null&&d.unsupported);function h({keepConnectModalOpen:p=!1}={}){p||t(),o(),s()}const m=_6()==="unauthenticated";return tn({onConnect:()=>h({keepConnectModalOpen:m}),onDisconnect:()=>h()}),A.createElement(wb.Provider,{value:S.useMemo(()=>({accountModalOpen:a,chainModalOpen:c,connectModalOpen:n,openAccountModal:f&&u==="connected"?i:void 0,openChainModal:u==="connected"?l:void 0,openConnectModal:u==="disconnected"||u==="unauthenticated"?r:void 0}),[u,f,a,c,n,i,l,r])},e,A.createElement(Q9e,{onClose:t,open:n}),A.createElement(i9e,{onClose:o,open:a}),A.createElement(d9e,{onClose:s,open:c}))}function J9e(){const{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}=S.useContext(wb);return{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}}function Z9e(){const{accountModalOpen:e,openAccountModal:t}=S.useContext(wb);return{accountModalOpen:e,openAccountModal:t}}function eFe(){const{chainModalOpen:e,openChainModal:t}=S.useContext(wb);return{chainModalOpen:e,openChainModal:t}}function Eb(){const{connectModalOpen:e,openConnectModal:t}=S.useContext(wb);return{connectModalOpen:e,openConnectModal:t}}var gT=()=>{};function tFe({children:e}){var t,n,r,o;const a=ZNe(),{address:i}=tn(),s=XJ(i),c=QJ(s),l=QNe(),u=(t=_6())!=null?t:void 0,{chain:d}=To(),f=d?l[d.id]:void 0,h=(n=f==null?void 0:f.name)!=null?n:void 0,m=(r=f==null?void 0:f.iconUrl)!=null?r:void 0,p=(o=f==null?void 0:f.iconBackground)!=null?o:void 0,b=pP(m),v=S.useContext(vP),g=tZ().some(({status:B})=>B==="pending")&&v,{showBalance:w}=JNe(),_=w?_Ne(w)[Cr()?"smallScreen":"largeScreen"]:!0,{data:C}=FY({address:_?i:void 0}),x=C?`${hZ(parseFloat(C.formatted))} ${C.symbol}`:void 0,{openConnectModal:E}=Eb(),{openChainModal:T}=eFe(),{openAccountModal:k}=Z9e(),{accountModalOpen:D,chainModalOpen:R,connectModalOpen:F}=J9e();return A.createElement(A.Fragment,null,e({account:i?{address:i,balanceDecimals:C==null?void 0:C.decimals,balanceFormatted:C==null?void 0:C.formatted,balanceSymbol:C==null?void 0:C.symbol,displayBalance:x,displayName:s?pZ(s):mZ(i),ensAvatar:c??void 0,ensName:s??void 0,hasPendingTransactions:g}:void 0,accountModalOpen:D,authenticationStatus:u,chain:d?{hasIcon:!!m,iconBackground:p,iconUrl:b,id:d.id,name:h??d.name,unsupported:d.unsupported}:void 0,chainModalOpen:R,connectModalOpen:F,mounted:a(),openAccountModal:k??gT,openChainModal:T??gT,openConnectModal:E??gT}))}tFe.displayName="ConnectButton.Custom";function nFe(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0))}function PZ(e){return"groupName"in e[0]?UF(e):UF([{groupName:"",wallets:e}])()}var UF=e=>()=>{let t=-1;const n=[],r=[],o=[],a=[];return e.forEach(({groupName:s,wallets:c},l)=>{c.forEach(u=>{if(t++,u!=null&&u.iconAccent&&!E9e(u==null?void 0:u.iconAccent))throw new Error(`Property \`iconAccent\` is not a hex value for wallet: ${u.name}`);const d={...u,groupIndex:l,groupName:s,index:t};typeof u.hidden=="function"?o.push(d):r.push(d)})}),[...r,...o].forEach(({createConnector:s,groupIndex:c,groupName:l,hidden:u,index:d,...f})=>{if(typeof u=="function"&&u({wallets:[...a.map(({connector:g,id:w,installed:_,name:C})=>({connector:g,id:w,installed:_,name:C}))]}))return;const{connector:h,...m}=nFe(s());let p;if(f.id==="walletConnect"&&m.qrCode&&!Cr()){const{chains:v,options:g}=h;p=new q4({chains:v,options:{...g,showQrModal:!0}}),n.push(p)}const b={connector:h,groupIndex:c,groupName:l,index:d,walletConnectModalConnector:p,...f,...m};a.push(b),n.includes(h)||(n.push(h),h._wallets=[]),h._wallets.push(b)}),n},rFe=({chains:e,...t})=>{var n;return{id:"brave",name:"Brave Wallet",iconUrl:async()=>(await me(async()=>{const{default:r}=await import("./braveWallet-BTBH4MDN-Dk8CDq00.js");return{default:r}},[],import.meta.url)).default,iconBackground:"#fff",installed:typeof window<"u"&&((n=window.ethereum)==null?void 0:n.isBraveWallet)===!0,downloadUrls:{},createConnector:()=>({connector:new Ds({chains:e,options:t})})}};function IZ(e){if(typeof window>"u"||typeof window.ethereum>"u")return;const t=window.ethereum.providers;return t?t.find(n=>n[e]):window.ethereum[e]?window.ethereum:void 0}function OZ(e){return!!IZ(e)}function oFe(e){if(typeof window>"u"||typeof window.ethereum>"u")return;const t=window.ethereum.providers,n=IZ(e);return n||(typeof t<"u"&&t.length>0?t[0]:window.ethereum)}function aFe({chains:e,flag:t,options:n}){return new Ds({chains:e,options:{getProvider:()=>oFe(t),...n}})}var iFe=({appName:e,chains:t,...n})=>{const r=OZ("isCoinbaseWallet");return{id:"coinbase",name:"Coinbase Wallet",shortName:"Coinbase",iconUrl:async()=>(await me(async()=>{const{default:o}=await import("./coinbaseWallet-2OUR5TUP-CpvNSmI2.js");return{default:o}},[],import.meta.url)).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:r||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},createConnector:()=>{const o=Ll(),a=new f3e({chains:t,options:{appName:e,headlessMode:!0,...n}});return{connector:a,...o?{}:{qrCode:{getUri:async()=>(await a.getProvider()).qrUrl,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"wallet_connectors.coinbase.qr_code.step1.description",step:"install",title:"wallet_connectors.coinbase.qr_code.step1.title"},{description:"wallet_connectors.coinbase.qr_code.step2.description",step:"create",title:"wallet_connectors.coinbase.qr_code.step2.title"},{description:"wallet_connectors.coinbase.qr_code.step3.description",step:"scan",title:"wallet_connectors.coinbase.qr_code.step3.title"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"wallet_connectors.coinbase.extension.step1.description",step:"install",title:"wallet_connectors.coinbase.extension.step1.title"},{description:"wallet_connectors.coinbase.extension.step2.description",step:"create",title:"wallet_connectors.coinbase.extension.step2.title"},{description:"wallet_connectors.coinbase.extension.step3.description",step:"refresh",title:"wallet_connectors.coinbase.extension.step3.title"}]}}}}}}},sFe=({chains:e,...t})=>({id:"injected",name:"Browser Wallet",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./injectedWallet-EUKDEAIU-CMyNXBNM.js");return{default:n}},[],import.meta.url)).default,iconBackground:"#fff",hidden:({wallets:n})=>n.some(r=>r.installed&&r.name===r.connector.name&&(r.connector instanceof Ds||r.id==="coinbase")),createConnector:()=>({connector:new Ds({chains:e,options:t})})});async function TP(e,t){const n=await e.getProvider();return t==="2"?new Promise(r=>n.once("display_uri",r)):n.connector.uri}var RZ=new Map;function cFe(e,t){const n=e==="1"?new iX(t):new q4(t);return RZ.set(JSON.stringify(t),n),n}function UE({chains:e,options:t={},projectId:n,version:r="2"}){const o="21fef48091f12692cad574a6f7753643";if(r==="2"){if(!n||n==="")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");(n==="YOUR_PROJECT_ID"||n===o)&&console.warn("Invalid projectId. Please create a unique WalletConnect Cloud projectId for your dApp https://www.rainbowkit.com/docs/installation#configure")}const a={chains:e,options:r==="1"?{qrcode:!1,...t}:{projectId:n==="YOUR_PROJECT_ID"?o:n,showQrModal:!1,...t}},i=JSON.stringify(a),s=RZ.get(i);return s??cFe(r,a)}function $F(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.isBlockWallet||e.isCoinbaseWallet||e.isDawn||e.isEnkrypt||e.isExodus||e.isFrame||e.isFrontier||e.isGamestop||e.isHyperPay||e.isImToken||e.isKuCoinWallet||e.isMathWallet||e.isOkxWallet||e.isOKExWallet||e.isOneInchIOSWallet||e.isOneInchAndroidWallet||e.isOpera||e.isPhantom||e.isPortal||e.isRabby||e.isRainbow||e.isStatus||e.isTalisman||e.isTally||e.isTokenPocket||e.isTokenary||e.isTrust||e.isTrustWallet||e.isXDEFI||e.isZeal||e.isZerion)}var lFe=({chains:e,projectId:t,walletConnectOptions:n,walletConnectVersion:r="2",...o})=>{var a,i;const s=typeof window<"u"&&((a=window.ethereum)==null?void 0:a.providers),c=typeof window<"u"&&typeof window.ethereum<"u"&&(((i=window.ethereum.providers)==null?void 0:i.some($F))||window.ethereum.isMetaMask),l=!c;return{id:"metaMask",name:"MetaMask",iconUrl:async()=>(await me(async()=>{const{default:u}=await import("./metaMaskWallet-ORHUNQRP-DhHH5FFG.js");return{default:u}},[],import.meta.url)).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:l?void 0:c,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"},createConnector:()=>{const u=l?UE({projectId:t,chains:e,version:r,options:n}):new h3e({chains:e,options:{getProvider:()=>Array.isArray(s)&&s.find($F)||(typeof window<"u"?window.ethereum:void 0),...o}}),d=async()=>{const f=await TP(u,r);return mP()?f:Ll()?`metamask://wc?uri=${encodeURIComponent(f)}`:`https://metamask.app.link/wc?uri=${encodeURIComponent(f)}`};return{connector:u,mobile:{getUri:l?d:void 0},qrCode:l?{getUri:d,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"}]}}}}}},uFe=({chains:e,projectId:t,walletConnectOptions:n,walletConnectVersion:r="2",...o})=>{const a=OZ("isRainbow"),i=!a;return{id:"rainbow",name:"Rainbow",iconUrl:async()=>(await me(async()=>{const{default:s}=await import("./rainbowWallet-GGU64QEI-Buwz1oV3.js");return{default:s}},[],import.meta.url)).default,iconBackground:"#0c2f78",installed:i?void 0:a,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"},createConnector:()=>{const s=i?UE({projectId:t,chains:e,version:r,options:n}):aFe({flag:"isRainbow",chains:e,options:o}),c=async()=>{const l=await TP(s,r);return mP()?l:Ll()?`rainbow://wc?uri=${encodeURIComponent(l)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(l)}&connector=rainbowkit`};return{connector:s,mobile:{getUri:i?c:void 0},qrCode:i?{getUri:c,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}}}},dFe=({chains:e,...t})=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./safeWallet-DFMLSLCR-7Jx5rkap.js");return{default:n}},[],import.meta.url)).default,installed:!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,downloadUrls:{},createConnector:()=>({connector:new $J({chains:e,options:t})})}),fFe=({chains:e,options:t,projectId:n,version:r="2"})=>({id:"walletConnect",name:"WalletConnect",iconUrl:async()=>(await me(async()=>{const{default:o}=await import("./walletConnectWallet-D6ZADJM7-BtZ74X7H.js");return{default:o}},[],import.meta.url)).default,iconBackground:"#3b99fc",createConnector:()=>{const o=Ll(),a=UE(r==="1"?{version:"1",chains:e,options:{qrcode:o,...t}}:{version:"2",chains:e,projectId:n,options:{showQrModal:o,...t}}),i=async()=>TP(a,r);return{connector:a,...o?{}:{mobile:{getUri:i},qrCode:{getUri:i}}}}}),hFe=({appName:e,chains:t,projectId:n})=>{const r=[{groupName:"Popular",wallets:[sFe({chains:t}),dFe({chains:t}),uFe({chains:t,projectId:n}),iFe({appName:e,chains:t}),lFe({chains:t,projectId:n}),fFe({chains:t,projectId:n}),rFe({chains:t})]}];return{connectors:PZ(r),wallets:r}};function mFe({width:e=32,height:t=32,fill:n="#52C41A"}){return y.jsx("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:e,height:t,className:"shrink-0",children:y.jsx("path",{d:"M864.554667 268.501333a42.666667 42.666667 0 0 1 0 60.330667L412.032 781.397333a42.453333 42.453333 0 0 1-22.613333 11.818667l-5.034667 0.597333H379.306667a42.496 42.496 0 0 1-27.648-12.416l-211.2-211.2a42.666667 42.666667 0 1 1 60.330666-60.330666l180.992 180.992 422.4-422.4a42.666667 42.666667 0 0 1 60.330667 0z",fill:n})})}function AP({text:e,copiedColor:t}){const[n,r]=S.useState(!1),o=S.useCallback(async a=>{a.stopPropagation();try{await navigator.clipboard.writeText(e),r(!0)}catch(i){console.error(i)}},[e]);return S.useEffect(()=>{let a;return n&&(a=dY(1e3,0).subscribe(()=>r(!1))),()=>a==null?void 0:a.unsubscribe()},[n]),n?y.jsx(mFe,{width:16,height:16,fill:t}):y.jsx("img",{width:16,height:16,alt:"Copy",src:"images/copy.svg",className:"shrink-0 transition hover:scale-105 hover:cursor-pointer hover:opacity-80 active:scale-105",onClick:o})}function Ca({address:e,copyable:t,className:n,forceShort:r,prefixLength:o,suffixLength:a,disableTooltip:i}){return y.jsxs("div",{className:"gap-small inline-flex items-center",children:[r?y.jsx(At,{enabledSafePolygon:!0,content:e,enabled:!i,children:y.jsx("span",{className:n,children:zu(e,o,a)})}):y.jsxs(y.Fragment,{children:[y.jsx(At,{enabledSafePolygon:!0,content:e,className:`lg:hidden ${n}`,enabled:!i,children:y.jsx("span",{children:zu(e,o,a)})}),y.jsx("span",{className:`hidden lg:inline ${n}`,children:e})]}),t?y.jsx(AP,{text:e}):null]})}var DP={},kP={},Xs=function(e){e==null&&(e=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};Xs.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};Xs.prototype.init_by_array=function(e,t){var n,r,o;for(this.init_seed(19650218),n=1,r=0,o=this.N>t?this.N:t;o;o--){var a=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((a&4294901760)>>>16)*1664525<<16)+(a&65535)*1664525)+e[r]+r,this.mt[n]>>>=0,n++,r++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),r>=t&&(r=0)}for(o=this.N-1;o;o--){var a=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((a&4294901760)>>>16)*1566083941<<16)+(a&65535)*1566083941)-n,this.mt[n]>>>=0,n++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648};Xs.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n>>1^t[e&1];for(;n>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};Xs.prototype.random_int31=function(){return this.random_int()>>>1};Xs.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};Xs.prototype.random=function(){return this.random_int()*(1/4294967296)};Xs.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};Xs.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var pFe=Xs,NZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HSLToHex=e.hexToHSL=e.colorRotate=void 0;var t=function(o,a){var i=(0,e.hexToHSL)(o),s=i.h;return s=(s+a)%360,s=s<0?360+s:s,i.h=s,(0,e.HSLToHex)(i)};e.colorRotate=t;var n=function(o){var a="0x"+o[1]+o[2],i="0x"+o[3]+o[4],s="0x"+o[5]+o[6],c=parseInt(a)/255,l=parseInt(i)/255,u=parseInt(s)/255,d=Math.min(c,l,u),f=Math.max(c,l,u),h=f-d,m=0,p=0,b=0;return h==0?m=0:f==c?m=(l-u)/h%6:f==l?m=(u-c)/h+2:m=(c-l)/h+4,m=Math.round(m*60),m<0&&(m+=360),b=(f+d)/2,p=h==0?0:h/(1-Math.abs(2*b-1)),p=+(p*100).toFixed(1),b=+(b*100).toFixed(1),{h:m,s:p,l:b}};e.hexToHSL=n;var r=function(o){var a=o.h,i=o.s,s=o.l;i/=100,s/=100;var c=(1-Math.abs(2*s-1))*i,l=c*(1-Math.abs(a/60%2-1)),u=s-c/2,d=0,f=0,h=0;0<=a&&a<60?(d=c,f=l,h=0):60<=a&&a<120?(d=l,f=c,h=0):120<=a&&a<180?(d=0,f=c,h=l):180<=a&&a<240?(d=0,f=l,h=c):240<=a&&a<300?(d=l,f=0,h=c):300<=a&&a<360&&(d=c,f=0,h=l);var m=Math.round((d+u)*255).toString(16),p=Math.round((f+u)*255).toString(16),b=Math.round((h+u)*255).toString(16);return m.length==1&&(m="0"+m),p.length==1&&(p="0"+p),b.length==1&&(b="0"+b),"#"+m+p+b};e.HSLToHex=r})(NZ);var jP={};Object.defineProperty(jP,"__esModule",{value:!0});jP.default=Object.freeze(["#01888c","#fc7500","#034f5d","#f73f01","#fc1960","#c7144c","#f3c100","#1598f2","#2465e1","#f19e02"]);var PP={},Bf=We&&We.__assign||function(){return Bf=Object.assign||function(e){for(var t,n=1,r=arguments.length;ni(),className:"user-dropdown-item",children:[y.jsx("img",{width:18,height:18,alt:"Disconnect",src:"images/disconnect.svg",className:"shrink-0"}),y.jsx(WF,{children:"Disconnect"})]})]}),y.jsx("div",{className:"mx-5 h-[1px] bg-white/10"}),y.jsxs("div",{className:"relative flex max-h-[40vh] min-h-[2.5rem] flex-col overflow-y-auto px-2 lg:max-h-[72vh]",children:[y.jsx(qs,{loading:o,color:"white",size:"small",className:"bg-white/5 backdrop-blur-[2px]"}),r.filter(({balance:c})=>00y.jsxs("button",{className:"gap-large lg:py-medium flex items-center rounded-xl px-3 py-2 transition-colors hover:bg-white/10 disabled:cursor-default",disabled:!0,children:[y.jsxs("div",{className:"relative",children:[y.jsx("img",{alt:"Token",width:32,height:32,src:vr(c.token.logo),className:"rounded-full"}),y.jsx("img",{alt:"Chain",width:20,height:20,src:Rn(c.chain.logo),className:"absolute -bottom-1 -right-1 rounded-full"})]}),y.jsxs("div",{className:"flex flex-col items-start",children:[y.jsxs("span",{className:"text-sm font-semibold text-white",children:[ut(c.balance,c.token.decimals)," ",c.token.symbol]}),y.jsx("span",{className:"text-xs font-medium text-white/50",children:c.chain.name})]})]},`${c.chain.network}-${c.token.symbol}`)):o?null:y.jsx("div",{className:"inline-flex h-10 items-center justify-center",children:y.jsx("span",{className:"text-sm font-medium text-slate-400",children:"No data"})})]})]}):y.jsx("button",{className:"bg-primary px-large hover:bg-primary/90 lg:py-small inline-flex rounded-xl py-2 transition-colors",onClick:s,children:y.jsx("span",{className:"text-sm font-bold text-white",children:"Connect Wallet"})})}function WF({children:e}){return y.jsx("span",{className:"text-sm font-medium",children:e})}const RFe=hm();function GF({placement:e}){const[t,n]=S.useState(!1),r=tn(),{refs:o,context:a,floatingStyles:i}=gd({placement:e,open:t,onOpenChange:n,middleware:[hd(6)]}),{styles:s,isMounted:c}=bd(a,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),l=tm(a),u=pd(a),{getReferenceProps:d,getFloatingProps:f}=yd([l,u]),{switchNetwork:h}=Tl(),{chain:m}=To(),p=S.useMemo(()=>st(m==null?void 0:m.id),[m==null?void 0:m.id]);return r.address?y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"gap-small lg:bg-secondary flex h-8 w-fit items-center justify-between rounded-xl bg-white/20 px-3 transition-colors hover:bg-white/20",ref:o.setReference,...d(),children:p?y.jsxs(y.Fragment,{children:[y.jsx("img",{alt:"Active chain",width:20,height:20,src:Rn(p.logo),className:"rounded-full"}),y.jsx("img",{style:{transform:t?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 transition-transform",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})]}):y.jsxs(y.Fragment,{children:[y.jsx("img",{alt:"Wrong chain",width:18,height:18,src:"images/warning.svg"}),y.jsx("span",{className:"text-sm font-bold text-orange-400",children:"Wrong Chain"})]})}),c&&y.jsx(md,{children:y.jsx("div",{style:i,ref:o.setFloating,...f(),className:"z-20",children:y.jsx("div",{style:s,className:"bg-background flex max-h-[18rem] flex-col overflow-y-auto rounded-xl border border-white/20 py-2",onClick:()=>n(!1),children:RFe.map(b=>y.jsxs("button",{className:"gap-medium px-large py-medium flex items-center transition-colors hover:bg-white/5 disabled:bg-white/10",disabled:b.id===(m==null?void 0:m.id),onClick:()=>h==null?void 0:h(b.id),children:[y.jsx("img",{alt:"Chain",width:22,height:22,src:Rn(b.logo),className:"rounded-full"}),y.jsx("span",{className:"text-sm font-bold text-white",children:b.name})]},b.id))})})})]}):null}function NFe({children:e,isOpen:t,maskClosable:n,onClose:r=()=>{}}){const o=S.useRef(null);return Fs.createPortal(y.jsx(Al,{in:t,timeout:300,nodeRef:o,classNames:"drawer-fade",unmountOnExit:!0,onEnter:()=>{document.body.style.overflow="hidden"},onExited:()=>{document.body.style.overflow="auto"},children:y.jsx("div",{ref:o,onClick:()=>n&&r(),className:"bg-app-bg/80 fixed left-0 top-0 z-20 h-screen w-screen backdrop-blur-sm",children:y.jsx("div",{className:"bg-secondary absolute right-0 top-0 h-screen w-3/4 overflow-y-auto",onClick:a=>a.stopPropagation(),children:y.jsxs("div",{className:"flex h-full w-full flex-col items-start",children:[y.jsxs("div",{className:"p-medium flex w-full items-center justify-between",children:[y.jsx(Su,{to:"/",onClick:r,children:y.jsx("img",{width:90,height:25,alt:"Logo",src:"images/logo.svg"})}),y.jsx("img",{width:24,height:24,alt:"Close",src:"images/close.svg",className:"transition-transform active:scale-95",onClick:r})]}),e]})})})}),document.body)}const VF=[{href:"/",label:"Transfer"},{href:"/relayer",label:"Relayer"}];function BFe(){const{state:e,setTrue:t,setFalse:n}=zg(!1),{pathname:r}=fd();return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:`app-header px-medium fixed left-0 top-0 z-10 flex w-full items-center justify-between border-b border-b-white/25 lg:border-b-transparent lg:px-5 ${r==="/"?"backdrop-blur lg:bg-transparent lg:backdrop-blur-none":"bg-background"}`,children:[y.jsxs("div",{className:"flex items-center gap-5",children:[y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx(Su,{to:"/",children:y.jsx("img",{width:90,height:25,alt:"Logo",src:"images/logo.svg"})}),Hye()]}),y.jsx("div",{className:"gap-medium hidden items-center lg:flex",children:VF.map(({href:o,label:a,external:i,soon:s,disabled:c})=>i?y.jsx("a",{rel:"noopener noreferrer",target:"_blank",href:o,className:"py-small rounded-full px-3 text-sm font-bold transition-colors hover:bg-white/[0.15]",children:a},a):s||c?y.jsx(At,{content:s?"Coming soon":"This feature is temporarily under maintenance",children:y.jsx("span",{className:"py-small rounded-full px-3 text-sm font-bold text-white/50",children:a})},a):y.jsx(Su,{to:o,className:`py-small relative rounded-full px-3 text-sm font-bold transition-colors hover:bg-white/[0.15] ${r===o?"text-primary after:bg-primary after:absolute after:-bottom-[2px] after:left-1/4 after:block after:h-[3px] after:w-1/2 after:rounded-full":"text-white"}`,children:a},a))})]}),y.jsxs("div",{className:"gap-medium hidden items-center lg:flex",children:[y.jsx(WY,{className:"bg-secondary px-large inline-flex h-8 items-center rounded-full text-sm font-bold text-white transition-colors hover:bg-white/20"}),y.jsx(qF,{prefixLength:14,suffixLength:10}),y.jsx(GF,{placement:"bottom-end"})]}),y.jsx("img",{width:24,height:24,alt:"Menu",src:"images/menu.svg",className:"inline transition-transform active:translate-y-1 lg:hidden",onClick:t})]}),y.jsx(NFe,{maskClosable:!0,isOpen:e,onClose:n,children:y.jsx("div",{className:"flex w-full items-start justify-center",style:{marginTop:"20%"},children:y.jsxs("div",{className:"flex w-max flex-col items-start gap-10",children:[y.jsx("div",{className:"gap-large flex flex-col",children:VF.map(({label:o,href:a,external:i,soon:s,disabled:c})=>i?y.jsx("a",{rel:"noopener noreferrer",target:"_blank",href:a,className:"text-sm font-bold",children:o},o):s||c?y.jsx(At,{content:s?"Coming soon":"This feature is temporarily under maintenance",children:y.jsx("span",{className:"text-sm font-bold text-white/50",children:o})},o):y.jsx(Su,{to:a,className:`relative text-sm font-bold ${r===a?"text-primary underline decoration-2 underline-offset-4":"text-white"}`,onClick:n,children:o},o))}),y.jsxs("div",{className:"gap-medium flex flex-col",children:[y.jsx(GF,{}),y.jsx(qF,{placement:"bottom",onComplete:n})]})]})})})]})}function FFe({children:e}){const[t,n]=S.useState(),[r,o]=S.useState(!1),[a,i]=S.useState(""),{balanceAll:s,loadingBalanceAll:c,updateBalanceAll:l}=e_e();return y.jsx(eH.Provider,{value:{balanceAll:s,recordsSearch:a,isHistoryOpen:r,historyDetails:t,loadingBalanceAll:c,updateBalanceAll:l,setRecordsSearch:i,setIsHistoryOpen:o,setHistoryDetails:n},children:e})}const MFe="https://apollo.helixbridge.app/graphql";function LFe({children:e}){const t=new eV({uri:MFe,cache:new XG({typePolicies:{Query:{fields:{historyRecords:{keyArgs:n=>n!=null&&n.needWithdrawLiquidity?["relayer","recvTokenAddress","fromChains","toChains","row"]:void 0,merge:(n,r,{args:o})=>{if(o!=null&&o.needWithdrawLiquidity){const a=((o==null?void 0:o.page)??0)*(o.row??0),i=n?n.records.slice(0):[];for(let s=0;sn.once("display_uri",r)):n.connector.uri}var BZ=new Map;function $Fe(e,t){const n=e==="1"?new iX(t):new q4(t);return BZ.set(JSON.stringify(t),n),n}function zFe({chains:e,options:t={},projectId:n,version:r="2"}){const o="21fef48091f12692cad574a6f7753643";if(r==="2"){if(!n||n==="")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");(n==="YOUR_PROJECT_ID"||n===o)&&console.warn("Invalid projectId. Please create a unique WalletConnect Cloud projectId for your dApp https://www.rainbowkit.com/docs/installation#configure")}const a={chains:e,options:r==="1"?{qrcode:!1,...t}:{projectId:n==="YOUR_PROJECT_ID"?o:n,showQrModal:!1,...t}},i=JSON.stringify(a),s=BZ.get(i);return s??$Fe(r,a)}var HFe=({chains:e,...t})=>({id:"talisman",name:"Talisman",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./talismanWallet-W5EQ26N7-COwK-IAC.js");return{default:n}},[],import.meta.url)).default,iconBackground:"#fff",installed:typeof window<"u"&&typeof window.talismanEth<"u"&&window.talismanEth.isTalisman===!0,downloadUrls:{chrome:"https://chrome.google.com/webstore/detail/talisman-polkadot-wallet/fijngjgcjhjmmpcmkeiomlglpeiijkld",firefox:"https://addons.mozilla.org/en-US/firefox/addon/talisman-wallet-extension/",browserExtension:"https://talisman.xyz/download"},createConnector:()=>({connector:new Ds({chains:e,options:{getProvider:()=>{if(!(typeof window>"u"))return window.talismanEth},...t}}),extension:{instructions:{learnMoreUrl:"https://talisman.xyz/",steps:[{description:"wallet_connectors.talisman.extension.step1.description",step:"install",title:"wallet_connectors.talisman.extension.step1.title"},{description:"wallet_connectors.talisman.extension.step2.description",step:"create",title:"wallet_connectors.talisman.extension.step2.title"},{description:"wallet_connectors.talisman.extension.step3.description",step:"refresh",title:"wallet_connectors.talisman.extension.step3.title"}]}}})}),qFe=({chains:e,...t})=>({id:"rabby",name:"Rabby Wallet",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./rabbyWallet-22VWIFCE-C-acKMUn.js");return{default:n}},[],import.meta.url)).default,iconBackground:"#8697FF",installed:typeof window<"u"&&typeof window.ethereum<"u"&&window.ethereum.isRabby===!0,downloadUrls:{chrome:"https://chrome.google.com/webstore/detail/rabby-wallet/acmacodkjbdgmoleebolmdjonilkdbch",browserExtension:"https://rabby.io"},createConnector:()=>({connector:new Ds({chains:e,options:t}),extension:{instructions:{learnMoreUrl:"https://rabby.io/",steps:[{description:"wallet_connectors.rabby.extension.step1.description",step:"install",title:"wallet_connectors.rabby.extension.step1.title"},{description:"wallet_connectors.rabby.extension.step2.description",step:"create",title:"wallet_connectors.rabby.extension.step2.title"},{description:"wallet_connectors.rabby.extension.step3.description",step:"refresh",title:"wallet_connectors.rabby.extension.step3.title"}]}}})}),WFe=({chains:e,...t})=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./safeWallet-DFMLSLCR-BD-GpskT.js");return{default:n}},[],import.meta.url)).default,installed:!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,downloadUrls:{},createConnector:()=>({connector:new $J({chains:e,options:t})})}),GFe=({chains:e,projectId:t,walletConnectOptions:n,walletConnectVersion:r="2",...o})=>{const i=!(typeof window<"u"&&typeof window.okxwallet<"u");return{id:"okx",name:"OKX Wallet",iconUrl:async()=>(await me(async()=>{const{default:s}=await import("./okxWallet-GKYMI2XW-CdXZL5HC.js");return{default:s}},[],import.meta.url)).default,iconAccent:"#000",iconBackground:"#000",downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.okinc.okex.gp",ios:"https://itunes.apple.com/app/id1327268470?mt=8",mobile:"https://okx.com/download",qrCode:"https://okx.com/download",chrome:"https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",edge:"https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",firefox:"https://addons.mozilla.org/firefox/addon/okexwallet/",browserExtension:"https://okx.com/download"},createConnector:()=>{const s=i?zFe({projectId:t,chains:e,version:r,options:n}):new Ds({chains:e,options:{getProvider:()=>window.okxwallet,...o}});return{connector:s,mobile:{getUri:i?async()=>{const c=await KF(s,r);return UFe()?c:`okex://main/wc?uri=${encodeURIComponent(c)}`}:void 0},qrCode:i?{getUri:async()=>KF(s,r),instructions:{learnMoreUrl:"https://okx.com/web3/",steps:[{description:"wallet_connectors.okx.qr_code.step1.description",step:"install",title:"wallet_connectors.okx.qr_code.step1.title"},{description:"wallet_connectors.okx.qr_code.step2.description",step:"create",title:"wallet_connectors.okx.qr_code.step2.title"},{description:"wallet_connectors.okx.qr_code.step3.description",step:"scan",title:"wallet_connectors.okx.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://okx.com/web3/",steps:[{description:"wallet_connectors.okx.extension.step1.description",step:"install",title:"wallet_connectors.okx.extension.step1.title"},{description:"wallet_connectors.okx.extension.step2.description",step:"create",title:"wallet_connectors.okx.extension.step2.title"},{description:"wallet_connectors.okx.extension.step3.description",step:"refresh",title:"wallet_connectors.okx.extension.step3.title"}]}}}}}};function VFe(){return function(e){return e.rpcUrls.public.http[0]?{chain:e,rpcUrls:e.rpcUrls.public}:null}}const FZ="2719448e2ce94fdd269a3c8587123bcc",MZ="Helix Bridge",{chains:Ff,publicClient:KFe}=Mwe(hm().map(({tokens:e,...t})=>t),[VFe()]),{wallets:YFe}=hFe({appName:MZ,projectId:FZ,chains:Ff}),QFe=PZ([...YFe,{groupName:"More",wallets:[GFe({chains:Ff,projectId:FZ}),qFe({chains:Ff}),HFe({chains:Ff}),WFe({chains:Ff})]}]),XFe=wEe({autoConnect:!0,connectors:QFe,publicClient:KFe});function JFe({children:e}){return y.jsx(EEe,{config:XFe,children:y.jsx(MBe,{theme:KY({borderRadius:"large",accentColor:"#0085FF"}),chains:Ff,appInfo:{appName:MZ},children:e})})}function ZFe(){return y.jsx(LFe,{children:y.jsx(JFe,{children:y.jsxs(FFe,{children:[y.jsx(BFe,{}),y.jsx(zae,{}),y.jsx(Yse,{})]})})})}function eMe({text:e,tips:t}){return y.jsxs("div",{className:"gap-small inline-flex items-center",children:[y.jsx("span",{className:"text-sm font-normal text-white/50",children:e}),t?y.jsx(At,{content:t,enabledSafePolygon:!0,children:y.jsx("img",{width:14,height:14,alt:"Info",src:"images/info.svg"})}):null]})}function LZ({width:e,height:t,className:n,onClick:r}){return y.jsx("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:e??"64",height:t??"64",className:n,onClick:r,children:y.jsx("path",{d:"M787.584 164.138667a85.333333 85.333333 0 0 1 1.493333 15.936v13.653333A128.042667 128.042667 0 0 1 896 320v88.021333c36.821333 9.493333 64 42.88 64 82.645334v149.333333a85.376 85.376 0 0 1-64 82.645333V810.666667a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V320a128 128 0 0 1 127.744-128v-1.429333L687.829333 96.213333a85.333333 85.333333 0 0 1 99.776 67.904zM768 256H192a64 64 0 0 0-63.893333 60.245333L128 320v490.666667a64 64 0 0 0 60.245333 63.893333L192 874.666667h576a64 64 0 0 0 63.893333-60.245334L832 810.666667v-85.333334h-181.333333a160 160 0 0 1 0-320H832v-85.333333a64 64 0 0 0-60.245333-63.893333L768 256z m106.666667 213.333333H650.666667a96 96 0 0 0-4.522667 191.893334L650.666667 661.333333H874.666667a21.333333 21.333333 0 0 0 21.184-18.837333L896 640v-149.333333a21.333333 21.333333 0 0 0-18.837333-21.184L874.666667 469.333333z m-224 64a32 32 0 1 1 0 64 32 32 0 0 1 0-64z m51.584-374.549333l-2.474667 0.341333-172.949333 32.853334h198.229333v-12.906667l-0.341333-2.986667a21.333333 21.333333 0 0 0-22.464-17.28z",fill:"#ffffff"})})}function tMe({value:e,options:t=[],onChange:n=()=>{}}){const[r,o]=S.useState(!1),{refs:a,context:i,floatingStyles:s}=gd({open:r,onOpenChange:o,middleware:[hd(6),S_({apply({rects:p,elements:b}){Object.assign(b.floating.style,{width:`${p.reference.width}px`})}})]}),{styles:c,isMounted:l}=bd(i,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),u=tm(i),d=pd(i),{getReferenceProps:f,getFloatingProps:h}=yd([u,d]),m=S.useCallback(p=>{if(p.target.value){const b=p.target.value,v=Hn(b)?void 0:"* Invalid address";n({input:b,alert:v,value:Hn(b)?b:void 0})}else n({input:"",value:void 0,alert:"* Require recipient"})},[n]);return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mx-medium gap-small px-medium group flex items-center justify-between rounded-[0.625rem] bg-[#1F282C] py-2 transition-colors focus-within:bg-white/10 hover:bg-white/10",ref:a.setReference,...f(),children:[y.jsxs("div",{className:"gap-small flex w-full items-center lg:gap-2",children:[y.jsx(LZ,{width:20,height:20,className:"opacity-50 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"}),y.jsx("input",{placeholder:"Recipient",value:(e==null?void 0:e.input)??"",className:"w-full bg-transparent text-sm font-medium text-white/50 transition-colors focus-visible:outline-none group-focus-within:text-white group-hover:text-white",onChange:m})]}),y.jsx("img",{style:{transform:r?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 opacity-50 transition-[transform,opacity] group-focus-within:opacity-100 group-hover:opacity-100",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})]}),l&&y.jsx(md,{children:y.jsx("div",{style:s,ref:a.setFloating,...h(),className:"z-20",children:y.jsx("div",{className:"rounded-xl border border-white/20 bg-[#00141D] py-2",style:c,onClick:()=>o(!1),children:t.length?t.map(p=>y.jsx(nMe,{address:p,onSelect:n},p)):y.jsx("div",{className:"py-small flex items-center justify-center",children:y.jsx("span",{className:"text-sm font-extrabold text-slate-400",children:"No data"})})})})})]})}function nMe({address:e,onSelect:t}){const{data:n}=MY({address:e});return y.jsx("button",{className:"py-small w-full truncate px-2 text-start transition-colors hover:bg-white/10",onClick:()=>t({input:e,value:e,alert:void 0}),children:y.jsx("span",{className:"text-sm font-semibold text-white",children:n??e})})}function xg({alert:e,children:t,titleText:n,titleTips:r,className:o,recipient:a,expandRecipient:i,recipientOptions:s,onExpandRecipient:c=()=>{},onRecipientChange:l=()=>{}}){return y.jsxs("div",{className:"gap-small flex flex-col transition-opacity",children:[y.jsxs("div",{className:`gap-medium rounded-large bg-app-bg py-medium flex flex-col transition-[outline] duration-200 ${o} ${e?"outline outline-1 outline-orange-500":"outline-none"}`,children:[n?y.jsxs("div",{className:"px-medium flex items-center justify-between",children:[y.jsx(eMe,{text:n,tips:r}),a?y.jsx(LZ,{className:"opacity-50 transition-[transform,opacity] hover:cursor-pointer hover:opacity-100 active:scale-95",width:20,height:20,onClick:c}):null]}):null,t,i&&y.jsx(tMe,{value:a,options:s,onChange:l})]}),e?y.jsx("span",{className:"text-xs font-normal text-orange-500",children:e}):null]})}function rMe({value:e,options:t,onChange:n}){const[r,o]=S.useState(-1),a=$Y("lg"),i=S.useMemo(()=>a?5:4,[a]);return y.jsxs("div",{className:"gap-medium px-medium flex items-center",children:[y.jsx(YF,{token:e,active:!0}),y.jsx("span",{className:"text-base font-bold text-white",children:e.symbol}),y.jsxs("div",{className:"gap-medium group ml-2 flex items-center",children:[t.filter(s=>s.symbol!==e.symbol).slice(0,i).map((s,c)=>y.jsx(YF,{index:c,token:s,hoveIndex:r,onClick:n,onHoverChange:o},s.symbol)),i+1s.symbol!==e.symbol).slice(i),onClick:n})]})]})}function YF({token:e,active:t,index:n=0,hoveIndex:r=-1,onClick:o=()=>{},onHoverChange:a=()=>{}}){return y.jsx("img",{width:t?32:36,height:t?32:36,alt:"Token image",src:vr(e.logo),className:`shrink-0 rounded-full transition-[transform,opacity] duration-200 ${t?"h-[2rem] w-[2rem] opacity-100":`${n<=r?"group-active:-translate-x-2":""} h-[2.25rem] w-[2.25rem] opacity-50 hover:cursor-pointer hover:opacity-80`}`,onClick:()=>{!t&&o(e)},onMouseEnter:()=>{!t&&a(n)},onMouseLeave:()=>{!t&&a(-1)}})}function oMe({options:e,onClick:t=()=>{}}){const[n,r]=S.useState(!1),{refs:o,context:a,floatingStyles:i}=gd({open:n,onOpenChange:r,middleware:[hd(4)]}),{styles:s,isMounted:c}=bd(a,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),l=A_(a,{handleClose:Zz()}),u=tm(a),d=pd(a),{getReferenceProps:f,getFloatingProps:h}=yd([l,u,d]);return y.jsxs(y.Fragment,{children:[y.jsx("img",{width:36,height:36,src:vr("more.svg"),alt:"More tokens",className:`transition-opacity duration-200 hover:cursor-pointer hover:opacity-80 ${n?"opacity-80":"opacity-50"}`,ref:o.setReference,...f()}),c&&y.jsx(md,{children:y.jsx("div",{style:i,ref:o.setFloating,...h(),className:"z-20",children:y.jsx("div",{className:"bg-app-bg flex flex-col gap-2 rounded-xl border border-white/20 px-3 py-2",style:s,onClick:()=>r(!1),children:e.map(m=>y.jsx("img",{width:36,height:36,src:vr(m.logo),className:"rounded-full opacity-60 transition-opacity duration-200 hover:cursor-pointer hover:opacity-80",onClick:()=>t(m)},m.symbol))})})})]})}function aMe({token:e,options:t,loading:n,onChange:r}){return y.jsxs("div",{className:"relative",children:[y.jsx(qs,{loading:n,className:"rounded-large backdrop-blur-[2px]",icon:!1}),y.jsx(xg,{titleText:"Token",children:y.jsx(rMe,{value:e,options:t,onChange:r})})]})}function RP({label:e,placeholder:t,disabled:n,children:r,hoverable:o,clearable:a,placement:i,sameWidth:s,offsetSize:c,labelClassName:l,childClassName:u,onClear:d=()=>{}}){const{state:f,setState:h,setFalse:m}=zg(!1),{refs:p,context:b,floatingStyles:v}=gd({open:f,onOpenChange:h,placement:i,middleware:[hd(c??4),s?S_({apply({rects:k,elements:D}){Object.assign(D.floating.style,{width:`${k.reference.width}px`})}}):void 0]}),{styles:g,isMounted:w}=bd(b,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),_=A_(b,{enabled:!!o}),C=tm(b),x=pd(b),{getReferenceProps:E,getFloatingProps:T}=yd([_,C,x]);return y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:`disabled:cursor-not-allowed disabled:opacity-60 ${l}`,ref:p.setReference,...E(),disabled:n,children:[e||t,y.jsxs("div",{className:"gap-small flex shrink-0 items-center transition-transform group-hover:-translate-x-2",children:[e&&a?y.jsx("div",{className:"relative h-[16px] w-[16px] shrink-0 rounded-full bg-transparent p-[2px] opacity-80 transition hover:scale-105 hover:bg-white/20 hover:opacity-100 active:scale-95",onClick:k=>{k.stopPropagation(),d()},children:y.jsx("img",{alt:"Close",src:"images/close.svg",className:"h-full w-full"})}):null,y.jsx("img",{style:{transform:f?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 transition-transform",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})]})]}),w&&y.jsx(md,{children:y.jsx("div",{style:v,ref:p.setFloating,...T(),className:"z-20",children:y.jsx("div",{className:`${u}`,style:g,onClick:m,children:r})})})]})}function iMe({children:e,label:t}){const[n,r]=S.useState(!1),{refs:o,context:a,floatingStyles:i}=gd({open:n,onOpenChange:r,placement:"bottom",middleware:[hd(6),S_({apply({rects:h,elements:m}){Object.assign(m.floating.style,{width:`${h.reference.width}px`})}})]}),{styles:s,isMounted:c}=bd(a,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),l=tm(a),u=pd(a),{getReferenceProps:d,getFloatingProps:f}=yd([l,u]);return y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:`gap-small mx-medium py-small group flex w-full items-center justify-between rounded-[0.625rem] transition-colors hover:bg-white/5 ${n?"bg-white/5":""}`,ref:o.setReference,...d(),children:[y.jsx("div",{className:`gap-medium flex items-center transition-transform group-hover:translate-x-2 ${n?"translate-x-2":""}`,children:t}),y.jsx("div",{className:`transition-transform group-hover:-translate-x-2 ${n?"-translate-x-2":""}`,children:y.jsx("img",{style:{transform:n?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 transition-transform",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})})]}),c&&y.jsx(md,{children:y.jsx("div",{style:i,ref:o.setFloating,...f(),className:"z-20",children:y.jsx("div",{className:"py-medium rounded-large flex flex-col gap-2 border border-white/20 bg-[#00141D]",onClick:()=>r(!1),style:s,children:e})})})]})}function QF({chain:e,token:t,chainOptions:n,tokenOptions:r,onChainChange:o,onTokenChange:a}){const[i,s]=S.useState("");return y.jsxs("div",{className:"flex items-center",children:[y.jsx(iMe,{label:y.jsxs(y.Fragment,{children:[y.jsx("img",{width:32,height:32,alt:"Chain",src:Rn(e.logo),className:"h-[2rem] w-[2rem] shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-base font-bold text-white",children:e.name})]}),children:n.length?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mx-medium px-medium flex items-center gap-1 rounded-xl bg-white/5 transition-colors focus-within:bg-white/10 focus-within:outline-none hover:bg-white/10",children:[y.jsx("img",{alt:"Search",width:24,height:24,src:"images/search.svg",className:"h-6 w-6 opacity-60"}),y.jsx("input",{className:"w-full bg-transparent py-2 text-base font-medium focus-visible:outline-none",placeholder:"Search ...",value:i,onClick:c=>{c.stopPropagation()},onChange:c=>{s(c.target.value)}})]}),y.jsx("div",{className:"mx-auto h-[1px] w-5 bg-white/50"}),y.jsx("div",{className:"app-scrollbar flex max-h-[17.2rem] flex-col overflow-y-auto",children:n.filter(({name:c})=>c.toLowerCase().includes(i.toLowerCase())).map(c=>y.jsx(sMe,{selected:e,option:c,token:t,onSelect:o},c.id))})]}):y.jsx("div",{className:"py-medium flex justify-center",children:y.jsx("span",{className:"text-sm font-bold text-slate-400",children:"No data"})})}),r.length>1?y.jsx(RP,{placeholder:y.jsx("span",{className:"text-sm font-bold text-slate-400",children:"Select a token"}),label:y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:26,height:26,alt:"Token",src:vr(t.logo),className:"h-[1.625rem] w-[1.625rem] shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-bold text-white",children:t.symbol})]}),labelClassName:"flex items-center justify-between gap-small px-small py-2 rounded-[0.625rem] bg-[#1F282C] w-[9.25rem] mr-medium transition-colors hover:bg-white/20",childClassName:"flex flex-col gap-small p-small rounded-[0.625rem] bg-[#00141D] border border-white/20",offsetSize:12,sameWidth:!0,children:r.map(c=>y.jsx(cMe,{selected:t,option:c,onSelect:a},c.symbol))}):null]})}function sMe({selected:e,option:t,token:n,onSelect:r=()=>{}}){const{balanceAll:o}=$g();return y.jsxs("button",{className:"gap-small py-medium flex items-center justify-between px-5 transition-colors hover:bg-white/5 disabled:bg-white/10",disabled:e.id===t.id,onClick:()=>{r(t)},children:[y.jsxs("div",{className:"gap-large flex items-center",children:[y.jsx("img",{width:30,height:30,alt:"Chain",src:Rn(t.logo),className:"h-[1.875rem] w-[1.875rem] shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-bold text-white",children:t.name})]}),o.filter(a=>a.chain.id===t.id&&a.token.category===n.category).slice(0,1).map(a=>y.jsx("span",{className:"truncate text-xs font-medium text-white/50",children:`${ut(a.balance,a.token.decimals,{precision:6})} ${a.token.symbol}`},`${a.chain.network}-${a.token.symbol}`))]})}function cMe({selected:e,option:t,onSelect:n=()=>{}}){return y.jsxs("button",{className:"gap-small p-small flex items-center rounded-[0.625rem] transition-colors hover:bg-white/5 disabled:bg-white/10",disabled:e.symbol===t.symbol,onClick:()=>{n(t)},children:[y.jsx("img",{width:24,height:24,alt:"Chain",src:vr(t.logo),className:"h-[1.5rem] w-[1.5rem] shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-bold text-white",children:t.name})]})}function lMe({disabled:e,onSwitch:t=()=>{}}){const[n,r]=S.useState(0);return y.jsx("div",{className:"relative h-[2px] lg:h-[4px]",children:y.jsx(At,{className:`absolute left-1/2 top-1/2 z-[9] -translate-x-1/2 -translate-y-1/2 rounded-lg bg-[#1F282C] transition-shadow hover:shadow-[0_0_8px_1px_rgba(255,255,255,.8)] ${e?"opacity-80 hover:cursor-not-allowed":"hover:cursor-pointer"}`,content:"This cross-chain is currently unavailable",enabled:e===!0,children:y.jsx("div",{className:"transition-transform duration-300",style:{transform:`rotateX(${180*n}deg)`},onClick:()=>{e||(r(o=>o+1),t())},children:y.jsx("img",{width:28,height:28,alt:"Switch",src:"images/switch.svg",className:`h-[1.75rem] w-[1.75rem] shrink-0 transition-opacity ${e?"opacity-80":""}`})})})})}function uMe({loading:e,recipient:t,disableSwitch:n,expandRecipient:r,recipientOptions:o,sourceChain:a,targetChain:i,sourceToken:s,targetToken:c,sourceChainOptions:l,targetChainOptions:u,sourceTokenOptions:d,targetTokenOptions:f,onSwitch:h,onExpandRecipient:m,onRecipientChange:p,onSourceChainChange:b,onTargetChainChange:v,onSourceTokenChange:g,onTargetTokenChange:w}){return y.jsxs("div",{className:"relative flex flex-col",children:[y.jsx(qs,{loading:e,className:"rounded-large backdrop-blur-[2px]",icon:!1}),y.jsx(xg,{titleText:"From",titleTips:y.jsx(XF,{token:s,chain:a}),children:y.jsx(QF,{chain:a,token:s,chainOptions:l,tokenOptions:d,onChainChange:b,onTokenChange:g})}),y.jsx(lMe,{disabled:n||e,onSwitch:h}),y.jsx(xg,{titleText:"To",titleTips:y.jsx(XF,{token:c,chain:i}),recipient:t,alert:t==null?void 0:t.alert,expandRecipient:r,recipientOptions:o,onExpandRecipient:m,onRecipientChange:p,children:y.jsx(QF,{chain:i,token:c,chainOptions:u,tokenOptions:f,onChainChange:v,onTokenChange:w})})]})}function XF({token:e,chain:t}){var r;const n=new URL(`/address/${e.address}`,(r=t.blockExplorers)==null?void 0:r.default.url);return y.jsxs("div",{className:"gap-small flex flex-col",children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{alt:"Token",width:18,height:18,src:vr(e.logo),className:"rounded-full"}),y.jsxs("span",{className:"text-sm font-extrabold text-white",children:[e.symbol,e.type==="native"?" (native token)":null]})]}),e.type==="native"?null:y.jsxs("div",{className:"inline-flex items-center gap-1",children:[y.jsx("a",{className:"text-sm font-semibold text-white hover:underline",rel:"noopener noreferrer",target:"_blank",href:n.href,children:zu(e.address,12,10)}),y.jsx(AP,{text:e.address,copiedColor:"#ffffff"})]})]})}const bT=[{inputs:[{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"uint8",name:"_decimals",type:"uint8"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"allowFaucet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"faucet",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxFaucetAllowed",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"allowed",type:"uint256"}],name:"setMaxFaucetAllowed",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],pn=S.forwardRef(function({kind:t,busy:n,disabled:r,className:o,children:a,...i},s){return y.jsxs("button",{className:`border-primary relative border transition disabled:cursor-not-allowed ${o} ${t==="primary"?"bg-primary text-white":"text-primary bg-transparent"} ${n?"":"hover:opacity-80 active:translate-y-1 disabled:translate-y-0 disabled:opacity-60"}`,disabled:r||n,ref:s,...i,children:[n&&y.jsx("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-10 flex items-center justify-center",children:y.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-[3px] border-b-white/50 border-l-white/50 border-r-white border-t-white"})}),y.jsx("div",{className:`${n?"invisible":"visible"}`,children:a})]})});function Bd({title:e,subTitle:t,isOpen:n,maskClosable:r,children:o,cancelText:a,okText:i,className:s,disabledCancel:c,disabledOk:l,busy:u,extra:d,forceFooterHidden:f,onClose:h=()=>{},onCancel:m,onOk:p}){const b=S.useRef(null);return S.useEffect(()=>()=>{document.body.style.overflow="auto"},[]),Fs.createPortal(y.jsx(Al,{in:n,timeout:300,nodeRef:b,classNames:"modal-fade",unmountOnExit:!0,appear:!0,onEnter:()=>{document.body.style.overflow="hidden"},onExited:()=>{document.body.style.overflow="auto"},children:y.jsx("div",{ref:b,onClick:()=>r&&h(),className:"bg-app-bg/80 p-medium fixed left-0 top-0 z-20 flex h-screen w-screen items-center justify-center backdrop-blur-sm",children:y.jsxs("div",{className:`p-medium relative flex flex-col gap-5 rounded-3xl bg-[#1F282C] lg:p-5 ${s}`,onClick:v=>v.stopPropagation(),children:[y.jsx("button",{onClick:h,className:"right-medium top-medium absolute rounded-full bg-transparent p-[4px] transition hover:scale-105 hover:bg-white/10 active:scale-95",children:y.jsx("img",{width:20,height:20,alt:"Close",src:"images/close-white.svg"})}),y.jsxs("div",{className:"gap-medium flex flex-col lg:gap-5",children:[y.jsx("h3",{className:"text-xl font-bold text-white",children:e}),t?typeof t=="string"?y.jsx("h5",{className:"text-base font-normal text-white",children:t}):t:null]}),y.jsx("div",{className:"h-[1px] bg-white/10"}),o,f?null:m||p?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"gap-small flex flex-col",children:[d,y.jsx("div",{className:"h-[1px] bg-white/10"})]}),y.jsxs("div",{className:"flex items-center justify-between gap-5",children:[m&&y.jsx(pn,{kind:"default",onClick:m,disabled:c,className:"h-10 flex-1 rounded-[1.25rem] text-sm font-bold",children:a||"Cancel"}),p&&y.jsx(pn,{kind:"primary",onClick:p,disabled:l,busy:u,className:"h-10 flex-1 rounded-[1.25rem] text-sm font-bold",children:i||"Ok"})]})]}):null]})})}),document.body)}function dMe({sourceChain:e,sourceToken:t,onSuccess:n=()=>{}}){const[r,o]=S.useState(!1),[a,i]=S.useState(!1),[s,c]=S.useState(!1),[l,u]=S.useState(0n),[d,f]=S.useState(0n),h=zs({chainId:e.id}),{data:m}=yy(),{switchNetwork:p}=Tl(),{address:b}=tn(),{chain:v}=To(),g=S.useCallback(async()=>{if((v==null?void 0:v.id)!==e.id)p==null||p(e.id);else if(b&&h&&m)try{c(!0);const w=await m.writeContract({address:t.address,abi:bT,functionName:"faucet",args:[1n<=l?l-1n:l]}),_=await h.waitForTransactionReceipt({hash:w,confirmations:mo});Vr(_,e),c(!1),_.status==="success"&&(u(0n),c(!1),o(!1),n())}catch(w){console.error(w),an(w),c(!1)}},[l,v,b,e,t,h,m,n,p]);return S.useEffect(()=>{let w;return b&&t.type==="erc20"&&h?(i(!0),w=qx([Yo(h.readContract({address:t.address,abi:bT,functionName:"allowFaucet",args:[b]})),Yo(h.readContract({address:t.address,abi:bT,functionName:"maxFaucetAllowed"}))]).subscribe({next:([_,C])=>{i(!1);const x=pj(C.toString(),t.decimals);u(x-_),f(x)},error:_=>{console.error(_),i(!1),u(0n),f(0n)}})):(u(0n),f(0n)),()=>{w==null||w.unsubscribe()}},[b,t,h]),y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"rounded-full bg-white/20 px-2 py-[2px] text-xs font-semibold text-white opacity-60 transition-opacity hover:opacity-100 active:scale-95",onClick:()=>o(!0),children:"Faucet"}),y.jsxs(Bd,{className:"w-full lg:w-[24rem]",title:"Faucet",okText:(v==null?void 0:v.id)===e.id?"Claim":"Switch Network",isOpen:r,disabledCancel:s,disabledOk:l<=1n,busy:s,onClose:()=>o(!1),onCancel:()=>o(!1),onOk:g,children:[y.jsx(JF,{text:"Max",tips:"The maximum you can claim",children:y.jsx(ZF,{loading:a,value:d,token:t})}),y.jsx(JF,{text:"Allow",tips:"Currently available for claiming",children:y.jsx(ZF,{loading:a,value:l,token:t})})]})]})}function JF({text:e,tips:t,children:n}){return y.jsxs("div",{className:"gap-small flex flex-col",children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:e}),t?y.jsx(At,{content:t,children:y.jsx("img",{width:16,height:16,alt:"Tips",src:"images/info.svg",className:"h-4 w-4 shrink-0"})}):null]}),n]})}function ZF({value:e,token:t,loading:n}){return y.jsxs("div",{className:"bg-background flex items-center justify-between rounded-xl px-4 py-3",children:[n?y.jsx(Sh,{size:"small",color:"white"}):y.jsx("span",{className:"text-base font-bold",children:ut(e,t.decimals,{precision:3,keepZero:!0})}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("img",{width:24,height:24,alt:"Token",className:"h-6 w-6 shrink-0 rounded-full",src:vr(t.logo)}),y.jsx("span",{className:"text-base font-bold",children:t.symbol})]})]})}function fMe({min:e,max:t,chain:n,sourceToken:r,targetToken:o,value:a,balance:i,loading:s,onRefresh:c,onChange:l=()=>{}}){const[u,d]=S.useState("text-[3rem] font-light"),f=S.useRef(null),h=S.useRef(null),m=S.useRef(r);S.useEffect(()=>{(r.decimals!==m.current.decimals||r.symbol!==m.current.symbol)&&(m.current=r,l({input:"",value:0n,valid:!0,alert:""}))},[r,l]);const p=S.useCallback(()=>{const{value:v,input:g}=eM(Wu(t??0n,r.decimals),r.decimals,tM(r,o));l({valid:!0,alert:"",value:v,input:g})},[r,o,t,l]),b=S.useCallback(v=>{const g=v.target.value;let w={value:0n,input:""},_=!0,C="";g?Number.isNaN(Number(g))||(w=eM(g,r.decimals,tM(r,o)),i{var _,C;const v=((_=f.current)==null?void 0:_.clientWidth)||1,w=(((C=h.current)==null?void 0:C.clientWidth)||0)/v*100;w<20?d("text-[3rem] font-light"):w<30?d("text-[2.25rem] font-light"):w<40?d("text-[1.875rem] font-normal"):w<50?d("text-[1.5rem] font-medium"):w<60?d("text-[1.25rem] font-semibold"):d("text-[1.25rem] font-bold")},[a.input]),y.jsxs("div",{className:"gap-medium px-medium flex flex-col",children:[y.jsx("input",{className:`${u} h-12 bg-transparent text-white transition-[font-size,font-weight,line-height] duration-300 focus-visible:outline-none`,ref:f,placeholder:"0",value:a.input,onChange:b}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs("span",{className:"text-sm font-normal text-white/50",children:["Balance: ",ut(i,r.decimals)]}),y.jsx("button",{className:`rounded-full bg-white/20 p-[3px] opacity-50 transition hover:opacity-100 active:scale-95 ${s?"animate-spin":""}`,onClick:c,children:y.jsx("img",{alt:"Refresh balance",width:14,height:14,src:"images/refresh.svg"})}),y.jsx("button",{className:"rounded-full bg-white/20 px-2 py-[2px] text-xs font-semibold text-white opacity-60 transition-[transform,opacity] hover:opacity-100 active:scale-95",onClick:p,children:"Max"}),n.testnet?y.jsx(dMe,{sourceChain:n,sourceToken:r,onSuccess:c}):null]}),y.jsx("span",{className:"invisible fixed left-0 top-0 -z-50",ref:h,children:a.input})]})}function eM(e,t,n){let r="",o=0n;const[a,i]=e.replace(/,/g,"").split(".").concat("-1");return a&&(r=i==="-1"?a:i?`${a}.${i.slice(0,n)}`:`${a}.`,o=pj(r,t)),{value:o,input:r}}function tM(e,t){return e.decimals{var d;return 0<(((d=t==null?void 0:t.sortedLnBridgeRelayInfos)==null?void 0:d.records.length)||0)},[(l=t==null?void 0:t.sortedLnBridgeRelayInfos)==null?void 0:l.records.length]),{loading:s,dailyLimit:c}=s_e(r);return y.jsx(xg,{children:y.jsx(mMe,{transferLimit:{loading:n,value:(u=t==null?void 0:t.sortedLnBridgeRelayInfos)!=null&&u.transferLimit?BigInt(t.sortedLnBridgeRelayInfos.transferLimit):void 0,token:e},estimatedTime:i?{loading:n,value:r==null?void 0:r.formatEstimateTime()}:void 0,transactionFee:{warning:o?void 0:"Liquidity is not enough",loading:a,value:o==null?void 0:o.value,token:o==null?void 0:o.token},dailyLimit:c?{loading:s,value:c.limit,token:c.token}:void 0})})}const zp=Bve();function gMe({children:e}){const[t,n]=S.useState(zp[0]),[r,o]=S.useState({input:"",value:0n,valid:!0,alert:""}),[a,i]=S.useState(a3(t.category)),[s,c]=S.useState(a[0]),[l,u]=S.useState(ff(s,t.category)[0]),[d,f]=S.useState(Ep(l)),[h,m]=S.useState(d[0]),[p,b]=S.useState(yc(l,h)[0]),v=S.useRef(t),g=S.useRef(s),w=S.useRef(l),_=S.useRef(h),C=S.useRef(p),x=S.useCallback(te=>{n(te),v.current=te},[]),E=S.useCallback(te=>{c(te),g.current=te},[]),T=S.useCallback(te=>{u(te),w.current=te},[]),k=S.useCallback(te=>{m(te),_.current=te},[]),D=S.useCallback(te=>{b(te),C.current=te},[]);S.useEffect(()=>{const te=new URLSearchParams(window.location.hash.split("?")[1]),ee=te.get(Mn.TOKEN_CATEGORY),re=zp.find(({category:W})=>W===ee)||zp[0],z=te.get(Mn.SOURCE_CHAIN),fe=a3(re.category),ve=fe.find(({network:W})=>W===z)||fe[0],Ue=te.get(Mn.SOURCE_TOKEN),ke=ff(ve,re.category),Qe=ke.find(({symbol:W})=>W===Ue)||ke[0],Te=te.get(Mn.TARGET_CHAIN),Ee=Ep(Qe),he=Ee.find(({network:W})=>W===Te)||Ee[0],Me=te.get(Mn.TARGET_CHAIN),ge=yc(Qe,he),Y=ge.find(({symbol:W})=>W===Me)||ge[0];g.current=ve,w.current=Qe,_.current=he,C.current=Y,x(re)},[x]);const[R]=Dz(),F=S.useRef(R);S.useEffect(()=>{F.current=R},[R]);const B=Mg(),j=S.useCallback((te=!1)=>{const ee=te?new URLSearchParams:new URLSearchParams(F.current.toString());ee.set(Mn.TOKEN_CATEGORY,v.current.category),te||(ee.set(Mn.SOURCE_CHAIN,g.current.network),ee.set(Mn.SOURCE_TOKEN,w.current.symbol),ee.set(Mn.TARGET_CHAIN,_.current.network),ee.set(Mn.TARGET_TOKEN,C.current.symbol)),B(`?${ee.toString()}`)},[B]),[P,O]=S.useState(zp),{loading:I,data:N}=LN("");S.useEffect(()=>{if(!I&&N.length){const te=N.map(({tokenKey:re})=>re),ee=zp.filter(re=>te.includes(re.category.toUpperCase()));ee.some(({category:re})=>re===v.current.category)||x(ee[0]),O(ee)}},[x,I,N]);const{loading:M,data:L}=LN(t.category),X=S.useRef(L);S.useEffect(()=>{X.current=L;const te=v.current,ee=a3(te.category).filter(Te=>{var Ee;return(Ee=L.at(0))==null?void 0:Ee.chains.some(({fromChain:he})=>Te.network===he)}),re=ee.find(({id:Te})=>Te===g.current.id)||ee.at(0)||g.current,z=ff(re,te.category),fe=z.find(({symbol:Te})=>Te===w.current.symbol)||z.at(0)||w.current,ve=Ep(fe).filter(Te=>{var Ee,he;return(he=(Ee=L.at(0))==null?void 0:Ee.chains.find(({fromChain:Me})=>re.network===Me))==null?void 0:he.toChains.includes(Te.network)}),Ue=ve.find(({id:Te})=>Te===_.current.id)||ve.at(0)||_.current,ke=yc(fe,Ue),Qe=ke.find(({symbol:Te})=>Te===C.current.symbol)||ke.at(0)||C.current;i(ee),f(ve),E(re),T(fe),k(Ue),D(Qe),j()},[L,j,E,T,k,D]);const J=S.useCallback(te=>{x(te),j(!0)},[j,x]),U=S.useCallback(te=>{const ee=ff(te,v.current.category),re=ee.find(({symbol:ke})=>ke===w.current.symbol)||ee[0],z=Ep(re).filter(ke=>{var Qe,Te;return(Te=(Qe=X.current.at(0))==null?void 0:Qe.chains.find(({fromChain:Ee})=>te.network===Ee))==null?void 0:Te.toChains.includes(ke.network)}),fe=z.find(({id:ke})=>ke===_.current.id)||z[0],ve=yc(re,fe),Ue=ve.find(({symbol:ke})=>ke===C.current.symbol)||ve[0];f(z),E(te),T(re),k(fe),D(Ue),j()},[j,E,T,k,D]),G=S.useCallback(te=>{const ee=Ep(te).filter(ve=>{var Ue,ke;return(ke=(Ue=X.current.at(0))==null?void 0:Ue.chains.find(({fromChain:Qe})=>g.current.network===Qe))==null?void 0:ke.toChains.includes(ve.network)}),re=ee.find(({id:ve})=>ve===_.current.id)||ee[0],z=yc(te,re),fe=z.find(({symbol:ve})=>ve===C.current.symbol)||z[0];f(ee),T(te),k(re),D(fe),j()},[j,T,k,D]),Z=S.useCallback(te=>{const ee=yc(w.current,te),re=ee.find(({symbol:z})=>z===C.current.symbol)||ee[0];k(te),D(re),j()},[j,k,D]),ae=S.useCallback(te=>{D(te),j()},[j,D]),ne=S.useCallback(()=>{const te=_.current,ee=g.current,re=ff(te,v.current.category),z=re.find(({symbol:Ue})=>Ue===w.current.symbol)||re[0],fe=yc(z,ee),ve=fe.find(({symbol:Ue})=>Ue===C.current.symbol)||fe[0];E(te),T(z),k(ee),D(ve),j()},[j,E,T,k,D]),ie=S.useCallback((te,ee)=>{var re,z;return!!((z=(re=X.current.at(0))==null?void 0:re.chains.find(({fromChain:fe})=>ee.network===fe))!=null&&z.toChains.includes(te.network))},[]);return y.jsx(UY.Provider,{value:{amount:r,token:t,sourceChain:s,sourceToken:l,targetChain:h,targetToken:p,sourceChainOptions:a,targetChainOptions:d,availableTokenOptions:P,loadingSupportedChains:M,loadingAvailableTokenOptions:I,setAmount:o,isSwitchAvailable:ie,handleTokenChange:J,handleSourceChainChange:U,handleSourceTokenChange:G,handleTargetChainChange:Z,handleTargetTokenChange:ae,handleSwitch:ne},children:e})}const nM="disclaimer";function yMe(){const{state:e,setState:t,setFalse:n}=zg(!1);return S.useEffect(()=>{t(!localStorage.getItem(nM))},[t]),y.jsxs(Bd,{title:"Disclaimer",className:"w-full lg:w-[30rem]",isOpen:e,onClose:n,children:[y.jsxs("div",{className:"gap-medium flex flex-col",children:[y.jsx(nf,{content:"By using Helix, I agree to the following:"}),y.jsx(nf,{content:"I understand that Helix is a bridge aggregator and is only responsible for routing the transfer to the selected bridge. Helix does not hold any funds in custody at any point."}),y.jsx(nf,{content:"I understand that the fees shown in a route are estimations and may vary."}),y.jsx(nf,{content:"I understand that the bridging time shown in a route is an estimation. Helix has no control over the bridging time. The bridge or protocol being used may sometimes take more time than the estimated time."}),y.jsx(nf,{content:"I understand that the app is in Beta and all risks associated with using it."}),y.jsx(nf,{content:"I am lawfully permitted to access this site and use Helix under the laws of the jurisdiction in which I reside and am located."})]}),y.jsx("div",{}),y.jsx(pn,{className:"rounded-medium px-large py-small mx-auto w-fit",kind:"primary",onClick:()=>{n(),localStorage.setItem(nM,"agree")},children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Agree and Continue"})})]})}function nf({content:e}){return y.jsx("p",{className:"text-sm font-medium text-white",children:e})}function bMe({sender:e,recipient:t,busy:n,fee:r,bridge:o,sourceChain:a,sourceToken:i,targetChain:s,targetToken:c,amount:l,isOpen:u,onClose:d,onConfirm:f}){return y.jsxs(Bd,{title:"Transfer Review",isOpen:u,className:"w-full lg:w-[26rem]",okText:"Confirm",disabledCancel:n,busy:n,onClose:d,onCancel:d,onOk:f,children:[y.jsxs("div",{className:"gap-small flex flex-col",children:[y.jsx(rM,{type:"source",address:e,chain:a,token:i,amount:l}),y.jsx("div",{className:"relative",children:y.jsx("div",{className:"absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center",children:y.jsx("img",{width:36,height:36,alt:"Transfer to",src:"images/transfer-to.svg",className:"shrink-0"})})}),y.jsx(rM,{type:"target",address:t,chain:s,token:c,amount:l})]}),y.jsxs("div",{className:"gap-medium flex flex-col",children:[y.jsx("span",{className:"text-sm font-bold text-white/50",children:"Information"}),y.jsx(vMe,{fee:r,bridge:o})]})]})}function rM({type:e,address:t,chain:n,token:r,amount:o}){return n&&r?y.jsxs("div",{className:"bg-background lg:p-large flex items-start justify-between gap-2 rounded-xl p-3 lg:rounded-2xl",children:[y.jsx("img",{width:36,height:36,alt:"Chain",src:Rn(n.logo),className:"shrink-0 rounded-full"}),y.jsxs("div",{className:"flex w-full flex-col gap-1 truncate",children:[y.jsxs("div",{className:"flex items-center justify-between gap-1",children:[y.jsx("span",{className:"max-w-[46%] truncate text-base font-semibold text-white",children:n.name}),y.jsxs("span",{className:`max-w-[46%] truncate text-sm font-extrabold ${e==="source"?"text-app-red":"text-app-green"}`,children:[e==="source"?"-":"+",She(o.input)]})]}),y.jsxs("div",{className:"flex items-center justify-between gap-1",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:t?zu(t,8,6):""}),y.jsx("span",{className:"text-sm font-extrabold text-white",children:r.symbol})]})]})]}):null}function vMe({fee:e,bridge:t}){return y.jsxs("div",{className:"gap-small bg-background lg:p-large flex flex-col rounded-xl p-3 lg:rounded-2xl",children:[y.jsx(oM,{label:"Estimated Arrival Time",value:t==null?void 0:t.formatEstimateTime()}),y.jsx(oM,{label:"Transaction Fee",value:e?`${ut(e.value,e.token.decimals,{precision:6})} ${e.token.symbol}`:null})]})}function oM({label:e,value:t}){return y.jsxs("div",{className:"gap-medium flex items-center justify-between text-sm font-bold italic text-white",children:[y.jsx("span",{children:e}),y.jsx("span",{className:"truncate",children:t})]})}function wMe(){var ge,Y,W;const{updateBalanceAll:e,setIsHistoryOpen:t,setHistoryDetails:n}=$g(),[r,o]=S.useState(!1),[a,i]=S.useState(!1),{amount:s,token:c,sourceChain:l,sourceToken:u,targetChain:d,targetToken:f,sourceChainOptions:h,targetChainOptions:m,availableTokenOptions:p,loadingSupportedChains:b,loadingAvailableTokenOptions:v,setAmount:g,isSwitchAvailable:w,handleTokenChange:_,handleSourceChainChange:C,handleSourceTokenChange:x,handleTargetChainChange:E,handleTargetTokenChange:T,handleSwitch:k}=a_e(),D=S.useDeferredValue(s),R=tn(),{chain:F}=To(),B=zs(),{data:j}=yy(),{switchNetwork:P}=Tl(),{openConnectModal:O}=Eb(),[I,N]=S.useState({input:R.address??"",value:R.address,alert:void 0}),[M,L]=S.useState(!1),X=S.useRef(!1);S.useEffect(()=>{X.current||(R.address?N({input:R.address,value:R.address,alert:void 0}):N({input:"",value:void 0,alert:void 0}))},[R.address]);const J=S.useCallback(Q=>{N(Q),X.current=!0},[]),U=S.useCallback(()=>L(Q=>!Q),[]),{balance:G,loading:Z,refresh:ae}=r_e(l,u,R.address),{maxTransfer:ne}=c_e(l,d,u,G),{data:ie,loading:te}=o_e(D.value,u,l,d),ee=S.useMemo(()=>{var ce,pe;const Q=(pe=(ce=ie==null?void 0:ie.sortedLnBridgeRelayInfos)==null?void 0:ce.records.at(0))==null?void 0:pe.bridge;return Q?fm({category:Q,walletClient:j,publicClient:B,sourceChain:l,sourceToken:u,targetChain:d,targetToken:f}):void 0},[(ge=ie==null?void 0:ie.sortedLnBridgeRelayInfos)==null?void 0:ge.records,j,B,l,u,d,f]),{loading:re,fee:z}=i_e(ee,R.address,R.address,D.value,ie),{allowance:fe,loading:ve,busy:Ue,approve:ke,refresh:Qe}=n_e(l,u,R.address,(Y=ee==null?void 0:ee.getContract())==null?void 0:Y.sourceAddress),[Te,Ee]=S.useMemo(()=>{let Q="Transfer",ce=!1;return F!=null&&F.id?F.id!==l.id?(Q="Switch Chain",ce=!1):fe<((z==null?void 0:z.token.type)==="native"?D.value:D.value+((z==null?void 0:z.value)??0n))?(Q="Approve",ce=!1):(Q="Transfer",ce=ve||(z==null?void 0:z.value)===void 0||!D.input||!D.valid||!I.value||!!I.alert):(Q="Connect Wallet",ce=!1),[Q,ce]},[fe,ve,F==null?void 0:F.id,D,l.id,z==null?void 0:z.value,z==null?void 0:z.token.type,I.alert,I.value]),he=S.useCallback(async()=>{if(Te==="Connect Wallet")O==null||O();else if(Te==="Switch Chain")P==null||P(l.id);else if(Te==="Approve"){const Q=await ke((z==null?void 0:z.token.type)==="native"?D.value:D.value+((z==null?void 0:z.value)??0n));Vr(Q,l,"Approval")}else Te==="Transfer"&&o(!0)},[Te,l,D.value,z==null?void 0:z.value,z==null?void 0:z.token.type,ke,O,P]),Me=S.useCallback(async()=>{var pe,De;const Q=ee==null?void 0:ee.getSourceChain(),ce=ee==null?void 0:ee.getTargetChain();if(ee&&R.address&&I.value){const Ie=(pe=ie==null?void 0:ie.sortedLnBridgeRelayInfos)==null?void 0:pe.records.at(0);try{i(!0);const Je=await ee.transfer(R.address,I.value,D.value,{relayer:Ie==null?void 0:Ie.relayer,transferId:Ie==null?void 0:Ie.lastTransferId,totalFee:z==null?void 0:z.value,withdrawNonce:BigInt((Ie==null?void 0:Ie.withdrawNonce)??0),depositedMargin:BigInt((Ie==null?void 0:Ie.margin)??0)});Vr(Je,Q,"Transfer"),i(!1),(Je==null?void 0:Je.status)==="success"&&(g({input:"",valid:!0,value:0n,alert:""}),n({requestTxHash:Je.transactionHash,fromChain:Q==null?void 0:Q.network,toChain:ce==null?void 0:ce.network,sendToken:(De=ee.getSourceToken())==null?void 0:De.symbol,sendAmount:D.value.toString()}),o(!1),t(!0),ae(),Qe(),e())}catch(Je){console.error(Je),an(Je),i(!1)}}},[(W=ie==null?void 0:ie.sortedLnBridgeRelayInfos)==null?void 0:W.records,R.address,I.value,ee,z==null?void 0:z.value,D.value,g,ae,Qe,e,t,n]);return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"gap-medium p-medium flex w-full flex-col rounded-2xl bg-[#1F282C] lg:w-[27.5rem] lg:gap-5 lg:rounded-[2rem] lg:p-5",children:[y.jsx(aMe,{token:c,options:p,loading:v,onChange:_}),y.jsx(uMe,{recipient:I,loading:b,expandRecipient:M,recipientOptions:R.address?[R.address]:[],sourceChain:l,targetChain:d,sourceToken:u,targetToken:f,sourceChainOptions:h,targetChainOptions:m,disableSwitch:!w(l,d),sourceTokenOptions:ff(l,c.category),targetTokenOptions:yc(u,d),onSourceChainChange:C,onSourceTokenChange:x,onTargetChainChange:E,onTargetTokenChange:T,onSwitch:k,onRecipientChange:J,onExpandRecipient:U}),y.jsx(hMe,{amount:s,loading:Z,balance:G,sourceToken:u,targetToken:f,chain:l,max:ne,onChange:g,onRefresh:ae}),y.jsx(pMe,{bridge:ee,sourceToken:u,relayData:ie,loadingRelayData:te,fee:z,loadingFee:re}),y.jsx(pn,{className:"inline-flex h-12 items-center justify-center rounded-full",kind:"primary",busy:Ue,disabled:Ee||!h.length,onClick:he,children:y.jsx("span",{className:"text-base font-bold text-white",children:Te})})]}),y.jsx(bMe,{sender:R.address,recipient:I.value,sourceChain:l,sourceToken:u,targetChain:d,targetToken:f,fee:z,bridge:ee,amount:D,busy:a,isOpen:r,onClose:()=>o(!1),onConfirm:Me}),y.jsx(yMe,{})]})}function EMe(){return y.jsx(gMe,{children:y.jsx(wMe,{})})}function _Me(){return y.jsxs("main",{className:"app-main relative overflow-hidden",children:[y.jsx("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[-1] flex items-center justify-center",children:y.jsx("div",{className:"bg-primary lg:bg-primary/40 h-[70vw] w-[70vw] rounded-full blur-[8rem] lg:h-[65vh] lg:w-[65vh]"})}),y.jsx("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-[2] overflow-y-auto",children:y.jsx("div",{className:"page-container flex min-h-full items-start justify-center lg:items-center lg:!pb-10",children:y.jsx(EMe,{})})})]})}function xMe({value:e,onChange:t}){return y.jsxs("div",{className:"bg-secondary relative flex items-center rounded-full p-1",children:[y.jsx("div",{className:"bg-primary absolute left-1 top-1 inline-flex h-6 w-12 items-center justify-center rounded-full transition-transform",style:{transform:e==="lnv3"?"translate(0, 0)":"translate(3rem, 0)"},children:y.jsx("span",{className:"text-sm font-bold uppercase text-white/90",children:e==="lnv3"?"v3":"v2"})}),y.jsx("span",{className:"inline-flex h-6 w-12 items-center justify-center text-sm font-normal text-white/50 transition-colors hover:cursor-pointer hover:text-white",onClick:()=>t("lnv3"),children:"V3"}),y.jsx("span",{className:"inline-flex h-6 w-12 items-center justify-center text-sm font-normal text-white/50 transition-colors hover:cursor-pointer hover:text-white",onClick:()=>t("lnv2"),children:"V2"})]})}function CMe({options:e,activeKey:t,className:n,onChange:r=()=>{}}){var c;const o=S.useRef(null),a=S.useRef(null),i=S.useRef(t),s=i.current===t?a:o;return i.current=t,y.jsxs("div",{className:"flex w-full flex-col items-center gap-5",children:[y.jsx("div",{className:`flex h-10 w-full ${n}`,children:e.filter(({hidden:l})=>!l).map(({key:l,label:u,disabled:d})=>y.jsx("div",{className:`border-primary flex flex-1 items-center justify-center border-y border-r transition-colors duration-100 first:rounded-l-full first:border-l last:rounded-r-full ${t===l?"bg-primary":"hover:bg-primary/50 bg-transparent"} ${d?"opacity-60":""}`,children:y.jsx(At,{enabled:!!d,content:"Coming soon",className:"h-full w-full",children:y.jsx("button",{onClick:()=>r(l),className:`h-full w-full ${t===l?"disabled:cursor-default":"disabled:cursor-not-allowed"}`,disabled:d||t===l,children:typeof u=="string"?y.jsx("span",{className:"text-sm font-medium lg:font-extrabold",children:u}):u})})},l))}),y.jsx(vy,{children:y.jsx(Al,{timeout:150,nodeRef:s,classNames:"tabs-fade",unmountOnExit:!0,children:y.jsx("div",{ref:s,className:"w-full",children:(c=e.find(({key:l})=>l===t))==null?void 0:c.children})},t)})]})}function SMe({total:e,current:t,size:n=10,onChange:r=()=>{}}){const o=Math.ceil(e/n);return o>1?y.jsxs("div",{className:"gap-small flex items-center justify-end",children:[y.jsx(Ma,{label:"previous",current:t,total:o,onClick:()=>r(t-1)}),TMe(t,o,r),y.jsx(Ma,{label:"next",current:t,total:o,onClick:()=>r(t+1)})]}):null}function Ma({label:e,current:t,total:n,onClick:r}){const{disabled:o,className:a}=S.useMemo(()=>{let i="inline-flex items-center justify-center h-8 min-w-[2rem] px-[2px] rounded-md border text-sm font-normal text-white bg-secondary transition-[opacity,color]",s=!1;return e==="next"&&t+1===n||e==="previous"&&t===0?(i+=" disabled:cursor-not-allowed disabled:opacity-50 border-white/30",s=!0):e===t?(i+=" bg-white/10 disabled:cursor-default border-transparent",s=!0):e==="more"?(i+=" opacity-50 disabled:cursor-default border-white/30",s=!0):i+=" opacity-50 hover:opacity-100 border-white/30",{disabled:s,className:i}},[e,t,n]);return y.jsx("button",{className:a,disabled:o,onClick:r,children:e==="more"?y.jsx("span",{children:"..."}):e==="previous"?y.jsx("img",{alt:"Previous page",width:16,height:16,src:"images/pagination/previous-page.svg"}):e==="next"?y.jsx("img",{alt:"Next page",width:16,height:16,src:"images/pagination/next-page.svg"}):y.jsx("span",{children:e+1})})}function TMe(e,t,n){const r=new Array(t).fill(0).map((o,a)=>a);return e<3||t-48?y.jsxs(y.Fragment,{children:[r.slice(0,4).map(o=>y.jsx(Ma,{label:o,current:e,total:t,onClick:()=>n(o)},o)),y.jsx(Ma,{label:"more",current:e,total:t}),r.slice(-4).map(o=>y.jsx(Ma,{label:o,current:e,total:t,onClick:()=>n(o)},o))]}):r.map(o=>y.jsx(Ma,{label:o,current:e,total:t,onClick:()=>n(o)},o)):y.jsxs(y.Fragment,{children:[y.jsx(Ma,{label:0,current:e,total:t,onClick:()=>n(0)}),y.jsx(Ma,{label:"more",current:e,total:t}),r.slice(e-1,e+2).map(o=>y.jsx(Ma,{label:o,current:e,total:t,onClick:()=>n(o)},o)),y.jsx(Ma,{label:"more",current:e,total:t}),y.jsx(Ma,{label:t-1,current:e,total:t,onClick:()=>n(t-1)})]})}function AMe({onPageChange:e,totalRecords:t,currentPage:n,dataSource:r,className:o,pageSize:a,loading:i,columns:s}){const c=S.useMemo(()=>s.reduce((l,u)=>{const d=typeof u.width=="string"?u.width:typeof u.width=="number"?`${u.width}px`:"1fr";return l==="auto"?l=d:l=`${l} ${d}`,l},"auto"),[s]);return y.jsxs("div",{className:"space-y-3",children:[y.jsx("div",{className:"w-full overflow-x-auto",children:y.jsxs("div",{className:`bg-secondary rounded-2xl p-2 lg:p-5 ${o}`,children:[y.jsx("div",{className:"bg-background py-large grid items-center gap-x-2 rounded-t-xl border-b border-b-white/10 px-3 text-sm font-normal text-white/50",style:{gridTemplateColumns:c},children:s.map(({key:l,title:u})=>typeof u=="string"?y.jsx("h5",{children:u},l):y.jsx(S.Fragment,{children:u},l))}),y.jsxs("div",{className:"relative",children:[y.jsx(qs,{loading:i,className:`rounded-b-xl ${r!=null&&r.length?"bg-black/5 backdrop-blur-[2px]":""}`,color:"white"}),r!=null&&r.length?y.jsx("div",{className:"rounded-b-xl",children:r.map(l=>y.jsx("div",{className:"bg-background grid items-center gap-x-2 px-3 py-2 text-sm font-normal text-white last:rounded-b-xl",style:{gridTemplateColumns:c},children:s.map(({key:u,dataIndex:d,render:f})=>y.jsx(S.Fragment,{children:f?f(l):y.jsx("span",{children:`${l[d]}`})},u))},l.id))}):y.jsx("div",{className:"flex h-48 flex-col items-center justify-center gap-4",children:i?null:y.jsxs(y.Fragment,{children:[y.jsx("img",{width:50,height:63,alt:"No data",src:"images/no-data.svg"}),y.jsx("span",{className:"text-sm font-normal text-slate-400",children:"No data"})]})})]})]})}),t!==void 0&&n!==void 0&&y.jsx("div",{className:"overflow-x-auto pb-1",children:y.jsx(SMe,{size:a,current:n,total:t,onChange:e})})]})}function DMe({record:e}){const[t,n]=S.useState();return S.useEffect(()=>{const r=st(e.fromChain),o=st(e.toChain),a=r==null?void 0:r.tokens.find(l=>{var u;return l.address.toLowerCase()===((u=e.sendToken)==null?void 0:u.toLowerCase())}),i=o==null?void 0:o.tokens.find(l=>{var u;return l.symbol===((u=a==null?void 0:a.cross.find(d=>(d.bridge.category===e.bridge||d.bridge.category==="lnbridge"&&e.bridge.startsWith("ln"))&&d.target.network===e.toChain))==null?void 0:u.target.symbol)}),s=new Zj({category:"lnbridge",sourceChain:r,targetChain:o,sourceToken:a,targetToken:i,protocol:"lnv3"}),c=Yo(s.getPenaltyReserves(e.relayer)).subscribe({next:n,error:l=>{console.error(l),n(null)}});return()=>{c.unsubscribe()}},[e]),t?y.jsx(At,{content:ut(t.value,t.token.decimals),className:"w-fit max-w-full truncate",children:ut(t.value,t.token.decimals)}):y.jsx("span",{children:"-"})}function kMe({record:e}){const{relayer:t,sourceChain:n,targetChain:r,sourceToken:o,targetToken:a}=S.useMemo(()=>{const s=st(e.fromChain),c=st(e.toChain),l=s==null?void 0:s.tokens.find(d=>{var f;return d.address.toLowerCase()===((f=e.sendToken)==null?void 0:f.toLowerCase())}),u=c==null?void 0:c.tokens.find(d=>{var f;return d.symbol===((f=l==null?void 0:l.cross.find(h=>(h.bridge.category===e.bridge||h.bridge.category==="lnbridge"&&e.bridge.startsWith("ln"))&&h.target.network===e.toChain))==null?void 0:f.target.symbol)});return{relayer:e.relayer,sourceChain:s,targetChain:c,sourceToken:l,targetToken:u}},[e]),{data:i}=LY(t,a==null?void 0:a.address,n==null?void 0:n.network,r==null?void 0:r.network,240);return o?y.jsx(jMe,{data:i,token:o}):y.jsx("span",{children:"-"})}function jMe({data:e,token:t}){const n=e.reduce((r,o)=>r+BigInt(o.sendAmount),0n);return y.jsx(At,{content:ut(n,t.decimals),className:"w-fit max-w-full truncate",children:ut(n,t.decimals)})}function PMe({record:e}){const[t,n]=S.useState();return S.useEffect(()=>{let r;const o=st(e.fromChain),a=st(e.toChain),i=o==null?void 0:o.tokens.find(l=>{var u;return l.address.toLowerCase()===((u=e.sendToken)==null?void 0:u.toLowerCase())}),s=a==null?void 0:a.tokens.find(l=>{var u;return l.symbol===((u=i==null?void 0:i.cross.find(d=>(d.bridge.category===e.bridge||d.bridge.category==="lnbridge"&&e.bridge.startsWith("ln"))&&d.target.network===e.toChain))==null?void 0:u.target.symbol)}),c=fm({category:e.bridge,sourceChain:o,targetChain:a,sourceToken:i,targetToken:s});return c?r=Yo(c.getTargetAllowance(e.relayer)).subscribe({next:n,error:l=>{console.error(l),n(null)}}):n(null),()=>{r==null||r.unsubscribe()}},[e]),t?y.jsx(At,{content:ut(t.value,t.token.decimals),className:"w-fit max-w-full truncate",children:ut(t.value,t.token.decimals)}):y.jsx("span",{children:"-"})}function IMe({record:e}){const[t,n]=S.useState();return S.useEffect(()=>{let r;const o=st(e.fromChain),a=st(e.toChain),i=o==null?void 0:o.tokens.find(l=>{var u;return l.address.toLowerCase()===((u=e.sendToken)==null?void 0:u.toLowerCase())}),s=a==null?void 0:a.tokens.find(l=>{var u;return l.symbol===((u=i==null?void 0:i.cross.find(d=>(d.bridge.category===e.bridge||d.bridge.category==="lnbridge"&&e.bridge.startsWith("ln"))&&d.target.network===e.toChain))==null?void 0:u.target.symbol)}),c=fm({category:e.bridge,sourceChain:o,targetChain:a,sourceToken:i,targetToken:s});return c?r=Yo(c.getTargetBalance(e.relayer)).subscribe({next:n,error:l=>{console.error(l),n(null)}}):n(null),()=>{r==null||r.unsubscribe()}},[e]),t?y.jsx(At,{content:ut(t.value,t.token.decimals),className:"w-fit max-w-full truncate",children:ut(t.value,t.token.decimals)}):y.jsx("span",{children:"-"})}function UZ({network:e}){const t=st(e);return t?y.jsx(At,{content:t.name,className:"mx-auto w-fit",children:y.jsx("img",{width:24,height:24,alt:t.name,src:Rn(t.logo),className:"rounded-full"})}):y.jsx("span",{children:"-"})}function Ao({title:e,tips:t,className:n}){return y.jsxs("div",{className:`gap-small flex items-center ${n}`,children:[y.jsx("span",{className:"truncate",children:e}),t?y.jsx(At,{content:t,className:"shrink-0",contentClassName:"max-w-[18rem]",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]})}function OMe({signers:e,heartbeatTimestamp:t}){const n=RMe(e),r=n.filter(([a,i])=>i),o=$Z(t);return n.length>0?y.jsx(At,{content:y.jsxs("div",{className:"flex flex-col items-start gap-2",children:[y.jsx("span",{className:"text-xs font-semibold",children:`Total: ${r.length} / ${n.length}`}),n.map(([a,i])=>y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:`h-[8px] w-[8px] rounded-full ${i?"bg-app-green":"bg-white/50"}`}),y.jsx("span",{className:"text-xs font-semibold",children:zu(a,10,8)})]},a))]}),className:"mx-auto w-fit",children:y.jsx("div",{className:`h-[8px] w-[8px] rounded-full ${r.length===n.length?"bg-app-green":r.length>0?"bg-app-orange":"bg-white/50"}`})}):y.jsx(At,{content:o?"Online":"Offline",className:"mx-auto w-fit",children:y.jsx("div",{className:`h-[8px] w-[8px] rounded-full ${o?"bg-app-green":"bg-white/50"}`})})}function $Z(e){return Date.now()-(e??0)*1e3<5*60*1e3}function RMe(e){return(e==null?void 0:e.split(",").reduce((t,n)=>{const[r,o]=n.split("-");return t.push([r,$Z(Number(o))]),t},[]))||[]}const Dv=({version:e,isDashboard:t})=>({key:"status",title:"",width:t&&e==="lnv3"?32:54,render:({heartbeatTimestamp:n,signers:r})=>y.jsx(OMe,{heartbeatTimestamp:n,signers:r})}),kv=({isDashboard:e})=>({key:"from",title:y.jsx(Ao,{title:"From",className:"justify-center"}),render:({fromChain:t})=>y.jsx(UZ,{network:t}),width:e?54:void 0}),jv=({isDashboard:e})=>({key:"to",title:y.jsx(Ao,{title:"To",className:"justify-center"}),render:({toChain:t})=>y.jsx(UZ,{network:t}),width:e?54:void 0}),Pv=({isDashboard:e})=>({key:"token",title:y.jsx(Ao,{title:"Token",className:"justify-center"}),render:({fromChain:t,sendToken:n})=>{var o;const r=(o=st(t))==null?void 0:o.tokens.find(a=>a.address.toLowerCase()===(n==null?void 0:n.toLowerCase()));return r?y.jsx(At,{content:r.symbol,className:"mx-auto w-fit",children:y.jsx("img",{width:24,height:24,alt:r.symbol,src:vr(r.logo),className:"rounded-full"})}):y.jsx("span",{children:"-"})},width:e?72:void 0}),Iv=e=>({key:"base fee",title:y.jsx(Ao,{title:"Base Fee",tips:"The fixed fee set by the relayer and charged in a transaction"}),render:({fromChain:t,sendToken:n,baseFee:r})=>{var a;const o=(a=st(t))==null?void 0:a.tokens.find(i=>i.address.toLowerCase()===(n==null?void 0:n.toLowerCase()));return o&&r?y.jsx("span",{className:"truncate",children:ut(BigInt(r),o.decimals,{precision:6})}):y.jsx("span",{children:"-"})}}),Ov=e=>({key:"liquidity fee rate",title:y.jsx(Ao,{title:"Liquidity Fee Rate",tips:"Liquidity Fee Rate: the percentage deducted by the relayer from the transfer amount in a transaction"}),render:({liquidityFeeRate:t})=>typeof t=="number"?y.jsx("span",{className:"truncate",children:`${ml(t)}%`}):y.jsx("span",{children:"-"}),width:118}),Rv=e=>({key:"profit",title:y.jsx(Ao,{title:"Profit"}),render:({fromChain:t,sendToken:n,profit:r})=>{var a;const o=(a=st(t))==null?void 0:a.tokens.find(i=>i.address.toLowerCase()===(n==null?void 0:n.toLowerCase()));return o&&r?y.jsx("span",{className:"truncate",children:ut(BigInt(r),o.decimals)}):y.jsx("span",{children:"-"})}}),aM=e=>({key:"margin",title:y.jsx(Ao,{title:"Margin"}),render:({margin:t,fromChain:n,sendToken:r})=>{var a;const o=(a=st(n))==null?void 0:a.tokens.find(i=>i.address.toLowerCase()===(r==null?void 0:r.toLowerCase()));return t&&o?y.jsx("span",{className:"truncate",children:ut(BigInt(t),o.decimals,{keepZero:!1})}):y.jsx("span",{children:"-"})}}),iM=e=>({key:"Transfer limit",title:y.jsx(Ao,{title:"Transfer Limit"}),render:({transferLimit:t,fromChain:n,sendToken:r})=>{var a;const o=(a=st(n))==null?void 0:a.tokens.find(i=>i.address.toLowerCase()===(r==null?void 0:r.toLowerCase()));return t&&o?y.jsx("span",{className:"truncate",children:ut(BigInt(t),o.decimals,{keepZero:!1})}):y.jsx("span",{children:"-"})}}),sM=e=>({key:"penalty",title:y.jsx(Ao,{title:"Penalty"}),render:t=>y.jsx(DMe,{record:t})}),NMe=e=>({key:"liquidity",title:y.jsx(Ao,{title:"Liquidity",tips:"Total withdrawable liquidity"}),render:t=>y.jsx(kMe,{record:t})}),cM=e=>({key:"allowance",title:y.jsx(Ao,{title:"Allowance",tips:"Allowance on target chain"}),render:t=>y.jsx(PMe,{record:t})}),lM=e=>({key:"balance",title:y.jsx(Ao,{title:"Balance",tips:"Balance on target chain"}),render:t=>y.jsx(IMe,{record:t})}),uM=({onClick:e=()=>{}})=>({key:"action",title:y.jsx(Ao,{title:"Action",className:"justify-center"}),render:t=>y.jsx("div",{className:"flex justify-center",children:y.jsx(pn,{className:"rounded-medium px-medium w-fit py-[2px]",onClick:()=>e(t),kind:"default",children:y.jsx("span",{children:"Manage"})})})}),dM=e=>({key:"relayer",title:y.jsx(Ao,{title:"Relayer"}),render:({relayer:t})=>y.jsx("div",{className:"truncate",children:y.jsx(Ca,{address:t,forceShort:!0,copyable:!0})})});function zZ({options:e,activeKey:t,onChange:n=()=>{}}){var s;const r=S.useRef(null),o=S.useRef(null),a=S.useRef(t),i=a.current===t?o:r;return a.current=t,y.jsxs("div",{className:"flex w-full flex-col items-center gap-5",children:[y.jsx("div",{className:"flex h-10 w-full",children:e.filter(({hidden:c})=>!c).map(({key:c,label:l,disabled:u})=>y.jsx("div",{className:`border-primary flex flex-1 items-center justify-center border-y border-r transition-colors duration-100 first:rounded-l-xl first:border-l last:rounded-r-xl ${t===c?"bg-primary":"hover:bg-primary/50 bg-transparent"} ${u?"opacity-60":""}`,children:y.jsx(At,{enabled:!!u,content:"Coming soon",className:"h-full w-full",children:y.jsx("button",{onClick:()=>n(c),className:`h-full w-full ${t===c?"disabled:cursor-default":"disabled:cursor-not-allowed"}`,disabled:u||t===c,children:typeof l=="string"?y.jsx("span",{className:"text-sm font-medium lg:font-extrabold",children:l}):l})})},c))}),y.jsx(vy,{children:y.jsx(Al,{timeout:150,nodeRef:i,classNames:"tabs-fade",unmountOnExit:!0,children:y.jsx("div",{ref:i,className:"w-full",children:(s=e.find(({key:c})=>c===t))==null?void 0:s.children})},t)})]})}const NP=S.forwardRef(function({className:t,...n},r){return y.jsx("input",{className:`focus-visible:outline-none disabled:cursor-not-allowed ${t}`,ref:r,...n})});function O1({text:e}){return y.jsx("div",{className:"absolute -bottom-[1.2rem] left-0 inline-flex w-full",children:y.jsx("span",{className:"text-app-red text-xs font-medium",children:e})})}function Ir({max:e,min:t,balance:n,disabled:r,placeholder:o,value:a,token:i,onChange:s=()=>{}}){const c=S.useRef(null),l=S.useRef(n),u=S.useRef(i),[d,f]=S.useState(),h=S.useMemo(()=>{if(i!=null&&i.decimals){if(e!==void 0)return`Max ${ut(e,i.decimals)}`;if(n!==void 0)return`Balance ${ut(n,i.decimals)}`}return o??"Enter an amount"},[n,e,o,i==null?void 0:i.decimals]),m=S.useCallback(p=>{const b=p.target.value;let v={value:0n,input:""},g=!0;b?i&&!Number.isNaN(Number(b))&&(v=BMe(b,i.decimals),typeof t=="bigint"&&v.value{n!==l.current&&(l.current=n,typeof n=="bigint"?n{var p;(i==null?void 0:i.decimals)!==((p=u.current)==null?void 0:p.decimals)&&(u.current=i,s({valid:!0,input:"",value:0n}))},[i,s]),y.jsxs("div",{className:`normal-input-wrap relative ${a.valid?"valid-input-wrap border-transparent":"invalid-input-wrap"} bg-app-bg px-medium rounded-xl`,children:[y.jsxs("div",{className:"gap-small flex h-10 items-center justify-between text-sm font-semibold text-white lg:h-11",children:[y.jsx(NP,{placeholder:h,className:"w-full rounded bg-transparent",onChange:m,ref:c,disabled:r,value:a.input}),i?y.jsx("span",{children:i.symbol}):null]}),d===1?y.jsx(O1,{text:"* Insufficient"}):d===3?y.jsx(O1,{text:`* Max: ${ut(e??0n,(i==null?void 0:i.decimals)??0,{precision:6})}`}):d===2?y.jsx(O1,{text:`* Min: ${ut(t??0n,(i==null?void 0:i.decimals)??0,{precision:6})}`}):null]})}function BMe(e,t){let n="",r=0n;const[o,a]=e.replace(/,/g,"").split(".").concat("-1");return o&&(n=a==="-1"?o:a?`${o}.${a.slice(0,t)}`:`${o}.`,r=pj(n,t)),{value:r,input:n}}function T6({isV3:e,placeholder:t,value:n,className:r,onChange:o=()=>{}}){const a=S.useCallback(i=>{const s=i.target.value;let c=!0,l=0;s?Number.isNaN(Number(s))||(l=Vye(s),c=o4(l,e),o({valid:c,value:l,input:s})):o({valid:c,value:l,input:s})},[e,o]);return y.jsxs("div",{className:`normal-input-wrap gap-small relative flex items-center justify-between ${r} ${n.valid?"valid-input-wrap border-transparent":"invalid-input-wrap"}`,children:[y.jsx(NP,{className:"w-full rounded bg-transparent",placeholder:t,onChange:a,value:n.input}),y.jsx("span",{className:"rounded bg-transparent",children:"%"}),n.valid?null:y.jsx(O1,{text:`* Please enter 0 ~ ${e?"100":"0.25"}`})]})}function FMe({loading:e,total:t,value:n,options:r,onChange:o=()=>{},onLoadMore:a=()=>{}}){return y.jsxs("div",{className:`bg-app-bg relative max-h-60 rounded-xl ${e?"overflow-y-hidden":"app-scrollbar overflow-y-auto"}`,children:[y.jsx(qs,{loading:e,className:"bg-black/30"}),y.jsx("div",{className:"flex flex-col py-2",children:r.length?r.map(i=>y.jsxs("div",{className:"gap-medium px-large flex items-center justify-between py-2",children:[y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("button",{className:`border-primary h-4 w-4 border transition-[transform,color] hover:scale-105 active:scale-95 ${n.some(({id:s})=>s===i.id)?"bg-primary":"bg-transparent"}`,onClick:()=>o(n.some(({id:s})=>s===i.id)?n.filter(({id:s})=>s!==i.id):n.concat({id:i.id}))}),y.jsx("a",{target:"_blank",href:`/tx/${i.id}`,className:"text-primary truncate text-base font-medium hover:underline",children:MMe(i.id)})]}),i.lastRequestWithdraw.length>1?y.jsx(At,{content:`Last request withdraw at ${hy(Number(i.lastRequestWithdraw)*1e3,{compact:!0})}`,children:y.jsx("img",{alt:"In progress",width:24,height:24,src:"images/notification/progress.svg",className:"animate-spin rounded-full",style:{animationDuration:"3s"}})}):null]},i.id)):y.jsx("div",{className:"py-small flex items-center justify-center",children:y.jsx("span",{className:"text-sm font-semibold text-slate-400",children:"No data"})})}),t>r.length?y.jsx("button",{onClick:a,className:"rounded-b-medium hover:bg-primary w-full border-t border-t-white/10 py-2 text-sm font-semibold text-white transition-[transform,color] active:translate-y-1",children:"Load More"}):null]})}function MMe(e){return`${e.slice(0,14)}...${e.slice(-8)}`}const Na={input:"",valid:!0,value:0n},fM={input:"",valid:!0,value:0};function wT(e,t){return{valid:!0,value:e??0n,input:e?Wu(e,t.decimals):""}}function LMe({relayerInfo:e,isOpen:t,onClose:n,onSuccess:r}){const{sourceChain:o,targetChain:a,sourceToken:i,targetToken:s,sourceBalance:c,targetBalance:l,sourceAllowance:u,penaltyReserve:d,isGettingPenaltyReserves:f,setSourceChain:h,setTargetChain:m,setSourceToken:p,registerLnProvider:b,depositPenaltyReserve:v,withdrawPenaltyReserve:g,withdrawLiquidity:w,sourceApprove:_,targetApprove:C}=B8(),[x,E]=S.useState(Na),[T,k]=S.useState(Na),[D,R]=S.useState(Na),[F,B]=S.useState(Na),[j,P]=S.useState(Na),[O,I]=S.useState(fM),[N,M]=S.useState("update"),[L,X]=S.useState(!1),{switchNetwork:J}=Tl(),{chain:U}=To(),{loading:G,total:Z,data:ae,refetch:ne,fetchMore:ie}=LY(e==null?void 0:e.relayer,s==null?void 0:s.address,e==null?void 0:e.fromChain,e==null?void 0:e.toChain),[te,ee]=S.useState([]),{feeAndParams:re,loading:z}=t_e(te,e==null?void 0:e.relayer,e==null?void 0:e.messageChannel),{okText:fe,okDisabled:ve}=S.useMemo(()=>{let Ee="Confirm",he=!1;return N==="allowance"?(U==null?void 0:U.id)!==(a==null?void 0:a.id)?Ee="Switch Network":!j.input||!j.valid?(Ee="Approve",he=!0):Ee="Approve":N==="withdraw liquidity"?(U==null?void 0:U.id)!==(a==null?void 0:a.id)?Ee="Switch Network":(!te.length||z||!re)&&(he=!0):(U==null?void 0:U.id)!==(o==null?void 0:o.id)?Ee="Switch Network":N==="deposit"?!x.input||!x.valid?he=!0:(i==null?void 0:i.type)!=="native"&&x.value>((u==null?void 0:u.value)??0n)&&(Ee="Approve"):N==="update"?(!T.input||!T.valid||!F.input||!F.valid||!O.input||!O.valid)&&(he=!0):N==="withdraw penalty reserve"&&(d===void 0||f||!D.input||!D.valid)&&(he=!0),{okText:Ee,okDisabled:he}},[N,F,U==null?void 0:U.id,O,x,u==null?void 0:u.value,o==null?void 0:o.id,a==null?void 0:a.id,i==null?void 0:i.type,T,D,d,f,te.length,z,re,j]),{baseFee:Ue,feeRate:ke,transferLimit:Qe}=S.useMemo(()=>{const Ee=BigInt((e==null?void 0:e.baseFee)??0),he=Number((e==null?void 0:e.liquidityFeeRate)??0),Me=BigInt((e==null?void 0:e.transferLimit)??0);return{baseFee:Ee,feeRate:he,transferLimit:Me}},[e]),Te=S.useCallback(async()=>{let Ee;X(!0);try{N==="allowance"?(U==null?void 0:U.id)!==(a==null?void 0:a.id)?J==null||J(a==null?void 0:a.id):Ee=await C(j.value):N==="withdraw liquidity"?(U==null?void 0:U.id)!==(a==null?void 0:a.id)?J==null||J(a==null?void 0:a.id):(Ee=await w(te,(re==null?void 0:re.value)??0n,re==null?void 0:re.params),(Ee==null?void 0:Ee.status)==="success"&&ne()):(U==null?void 0:U.id)!==(o==null?void 0:o.id)?J==null||J(o==null?void 0:o.id):N==="update"?Ee=await b(F.value,O.value,T.value):N==="deposit"?fe==="Approve"?Ee=await _(x.value):Ee=await v(x.value):N==="withdraw penalty reserve"&&(Ee=await g(D.value))}catch(he){console.error(he),an(he)}finally{(Ee==null?void 0:Ee.status)==="success"&&(n(),r())}X(!1)},[U==null?void 0:U.id,o==null?void 0:o.id,a==null?void 0:a.id,N,fe,F,O,x,T,D,te,re,j,v,n,r,b,J,g,w,ne,_,C]);return S.useEffect(()=>{E(Na),k(Na),R(Na),B(Na),P(Na),I(fM),ee([]);const Ee=st(e==null?void 0:e.fromChain),he=st(e==null?void 0:e.toChain),Me=Ee==null?void 0:Ee.tokens.find(ge=>{var Y;return ge.address.toLowerCase()===((Y=e==null?void 0:e.sendToken)==null?void 0:Y.toLowerCase())});h(Ee),m(he),p(Me),M("update")},[e,h,m,p]),S.useEffect(()=>{i&&(E(Na),k(wT(Qe,i)),R(wT(d,i)),B(wT(Ue,i)),I({valid:!0,value:ke,input:ml(ke).toString()}))},[N,i,Qe,d,Ue,ke]),y.jsx(Bd,{title:"Manage Relayer",className:"w-full lg:w-[32rem]",okText:fe,isOpen:t,onClose:n,onOk:Te,busy:L,disabledCancel:L,disabledOk:ve,onCancel:n,children:y.jsx(zZ,{options:[{key:"update",label:y.jsx("span",{className:"text-sm font-bold",children:"Update"}),children:y.jsxs("div",{className:"flex flex-col gap-5",children:[y.jsx(fc,{text:"Base Fee",children:y.jsx(Ir,{token:i,value:F,onChange:B})}),y.jsx(fc,{text:"Liquidity Fee Rate",children:y.jsx(T6,{isV3:!0,className:"bg-app-bg px-medium h-10 rounded-xl text-sm font-semibold text-white lg:h-11",value:O,placeholder:ke===void 0?void 0:`${ml(ke)}%`,onChange:I})}),y.jsx(fc,{text:"Trasfer Limit",children:y.jsx(Ir,{token:i,value:T,onChange:k})})]})},{key:"deposit",label:y.jsx("span",{className:"text-sm font-bold",children:"Deposit"}),children:y.jsx(fc,{text:"More Penalty Reserves",children:y.jsx(Ir,{balance:c==null?void 0:c.value,token:c==null?void 0:c.token,value:x,onChange:E})})},{key:"withdraw penalty reserve",label:y.jsx("span",{className:"text-sm font-bold",children:"Penalty"}),children:y.jsx("div",{className:"flex flex-col gap-5",children:y.jsx(fc,{text:"Withdraw Penalty Reserves",children:y.jsxs("div",{className:"relative",children:[f&&y.jsx("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-10 flex items-center pl-2",children:y.jsx(Sh,{size:"small",color:"white"})}),y.jsx(Ir,{balance:d,token:i,value:D,onChange:R})]})})})},{key:"withdraw liquidity",label:y.jsx("span",{className:"text-sm font-bold",children:"Liquidity"}),children:y.jsxs("div",{className:"flex flex-col gap-5",children:[y.jsx(fc,{text:"Withdrawable Liquidity",children:y.jsx(FMe,{loading:G,total:Z,value:te,options:ae,onChange:ee,onLoadMore:ie})}),te.length?y.jsx(fc,{text:"Withdraw Fee",tips:"This value is calculated and does not require input",children:y.jsx("div",{className:`bg-app-bg p-medium relative flex h-10 items-center justify-between rounded-xl border lg:h-11 ${re||z?"border-transparent":"border-app-red"}`,children:z?y.jsx(Sh,{size:"small",color:"white"}):re?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-sm font-semibold text-white",children:ut(re.value,re.token.decimals,{precision:6})}),y.jsx("span",{className:"text-sm font-semibold text-white",children:re.token.symbol})]}):y.jsx("span",{className:"text-app-red absolute -bottom-5 left-0 text-xs font-medium",children:"* Failed to get fee, withdraw is temporarily unavailable"})})}):null]})},{key:"allowance",label:y.jsx("span",{className:"text-sm font-bold",children:"Allowance"}),children:y.jsx("div",{className:"flex flex-col gap-5",children:y.jsx(fc,{text:"Approve Amount",children:y.jsx(Ir,{balance:l==null?void 0:l.value,token:l==null?void 0:l.token,value:j,onChange:P})})}),hidden:(s==null?void 0:s.type)==="native"}],activeKey:N,onChange:M})})}function fc({text:e,children:t,height:n,tips:r}){return y.jsxs("div",{className:"gap-medium flex flex-col",style:{height:n},children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:e}),r?y.jsx(At,{content:r,children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]}),t]})}function UMe({relayerInfo:e,isOpen:t,onClose:n,onSuccess:r}){const{defaultBridge:o,oppositeBridge:a,bridgeCategory:i,sourceAllowance:s,targetAllowance:c,sourceBalance:l,targetBalance:u,sourceChain:d,targetChain:f,sourceToken:h,targetToken:m,margin:p,baseFee:b,feeRate:v,withdrawAmount:g,setMargin:w,setBaseFee:_,setFeeRate:C,setSourceChain:x,setTargetChain:E,setSourceToken:T,setBridgeCategory:k,setFeeAndRate:D,setWithdrawAmount:R,depositMargin:F,updateFeeAndMargin:B,withdrawMargin:j,sourceApprove:P,targetApprove:O,isLnBridgeExist:I}=nH(),[N,M]=S.useState("update"),[L,X]=S.useState(),[J,U]=S.useState(!1),[G,Z]=S.useState(!1),[ae,ne]=S.useState(),[ie,te]=S.useState({input:"",valid:!0,value:0n}),[ee,re]=S.useState({input:"",valid:!0,value:0n}),[z,fe]=S.useState({input:"",valid:!0,value:0n}),[ve,Ue]=S.useState({input:"",valid:!0,value:0}),ke=S.useDeferredValue(g),{switchNetwork:Qe}=Tl(),{chain:Te}=To(),{address:Ee}=tn(),he=uy(),{okText:Me,disableOk:ge,switchChainId:Y}=S.useMemo(()=>{let W="Confirm",Q,ce=!1;return N==="allowance"?(Te==null?void 0:Te.id)!==(f==null?void 0:f.id)?(W="Switch Network",Q=f==null?void 0:f.id):!ie.input||!ie.valid?ce=!0:W="Approve":N==="deposit"?(i==="lnv2-default"?(Te==null?void 0:Te.id)!==(f==null?void 0:f.id)?(W="Switch Network",Q=f==null?void 0:f.id):(m==null?void 0:m.type)!=="native"&&ee.value>((c==null?void 0:c.value)||0n)&&(W="Approve"):i==="lnv2-opposite"&&((Te==null?void 0:Te.id)!==(d==null?void 0:d.id)?(W="Switch Network",Q=d==null?void 0:d.id):(h==null?void 0:h.type)!=="native"&&ee.value>((s==null?void 0:s.value)||0n)&&(W="Approve")),ce=!(ee.value&&ee.valid)&&W==="Confirm"):(Te==null?void 0:Te.id)!==(d==null?void 0:d.id)&&(W="Switch Network",Q=d==null?void 0:d.id),N==="update"?ce=!(z.input&&z.valid&&ve.input&&ve.valid)&&W==="Confirm":N==="withdraw"&&(ce=!(g.value&&g.valid&&(ae!=null&&ae.value))&&W==="Confirm"),{okText:W,disableOk:ce,switchChainId:Q}},[Te,N,ae,z,ve,ee,g,i,d,f,h,m,s,c,ie]);return S.useEffect(()=>{const W=e==null?void 0:e.bridge,Q=st(e==null?void 0:e.fromChain),ce=st(e==null?void 0:e.toChain),pe=Q==null?void 0:Q.tokens.find(De=>{var Ie;return De.address.toLowerCase()===((Ie=e==null?void 0:e.sendToken)==null?void 0:Ie.toLowerCase())});e!=null&&e.baseFee&&_(BigInt(e.baseFee)),e!=null&&e.liquidityFeeRate&&C(Number(e.liquidityFeeRate)),e!=null&&e.margin&&w(BigInt(e.margin)),k(W),x(Q),E(ce),T(pe),te({input:"",valid:!0,value:0n}),re({input:"",valid:!0,value:0n}),R({input:"",valid:!0,value:0n}),fe({input:"",valid:!0,value:0n}),Ue({input:"",valid:!0,value:0}),M("update")},[e,_,C,w,k,x,E,T,R]),S.useEffect(()=>{let W;if(N==="withdraw"&&(o||a)&&((e==null?void 0:e.messageChannel)==="layerzero"||(e==null?void 0:e.messageChannel)==="msgline")){Z(!0);const Q={amount:ke.value,sender:Ee,relayer:e.relayer,transferId:e.lastTransferId,withdrawNonce:e.withdrawNonce,messageChannel:e.messageChannel};W=Yo(o?o.getWithdrawFeeParams(Q):a?a.getWithdrawFeeParams(Q):Promise.resolve(void 0)).subscribe({next:ne,error:ce=>{console.error(ce),ne(void 0),Z(!1)},complete:()=>Z(!1)})}else ne(void 0);return()=>W==null?void 0:W.unsubscribe()},[o,a,e,Ee,N,ke]),y.jsx(Bd,{title:"Manage Relayer",className:"w-full lg:w-[32rem]",okText:Me,isOpen:t,onClose:n,onOk:async()=>{let W;if(Ee&&d&&f&&h&&m){U(!0);try{Me==="Switch Network"?Qe==null||Qe(Y):N==="allowance"?i==="lnv2-default"&&o?W=await O(Ee,ie.value,o,f):i==="lnv2-opposite"&&a&&(W=await O(Ee,ie.value,a,f)):Me==="Approve"?i==="lnv2-default"&&o?await O(Ee,ee.value,o,f):i==="lnv2-opposite"&&a&&await P(Ee,ee.value,a,d):N==="update"?i==="lnv2-default"&&o?W=await D(z.value,ve.value,o,d):i==="lnv2-opposite"&&a&&(W=await B(Ee,p??0n,z.value,ve.value,a,d)):N==="deposit"?i==="lnv2-default"&&o?await I(he,d,f,h,m)?W=await F(Ee,ee.value,o,f):ms.warn({title:"Deposit failed",description:"The bridge does not exist."}):i==="lnv2-opposite"&&a&&(await I(he,d,f,h,m)?W=await B(Ee,ee.value,b??0n,v??0,a,d):ms.warn({title:"Deposit failed",description:"The bridge does not exist."})):N==="withdraw"&&i==="lnv2-default"&&o&&(W=await j((ae==null?void 0:ae.params)??Ee,g.value,(ae==null?void 0:ae.value)??0n,o,d))}catch(Q){console.error(Q),an(Q)}finally{U(!1),(W==null?void 0:W.status)==="success"&&(r(),n())}}},busy:J,disabledCancel:J,disabledOk:ge||N==="withdraw"&&Me==="Confirm"&&G,extra:N==="withdraw"?y.jsx("div",{className:"h-6 self-end",children:y.jsx("span",{className:"text-sm font-medium text-white/50",children:(e==null?void 0:e.messageChannel)==="layerzero"?"Powered by LayerZero & Helix":"Powered by Msgport & Helix"})}):y.jsx("div",{className:"h-6"}),onCancel:n,children:y.jsx(zZ,{options:[{key:"update",label:y.jsx("span",{className:"text-sm font-bold",children:"Update"}),children:y.jsxs("div",{className:"flex flex-col gap-5",style:{height:L},children:[y.jsx(rf,{label:"Base Fee",children:y.jsx(Ir,{token:h,value:z,onChange:fe})}),y.jsx(rf,{label:"Liquidity Fee Rate",children:y.jsx(T6,{value:ve,className:"bg-app-bg px-medium h-10 rounded-xl text-sm font-semibold text-white lg:h-11",placeholder:v===void 0?void 0:`${ml(v)}%`,onChange:Ue})})]})},{key:"deposit",label:y.jsx("span",{className:"text-sm font-bold",children:"Deposit"}),children:y.jsx(rf,{label:"More Margin",height:L,children:y.jsx(Ir,{balance:i==="lnv2-default"?u==null?void 0:u.value:i==="lnv2-opposite"?l==null?void 0:l.value:void 0,token:i==="lnv2-default"?u==null?void 0:u.token:i==="lnv2-opposite"?l==null?void 0:l.token:void 0,value:ee,onChange:re})})},{key:"withdraw",label:y.jsxs("div",{className:"gap-small flex items-center justify-center",children:[y.jsx("span",{className:"text-sm font-bold",children:"Withdraw"}),y.jsx(At,{content:"A cross-chain message is required to perform a `withdraw margin` operation",contentClassName:"w-72",className:"w-fit",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})})]}),children:y.jsxs("div",{className:"flex flex-col gap-5",ref:W=>X(Q=>(W==null?void 0:W.clientHeight)||Q),children:[y.jsx(rf,{label:"Withdraw Amount",children:y.jsx(Ir,{balance:p,token:h,value:g,onChange:R})}),y.jsx(rf,{label:"Withdraw Fee",tips:"This value is calculated and does not require input",children:y.jsx("div",{className:`bg-app-bg px-medium relative flex h-10 items-center justify-between rounded-xl border lg:h-11 ${ae||G?"border-transparent":"border-app-red"}`,children:G?y.jsx(Sh,{size:"small",color:"white"}):ae?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-sm font-semibold text-white",children:ut(ae.value,ae.token.decimals,{precision:6})}),y.jsx("span",{className:"text-sm font-semibold text-white",children:ae.token.symbol})]}):y.jsx("span",{className:"text-app-red absolute -bottom-5 left-0 text-xs font-medium",children:"* Failed to get fee, withdraw is temporarily unavailable"})})})]}),disabled:!((e==null?void 0:e.messageChannel)==="layerzero"||(e==null?void 0:e.messageChannel)==="msgline")},{key:"allowance",label:y.jsx("span",{className:"text-sm font-bold",children:"Allowance"}),children:y.jsx("div",{className:"flex flex-col gap-5",children:y.jsx(rf,{label:"Approve More",height:L,children:y.jsx(Ir,{balance:u==null?void 0:u.value,token:u==null?void 0:u.token,value:ie,onChange:te})})}),hidden:(m==null?void 0:m.type)==="native"}],activeKey:N,onChange:M})})}function rf({label:e,children:t,height:n,tips:r}){return y.jsxs("div",{className:"gap-medium flex flex-col",style:{height:n},children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:e}),r?y.jsx(At,{content:r,children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]}),t]})}function HZ({onPageChange:e,onRefetch:t,totalRecords:n,isDashboard:r,currentPage:o,dataSource:a,pageSize:i,version:s,loading:c}){const[l,u]=S.useState(),d=S.useMemo(()=>r?s==="lnv3"?[Dv({version:s,isDashboard:r}),kv({version:s,isDashboard:r}),jv({version:s,isDashboard:r}),Pv({version:s,isDashboard:r}),Iv(),Ov(),Rv(),iM(),sM(),NMe(),cM(),lM(),uM({onClick:u})]:[Dv({version:s,isDashboard:r}),kv({version:s,isDashboard:r}),jv({version:s,isDashboard:r}),Pv({version:s,isDashboard:r}),Iv(),Ov(),Rv(),aM(),cM(),lM(),uM({onClick:u})]:s==="lnv3"?[Dv({version:s,isDashboard:r}),dM(),kv({version:s,isDashboard:r}),jv({version:s,isDashboard:r}),Pv({version:s,isDashboard:r}),Iv(),Ov(),Rv(),iM(),sM()]:[Dv({version:s,isDashboard:r}),dM(),kv({version:s,isDashboard:r}),jv({version:s,isDashboard:r}),Pv({version:s,isDashboard:r}),Iv(),Ov(),Rv(),aM()],[s,r]),f=S.useCallback(()=>u(void 0),[]);return y.jsxs(y.Fragment,{children:[y.jsx(AMe,{onPageChange:e,totalRecords:n,currentPage:o,dataSource:a,pageSize:i,columns:d,loading:c,className:s==="lnv3"?"min-w-[68rem]":"min-w-[60rem]"}),r&&(s==="lnv3"?y.jsx(LMe,{relayerInfo:l,isOpen:!!l,onClose:f,onSuccess:t}):y.jsx(UMe,{relayerInfo:l,isOpen:!!l,onClose:f,onSuccess:t}))]})}function qZ({placeholder:e,className:t,value:n,onClear:r,onChange:o=()=>{}}){return y.jsxs("div",{className:`normal-input-wrap valid-input-wrap gap-small rounded-medium px-medium focus-within:border-primary flex items-center justify-between border-white/20 py-2 ${t}`,children:[y.jsx(NP,{placeholder:e,type:"text",value:n,onChange:a=>o(a.target.value),className:"rounded-small w-full bg-transparent text-sm font-medium text-white"}),n?y.jsx("button",{className:"relative h-[20px] w-[20px] shrink-0 rounded-full bg-transparent p-[2px] transition hover:scale-105 hover:bg-white/20 active:scale-95",onClick:r,children:y.jsx("img",{alt:"Close",src:"images/close.svg",className:"h-full w-full"})}):y.jsx("img",{width:20,height:20,alt:"Search",src:"images/search.svg",className:"shrink-0"})]})}function A6({enabled:e,enabledAfterClick:t,onClick:n,onRefresh:r}){const o=S.useRef(null),a=S.useRef(null);return S.useEffect(()=>{var i,s,c,l,u;e?(i=o.current)!=null&&i.classList.contains("refresh-countdown")||(s=o.current)==null||s.classList.add("refresh-countdown"):((l=(c=o.current)==null?void 0:c.getAnimations().at(0))==null||l.cancel(),(u=o.current)==null||u.classList.remove("refresh-countdown"))},[e]),y.jsx("button",{className:"rounded-full bg-transparent transition hover:scale-105 hover:bg-white/10 active:scale-95",onClick:()=>{var i,s,c,l;(s=(i=o.current)==null?void 0:i.getAnimations().at(0))==null||s.cancel(),(c=o.current)==null||c.classList.remove("refresh-countdown"),t&&setTimeout(()=>{var u;(u=o.current)==null||u.classList.add("refresh-countdown")},300),(l=a.current)==null||l.dispatchEvent(new Event("click")),n&&n()},children:y.jsxs("svg",{ref:a,id:"countdown_refresh",xmlns:"http://www.w3.org/2000/svg",viewBox:"-6 -6 36 36",width:"36",height:"36",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[y.jsx("path",{stroke:"none",fill:"none",className:"fill-white/30",d:"M16.2751 7.78995C13.932 5.44681 10.133 5.44681 7.78986 7.78995C7.02853 8.55128 6.51457 9.4663 6.24798 10.4351C6.24473 10.4499 6.24114 10.4646 6.23719 10.4793C6.17635 10.7064 6.12938 10.9339 6.09577 11.161C5.83159 12.9457 6.39255 14.7026 7.52624 15.9944C7.61054 16.0901 7.69842 16.1838 7.78986 16.2752C8.08307 16.5685 8.39909 16.825 8.7322 17.0448C9.25533 17.3892 9.84172 17.6568 10.4798 17.8278C10.7386 17.8971 10.9979 17.9484 11.2565 17.9825C12.9537 18.2061 14.6187 17.6866 15.8747 16.6415C16.0123 16.5265 16.1459 16.4044 16.2751 16.2752C16.2848 16.2655 16.2947 16.2561 16.3047 16.2469C17.0123 15.531 17.5491 14.627 17.8283 13.5851C17.9712 13.0517 18.5196 12.7351 19.053 12.878C19.5865 13.021 19.9031 13.5693 19.7602 14.1028C19.3141 15.7676 18.3745 17.1684 17.1409 18.1899C16.1883 18.9822 15.0949 19.5189 13.9515 19.8002C11.8607 20.3147 9.6028 19.9749 7.7328 18.7809C7.06855 18.3579 6.47841 17.8432 5.97519 17.2589C5.12341 16.2738 4.55173 15.1302 4.26015 13.9324C4.01698 12.9416 3.96104 11.8931 4.12168 10.8379C4.36697 9.20484 5.1183 7.63309 6.37564 6.37574C9.49984 3.25154 14.5652 3.25154 17.6894 6.37574L18.2332 6.91959L18.2337 5.49951C18.2338 5.05769 18.5921 4.69964 19.034 4.69979C19.4758 4.69995 19.8338 5.05825 19.8337 5.50007L19.8325 9.03277L19.8322 9.8325L19.0325 9.83249L18.9401 9.83249C18.8146 9.85665 18.6854 9.85665 18.5599 9.83248L15.5005 9.83245C15.0587 9.83245 14.7005 9.47427 14.7005 9.03244C14.7005 8.59062 15.0587 8.23245 15.5005 8.23245L16.7176 8.23246L16.2751 7.78995Z"}),y.jsxs("defs",{children:[y.jsx("path",{id:"refresh",stroke:"none",fill:"none",d:"M16.2751 7.78995C13.932 5.44681 10.133 5.44681 7.78986 7.78995C7.02853 8.55128 6.51457 9.4663 6.24798 10.4351C6.24473 10.4499 6.24114 10.4646 6.23719 10.4793C6.17635 10.7064 6.12938 10.9339 6.09577 11.161C5.83159 12.9457 6.39255 14.7026 7.52624 15.9944C7.61054 16.0901 7.69842 16.1838 7.78986 16.2752C8.08307 16.5685 8.39909 16.825 8.7322 17.0448C9.25533 17.3892 9.84172 17.6568 10.4798 17.8278C10.7386 17.8971 10.9979 17.9484 11.2565 17.9825C12.9537 18.2061 14.6187 17.6866 15.8747 16.6415C16.0123 16.5265 16.1459 16.4044 16.2751 16.2752C16.2848 16.2655 16.2947 16.2561 16.3047 16.2469C17.0123 15.531 17.5491 14.627 17.8283 13.5851C17.9712 13.0517 18.5196 12.7351 19.053 12.878C19.5865 13.021 19.9031 13.5693 19.7602 14.1028C19.3141 15.7676 18.3745 17.1684 17.1409 18.1899C16.1883 18.9822 15.0949 19.5189 13.9515 19.8002C11.8607 20.3147 9.6028 19.9749 7.7328 18.7809C7.06855 18.3579 6.47841 17.8432 5.97519 17.2589C5.12341 16.2738 4.55173 15.1302 4.26015 13.9324C4.01698 12.9416 3.96104 11.8931 4.12168 10.8379C4.36697 9.20484 5.1183 7.63309 6.37564 6.37574C9.49984 3.25154 14.5652 3.25154 17.6894 6.37574L18.2332 6.91959L18.2337 5.49951C18.2338 5.05769 18.5921 4.69964 19.034 4.69979C19.4758 4.69995 19.8338 5.05825 19.8337 5.50007L19.8325 9.03277L19.8322 9.8325L19.0325 9.83249L18.9401 9.83249C18.8146 9.85665 18.6854 9.85665 18.5599 9.83248L15.5005 9.83245C15.0587 9.83245 14.7005 9.47427 14.7005 9.03244C14.7005 8.59062 15.0587 8.23245 15.5005 8.23245L16.7176 8.23246L16.2751 7.78995Z"}),y.jsx("clipPath",{id:"refresh-clip",children:y.jsx("use",{xlinkHref:"#refresh"})})]}),y.jsx("g",{clipPath:"url(#refresh-clip)",children:y.jsx("circle",{ref:o,cx:"12",cy:"12",r:"5",transform:"rotate(365,12,12)",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeDasharray:"30",strokeDashoffset:"0",onAnimationIteration:()=>{r&&r()}})}),y.jsx("use",{xlinkHref:"#refresh"}),y.jsx("animateTransform",{id:"transform_0",attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 0 0",to:"-10 0 0",dur:"0.07s",begin:"countdown_refresh.click;",repeatCount:"1"}),y.jsx("animateTransform",{id:"transform_1",attributeName:"transform",attributeType:"XML",type:"rotate",from:"-45 0 0",to:"390 0 0",dur:"0.6s",begin:"transform_0.end",repeatCount:"1"}),y.jsx("animateTransform",{id:"transform_2",attributeName:"transform",attributeType:"XML",type:"rotate",from:"390 0 0",to:"360 0 0",dur:"0.15s",begin:"transform_1.end",repeatCount:"1"})]})})}function Fh({value:e,placeholder:t,className:n,options:r=[],onChange:o=()=>{}}){return y.jsx(RP,{sameWidth:!0,clearable:!0,label:e?y.jsxs("div",{className:"gap-medium flex items-center truncate",children:[y.jsx("img",{alt:"Chain",width:22,height:22,src:Rn(e.logo),className:"hidden shrink-0 rounded-full lg:inline"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:e.name})]}):void 0,placeholder:y.jsx("span",{className:"truncate text-sm font-semibold text-slate-400",children:t}),labelClassName:`gap-small flex items-center justify-between ${n}`,childClassName:"bg-app-bg flex flex-col rounded-xl max-h-64 overflow-y-auto border border-white/20 py-small",onClear:()=>o(void 0),children:r.length?r.map(a=>y.jsxs("button",{disabled:(e==null?void 0:e.id)===a.id,onClick:()=>o(a),className:"gap-medium px-large py-medium flex items-center text-start transition-colors hover:bg-white/5 disabled:bg-white/10",children:[y.jsx("img",{width:22,height:22,alt:a.name,src:Rn(a.logo),className:"rounded-full"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:a.name})]},a.id)):y.jsx("div",{className:"inline-flex justify-center p-2",children:y.jsx("span",{className:"text-sm font-semibold text-slate-400",children:"No data"})})})}const hM=10,{defaultSourceChains:$Me,defaultTargetChains:zMe}=n4();function HMe({version:e}){const[t,n]=S.useState(),[r,o]=S.useState(),[a,i]=S.useState(0),[s,c]=S.useState(""),l=S.useDeferredValue(s),{loading:u,data:d,total:f,refetch:h}=zY(e,a,hM,l,t,r),m=S.useCallback(b=>{c(b),i(0)},[]),p=S.useCallback(()=>{c(""),i(0)},[]);return S.useEffect(()=>i(0),[e]),y.jsxs("div",{className:"space-y-5",children:[y.jsxs("div",{className:"gap-medium flex flex-col items-start justify-between lg:flex-row lg:items-center",children:[y.jsx(qZ,{value:s,onClear:p,onChange:m,placeholder:"Search by address",className:"w-full lg:w-[21.5rem]"}),y.jsxs("div",{className:"gap-small flex items-center lg:gap-5",children:[y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("span",{className:"hidden text-sm font-semibold text-white lg:inline",children:"From"}),y.jsx(Fh,{className:"rounded-medium px-medium h-9 w-40 border border-white/20 lg:w-44",placeholder:"Source chain",options:$Me,onChange:b=>{n(b),o(void 0),i(0)},value:t})]}),y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("span",{className:"hidden text-sm font-semibold text-white lg:inline",children:"To"}),y.jsx(Fh,{className:"rounded-medium px-medium h-9 w-40 border border-white/20 lg:w-44",placeholder:"Target chain",options:r4(t,zMe),onChange:b=>{o(b),i(0)},value:r})]}),y.jsx(A6,{onClick:h})]})]}),y.jsx(HZ,{onPageChange:i,onRefetch:h,currentPage:a,totalRecords:f,pageSize:hM,dataSource:d,version:e,loading:u})]})}function mM({children:e}){const[t,n]=S.useState(void 0),[r,o]=S.useState(void 0),[a,i]=S.useState(void 0),[s,c]=S.useState(void 0),[l,u]=S.useState(void 0),[d,f]=S.useState(void 0),[h,m]=S.useState(void 0),[p,b]=S.useState(void 0),[v,g]=S.useState(!1),{data:w}=yy(),_=zs(),{address:C}=tn(),x=S.useMemo(()=>kK(t,r,a).at(0),[t,r,a]),E=S.useMemo(()=>new Zj({category:"lnbridge",sourceChain:t,targetChain:r,sourceToken:a,targetToken:x,publicClient:_,walletClient:w,protocol:"lnv3"}),[t,r,a,x,w,_]),T=S.useCallback(async O=>{const{data:I}=await O.query({query:uV,variables:{fromChainId:t==null?void 0:t.id,toChainId:r==null?void 0:r.id,fromToken:a==null?void 0:a.address,toToken:x==null?void 0:x.address,version:"lnv3"},fetchPolicy:"no-cache"});return I.checkLnBridgeExist?!0:(ms.warn({title:"Transaction failed",description:"The bridge does not exist."}),!1)},[t,r,a,x]),k=S.useCallback(async O=>{if(C)try{const I=await E.sourceApprove(O,C);return Vr(I,E.getSourceChain(),"Approval"),u(await E.getSourceAllowance(C)),I}catch(I){console.error(I),an(I)}},[C,E]),D=S.useCallback(async O=>{if(C)try{const I=await E.targetApprove(O,C);return Vr(I,E.getTargetChain(),"Approval"),f(await E.getTargetAllowance(C)),I}catch(I){console.error(I),an(I)}},[C,E]),R=S.useCallback(async()=>{try{g(!0);const O=await E.getPenaltyReserves(C);g(!1),c(O==null?void 0:O.value)}catch(O){console.error(O),g(!1)}},[C,E]),F=S.useCallback(async O=>{try{const I=await E.depositPenaltyReserve(O);return Vr(I,E.getSourceChain(),"Deposite"),(I==null?void 0:I.status)==="success"&&(await R(),C&&m(await E.getSourceBalance(C))),I}catch(I){console.error(I),an(I)}},[C,E,R]),B=S.useCallback(async(O,I,N)=>{try{const M=await E.registerLnProvider(O,I,N);return Vr(M,E.getSourceChain(),"Register"),M}catch(M){console.error(M),an(M)}},[E]),j=S.useCallback(async O=>{try{const I=await E.withdrawPenaltyReserve(O);return Vr(I,E.getSourceChain(),"Withdraw"),(I==null?void 0:I.status)==="success"&&(await R(),C&&m(await E.getSourceBalance(C))),I}catch(I){console.error(I),an(I)}},[E,C,R]),P=S.useCallback(async(O,I,N)=>{if(C)try{const M=await E.requestWithdrawLiquidity(C,jK(O.map(({id:L})=>L)),I,N??C);return Vr(M,E.getTargetChain(),"Withdraw"),M}catch(M){console.error(M),an(M)}},[E,C]);return S.useEffect(()=>{let O;return C&&E?(g(!0),O=qx([E.getSourceAllowance(C),E.getTargetAllowance(C),E.getSourceBalance(C),E.getTargetBalance(C),E.getPenaltyReserves(C)]).subscribe({next:([I,N,M,L,X])=>{g(!1),u(I),f(N),m(M),b(L),c(X==null?void 0:X.value)},error:I=>{console.error(I),g(!1),u(void 0),f(void 0),m(void 0),b(void 0),c(void 0)}})):(u(void 0),f(void 0),m(void 0),b(void 0),c(void 0)),()=>{O==null||O.unsubscribe()}},[C,E]),y.jsx(rH.Provider,{value:{bridgeInstance:E,sourceChain:t,targetChain:r,sourceToken:a,targetToken:x,penaltyReserve:s,sourceAllowance:l,targetAllowance:d,sourceBalance:h,targetBalance:p,isGettingPenaltyReserves:v,setSourceChain:n,setTargetChain:o,setSourceToken:i,isLnBridgeExist:T,sourceApprove:k,targetApprove:D,depositPenaltyReserve:F,registerLnProvider:B,withdrawPenaltyReserve:j,withdrawLiquidity:P},children:e})}function ah({step:e,title:t}){return y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("div",{className:"bg-primary inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-xl font-bold text-white",children:e})}),y.jsx("h5",{className:"text-lg font-bold text-white",children:t})]})}function WZ({options:e,disabled:t,value:n,placeholder:r,onChange:o=()=>{}}){return y.jsx(RP,{clearable:!0,sameWidth:!0,labelClassName:"gap-small flex items-center justify-between rounded-xl bg-app-bg h-11 px-medium",childClassName:"bg-app-bg py-medium flex flex-col rounded-xl border border-white/20 max-h-52 overflow-y-auto app-scrollbar",label:n?y.jsxs("div",{className:"gap-medium flex items-center truncate",children:[y.jsx("img",{alt:"Chain",width:22,height:22,src:vr(n.logo),className:"hidden shrink-0 rounded-full lg:inline"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:n.symbol})]}):void 0,placeholder:y.jsx("span",{className:"text-sm font-semibold text-slate-400",children:r}),disabled:t,onClear:()=>o(void 0),children:e.length?e.map(a=>y.jsxs("button",{onClick:()=>{o(a)},className:"gap-medium px-large py-small flex items-center transition hover:bg-white/5",children:[y.jsx("img",{width:26,height:26,alt:"Token",src:vr(a.logo),className:"rounded-full"}),y.jsxs("div",{className:"flex flex-col items-start",children:[y.jsx("span",{className:"text-sm font-semibold text-white",children:a.symbol}),a.type==="native"?y.jsx("span",{className:"text-xs font-medium text-white/50",children:"native token"}):y.jsx(Ca,{address:a.address,copyable:!0,className:"text-xs font-medium text-white/50"})]})]},a.symbol)):y.jsx("div",{className:"inline-flex justify-center p-2",children:y.jsx("span",{className:"text-sm font-semibold text-slate-400",children:"No data"})})})}function lr({property:e,address:t,bridge:n,chain:r,token:o,balance:a,percent:i,className:s}){return y.jsxs("div",{className:`gap-small flex-col items-start ${s??"flex"}`,children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:e}),!!t&&y.jsx(Ca,{address:t,forceShort:!0,className:"text-sm font-semibold text-white"}),!!n&&y.jsx("span",{className:"text-sm font-semibold text-white",children:n==="lnv3"?"LnBridgeV3":n==="lnv2-opposite"?"Opposite":"Default"}),!!r&&y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:18,height:18,alt:"Chain",src:Rn(r.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:r.name})]}),o&&a?y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:ut(a,o.decimals)}):null,!!o&&!a&&y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:18,height:18,alt:"Token",src:vr(o.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:o.symbol})]}),!!i&&y.jsxs("span",{className:"text-sm font-semibold text-white",children:[i,"%"]})]})}const{defaultSourceChains:qMe,defaultTargetChains:WMe}=n4(),of={input:"",valid:!0,value:0n},pM={input:"",valid:!0,value:0};function GMe({onManage:e=()=>{}}){const{sourceChain:t,targetChain:n,sourceToken:r,targetToken:o,sourceBalance:a,targetBalance:i,sourceAllowance:s,targetAllowance:c,setSourceChain:l,setTargetChain:u,setSourceToken:d,sourceApprove:f,targetApprove:h,depositPenaltyReserve:m,registerLnProvider:p,isLnBridgeExist:b}=B8(),[v,g]=S.useState(of),[w,_]=S.useState(of),[C,x]=S.useState(of),[E,T]=S.useState(pM),[k,D]=S.useState(0),[R,F]=S.useState(!1),[B,j]=S.useState(!1),[P,O]=S.useState(!1),[I,N]=S.useState(!1),{state:M,setTrue:L,setFalse:X}=zg(!1),J=uy(),{address:U}=tn(),{chain:G}=To(),{switchNetwork:Z}=Tl(),{openConnectModal:ae}=Eb(),ne=S.useCallback(async()=>{try{if(O(!0),(t==null?void 0:t.id)!==(G==null?void 0:G.id))Z==null||Z(t==null?void 0:t.id);else if(await b(J)){const ee=await p(C.value,E.value,w.value);j((ee==null?void 0:ee.status)==="success")}}catch(ee){console.error(ee),an(ee)}finally{O(!1)}},[G,J,t,C,E,w,b,p,Z]),ie=S.useCallback(async()=>{try{if(F(!0),(t==null?void 0:t.id)!==(G==null?void 0:G.id))Z==null||Z(t==null?void 0:t.id);else if(await b(J))if((r==null?void 0:r.type)!=="native"&&v.value>((s==null?void 0:s.value)||0n))await f(v.value);else{const ee=await m(v.value);(ee==null?void 0:ee.status)==="success"&&(o!=null&&o.type&&(o==null?void 0:o.type)!=="native"?D(4):L())}}catch(ee){console.error(ee),an(ee)}finally{F(!1)}},[G,J,t,r,o,s,v,m,f,b,Z,L]),te=S.useCallback(async()=>{try{N(!0),(G==null?void 0:G.id)!==(n==null?void 0:n.id)?Z==null||Z(n==null?void 0:n.id):await h((i==null?void 0:i.value)||0n)}catch(ee){console.error(ee),an(ee)}finally{N(!1)}},[G,n,i,h,Z]);return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mx-auto flex w-full flex-col gap-5 lg:w-[40rem]",children:[y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:1,title:"Select Chain and Token"}),y.jsx(mc,{}),k===0&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(hc,{text:"From",className:"flex-1",children:y.jsx(Fh,{className:"bg-app-bg px-medium h-10 rounded-xl lg:h-11",options:qMe,placeholder:"Source chain",value:t,onChange:ee=>{l(ee),u(void 0),d(void 0)}})}),y.jsx(hc,{text:"To",className:"flex-1",children:y.jsx(Fh,{className:"bg-app-bg px-medium h-10 rounded-xl lg:h-11",options:r4(t,WMe),placeholder:"Target chain",value:n,onChange:ee=>{u(ee),d(void 0)}})})]}),y.jsx(hc,{text:"Token",children:y.jsx(WZ,{disabled:!uE(t,n).length,options:uE(t,n),placeholder:"Select a token",value:r,onChange:d})}),y.jsx(mc,{}),y.jsx(pn,{onClick:()=>{U?D(2):ae==null||ae()},kind:"primary",className:"inline-flex h-11 items-center justify-center rounded-full",disabled:!r,children:y.jsx("span",{className:"text-sm font-semibold text-white",children:U?"Next":"Connect Wallet"})})]}),1<=k&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"gap-small flex items-center justify-between",children:[y.jsx(lr,{property:"Address",address:U,className:"hidden lg:flex"}),y.jsx(lr,{property:"Bridge Type",bridge:"lnv3",className:"hidden lg:flex"}),y.jsx(lr,{property:"From",chain:t}),y.jsx(lr,{property:"To",chain:n}),y.jsx(lr,{property:"Token",token:r})]}),y.jsx(mc,{}),y.jsx(pn,{kind:"default",onClick:()=>{D(0),l(void 0),u(void 0),d(void 0),g(of),_(of),x(of),T(pM),j(!1)},className:"inline-flex h-11 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Reset"})})]})]}),y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:2,title:"Deposit Penalty Reserve and Set Fee"}),k===2&&y.jsxs(y.Fragment,{children:[y.jsx(mc,{}),y.jsx(hc,{text:"Base Fee",tips:"The fixed fee set by the relayer and charged in a transaction",children:y.jsx(Ir,{token:r,value:C,onChange:x})}),y.jsx(hc,{text:"Liquidity Fee Rate",tips:"The percentage deducted by the relayer from the transfer amount in a transaction",children:y.jsx(T6,{isV3:!0,placeholder:"Enter 0 ~ 100",className:"bg-app-bg px-medium h-10 rounded-xl text-sm font-semibold text-white lg:h-11",value:E,onChange:T})}),y.jsx(hc,{text:"Transfer Limit",children:y.jsx(Ir,{token:r,value:w,onChange:_})}),y.jsx(mc,{}),y.jsx(pn,{kind:B?"default":"primary",disabled:B||(t==null?void 0:t.id)===(G==null?void 0:G.id)&&!(C.input&&C.valid&&E.input&&E.valid&&w.input&&w.valid&&o4(E.value,!0)),busy:P,className:"inline-flex h-11 items-center justify-center rounded-full",onClick:ne,children:y.jsx("span",{className:"text-sm font-semibold text-white",children:(t==null?void 0:t.id)!==(G==null?void 0:G.id)?"Switch Network":"Register"})}),y.jsx(hc,{text:"Deposit Penalty Reserve",children:y.jsx(Ir,{balance:a==null?void 0:a.value,token:a==null?void 0:a.token,value:v,onChange:g})}),y.jsx(pn,{kind:B?"primary":"default",className:"inline-flex h-11 items-center justify-center rounded-full",disabled:!B||(t==null?void 0:t.id)===(G==null?void 0:G.id)&&!(v.input&&v.valid),busy:R,onClick:ie,children:y.jsx("span",{className:"text-sm font-semibold text-white",children:B&&(t==null?void 0:t.id)!==(G==null?void 0:G.id)?"Switch Network":(r==null?void 0:r.type)!=="native"&&v.value>((s==null?void 0:s.value)||0n)?"Approve":"Deposit"})})]}),3<=k&&y.jsxs(y.Fragment,{children:[y.jsx(mc,{}),y.jsxs("div",{className:"gap-small flex items-center justify-between",children:[y.jsx(lr,{property:"Transfer Limit",token:r,balance:w.value}),y.jsx(lr,{property:"Penalty Reserve",token:r,balance:v.value}),y.jsx(lr,{property:"Base Fee",token:r,balance:C.value}),y.jsx(lr,{property:"Liquidity Fee Rate",percent:ml(E.value)})]})]})]}),o!=null&&o.type&&o.type!=="native"?y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:3,title:"Authorize Token on Target Chain and Run Relayer"}),k===4&&y.jsxs(y.Fragment,{children:[y.jsx(VMe,{content:"Authorize token on target chain and run relayer to start relaying messages and earn rewards. Please note this step authorizes tokens for the relayer to send to users' target chain address based on transactions. Ensure you authorize enough tokens for multiple transactions as needed."}),y.jsx(mc,{}),y.jsx(hc,{text:"Current Allowance",children:y.jsx(Ir,{token:c==null?void 0:c.token,disabled:!0,value:{value:(c==null?void 0:c.value)??0n,input:ut((c==null?void 0:c.value)??0n,(c==null?void 0:c.token.decimals)??0),valid:!0},placeholder:"-"})}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(pn,{kind:"default",onClick:L,className:"inline-flex h-11 flex-1 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Skip"})}),y.jsx(pn,{kind:"primary",onClick:te,className:"inline-flex h-11 flex-1 items-center justify-center rounded-full",busy:I,disabled:(r==null?void 0:r.type)==="native",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:(G==null?void 0:G.id)===(n==null?void 0:n.id)?"Approve More":"Switch Network"})})]})]})]}):null]}),y.jsxs(Bd,{title:"One More Step!",subTitle:y.jsxs("div",{className:"flex flex-wrap items-center text-sm font-semibold text-white",children:["Now ",y.jsx(gM,{style:"link"})," to start relaying messages and earn rewards."]}),isOpen:M,onClose:X,children:[y.jsxs("div",{className:"gap-x-small grid items-center gap-y-5 text-sm font-semibold text-white",style:{gridTemplateColumns:"130px auto"},children:[y.jsx("span",{className:"text-white/50",children:"Address"}),U?y.jsx(Ca,{address:U}):null,y.jsx("span",{className:"text-white/50",children:"Bridge Type"}),y.jsx("span",{children:"LnBridgeV3"}),y.jsx("span",{className:"text-white/50",children:"From"}),y.jsx(yM,{chain:t}),y.jsx("span",{className:"text-white/50",children:"To"}),y.jsx(yM,{chain:n}),y.jsx("span",{className:"text-white/50",children:"Token"}),y.jsx(KMe,{token:r}),y.jsx("span",{className:"text-white/50",children:"Penalty Reserve"}),y.jsx(ET,{amount:v.value,token:r}),y.jsx("span",{className:"text-white/50",children:"Transfer Limit"}),y.jsx(ET,{amount:w.value,token:r}),y.jsx("span",{className:"text-white/50",children:"Base Fee"}),y.jsx(ET,{amount:C.value,token:r}),y.jsx("span",{className:"text-white/50",children:"Liquidity Fee Rate"}),y.jsxs("span",{children:[ml(E.value),"%"]})]}),y.jsx(mc,{}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(pn,{kind:"default",onClick:e,className:"inline-flex h-10 flex-1 items-center justify-center rounded-full lg:h-11",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Manage"})}),y.jsx(gM,{style:"button"})]})]})]})}function gM({style:e,onClick:t=()=>{}}){return y.jsx("a",{href:"https://github.com/helix-bridge/relayer/tree/main",className:`inline-flex items-center justify-center ${e==="button"?"bg-primary h-10 flex-1 items-center justify-center rounded-full text-sm font-semibold text-white transition-opacity hover:opacity-80 lg:h-11":"text-primary text-sm font-semibold hover:underline"}`,rel:"noopener",target:"_blank",onClick:t,children:e==="button"?"Run relayer":"run a relayer"})}function hc({children:e,text:t,tips:n,className:r}){return y.jsxs("div",{className:`gap-medium flex flex-col ${r}`,children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:t}),n?y.jsx(At,{content:n,className:"w-fit",contentClassName:"max-w-[20rem]",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]}),e]})}function VMe({content:e}){return y.jsx("span",{className:"text-sm font-medium text-white/50",children:e})}function yM({chain:e}){return e?y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:22,height:22,alt:"Chain",src:Rn(e.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{children:e.name})]}):""}function KMe({token:e}){return e?y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:22,height:22,alt:"Chain",src:vr(e.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{children:e.symbol})]}):""}function ET({token:e,amount:t}){return y.jsx("span",{children:e?`${ut(t,e.decimals,{precision:6})} ${e.symbol}`:""})}function mc(){return y.jsx("div",{className:"h-[1px] bg-white/10"})}function bM({children:e}){const[t,n]=S.useState(),[r,o]=S.useState(),[a,i]=S.useState(),[s,c]=S.useState(),[l,u]=S.useState(),[d,f]=S.useState(),[h,m]=S.useState(),[p,b]=S.useState(),[v,g]=S.useState(),[w,_]=S.useState(),[C,x]=S.useState(),[E,T]=S.useState({input:"",valid:!0,value:0n}),{data:k}=yy(),D=zs(),{address:R}=tn(),F=S.useMemo(()=>kK(p,v,w).at(0),[p,v,w]),{defaultBridge:B,oppositeBridge:j,bridgeInstance:P}=S.useMemo(()=>{let U,G;const Z={sourceChain:p,targetChain:v,sourceToken:w,targetToken:F,walletClient:k,publicClient:D};return Bye(w,v)?U=new dV({category:"lnv2-default",...Z,protocol:"lnv2-default"}):Fye(w,v)&&(G=new fV({category:"lnv2-opposite",...Z,protocol:"lnv2-opposite"})),{defaultBridge:U,oppositeBridge:G,bridgeInstance:U??G}},[p,v,w,F,k,D]),O=S.useCallback(async(U,G,Z,ae,ne)=>{const{data:ie}=await U.query({query:uV,variables:{fromChainId:G.id,toChainId:Z.id,fromToken:ae.address,toToken:ne.address,version:"lnv2"},fetchPolicy:"no-cache"});return ie.checkLnBridgeExist?!0:(console.warn("[isLnBridgeExist]",G.id,Z.id,ae.address,ne.address),!1)},[]),I=S.useCallback(async(U,G,Z,ae)=>{try{const ne=await Z.sourceApprove(G,U);return Vr(ne,ae,"Approval"),c(await Z.getSourceAllowance(U)),ne}catch(ne){console.error(ne),an(ne)}},[]),N=S.useCallback(async(U,G,Z,ae)=>{try{const ne=await Z.targetApprove(G,U);return Vr(ne,ae,"Approval"),u(await Z.getTargetAllowance(U)),ne}catch(ne){console.error(ne),an(ne)}},[]),M=S.useCallback(async(U,G,Z,ae)=>{try{const ne=await Z.depositMargin(G);Vr(ne,ae,"Deposite");const ie=await Z.getTargetAllowance(U),te=await Z.getTargetBalance(U);return u(ie),m(te),ne}catch(ne){console.error(ne),an(ne)}},[]),L=S.useCallback(async(U,G,Z,ae)=>{try{const ne=await Z.setFeeAndRate(U,G);return Vr(ne,ae),ne}catch(ne){console.error(ne),an(ne)}},[]),X=S.useCallback(async(U,G,Z,ae,ne,ie)=>{try{const te=await ne.updateFeeAndMargin(G,Z,ae);Vr(te,ie);const ee=await ne.getSourceAllowance(U),re=await ne.getSourceBalance(U);return c(ee),f(re),te}catch(te){console.error(te),an(te)}},[]),J=S.useCallback(async(U,G,Z,ae,ne)=>{try{const ie=await ae.withdrawMargin(U,G,Z);return Vr(ie,ne,"Withdraw"),ie}catch(ie){console.error(ie),an(ie)}},[]);return S.useEffect(()=>{let U;return R&&P?U=qx([P.getSourceAllowance(R),P.getTargetAllowance(R),P.getSourceBalance(R),P.getTargetBalance(R)]).subscribe({next:([G,Z,ae,ne])=>{c(G),u(Z),f(ae),m(ne)},error:G=>{console.error(G),c(void 0),u(void 0),f(void 0),m(void 0)}}):(c(void 0),u(void 0),f(void 0),m(void 0)),()=>U==null?void 0:U.unsubscribe()},[R,P]),y.jsx(tH.Provider,{value:{margin:t,baseFee:r,feeRate:a,sourceAllowance:s,targetAllowance:l,sourceBalance:d,targetBalance:h,sourceChain:p,targetChain:v,sourceToken:w,targetToken:F,bridgeCategory:C,defaultBridge:B,oppositeBridge:j,withdrawAmount:E,setMargin:n,setBaseFee:o,setFeeRate:i,setSourceAllowance:c,setTargetAllowance:u,setSourceBalance:f,setTargetBalance:m,setSourceChain:b,setTargetChain:g,setSourceToken:_,setBridgeCategory:x,setWithdrawAmount:T,sourceApprove:I,targetApprove:N,depositMargin:M,updateFeeAndMargin:X,setFeeAndRate:L,withdrawMargin:J,isLnBridgeExist:O},children:e})}const{defaultSourceChains:YMe,defaultTargetChains:QMe}=n4(!0);function XMe({onManage:e=()=>{}}){const{sourceChain:t,targetChain:n,sourceToken:r,targetToken:o,sourceAllowance:a,sourceBalance:i,targetAllowance:s,targetBalance:c,defaultBridge:l,oppositeBridge:u,setBridgeCategory:d,setSourceChain:f,setTargetChain:h,setSourceToken:m,setFeeAndRate:p,sourceApprove:b,targetApprove:v,depositMargin:g,updateFeeAndMargin:w,isLnBridgeExist:_}=nH(),[C,x]=S.useState(!1),[E,T]=S.useState(!1),[k,D]=S.useState(!1),[R,F]=S.useState(!1),[B,j]=S.useState(0),[P,O]=S.useState({input:"",valid:!0,value:0n}),[I,N]=S.useState({input:"",valid:!0,value:0n}),[M,L]=S.useState({input:"",valid:!0,value:0}),X=uy(),{address:J}=tn(),{chain:U}=To(),{switchNetwork:G}=Tl(),{openConnectModal:Z}=Eb(),ae=S.useCallback(async(ne,ie,te,ee,re)=>{var fe;const{data:z}=await X.query({query:Aye,variables:{fromChain:ie.network,toChain:te.network,bridge:re,relayer:ne.toLowerCase(),page:0,row:2},fetchPolicy:"no-cache"});return(fe=z.queryLnBridgeRelayInfos)!=null&&fe.records.some(({sendToken:ve})=>(ve==null?void 0:ve.toLowerCase())===ee.address.toLowerCase())?(ms.warn({title:"Transaction failed",description:"You have registered a relayer that supports this cross-chain."}),!0):!1},[X]);return S.useEffect(()=>{d(qye(t,n,r).at(0))},[t,n,r,d]),y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mx-auto flex w-full flex-col gap-5 lg:w-[40rem]",children:[y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:1,title:"Select Chain and Token"}),B===0&&y.jsxs(y.Fragment,{children:[y.jsx(_T,{content:"Different source chains and target chains correspond to different bridge types. In different bridge types, the relayer is required to set margin on different chains. When the bridge type is 'default', the relayer needs to set margin on the target chain. If the bridge type is 'opposite', the relayer must set margin on the source chain."}),y.jsx(bi,{}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(Jl,{label:"From",className:"flex-1",children:y.jsx(Fh,{className:"bg-app-bg px-medium h-10 rounded-xl lg:h-11",options:YMe,placeholder:"Source chain",value:t,onChange:ne=>{f(ne),h(void 0),m(void 0)}})}),y.jsx(Jl,{label:"To",className:"flex-1",children:y.jsx(Fh,{className:"bg-app-bg px-medium h-10 rounded-xl lg:h-11",options:r4(t,QMe,!0),placeholder:"Target chain",value:n,onChange:ne=>{h(ne),m(void 0)}})})]}),y.jsx(Jl,{label:"Token",children:y.jsx(WZ,{disabled:!uE(t,n,[],!0).length,options:uE(t,n,[],!0),placeholder:"Select a token",value:r,onChange:m})}),y.jsx(bi,{}),y.jsx(pn,{onClick:()=>{J?j(2):Z==null||Z()},kind:"primary",className:"inline-flex h-11 items-center justify-center rounded-full",disabled:!r,children:y.jsx("span",{className:"text-sm font-semibold text-white",children:J?"Next":"Connect Wallet"})})]}),1<=B&&y.jsxs(y.Fragment,{children:[y.jsx(bi,{}),y.jsxs("div",{className:"gap-small flex items-center justify-between",children:[y.jsx(lr,{property:"Address",address:J,className:"hidden lg:flex"}),y.jsx(lr,{property:"Bridge Type",bridge:u?"lnv2-opposite":"lnv2-default",className:"hidden lg:flex"}),y.jsx(lr,{property:"From",chain:t}),y.jsx(lr,{property:"To",chain:n}),y.jsx(lr,{property:"Token",token:r})]}),y.jsx(bi,{}),y.jsx(pn,{kind:"default",onClick:()=>{j(0),f(void 0),h(void 0),m(void 0),O({input:"",valid:!0,value:0n}),N({input:"",valid:!0,value:0n}),L({input:"",valid:!0,value:0}),F(!1)},className:"inline-flex h-11 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Reset"})})]})]}),y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:2,title:"Deposit Margin and Set Fee"}),B===2&&y.jsxs(y.Fragment,{children:[y.jsx(_T,{content:"When a relayer engages in misconduct, their margin will be used for compensation. The fee charged by the relayer in the source chain from user transactions is baseFee + transferAmount * liquidityFeeRate."}),y.jsx(bi,{}),y.jsx(Jl,{label:"Deposit Margin",children:y.jsx(Ir,{balance:l?c==null?void 0:c.value:i==null?void 0:i.value,token:l?c==null?void 0:c.token:i==null?void 0:i.token,value:P,disabled:R,onChange:O})}),l?y.jsxs(y.Fragment,{children:[y.jsx(pn,{kind:R?"default":"primary",className:"inline-flex h-11 items-center justify-center rounded-full",disabled:R||(n==null?void 0:n.id)===(U==null?void 0:U.id)&&P.value===0n,busy:C,onClick:async()=>{if(J&&l&&t&&n&&r&&o){x(!0);try{if(n.id!==(U==null?void 0:U.id))G==null||G(n.id);else if((o==null?void 0:o.type)!=="native"&&P.value>((s==null?void 0:s.value)||0n))await v(J,P.value,l,n);else if(await _(X,t,n,r,o)){if(!await ae(J,t,n,r,"lnv2-default")){const ne=await g(J,P.value,l,n);(ne==null?void 0:ne.status)==="success"&&F(!0)}}else ms.warn({title:"Deposit failed",description:"The bridge does not exist."})}catch(ne){console.error(ne),an(ne)}finally{x(!1)}}},children:y.jsx("span",{className:"text-sm font-semibold text-white",children:!R&&(n==null?void 0:n.id)!==(U==null?void 0:U.id)?"Switch Network":!R&&(o==null?void 0:o.type)!=="native"&&P.value>((s==null?void 0:s.value)||0n)?"Approve":"Deposit"})}),y.jsx(bi,{})]}):null,y.jsx(Jl,{label:"Base Fee",tips:"The fixed fee set by the relayer and charged in a transaction",children:y.jsx(Ir,{token:r,value:I,onChange:N})}),y.jsx(Jl,{label:"Liquidity Fee Rate",tips:"The percentage deducted by the relayer from the transfer amount in a transaction",children:y.jsx(T6,{placeholder:"Enter 0 ~ 0.25",className:"bg-app-bg px-medium h-10 rounded-xl text-sm font-semibold text-white lg:h-11",value:M,onChange:L})}),y.jsx(bi,{}),y.jsx(pn,{kind:R?"primary":"default",disabled:(t==null?void 0:t.id)===(U==null?void 0:U.id)&&!(P.input&&I.input&&M.input&&o4(M.value)),busy:E,className:"inline-flex h-11 items-center justify-center rounded-full",onClick:async()=>{let ne;if(J&&t&&n&&r&&o){T(!0);try{t.id!==(U==null?void 0:U.id)?G==null||G(t.id):u&&(r==null?void 0:r.type)!=="native"&&P.value>((a==null?void 0:a.value)||0n)?await b(J,P.value,u,t):l?ne=await p(I.value,M.value,l,t):u&&await _(X,t,n,r,o)?await ae(J,t,n,r,"lnv2-opposite")||(ne=await w(J,P.value,I.value,M.value,u,t)):ms.warn({title:"Deposit failed",description:"The bridge does not exist."})}catch(ie){console.error(ie),an(ie)}finally{T(!1),(ne==null?void 0:ne.status)==="success"&&(o.type&&o.type!=="native"?j(4):D(!0))}}},children:y.jsx("span",{className:"text-sm font-semibold text-white",children:l?(t==null?void 0:t.id)!==(U==null?void 0:U.id)?"Switch Network":"Register":u?(t==null?void 0:t.id)!==(U==null?void 0:U.id)?"Switch Network":(r==null?void 0:r.type)!=="native"&&P.value>((a==null?void 0:a.value)||0n)?"Approve":"Register":"Register"})})]}),3<=B&&y.jsxs(y.Fragment,{children:[y.jsx(bi,{}),y.jsxs("div",{className:"gap-small flex items-center justify-between",children:[y.jsx(lr,{property:"Margin",token:l?o:u?r:void 0,balance:P.value}),y.jsx(lr,{property:"Base Fee",token:r,balance:I.value}),y.jsx(lr,{property:"Liquidity Fee Rate",percent:ml(M.value)})]})]})]}),o!=null&&o.type&&o.type!=="native"?y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:3,title:"Authorize Token on Target Chain and Run Relayer"}),B===4&&y.jsxs(y.Fragment,{children:[y.jsx(_T,{content:"Authorize token on target chain and run relayer to start relaying messages and earn rewards. Please note this step authorizes tokens for the relayer to send to users' target chain address based on transactions. Ensure you authorize enough tokens for multiple transactions as needed."}),y.jsx(bi,{}),y.jsx(Jl,{label:"Current Allowance",children:y.jsx(Ir,{token:o,disabled:!0,value:{value:(s==null?void 0:s.value)??0n,input:ut((s==null?void 0:s.value)??0n,(s==null?void 0:s.token.decimals)??0),valid:!0},placeholder:"-"})}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(pn,{kind:"default",onClick:()=>D(!0),className:"inline-flex h-11 flex-1 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Skip"})}),y.jsx(pn,{kind:"primary",onClick:async()=>{if(J&&n){T(!0);try{(U==null?void 0:U.id)!==n.id?G==null||G(n.id):l?await v(J,(c==null?void 0:c.value)||0n,l,n):u&&await v(J,(c==null?void 0:c.value)||0n,u,n)}catch(ne){console.error(ne),an(ne)}finally{T(!1)}}},className:"inline-flex h-11 flex-1 items-center justify-center rounded-full",busy:E,disabled:(r==null?void 0:r.type)==="native",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:(U==null?void 0:U.id)===(n==null?void 0:n.id)?"Approve More":"Switch Network"})})]})]})]}):null]}),y.jsxs(Bd,{title:"One More Step!",subTitle:y.jsxs("div",{className:"flex flex-wrap items-center text-sm font-semibold text-white",children:["Now ",y.jsx(vM,{style:"link"})," to start relaying messages and earn rewards."]}),isOpen:k,onClose:()=>D(!1),children:[y.jsxs("div",{className:"gap-x-small grid items-center gap-y-5 text-sm font-semibold text-white",style:{gridTemplateColumns:"130px auto"},children:[y.jsx("span",{className:"text-white/50",children:"Address"}),J?y.jsx(Ca,{address:J}):null,y.jsx("span",{className:"text-white/50",children:"Bridge Type"}),y.jsx("span",{children:l?"Default":u?"Opposite":"-"}),y.jsx("span",{className:"text-white/50",children:"From"}),y.jsx(wM,{chain:t}),y.jsx("span",{className:"text-white/50",children:"To"}),y.jsx(wM,{chain:n}),y.jsx("span",{className:"text-white/50",children:"Token"}),y.jsx(JMe,{token:r}),y.jsx("span",{className:"text-white/50",children:"Margin"}),y.jsx(ZMe,{margin:P.value,token:l?o:r}),y.jsx("span",{className:"text-white/50",children:"Base Fee"}),y.jsx(eLe,{fee:I.value,token:r}),y.jsx("span",{className:"text-white/50",children:"Liquidity Fee Rate"}),y.jsxs("span",{children:[ml(M.value),"%"]})]}),y.jsx(bi,{}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(pn,{kind:"default",onClick:e,className:"inline-flex h-10 flex-1 items-center justify-center rounded-full lg:h-11",children:y.jsx("span",{className:"text-sm font-semibold",children:"Manage"})}),y.jsx(vM,{style:"button"})]})]})]})}function vM({style:e,onClick:t=()=>{}}){return y.jsx("a",{href:"https://github.com/helix-bridge/relayer/tree/main",className:`inline-flex items-center justify-center ${e==="button"?"border-radius bg-primary h-10 flex-1 items-center justify-center rounded-full text-sm font-semibold text-white transition-opacity hover:opacity-80 lg:h-11":"text-primary text-sm font-semibold hover:underline"}`,rel:"noopener",target:"_blank",onClick:t,children:e==="button"?"Run relayer":"run a relayer"})}function Jl({children:e,label:t,tips:n,className:r}){return y.jsxs("div",{className:`gap-medium flex flex-col ${r}`,children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:t}),n?y.jsx(At,{content:n,className:"w-fit",contentClassName:"max-w-[18rem]",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]}),e]})}function _T({content:e}){return y.jsx("span",{className:"text-sm font-medium text-white/50",children:e})}function wM({chain:e}){return e?y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:22,height:22,alt:"Chain",src:Rn(e.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{children:e.name})]}):""}function JMe({token:e}){return e?y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:22,height:22,alt:"Chain",src:vr(e.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{children:e.symbol})]}):""}function ZMe({token:e,margin:t}){return y.jsx("span",{children:e?`${ut(t,e.decimals)} ${e.symbol}`:""})}function eLe({fee:e,token:t}){return y.jsx("span",{children:t?`${ut(e,t.decimals)} ${t.symbol}`:""})}function bi(){return y.jsx("div",{className:"h-[1px] bg-white/10"})}const EM=10;function _M({version:e}){const t=tn(),[n,r]=S.useState(0),{loading:o,data:a,total:i,refetch:s}=zY(e,n,EM,t.address);return S.useEffect(()=>r(0),[e]),y.jsxs("div",{className:"space-y-medium",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-base font-semibold text-white",children:"Relayers"}),y.jsx(A6,{onClick:s})]}),y.jsx(HZ,{onPageChange:r,onRefetch:s,currentPage:n,totalRecords:i,pageSize:EM,dataSource:a,version:e,loading:o,isDashboard:!0})]})}function tLe(){const[e,t]=S.useState("manage"),[n,r]=S.useState("lnv3"),o=S.useCallback(()=>t("manage"),[]);return y.jsxs("div",{className:"flex flex-col items-center gap-5",children:[y.jsx("div",{className:"flex w-full justify-end lg:w-[40rem]",children:y.jsx(xMe,{value:n,onChange:r})}),y.jsx(CMe,{options:[{key:"manage",label:"Manage",children:n==="lnv3"?y.jsx(mM,{children:y.jsx(_M,{version:n})}):y.jsx(bM,{children:y.jsx(_M,{version:n})})},{key:"register",label:"Register",children:n==="lnv3"?y.jsx(mM,{children:y.jsx(GMe,{onManage:o})}):y.jsx(bM,{children:y.jsx(XMe,{onManage:o})})},{key:"overview",label:"Overview",children:y.jsx(HMe,{version:n})}],className:"lg:w-[40rem]",activeKey:e,onChange:t})]})}function BP({children:e}){return y.jsx("main",{className:"app-main",children:y.jsx("div",{className:"page-container",children:e})})}function nLe(){return y.jsx(BP,{children:y.jsx(tLe,{})})}function rLe(){return y.jsx(y.Fragment,{children:y.jsx("main",{className:"app-main flex items-center justify-center",children:y.jsxs("div",{className:"gap-medium flex w-fit flex-col items-start",children:[y.jsx("h2",{className:"text-base font-medium text-white",children:"Not Found !"}),y.jsx("p",{className:"text-sm font-normal text-white",children:"Could not find requested resource"}),y.jsx(Su,{to:"/",className:"text-primary text-sm font-normal hover:underline",children:"Return Home"})]})})})}function oLe(){const e=Az();return y.jsxs("main",{className:"app-main flex flex-col items-center justify-center gap-5",children:[y.jsx("h1",{className:"font-bold",children:"Oops!"}),y.jsx("p",{children:"Sorry, an unexpected error has occurred."}),y.jsx("p",{children:y.jsx("i",{className:"text-sm",children:e.statusText||e.message})})]})}function aLe({total:e,current:t,size:n=10,onChange:r=()=>{}}){const o=Math.ceil(e/n);return o>1?y.jsxs("div",{className:"gap-small flex items-center justify-end",children:[y.jsx(La,{label:"previous",current:t,total:o,onClick:()=>r(t-1)}),iLe(t,o,r),y.jsx(La,{label:"next",current:t,total:o,onClick:()=>r(t+1)})]}):null}function La({label:e,current:t,total:n,onClick:r}){const{disabled:o,className:a}=S.useMemo(()=>{let i="inline-flex items-center justify-center h-8 min-w-[2rem] px-[2px] rounded-md border text-sm font-normal text-white bg-secondary transition-[opacity,color]",s=!1;return e==="next"&&t+1===n||e==="previous"&&t===0?(i+=" disabled:cursor-not-allowed disabled:opacity-50 border-white/30",s=!0):e===t?(i+=" bg-white/10 disabled:cursor-default border-transparent",s=!0):e==="more"?(i+=" opacity-50 disabled:cursor-default border-white/30",s=!0):i+=" opacity-50 hover:opacity-100 border-white/30",{disabled:s,className:i}},[e,t,n]);return y.jsx("button",{className:a,disabled:o,onClick:r,children:e==="more"?y.jsx("span",{children:"..."}):e==="previous"?y.jsx("img",{alt:"Previous page",width:16,height:16,src:"images/pagination/previous-page.svg"}):e==="next"?y.jsx("img",{alt:"Next page",width:16,height:16,src:"images/pagination/next-page.svg"}):y.jsx("span",{children:e+1})})}function iLe(e,t,n){const r=new Array(t).fill(0).map((o,a)=>a);return e<3||t-48?y.jsxs(y.Fragment,{children:[r.slice(0,4).map(o=>y.jsx(La,{label:o,current:e,total:t,onClick:()=>n(o)},o)),y.jsx(La,{label:"more",current:e,total:t}),r.slice(-4).map(o=>y.jsx(La,{label:o,current:e,total:t,onClick:()=>n(o)},o))]}):r.map(o=>y.jsx(La,{label:o,current:e,total:t,onClick:()=>n(o)},o)):y.jsxs(y.Fragment,{children:[y.jsx(La,{label:0,current:e,total:t,onClick:()=>n(0)}),y.jsx(La,{label:"more",current:e,total:t}),r.slice(e-1,e+2).map(o=>y.jsx(La,{label:o,current:e,total:t,onClick:()=>n(o)},o)),y.jsx(La,{label:"more",current:e,total:t}),y.jsx(La,{label:t-1,current:e,total:t,onClick:()=>n(t-1)})]})}function sLe({onPageChange:e,onRowClick:t,totalRecords:n,currentPage:r,pageSize:o,dataSource:a,loading:i,columns:s}){const c=S.useMemo(()=>s.reduce((l,u)=>{const d=typeof u.width=="string"?u.width:typeof u.width=="number"?`${u.width}px`:"1fr";return l==="auto"?l=d:l=`${l} ${d}`,l},"auto"),[s]);return y.jsxs("div",{className:"space-y-3",children:[y.jsx("div",{className:"w-full overflow-x-auto",children:y.jsxs("div",{className:"bg-secondary min-w-[62rem] rounded-2xl p-2 lg:p-5",children:[y.jsx("div",{className:"bg-background py-large grid items-center gap-x-2 rounded-t-xl border-b border-b-white/10 px-3 text-sm font-normal text-white/50",style:{gridTemplateColumns:c},children:s.map(({key:l,title:u})=>typeof u=="string"?y.jsx("h5",{children:u},l):y.jsx(S.Fragment,{children:u},l))}),y.jsxs("div",{className:"relative",children:[y.jsx(qs,{loading:i,className:`rounded-b-xl ${a!=null&&a.length?"bg-black/5 backdrop-blur-[2px]":""}`,color:"white"}),a!=null&&a.length?y.jsx("div",{className:"rounded-b-xl",children:a.map(l=>y.jsx("div",{className:`${t?"hover:bg-background/50 transition-colors hover:cursor-pointer":""} bg-background grid items-center gap-x-2 px-3 py-2 text-sm font-normal text-white last:rounded-b-xl`,style:{gridTemplateColumns:c},onClick:()=>t&&t(l),children:s.map(({key:u,dataIndex:d,render:f})=>y.jsx(S.Fragment,{children:f?f(l):y.jsx("span",{children:`${l[d]}`})},u))},l.key))}):y.jsx("div",{className:"flex h-48 flex-col items-center justify-center gap-4",children:i?null:y.jsxs(y.Fragment,{children:[y.jsx("img",{width:50,height:63,alt:"No data",src:"images/no-data.svg"}),y.jsx("span",{className:"text-sm font-normal text-slate-400",children:"No data"})]})})]})]})}),n!==void 0&&r!==void 0&&y.jsx("div",{className:"overflow-x-auto pb-1",children:y.jsx(aLe,{size:o,current:r,total:n,onChange:e})})]})}function cLe(e=!1){return[{title:"From",key:"from",width:e?void 0:"10%",render:t=>{const n=st(t.fromChain);return n?y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("img",{alt:n.name,width:32,height:32,src:Rn(n.logo),className:"rounded-full"}),y.jsx("span",{className:"hidden truncate lg:inline",children:n.name})]}):y.jsx("span",{children:"-"})}},{title:"To",key:"to",width:e?void 0:"10%",render:t=>{const n=st(t.toChain);return n?y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("img",{alt:n.name,width:32,height:32,src:Rn(n.logo),className:"rounded-full"}),y.jsx("span",{className:"hidden truncate lg:inline",children:n.name})]}):y.jsx("span",{children:"-"})}},{title:"Sender",key:"sender",render:t=>t.sender?y.jsx(Ca,{address:t.sender,copyable:!0,forceShort:!0}):y.jsx("span",{children:"-"})},{title:"Recipient",key:"recipient",render:t=>t.recipient?y.jsx(Ca,{address:t.recipient,copyable:!0,forceShort:!0}):y.jsx("span",{children:"-"})},{title:"Amount",key:"amount",render:t=>{var r;const n=(r=st(t.fromChain))==null?void 0:r.tokens.find(({symbol:o})=>o.toUpperCase()===t.sendToken.toUpperCase());return n?y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("img",{width:32,height:32,alt:n.symbol,src:vr(n.logo),className:"hidden rounded-full lg:block"}),y.jsx("span",{className:"truncate",children:`${ut(BigInt(t.sendAmount),n.decimals)} ${n.symbol}`})]}):y.jsx("span",{children:"-"})}},{title:y.jsx("span",{className:"text-end",children:"Status"}),key:"status",width:e?"13%":"15%",render:({result:t,startTime:n,confirmedBlocks:r})=>y.jsxs("div",{className:"flex flex-col items-end truncate",children:[y.jsx("span",{className:"truncate",children:hy(n*1e3,{compact:!0})}),y.jsx("span",{className:`truncate text-xs font-semibold ${t===xn.SUCCESS?"text-app-green":t===xn.REFUNDED?"text-app-orange":t===xn.PENDING?"text-primary":"text-white/50"}`,children:t===xn.PENDING?r?fj(r)?"Confirming":`Pending ${r}`:"Pending":Wye(t)})]})}]}function lLe({onPageChange:e,onRowClick:t,dataSource:n,currentPage:r,totalRecords:o,pageSize:a,loading:i}){const s=$Y("lg");return y.jsx(sLe,{dataSource:n.map(({id:c,...l})=>({key:c,id:c,...l})),totalRecords:o,currentPage:r,pageSize:a,columns:cLe(s),loading:i,onPageChange:e,onRowClick:t})}const xM=10;function uLe(){const{recordsSearch:e,setRecordsSearch:t}=$g(),n=S.useDeferredValue(e),[,r]=Dz(),o=Mg(),[a,i]=S.useState(0),[s,c]=S.useState(!1),{data:l,total:u,networkStatus:d,refetch:f}=d_e(n.toLowerCase(),a,xM);return S.useEffect(()=>{t(new URLSearchParams(window.location.hash.split("?")[1]).get(Mn.ADDRESS)||"")},[t]),S.useEffect(()=>{const h=Number(new URLSearchParams(window.location.hash.split("?")[1]).get(Mn.PAGE));!Number.isNaN(h)&&h>0&&i(h-1)},[]),y.jsxs("div",{className:"space-y-5",children:[y.jsxs("div",{className:"flex items-center justify-between gap-5",children:[y.jsx(qZ,{placeholder:"Search by address",className:"hover:border-primary w-full lg:w-[26.5rem]",value:e,onChange:h=>{t(h),i(0),r(m=>(m.delete(Mn.PAGE),Hn(h)?m.set(Mn.ADDRESS,h):m.delete(Mn.ADDRESS),m))},onClear:()=>{t(""),i(0),r(h=>(h.delete(Mn.ADDRESS),h.delete(Mn.PAGE),h))}}),y.jsx(A6,{onClick:()=>{c(!0),setTimeout(()=>f(),0)},onRefresh:()=>{c(!1),setTimeout(()=>f(),0)},enabled:d===dt.ready,enabledAfterClick:!0})]}),y.jsx(lLe,{dataSource:l,totalRecords:u,currentPage:a,pageSize:xM,loading:d===dt.loading||d===dt.setVariables||d===dt.refetch&&s,onPageChange:h=>{i(h),r(m=>(m.set(Mn.PAGE,(h+1).toString()),m))},onRowClick:({id:h})=>o(`/tx/${h}`,{state:{source:"explorer"}})})]})}function dLe(){return y.jsx(BP,{children:y.jsx(uLe,{})})}function fLe({width:e,height:t,type:n,bridge:r}){return r?y.jsx(At,{content:r.getName(),className:"w-fit",children:y.jsx("img",{width:e,height:t,alt:"Bridge",src:Gye(n==="symbol"?r.getLogo().symbol:r.getLogo().horizontal),className:"shrink-0 rounded-full"})}):null}function hLe({record:e}){const t=st(e==null?void 0:e.fromChain),n=st(e==null?void 0:e.toChain),r=e?fm({category:e.bridge}):void 0;return y.jsxs("div",{className:"gap-large flex items-center",children:[y.jsx(CM,{logo:Rn(t==null?void 0:t.logo),name:(t==null?void 0:t.name)||"Unknown"}),y.jsx(SM,{}),y.jsx(fLe,{width:132,height:32,type:"horizontal",bridge:r}),y.jsx(SM,{}),y.jsx(CM,{logo:Rn(n==null?void 0:n.logo),name:(n==null?void 0:n.name)||"Unknown"})]})}function CM({logo:e,name:t}){return y.jsx(At,{content:t,className:"shrink-0",children:y.jsx("img",{width:32,height:32,alt:t,src:e,className:"rounded-full"})})}function SM(){return y.jsx("img",{width:9,height:12,alt:"Caret right",src:"images/caret-right.svg",className:"shrink-0"})}function mLe({result:e}){const{icon:t,text:n,color:r}=S.useMemo(()=>{let o="unknown.svg",a="Unknown",i="#0085FF";return e===xn.PENDING||e===xn.PENDING_TO_REFUND||e===xn.PENDING_TO_CLAIM?(o="pending.svg",a="Pending",i="#0085FF"):e===xn.REFUNDED?(o="refunded.svg",a="Refunded",i="#FAAD14"):e===xn.SUCCESS?(o="success.svg",a="Success",i="#52C41A"):e===xn.PENDING_TO_CONFIRM_REFUND&&(o="pending.svg",a="Refunding",i="#0085FF"),{icon:o,text:a,color:i}},[e]);return y.jsxs("div",{className:"gap-small pl-small pr-medium flex items-center rounded-3xl py-[3px]",style:{backgroundColor:r},children:[y.jsx("img",{width:t==="unknown.svg"?16:20,height:t==="unknown.svg"?16:20,alt:"Result",src:`images/status/${t}`}),y.jsx("span",{className:"text-sm font-medium",children:n})]})}function pLe({record:e}){const[t,n]=S.useState(0),[r,o]=S.useState(!1);return S.useEffect(()=>{const a=D1e(1e3).subscribe(()=>n(i=>i>0?i-1e3:0));return()=>a.unsubscribe()},[]),S.useEffect(()=>{var a;if(e!=null&&e.bridge){const i=e?e.startTime*1e3:Date.now(),s=((((a=fm({category:e.bridge}))==null?void 0:a.getEstimateTime().min)||0)+10)*60*1e3;n(s),o(Date.now()-i>s)}else n(0),o(!1)},[e]),y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx(mLe,{result:e==null?void 0:e.result}),(e==null?void 0:e.result)===xn.PENDING&&y.jsx("div",{className:"inline text-sm font-medium text-white/50",children:r?y.jsxs("span",{children:["It seems to be taking longer than usual."," ",y.jsx("a",{href:`mailto:hello@helixbridge.app?subject=${encodeURIComponent("Transfer time out")}&body=${encodeURIComponent(location.href)}`,rel:"noreferrer",target:"_blank",className:"text-primary hover:underline",children:"Contact us"})," ","for support."]}):`Estimated to wait ${Rve(t)}`})]})}function TM({chain:e,txHash:t}){const n=st(e);return t?y.jsxs("div",{className:"gap-medium flex items-center",children:[n!=null&&n.blockExplorers?y.jsx("a",{className:"text-primary text-sm font-medium transition hover:underline",href:new URL(`tx/${t}`,n.blockExplorers.default.url).href,rel:"noopener noreferrer",target:"_blank",children:t}):y.jsx("span",{className:"text-sm font-medium text-white",children:t}),y.jsx(AP,{text:t})]}):y.jsx("span",{className:"text-sm font-medium text-white",children:"Waiting for the transaction..."})}function gLe({record:e}){return y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("img",{width:16,height:16,alt:"Confirm time",src:"images/time.svg",className:"shrink-0"}),y.jsx("span",{className:"text-sm font-medium text-white",children:e?`${Ove(e.startTime*1e3)} (${hy(e.startTime*1e3)})`:null}),!!(e!=null&&e.startTime&&(e!=null&&e.endTime))&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"h-3 w-[1px] bg-white/50"}),y.jsx("img",{width:16,height:16,alt:"Confirm time",src:"images/clock.svg",className:"shrink-0"}),y.jsxs("span",{className:"text-sm font-medium text-white/50",children:["Confirmed within ",BK(e.startTime*1e3,e.endTime*1e3)]})]})]})}function yLe({record:e,bridge:t}){const n=t==null?void 0:t.getContract();return e&&n?y.jsxs("div",{className:"flex flex-col items-start justify-between",children:[y.jsx(AM,{chain:e.fromChain,from:e.sender,to:n.sourceAddress,symbol:e.sendToken,amount:BigInt(e.sendAmount||0)}),y.jsx(AM,{chain:e.toChain,from:n.targetAddress,to:e.recipient,symbol:e.recvToken,amount:BigInt(e.recvAmount||0)})]}):null}function AM({chain:e,from:t,to:n,symbol:r,amount:o}){const a=st(e),i=a==null?void 0:a.tokens.find(s=>s.symbol.toUpperCase()===r.toUpperCase());return i&&a?y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx(At,{content:a.name,className:"shrink-0",children:y.jsx("img",{width:16,height:16,alt:"Chain logo",src:Rn(a.logo),className:"shrink-0 rounded-full"})}),y.jsx(xT,{text:"From"}),y.jsx(DM,{address:t}),y.jsx(xT,{text:"To"}),y.jsx(DM,{address:n}),y.jsx(xT,{text:"For"}),y.jsx("img",{width:16,height:16,alt:"Token icon",src:vr(i.logo),className:"shrink-0 rounded-full"}),y.jsxs("span",{className:"text-sm font-medium text-white",children:[ut(o,i.decimals,{keepZero:!1,precision:4})," ",r]})]}):null}function DM({address:e}){return y.jsx("div",{className:"inline-block w-24 truncate",children:y.jsx(Ca,{address:e,forceShort:!0,className:"text-primary text-sm font-medium"})})}function xT({text:e}){return y.jsx("span",{className:"text-sm font-medium text-white",children:e})}function bLe({record:e}){var n;const t=(n=st(e==null?void 0:e.toChain))==null?void 0:n.tokens.find(({symbol:r,address:o})=>{var a;return r===(e==null?void 0:e.recvToken)||(e==null?void 0:e.recvTokenAddress)&&o.toLowerCase()===((a=e.recvTokenAddress)==null?void 0:a.toLowerCase())});return t?y.jsxs("div",{className:"gap-medium flex items-center",children:[t.type!=="native"&&y.jsx(Ca,{address:t.address,copyable:!0,className:"text-primary text-sm font-medium"}),y.jsx("img",{width:20,height:20,alt:"Token",src:vr(t.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{className:"text-sm font-medium text-white",children:t.symbol}),window.ethereum&&t.type!=="native"?y.jsx(pn,{className:"rounded-medium px-medium py-[1px]",onClick:async()=>{try{await window.ethereum.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t.address,symbol:t.symbol,decimals:t.decimals,image:""}}})}catch(r){console.error(r)}},children:y.jsx("span",{className:"text-sm font-medium text-white",children:"Add to MetaMask"})}):null]}):null}function vLe({record:e}){var n;const t=(n=st(e==null?void 0:e.fromChain))==null?void 0:n.tokens.find(({symbol:r})=>r.toUpperCase()===(e==null?void 0:e.sendToken.toUpperCase()));return y.jsx("span",{className:"text-sm font-medium text-white",children:t&&(e!=null&&e.sendAmount)?`${ut(BigInt(e.sendAmount),t.decimals,{keepZero:!1,precision:4})} ${t.symbol}`:null})}function wLe({record:e}){var n;const t=(n=st(e==null?void 0:e.fromChain))==null?void 0:n.tokens.find(({symbol:r})=>r.toUpperCase()===(e==null?void 0:e.feeToken.toUpperCase()));return y.jsx("span",{className:"text-sm font-medium text-white",children:t&&(e!=null&&e.fee)?`${ut(BigInt(e.fee),t.decimals,{keepZero:!1,precision:4})} ${t.symbol}`:null})}function ELe({text:e,tips:t}){return y.jsxs("div",{className:"gap-small flex w-52 items-center justify-start",children:[y.jsx("span",{className:"text-sm font-extrabold",children:e}),t?y.jsx(At,{content:t,className:"shrink-0",contentClassName:"max-w-[15rem] lg:max-w-xs",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]})}function _Le({width:e=20,height:t=20,fill:n="#ffffff",className:r,onClick:o}){return y.jsx("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:e,height:t,className:r,onClick:o,children:y.jsx("path",{d:"M232.727273 0h558.545454a232.727273 232.727273 0 0 1 232.727273 232.727273v558.545454a232.727273 232.727273 0 0 1-232.727273 232.727273H232.727273a232.727273 232.727273 0 0 1-232.727273-232.727273V232.727273a232.727273 232.727273 0 0 1 232.727273-232.727273z m438.178909 711.819636L471.086545 512l199.819637-199.819636L605.090909 246.365091 339.456 512 605.090909 777.634909l65.815273-65.815273z",fill:n})})}function xLe(e){var i,s,c,l,u,d,f;const{loading:t,data:n,refetch:r}=$s(Sye,{variables:{id:e.id},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"}),o=Mg(),a=S.useMemo(()=>{var g,w,_;const h=(g=n==null?void 0:n.historyRecordById)==null?void 0:g.bridge,m=st((w=n==null?void 0:n.historyRecordById)==null?void 0:w.fromChain),p=st((_=n==null?void 0:n.historyRecordById)==null?void 0:_.toChain),b=m==null?void 0:m.tokens.find(C=>{var x;return C.symbol.toUpperCase()===((x=n==null?void 0:n.historyRecordById)==null?void 0:x.sendToken.toUpperCase())}),v=p==null?void 0:p.tokens.find(C=>{var x;return C.symbol.toUpperCase()===((x=n==null?void 0:n.historyRecordById)==null?void 0:x.recvToken.toUpperCase())});if(h)return fm({category:h,sourceChain:m,targetChain:p,sourceToken:b,targetToken:v})},[n==null?void 0:n.historyRecordById]);return y.jsxs("div",{className:"container mx-auto",children:[y.jsxs("div",{className:"flex items-center justify-between gap-5",children:[y.jsxs("div",{className:"flex items-center gap-2 lg:gap-3",children:[e.source==="explorer"&&y.jsx(_Le,{className:"opacity-100 transition-[transform,opacity] hover:scale-105 hover:cursor-pointer hover:opacity-100 lg:opacity-50",onClick:()=>o(-1)}),y.jsx("h3",{className:"text-base font-bold text-white",children:"Transaction Details"})]}),y.jsx(A6,{onClick:r})]}),y.jsx("div",{className:"app-scrollbar mt-5 overflow-x-auto",children:y.jsxs("div",{className:"gap-medium rounded-large bg-secondary py-medium relative flex min-w-max flex-col px-7",children:[y.jsx(qs,{loading:t,className:"rounded-large backdrop-blur-[2px]"}),y.jsx(aa,{label:"Transfer Route",children:y.jsx(hLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(Nv,{}),y.jsx(aa,{label:"Status",tips:"The status of the cross-chain transaction: Success, Pending, or Refunded.",children:y.jsx(pLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(aa,{label:"Source Tx Hash",tips:"Unique character string (TxID) assigned to every verified transaction on the Source Chain.",children:y.jsx(TM,{chain:(i=n==null?void 0:n.historyRecordById)==null?void 0:i.fromChain,txHash:(s=n==null?void 0:n.historyRecordById)==null?void 0:s.requestTxHash})}),y.jsx(aa,{label:"Target Tx Hash",tips:"Unique character string (TxID) assigned to every verified transaction on the Target Chain.",children:y.jsx(TM,{chain:(c=n==null?void 0:n.historyRecordById)==null?void 0:c.toChain,txHash:(l=n==null?void 0:n.historyRecordById)==null?void 0:l.responseTxHash})}),y.jsx(aa,{label:"Timestamp",tips:"The date and time at which a transaction is mined. And the time period elapsed for the completion of the cross-chain.",children:y.jsx(gLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(Nv,{}),y.jsx(aa,{label:"Sender",tips:"Address (external or contract) sending the transaction.",children:(u=n==null?void 0:n.historyRecordById)!=null&&u.sender?y.jsx(Ca,{address:n.historyRecordById.sender,className:"text-primary text-sm font-medium",copyable:!0}):null}),y.jsx(aa,{label:"Receiver",tips:"Address (external or contract) receiving the transaction.",children:(d=n==null?void 0:n.historyRecordById)!=null&&d.recipient?y.jsx(Ca,{address:n.historyRecordById.recipient,className:"text-primary text-sm font-medium",copyable:!0}):null}),y.jsx(aa,{label:"Token Transfer",tips:"List of tokens transferred in this cross-chain transaction.",children:y.jsx(yLe,{record:n==null?void 0:n.historyRecordById,bridge:a})}),y.jsx(aa,{label:"Token To Receive",children:y.jsx(bLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(Nv,{}),y.jsx(aa,{label:"Value",tips:"The amount to be transferred to the recipient with the cross-chain transaction.",children:y.jsx(vLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(aa,{label:"Transaction Fee",tips:"Amount paid for processing the cross-chain transaction.",children:y.jsx(wLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(Nv,{}),y.jsx(aa,{label:"Nonce",tips:"A unique number of cross-chain transaction in Bridge.",children:(f=n==null?void 0:n.historyRecordById)!=null&&f.nonce?y.jsx("span",{className:"text-sm font-medium text-white",children:n.historyRecordById.nonce}):null})]})})]})}function aa({label:e,tips:t,children:n}){return y.jsxs("div",{className:"gap-small lg:gap-medium flex flex-col items-start lg:h-11 lg:flex-row lg:items-center",children:[y.jsx(ELe,{text:e,tips:t}),y.jsx("div",{className:"pl-5 lg:pl-0",children:n})]})}function Nv(){return y.jsx("div",{className:"h-[1px] w-full bg-white/10"})}function CLe(){var n;const e=jae(),t=fd();return y.jsx(BP,{children:y.jsx(xLe,{id:e.id??"",source:(n=t.state)==null?void 0:n.source})})}const SLe=Xae([{element:y.jsx(ZFe,{}),children:[{path:"/",element:y.jsx(_Me,{})},{path:"/relayer",element:y.jsx(nLe,{})},{path:"/explorer",element:y.jsx(dLe,{})},{path:"/tx/:id",element:y.jsx(CLe,{})},{path:"*",element:y.jsx(rLe,{})}],errorElement:y.jsx(oLe,{})}]);function TLe(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:a,onRegisterError:i}=e;let s,c,l;const u=async(f=!0)=>{await c,await(l==null?void 0:l())};async function d(){if("serviceWorker"in navigator){if(s=await me(async()=>{const{Workbox:f}=await import("./workbox-window.prod.es5-rX37VysU.js");return{Workbox:f}},[],import.meta.url).then(({Workbox:f})=>new f("./sw.js",{scope:"./",type:"classic"})).catch(f=>{i==null||i(f)}),!s)return;l=async()=>{await(s==null?void 0:s.messageSkipWaiting())};{let f=!1;const h=()=>{f=!0,s==null||s.addEventListener("controlling",m=>{m.isUpdate&&window.location.reload()}),n==null||n()};s.addEventListener("installed",m=>{typeof m.isUpdate>"u"?typeof m.isExternal<"u"?m.isExternal?h():!f&&(r==null||r()):m.isExternal?window.location.reload():!f&&(r==null||r()):m.isUpdate||r==null||r()}),s.addEventListener("waiting",h),s.addEventListener("externalwaiting",h)}s.register({immediate:t}).then(f=>{a?a("./sw.js",f):o==null||o(f)}).catch(f=>{i==null||i(f)})}}return c=d(),u}function ALe(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:a,onRegisterError:i}=e,[s,c]=S.useState(!1),[l,u]=S.useState(!1),[d]=S.useState(()=>TLe({immediate:t,onOfflineReady(){u(!0),r==null||r()},onNeedRefresh(){c(!0),n==null||n()},onRegistered:o,onRegisteredSW:a,onRegisterError:i}));return{needRefresh:[s,c],offlineReady:[l,u],updateServiceWorker:d}}const DLe=window.matchMedia("(display-mode: standalone)").matches,kLe=!1;function jLe(){const{needRefresh:[e,t],updateServiceWorker:n}=ALe({onRegisteredSW(o,a){}});function r(){t(!1)}return y.jsx("div",{role:"alert","aria-labelledby":"toast-message",children:e&&DLe&&kLe&&y.jsxs("div",{className:"bg-background fixed bottom-0 right-0 z-10 m-4 flex flex-col gap-y-3 rounded-xl border border-white/20 p-3 text-left",children:[y.jsx("span",{id:"toast-message",className:"text-sm font-bold text-white",children:"New content available, click on reload button to update."}),y.jsxs("div",{className:"flex items-center justify-end gap-x-3",children:[y.jsx(pn,{className:"rounded-lg px-3 py-[0.125rem] text-sm font-bold",onClick:()=>r(),children:"Close"}),y.jsx(pn,{className:"rounded-lg px-3 py-[0.125rem] text-sm font-bold",onClick:()=>n(!0),kind:"primary",children:"Reload"})]})]})})}const GZ=Object.prototype.toString;function FP(e){switch(GZ.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ps(e,Error)}}function qm(e,t){return GZ.call(e)===`[object ${t}]`}function VZ(e){return qm(e,"ErrorEvent")}function kM(e){return qm(e,"DOMError")}function PLe(e){return qm(e,"DOMException")}function gs(e){return qm(e,"String")}function MP(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function LP(e){return e===null||MP(e)||typeof e!="object"&&typeof e!="function"}function Mh(e){return qm(e,"Object")}function D6(e){return typeof Event<"u"&&Ps(e,Event)}function ILe(e){return typeof Element<"u"&&Ps(e,Element)}function OLe(e){return qm(e,"RegExp")}function k6(e){return!!(e&&e.then&&typeof e.then=="function")}function RLe(e){return Mh(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ps(e,t){try{return e instanceof t}catch{return!1}}function KZ(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function ih(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function jM(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rNLe(e,r,n))}function BLe(e,t,n=250,r,o,a,i){if(!a.exception||!a.exception.values||!i||!Ps(i.originalException,Error))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=FLe(VD(e,t,o,i.originalException,r,a.exception.values,s,0),n))}function VD(e,t,n,r,o,a,i,s){if(a.length>=n+1)return a;let c=[...a];if(Ps(r[o],Error)){PM(i,s);const l=e(t,r[o]),u=c.length;IM(l,o,u,s),c=VD(e,t,n,r[o],o,[l,...c],l,u)}return Array.isArray(r.errors)&&r.errors.forEach((l,u)=>{if(Ps(l,Error)){PM(i,s);const d=e(t,l),f=c.length;IM(d,`errors[${u}]`,f,s),c=VD(e,t,n,l,o,[d,...c],d,f)}}),c}function PM(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function IM(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function FLe(e,t){return e.map(n=>(n.value&&(n.value=ih(n.value,t)),n))}const ku="8.30.0",bt=globalThis;function j6(e,t,n){const r=bt,o=r.__SENTRY__=r.__SENTRY__||{},a=o[ku]=o[ku]||{};return a[e]||(a[e]=t())}const sh=bt,MLe=80;function Is(e,t={}){if(!e)return"";try{let n=e;const r=5,o=[];let a=0,i=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||MLe;for(;n&&a++1&&i+o.length*c+l.length>=d));)o.push(l),i+=l.length,n=n.parentNode;return o.reverse().join(s)}catch{return""}}function LLe(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(sh.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(o&&o.length)o.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&gs(i)){const s=i.split(/\s+/);for(const c of s)r.push(`.${c}`)}}const a=["aria-label","type","name","title","alt"];for(const i of a){const s=n.getAttribute(i);s&&r.push(`[${i}="${s}"]`)}return r.join("")}function YZ(){try{return sh.document.location.href}catch{return""}}function ULe(e){return sh.document&&sh.document.querySelector?sh.document.querySelector(e):null}function QZ(e){if(!sh.HTMLElement)return null;let t=e;const n=5;for(let r=0;r"u"||__SENTRY_DEBUG__,$Le="Sentry Logger ",KD=["debug","info","warn","error","log","assert","trace"],zE={};function Gm(e){if(!("console"in bt))return e();const t=bt.console,n={},r=Object.keys(zE);r.forEach(o=>{const a=zE[o];n[o]=t[o],t[o]=a});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function zLe(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Wm?KD.forEach(n=>{t[n]=(...r)=>{e&&Gm(()=>{bt.console[n](`${$Le}[${n}]:`,...r)})}}):KD.forEach(n=>{t[n]=()=>{}}),t}const ye=j6("logger",zLe),HLe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function qLe(e){return e==="http"||e==="https"}function _b(e,t=!1){const{host:n,path:r,pass:o,port:a,projectId:i,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&o?`:${o}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${i}`}function WLe(e){const t=HLe.exec(e);if(!t){Gm(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",a="",i="",s=""]=t.slice(1);let c="",l=s;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const d=l.match(/^\d+/);d&&(l=d[0])}return XZ({host:a,pass:o,path:c,projectId:l,port:i,protocol:n,publicKey:r})}function XZ(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function GLe(e){if(!Wm)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(ye.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?qLe(r)?t&&isNaN(parseInt(t,10))?(ye.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ye.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(ye.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function VLe(e){const t=typeof e=="string"?WLe(e):XZ(e);if(!(!t||!GLe(t)))return t}class Ti extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function go(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&JZ(o,r),e[t]=o}function Sa(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Wm&&ye.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function JZ(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Sa(e,"__sentry_original__",t)}catch{}}function UP(e){return e.__sentry_original__}function KLe(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function ZZ(e){if(FP(e))return{message:e.message,name:e.name,stack:e.stack,...RM(e)};if(D6(e)){const t={type:e.type,target:OM(e.target),currentTarget:OM(e.currentTarget),...RM(e)};return typeof CustomEvent<"u"&&Ps(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function OM(e){try{return ILe(e)?Is(e):Object.prototype.toString.call(e)}catch{return""}}function RM(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function YLe(e,t=40){const n=Object.keys(ZZ(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return ih(r,t);for(let o=n.length;o>0;o--){const a=n.slice(0,o).join(", ");if(!(a.length>t))return o===n.length?a:ih(a,t)}return""}function zn(e){return YD(e,new Map)}function YD(e,t){if(QLe(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.keys(e))typeof e[o]<"u"&&(r[o]=YD(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(YD(o,t))}),r}return e}function QLe(e){if(!Mh(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const eee=50,ad="?",NM=/\(error: (.*)\)/,BM=/captureMessage|captureException/;function tee(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const a=[],i=n.split(` -`);for(let s=r;s1024)continue;const l=NM.test(c)?c.replace(NM,"$1"):c;if(!l.match(/\S*Error: /)){for(const u of t){const d=u(l);if(d){a.push(d);break}}if(a.length>=eee+o)break}}return JLe(a.slice(o))}}function XLe(e){return Array.isArray(e)?tee(...e):e}function JLe(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Bv(t).function||"")&&t.pop(),t.reverse(),BM.test(Bv(t).function||"")&&(t.pop(),BM.test(Bv(t).function||"")&&t.pop()),t.slice(0,eee).map(n=>({...n,filename:n.filename||Bv(t).filename,function:n.function||ad}))}function Bv(e){return e[e.length-1]||{}}const CT="";function Os(e){try{return!e||typeof e!="function"?CT:e.name||CT}catch{return CT}}function FM(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const R1={},MM={};function Ul(e,t){R1[e]=R1[e]||[],R1[e].push(t)}function $l(e,t){MM[e]||(t(),MM[e]=!0)}function ba(e,t){const n=e&&R1[e];if(n)for(const r of n)try{r(t)}catch(o){Wm&&ye.error(`Error while triggering instrumentation handler. -Type: ${e} -Name: ${Os(r)} -Error:`,o)}}function ZLe(e){const t="console";Ul(t,e),$l(t,eUe)}function eUe(){"console"in bt&&KD.forEach(function(e){e in bt.console&&go(bt.console,e,function(t){return zE[e]=t,function(...n){ba("console",{args:n,level:e});const o=zE[e];o&&o.apply(bt.console,n)}})})}const QD=bt;function nee(){if(!("fetch"in QD))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function XD(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function tUe(){if(typeof EdgeRuntime=="string")return!0;if(!nee())return!1;if(XD(QD.fetch))return!0;let e=!1;const t=QD.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=XD(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Wm&&ye.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const ree=1e3;function xb(){return Date.now()/ree}function nUe(){const{performance:e}=bt;if(!e||!e.now)return xb;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/ree}const no=nUe(),io=(()=>{const{performance:e}=bt;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=oaee(void 0,t))}function rUe(e){const t="fetch-body-resolved";Ul(t,e),$l(t,()=>aee(aUe))}function aee(e,t=!1){t&&!tUe()||go(bt,"fetch",function(n){return function(...r){const{method:o,url:a}=iUe(r),i={args:r,fetchData:{method:o,url:a},startTimestamp:no()*1e3};e||ba("fetch",{...i});const s=new Error().stack;return n.apply(bt,r).then(async c=>(e?e(c):ba("fetch",{...i,endTimestamp:no()*1e3,response:c}),c),c=>{throw ba("fetch",{...i,endTimestamp:no()*1e3,error:c}),FP(c)&&c.stack===void 0&&(c.stack=s,Sa(c,"framesToPop",1)),c})}})}async function oUe(e,t){if(e&&e.body&&e.body.getReader){const n=e.body.getReader();async function r({done:o}){if(o)return Promise.resolve();try{const a=await Promise.race([n.read(),new Promise(i=>{setTimeout(()=>{i({done:!0})},5e3)})]);await r(a)}catch{}}return n.read().then(r).then(t).catch(()=>{})}}async function aUe(e){let t;try{t=e.clone()}catch{return}await oUe(t,()=>{ba("fetch-body-resolved",{endTimestamp:no()*1e3,response:e})})}function JD(e,t){return!!e&&typeof e=="object"&&!!e[t]}function LM(e){return typeof e=="string"?e:e?JD(e,"url")?e.url:e.toString?e.toString():"":""}function iUe(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:LM(n),method:JD(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:LM(t),method:JD(t,"method")?String(t.method).toUpperCase():"GET"}}let Fv=null;function iee(e){const t="error";Ul(t,e),$l(t,sUe)}function sUe(){Fv=bt.onerror,bt.onerror=function(e,t,n,r,o){return ba("error",{column:r,error:o,line:n,msg:e,url:t}),Fv&&!Fv.__SENTRY_LOADER__?Fv.apply(this,arguments):!1},bt.onerror.__SENTRY_INSTRUMENTED__=!0}let Mv=null;function see(e){const t="unhandledrejection";Ul(t,e),$l(t,cUe)}function cUe(){Mv=bt.onunhandledrejection,bt.onunhandledrejection=function(e){return ba("unhandledrejection",e),Mv&&!Mv.__SENTRY_LOADER__?Mv.apply(this,arguments):!0},bt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function lUe(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function uUe(){return"npm"}function dUe(){return!lUe()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function UM(){return typeof window<"u"&&(!dUe()||fUe())}function fUe(){return bt.process!==void 0&&bt.process.type==="renderer"}function hUe(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let a=0;aMath.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function cee(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Cc(e){const{message:t,event_id:n}=e;if(t)return t;const r=cee(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function ZD(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],a=o[0]=o[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Cg(e,t){const n=cee(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const a={...o&&o.data,...t.data};n.mechanism.data=a}}function $M(e){if(e&&e.__sentry_captured__)return!0;try{Sa(e,"__sentry_captured__",!0)}catch{}return!1}function lee(e){return Array.isArray(e)?e:[e]}function _i(e,t=100,n=1/0){try{return ek("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function uee(e,t=3,n=100*1024){const r=_i(e,t);return yUe(r)>n?uee(e,t-1,n):r}function ek(e,t,n=1/0,r=1/0,o=hUe()){const[a,i]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;const s=mUe(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace("object ","");if(a(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return ek("",h,c-1,r,o)}catch{}const u=Array.isArray(t)?[]:{};let d=0;const f=ZZ(t);for(const h in f){if(!Object.prototype.hasOwnProperty.call(f,h))continue;if(d>=r){u[h]="[MaxProperties ~]";break}const m=f[h];u[h]=ek(h,m,c-1,r,o),d++}return i(t),u}function mUe(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(KZ(t))return"[VueViewModel]";if(RLe(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Os(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=pUe(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function pUe(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function gUe(e){return~-encodeURI(e).split(/%..|./).length}function yUe(e){return gUe(JSON.stringify(e))}var ts;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(ts||(ts={}));function Rs(e){return new fa(t=>{t(e)})}function HE(e){return new fa((t,n)=>{n(e)})}class fa{constructor(t){fa.prototype.__init.call(this),fa.prototype.__init2.call(this),fa.prototype.__init3.call(this),fa.prototype.__init4.call(this),this._state=ts.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new fa((r,o)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(i){o(i)}},a=>{if(!n)o(a);else try{r(n(a))}catch(i){o(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new fa((n,r)=>{let o,a;return this.then(i=>{a=!1,o=i,t&&t()},i=>{a=!0,o=i,t&&t()}).then(()=>{if(a){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(ts.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(ts.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===ts.PENDING){if(k6(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===ts.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===ts.RESOLVED&&n[1](this._value),this._state===ts.REJECTED&&n[2](this._value),n[0]=!0)})}}}function bUe(e){const t=[];function n(){return e===void 0||t.lengthr(s)).then(null,()=>r(s).then(null,()=>{})),s}function a(i){return new fa((s,c)=>{let l=t.length;if(!l)return s(!0);const u=setTimeout(()=>{i&&i>0&&s(!1)},i);t.forEach(d=>{Rs(d).then(()=>{--l||(clearTimeout(u),s(!0))},c)})})}return{$:t,add:o,drain:a}}function ju(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const vUe=["fatal","error","warning","log","info","debug"];function wUe(e){return e==="warn"?"warning":vUe.includes(e)?e:"log"}const tk="baggage",dee="sentry-",EUe=/^sentry-/,_Ue=8192;function fee(e){const t=xUe(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,a])=>{if(o.match(EUe)){const i=o.slice(dee.length);r[i]=a}return r},{});if(Object.keys(n).length>0)return n}function hee(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${dee}${r}`]=o),n),{});return CUe(t)}function xUe(e){if(!(!e||!gs(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=zM(n);return Object.entries(r).forEach(([o,a])=>{t[o]=a}),t},{}):zM(e)}function zM(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function CUe(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=o===0?a:`${t},${a}`;return i.length>_Ue?(Wm&&ye.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}const SUe=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function TUe(e){if(!e)return;const t=e.match(SUe);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function AUe(e,t){const n=TUe(e),r=fee(t),{traceId:o,parentSpanId:a,parentSampled:i}=n||{};return n?{traceId:o||en(),parentSpanId:a||en().substring(16),spanId:en().substring(16),sampled:i,dsc:r||{}}:{traceId:o||en(),spanId:en().substring(16)}}function $P(e=en(),t=en().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Fd(e,t=[]){return[e,t]}function DUe(e,t){const[n,r]=e;return[n,[...r,t]]}function HM(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function nk(e){return bt.__SENTRY__&&bt.__SENTRY__.encodePolyfill?bt.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function kUe(e){const[t,n]=e;let r=JSON.stringify(t);function o(a){typeof r=="string"?r=typeof a=="string"?r+a:[nk(r),a]:r.push(typeof a=="string"?nk(a):a)}for(const a of n){const[i,s]=a;if(o(` -${JSON.stringify(i)} -`),typeof s=="string"||s instanceof Uint8Array)o(s);else{let c;try{c=JSON.stringify(s)}catch{c=JSON.stringify(_i(s))}o(c)}}return typeof r=="string"?r:jUe(r)}function jUe(e){const t=e.reduce((o,a)=>o+a.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function PUe(e){return[{type:"span"},e]}function IUe(e){const t=typeof e.data=="string"?nk(e.data):e.data;return[zn({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const OUe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function qM(e){return OUe[e]}function zP(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function mee(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:_b(r)},...o&&{trace:zn({...o})}}}function RUe(e,t,n){const r=[{type:"client_report"},{timestamp:xb(),discarded_events:e}];return Fd(t?{dsn:t}:{},[r])}const NUe=60*1e3;function BUe(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?NUe:r-t}function FUe(e,t){return e[t]||e.all||0}function pee(e,t,n=Date.now()){return FUe(e,t)>n}function gee(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},a=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(a)for(const s of a.trim().split(",")){const[c,l,,,u]=s.split(":",5),d=parseInt(c,10),f=(isNaN(d)?60:d)*1e3;if(!l)o.all=r+f;else for(const h of l.split(";"))h==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(o[h]=r+f):o[h]=r+f}else i?o.all=r+BUe(i,r):t===429&&(o.all=r+60*1e3);return o}function MUe(e,t){return e??t()}function Uo(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}function qE(){return{traceId:en(),spanId:en().substring(16)}}const Lv=bt;function LUe(){const e=Lv.chrome,t=e&&e.app&&e.app.runtime,n="history"in Lv&&!!Lv.history.pushState&&!!Lv.history.replaceState;return!t&&n}const nt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Vm(){return HP(bt),bt}function HP(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ku,t[ku]=t[ku]||{}}function UUe(e){const t=no(),n={sid:en(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>zUe(n)};return e&&Lh(n,e),n}function Lh(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||no(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:en()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function $Ue(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Lh(e,n)}function zUe(e){return zn({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const rk="_sentrySpan";function Sg(e,t){t?Sa(e,rk,t):delete e[rk]}function WE(e){return e[rk]}const HUe=100;class qP{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=qE()}clone(){const t=new qP;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Sg(t,WE(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Lh(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,o]=n instanceof id?[n.getScopeData(),n.getRequestSession()]:Mh(n)?[t,t.requestSession]:[],{tags:a,extra:i,user:s,contexts:c,level:l,fingerprint:u=[],propagationContext:d}=r||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},s&&Object.keys(s).length&&(this._user=s),l&&(this._level=l),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Sg(this,void 0),this._attachments=[],this._propagationContext=qE(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:HUe;if(r<=0)return this;const o={timestamp:xb(),...t},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:WE(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:en();if(!this._client)return ye.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r&&r.event_id?r.event_id:en();if(!this._client)return ye.warn("No client configured on scope - will not capture message!"),o;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:o},this),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:en();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(ye.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const id=qP;function qUe(){return j6("defaultCurrentScope",()=>new id)}function WUe(){return j6("defaultIsolationScope",()=>new id)}class GUe{constructor(t,n){let r;t?r=t:r=new id;let o;n?o=n:o=new id,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return k6(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Uh(){const e=Vm(),t=HP(e);return t.stack=t.stack||new GUe(qUe(),WUe())}function VUe(e){return Uh().withScope(e)}function KUe(e,t){const n=Uh();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function WM(e){return Uh().withScope(()=>e(Uh().getIsolationScope()))}function YUe(){return{withIsolationScope:WM,withScope:VUe,withSetScope:KUe,withSetIsolationScope:(e,t)=>WM(t),getCurrentScope:()=>Uh().getScope(),getIsolationScope:()=>Uh().getIsolationScope()}}function Cb(e){const t=HP(e);return t.acs?t.acs:YUe()}function Xt(){const e=Vm();return Cb(e).getCurrentScope()}function Pa(){const e=Vm();return Cb(e).getIsolationScope()}function QUe(){return j6("globalScope",()=>new id)}function WP(...e){const t=Vm(),n=Cb(t);if(e.length===2){const[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function gt(){return Xt().getClient()}const XUe="_sentryMetrics";function ok(e){const t=e[XUe];if(!t)return;const n={};for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(zn(o));return n}const is="sentry.source",yee="sentry.sample_rate",sd="sentry.op",rr="sentry.origin",ak="sentry.idle_span_finish_reason",P6="sentry.measurement_unit",I6="sentry.measurement_value",JUe="sentry.profile_id",GP="sentry.exclusive_time",ZUe=0,bee=1,Vn=2;function e$e(e){if(e<400&&e>=100)return{code:bee};if(e>=400&&e<500)switch(e){case 401:return{code:Vn,message:"unauthenticated"};case 403:return{code:Vn,message:"permission_denied"};case 404:return{code:Vn,message:"not_found"};case 409:return{code:Vn,message:"already_exists"};case 413:return{code:Vn,message:"failed_precondition"};case 429:return{code:Vn,message:"resource_exhausted"};case 499:return{code:Vn,message:"cancelled"};default:return{code:Vn,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Vn,message:"unimplemented"};case 503:return{code:Vn,message:"unavailable"};case 504:return{code:Vn,message:"deadline_exceeded"};default:return{code:Vn,message:"internal_error"}}return{code:Vn,message:"unknown_error"}}function vee(e,t){e.setAttribute("http.response.status_code",t);const n=e$e(t);n.message!=="unknown_error"&&e.setStatus(n)}const wee=0,Eee=1;function t$e(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:a,status:i,origin:s}=_t(e);return zn({parent_span_id:a,span_id:t,trace_id:n,data:r,op:o,status:i,origin:s})}function n$e(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=_t(e);return zn({parent_span_id:r,span_id:t,trace_id:n})}function _ee(e){const{traceId:t,spanId:n}=e.spanContext(),r=Md(e);return $P(t,n,r)}function Pu(e){return typeof e=="number"?GM(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?GM(e.getTime()):no()}function GM(e){return e>9999999999?e/1e3:e}function _t(e){if(o$e(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(r$e(e)){const{attributes:r,startTime:o,name:a,endTime:i,parentSpanId:s,status:c}=e;return zn({span_id:t,trace_id:n,data:r,description:a,parent_span_id:s,start_timestamp:Pu(o),timestamp:Pu(i)||void 0,status:xee(c),op:r[sd],origin:r[rr],_metrics_summary:ok(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function r$e(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function o$e(e){return typeof e.getSpanJSON=="function"}function Md(e){const{traceFlags:t}=e.spanContext();return t===Eee}function xee(e){if(!(!e||e.code===ZUe))return e.code===bee?"ok":e.message||"unknown_error"}const Iu="_sentryChildSpans",ik="_sentryRootSpan";function Cee(e,t){const n=e[ik]||e;Sa(t,ik,n),e[Iu]?e[Iu].add(t):Sa(e,Iu,new Set([t]))}function a$e(e,t){e[Iu]&&e[Iu].delete(t)}function N1(e){const t=new Set;function n(r){if(!t.has(r)&&Md(r)){t.add(r);const o=r[Iu]?Array.from(r[Iu]):[];for(const a of o)n(a)}}return n(e),Array.from(t)}function gr(e){return e[ik]||e}function Ur(){const e=Vm(),t=Cb(e);return t.getActiveSpan?t.getActiveSpan():WE(Xt())}let VM=!1;function i$e(){VM||(VM=!0,iee(sk),see(sk))}function sk(){const e=Ur(),t=e&&gr(e);if(t){const n="internal_error";nt&&ye.log(`[Tracing] Root span: ${n} -> Global error occured`),t.setStatus({code:Vn,message:n})}}sk.tag="sentry_tracingErrorCallback";const See="_sentryScope",Tee="_sentryIsolationScope";function s$e(e,t,n){e&&(Sa(e,Tee,n),Sa(e,See,t))}function KM(e){return{scope:e[See],isolationScope:e[Tee]}}function yl(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=gt(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class Km{constructor(t={}){this._traceId=t.traceId||en(),this._spanId=t.spanId||en().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:wee}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}const VP="production",Aee="_frozenDsc";function YM(e,t){Sa(e,Aee,t)}function O6(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=zn({environment:n.environment||VP,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Ld(e){const t=gt();if(!t)return{};const n=O6(_t(e).trace_id||"",t),r=gr(e),o=r[Aee];if(o)return o;const a=r.spanContext().traceState,i=a&&a.get("sentry.dsc"),s=i&&fee(i);if(s)return s;const c=_t(r),l=c.data||{},u=l[yee];u!=null&&(n.sample_rate=`${u}`);const d=l[is],f=c.description;return d!=="url"&&f&&(n.transaction=f),n.sampled=String(Md(r)),t.emit("createDsc",n,r),n}function c$e(e){if(!nt)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=_t(e),{spanId:o}=e.spanContext(),a=Md(e),i=gr(e),s=i===e,c=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&l.push(`parent ID: ${r}`),!s){const{op:u,description:d}=_t(i);l.push(`root ID: ${i.spanContext().spanId}`),u&&l.push(`root op: ${u}`),d&&l.push(`root description: ${d}`)}ye.log(`${c} - ${l.join(` - `)}`)}function l$e(e){if(!nt)return;const{description:t="< unknown name >",op:n="< unknown op >"}=_t(e),{spanId:r}=e.spanContext(),a=gr(e)===e,i=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${t}" with ID ${r}`;ye.log(i)}function GE(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){nt&&ye.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function u$e(e,t){if(!yl(e))return[!1];let n;typeof e.tracesSampler=="function"?n=e.tracesSampler(t):t.parentSampled!==void 0?n=t.parentSampled:typeof e.tracesSampleRate<"u"?n=e.tracesSampleRate:n=1;const r=GE(n);return r===void 0?(nt&&ye.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()s(_t(u)):u=>_t(u),l=[];for(const u of e){const d=c(u);d&&l.push(PUe(d))}return Fd(i,l)}function p$e(e,t,n,r=Ur()){const o=r&&gr(r);o&&o.addEvent(e,{[I6]:t,[P6]:n})}function QM(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},o=r[P6],a=r[I6];typeof o=="string"&&typeof a=="number"&&(t[n.name]={value:a,unit:o})}),t}const XM=1e3;class KP{constructor(t={}){this._traceId=t.traceId||en(),this._spanId=t.spanId||en().substring(16),this._startTime=t.startTimestamp||no(),this._attributes={},this.setAttributes({[rr]:"manual",[sd]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Eee:wee}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Pu(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this}end(t){this._endTime||(this._endTime=Pu(t),l$e(this),this._onSpanEnded())}getSpanJSON(){return zn({data:this._attributes,description:this._name,op:this._attributes[sd],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:xee(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[rr],_metrics_summary:ok(this),profile_id:this._attributes[JUe],exclusive_time:this._attributes[GP],measurements:QM(this._events),is_segment:this._isStandaloneSpan&&gr(this)===this||void 0,segment_id:this._isStandaloneSpan?gr(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){nt&&ye.log("[Tracing] Adding an event to span:",t);const o=JM(n)?n:r||no(),a=JM(n)?{}:n||{},i={name:t,time:Pu(o),attributes:a};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=gt();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===gr(this)))return;if(this._isStandaloneSpan){this._sampled?y$e(m$e([this],t)):(nt&&ye.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(KM(this).scope||Xt()).captureEvent(r)}_convertSpanToTransaction(){if(!ZM(_t(this)))return;this._name||(nt&&ye.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:t,isolationScope:n}=KM(this),o=(t||Xt()).getClient()||gt();if(this._sampled!==!0){nt&&ye.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),o&&o.recordDroppedEvent("sample_rate","transaction");return}const i=N1(this).filter(d=>d!==this&&!g$e(d)).map(d=>_t(d)).filter(ZM),s=this._attributes[is],c={contexts:{trace:t$e(this)},spans:i.length>XM?i.sort((d,f)=>d.start_timestamp-f.start_timestamp).slice(0,XM):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...zn({dynamicSamplingContext:Ld(this)})},_metrics_summary:ok(this),...s&&{transaction_info:{source:s}}},l=QM(this._events);return l&&Object.keys(l).length&&(nt&&ye.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),c.measurements=l),c}}function JM(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function ZM(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function g$e(e){return e instanceof KP&&e.isStandaloneSpan()}function y$e(e){const t=gt();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}const r=t.getTransport();r&&r.send(e).then(null,o=>{nt&&ye.error("Error while sending span:",o)})}const Dee="__SENTRY_SUPPRESS_TRACING__";function zl(e){const t=jee();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=v$e(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?i=>WP(e.scope,i):o!==void 0?i=>kee(o,i):i=>i())(()=>{const i=Xt(),s=E$e(i);return e.onlyIfParent&&!s?new Km:b$e({parentSpan:s,spanArguments:n,forceTransaction:r,scope:i})})}function kee(e,t){const n=jee();return n.withActiveSpan?n.withActiveSpan(e,t):WP(r=>(Sg(r,e||void 0),t(r)))}function b$e({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!yl())return new Km;const o=Pa();let a;if(e&&!n)a=w$e(e,r,t),Cee(e,a);else if(e){const i=Ld(e),{traceId:s,spanId:c}=e.spanContext(),l=Md(e);a=eL({traceId:s,parentSpanId:c,...t},r,l),YM(a,i)}else{const{traceId:i,dsc:s,parentSpanId:c,sampled:l}={...o.getPropagationContext(),...r.getPropagationContext()};a=eL({traceId:i,parentSpanId:c,...t},r,l),s&&YM(a,s)}return c$e(a),s$e(a,r,o),a}function v$e(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Pu(e.startTime),delete r.startTime,r}return n}function jee(){const e=Vm();return Cb(e)}function eL(e,t,n){const r=gt(),o=r&&r.getOptions()||{},{name:a="",attributes:i}=e,[s,c]=t.getScopeData().sdkProcessingMetadata[Dee]?[!1]:u$e(o,{name:a,parentSampled:n,attributes:i,transactionContext:{name:a,parentSampled:n}}),l=new KP({...e,attributes:{[is]:"custom",...e.attributes},sampled:s});return c!==void 0&&l.setAttribute(yee,c),r&&r.emit("spanStart",l),l}function w$e(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[Dee]?!1:Md(e),i=a?new KP({...n,parentSpanId:r,traceId:o,sampled:a}):new Km({traceId:o});Cee(e,i);const s=gt();return s&&(s.emit("spanStart",i),n.endTimestamp&&s.emit("spanEnd",i)),i}function E$e(e){const t=WE(e);if(!t)return;const n=gt();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?gr(t):t}const B1={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},_$e="heartbeatFailed",x$e="idleTimeout",C$e="finalTimeout",S$e="externalFinish";function Pee(e,t={}){const n=new Map;let r=!1,o,a=S$e,i=!t.disableAutoFinish;const s=[],{idleTimeout:c=B1.idleTimeout,finalTimeout:l=B1.finalTimeout,childSpanTimeout:u=B1.childSpanTimeout,beforeSpanEnd:d}=t,f=gt();if(!f||!yl())return new Km;const h=Xt(),m=Ur(),p=T$e(e);p.end=new Proxy(p.end,{apply(x,E,T){d&&d(p);const[k,...D]=T,R=k||no(),F=Pu(R),B=N1(p).filter(N=>N!==p);if(!B.length)return C(F),Reflect.apply(x,E,[F,...D]);const j=B.map(N=>_t(N).timestamp).filter(N=>!!N),P=j.length?Math.max(...j):void 0,O=_t(p).start_timestamp,I=Math.min(O?O+l/1e3:1/0,Math.max(O||-1/0,Math.min(F,P||1/0)));return C(I),Reflect.apply(x,E,[I,...D])}});function b(){o&&(clearTimeout(o),o=void 0)}function v(x){b(),o=setTimeout(()=>{!r&&n.size===0&&i&&(a=x$e,p.end(x))},c)}function g(x){o=setTimeout(()=>{!r&&i&&(a=_$e,p.end(x))},u)}function w(x){b(),n.set(x,!0);const E=no();g(E+u/1e3)}function _(x){if(n.has(x)&&n.delete(x),n.size===0){const E=no();v(E+c/1e3)}}function C(x){r=!0,n.clear(),s.forEach(F=>F()),Sg(h,m);const E=_t(p),{start_timestamp:T}=E;if(!T)return;(E.data||{})[ak]||p.setAttribute(ak,a),ye.log(`[Tracing] Idle span "${E.op}" finished`);const D=N1(p).filter(F=>F!==p);let R=0;D.forEach(F=>{F.isRecording()&&(F.setStatus({code:Vn,message:"cancelled"}),F.end(x),nt&&ye.log("[Tracing] Cancelling span since span ended early",JSON.stringify(F,void 0,2)));const B=_t(F),{timestamp:j=0,start_timestamp:P=0}=B,O=P<=x,I=(l+c)/1e3,N=j-P<=I;if(nt){const M=JSON.stringify(F,void 0,2);O?N||ye.log("[Tracing] Discarding span since it finished after idle span final timeout",M):ye.log("[Tracing] Discarding span since it happened after idle span was finished",M)}(!N||!O)&&(a$e(p,F),R++)}),R>0&&p.setAttribute("sentry.idle_span_discarded_spans",R)}return s.push(f.on("spanStart",x=>{if(r||x===p||_t(x).timestamp)return;N1(p).includes(x)&&w(x.spanContext().spanId)})),s.push(f.on("spanEnd",x=>{r||_(x.spanContext().spanId)})),s.push(f.on("idleSpanEnableAutoFinish",x=>{x===p&&(i=!0,v(),n.size&&g())})),t.disableAutoFinish||v(),setTimeout(()=>{r||(p.setStatus({code:Vn,message:"deadline_exceeded"}),a=C$e,p.end())},l),p}function T$e(e){const t=zl(e);return Sg(Xt(),t),nt&&ye.log("[Tracing] Started span is an idle span"),t}function ck(e,t,n,r=0){return new fa((o,a)=>{const i=e[r];if(t===null||typeof i!="function")o(t);else{const s=i({...t},n);nt&&i.id&&s===null&&ye.log(`Event processor "${i.id}" dropped event`),k6(s)?s.then(c=>ck(e,c,n,r+1).then(o)).then(null,a):ck(e,s,n,r+1).then(o).then(null,a)}})}function A$e(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:a}=t;D$e(e,t),r&&P$e(e,r),I$e(e,n),k$e(e,o),j$e(e,a)}function tL(e,t){const{extra:n,tags:r,user:o,contexts:a,level:i,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:f,transactionName:h,span:m}=t;Hp(e,"extra",n),Hp(e,"tags",r),Hp(e,"user",o),Hp(e,"contexts",a),Hp(e,"sdkProcessingMetadata",s),i&&(e.level=i),h&&(e.transactionName=h),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function Hp(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function D$e(e,t){const{extra:n,tags:r,user:o,contexts:a,level:i,transactionName:s}=t,c=zn(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=zn(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=zn(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=zn(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),i&&(e.level=i),s&&e.type!=="transaction"&&(e.transaction=s)}function k$e(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function j$e(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function P$e(e,t){e.contexts={trace:n$e(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ld(t),...e.sdkProcessingMetadata};const n=gr(t),r=_t(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function I$e(e,t){e.fingerprint=e.fingerprint?lee(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Iee(e,t,n,r,o,a){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||en(),timestamp:t.timestamp||xb()},l=n.integrations||e.integrations.map(b=>b.name);O$e(c,e),B$e(c,l),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&R$e(c,e.stackParser);const u=M$e(r,n.captureContext);n.mechanism&&Cg(c,n.mechanism);const d=o?o.getEventProcessors():[],f=QUe().getScopeData();if(a){const b=a.getScopeData();tL(f,b)}if(u){const b=u.getScopeData();tL(f,b)}const h=[...n.attachments||[],...f.attachments];h.length&&(n.attachments=h),A$e(c,f);const m=[...d,...f.eventProcessors];return ck(m,c,n).then(b=>(b&&N$e(b),typeof i=="number"&&i>0?F$e(b,i,s):b))}function O$e(e,t){const{environment:n,release:r,dist:o,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:VP),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=ih(e.message,a));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=ih(i.value,a));const s=e.request;s&&s.url&&(s.url=ih(s.url,a))}const nL=new WeakMap;function R$e(e,t){const n=bt._sentryDebugIds;if(!n)return;let r;const o=nL.get(t);o?r=o:(r=new Map,nL.set(t,r));const a=Object.entries(n).reduce((i,[s,c])=>{let l;const u=r.get(s);u?l=u:(l=t(s),r.set(s,l));for(let d=l.length-1;d>=0;d--){const f=l[d];if(f.filename){i[f.filename]=c;break}}return i},{});try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=a[s.filename])})})}catch{}}function N$e(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function B$e(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function F$e(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:_i(o.data,t,n)}}))},...e.user&&{user:_i(e.user,t,n)},...e.contexts&&{contexts:_i(e.contexts,t,n)},...e.extra&&{extra:_i(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=_i(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:_i(o.data,t,n)}}))),r}function M$e(e,t){if(!t)return e;const n=e?e.clone():new id;return n.update(t),n}function YP(e,t){return Xt().captureException(e,void 0)}function Oee(e,t){return Xt().captureEvent(e,t)}function Ree(e,t){Pa().setContext(e,t)}function L$e(e){Pa().addEventProcessor(e)}function rL(e){const t=gt(),n=Pa(),r=Xt(),{release:o,environment:a=VP}=t&&t.getOptions()||{},{userAgent:i}=bt.navigator||{},s=UUe({release:o,environment:a,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&Lh(c,{status:"exited"}),Nee(),n.setSession(s),r.setSession(s),s}function Nee(){const e=Pa(),t=Xt(),n=t.getSession()||e.getSession();n&&$Ue(n),Bee(),e.setSession(),t.setSession()}function Bee(){const e=Pa(),t=Xt(),n=gt(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function oL(e=!1){if(e){Nee();return}Bee()}const U$e="7";function $$e(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function z$e(e){return`${$$e(e)}${e.projectId}/envelope/`}function H$e(e,t){return KLe({sentry_key:e.publicKey,sentry_version:U$e,...t&&{sentry_client:`${t.name}/${t.version}`}})}function q$e(e,t,n){return t||`${z$e(e)}?${H$e(e,n)}`}const aL=[];function W$e(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function G$e(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=lee(n(t)):r=t;const o=W$e(r),a=o.findIndex(i=>i.name==="Debug");if(a>-1){const[i]=o.splice(a,1);o.push(i)}return o}function V$e(e,t){const n={};return t.forEach(r=>{r&&Fee(e,r,n)}),n}function iL(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Fee(e,t,n){if(n[t.name]){nt&&ye.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,aL.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),aL.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,a)=>r(o,a,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((a,i)=>r(a,i,e),{id:t.name});e.addEventProcessor(o)}nt&&ye.log(`Integration installed: ${t.name}`)}const sL="Not capturing exception because it's already been captured.";class K$e{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=VLe(t.dsn):nt&&ye.warn("No DSN provided, client will not send events."),this._dsn){const n=q$e(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const o=en();if($M(t))return nt&&ye.log(sL),o;const a={event_id:o,...n};return this._process(this.eventFromException(t,a).then(i=>this._captureEvent(i,a,r))),a.event_id}captureMessage(t,n,r,o){const a={event_id:en(),...r},i=MP(t)?t:String(t),s=LP(t)?this.eventFromMessage(i,n,a):this.eventFromException(t,a);return this._process(s.then(c=>this._captureEvent(c,a,o))),a.event_id}captureEvent(t,n,r){const o=en();if(n&&n.originalException&&$M(n.originalException))return nt&&ye.log(sL),o;const a={event_id:o,...n},s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,a,s||r)),a.event_id}captureSession(t){typeof t.release!="string"?nt&&ye.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Lh(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):Rs(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Fee(this,t,this._integrations),n||iL(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=h$e(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=DUe(r,IUe(a));const o=this.sendEnvelope(r);o&&o.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=f$e(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=typeof r=="number"?r:1,a=`${t}:${n}`;nt&&ye.log(`Recording outcome: "${a}"${o>1?` (${o} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+o}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(nt&&ye.error("Error while sending event:",n),n)):(nt&&ye.error("Transport disabled"),Rs({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=V$e(this,t),iL(this,t)}_updateSessionFromEvent(t,n){let r=!1,o=!1;const a=n.exception&&n.exception.values;if(a){o=!0;for(const c of a){const l=c.mechanism;if(l&&l.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(Lh(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new fa(n=>{let r=0;const o=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=o,t&&r>=t&&(clearInterval(a),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o=Pa()){const a=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Iee(a,t,n,r,this,o).then(s=>{if(s===null)return s;const c={...o.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(s.contexts&&s.contexts.trace)&&c){const{traceId:u,spanId:d,parentSpanId:f,dsc:h}=c;s.contexts={trace:zn({trace_id:u,span_id:d,parent_span_id:f}),...s.contexts};const m=h||O6(u,this);s.sdkProcessingMetadata={dynamicSamplingContext:m,...s.sdkProcessingMetadata}}return s})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(nt){const a=o;a.logLevel==="log"?ye.log(a.message):ye.warn(a)}})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:a}=o,i=Lee(t),s=Mee(t),c=t.type||"error",l=`before send for type \`${c}\``,u=typeof a>"u"?void 0:GE(a);if(s&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",t),HE(new Ti(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=c==="replay_event"?"replay":c,h=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,h).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",d,t),new Ti("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return m;const b=Q$e(this,o,m,n);return Y$e(b,l)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",d,t),i){const g=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",g)}throw new Ti(`${l} returned \`null\`, will not send event.`,"log")}const p=r&&r.getSession();if(!i&&p&&this._updateSessionFromEvent(p,m),i){const v=m.sdkProcessingMetadata&&m.sdkProcessingMetadata.spanCountBeforeProcessing||0,g=m.spans?m.spans.length:0,w=v-g;w>0&&this.recordDroppedEvent("before_send","span",w)}const b=m.transaction_info;if(i&&b&&m.transaction!==t.transaction){const v="custom";m.transaction_info={...b,source:v}}return this.sendEvent(m,n),m}).then(null,m=>{throw m instanceof Ti?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),new Ti(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${m}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,a]=n.split(":");return{reason:o,category:a,quantity:r}})}_flushOutcomes(){nt&&ye.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){nt&&ye.log("No outcomes to send");return}if(!this._dsn){nt&&ye.log("No dsn provided, will not send outcomes");return}nt&&ye.log("Sending outcomes:",t);const n=RUe(t,this._options.tunnel&&_b(this._dsn));this.sendEnvelope(n)}}function Y$e(e,t){const n=`${t} must return \`null\` or a valid event.`;if(k6(e))return e.then(r=>{if(!Mh(r)&&r!==null)throw new Ti(n);return r},r=>{throw new Ti(`${t} rejected with ${r}`)});if(!Mh(e)&&e!==null)throw new Ti(n);return e}function Q$e(e,t,n,r){const{beforeSend:o,beforeSendTransaction:a,beforeSendSpan:i}=t;if(Mee(n)&&o)return o(n,r);if(Lee(n)){if(n.spans&&i){const s=[];for(const c of n.spans){const l=i(c);l?s.push(l):e.recordDroppedEvent("before_send","span")}n.spans=s}if(a){if(n.spans){const s=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:s}}return a(n,r)}}return n}function Mee(e){return e.type===void 0}function Lee(e){return e.type==="transaction"}function X$e(e,t){t.debug===!0&&(nt?ye.enable():Gm(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Xt().update(t.initialScope);const r=new e(t);return J$e(r),r.init(),r}function J$e(e){Xt().setClient(e)}const Z$e=64;function eze(e,t,n=bUe(e.bufferSize||Z$e)){let r={};const o=i=>n.drain(i);function a(i){const s=[];if(HM(i,(d,f)=>{const h=qM(f);if(pee(r,h)){const m=cL(d,f);e.recordDroppedEvent("ratelimit_backoff",h,m)}else s.push(d)}),s.length===0)return Rs({});const c=Fd(i[0],s),l=d=>{HM(c,(f,h)=>{const m=cL(f,h);e.recordDroppedEvent(d,qM(h),m)})},u=()=>t({body:kUe(c)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&nt&&ye.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=gee(r,d),d),d=>{throw l("network_error"),d});return n.add(u).then(d=>d,d=>{if(d instanceof Ti)return nt&&ye.error("Skipped sending event because buffer is full."),l("queue_overflow"),Rs({});throw d})}return{send:a,flush:o}}function cL(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function tze(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return rze(e,n)||nze(e,r)}function nze(e,t){return t?lL(e)===lL(t):!1}function rze(e,t){return t?e.includes(t.host):!1}function lL(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Uee(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:ku})),version:ku}),e._metadata=o}const oze=100;function bl(e,t){const n=gt(),r=Pa();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=oze}=n.getOptions();if(a<=0)return;const s={timestamp:xb(),...e},c=o?Gm(()=>o(s,t)):s;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,a))}let uL;const aze="FunctionToString",dL=new WeakMap,ize=()=>({name:aze,setupOnce(){uL=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=UP(this),n=dL.has(gt())&&t!==void 0?t:this;return uL.apply(n,e)}}catch{}},setup(e){dL.set(e,!0)}}),sze=ize,cze=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],lze="InboundFilters",uze=(e={})=>({name:lze,processEvent(t,n,r){const o=r.getOptions(),a=fze(e,o);return hze(t,a)?null:t}}),dze=uze;function fze(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:cze],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function hze(e,t){return t.ignoreInternal&&vze(e)?(nt&&ye.warn(`Event dropped due to being internal Sentry Error. -Event: ${Cc(e)}`),!0):mze(e,t.ignoreErrors)?(nt&&ye.warn(`Event dropped due to being matched by \`ignoreErrors\` option. -Event: ${Cc(e)}`),!0):Eze(e)?(nt&&ye.warn(`Event dropped due to not having an error message, error type or stacktrace. -Event: ${Cc(e)}`),!0):pze(e,t.ignoreTransactions)?(nt&&ye.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${Cc(e)}`),!0):gze(e,t.denyUrls)?(nt&&ye.warn(`Event dropped due to being matched by \`denyUrls\` option. -Event: ${Cc(e)}. -Url: ${VE(e)}`),!0):yze(e,t.allowUrls)?!1:(nt&&ye.warn(`Event dropped due to not being matched by \`allowUrls\` option. -Event: ${Cc(e)}. -Url: ${VE(e)}`),!0)}function mze(e,t){return e.type||!t||!t.length?!1:bze(e).some(n=>Qc(n,t))}function pze(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Qc(n,t):!1}function gze(e,t){if(!t||!t.length)return!1;const n=VE(e);return n?Qc(n,t):!1}function yze(e,t){if(!t||!t.length)return!0;const n=VE(e);return n?Qc(n,t):!0}function bze(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function vze(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function wze(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function VE(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?wze(t):null}catch{return nt&&ye.error(`Cannot extract url for event ${Cc(e)}`),null}}function Eze(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}const _ze="Dedupe",xze=()=>{let e;return{name:_ze,processEvent(t){if(t.type)return t;try{if(Sze(t,e))return nt&&ye.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Cze=xze;function Sze(e,t){return t?!!(Tze(e,t)||Aze(e,t)):!1}function Tze(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!zee(e,t)||!$ee(e,t))}function Aze(e,t){const n=fL(t),r=fL(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!zee(e,t)||!$ee(e,t))}function $ee(e,t){let n=FM(e),r=FM(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o0?m.join(","):void 0}}else return{"sentry-trace":u,baggage:d}}function jze(e){try{return new URL(e).href}catch{return}}function Pze(e,t){if(t.response){vee(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Vn,message:"internal_error"});e.end()}const et=bt;let lk=0;function Hee(){return lk>0}function Ize(){lk++,setTimeout(()=>{lk--})}function $h(e,t={},n){if(typeof e!="function")return e;try{const o=e.__sentry_wrapped__;if(o)return o;if(UP(e))return e}catch{return e}const r=function(){const o=Array.prototype.slice.call(arguments);try{const a=o.map(i=>$h(i,t));return e.apply(this,a)}catch(a){throw Ize(),WP(i=>{i.addEventProcessor(s=>(t.mechanism&&(ZD(s,void 0),Cg(s,t.mechanism)),s.extra={...s.extra,arguments:o},s)),YP(a)}),a}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}JZ(r,e),Sa(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const ii=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function QP(e,t){const n=XP(e,t),r={type:t&&t.name,value:Fze(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Oze(e,t,n,r){const o=gt(),a=o&&o.getOptions().normalizeDepth,i=zze(t),s={__serialized__:uee(t,a)};if(i)return{exception:{values:[QP(e,i)]},extra:s};const c={exception:{values:[{type:D6(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Uze(t,{isUnhandledRejection:r})}]},extra:s};if(n){const l=XP(e,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function ST(e,t){return{exception:{values:[QP(e,t)]}}}function XP(e,t){const n=t.stacktrace||t.stack||"",r=Nze(t),o=Bze(t);try{return e(n,r,o)}catch{}return[]}const Rze=/Minified React error #\d+;/i;function Nze(e){return e&&Rze.test(e.message)?1:0}function Bze(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Fze(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Mze(e,t,n,r){const o=n&&n.syntheticException||void 0,a=JP(e,t,o,r);return Cg(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),Rs(a)}function Lze(e,t,n="info",r,o){const a=r&&r.syntheticException||void 0,i=uk(e,t,a,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),Rs(i)}function JP(e,t,n,r,o){let a;if(VZ(t)&&t.error)return ST(e,t.error);if(kM(t)||PLe(t)){const i=t;if("stack"in t)a=ST(e,t);else{const s=i.name||(kM(i)?"DOMError":"DOMException"),c=i.message?`${s}: ${i.message}`:s;a=uk(e,c,n,r),ZD(a,c)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return FP(t)?ST(e,t):Mh(t)||D6(t)?(a=Oze(e,t,n,o),Cg(a,{synthetic:!0}),a):(a=uk(e,t,n,r),ZD(a,`${t}`),Cg(a,{synthetic:!0}),a)}function uk(e,t,n,r){const o={};if(r&&n){const a=XP(e,n);a.length&&(o.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(MP(t)){const{__sentry_template_string__:a,__sentry_template_values__:i}=t;return o.logentry={message:a,params:i},o}return o.message=t,o}function Uze(e,{isUnhandledRejection:t}){const n=YLe(e),r=t?"promise rejection":"exception";return VZ(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:D6(e)?`Event \`${$ze(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function $ze(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function zze(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function Hze(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:_b(r)}},a=qze(e);return Fd(o,[a])}function qze(e){return[{type:"user_report"},e]}class Wze extends K$e{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=et.SENTRY_SDK_SOURCE||uUe();Uee(n,"browser",["browser"],r),super(n),n.sendClientReports&&et.document&&et.document.addEventListener("visibilitychange",()=>{et.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Mze(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Lze(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){ii&&ye.warn("SDK not enabled, will not capture user feedback.");return}const n=Hze(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const Go=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Gze=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Ym=(e,t,n,r)=>{let o,a;return i=>{t.value>=0&&(i||r)&&(a=t.value-(o||0),(a||o===void 0)&&(o=t.value,t.delta=a,t.rating=Gze(t.value,n),e(t)))}},Ke=bt,Vze=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Sb=()=>Ke.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],R6=()=>{const e=Sb();return e&&e.activationStart||0},Qm=(e,t)=>{const n=Sb();let r="navigate";return n&&(Ke.document&&Ke.document.prerendering||R6()>0?r="prerender":Ke.document&&Ke.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Vze(),navigationType:r}},Ud=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Tb=e=>{const t=n=>{(n.type==="pagehide"||Ke.document&&Ke.document.visibilityState==="hidden")&&e(n)};Ke.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ZP=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};let Tg=-1;const Kze=()=>{Tg=Ke.document.visibilityState==="hidden"&&!Ke.document.prerendering?0:1/0},KE=e=>{Ke.document.visibilityState==="hidden"&&Tg>-1&&(Tg=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("visibilitychange",KE,!0),removeEventListener("prerenderingchange",KE,!0))},Yze=()=>{addEventListener("visibilitychange",KE,!0),addEventListener("prerenderingchange",KE,!0)},N6=()=>(Ke.document&&Tg<0&&(Kze(),Yze()),{get firstHiddenTime(){return Tg}}),Ab=e=>{Ke.document&&Ke.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Qze=[1800,3e3],Xze=(e,t={})=>{Ab(()=>{const n=N6(),r=Qm("FCP");let o;const i=Ud("paint",s=>{s.forEach(c=>{c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime{Xze(ZP(()=>{const n=Qm("CLS",0);let r,o=0,a=[];const i=c=>{c.forEach(l=>{if(!l.hadRecentInput){const u=a[0],d=a[a.length-1];o&&u&&d&&l.startTime-d.startTime<1e3&&l.startTime-u.startTime<5e3?(o+=l.value,a.push(l)):(o=l.value,a=[l])}}),o>n.value&&(n.value=o,n.entries=a,r())},s=Ud("layout-shift",i);s&&(r=Ym(e,n,Jze,t.reportAllChanges),Tb(()=>{i(s.takeRecords()),r(!0)}),setTimeout(r,0))}))},eHe=[100,300],tHe=(e,t={})=>{Ab(()=>{const n=N6(),r=Qm("FID");let o;const a=c=>{c.startTime{c.forEach(a)},s=Ud("first-input",i);o=Ym(e,r,eHe,t.reportAllChanges),s&&Tb(ZP(()=>{i(s.takeRecords()),s.disconnect()}))})};let qee=0,TT=1/0,Uv=0;const nHe=e=>{e.forEach(t=>{t.interactionId&&(TT=Math.min(TT,t.interactionId),Uv=Math.max(Uv,t.interactionId),qee=Uv?(Uv-TT)/7+1:0)})};let dk;const rHe=()=>dk?qee:performance.interactionCount||0,oHe=()=>{"interactionCount"in performance||dk||(dk=Ud("event",nHe,{type:"event",buffered:!0,durationThreshold:0}))},aHe=[200,500],iHe=0,Wee=()=>rHe()-iHe,hL=10,rs=[],AT={},mL=e=>{const t=rs[rs.length-1],n=AT[e.interactionId];if(n||rs.lengtht.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};AT[r.id]=r,rs.push(r)}rs.sort((r,o)=>o.latency-r.latency),rs.splice(hL).forEach(r=>{delete AT[r.id]})}},sHe=()=>{const e=Math.min(rs.length-1,Math.floor(Wee()/50));return rs[e]},cHe=(e,t={})=>{Ab(()=>{oHe();const n=Qm("INP");let r;const o=i=>{i.forEach(c=>{c.interactionId&&mL(c),c.entryType==="first-input"&&!rs.some(u=>u.entries.some(d=>c.duration===d.duration&&c.startTime===d.startTime))&&mL(c)});const s=sHe();s&&s.latency!==n.value&&(n.value=s.latency,n.entries=s.entries,r())},a=Ud("event",o,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:40});r=Ym(e,n,aHe,t.reportAllChanges),a&&("PerformanceEventTiming"in Ke&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),Tb(()=>{o(a.takeRecords()),n.value<0&&Wee()>0&&(n.value=0,n.entries=[]),r(!0)}))})},lHe=[2500,4e3],pL={},uHe=(e,t={})=>{Ab(()=>{const n=N6(),r=Qm("LCP");let o;const a=s=>{const c=s[s.length-1];c&&c.startTime{pL[r.id]||(a(i.takeRecords()),i.disconnect(),pL[r.id]=!0,o(!0))});["keydown","click"].forEach(c=>{Ke.document&&addEventListener(c,()=>setTimeout(s,0),!0)}),Tb(s)}})},dHe=[800,1800],fk=e=>{Ke.document&&Ke.document.prerendering?Ab(()=>fk(e)):Ke.document&&Ke.document.readyState!=="complete"?addEventListener("load",()=>fk(e),!0):setTimeout(e,0)},fHe=(e,t={})=>{const n=Qm("TTFB"),r=Ym(e,n,dHe,t.reportAllChanges);fk(()=>{const o=Sb();if(o){const a=o.responseStart;if(a<=0||a>performance.now())return;n.value=Math.max(a-R6(),0),n.entries=[o],r(!0)}})},S0={},YE={};let Gee,Vee,Kee,Yee,Qee;function e7(e,t=!1){return Db("cls",e,mHe,Gee,t)}function Xee(e,t=!1){return Db("lcp",e,gHe,Kee,t)}function Jee(e){return Db("fid",e,pHe,Vee)}function hHe(e){return Db("ttfb",e,yHe,Yee)}function Zee(e){return Db("inp",e,bHe,Qee)}function zh(e,t){return ete(e,t),YE[e]||(vHe(e),YE[e]=!0),tte(e,t)}function Xm(e,t){const n=S0[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(o){Go&&ye.error(`Error while triggering instrumentation handler. -Type: ${e} -Name: ${Os(r)} -Error:`,o)}}function mHe(){return Zze(e=>{Xm("cls",{metric:e}),Gee=e},{reportAllChanges:!0})}function pHe(){return tHe(e=>{Xm("fid",{metric:e}),Vee=e})}function gHe(){return uHe(e=>{Xm("lcp",{metric:e}),Kee=e},{reportAllChanges:!0})}function yHe(){return fHe(e=>{Xm("ttfb",{metric:e}),Yee=e})}function bHe(){return cHe(e=>{Xm("inp",{metric:e}),Qee=e})}function Db(e,t,n,r,o=!1){ete(e,t);let a;return YE[e]||(a=n(),YE[e]=!0),r&&t({metric:r}),tte(e,t,o?a:void 0)}function vHe(e){const t={};e==="event"&&(t.durationThreshold=0),Ud(e,n=>{Xm(e,{entries:n})},t)}function ete(e,t){S0[e]=S0[e]||[],S0[e].push(t)}function tte(e,t,n){return()=>{n&&n();const r=S0[e];if(!r)return;const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function wHe(e){return"duration"in e}function DT(e){return typeof e=="number"&&isFinite(e)}function Hh(e,t,n,{...r}){const o=_t(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),kee(e,()=>{const a=zl({startTime:t,...r});return a&&a.end(n),a})}function nte(e){const t=gt();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:a}=e,{release:i,environment:s}=t.getOptions(),c=t.getIntegrationByName("Replay"),l=c&&c.getReplayId(),u=Xt(),d=u.getUser(),f=d!==void 0?d.email||d.id||d.ip_address:void 0;let h;try{h=u.getScopeData().contexts.profile.profile_id}catch{}const m={release:i,environment:s,user:f||void 0,profile_id:h||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":Ke.navigator&&Ke.navigator.userAgent,...o};return zl({name:n,attributes:m,startTime:a,experimental:{standalone:!0}})}function t7(){return Ke&&Ke.addEventListener&&Ke.performance}function Cn(e){return e/1e3}function EHe(){let e=0,t,n;if(!xHe())return;let r=!1;function o(){r||(r=!0,n&&_He(e,t,n),a())}const a=e7(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(e=i.value,t=s)},!0);Tb(()=>{o()}),setTimeout(()=>{const i=gt(),s=Uo([i,"optionalAccess",d=>d.on,"call",d=>d("startNavigationSpan",()=>{o(),s&&s()})]),c=Ur(),l=c&&gr(c),u=l&&_t(l);u&&u.op==="pageload"&&(n=l.spanContext().spanId)},0)}function _He(e,t,n){Go&&ye.log(`Sending CLS span (${e})`);const r=Cn((io||0)+(Uo([t,"optionalAccess",c=>c.startTime])||0)),o=Xt().getScopeData().transactionName,a=t?Is(Uo([t,"access",c=>c.sources,"access",c=>c[0],"optionalAccess",c=>c.node])):"Layout shift",i=zn({[rr]:"auto.http.browser.cls",[sd]:"ui.webvital.cls",[GP]:Uo([t,"optionalAccess",c=>c.duration])||0,"sentry.pageload.span_id":n}),s=nte({name:a,transaction:o,attributes:i,startTime:r});Uo([s,"optionalAccess",c=>c.addEvent,"call",c=>c("cls",{[P6]:"",[I6]:e})]),Uo([s,"optionalAccess",c=>c.end,"call",c=>c(r)])}function xHe(){try{return Uo([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch{return!1}}const CHe=2147483647;let gL=0,cr={},Ei,T0;function SHe({recordClsStandaloneSpans:e}){const t=t7();if(t&&io){t.mark&&Ke.performance.mark("sentry-tracing-init");const n=PHe(),r=jHe(),o=IHe(),a=e?EHe():kHe();return()=>{n(),r(),o(),a&&a()}}return()=>{}}function THe(){zh("longtask",({entries:e})=>{if(Ur())for(const t of e){const n=Cn(io+t.startTime),r=Cn(t.duration),o=zl({name:"Main UI thread blocked",op:"ui.long-task",startTime:n,attributes:{[rr]:"auto.ui.browser.metrics"}});o&&o.end(n+r)}})}function AHe(){new PerformanceObserver(t=>{if(Ur())for(const n of t.getEntries()){if(!n.scripts[0])continue;const r=Cn(io+n.startTime),o=Cn(n.duration),a={[rr]:"auto.ui.browser.metrics"},i=n.scripts[0],{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=i;a["browser.script.invoker"]=s,a["browser.script.invoker_type"]=c,l&&(a["code.filepath"]=l),u&&(a["code.function"]=u),d!==-1&&(a["browser.script.source_char_position"]=d);const f=zl({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:r,attributes:a});f&&f.end(r+o)}}).observe({type:"long-animation-frame",buffered:!0})}function DHe(){zh("event",({entries:e})=>{if(Ur()){for(const t of e)if(t.name==="click"){const n=Cn(io+t.startTime),r=Cn(t.duration),o={name:Is(t.target),op:`ui.interaction.${t.name}`,startTime:n,attributes:{[rr]:"auto.ui.browser.metrics"}},a=QZ(t.target);a&&(o.attributes["ui.component_name"]=a);const i=zl(o);i&&i.end(n+r)}}})}function kHe(){return e7(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Go&&ye.log(`[Measurements] Adding CLS ${e.value}`),cr.cls={value:e.value,unit:""},T0=t)},!0)}function jHe(){return Xee(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Go&&ye.log("[Measurements] Adding LCP"),cr.lcp={value:e.value,unit:"millisecond"},Ei=t)},!0)}function PHe(){return Jee(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Cn(io),r=Cn(t.startTime);Go&&ye.log("[Measurements] Adding FID"),cr.fid={value:e.value,unit:"millisecond"},cr["mark.fid"]={value:n+r,unit:"second"}})}function IHe(){return hHe(({metric:e})=>{e.entries[e.entries.length-1]&&(Go&&ye.log("[Measurements] Adding TTFB"),cr.ttfb={value:e.value,unit:"millisecond"})})}function OHe(e,t){const n=t7();if(!n||!Ke.performance.getEntries||!io)return;Go&&ye.log("[Tracing] Adding & adjusting spans using Performance API");const r=Cn(io),o=n.getEntries(),{op:a,start_timestamp:i}=_t(e);if(o.slice(gL).forEach(s=>{const c=Cn(s.startTime),l=Cn(Math.max(0,s.duration));if(!(a==="navigation"&&i&&r+c{p$e(c,l.value,l.unit)}),e.setAttribute("performance.timeOrigin",r),LHe(e)}Ei=void 0,T0=void 0,cr={}}function RHe(e,t,n,r,o){const a=Sb(),i=Cn(a?a.requestStart:0),s=o+Math.max(n,i),c=o+n,l=c+r,u={[rr]:"auto.resource.browser.metrics"};return s!==c&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=s),Hh(e,s,l,{name:t.name,op:t.entryType,attributes:u}),s}function NHe(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{$v(e,t,r,n)}),$v(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),$v(e,t,"fetch",n,"cache","domainLookupStart"),$v(e,t,"domainLookup",n,"DNS"),BHe(e,t,n)}function $v(e,t,n,r,o,a){const i=a?t[a]:t[`${n}End`],s=t[`${n}Start`];!s||!i||Hh(e,r+Cn(s),r+Cn(i),{op:"browser",name:o||n,attributes:{[rr]:"auto.ui.browser.metrics"}})}function BHe(e,t,n){const r=n+Cn(t.requestStart),o=n+Cn(t.responseEnd),a=n+Cn(t.responseStart);t.responseEnd&&(Hh(e,r,o,{op:"browser",name:"request",attributes:{[rr]:"auto.ui.browser.metrics"}}),Hh(e,a,o,{op:"browser",name:"response",attributes:{[rr]:"auto.ui.browser.metrics"}}))}function FHe(e,t,n,r,o,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const i=ju(n),s={[rr]:"auto.resource.browser.metrics"};kT(s,t,"transferSize","http.response_transfer_size"),kT(s,t,"encodedBodySize","http.response_content_length"),kT(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus),i.protocol&&(s["url.scheme"]=i.protocol.split(":").pop()),i.host&&(s["server.address"]=i.host),s["url.same_origin"]=n.includes(Ke.location.origin);const c=a+r,l=c+o;Hh(e,c,l,{name:n.replace(Ke.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:s})}function MHe(e){const t=Ke.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),DT(n.rtt)&&(cr["connection.rtt"]={value:n.rtt,unit:"millisecond"})),DT(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),DT(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function LHe(e){Ei&&(Go&&ye.log("[Measurements] Adding LCP Data"),Ei.element&&e.setAttribute("lcp.element",Is(Ei.element)),Ei.id&&e.setAttribute("lcp.id",Ei.id),Ei.url&&e.setAttribute("lcp.url",Ei.url.trim().slice(0,200)),e.setAttribute("lcp.size",Ei.size)),T0&&T0.sources&&(Go&&ye.log("[Measurements] Adding CLS Data"),T0.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,Is(t.node))))}function kT(e,t,n,r){const o=t[n];o!=null&&o{const r=Ke[n]&&Ke[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(go(r,"addEventListener",function(o){return function(a,i,s){if(a==="click"||a=="keypress")try{const c=this,l=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},u=l[a]=l[a]||{refCount:0};if(!u.handler){const d=bL(e);u.handler=d,o.call(this,a,d,s)}u.refCount++}catch{}return o.call(this,a,i,s)}}),go(r,"removeEventListener",function(o){return function(a,i,s){if(a==="click"||a=="keypress")try{const c=this,l=c.__sentry_instrumentation_handlers__||{},u=l[a];u&&(u.refCount--,u.refCount<=0&&(o.call(this,a,u.handler,s),u.handler=void 0,delete l[a]),Object.keys(l).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,a,i,s)}}))})}function HHe(e){if(e.type!==hk)return!1;try{if(!e.target||e.target._sentryId!==mk)return!1}catch{}return!0}function qHe(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function bL(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=WHe(n);if(qHe(n.type,r))return;Sa(n,"_sentryCaptured",!0),r&&!r._sentryId&&Sa(r,"_sentryId",en());const o=n.type==="keypress"?"input":n.type;HHe(n)||(e({event:n,name:o,global:t}),hk=n.type,mk=r?r._sentryId:void 0),clearTimeout(yL),yL=Ke.setTimeout(()=>{mk=void 0,hk=void 0},$He)}}function WHe(e){try{return e.target}catch{return null}}let zv;function B6(e){const t="history";Ul(t,e),$l(t,GHe)}function GHe(){if(!LUe())return;const e=Ke.onpopstate;Ke.onpopstate=function(...n){const r=Ke.location.href,o=zv;if(zv=r,ba("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const o=r.length>2?r[2]:void 0;if(o){const a=zv,i=String(o);zv=i,ba("history",{from:a,to:i})}return n.apply(this,r)}}go(Ke.history,"pushState",t),go(Ke.history,"replaceState",t)}const F1={};function ote(e){const t=F1[e];if(t)return t;let n=Ke[e];if(XD(n))return F1[e]=n.bind(Ke);const r=Ke.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const a=o.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(o)}catch(o){Go&&ye.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(F1[e]=n.bind(Ke))}function vL(e){F1[e]=void 0}function qh(...e){return ote("setTimeout")(...e)}const Eu="__sentry_xhr_v3__";function ate(e){const t="xhr";Ul(t,e),$l(t,VHe)}function VHe(){if(!Ke.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const o=no()*1e3,a=gs(r[0])?r[0].toUpperCase():void 0,i=KHe(r[1]);if(!a||!i)return t.apply(n,r);n[Eu]={method:a,url:i,request_headers:{}},a==="POST"&&i.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const s=()=>{const c=n[Eu];if(c&&n.readyState===4){try{c.status_code=n.status}catch{}const l={endTimestamp:no()*1e3,startTimestamp:o,xhr:n};ba("xhr",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(c,l,u){return s(),c.apply(l,u)}}):n.addEventListener("readystatechange",s),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(c,l,u){const[d,f]=u,h=l[Eu];return h&&gs(d)&&gs(f)&&(h.request_headers[d.toLowerCase()]=f),c.apply(l,u)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const o=n[Eu];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const a={startTimestamp:no()*1e3,xhr:n};return ba("xhr",a),t.apply(n,r)}})}function KHe(e){if(gs(e))return e;try{return e.toString()}catch{}}const jT=[],M1=new Map;function YHe(){if(t7()&&io){const t=QHe();return()=>{t()}}return()=>{}}const wL={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function QHe(){return Zee(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(m=>m.duration===e.value&&wL[m.name]);if(!t)return;const{interactionId:n}=t,r=wL[t.name],o=Cn(io+t.startTime),a=Cn(e.value),i=Ur(),s=i?gr(i):void 0,l=(n!=null?M1.get(n):void 0)||s,u=l?_t(l).description:Xt().getScopeData().transactionName,d=Is(t.target),f=zn({[rr]:"auto.http.browser.inp",[sd]:`ui.interaction.${r}`,[GP]:t.duration}),h=nte({name:d,transaction:u,attributes:f,startTime:o});Uo([h,"optionalAccess",m=>m.addEvent,"call",m=>m("inp",{[P6]:"millisecond",[I6]:e.value})]),Uo([h,"optionalAccess",m=>m.end,"call",m=>m(o+a)])})}function XHe(e){const t=({entries:n})=>{const r=Ur(),o=r&&gr(r);n.forEach(a=>{if(!wHe(a)||!o)return;const i=a.interactionId;if(i!=null&&!M1.has(i)){if(jT.length>10){const s=jT.shift();M1.delete(s)}jT.push(i),M1.set(i,o)}})};zh("event",t),zh("first-input",t)}function JHe(e,t=ote("fetch")){let n=0,r=0;function o(a){const i=a.body.length;n+=i,r++;const s={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return vL("fetch"),HE("No fetch implementation available");try{return t(e.url,s).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return vL("fetch"),n-=i,r--,HE(c)}}return eze(e,o)}const ZHe=30,eqe=50;function pk(e,t,n,r){const o={filename:e,function:t===""?ad:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const tqe=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,nqe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rqe=/\((\S*)(?::(\d+))(?::(\d+))\)/,oqe=e=>{const t=tqe.exec(e);if(t){const[,r,o,a]=t;return pk(r,ad,+o,+a)}const n=nqe.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=rqe.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[o,a]=ite(n[1]||ad,n[2]);return pk(a,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},aqe=[ZHe,oqe],iqe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,sqe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,cqe=e=>{const t=iqe.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=sqe.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],o=t[1]||ad;return[o,r]=ite(o,r),pk(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},lqe=[eqe,cqe],uqe=[aqe,lqe],dqe=tee(...uqe),ite=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:ad,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Hv=1024,fqe="Breadcrumbs",hqe=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:fqe,setup(n){t.console&&ZLe(yqe(n)),t.dom&&rte(gqe(n,t.dom)),t.xhr&&ate(bqe(n)),t.fetch&&oee(vqe(n)),t.history&&B6(wqe(n)),t.sentry&&n.on("beforeSendEvent",pqe(n))}}},mqe=hqe;function pqe(e){return function(n){gt()===e&&bl({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Cc(n)},{event:n})}}function gqe(e,t){return function(r){if(gt()!==e)return;let o,a,i=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>Hv&&(ii&&ye.warn(`\`dom.maxStringLength\` cannot exceed ${Hv}, but a value of ${s} was configured. Sentry will use ${Hv} instead.`),s=Hv),typeof i=="string"&&(i=[i]);try{const l=r.event,u=Eqe(l)?l.target:l;o=Is(u,{keyAttrs:i,maxStringLength:s}),a=QZ(u)}catch{o=""}if(o.length===0)return;const c={category:`ui.${r.name}`,message:o};a&&(c.data={"ui.component_name":a}),bl(c,{event:r.event,name:r.name,global:r.global})}}function yqe(e){return function(n){if(gt()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:wUe(n.level),message:jM(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${jM(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;bl(r,{input:n.args,level:n.level})}}function bqe(e){return function(n){if(gt()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,a=n.xhr[Eu];if(!r||!o||!a)return;const{method:i,url:s,status_code:c,body:l}=a,u={method:i,url:s,status_code:c},d={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:o};bl({category:"xhr",data:u,type:"http"},d)}}function vqe(e){return function(n){if(gt()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};bl({category:"fetch",data:a,level:"error",type:"http"},i)}else{const a=n.response,i={...n.fetchData,status_code:a&&a.status},s={input:n.args,response:a,startTimestamp:r,endTimestamp:o};bl({category:"fetch",data:i,type:"http"},s)}}}function wqe(e){return function(n){if(gt()!==e)return;let r=n.from,o=n.to;const a=ju(et.location.href);let i=r?ju(r):void 0;const s=ju(o);(!i||!i.path)&&(i=a),a.protocol===s.protocol&&a.host===s.host&&(o=s.relative),a.protocol===i.protocol&&a.host===i.host&&(r=i.relative),bl({category:"navigation",data:{from:r,to:o}})}}function Eqe(e){return!!e&&!!e.target}const _qe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],xqe="BrowserApiErrors",Cqe=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:xqe,setupOnce(){t.setTimeout&&go(et,"setTimeout",EL),t.setInterval&&go(et,"setInterval",EL),t.requestAnimationFrame&&go(et,"requestAnimationFrame",Tqe),t.XMLHttpRequest&&"XMLHttpRequest"in et&&go(XMLHttpRequest.prototype,"send",Aqe);const n=t.eventTarget;n&&(Array.isArray(n)?n:_qe).forEach(Dqe)}}},Sqe=Cqe;function EL(e){return function(...t){const n=t[0];return t[0]=$h(n,{mechanism:{data:{function:Os(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Tqe(e){return function(t){return e.apply(this,[$h(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Os(e)},handled:!1,type:"instrument"}})])}}function Aqe(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&go(n,o,function(a){const i={mechanism:{data:{function:o,handler:Os(a)},handled:!1,type:"instrument"}},s=UP(a);return s&&(i.mechanism.data.handler=Os(s)),$h(a,i)})}),e.apply(this,t)}}function Dqe(e){const t=et,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(go(n,"addEventListener",function(r){return function(o,a,i){try{typeof a.handleEvent=="function"&&(a.handleEvent=$h(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Os(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,$h(a,{mechanism:{data:{function:"addEventListener",handler:Os(a),target:e},handled:!1,type:"instrument"}}),i])}}),go(n,"removeEventListener",function(r){return function(o,a,i){const s=a;try{const c=s&&s.__sentry_wrapped__;c&&r.call(this,o,c,i)}catch{}return r.call(this,o,s,i)}}))}const kqe="GlobalHandlers",jqe=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:kqe,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Iqe(n),_L("onerror")),t.onunhandledrejection&&(Oqe(n),_L("onunhandledrejection"))}}},Pqe=jqe;function Iqe(e){iee(t=>{const{stackParser:n,attachStacktrace:r}=ste();if(gt()!==e||Hee())return;const{msg:o,url:a,line:i,column:s,error:c}=t,l=Bqe(JP(n,c||o,void 0,r,!1),a,i,s);l.level="error",Oee(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Oqe(e){see(t=>{const{stackParser:n,attachStacktrace:r}=ste();if(gt()!==e||Hee())return;const o=Rqe(t),a=LP(o)?Nqe(o):JP(n,o,void 0,r,!0);a.level="error",Oee(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Rqe(e){if(LP(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Nqe(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Bqe(e,t,n,r){const o=e.exception=e.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{},s=i.stacktrace=i.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=gs(t)&&t.length>0?t:YZ();return c.length===0&&c.push({colno:l,filename:d,function:ad,in_app:!0,lineno:u}),e}function _L(e){ii&&ye.log(`Global Handler attached: ${e}`)}function ste(){const e=gt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Fqe=()=>({name:"HttpContext",preprocessEvent(e){if(!et.navigator&&!et.location&&!et.document)return;const t=e.request&&e.request.url||et.location&&et.location.href,{referrer:n}=et.document||{},{userAgent:r}=et.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:o};e.request=a}}),Mqe="cause",Lqe=5,Uqe="LinkedErrors",$qe=(e={})=>{const t=e.limit||Lqe,n=e.key||Mqe;return{name:Uqe,preprocessEvent(r,o,a){const i=a.getOptions();BLe(QP,i.stackParser,i.maxValueLength,n,t,r,o)}}},zqe=$qe;function Hqe(e){return[dze(),sze(),Sqe(),mqe(),Pqe(),zqe(),Cze(),Fqe()]}function qqe(e={}){const t={defaultIntegrations:Hqe(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:et.SENTRY_RELEASE&&et.SENTRY_RELEASE.id?et.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function Wqe(){const e=typeof et.window<"u"&&et;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,o=et.location&&et.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&et===et.top&&a.some(c=>o.startsWith(`${c}//`)),s=typeof e.nw<"u";return!!r&&!i&&!s}function Gqe(e={}){const t=qqe(e);if(Wqe()){Gm(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}ii&&(nee()||ye.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:XLe(t.stackParser||dqe),integrations:G$e(t),transport:t.transport||JHe},r=X$e(Wze,n);return t.autoSessionTracking&&Vqe(),r}function Vqe(){if(typeof et.document>"u"){ii&&ye.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}rL({ignoreDuration:!0}),oL(),B6(({from:e,to:t})=>{e!==void 0&&e!==t&&(rL({ignoreDuration:!0}),oL())})}const qt=bt,n7="sentryReplaySession",Kqe="replay_event",r7="Unable to send Replay",Yqe=3e5,Qqe=9e5,Xqe=5e3,Jqe=5500,Zqe=6e4,eWe=5e3,tWe=3,xL=15e4,qv=5e3,nWe=3e3,rWe=300,o7=2e7,oWe=4999,aWe=15e3,CL=36e5;function gk(e,t){return e??t()}function Ag(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}var Un;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Un||(Un={}));function iWe(e){return e.nodeType===e.ELEMENT_NODE}function A0(e){const t=Ag([e,"optionalAccess",n=>n.host]);return Ag([t,"optionalAccess",n=>n.shadowRoot])===e}function D0(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function sWe(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function cWe(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function QE(e){try{const t=e.rules||e.cssRules;return t?sWe(Array.from(t,cte).join("")):null}catch{return null}}function cte(e){let t;if(uWe(e))try{t=QE(e.styleSheet)||cWe(e)}catch{}else if(dWe(e)&&e.selectorText.includes(":"))return lWe(e.cssText);return t||e.cssText}function lWe(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function uWe(e){return"styleSheet"in e}function dWe(e){return"selectorText"in e}class lte{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=Ag([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return gk(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function fWe(){return new lte}function F6({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Dg({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Wh(e){return e.toLowerCase()}function yk(e){return e.toUpperCase()}const SL="__rrweb_original__";function hWe(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;rc!==0))return!1}return!0}function a7(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Wh(t):null}function XE(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function ute(e,t){let n;try{n=new URL(e,gk(t,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,o=n.pathname.match(r);return gk(Ag([o,"optionalAccess",a=>a[1]]),()=>null)}const TL={};function dte(e){const t=TL[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(o)}catch{}return TL[e]=r.bind(window)}function bk(...e){return dte("setTimeout")(...e)}function fte(...e){return dte("clearTimeout")(...e)}let mWe=1;const pWe=new RegExp("[^a-z0-9-_:]"),kg=-2;function i7(){return mWe++}function gWe(e){if(e instanceof HTMLFormElement)return"form";const t=Wh(e.tagName);return pWe.test(t)?"div":t}function yWe(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let af,AL;const bWe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,vWe=/^(?:[a-z+]+:)?\/\//i,wWe=/^www\..*/i,EWe=/^(data:)([^,]*),(.*)/i;function JE(e,t){return(e||"").replace(bWe,(n,r,o,a,i,s)=>{const c=o||i||s,l=r||a||"";if(!c)return n;if(vWe.test(c)||wWe.test(c))return`url(${l}${c}${l})`;if(EWe.test(c))return`url(${l}${c}${l})`;if(c[0]==="/")return`url(${l}${yWe(t)+c}${l})`;const u=t.split("/"),d=c.split("/");u.pop();for(const f of d)f!=="."&&(f===".."?u.pop():u.push(f));return`url(${l}${u.join("/")}${l})`})}const _We=/^[^ \t\n\r\u000c]+/,xWe=/^[, \t\n\r\u000c]+/;function CWe(e,t){if(t.trim()==="")return t;let n=0;function r(a){let i;const s=a.exec(t.substring(n));return s?(i=s[0],n+=i.length,i):""}const o=[];for(;r(xWe),!(n>=t.length);){let a=r(_We);if(a.slice(-1)===",")a=Mf(e,a.substring(0,a.length-1)),o.push(a);else{let i="";a=Mf(e,a);let s=!1;for(;;){const c=t.charAt(n);if(c===""){o.push((a+i).trim());break}else if(s)c===")"&&(s=!1);else if(c===","){n+=1,o.push((a+i).trim());break}else c==="("&&(s=!0);i+=c,n+=1}}}return o.join(", ")}function Mf(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function SWe(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function s7(){const e=document.createElement("a");return e.href="",e.href}function hte(e,t,n,r,o,a){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?Mf(e,r):n==="srcset"?CWe(e,r):n==="style"?JE(r,s7()):t==="object"&&n==="data"?Mf(e,r):typeof a=="function"?a(n,r,o):r)}function mte(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function TWe(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const a=e.classList[o];if(t.test(a))return!0}if(n)return e.matches(n)}catch{}return!1}function AWe(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function _u(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:_u(e.parentNode,t,n,r+1)}function Lf(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(AWe(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Gh(e,t,n,r,o,a){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){const l=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(l))return!0}let s=-1,c=-1;if(a){if(c=_u(i,Lf(r,o)),c<0)return!0;s=_u(i,Lf(t,n),c>=0?c:1/0)}else{if(s=_u(i,Lf(t,n)),s<0)return!1;c=_u(i,Lf(r,o),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function DWe(e,t,n){const r=e.contentWindow;if(!r)return;let o=!1,a;try{a=r.document.readyState}catch{return}if(a!=="complete"){const s=bk(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{fte(s),o=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return bk(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function kWe(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const a=bk(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{fte(a),r=!0,t()})}function jWe(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:m={},maskTextFn:p,maskInputFn:b,dataURLOptions:v={},inlineImages:g,recordCanvas:w,keepIframeSrcFn:_,newlyAddedElement:C=!1}=t,x=PWe(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Un.Document,childNodes:[],compatMode:e.compatMode}:{type:Un.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Un.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return OWe(e,{doc:n,blockClass:o,blockSelector:a,unblockSelector:i,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:m,maskInputFn:b,dataURLOptions:v,inlineImages:g,recordCanvas:w,keepIframeSrcFn:_,newlyAddedElement:C,rootId:x,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return IWe(e,{maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:p,maskInputOptions:m,maskInputFn:b,rootId:x});case e.CDATA_SECTION_NODE:return{type:Un.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:Un.Comment,textContent:e.textContent||"",rootId:x};default:return!1}}function PWe(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function IWe(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:a,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const h=d==="STYLE"?!0:void 0,m=d==="SCRIPT"?!0:void 0,p=d==="TEXTAREA"?!0:void 0;if(h&&f){try{e.nextSibling||e.previousSibling||Ag([e,"access",v=>v.parentNode,"access",v=>v.sheet,"optionalAccess",v=>v.cssRules])&&(f=QE(e.parentNode.sheet))}catch(v){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`,e)}f=JE(f,s7())}m&&(f="SCRIPT_PLACEHOLDER");const b=Gh(e,r,a,o,i,n);if(!h&&!m&&!p&&f&&b&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,"*")),p&&f&&(c.textarea||b)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const v=F6({type:null,tagName:d,maskInputOptions:c});f=Dg({isMasked:Gh(e,r,a,o,i,v),element:e,value:f,maskInputFn:l})}return{type:Un.Text,textContent:f||"",isStyle:h,rootId:u}}function OWe(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:a,inlineStylesheet:i,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1,rootId:p,maskAllText:b,maskTextClass:v,unmaskTextClass:g,maskTextSelector:w,unmaskTextSelector:_}=t,C=TWe(e,r,o,a),x=gWe(e);let E={};const T=e.attributes.length;for(let D=0;DF.href===e.href);let R=null;D&&(R=QE(D)),R&&(delete E.rel,delete E.href,E._cssText=JE(R,D.href))}if(x==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const D=QE(e.sheet);D&&(E._cssText=JE(D,s7()))}if(x==="input"||x==="textarea"||x==="select"||x==="option"){const D=e,R=a7(D),F=XE(D,yk(x),R),B=D.checked;if(R!=="submit"&&R!=="button"&&F){const j=Gh(D,v,w,g,_,F6({type:R,tagName:yk(x),maskInputOptions:s}));E.value=Dg({isMasked:j,element:D,value:F,maskInputFn:l})}B&&(E.checked=B)}if(x==="option"&&(e.selected&&!s.select?E.selected=!0:delete E.selected),x==="canvas"&&f){if(e.__context==="2d")hWe(e)||(E.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const D=e.toDataURL(u.type,u.quality),R=document.createElement("canvas");R.width=e.width,R.height=e.height;const F=R.toDataURL(u.type,u.quality);D!==F&&(E.rr_dataURL=D)}}if(x==="img"&&d){af||(af=n.createElement("canvas"),AL=af.getContext("2d"));const D=e,R=D.crossOrigin;D.crossOrigin="anonymous";const F=()=>{D.removeEventListener("load",F);try{af.width=D.naturalWidth,af.height=D.naturalHeight,AL.drawImage(D,0,0),E.rr_dataURL=af.toDataURL(u.type,u.quality)}catch(B){console.warn(`Cannot inline img src=${D.currentSrc}! Error: ${B}`)}R?E.crossOrigin=R:D.removeAttribute("crossorigin")};D.complete&&D.naturalWidth!==0?F():D.addEventListener("load",F)}if((x==="audio"||x==="video")&&(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop)),C){const{width:D,height:R}=e.getBoundingClientRect();E={class:E.class,rr_width:`${D}px`,rr_height:`${R}px`}}x==="iframe"&&!h(E.src)&&(!C&&!e.contentDocument&&(E.rr_src=E.src),delete E.src);let k;try{customElements.get(x)&&(k=!0)}catch{}return{type:Un.Element,tagName:x,attributes:E,childNodes:[],isSVG:SWe(e)||void 0,needBlock:C,rootId:p,isCustom:k}}function zt(e){return e==null?"":e.toLowerCase()}function RWe(e,t){if(t.comment&&e.type===Un.Comment)return!0;if(e.type===Un.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&ute(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(zt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||zt(e.attributes.name)==="application-name"||zt(e.attributes.rel)==="icon"||zt(e.attributes.rel)==="apple-touch-icon"||zt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&zt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(zt(e.attributes.property).match(/^(og|twitter|fb):/)||zt(e.attributes.name).match(/^(og|twitter):/)||zt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(zt(e.attributes.name)==="robots"||zt(e.attributes.name)==="googlebot"||zt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(zt(e.attributes.name)==="author"||zt(e.attributes.name)==="generator"||zt(e.attributes.name)==="framework"||zt(e.attributes.name)==="publisher"||zt(e.attributes.name)==="progid"||zt(e.attributes.property).match(/^article:/)||zt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(zt(e.attributes.name)==="google-site-verification"||zt(e.attributes.name)==="yandex-verification"||zt(e.attributes.name)==="csrf-token"||zt(e.attributes.name)==="p:domain_verify"||zt(e.attributes.name)==="verify-v1"||zt(e.attributes.name)==="verification"||zt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Uf(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:m={},maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w={},inlineImages:_=!1,recordCanvas:C=!1,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:T=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:D=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:F=!1}=t;let{preserveWhiteSpace:B=!0}=t;const j=jWe(e,{doc:n,mirror:r,blockClass:o,blockSelector:a,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,dataURLOptions:w,inlineImages:_,recordCanvas:C,keepIframeSrcFn:R,newlyAddedElement:F});if(!j)return console.warn(e,"not serialized"),null;let P;r.hasNode(e)?P=r.getId(e):RWe(j,g)||!B&&j.type===Un.Text&&!j.isStyle&&!j.textContent.replace(/^\s+|\s+$/gm,"").length?P=kg:P=i7();const O=Object.assign(j,{id:P});if(r.add(e,O),P===kg)return null;x&&x(e);let I=!f;if(O.type===Un.Element){I=I&&!O.needBlock,delete O.needBlock;const N=e.shadowRoot;N&&D0(N)&&(O.isShadowHost=!0)}if((O.type===Un.Document||O.type===Un.Element)&&I){g.headWhitespace&&O.type===Un.Element&&O.tagName==="head"&&(B=!1);const N={doc:n,mirror:r,blockClass:o,blockSelector:a,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:_,recordCanvas:C,preserveWhiteSpace:B,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:k,stylesheetLoadTimeout:D,keepIframeSrcFn:R};for(const M of Array.from(e.childNodes)){const L=Uf(M,N);L&&O.childNodes.push(L)}if(iWe(e)&&e.shadowRoot)for(const M of Array.from(e.shadowRoot.childNodes)){const L=Uf(M,N);L&&(D0(e.shadowRoot)&&(L.isShadow=!0),O.childNodes.push(L))}}return e.parentNode&&A0(e.parentNode)&&D0(e.parentNode)&&(O.isShadow=!0),O.type===Un.Element&&O.tagName==="iframe"&&DWe(e,()=>{const N=e.contentDocument;if(N&&E){const M=Uf(N,{doc:N,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:_,recordCanvas:C,preserveWhiteSpace:B,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:k,stylesheetLoadTimeout:D,keepIframeSrcFn:R});M&&E(e,M)}},T),O.type===Un.Element&&O.tagName==="link"&&typeof O.attributes.rel=="string"&&(O.attributes.rel==="stylesheet"||O.attributes.rel==="preload"&&typeof O.attributes.href=="string"&&ute(O.attributes.href)==="css")&&kWe(e,()=>{if(k){const N=Uf(e,{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:_,recordCanvas:C,preserveWhiteSpace:B,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:k,stylesheetLoadTimeout:D,keepIframeSrcFn:R});N&&k(e,N)}},D),O}function NWe(e,t){const{mirror:n=new lte,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:a=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:h=!1,maskAllInputs:m=!1,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOM:g=!1,dataURLOptions:w,preserveWhiteSpace:_,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:T,stylesheetLoadTimeout:k,keepIframeSrcFn:D=()=>!1}=t||{};return Uf(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,maskAllText:i,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:g==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:g===!1?{}:g,dataURLOptions:w,inlineImages:f,recordCanvas:h,preserveWhiteSpace:_,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:T,stylesheetLoadTimeout:k,keepIframeSrcFn:D,newlyAddedElement:!1})}function Sc(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}function Yr(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const gf=`Please stop import mirror directly. Instead of that,\r -now you can use replayer.getMirror() to access the mirror instance of a replayer,\r -or you can use record.mirror to access the mirror instance during recording.`;let DL={map:{},getId(){return console.error(gf),-1},getNode(){return console.error(gf),null},removeNodeFromMap(){console.error(gf)},has(){return console.error(gf),!1},reset(){console.error(gf)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(DL=new Proxy(DL,{get(e,t,n){return t==="map"&&console.error(gf),Reflect.get(e,t,n)}}));function jg(e,t,n={}){let r=null,o=0;return function(...a){const i=Date.now();!o&&n.leading===!1&&(o=i);const s=t-(i-o),c=this;s<=0||s>t?(r&&(zWe(r),r=null),o=i,e.apply(c,a)):!r&&n.trailing!==!1&&(r=M6(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function pte(e,t,n,r,o=window){const a=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(i){M6(()=>{n.set.call(this,i)},0),a&&a.set&&a.set.call(this,i)}}),()=>pte(e,t,a||{},!0)}function c7(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}let ZE=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ZE=()=>new Date().getTime());function gte(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Sc([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Sc([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Sc([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Sc([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Sc([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Sc([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function yte(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function bte(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function vte(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function No(e,t,n,r,o){if(!e)return!1;const a=vte(e);if(!a)return!1;const i=Lf(t,n);if(!o){const l=r&&a.matches(r);return i(a)&&!l}const s=_u(a,i);let c=-1;return s<0?!1:(r&&(c=_u(a,Lf(null,r))),s>-1&&c<0?!0:s{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Ete(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function _te(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function wk(e){return!!Sc([e,"optionalAccess",t=>t.shadowRoot])}class MWe{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return MUe(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function xte(e){let t=null;return Sc([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function LWe(e){let t=e,n;for(;n=xte(t);)t=n;return t}function UWe(e){const t=e.ownerDocument;if(!t)return!1;const n=LWe(e);return t.contains(n)}function Cte(e){const t=e.ownerDocument;return t?t.contains(e)||UWe(e):!1}const kL={};function l7(e){const t=kL[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(o)}catch{}return kL[e]=r.bind(window)}function $We(...e){return l7("requestAnimationFrame")(...e)}function M6(...e){return l7("setTimeout")(...e)}function zWe(...e){return l7("clearTimeout")(...e)}var it=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(it||{}),Ye=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Ye||{}),qr=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(qr||{}),Zi=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Zi||{});function HWe(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}function jL(e){return"__ln"in e}class qWe{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;ro.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&jL(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&jL(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const PL=(e,t)=>`${e}@${t}`;class WWe{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new qWe,o=c=>{let l=c,u=kg;for(;u===kg;)l=l&&l.nextSibling,u=l&&this.mirror.getId(l);return u},a=c=>{if(!c.parentNode||!Cte(c))return;const l=A0(c.parentNode)?this.mirror.getId(xte(c)):this.mirror.getId(c.parentNode),u=o(c);if(l===-1||u===-1)return r.addNode(c);const d=Uf(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{Ete(f,this.mirror)&&!No(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),_te(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),wk(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,h)=>{No(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,h),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,h)=>{this.stylesheetManager.attachLinkElement(f,h)}});d&&(t.push({parentId:l,nextId:u,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)IL(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||a(c);for(const c of this.addedSet)!OL(this.droppedSet,c)&&!IL(this.removes,c,this.mirror)||OL(this.movedSet,c)?a(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const l=this.mirror.getId(i.value.parentNode),u=o(i.value);l!==-1&&u!==-1&&(c=i)}if(!c){let l=r.tail;for(;l;){const u=l;if(l=l.previous,u){const d=this.mirror.getId(u.value.parentNode);if(o(u.value)===-1)continue;if(d!==-1){c=u;break}else{const h=u.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const m=h.parentNode.host;if(this.mirror.getId(m)!==-1){c=u;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),a(c.value)}const s={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:l}=c;if(typeof l.style=="string"){const u=JSON.stringify(c.styleDiff),d=JSON.stringify(c._unchangedStyles);u.length!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!s.texts.length&&!s.attributes.length&&!s.removes.length&&!s.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=t=>{if(!PT(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!No(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Gh(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,vte(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){const i=a7(n),s=n.tagName;o=XE(n,s,i);const c=F6({maskInputOptions:this.maskInputOptions,tagName:s,type:i}),l=Gh(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=Dg({isMasked:l,element:n,value:o,maskInputFn:this.maskInputFn})}if(No(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let a=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!n.contentDocument)r="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!mte(n.tagName,r)&&(a.attributes[r]=hte(this.doc,Wh(n.tagName),Wh(r),o,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const s of Array.from(n.style)){const c=n.style.getPropertyValue(s),l=n.style.getPropertyPriority(s);c!==i.style.getPropertyValue(s)||l!==i.style.getPropertyPriority(s)?l===""?a.styleDiff[s]=c:a.styleDiff[s]=[c,l]:a._unchangedStyles[s]=[c,l]}for(const s of Array.from(i.style))n.style.getPropertyValue(s)===""&&(a.styleDiff[s]=!1)}break}case"childList":{if(No(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),o=A0(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);No(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||PT(n,this.mirror)||!BWe(n,this.mirror)||(this.addedSet.has(n)?(Ek(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||wte(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[PL(r,o)]?Ek(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:A0(t.target)&&D0(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(PT(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[PL(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);No(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),wk(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ek(e,t){e.delete(t),t.childNodes.forEach(n=>Ek(e,n))}function IL(e,t,n){return e.length===0?!1:Ste(e,t,n)}function Ste(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return e.some(a=>a.id===o)?!0:Ste(e,r,n)}function OL(e,t){return e.size===0?!1:Tte(e,t)}function Tte(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Tte(e,n):!1}let k0;function GWe(e){k0=e}function VWe(){k0=void 0}const vt=e=>k0?(...n)=>{try{return e(...n)}catch(r){if(k0&&k0(r)===!0)return()=>{};throw r}}:e;function Ga(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}const $f=[];function kb(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Ate(e,t){const n=new WWe;$f.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=Ga([window,"optionalAccess",i=>i.Zone,"optionalAccess",i=>i.__symbol__,"optionalCall",i=>i("MutationObserver")]);o&&window[o]&&(r=window[o]);const a=new r(vt(i=>{e.onMutation&&e.onMutation(i)===!1||n.processMutations.bind(n)(i)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function KWe({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],s;const c=jg(vt(d=>{const f=Date.now()-s;e(i.map(h=>(h.timeOffset-=f,h)),d),i=[],s=null}),a),l=vt(jg(vt(d=>{const f=kb(d),{clientX:h,clientY:m}=vk(d)?d.changedTouches[0]:d;s||(s=ZE()),i.push({x:h,y:m,id:r.getId(f),timeOffset:ZE()-s}),c(typeof DragEvent<"u"&&d instanceof DragEvent?Ye.Drag:d instanceof MouseEvent?Ye.MouseMove:Ye.TouchMove)}),o,{trailing:!1})),u=[Yr("mousemove",l,n),Yr("touchmove",l,n),Yr("drag",l,n)];return vt(()=>{u.forEach(d=>d())})}function YWe({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,sampling:i}){if(i.mouseInteraction===!1)return()=>{};const s=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,c=[];let l=null;const u=d=>f=>{const h=kb(f);if(No(h,r,o,a,!0))return;let m=null,p=d;if("pointerType"in f){switch(f.pointerType){case"mouse":m=Zi.Mouse;break;case"touch":m=Zi.Touch;break;case"pen":m=Zi.Pen;break}m===Zi.Touch?qr[d]===qr.MouseDown?p="TouchStart":qr[d]===qr.MouseUp&&(p="TouchEnd"):Zi.Pen}else vk(f)&&(m=Zi.Touch);m!==null?(l=m,(p.startsWith("Touch")&&m===Zi.Touch||p.startsWith("Mouse")&&m===Zi.Mouse)&&(m=null)):qr[d]===qr.Click&&(m=l,l=null);const b=vk(f)?f.changedTouches[0]:f;if(!b)return;const v=n.getId(h),{clientX:g,clientY:w}=b;vt(e)({type:qr[p],id:v,x:g,y:w,...m!==null&&{pointerType:m}})};return Object.keys(qr).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&s[d]!==!1).forEach(d=>{let f=Wh(d);const h=u(d);if(window.PointerEvent)switch(qr[d]){case qr.MouseDown:case qr.MouseUp:f=f.replace("mouse","pointer");break;case qr.TouchStart:case qr.TouchEnd:return}c.push(Yr(f,h,t))}),vt(()=>{c.forEach(d=>d())})}function Dte({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,sampling:i}){const s=vt(jg(vt(c=>{const l=kb(c);if(!l||No(l,r,o,a,!0))return;const u=n.getId(l);if(l===t&&t.defaultView){const d=gte(t.defaultView);e({id:u,x:d.left,y:d.top})}else e({id:u,x:l.scrollLeft,y:l.scrollTop})}),i.scroll||100));return Yr("scroll",s,t)}function QWe({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=vt(jg(vt(()=>{const a=yte(),i=bte();(n!==a||r!==i)&&(e({width:Number(i),height:Number(a)}),n=a,r=i)}),200));return Yr("resize",o,t)}const XWe=["INPUT","TEXTAREA","SELECT"],RL=new WeakMap;function JWe({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,ignoreClass:i,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:m,unmaskTextSelector:p}){function b(E){let T=kb(E);const k=E.isTrusted,D=T&&yk(T.tagName);if(D==="OPTION"&&(T=T.parentElement),!T||!D||XWe.indexOf(D)<0||No(T,r,o,a,!0))return;const R=T;if(R.classList.contains(i)||s&&R.matches(s))return;const F=a7(T);let B=XE(R,D,F),j=!1;const P=F6({maskInputOptions:c,tagName:D,type:F}),O=Gh(T,f,m,h,p,P);(F==="radio"||F==="checkbox")&&(j=T.checked),B=Dg({isMasked:O,element:T,value:B,maskInputFn:l}),v(T,d?{text:B,isChecked:j,userTriggered:k}:{text:B,isChecked:j});const I=T.name;F==="radio"&&I&&j&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(N=>{if(N!==T){const M=Dg({isMasked:O,element:N,value:XE(N,D,F),maskInputFn:l});v(N,d?{text:M,isChecked:!j,userTriggered:!1}:{text:M,isChecked:!j})}})}function v(E,T){const k=RL.get(E);if(!k||k.text!==T.text||k.isChecked!==T.isChecked){RL.set(E,T);const D=n.getId(E);vt(e)({...T,id:D})}}const w=(u.input==="last"?["change"]:["input","change"]).map(E=>Yr(E,vt(b),t)),_=t.defaultView;if(!_)return()=>{w.forEach(E=>E())};const C=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),x=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return C&&C.set&&w.push(...x.map(E=>pte(E[0],E[1],{set(){vt(b)({target:this,isTrusted:!1})}},!1,_))),vt(()=>{w.forEach(E=>E())})}function e_(e){const t=[];function n(r,o){if(Wv("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Wv("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Wv("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Wv("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(i)}return o}return n(e,t)}function Tc(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function ZWe({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:vt((u,d,f)=>{const[h,m]=f,{id:p,styleId:b}=Tc(d,t,n.styleMirror);return(p&&p!==-1||b&&b!==-1)&&e({id:p,styleId:b,adds:[{rule:h,index:m}]}),u.apply(d,f)})});const a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:vt((u,d,f)=>{const[h]=f,{id:m,styleId:p}=Tc(d,t,n.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,removes:[{index:h}]}),u.apply(d,f)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:vt((u,d,f)=>{const[h]=f,{id:m,styleId:p}=Tc(d,t,n.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,replace:h}),u.apply(d,f)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:vt((u,d,f)=>{const[h]=f,{id:m,styleId:p}=Tc(d,t,n.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,replaceSync:h}),u.apply(d,f)})}));const c={};Gv("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Gv("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Gv("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Gv("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([u,d])=>{l[u]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(l[u].insertRule,{apply:vt((f,h,m)=>{const[p,b]=m,{id:v,styleId:g}=Tc(h.parentStyleSheet,t,n.styleMirror);return(v&&v!==-1||g&&g!==-1)&&e({id:v,styleId:g,adds:[{rule:p,index:[...e_(h),b||0]}]}),f.apply(h,m)})}),d.prototype.deleteRule=new Proxy(l[u].deleteRule,{apply:vt((f,h,m)=>{const[p]=m,{id:b,styleId:v}=Tc(h.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||v&&v!==-1)&&e({id:b,styleId:v,removes:[{index:[...e_(h),p]}]}),f.apply(h,m)})})}),vt(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=a,i&&(r.CSSStyleSheet.prototype.replace=i),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([u,d])=>{d.prototype.insertRule=l[u].insertRule,d.prototype.deleteRule=l[u].deleteRule})})}function kte({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const o=n.nodeName==="#document"?Ga([n,"access",i=>i.defaultView,"optionalAccess",i=>i.Document]):Ga([n,"access",i=>i.ownerDocument,"optionalAccess",i=>i.defaultView,"optionalAccess",i=>i.ShadowRoot]),a=Ga([o,"optionalAccess",i=>i.prototype])?Object.getOwnPropertyDescriptor(Ga([o,"optionalAccess",i=>i.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return Ga([a,"access",i=>i.get,"optionalAccess",i=>i.call,"call",i=>i(this)])},set(i){const s=Ga([a,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,i)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(i,r)}catch{}return s}}),vt(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function eGe({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:vt((s,c,l)=>{const[u,d,f]=l;if(n.has(u))return a.apply(c,[u,d,f]);const{id:h,styleId:m}=Tc(Ga([c,"access",p=>p.parentRule,"optionalAccess",p=>p.parentStyleSheet]),t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,set:{property:u,value:d,priority:f},index:e_(c.parentRule)}),s.apply(c,l)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:vt((s,c,l)=>{const[u]=l;if(n.has(u))return i.apply(c,[u]);const{id:d,styleId:f}=Tc(Ga([c,"access",h=>h.parentRule,"optionalAccess",h=>h.parentStyleSheet]),t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:u},index:e_(c.parentRule)}),s.apply(c,l)})}),vt(()=>{o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=i})}function tGe({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:a,doc:i}){const s=vt(l=>jg(vt(u=>{const d=kb(u);if(!d||No(d,t,n,r,!0))return;const{currentTime:f,volume:h,muted:m,playbackRate:p}=d;e({type:l,id:o.getId(d),currentTime:f,volume:h,muted:m,playbackRate:p})}),a.media||500)),c=[Yr("play",s(0),i),Yr("pause",s(1),i),Yr("seeked",s(2),i),Yr("volumechange",s(3),i),Yr("ratechange",s(4),i)];return vt(()=>{c.forEach(l=>l())})}function nGe({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,a=n.FontFace;n.FontFace=function(c,l,u){const d=new a(c,l,u);return o.set(d,{family:c,buffer:typeof l!="string",descriptors:u,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),d};const i=c7(t.fonts,"add",function(s){return function(c){return M6(vt(()=>{const l=o.get(c);l&&(e(l),o.delete(c))}),0),s.apply(this,[c])}});return r.push(()=>{n.FontFace=a}),r.push(i),vt(()=>{r.forEach(s=>s())})}function rGe(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,selectionCb:i}=e;let s=!0;const c=vt(()=>{const l=t.getSelection();if(!l||s&&Ga([l,"optionalAccess",f=>f.isCollapsed]))return;s=l.isCollapsed||!1;const u=[],d=l.rangeCount||0;for(let f=0;f{}:c7(n.customElements,"define",function(o){return function(a,i,s){try{t({define:{name:a}})}catch{}return o.apply(this,[a,i,s])}})}function aGe(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Ate(e,e.doc));const o=KWe(e),a=YWe(e),i=Dte(e),s=QWe(e,{win:n}),c=JWe(e),l=tGe(e);let u=()=>{},d=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(u=ZWe(e,{win:n}),d=kte(e,e.doc),f=eGe(e,{win:n}),e.collectFonts&&(h=nGe(e)));const m=rGe(e),p=oGe(e),b=[];for(const v of e.plugins)b.push(v.observer(v.callback,n,v.options));return vt(()=>{$f.forEach(v=>v.reset()),Ga([r,"optionalAccess",v=>v.disconnect,"call",v=>v()]),o(),a(),i(),s(),c(),l(),u(),d(),f(),h(),m(),p(),b.forEach(v=>v())})}function Wv(e){return typeof window[e]<"u"}function Gv(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class _k{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){const a=r||this.getIdToRemoteIdMap(t),i=o||this.getRemoteIdToIdMap(t);let s=a.get(n);return s||(s=this.generateIdFn(),a.set(n,s),i.set(s,n)),s}getIds(t,n){const r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(a=>this.getId(t,a,r,o))}getRemoteId(t,n,r){const o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const a=o.get(n);return a||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function NL(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}class iGe{constructor(){this.crossOriginIframeMirror=new _k(i7),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class sGe{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new _k(i7),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new _k(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),NL([this,"access",r=>r.loadListener,"optionalCall",r=>r(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const a=this.transformCrossOriginEvent(o,n.data.event);a&&this.wrappedEmit(a,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case it.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:it.IncrementalSnapshot,data:{source:Ye.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case it.Meta:case it.Load:case it.DomContentLoaded:return!1;case it.Plugin:return n;case it.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case it.IncrementalSnapshot:switch(n.data.source){case Ye.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(r.node,o)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Ye.Drag:case Ye.TouchMove:case Ye.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Ye.ViewportResize:return!1;case Ye.MediaInteraction:case Ye.MouseInteraction:case Ye.Scroll:case Ye.CanvasMutation:case Ye.Input:return this.replaceIds(n.data,t,["id"]),n;case Ye.StyleSheetRule:case Ye.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Ye.Font:return n;case Ye.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case Ye.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),NL([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(o=>{this.replaceStyleIds(o,t,["styleId"])})]),n}}return!1}replace(t,n,r,o){for(const a of o)!Array.isArray(n[a])&&typeof n[a]!="number"||(Array.isArray(n[a])?n[a]=t.getIds(r,n[a]):n[a]=t.getId(r,n[a]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Un.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class cGe{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class lGe{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!D0(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Ate({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Dte({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),M6(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(kte({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(c7(t.prototype,"attachShadow",function(o){return function(a){const i=o.call(this,a);return this.shadowRoot&&Cte(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class BL{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class uGe{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new MWe,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},o=[];for(const a of t){let i;this.styleMirror.has(a)?i=this.styleMirror.getId(a):(i=this.styleMirror.add(a),o.push({styleId:i,rules:Array.from(a.rules||CSSRule,(s,c)=>({rule:cte(s),index:c}))})),r.styleIds.push(i)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class dGe{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){$We(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let un,t_;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Uo([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Ba=fWe();function ys(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:a=null,unblockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:p,maskInputOptions:b,slimDOMOptions:v,maskAttributeFn:g,maskInputFn:w,maskTextFn:_,maxCanvasSize:C=null,packFn:x,sampling:E={},dataURLOptions:T={},mousemoveWait:k,recordDOM:D=!0,recordCanvas:R=!1,recordCrossOriginIframes:F=!1,recordAfter:B=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:P=!1,inlineImages:O=!1,plugins:I,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:M=new Set([]),errorHandler:L,onMutation:X,getCanvasManager:J}=e;GWe(L);const U=F?window.parent===window:!0;let G=!1;if(!U)try{window.parent.document&&(G=!1)}catch{G=!0}if(U&&!t)throw new Error("emit function is required");k!==void 0&&E.mousemove===void 0&&(E.mousemove=k),Ba.reset();const Z=p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:b!==void 0?b:{},ae=v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:v==="all",headMetaDescKeywords:v==="all"}:v||{};FWe();let ne,ie=0;const te=he=>{for(const Me of I||[])Me.eventProcessor&&(he=Me.eventProcessor(he));return x&&!G&&(he=x(he)),he};un=(he,Me)=>{const ge=he;if(ge.timestamp=ZE(),Uo([$f,"access",Y=>Y[0],"optionalAccess",Y=>Y.isFrozen,"call",Y=>Y()])&&ge.type!==it.FullSnapshot&&!(ge.type===it.IncrementalSnapshot&&ge.data.source===Ye.Mutation)&&$f.forEach(Y=>Y.unfreeze()),U)Uo([t,"optionalCall",Y=>Y(te(ge),Me)]);else if(G){const Y={type:"rrweb",event:te(ge),origin:window.location.origin,isCheckout:Me};window.parent.postMessage(Y,"*")}if(ge.type===it.FullSnapshot)ne=ge,ie=0;else if(ge.type===it.IncrementalSnapshot){if(ge.data.source===Ye.Mutation&&ge.data.isAttachIframe)return;ie++;const Y=r&&ie>=r,W=n&&ne&&ge.timestamp-ne.timestamp>n;(Y||W)&&Ee(!0)}};const ee=he=>{un({type:it.IncrementalSnapshot,data:{source:Ye.Mutation,...he}})},re=he=>un({type:it.IncrementalSnapshot,data:{source:Ye.Scroll,...he}}),z=he=>un({type:it.IncrementalSnapshot,data:{source:Ye.CanvasMutation,...he}}),fe=he=>un({type:it.IncrementalSnapshot,data:{source:Ye.AdoptedStyleSheet,...he}}),ve=new uGe({mutationCb:ee,adoptedStyleSheetCb:fe}),Ue=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new iGe:new sGe({mirror:Ba,mutationCb:ee,stylesheetManager:ve,recordCrossOriginIframes:F,wrappedEmit:un});for(const he of I||[])he.getMirror&&he.getMirror({nodeMirror:Ba,crossOriginIframeMirror:Ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ue.crossOriginIframeStyleMirror});const ke=new dGe,Qe=hGe(J,{mirror:Ba,win:window,mutationCb:he=>un({type:it.IncrementalSnapshot,data:{source:Ye.CanvasMutation,...he}}),recordCanvas:R,blockClass:o,blockSelector:a,unblockSelector:i,maxCanvasSize:C,sampling:E.canvas,dataURLOptions:T,errorHandler:L}),Te=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new cGe:new lGe({mutationCb:ee,scrollCb:re,bypassOptions:{onMutation:X,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:Z,dataURLOptions:T,maskAttributeFn:g,maskTextFn:_,maskInputFn:w,recordCanvas:R,inlineImages:O,sampling:E,slimDOMOptions:ae,iframeManager:Ue,stylesheetManager:ve,canvasManager:Qe,keepIframeSrcFn:N,processedNodeManager:ke},mirror:Ba}),Ee=(he=!1)=>{if(!D)return;un({type:it.Meta,data:{href:window.location.href,width:bte(),height:yte()}},he),ve.reset(),Te.init(),$f.forEach(ge=>ge.lock());const Me=NWe(document,{mirror:Ba,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:Z,maskAttributeFn:g,maskInputFn:w,maskTextFn:_,slimDOM:ae,dataURLOptions:T,recordCanvas:R,inlineImages:O,onSerialize:ge=>{Ete(ge,Ba)&&Ue.addIframe(ge),_te(ge,Ba)&&ve.trackLinkElement(ge),wk(ge)&&Te.addShadowRoot(ge.shadowRoot,document)},onIframeLoad:(ge,Y)=>{Ue.attachIframe(ge,Y),ge.contentWindow&&Qe.addWindow(ge.contentWindow),Te.observeAttachShadow(ge)},onStylesheetLoad:(ge,Y)=>{ve.attachLinkElement(ge,Y)},keepIframeSrcFn:N});if(!Me)return console.warn("Failed to snapshot the document");un({type:it.FullSnapshot,data:{node:Me,initialOffset:gte(window)}}),$f.forEach(ge=>ge.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ve.adoptStyleSheets(document.adoptedStyleSheets,Ba.getId(document))};t_=Ee;try{const he=[],Me=Y=>vt(aGe)({onMutation:X,mutationCb:ee,mousemoveCb:(W,Q)=>un({type:it.IncrementalSnapshot,data:{source:Q,positions:W}}),mouseInteractionCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.MouseInteraction,...W}}),scrollCb:re,viewportResizeCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.ViewportResize,...W}}),inputCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.Input,...W}}),mediaInteractionCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.MediaInteraction,...W}}),styleSheetRuleCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.StyleSheetRule,...W}}),styleDeclarationCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.StyleDeclaration,...W}}),canvasMutationCb:z,fontCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.Font,...W}}),selectionCb:W=>{un({type:it.IncrementalSnapshot,data:{source:Ye.Selection,...W}})},customElementCb:W=>{un({type:it.IncrementalSnapshot,data:{source:Ye.CustomElement,...W}})},blockClass:o,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:Z,inlineStylesheet:m,sampling:E,recordDOM:D,recordCanvas:R,inlineImages:O,userTriggeredOnInput:j,collectFonts:P,doc:Y,maskAttributeFn:g,maskInputFn:w,maskTextFn:_,keepIframeSrcFn:N,blockSelector:a,unblockSelector:i,slimDOMOptions:ae,dataURLOptions:T,mirror:Ba,iframeManager:Ue,stylesheetManager:ve,shadowDomManager:Te,processedNodeManager:ke,canvasManager:Qe,ignoreCSSAttributes:M,plugins:Uo([I,"optionalAccess",W=>W.filter,"call",W=>W(Q=>Q.observer),"optionalAccess",W=>W.map,"call",W=>W(Q=>({observer:Q.observer,options:Q.options,callback:ce=>un({type:it.Plugin,data:{plugin:Q.name,payload:ce}})}))])||[]},{});Ue.addLoadListener(Y=>{try{he.push(Me(Y.contentDocument))}catch(W){console.warn(W)}});const ge=()=>{Ee(),he.push(Me(document))};return document.readyState==="interactive"||document.readyState==="complete"?ge():(he.push(Yr("DOMContentLoaded",()=>{un({type:it.DomContentLoaded,data:{}}),B==="DOMContentLoaded"&&ge()})),he.push(Yr("load",()=>{un({type:it.Load,data:{}}),B==="load"&&ge()},window))),()=>{he.forEach(Y=>Y()),ke.destroy(),t_=void 0,VWe()}}catch(he){console.warn(he)}}function fGe(e){if(!t_)throw new Error("please take full snapshot after start recording");t_(e)}ys.mirror=Ba;ys.takeFullSnapshot=fGe;function hGe(e,t){try{return e?e(t):new BL}catch{return console.warn("Unable to initialize CanvasManager"),new BL}}const He=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,FL=["info","warn","error","log"],L1="[Replay] ";function IT(e,t="info"){bl({category:"console",data:{logger:"replay"},level:t,message:`${L1}${e}`},{level:t})}function mGe(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return He?(FL.forEach(r=>{n[r]=(...o)=>{ye[r](L1,...o),t&&IT(o[0])}}),n.exception=(r,...o)=>{n.error&&n.error(...o),ye.error(L1,r),e?YP(r):t&&IT(r)},n.infoTick=(...r)=>{ye.info(L1,...r),t&&setTimeout(()=>IT(r[0]),0)}):FL.forEach(r=>{n[r]=()=>{}}),n}const Ge=mGe(),pGe=3,gGe=5;function u7(e){return e>9999999999?e:e*1e3}function OT(e){return e>9999999999?e/1e3:e}function jb(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:it.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:_i(t,10,1e3)}}),t.category==="console")))}const yGe="button,a";function jte(e){return e.closest(yGe)||e}function Pte(e){const t=Ite(e);return!t||!(t instanceof Element)?t:jte(t)}function Ite(e){return bGe(e)?e.target:e}function bGe(e){return typeof e=="object"&&!!e&&"target"in e}let Ac;function vGe(e){return Ac||(Ac=[],wGe()),Ac.push(e),()=>{const t=Ac?Ac.indexOf(e):-1;t>-1&&Ac.splice(t,1)}}function wGe(){go(qt,"open",function(e){return function(...t){if(Ac)try{Ac.forEach(n=>n())}catch{}return e.apply(qt,t)}})}const EGe=new Set([Ye.Mutation,Ye.StyleSheetRule,Ye.StyleDeclaration,Ye.AdoptedStyleSheet,Ye.CanvasMutation,Ye.Selection,Ye.MediaInteraction]);function _Ge(e,t,n){e.handleClick(t,n)}class xGe{constructor(t,n,r=jb){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=vGe(()=>{this._lastMutation=ML()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(SGe(n,this._ignoreSelector)||!TGe(t))return;const r={timestamp:OT(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=OT(t)}registerScroll(t=Date.now()){this._lastScroll=OT(t)}registerClick(t){const n=jte(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=ML();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!r&&!o,{clickCount:i,clickBreadcrumb:s}=t;if(a){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,l=c1){const c={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:qt.location.href,route:n.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=qh(()=>this._checkClicks(),1e3)}}const CGe=["A","BUTTON","INPUT"];function SGe(e,t){return!!(!CGe.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function TGe(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function ML(){return Date.now()/1e3}function AGe(e,t){try{if(!DGe(t))return;const{source:n}=t.data;if(EGe.has(n)&&e.registerMutation(t.timestamp),n===Ye.Scroll&&e.registerScroll(t.timestamp),kGe(t)){const{type:r,id:o}=t.data,a=ys.mirror.getNode(o);a instanceof HTMLElement&&r===qr.Click&&e.registerClick(a)}}catch{}}function DGe(e){return e.type===pGe}function kGe(e){return e.data.source===Ye.MouseInteraction}function Pi(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var n_;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(n_||(n_={}));const jGe=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function PGe(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(jGe.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const IGe=e=>t=>{if(!e.isEnabled())return;const n=OGe(t);if(!n)return;const r=t.name==="click",o=r?t.event:void 0;r&&e.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&_Ge(e.clickDetector,n,Pte(t.event)),jb(e,n)};function Ote(e,t){const n=ys.mirror.getId(e),r=n&&ys.mirror.getNode(n),o=r&&ys.mirror.getMeta(r),a=o&&NGe(o)?o:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(i=>i.type===n_.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:PGe(a.attributes)}}:{}}}function OGe(e){const{target:t,message:n}=RGe(e);return Pi({category:`ui.${e.name}`,...Ote(t,n)})}function RGe(e){const t=e.name==="click";let n,r=null;try{r=t?Pte(e.event):Ite(e.event),n=Is(r,{maxStringLength:200})||""}catch{n=""}return{target:r,message:n}}function NGe(e){return e.type===n_.Element}function BGe(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=FGe(t);n&&jb(e,n)}function FGe(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:a,target:i}=e;if(!i||MGe(i)||!a)return null;const s=t||r||o,c=a.length===1;if(!s&&c)return null;const l=Is(i,{maxStringLength:200})||"",u=Ote(i,l);return Pi({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:a}})}function MGe(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const LGe={resource:qGe,paint:zGe,navigation:HGe};function Vv(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function UGe(e){return e.map($Ge).filter(Boolean)}function $Ge(e){const t=LGe[e.entryType];return t?t(e):null}function Vh(e){return((io||qt.performance.timeOrigin)+e)/1e3}function zGe(e){const{duration:t,entryType:n,name:r,startTime:o}=e,a=Vh(o);return{type:n,name:r,start:a,end:a+t,data:void 0}}function HGe(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:a,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:h,transferSize:m,type:p}=e;return o===0?null:{type:`${t}.${p}`,start:Vh(h),end:Vh(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}function qGe(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:a,decodedBodySize:i,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Vh(a),end:Vh(o),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:s}}}function WGe(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return L6(e,"largest-contentful-paint",n)}function GGe(e){return e.sources!==void 0}function VGe(e){const t=[],n=[];for(const r of e.entries)if(GGe(r)){const o=[];for(const a of r.sources)if(a.node){n.push(a.node);const i=ys.mirror.getId(a.node);i&&o.push(i)}t.push({value:r.value,nodeIds:o.length?o:void 0})}return L6(e,"cumulative-layout-shift",n,t)}function KGe(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return L6(e,"first-input-delay",n)}function YGe(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return L6(e,"interaction-to-next-paint",n)}function L6(e,t,n,r){const o=e.value,a=e.rating,i=Vh(o);return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:a,nodeIds:n?n.map(s=>ys.mirror.getId(s)):void 0,attributions:r}}}function QGe(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(o=>{r.push(zh(o,n))}),r.push(Xee(Vv(WGe,e)),e7(Vv(VGe,e)),Jee(Vv(KGe,e)),Zee(Vv(YGe,e))),()=>{r.forEach(o=>o())}}const XGe='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function JGe(){const e=new Blob([XGe]);return URL.createObjectURL(e)}class d7 extends Error{constructor(){super(`Event buffer exceeded maximum size of ${o7}.`)}}class Rte{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>o7)throw new d7;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?u7(t):null}}class ZGe{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){He&&Ge.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((o,a)=>{const i=({data:s})=>{const c=s;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",i),!c.success){He&&Ge.error("Error in compression worker: ",c.response),a(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class eVe{constructor(t){this._worker=new ZGe(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=u7(t.timestamp);(!this._earliestTimestamp||no7?Promise.reject(new d7):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{He&&Ge.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class tVe{constructor(t){this._fallback=new Rte,this._compression=new eVe(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){He&&Ge.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,r=[];for(const o of t)r.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(o){He&&Ge.exception(o,"Failed to add events when switching buffers.")}}}function nVe({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=rVe(t);if(n)return n}return He&&Ge.info("Using simple buffer"),new Rte}function rVe(e){try{const t=e||oVe();if(!t)return;He&&Ge.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new tVe(n)}catch(t){He&&Ge.exception(t,"Failed to create compression worker")}}function oVe(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?JGe():""}function f7(){try{return"sessionStorage"in qt&&!!qt.sessionStorage}catch{return!1}}function aVe(e){iVe(),e.session=void 0}function iVe(){if(f7())try{qt.sessionStorage.removeItem(n7)}catch{}}function Nte(e){return e===void 0?!1:Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(He&&Ge.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function dVe(e,t){try{if(typeof t=="function"&&lVe(e))return t(e)}catch(n){return He&&Ge.exception(n,"An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function p7(e){return!e.type}function Ck(e){return e.type==="transaction"}function fVe(e){return e.type==="replay_event"}function UL(e){return e.type==="feedback"}function hVe(e){return(t,n)=>{if(!e.isEnabled()||!p7(t)&&!Ck(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Ck(t)){mVe(e,t);return}pVe(e,t)}}}function mVe(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function pVe(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||qh(()=>{e.sendBufferedReplayOrFlush()})}function gVe(e){return t=>{!e.isEnabled()||!p7(t)||yVe(e,t)}}function yVe(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=Pi({category:"replay.hydrate-error",data:{url:YZ()}});jb(e,r)}}function bVe(e){const t=gt();t&&t.on("beforeAddBreadcrumb",n=>vVe(e,n))}function vVe(e,t){if(!e.isEnabled()||!$te(t))return;const n=wVe(t);n&&jb(e,n)}function wVe(e){return!$te(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?EVe(e):Pi(e)}function EVe(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Pi(e);let n=!1;const r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>qv?(n=!0,`${o.slice(0,qv)}…`):o;if(typeof o=="object")try{const a=_i(o,7);return JSON.stringify(a).length>qv?(n=!0,`${JSON.stringify(a,null,2).slice(0,qv)}…`):a}catch{}return o});return Pi({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function $te(e){return!!e.category}function _Ve(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function xVe(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:it.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function CVe(e,t){return e.recordingMode!=="buffer"||t.message===r7||!t.exception||t.type?!1:Nte(e.getOptions().errorSampleRate)}function SVe(e){return Object.assign((t,n)=>e.isEnabled()?fVe(t)?(delete t.breadcrumbs,t):!p7(t)&&!Ck(t)&&!UL(t)||!e.checkAndHandleExpiredSession()?t:UL(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),xVe(e,t),t):_Ve(t,n)&&!e.getOptions()._experiments.captureExceptions?(He&&Ge.log("Ignoring error from rrweb internals",t),null):((CVe(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):t,{id:"Replay"})}function U6(e,t){return t.map(({type:n,start:r,end:o,name:a,data:i})=>{const s=e.throttledAddEvent({type:it.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:r,endTimestamp:o,data:i}}});return typeof s=="string"?Promise.resolve(null):s})}function TVe(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function AVe(e){return t=>{if(!e.isEnabled())return;const n=TVe(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(U6(e,[n]),!1)))}}function DVe(e,t){return He&&e.getOptions()._experiments.traceInternals?!1:tze(t,gt())}function zte(e,t){e.isEnabled()&&t!==null&&(DVe(e,t.name)||e.addUpdate(()=>(U6(e,[t]),!0)))}function $6(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Gte(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Hte(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function qte(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Gte(e)];if(!e)return[void 0]}catch(t){return He&&Ge.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return He&&Ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function r_(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Wte(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:a,statusCode:i,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:zn({method:a,statusCode:i,request:s,response:c})}}function Pg(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Xc(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:a}=kVe(n);return r.body=o,a&&a.length>0&&(r._meta={warnings:a}),r}function Sk(e,t){return Object.entries(e).reduce((n,[r,o])=>{const a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=o),n},{})}function Gte(e){return new URLSearchParams(e).toString()}function kVe(e){if(!e||typeof e!="string")return{body:e};const t=e.length>xL,n=jVe(e);if(t){const r=e.slice(0,xL);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function jVe(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function o_(e,t){const n=PVe(e);return Qc(n,t)}function PVe(e,t=qt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(qt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function IVe(e,t,n){try{const r=await RVe(e,t,n),o=Wte("resource.fetch",r);zte(n.replay,o)}catch(r){He&&Ge.exception(r,"Failed to capture fetch breadcrumb")}}function OVe(e,t){const{input:n,response:r}=t,o=n?Vte(n):void 0,a=$6(o),i=r?Hte(r.headers.get("content-length")):void 0;a!==void 0&&(e.data.request_body_size=a),i!==void 0&&(e.data.response_body_size=i)}async function RVe(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:a=r}=t,{url:i,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=o_(i,n.networkDetailAllowUrls)&&!o_(i,n.networkDetailDenyUrls),f=d?NVe(n,t.input,l):Pg(l),h=await BVe(d,n,t.response,u);return{startTimestamp:o,endTimestamp:a,url:i,method:s,statusCode:c,request:f,response:h}}function NVe({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?LVe(n,t):{};if(!e)return Xc(o,r,void 0);const a=Vte(n),[i,s]=qte(a),c=Xc(o,r,i);return s?r_(c,s):c}async function BVe(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&o!==void 0)return Pg(o);const a=r?Kte(r.headers,n):{};if(!r||!t&&o!==void 0)return Xc(a,o,void 0);const[i,s]=await MVe(r),c=FVe(i,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:a});return s?r_(c,s):c}function FVe(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const a=e&&e.length&&n===void 0?$6(e):n;return r?t?Xc(o,a,e):Xc(o,a,void 0):Pg(a)}catch(a){return He&&Ge.exception(a,"Failed to serialize response body"),Xc(o,n,void 0)}}async function MVe(e){const t=UVe(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await $Ve(t)]}catch(n){return He&&Ge.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function Vte(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function Kte(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function LVe(e,t){return e.length===1&&typeof e[0]!="string"?$L(e[0],t):e.length===2?$L(e[1],t):{}}function $L(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Kte(n,t):Array.isArray(n)?{}:Sk(n,t):{}}function UVe(e){try{return e.clone()}catch(t){He&&Ge.exception(t,"Failed to clone response body")}}function $Ve(e){return new Promise((t,n)=>{const r=qh(()=>n(new Error("Timeout while trying to read response body")),500);zVe(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function zVe(e){return await e.text()}async function HVe(e,t,n){try{const r=WVe(e,t,n),o=Wte("resource.xhr",r);zte(n.replay,o)}catch(r){He&&Ge.exception(r,"Failed to capture xhr breadcrumb")}}function qVe(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=$6(r),a=n.getResponseHeader("content-length")?Hte(n.getResponseHeader("content-length")):YVe(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),a!==void 0&&(e.data.response_body_size=a)}function WVe(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:a=r,input:i,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!s||!o_(c,n.networkDetailAllowUrls)||o_(c,n.networkDetailDenyUrls)){const x=Pg(d),E=Pg(f);return{startTimestamp:o,endTimestamp:a,url:c,method:l,statusCode:u,request:x,response:E}}const h=s[Eu],m=h?Sk(h.request_headers,n.networkRequestHeaders):{},p=Sk(GVe(s),n.networkResponseHeaders),[b,v]=n.networkCaptureBodies?qte(i):[void 0],[g,w]=n.networkCaptureBodies?VVe(s):[void 0],_=Xc(m,d,b),C=Xc(p,f,g);return{startTimestamp:o,endTimestamp:a,url:c,method:l,statusCode:u,request:v?r_(_,v):_,response:w?r_(C,w):C}}function GVe(e){const t=e.getAllResponseHeaders();return t?t.split(`\r -`).reduce((n,r)=>{const[o,a]=r.split(": ");return a&&(n[o.toLowerCase()]=a),n},{}):{}}function VVe(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return KVe(e.response,e.responseType)}catch(n){t.push(n)}return He&&Ge.warn("Failed to get xhr response body",...t),[void 0]}function KVe(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return He&&Ge.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return He&&Ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function YVe(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return $6(n)}catch{return}}function QVe(e){const t=gt();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:i}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(c,l)=>XVe(s,c,l))}catch{}}function XVe(e,t,n){if(t.data)try{JVe(t)&&eKe(n)&&(qVe(t,n),HVe(t,n,e)),ZVe(t)&&tKe(n)&&(OVe(t,n),IVe(t,n,e))}catch(r){He&&Ge.exception(r,"Error when enriching network breadcrumb")}}function JVe(e){return e.category==="xhr"}function ZVe(e){return e.category==="fetch"}function eKe(e){return e&&e.xhr}function tKe(e){return e&&e.response}function nKe(e){const t=gt();rte(IGe(e)),B6(AVe(e)),bVe(e),QVe(e);const n=SVe(e);L$e(n),t&&(t.on("beforeSendEvent",gVe(e)),t.on("afterSendEvent",hVe(e)),t.on("createDsc",r=>{const o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=o)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",(r,o)=>{const a=e.getSessionId();o&&o.includeReplay&&e.isEnabled()&&a&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=a)}))}async function rKe(e){try{return Promise.all(U6(e,[oKe(qt.performance.memory)]))}catch{return[]}}function oKe(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function aKe(e,t,n){let r,o,a;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return c(),r=e(),r}function c(){o!==void 0&&clearTimeout(o),a!==void 0&&clearTimeout(a),o=a=void 0}function l(){return o!==void 0||a!==void 0?s():r}function u(){return o&&clearTimeout(o),o=qh(s,t),i&&a===void 0&&(a=qh(s,i)),r}return u.cancel=c,u.flush=l,u}function iKe(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){He&&Ge.warn("Received replay event after session expired.");return}const o=r||!t;t=!0,e.clickDetector&&AGe(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!m7(e,n,o))return!0;if(!o)return!1;if(cKe(e,o),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){const a=e.eventBuffer.getEarliestTimestamp();a&&(He&&Ge.info(`Updating session start time to earliest event in buffer to ${new Date(a)}`),e.session.started=a,e.getOptions().stickySession&&h7(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function sKe(e){const t=e.getOptions();return{type:it.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function cKe(e,t){!t||!e.session||e.session.segmentId!==0||m7(e,sKe(e),!1)}function lKe(e,t,n,r){return Fd(mee(e,zP(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function uKe({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} -`;if(typeof e=="string")n=`${r}${e}`;else{const a=new TextEncoder().encode(r);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function dKe({client:e,scope:t,replayId:n,event:r}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a={event_id:n,integrations:o};e.emit("preprocessEvent",r,a);const i=await Iee(e.getOptions(),r,a,t,e,Pa());if(!i)return null;i.platform=i.platform||"javascript";const s=e.getSdkMetadata(),{name:c,version:l}=s&&s.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:l||"0.0.0"},i}async function fKe({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:a}){const i=uKe({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=gt(),f=Xt(),h=d&&d.getTransport(),m=d&&d.getDsn();if(!d||!h||!m||!a.sampled)return Rs({});const p={type:Kqe,replay_start_timestamp:u/1e3,timestamp:o/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled},b=await dKe({scope:f,client:d,replayId:t,event:p});if(!b)return d.recordDroppedEvent("event_processor","replay",p),He&&Ge.info("An event processor returned `null`, will not send event."),Rs({});delete b.sdkProcessingMetadata;const v=lKe(b,i,m,d.getOptions().tunnel);let g;try{g=await h.send(v)}catch(_){const C=new Error(r7);try{C.cause=_}catch{}throw C}if(typeof g.statusCode=="number"&&(g.statusCode<200||g.statusCode>=300))throw new Yte(g.statusCode);const w=gee({},g);if(pee(w,"replay"))throw new Qte(w);return g}class Yte extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Qte extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Xte(e,t={count:0,interval:eWe}){const{recordingData:n,options:r}=e;if(n.length)try{return await fKe(e),!0}catch(o){if(o instanceof Yte||o instanceof Qte)throw o;if(Ree("Replays",{_retryCount:t.count}),He&&r._experiments&&r._experiments.captureExceptions&&YP(o),t.count>=tWe){const a=new Error(`${r7} - max retries exceeded`);try{a.cause=o}catch{}throw a}return t.interval*=++t.count,new Promise((a,i)=>{qh(async()=>{try{await Xte(e,t),a(!0)}catch(s){i(s)}},t.interval)})}}const Jte="__THROTTLED",hKe="__SKIPPED";function mKe(e,t,n){const r=new Map,o=s=>{const c=s-n;r.forEach((l,u)=>{u[...r.values()].reduce((s,c)=>s+c,0);let i=!1;return(...s)=>{const c=Math.floor(Date.now()/1e3);if(o(c),a()>=t){const u=i;return i=!0,u?hKe:Jte}i=!1;const l=r.get(c)||0;return r.set(c,l+1),e(...s)}}class Dc{constructor({options:t,recordingOptions:n}){Dc.prototype.__init.call(this),Dc.prototype.__init2.call(this),Dc.prototype.__init3.call(this),Dc.prototype.__init4.call(this),Dc.prototype.__init5.call(this),Dc.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Yqe,sessionIdleExpire:Qqe},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=aKe(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=mKe((i,s)=>uVe(this,i,s),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),a=r?{threshold:Math.min(nWe,r),timeout:r,scrollTimeout:rWe,ignoreSelector:o?o.join(","):""}:void 0;if(a&&(this.clickDetector=new xGe(this,a)),He){const i=t._experiments;Ge.setConfig({captureExceptions:!!i.captureExceptions,traceInternals:!!i.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){He&&Ge.exception(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,o=n<=0&&r<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){He&&Ge.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",He&&Ge.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){He&&Ge.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){He&&Ge.info("Buffering is in progress, call `flush()` to save the replay");return}He&&Ge.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=RT({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){He&&Ge.info("Buffering is in progress, call `flush()` to save the replay");return}He&&Ge.infoTick("Starting replay in buffer mode");const t=RT({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=ys({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:Zqe},emit:iKe(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{He&&Ge.info(`Stopping Replay${n?` triggered by ${n}`:""}`),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,aVe(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),He&&Ge.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),He&&Ge.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();He&&Ge.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&xk(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${qt.location.pathname}${qt.location.hash}${qt.location.search}`,n=`${qt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===Jte){const o=Pi({category:"replay.throttled"});this.addUpdate(()=>!m7(this,{type:gGe,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Ur(),n=t&&gr(t),o=(n&&_t(n).data||{})[is];if(!(!n||!o||!["route","custom"].includes(o)))return _t(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=nVe({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=RT({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Mte(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{qt.document.addEventListener("visibilitychange",this._handleVisibilityChange),qt.addEventListener("blur",this._handleWindowBlur),qt.addEventListener("focus",this._handleWindowFocus),qt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(nKe(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=QGe(this)}_removeListeners(){try{qt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),qt.removeEventListener("blur",this._handleWindowBlur),qt.removeEventListener("focus",this._handleWindowFocus),qt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{qt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Pi({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Pi({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{BGe(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Fte(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){He&&Ge.info("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:it.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=UGe(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(U6(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&rthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await Xte({replayId:t,recordingData:a,segmentId:o,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=gt();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){He&&Ge.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const a=othis._options.maxReplayDuration+5e3;if(a||i){He&&Ge.info(`Session duration (${Math.floor(o/1e3)}s) is too ${a?"short":"long"}, not sending replay.`),a&&this._debouncedFlush();return}const s=this.eventBuffer;if(s&&this.session.segmentId===0&&!s.hasCheckout&&He&&Ge.info("Flushing initial segment without checkout."),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(c){He&&Ge.error(c)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&h7(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>o||a){const i=Pi({category:"replay.mutations",data:{count:n,limit:a}});this._createCustomBreadcrumb(i)}return a?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function qp(e,t){return[...e,...t].join(",")}function pKe({mask:e,unmask:t,block:n,unblock:r,ignore:o}){const a=['base[href="/"]'],i=qp(e,[".sentry-mask","[data-sentry-mask]"]),s=qp(t,[]);return{maskTextSelector:i,unmaskTextSelector:s,blockSelector:qp(n,[".sentry-block","[data-sentry-block]",...a]),unblockSelector:qp(r,[]),ignoreSelector:qp(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function gKe({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:a}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?a:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}const zL='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',yKe=["content-length","content-type","accept"];let HL=!1;const bKe=e=>new z6(e);class z6{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=Xqe,flushMaxDelay:n=Jqe,minReplayDuration:r=oWe,maxReplayDuration:o=CL,stickySession:a=!0,useCompression:i=!0,workerUrl:s,_experiments:c={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:f=750,mutationLimit:h=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:b=[],networkDetailDenyUrls:v=[],networkCaptureBodies:g=!0,networkRequestHeaders:w=[],networkResponseHeaders:_=[],mask:C=[],maskAttributes:x=["title","placeholder"],unmask:E=[],block:T=[],unblock:k=[],ignore:D=[],maskFn:R,beforeAddRecordingEvent:F,beforeErrorSampling:B}={}){this.name=z6.id;const j=pKe({mask:C,unmask:E,block:T,unblock:k,ignore:D});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:R,maskInputFn:R,maskAttributeFn:(P,O,I)=>gKe({maskAttributes:x,maskAllText:l,privacyOptions:j,key:P,value:O,el:I}),...j,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:P=>{try{P.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,aWe),maxReplayDuration:Math.min(o,CL),stickySession:a,useCompression:i,workerUrl:s,blockAllMedia:d,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:f,mutationLimit:h,slowClickTimeout:m,slowClickIgnoreSelectors:p,networkDetailAllowUrls:b,networkDetailDenyUrls:v,networkCaptureBodies:g,networkRequestHeaders:qL(w),networkResponseHeaders:qL(_),beforeAddRecordingEvent:F,beforeErrorSampling:B,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${zL}`:zL),this._isInitialized&&UM())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return HL}set _isInitialized(t){HL=t}afterAllSetup(t){!UM()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=vKe(this._initialOptions,t);this._replay=new Dc({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}z6.__initStatic();function vKe(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...zn(e)},o=GE(n.replaysSessionSampleRate),a=GE(n.replaysOnErrorSampleRate);return o==null&&a==null&&Gm(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(r.sessionSampleRate=o),a!=null&&(r.errorSampleRate=a),r}function qL(e){return[...yKe,...e.map(t=>t.toLowerCase())]}const WL=new WeakMap,NT=new Map,Tk={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function wKe(e,t){const{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:o,enableHTTPTimings:a,tracePropagationTargets:i}={traceFetch:Tk.traceFetch,traceXHR:Tk.traceXHR,...t},s=typeof o=="function"?o:u=>!0,c=u=>CKe(u,i),l={};n&&(e.addEventProcessor(u=>(u.type==="transaction"&&u.spans&&u.spans.forEach(d=>{if(d.op==="http.client"){const f=NT.get(d.span_id);f&&(d.timestamp=f/1e3,NT.delete(d.span_id))}}),u)),rUe(u=>{if(u.response){const d=WL.get(u.response);d&&u.endTimestamp&&NT.set(d,u.endTimestamp)}}),oee(u=>{const d=Dze(u,s,c,l);if(u.response&&u.fetchData.__span&&WL.set(u.response,u.fetchData.__span),d){const f=Zte(u.fetchData.url),h=f?ju(f).host:void 0;d.setAttributes({"http.url":f,"server.address":h})}a&&d&&GL(d)})),r&&ate(u=>{const d=SKe(u,s,c,l);a&&d&&GL(d)})}function EKe(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function GL(e){const{url:t}=_t(e).data||{};if(!t||typeof t!="string")return;const n=zh("resource",({entries:r})=>{r.forEach(o=>{EKe(o)&&o.name.endsWith(t)&&(xKe(o).forEach(i=>e.setAttribute(...i)),setTimeout(n))})})}function _Ke(e){let t="unknown",n="unknown",r="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function vi(e=0){return((io||performance.timeOrigin)+e)/1e3}function xKe(e){const{name:t,version:n}=_Ke(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),io?[...r,["http.request.redirect_start",vi(e.redirectStart)],["http.request.fetch_start",vi(e.fetchStart)],["http.request.domain_lookup_start",vi(e.domainLookupStart)],["http.request.domain_lookup_end",vi(e.domainLookupEnd)],["http.request.connect_start",vi(e.connectStart)],["http.request.secure_connection_start",vi(e.secureConnectionStart)],["http.request.connection_end",vi(e.connectEnd)],["http.request.request_start",vi(e.requestStart)],["http.request.response_start",vi(e.responseStart)],["http.request.response_end",vi(e.responseEnd)]]:r}function CKe(e,t){const n=et.location&&et.location.href;if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const a=r.origin===o;return t?Qc(r.toString(),t)||a&&Qc(r.pathname,t):a}else{const r=!!e.match(/^\/(?!\/)/);return t?Qc(e,t):r}}function SKe(e,t,n,r){const o=e.xhr,a=o&&o[Eu];if(!o||o.__sentry_own_request__||!a)return;const i=yl()&&t(a.url);if(e.endTimestamp&&i){const f=o.__sentry_xhr_span_id__;if(!f)return;const h=r[f];h&&a.status_code!==void 0&&(vee(h,a.status_code),h.end(),delete r[f]);return}const s=Zte(a.url),c=s?ju(s).host:void 0,l=!!Ur(),u=i&&l?zl({name:`${a.method} ${a.url}`,attributes:{type:"xhr","http.method":a.method,"http.url":s,url:a.url,"server.address":c,[rr]:"auto.http.browser",[sd]:"http.client"}}):new Km;o.__sentry_xhr_span_id__=u.spanContext().spanId,r[o.__sentry_xhr_span_id__]=u;const d=gt();return o.setRequestHeader&&n(a.url)&&d&&TKe(o,d,yl()&&l?u:void 0),u}function TKe(e,t,n){const r=Xt(),o=Pa(),{traceId:a,spanId:i,sampled:s,dsc:c}={...o.getPropagationContext(),...r.getPropagationContext()},l=n&&yl()?_ee(n):$P(a,i,s),u=hee(c||(n?Ld(n):O6(a,t)));AKe(e,l,u)}function AKe(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(tk,n)}catch{}}function Zte(e){try{return new URL(e,et.location.origin).href}catch{return}}function DKe(){et&&et.document?et.document.addEventListener("visibilitychange",()=>{const e=Ur();if(!e)return;const t=gr(e);if(et.document.hidden&&t){const n="cancelled",{op:r,status:o}=_t(t);ii&&ye.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:Vn,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ii&&ye.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const kKe="BrowserTracing",jKe={...B1,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Tk},PKe=(e={})=>{i$e();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:o,enableStandaloneClsSpans:a},beforeStartSpan:i,idleTimeout:s,finalTimeout:c,childSpanTimeout:l,markBackgroundSpan:u,traceFetch:d,traceXHR:f,shouldCreateSpanForRequest:h,enableHTTPTimings:m,instrumentPageLoad:p,instrumentNavigation:b}={...jKe,...e},v=SHe({recordClsStandaloneSpans:a||!1});t&&YHe(),r&&bt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?AHe():n&&THe(),o&&DHe();const g={name:void 0,source:void 0};function w(_,C){const x=C.op==="pageload",E=i?i(C):C,T=E.attributes||{};C.name!==E.name&&(T[is]="custom",E.attributes=T),g.name=E.name,g.source=T[is];const k=Pee(E,{idleTimeout:s,finalTimeout:c,childSpanTimeout:l,disableAutoFinish:x,beforeSpanEnd:R=>{v(),OHe(R,{recordClsOnPageloadSpan:!a})}});function D(){["interactive","complete"].includes(et.document.readyState)&&_.emit("idleSpanEnableAutoFinish",k)}return x&&et.document&&(et.document.addEventListener("readystatechange",()=>{D()}),D()),k}return{name:kKe,afterAllSetup(_){let C,x=et.location&&et.location.href;_.on("startNavigationSpan",E=>{gt()===_&&(C&&!_t(C).timestamp&&(ii&&ye.log(`[Tracing] Finishing current root span with op: ${_t(C).op}`),C.end()),C=w(_,{op:"navigation",...E}))}),_.on("startPageLoadSpan",(E,T={})=>{if(gt()!==_)return;C&&!_t(C).timestamp&&(ii&&ye.log(`[Tracing] Finishing current root span with op: ${_t(C).op}`),C.end());const k=T.sentryTrace||VL("sentry-trace"),D=T.baggage||VL("baggage"),R=AUe(k,D);Xt().setPropagationContext(R),C=w(_,{op:"pageload",...E})}),_.on("spanEnd",E=>{const T=_t(E).op;if(E!==gr(E)||T!=="navigation"&&T!=="pageload")return;const k=Xt(),D=k.getPropagationContext();k.setPropagationContext({...D,sampled:D.sampled!==void 0?D.sampled:Md(E),dsc:D.dsc||Ld(E)})}),et.location&&(p&&IKe(_,{name:et.location.pathname,startTime:io?io/1e3:void 0,attributes:{[is]:"url",[rr]:"auto.pageload.browser"}}),b&&B6(({to:E,from:T})=>{if(T===void 0&&x&&x.indexOf(E)!==-1){x=void 0;return}T!==E&&(x=void 0,OKe(_,{name:et.location.pathname,attributes:{[is]:"url",[rr]:"auto.navigation.browser"}}))})),u&&DKe(),o&&RKe(s,c,l,g),t&&XHe(),wKe(_,{traceFetch:d,traceXHR:f,tracePropagationTargets:_.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:h,enableHTTPTimings:m})}}};function IKe(e,t,n){e.emit("startPageLoadSpan",t,n),Xt().setTransactionName(t.name);const r=Ur();return(r&&_t(r).op)==="pageload"?r:void 0}function OKe(e,t){Pa().setPropagationContext(qE()),Xt().setPropagationContext(qE()),e.emit("startNavigationSpan",t),Xt().setTransactionName(t.name);const n=Ur();return(n&&_t(n).op)==="navigation"?n:void 0}function VL(e){const t=ULe(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function RKe(e,t,n,r){let o;const a=()=>{const i="ui.action.click",s=Ur(),c=s&&gr(s);if(c){const l=_t(c).op;if(["navigation","pageload"].includes(l)){ii&&ye.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(ak,"interactionInterrupted"),o.end(),o=void 0),!r.name){ii&&ye.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}o=Pee({name:r.name,op:i,attributes:{[is]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};et.document&&addEventListener("click",a,{once:!1,capture:!0})}function NKe(e){const t={...e};return Uee(t,"react"),Ree("react",{version:S.version}),Gqe(t)}NKe({dsn:"https://a66eef9c0aaa54aab451554089b9bebd@o4507939319906304.ingest.us.sentry.io/4507939325411328",integrations:[PKe(),bKe()],tracesSampleRate:1,tracePropagationTargets:["localhost",/^https:\/\/yourserver\.io\/api/],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1});BT.createRoot(document.getElementById("root")).render(y.jsxs(A.StrictMode,{children:[y.jsx(iie,{router:SLe}),y.jsx(jLe,{})]}));const KL=Object.freeze(Object.defineProperty({__proto__:null,default:yD},Symbol.toStringTag,{value:"Module"}));export{u2 as $,sB as A,de as B,nh as C,VYe as D,KYe as E,YYe as F,vSe as G,g0 as H,Wo as I,tQe as J,QYe as K,JYe as L,SQe as M,Ic as N,eQe as O,ZYe as P,YQ as Q,_o as R,nQe as S,cQe as T,UQe as U,CQe as V,$Qe as W,oQe as X,HQe as Y,Cy as Z,me as _,pde as a,fSe as a$,fQe as a0,wQe as a1,vQe as a2,sQe as a3,mQe as a4,jh as a5,hQe as a6,jQe as a7,xQe as a8,Da as a9,NQe as aA,IQe as aB,BQe as aC,LQe as aD,OQe as aE,RQe as aF,FQe as aG,kQe as aH,VSe as aI,JQ as aJ,D3 as aK,WYe as aL,GYe as aM,HQ as aN,z6e as aO,O4 as aP,H6e as aQ,q6e as aR,G6e as aS,I4 as aT,Y6e as aU,J6e as aV,tSe as aW,rSe as aX,aSe as aY,l6e as aZ,qQ as a_,dQe as aa,lQe as ab,uQe as ac,Sy as ad,d2 as ae,QQ as af,aQe as ag,iQe as ah,XYe as ai,yQe as aj,bQe as ak,f2 as al,rQe as am,F4 as an,EQe as ao,gQe as ap,pQe as aq,_Qe as ar,zQe as as,DQe as at,AQe as au,n3e as av,MQe as aw,PQe as ax,r3e as ay,TQe as az,gde as b,hSe as b0,cSe as b1,dSe as b2,wy as b3,Z2e as b4,zYe as b5,yde as c,Lq as d,j_ as e,oue as f,nde as g,z_ as h,Hn as i,Cs as j,Vg as k,tde as l,Ea as m,l1 as n,We as o,cd as p,gX as q,l2 as r,Xr as s,Ns as t,Au as u,ot as v,si as w,r2 as x,Ya as y,ai as z}; -//# sourceMappingURL=index-Bl6Lkf65.js.map diff --git a/apps/web/public/assets/index-Bld-eKIP.js b/apps/web/public/assets/index-Bld-eKIP.js deleted file mode 100644 index b84ecdf5..00000000 --- a/apps/web/public/assets/index-Bld-eKIP.js +++ /dev/null @@ -1,48 +0,0 @@ -import{n as fe,s as Ke,T as k,t as P,a as g,o as Y,R as Dr,p as H,y as ae}from"./index-BltpiQGx.js";import{b3 as Ur}from"./index-Cl-fQh5M.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="65c96809-9004-426d-8ae7-9fcf9dfa63d1",t._sentryDebugIdIdentifier="sentry-dbid-65c96809-9004-426d-8ae7-9fcf9dfa63d1")}catch{}})();/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Qe=window,jt=Qe.ShadowRoot&&(Qe.ShadyCSS===void 0||Qe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ht=Symbol(),Vt=new WeakMap;let br=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Ht)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(jt&&e===void 0){const i=r!==void 0&&r.length===1;i&&(e=Vt.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Vt.set(r,e))}return e}toString(){return this.cssText}};const jr=t=>new br(typeof t=="string"?t:t+"",void 0,Ht),C=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((i,o,n)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[n+1],t[0]);return new br(r,t,Ht)},Hr=(t,e)=>{jt?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const i=document.createElement("style"),o=Qe.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,t.appendChild(i)})},Ft=jt?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const i of e.cssRules)r+=i.cssText;return jr(r)})(t):t;/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */var rt;const Ye=window,qt=Ye.trustedTypes,Br=qt?qt.emptyScript:"",Kt=Ye.reactiveElementPolyfillSupport,Lt={toAttribute(t,e){switch(e){case Boolean:t=t?Br:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},yr=(t,e)=>e!==t&&(e==e||t==t),ot={attribute:!0,type:String,converter:Lt,reflect:!1,hasChanged:yr},Pt="finalized";let ue=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,i)=>{const o=this._$Ep(i,r);o!==void 0&&(this._$Ev.set(o,i),e.push(o))}),e}static createProperty(e,r=ot){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const i=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,r);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,r,i){return{get(){return this[r]},set(o){const n=this[e];this[r]=o,this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||ot}static finalize(){if(this.hasOwnProperty(Pt))return!1;this[Pt]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const o of i)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)r.unshift(Ft(o))}else e!==void 0&&r.push(Ft(e));return r}static _$Ep(e,r){const i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Hr(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostConnected)===null||i===void 0?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)})}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r,i=ot){var o;const n=this.constructor._$Ep(e,i);if(n!==void 0&&i.reflect===!0){const a=(((o=i.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?i.converter:Lt).toAttribute(r,i.type);this._$El=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$El=null}}_$AK(e,r){var i;const o=this.constructor,n=o._$Ev.get(e);if(n!==void 0&&this._$El!==n){const a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?a.converter:Lt;this._$El=n,this[n]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,i){let o=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||yr)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,n)=>this[n]=o),this._$Ei=void 0);let r=!1;const i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var n;return(n=o.hostUpdate)===null||n===void 0?void 0:n.call(o)}),this.update(i)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(i)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var o;return(o=i.hostUpdated)===null||o===void 0?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};ue[Pt]=!0,ue.elementProperties=new Map,ue.elementStyles=[],ue.shadowRootOptions={mode:"open"},Kt==null||Kt({ReactiveElement:ue}),((rt=Ye.reactiveElementVersions)!==null&&rt!==void 0?rt:Ye.reactiveElementVersions=[]).push("1.6.3");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */var it;const Ge=window,be=Ge.trustedTypes,Qt=be?be.createPolicy("lit-html",{createHTML:t=>t}):void 0,Wt="$lit$",Q=`lit$${(Math.random()+"").slice(9)}$`,xr="?"+Q,Zr=`<${xr}>`,se=document,Se=()=>se.createComment(""),Le=t=>t===null||typeof t!="object"&&typeof t!="function",$r=Array.isArray,zr=t=>$r(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",nt=`[ -\f\r]`,Ce=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yt=/-->/g,Gt=/>/g,ee=RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Xt=/'/g,Jt=/"/g,Cr=/^(?:script|style|textarea|title)$/i,_r=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),l=_r(1),E=_r(2),le=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),er=new WeakMap,ie=se.createTreeWalker(se,129,null,!1);function Ar(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Qt!==void 0?Qt.createHTML(e):e}const Vr=(t,e)=>{const r=t.length-1,i=[];let o,n=e===2?"":"",a=Ce;for(let s=0;s"?(a=o??Ce,$=-1):x[1]===void 0?$=-2:($=a.lastIndex-x[2].length,d=x[1],a=x[3]===void 0?ee:x[3]==='"'?Jt:Xt):a===Jt||a===Xt?a=ee:a===Yt||a===Gt?a=Ce:(a=ee,o=void 0);const A=a===ee&&t[s+1].startsWith("/>")?" ":"";n+=a===Ce?c+Zr:$>=0?(i.push(d),c.slice(0,$)+Wt+c.slice($)+Q+A):c+Q+($===-2?(i.push(void 0),s):A)}return[Ar(t,n+(t[r]||"")+(e===2?"":"")),i]};class Pe{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[d,x]=Vr(e,r);if(this.el=Pe.createElement(d,i),ie.currentNode=this.el.content,r===2){const $=this.el.content,m=$.firstChild;m.remove(),$.append(...m.childNodes)}for(;(o=ie.nextNode())!==null&&c.length0){o.textContent=be?be.emptyScript:"";for(let A=0;A2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=M}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,o){const n=this.strings;let a=!1;if(n===void 0)e=ye(this,e,r,0),a=!Le(e)||e!==this._$AH&&e!==le,a&&(this._$AH=e);else{const s=e;let c,d;for(e=n[0],c=0;c{var i,o;const n=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:e;let a=n._$litPart$;if(a===void 0){const s=(o=r==null?void 0:r.renderBefore)!==null&&o!==void 0?o:null;n._$litPart$=a=new Ne(e.insertBefore(Se(),s),s,void 0,r??{})}return a._$AI(t),a};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */var at,st;class w extends ue{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const i=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Xr(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return le}}w.finalized=!0,w._$litElement$=!0,(at=globalThis.litElementHydrateSupport)===null||at===void 0||at.call(globalThis,{LitElement:w});const rr=globalThis.litElementPolyfillSupport;rr==null||rr({LitElement:w});((st=globalThis.litElementVersions)!==null&&st!==void 0?st:globalThis.litElementVersions=[]).push("3.3.3");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const y=t=>e=>typeof e=="function"?((r,i)=>(customElements.define(r,i),i))(t,e):((r,i)=>{const{kind:o,elements:n}=i;return{kind:o,elements:n,finisher(a){customElements.define(r,a)}}})(t,e);/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Jr=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}},eo=(t,e,r)=>{e.constructor.createProperty(r,t)};function p(t){return(e,r)=>r!==void 0?eo(t,e,r):Jr(t,e)}/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function W(t){return p({...t,state:!0})}/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */var lt;((lt=window.HTMLSlotElement)===null||lt===void 0?void 0:lt.prototype.assignedElements)!=null;/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const to={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ro=t=>(...e)=>({_$litDirective$:t,values:e});class oo{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}/** - * @license - * Copyright 2018 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Z=ro(class extends oo{constructor(t){var e;if(super(t),t.type!==to.ATTRIBUTE||t.name!=="class"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,i;if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in e)e[n]&&!(!((r=this.nt)===null||r===void 0)&&r.has(n))&&this.it.add(n);return this.render(e)}const o=t.element.classList;this.it.forEach(n=>{n in e||(o.remove(n),this.it.delete(n))});for(const n in e){const a=!!e[n];a===this.it.has(n)||!((i=this.nt)===null||i===void 0)&&i.has(n)||(a?(o.add(n),this.it.add(n)):(o.remove(n),this.it.delete(n)))}return le}});function io(t,e){t.indexOf(e)===-1&&t.push(e)}const Er=(t,e,r)=>Math.min(Math.max(r,t),e),D={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Xe=t=>typeof t=="number",we=t=>Array.isArray(t)&&!Xe(t[0]),no=(t,e,r)=>{const i=e-t;return((r-t)%i+i)%i+t};function ao(t,e){return we(t)?t[no(0,t.length,e)]:t}const kr=(t,e,r)=>-r*t+r*e+t,Or=()=>{},G=t=>t,Bt=(t,e,r)=>e-t===0?1:(r-t)/(e-t);function Ir(t,e){const r=t[t.length-1];for(let i=1;i<=e;i++){const o=Bt(0,e,i);t.push(kr(r,1,o))}}function so(t){const e=[0];return Ir(e,t-1),e}function lo(t,e=so(t.length),r=G){const i=t.length,o=i-e.length;return o>0&&Ir(e,o),n=>{let a=0;for(;aArray.isArray(t)&&Xe(t[0]),Nt=t=>typeof t=="object"&&!!t.createAnimation,xe=t=>typeof t=="function",co=t=>typeof t=="string",Re={ms:t=>t*1e3,s:t=>t/1e3},Mr=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,ho=1e-7,mo=12;function po(t,e,r,i,o){let n,a,s=0;do a=e+(r-e)/2,n=Mr(a,i,o)-t,n>0?r=a:e=a;while(Math.abs(n)>ho&&++spo(n,0,1,t,r);return n=>n===0||n===1?n:Mr(o(n),e,i)}const uo=(t,e="end")=>r=>{r=e==="end"?Math.min(r,.999):Math.max(r,.001);const i=r*t,o=e==="end"?Math.floor(i):Math.ceil(i);return Er(0,1,o/t)},go={ease:Me(.25,.1,.25,1),"ease-in":Me(.42,0,1,1),"ease-in-out":Me(.42,0,.58,1),"ease-out":Me(0,0,.58,1)},wo=/\((.*?)\)/;function or(t){if(xe(t))return t;if(Tr(t))return Me(...t);const e=go[t];if(e)return e;if(t.startsWith("steps")){const r=wo.exec(t);if(r){const i=r[1].split(",");return uo(parseFloat(i[0]),i[1].trim())}}return G}class Rr{constructor(e,r=[0,1],{easing:i,duration:o=D.duration,delay:n=D.delay,endDelay:a=D.endDelay,repeat:s=D.repeat,offset:c,direction:d="normal",autoplay:x=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=G,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((m,A)=>{this.resolve=m,this.reject=A}),i=i||D.easing,Nt(i)){const m=i.createAnimation(r);i=m.easing,r=m.keyframes||r,o=m.duration||o}this.repeat=s,this.easing=we(i)?G:or(i),this.updateDuration(o);const $=lo(r,c,we(i)?i.map(or):G);this.tick=m=>{var A;n=n;let f=0;this.pauseTime!==void 0?f=this.pauseTime:f=(m-this.startTime)*this.rate,this.t=f,f/=1e3,f=Math.max(f-n,0),this.playState==="finished"&&this.pauseTime===void 0&&(f=this.totalDuration);const u=f/this.duration;let I=Math.floor(u),b=u%1;!b&&u>=1&&(b=1),b===1&&I--;const R=I%2;(d==="reverse"||d==="alternate"&&R||d==="alternate-reverse"&&!R)&&(b=1-b);const S=f>=this.totalDuration?1:Math.min(b,1),N=$(this.easing(S));e(N),this.pauseTime===void 0&&(this.playState==="finished"||f>=this.totalDuration+a)?(this.playState="finished",(A=this.resolve)===null||A===void 0||A.call(this,N)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},x&&this.play()}play(){const e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}class vo{setAnimation(e){this.animation=e,e==null||e.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const ct=new WeakMap;function Sr(t){return ct.has(t)||ct.set(t,{transforms:[],values:new Map}),ct.get(t)}function fo(t,e){return t.has(e)||t.set(e,new vo),t.get(e)}const bo=["","X","Y","Z"],yo=["translate","scale","rotate","skew"],Je={x:"translateX",y:"translateY",z:"translateZ"},ir={syntax:"",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},xo={translate:{syntax:"",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:ir,scale:{syntax:"",initialValue:1,toDefaultUnit:G},skew:ir},We=new Map,Zt=t=>`--motion-${t}`,et=["x","y","z"];yo.forEach(t=>{bo.forEach(e=>{et.push(t+e),We.set(Zt(t+e),xo[t])})});const $o=(t,e)=>et.indexOf(t)-et.indexOf(e),Co=new Set(et),Lr=t=>Co.has(t),_o=(t,e)=>{Je[e]&&(e=Je[e]);const{transforms:r}=Sr(t);io(r,e),t.style.transform=Ao(r)},Ao=t=>t.sort($o).reduce(Eo,"").trim(),Eo=(t,e)=>`${t} ${e}(var(${Zt(e)}))`,Dt=t=>t.startsWith("--"),nr=new Set;function ko(t){if(!nr.has(t)){nr.add(t);try{const{syntax:e,initialValue:r}=We.has(t)?We.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:r})}catch{}}}const dt=(t,e)=>document.createElement("div").animate(t,e),ar={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{dt({opacity:[1]})}catch{return!1}return!0},finished:()=>!!dt({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{dt({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},ht={},ge={};for(const t in ar)ge[t]=()=>(ht[t]===void 0&&(ht[t]=ar[t]()),ht[t]);const Oo=.015,Io=(t,e)=>{let r="";const i=Math.round(e/Oo);for(let o=0;oxe(t)?ge.linearEasing()?`linear(${Io(t,e)})`:D.easing:Tr(t)?To(t):t,To=([t,e,r,i])=>`cubic-bezier(${t}, ${e}, ${r}, ${i})`;function Mo(t,e){for(let r=0;rArray.isArray(t)?t:[t];function Ut(t){return Je[t]&&(t=Je[t]),Lr(t)?Zt(t):t}const je={get:(t,e)=>{e=Ut(e);let r=Dt(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!r&&r!==0){const i=We.get(e);i&&(r=i.initialValue)}return r},set:(t,e,r)=>{e=Ut(e),Dt(e)?t.style.setProperty(e,r):t.style[e]=r}};function Pr(t,e=!0){if(!(!t||t.playState==="finished"))try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch{}}function So(t,e){var r;let i=(e==null?void 0:e.toDefaultUnit)||G;const o=t[t.length-1];if(co(o)){const n=((r=o.match(/(-?[\d.]+)([a-z%]*)/))===null||r===void 0?void 0:r[2])||"";n&&(i=a=>a+n)}return i}function Lo(){return window.__MOTION_DEV_TOOLS_RECORD}function Po(t,e,r,i={},o){const n=Lo(),a=i.record!==!1&&n;let s,{duration:c=D.duration,delay:d=D.delay,endDelay:x=D.endDelay,repeat:$=D.repeat,easing:m=D.easing,persist:A=!1,direction:f,offset:u,allowWebkitAcceleration:I=!1,autoplay:b=!0}=i;const R=Sr(t),S=Lr(e);let N=ge.waapi();S&&_o(t,e);const U=Ut(e),De=fo(R.values,U),z=We.get(U);return Pr(De.animation,!(Nt(m)&&De.generator)&&i.record!==!1),()=>{const Ue=()=>{var O,$e;return($e=(O=je.get(t,U))!==null&&O!==void 0?O:z==null?void 0:z.initialValue)!==null&&$e!==void 0?$e:0};let T=Mo(Ro(r),Ue);const zt=So(T,z);if(Nt(m)){const O=m.createAnimation(T,e!=="opacity",Ue,U,De);m=O.easing,T=O.keyframes||T,c=O.duration||c}if(Dt(U)&&(ge.cssRegisterProperty()?ko(U):N=!1),S&&!ge.linearEasing()&&(xe(m)||we(m)&&m.some(xe))&&(N=!1),N){z&&(T=T.map(J=>Xe(J)?z.toDefaultUnit(J):J)),T.length===1&&(!ge.partialKeyframes()||a)&&T.unshift(Ue());const O={delay:Re.ms(d),duration:Re.ms(c),endDelay:Re.ms(x),easing:we(m)?void 0:sr(m,c),direction:f,iterations:$+1,fill:"both"};s=t.animate({[U]:T,offset:u,easing:we(m)?m.map(J=>sr(J,c)):void 0},O),s.finished||(s.finished=new Promise((J,Nr)=>{s.onfinish=J,s.oncancel=Nr}));const $e=T[T.length-1];s.finished.then(()=>{A||(je.set(t,U,$e),s.cancel())}).catch(Or),I||(s.playbackRate=1.000001)}else if(o&&S)T=T.map(O=>typeof O=="string"?parseFloat(O):O),T.length===1&&T.unshift(parseFloat(Ue())),s=new o(O=>{je.set(t,U,zt?zt(O):O)},T,Object.assign(Object.assign({},i),{duration:c,easing:m}));else{const O=T[T.length-1];je.set(t,U,z&&Xe(O)?z.toDefaultUnit(O):O)}return a&&n(t,e,T,{duration:c,delay:d,easing:m,repeat:$,offset:u},"motion-one"),De.setAnimation(s),s&&!b&&s.pause(),s}}const Wo=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function No(t,e){return typeof t=="string"?t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}const Do=t=>t(),Wr=(t,e,r=D.duration)=>new Proxy({animations:t.map(Do).filter(Boolean),duration:r,options:e},jo),Uo=t=>t.animations[0],jo={get:(t,e)=>{const r=Uo(t);switch(e){case"duration":return t.duration;case"currentTime":return Re.s((r==null?void 0:r[e])||0);case"playbackRate":case"playState":return r==null?void 0:r[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(Ho)).catch(Or)),t.finished;case"stop":return()=>{t.animations.forEach(i=>Pr(i))};case"forEachNative":return i=>{t.animations.forEach(o=>i(o,t))};default:return typeof(r==null?void 0:r[e])>"u"?void 0:()=>t.animations.forEach(i=>i[e]())}},set:(t,e,r)=>{switch(e){case"currentTime":r=Re.ms(r);case"playbackRate":for(let i=0;it.finished;function Bo(t,e,r){return xe(t)?t(e,r):t}function Zo(t){return function(r,i,o={}){r=No(r);const n=r.length,a=[];for(let s=0;s{const r=new Rr(t,[0,1],e);return r.finished.catch(()=>{}),r}],e,e.duration)}function ne(t,e,r){return(xe(t)?Vo:zo)(t,e,r)}/** - * @license - * Copyright 2018 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const L=t=>t??M;var Fo=Object.defineProperty,lr=Object.getOwnPropertySymbols,qo=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable,cr=(t,e,r)=>e in t?Fo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mt=(t,e)=>{for(var r in e||(e={}))qo.call(e,r)&&cr(t,r,e[r]);if(lr)for(var r of lr(e))Ko.call(e,r)&&cr(t,r,e[r]);return t};function Qo(){var t;const e=(t=fe.state.themeMode)!=null?t:"dark",r={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[e];return{"--wcm-color-fg-1":r.foreground[1],"--wcm-color-fg-2":r.foreground[2],"--wcm-color-fg-3":r.foreground[3],"--wcm-color-bg-1":r.background[1],"--wcm-color-bg-2":r.background[2],"--wcm-color-bg-3":r.background[3],"--wcm-color-overlay":r.overlay}}function dr(){return{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}}const v={getPreset(t){return dr()[t]},setTheme(){const t=document.querySelector(":root"),{themeVariables:e}=fe.state;if(t){const r=mt(mt(mt({},Qo()),dr()),e);Object.entries(r).forEach(([i,o])=>t.style.setProperty(i,o))}},globalCss:C`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},Yo=C`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var Go=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,ce=(t,e,r,i)=>{for(var o=i>1?void 0:i?Xo(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Go(e,r,o),o};let V=class extends w{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const t={"wcm-icon-left":this.iconLeft!==void 0,"wcm-icon-right":this.iconRight!==void 0,"wcm-ghost":this.variant==="ghost","wcm-outline":this.variant==="outline"};let e="inverse";return this.variant==="ghost"&&(e="secondary"),this.variant==="outline"&&(e="accent"),l``}};V.styles=[v.globalCss,Yo],ce([p({type:Boolean})],V.prototype,"disabled",2),ce([p()],V.prototype,"iconLeft",2),ce([p()],V.prototype,"iconRight",2),ce([p()],V.prototype,"onClick",2),ce([p()],V.prototype,"variant",2),V=ce([y("wcm-button")],V);const Jo=C`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,pt=(t,e,r,i)=>{for(var o=i>1?void 0:i?ti(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&ei(e,r,o),o};let _e=class extends w{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const t={"wcm-secondary":this.variant==="secondary"};return l``}};_e.styles=[v.globalCss,Jo],pt([p({type:Boolean})],_e.prototype,"disabled",2),pt([p()],_e.prototype,"variant",2),_e=pt([y("wcm-button-big")],_e);const ri=C`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var oi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let ut=class extends w{render(){return l`
`}};ut.styles=[v.globalCss,ri],ut=oi([y("wcm-info-footer")],ut);const _={CROSS_ICON:E``,WALLET_CONNECT_LOGO:E``,WALLET_CONNECT_ICON:E``,WALLET_CONNECT_ICON_COLORED:E``,BACK_ICON:E``,COPY_ICON:E``,RETRY_ICON:E``,DESKTOP_ICON:E``,MOBILE_ICON:E``,ARROW_DOWN_ICON:E``,ARROW_UP_RIGHT_ICON:E``,ARROW_RIGHT_ICON:E``,QRCODE_ICON:E``,SCAN_ICON:E``,CHECKMARK_ICON:E``,SEARCH_ICON:E``,WALLET_PLACEHOLDER:E``,GLOBE_ICON:E``},ii=C`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var ni=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let gt=class extends w{render(){return l`
${_.WALLET_CONNECT_LOGO}
`}};gt.styles=[v.globalCss,ii],gt=ni([y("wcm-modal-backcard")],gt);const ai=C`main{padding:20px;padding-top:0;width:100%}`;var si=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let wt=class extends w{render(){return l`
`}};wt.styles=[v.globalCss,ai],wt=si([y("wcm-modal-content")],wt);const li=C`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var ci=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let vt=class extends w{render(){return l`
`}};vt.styles=[v.globalCss,li],vt=ci([y("wcm-modal-footer")],vt);const di=C`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var hi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,Ae=(t,e,r,i)=>{for(var o=i>1?void 0:i?mi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&hi(e,r,o),o};let te=class extends w{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return l``}actionBtnTemplate(){return l``}render(){const t={"wcm-border":this.border},e=k.state.history.length>1,r=this.title?l`${this.title}`:l``;return l`
${e?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}
`}};te.styles=[v.globalCss,di],Ae([p()],te.prototype,"title",2),Ae([p()],te.prototype,"onAction",2),Ae([p()],te.prototype,"actionIcon",2),Ae([p({type:Boolean})],te.prototype,"border",2),te=Ae([y("wcm-modal-header")],te);const h={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(t,e){const r=t.renderRoot.querySelector(e);if(!r)throw new Error(`${e} not found`);return r},getWalletIcon({id:t,image_id:e}){const{walletImages:r}=ae.state;return r!=null&&r[t]?r[t]:e?P.getWalletImageUrl(e):""},getWalletName(t,e=!1){return e&&t.length>8?`${t.substring(0,8)}..`:t},isMobileAnimation(){return window.innerWidth<=h.MOBILE_BREAKPOINT},async preloadImage(t){const e=new Promise((r,i)=>{const o=new Image;o.onload=r,o.onerror=i,o.crossOrigin="anonymous",o.src=t});return Promise.race([e,g.wait(3e3)])},getErrorMessage(t){return t instanceof Error?t.message:"Unknown Error"},debounce(t,e=500){let r;return(...i)=>{function o(){t(...i)}r&&clearTimeout(r),r=setTimeout(o,e)}},handleMobileLinking(t){const{walletConnectUri:e}=H.state,{mobile:r,name:i}=t,o=r==null?void 0:r.native,n=r==null?void 0:r.universal;h.setRecentWallet(t);function a(s){let c="";o?c=g.formatUniversalUrl(o,s,i):n&&(c=g.formatNativeUrl(n,s,i)),g.openHref(c,"_self")}e&&a(e)},handleAndroidLinking(){const{walletConnectUri:t}=H.state;t&&(g.setWalletConnectAndroidDeepLink(t),g.openHref(t,"_self"))},async handleUriCopy(){const{walletConnectUri:t}=H.state;if(t)try{await navigator.clipboard.writeText(t),Y.openToast("Link copied","success")}catch{Y.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:t}=ae.state,e=Object.values(t??{});return Object.values(e)},truncate(t,e=8){return t.length<=e?t:`${t.substring(0,4)}...${t.substring(t.length-4)}`},setRecentWallet(t){try{localStorage.setItem(h.WCM_RECENT_WALLET_DATA,JSON.stringify(t))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const t=localStorage.getItem(h.WCM_RECENT_WALLET_DATA);return t?JSON.parse(t):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes(t,e){return t.toUpperCase().includes(e.toUpperCase())},openWalletExplorerUrl(){g.openHref(h.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:t,mobile:e}=g.getWalletRouterData(),r=!!(t!=null&&t.native),i=!!(t!=null&&t.universal),o=!!(e!=null&&e.native)||!!(e!=null&&e.universal);return{isDesktop:r,isMobile:o,isWeb:i}},goToConnectingView(t){k.setData({Wallet:t});const e=g.isMobile(),{isDesktop:r,isWeb:i,isMobile:o}=h.getCachedRouterWalletPlatforms();e?o?k.push("MobileConnecting"):i?k.push("WebConnecting"):k.push("InstallWallet"):r?k.push("DesktopConnecting"):i?k.push("WebConnecting"):o?k.push("MobileQrcodeConnecting"):k.push("InstallWallet")}},pi=C`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var ui=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,ft=(t,e,r,i)=>{for(var o=i>1?void 0:i?gi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&ui(e,r,o),o};let Ee=class extends w{constructor(){super(),this.view=k.state.view,this.prevView=k.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=k.subscribe(t=>{this.view!==t.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([t])=>{const e=`${t.contentRect.height}px`;this.oldHeight!=="0px"&&ne(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),this.oldHeight=e}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var t,e;(t=this.unsubscribe)==null||t.call(this),(e=this.resizeObserver)==null||e.disconnect()}get routerEl(){return h.getShadowRootElement(this,".wcm-router")}get contentEl(){return h.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return l``;case"DesktopConnecting":return l``;case"MobileConnecting":return l``;case"WebConnecting":return l``;case"MobileQrcodeConnecting":return l``;case"WalletExplorer":return l``;case"Qrcode":return l``;case"InstallWallet":return l``;default:return l`
Not Found
`}}async onChangeRoute(){await ne(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=k.state.view,ne(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return l`
${this.viewTemplate()}
`}};Ee.styles=[v.globalCss,pi],ft([W()],Ee.prototype,"view",2),ft([W()],Ee.prototype,"prevView",2),Ee=ft([y("wcm-modal-router")],Ee);const wi=C`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var vi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,hr=(t,e,r,i)=>{for(var o=i>1?void 0:i?fi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&vi(e,r,o),o};let He=class extends w{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=Y.subscribe(t=>{t.open?(this.open=!0,this.timeout=setTimeout(()=>Y.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var t;(t=this.unsubscribe)==null||t.call(this),clearTimeout(this.timeout),Y.closeToast()}render(){const{message:t,variant:e}=Y.state,r={"wcm-success":e==="success","wcm-error":e==="error"};return this.open?l`
${e==="success"?_.CHECKMARK_ICON:null} ${e==="error"?_.CROSS_ICON:null}${t}
`:null}};He.styles=[v.globalCss,wi],hr([W()],He.prototype,"open",2),He=hr([y("wcm-modal-toast")],He);const bi=.1,mr=2.5,B=7;function bt(t,e,r){return t===e?!1:(t-e<0?e-t:t-e)<=r+bi}function yi(t,e){const r=Array.prototype.slice.call(Ur.create(t,{errorCorrectionLevel:e}).modules.data,0),i=Math.sqrt(r.length);return r.reduce((o,n,a)=>(a%i===0?o.push([n]):o[o.length-1].push(n))&&o,[])}const xi={generate(t,e,r){const i="#141414",o="#ffffff",n=[],a=yi(t,"Q"),s=e/a.length,c=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];c.forEach(({x:f,y:u})=>{const I=(a.length-B)*s*f,b=(a.length-B)*s*u,R=.45;for(let S=0;S`)}});const d=Math.floor((r+25)/s),x=a.length/2-d/2,$=a.length/2+d/2-1,m=[];a.forEach((f,u)=>{f.forEach((I,b)=>{if(a[u][b]&&!(ua.length-(B+1)&&ba.length-(B+1))&&!(u>x&&u<$&&b>x&&b<$)){const R=u*s+s/2,S=b*s+s/2;m.push([R,S])}})});const A={};return m.forEach(([f,u])=>{A[f]?A[f].push(u):A[f]=[u]}),Object.entries(A).map(([f,u])=>{const I=u.filter(b=>u.every(R=>!bt(b,R,s)));return[Number(f),I]}).forEach(([f,u])=>{u.forEach(I=>{n.push(E``)})}),Object.entries(A).filter(([f,u])=>u.length>1).map(([f,u])=>{const I=u.filter(b=>u.some(R=>bt(b,R,s)));return[Number(f),I]}).map(([f,u])=>{u.sort((b,R)=>bS.some(N=>bt(b,N,s)));R?R.push(b):I.push([b])}return[f,I.map(b=>[b[0],b[b.length-1]])]}).forEach(([f,u])=>{u.forEach(([I,b])=>{n.push(E``)})}),n}},$i=C`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var Ci=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,de=(t,e,r,i)=>{for(var o=i>1?void 0:i?_i(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Ci(e,r,o),o};let F=class extends w{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const t=fe.state.themeMode==="light"?this.size:this.size-36;return E`${xi.generate(this.uri,t,t/4)}`}render(){const t={"wcm-dark":fe.state.themeMode==="dark"};return l`
${this.walletId||this.imageUrl?l``:_.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};F.styles=[v.globalCss,$i],de([p()],F.prototype,"uri",2),de([p({type:Number})],F.prototype,"size",2),de([p()],F.prototype,"imageId",2),de([p()],F.prototype,"walletId",2),de([p()],F.prototype,"imageUrl",2),F=de([y("wcm-qrcode")],F);const Ai=C`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var Ei=Object.defineProperty,ki=Object.getOwnPropertyDescriptor,pr=(t,e,r,i)=>{for(var o=i>1?void 0:i?ki(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Ei(e,r,o),o};let Be=class extends w{constructor(){super(...arguments),this.onChange=()=>null}render(){return l` ${_.SEARCH_ICON}`}};Be.styles=[v.globalCss,Ai],pr([p()],Be.prototype,"onChange",2),Be=pr([y("wcm-search-input")],Be);const Oi=C`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;var Ii=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let yt=class extends w{render(){return l``}};yt.styles=[v.globalCss,Oi],yt=Ii([y("wcm-spinner")],yt);const Ti=C`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var Mi=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,xt=(t,e,r,i)=>{for(var o=i>1?void 0:i?Ri(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Mi(e,r,o),o};let ke=class extends w{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const t={"wcm-big-bold":this.variant==="big-bold","wcm-medium-regular":this.variant==="medium-regular","wcm-small-regular":this.variant==="small-regular","wcm-small-thin":this.variant==="small-thin","wcm-xsmall-regular":this.variant==="xsmall-regular","wcm-xsmall-bold":this.variant==="xsmall-bold","wcm-color-primary":this.color==="primary","wcm-color-secondary":this.color==="secondary","wcm-color-tertiary":this.color==="tertiary","wcm-color-inverse":this.color==="inverse","wcm-color-accnt":this.color==="accent","wcm-color-error":this.color==="error"};return l``}};ke.styles=[v.globalCss,Ti],xt([p()],ke.prototype,"variant",2),xt([p()],ke.prototype,"color",2),ke=xt([y("wcm-text")],ke);const Si=C`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var Li=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,q=(t,e,r,i)=>{for(var o=i>1?void 0:i?Pi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Li(e,r,o),o};let j=class extends w{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?l`RECENT`:this.installed?l`INSTALLED`:null}handleClick(){Dr.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var t;return l``}};j.styles=[v.globalCss,Si],q([p()],j.prototype,"onClick",2),q([p()],j.prototype,"name",2),q([p()],j.prototype,"walletId",2),q([p()],j.prototype,"label",2),q([p()],j.prototype,"imageId",2),q([p({type:Boolean})],j.prototype,"installed",2),q([p({type:Boolean})],j.prototype,"recent",2),j=q([y("wcm-wallet-button")],j);const Wi=C`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Ni=Object.defineProperty,Di=Object.getOwnPropertyDescriptor,Ze=(t,e,r,i)=>{for(var o=i>1?void 0:i?Di(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Ni(e,r,o),o};let he=class extends w{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var t;const e=(t=this.imageUrl)!=null&&t.length?this.imageUrl:h.getWalletIcon({id:this.walletId,image_id:this.imageId});return l`${e.length?l`
${this.id}
`:_.WALLET_PLACEHOLDER}`}};he.styles=[v.globalCss,Wi],Ze([p()],he.prototype,"walletId",2),Ze([p()],he.prototype,"imageId",2),Ze([p()],he.prototype,"imageUrl",2),he=Ze([y("wcm-wallet-image")],he);var Ui=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,ur=(t,e,r,i)=>{for(var o=i>1?void 0:i?ji(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Ui(e,r,o),o};let $t=class extends w{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(t){try{t!=null&&t.length&&await Promise.all(t.map(async e=>h.preloadImage(e)))}catch{console.info("Unsuccessful attempt at preloading some images",t)}}async preloadListings(){if(ae.state.enableExplorer){await P.getRecomendedWallets(),H.setIsDataLoaded(!0);const{recomendedWallets:t}=P.state,e=t.map(r=>h.getWalletIcon(r));await this.loadImages(e)}else H.setIsDataLoaded(!0)}async preloadCustomImages(){const t=h.getCustomImageUrls();await this.loadImages(t)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(t){console.error(t),Y.openToast("Failed preloading","error")}}};ur([W()],$t.prototype,"preload",2),$t=ur([y("wcm-explorer-context")],$t);var Hi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let gr=class extends w{constructor(){super(),this.unsubscribeTheme=void 0,v.setTheme(),this.unsubscribeTheme=fe.subscribe(v.setTheme)}disconnectedCallback(){var t;(t=this.unsubscribeTheme)==null||t.call(this)}};gr=Hi([y("wcm-theme-context")],gr);const Bi=C`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Zi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Ct=class extends w{onGoToQrcode(){k.push("Qrcode")}render(){const{recomendedWallets:t}=P.state,e=[...t,...t],r=g.RECOMMENDED_WALLET_AMOUNT*2;return l`
${_.MOBILE_ICON}WalletConnect
${[...Array(r)].map((i,o)=>{const n=e[o%e.length];return n?l``:_.WALLET_PLACEHOLDER})}
Select Wallet
Choose WalletConnect to see supported apps on your device`}};Ct.styles=[v.globalCss,Bi],Ct=Zi([y("wcm-android-wallet-selection")],Ct);const zi=C`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var Vi=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,me=(t,e,r,i)=>{for(var o=i>1?void 0:i?Fi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Vi(e,r,o),o};let K=class extends w{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var t,e;const r=(e=(t=fe.state.themeVariables)==null?void 0:t["--wcm-wallet-icon-large-border-radius"])!=null?e:v.getPreset("--wcm-wallet-icon-large-border-radius");let i=0;r.includes("%")?i=88/100*parseInt(r,10):i=parseInt(r,10),i*=1.17;const o=317-i*1.57,n=425-i*1.8;return l``}render(){const t={"wcm-error":this.isError,"wcm-stale":this.isStale};return l`
${this.svgLoaderTemplate()}
${this.isError?"Connection declined":this.label}`}};K.styles=[v.globalCss,zi],me([p()],K.prototype,"walletId",2),me([p()],K.prototype,"imageId",2),me([p({type:Boolean})],K.prototype,"isError",2),me([p({type:Boolean})],K.prototype,"isStale",2),me([p()],K.prototype,"label",2),K=me([y("wcm-connector-waiting")],K);const ve={manualWallets(){var t,e;const{mobileWallets:r,desktopWallets:i}=ae.state,o=(t=ve.recentWallet())==null?void 0:t.id,n=g.isMobile()?r:i,a=n==null?void 0:n.filter(s=>o!==s.id);return(e=g.isMobile()?a==null?void 0:a.map(({id:s,name:c,links:d})=>({id:s,name:c,mobile:d,links:d})):a==null?void 0:a.map(({id:s,name:c,links:d})=>({id:s,name:c,desktop:d,links:d})))!=null?e:[]},recentWallet(){return h.getRecentWallet()},recomendedWallets(t=!1){var e;const r=t||(e=ve.recentWallet())==null?void 0:e.id,{recomendedWallets:i}=P.state;return i.filter(o=>r!==o.id)}},X={onConnecting(t){h.goToConnectingView(t)},manualWalletsTemplate(){return ve.manualWallets().map(t=>l``)},recomendedWalletsTemplate(t=!1){return ve.recomendedWallets(t).map(e=>l``)},recentWalletTemplate(){const t=ve.recentWallet();if(t)return l``}},qi=C`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;var Ki=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let _t=class extends w{render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=ae.state,r=t!=="ALL"&&e,i=X.manualWalletsTemplate(),o=X.recomendedWalletsTemplate();let n=[X.recentWalletTemplate(),...i,...o];n=n.filter(Boolean);const a=n.length>4||r;let s=[];a?s=n.slice(0,3):s=n;const c=!!s.length;return l`
${_.MOBILE_ICON}Mobile
${_.SCAN_ICON}Scan with your wallet
${c?l`
${_.DESKTOP_ICON}Desktop
${s} ${a?l``:null}
`:null}`}};_t.styles=[v.globalCss,qi],_t=Ki([y("wcm-desktop-wallet-selection")],_t);const Qi=C`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var Yi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let At=class extends w{render(){const{termsOfServiceUrl:t,privacyPolicyUrl:e}=ae.state;return t??e?l`
By connecting your wallet to this app, you agree to the app's ${t?l`Terms of Service`:null} ${t&&e?"and":null} ${e?l`Privacy Policy`:null}
`:null}};At.styles=[v.globalCss,Qi],At=Yi([y("wcm-legal-notice")],At);const Gi=C`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var Xi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Et=class extends w{onQrcode(){k.push("Qrcode")}render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=ae.state,r=t!=="ALL"&&e,i=X.manualWalletsTemplate(),o=X.recomendedWalletsTemplate();let n=[X.recentWalletTemplate(),...i,...o];n=n.filter(Boolean);const a=n.length>8||r;let s=[];a?s=n.slice(0,7):s=n;const c=!!s.length;return l`${c?l`
${s} ${a?l``:null}
`:null}`}};Et.styles=[v.globalCss,Gi],Et=Xi([y("wcm-mobile-wallet-selection")],Et);const Ji=C`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var en=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,kt=(t,e,r,i)=>{for(var o=i>1?void 0:i?tn(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&en(e,r,o),o};let Oe=class extends w{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=Ke.subscribe(t=>{t.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var t;(t=this.unsubscribeModal)==null||t.call(this)}get overlayEl(){return h.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return h.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(t){if(document.querySelector("body"))if(t){const e=document.getElementById("wcm-styles");e==null||e.remove()}else document.head.insertAdjacentHTML("beforeend",'')}onCloseModal(t){t.target===t.currentTarget&&Ke.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{const t=h.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]},e=.1,r=.2;await Promise.all([ne(this.overlayEl,{opacity:[0,1]},{delay:e,duration:r}).finished,ne(this.containerEl,t,{delay:e,duration:r}).finished]),this.active=!0},0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const t=h.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]},e=.2;await Promise.all([ne(this.overlayEl,{opacity:[1,0]},{duration:e}).finished,ne(this.containerEl,t,{duration:e}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",t=>{var e;t.key==="Escape"?Ke.close():t.key==="Tab"&&((e=t.target)!=null&&e.tagName.includes("wcm-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var t;(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){const t={"wcm-overlay":!0,"wcm-active":this.active};return l`
${this.open?l`
`:null}
`}};Oe.styles=[v.globalCss,Ji],kt([W()],Oe.prototype,"open",2),kt([W()],Oe.prototype,"active",2),Oe=kt([y("wcm-modal")],Oe);const rn=C`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var on=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,Ie=(t,e,r,i)=>{for(var o=i>1?void 0:i?nn(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&on(e,r,o),o};let re=class extends w{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){g.isMobile()?k.replace("MobileConnecting"):k.replace("MobileQrcodeConnecting")}onDesktop(){k.replace("DesktopConnecting")}onWeb(){k.replace("WebConnecting")}render(){return l`
${this.isRetry?l``:null} ${this.isMobile?l`Mobile`:null} ${this.isDesktop?l`Desktop`:null} ${this.isWeb?l`Web`:null}
`}};re.styles=[v.globalCss,rn],Ie([p({type:Boolean})],re.prototype,"isMobile",2),Ie([p({type:Boolean})],re.prototype,"isDesktop",2),Ie([p({type:Boolean})],re.prototype,"isWeb",2),Ie([p({type:Boolean})],re.prototype,"isRetry",2),re=Ie([y("wcm-platform-selection")],re);const an=C`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var sn=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Ot=class extends w{onClick(){k.push("WalletExplorer")}render(){const{recomendedWallets:t}=P.state,e=ve.manualWallets(),r=[...t,...e].reverse().slice(0,4);return l``}};Ot.styles=[v.globalCss,an],Ot=sn([y("wcm-view-all-wallets-button")],Ot);const ln=C`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var cn=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,ze=(t,e,r,i)=>{for(var o=i>1?void 0:i?dn(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&cn(e,r,o),o};let pe=class extends w{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout(()=>{const{walletConnectUri:t}=H.state;this.uri=t},0)}get overlayEl(){return h.getShadowRootElement(this,".wcm-qr-container")}render(){return l`
${this.uri?l``:l``}
`}};pe.styles=[v.globalCss,ln],ze([p()],pe.prototype,"walletId",2),ze([p()],pe.prototype,"imageId",2),ze([W()],pe.prototype,"uri",2),pe=ze([y("wcm-walletconnect-qr")],pe);var hn=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let It=class extends w{viewTemplate(){return g.isAndroid()?l``:g.isMobile()?l``:l``}render(){return l`${this.viewTemplate()}`}};It.styles=[v.globalCss],It=hn([y("wcm-connect-wallet-view")],It);const mn=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var pn=Object.defineProperty,un=Object.getOwnPropertyDescriptor,wr=(t,e,r,i)=>{for(var o=i>1?void 0:i?un(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&pn(e,r,o),o};let Ve=class extends w{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(t){const{desktop:e,name:r}=g.getWalletRouterData(),i=e==null?void 0:e.native;if(i){const o=g.formatNativeUrl(i,t,r);g.openHref(o,"_self")}}openDesktopApp(){const{walletConnectUri:t}=H.state,e=g.getWalletRouterData();h.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=g.getWalletRouterData(),{isMobile:i,isWeb:o}=h.getCachedRouterWalletPlatforms();return l`${`Connection can continue loading if ${t} is not installed on your device`}Retry`}};Ve.styles=[v.globalCss,mn],wr([W()],Ve.prototype,"isError",2),Ve=wr([y("wcm-desktop-connecting-view")],Ve);const gn=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;var wn=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Tt=class extends w{onInstall(t){t&&g.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,homepage:i}=g.getWalletRouterData();return l`${`Download ${t} to continue. If multiple browser extensions are installed, disable non ${t} ones and try again`}Download`}};Tt.styles=[v.globalCss,gn],Tt=wn([y("wcm-install-wallet-view")],Tt);const vn=C`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var fn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,vr=(t,e,r,i)=>{for(var o=i>1?void 0:i?bn(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&fn(e,r,o),o};let Fe=class extends w{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(t,e=!1){const{mobile:r,name:i}=g.getWalletRouterData(),o=r==null?void 0:r.native,n=r==null?void 0:r.universal;if(o&&!e){const a=g.formatNativeUrl(o,t,i);g.openHref(a,"_self")}else if(n){const a=g.formatUniversalUrl(n,t,i);g.openHref(a,"_self")}}openMobileApp(t=!1){const{walletConnectUri:e}=H.state,r=g.getWalletRouterData();h.setRecentWallet(r),e&&this.onFormatAndRedirect(e,t)}onGoToAppStore(t){t&&g.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,app:i,mobile:o}=g.getWalletRouterData(),{isWeb:n}=h.getCachedRouterWalletPlatforms(),a=i==null?void 0:i.ios,s=o==null?void 0:o.universal;return l`Retry${s?l`Still doesn't work? Try this alternate link`:null}
${`Get ${t}`}
App Store
`}};Fe.styles=[v.globalCss,vn],vr([W()],Fe.prototype,"isError",2),Fe=vr([y("wcm-mobile-connecting-view")],Fe);const yn=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var xn=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Mt=class extends w{render(){const{name:t,id:e,image_id:r}=g.getWalletRouterData(),{isDesktop:i,isWeb:o}=h.getCachedRouterWalletPlatforms();return l`${`Scan this QR Code with your phone's camera or inside ${t} app`}`}};Mt.styles=[v.globalCss,yn],Mt=xn([y("wcm-mobile-qr-connecting-view")],Mt);var $n=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Rt=class extends w{render(){return l``}};Rt.styles=[v.globalCss],Rt=$n([y("wcm-qrcode-view")],Rt);const Cn=C`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var _n=Object.defineProperty,An=Object.getOwnPropertyDescriptor,Te=(t,e,r,i)=>{for(var o=i>1?void 0:i?An(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&_n(e,r,o),o};const St=40;let oe=class extends w{constructor(){super(...arguments),this.loading=!P.state.wallets.listings.length,this.firstFetch=!P.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=h.debounce(t=>{t.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=t,P.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),P.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var t;(t=this.intersectionObserver)==null||t.disconnect()}get placeholderEl(){return h.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([t])=>{t.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:t,search:e}=P.state,{listings:r,total:i}=this.search?e:t;return i<=St||r.length>=i}async fetchWallets(){var t;const{wallets:e,search:r}=P.state,{listings:i,total:o,page:n}=this.search?r:e;if(!this.endReached&&(this.firstFetch||o>St&&i.lengthh.getWalletIcon(d));await Promise.all([...c.map(async d=>h.preloadImage(d)),g.wait(300)]),this.endReached=this.isLastPage()}catch(a){console.error(a),Y.openToast(h.getErrorMessage(a),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(t){g.isAndroid()?h.handleMobileLinking(t):h.goToConnectingView(t)}onSearchChange(t){const{value:e}=t.target;this.searchDebounce(e)}render(){const{wallets:t,search:e}=P.state,{listings:r}=this.search?e:t,i=this.loading&&!r.length,o=this.search.length>=3;let n=X.manualWalletsTemplate(),a=X.recomendedWalletsTemplate(!0);o&&(n=n.filter(({values:d})=>h.caseSafeIncludes(d[0],this.search)),a=a.filter(({values:d})=>h.caseSafeIncludes(d[0],this.search)));const s=!this.loading&&!r.length&&!a.length,c={"wcm-loading":i,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":s};return l`
${i?null:n} ${i?null:a} ${i?null:r.map(d=>l`${d?l``:null}`)}
${s?l`No results found`:null} ${!s&&this.loading?l``:null}
`}};oe.styles=[v.globalCss,Cn],Te([W()],oe.prototype,"loading",2),Te([W()],oe.prototype,"firstFetch",2),Te([W()],oe.prototype,"search",2),Te([W()],oe.prototype,"endReached",2),oe=Te([y("wcm-wallet-explorer-view")],oe);const En=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var kn=Object.defineProperty,On=Object.getOwnPropertyDescriptor,fr=(t,e,r,i)=>{for(var o=i>1?void 0:i?On(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&kn(e,r,o),o};let qe=class extends w{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(t){const{desktop:e,name:r}=g.getWalletRouterData(),i=e==null?void 0:e.universal;if(i){const o=g.formatUniversalUrl(i,t,r);g.openHref(o,"_blank")}}openWebWallet(){const{walletConnectUri:t}=H.state,e=g.getWalletRouterData();h.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=g.getWalletRouterData(),{isMobile:i,isDesktop:o}=h.getCachedRouterWalletPlatforms(),n=g.isMobile();return l`${`${t} web app has opened in a new tab. Go there, accept the connection, and come back`}Retry`}};qe.styles=[v.globalCss,En],fr([W()],qe.prototype,"isError",2),qe=fr([y("wcm-web-connecting-view")],qe);export{Oe as WcmModal,F as WcmQrCode}; -//# sourceMappingURL=index-Bld-eKIP.js.map diff --git a/apps/web/public/assets/index-BltpiQGx.js b/apps/web/public/assets/index-BltpiQGx.js deleted file mode 100644 index ed7c2001..00000000 --- a/apps/web/public/assets/index-BltpiQGx.js +++ /dev/null @@ -1,3 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Bld-eKIP.js","./index-Cl-fQh5M.js","./index-C5o-2F8D.css"])))=>i.map(i=>d[i]); -import{_ as pe}from"./index-Cl-fQh5M.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="449f04fe-ccb1-4103-82a0-6d8bb89612c1",e._sentryDebugIdIdentifier="sentry-dbid-449f04fe-ccb1-4103-82a0-6d8bb89612c1")}catch{}})();const me=Symbol(),ee=Object.getPrototypeOf,G=new WeakMap,ge=e=>e&&(G.has(e)?G.get(e):ee(e)===Object.prototype||ee(e)===Array.prototype),he=e=>ge(e)&&e[me]||null,te=(e,t=!0)=>{G.set(e,t)};var z={VITE_WALLET_CONNECT_ID:"2719448e2ce94fdd269a3c8587123bcc",VITE_GRAPHQL_ENDPOINT:"https://apollo.helixbridge.app/graphql",VITE_NETWORK_TYPE:"mainnet",BASE_URL:"./",MODE:"mainnet",DEV:!1,PROD:!0,SSR:!1};const J=e=>typeof e=="object"&&e!==null,A=new WeakMap,x=new WeakSet,be=(e=Object.is,t=(n,h)=>new Proxy(n,h),s=n=>J(n)&&!x.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,h,v=r)=>{const y=l.get(n);if((y==null?void 0:y[0])===h)return y[1];const I=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return te(I,!0),l.set(n,[h,I]),Reflect.ownKeys(n).forEach(U=>{if(Object.getOwnPropertyDescriptor(I,U))return;const O=Reflect.get(n,U),D={value:O,enumerable:!0,configurable:!0};if(x.has(O))te(O,!1);else if(O instanceof Promise)delete D.value,D.get=()=>v(O);else if(A.has(O)){const[b,H]=A.get(O);D.value=c(b,H(),v)}Object.defineProperty(I,U,D)}),Object.preventExtensions(I)},m=new WeakMap,p=[1,1],W=n=>{if(!J(n))throw new Error("object required");const h=m.get(n);if(h)return h;let v=p[0];const y=new Set,I=(i,a=++p[0])=>{v!==a&&(v=a,y.forEach(o=>o(i,a)))};let U=p[1];const O=(i=++p[1])=>(U!==i&&!y.size&&(U=i,b.forEach(([a])=>{const o=a[1](i);o>v&&(v=o)})),v),D=i=>(a,o)=>{const g=[...a];g[1]=[i,...g[1]],I(g,o)},b=new Map,H=(i,a)=>{if((z?"mainnet":void 0)!=="production"&&b.has(i))throw new Error("prop listener already exists");if(y.size){const o=a[3](D(i));b.set(i,[a,o])}else b.set(i,[a])},Z=i=>{var a;const o=b.get(i);o&&(b.delete(i),(a=o[1])==null||a.call(o))},ue=i=>(y.add(i),y.size===1&&b.forEach(([o,g],S)=>{if((z?"mainnet":void 0)!=="production"&&g)throw new Error("remove already exists");const N=o[3](D(S));b.set(S,[o,N])}),()=>{y.delete(i),y.size===0&&b.forEach(([o,g],S)=>{g&&(g(),b.set(S,[o]))})}),q=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),V=t(q,{deleteProperty(i,a){const o=Reflect.get(i,a);Z(a);const g=Reflect.deleteProperty(i,a);return g&&I(["delete",[a],o]),g},set(i,a,o,g){const S=Reflect.has(i,a),N=Reflect.get(i,a,g);if(S&&(e(N,o)||m.has(o)&&e(N,m.get(o))))return!0;Z(a),J(o)&&(o=he(o)||o);let $=o;if(o instanceof Promise)o.then(C=>{o.status="fulfilled",o.value=C,I(["resolve",[a],C])}).catch(C=>{o.status="rejected",o.reason=C,I(["reject",[a],C])});else{!A.has(o)&&s(o)&&($=W(o));const C=!x.has($)&&A.get($);C&&H(a,C)}return Reflect.set(i,a,$,g),I(["set",[a],o,N]),!0}});m.set(n,V);const fe=[q,O,c,ue];return A.set(V,fe),Reflect.ownKeys(n).forEach(i=>{const a=Object.getOwnPropertyDescriptor(n,i);"value"in a&&(V[i]=n[i],delete a.value,delete a.writable),Object.defineProperty(q,i,a)}),V})=>[W,A,x,e,t,s,r,l,c,m,p],[ye]=be();function j(e={}){return ye(e)}function P(e,t,s){const r=A.get(e);(z?"mainnet":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let p=!1;const n=m(h=>{c.push(h),l||(l=Promise.resolve().then(()=>{l=void 0,p&&t(c.splice(0))}))});return p=!0,()=>{p=!1,n()}}function Ie(e,t){const s=A.get(e);(z?"mainnet":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=j({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),de={state:d,subscribe(e){return P(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},f={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return f.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return f.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(f.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!f.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(f.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(f.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(f.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(f.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=de.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),u=j({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ve={state:u,subscribe(e){return P(u.events,()=>e(Ie(u.events[u.events.length-1])))},initialize(){u.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(u.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){u.connectedWalletId=e},click(e){if(u.enabled){const t={type:"CLICK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},track(e){if(u.enabled){const t={type:"TRACK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},view(e){if(u.enabled){const t={type:"VIEW",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}}},E=j({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),w={state:E,subscribe(e){return P(E,()=>e(E))},setChains(e){E.chains=e},setWalletConnectUri(e){E.walletConnectUri=e},setIsCustomDesktop(e){E.isCustomDesktop=e},setIsCustomMobile(e){E.isCustomMobile=e},setIsDataLoaded(e){E.isDataLoaded=e},setIsUiLoaded(e){E.isUiLoaded=e},setIsAuth(e){E.isAuth=e}},B=j({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),T={state:B,subscribe(e){return P(B,()=>e(B))},setConfig(e){var t,s;ve.initialize(),w.setChains(e.chains),w.setIsAuth(!!e.enableAuthMode),w.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),w.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),f.setModalVersionInStorage(),Object.assign(B,e)}};var Ee=Object.defineProperty,se=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,ne=(e,t,s)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,We=(e,t)=>{for(var s in t||(t={}))Le.call(t,s)&&ne(e,s,t[s]);if(se)for(var s of se(t))Oe.call(t,s)&&ne(e,s,t[s]);return e};const Q="https://explorer-api.walletconnect.com",Y="wcm",X="js-2.6.2";async function K(e,t){const s=We({sdkType:Y,sdkVersion:X},t),r=new URL(e,Q);return r.searchParams.append("projectId",T.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const _={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${Q}/w3m/v1/getWalletImage/${e}?projectId=${T.state.projectId}&sdkType=${Y}&sdkVersion=${X}`},getAssetImageUrl(e){return`${Q}/w3m/v1/getAssetImage/${e}?projectId=${T.state.projectId}&sdkType=${Y}&sdkVersion=${X}`}};var Ce=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,De=(e,t)=>{for(var s in t||(t={}))Ae.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))je.call(t,s)&&re(e,s,t[s]);return e};const ae=f.isMobile(),L=j({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Re={state:L,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=T.state;if(e==="NONE"||t==="ALL"&&!e)return L.recomendedWallets;if(f.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await _.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const p=e.indexOf(c.id),W=e.indexOf(m.id);return p-W}),L.recomendedWallets=l}else{const{chains:s,isAuth:r}=w.state,l=s==null?void 0:s.join(","),c=f.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:f.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:p}=ae?await _.getMobileListings(m):await _.getDesktopListings(m);L.recomendedWallets=Object.values(p)}return L.recomendedWallets},async getWallets(e){const t=De({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=T.state,{recomendedWallets:l}=L;if(r==="ALL")return L.wallets;l.length?t.excludedIds=l.map(v=>v.id).join(","):f.isArray(s)&&(t.excludedIds=s.join(",")),f.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),w.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:p,total:W}=ae?await _.getMobileListings(t):await _.getDesktopListings(t),n=Object.values(p),h=m?"search":"wallets";return L[h]={listings:[...L[h].listings,...n],total:W,page:c??1},{listings:n,total:W}},getWalletImageUrl(e){return _.getWalletImageUrl(e)},getAssetImageUrl(e){return _.getAssetImageUrl(e)},resetSearch(){L.search={listings:[],total:0,page:1}}},k=j({open:!1}),F={state:k,subscribe(e){return P(k,()=>e(k))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=w.state;if(f.removeWalletConnectDeepLink(),w.setWalletConnectUri(e==null?void 0:e.uri),w.setChains(e==null?void 0:e.chains),de.reset("ConnectWallet"),s&&r)k.open=!0,t();else{const l=setInterval(()=>{const c=w.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),k.open=!0,t())},200)}})},close(){k.open=!1}};var _e=Object.defineProperty,ie=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,le=(e,t,s)=>t in e?_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ue=(e,t)=>{for(var s in t||(t={}))Me.call(t,s)&&le(e,s,t[s]);if(ie)for(var s of ie(t))Pe.call(t,s)&&le(e,s,t[s]);return e};function Se(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const R=j({themeMode:Se()?"dark":"light"}),ce={state:R,subscribe(e){return P(R,()=>e(R))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(R.themeMode=t),s&&(R.themeVariables=Ue({},s))}},M=j({open:!1,message:"",variant:"success"}),Ve={state:M,subscribe(e){return P(M,()=>e(M))},openToast(e,t){M.open=!0,M.message=e,M.variant=t},closeToast(){M.open=!1}};class ke{constructor(t){this.openModal=F.open,this.closeModal=F.close,this.subscribeModal=F.subscribe,this.setTheme=ce.setThemeConfig,ce.setThemeConfig(t),T.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await pe(()=>import("./index-Bld-eKIP.js"),__vite__mapDeps([0,1,2]),import.meta.url);const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),w.setIsUiLoaded(!0)}}}const $e=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:ke},Symbol.toStringTag,{value:"Module"}));export{ve as R,de as T,f as a,$e as i,ce as n,Ve as o,w as p,F as s,Re as t,T as y}; -//# sourceMappingURL=index-BltpiQGx.js.map diff --git a/apps/web/public/assets/index-C5o-2F8D.css b/apps/web/public/assets/index-C5o-2F8D.css deleted file mode 100644 index 6c6b3e59..00000000 --- a/apps/web/public/assets/index-C5o-2F8D.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1200px){.container{max-width:1200px}}.app-scrollbar::-webkit-scrollbar{width:6px}.app-scrollbar::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 5x #0003;background:#fff6}.app-header{height:64px}.app-footer{height:48px}.app-main{min-height:calc(100vh - 112px);margin-top:64px}.page-container{margin-left:auto;margin-right:auto;width:100%;max-width:90rem;padding:1.25rem .625rem}.user-dropdown-item{display:inline-flex;align-items:center;gap:.625rem;border-radius:.75rem;padding:.3125rem .625rem;text-align:start;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.user-dropdown-item:hover{background-color:#ffffff1a}@media (min-width: 1024px){.user-dropdown-item:active{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.button{display:flex;height:2rem;align-items:center;justify-content:center}@media (min-width: 1024px){.button{height:2.25rem}}.normal-input-wrap{border-width:1px;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.invalid-input-wrap{--tw-border-opacity: 1;border-color:rgb(255 77 79 / var(--tw-border-opacity))}.invalid-input-wrap:focus-within{--tw-border-opacity: 1;border-color:rgb(255 77 79 / var(--tw-border-opacity))}.invalid-input-wrap:hover{--tw-border-opacity: 1;border-color:rgb(255 77 79 / var(--tw-border-opacity))}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-bottom-1{bottom:-.25rem}.-bottom-5{bottom:-1.25rem}.-bottom-\[1\.2rem\]{bottom:-1.2rem}.-left-full{left:-100%}.-right-1{right:-.25rem}.-top-7{top:-1.75rem}.bottom-0{bottom:0}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-full{left:100%}.right-0{right:0}.right-1{right:.25rem}.right-medium{right:.625rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-medium{top:.625rem}.-z-50{z-index:-50}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-\[-1\]{z-index:-1}.z-\[1\]{z-index:1}.z-\[21\]{z-index:21}.z-\[2\]{z-index:2}.z-\[9\]{z-index:9}.m-4{margin:1rem}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.mx-medium{margin-left:.625rem;margin-right:.625rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-medium{margin-bottom:.625rem}.ml-2{margin-left:.5rem}.mr-medium{margin-right:.625rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.mt-medium{margin-top:.625rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.\!hidden{display:none!important}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[0\.875rem\]{height:.875rem}.h-\[1\.5rem\]{height:1.5rem}.h-\[1\.625rem\]{height:1.625rem}.h-\[1\.75rem\]{height:1.75rem}.h-\[1\.875rem\]{height:1.875rem}.h-\[16px\]{height:16px}.h-\[1px\]{height:1px}.h-\[2\.25rem\]{height:2.25rem}.h-\[20px\]{height:20px}.h-\[22px\]{height:22px}.h-\[2px\]{height:2px}.h-\[2rem\]{height:2rem}.h-\[36rem\]{height:36rem}.h-\[6px\]{height:6px}.h-\[70vw\]{height:70vw}.h-\[8px\]{height:8px}.h-full{height:100%}.h-screen{height:100vh}.max-h-52{max-height:13rem}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-\[17\.2rem\]{max-height:17.2rem}.max-h-\[18rem\]{max-height:18rem}.max-h-\[40vh\]{max-height:40vh}.min-h-7{min-height:1.75rem}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-full{min-height:100%}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-\[0\.875rem\]{width:.875rem}.w-\[1\.5rem\]{width:1.5rem}.w-\[1\.625rem\]{width:1.625rem}.w-\[1\.75rem\]{width:1.75rem}.w-\[1\.875rem\]{width:1.875rem}.w-\[16px\]{width:16px}.w-\[1px\]{width:1px}.w-\[2\.25rem\]{width:2.25rem}.w-\[20px\]{width:20px}.w-\[22px\]{width:22px}.w-\[2px\]{width:2px}.w-\[2rem\]{width:2rem}.w-\[39\.5rem\]{width:39.5rem}.w-\[4px\]{width:4px}.w-\[6px\]{width:6px}.w-\[70vw\]{width:70vw}.w-\[82vw\]{width:82vw}.w-\[8px\]{width:8px}.w-\[9\.25rem\]{width:9.25rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-screen{width:100vw}.min-w-36{min-width:9rem}.min-w-\[2rem\]{min-width:2rem}.min-w-\[56rem\]{min-width:56rem}.min-w-\[60rem\]{min-width:60rem}.min-w-\[62rem\]{min-width:62rem}.min-w-\[68rem\]{min-width:68rem}.min-w-\[72rem\]{min-width:72rem}.min-w-\[76rem\]{min-width:76rem}.min-w-\[86rem\]{min-width:86rem}.min-w-max{min-width:-moz-max-content;min-width:max-content}.max-w-\[15rem\]{max-width:15rem}.max-w-\[18rem\]{max-width:18rem}.max-w-\[20rem\]{max-width:20rem}.max-w-\[46\%\]{max-width:46%}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-2{--tw-translate-x: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-2{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[0\.7\]{--tw-scale-x: .7;--tw-scale-y: .7;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes count-loading-large{0%{height:32px}50%,to{height:16px}}.animate-count-loading-large{animation:count-loading-large 1.2s cubic-bezier(0,.5,.5,1) infinite}@keyframes count-loading-small{0%{height:16px}50%,to{height:8px}}.animate-count-loading-small{animation:count-loading-small 1.2s cubic-bezier(0,.5,.5,1) infinite}@keyframes right-enter{0%{opacity:0;transform:translate(100%)}1%{opacity:1}to{transform:translate(0)}}.animate-notification-enter{animation:right-enter .4s ease-out}@keyframes notification-fade-out{to{height:0}}.animate-notification-fadeout{animation:notification-fade-out .2s ease-out forwards}@keyframes right-leave{0%{transform:translate(0)}to{transform:translate(100%)}}.animate-notification-leave{animation:right-leave .4s ease-out forwards}@keyframes spinner-rotate-left{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.animate-progress-anim-left{animation:spinner-rotate-left 9s linear 4.5s 1 paused forwards}@keyframes spinner-rotate-right{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.animate-progress-anim-right{animation:spinner-rotate-right 9s linear 0ms 1 paused forwards}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-grab{cursor:grab}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-\[4px\]{gap:4px}.gap-large{gap:.9375rem}.gap-medium{gap:.625rem}.gap-small{gap:.3125rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-small{-moz-column-gap:.3125rem;column-gap:.3125rem}.gap-y-3{row-gap:.75rem}.gap-y-5{row-gap:1.25rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-medium>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\[0\.625rem\]{border-radius:.625rem}.rounded-\[1\.25rem\]{border-radius:1.25rem}.rounded-full{border-radius:9999px}.rounded-large{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-medium{border-radius:.5rem}.rounded-small{border-radius:.25rem}.rounded-xl{border-radius:.75rem}.rounded-b-medium{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-medium{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-t-medium{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-\[3px\]{border-width:3px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-app-red{--tw-border-opacity: 1;border-color:rgb(255 77 79 / var(--tw-border-opacity))}.border-component{--tw-border-opacity: 1;border-color:rgb(48 58 68 / var(--tw-border-opacity))}.border-primary{--tw-border-opacity: 1;border-color:rgb(0 133 255 / var(--tw-border-opacity))}.border-primary\/25{border-color:#0085ff40}.border-transparent{border-color:transparent}.border-white\/20{border-color:#fff3}.border-white\/30{border-color:#ffffff4d}.border-white\/5{border-color:#ffffff0d}.border-b-white\/10{border-bottom-color:#ffffff1a}.border-b-white\/25{border-bottom-color:#ffffff40}.border-b-white\/50{border-bottom-color:#ffffff80}.border-l-white\/50{border-left-color:#ffffff80}.border-r-white{--tw-border-opacity: 1;border-right-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-t-white{--tw-border-opacity: 1;border-top-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-t-white\/10{border-top-color:#ffffff1a}.bg-\[\#00141D\]{--tw-bg-opacity: 1;background-color:rgb(0 20 29 / var(--tw-bg-opacity))}.bg-\[\#1F282C\]{--tw-bg-opacity: 1;background-color:rgb(31 40 44 / var(--tw-bg-opacity))}.bg-\[\#343946\]{--tw-bg-opacity: 1;background-color:rgb(52 57 70 / var(--tw-bg-opacity))}.bg-app-bg{--tw-bg-opacity: 1;background-color:rgb(0 20 29 / var(--tw-bg-opacity))}.bg-app-bg\/80{background-color:#00141dcc}.bg-app-green{--tw-bg-opacity: 1;background-color:rgb(82 196 26 / var(--tw-bg-opacity))}.bg-app-orange{--tw-bg-opacity: 1;background-color:rgb(250 173 20 / var(--tw-bg-opacity))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(0 20 29 / var(--tw-bg-opacity))}.bg-background\/80{background-color:#00141dcc}.bg-black\/10{background-color:#0000001a}.bg-black\/30{background-color:#0000004d}.bg-black\/5{background-color:#0000000d}.bg-component{--tw-bg-opacity: 1;background-color:rgb(48 58 68 / var(--tw-bg-opacity))}.bg-inner{--tw-bg-opacity: 1;background-color:rgb(36 45 48 / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity: 1;background-color:rgb(31 40 44 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/10{background-color:#ffffff1a}.bg-white\/20{background-color:#fff3}.bg-white\/30{background-color:#ffffff4d}.bg-white\/5{background-color:#ffffff0d}.bg-white\/50{background-color:#ffffff80}.fill-white\/30{fill:#ffffff4d}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-5{padding:1.25rem}.p-\[2px\]{padding:2px}.p-\[3px\]{padding:3px}.p-\[4px\]{padding:4px}.p-medium{padding:.625rem}.p-small{padding:.3125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-14{padding-left:3.5rem;padding-right:3.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.px-\[2px\]{padding-left:2px;padding-right:2px}.px-large{padding-left:.9375rem;padding-right:.9375rem}.px-medium{padding-left:.625rem;padding-right:.625rem}.px-small{padding-left:.3125rem;padding-right:.3125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-\[0\.125rem\]{padding-top:.125rem;padding-bottom:.125rem}.py-\[1px\]{padding-top:1px;padding-bottom:1px}.py-\[2px\]{padding-top:2px;padding-bottom:2px}.py-\[3px\]{padding-top:3px;padding-bottom:3px}.py-large{padding-top:.9375rem;padding-bottom:.9375rem}.py-medium{padding-top:.625rem;padding-bottom:.625rem}.py-small{padding-top:.3125rem;padding-bottom:.3125rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-5{padding-left:1.25rem}.pl-\[20\%\]{padding-left:20%}.pl-small{padding-left:.3125rem}.pr-2{padding-right:.5rem}.pr-medium{padding-right:.625rem}.pt-10{padding-top:2.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.text-end{text-align:end}.text-\[1\.25rem\]{font-size:1.25rem}.text-\[1\.5rem\]{font-size:1.5rem}.text-\[1\.875rem\]{font-size:1.875rem}.text-\[2\.25rem\]{font-size:2.25rem}.text-\[3rem\]{font-size:3rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-app-green{--tw-text-opacity: 1;color:rgb(82 196 26 / var(--tw-text-opacity))}.text-app-orange{--tw-text-opacity: 1;color:rgb(250 173 20 / var(--tw-text-opacity))}.text-app-red{--tw-text-opacity: 1;color:rgb(255 77 79 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity))}.text-primary{--tw-text-opacity: 1;color:rgb(0 133 255 / var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-white\/50{color:#ffffff80}.text-white\/60{color:#fff9}.text-white\/90{color:#ffffffe6}.underline{text-decoration-line:underline}.decoration-2{text-decoration-thickness:2px}.underline-offset-4{text-underline-offset:4px}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-1{outline-width:1px}.outline-orange-500{outline-color:#f97316}.blur-\[8rem\]{--tw-blur: blur(8rem);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-\[2px\]{--tw-backdrop-blur: blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[font-size\,font-weight\,line-height\]{transition-property:font-size,font-weight,line-height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[opacity\,color\]{transition-property:opacity,color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[outline\]{transition-property:outline;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[transform\,color\]{transition-property:transform,color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[transform\,opacity\]{transition-property:transform,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.loading-bar{background:linear-gradient(90deg,#fff 35%,#0085ff,#fff 65%);background-position:100% 50%;background-size:40% 100%;animation:bar-loading 2.4s linear infinite}@keyframes bar-loading{0%{background-position:0% 50%}to{background-position:100% 50%}}.refresh-countdown{animation:countdown-dash 9.3s linear infinite;animation-delay:.7s}@keyframes countdown-dash{0%{stroke-dashoffset:0}to{stroke-dashoffset:-30}}.ellipsis,.ellipsis:before,.ellipsis:after{animation:ellipsis-frames 1.4s linear infinite;line-height:.875rem;font-size:1rem;font-weight:700}.ellipsis{position:relative}.ellipsis:before,.ellipsis:after{top:0;content:".";position:absolute}.ellipsis:before{left:-8px;animation-delay:-.16s}.ellipsis:after{left:8px;animation-delay:.16s}@keyframes ellipsis-frames{0%{color:#fff}to{color:transparent}}.tx-in-progress{width:32px;height:90px;display:block;margin:20px auto;position:relative;border-radius:50% 50% 0 0;border-bottom:10px solid #0085ff;background-color:#fff;background-image:radial-gradient(ellipse at center,#fff 34%,#0085ff 35%,#0085ff 54%,#fff 55%),linear-gradient(#0085ff 10px,transparent 0);background-size:28px 28px;background-position:center 20px,center 2px;background-repeat:no-repeat;box-sizing:border-box;animation:animloader-back 4s linear infinite alternate}.tx-in-progress:before{content:"";box-sizing:border-box;position:absolute;left:50%;transform:translate(-50%);width:64px;height:44px;border-radius:50%;box-shadow:0 15px #0085ff inset;top:67px}.tx-in-progress:after{content:"";position:absolute;left:50%;transform:translate(-50%) rotate(45deg);width:34px;height:34px;top:112%;background:radial-gradient(ellipse at center,#ffffff80 8%,#0085ff99 24%,#0000);border-radius:50% 50% 0;background-repeat:no-repeat;background-position:-44px -44px;background-size:100px 100px;box-shadow:4px 4px 12px #0085ff80;box-sizing:border-box;animation:animloader 4s linear infinite alternate}@keyframes animloader-back{0%,7.5%,17.5%{transform:translateY(0)}5%,10%,25%{transform:translateY(-5px)}}@keyframes animloader{0%{box-shadow:4px 4px 12px 2px #ffffffbf;width:34px;height:34px;background-position:-44px -44px;background-size:100px 100px}25%{box-shadow:2px 2px 8px #ffffff80;width:30px;height:28px;background-position:-36px -36px;background-size:80px 80px}}.drawer-fade-enter{opacity:0}.drawer-fade-enter>div{transform:translate(100%)}.drawer-fade-enter-active{opacity:1;transition:opacity .3s}.drawer-fade-enter-active>div{transform:translate(0);transition:transform .3s}.drawer-fade-exit{opacity:1}.drawer-fade-exit>div{transform:translate(0)}.drawer-fade-exit-active{opacity:0;transition:opacity .3s}.drawer-fade-exit-active>div{transform:translate(100%);transition:transform .3s}.tabs-fade-enter{opacity:0}.tabs-fade-enter-active{opacity:1;transition:opacity .15s}.tabs-fade-exit{opacity:1}.tabs-fade-exit-active{opacity:0;transition:opacity .15s}.history-table-fade-enter{opacity:0;transform:translate(-10px)}.history-table-fade-enter-active{opacity:1;transform:translate(0);transition:opacity .1s,transform .1s}.history-table-fade-exit{opacity:1;transform:translate(0)}.history-table-fade-exit-active{opacity:0;transform:translate(-10px);transition:opacity .1s,transform .1s}.history-detail-fade-enter{opacity:0;transform:translate(10px)}.history-detail-fade-enter-active{opacity:1;transform:translate(0);transition:opacity .1s,transform .1s}.history-detail-fade-exit{opacity:1;transform:translate(0)}.history-detail-fade-exit-active{opacity:0;transform:translate(10px);transition:opacity .1s,transform .1s}.component-loading-appear,.component-loading-enter{background-color:transparent}.component-loading-appear-active,.component-loading-enter-active{background-color:#00000059;transition:background-color .3s}.component-loading-appear-done,.component-loading-enter-done,.component-loading-exit{background-color:#00000059}.component-loading-exit-active{background-color:transparent;transition:background-color .3s}.modal-fade-appear,.modal-fade-enter{opacity:0}.modal-fade-appear>div,.modal-fade-enter>div{transform:scale(.5)}.modal-fade-appear-active,.modal-fade-enter-active{opacity:1;transition:opacity .3s}.modal-fade-appear-active>div,.modal-fade-enter-active>div{transform:scale(1);transition:transform .3s}.modal-fade-exit{opacity:1}.modal-fade-exit>div{transform:scale(1)}.modal-fade-exit-active{opacity:0;transition:opacity .3s}.modal-fade-exit-active>div{transform:scale(.5);transition:transform .3s}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-bottom-\[2px\]:after{content:var(--tw-content);bottom:-2px}.after\:left-1\/4:after{content:var(--tw-content);left:25%}.after\:block:after{content:var(--tw-content);display:block}.after\:h-\[3px\]:after{content:var(--tw-content);height:3px}.after\:w-1\/2:after{content:var(--tw-content);width:50%}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-primary:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.first\:rounded-l-full:first-child{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.first\:rounded-l-xl:first-child{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.first\:border-l:first-child{border-left-width:1px}.last\:rounded-b-xl:last-child{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.last\:rounded-r-full:last-child{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.last\:rounded-r-xl:last-child{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.focus-within\:border-primary:focus-within{--tw-border-opacity: 1;border-color:rgb(0 133 255 / var(--tw-border-opacity))}.focus-within\:bg-white\/10:focus-within{background-color:#ffffff1a}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.hover\:-translate-y-\[2px\]:hover{--tw-translate-y: -2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:cursor-default:hover{cursor:default}.hover\:cursor-not-allowed:hover{cursor:not-allowed}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-primary:hover{--tw-border-opacity: 1;border-color:rgb(0 133 255 / var(--tw-border-opacity))}.hover\:bg-background\/50:hover{background-color:#00141d80}.hover\:bg-primary:hover{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.hover\:bg-primary\/50:hover{background-color:#0085ff80}.hover\:bg-primary\/90:hover{background-color:#0085ffe6}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:bg-white\/20:hover{background-color:#fff3}.hover\:bg-white\/5:hover{background-color:#ffffff0d}.hover\:bg-white\/\[0\.15\]:hover{background-color:#ffffff26}.hover\:text-primary:hover{--tw-text-opacity: 1;color:rgb(0 133 255 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-80:hover{opacity:.8}.hover\:shadow-\[0_0_8px_1px_rgba\(255\,255\,255\,\.8\)\]:hover{--tw-shadow: 0 0 8px 1px rgba(255,255,255,.8);--tw-shadow-colored: 0 0 8px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\:translate-y-0:active{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:translate-y-1:active{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-105:active{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:translate-y-0:disabled{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:scale-100:disabled{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:cursor-default:disabled{cursor:default}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-transparent:disabled{border-color:transparent}.disabled\:bg-white\/10:disabled{background-color:#ffffff1a}.disabled\:opacity-100:disabled{opacity:1}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.group:focus-within .group-focus-within\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:focus-within .group-focus-within\:opacity-100{opacity:1}.group:hover .group-hover\:-translate-x-2{--tw-translate-x: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:translate-x-2{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:hover .group-hover\:opacity-100{opacity:1}.group:active .group-active\:-translate-x-2{--tw-translate-x: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 1024px){.lg\:right-2{right:.5rem}.lg\:right-5{right:1.25rem}.lg\:top-2{top:.5rem}.lg\:top-5{top:1.25rem}.lg\:block{display:block}.lg\:inline{display:inline}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-11{height:2.75rem}.lg\:h-\[4px\]{height:4px}.lg\:h-\[65vh\]{height:65vh}.lg\:max-h-\[72vh\]{max-height:72vh}.lg\:w-44{width:11rem}.lg\:w-8{width:2rem}.lg\:w-96{width:24rem}.lg\:w-\[21\.5rem\]{width:21.5rem}.lg\:w-\[24rem\]{width:24rem}.lg\:w-\[26\.5rem\]{width:26.5rem}.lg\:w-\[26rem\]{width:26rem}.lg\:w-\[27\.5rem\]{width:27.5rem}.lg\:w-\[30rem\]{width:30rem}.lg\:w-\[32rem\]{width:32rem}.lg\:w-\[40rem\]{width:40rem}.lg\:w-\[42rem\]{width:42rem}.lg\:w-\[65vh\]{width:65vh}.lg\:max-w-xs{max-width:20rem}.lg\:flex-row{flex-direction:row}.lg\:items-center{align-items:center}.lg\:justify-between{justify-content:space-between}.lg\:gap-2{gap:.5rem}.lg\:gap-3{gap:.75rem}.lg\:gap-5{gap:1.25rem}.lg\:gap-medium{gap:.625rem}.lg\:rounded-2xl{border-radius:1rem}.lg\:rounded-\[2rem\]{border-radius:2rem}.lg\:border-none{border-style:none}.lg\:border-b-transparent{border-bottom-color:transparent}.lg\:bg-primary\/40{background-color:#0085ff66}.lg\:bg-secondary{--tw-bg-opacity: 1;background-color:rgb(31 40 44 / var(--tw-bg-opacity))}.lg\:bg-transparent{background-color:transparent}.lg\:p-5{padding:1.25rem}.lg\:p-8{padding:2rem}.lg\:p-large{padding:.9375rem}.lg\:px-3{padding-left:.75rem;padding-right:.75rem}.lg\:px-5{padding-left:1.25rem;padding-right:1.25rem}.lg\:px-large{padding-left:.9375rem;padding-right:.9375rem}.lg\:px-medium{padding-left:.625rem;padding-right:.625rem}.lg\:py-medium{padding-top:.625rem;padding-bottom:.625rem}.lg\:py-small{padding-top:.3125rem;padding-bottom:.3125rem}.lg\:\!pb-10{padding-bottom:2.5rem!important}.lg\:pl-0{padding-left:0}.lg\:font-extrabold{font-weight:800}.lg\:opacity-50{opacity:.5}.lg\:backdrop-blur-none{--tw-backdrop-blur: ;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.lg\:active\:translate-y-1:active{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}[data-rk] .iekbcc0{border:0;box-sizing:border-box;font-size:100%;line-height:normal;margin:0;padding:0;text-align:left;vertical-align:baseline;-webkit-tap-highlight-color:transparent}[data-rk] .iekbcc1{list-style:none}[data-rk] .iekbcc2{quotes:none}[data-rk] .iekbcc2:before,[data-rk] .iekbcc2:after{content:""}[data-rk] .iekbcc3{border-collapse:collapse;border-spacing:0}[data-rk] .iekbcc4{-webkit-appearance:none;-moz-appearance:none;appearance:none}[data-rk] .iekbcc5{outline:none}[data-rk] .iekbcc5::-moz-placeholder{opacity:1}[data-rk] .iekbcc5::placeholder{opacity:1}[data-rk] .iekbcc6{background-color:transparent;color:inherit}[data-rk] .iekbcc7:disabled{opacity:1}[data-rk] .iekbcc7::-ms-expand{display:none}[data-rk] .iekbcc8::-ms-clear{display:none}[data-rk] .iekbcc8::-webkit-search-cancel-button{-webkit-appearance:none}[data-rk] .iekbcc9{background:none;cursor:pointer;text-align:left}[data-rk] .iekbcca{color:inherit;text-decoration:none}[data-rk] .ju367v0{align-items:flex-start}[data-rk] .ju367v2{align-items:flex-end}[data-rk] .ju367v4{align-items:center}[data-rk] .ju367v6{display:none}[data-rk] .ju367v8{display:block}[data-rk] .ju367va{display:flex}[data-rk] .ju367vc{display:inline}[data-rk] .ju367ve{align-self:flex-start}[data-rk] .ju367vf{align-self:flex-end}[data-rk] .ju367vg{align-self:center}[data-rk] .ju367vh{background-size:cover}[data-rk] .ju367vi{border-radius:1px}[data-rk] .ju367vj{border-radius:6px}[data-rk] .ju367vk{border-radius:10px}[data-rk] .ju367vl{border-radius:13px}[data-rk] .ju367vm{border-radius:var(--rk-radii-actionButton)}[data-rk] .ju367vn{border-radius:var(--rk-radii-connectButton)}[data-rk] .ju367vo{border-radius:var(--rk-radii-menuButton)}[data-rk] .ju367vp{border-radius:var(--rk-radii-modal)}[data-rk] .ju367vq{border-radius:var(--rk-radii-modalMobile)}[data-rk] .ju367vr{border-radius:25%}[data-rk] .ju367vs{border-radius:9999px}[data-rk] .ju367vt{border-style:solid}[data-rk] .ju367vu{border-width:0px}[data-rk] .ju367vv{border-width:1px}[data-rk] .ju367vw{border-width:2px}[data-rk] .ju367vx{border-width:4px}[data-rk] .ju367vy{cursor:pointer}[data-rk] .ju367vz{cursor:none}[data-rk] .ju367v10{pointer-events:none}[data-rk] .ju367v11{pointer-events:all}[data-rk] .ju367v12{min-height:8px}[data-rk] .ju367v13{min-height:44px}[data-rk] .ju367v14{flex-direction:row}[data-rk] .ju367v15{flex-direction:column}[data-rk] .ju367v16{font-family:var(--rk-fonts-body)}[data-rk] .ju367v17{font-size:12px;line-height:18px}[data-rk] .ju367v18{font-size:13px;line-height:18px}[data-rk] .ju367v19{font-size:14px;line-height:18px}[data-rk] .ju367v1a{font-size:16px;line-height:20px}[data-rk] .ju367v1b{font-size:18px;line-height:24px}[data-rk] .ju367v1c{font-size:20px;line-height:24px}[data-rk] .ju367v1d{font-size:23px;line-height:29px}[data-rk] .ju367v1e{font-weight:400}[data-rk] .ju367v1f{font-weight:500}[data-rk] .ju367v1g{font-weight:600}[data-rk] .ju367v1h{font-weight:700}[data-rk] .ju367v1i{font-weight:800}[data-rk] .ju367v1j{gap:0}[data-rk] .ju367v1k{gap:1px}[data-rk] .ju367v1l{gap:2px}[data-rk] .ju367v1m{gap:3px}[data-rk] .ju367v1n{gap:4px}[data-rk] .ju367v1o{gap:5px}[data-rk] .ju367v1p{gap:6px}[data-rk] .ju367v1q{gap:8px}[data-rk] .ju367v1r{gap:10px}[data-rk] .ju367v1s{gap:12px}[data-rk] .ju367v1t{gap:14px}[data-rk] .ju367v1u{gap:16px}[data-rk] .ju367v1v{gap:18px}[data-rk] .ju367v1w{gap:20px}[data-rk] .ju367v1x{gap:24px}[data-rk] .ju367v1y{gap:28px}[data-rk] .ju367v1z{gap:32px}[data-rk] .ju367v20{gap:36px}[data-rk] .ju367v21{gap:44px}[data-rk] .ju367v22{gap:64px}[data-rk] .ju367v23{gap:-1px}[data-rk] .ju367v24{height:1px}[data-rk] .ju367v25{height:2px}[data-rk] .ju367v26{height:4px}[data-rk] .ju367v27{height:8px}[data-rk] .ju367v28{height:12px}[data-rk] .ju367v29{height:20px}[data-rk] .ju367v2a{height:24px}[data-rk] .ju367v2b{height:28px}[data-rk] .ju367v2c{height:30px}[data-rk] .ju367v2d{height:32px}[data-rk] .ju367v2e{height:34px}[data-rk] .ju367v2f{height:36px}[data-rk] .ju367v2g{height:40px}[data-rk] .ju367v2h{height:44px}[data-rk] .ju367v2i{height:48px}[data-rk] .ju367v2j{height:54px}[data-rk] .ju367v2k{height:60px}[data-rk] .ju367v2l{height:200px}[data-rk] .ju367v2m{height:100%}[data-rk] .ju367v2n{height:-moz-max-content;height:max-content}[data-rk] .ju367v2o{justify-content:flex-start}[data-rk] .ju367v2p{justify-content:flex-end}[data-rk] .ju367v2q{justify-content:center}[data-rk] .ju367v2r{justify-content:space-between}[data-rk] .ju367v2s{justify-content:space-around}[data-rk] .ju367v2t{text-align:left}[data-rk] .ju367v2u{text-align:center}[data-rk] .ju367v2v{text-align:inherit}[data-rk] .ju367v2w{margin-bottom:0}[data-rk] .ju367v2x{margin-bottom:1px}[data-rk] .ju367v2y{margin-bottom:2px}[data-rk] .ju367v2z{margin-bottom:3px}[data-rk] .ju367v30{margin-bottom:4px}[data-rk] .ju367v31{margin-bottom:5px}[data-rk] .ju367v32{margin-bottom:6px}[data-rk] .ju367v33{margin-bottom:8px}[data-rk] .ju367v34{margin-bottom:10px}[data-rk] .ju367v35{margin-bottom:12px}[data-rk] .ju367v36{margin-bottom:14px}[data-rk] .ju367v37{margin-bottom:16px}[data-rk] .ju367v38{margin-bottom:18px}[data-rk] .ju367v39{margin-bottom:20px}[data-rk] .ju367v3a{margin-bottom:24px}[data-rk] .ju367v3b{margin-bottom:28px}[data-rk] .ju367v3c{margin-bottom:32px}[data-rk] .ju367v3d{margin-bottom:36px}[data-rk] .ju367v3e{margin-bottom:44px}[data-rk] .ju367v3f{margin-bottom:64px}[data-rk] .ju367v3g{margin-bottom:-1px}[data-rk] .ju367v3h{margin-left:0}[data-rk] .ju367v3i{margin-left:1px}[data-rk] .ju367v3j{margin-left:2px}[data-rk] .ju367v3k{margin-left:3px}[data-rk] .ju367v3l{margin-left:4px}[data-rk] .ju367v3m{margin-left:5px}[data-rk] .ju367v3n{margin-left:6px}[data-rk] .ju367v3o{margin-left:8px}[data-rk] .ju367v3p{margin-left:10px}[data-rk] .ju367v3q{margin-left:12px}[data-rk] .ju367v3r{margin-left:14px}[data-rk] .ju367v3s{margin-left:16px}[data-rk] .ju367v3t{margin-left:18px}[data-rk] .ju367v3u{margin-left:20px}[data-rk] .ju367v3v{margin-left:24px}[data-rk] .ju367v3w{margin-left:28px}[data-rk] .ju367v3x{margin-left:32px}[data-rk] .ju367v3y{margin-left:36px}[data-rk] .ju367v3z{margin-left:44px}[data-rk] .ju367v40{margin-left:64px}[data-rk] .ju367v41{margin-left:-1px}[data-rk] .ju367v42{margin-right:0}[data-rk] .ju367v43{margin-right:1px}[data-rk] .ju367v44{margin-right:2px}[data-rk] .ju367v45{margin-right:3px}[data-rk] .ju367v46{margin-right:4px}[data-rk] .ju367v47{margin-right:5px}[data-rk] .ju367v48{margin-right:6px}[data-rk] .ju367v49{margin-right:8px}[data-rk] .ju367v4a{margin-right:10px}[data-rk] .ju367v4b{margin-right:12px}[data-rk] .ju367v4c{margin-right:14px}[data-rk] .ju367v4d{margin-right:16px}[data-rk] .ju367v4e{margin-right:18px}[data-rk] .ju367v4f{margin-right:20px}[data-rk] .ju367v4g{margin-right:24px}[data-rk] .ju367v4h{margin-right:28px}[data-rk] .ju367v4i{margin-right:32px}[data-rk] .ju367v4j{margin-right:36px}[data-rk] .ju367v4k{margin-right:44px}[data-rk] .ju367v4l{margin-right:64px}[data-rk] .ju367v4m{margin-right:-1px}[data-rk] .ju367v4n{margin-top:0}[data-rk] .ju367v4o{margin-top:1px}[data-rk] .ju367v4p{margin-top:2px}[data-rk] .ju367v4q{margin-top:3px}[data-rk] .ju367v4r{margin-top:4px}[data-rk] .ju367v4s{margin-top:5px}[data-rk] .ju367v4t{margin-top:6px}[data-rk] .ju367v4u{margin-top:8px}[data-rk] .ju367v4v{margin-top:10px}[data-rk] .ju367v4w{margin-top:12px}[data-rk] .ju367v4x{margin-top:14px}[data-rk] .ju367v4y{margin-top:16px}[data-rk] .ju367v4z{margin-top:18px}[data-rk] .ju367v50{margin-top:20px}[data-rk] .ju367v51{margin-top:24px}[data-rk] .ju367v52{margin-top:28px}[data-rk] .ju367v53{margin-top:32px}[data-rk] .ju367v54{margin-top:36px}[data-rk] .ju367v55{margin-top:44px}[data-rk] .ju367v56{margin-top:64px}[data-rk] .ju367v57{margin-top:-1px}[data-rk] .ju367v58{max-width:1px}[data-rk] .ju367v59{max-width:2px}[data-rk] .ju367v5a{max-width:4px}[data-rk] .ju367v5b{max-width:8px}[data-rk] .ju367v5c{max-width:12px}[data-rk] .ju367v5d{max-width:20px}[data-rk] .ju367v5e{max-width:24px}[data-rk] .ju367v5f{max-width:28px}[data-rk] .ju367v5g{max-width:30px}[data-rk] .ju367v5h{max-width:32px}[data-rk] .ju367v5i{max-width:34px}[data-rk] .ju367v5j{max-width:36px}[data-rk] .ju367v5k{max-width:40px}[data-rk] .ju367v5l{max-width:44px}[data-rk] .ju367v5m{max-width:48px}[data-rk] .ju367v5n{max-width:54px}[data-rk] .ju367v5o{max-width:60px}[data-rk] .ju367v5p{max-width:200px}[data-rk] .ju367v5q{max-width:100%}[data-rk] .ju367v5r{max-width:-moz-max-content;max-width:max-content}[data-rk] .ju367v5s{min-width:1px}[data-rk] .ju367v5t{min-width:2px}[data-rk] .ju367v5u{min-width:4px}[data-rk] .ju367v5v{min-width:8px}[data-rk] .ju367v5w{min-width:12px}[data-rk] .ju367v5x{min-width:20px}[data-rk] .ju367v5y{min-width:24px}[data-rk] .ju367v5z{min-width:28px}[data-rk] .ju367v60{min-width:30px}[data-rk] .ju367v61{min-width:32px}[data-rk] .ju367v62{min-width:34px}[data-rk] .ju367v63{min-width:36px}[data-rk] .ju367v64{min-width:40px}[data-rk] .ju367v65{min-width:44px}[data-rk] .ju367v66{min-width:48px}[data-rk] .ju367v67{min-width:54px}[data-rk] .ju367v68{min-width:60px}[data-rk] .ju367v69{min-width:200px}[data-rk] .ju367v6a{min-width:100%}[data-rk] .ju367v6b{min-width:-moz-max-content;min-width:max-content}[data-rk] .ju367v6c{overflow:hidden}[data-rk] .ju367v6d{padding-bottom:0}[data-rk] .ju367v6e{padding-bottom:1px}[data-rk] .ju367v6f{padding-bottom:2px}[data-rk] .ju367v6g{padding-bottom:3px}[data-rk] .ju367v6h{padding-bottom:4px}[data-rk] .ju367v6i{padding-bottom:5px}[data-rk] .ju367v6j{padding-bottom:6px}[data-rk] .ju367v6k{padding-bottom:8px}[data-rk] .ju367v6l{padding-bottom:10px}[data-rk] .ju367v6m{padding-bottom:12px}[data-rk] .ju367v6n{padding-bottom:14px}[data-rk] .ju367v6o{padding-bottom:16px}[data-rk] .ju367v6p{padding-bottom:18px}[data-rk] .ju367v6q{padding-bottom:20px}[data-rk] .ju367v6r{padding-bottom:24px}[data-rk] .ju367v6s{padding-bottom:28px}[data-rk] .ju367v6t{padding-bottom:32px}[data-rk] .ju367v6u{padding-bottom:36px}[data-rk] .ju367v6v{padding-bottom:44px}[data-rk] .ju367v6w{padding-bottom:64px}[data-rk] .ju367v6x{padding-bottom:-1px}[data-rk] .ju367v6y{padding-left:0}[data-rk] .ju367v6z{padding-left:1px}[data-rk] .ju367v70{padding-left:2px}[data-rk] .ju367v71{padding-left:3px}[data-rk] .ju367v72{padding-left:4px}[data-rk] .ju367v73{padding-left:5px}[data-rk] .ju367v74{padding-left:6px}[data-rk] .ju367v75{padding-left:8px}[data-rk] .ju367v76{padding-left:10px}[data-rk] .ju367v77{padding-left:12px}[data-rk] .ju367v78{padding-left:14px}[data-rk] .ju367v79{padding-left:16px}[data-rk] .ju367v7a{padding-left:18px}[data-rk] .ju367v7b{padding-left:20px}[data-rk] .ju367v7c{padding-left:24px}[data-rk] .ju367v7d{padding-left:28px}[data-rk] .ju367v7e{padding-left:32px}[data-rk] .ju367v7f{padding-left:36px}[data-rk] .ju367v7g{padding-left:44px}[data-rk] .ju367v7h{padding-left:64px}[data-rk] .ju367v7i{padding-left:-1px}[data-rk] .ju367v7j{padding-right:0}[data-rk] .ju367v7k{padding-right:1px}[data-rk] .ju367v7l{padding-right:2px}[data-rk] .ju367v7m{padding-right:3px}[data-rk] .ju367v7n{padding-right:4px}[data-rk] .ju367v7o{padding-right:5px}[data-rk] .ju367v7p{padding-right:6px}[data-rk] .ju367v7q{padding-right:8px}[data-rk] .ju367v7r{padding-right:10px}[data-rk] .ju367v7s{padding-right:12px}[data-rk] .ju367v7t{padding-right:14px}[data-rk] .ju367v7u{padding-right:16px}[data-rk] .ju367v7v{padding-right:18px}[data-rk] .ju367v7w{padding-right:20px}[data-rk] .ju367v7x{padding-right:24px}[data-rk] .ju367v7y{padding-right:28px}[data-rk] .ju367v7z{padding-right:32px}[data-rk] .ju367v80{padding-right:36px}[data-rk] .ju367v81{padding-right:44px}[data-rk] .ju367v82{padding-right:64px}[data-rk] .ju367v83{padding-right:-1px}[data-rk] .ju367v84{padding-top:0}[data-rk] .ju367v85{padding-top:1px}[data-rk] .ju367v86{padding-top:2px}[data-rk] .ju367v87{padding-top:3px}[data-rk] .ju367v88{padding-top:4px}[data-rk] .ju367v89{padding-top:5px}[data-rk] .ju367v8a{padding-top:6px}[data-rk] .ju367v8b{padding-top:8px}[data-rk] .ju367v8c{padding-top:10px}[data-rk] .ju367v8d{padding-top:12px}[data-rk] .ju367v8e{padding-top:14px}[data-rk] .ju367v8f{padding-top:16px}[data-rk] .ju367v8g{padding-top:18px}[data-rk] .ju367v8h{padding-top:20px}[data-rk] .ju367v8i{padding-top:24px}[data-rk] .ju367v8j{padding-top:28px}[data-rk] .ju367v8k{padding-top:32px}[data-rk] .ju367v8l{padding-top:36px}[data-rk] .ju367v8m{padding-top:44px}[data-rk] .ju367v8n{padding-top:64px}[data-rk] .ju367v8o{padding-top:-1px}[data-rk] .ju367v8p{position:absolute}[data-rk] .ju367v8q{position:fixed}[data-rk] .ju367v8r{position:relative}[data-rk] .ju367v8s{-webkit-user-select:none}[data-rk] .ju367v8t{right:0}[data-rk] .ju367v8u{transition:.125s ease}[data-rk] .ju367v8v{transition:transform .125s ease}[data-rk] .ju367v8w{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-rk] .ju367v8x{width:1px}[data-rk] .ju367v8y{width:2px}[data-rk] .ju367v8z{width:4px}[data-rk] .ju367v90{width:8px}[data-rk] .ju367v91{width:12px}[data-rk] .ju367v92{width:20px}[data-rk] .ju367v93{width:24px}[data-rk] .ju367v94{width:28px}[data-rk] .ju367v95{width:30px}[data-rk] .ju367v96{width:32px}[data-rk] .ju367v97{width:34px}[data-rk] .ju367v98{width:36px}[data-rk] .ju367v99{width:40px}[data-rk] .ju367v9a{width:44px}[data-rk] .ju367v9b{width:48px}[data-rk] .ju367v9c{width:54px}[data-rk] .ju367v9d{width:60px}[data-rk] .ju367v9e{width:200px}[data-rk] .ju367v9f{width:100%}[data-rk] .ju367v9g{width:-moz-max-content;width:max-content}[data-rk] .ju367v9h{-webkit-backdrop-filter:var(--rk-blurs-modalOverlay);backdrop-filter:var(--rk-blurs-modalOverlay)}[data-rk] .ju367v9i,[data-rk] .ju367v9j:hover,[data-rk] .ju367v9k:active{background:var(--rk-colors-accentColor)}[data-rk] .ju367v9l,[data-rk] .ju367v9m:hover,[data-rk] .ju367v9n:active{background:var(--rk-colors-accentColorForeground)}[data-rk] .ju367v9o,[data-rk] .ju367v9p:hover,[data-rk] .ju367v9q:active{background:var(--rk-colors-actionButtonBorder)}[data-rk] .ju367v9r,[data-rk] .ju367v9s:hover,[data-rk] .ju367v9t:active{background:var(--rk-colors-actionButtonBorderMobile)}[data-rk] .ju367v9u,[data-rk] .ju367v9v:hover,[data-rk] .ju367v9w:active{background:var(--rk-colors-actionButtonSecondaryBackground)}[data-rk] .ju367v9x,[data-rk] .ju367v9y:hover,[data-rk] .ju367v9z:active{background:var(--rk-colors-closeButton)}[data-rk] .ju367va0,[data-rk] .ju367va1:hover,[data-rk] .ju367va2:active{background:var(--rk-colors-closeButtonBackground)}[data-rk] .ju367va3,[data-rk] .ju367va4:hover,[data-rk] .ju367va5:active{background:var(--rk-colors-connectButtonBackground)}[data-rk] .ju367va6,[data-rk] .ju367va7:hover,[data-rk] .ju367va8:active{background:var(--rk-colors-connectButtonBackgroundError)}[data-rk] .ju367va9,[data-rk] .ju367vaa:hover,[data-rk] .ju367vab:active{background:var(--rk-colors-connectButtonInnerBackground)}[data-rk] .ju367vac,[data-rk] .ju367vad:hover,[data-rk] .ju367vae:active{background:var(--rk-colors-connectButtonText)}[data-rk] .ju367vaf,[data-rk] .ju367vag:hover,[data-rk] .ju367vah:active{background:var(--rk-colors-connectButtonTextError)}[data-rk] .ju367vai,[data-rk] .ju367vaj:hover,[data-rk] .ju367vak:active{background:var(--rk-colors-connectionIndicator)}[data-rk] .ju367val,[data-rk] .ju367vam:hover,[data-rk] .ju367van:active{background:var(--rk-colors-downloadBottomCardBackground)}[data-rk] .ju367vao,[data-rk] .ju367vap:hover,[data-rk] .ju367vaq:active{background:var(--rk-colors-downloadTopCardBackground)}[data-rk] .ju367var,[data-rk] .ju367vas:hover,[data-rk] .ju367vat:active{background:var(--rk-colors-error)}[data-rk] .ju367vau,[data-rk] .ju367vav:hover,[data-rk] .ju367vaw:active{background:var(--rk-colors-generalBorder)}[data-rk] .ju367vax,[data-rk] .ju367vay:hover,[data-rk] .ju367vaz:active{background:var(--rk-colors-generalBorderDim)}[data-rk] .ju367vb0,[data-rk] .ju367vb1:hover,[data-rk] .ju367vb2:active{background:var(--rk-colors-menuItemBackground)}[data-rk] .ju367vb3,[data-rk] .ju367vb4:hover,[data-rk] .ju367vb5:active{background:var(--rk-colors-modalBackdrop)}[data-rk] .ju367vb6,[data-rk] .ju367vb7:hover,[data-rk] .ju367vb8:active{background:var(--rk-colors-modalBackground)}[data-rk] .ju367vb9,[data-rk] .ju367vba:hover,[data-rk] .ju367vbb:active{background:var(--rk-colors-modalBorder)}[data-rk] .ju367vbc,[data-rk] .ju367vbd:hover,[data-rk] .ju367vbe:active{background:var(--rk-colors-modalText)}[data-rk] .ju367vbf,[data-rk] .ju367vbg:hover,[data-rk] .ju367vbh:active{background:var(--rk-colors-modalTextDim)}[data-rk] .ju367vbi,[data-rk] .ju367vbj:hover,[data-rk] .ju367vbk:active{background:var(--rk-colors-modalTextSecondary)}[data-rk] .ju367vbl,[data-rk] .ju367vbm:hover,[data-rk] .ju367vbn:active{background:var(--rk-colors-profileAction)}[data-rk] .ju367vbo,[data-rk] .ju367vbp:hover,[data-rk] .ju367vbq:active{background:var(--rk-colors-profileActionHover)}[data-rk] .ju367vbr,[data-rk] .ju367vbs:hover,[data-rk] .ju367vbt:active{background:var(--rk-colors-profileForeground)}[data-rk] .ju367vbu,[data-rk] .ju367vbv:hover,[data-rk] .ju367vbw:active{background:var(--rk-colors-selectedOptionBorder)}[data-rk] .ju367vbx,[data-rk] .ju367vby:hover,[data-rk] .ju367vbz:active{background:var(--rk-colors-standby)}[data-rk] .ju367vc0,[data-rk] .ju367vc1:hover,[data-rk] .ju367vc2:active{border-color:var(--rk-colors-accentColor)}[data-rk] .ju367vc3,[data-rk] .ju367vc4:hover,[data-rk] .ju367vc5:active{border-color:var(--rk-colors-accentColorForeground)}[data-rk] .ju367vc6,[data-rk] .ju367vc7:hover,[data-rk] .ju367vc8:active{border-color:var(--rk-colors-actionButtonBorder)}[data-rk] .ju367vc9,[data-rk] .ju367vca:hover,[data-rk] .ju367vcb:active{border-color:var(--rk-colors-actionButtonBorderMobile)}[data-rk] .ju367vcc,[data-rk] .ju367vcd:hover,[data-rk] .ju367vce:active{border-color:var(--rk-colors-actionButtonSecondaryBackground)}[data-rk] .ju367vcf,[data-rk] .ju367vcg:hover,[data-rk] .ju367vch:active{border-color:var(--rk-colors-closeButton)}[data-rk] .ju367vci,[data-rk] .ju367vcj:hover,[data-rk] .ju367vck:active{border-color:var(--rk-colors-closeButtonBackground)}[data-rk] .ju367vcl,[data-rk] .ju367vcm:hover,[data-rk] .ju367vcn:active{border-color:var(--rk-colors-connectButtonBackground)}[data-rk] .ju367vco,[data-rk] .ju367vcp:hover,[data-rk] .ju367vcq:active{border-color:var(--rk-colors-connectButtonBackgroundError)}[data-rk] .ju367vcr,[data-rk] .ju367vcs:hover,[data-rk] .ju367vct:active{border-color:var(--rk-colors-connectButtonInnerBackground)}[data-rk] .ju367vcu,[data-rk] .ju367vcv:hover,[data-rk] .ju367vcw:active{border-color:var(--rk-colors-connectButtonText)}[data-rk] .ju367vcx,[data-rk] .ju367vcy:hover,[data-rk] .ju367vcz:active{border-color:var(--rk-colors-connectButtonTextError)}[data-rk] .ju367vd0,[data-rk] .ju367vd1:hover,[data-rk] .ju367vd2:active{border-color:var(--rk-colors-connectionIndicator)}[data-rk] .ju367vd3,[data-rk] .ju367vd4:hover,[data-rk] .ju367vd5:active{border-color:var(--rk-colors-downloadBottomCardBackground)}[data-rk] .ju367vd6,[data-rk] .ju367vd7:hover,[data-rk] .ju367vd8:active{border-color:var(--rk-colors-downloadTopCardBackground)}[data-rk] .ju367vd9,[data-rk] .ju367vda:hover,[data-rk] .ju367vdb:active{border-color:var(--rk-colors-error)}[data-rk] .ju367vdc,[data-rk] .ju367vdd:hover,[data-rk] .ju367vde:active{border-color:var(--rk-colors-generalBorder)}[data-rk] .ju367vdf,[data-rk] .ju367vdg:hover,[data-rk] .ju367vdh:active{border-color:var(--rk-colors-generalBorderDim)}[data-rk] .ju367vdi,[data-rk] .ju367vdj:hover,[data-rk] .ju367vdk:active{border-color:var(--rk-colors-menuItemBackground)}[data-rk] .ju367vdl,[data-rk] .ju367vdm:hover,[data-rk] .ju367vdn:active{border-color:var(--rk-colors-modalBackdrop)}[data-rk] .ju367vdo,[data-rk] .ju367vdp:hover,[data-rk] .ju367vdq:active{border-color:var(--rk-colors-modalBackground)}[data-rk] .ju367vdr,[data-rk] .ju367vds:hover,[data-rk] .ju367vdt:active{border-color:var(--rk-colors-modalBorder)}[data-rk] .ju367vdu,[data-rk] .ju367vdv:hover,[data-rk] .ju367vdw:active{border-color:var(--rk-colors-modalText)}[data-rk] .ju367vdx,[data-rk] .ju367vdy:hover,[data-rk] .ju367vdz:active{border-color:var(--rk-colors-modalTextDim)}[data-rk] .ju367ve0,[data-rk] .ju367ve1:hover,[data-rk] .ju367ve2:active{border-color:var(--rk-colors-modalTextSecondary)}[data-rk] .ju367ve3,[data-rk] .ju367ve4:hover,[data-rk] .ju367ve5:active{border-color:var(--rk-colors-profileAction)}[data-rk] .ju367ve6,[data-rk] .ju367ve7:hover,[data-rk] .ju367ve8:active{border-color:var(--rk-colors-profileActionHover)}[data-rk] .ju367ve9,[data-rk] .ju367vea:hover,[data-rk] .ju367veb:active{border-color:var(--rk-colors-profileForeground)}[data-rk] .ju367vec,[data-rk] .ju367ved:hover,[data-rk] .ju367vee:active{border-color:var(--rk-colors-selectedOptionBorder)}[data-rk] .ju367vef,[data-rk] .ju367veg:hover,[data-rk] .ju367veh:active{border-color:var(--rk-colors-standby)}[data-rk] .ju367vei,[data-rk] .ju367vej:hover,[data-rk] .ju367vek:active{box-shadow:var(--rk-shadows-connectButton)}[data-rk] .ju367vel,[data-rk] .ju367vem:hover,[data-rk] .ju367ven:active{box-shadow:var(--rk-shadows-dialog)}[data-rk] .ju367veo,[data-rk] .ju367vep:hover,[data-rk] .ju367veq:active{box-shadow:var(--rk-shadows-profileDetailsAction)}[data-rk] .ju367ver,[data-rk] .ju367ves:hover,[data-rk] .ju367vet:active{box-shadow:var(--rk-shadows-selectedOption)}[data-rk] .ju367veu,[data-rk] .ju367vev:hover,[data-rk] .ju367vew:active{box-shadow:var(--rk-shadows-selectedWallet)}[data-rk] .ju367vex,[data-rk] .ju367vey:hover,[data-rk] .ju367vez:active{box-shadow:var(--rk-shadows-walletLogo)}[data-rk] .ju367vf0,[data-rk] .ju367vf1:hover,[data-rk] .ju367vf2:active{color:var(--rk-colors-accentColor)}[data-rk] .ju367vf3,[data-rk] .ju367vf4:hover,[data-rk] .ju367vf5:active{color:var(--rk-colors-accentColorForeground)}[data-rk] .ju367vf6,[data-rk] .ju367vf7:hover,[data-rk] .ju367vf8:active{color:var(--rk-colors-actionButtonBorder)}[data-rk] .ju367vf9,[data-rk] .ju367vfa:hover,[data-rk] .ju367vfb:active{color:var(--rk-colors-actionButtonBorderMobile)}[data-rk] .ju367vfc,[data-rk] .ju367vfd:hover,[data-rk] .ju367vfe:active{color:var(--rk-colors-actionButtonSecondaryBackground)}[data-rk] .ju367vff,[data-rk] .ju367vfg:hover,[data-rk] .ju367vfh:active{color:var(--rk-colors-closeButton)}[data-rk] .ju367vfi,[data-rk] .ju367vfj:hover,[data-rk] .ju367vfk:active{color:var(--rk-colors-closeButtonBackground)}[data-rk] .ju367vfl,[data-rk] .ju367vfm:hover,[data-rk] .ju367vfn:active{color:var(--rk-colors-connectButtonBackground)}[data-rk] .ju367vfo,[data-rk] .ju367vfp:hover,[data-rk] .ju367vfq:active{color:var(--rk-colors-connectButtonBackgroundError)}[data-rk] .ju367vfr,[data-rk] .ju367vfs:hover,[data-rk] .ju367vft:active{color:var(--rk-colors-connectButtonInnerBackground)}[data-rk] .ju367vfu,[data-rk] .ju367vfv:hover,[data-rk] .ju367vfw:active{color:var(--rk-colors-connectButtonText)}[data-rk] .ju367vfx,[data-rk] .ju367vfy:hover,[data-rk] .ju367vfz:active{color:var(--rk-colors-connectButtonTextError)}[data-rk] .ju367vg0,[data-rk] .ju367vg1:hover,[data-rk] .ju367vg2:active{color:var(--rk-colors-connectionIndicator)}[data-rk] .ju367vg3,[data-rk] .ju367vg4:hover,[data-rk] .ju367vg5:active{color:var(--rk-colors-downloadBottomCardBackground)}[data-rk] .ju367vg6,[data-rk] .ju367vg7:hover,[data-rk] .ju367vg8:active{color:var(--rk-colors-downloadTopCardBackground)}[data-rk] .ju367vg9,[data-rk] .ju367vga:hover,[data-rk] .ju367vgb:active{color:var(--rk-colors-error)}[data-rk] .ju367vgc,[data-rk] .ju367vgd:hover,[data-rk] .ju367vge:active{color:var(--rk-colors-generalBorder)}[data-rk] .ju367vgf,[data-rk] .ju367vgg:hover,[data-rk] .ju367vgh:active{color:var(--rk-colors-generalBorderDim)}[data-rk] .ju367vgi,[data-rk] .ju367vgj:hover,[data-rk] .ju367vgk:active{color:var(--rk-colors-menuItemBackground)}[data-rk] .ju367vgl,[data-rk] .ju367vgm:hover,[data-rk] .ju367vgn:active{color:var(--rk-colors-modalBackdrop)}[data-rk] .ju367vgo,[data-rk] .ju367vgp:hover,[data-rk] .ju367vgq:active{color:var(--rk-colors-modalBackground)}[data-rk] .ju367vgr,[data-rk] .ju367vgs:hover,[data-rk] .ju367vgt:active{color:var(--rk-colors-modalBorder)}[data-rk] .ju367vgu,[data-rk] .ju367vgv:hover,[data-rk] .ju367vgw:active{color:var(--rk-colors-modalText)}[data-rk] .ju367vgx,[data-rk] .ju367vgy:hover,[data-rk] .ju367vgz:active{color:var(--rk-colors-modalTextDim)}[data-rk] .ju367vh0,[data-rk] .ju367vh1:hover,[data-rk] .ju367vh2:active{color:var(--rk-colors-modalTextSecondary)}[data-rk] .ju367vh3,[data-rk] .ju367vh4:hover,[data-rk] .ju367vh5:active{color:var(--rk-colors-profileAction)}[data-rk] .ju367vh6,[data-rk] .ju367vh7:hover,[data-rk] .ju367vh8:active{color:var(--rk-colors-profileActionHover)}[data-rk] .ju367vh9,[data-rk] .ju367vha:hover,[data-rk] .ju367vhb:active{color:var(--rk-colors-profileForeground)}[data-rk] .ju367vhc,[data-rk] .ju367vhd:hover,[data-rk] .ju367vhe:active{color:var(--rk-colors-selectedOptionBorder)}[data-rk] .ju367vhf,[data-rk] .ju367vhg:hover,[data-rk] .ju367vhh:active{color:var(--rk-colors-standby)}@media screen and (min-width: 768px){[data-rk] .ju367v1{align-items:flex-start}[data-rk] .ju367v3{align-items:flex-end}[data-rk] .ju367v5{align-items:center}[data-rk] .ju367v7{display:none}[data-rk] .ju367v9{display:block}[data-rk] .ju367vb{display:flex}[data-rk] .ju367vd{display:inline}}[data-rk] ._12cbo8i3,[data-rk] ._12cbo8i3:after{--_12cbo8i0: 1;--_12cbo8i1: 1}[data-rk] ._12cbo8i3:hover{transform:scale(var(--_12cbo8i0))}[data-rk] ._12cbo8i3:active{transform:scale(var(--_12cbo8i1))}[data-rk] ._12cbo8i3:active:after{content:"";bottom:-1px;display:block;left:-1px;position:absolute;right:-1px;top:-1px;transform:scale(calc((1 / var(--_12cbo8i1)) * var(--_12cbo8i0)))}[data-rk] ._12cbo8i4,[data-rk] ._12cbo8i4:after{--_12cbo8i0: 1.025}[data-rk] ._12cbo8i5,[data-rk] ._12cbo8i5:after{--_12cbo8i0: 1.1}[data-rk] ._12cbo8i6,[data-rk] ._12cbo8i6:after{--_12cbo8i1: .95}[data-rk] ._12cbo8i7,[data-rk] ._12cbo8i7:after{--_12cbo8i1: .9}@keyframes _1luule41{0%{transform:rotate(0)}to{transform:rotate(360deg)}}[data-rk] ._1luule42{animation:_1luule41 3s infinite linear}[data-rk] ._1luule43{background:conic-gradient(from 180deg at 50% 50%,rgba(72,146,254,0) 0deg,currentColor 282.04deg,rgba(72,146,254,0) 319.86deg,rgba(72,146,254,0) 360deg);height:21px;width:21px}@keyframes _9pm4ki0{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _9pm4ki1{0%{opacity:0}to{opacity:1}}[data-rk] ._9pm4ki3{animation:_9pm4ki1 .15s ease;bottom:-200px;left:-200px;padding:200px;right:-200px;top:-200px;transform:translateZ(0);z-index:2147483646}[data-rk] ._9pm4ki5{animation:_9pm4ki0 .35s cubic-bezier(.15,1.15,.6,1),_9pm4ki1 .15s ease;max-width:100vw}[data-rk] ._1ckjpok1{box-sizing:content-box;max-width:100vw;width:360px}[data-rk] ._1ckjpok2{width:100vw}[data-rk] ._1ckjpok3{min-width:720px;width:720px}[data-rk] ._1ckjpok4{min-width:368px;width:368px}[data-rk] ._1ckjpok6{border-width:0px;box-sizing:border-box;width:100vw}@media screen and (min-width: 768px){[data-rk] ._1ckjpok1{width:360px}[data-rk] ._1ckjpok2{width:480px}[data-rk] ._1ckjpok4{min-width:368px;width:368px}}@media screen and (max-width: 767px){[data-rk] ._1ckjpok7{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-top:-200px;padding-bottom:200px;top:200px}}[data-rk] .v9horb0:hover{background:unset}[data-rk] ._18dqw9x0{max-height:456px;overflow-y:auto;overflow-x:hidden}[data-rk] ._18dqw9x1{max-height:456px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}[data-rk] ._18dqw9x1::-webkit-scrollbar{display:none}[data-rk] .g5kl0l0{border-color:transparent}[data-rk] ._1vwt0cg0{background:#fff}[data-rk] ._1vwt0cg2{max-height:454px;overflow-y:auto}[data-rk] ._1vwt0cg3{min-width:287px}[data-rk] ._1vwt0cg4{min-width:100%}@keyframes _1am14411{0%{stroke-dashoffset:0}to{stroke-dashoffset:-283}}[data-rk] ._1am14410{overflow:auto;scrollbar-width:none;transform:translateZ(0)}[data-rk] ._1am14410::-webkit-scrollbar{display:none}[data-rk] ._1am14412{animation:_1am14411 1s linear infinite;stroke-dasharray:98 196;fill:none;stroke-line-cap:round;stroke-width:4}[data-rk] ._1am14413{position:absolute}[data-rk] ._1y2lnfi0{border:1px solid rgba(16,21,31,.06)}[data-rk] ._1y2lnfi1{max-width:-moz-fit-content;max-width:fit-content} diff --git a/apps/web/public/assets/index-CPuAEUoa.js b/apps/web/public/assets/index-CPuAEUoa.js deleted file mode 100644 index 545fa2b3..00000000 --- a/apps/web/public/assets/index-CPuAEUoa.js +++ /dev/null @@ -1,13 +0,0 @@ -import{b4 as Ks,o as ee,t as mn,q as ai,b5 as gu,p as mu}from"./index-Bl6Lkf65.js";import{d as wu,e as yu}from"./hooks.module-D456YPrV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0c7731bb-cc31-4573-a6f2-64400df96250",e._sentryDebugIdIdentifier="sentry-dbid-0c7731bb-cc31-4573-a6f2-64400df96250")}catch{}})();var gc={},dn={},ci={};Object.defineProperty(ci,"__esModule",{value:!0});ci.walletLogo=void 0;const bu=(e,t)=>{let r;switch(e){case"standard":return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return r=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};ci.walletLogo=bu;var li={};Object.defineProperty(li,"__esModule",{value:!0});li.LINK_API_URL=void 0;li.LINK_API_URL="https://www.walletlink.org";var X={},Qs={exports:{}};Qs.exports;(function(e){(function(t,r){function n(x,o){if(!x)throw new Error(o||"Assertion failed")}function i(x,o){x.super_=o;var f=function(){};f.prototype=o.prototype,x.prototype=new f,x.prototype.constructor=x}function s(x,o,f){if(s.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,x!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(x||0,o||10,f||"be"))}typeof t=="object"?t.exports=s:r.BN=s,s.BN=s,s.wordSize=26;var c;try{typeof window<"u"&&typeof window.Buffer<"u"?c=window.Buffer:c=Ks.Buffer}catch{}s.isBN=function(o){return o instanceof s?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===s.wordSize&&Array.isArray(o.words)},s.max=function(o,f){return o.cmp(f)>0?o:f},s.min=function(o,f){return o.cmp(f)<0?o:f},s.prototype._init=function(o,f,w){if(typeof o=="number")return this._initNumber(o,f,w);if(typeof o=="object")return this._initArray(o,f,w);f==="hex"&&(f=16),n(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var b=0;o[0]==="-"&&(b++,this.negative=1),b=0;b-=3)k=o[b]|o[b-1]<<8|o[b-2]<<16,this.words[S]|=k<>>26-N&67108863,N+=24,N>=26&&(N-=26,S++);else if(w==="le")for(b=0,S=0;b>>26-N&67108863,N+=24,N>=26&&(N-=26,S++);return this._strip()};function a(x,o){var f=x.charCodeAt(o);if(f>=48&&f<=57)return f-48;if(f>=65&&f<=70)return f-55;if(f>=97&&f<=102)return f-87;n(!1,"Invalid character in "+x)}function d(x,o,f){var w=a(x,f);return f-1>=o&&(w|=a(x,f-1)<<4),w}s.prototype._parseHex=function(o,f,w){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var b=0;b=f;b-=2)N=d(o,f,b)<=18?(S-=18,k+=1,this.words[k]|=N>>>26):S+=8;else{var v=o.length-f;for(b=v%2===0?f+1:f;b=18?(S-=18,k+=1,this.words[k]|=N>>>26):S+=8}this._strip()};function p(x,o,f,w){for(var b=0,S=0,k=Math.min(x.length,f),N=o;N=49?S=v-49+10:v>=17?S=v-17+10:S=v,n(v>=0&&S1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=y}catch{s.prototype.inspect=y}else s.prototype.inspect=y;function y(){return(this.red?""}var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],L=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(o,f){o=o||10,f=f|0||1;var w;if(o===16||o==="hex"){w="";for(var b=0,S=0,k=0;k>>24-b&16777215,b+=2,b>=26&&(b-=26,k--),S!==0||k!==this.length-1?w=_[6-v.length]+v+w:w=v+w}for(S!==0&&(w=S.toString(16)+w);w.length%f!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(o===(o|0)&&o>=2&&o<=36){var u=A[o],R=L[o];w="";var K=this.clone();for(K.negative=0;!K.isZero();){var J=K.modrn(R).toString(o);K=K.idivn(R),K.isZero()?w=J+w:w=_[u-J.length]+J+w}for(this.isZero()&&(w="0"+w);w.length%f!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},s.prototype.toJSON=function(){return this.toString(16,2)},c&&(s.prototype.toBuffer=function(o,f){return this.toArrayLike(c,o,f)}),s.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)};var H=function(o,f){return o.allocUnsafe?o.allocUnsafe(f):new o(f)};s.prototype.toArrayLike=function(o,f,w){this._strip();var b=this.byteLength(),S=w||Math.max(1,b);n(b<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0");var k=H(o,S),N=f==="le"?"LE":"BE";return this["_toArrayLike"+N](k,b),k},s.prototype._toArrayLikeLE=function(o,f){for(var w=0,b=0,S=0,k=0;S>8&255),w>16&255),k===6?(w>24&255),b=0,k=0):(b=N>>>24,k+=2)}if(w=0&&(o[w--]=N>>8&255),w>=0&&(o[w--]=N>>16&255),k===6?(w>=0&&(o[w--]=N>>24&255),b=0,k=0):(b=N>>>24,k+=2)}if(w>=0)for(o[w--]=b;w>=0;)o[w--]=0},Math.clz32?s.prototype._countBits=function(o){return 32-Math.clz32(o)}:s.prototype._countBits=function(o){var f=o,w=0;return f>=4096&&(w+=13,f>>>=13),f>=64&&(w+=7,f>>>=7),f>=8&&(w+=4,f>>>=4),f>=2&&(w+=2,f>>>=2),w+f},s.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,w=0;return f&8191||(w+=13,f>>>=13),f&127||(w+=7,f>>>=7),f&15||(w+=4,f>>>=4),f&3||(w+=2,f>>>=2),f&1||w++,w},s.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function F(x){for(var o=new Array(x.bitLength()),f=0;f>>b&1}return o}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;fo.length?this.clone().ior(o):o.clone().ior(this)},s.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},s.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var w=0;wo.length?this.clone().iand(o):o.clone().iand(this)},s.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},s.prototype.iuxor=function(o){var f,w;this.length>o.length?(f=this,w=o):(f=o,w=this);for(var b=0;bo.length?this.clone().ixor(o):o.clone().ixor(this)},s.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},s.prototype.inotn=function(o){n(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,w=o%26;this._expand(f),w>0&&f--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-w),this._strip()},s.prototype.notn=function(o){return this.clone().inotn(o)},s.prototype.setn=function(o,f){n(typeof o=="number"&&o>=0);var w=o/26|0,b=o%26;return this._expand(w+1),f?this.words[w]=this.words[w]|1<o.length?(w=this,b=o):(w=o,b=this);for(var S=0,k=0;k>>26;for(;S!==0&&k>>26;if(this.length=w.length,S!==0)this.words[this.length]=S,this.length++;else if(w!==this)for(;ko.length?this.clone().iadd(o):o.clone().iadd(this)},s.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var w=this.cmp(o);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,S;w>0?(b=this,S=o):(b=o,S=this);for(var k=0,N=0;N>26,this.words[N]=f&67108863;for(;k!==0&&N>26,this.words[N]=f&67108863;if(k===0&&N>>26,K=v&67108863,J=Math.min(u,o.length-1),T=Math.max(0,u-x.length+1);T<=J;T++){var $=u-T|0;b=x.words[$]|0,S=o.words[T]|0,k=b*S+K,R+=k/67108864|0,K=k&67108863}f.words[u]=K|0,v=R|0}return v!==0?f.words[u]=v|0:f.length--,f._strip()}var O=function(o,f,w){var b=o.words,S=f.words,k=w.words,N=0,v,u,R,K=b[0]|0,J=K&8191,T=K>>>13,$=b[1]|0,W=$&8191,Z=$>>>13,le=b[2]|0,C=le&8191,M=le>>>13,q=b[3]|0,G=q&8191,se=q>>>13,ue=b[4]|0,re=ue&8191,be=ue>>>13,dt=b[5]|0,Se=dt&8191,Ee=dt>>>13,Je=b[6]|0,ve=Je&8191,Re=Je>>>13,Qe=b[7]|0,_e=Qe&8191,m=Qe>>>13,l=b[8]|0,h=l&8191,E=l>>>13,P=b[9]|0,D=P&8191,U=P>>>13,he=S[0]|0,ae=he&8191,ie=he>>>13,Ce=S[1]|0,ne=Ce&8191,Me=Ce>>>13,Sr=S[2]|0,ke=Sr&8191,xe=Sr>>>13,Rr=S[3]|0,Ie=Rr&8191,Ae=Rr>>>13,Cr=S[4]|0,Te=Cr&8191,Ne=Cr>>>13,Mr=S[5]|0,Le=Mr&8191,Be=Mr>>>13,kr=S[6]|0,Pe=kr&8191,Oe=kr>>>13,xr=S[7]|0,$e=xr&8191,Fe=xr>>>13,Ir=S[8]|0,De=Ir&8191,je=Ir>>>13,Ar=S[9]|0,Ue=Ar&8191,He=Ar>>>13;w.negative=o.negative^f.negative,w.length=19,v=Math.imul(J,ae),u=Math.imul(J,ie),u=u+Math.imul(T,ae)|0,R=Math.imul(T,ie);var Gt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,v=Math.imul(W,ae),u=Math.imul(W,ie),u=u+Math.imul(Z,ae)|0,R=Math.imul(Z,ie),v=v+Math.imul(J,ne)|0,u=u+Math.imul(J,Me)|0,u=u+Math.imul(T,ne)|0,R=R+Math.imul(T,Me)|0;var Jt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,v=Math.imul(C,ae),u=Math.imul(C,ie),u=u+Math.imul(M,ae)|0,R=Math.imul(M,ie),v=v+Math.imul(W,ne)|0,u=u+Math.imul(W,Me)|0,u=u+Math.imul(Z,ne)|0,R=R+Math.imul(Z,Me)|0,v=v+Math.imul(J,ke)|0,u=u+Math.imul(J,xe)|0,u=u+Math.imul(T,ke)|0,R=R+Math.imul(T,xe)|0;var Zt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,v=Math.imul(G,ae),u=Math.imul(G,ie),u=u+Math.imul(se,ae)|0,R=Math.imul(se,ie),v=v+Math.imul(C,ne)|0,u=u+Math.imul(C,Me)|0,u=u+Math.imul(M,ne)|0,R=R+Math.imul(M,Me)|0,v=v+Math.imul(W,ke)|0,u=u+Math.imul(W,xe)|0,u=u+Math.imul(Z,ke)|0,R=R+Math.imul(Z,xe)|0,v=v+Math.imul(J,Ie)|0,u=u+Math.imul(J,Ae)|0,u=u+Math.imul(T,Ie)|0,R=R+Math.imul(T,Ae)|0;var Kt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,v=Math.imul(re,ae),u=Math.imul(re,ie),u=u+Math.imul(be,ae)|0,R=Math.imul(be,ie),v=v+Math.imul(G,ne)|0,u=u+Math.imul(G,Me)|0,u=u+Math.imul(se,ne)|0,R=R+Math.imul(se,Me)|0,v=v+Math.imul(C,ke)|0,u=u+Math.imul(C,xe)|0,u=u+Math.imul(M,ke)|0,R=R+Math.imul(M,xe)|0,v=v+Math.imul(W,Ie)|0,u=u+Math.imul(W,Ae)|0,u=u+Math.imul(Z,Ie)|0,R=R+Math.imul(Z,Ae)|0,v=v+Math.imul(J,Te)|0,u=u+Math.imul(J,Ne)|0,u=u+Math.imul(T,Te)|0,R=R+Math.imul(T,Ne)|0;var Qt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v=Math.imul(Se,ae),u=Math.imul(Se,ie),u=u+Math.imul(Ee,ae)|0,R=Math.imul(Ee,ie),v=v+Math.imul(re,ne)|0,u=u+Math.imul(re,Me)|0,u=u+Math.imul(be,ne)|0,R=R+Math.imul(be,Me)|0,v=v+Math.imul(G,ke)|0,u=u+Math.imul(G,xe)|0,u=u+Math.imul(se,ke)|0,R=R+Math.imul(se,xe)|0,v=v+Math.imul(C,Ie)|0,u=u+Math.imul(C,Ae)|0,u=u+Math.imul(M,Ie)|0,R=R+Math.imul(M,Ae)|0,v=v+Math.imul(W,Te)|0,u=u+Math.imul(W,Ne)|0,u=u+Math.imul(Z,Te)|0,R=R+Math.imul(Z,Ne)|0,v=v+Math.imul(J,Le)|0,u=u+Math.imul(J,Be)|0,u=u+Math.imul(T,Le)|0,R=R+Math.imul(T,Be)|0;var Yt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,v=Math.imul(ve,ae),u=Math.imul(ve,ie),u=u+Math.imul(Re,ae)|0,R=Math.imul(Re,ie),v=v+Math.imul(Se,ne)|0,u=u+Math.imul(Se,Me)|0,u=u+Math.imul(Ee,ne)|0,R=R+Math.imul(Ee,Me)|0,v=v+Math.imul(re,ke)|0,u=u+Math.imul(re,xe)|0,u=u+Math.imul(be,ke)|0,R=R+Math.imul(be,xe)|0,v=v+Math.imul(G,Ie)|0,u=u+Math.imul(G,Ae)|0,u=u+Math.imul(se,Ie)|0,R=R+Math.imul(se,Ae)|0,v=v+Math.imul(C,Te)|0,u=u+Math.imul(C,Ne)|0,u=u+Math.imul(M,Te)|0,R=R+Math.imul(M,Ne)|0,v=v+Math.imul(W,Le)|0,u=u+Math.imul(W,Be)|0,u=u+Math.imul(Z,Le)|0,R=R+Math.imul(Z,Be)|0,v=v+Math.imul(J,Pe)|0,u=u+Math.imul(J,Oe)|0,u=u+Math.imul(T,Pe)|0,R=R+Math.imul(T,Oe)|0;var Xt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,v=Math.imul(_e,ae),u=Math.imul(_e,ie),u=u+Math.imul(m,ae)|0,R=Math.imul(m,ie),v=v+Math.imul(ve,ne)|0,u=u+Math.imul(ve,Me)|0,u=u+Math.imul(Re,ne)|0,R=R+Math.imul(Re,Me)|0,v=v+Math.imul(Se,ke)|0,u=u+Math.imul(Se,xe)|0,u=u+Math.imul(Ee,ke)|0,R=R+Math.imul(Ee,xe)|0,v=v+Math.imul(re,Ie)|0,u=u+Math.imul(re,Ae)|0,u=u+Math.imul(be,Ie)|0,R=R+Math.imul(be,Ae)|0,v=v+Math.imul(G,Te)|0,u=u+Math.imul(G,Ne)|0,u=u+Math.imul(se,Te)|0,R=R+Math.imul(se,Ne)|0,v=v+Math.imul(C,Le)|0,u=u+Math.imul(C,Be)|0,u=u+Math.imul(M,Le)|0,R=R+Math.imul(M,Be)|0,v=v+Math.imul(W,Pe)|0,u=u+Math.imul(W,Oe)|0,u=u+Math.imul(Z,Pe)|0,R=R+Math.imul(Z,Oe)|0,v=v+Math.imul(J,$e)|0,u=u+Math.imul(J,Fe)|0,u=u+Math.imul(T,$e)|0,R=R+Math.imul(T,Fe)|0;var er=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(er>>>26)|0,er&=67108863,v=Math.imul(h,ae),u=Math.imul(h,ie),u=u+Math.imul(E,ae)|0,R=Math.imul(E,ie),v=v+Math.imul(_e,ne)|0,u=u+Math.imul(_e,Me)|0,u=u+Math.imul(m,ne)|0,R=R+Math.imul(m,Me)|0,v=v+Math.imul(ve,ke)|0,u=u+Math.imul(ve,xe)|0,u=u+Math.imul(Re,ke)|0,R=R+Math.imul(Re,xe)|0,v=v+Math.imul(Se,Ie)|0,u=u+Math.imul(Se,Ae)|0,u=u+Math.imul(Ee,Ie)|0,R=R+Math.imul(Ee,Ae)|0,v=v+Math.imul(re,Te)|0,u=u+Math.imul(re,Ne)|0,u=u+Math.imul(be,Te)|0,R=R+Math.imul(be,Ne)|0,v=v+Math.imul(G,Le)|0,u=u+Math.imul(G,Be)|0,u=u+Math.imul(se,Le)|0,R=R+Math.imul(se,Be)|0,v=v+Math.imul(C,Pe)|0,u=u+Math.imul(C,Oe)|0,u=u+Math.imul(M,Pe)|0,R=R+Math.imul(M,Oe)|0,v=v+Math.imul(W,$e)|0,u=u+Math.imul(W,Fe)|0,u=u+Math.imul(Z,$e)|0,R=R+Math.imul(Z,Fe)|0,v=v+Math.imul(J,De)|0,u=u+Math.imul(J,je)|0,u=u+Math.imul(T,De)|0,R=R+Math.imul(T,je)|0;var tr=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(tr>>>26)|0,tr&=67108863,v=Math.imul(D,ae),u=Math.imul(D,ie),u=u+Math.imul(U,ae)|0,R=Math.imul(U,ie),v=v+Math.imul(h,ne)|0,u=u+Math.imul(h,Me)|0,u=u+Math.imul(E,ne)|0,R=R+Math.imul(E,Me)|0,v=v+Math.imul(_e,ke)|0,u=u+Math.imul(_e,xe)|0,u=u+Math.imul(m,ke)|0,R=R+Math.imul(m,xe)|0,v=v+Math.imul(ve,Ie)|0,u=u+Math.imul(ve,Ae)|0,u=u+Math.imul(Re,Ie)|0,R=R+Math.imul(Re,Ae)|0,v=v+Math.imul(Se,Te)|0,u=u+Math.imul(Se,Ne)|0,u=u+Math.imul(Ee,Te)|0,R=R+Math.imul(Ee,Ne)|0,v=v+Math.imul(re,Le)|0,u=u+Math.imul(re,Be)|0,u=u+Math.imul(be,Le)|0,R=R+Math.imul(be,Be)|0,v=v+Math.imul(G,Pe)|0,u=u+Math.imul(G,Oe)|0,u=u+Math.imul(se,Pe)|0,R=R+Math.imul(se,Oe)|0,v=v+Math.imul(C,$e)|0,u=u+Math.imul(C,Fe)|0,u=u+Math.imul(M,$e)|0,R=R+Math.imul(M,Fe)|0,v=v+Math.imul(W,De)|0,u=u+Math.imul(W,je)|0,u=u+Math.imul(Z,De)|0,R=R+Math.imul(Z,je)|0,v=v+Math.imul(J,Ue)|0,u=u+Math.imul(J,He)|0,u=u+Math.imul(T,Ue)|0,R=R+Math.imul(T,He)|0;var rr=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(rr>>>26)|0,rr&=67108863,v=Math.imul(D,ne),u=Math.imul(D,Me),u=u+Math.imul(U,ne)|0,R=Math.imul(U,Me),v=v+Math.imul(h,ke)|0,u=u+Math.imul(h,xe)|0,u=u+Math.imul(E,ke)|0,R=R+Math.imul(E,xe)|0,v=v+Math.imul(_e,Ie)|0,u=u+Math.imul(_e,Ae)|0,u=u+Math.imul(m,Ie)|0,R=R+Math.imul(m,Ae)|0,v=v+Math.imul(ve,Te)|0,u=u+Math.imul(ve,Ne)|0,u=u+Math.imul(Re,Te)|0,R=R+Math.imul(Re,Ne)|0,v=v+Math.imul(Se,Le)|0,u=u+Math.imul(Se,Be)|0,u=u+Math.imul(Ee,Le)|0,R=R+Math.imul(Ee,Be)|0,v=v+Math.imul(re,Pe)|0,u=u+Math.imul(re,Oe)|0,u=u+Math.imul(be,Pe)|0,R=R+Math.imul(be,Oe)|0,v=v+Math.imul(G,$e)|0,u=u+Math.imul(G,Fe)|0,u=u+Math.imul(se,$e)|0,R=R+Math.imul(se,Fe)|0,v=v+Math.imul(C,De)|0,u=u+Math.imul(C,je)|0,u=u+Math.imul(M,De)|0,R=R+Math.imul(M,je)|0,v=v+Math.imul(W,Ue)|0,u=u+Math.imul(W,He)|0,u=u+Math.imul(Z,Ue)|0,R=R+Math.imul(Z,He)|0;var nr=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(nr>>>26)|0,nr&=67108863,v=Math.imul(D,ke),u=Math.imul(D,xe),u=u+Math.imul(U,ke)|0,R=Math.imul(U,xe),v=v+Math.imul(h,Ie)|0,u=u+Math.imul(h,Ae)|0,u=u+Math.imul(E,Ie)|0,R=R+Math.imul(E,Ae)|0,v=v+Math.imul(_e,Te)|0,u=u+Math.imul(_e,Ne)|0,u=u+Math.imul(m,Te)|0,R=R+Math.imul(m,Ne)|0,v=v+Math.imul(ve,Le)|0,u=u+Math.imul(ve,Be)|0,u=u+Math.imul(Re,Le)|0,R=R+Math.imul(Re,Be)|0,v=v+Math.imul(Se,Pe)|0,u=u+Math.imul(Se,Oe)|0,u=u+Math.imul(Ee,Pe)|0,R=R+Math.imul(Ee,Oe)|0,v=v+Math.imul(re,$e)|0,u=u+Math.imul(re,Fe)|0,u=u+Math.imul(be,$e)|0,R=R+Math.imul(be,Fe)|0,v=v+Math.imul(G,De)|0,u=u+Math.imul(G,je)|0,u=u+Math.imul(se,De)|0,R=R+Math.imul(se,je)|0,v=v+Math.imul(C,Ue)|0,u=u+Math.imul(C,He)|0,u=u+Math.imul(M,Ue)|0,R=R+Math.imul(M,He)|0;var ir=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(ir>>>26)|0,ir&=67108863,v=Math.imul(D,Ie),u=Math.imul(D,Ae),u=u+Math.imul(U,Ie)|0,R=Math.imul(U,Ae),v=v+Math.imul(h,Te)|0,u=u+Math.imul(h,Ne)|0,u=u+Math.imul(E,Te)|0,R=R+Math.imul(E,Ne)|0,v=v+Math.imul(_e,Le)|0,u=u+Math.imul(_e,Be)|0,u=u+Math.imul(m,Le)|0,R=R+Math.imul(m,Be)|0,v=v+Math.imul(ve,Pe)|0,u=u+Math.imul(ve,Oe)|0,u=u+Math.imul(Re,Pe)|0,R=R+Math.imul(Re,Oe)|0,v=v+Math.imul(Se,$e)|0,u=u+Math.imul(Se,Fe)|0,u=u+Math.imul(Ee,$e)|0,R=R+Math.imul(Ee,Fe)|0,v=v+Math.imul(re,De)|0,u=u+Math.imul(re,je)|0,u=u+Math.imul(be,De)|0,R=R+Math.imul(be,je)|0,v=v+Math.imul(G,Ue)|0,u=u+Math.imul(G,He)|0,u=u+Math.imul(se,Ue)|0,R=R+Math.imul(se,He)|0;var sr=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(sr>>>26)|0,sr&=67108863,v=Math.imul(D,Te),u=Math.imul(D,Ne),u=u+Math.imul(U,Te)|0,R=Math.imul(U,Ne),v=v+Math.imul(h,Le)|0,u=u+Math.imul(h,Be)|0,u=u+Math.imul(E,Le)|0,R=R+Math.imul(E,Be)|0,v=v+Math.imul(_e,Pe)|0,u=u+Math.imul(_e,Oe)|0,u=u+Math.imul(m,Pe)|0,R=R+Math.imul(m,Oe)|0,v=v+Math.imul(ve,$e)|0,u=u+Math.imul(ve,Fe)|0,u=u+Math.imul(Re,$e)|0,R=R+Math.imul(Re,Fe)|0,v=v+Math.imul(Se,De)|0,u=u+Math.imul(Se,je)|0,u=u+Math.imul(Ee,De)|0,R=R+Math.imul(Ee,je)|0,v=v+Math.imul(re,Ue)|0,u=u+Math.imul(re,He)|0,u=u+Math.imul(be,Ue)|0,R=R+Math.imul(be,He)|0;var or=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(or>>>26)|0,or&=67108863,v=Math.imul(D,Le),u=Math.imul(D,Be),u=u+Math.imul(U,Le)|0,R=Math.imul(U,Be),v=v+Math.imul(h,Pe)|0,u=u+Math.imul(h,Oe)|0,u=u+Math.imul(E,Pe)|0,R=R+Math.imul(E,Oe)|0,v=v+Math.imul(_e,$e)|0,u=u+Math.imul(_e,Fe)|0,u=u+Math.imul(m,$e)|0,R=R+Math.imul(m,Fe)|0,v=v+Math.imul(ve,De)|0,u=u+Math.imul(ve,je)|0,u=u+Math.imul(Re,De)|0,R=R+Math.imul(Re,je)|0,v=v+Math.imul(Se,Ue)|0,u=u+Math.imul(Se,He)|0,u=u+Math.imul(Ee,Ue)|0,R=R+Math.imul(Ee,He)|0;var ss=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(ss>>>26)|0,ss&=67108863,v=Math.imul(D,Pe),u=Math.imul(D,Oe),u=u+Math.imul(U,Pe)|0,R=Math.imul(U,Oe),v=v+Math.imul(h,$e)|0,u=u+Math.imul(h,Fe)|0,u=u+Math.imul(E,$e)|0,R=R+Math.imul(E,Fe)|0,v=v+Math.imul(_e,De)|0,u=u+Math.imul(_e,je)|0,u=u+Math.imul(m,De)|0,R=R+Math.imul(m,je)|0,v=v+Math.imul(ve,Ue)|0,u=u+Math.imul(ve,He)|0,u=u+Math.imul(Re,Ue)|0,R=R+Math.imul(Re,He)|0;var os=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(os>>>26)|0,os&=67108863,v=Math.imul(D,$e),u=Math.imul(D,Fe),u=u+Math.imul(U,$e)|0,R=Math.imul(U,Fe),v=v+Math.imul(h,De)|0,u=u+Math.imul(h,je)|0,u=u+Math.imul(E,De)|0,R=R+Math.imul(E,je)|0,v=v+Math.imul(_e,Ue)|0,u=u+Math.imul(_e,He)|0,u=u+Math.imul(m,Ue)|0,R=R+Math.imul(m,He)|0;var as=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(as>>>26)|0,as&=67108863,v=Math.imul(D,De),u=Math.imul(D,je),u=u+Math.imul(U,De)|0,R=Math.imul(U,je),v=v+Math.imul(h,Ue)|0,u=u+Math.imul(h,He)|0,u=u+Math.imul(E,Ue)|0,R=R+Math.imul(E,He)|0;var cs=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(cs>>>26)|0,cs&=67108863,v=Math.imul(D,Ue),u=Math.imul(D,He),u=u+Math.imul(U,Ue)|0,R=Math.imul(U,He);var ls=(N+v|0)+((u&8191)<<13)|0;return N=(R+(u>>>13)|0)+(ls>>>26)|0,ls&=67108863,k[0]=Gt,k[1]=Jt,k[2]=Zt,k[3]=Kt,k[4]=Qt,k[5]=Yt,k[6]=Xt,k[7]=er,k[8]=tr,k[9]=rr,k[10]=nr,k[11]=ir,k[12]=sr,k[13]=or,k[14]=ss,k[15]=os,k[16]=as,k[17]=cs,k[18]=ls,N!==0&&(k[19]=N,w.length++),w};Math.imul||(O=I);function B(x,o,f){f.negative=o.negative^x.negative,f.length=x.length+o.length;for(var w=0,b=0,S=0;S>>26)|0,b+=k>>>26,k&=67108863}f.words[S]=N,w=k,k=b}return w!==0?f.words[S]=w:f.length--,f._strip()}function V(x,o,f){return B(x,o,f)}s.prototype.mulTo=function(o,f){var w,b=this.length+o.length;return this.length===10&&o.length===10?w=O(this,o,f):b<63?w=I(this,o,f):b<1024?w=B(this,o,f):w=V(this,o,f),w},s.prototype.mul=function(o){var f=new s(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},s.prototype.mulf=function(o){var f=new s(null);return f.words=new Array(this.length+o.length),V(this,o,f)},s.prototype.imul=function(o){return this.clone().mulTo(o,this)},s.prototype.imuln=function(o){var f=o<0;f&&(o=-o),n(typeof o=="number"),n(o<67108864);for(var w=0,b=0;b>=26,w+=S/67108864|0,w+=k>>>26,this.words[b]=k&67108863}return w!==0&&(this.words[b]=w,this.length++),f?this.ineg():this},s.prototype.muln=function(o){return this.clone().imuln(o)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(o){var f=F(o);if(f.length===0)return new s(1);for(var w=this,b=0;b=0);var f=o%26,w=(o-f)/26,b=67108863>>>26-f<<26-f,S;if(f!==0){var k=0;for(S=0;S>>26-f}k&&(this.words[S]=k,this.length++)}if(w!==0){for(S=this.length-1;S>=0;S--)this.words[S+w]=this.words[S];for(S=0;S=0);var b;f?b=(f-f%26)/26:b=0;var S=o%26,k=Math.min((o-S)/26,this.length),N=67108863^67108863>>>S<k)for(this.length-=k,u=0;u=0&&(R!==0||u>=b);u--){var K=this.words[u]|0;this.words[u]=R<<26-S|K>>>S,R=K&N}return v&&R!==0&&(v.words[v.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(o,f,w){return n(this.negative===0),this.iushrn(o,f,w)},s.prototype.shln=function(o){return this.clone().ishln(o)},s.prototype.ushln=function(o){return this.clone().iushln(o)},s.prototype.shrn=function(o){return this.clone().ishrn(o)},s.prototype.ushrn=function(o){return this.clone().iushrn(o)},s.prototype.testn=function(o){n(typeof o=="number"&&o>=0);var f=o%26,w=(o-f)/26,b=1<=0);var f=o%26,w=(o-f)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(f!==0&&w++,this.length=Math.min(w,this.length),f!==0){var b=67108863^67108863>>>f<=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},s.prototype.isubn=function(o){if(n(typeof o=="number"),n(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f>26)-(v/67108864|0),this.words[S+w]=k&67108863}for(;S>26,this.words[S+w]=k&67108863;if(N===0)return this._strip();for(n(N===-1),N=0,S=0;S>26,this.words[S]=k&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(o,f){var w=this.length-o.length,b=this.clone(),S=o,k=S.words[S.length-1]|0,N=this._countBits(k);w=26-N,w!==0&&(S=S.ushln(w),b.iushln(w),k=S.words[S.length-1]|0);var v=b.length-S.length,u;if(f!=="mod"){u=new s(null),u.length=v+1,u.words=new Array(u.length);for(var R=0;R=0;J--){var T=(b.words[S.length+J]|0)*67108864+(b.words[S.length+J-1]|0);for(T=Math.min(T/k|0,67108863),b._ishlnsubmul(S,T,J);b.negative!==0;)T--,b.negative=0,b._ishlnsubmul(S,1,J),b.isZero()||(b.negative^=1);u&&(u.words[J]=T)}return u&&u._strip(),b._strip(),f!=="div"&&w!==0&&b.iushrn(w),{div:u||null,mod:b}},s.prototype.divmod=function(o,f,w){if(n(!o.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var b,S,k;return this.negative!==0&&o.negative===0?(k=this.neg().divmod(o,f),f!=="mod"&&(b=k.div.neg()),f!=="div"&&(S=k.mod.neg(),w&&S.negative!==0&&S.iadd(o)),{div:b,mod:S}):this.negative===0&&o.negative!==0?(k=this.divmod(o.neg(),f),f!=="mod"&&(b=k.div.neg()),{div:b,mod:k.mod}):this.negative&o.negative?(k=this.neg().divmod(o.neg(),f),f!=="div"&&(S=k.mod.neg(),w&&S.negative!==0&&S.isub(o)),{div:k.div,mod:S}):o.length>this.length||this.cmp(o)<0?{div:new s(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new s(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new s(this.modrn(o.words[0]))}:this._wordDiv(o,f)},s.prototype.div=function(o){return this.divmod(o,"div",!1).div},s.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},s.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},s.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var w=f.div.negative!==0?f.mod.isub(o):f.mod,b=o.ushrn(1),S=o.andln(1),k=w.cmp(b);return k<0||S===1&&k===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},s.prototype.modrn=function(o){var f=o<0;f&&(o=-o),n(o<=67108863);for(var w=(1<<26)%o,b=0,S=this.length-1;S>=0;S--)b=(w*b+(this.words[S]|0))%o;return f?-b:b},s.prototype.modn=function(o){return this.modrn(o)},s.prototype.idivn=function(o){var f=o<0;f&&(o=-o),n(o<=67108863);for(var w=0,b=this.length-1;b>=0;b--){var S=(this.words[b]|0)+w*67108864;this.words[b]=S/o|0,w=S%o}return this._strip(),f?this.ineg():this},s.prototype.divn=function(o){return this.clone().idivn(o)},s.prototype.egcd=function(o){n(o.negative===0),n(!o.isZero());var f=this,w=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var b=new s(1),S=new s(0),k=new s(0),N=new s(1),v=0;f.isEven()&&w.isEven();)f.iushrn(1),w.iushrn(1),++v;for(var u=w.clone(),R=f.clone();!f.isZero();){for(var K=0,J=1;!(f.words[0]&J)&&K<26;++K,J<<=1);if(K>0)for(f.iushrn(K);K-- >0;)(b.isOdd()||S.isOdd())&&(b.iadd(u),S.isub(R)),b.iushrn(1),S.iushrn(1);for(var T=0,$=1;!(w.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(w.iushrn(T);T-- >0;)(k.isOdd()||N.isOdd())&&(k.iadd(u),N.isub(R)),k.iushrn(1),N.iushrn(1);f.cmp(w)>=0?(f.isub(w),b.isub(k),S.isub(N)):(w.isub(f),k.isub(b),N.isub(S))}return{a:k,b:N,gcd:w.iushln(v)}},s.prototype._invmp=function(o){n(o.negative===0),n(!o.isZero());var f=this,w=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var b=new s(1),S=new s(0),k=w.clone();f.cmpn(1)>0&&w.cmpn(1)>0;){for(var N=0,v=1;!(f.words[0]&v)&&N<26;++N,v<<=1);if(N>0)for(f.iushrn(N);N-- >0;)b.isOdd()&&b.iadd(k),b.iushrn(1);for(var u=0,R=1;!(w.words[0]&R)&&u<26;++u,R<<=1);if(u>0)for(w.iushrn(u);u-- >0;)S.isOdd()&&S.iadd(k),S.iushrn(1);f.cmp(w)>=0?(f.isub(w),b.isub(S)):(w.isub(f),S.isub(b))}var K;return f.cmpn(1)===0?K=b:K=S,K.cmpn(0)<0&&K.iadd(o),K},s.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),w=o.clone();f.negative=0,w.negative=0;for(var b=0;f.isEven()&&w.isEven();b++)f.iushrn(1),w.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;w.isEven();)w.iushrn(1);var S=f.cmp(w);if(S<0){var k=f;f=w,w=k}else if(S===0||w.cmpn(1)===0)break;f.isub(w)}while(!0);return w.iushln(b)},s.prototype.invm=function(o){return this.egcd(o).a.umod(o)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(o){return this.words[0]&o},s.prototype.bincn=function(o){n(typeof o=="number");var f=o%26,w=(o-f)/26,b=1<>>26,N&=67108863,this.words[k]=N}return S!==0&&(this.words[k]=S,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this._strip();var w;if(this.length>1)w=1;else{f&&(o=-o),n(o<=67108863,"Number is too big");var b=this.words[0]|0;w=b===o?0:bo.length)return 1;if(this.length=0;w--){var b=this.words[w]|0,S=o.words[w]|0;if(b!==S){bS&&(f=1);break}}return f},s.prototype.gtn=function(o){return this.cmpn(o)===1},s.prototype.gt=function(o){return this.cmp(o)===1},s.prototype.gten=function(o){return this.cmpn(o)>=0},s.prototype.gte=function(o){return this.cmp(o)>=0},s.prototype.ltn=function(o){return this.cmpn(o)===-1},s.prototype.lt=function(o){return this.cmp(o)===-1},s.prototype.lten=function(o){return this.cmpn(o)<=0},s.prototype.lte=function(o){return this.cmp(o)<=0},s.prototype.eqn=function(o){return this.cmpn(o)===0},s.prototype.eq=function(o){return this.cmp(o)===0},s.red=function(o){return new oe(o)},s.prototype.toRed=function(o){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(o){return this.red=o,this},s.prototype.forceRed=function(o){return n(!this.red,"Already a number in reduction context"),this._forceRed(o)},s.prototype.redAdd=function(o){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},s.prototype.redIAdd=function(o){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},s.prototype.redSub=function(o){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},s.prototype.redISub=function(o){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},s.prototype.redShl=function(o){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},s.prototype.redMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},s.prototype.redIMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(o){return n(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function z(x,o){this.name=x,this.p=new s(o,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}z.prototype._tmp=function(){var o=new s(null);return o.words=new Array(Math.ceil(this.n/13)),o},z.prototype.ireduce=function(o){var f=o,w;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),w=f.bitLength();while(w>this.n);var b=w0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},z.prototype.split=function(o,f){o.iushrn(this.n,0,f)},z.prototype.imulK=function(o){return o.imul(this.k)};function te(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(te,z),te.prototype.split=function(o,f){for(var w=4194303,b=Math.min(o.length,9),S=0;S>>22,k=N}k>>>=22,o.words[S-10]=k,k===0&&o.length>10?o.length-=10:o.length-=9},te.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,w=0;w>>=26,o.words[w]=S,f=b}return f!==0&&(o.words[o.length++]=f),o},s._prime=function(o){if(j[o])return j[o];var f;if(o==="k256")f=new te;else if(o==="p224")f=new Y;else if(o==="p192")f=new Q;else if(o==="p25519")f=new fe;else throw new Error("Unknown prime "+o);return j[o]=f,f};function oe(x){if(typeof x=="string"){var o=s._prime(x);this.m=o.p,this.prime=o}else n(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}oe.prototype._verify1=function(o){n(o.negative===0,"red works only with positives"),n(o.red,"red works only with red numbers")},oe.prototype._verify2=function(o,f){n((o.negative|f.negative)===0,"red works only with positives"),n(o.red&&o.red===f.red,"red works only with red numbers")},oe.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(g(o,o.umod(this.m)._forceRed(this)),o)},oe.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},oe.prototype.add=function(o,f){this._verify2(o,f);var w=o.add(f);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},oe.prototype.iadd=function(o,f){this._verify2(o,f);var w=o.iadd(f);return w.cmp(this.m)>=0&&w.isub(this.m),w},oe.prototype.sub=function(o,f){this._verify2(o,f);var w=o.sub(f);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},oe.prototype.isub=function(o,f){this._verify2(o,f);var w=o.isub(f);return w.cmpn(0)<0&&w.iadd(this.m),w},oe.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},oe.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},oe.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},oe.prototype.isqr=function(o){return this.imul(o,o.clone())},oe.prototype.sqr=function(o){return this.mul(o,o)},oe.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(n(f%2===1),f===3){var w=this.m.add(new s(1)).iushrn(2);return this.pow(o,w)}for(var b=this.m.subn(1),S=0;!b.isZero()&&b.andln(1)===0;)S++,b.iushrn(1);n(!b.isZero());var k=new s(1).toRed(this),N=k.redNeg(),v=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);this.pow(u,v).cmp(N)!==0;)u.redIAdd(N);for(var R=this.pow(u,b),K=this.pow(o,b.addn(1).iushrn(1)),J=this.pow(o,b),T=S;J.cmp(k)!==0;){for(var $=J,W=0;$.cmp(k)!==0;W++)$=$.redSqr();n(W=0;S--){for(var R=f.words[S],K=u-1;K>=0;K--){var J=R>>K&1;if(k!==b[0]&&(k=this.sqr(k)),J===0&&N===0){v=0;continue}N<<=1,N|=J,v++,!(v!==w&&(S!==0||K!==0))&&(k=this.mul(k,b[N]),v=0,N=0)}u=26}return k},oe.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},oe.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},s.mont=function(o){return new pe(o)};function pe(x){oe.call(this,x),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(pe,oe),pe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},pe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},pe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var w=o.imul(f),b=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=w.isub(b).iushrn(this.shift),k=S;return S.cmp(this.m)>=0?k=S.isub(this.m):S.cmpn(0)<0&&(k=S.iadd(this.m)),k._forceRed(this)},pe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new s(0)._forceRed(this);var w=o.mul(f),b=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=w.isub(b).iushrn(this.shift),k=S;return S.cmp(this.m)>=0?k=S.isub(this.m):S.cmpn(0)<0&&(k=S.iadd(this.m)),k._forceRed(this)},pe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,ee)})(Qs);var ui=Qs.exports,wn={},Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.errorValues=Ft.standardErrorCodes=void 0;Ft.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}};Ft.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}};var hi={},di={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serialize=e.getErrorCode=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=Ft,r="Unspecified error message.";e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function n(_,A=r){if(_&&Number.isInteger(_)){const L=_.toString();if(g(t.errorValues,L))return t.errorValues[L].message;if(d(_))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return A}e.getMessageFromCode=n;function i(_){if(!Number.isInteger(_))return!1;const A=_.toString();return!!(t.errorValues[A]||d(_))}e.isValidCode=i;function s(_){var A;if(typeof _=="number")return _;if(c(_))return(A=_.code)!==null&&A!==void 0?A:_.errorCode}e.getErrorCode=s;function c(_){return typeof _=="object"&&_!==null&&(typeof _.code=="number"||typeof _.errorCode=="number")}function a(_,{shouldIncludeStack:A=!1}={}){const L={};if(_&&typeof _=="object"&&!Array.isArray(_)&&g(_,"code")&&i(_.code)){const H=_;L.code=H.code,H.message&&typeof H.message=="string"?(L.message=H.message,g(H,"data")&&(L.data=H.data)):(L.message=n(L.code),L.data={originalError:p(_)})}else L.code=t.standardErrorCodes.rpc.internal,L.message=y(_,"message")?_.message:r,L.data={originalError:p(_)};return A&&(L.stack=y(_,"stack")?_.stack:void 0),L}e.serialize=a;function d(_){return _>=-32099&&_<=-32e3}function p(_){return _&&typeof _=="object"&&!Array.isArray(_)?Object.assign({},_):_}function g(_,A){return Object.prototype.hasOwnProperty.call(_,A)}function y(_,A){return typeof _=="object"&&_!==null&&A in _&&typeof _[A]=="string"}})(di);Object.defineProperty(hi,"__esModule",{value:!0});hi.standardErrors=void 0;const et=Ft,mc=di;hi.standardErrors={rpc:{parse:e=>ft(et.standardErrorCodes.rpc.parse,e),invalidRequest:e=>ft(et.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>ft(et.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>ft(et.standardErrorCodes.rpc.methodNotFound,e),internal:e=>ft(et.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return ft(t,e)},invalidInput:e=>ft(et.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>ft(et.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>ft(et.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>ft(et.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>ft(et.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>ft(et.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>Tr(et.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>Tr(et.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>Tr(et.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>Tr(et.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>Tr(et.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>Tr(et.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:n}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new bc(t,r,n)}}};function ft(e,t){const[r,n]=wc(t);return new yc(e,r||(0,mc.getMessageFromCode)(e),n)}function Tr(e,t){const[r,n]=wc(t);return new bc(e,r||(0,mc.getMessageFromCode)(e),n)}function wc(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}let yc=class extends Error{constructor(t,r,n){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string.');super(r),this.code=t,n!==void 0&&(this.data=n)}},bc=class extends yc{constructor(t,r,n){if(!vu(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,r,n)}};function vu(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}var fi={},Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.isErrorResponse=void 0;function _u(e){return e.errorMessage!==void 0}Qr.isErrorResponse=_u;var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.LIB_VERSION=void 0;Yr.LIB_VERSION="3.9.3";Object.defineProperty(fi,"__esModule",{value:!0});fi.serializeError=void 0;const Eu=Qr,Su=Yr,Ru=Ft,Cu=di;function Mu(e,t){const r=(0,Cu.serialize)(ku(e),{shouldIncludeStack:!0}),n=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");n.searchParams.set("version",Su.LIB_VERSION),n.searchParams.set("code",r.code.toString());const i=xu(r.data,t);return i&&n.searchParams.set("method",i),n.searchParams.set("message",r.message),Object.assign(Object.assign({},r),{docUrl:n.href})}fi.serializeError=Mu;function ku(e){return typeof e=="string"?{message:e,code:Ru.standardErrorCodes.rpc.internal}:(0,Eu.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e}function xu(e,t){const r=e==null?void 0:e.method;if(r)return r;if(t!==void 0){if(typeof t=="string")return t;if(Array.isArray(t)){if(t.length>0)return t[0].method}else return t.method}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.standardErrors=e.standardErrorCodes=e.serializeError=e.getMessageFromCode=e.getErrorCode=void 0;const t=Ft;Object.defineProperty(e,"standardErrorCodes",{enumerable:!0,get:function(){return t.standardErrorCodes}});const r=hi;Object.defineProperty(e,"standardErrors",{enumerable:!0,get:function(){return r.standardErrors}});const n=fi;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}});const i=di;Object.defineProperty(e,"getErrorCode",{enumerable:!0,get:function(){return i.getErrorCode}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}})})(wn);var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.ProviderType=Ze.RegExpString=Ze.IntNumber=Ze.BigIntString=Ze.AddressString=Ze.HexString=Ze.OpaqueType=void 0;function yn(){return e=>e}Ze.OpaqueType=yn;Ze.HexString=yn();Ze.AddressString=yn();Ze.BigIntString=yn();function Iu(e){return Math.floor(e)}Ze.IntNumber=Iu;Ze.RegExpString=yn();var $o;(function(e){e.CoinbaseWallet="CoinbaseWallet",e.MetaMask="MetaMask",e.Unselected=""})($o||(Ze.ProviderType=$o={}));var Au=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(X,"__esModule",{value:!0});X.isMobileWeb=X.getLocation=X.isInIFrame=X.createQrUrl=X.getFavicon=X.range=X.isBigNumber=X.ensureParsedJSONObject=X.ensureBN=X.ensureRegExpString=X.ensureIntNumber=X.ensureBuffer=X.ensureAddressString=X.ensureEvenLengthHexString=X.ensureHexString=X.isHexString=X.prepend0x=X.strip0x=X.has0xPrefix=X.hexStringFromIntNumber=X.intNumberFromHexString=X.bigIntStringFromBN=X.hexStringFromBuffer=X.hexStringToUint8Array=X.uint8ArrayToHex=X.randomBytesHex=void 0;const Ht=Au(ui),yr=wn,yt=Ze,vc=/^[0-9]*$/,_c=/^[a-f0-9]*$/;function Tu(e){return Ec(crypto.getRandomValues(new Uint8Array(e)))}X.randomBytesHex=Tu;function Ec(e){return[...e].map(t=>t.toString(16).padStart(2,"0")).join("")}X.uint8ArrayToHex=Ec;function Nu(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>parseInt(t,16)))}X.hexStringToUint8Array=Nu;function Lu(e,t=!1){const r=e.toString("hex");return(0,yt.HexString)(t?`0x${r}`:r)}X.hexStringFromBuffer=Lu;function Bu(e){return(0,yt.BigIntString)(e.toString(10))}X.bigIntStringFromBN=Bu;function Pu(e){return(0,yt.IntNumber)(new Ht.default(vn(e,!1),16).toNumber())}X.intNumberFromHexString=Pu;function Ou(e){return(0,yt.HexString)(`0x${new Ht.default(e).toString(16)}`)}X.hexStringFromIntNumber=Ou;function Ys(e){return e.startsWith("0x")||e.startsWith("0X")}X.has0xPrefix=Ys;function pi(e){return Ys(e)?e.slice(2):e}X.strip0x=pi;function Sc(e){return Ys(e)?`0x${e.slice(2)}`:`0x${e}`}X.prepend0x=Sc;function bn(e){if(typeof e!="string")return!1;const t=pi(e).toLowerCase();return _c.test(t)}X.isHexString=bn;function Rc(e,t=!1){if(typeof e=="string"){const r=pi(e).toLowerCase();if(_c.test(r))return(0,yt.HexString)(t?`0x${r}`:r)}throw yr.standardErrors.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`)}X.ensureHexString=Rc;function vn(e,t=!1){let r=Rc(e,!1);return r.length%2===1&&(r=(0,yt.HexString)(`0${r}`)),t?(0,yt.HexString)(`0x${r}`):r}X.ensureEvenLengthHexString=vn;function $u(e){if(typeof e=="string"){const t=pi(e).toLowerCase();if(bn(t)&&t.length===40)return(0,yt.AddressString)(Sc(t))}throw yr.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}X.ensureAddressString=$u;function Fu(e){if(Buffer.isBuffer(e))return e;if(typeof e=="string"){if(bn(e)){const t=vn(e,!1);return Buffer.from(t,"hex")}return Buffer.from(e,"utf8")}throw yr.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)}X.ensureBuffer=Fu;function Cc(e){if(typeof e=="number"&&Number.isInteger(e))return(0,yt.IntNumber)(e);if(typeof e=="string"){if(vc.test(e))return(0,yt.IntNumber)(Number(e));if(bn(e))return(0,yt.IntNumber)(new Ht.default(vn(e,!1),16).toNumber())}throw yr.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}X.ensureIntNumber=Cc;function Du(e){if(e instanceof RegExp)return(0,yt.RegExpString)(e.toString());throw yr.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)}X.ensureRegExpString=Du;function ju(e){if(e!==null&&(Ht.default.isBN(e)||Mc(e)))return new Ht.default(e.toString(10),10);if(typeof e=="number")return new Ht.default(Cc(e));if(typeof e=="string"){if(vc.test(e))return new Ht.default(e,10);if(bn(e))return new Ht.default(vn(e,!1),16)}throw yr.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}X.ensureBN=ju;function Uu(e){if(typeof e=="string")return JSON.parse(e);if(typeof e=="object")return e;throw yr.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}X.ensureParsedJSONObject=Uu;function Mc(e){if(e==null||typeof e.constructor!="function")return!1;const{constructor:t}=e;return typeof t.config=="function"&&typeof t.EUCLID=="number"}X.isBigNumber=Mc;function Hu(e,t){return Array.from({length:t-e},(r,n)=>e+n)}X.range=Hu;function Wu(){const e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:t,host:r}=document.location,n=e?e.getAttribute("href"):null;return!n||n.startsWith("javascript:")||n.startsWith("vbscript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?t+n:`${t}//${r}${n}`}X.getFavicon=Wu;function Vu(e,t,r,n,i,s){const c=n?"parent-id":"id",a=new URLSearchParams({[c]:e,secret:t,server:r,v:i,chainId:s.toString()}).toString();return`${r}/#/link?${a}`}X.createQrUrl=Vu;function kc(){try{return window.frameElement!==null}catch{return!1}}X.isInIFrame=kc;function qu(){try{return kc()&&window.top?window.top.location:window.location}catch{return window.location}}X.getLocation=qu;function zu(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((e=window==null?void 0:window.navigator)===null||e===void 0?void 0:e.userAgent)}X.isMobileWeb=zu;var gi={};Object.defineProperty(gi,"__esModule",{value:!0});gi.ScopedLocalStorage=void 0;class Gu{constructor(t){this.scope=t}setItem(t,r){localStorage.setItem(this.scopedKey(t),r)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){const t=this.scopedKey(""),r=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(t){return`${this.scope}:${t}`}}gi.ScopedLocalStorage=Gu;var Vr={},xc={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(d,p,g){this.fn=d,this.context=p,this.once=g||!1}function s(d,p,g,y,_){if(typeof g!="function")throw new TypeError("The listener must be a function");var A=new i(g,y||d,_),L=r?r+p:p;return d._events[L]?d._events[L].fn?d._events[L]=[d._events[L],A]:d._events[L].push(A):(d._events[L]=A,d._eventsCount++),d}function c(d,p){--d._eventsCount===0?d._events=new n:delete d._events[p]}function a(){this._events=new n,this._eventsCount=0}a.prototype.eventNames=function(){var p=[],g,y;if(this._eventsCount===0)return p;for(y in g=this._events)t.call(g,y)&&p.push(r?y.slice(1):y);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(g)):p},a.prototype.listeners=function(p){var g=r?r+p:p,y=this._events[g];if(!y)return[];if(y.fn)return[y.fn];for(var _=0,A=y.length,L=new Array(A);_n.json()).then(n=>{if(!n)throw Fo.standardErrors.rpc.parse({});const i=n,{error:s}=i;if(s)throw(0,Fo.serializeError)(s,t.method);return i})}}wt.RelayAbstract=Zu;var en={},Ic={exports:{}},js={exports:{}};typeof Object.create=="function"?js.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:js.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var St=js.exports,Us={exports:{}},Sn={},mi={};mi.byteLength=Yu;mi.toByteArray=eh;mi.fromByteArray=nh;var Tt=[],mt=[],Ku=typeof Uint8Array<"u"?Uint8Array:Array,us="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Nr=0,Qu=us.length;Nr0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Yu(e){var t=Ac(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Xu(e,t,r){return(t+r)*3/4-r}function eh(e){var t,r=Ac(e),n=r[0],i=r[1],s=new Ku(Xu(e,n,i)),c=0,a=i>0?n-4:n,d;for(d=0;d>16&255,s[c++]=t>>8&255,s[c++]=t&255;return i===2&&(t=mt[e.charCodeAt(d)]<<2|mt[e.charCodeAt(d+1)]>>4,s[c++]=t&255),i===1&&(t=mt[e.charCodeAt(d)]<<10|mt[e.charCodeAt(d+1)]<<4|mt[e.charCodeAt(d+2)]>>2,s[c++]=t>>8&255,s[c++]=t&255),s}function th(e){return Tt[e>>18&63]+Tt[e>>12&63]+Tt[e>>6&63]+Tt[e&63]}function rh(e,t,r){for(var n,i=[],s=t;sa?a:c+s));return n===1?(t=e[r-1],i.push(Tt[t>>2]+Tt[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Tt[t>>10]+Tt[t>>4&63]+Tt[t<<2&63]+"=")),i.join("")}var Xs={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Xs.read=function(e,t,r,n,i){var s,c,a=i*8-n-1,d=(1<>1,g=-7,y=r?i-1:0,_=r?-1:1,A=e[t+y];for(y+=_,s=A&(1<<-g)-1,A>>=-g,g+=a;g>0;s=s*256+e[t+y],y+=_,g-=8);for(c=s&(1<<-g)-1,s>>=-g,g+=n;g>0;c=c*256+e[t+y],y+=_,g-=8);if(s===0)s=1-p;else{if(s===d)return c?NaN:(A?-1:1)*(1/0);c=c+Math.pow(2,n),s=s-p}return(A?-1:1)*c*Math.pow(2,s-n)};Xs.write=function(e,t,r,n,i,s){var c,a,d,p=s*8-i-1,g=(1<>1,_=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=n?0:s-1,L=n?1:-1,H=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,c=g):(c=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-c))<1&&(c--,d*=2),c+y>=1?t+=_/d:t+=_*Math.pow(2,1-y),t*d>=2&&(c++,d/=2),c+y>=g?(a=0,c=g):c+y>=1?(a=(t*d-1)*Math.pow(2,i),c=c+y):(a=t*Math.pow(2,y-1)*Math.pow(2,i),c=0));i>=8;e[r+A]=a&255,A+=L,a/=256,i-=8);for(c=c<0;e[r+A]=c&255,A+=L,c/=256,p-=8);e[r+A-L]|=H*128};/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */(function(e){const t=mi,r=Xs,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=s(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const m=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(m,l),m.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function c(m){if(m>i)throw new RangeError('The value "'+m+'" is invalid for option "size"');const l=new Uint8Array(m);return Object.setPrototypeOf(l,a.prototype),l}function a(m,l,h){if(typeof m=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(m)}return d(m,l,h)}a.poolSize=8192;function d(m,l,h){if(typeof m=="string")return _(m,l);if(ArrayBuffer.isView(m))return L(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(Je(m,ArrayBuffer)||m&&Je(m.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Je(m,SharedArrayBuffer)||m&&Je(m.buffer,SharedArrayBuffer)))return H(m,l,h);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const E=m.valueOf&&m.valueOf();if(E!=null&&E!==m)return a.from(E,l,h);const P=F(m);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return a.from(m[Symbol.toPrimitive]("string"),l,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}a.from=function(m,l,h){return d(m,l,h)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function p(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function g(m,l,h){return p(m),m<=0?c(m):l!==void 0?typeof h=="string"?c(m).fill(l,h):c(m).fill(l):c(m)}a.alloc=function(m,l,h){return g(m,l,h)};function y(m){return p(m),c(m<0?0:I(m)|0)}a.allocUnsafe=function(m){return y(m)},a.allocUnsafeSlow=function(m){return y(m)};function _(m,l){if((typeof l!="string"||l==="")&&(l="utf8"),!a.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const h=B(m,l)|0;let E=c(h);const P=E.write(m,l);return P!==h&&(E=E.slice(0,P)),E}function A(m){const l=m.length<0?0:I(m.length)|0,h=c(l);for(let E=0;E=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return m|0}function O(m){return+m!=m&&(m=0),a.alloc(+m)}a.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==a.prototype},a.compare=function(l,h){if(Je(l,Uint8Array)&&(l=a.from(l,l.offset,l.byteLength)),Je(h,Uint8Array)&&(h=a.from(h,h.offset,h.byteLength)),!a.isBuffer(l)||!a.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===h)return 0;let E=l.length,P=h.length;for(let D=0,U=Math.min(E,P);DP.length?(a.isBuffer(U)||(U=a.from(U)),U.copy(P,D)):Uint8Array.prototype.set.call(P,U,D);else if(a.isBuffer(U))U.copy(P,D);else throw new TypeError('"list" argument must be an Array of Buffers');D+=U.length}return P};function B(m,l){if(a.isBuffer(m))return m.length;if(ArrayBuffer.isView(m)||Je(m,ArrayBuffer))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);const h=m.length,E=arguments.length>2&&arguments[2]===!0;if(!E&&h===0)return 0;let P=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return re(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return Se(m).length;default:if(P)return E?-1:re(m).length;l=(""+l).toLowerCase(),P=!0}}a.byteLength=B;function V(m,l,h){let E=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,l>>>=0,h<=l))return"";for(m||(m="utf8");;)switch(m){case"hex":return k(this,l,h);case"utf8":case"utf-8":return o(this,l,h);case"ascii":return b(this,l,h);case"latin1":case"binary":return S(this,l,h);case"base64":return x(this,l,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,l,h);default:if(E)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),E=!0}}a.prototype._isBuffer=!0;function j(m,l,h){const E=m[l];m[l]=m[h],m[h]=E}a.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let h=0;hh&&(l+=" ... "),""},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(l,h,E,P,D){if(Je(l,Uint8Array)&&(l=a.from(l,l.offset,l.byteLength)),!a.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(h===void 0&&(h=0),E===void 0&&(E=l?l.length:0),P===void 0&&(P=0),D===void 0&&(D=this.length),h<0||E>l.length||P<0||D>this.length)throw new RangeError("out of range index");if(P>=D&&h>=E)return 0;if(P>=D)return-1;if(h>=E)return 1;if(h>>>=0,E>>>=0,P>>>=0,D>>>=0,this===l)return 0;let U=D-P,he=E-h;const ae=Math.min(U,he),ie=this.slice(P,D),Ce=l.slice(h,E);for(let ne=0;ne2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,ve(h)&&(h=P?0:m.length-1),h<0&&(h=m.length+h),h>=m.length){if(P)return-1;h=m.length-1}else if(h<0)if(P)h=0;else return-1;if(typeof l=="string"&&(l=a.from(l,E)),a.isBuffer(l))return l.length===0?-1:te(m,l,h,E,P);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(m,l,h):Uint8Array.prototype.lastIndexOf.call(m,l,h):te(m,[l],h,E,P);throw new TypeError("val must be string, number or Buffer")}function te(m,l,h,E,P){let D=1,U=m.length,he=l.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(m.length<2||l.length<2)return-1;D=2,U/=2,he/=2,h/=2}function ae(Ce,ne){return D===1?Ce[ne]:Ce.readUInt16BE(ne*D)}let ie;if(P){let Ce=-1;for(ie=h;ieU&&(h=U-he),ie=h;ie>=0;ie--){let Ce=!0;for(let ne=0;neP&&(E=P)):E=P;const D=l.length;E>D/2&&(E=D/2);let U;for(U=0;U>>0,isFinite(E)?(E=E>>>0,P===void 0&&(P="utf8")):(P=E,E=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const D=this.length-h;if((E===void 0||E>D)&&(E=D),l.length>0&&(E<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");let U=!1;for(;;)switch(P){case"hex":return Y(this,l,h,E);case"utf8":case"utf-8":return Q(this,l,h,E);case"ascii":case"latin1":case"binary":return fe(this,l,h,E);case"base64":return oe(this,l,h,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,l,h,E);default:if(U)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),U=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function x(m,l,h){return l===0&&h===m.length?t.fromByteArray(m):t.fromByteArray(m.slice(l,h))}function o(m,l,h){h=Math.min(m.length,h);const E=[];let P=l;for(;P239?4:D>223?3:D>191?2:1;if(P+he<=h){let ae,ie,Ce,ne;switch(he){case 1:D<128&&(U=D);break;case 2:ae=m[P+1],(ae&192)===128&&(ne=(D&31)<<6|ae&63,ne>127&&(U=ne));break;case 3:ae=m[P+1],ie=m[P+2],(ae&192)===128&&(ie&192)===128&&(ne=(D&15)<<12|(ae&63)<<6|ie&63,ne>2047&&(ne<55296||ne>57343)&&(U=ne));break;case 4:ae=m[P+1],ie=m[P+2],Ce=m[P+3],(ae&192)===128&&(ie&192)===128&&(Ce&192)===128&&(ne=(D&15)<<18|(ae&63)<<12|(ie&63)<<6|Ce&63,ne>65535&&ne<1114112&&(U=ne))}}U===null?(U=65533,he=1):U>65535&&(U-=65536,E.push(U>>>10&1023|55296),U=56320|U&1023),E.push(U),P+=he}return w(E)}const f=4096;function w(m){const l=m.length;if(l<=f)return String.fromCharCode.apply(String,m);let h="",E=0;for(;EE)&&(h=E);let P="";for(let D=l;DE&&(l=E),h<0?(h+=E,h<0&&(h=0)):h>E&&(h=E),hh)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(l,h,E){l=l>>>0,h=h>>>0,E||v(l,h,this.length);let P=this[l],D=1,U=0;for(;++U>>0,h=h>>>0,E||v(l,h,this.length);let P=this[l+--h],D=1;for(;h>0&&(D*=256);)P+=this[l+--h]*D;return P},a.prototype.readUint8=a.prototype.readUInt8=function(l,h){return l=l>>>0,h||v(l,1,this.length),this[l]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(l,h){return l=l>>>0,h||v(l,2,this.length),this[l]|this[l+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(l,h){return l=l>>>0,h||v(l,2,this.length),this[l]<<8|this[l+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(l,h){return l=l>>>0,h||v(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(l,h){return l=l>>>0,h||v(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},a.prototype.readBigUInt64LE=Qe(function(l){l=l>>>0,q(l,"offset");const h=this[l],E=this[l+7];(h===void 0||E===void 0)&&G(l,this.length-8);const P=h+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,D=this[++l]+this[++l]*2**8+this[++l]*2**16+E*2**24;return BigInt(P)+(BigInt(D)<>>0,q(l,"offset");const h=this[l],E=this[l+7];(h===void 0||E===void 0)&&G(l,this.length-8);const P=h*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],D=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+E;return(BigInt(P)<>>0,h=h>>>0,E||v(l,h,this.length);let P=this[l],D=1,U=0;for(;++U=D&&(P-=Math.pow(2,8*h)),P},a.prototype.readIntBE=function(l,h,E){l=l>>>0,h=h>>>0,E||v(l,h,this.length);let P=h,D=1,U=this[l+--P];for(;P>0&&(D*=256);)U+=this[l+--P]*D;return D*=128,U>=D&&(U-=Math.pow(2,8*h)),U},a.prototype.readInt8=function(l,h){return l=l>>>0,h||v(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},a.prototype.readInt16LE=function(l,h){l=l>>>0,h||v(l,2,this.length);const E=this[l]|this[l+1]<<8;return E&32768?E|4294901760:E},a.prototype.readInt16BE=function(l,h){l=l>>>0,h||v(l,2,this.length);const E=this[l+1]|this[l]<<8;return E&32768?E|4294901760:E},a.prototype.readInt32LE=function(l,h){return l=l>>>0,h||v(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},a.prototype.readInt32BE=function(l,h){return l=l>>>0,h||v(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},a.prototype.readBigInt64LE=Qe(function(l){l=l>>>0,q(l,"offset");const h=this[l],E=this[l+7];(h===void 0||E===void 0)&&G(l,this.length-8);const P=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(E<<24);return(BigInt(P)<>>0,q(l,"offset");const h=this[l],E=this[l+7];(h===void 0||E===void 0)&&G(l,this.length-8);const P=(h<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(P)<>>0,h||v(l,4,this.length),r.read(this,l,!0,23,4)},a.prototype.readFloatBE=function(l,h){return l=l>>>0,h||v(l,4,this.length),r.read(this,l,!1,23,4)},a.prototype.readDoubleLE=function(l,h){return l=l>>>0,h||v(l,8,this.length),r.read(this,l,!0,52,8)},a.prototype.readDoubleBE=function(l,h){return l=l>>>0,h||v(l,8,this.length),r.read(this,l,!1,52,8)};function u(m,l,h,E,P,D){if(!a.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>P||lm.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(l,h,E,P){if(l=+l,h=h>>>0,E=E>>>0,!P){const he=Math.pow(2,8*E)-1;u(this,l,h,E,he,0)}let D=1,U=0;for(this[h]=l&255;++U>>0,E=E>>>0,!P){const he=Math.pow(2,8*E)-1;u(this,l,h,E,he,0)}let D=E-1,U=1;for(this[h+D]=l&255;--D>=0&&(U*=256);)this[h+D]=l/U&255;return h+E},a.prototype.writeUint8=a.prototype.writeUInt8=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,1,255,0),this[h]=l&255,h+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,2,65535,0),this[h]=l&255,this[h+1]=l>>>8,h+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,2,65535,0),this[h]=l>>>8,this[h+1]=l&255,h+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,4,4294967295,0),this[h+3]=l>>>24,this[h+2]=l>>>16,this[h+1]=l>>>8,this[h]=l&255,h+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,4,4294967295,0),this[h]=l>>>24,this[h+1]=l>>>16,this[h+2]=l>>>8,this[h+3]=l&255,h+4};function R(m,l,h,E,P){M(l,E,P,m,h,7);let D=Number(l&BigInt(4294967295));m[h++]=D,D=D>>8,m[h++]=D,D=D>>8,m[h++]=D,D=D>>8,m[h++]=D;let U=Number(l>>BigInt(32)&BigInt(4294967295));return m[h++]=U,U=U>>8,m[h++]=U,U=U>>8,m[h++]=U,U=U>>8,m[h++]=U,h}function K(m,l,h,E,P){M(l,E,P,m,h,7);let D=Number(l&BigInt(4294967295));m[h+7]=D,D=D>>8,m[h+6]=D,D=D>>8,m[h+5]=D,D=D>>8,m[h+4]=D;let U=Number(l>>BigInt(32)&BigInt(4294967295));return m[h+3]=U,U=U>>8,m[h+2]=U,U=U>>8,m[h+1]=U,U=U>>8,m[h]=U,h+8}a.prototype.writeBigUInt64LE=Qe(function(l,h=0){return R(this,l,h,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Qe(function(l,h=0){return K(this,l,h,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(l,h,E,P){if(l=+l,h=h>>>0,!P){const ae=Math.pow(2,8*E-1);u(this,l,h,E,ae-1,-ae)}let D=0,U=1,he=0;for(this[h]=l&255;++D>0)-he&255;return h+E},a.prototype.writeIntBE=function(l,h,E,P){if(l=+l,h=h>>>0,!P){const ae=Math.pow(2,8*E-1);u(this,l,h,E,ae-1,-ae)}let D=E-1,U=1,he=0;for(this[h+D]=l&255;--D>=0&&(U*=256);)l<0&&he===0&&this[h+D+1]!==0&&(he=1),this[h+D]=(l/U>>0)-he&255;return h+E},a.prototype.writeInt8=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,1,127,-128),l<0&&(l=255+l+1),this[h]=l&255,h+1},a.prototype.writeInt16LE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,2,32767,-32768),this[h]=l&255,this[h+1]=l>>>8,h+2},a.prototype.writeInt16BE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,2,32767,-32768),this[h]=l>>>8,this[h+1]=l&255,h+2},a.prototype.writeInt32LE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,4,2147483647,-2147483648),this[h]=l&255,this[h+1]=l>>>8,this[h+2]=l>>>16,this[h+3]=l>>>24,h+4},a.prototype.writeInt32BE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[h]=l>>>24,this[h+1]=l>>>16,this[h+2]=l>>>8,this[h+3]=l&255,h+4},a.prototype.writeBigInt64LE=Qe(function(l,h=0){return R(this,l,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Qe(function(l,h=0){return K(this,l,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function J(m,l,h,E,P,D){if(h+E>m.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function T(m,l,h,E,P){return l=+l,h=h>>>0,P||J(m,l,h,4),r.write(m,l,h,E,23,4),h+4}a.prototype.writeFloatLE=function(l,h,E){return T(this,l,h,!0,E)},a.prototype.writeFloatBE=function(l,h,E){return T(this,l,h,!1,E)};function $(m,l,h,E,P){return l=+l,h=h>>>0,P||J(m,l,h,8),r.write(m,l,h,E,52,8),h+8}a.prototype.writeDoubleLE=function(l,h,E){return $(this,l,h,!0,E)},a.prototype.writeDoubleBE=function(l,h,E){return $(this,l,h,!1,E)},a.prototype.copy=function(l,h,E,P){if(!a.isBuffer(l))throw new TypeError("argument should be a Buffer");if(E||(E=0),!P&&P!==0&&(P=this.length),h>=l.length&&(h=l.length),h||(h=0),P>0&&P=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),l.length-h>>0,E=E===void 0?this.length:E>>>0,l||(l=0);let D;if(typeof l=="number")for(D=h;D2**32?P=le(String(h)):typeof h=="bigint"&&(P=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(P=le(P)),P+="n"),E+=` It must be ${l}. Received ${P}`,E},RangeError);function le(m){let l="",h=m.length;const E=m[0]==="-"?1:0;for(;h>=E+4;h-=3)l=`_${m.slice(h-3,h)}${l}`;return`${m.slice(0,h)}${l}`}function C(m,l,h){q(l,"offset"),(m[l]===void 0||m[l+h]===void 0)&&G(l,m.length-(h+1))}function M(m,l,h,E,P,D){if(m>h||m= 0${U} and < 2${U} ** ${(D+1)*8}${U}`:he=`>= -(2${U} ** ${(D+1)*8-1}${U}) and < 2 ** ${(D+1)*8-1}${U}`,new W.ERR_OUT_OF_RANGE("value",he,m)}C(E,P,D)}function q(m,l){if(typeof m!="number")throw new W.ERR_INVALID_ARG_TYPE(l,"number",m)}function G(m,l,h){throw Math.floor(m)!==m?(q(m,h),new W.ERR_OUT_OF_RANGE("offset","an integer",m)):l<0?new W.ERR_BUFFER_OUT_OF_BOUNDS:new W.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,m)}const se=/[^+/0-9A-Za-z-_]/g;function ue(m){if(m=m.split("=")[0],m=m.trim().replace(se,""),m.length<2)return"";for(;m.length%4!==0;)m=m+"=";return m}function re(m,l){l=l||1/0;let h;const E=m.length;let P=null;const D=[];for(let U=0;U55295&&h<57344){if(!P){if(h>56319){(l-=3)>-1&&D.push(239,191,189);continue}else if(U+1===E){(l-=3)>-1&&D.push(239,191,189);continue}P=h;continue}if(h<56320){(l-=3)>-1&&D.push(239,191,189),P=h;continue}h=(P-55296<<10|h-56320)+65536}else P&&(l-=3)>-1&&D.push(239,191,189);if(P=null,h<128){if((l-=1)<0)break;D.push(h)}else if(h<2048){if((l-=2)<0)break;D.push(h>>6|192,h&63|128)}else if(h<65536){if((l-=3)<0)break;D.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((l-=4)<0)break;D.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return D}function be(m){const l=[];for(let h=0;h>8,P=h%256,D.push(P),D.push(E);return D}function Se(m){return t.toByteArray(ue(m))}function Ee(m,l,h,E){let P;for(P=0;P=l.length||P>=m.length);++P)l[P+h]=m[P];return P}function Je(m,l){return m instanceof l||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===l.name}function ve(m){return m!==m}const Re=function(){const m="0123456789abcdef",l=new Array(256);for(let h=0;h<16;++h){const E=h*16;for(let P=0;P<16;++P)l[E+P]=m[h]+m[P]}return l}();function Qe(m){return typeof BigInt>"u"?_e:m}function _e(){throw new Error("BigInt not supported")}})(Sn);/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(e,t){var r=Sn,n=r.Buffer;function i(c,a){for(var d in c)a[d]=c[d]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=s);function s(c,a,d){return n(c,a,d)}s.prototype=Object.create(n.prototype),i(n,s),s.from=function(c,a,d){if(typeof c=="number")throw new TypeError("Argument must not be a number");return n(c,a,d)},s.alloc=function(c,a,d){if(typeof c!="number")throw new TypeError("Argument must be a number");var p=n(c);return a!==void 0?typeof d=="string"?p.fill(a,d):p.fill(a):p.fill(0),p},s.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return n(c)},s.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(c)}})(Us,Us.exports);var zt=Us.exports,Tc=zt.Buffer;function wi(e,t){this._block=Tc.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}wi.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=Tc.from(e,t));for(var r=this._block,n=this._blockSize,i=e.length,s=this._len,c=0;c=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(r&4294967295)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var s=this._hash();return e?s.toString(e):s};wi.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var tn=wi,ih=St,Nc=tn,sh=zt.Buffer,oh=[1518500249,1859775393,-1894007588,-899497514],ah=new Array(80);function Rn(){this.init(),this._w=ah,Nc.call(this,64,56)}ih(Rn,Nc);Rn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function ch(e){return e<<5|e>>>27}function lh(e){return e<<30|e>>>2}function uh(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}Rn.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,a=0;a<16;++a)t[a]=e.readInt32BE(a*4);for(;a<80;++a)t[a]=t[a-3]^t[a-8]^t[a-14]^t[a-16];for(var d=0;d<80;++d){var p=~~(d/20),g=ch(r)+uh(p,n,i,s)+c+t[d]+oh[p]|0;c=s,s=i,i=lh(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0};Rn.prototype._hash=function(){var e=sh.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var hh=Rn,dh=St,Lc=tn,fh=zt.Buffer,ph=[1518500249,1859775393,-1894007588,-899497514],gh=new Array(80);function Cn(){this.init(),this._w=gh,Lc.call(this,64,56)}dh(Cn,Lc);Cn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function mh(e){return e<<1|e>>>31}function wh(e){return e<<5|e>>>27}function yh(e){return e<<30|e>>>2}function bh(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}Cn.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,a=0;a<16;++a)t[a]=e.readInt32BE(a*4);for(;a<80;++a)t[a]=mh(t[a-3]^t[a-8]^t[a-14]^t[a-16]);for(var d=0;d<80;++d){var p=~~(d/20),g=wh(r)+bh(p,n,i,s)+c+t[d]+ph[p]|0;c=s,s=i,i=yh(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0};Cn.prototype._hash=function(){var e=fh.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var vh=Cn,_h=St,Bc=tn,Eh=zt.Buffer,Sh=[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],Rh=new Array(64);function Mn(){this.init(),this._w=Rh,Bc.call(this,64,56)}_h(Mn,Bc);Mn.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function Ch(e,t,r){return r^e&(t^r)}function Mh(e,t,r){return e&t|r&(e|t)}function kh(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function xh(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function Ih(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function Ah(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}Mn.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,a=this._f|0,d=this._g|0,p=this._h|0,g=0;g<16;++g)t[g]=e.readInt32BE(g*4);for(;g<64;++g)t[g]=Ah(t[g-2])+t[g-7]+Ih(t[g-15])+t[g-16]|0;for(var y=0;y<64;++y){var _=p+xh(c)+Ch(c,a,d)+Sh[y]+t[y]|0,A=kh(r)+Mh(r,n,i)|0;p=d,d=a,a=c,c=s+_|0,s=i,i=n,n=r,r=_+A|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=a+this._f|0,this._g=d+this._g|0,this._h=p+this._h|0};Mn.prototype._hash=function(){var e=Eh.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var Pc=Mn,Th=St,Nh=Pc,Lh=tn,Bh=zt.Buffer,Ph=new Array(64);function yi(){this.init(),this._w=Ph,Lh.call(this,64,56)}Th(yi,Nh);yi.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};yi.prototype._hash=function(){var e=Bh.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var Oh=yi,$h=St,Oc=tn,Fh=zt.Buffer,Do=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Dh=new Array(160);function kn(){this.init(),this._w=Dh,Oc.call(this,128,112)}$h(kn,Oc);kn.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function jo(e,t,r){return r^e&(t^r)}function Uo(e,t,r){return e&t|r&(e|t)}function Ho(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function Wo(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function jh(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Uh(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Hh(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Wh(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Ye(e,t){return e>>>0>>0?1:0}kn.prototype._update=function(e){for(var t=this._w,r=this._ah|0,n=this._bh|0,i=this._ch|0,s=this._dh|0,c=this._eh|0,a=this._fh|0,d=this._gh|0,p=this._hh|0,g=this._al|0,y=this._bl|0,_=this._cl|0,A=this._dl|0,L=this._el|0,H=this._fl|0,F=this._gl|0,I=this._hl|0,O=0;O<32;O+=2)t[O]=e.readInt32BE(O*4),t[O+1]=e.readInt32BE(O*4+4);for(;O<160;O+=2){var B=t[O-30],V=t[O-15*2+1],j=jh(B,V),z=Uh(V,B);B=t[O-2*2],V=t[O-2*2+1];var te=Hh(B,V),Y=Wh(V,B),Q=t[O-7*2],fe=t[O-7*2+1],oe=t[O-16*2],pe=t[O-16*2+1],x=z+fe|0,o=j+Q+Ye(x,z)|0;x=x+Y|0,o=o+te+Ye(x,Y)|0,x=x+pe|0,o=o+oe+Ye(x,pe)|0,t[O]=o,t[O+1]=x}for(var f=0;f<160;f+=2){o=t[f],x=t[f+1];var w=Uo(r,n,i),b=Uo(g,y,_),S=Ho(r,g),k=Ho(g,r),N=Wo(c,L),v=Wo(L,c),u=Do[f],R=Do[f+1],K=jo(c,a,d),J=jo(L,H,F),T=I+v|0,$=p+N+Ye(T,I)|0;T=T+J|0,$=$+K+Ye(T,J)|0,T=T+R|0,$=$+u+Ye(T,R)|0,T=T+x|0,$=$+o+Ye(T,x)|0;var W=k+b|0,Z=S+w+Ye(W,k)|0;p=d,I=F,d=a,F=H,a=c,H=L,L=A+T|0,c=s+$+Ye(L,A)|0,s=i,A=_,i=n,_=y,n=r,y=g,g=T+W|0,r=$+Z+Ye(g,T)|0}this._al=this._al+g|0,this._bl=this._bl+y|0,this._cl=this._cl+_|0,this._dl=this._dl+A|0,this._el=this._el+L|0,this._fl=this._fl+H|0,this._gl=this._gl+F|0,this._hl=this._hl+I|0,this._ah=this._ah+r+Ye(this._al,g)|0,this._bh=this._bh+n+Ye(this._bl,y)|0,this._ch=this._ch+i+Ye(this._cl,_)|0,this._dh=this._dh+s+Ye(this._dl,A)|0,this._eh=this._eh+c+Ye(this._el,L)|0,this._fh=this._fh+a+Ye(this._fl,H)|0,this._gh=this._gh+d+Ye(this._gl,F)|0,this._hh=this._hh+p+Ye(this._hl,I)|0};kn.prototype._hash=function(){var e=Fh.allocUnsafe(64);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var $c=kn,Vh=St,qh=$c,zh=tn,Gh=zt.Buffer,Jh=new Array(160);function bi(){this.init(),this._w=Jh,zh.call(this,128,112)}Vh(bi,qh);bi.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};bi.prototype._hash=function(){var e=Gh.allocUnsafe(48);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var Zh=bi,br=Ic.exports=function(t){t=t.toLowerCase();var r=br[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r};br.sha=hh;br.sha1=vh;br.sha224=Oh;br.sha256=Pc;br.sha384=Zh;br.sha512=$c;var Kh=Ic.exports;Object.defineProperty(en,"__esModule",{value:!0});en.Session=void 0;const Vo=Kh,qo=X,zo="session:id",Go="session:secret",Jo="session:linked";class eo{constructor(t,r,n,i){this._storage=t,this._id=r||(0,qo.randomBytesHex)(16),this._secret=n||(0,qo.randomBytesHex)(32),this._key=new Vo.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!i}static load(t){const r=t.getItem(zo),n=t.getItem(Jo),i=t.getItem(Go);return r&&i?new eo(t,r,i,n==="1"):null}static hash(t){return new Vo.sha256().update(t).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(t){this._linked=t,this.persistLinked()}save(){return this._storage.setItem(zo,this._id),this._storage.setItem(Go,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(Jo,this._linked?"1":"0")}}en.Session=eo;var vi={},_i={};Object.defineProperty(_i,"__esModule",{value:!0});_i.Cipher=void 0;const Wn=X;class Qh{constructor(t){this.secret=t}async encrypt(t){const r=this.secret;if(r.length!==64)throw Error("secret must be 256 bits");const n=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey("raw",(0,Wn.hexStringToUint8Array)(r),{name:"aes-gcm"},!1,["encrypt","decrypt"]),s=new TextEncoder,c=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},i,s.encode(t)),a=16,d=c.slice(c.byteLength-a),p=c.slice(0,c.byteLength-a),g=new Uint8Array(d),y=new Uint8Array(p),_=new Uint8Array([...n,...g,...y]);return(0,Wn.uint8ArrayToHex)(_)}async decrypt(t){const r=this.secret;if(r.length!==64)throw Error("secret must be 256 bits");return new Promise((n,i)=>{(async function(){const s=await crypto.subtle.importKey("raw",(0,Wn.hexStringToUint8Array)(r),{name:"aes-gcm"},!1,["encrypt","decrypt"]),c=(0,Wn.hexStringToUint8Array)(t),a=c.slice(0,12),d=c.slice(12,28),p=c.slice(28),g=new Uint8Array([...p,...d]),y={name:"AES-GCM",iv:new Uint8Array(a)};try{const _=await window.crypto.subtle.decrypt(y,s,g),A=new TextDecoder;n(A.decode(_))}catch(_){i(_)}})()})}}_i.Cipher=Qh;var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0});Ei.WalletLinkHTTP=void 0;class Yh{constructor(t,r,n){this.linkAPIUrl=t,this.sessionId=r;const i=`${r}:${n}`;this.auth=`Basic ${btoa(i)}`}async markUnseenEventsAsSeen(t){return Promise.all(t.map(r=>fetch(`${this.linkAPIUrl}/events/${r.eventId}/seen`,{method:"POST",headers:{Authorization:this.auth}}))).catch(r=>console.error("Unabled to mark event as failed:",r))}async fetchUnseenEvents(){var t;const r=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(r.ok){const{events:n,error:i}=await r.json();if(i)throw new Error(`Check unseen events failed: ${i}`);const s=(t=n==null?void 0:n.filter(c=>c.event==="Web3Response").map(c=>({type:"Event",sessionId:this.sessionId,eventId:c.id,event:c.event,data:c.data})))!==null&&t!==void 0?t:[];return this.markUnseenEventsAsSeen(s),s}throw new Error(`Check unseen events failed: ${r.status}`)}}Ei.WalletLinkHTTP=Yh;var qr={};Object.defineProperty(qr,"__esModule",{value:!0});qr.WalletLinkWebSocket=qr.ConnectionState=void 0;var Dr;(function(e){e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED"})(Dr||(qr.ConnectionState=Dr={}));class Xh{setConnectionStateListener(t){this.connectionStateListener=t}setIncomingDataListener(t){this.incomingDataListener=t}constructor(t,r=WebSocket){this.WebSocketClass=r,this.webSocket=null,this.pendingData=[],this.url=t.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw new Error("webSocket object is not null");return new Promise((t,r)=>{var n;let i;try{this.webSocket=i=new this.WebSocketClass(this.url)}catch(s){r(s);return}(n=this.connectionStateListener)===null||n===void 0||n.call(this,Dr.CONNECTING),i.onclose=s=>{var c;this.clearWebSocket(),r(new Error(`websocket error ${s.code}: ${s.reason}`)),(c=this.connectionStateListener)===null||c===void 0||c.call(this,Dr.DISCONNECTED)},i.onopen=s=>{var c;t(),(c=this.connectionStateListener)===null||c===void 0||c.call(this,Dr.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(d=>this.sendData(d)),this.pendingData=[])},i.onmessage=s=>{var c,a;if(s.data==="h")(c=this.incomingDataListener)===null||c===void 0||c.call(this,{type:"Heartbeat"});else try{const d=JSON.parse(s.data);(a=this.incomingDataListener)===null||a===void 0||a.call(this,d)}catch{}}})}disconnect(){var t;const{webSocket:r}=this;if(r){this.clearWebSocket(),(t=this.connectionStateListener)===null||t===void 0||t.call(this,Dr.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{r.close()}catch{}}}sendData(t){const{webSocket:r}=this;if(!r){this.pendingData.push(t),this.connect();return}r.send(t)}clearWebSocket(){const{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}}qr.WalletLinkWebSocket=Xh;Object.defineProperty(vi,"__esModule",{value:!0});vi.WalletLinkConnection=void 0;const Lr=Ze,ed=_i,Mt=Xr,Zo=wt,Br=en,td=Ei,Vn=qr,Ko=1e4,rd=6e4;class nd{constructor({session:t,linkAPIUrl:r,listener:n,diagnostic:i,WebSocketClass:s=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,Lr.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=a=>{if(!a)return;new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",p=>a.JsonRpcUrl&&this.handleChainUpdated(p,a.JsonRpcUrl)]]).forEach((p,g)=>{const y=a[g];y!==void 0&&p(y)})},this.handleDestroyed=a=>{var d,p;a==="1"&&((d=this.listener)===null||d===void 0||d.resetAndReload(),(p=this.diagnostic)===null||p===void 0||p.log(Mt.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:Br.Session.hash(this.session.id)}))},this.handleAccountUpdated=async a=>{var d,p;try{const g=await this.cipher.decrypt(a);(d=this.listener)===null||d===void 0||d.accountUpdated(g)}catch{(p=this.diagnostic)===null||p===void 0||p.log(Mt.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}},this.handleMetadataUpdated=async(a,d)=>{var p,g;try{const y=await this.cipher.decrypt(d);(p=this.listener)===null||p===void 0||p.metadataUpdated(a,y)}catch{(g=this.diagnostic)===null||g===void 0||g.log(Mt.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:a})}},this.handleWalletUsernameUpdated=async a=>{this.handleMetadataUpdated(Zo.WALLET_USER_NAME_KEY,a)},this.handleAppVersionUpdated=async a=>{this.handleMetadataUpdated(Zo.APP_VERSION_KEY,a)},this.handleChainUpdated=async(a,d)=>{var p,g;try{const y=await this.cipher.decrypt(a),_=await this.cipher.decrypt(d);(p=this.listener)===null||p===void 0||p.chainUpdated(y,_)}catch{(g=this.diagnostic)===null||g===void 0||g.log(Mt.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}},this.session=t,this.cipher=new ed.Cipher(t.secret),this.diagnostic=i,this.listener=n;const c=new Vn.WalletLinkWebSocket(`${r}/rpc`,s);c.setConnectionStateListener(async a=>{var d;(d=this.diagnostic)===null||d===void 0||d.log(Mt.EVENTS.CONNECTED_STATE_CHANGE,{state:a,sessionIdHash:Br.Session.hash(t.id)});let p=!1;switch(a){case Vn.ConnectionState.DISCONNECTED:if(!this.destroyed){const g=async()=>{await new Promise(y=>setTimeout(y,5e3)),this.destroyed||c.connect().catch(()=>{g()})};g()}break;case Vn.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),p=!0}catch{}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},Ko),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case Vn.ConnectionState.CONNECTING:break}this.connected!==p&&(this.connected=p)}),c.setIncomingDataListener(a=>{var d,p,g;switch(a.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{const y=a.type==="IsLinkedOK"?a.linked:void 0;(d=this.diagnostic)===null||d===void 0||d.log(Mt.EVENTS.LINKED,{sessionIdHash:Br.Session.hash(t.id),linked:y,type:a.type,onlineGuests:a.onlineGuests}),this.linked=y||a.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":{(p=this.diagnostic)===null||p===void 0||p.log(Mt.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:Br.Session.hash(t.id),metadata_keys:a&&a.metadata?Object.keys(a.metadata):void 0}),this.handleSessionMetadataUpdated(a.metadata);break}case"Event":{this.handleIncomingEvent(a);break}}a.id!==void 0&&((g=this.requestResolutions.get(a.id))===null||g===void 0||g(a))}),this.ws=c,this.http=new td.WalletLinkHTTP(r,t.id,t.key)}connect(){var t;if(this.destroyed)throw new Error("instance is destroyed");(t=this.diagnostic)===null||t===void 0||t.log(Mt.EVENTS.STARTED_CONNECTING,{sessionIdHash:Br.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var t;this.destroyed=!0,this.ws.disconnect(),(t=this.diagnostic)===null||t===void 0||t.log(Mt.EVENTS.DISCONNECTED,{sessionIdHash:Br.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(t){var r,n;this._connected=t,t&&((r=this.onceConnected)===null||r===void 0||r.call(this)),(n=this.listener)===null||n===void 0||n.connectedUpdated(t)}setOnceConnected(t){return new Promise(r=>{this.connected?t().then(r):this.onceConnected=()=>{t().then(r),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(t){var r,n;this._linked=t,t&&((r=this.onceLinked)===null||r===void 0||r.call(this)),(n=this.listener)===null||n===void 0||n.linkedUpdated(t)}setOnceLinked(t){return new Promise(r=>{this.linked?t().then(r):this.onceLinked=()=>{t().then(r),this.onceLinked=void 0}})}async handleIncomingEvent(t){var r,n;if(!(t.type!=="Event"||t.event!=="Web3Response"))try{const i=await this.cipher.decrypt(t.data),s=JSON.parse(i);if(s.type!=="WEB3_RESPONSE")return;(r=this.listener)===null||r===void 0||r.handleWeb3ResponseMessage(s)}catch{(n=this.diagnostic)===null||n===void 0||n.log(Mt.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(t=>setTimeout(t,250));try{await this.fetchUnseenEventsAPI()}catch(t){console.error("Unable to check for unseen events",t)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(r=>this.handleIncomingEvent(r))}async setSessionMetadata(t,r){const n={type:"SetSessionConfig",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[t]:r}};return this.setOnceConnected(async()=>{const i=await this.makeRequest(n);if(i.type==="Fail")throw new Error(i.error||"failed to set session metadata")})}async publishEvent(t,r,n=!1){const i=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},r),{origin:location.origin,relaySource:window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),s={type:"PublishEvent",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:t,data:i,callWebhook:n};return this.setOnceLinked(async()=>{const c=await this.makeRequest(s);if(c.type==="Fail")throw new Error(c.error||"failed to publish event");return c.eventId})}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>Ko*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}async makeRequest(t,r=rd){const n=t.id;this.sendData(t);let i;return Promise.race([new Promise((s,c)=>{i=window.setTimeout(()=>{c(new Error(`request ${n} timed out`))},r)}),new Promise(s=>{this.requestResolutions.set(n,c=>{clearTimeout(i),s(c),this.requestResolutions.delete(n)})})])}async authenticate(){const t={type:"HostSession",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},r=await this.makeRequest(t);if(r.type==="Fail")throw new Error(r.error||"failed to authentcate")}sendIsLinked(){const t={type:"IsLinked",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}sendGetSessionConfig(){const t={type:"GetSessionConfig",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}}vi.WalletLinkConnection=nd;var xn={},In={},to={};Object.defineProperty(to,"__esModule",{value:!0});to.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}';var id=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(In,"__esModule",{value:!0});In.injectCssReset=void 0;const sd=id(to);function od(){const e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(sd.default)),document.documentElement.appendChild(e)}In.injectCssReset=od;var Si={};const at=mn(wu);var Ri={};function Fc(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t65536?(n[0]=240|(i&1835008)>>>18,n[1]=128|(i&258048)>>>12,n[2]=128|(i&4032)>>>6,n[3]=128|i&63):i>2048?(n[0]=224|(i&61440)>>>12,n[1]=128|(i&4032)>>>6,n[2]=128|i&63):i>128?(n[0]=192|(i&1984)>>>6,n[1]=128|i&63):n[0]=i,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}Dc.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,r=this.parsedData.length;t=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=Lt.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(0<=r&&r<=6&&(n==0||n==6)||0<=n&&n<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[e+r][t+n]=!0:this.modules[e+r][t+n]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=Ve.getLostPoint(this);(r==0||e>n)&&(e=n,t=r)}return t},createMovieClip:function(e,t,r){var n=e.createEmptyMovieClip(t,r),i=1;this.make();for(var s=0;s>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=Ve.getBCHTypeInfo(r),i=0;i<15;i++){var s=!e&&(n>>i&1)==1;i<6?this.modules[i][8]=s:i<8?this.modules[i+1][8]=s:this.modules[this.moduleCount-15+i][8]=s}for(var i=0;i<15;i++){var s=!e&&(n>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=s:i<9?this.modules[8][15-i-1+1]=s:this.modules[8][15-i-1]=s}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,s=0,c=this.moduleCount-1;c>0;c-=2)for(c==6&&c--;;){for(var a=0;a<2;a++)if(this.modules[n][c-a]==null){var d=!1;s>>i&1)==1);var p=Ve.getMask(t,n,c-a);p&&(d=!d),this.modules[n][c-a]=d,i--,i==-1&&(s++,i=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}};Lt.PAD0=236;Lt.PAD1=17;Lt.createData=function(e,t,r){for(var n=Nt.getRSBlocks(e,t),i=new jc,s=0;sa*8)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+a*8+")");for(i.getLengthInBits()+4<=a*8&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=a*8||(i.put(Lt.PAD0,8),i.getLengthInBits()>=a*8));)i.put(Lt.PAD1,8);return Lt.createBytes(i,n)};Lt.createBytes=function(e,t){for(var r=0,n=0,i=0,s=new Array(t.length),c=new Array(t.length),a=0;a=0?A.get(L):0}}for(var H=0,g=0;g=0;)t^=Ve.G15<=0;)t^=Ve.G18<>>=1;return t},getPatternPosition:function(e){return Ve.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case jt.PATTERN000:return(t+r)%2==0;case jt.PATTERN001:return t%2==0;case jt.PATTERN010:return r%3==0;case jt.PATTERN011:return(t+r)%3==0;case jt.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case jt.PATTERN101:return t*r%2+t*r%3==0;case jt.PATTERN110:return(t*r%2+t*r%3)%2==0;case jt.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new jr([1],0),r=0;r5&&(r+=3+s-5)}for(var n=0;n=256;)e-=255;return Xe.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var tt=0;tt<8;tt++)Xe.EXP_TABLE[tt]=1<>>7-e%8&1)==1},put:function(e,t){for(var r=0;r>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var hs=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function Uc(e){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof e=="string"&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function r(d){switch(d){case"L":return Wt.L;case"M":return Wt.M;case"Q":return Wt.Q;case"H":return Wt.H;default:throw new Error("Unknwon error correction level: "+d)}}function n(d,p){for(var g=i(d),y=1,_=0,A=0,L=hs.length;A<=L;A++){var H=hs[A];if(!H)throw new Error("Content too long: expected "+_+" but got "+g);switch(p){case"L":_=H[0];break;case"M":_=H[1];break;case"Q":_=H[2];break;case"H":_=H[3];break;default:throw new Error("Unknwon error correction level: "+p)}if(g<=_)break;y++}if(y>hs.length)throw new Error("Content too long");return y}function i(d){var p=encodeURI(d).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return p.length+(p.length!=d?3:0)}var s=this.options.content,c=n(s,this.options.ecl),a=r(this.options.ecl);this.qrcode=new Lt(c,a),this.qrcode.addData(s),this.qrcode.make()}Uc.prototype.svg=function(e){var t=this.options||{},r=this.qrcode.modules;typeof e>"u"&&(e={container:t.container||"svg"});for(var n=typeof t.pretty<"u"?!!t.pretty:!0,i=n?" ":"",s=n?`\r -`:"",c=t.width,a=t.height,d=r.length,p=c/(d+2*t.padding),g=a/(d+2*t.padding),y=typeof t.join<"u"?!!t.join:!1,_=typeof t.swap<"u"?!!t.swap:!1,A=typeof t.xmlDeclaration<"u"?!!t.xmlDeclaration:!0,L=typeof t.predefined<"u"?!!t.predefined:!1,H=L?i+''+s:"",F=i+''+s,I="",O="",B=0;B'+s:I+=i+''+s}}y&&(I=i+'');let oe="";if(this.options.image!==void 0&&this.options.image.svg){const x=c*this.options.image.width/100,o=a*this.options.image.height/100,f=c/2-x/2,w=a/2-o/2;oe+=``,oe+=this.options.image.svg+s,oe+=""}var pe="";switch(e.container){case"svg":A&&(pe+=''+s),pe+=''+s,pe+=H+F+I,pe+=oe,pe+="";break;case"svg-viewbox":A&&(pe+=''+s),pe+=''+s,pe+=H+F+I,pe+=oe,pe+="";break;case"g":pe+=''+s,pe+=H+F+I,pe+=oe,pe+="";break;default:pe+=(H+F+I+oe).replace(/^\s+/,"");break}return pe};var hd=Uc,dd=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ii,"__esModule",{value:!0});Ii.QRCode=void 0;const fd=at,Xo=Ci,pd=dd(hd),gd=e=>{const[t,r]=(0,Xo.useState)("");return(0,Xo.useEffect)(()=>{var n,i;const s=new pd.default({content:e.content,background:e.bgColor||"#ffffff",color:e.fgColor||"#000000",container:"svg",ecl:"M",width:(n=e.width)!==null&&n!==void 0?n:256,height:(i=e.height)!==null&&i!==void 0?i:256,padding:0,image:e.image}),c=Buffer.from(s.svg(),"utf8").toString("base64");r(`data:image/svg+xml;base64,${c}`)},[e.bgColor,e.content,e.fgColor,e.height,e.image,e.width]),t?(0,fd.h)("img",{src:t,alt:"QR Code"}):null};Ii.QRCode=gd;var Ai={},ro={};Object.defineProperty(ro,"__esModule",{value:!0});ro.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}";var md=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.Spinner=void 0;const zn=at,wd=md(ro),yd=e=>{var t;const r=(t=e.size)!==null&&t!==void 0?t:64,n=e.color||"#000";return(0,zn.h)("div",{class:"-cbwsdk-spinner"},(0,zn.h)("style",null,wd.default),(0,zn.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:r,height:r}},(0,zn.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))};Ai.Spinner=yd;var no={};Object.defineProperty(no,"__esModule",{value:!0});no.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer;border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}";var Hc=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zr,"__esModule",{value:!0});zr.CoinbaseWalletSteps=zr.ConnectContent=void 0;const gr=Hc(An),we=at,bd=X,vd=Yr,_d=Mi,Ed=ki,Sd=xi,Rd=Ii,Cd=Ai,Md=Hc(no),ds={title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",steps:Wc},kd=e=>e==="light"?"#FFFFFF":"#0A0B0D";function xd(e){const{theme:t}=e,r=(0,bd.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId),n=ds.steps;return(0,we.h)("div",{"data-testid":"connect-content",className:(0,gr.default)("-cbwsdk-connect-content",t)},(0,we.h)("style",null,Md.default),(0,we.h)("div",{className:"-cbwsdk-connect-content-header"},(0,we.h)("h2",{className:(0,gr.default)("-cbwsdk-connect-content-heading",t)},"Scan to connect with our mobile app"),e.onCancel&&(0,we.h)("button",{type:"button",className:"-cbwsdk-cancel-button",onClick:e.onCancel},(0,we.h)(_d.CloseIcon,{fill:t==="light"?"#0A0B0D":"#FFFFFF"}))),(0,we.h)("div",{className:"-cbwsdk-connect-content-layout"},(0,we.h)("div",{className:"-cbwsdk-connect-content-column-left"},(0,we.h)(Id,{title:ds.title,description:ds.description,theme:t})),(0,we.h)("div",{className:"-cbwsdk-connect-content-column-right"},(0,we.h)("div",{className:"-cbwsdk-connect-content-qr-wrapper"},(0,we.h)(Rd.QRCode,{content:r,width:200,height:200,fgColor:"#000",bgColor:"transparent"}),(0,we.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:vd.LIB_VERSION}),(0,we.h)("input",{type:"hidden",value:r})),(0,we.h)(n,{theme:t}),!e.isConnected&&(0,we.h)("div",{"data-testid":"connecting-spinner",className:(0,gr.default)("-cbwsdk-connect-content-qr-connecting",t)},(0,we.h)(Cd.Spinner,{size:36,color:t==="dark"?"#FFF":"#000"}),(0,we.h)("p",null,"Connecting...")))))}zr.ConnectContent=xd;function Id({title:e,description:t,theme:r}){return(0,we.h)("div",{className:(0,gr.default)("-cbwsdk-connect-item",r)},(0,we.h)("div",null,(0,we.h)(Ed.CoinbaseWalletRound,null)),(0,we.h)("div",{className:"-cbwsdk-connect-item-copy-wrapper"},(0,we.h)("h3",{className:"-cbwsdk-connect-item-title"},e),(0,we.h)("p",{className:"-cbwsdk-connect-item-description"},t)))}function Wc({theme:e}){return(0,we.h)("ol",{className:"-cbwsdk-wallet-steps"},(0,we.h)("li",{className:(0,gr.default)("-cbwsdk-wallet-steps-item",e)},(0,we.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,we.h)("li",{className:(0,gr.default)("-cbwsdk-wallet-steps-item",e)},(0,we.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},(0,we.h)("span",null,"Tap ",(0,we.h)("strong",null,"Scan")," "),(0,we.h)("span",{className:(0,gr.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,we.h)(Sd.QRCodeIcon,{fill:kd(e)})))))}zr.CoinbaseWalletSteps=Wc;var Ti={},Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ArrowLeftIcon=void 0;const ea=at;function Ad(e){return(0,ea.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,ea.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}Ni.ArrowLeftIcon=Ad;var Li={};Object.defineProperty(Li,"__esModule",{value:!0});Li.LaptopIcon=void 0;const fs=at;function Td(e){return(0,fs.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,fs.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,fs.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}Li.LaptopIcon=Td;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});Bi.SafeIcon=void 0;const ta=at;function Nd(e){return(0,ta.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,ta.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}Bi.SafeIcon=Nd;var io={};Object.defineProperty(io,"__esModule",{value:!0});io.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}";var Vc=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.TryExtensionContent=void 0;const ar=Vc(An),Ge=at,ps=Ci,Ld=Ni,Bd=Li,Pd=Bi,Od=Vc(io);function $d({theme:e}){const[t,r]=(0,ps.useState)(!1),n=(0,ps.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),i=(0,ps.useCallback)(()=>{t?window.location.reload():(n(),r(!0))},[n,t]);return(0,Ge.h)("div",{class:(0,ar.default)("-cbwsdk-try-extension",e)},(0,Ge.h)("style",null,Od.default),(0,Ge.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Ge.h)("h3",{class:(0,ar.default)("-cbwsdk-try-extension-heading",e)},"Or try the Coinbase Wallet browser extension"),(0,Ge.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,Ge.h)("button",{class:(0,ar.default)("-cbwsdk-try-extension-cta",e),onClick:i},t?"Refresh":"Install"),(0,Ge.h)("div",null,!t&&(0,Ge.h)(Ld.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:e==="light"?"#0052FF":"#588AF5"})))),(0,Ge.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Ge.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,Ge.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Ge.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Ge.h)("span",{class:(0,ar.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,Ge.h)(Bd.LaptopIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Ge.h)("div",{class:(0,ar.default)("-cbwsdk-try-extension-list-item-copy",e)},"Connect with dapps with just one click on your desktop browser")),(0,Ge.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Ge.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Ge.h)("span",{class:(0,ar.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,Ge.h)(Pd.SafeIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Ge.h)("div",{class:(0,ar.default)("-cbwsdk-try-extension-list-item-copy",e)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}Ti.TryExtensionContent=$d;var so={};Object.defineProperty(so,"__esModule",{value:!0});so.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}";var qc=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.ConnectDialog=void 0;const gs=qc(An),cr=at,ms=Ci,Fd=zr,Dd=Ti,jd=qc(so),Ud=e=>{const{isOpen:t,darkMode:r}=e,[n,i]=(0,ms.useState)(!t),[s,c]=(0,ms.useState)(!t);(0,ms.useEffect)(()=>{const d=[window.setTimeout(()=>{c(!t)},10)];return t?i(!1):d.push(window.setTimeout(()=>{i(!0)},360)),()=>{d.forEach(window.clearTimeout)}},[t]);const a=r?"dark":"light";return(0,cr.h)("div",{class:(0,gs.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,cr.h)("style",null,jd.default),(0,cr.h)("div",{class:(0,gs.default)("-cbwsdk-connect-dialog-backdrop",a,s&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,cr.h)("div",{class:"-cbwsdk-connect-dialog"},(0,cr.h)("div",{class:(0,gs.default)("-cbwsdk-connect-dialog-box",s&&"-cbwsdk-connect-dialog-box-hidden")},e.connectDisabled?null:(0,cr.h)(Fd.ConnectContent,{theme:a,version:e.version,sessionId:e.sessionId,sessionSecret:e.sessionSecret,linkAPIUrl:e.linkAPIUrl,isConnected:e.isConnected,isParentConnection:e.isParentConnection,chainId:e.chainId,onCancel:e.onCancel}),(0,cr.h)(Dd.TryExtensionContent,{theme:a}))))};Ri.ConnectDialog=Ud;Object.defineProperty(Si,"__esModule",{value:!0});Si.LinkFlow=void 0;const ws=at,Hd=Ri;class Wd{constructor(t){this.connected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=t.darkMode,this.version=t.version,this.sessionId=t.sessionId,this.sessionSecret=t.sessionSecret,this.linkAPIUrl=t.linkAPIUrl,this.isParentConnection=t.isParentConnection}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",t.appendChild(this.root),this.render()}setConnected(t){this.connected!==t&&(this.connected=t,this.render())}setChainId(t){this.chainId!==t&&(this.chainId=t,this.render())}detach(){var t;this.root&&((0,ws.render)(null,this.root),(t=this.root.parentElement)===null||t===void 0||t.removeChild(this.root))}setConnectDisabled(t){this.connectDisabled=t}open(t){this.isOpen=!0,this.onCancel=t.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){this.root&&(0,ws.render)((0,ws.h)(Hd.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.connected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}}Si.LinkFlow=Wd;var oo={},ao={};Object.defineProperty(ao,"__esModule",{value:!0});ao.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}";(function(e){var t=ee&&ee.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.SnackbarInstance=e.SnackbarContainer=e.Snackbar=void 0;const r=t(An),n=at,i=Ci,s=t(ao),c="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";class d{constructor(_){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=_.darkMode}attach(_){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",_.appendChild(this.root),this.render()}presentItem(_){const A=this.nextItemKey++;return this.items.set(A,_),this.render(),()=>{this.items.delete(A),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,n.render)((0,n.h)("div",null,(0,n.h)(e.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([_,A])=>(0,n.h)(e.SnackbarInstance,Object.assign({},A,{key:_}))))),this.root)}}e.Snackbar=d;const p=y=>(0,n.h)("div",{class:(0,r.default)("-cbwsdk-snackbar-container")},(0,n.h)("style",null,s.default),(0,n.h)("div",{class:"-cbwsdk-snackbar"},y.children));e.SnackbarContainer=p;const g=({autoExpand:y,message:_,menuItems:A})=>{const[L,H]=(0,i.useState)(!0),[F,I]=(0,i.useState)(y??!1);(0,i.useEffect)(()=>{const B=[window.setTimeout(()=>{H(!1)},1),window.setTimeout(()=>{I(!0)},1e4)];return()=>{B.forEach(window.clearTimeout)}});const O=()=>{I(!F)};return(0,n.h)("div",{class:(0,r.default)("-cbwsdk-snackbar-instance",L&&"-cbwsdk-snackbar-instance-hidden",F&&"-cbwsdk-snackbar-instance-expanded")},(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:O},(0,n.h)("img",{src:c,class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},_),(0,n.h)("div",{class:"-gear-container"},!F&&(0,n.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,n.h)("img",{src:a,class:"-gear-icon",title:"Expand"}))),A&&A.length>0&&(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},A.map((B,V)=>(0,n.h)("div",{class:(0,r.default)("-cbwsdk-snackbar-instance-menu-item",B.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:B.onClick,key:V},(0,n.h)("svg",{width:B.svgWidth,height:B.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("path",{"fill-rule":B.defaultFillRule,"clip-rule":B.defaultClipRule,d:B.path,fill:"#AAAAAA"})),(0,n.h)("span",{class:(0,r.default)("-cbwsdk-snackbar-instance-menu-item-info",B.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},B.info)))))};e.SnackbarInstance=g})(oo);Object.defineProperty(xn,"__esModule",{value:!0});xn.WalletLinkRelayUI=void 0;const Vd=In,qd=Si,zd=oo;class Gd{constructor(t){this.standalone=null,this.attached=!1,this.snackbar=new zd.Snackbar({darkMode:t.darkMode}),this.linkFlow=new qd.LinkFlow({darkMode:t.darkMode,version:t.version,sessionId:t.session.id,sessionSecret:t.session.secret,linkAPIUrl:t.linkAPIUrl,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const t=document.documentElement,r=document.createElement("div");r.className="-cbwsdk-css-reset",t.appendChild(r),this.linkFlow.attach(r),this.snackbar.attach(r),this.attached=!0,(0,Vd.injectCssReset)()}setConnected(t){this.linkFlow.setConnected(t)}setChainId(t){this.linkFlow.setChainId(t)}setConnectDisabled(t){this.linkFlow.setConnectDisabled(t)}addEthereumChain(){}watchAsset(){}switchEthereumChain(){}requestEthereumAccounts(t){this.linkFlow.open({onCancel:t.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}showConnecting(t){let r;return t.isUnlinkedErrorState?r={autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]}:r={message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:t.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]},this.snackbar.presentItem(r)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(t){this.standalone=t}isStandalone(){var t;return(t=this.standalone)!==null&&t!==void 0?t:!1}}xn.WalletLinkRelayUI=Gd;Object.defineProperty(En,"__esModule",{value:!0});En.WalletLinkRelay=void 0;const Pr=wn,Jd=Ze,We=X,lr=Xr,ra=wt,Ut=en,Zd=vi,ur=Qr,Kd=xn;class $t extends ra.RelayAbstract{constructor(t){var r;super(),this.accountsCallback=null,this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.chainCallback=null,this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.linkedUpdated=c=>{var a;this.isLinked=c;const d=this.storage.getItem(ra.LOCAL_STORAGE_ADDRESSES_KEY);if(c&&(this.session.linked=c),this.isUnlinkedErrorState=!1,d){const p=d.split(" "),g=this.storage.getItem("IsStandaloneSigning")==="true";if(p[0]!==""&&!c&&this.session.linked&&!g){this.isUnlinkedErrorState=!0;const y=this.getSessionIdHash();(a=this.diagnostic)===null||a===void 0||a.log(lr.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:y})}}},this.metadataUpdated=(c,a)=>{this.storage.setItem(c,a)},this.chainUpdated=(c,a)=>{this.chainCallbackParams.chainId===c&&this.chainCallbackParams.jsonRpcUrl===a||(this.chainCallbackParams={chainId:c,jsonRpcUrl:a},this.chainCallback&&this.chainCallback(c,a))},this.accountUpdated=c=>{this.accountsCallback&&this.accountsCallback([c]),$t.accountRequestCallbackIds.size>0&&(Array.from($t.accountRequestCallbackIds.values()).forEach(a=>{const d={type:"WEB3_RESPONSE",id:a,response:{method:"requestEthereumAccounts",result:[c]}};this.invokeCallback(Object.assign(Object.assign({},d),{id:a}))}),$t.accountRequestCallbackIds.clear())},this.connectedUpdated=c=>{this.ui.setConnected(c)},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.options=t;const{session:n,ui:i,connection:s}=this.subscribe();this._session=n,this.connection=s,this.relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this._reloadOnDisconnect=(r=t.reloadOnDisconnect)!==null&&r!==void 0?r:!0,this.ui=i}subscribe(){const t=Ut.Session.load(this.storage)||new Ut.Session(this.storage).save(),{linkAPIUrl:r,diagnostic:n}=this,i=new Zd.WalletLinkConnection({session:t,linkAPIUrl:r,diagnostic:n,listener:this}),{version:s,darkMode:c}=this.options,a=this.options.uiConstructor({linkAPIUrl:r,version:s,darkMode:c,session:t});return i.connect(),{session:t,ui:a,connection:i}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata("__destroyed","1"),new Promise(t=>setTimeout(()=>t(null),1e3))]).then(()=>{var t,r;const n=this.ui.isStandalone();(t=this.diagnostic)===null||t===void 0||t.log(lr.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const i=Ut.Session.load(this.storage);if((i==null?void 0:i.id)===this._session.id?this.storage.clear():i&&((r=this.diagnostic)===null||r===void 0||r.log(lr.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:Ut.Session.hash(i.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);const{session:s,ui:c,connection:a}=this.subscribe();this._session=s,this.connection=a,this.ui=c,n&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.options.headlessMode||this.attachUI()}).catch(t=>{var r;(r=this.diagnostic)===null||r===void 0||r.log(lr.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${t}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(t,r){this.appName=t,this.appLogoUrl=r}getStorageItem(t){return this.storage.getItem(t)}get session(){return this._session}setStorageItem(t,r){this.storage.setItem(t,r)}signEthereumMessage(t,r,n,i){return this.sendRequest({method:"signEthereumMessage",params:{message:(0,We.hexStringFromBuffer)(t,!0),address:r,addPrefix:n,typedDataJson:i||null}})}ethereumAddressFromSignedMessage(t,r,n){return this.sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:(0,We.hexStringFromBuffer)(t,!0),signature:(0,We.hexStringFromBuffer)(r,!0),addPrefix:n}})}signEthereumTransaction(t){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,We.bigIntStringFromBN)(t.weiValue),data:(0,We.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,We.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?(0,We.bigIntStringFromBN)(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?(0,We.bigIntStringFromBN)(t.gasPriceInWei):null,gasLimit:t.gasLimit?(0,We.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,We.bigIntStringFromBN)(t.weiValue),data:(0,We.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,We.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?(0,We.bigIntStringFromBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?(0,We.bigIntStringFromBN)(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?(0,We.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,r){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:(0,We.hexStringFromBuffer)(t,!0),chainId:r}})}scanQRCode(t){return this.sendRequest({method:"scanQRCode",params:{regExp:t}})}getQRCodeUrl(){return(0,We.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(t,r){return this.sendRequest({method:"generic",params:{action:r,data:t}})}sendGenericMessage(t){return this.sendRequest(t)}sendRequest(t){let r=null;const n=(0,We.randomBytesHex)(8),i=c=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,c),r==null||r()};return{promise:new Promise((c,a)=>{this.ui.isStandalone()||(r=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:i,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,d=>{if(r==null||r(),(0,ur.isErrorResponse)(d))return a(new Error(d.errorMessage));c(d)}),this.ui.isStandalone()?this.sendRequestStandalone(n,t):this.publishWeb3RequestEvent(n,t)}),cancel:i}}setConnectDisabled(t){this.ui.setConnectDisabled(t)}setAccountsCallback(t){this.accountsCallback=t}setChainCallback(t){this.chainCallback=t}setDappDefaultChainCallback(t){this.dappDefaultChain=t,this.ui instanceof Kd.WalletLinkRelayUI&&this.ui.setChainId(t)}publishWeb3RequestEvent(t,r){var n;const i={type:"WEB3_REQUEST",id:t,request:r},s=Ut.Session.load(this.storage);(n=this.diagnostic)===null||n===void 0||n.log(lr.EVENTS.WEB3_REQUEST,{eventId:i.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?Ut.Session.hash(s.id):"",isSessionMismatched:((s==null?void 0:s.id)!==this._session.id).toString()}),this.publishEvent("Web3Request",i,!0).then(c=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(lr.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:i.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?Ut.Session.hash(s.id):"",isSessionMismatched:((s==null?void 0:s.id)!==this._session.id).toString()})}).catch(c=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i.id,response:{method:r.method,errorMessage:c.message}})})}publishWeb3RequestCanceledEvent(t){const r={type:"WEB3_REQUEST_CANCELED",id:t};this.publishEvent("Web3RequestCanceled",r,!1).then()}publishEvent(t,r,n){return this.connection.publishEvent(t,r,n)}handleWeb3ResponseMessage(t){var r;const{response:n}=t;if((r=this.diagnostic)===null||r===void 0||r.log(lr.EVENTS.WEB3_RESPONSE,{eventId:t.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),n.method==="requestEthereumAccounts"){$t.accountRequestCallbackIds.forEach(i=>this.invokeCallback(Object.assign(Object.assign({},t),{id:i}))),$t.accountRequestCallbackIds.clear();return}this.invokeCallback(t)}handleErrorResponse(t,r,n,i){var s;const c=(s=n==null?void 0:n.message)!==null&&s!==void 0?s:(0,Pr.getMessageFromCode)(i);this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:t,response:{method:r,errorMessage:c,errorCode:i}})}invokeCallback(t){const r=this.relayEventManager.callbacks.get(t.id);r&&(r(t.response),this.relayEventManager.callbacks.delete(t.id))}requestEthereumAccounts(){const t={method:"requestEthereumAccounts",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},r=(0,We.randomBytesHex)(8),n=s=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,s)};return{promise:new Promise((s,c)=>{if(this.relayEventManager.callbacks.set(r,a=>{if(this.ui.hideRequestEthereumAccounts(),(0,ur.isErrorResponse)(a))return c(new Error(a.errorMessage));s(a)}),this.ui.inlineAccountsResponse()){const a=d=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:r,response:{method:"requestEthereumAccounts",result:d}})};this.ui.requestEthereumAccounts({onCancel:n,onAccounts:a})}else{const a=Pr.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>n(a)})}$t.accountRequestCallbackIds.add(r),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(r,t)}),cancel:n}}selectProvider(t){const r={method:"selectProvider",params:{providerOptions:t}},n=(0,We.randomBytesHex)(8),i=c=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,r.method,c)},s=new Promise((c,a)=>{this.relayEventManager.callbacks.set(n,g=>{if((0,ur.isErrorResponse)(g))return a(new Error(g.errorMessage));c(g)});const d=g=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:n,response:{method:"selectProvider",result:Jd.ProviderType.Unselected}})},p=g=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:n,response:{method:"selectProvider",result:g}})};this.ui.selectProvider&&this.ui.selectProvider({onApprove:p,onCancel:d,providerOptions:t})});return{cancel:i,promise:s}}watchAsset(t,r,n,i,s,c){const a={method:"watchAsset",params:{type:t,options:{address:r,symbol:n,decimals:i,image:s},chainId:c}};let d=null;const p=(0,We.randomBytesHex)(8),g=_=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,a.method,_),d==null||d()};this.ui.inlineWatchAsset()||(d=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:g,onResetConnection:this.resetAndReload}));const y=new Promise((_,A)=>{this.relayEventManager.callbacks.set(p,F=>{if(d==null||d(),(0,ur.isErrorResponse)(F))return A(new Error(F.errorMessage));_(F)});const L=F=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"watchAsset",result:!1}})},H=()=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"watchAsset",result:!0}})};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:H,onCancel:L,type:t,address:r,symbol:n,decimals:i,image:s,chainId:c}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(p,a)});return{cancel:g,promise:y}}addEthereumChain(t,r,n,i,s,c){const a={method:"addEthereumChain",params:{chainId:t,rpcUrls:r,blockExplorerUrls:i,chainName:s,iconUrls:n,nativeCurrency:c}};let d=null;const p=(0,We.randomBytesHex)(8),g=_=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,a.method,_),d==null||d()};return this.ui.inlineAddEthereumChain(t)||(d=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:g,onResetConnection:this.resetAndReload})),{promise:new Promise((_,A)=>{this.relayEventManager.callbacks.set(p,F=>{if(d==null||d(),(0,ur.isErrorResponse)(F))return A(new Error(F.errorMessage));_(F)});const L=F=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"addEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},H=F=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"addEthereumChain",result:{isApproved:!0,rpcUrl:F}}})};this.ui.inlineAddEthereumChain(t)&&this.ui.addEthereumChain({onCancel:L,onApprove:H,chainId:a.params.chainId,rpcUrls:a.params.rpcUrls,blockExplorerUrls:a.params.blockExplorerUrls,chainName:a.params.chainName,iconUrls:a.params.iconUrls,nativeCurrency:a.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(t)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(p,a)}),cancel:g}}switchEthereumChain(t,r){const n={method:"switchEthereumChain",params:Object.assign({chainId:t},{address:r})},i=(0,We.randomBytesHex)(8),s=a=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,n.method,a)};return{promise:new Promise((a,d)=>{this.relayEventManager.callbacks.set(i,y=>{if((0,ur.isErrorResponse)(y)&&y.errorCode)return d(Pr.standardErrors.provider.custom({code:y.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if((0,ur.isErrorResponse)(y))return d(new Error(y.errorMessage));a(y)});const p=y=>{var _;if(y){const A=(_=(0,Pr.getErrorCode)(y))!==null&&_!==void 0?_:Pr.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(i,"switchEthereumChain",y instanceof Error?y:Pr.standardErrors.provider.unsupportedChain(t),A)}else this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i,response:{method:"switchEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},g=y=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i,response:{method:"switchEthereumChain",result:{isApproved:!0,rpcUrl:y}}})};this.ui.switchEthereumChain({onCancel:p,onApprove:g,chainId:n.params.chainId,address:n.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(i,n)}),cancel:s}}inlineAddEthereumChain(t){return this.ui.inlineAddEthereumChain(t)}getSessionIdHash(){return Ut.Session.hash(this._session.id)}sendRequestStandalone(t,r){const n=s=>{this.handleErrorResponse(t,r.method,s)},i=s=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:t,response:s})};switch(r.method){case"signEthereumMessage":this.ui.signEthereumMessage({request:r,onSuccess:i,onCancel:n});break;case"signEthereumTransaction":this.ui.signEthereumTransaction({request:r,onSuccess:i,onCancel:n});break;case"submitEthereumTransaction":this.ui.submitEthereumTransaction({request:r,onSuccess:i,onCancel:n});break;case"ethereumAddressFromSignedMessage":this.ui.ethereumAddressFromSignedMessage({request:r,onSuccess:i});break;default:n();break}}}En.WalletLinkRelay=$t;$t.accountRequestCallbackIds=new Set;var Tn={},Pi={},zc={};(function(e){var t=ee&&ee.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,c,a)}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=ee&&ee.__exportStar||function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(oo,e)})(zc);var co={};Object.defineProperty(co,"__esModule",{value:!0});co.default=".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}";var Gc=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pi,"__esModule",{value:!0});Pi.RedirectDialog=void 0;const Qd=Gc(An),At=at,Yd=In,Xd=zc,ef=Gc(co);class tf{constructor(){this.root=null}attach(){const t=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",t.appendChild(this.root),(0,Yd.injectCssReset)()}present(t){this.render(t)}clear(){this.render(null)}render(t){this.root&&((0,At.render)(null,this.root),t&&(0,At.render)((0,At.h)(rf,Object.assign({},t,{onDismiss:()=>{this.clear()}})),this.root))}}Pi.RedirectDialog=tf;const rf=({title:e,buttonText:t,darkMode:r,onButtonClick:n,onDismiss:i})=>{const s=r?"dark":"light";return(0,At.h)(Xd.SnackbarContainer,{darkMode:r},(0,At.h)("div",{class:"-cbwsdk-redirect-dialog"},(0,At.h)("style",null,ef.default),(0,At.h)("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:i}),(0,At.h)("div",{class:(0,Qd.default)("-cbwsdk-redirect-dialog-box",s)},(0,At.h)("p",null,e),(0,At.h)("button",{onClick:n},t))))};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.MobileRelayUI=void 0;const nf=Pi;class sf{constructor(t){this.attached=!1,this.darkMode=!1,this.redirectDialog=new nf.RedirectDialog,this.darkMode=t.darkMode}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}setConnected(t){}redirectToCoinbaseWallet(t){const r=new URL("https://go.cb-w.com/walletlink");r.searchParams.append("redirect_url",window.location.href),t&&r.searchParams.append("wl_url",t);const n=document.createElement("a");n.target="cbw-opener",n.href=r.href,n.rel="noreferrer noopener",n.click()}openCoinbaseWalletDeeplink(t){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",darkMode:this.darkMode,onButtonClick:()=>{this.redirectToCoinbaseWallet(t)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(t)},99)}showConnecting(t){return()=>{this.redirectDialog.clear()}}hideRequestEthereumAccounts(){this.redirectDialog.clear()}requestEthereumAccounts(){}addEthereumChain(){}watchAsset(){}selectProvider(){}switchEthereumChain(){}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}reloadUI(){}setStandalone(){}setConnectDisabled(){}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}isStandalone(){return!1}}Tn.MobileRelayUI=sf;Object.defineProperty(_n,"__esModule",{value:!0});_n.MobileRelay=void 0;const of=X,af=En,cf=Tn;class lf extends af.WalletLinkRelay{constructor(t){var r;super(t),this._enableMobileWalletLink=(r=t.enableMobileWalletLink)!==null&&r!==void 0?r:!1}requestEthereumAccounts(){return this._enableMobileWalletLink?super.requestEthereumAccounts():{promise:new Promise(()=>{const t=(0,of.getLocation)();t.href=`https://go.cb-w.com/dapp?cb_url=${encodeURIComponent(t.href)}`}),cancel:()=>{}}}publishWeb3RequestEvent(t,r){if(super.publishWeb3RequestEvent(t,r),!(this._enableMobileWalletLink&&this.ui instanceof cf.MobileRelayUI))return;let n=!1;switch(r.method){case"requestEthereumAccounts":case"connectAndSignIn":n=!0,this.ui.openCoinbaseWalletDeeplink(this.getQRCodeUrl());break;case"switchEthereumChain":return;default:n=!0,this.ui.openCoinbaseWalletDeeplink();break}n&&window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0})}handleWeb3ResponseMessage(t){super.handleWeb3ResponseMessage(t)}connectAndSignIn(t){if(!this._enableMobileWalletLink)throw new Error("connectAndSignIn is supported only when enableMobileWalletLink is on");return this.sendRequest({method:"connectAndSignIn",params:{appName:this.appName,appLogoUrl:this.appLogoUrl,domain:window.location.hostname,aud:window.location.href,version:"1",type:"eip4361",nonce:t.nonce,iat:new Date().toISOString(),chainId:`eip155:${this.dappDefaultChain}`,statement:t.statement,resources:t.resources}})}}_n.MobileRelay=lf;var Hs={exports:{}},Jc=ai.EventEmitter,ys,na;function uf(){if(na)return ys;na=1;function e(L,H){var F=Object.keys(L);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(L);H&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(L,O).enumerable})),F.push.apply(F,I)}return F}function t(L){for(var H=1;H0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(F){var I={data:F,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var F=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,F}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(F){if(this.length===0)return"";for(var I=this.head,O=""+I.data;I=I.next;)O+=F+I.data;return O}},{key:"concat",value:function(F){if(this.length===0)return p.alloc(0);for(var I=p.allocUnsafe(F>>>0),O=this.head,B=0;O;)A(O.data,I,B),B+=O.data.length,O=O.next;return I}},{key:"consume",value:function(F,I){var O;return FV.length?V.length:F;if(j===V.length?B+=V:B+=V.slice(0,F),F-=j,F===0){j===V.length?(++O,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=V.slice(j));break}++O}return this.length-=O,B}},{key:"_getBuffer",value:function(F){var I=p.allocUnsafe(F),O=this.head,B=1;for(O.data.copy(I),F-=O.data.length;O=O.next;){var V=O.data,j=F>V.length?V.length:F;if(V.copy(I,I.length-F,0,j),F-=j,F===0){j===V.length?(++B,O.next?this.head=O.next:this.head=this.tail=null):(this.head=O,O.data=V.slice(j));break}++B}return this.length-=B,I}},{key:_,value:function(F,I){return y(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),L}(),ys}function hf(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Ws,this,e)):process.nextTick(Ws,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(ri,r):(r._writableState.errorEmitted=!0,process.nextTick(ia,r,s)):process.nextTick(ia,r,s):t?(process.nextTick(ri,r),t(s)):process.nextTick(ri,r)}),this)}function ia(e,t){Ws(e,t),ri(e)}function ri(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function df(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ws(e,t){e.emit("error",t)}function ff(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}var Zc={destroy:hf,undestroy:df,errorOrDestroy:ff},vr={};function pf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Kc={};function vt(e,t,r){r||(r=Error);function n(s,c,a){return typeof t=="string"?t:t(s,c,a)}var i=function(s){pf(c,s);function c(a,d,p){return s.call(this,n(a,d,p))||this}return c}(r);i.prototype.name=r.name,i.prototype.code=e,Kc[e]=i}function sa(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function gf(e,t,r){return e.substr(0,t.length)===t}function mf(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function wf(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}vt("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);vt("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&gf(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(mf(e," argument"))i="The ".concat(e," ").concat(n," ").concat(sa(t,"type"));else{var s=wf(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(s," ").concat(n," ").concat(sa(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);vt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");vt("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});vt("ERR_STREAM_PREMATURE_CLOSE","Premature close");vt("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});vt("ERR_MULTIPLE_CALLBACK","Callback called multiple times");vt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");vt("ERR_STREAM_WRITE_AFTER_END","write after end");vt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);vt("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);vt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");vr.codes=Kc;var yf=vr.codes.ERR_INVALID_OPT_VALUE;function bf(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function vf(e,t,r,n){var i=bf(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new yf(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}var Qc={getHighWaterMark:vf},_f=Ef;function Ef(e,t){if(bs("noDeprecation"))return e;var r=!1;function n(){if(!r){if(bs("throwDeprecation"))throw new Error(t);bs("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function bs(e){try{if(!ee.localStorage)return!1}catch{return!1}var t=ee.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var vs,oa;function Yc(){if(oa)return vs;oa=1,vs=Y;function e(T){var $=this;this.next=null,this.entry=null,this.finish=function(){J($,T)}}var t;Y.WritableState=z;var r={deprecate:_f},n=Jc,i=Sn.Buffer,s=(typeof ee<"u"?ee:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c(T){return i.from(T)}function a(T){return i.isBuffer(T)||T instanceof s}var d=Zc,p=Qc,g=p.getHighWaterMark,y=vr.codes,_=y.ERR_INVALID_ARG_TYPE,A=y.ERR_METHOD_NOT_IMPLEMENTED,L=y.ERR_MULTIPLE_CALLBACK,H=y.ERR_STREAM_CANNOT_PIPE,F=y.ERR_STREAM_DESTROYED,I=y.ERR_STREAM_NULL_VALUES,O=y.ERR_STREAM_WRITE_AFTER_END,B=y.ERR_UNKNOWN_ENCODING,V=d.errorOrDestroy;St(Y,n);function j(){}function z(T,$,W){t=t||Gr(),T=T||{},typeof W!="boolean"&&(W=$ instanceof t),this.objectMode=!!T.objectMode,W&&(this.objectMode=this.objectMode||!!T.writableObjectMode),this.highWaterMark=g(this,T,"writableHighWaterMark",W),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=T.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){w($,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=T.emitClose!==!1,this.autoDestroy=!!T.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}z.prototype.getBuffer=function(){for(var $=this.bufferedRequest,W=[];$;)W.push($),$=$.next;return W},function(){try{Object.defineProperty(z.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var te;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(te=Function.prototype[Symbol.hasInstance],Object.defineProperty(Y,Symbol.hasInstance,{value:function($){return te.call(this,$)?!0:this!==Y?!1:$&&$._writableState instanceof z}})):te=function($){return $ instanceof this};function Y(T){t=t||Gr();var $=this instanceof t;if(!$&&!te.call(Y,this))return new Y(T);this._writableState=new z(T,this,$),this.writable=!0,T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final)),n.call(this)}Y.prototype.pipe=function(){V(this,new H)};function Q(T,$){var W=new O;V(T,W),process.nextTick($,W)}function fe(T,$,W,Z){var le;return W===null?le=new I:typeof W!="string"&&!$.objectMode&&(le=new _("chunk",["string","Buffer"],W)),le?(V(T,le),process.nextTick(Z,le),!1):!0}Y.prototype.write=function(T,$,W){var Z=this._writableState,le=!1,C=!Z.objectMode&&a(T);return C&&!i.isBuffer(T)&&(T=c(T)),typeof $=="function"&&(W=$,$=null),C?$="buffer":$||($=Z.defaultEncoding),typeof W!="function"&&(W=j),Z.ending?Q(this,W):(C||fe(this,Z,T,W))&&(Z.pendingcb++,le=pe(this,Z,C,T,$,W)),le},Y.prototype.cork=function(){this._writableState.corked++},Y.prototype.uncork=function(){var T=this._writableState;T.corked&&(T.corked--,!T.writing&&!T.corked&&!T.bufferProcessing&&T.bufferedRequest&&k(this,T))},Y.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=$.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf(($+"").toLowerCase())>-1))throw new B($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(Y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function oe(T,$,W){return!T.objectMode&&T.decodeStrings!==!1&&typeof $=="string"&&($=i.from($,W)),$}Object.defineProperty(Y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function pe(T,$,W,Z,le,C){if(!W){var M=oe($,Z,le);Z!==M&&(W=!0,le="buffer",Z=M)}var q=$.objectMode?1:Z.length;$.length+=q;var G=$.length<$.highWaterMark;if(G||($.needDrain=!0),$.writing||$.corked){var se=$.lastBufferedRequest;$.lastBufferedRequest={chunk:Z,encoding:le,isBuf:W,callback:C,next:null},se?se.next=$.lastBufferedRequest:$.bufferedRequest=$.lastBufferedRequest,$.bufferedRequestCount+=1}else x(T,$,!1,q,Z,le,C);return G}function x(T,$,W,Z,le,C,M){$.writelen=Z,$.writecb=M,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new F("write")):W?T._writev(le,$.onwrite):T._write(le,C,$.onwrite),$.sync=!1}function o(T,$,W,Z,le){--$.pendingcb,W?(process.nextTick(le,Z),process.nextTick(R,T,$),T._writableState.errorEmitted=!0,V(T,Z)):(le(Z),T._writableState.errorEmitted=!0,V(T,Z),R(T,$))}function f(T){T.writing=!1,T.writecb=null,T.length-=T.writelen,T.writelen=0}function w(T,$){var W=T._writableState,Z=W.sync,le=W.writecb;if(typeof le!="function")throw new L;if(f(W),$)o(T,W,Z,$,le);else{var C=N(W)||T.destroyed;!C&&!W.corked&&!W.bufferProcessing&&W.bufferedRequest&&k(T,W),Z?process.nextTick(b,T,W,C,le):b(T,W,C,le)}}function b(T,$,W,Z){W||S(T,$),$.pendingcb--,Z(),R(T,$)}function S(T,$){$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"))}function k(T,$){$.bufferProcessing=!0;var W=$.bufferedRequest;if(T._writev&&W&&W.next){var Z=$.bufferedRequestCount,le=new Array(Z),C=$.corkedRequestsFree;C.entry=W;for(var M=0,q=!0;W;)le[M]=W,W.isBuf||(q=!1),W=W.next,M+=1;le.allBuffers=q,x(T,$,!0,$.length,le,"",C.finish),$.pendingcb++,$.lastBufferedRequest=null,C.next?($.corkedRequestsFree=C.next,C.next=null):$.corkedRequestsFree=new e($),$.bufferedRequestCount=0}else{for(;W;){var G=W.chunk,se=W.encoding,ue=W.callback,re=$.objectMode?1:G.length;if(x(T,$,!1,re,G,se,ue),W=W.next,$.bufferedRequestCount--,$.writing)break}W===null&&($.lastBufferedRequest=null)}$.bufferedRequest=W,$.bufferProcessing=!1}Y.prototype._write=function(T,$,W){W(new A("_write()"))},Y.prototype._writev=null,Y.prototype.end=function(T,$,W){var Z=this._writableState;return typeof T=="function"?(W=T,T=null,$=null):typeof $=="function"&&(W=$,$=null),T!=null&&this.write(T,$),Z.corked&&(Z.corked=1,this.uncork()),Z.ending||K(this,Z,W),this},Object.defineProperty(Y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function N(T){return T.ending&&T.length===0&&T.bufferedRequest===null&&!T.finished&&!T.writing}function v(T,$){T._final(function(W){$.pendingcb--,W&&V(T,W),$.prefinished=!0,T.emit("prefinish"),R(T,$)})}function u(T,$){!$.prefinished&&!$.finalCalled&&(typeof T._final=="function"&&!$.destroyed?($.pendingcb++,$.finalCalled=!0,process.nextTick(v,T,$)):($.prefinished=!0,T.emit("prefinish")))}function R(T,$){var W=N($);if(W&&(u(T,$),$.pendingcb===0&&($.finished=!0,T.emit("finish"),$.autoDestroy))){var Z=T._readableState;(!Z||Z.autoDestroy&&Z.endEmitted)&&T.destroy()}return W}function K(T,$,W){$.ending=!0,R(T,$),W&&($.finished?process.nextTick(W):T.once("finish",W)),$.ended=!0,T.writable=!1}function J(T,$,W){var Z=T.entry;for(T.entry=null;Z;){var le=Z.callback;$.pendingcb--,le(W),Z=Z.next}$.corkedRequestsFree.next=T}return Object.defineProperty(Y.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function($){this._writableState&&(this._writableState.destroyed=$)}}),Y.prototype.destroy=d.destroy,Y.prototype._undestroy=d.undestroy,Y.prototype._destroy=function(T,$){$(T)},vs}var _s,aa;function Gr(){if(aa)return _s;aa=1;var e=Object.keys||function(p){var g=[];for(var y in p)g.push(y);return g};_s=c;var t=el(),r=Yc();St(c,t);for(var n=e(r.prototype),i=0;i>5===6?2:I>>4===14?3:I>>3===30?4:I>>6===2?-1:-2}function c(I,O,B){var V=O.length-1;if(V=0?(j>0&&(I.lastNeed=j-1),j):--V=0?(j>0&&(I.lastNeed=j-2),j):--V=0?(j>0&&(j===2?j=0:I.lastNeed=j-3),j):0))}function a(I,O,B){if((O[0]&192)!==128)return I.lastNeed=0,"�";if(I.lastNeed>1&&O.length>1){if((O[1]&192)!==128)return I.lastNeed=1,"�";if(I.lastNeed>2&&O.length>2&&(O[2]&192)!==128)return I.lastNeed=2,"�"}}function d(I){var O=this.lastTotal-this.lastNeed,B=a(this,I);if(B!==void 0)return B;if(this.lastNeed<=I.length)return I.copy(this.lastChar,O,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);I.copy(this.lastChar,O,0,I.length),this.lastNeed-=I.length}function p(I,O){var B=c(this,I,O);if(!this.lastNeed)return I.toString("utf8",O);this.lastTotal=B;var V=I.length-(B-this.lastNeed);return I.copy(this.lastChar,0,V),I.toString("utf8",O,V)}function g(I){var O=I&&I.length?this.write(I):"";return this.lastNeed?O+"�":O}function y(I,O){if((I.length-O)%2===0){var B=I.toString("utf16le",O);if(B){var V=B.charCodeAt(B.length-1);if(V>=55296&&V<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1],B.slice(0,-1)}return B}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=I[I.length-1],I.toString("utf16le",O,I.length-1)}function _(I){var O=I&&I.length?this.write(I):"";if(this.lastNeed){var B=this.lastTotal-this.lastNeed;return O+this.lastChar.toString("utf16le",0,B)}return O}function A(I,O){var B=(I.length-O)%3;return B===0?I.toString("base64",O):(this.lastNeed=3-B,this.lastTotal=3,B===1?this.lastChar[0]=I[I.length-1]:(this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1]),I.toString("base64",O,I.length-B))}function L(I){var O=I&&I.length?this.write(I):"";return this.lastNeed?O+this.lastChar.toString("base64",0,3-this.lastNeed):O}function H(I){return I.toString(this.encoding)}function F(I){return I&&I.length?this.write(I):""}return Es}var ua=vr.codes.ERR_STREAM_PREMATURE_CLOSE;function Sf(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i0)if(typeof M!="string"&&!ue.objectMode&&Object.getPrototypeOf(M)!==n.prototype&&(M=s(M)),G)ue.endEmitted?j(C,new I):oe(C,ue,M,!0);else if(ue.ended)j(C,new H);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!q?(M=ue.decoder.write(M),ue.objectMode||M.length!==0?oe(C,ue,M,!1):k(C,ue)):oe(C,ue,M,!1)}else G||(ue.reading=!1,k(C,ue))}return!ue.ended&&(ue.length=x?C=x:(C--,C|=C>>>1,C|=C>>>2,C|=C>>>4,C|=C>>>8,C|=C>>>16,C++),C}function f(C,M){return C<=0||M.length===0&&M.ended?0:M.objectMode?1:C!==C?M.flowing&&M.length?M.buffer.head.data.length:M.length:(C>M.highWaterMark&&(M.highWaterMark=o(C)),C<=M.length?C:M.ended?M.length:(M.needReadable=!0,0))}Q.prototype.read=function(C){d("read",C),C=parseInt(C,10);var M=this._readableState,q=C;if(C!==0&&(M.emittedReadable=!1),C===0&&M.needReadable&&((M.highWaterMark!==0?M.length>=M.highWaterMark:M.length>0)||M.ended))return d("read: emitReadable",M.length,M.ended),M.length===0&&M.ended?W(this):b(this),null;if(C=f(C,M),C===0&&M.ended)return M.length===0&&W(this),null;var G=M.needReadable;d("need readable",G),(M.length===0||M.length-C0?se=$(C,M):se=null,se===null?(M.needReadable=M.length<=M.highWaterMark,C=0):(M.length-=C,M.awaitDrain=0),M.length===0&&(M.ended||(M.needReadable=!0),q!==C&&M.ended&&W(this)),se!==null&&this.emit("data",se),se};function w(C,M){if(d("onEofChunk"),!M.ended){if(M.decoder){var q=M.decoder.end();q&&q.length&&(M.buffer.push(q),M.length+=M.objectMode?1:q.length)}M.ended=!0,M.sync?b(C):(M.needReadable=!1,M.emittedReadable||(M.emittedReadable=!0,S(C)))}}function b(C){var M=C._readableState;d("emitReadable",M.needReadable,M.emittedReadable),M.needReadable=!1,M.emittedReadable||(d("emitReadable",M.flowing),M.emittedReadable=!0,process.nextTick(S,C))}function S(C){var M=C._readableState;d("emitReadable_",M.destroyed,M.length,M.ended),!M.destroyed&&(M.length||M.ended)&&(C.emit("readable"),M.emittedReadable=!1),M.needReadable=!M.flowing&&!M.ended&&M.length<=M.highWaterMark,T(C)}function k(C,M){M.readingMore||(M.readingMore=!0,process.nextTick(N,C,M))}function N(C,M){for(;!M.reading&&!M.ended&&(M.length1&&le(G.pipes,C)!==-1)&&!Se&&(d("false write response, pause",G.awaitDrain),G.awaitDrain++),q.pause())}function ve(m){d("onerror",m),_e(),C.removeListener("error",ve),t(C,"error")===0&&j(C,m)}te(C,"error",ve);function Re(){C.removeListener("finish",Qe),_e()}C.once("close",Re);function Qe(){d("onfinish"),C.removeListener("close",Re),_e()}C.once("finish",Qe);function _e(){d("unpipe"),q.unpipe(C)}return C.emit("pipe",q),G.flowing||(d("pipe resume"),q.resume()),C};function v(C){return function(){var q=C._readableState;d("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&t(C,"data")&&(q.flowing=!0,T(C))}}Q.prototype.unpipe=function(C){var M=this._readableState,q={hasUnpiped:!1};if(M.pipesCount===0)return this;if(M.pipesCount===1)return C&&C!==M.pipes?this:(C||(C=M.pipes),M.pipes=null,M.pipesCount=0,M.flowing=!1,C&&C.emit("unpipe",this,q),this);if(!C){var G=M.pipes,se=M.pipesCount;M.pipes=null,M.pipesCount=0,M.flowing=!1;for(var ue=0;ue0,G.flowing!==!1&&this.resume()):C==="readable"&&!G.endEmitted&&!G.readableListening&&(G.readableListening=G.needReadable=!0,G.flowing=!1,G.emittedReadable=!1,d("on readable",G.length,G.reading),G.length?b(this):G.reading||process.nextTick(R,this)),q},Q.prototype.addListener=Q.prototype.on,Q.prototype.removeListener=function(C,M){var q=r.prototype.removeListener.call(this,C,M);return C==="readable"&&process.nextTick(u,this),q},Q.prototype.removeAllListeners=function(C){var M=r.prototype.removeAllListeners.apply(this,arguments);return(C==="readable"||C===void 0)&&process.nextTick(u,this),M};function u(C){var M=C._readableState;M.readableListening=C.listenerCount("readable")>0,M.resumeScheduled&&!M.paused?M.flowing=!0:C.listenerCount("data")>0&&C.resume()}function R(C){d("readable nexttick read 0"),C.read(0)}Q.prototype.resume=function(){var C=this._readableState;return C.flowing||(d("resume"),C.flowing=!C.readableListening,K(this,C)),C.paused=!1,this};function K(C,M){M.resumeScheduled||(M.resumeScheduled=!0,process.nextTick(J,C,M))}function J(C,M){d("resume",M.reading),M.reading||C.read(0),M.resumeScheduled=!1,C.emit("resume"),T(C),M.flowing&&!M.reading&&C.read(0)}Q.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function T(C){var M=C._readableState;for(d("flow",M.flowing);M.flowing&&C.read()!==null;);}Q.prototype.wrap=function(C){var M=this,q=this._readableState,G=!1;C.on("end",function(){if(d("wrapped end"),q.decoder&&!q.ended){var re=q.decoder.end();re&&re.length&&M.push(re)}M.push(null)}),C.on("data",function(re){if(d("wrapped data"),q.decoder&&(re=q.decoder.write(re)),!(q.objectMode&&re==null)&&!(!q.objectMode&&(!re||!re.length))){var be=M.push(re);be||(G=!0,C.pause())}});for(var se in C)this[se]===void 0&&typeof C[se]=="function"&&(this[se]=function(be){return function(){return C[be].apply(C,arguments)}}(se));for(var ue=0;ue=M.length?(M.decoder?q=M.buffer.join(""):M.buffer.length===1?q=M.buffer.first():q=M.buffer.concat(M.length),M.buffer.clear()):q=M.buffer.consume(C,M.decoder),q}function W(C){var M=C._readableState;d("endReadable",M.endEmitted),M.endEmitted||(M.ended=!0,process.nextTick(Z,M,C))}function Z(C,M){if(d("endReadableNT",C.endEmitted,C.length),!C.endEmitted&&C.length===0&&(C.endEmitted=!0,M.readable=!1,M.emit("end"),C.autoDestroy)){var q=M._writableState;(!q||q.autoDestroy&&q.finished)&&M.destroy()}}typeof Symbol=="function"&&(Q.from=function(C,M){return V===void 0&&(V=kf()),V(Q,C,M)});function le(C,M){for(var q=0,G=C.length;q0;return Df(c,d,p,function(g){i||(i=g),g&&s.forEach(ma),!d&&(s.forEach(ma),n(i))})});return t.reduce(jf)}var Wf=Hf;(function(e,t){t=e.exports=el(),t.Stream=t,t.Readable=t,t.Writable=Yc(),t.Duplex=Gr(),t.Transform=tl,t.PassThrough=Bf,t.finished=lo,t.pipeline=Wf})(Hs,Hs.exports);var il=Hs.exports;const{Transform:Vf}=il;var qf=e=>class sl extends Vf{constructor(r,n,i,s,c){super(c),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=s,this._options=c,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let s=null;try{this.update(r,n)}catch(c){s=c}i(s)}_flush(r){let n=null;try{this.push(this.digest())}catch(i){n=i}r(n)}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(n=n.toString(r)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new sl(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const{Transform:zf}=il;var Gf=e=>class ol extends zf{constructor(r,n,i,s){super(s),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._options=s,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let s=null;try{this.update(r,n)}catch(c){s=c}i(s)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}squeeze(r,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(r);return n!==void 0&&(i=i.toString(n)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new ol(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const Jf=qf,Zf=Gf;var Kf=function(e){const t=Jf(e),r=Zf(e);return function(n,i){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new t(1152,448,null,224,i);case"keccak256":return new t(1088,512,null,256,i);case"keccak384":return new t(832,768,null,384,i);case"keccak512":return new t(576,1024,null,512,i);case"sha3-224":return new t(1152,448,6,224,i);case"sha3-256":return new t(1088,512,6,256,i);case"sha3-384":return new t(832,768,6,384,i);case"sha3-512":return new t(576,1024,6,512,i);case"shake128":return new r(1344,256,31,i);case"shake256":return new r(1088,512,31,i);default:throw new Error("Invald algorithm: "+n)}}},al={};const wa=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];al.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],i=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],a=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],p=e[7]^e[17]^e[27]^e[37]^e[47],g=e[8]^e[18]^e[28]^e[38]^e[48],y=e[9]^e[19]^e[29]^e[39]^e[49];let _=g^(i<<1|s>>>31),A=y^(s<<1|i>>>31);const L=e[0]^_,H=e[1]^A,F=e[10]^_,I=e[11]^A,O=e[20]^_,B=e[21]^A,V=e[30]^_,j=e[31]^A,z=e[40]^_,te=e[41]^A;_=r^(c<<1|a>>>31),A=n^(a<<1|c>>>31);const Y=e[2]^_,Q=e[3]^A,fe=e[12]^_,oe=e[13]^A,pe=e[22]^_,x=e[23]^A,o=e[32]^_,f=e[33]^A,w=e[42]^_,b=e[43]^A;_=i^(d<<1|p>>>31),A=s^(p<<1|d>>>31);const S=e[4]^_,k=e[5]^A,N=e[14]^_,v=e[15]^A,u=e[24]^_,R=e[25]^A,K=e[34]^_,J=e[35]^A,T=e[44]^_,$=e[45]^A;_=c^(g<<1|y>>>31),A=a^(y<<1|g>>>31);const W=e[6]^_,Z=e[7]^A,le=e[16]^_,C=e[17]^A,M=e[26]^_,q=e[27]^A,G=e[36]^_,se=e[37]^A,ue=e[46]^_,re=e[47]^A;_=d^(r<<1|n>>>31),A=p^(n<<1|r>>>31);const be=e[8]^_,dt=e[9]^A,Se=e[18]^_,Ee=e[19]^A,Je=e[28]^_,ve=e[29]^A,Re=e[38]^_,Qe=e[39]^A,_e=e[48]^_,m=e[49]^A,l=L,h=H,E=I<<4|F>>>28,P=F<<4|I>>>28,D=O<<3|B>>>29,U=B<<3|O>>>29,he=j<<9|V>>>23,ae=V<<9|j>>>23,ie=z<<18|te>>>14,Ce=te<<18|z>>>14,ne=Y<<1|Q>>>31,Me=Q<<1|Y>>>31,Sr=oe<<12|fe>>>20,ke=fe<<12|oe>>>20,xe=pe<<10|x>>>22,Rr=x<<10|pe>>>22,Ie=f<<13|o>>>19,Ae=o<<13|f>>>19,Cr=w<<2|b>>>30,Te=b<<2|w>>>30,Ne=k<<30|S>>>2,Mr=S<<30|k>>>2,Le=N<<6|v>>>26,Be=v<<6|N>>>26,kr=R<<11|u>>>21,Pe=u<<11|R>>>21,Oe=K<<15|J>>>17,xr=J<<15|K>>>17,$e=$<<29|T>>>3,Fe=T<<29|$>>>3,Ir=W<<28|Z>>>4,De=Z<<28|W>>>4,je=C<<23|le>>>9,Ar=le<<23|C>>>9,Ue=M<<25|q>>>7,He=q<<25|M>>>7,Gt=G<<21|se>>>11,Jt=se<<21|G>>>11,Zt=re<<24|ue>>>8,Kt=ue<<24|re>>>8,Qt=be<<27|dt>>>5,Yt=dt<<27|be>>>5,Xt=Se<<20|Ee>>>12,er=Ee<<20|Se>>>12,tr=ve<<7|Je>>>25,rr=Je<<7|ve>>>25,nr=Re<<8|Qe>>>24,ir=Qe<<8|Re>>>24,sr=_e<<14|m>>>18,or=m<<14|_e>>>18;e[0]=l^~Sr&kr,e[1]=h^~ke&Pe,e[10]=Ir^~Xt&D,e[11]=De^~er&U,e[20]=ne^~Le&Ue,e[21]=Me^~Be&He,e[30]=Qt^~E&xe,e[31]=Yt^~P&Rr,e[40]=Ne^~je&tr,e[41]=Mr^~Ar&rr,e[2]=Sr^~kr&Gt,e[3]=ke^~Pe&Jt,e[12]=Xt^~D&Ie,e[13]=er^~U&Ae,e[22]=Le^~Ue&nr,e[23]=Be^~He&ir,e[32]=E^~xe&Oe,e[33]=P^~Rr&xr,e[42]=je^~tr&he,e[43]=Ar^~rr&ae,e[4]=kr^~Gt&sr,e[5]=Pe^~Jt&or,e[14]=D^~Ie&$e,e[15]=U^~Ae&Fe,e[24]=Ue^~nr&ie,e[25]=He^~ir&Ce,e[34]=xe^~Oe&Zt,e[35]=Rr^~xr&Kt,e[44]=tr^~he&Cr,e[45]=rr^~ae&Te,e[6]=Gt^~sr&l,e[7]=Jt^~or&h,e[16]=Ie^~$e&Ir,e[17]=Ae^~Fe&De,e[26]=nr^~ie&ne,e[27]=ir^~Ce&Me,e[36]=Oe^~Zt&Qt,e[37]=xr^~Kt&Yt,e[46]=he^~Cr&Ne,e[47]=ae^~Te&Mr,e[8]=sr^~l&Sr,e[9]=or^~h&ke,e[18]=$e^~Ir&Xt,e[19]=Fe^~De&er,e[28]=ie^~ne&Le,e[29]=Ce^~Me&Be,e[38]=Zt^~Qt&E,e[39]=Kt^~Yt&P,e[48]=Cr^~Ne&je,e[49]=Te^~Mr&Ar,e[0]^=wa[t*2],e[1]^=wa[t*2+1]}};const ii=al;function rn(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}rn.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};rn.prototype.absorb=function(e){for(let t=0;t>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(ii.p1600(this.state),this.count=0);return t};rn.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};var Qf=rn,Yf=Kf(Qf);const Xf=Yf,e0=ui;function cl(e){return Buffer.allocUnsafe(e).fill(0)}function ll(e,t,r){const n=cl(t);return e=Fi(e),r?e.length"u")throw new Error("Not an array?");if(r=pl(e),r!=="dynamic"&&r!==0&&t.length>r)throw new Error("Elements exceed array size: "+r);i=[],e=e.slice(0,e.lastIndexOf("[")),typeof t=="string"&&(t=JSON.parse(t));for(s in t)i.push(It(e,t[s]));if(r==="dynamic"){var c=It("uint256",t.length);i.unshift(c)}return Buffer.concat(i)}else{if(e==="bytes")return t=new Buffer(t),i=Buffer.concat([It("uint256",t.length),t]),t.length%32!==0&&(i=Buffer.concat([i,mr.zeros(32-t.length%32)])),i;if(e.startsWith("bytes")){if(r=Ur(e),r<1||r>32)throw new Error("Invalid bytes width: "+r);return mr.setLengthRight(t,32)}else if(e.startsWith("uint")){if(r=Ur(e),r%8||r<8||r>256)throw new Error("Invalid uint width: "+r);if(n=hr(t),n.bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+n.bitLength());if(n<0)throw new Error("Supplied uint is negative");return n.toArrayLike(Buffer,"be",32)}else if(e.startsWith("int")){if(r=Ur(e),r%8||r<8||r>256)throw new Error("Invalid int width: "+r);if(n=hr(t),n.bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+n.bitLength());return n.toTwos(256).toArrayLike(Buffer,"be",32)}else if(e.startsWith("ufixed")){if(r=ya(e),n=hr(t),n<0)throw new Error("Supplied ufixed is negative");return It("uint256",n.mul(new fr(2).pow(new fr(r[1]))))}else if(e.startsWith("fixed"))return r=ya(e),It("int256",hr(t).mul(new fr(2).pow(new fr(r[1]))))}throw new Error("Unsupported or invalid type: "+e)}function s0(e){return e==="string"||e==="bytes"||pl(e)==="dynamic"}function o0(e){return e.lastIndexOf("]")===e.length-1}function a0(e,t){var r=[],n=[],i=32*e.length;for(var s in e){var c=fl(e[s]),a=t[s],d=It(c,a);s0(c)?(r.push(It("uint256",i)),n.push(d),i+=d.length):r.push(d)}return Buffer.concat(r.concat(n))}function gl(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var r,n,i=[],s=0;s32)throw new Error("Invalid bytes width: "+r);i.push(mr.setLengthRight(a,r))}else if(c.startsWith("uint")){if(r=Ur(c),r%8||r<8||r>256)throw new Error("Invalid uint width: "+r);if(n=hr(a),n.bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+n.bitLength());i.push(n.toArrayLike(Buffer,"be",r/8))}else if(c.startsWith("int")){if(r=Ur(c),r%8||r<8||r>256)throw new Error("Invalid int width: "+r);if(n=hr(a),n.bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+n.bitLength());i.push(n.toTwos(r).toArrayLike(Buffer,"be",r/8))}else throw new Error("Unsupported or invalid type: "+c)}return Buffer.concat(i)}function c0(e,t){return mr.keccak(gl(e,t))}var l0={rawEncode:a0,solidityPack:gl,soliditySHA3:c0};const Et=dl,hn=l0,ml={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},ks={encodeData(e,t,r,n=!0){const i=["bytes32"],s=[this.hashType(e,r)];if(n){const c=(a,d,p)=>{if(r[d]!==void 0)return["bytes32",p==null?"0x0000000000000000000000000000000000000000000000000000000000000000":Et.keccak(this.encodeData(d,p,r,n))];if(p===void 0)throw new Error(`missing value for field ${a} of type ${d}`);if(d==="bytes")return["bytes32",Et.keccak(p)];if(d==="string")return typeof p=="string"&&(p=Buffer.from(p,"utf8")),["bytes32",Et.keccak(p)];if(d.lastIndexOf("]")===d.length-1){const g=d.slice(0,d.lastIndexOf("[")),y=p.map(_=>c(a,g,_));return["bytes32",Et.keccak(hn.rawEncode(y.map(([_])=>_),y.map(([,_])=>_)))]}return[d,p]};for(const a of r[e]){const[d,p]=c(a.name,a.type,t[a.name]);i.push(d),s.push(p)}}else for(const c of r[e]){let a=t[c.name];if(a!==void 0)if(c.type==="bytes")i.push("bytes32"),a=Et.keccak(a),s.push(a);else if(c.type==="string")i.push("bytes32"),typeof a=="string"&&(a=Buffer.from(a,"utf8")),a=Et.keccak(a),s.push(a);else if(r[c.type]!==void 0)i.push("bytes32"),a=Et.keccak(this.encodeData(c.type,a,r,n)),s.push(a);else{if(c.type.lastIndexOf("]")===c.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");i.push(c.type),s.push(a)}}return hn.rawEncode(i,s)},encodeType(e,t){let r="",n=this.findTypeDependencies(e,t).filter(i=>i!==e);n=[e].concat(n.sort());for(const i of n){if(!t[i])throw new Error("No type definition specified: "+i);r+=i+"("+t[i].map(({name:c,type:a})=>a+" "+c).join(",")+")"}return r},findTypeDependencies(e,t,r=[]){if(e=e.match(/^\w*/)[0],r.includes(e)||t[e]===void 0)return r;r.push(e);for(const n of t[e])for(const i of this.findTypeDependencies(n.type,t,r))!r.includes(i)&&r.push(i);return r},hashStruct(e,t,r,n=!0){return Et.keccak(this.encodeData(e,t,r,n))},hashType(e,t){return Et.keccak(this.encodeType(e,t))},sanitizeData(e){const t={};for(const r in ml.properties)e[r]&&(t[r]=e[r]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){const r=this.sanitizeData(e),n=[Buffer.from("1901","hex")];return n.push(this.hashStruct("EIP712Domain",r.domain,r.types,t)),r.primaryType!=="EIP712Domain"&&n.push(this.hashStruct(r.primaryType,r.message,r.types,t)),Et.keccak(Buffer.concat(n))}};var u0={TYPED_MESSAGE_SCHEMA:ml,TypedDataUtils:ks,hashForSignTypedDataLegacy:function(e){return h0(e.data)},hashForSignTypedData_v3:function(e){return ks.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return ks.hash(e.data)}};function h0(e){const t=new Error("Expect argument to be non-empty array");if(typeof e!="object"||!e.length)throw t;const r=e.map(function(s){return s.type==="bytes"?Et.toBuffer(s.value):s.value}),n=e.map(function(s){return s.type}),i=e.map(function(s){if(!s.name)throw t;return s.type+" "+s.name});return hn.soliditySHA3(["bytes32","bytes32"],[hn.soliditySHA3(new Array(e.length).fill("string"),i),hn.soliditySHA3(n,r)])}var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.filterFromParam=Jr.FilterPolyfill=void 0;const Fr=Ze,it=X,d0=5*60*1e3,dr={jsonrpc:"2.0",id:0};class f0{constructor(t){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,Fr.IntNumber)(1),this.REQUEST_THROTTLE_INTERVAL=1e3,this.lastFetchTimestamp=new Date(0),this.resolvers=[],this.provider=t}async newFilter(t){const r=wl(t),n=this.makeFilterId(),i=await this.setInitialCursorPosition(n,r.fromBlock);return console.info(`Installing new log filter(${n}):`,r,"initial cursor position:",i),this.logFilters.set(n,r),this.setFilterTimeout(n),(0,it.hexStringFromIntNumber)(n)}async newBlockFilter(){const t=this.makeFilterId(),r=await this.setInitialCursorPosition(t,"latest");return console.info(`Installing new block filter (${t}) with initial cursor position:`,r),this.blockFilters.add(t),this.setFilterTimeout(t),(0,it.hexStringFromIntNumber)(t)}async newPendingTransactionFilter(){const t=this.makeFilterId(),r=await this.setInitialCursorPosition(t,"latest");return console.info(`Installing new block filter (${t}) with initial cursor position:`,r),this.pendingTransactionFilters.add(t),this.setFilterTimeout(t),(0,it.hexStringFromIntNumber)(t)}uninstallFilter(t){const r=(0,it.intNumberFromHexString)(t);return console.info(`Uninstalling filter (${r})`),this.deleteFilter(r),!0}getFilterChanges(t){const r=(0,it.intNumberFromHexString)(t);return this.timeouts.has(r)&&this.setFilterTimeout(r),this.logFilters.has(r)?this.getLogFilterChanges(r):this.blockFilters.has(r)?this.getBlockFilterChanges(r):this.pendingTransactionFilters.has(r)?this.getPendingTransactionFilterChanges(r):Promise.resolve(Gn())}async getFilterLogs(t){const r=(0,it.intNumberFromHexString)(t),n=this.logFilters.get(r);return n?this.sendAsyncPromise(Object.assign(Object.assign({},dr),{method:"eth_getLogs",params:[ba(n)]})):Gn()}makeFilterId(){return(0,Fr.IntNumber)(++this.nextFilterId)}sendAsyncPromise(t){return new Promise((r,n)=>{this.provider.sendAsync(t,(i,s)=>{if(i)return n(i);if(Array.isArray(s)||s==null)return n(new Error(`unexpected response received: ${JSON.stringify(s)}`));r(s)})})}deleteFilter(t){console.info(`Deleting filter (${t})`),this.logFilters.delete(t),this.blockFilters.delete(t),this.pendingTransactionFilters.delete(t),this.cursors.delete(t),this.timeouts.delete(t)}async getLogFilterChanges(t){const r=this.logFilters.get(t),n=this.cursors.get(t);if(!n||!r)return Gn();const i=await this.getCurrentBlockHeight(),s=r.toBlock==="latest"?i:r.toBlock;if(n>i||n>Number(r.toBlock))return Jn();console.info(`Fetching logs from ${n} to ${s} for filter ${t}`);const c=await this.sendAsyncPromise(Object.assign(Object.assign({},dr),{method:"eth_getLogs",params:[ba(Object.assign(Object.assign({},r),{fromBlock:n,toBlock:s}))]}));if(Array.isArray(c.result)){const a=c.result.map(p=>(0,it.intNumberFromHexString)(p.blockNumber||"0x0")),d=Math.max(...a);if(d&&d>n){const p=(0,Fr.IntNumber)(d+1);console.info(`Moving cursor position for filter (${t}) from ${n} to ${p}`),this.cursors.set(t,p)}}return c}async getBlockFilterChanges(t){const r=this.cursors.get(t);if(!r)return Gn();const n=await this.getCurrentBlockHeight();if(r>n)return Jn();console.info(`Fetching blocks from ${r} to ${n} for filter (${t})`);const i=(await Promise.all((0,it.range)(r,n+1).map(c=>this.getBlockHashByNumber((0,Fr.IntNumber)(c))))).filter(c=>!!c),s=(0,Fr.IntNumber)(r+i.length);return console.info(`Moving cursor position for filter (${t}) from ${r} to ${s}`),this.cursors.set(t,s),Object.assign(Object.assign({},dr),{result:i})}async getPendingTransactionFilterChanges(t){return Promise.resolve(Jn())}async setInitialCursorPosition(t,r){const n=await this.getCurrentBlockHeight(),i=typeof r=="number"&&r>n?r:n;return this.cursors.set(t,i),i}setFilterTimeout(t){const r=this.timeouts.get(t);r&&window.clearTimeout(r);const n=window.setTimeout(()=>{console.info(`Filter (${t}) timed out`),this.deleteFilter(t)},d0);this.timeouts.set(t,n)}async getCurrentBlockHeight(){const t=new Date;if(t.getTime()-this.lastFetchTimestamp.getTime()>this.REQUEST_THROTTLE_INTERVAL){this.lastFetchTimestamp=t;const r=await this._getCurrentBlockHeight();this.currentBlockHeight=r,this.resolvers.forEach(n=>n(r)),this.resolvers=[]}return this.currentBlockHeight?this.currentBlockHeight:new Promise(r=>this.resolvers.push(r))}async _getCurrentBlockHeight(){const{result:t}=await this.sendAsyncPromise(Object.assign(Object.assign({},dr),{method:"eth_blockNumber",params:[]}));return(0,it.intNumberFromHexString)((0,it.ensureHexString)(t))}async getBlockHashByNumber(t){const r=await this.sendAsyncPromise(Object.assign(Object.assign({},dr),{method:"eth_getBlockByNumber",params:[(0,it.hexStringFromIntNumber)(t),!1]}));return r.result&&typeof r.result.hash=="string"?(0,it.ensureHexString)(r.result.hash):null}}Jr.FilterPolyfill=f0;function wl(e){return{fromBlock:va(e.fromBlock),toBlock:va(e.toBlock),addresses:e.address===void 0?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}Jr.filterFromParam=wl;function ba(e){const t={fromBlock:_a(e.fromBlock),toBlock:_a(e.toBlock),topics:e.topics};return e.addresses!==null&&(t.address=e.addresses),t}function va(e){if(e===void 0||e==="latest"||e==="pending")return"latest";if(e==="earliest")return(0,Fr.IntNumber)(0);if((0,it.isHexString)(e))return(0,it.intNumberFromHexString)(e);throw new Error(`Invalid block option: ${String(e)}`)}function _a(e){return e==="latest"?e:(0,it.hexStringFromIntNumber)(e)}function Gn(){return Object.assign(Object.assign({},dr),{error:{code:-32e3,message:"filter not found"}})}function Jn(){return Object.assign(Object.assign({},dr),{result:[]})}var Di={},yl={},ji={},uo=p0;function p0(e){e=e||{};var t=e.max||Number.MAX_SAFE_INTEGER,r=typeof e.start<"u"?e.start:Math.floor(Math.random()*t);return function(){return r=r%t,r++}}const Ea=(e,t)=>function(){const r=t.promiseModule,n=new Array(arguments.length);for(let i=0;i{t.errorFirst?n.push(function(c,a){if(t.multiArgs){const d=new Array(arguments.length-1);for(let p=1;p{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const r=i=>{const s=c=>typeof c=="string"?i===c:c.test(i);return t.include?t.include.some(s):!t.exclude.some(s)};let n;typeof e=="function"?n=function(){return t.excludeMain?e.apply(this,arguments):Ea(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(const i in e){const s=e[i];n[i]=typeof s=="function"&&r(i)?Ea(s,t):s}return n},Nn={},Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});const m0=ai;function Sa(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout(()=>{throw n})}}function w0(e){const t=e.length,r=new Array(t);for(let n=0;n0&&([c]=r),c instanceof Error)throw c;const a=new Error(`Unhandled error.${c?` (${c.message})`:""}`);throw a.context=c,a}const s=i[t];if(s===void 0)return!1;if(typeof s=="function")Sa(s,this,r);else{const c=s.length,a=w0(s);for(let d=0;de+t,Ra=["sync","latest"];class S0 extends v0.default{constructor(t){super(),this._blockResetDuration=t.blockResetDuration||20*_0,this._usePastBlocks=t.usePastBlocks||!1,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(r=>this.once("latest",r))}removeAllListeners(t){return t?super.removeAllListeners(t):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(t){Ra.includes(t)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit("_started"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit("_ended"))}_getBlockTrackerEventCount(){return Ra.map(t=>this.listenerCount(t)).reduce(E0)}_shouldUseNewBlock(t){const r=this._currentBlock;if(!r)return!0;const n=Ca(t),i=Ca(r);return this._usePastBlocks&&ni}_newPotentialLatest(t){this._shouldUseNewBlock(t)&&this._setCurrentBlock(t)}_setCurrentBlock(t){const r=this._currentBlock;this._currentBlock=t,this.emit("latest",t),this.emit("sync",{oldBlock:r,newBlock:t})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}Nn.BaseBlockTracker=S0;function Ca(e){return Number.parseInt(e,16)}var bl={},vl={},rt={};class _l extends TypeError{constructor(t,r){let n;const{message:i,explanation:s,...c}=t,{path:a}=t,d=a.length===0?i:`At path: ${a.join(".")} -- ${i}`;super(s??d),s!=null&&(this.cause=d),Object.assign(this,c),this.name=this.constructor.name,this.failures=()=>n??(n=[t,...r()])}}function R0(e){return bt(e)&&typeof e[Symbol.iterator]=="function"}function bt(e){return typeof e=="object"&&e!=null}function Ma(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ke(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function C0(e){const{done:t,value:r}=e.next();return t?void 0:r}function M0(e,t,r,n){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:i,branch:s}=t,{type:c}=r,{refinement:a,message:d=`Expected a value of type \`${c}\`${a?` with refinement \`${a}\``:""}, but received: \`${Ke(n)}\``}=e;return{value:n,type:c,refinement:a,key:i[i.length-1],path:i,branch:s,...e,message:d}}function*Vs(e,t,r,n){R0(e)||(e=[e]);for(const i of e){const s=M0(i,t,r,n);s&&(yield s)}}function*ho(e,t,r={}){const{path:n=[],branch:i=[e],coerce:s=!1,mask:c=!1}=r,a={path:n,branch:i};if(s&&(e=t.coercer(e,a),c&&t.type!=="type"&&bt(t.schema)&&bt(e)&&!Array.isArray(e)))for(const p in e)t.schema[p]===void 0&&delete e[p];let d="valid";for(const p of t.validator(e,a))p.explanation=r.message,d="not_valid",yield[p,void 0];for(let[p,g,y]of t.entries(e,a)){const _=ho(g,y,{path:p===void 0?n:[...n,p],branch:p===void 0?i:[...i,g],coerce:s,mask:c,message:r.message});for(const A of _)A[0]?(d=A[0].refinement!=null?"not_refined":"not_valid",yield[A[0],void 0]):s&&(g=A[1],p===void 0?e=g:e instanceof Map?e.set(p,g):e instanceof Set?e.add(g):bt(e)&&(g!==void 0||p in e)&&(e[p]=g))}if(d!=="not_valid")for(const p of t.refiner(e,a))p.explanation=r.message,d="not_refined",yield[p,void 0];d==="valid"&&(yield[void 0,e])}class ze{constructor(t){const{type:r,schema:n,validator:i,refiner:s,coercer:c=d=>d,entries:a=function*(){}}=t;this.type=r,this.schema=n,this.entries=a,this.coercer=c,i?this.validator=(d,p)=>{const g=i(d,p);return Vs(g,p,this,d)}:this.validator=()=>[],s?this.refiner=(d,p)=>{const g=s(d,p);return Vs(g,p,this,d)}:this.refiner=()=>[]}assert(t,r){return El(t,this,r)}create(t,r){return Sl(t,this,r)}is(t){return fo(t,this)}mask(t,r){return Rl(t,this,r)}validate(t,r={}){return nn(t,this,r)}}function El(e,t,r){const n=nn(e,t,{message:r});if(n[0])throw n[0]}function Sl(e,t,r){const n=nn(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function Rl(e,t,r){const n=nn(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function fo(e,t){return!nn(e,t)[0]}function nn(e,t,r={}){const n=ho(e,t,r),i=C0(n);return i[0]?[new _l(i[0],function*(){for(const c of n)c[0]&&(yield c[0])}),void 0]:[void 0,i[1]]}function k0(...e){const t=e[0].type==="type",r=e.map(i=>i.schema),n=Object.assign({},...r);return t?Pn(n):Bn(n)}function ct(e,t){return new ze({type:e,schema:null,validator:t})}function x0(e,t){return new ze({...e,refiner:(r,n)=>r===void 0||e.refiner(r,n),validator(r,n){return r===void 0?!0:(t(r,n),e.validator(r,n))}})}function I0(e){return new ze({type:"dynamic",schema:null,*entries(t,r){yield*e(t,r).entries(t,r)},validator(t,r){return e(t,r).validator(t,r)},coercer(t,r){return e(t,r).coercer(t,r)},refiner(t,r){return e(t,r).refiner(t,r)}})}function A0(e){let t;return new ze({type:"lazy",schema:null,*entries(r,n){t??(t=e()),yield*t.entries(r,n)},validator(r,n){return t??(t=e()),t.validator(r,n)},coercer(r,n){return t??(t=e()),t.coercer(r,n)},refiner(r,n){return t??(t=e()),t.refiner(r,n)}})}function T0(e,t){const{schema:r}=e,n={...r};for(const i of t)delete n[i];switch(e.type){case"type":return Pn(n);default:return Bn(n)}}function N0(e){const t=e instanceof ze,r=t?{...e.schema}:{...e};for(const n in r)r[n]=Cl(r[n]);return t&&e.type==="type"?Pn(r):Bn(r)}function L0(e,t){const{schema:r}=e,n={};for(const i of t)n[i]=r[i];switch(e.type){case"type":return Pn(n);default:return Bn(n)}}function B0(e,t){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),ct(e,t)}function P0(){return ct("any",()=>!0)}function O0(e){return new ze({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,n]of t.entries())yield[r,n,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${Ke(t)}`}})}function $0(){return ct("bigint",e=>typeof e=="bigint")}function F0(){return ct("boolean",e=>typeof e=="boolean")}function D0(){return ct("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${Ke(e)}`)}function j0(e){const t={},r=e.map(n=>Ke(n)).join();for(const n of e)t[n]=n;return new ze({type:"enums",schema:t,validator(n){return e.includes(n)||`Expected one of \`${r}\`, but received: ${Ke(n)}`}})}function U0(){return ct("func",e=>typeof e=="function"||`Expected a function, but received: ${Ke(e)}`)}function H0(e){return ct("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${Ke(t)}`)}function W0(){return ct("integer",e=>typeof e=="number"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${Ke(e)}`)}function V0(e){return new ze({type:"intersection",schema:null,*entries(t,r){for(const n of e)yield*n.entries(t,r)},*validator(t,r){for(const n of e)yield*n.validator(t,r)},*refiner(t,r){for(const n of e)yield*n.refiner(t,r)}})}function q0(e){const t=Ke(e),r=typeof e;return new ze({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?e:null,validator(n){return n===e||`Expected the literal \`${t}\`, but received: ${Ke(n)}`}})}function z0(e,t){return new ze({type:"map",schema:null,*entries(r){if(e&&t&&r instanceof Map)for(const[n,i]of r.entries())yield[n,n,e],yield[n,i,t]},coercer(r){return r instanceof Map?new Map(r):r},validator(r){return r instanceof Map||`Expected a \`Map\` object, but received: ${Ke(r)}`}})}function po(){return ct("never",()=>!1)}function G0(e){return new ze({...e,validator:(t,r)=>t===null||e.validator(t,r),refiner:(t,r)=>t===null||e.refiner(t,r)})}function J0(){return ct("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${Ke(e)}`)}function Bn(e){const t=e?Object.keys(e):[],r=po();return new ze({type:"object",schema:e||null,*entries(n){if(e&&bt(n)){const i=new Set(Object.keys(n));for(const s of t)i.delete(s),yield[s,n[s],e[s]];for(const s of i)yield[s,n[s],r]}},validator(n){return bt(n)||`Expected an object, but received: ${Ke(n)}`},coercer(n){return bt(n)?{...n}:n}})}function Cl(e){return new ze({...e,validator:(t,r)=>t===void 0||e.validator(t,r),refiner:(t,r)=>t===void 0||e.refiner(t,r)})}function Z0(e,t){return new ze({type:"record",schema:null,*entries(r){if(bt(r))for(const n in r){const i=r[n];yield[n,n,e],yield[n,i,t]}},validator(r){return bt(r)||`Expected an object, but received: ${Ke(r)}`}})}function K0(){return ct("regexp",e=>e instanceof RegExp)}function Q0(e){return new ze({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(const r of t)yield[r,r,e]},coercer(t){return t instanceof Set?new Set(t):t},validator(t){return t instanceof Set||`Expected a \`Set\` object, but received: ${Ke(t)}`}})}function Ml(){return ct("string",e=>typeof e=="string"||`Expected a string, but received: ${Ke(e)}`)}function Y0(e){const t=po();return new ze({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const n=Math.max(e.length,r.length);for(let i=0;ir.type).join(" | ");return new ze({type:"union",schema:null,coercer(r){for(const n of e){const[i,s]=n.validate(r,{coerce:!0});if(!i)return s}return r},validator(r,n){const i=[];for(const s of e){const[...c]=ho(r,s,n),[a]=c;if(a[0])for(const[d]of c)d&&i.push(d);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${Ke(r)}`,...i]}})}function kl(){return ct("unknown",()=>!0)}function go(e,t,r){return new ze({...e,coercer:(n,i)=>fo(n,t)?e.coercer(r(n,i),i):e.coercer(n,i)})}function e1(e,t,r={}){return go(e,kl(),n=>{const i=typeof t=="function"?t():t;if(n===void 0)return i;if(!r.strict&&Ma(n)&&Ma(i)){const s={...n};let c=!1;for(const a in i)s[a]===void 0&&(s[a]=i[a],c=!0);if(c)return s}return n})}function t1(e){return go(e,Ml(),t=>t.trim())}function r1(e){return _r(e,"empty",t=>{const r=xl(t);return r===0||`Expected an empty ${e.type} but received one with a size of \`${r}\``})}function xl(e){return e instanceof Map||e instanceof Set?e.size:e.length}function n1(e,t,r={}){const{exclusive:n}=r;return _r(e,"max",i=>n?in?i>t:i>=t||`Expected a ${e.type} greater than ${n?"":"or equal to "}${t} but received \`${i}\``)}function s1(e){return _r(e,"nonempty",t=>xl(t)>0||`Expected a nonempty ${e.type} but received an empty one`)}function o1(e,t){return _r(e,"pattern",r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`)}function a1(e,t,r=t){const n=`Expected a ${e.type}`,i=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return _r(e,"size",s=>{if(typeof s=="number"||s instanceof Date)return t<=s&&s<=r||`${n} ${i} but received \`${s}\``;if(s instanceof Map||s instanceof Set){const{size:c}=s;return t<=c&&c<=r||`${n} with a size ${i} but received one with a size of \`${c}\``}else{const{length:c}=s;return t<=c&&c<=r||`${n} with a length ${i} but received one with a length of \`${c}\``}})}function _r(e,t,r){return new ze({...e,*refiner(n,i){yield*e.refiner(n,i);const s=r(n,i),c=Vs(s,i,e,n);for(const a of c)yield{...a,refinement:t}}})}const c1=Object.freeze(Object.defineProperty({__proto__:null,Struct:ze,StructError:_l,any:P0,array:O0,assert:El,assign:k0,bigint:$0,boolean:F0,coerce:go,create:Sl,date:D0,defaulted:e1,define:ct,deprecated:x0,dynamic:I0,empty:r1,enums:j0,func:U0,instance:H0,integer:W0,intersection:V0,is:fo,lazy:A0,literal:q0,map:z0,mask:Rl,max:n1,min:i1,never:po,nonempty:s1,nullable:G0,number:J0,object:Bn,omit:T0,optional:Cl,partial:N0,pattern:o1,pick:L0,record:Z0,refine:_r,regexp:K0,set:Q0,size:a1,string:Ml,struct:B0,trimmed:t1,tuple:Y0,type:Pn,union:X0,unknown:kl,validate:nn},Symbol.toStringTag,{value:"Module"})),Er=mn(c1);Object.defineProperty(rt,"__esModule",{value:!0});rt.assertExhaustive=rt.assertStruct=rt.assert=rt.AssertionError=void 0;const l1=Er;function u1(e){return typeof e=="object"&&e!==null&&"message"in e}function h1(e){var t,r;return typeof((r=(t=e==null?void 0:e.prototype)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.name)=="string"}function d1(e){const t=u1(e)?e.message:String(e);return t.endsWith(".")?t.slice(0,-1):t}function Il(e,t){return h1(e)?new e({message:t}):e({message:t})}class mo extends Error{constructor(t){super(t.message),this.code="ERR_ASSERTION"}}rt.AssertionError=mo;function f1(e,t="Assertion failed.",r=mo){if(!e)throw t instanceof Error?t:Il(r,t)}rt.assert=f1;function p1(e,t,r="Assertion failed",n=mo){try{(0,l1.assert)(e,t)}catch(i){throw Il(n,`${r}: ${d1(i)}.`)}}rt.assertStruct=p1;function g1(e){throw new Error("Invalid branch reached. Should be detected during compilation.")}rt.assertExhaustive=g1;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.base64=void 0;const m1=Er,w1=rt,y1=(e,t={})=>{var r,n;const i=(r=t.paddingRequired)!==null&&r!==void 0?r:!1,s=(n=t.characterSet)!==null&&n!==void 0?n:"base64";let c;s==="base64"?c=String.raw`[A-Za-z0-9+\/]`:((0,w1.assert)(s==="base64url"),c=String.raw`[-_A-Za-z0-9]`);let a;return i?a=new RegExp(`^(?:${c}{4})*(?:${c}{3}=|${c}{2}==)?$`,"u"):a=new RegExp(`^(?:${c}{4})*(?:${c}{2,3}|${c}{3}=|${c}{2}==)?$`,"u"),(0,m1.pattern)(e,a)};On.base64=y1;var ye={},$n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.StrictHexStruct=e.HexStruct=void 0;const t=Er,r=rt;e.HexStruct=(0,t.pattern)((0,t.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]+$/iu);function n(p){return(0,t.is)(p,e.HexStruct)}e.isHexString=n;function i(p){return(0,t.is)(p,e.StrictHexStruct)}e.isStrictHexString=i;function s(p){(0,r.assert)(n(p),"Value must be a hexadecimal string.")}e.assertIsHexString=s;function c(p){(0,r.assert)(i(p),'Value must be a hexadecimal string, starting with "0x".')}e.assertIsStrictHexString=c;function a(p){return p.startsWith("0x")?p:p.startsWith("0X")?`0x${p.substring(2)}`:`0x${p}`}e.add0x=a;function d(p){return p.startsWith("0x")||p.startsWith("0X")?p.substring(2):p}e.remove0x=d})($n);Object.defineProperty(ye,"__esModule",{value:!0});ye.createDataView=ye.concatBytes=ye.valueToBytes=ye.stringToBytes=ye.numberToBytes=ye.signedBigIntToBytes=ye.bigIntToBytes=ye.hexToBytes=ye.bytesToString=ye.bytesToNumber=ye.bytesToSignedBigInt=ye.bytesToBigInt=ye.bytesToHex=ye.assertIsBytes=ye.isBytes=void 0;const ht=rt,qs=$n,ka=48,xa=58,Ia=87;function b1(){const e=[];return()=>{if(e.length===0)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}const v1=b1();function wo(e){return e instanceof Uint8Array}ye.isBytes=wo;function sn(e){(0,ht.assert)(wo(e),"Value must be a Uint8Array.")}ye.assertIsBytes=sn;function Al(e){if(sn(e),e.length===0)return"0x";const t=v1(),r=new Array(e.length);for(let n=0;n=BigInt(0),"Value must be a non-negative bigint.");const t=e.toString(16);return Ui(t)}ye.bigIntToBytes=Nl;function R1(e,t){(0,ht.assert)(t>0);const r=e>>BigInt(31);return!((~e&r)+(e&~r)>>BigInt(t*8+-1))}function C1(e,t){(0,ht.assert)(typeof e=="bigint","Value must be a bigint."),(0,ht.assert)(typeof t=="number","Byte length must be a number."),(0,ht.assert)(t>0,"Byte length must be greater than 0."),(0,ht.assert)(R1(e,t),"Byte length is too small to represent the given value.");let r=e;const n=new Uint8Array(t);for(let i=0;i>=BigInt(8);return n.reverse()}ye.signedBigIntToBytes=C1;function Ll(e){(0,ht.assert)(typeof e=="number","Value must be a number."),(0,ht.assert)(e>=0,"Value must be a non-negative number."),(0,ht.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");const t=e.toString(16);return Ui(t)}ye.numberToBytes=Ll;function Bl(e){return(0,ht.assert)(typeof e=="string","Value must be a string."),new TextEncoder().encode(e)}ye.stringToBytes=Bl;function Pl(e){if(typeof e=="bigint")return Nl(e);if(typeof e=="number")return Ll(e);if(typeof e=="string")return e.startsWith("0x")?Ui(e):Bl(e);if(wo(e))return e;throw new TypeError(`Unsupported value type: "${typeof e}".`)}ye.valueToBytes=Pl;function M1(e){const t=new Array(e.length);let r=0;for(let i=0;it.call(r,n,i,this))}get(t){return st(this,_t,"f").get(t)}has(t){return st(this,_t,"f").has(t)}keys(){return st(this,_t,"f").keys()}values(){return st(this,_t,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([t,r])=>`${String(t)} => ${String(r)}`).join(", ")} `:""}}`}}Zr.FrozenMap=yo;class bo{constructor(t){kt.set(this,void 0),Fl(this,kt,new Set(t),"f"),Object.freeze(this)}get size(){return st(this,kt,"f").size}[(kt=new WeakMap,Symbol.iterator)](){return st(this,kt,"f")[Symbol.iterator]()}entries(){return st(this,kt,"f").entries()}forEach(t,r){return st(this,kt,"f").forEach((n,i,s)=>t.call(r,n,i,this))}has(t){return st(this,kt,"f").has(t)}keys(){return st(this,kt,"f").keys()}values(){return st(this,kt,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(t=>String(t)).join(", ")} `:""}}`}}Zr.FrozenSet=bo;Object.freeze(yo);Object.freeze(yo.prototype);Object.freeze(bo);Object.freeze(bo.prototype);var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0});var jl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.getJsonSize=e.isValidJson=e.JsonStruct=e.UnsafeJsonStruct=void 0;const t=Er,r=rt,n=()=>(0,t.define)("finite number",j=>(0,t.is)(j,(0,t.number)())&&Number.isFinite(j));e.UnsafeJsonStruct=(0,t.union)([(0,t.literal)(null),(0,t.boolean)(),n(),(0,t.string)(),(0,t.array)((0,t.lazy)(()=>e.UnsafeJsonStruct)),(0,t.record)((0,t.string)(),(0,t.lazy)(()=>e.UnsafeJsonStruct))]),e.JsonStruct=(0,t.define)("Json",(j,z)=>{function te(Y,Q){const oe=[...Q.validator(Y,z)];return oe.length>0?oe:!0}try{const Y=te(j,e.UnsafeJsonStruct);return Y!==!0?Y:te(JSON.parse(JSON.stringify(j)),e.UnsafeJsonStruct)}catch(Y){return Y instanceof RangeError?"Circular reference detected":!1}});function i(j){return(0,t.is)(j,e.JsonStruct)}e.isValidJson=i;function s(j){(0,r.assertStruct)(j,e.JsonStruct,"Invalid JSON value");const z=JSON.stringify(j);return new TextEncoder().encode(z).byteLength}e.getJsonSize=s,e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,t.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,t.nullable)((0,t.union)([(0,t.number)(),(0,t.string)()])),e.JsonRpcErrorStruct=(0,t.object)({code:(0,t.integer)(),message:(0,t.string)(),data:(0,t.optional)(e.JsonStruct),stack:(0,t.optional)((0,t.string)())}),e.JsonRpcParamsStruct=(0,t.optional)((0,t.union)([(0,t.record)((0,t.string)(),e.JsonStruct),(0,t.array)(e.JsonStruct)])),e.JsonRpcRequestStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:e.JsonRpcParamsStruct}),e.JsonRpcNotificationStruct=(0,t.omit)(e.JsonRpcRequestStruct,["id"]);function c(j){return(0,t.is)(j,e.JsonRpcNotificationStruct)}e.isJsonRpcNotification=c;function a(j,z){(0,r.assertStruct)(j,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",z)}e.assertIsJsonRpcNotification=a;function d(j){return(0,t.is)(j,e.JsonRpcRequestStruct)}e.isJsonRpcRequest=d;function p(j,z){(0,r.assertStruct)(j,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",z)}e.assertIsJsonRpcRequest=p,e.PendingJsonRpcResponseStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,t.optional)((0,t.unknown)()),error:(0,t.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,t.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]);function g(j){return(0,t.is)(j,e.PendingJsonRpcResponseStruct)}e.isPendingJsonRpcResponse=g;function y(j,z){(0,r.assertStruct)(j,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",z)}e.assertIsPendingJsonRpcResponse=y;function _(j){return(0,t.is)(j,e.JsonRpcResponseStruct)}e.isJsonRpcResponse=_;function A(j,z){(0,r.assertStruct)(j,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",z)}e.assertIsJsonRpcResponse=A;function L(j){return(0,t.is)(j,e.JsonRpcSuccessStruct)}e.isJsonRpcSuccess=L;function H(j,z){(0,r.assertStruct)(j,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",z)}e.assertIsJsonRpcSuccess=H;function F(j){return(0,t.is)(j,e.JsonRpcFailureStruct)}e.isJsonRpcFailure=F;function I(j,z){(0,r.assertStruct)(j,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",z)}e.assertIsJsonRpcFailure=I;function O(j){return(0,t.is)(j,e.JsonRpcErrorStruct)}e.isJsonRpcError=O;function B(j,z){(0,r.assertStruct)(j,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",z)}e.assertIsJsonRpcError=B;function V(j){const{permitEmptyString:z,permitFractions:te,permitNull:Y}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},j);return fe=>!!(typeof fe=="number"&&(te||Number.isInteger(fe))||typeof fe=="string"&&(z||fe.length>0)||Y&&fe===null)}e.getJsonRpcIdValidator=V})(jl);var Ul={};Object.defineProperty(Ul,"__esModule",{value:!0});var Kr={},zs={exports:{}},xs,Ta;function F1(){if(Ta)return xs;Ta=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,s=n*365.25;xs=function(g,y){y=y||{};var _=typeof g;if(_==="string"&&g.length>0)return c(g);if(_==="number"&&isFinite(g))return y.long?d(g):a(g);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(g))};function c(g){if(g=String(g),!(g.length>100)){var y=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(y){var _=parseFloat(y[1]),A=(y[2]||"ms").toLowerCase();switch(A){case"years":case"year":case"yrs":case"yr":case"y":return _*s;case"weeks":case"week":case"w":return _*i;case"days":case"day":case"d":return _*n;case"hours":case"hour":case"hrs":case"hr":case"h":return _*r;case"minutes":case"minute":case"mins":case"min":case"m":return _*t;case"seconds":case"second":case"secs":case"sec":case"s":return _*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return _;default:return}}}}function a(g){var y=Math.abs(g);return y>=n?Math.round(g/n)+"d":y>=r?Math.round(g/r)+"h":y>=t?Math.round(g/t)+"m":y>=e?Math.round(g/e)+"s":g+"ms"}function d(g){var y=Math.abs(g);return y>=n?p(g,y,n,"day"):y>=r?p(g,y,r,"hour"):y>=t?p(g,y,t,"minute"):y>=e?p(g,y,e,"second"):g+" ms"}function p(g,y,_,A){var L=y>=_*1.5;return Math.round(g/_)+" "+A+(L?"s":"")}return xs}function D1(e){r.debug=r,r.default=r,r.coerce=d,r.disable=s,r.enable=i,r.enabled=c,r.humanize=F1(),r.destroy=p,Object.keys(e).forEach(g=>{r[g]=e[g]}),r.names=[],r.skips=[],r.formatters={};function t(g){let y=0;for(let _=0;_{if(z==="%%")return"%";V++;const Y=r.formatters[te];if(typeof Y=="function"){const Q=F[V];z=Y.call(I,Q),F.splice(V,1),V--}return z}),r.formatArgs.call(I,F),(I.log||r.log).apply(I,F)}return H.namespace=g,H.useColors=r.useColors(),H.color=r.selectColor(g),H.extend=n,H.destroy=r.destroy,Object.defineProperty(H,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(A!==r.namespaces&&(A=r.namespaces,L=r.enabled(g)),L),set:F=>{_=F}}),typeof r.init=="function"&&r.init(H),H}function n(g,y){const _=r(this.namespace+(typeof y>"u"?":":y)+g);return _.log=this.log,_}function i(g){r.save(g),r.namespaces=g,r.names=[],r.skips=[];let y;const _=(typeof g=="string"?g:"").split(/[\s,]+/),A=_.length;for(y=0;y"-"+y)].join(",");return r.enable(""),g}function c(g){if(g[g.length-1]==="*")return!0;let y,_;for(y=0,_=r.skips.length;y<_;y++)if(r.skips[y].test(g))return!1;for(y=0,_=r.names.length;y<_;y++)if(r.names[y].test(g))return!0;return!1}function a(g){return g.toString().substring(2,g.toString().length-2).replace(/\.\*\?$/,"*")}function d(g){return g instanceof Error?g.stack||g.message:g}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var j1=D1;(function(e,t){var r={};t.formatArgs=i,t.save=s,t.load=c,t.useColors=n,t.storage=a(),t.destroy=(()=>{let p=!1;return()=>{p||(p=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(p){if(p[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+p[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const g="color: "+this.color;p.splice(1,0,g,"color: inherit");let y=0,_=0;p[0].replace(/%[a-zA-Z%]/g,A=>{A!=="%%"&&(y++,A==="%c"&&(_=y))}),p.splice(_,0,g)}t.log=console.debug||console.log||(()=>{});function s(p){try{p?t.storage.setItem("debug",p):t.storage.removeItem("debug")}catch{}}function c(){let p;try{p=t.storage.getItem("debug")}catch{}return!p&&typeof process<"u"&&"env"in process&&(p=r.DEBUG),p}function a(){try{return localStorage}catch{}}e.exports=j1(t);const{formatters:d}=e.exports;d.j=function(p){try{return JSON.stringify(p)}catch(g){return"[UnexpectedJSONParseError]: "+g.message}}})(zs,zs.exports);var U1=zs.exports,H1=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kr,"__esModule",{value:!0});Kr.createModuleLogger=Kr.createProjectLogger=void 0;const W1=H1(U1),V1=(0,W1.default)("metamask");function q1(e){return V1.extend(e)}Kr.createProjectLogger=q1;function z1(e,t){return e.extend(t)}Kr.createModuleLogger=z1;var Hl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0;function t(p){return Array.isArray(p)&&p.length>0}e.isNonEmptyArray=t;function r(p){return p==null}e.isNullOrUndefined=r;function n(p){return!!p&&typeof p=="object"&&!Array.isArray(p)}e.isObject=n;const i=(p,g)=>Object.hasOwnProperty.call(p,g);e.hasProperty=i,function(p){p[p.Null=4]="Null",p[p.Comma=1]="Comma",p[p.Wrapper=1]="Wrapper",p[p.True=4]="True",p[p.False=5]="False",p[p.Quote=1]="Quote",p[p.Colon=1]="Colon",p[p.Date=24]="Date"}(e.JsonSize||(e.JsonSize={})),e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu;function s(p){if(typeof p!="object"||p===null)return!1;try{let g=p;for(;Object.getPrototypeOf(g)!==null;)g=Object.getPrototypeOf(g);return Object.getPrototypeOf(p)===g}catch{return!1}}e.isPlainObject=s;function c(p){return p.charCodeAt(0)<=127}e.isASCII=c;function a(p){var g;return p.split("").reduce((_,A)=>c(A)?_+1:_+2,0)+((g=p.match(e.ESCAPE_CHARACTERS_REGEXP))!==null&&g!==void 0?g:[]).length}e.calculateStringSize=a;function d(p){return p.toString().length}e.calculateNumberSize=d})(Hl);var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.hexToBigInt=Pt.hexToNumber=Pt.bigIntToHex=Pt.numberToHex=void 0;const Hr=rt,pn=$n,G1=e=>((0,Hr.assert)(typeof e=="number","Value must be a number."),(0,Hr.assert)(e>=0,"Value must be a non-negative number."),(0,Hr.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,pn.add0x)(e.toString(16)));Pt.numberToHex=G1;const J1=e=>((0,Hr.assert)(typeof e=="bigint","Value must be a bigint."),(0,Hr.assert)(e>=0,"Value must be a non-negative bigint."),(0,pn.add0x)(e.toString(16)));Pt.bigIntToHex=J1;const Z1=e=>{(0,pn.assertIsHexString)(e);const t=parseInt(e,16);return(0,Hr.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t};Pt.hexToNumber=Z1;const K1=e=>((0,pn.assertIsHexString)(e),BigInt((0,pn.add0x)(e)));Pt.hexToBigInt=K1;var Wl={};Object.defineProperty(Wl,"__esModule",{value:!0});var Vl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,function(s){s[s.Millisecond=1]="Millisecond",s[s.Second=1e3]="Second",s[s.Minute=6e4]="Minute",s[s.Hour=36e5]="Hour",s[s.Day=864e5]="Day",s[s.Week=6048e5]="Week",s[s.Year=31536e6]="Year"}(e.Duration||(e.Duration={}));const t=s=>Number.isInteger(s)&&s>=0,r=(s,c)=>{if(!t(s))throw new Error(`"${c}" must be a non-negative integer. Received: "${s}".`)};function n(s,c){return r(s,"count"),s*c}e.inMilliseconds=n;function i(s){return r(s,"timestamp"),Date.now()-s}e.timeSince=i})(Vl);var ql={};Object.defineProperty(ql,"__esModule",{value:!0});var zl={},Gs={exports:{}};const Q1="2.0.0",Gl=256,Y1=Number.MAX_SAFE_INTEGER||9007199254740991,X1=16,ep=Gl-6,tp=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Vi={MAX_LENGTH:Gl,MAX_SAFE_COMPONENT_LENGTH:X1,MAX_SAFE_BUILD_LENGTH:ep,MAX_SAFE_INTEGER:Y1,RELEASE_TYPES:tp,SEMVER_SPEC_VERSION:Q1,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Is={};const rp=typeof process=="object"&&Is&&Is.NODE_DEBUG&&/\bsemver\b/i.test(Is.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var qi=rp;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=Vi,s=qi;t=e.exports={};const c=t.re=[],a=t.safeRe=[],d=t.src=[],p=t.t={};let g=0;const y="[a-zA-Z0-9-]",_=[["\\s",1],["\\d",i],[y,n]],A=H=>{for(const[F,I]of _)H=H.split(`${F}*`).join(`${F}{0,${I}}`).split(`${F}+`).join(`${F}{1,${I}}`);return H},L=(H,F,I)=>{const O=A(F),B=g++;s(H,B,F),p[H]=B,d[B]=F,c[B]=new RegExp(F,I?"g":void 0),a[B]=new RegExp(O,I?"g":void 0)};L("NUMERICIDENTIFIER","0|[1-9]\\d*"),L("NUMERICIDENTIFIERLOOSE","\\d+"),L("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`),L("MAINVERSION",`(${d[p.NUMERICIDENTIFIER]})\\.(${d[p.NUMERICIDENTIFIER]})\\.(${d[p.NUMERICIDENTIFIER]})`),L("MAINVERSIONLOOSE",`(${d[p.NUMERICIDENTIFIERLOOSE]})\\.(${d[p.NUMERICIDENTIFIERLOOSE]})\\.(${d[p.NUMERICIDENTIFIERLOOSE]})`),L("PRERELEASEIDENTIFIER",`(?:${d[p.NUMERICIDENTIFIER]}|${d[p.NONNUMERICIDENTIFIER]})`),L("PRERELEASEIDENTIFIERLOOSE",`(?:${d[p.NUMERICIDENTIFIERLOOSE]}|${d[p.NONNUMERICIDENTIFIER]})`),L("PRERELEASE",`(?:-(${d[p.PRERELEASEIDENTIFIER]}(?:\\.${d[p.PRERELEASEIDENTIFIER]})*))`),L("PRERELEASELOOSE",`(?:-?(${d[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[p.PRERELEASEIDENTIFIERLOOSE]})*))`),L("BUILDIDENTIFIER",`${y}+`),L("BUILD",`(?:\\+(${d[p.BUILDIDENTIFIER]}(?:\\.${d[p.BUILDIDENTIFIER]})*))`),L("FULLPLAIN",`v?${d[p.MAINVERSION]}${d[p.PRERELEASE]}?${d[p.BUILD]}?`),L("FULL",`^${d[p.FULLPLAIN]}$`),L("LOOSEPLAIN",`[v=\\s]*${d[p.MAINVERSIONLOOSE]}${d[p.PRERELEASELOOSE]}?${d[p.BUILD]}?`),L("LOOSE",`^${d[p.LOOSEPLAIN]}$`),L("GTLT","((?:<|>)?=?)"),L("XRANGEIDENTIFIERLOOSE",`${d[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),L("XRANGEIDENTIFIER",`${d[p.NUMERICIDENTIFIER]}|x|X|\\*`),L("XRANGEPLAIN",`[v=\\s]*(${d[p.XRANGEIDENTIFIER]})(?:\\.(${d[p.XRANGEIDENTIFIER]})(?:\\.(${d[p.XRANGEIDENTIFIER]})(?:${d[p.PRERELEASE]})?${d[p.BUILD]}?)?)?`),L("XRANGEPLAINLOOSE",`[v=\\s]*(${d[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[p.XRANGEIDENTIFIERLOOSE]})(?:${d[p.PRERELEASELOOSE]})?${d[p.BUILD]}?)?)?`),L("XRANGE",`^${d[p.GTLT]}\\s*${d[p.XRANGEPLAIN]}$`),L("XRANGELOOSE",`^${d[p.GTLT]}\\s*${d[p.XRANGEPLAINLOOSE]}$`),L("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),L("COERCE",`${d[p.COERCEPLAIN]}(?:$|[^\\d])`),L("COERCEFULL",d[p.COERCEPLAIN]+`(?:${d[p.PRERELEASE]})?(?:${d[p.BUILD]})?(?:$|[^\\d])`),L("COERCERTL",d[p.COERCE],!0),L("COERCERTLFULL",d[p.COERCEFULL],!0),L("LONETILDE","(?:~>?)"),L("TILDETRIM",`(\\s*)${d[p.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",L("TILDE",`^${d[p.LONETILDE]}${d[p.XRANGEPLAIN]}$`),L("TILDELOOSE",`^${d[p.LONETILDE]}${d[p.XRANGEPLAINLOOSE]}$`),L("LONECARET","(?:\\^)"),L("CARETTRIM",`(\\s*)${d[p.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",L("CARET",`^${d[p.LONECARET]}${d[p.XRANGEPLAIN]}$`),L("CARETLOOSE",`^${d[p.LONECARET]}${d[p.XRANGEPLAINLOOSE]}$`),L("COMPARATORLOOSE",`^${d[p.GTLT]}\\s*(${d[p.LOOSEPLAIN]})$|^$`),L("COMPARATOR",`^${d[p.GTLT]}\\s*(${d[p.FULLPLAIN]})$|^$`),L("COMPARATORTRIM",`(\\s*)${d[p.GTLT]}\\s*(${d[p.LOOSEPLAIN]}|${d[p.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",L("HYPHENRANGE",`^\\s*(${d[p.XRANGEPLAIN]})\\s+-\\s+(${d[p.XRANGEPLAIN]})\\s*$`),L("HYPHENRANGELOOSE",`^\\s*(${d[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[p.XRANGEPLAINLOOSE]})\\s*$`),L("STAR","(<|>)?=?\\s*\\*"),L("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),L("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Gs,Gs.exports);var Fn=Gs.exports;const np=Object.freeze({loose:!0}),ip=Object.freeze({}),sp=e=>e?typeof e!="object"?np:e:ip;var vo=sp;const Na=/^[0-9]+$/,Jl=(e,t)=>{const r=Na.test(e),n=Na.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:eJl(t,e);var Zl={compareIdentifiers:Jl,rcompareIdentifiers:op};const Zn=qi,{MAX_LENGTH:La,MAX_SAFE_INTEGER:Kn}=Vi,{safeRe:Ba,t:Pa}=Fn,ap=vo,{compareIdentifiers:Or}=Zl;let cp=class xt{constructor(t,r){if(r=ap(r),t instanceof xt){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>La)throw new TypeError(`version is longer than ${La} characters`);Zn("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Ba[Pa.LOOSE]:Ba[Pa.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Kn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Kn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Kn||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const s=+i;if(s>=0&&s=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),Or(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var ot=cp;const Oa=ot,lp=(e,t,r=!1)=>{if(e instanceof Oa)return e;try{return new Oa(e,t)}catch(n){if(!r)return null;throw n}};var on=lp;const up=on,hp=(e,t)=>{const r=up(e,t);return r?r.version:null};var dp=hp;const fp=on,pp=(e,t)=>{const r=fp(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var gp=pp;const $a=ot,mp=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new $a(e instanceof $a?e.version:e,r).inc(t,n,i).version}catch{return null}};var wp=mp;const Fa=on,yp=(e,t)=>{const r=Fa(e,null,!0),n=Fa(t,null,!0),i=r.compare(n);if(i===0)return null;const s=i>0,c=s?r:n,a=s?n:r,d=!!c.prerelease.length;if(!!a.prerelease.length&&!d)return!a.patch&&!a.minor?"major":c.patch?"patch":c.minor?"minor":"major";const g=d?"pre":"";return r.major!==n.major?g+"major":r.minor!==n.minor?g+"minor":r.patch!==n.patch?g+"patch":"prerelease"};var bp=yp;const vp=ot,_p=(e,t)=>new vp(e,t).major;var Ep=_p;const Sp=ot,Rp=(e,t)=>new Sp(e,t).minor;var Cp=Rp;const Mp=ot,kp=(e,t)=>new Mp(e,t).patch;var xp=kp;const Ip=on,Ap=(e,t)=>{const r=Ip(e,t);return r&&r.prerelease.length?r.prerelease:null};var Tp=Ap;const Da=ot,Np=(e,t,r)=>new Da(e,r).compare(new Da(t,r));var Rt=Np;const Lp=Rt,Bp=(e,t,r)=>Lp(t,e,r);var Pp=Bp;const Op=Rt,$p=(e,t)=>Op(e,t,!0);var Fp=$p;const ja=ot,Dp=(e,t,r)=>{const n=new ja(e,r),i=new ja(t,r);return n.compare(i)||n.compareBuild(i)};var _o=Dp;const jp=_o,Up=(e,t)=>e.sort((r,n)=>jp(r,n,t));var Hp=Up;const Wp=_o,Vp=(e,t)=>e.sort((r,n)=>Wp(n,r,t));var qp=Vp;const zp=Rt,Gp=(e,t,r)=>zp(e,t,r)>0;var zi=Gp;const Jp=Rt,Zp=(e,t,r)=>Jp(e,t,r)<0;var Eo=Zp;const Kp=Rt,Qp=(e,t,r)=>Kp(e,t,r)===0;var Kl=Qp;const Yp=Rt,Xp=(e,t,r)=>Yp(e,t,r)!==0;var Ql=Xp;const eg=Rt,tg=(e,t,r)=>eg(e,t,r)>=0;var So=tg;const rg=Rt,ng=(e,t,r)=>rg(e,t,r)<=0;var Ro=ng;const ig=Kl,sg=Ql,og=zi,ag=So,cg=Eo,lg=Ro,ug=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return ig(e,r,n);case"!=":return sg(e,r,n);case">":return og(e,r,n);case">=":return ag(e,r,n);case"<":return cg(e,r,n);case"<=":return lg(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var Yl=ug;const hg=ot,dg=on,{safeRe:Qn,t:Yn}=Fn,fg=(e,t)=>{if(e instanceof hg)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Qn[Yn.COERCEFULL]:Qn[Yn.COERCE]);else{const d=t.includePrerelease?Qn[Yn.COERCERTLFULL]:Qn[Yn.COERCERTL];let p;for(;(p=d.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||p.index+p[0].length!==r.index+r[0].length)&&(r=p),d.lastIndex=p.index+p[1].length+p[2].length;d.lastIndex=-1}if(r===null)return null;const n=r[2],i=r[3]||"0",s=r[4]||"0",c=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return dg(`${n}.${i}.${s}${c}${a}`,t)};var pg=fg;class gg{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}}var mg=gg,As,Ua;function Ct(){if(Ua)return As;Ua=1;const e=/\s+/g;class t{constructor(f,w){if(w=i(w),f instanceof t)return f.loose===!!w.loose&&f.includePrerelease===!!w.includePrerelease?f:new t(f.raw,w);if(f instanceof s)return this.raw=f.value,this.set=[[f]],this.formatted=void 0,this;if(this.options=w,this.loose=!!w.loose,this.includePrerelease=!!w.includePrerelease,this.raw=f.trim().replace(e," "),this.set=this.raw.split("||").map(b=>this.parseRange(b.trim())).filter(b=>b.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const b=this.set[0];if(this.set=this.set.filter(S=>!H(S[0])),this.set.length===0)this.set=[b];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&F(S[0])){this.set=[S];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let f=0;f0&&(this.formatted+="||");const w=this.set[f];for(let b=0;b0&&(this.formatted+=" "),this.formatted+=w[b].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(f){const b=((this.options.includePrerelease&&A)|(this.options.loose&&L))+":"+f,S=n.get(b);if(S)return S;const k=this.options.loose,N=k?d[p.HYPHENRANGELOOSE]:d[p.HYPHENRANGE];f=f.replace(N,pe(this.options.includePrerelease)),c("hyphen replace",f),f=f.replace(d[p.COMPARATORTRIM],g),c("comparator trim",f),f=f.replace(d[p.TILDETRIM],y),c("tilde trim",f),f=f.replace(d[p.CARETTRIM],_),c("caret trim",f);let v=f.split(" ").map(J=>O(J,this.options)).join(" ").split(/\s+/).map(J=>oe(J,this.options));k&&(v=v.filter(J=>(c("loose invalid filter",J,this.options),!!J.match(d[p.COMPARATORLOOSE])))),c("range list",v);const u=new Map,R=v.map(J=>new s(J,this.options));for(const J of R){if(H(J))return[J];u.set(J.value,J)}u.size>1&&u.has("")&&u.delete("");const K=[...u.values()];return n.set(b,K),K}intersects(f,w){if(!(f instanceof t))throw new TypeError("a Range is required");return this.set.some(b=>I(b,w)&&f.set.some(S=>I(S,w)&&b.every(k=>S.every(N=>k.intersects(N,w)))))}test(f){if(!f)return!1;if(typeof f=="string")try{f=new a(f,this.options)}catch{return!1}for(let w=0;wo.value==="<0.0.0-0",F=o=>o.value==="",I=(o,f)=>{let w=!0;const b=o.slice();let S=b.pop();for(;w&&b.length;)w=b.every(k=>S.intersects(k,f)),S=b.pop();return w},O=(o,f)=>(c("comp",o,f),o=z(o,f),c("caret",o),o=V(o,f),c("tildes",o),o=Y(o,f),c("xrange",o),o=fe(o,f),c("stars",o),o),B=o=>!o||o.toLowerCase()==="x"||o==="*",V=(o,f)=>o.trim().split(/\s+/).map(w=>j(w,f)).join(" "),j=(o,f)=>{const w=f.loose?d[p.TILDELOOSE]:d[p.TILDE];return o.replace(w,(b,S,k,N,v)=>{c("tilde",o,b,S,k,N,v);let u;return B(S)?u="":B(k)?u=`>=${S}.0.0 <${+S+1}.0.0-0`:B(N)?u=`>=${S}.${k}.0 <${S}.${+k+1}.0-0`:v?(c("replaceTilde pr",v),u=`>=${S}.${k}.${N}-${v} <${S}.${+k+1}.0-0`):u=`>=${S}.${k}.${N} <${S}.${+k+1}.0-0`,c("tilde return",u),u})},z=(o,f)=>o.trim().split(/\s+/).map(w=>te(w,f)).join(" "),te=(o,f)=>{c("caret",o,f);const w=f.loose?d[p.CARETLOOSE]:d[p.CARET],b=f.includePrerelease?"-0":"";return o.replace(w,(S,k,N,v,u)=>{c("caret",o,S,k,N,v,u);let R;return B(k)?R="":B(N)?R=`>=${k}.0.0${b} <${+k+1}.0.0-0`:B(v)?k==="0"?R=`>=${k}.${N}.0${b} <${k}.${+N+1}.0-0`:R=`>=${k}.${N}.0${b} <${+k+1}.0.0-0`:u?(c("replaceCaret pr",u),k==="0"?N==="0"?R=`>=${k}.${N}.${v}-${u} <${k}.${N}.${+v+1}-0`:R=`>=${k}.${N}.${v}-${u} <${k}.${+N+1}.0-0`:R=`>=${k}.${N}.${v}-${u} <${+k+1}.0.0-0`):(c("no pr"),k==="0"?N==="0"?R=`>=${k}.${N}.${v}${b} <${k}.${N}.${+v+1}-0`:R=`>=${k}.${N}.${v}${b} <${k}.${+N+1}.0-0`:R=`>=${k}.${N}.${v} <${+k+1}.0.0-0`),c("caret return",R),R})},Y=(o,f)=>(c("replaceXRanges",o,f),o.split(/\s+/).map(w=>Q(w,f)).join(" ")),Q=(o,f)=>{o=o.trim();const w=f.loose?d[p.XRANGELOOSE]:d[p.XRANGE];return o.replace(w,(b,S,k,N,v,u)=>{c("xRange",o,b,S,k,N,v,u);const R=B(k),K=R||B(N),J=K||B(v),T=J;return S==="="&&T&&(S=""),u=f.includePrerelease?"-0":"",R?S===">"||S==="<"?b="<0.0.0-0":b="*":S&&T?(K&&(N=0),v=0,S===">"?(S=">=",K?(k=+k+1,N=0,v=0):(N=+N+1,v=0)):S==="<="&&(S="<",K?k=+k+1:N=+N+1),S==="<"&&(u="-0"),b=`${S+k}.${N}.${v}${u}`):K?b=`>=${k}.0.0${u} <${+k+1}.0.0-0`:J&&(b=`>=${k}.${N}.0${u} <${k}.${+N+1}.0-0`),c("xRange return",b),b})},fe=(o,f)=>(c("replaceStars",o,f),o.trim().replace(d[p.STAR],"")),oe=(o,f)=>(c("replaceGTE0",o,f),o.trim().replace(d[f.includePrerelease?p.GTE0PRE:p.GTE0],"")),pe=o=>(f,w,b,S,k,N,v,u,R,K,J,T)=>(B(b)?w="":B(S)?w=`>=${b}.0.0${o?"-0":""}`:B(k)?w=`>=${b}.${S}.0${o?"-0":""}`:N?w=`>=${w}`:w=`>=${w}${o?"-0":""}`,B(R)?u="":B(K)?u=`<${+R+1}.0.0-0`:B(J)?u=`<${R}.${+K+1}.0-0`:T?u=`<=${R}.${K}.${J}-${T}`:o?u=`<${R}.${K}.${+J+1}-0`:u=`<=${u}`,`${w} ${u}`.trim()),x=(o,f,w)=>{for(let b=0;b0){const S=o[b].semver;if(S.major===f.major&&S.minor===f.minor&&S.patch===f.patch)return!0}return!1}return!0};return As}var Ts,Ha;function Gi(){if(Ha)return Ts;Ha=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(g,y){if(y=r(y),g instanceof t){if(g.loose===!!y.loose)return g;g=g.value}g=g.trim().split(/\s+/).join(" "),c("comparator",g,y),this.options=y,this.loose=!!y.loose,this.parse(g),this.semver===e?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(g){const y=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],_=g.match(y);if(!_)throw new TypeError(`Invalid comparator: ${g}`);this.operator=_[1]!==void 0?_[1]:"",this.operator==="="&&(this.operator=""),_[2]?this.semver=new a(_[2],this.options.loose):this.semver=e}toString(){return this.value}test(g){if(c("Comparator.test",g,this.options.loose),this.semver===e||g===e)return!0;if(typeof g=="string")try{g=new a(g,this.options)}catch{return!1}return s(g,this.operator,this.semver,this.options)}intersects(g,y){if(!(g instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new d(g.value,y).test(this.value):g.operator===""?g.value===""?!0:new d(this.value,y).test(g.semver):(y=r(y),y.includePrerelease&&(this.value==="<0.0.0-0"||g.value==="<0.0.0-0")||!y.includePrerelease&&(this.value.startsWith("<0.0.0")||g.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&g.operator.startsWith(">")||this.operator.startsWith("<")&&g.operator.startsWith("<")||this.semver.version===g.semver.version&&this.operator.includes("=")&&g.operator.includes("=")||s(this.semver,"<",g.semver,y)&&this.operator.startsWith(">")&&g.operator.startsWith("<")||s(this.semver,">",g.semver,y)&&this.operator.startsWith("<")&&g.operator.startsWith(">")))}}Ts=t;const r=vo,{safeRe:n,t:i}=Fn,s=Yl,c=qi,a=ot,d=Ct();return Ts}const wg=Ct(),yg=(e,t,r)=>{try{t=new wg(t,r)}catch{return!1}return t.test(e)};var Ji=yg;const bg=Ct(),vg=(e,t)=>new bg(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var _g=vg;const Eg=ot,Sg=Ct(),Rg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new Sg(t,r)}catch{return null}return e.forEach(c=>{s.test(c)&&(!n||i.compare(c)===-1)&&(n=c,i=new Eg(n,r))}),n};var Cg=Rg;const Mg=ot,kg=Ct(),xg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new kg(t,r)}catch{return null}return e.forEach(c=>{s.test(c)&&(!n||i.compare(c)===1)&&(n=c,i=new Mg(n,r))}),n};var Ig=xg;const Ns=ot,Ag=Ct(),Wa=zi,Tg=(e,t)=>{e=new Ag(e,t);let r=new Ns("0.0.0");if(e.test(r)||(r=new Ns("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n{const a=new Ns(c.semver.version);switch(c.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||Wa(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),s&&(!r||Wa(r,s))&&(r=s)}return r&&e.test(r)?r:null};var Ng=Tg;const Lg=Ct(),Bg=(e,t)=>{try{return new Lg(e,t).range||"*"}catch{return null}};var Pg=Bg;const Og=ot,Xl=Gi(),{ANY:$g}=Xl,Fg=Ct(),Dg=Ji,Va=zi,qa=Eo,jg=Ro,Ug=So,Hg=(e,t,r,n)=>{e=new Og(e,n),t=new Fg(t,n);let i,s,c,a,d;switch(r){case">":i=Va,s=jg,c=qa,a=">",d=">=";break;case"<":i=qa,s=Ug,c=Va,a="<",d="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Dg(e,t,n))return!1;for(let p=0;p{A.semver===$g&&(A=new Xl(">=0.0.0")),y=y||A,_=_||A,i(A.semver,y.semver,n)?y=A:c(A.semver,_.semver,n)&&(_=A)}),y.operator===a||y.operator===d||(!_.operator||_.operator===a)&&s(e,_.semver))return!1;if(_.operator===d&&c(e,_.semver))return!1}return!0};var Co=Hg;const Wg=Co,Vg=(e,t,r)=>Wg(e,t,">",r);var qg=Vg;const zg=Co,Gg=(e,t,r)=>zg(e,t,"<",r);var Jg=Gg;const za=Ct(),Zg=(e,t,r)=>(e=new za(e,r),t=new za(t,r),e.intersects(t,r));var Kg=Zg;const Qg=Ji,Yg=Rt;var Xg=(e,t,r)=>{const n=[];let i=null,s=null;const c=e.sort((g,y)=>Yg(g,y,r));for(const g of c)Qg(g,t,r)?(s=g,i||(i=g)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const a=[];for(const[g,y]of n)g===y?a.push(g):!y&&g===c[0]?a.push("*"):y?g===c[0]?a.push(`<=${y}`):a.push(`${g} - ${y}`):a.push(`>=${g}`);const d=a.join(" || "),p=typeof t.raw=="string"?t.raw:String(t);return d.length{if(e===t)return!0;e=new Ga(e,r),t=new Ga(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const c=rm(i,s,r);if(n=n||c!==null,c)continue e}if(n)return!1}return!0},tm=[new Mo(">=0.0.0-0")],Ja=[new Mo(">=0.0.0")],rm=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Ls){if(t.length===1&&t[0].semver===Ls)return!0;r.includePrerelease?e=tm:e=Ja}if(t.length===1&&t[0].semver===Ls){if(r.includePrerelease)return!0;t=Ja}const n=new Set;let i,s;for(const A of e)A.operator===">"||A.operator===">="?i=Za(i,A,r):A.operator==="<"||A.operator==="<="?s=Ka(s,A,r):n.add(A.semver);if(n.size>1)return null;let c;if(i&&s){if(c=ko(i.semver,s.semver,r),c>0)return null;if(c===0&&(i.operator!==">="||s.operator!=="<="))return null}for(const A of n){if(i&&!cn(A,String(i),r)||s&&!cn(A,String(s),r))return null;for(const L of t)if(!cn(A,String(L),r))return!1;return!0}let a,d,p,g,y=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,_=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;y&&y.prerelease.length===1&&s.operator==="<"&&y.prerelease[0]===0&&(y=!1);for(const A of t){if(g=g||A.operator===">"||A.operator===">=",p=p||A.operator==="<"||A.operator==="<=",i){if(_&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===_.major&&A.semver.minor===_.minor&&A.semver.patch===_.patch&&(_=!1),A.operator===">"||A.operator===">="){if(a=Za(i,A,r),a===A&&a!==i)return!1}else if(i.operator===">="&&!cn(i.semver,String(A),r))return!1}if(s){if(y&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===y.major&&A.semver.minor===y.minor&&A.semver.patch===y.patch&&(y=!1),A.operator==="<"||A.operator==="<="){if(d=Ka(s,A,r),d===A&&d!==s)return!1}else if(s.operator==="<="&&!cn(s.semver,String(A),r))return!1}if(!A.operator&&(s||i)&&c!==0)return!1}return!(i&&p&&!s&&c!==0||s&&g&&!i&&c!==0||_||y)},Za=(e,t,r)=>{if(!e)return t;const n=ko(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},Ka=(e,t,r)=>{if(!e)return t;const n=ko(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var nm=em;const Bs=Fn,Qa=Vi,im=ot,Ya=Zl,sm=on,om=dp,am=gp,cm=wp,lm=bp,um=Ep,hm=Cp,dm=xp,fm=Tp,pm=Rt,gm=Pp,mm=Fp,wm=_o,ym=Hp,bm=qp,vm=zi,_m=Eo,Em=Kl,Sm=Ql,Rm=So,Cm=Ro,Mm=Yl,km=pg,xm=Gi(),Im=Ct(),Am=Ji,Tm=_g,Nm=Cg,Lm=Ig,Bm=Ng,Pm=Pg,Om=Co,$m=qg,Fm=Jg,Dm=Kg,jm=Xg,Um=nm;var Hm={parse:sm,valid:om,clean:am,inc:cm,diff:lm,major:um,minor:hm,patch:dm,prerelease:fm,compare:pm,rcompare:gm,compareLoose:mm,compareBuild:wm,sort:ym,rsort:bm,gt:vm,lt:_m,eq:Em,neq:Sm,gte:Rm,lte:Cm,cmp:Mm,coerce:km,Comparator:xm,Range:Im,satisfies:Am,toComparators:Tm,maxSatisfying:Nm,minSatisfying:Lm,minVersion:Bm,validRange:Pm,outside:Om,gtr:$m,ltr:Fm,intersects:Dm,simplifyRange:jm,subset:Um,SemVer:im,re:Bs.re,src:Bs.src,tokens:Bs.t,SEMVER_SPEC_VERSION:Qa.SEMVER_SPEC_VERSION,RELEASE_TYPES:Qa.RELEASE_TYPES,compareIdentifiers:Ya.compareIdentifiers,rcompareIdentifiers:Ya.rcompareIdentifiers};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const t=Hm,r=Er,n=rt;e.VersionStruct=(0,r.refine)((0,r.string)(),"Version",y=>(0,t.valid)(y)===null?`Expected SemVer version, got "${y}"`:!0),e.VersionRangeStruct=(0,r.refine)((0,r.string)(),"Version range",y=>(0,t.validRange)(y)===null?`Expected SemVer range, got "${y}"`:!0);function i(y){return(0,r.is)(y,e.VersionStruct)}e.isValidSemVerVersion=i;function s(y){return(0,r.is)(y,e.VersionRangeStruct)}e.isValidSemVerRange=s;function c(y){(0,n.assertStruct)(y,e.VersionStruct)}e.assertIsSemVerVersion=c;function a(y){(0,n.assertStruct)(y,e.VersionRangeStruct)}e.assertIsSemVerRange=a;function d(y,_){return(0,t.gt)(y,_)}e.gtVersion=d;function p(y,_){return(0,t.gtr)(y,_)}e.gtRange=p;function g(y,_){return(0,t.satisfies)(y,_,{includePrerelease:!0})}e.satisfiesVersionRange=g})(zl);(function(e){var t=ee&&ee.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,c,a)}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=ee&&ee.__exportStar||function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(rt,e),r(On,e),r(ye,e),r(Hi,e),r(Bt,e),r(Zr,e),r(Dl,e),r($n,e),r(jl,e),r(Ul,e),r(Kr,e),r(Hl,e),r(Pt,e),r(Wl,e),r(Vl,e),r(ql,e),r(zl,e)})(vl);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createModuleLogger=e.projectLogger=void 0;const t=vl;Object.defineProperty(e,"createModuleLogger",{enumerable:!0,get:function(){return t.createModuleLogger}}),e.projectLogger=(0,t.createProjectLogger)("eth-block-tracker")})(bl);var eu=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ji,"__esModule",{value:!0});ji.PollingBlockTracker=void 0;const Wm=eu(uo),Vm=eu(g0),qm=Nn,Xa=bl,ec=(0,Xa.createModuleLogger)(Xa.projectLogger,"polling-block-tracker"),zm=(0,Wm.default)(),Gm=1e3;class Jm extends qm.BaseBlockTracker{constructor(t={}){var r;if(!t.provider)throw new Error("PollingBlockTracker - no provider specified.");super(Object.assign(Object.assign({},t),{blockResetDuration:(r=t.blockResetDuration)!==null&&r!==void 0?r:t.pollingInterval})),this._provider=t.provider,this._pollingInterval=t.pollingInterval||20*Gm,this._retryTimeout=t.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=t.keepEventLoopActive===void 0?!0:t.keepEventLoopActive,this._setSkipCacheFlag=t.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var t;this._isRunning;)try{await this._updateLatestBlock();const r=tc(this._pollingInterval,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await r}catch(r){const n=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block: -${(t=r.stack)!==null&&t!==void 0?t:r}`);try{this.emit("error",n)}catch{console.error(n)}const i=tc(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await i}}async _updateLatestBlock(){const t=await this._fetchLatestBlock();this._newPotentialLatest(t)}async _fetchLatestBlock(){const t={jsonrpc:"2.0",id:zm(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(t.skipCache=!0),ec("Making request",t);const r=await(0,Vm.default)(n=>this._provider.sendAsync(t,n))();if(ec("Got response",r),r.error)throw new Error(`PollingBlockTracker - encountered error fetching block: -${r.error.message}`);return r.result}}ji.PollingBlockTracker=Jm;function tc(e,t){return new Promise(r=>{const n=setTimeout(r,e);n.unref&&t&&n.unref()})}var Zi={},Zm=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.SubscribeBlockTracker=void 0;const Km=Zm(uo),Qm=Nn,Ym=(0,Km.default)();class Xm extends Qm.BaseBlockTracker{constructor(t={}){if(!t.provider)throw new Error("SubscribeBlockTracker - no provider specified.");super(t),this._provider=t.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(this._subscriptionId===void 0||this._subscriptionId===null)try{const t=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(t)}catch(t){this.emit("error",t)}}async _end(){if(this._subscriptionId!==null&&this._subscriptionId!==void 0)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(t){this.emit("error",t)}}_call(t,...r){return new Promise((n,i)=>{this._provider.sendAsync({id:Ym(),method:t,params:r,jsonrpc:"2.0"},(s,c)=>{s?i(s):n(c.result)})})}_handleSubData(t,r){var n;r.method==="eth_subscription"&&((n=r.params)===null||n===void 0?void 0:n.subscription)===this._subscriptionId&&this._newPotentialLatest(r.params.result.number)}}Zi.SubscribeBlockTracker=Xm;(function(e){var t=ee&&ee.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=ee&&ee.__exportStar||function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(ji,e),r(Zi,e)})(yl);var xo={},Ki={},Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.getUniqueId=void 0;const tu=4294967295;let Ps=Math.floor(Math.random()*tu);function ew(){return Ps=(Ps+1)%tu,Ps}Dn.getUniqueId=ew;Object.defineProperty(Ki,"__esModule",{value:!0});Ki.createIdRemapMiddleware=void 0;const tw=Dn;function rw(){return(e,t,r,n)=>{const i=e.id,s=tw.getUniqueId();e.id=s,t.id=s,r(c=>{e.id=i,t.id=i,c()})}}Ki.createIdRemapMiddleware=rw;var Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.createAsyncMiddleware=void 0;function nw(e){return async(t,r,n,i)=>{let s;const c=new Promise(g=>{s=g});let a=null,d=!1;const p=async()=>{d=!0,n(g=>{a=g,s()}),await c};try{await e(t,r,p),d?(await c,a(null)):i(null)}catch(g){a?a(g):i(g)}}}Qi.createAsyncMiddleware=nw;var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.createScaffoldMiddleware=void 0;function iw(e){return(t,r,n,i)=>{const s=e[t.method];return s===void 0?n():typeof s=="function"?s(t,r,n,i):(r.result=s,i())}}Yi.createScaffoldMiddleware=iw;var jn={},Io={};Object.defineProperty(Io,"__esModule",{value:!0});const sw=ai;function rc(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout(()=>{throw n})}}function ow(e){const t=e.length,r=new Array(t);for(let n=0;n0&&([c]=r),c instanceof Error)throw c;const a=new Error(`Unhandled error.${c?` (${c.message})`:""}`);throw a.context=c,a}const s=i[t];if(s===void 0)return!1;if(typeof s=="function")rc(s,this,r);else{const c=s.length,a=ow(s);for(let d=0;d"u"&&(n=iu()),Js(e,"",0,[],void 0,0,n);var i;try{pr.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,ou(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;wr.length!==0;){var s=wr.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Wr(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),wr.push([n,r,t,i])):pr.push([t,r,e]):(n[r]=e,wr.push([n,r,t]))}function Js(e,t,r,n,i,s,c){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;ac.depthLimit){Wr(si,e,t,i);return}if(typeof c.edgesLimit<"u"&&r+1>c.edgesLimit){Wr(si,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;at?1:0}function su(e,t,r,n){typeof n>"u"&&(n=iu());var i=Zs(e,"",0,[],void 0,0,n)||e,s;try{pr.length===0?s=JSON.stringify(i,t,r):s=JSON.stringify(i,ou(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;wr.length!==0;){var c=wr.pop();c.length===4?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function Zs(e,t,r,n,i,s,c){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;ac.depthLimit){Wr(si,e,t,i);return}if(typeof c.edgesLimit<"u"&&r+1>c.edgesLimit){Wr(si,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a0)for(var n=0;n=1e3&&e<=4999}function fw(e,t){if(t!=="[Circular]")return t}var Ao={},qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.errorValues=qt.errorCodes=void 0;qt.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};qt.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=qt,r=Vt,n=t.errorCodes.rpc.internal,i="Unspecified error message. This is a bug, please report it.",s={code:n,message:c(n)};e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function c(_,A=i){if(Number.isInteger(_)){const L=_.toString();if(y(t.errorValues,L))return t.errorValues[L].message;if(p(_))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return A}e.getMessageFromCode=c;function a(_){if(!Number.isInteger(_))return!1;const A=_.toString();return!!(t.errorValues[A]||p(_))}e.isValidCode=a;function d(_,{fallbackError:A=s,shouldIncludeStack:L=!1}={}){var H,F;if(!A||!Number.isInteger(A.code)||typeof A.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(_ instanceof r.EthereumRpcError)return _.serialize();const I={};if(_&&typeof _=="object"&&!Array.isArray(_)&&y(_,"code")&&a(_.code)){const B=_;I.code=B.code,B.message&&typeof B.message=="string"?(I.message=B.message,y(B,"data")&&(I.data=B.data)):(I.message=c(I.code),I.data={originalError:g(_)})}else{I.code=A.code;const B=(H=_)===null||H===void 0?void 0:H.message;I.message=B&&typeof B=="string"?B:A.message,I.data={originalError:g(_)}}const O=(F=_)===null||F===void 0?void 0:F.stack;return L&&_&&O&&typeof O=="string"&&(I.stack=O),I}e.serializeError=d;function p(_){return _>=-32099&&_<=-32e3}function g(_){return _&&typeof _=="object"&&!Array.isArray(_)?Object.assign({},_):_}function y(_,A){return Object.prototype.hasOwnProperty.call(_,A)}})(Ao);var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.ethErrors=void 0;const To=Vt,cu=Ao,nt=qt;Xi.ethErrors={rpc:{parse:e=>pt(nt.errorCodes.rpc.parse,e),invalidRequest:e=>pt(nt.errorCodes.rpc.invalidRequest,e),invalidParams:e=>pt(nt.errorCodes.rpc.invalidParams,e),methodNotFound:e=>pt(nt.errorCodes.rpc.methodNotFound,e),internal:e=>pt(nt.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return pt(t,e)},invalidInput:e=>pt(nt.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>pt(nt.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>pt(nt.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>pt(nt.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>pt(nt.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>pt(nt.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>ln(nt.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>ln(nt.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>ln(nt.errorCodes.provider.unsupportedMethod,e),disconnected:e=>ln(nt.errorCodes.provider.disconnected,e),chainDisconnected:e=>ln(nt.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:n}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new To.EthereumProviderError(t,r,n)}}};function pt(e,t){const[r,n]=lu(t);return new To.EthereumRpcError(e,r||cu.getMessageFromCode(e),n)}function ln(e,t){const[r,n]=lu(t);return new To.EthereumProviderError(e,r||cu.getMessageFromCode(e),n)}function lu(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=Vt;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const r=Ao;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const n=Xi;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return n.ethErrors}});const i=qt;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return i.errorCodes}})})(ru);var pw=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jn,"__esModule",{value:!0});jn.JsonRpcEngine=void 0;const gw=pw(Io),gt=ru;class Ot extends gw.default{constructor(){super(),this._middleware=[]}push(t){this._middleware.push(t)}handle(t,r){if(r&&typeof r!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(t)?r?this._handleBatch(t,r):this._handleBatch(t):r?this._handle(t,r):this._promiseHandle(t)}asMiddleware(){return async(t,r,n,i)=>{try{const[s,c,a]=await Ot._runAllMiddleware(t,r,this._middleware);return c?(await Ot._runReturnHandlers(a),i(s)):n(async d=>{try{await Ot._runReturnHandlers(a)}catch(p){return d(p)}return d()})}catch(s){return i(s)}}}async _handleBatch(t,r){try{const n=await Promise.all(t.map(this._promiseHandle.bind(this)));return r?r(null,n):n}catch(n){if(r)return r(n);throw n}}_promiseHandle(t){return new Promise(r=>{this._handle(t,(n,i)=>{r(i)})})}async _handle(t,r){if(!t||Array.isArray(t)||typeof t!="object"){const c=new gt.EthereumRpcError(gt.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof t}`,{request:t});return r(c,{id:void 0,jsonrpc:"2.0",error:c})}if(typeof t.method!="string"){const c=new gt.EthereumRpcError(gt.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof t.method}`,{request:t});return r(c,{id:t.id,jsonrpc:"2.0",error:c})}const n=Object.assign({},t),i={id:n.id,jsonrpc:n.jsonrpc};let s=null;try{await this._processRequest(n,i)}catch(c){s=c}return s&&(delete i.result,i.error||(i.error=gt.serializeError(s))),r(s,i)}async _processRequest(t,r){const[n,i,s]=await Ot._runAllMiddleware(t,r,this._middleware);if(Ot._checkForCompletion(t,r,i),await Ot._runReturnHandlers(s),n)throw n}static async _runAllMiddleware(t,r,n){const i=[];let s=null,c=!1;for(const a of n)if([s,c]=await Ot._runMiddleware(t,r,a,i),c)break;return[s,c,i.reverse()]}static _runMiddleware(t,r,n,i){return new Promise(s=>{const c=d=>{const p=d||r.error;p&&(r.error=gt.serializeError(p)),s([p,!0])},a=d=>{r.error?c(r.error):(d&&(typeof d!="function"&&c(new gt.EthereumRpcError(gt.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof d}" for request: -${Os(t)}`,{request:t})),i.push(d)),s([null,!1]))};try{n(t,r,a,c)}catch(d){c(d)}})}static async _runReturnHandlers(t){for(const r of t)await new Promise((n,i)=>{r(s=>s?i(s):n())})}static _checkForCompletion(t,r,n){if(!("result"in r)&&!("error"in r))throw new gt.EthereumRpcError(gt.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: -${Os(t)}`,{request:t});if(!n)throw new gt.EthereumRpcError(gt.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: -${Os(t)}`,{request:t})}}jn.JsonRpcEngine=Ot;function Os(e){return JSON.stringify(e,null,2)}var es={};Object.defineProperty(es,"__esModule",{value:!0});es.mergeMiddleware=void 0;const mw=jn;function ww(e){const t=new mw.JsonRpcEngine;return e.forEach(r=>t.push(r)),t.asMiddleware()}es.mergeMiddleware=ww;(function(e){var t=ee&&ee.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=ee&&ee.__exportStar||function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(Ki,e),r(Qi,e),r(Yi,e),r(Dn,e),r(jn,e),r(es,e)})(xo);var uu={},No={};const Lo=mn(gu);var ts={};Object.defineProperty(ts,"__esModule",{value:!0});var nc=Lo,yw=function(){function e(t){if(this._maxConcurrency=t,this._queue=[],t<=0)throw new Error("semaphore must be initialized to a positive value");this._value=t}return e.prototype.acquire=function(){var t=this,r=this.isLocked(),n=new Promise(function(i){return t._queue.push(i)});return r||this._dispatch(),n},e.prototype.runExclusive=function(t){return nc.__awaiter(this,void 0,void 0,function(){var r,n,i;return nc.__generator(this,function(s){switch(s.label){case 0:return[4,this.acquire()];case 1:r=s.sent(),n=r[0],i=r[1],s.label=2;case 2:return s.trys.push([2,,4,5]),[4,t(n)];case 3:return[2,s.sent()];case 4:return i(),[7];case 5:return[2]}})})},e.prototype.isLocked=function(){return this._value<=0},e.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},e.prototype._dispatch=function(){var t=this,r=this._queue.shift();if(r){var n=!1;this._currentReleaser=function(){n||(n=!0,t._value++,t._dispatch())},r([this._value--,this._currentReleaser])}},e}();ts.default=yw;Object.defineProperty(No,"__esModule",{value:!0});var ic=Lo,bw=ts,vw=function(){function e(){this._semaphore=new bw.default(1)}return e.prototype.acquire=function(){return ic.__awaiter(this,void 0,void 0,function(){var t,r;return ic.__generator(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return t=n.sent(),r=t[1],[2,r]}})})},e.prototype.runExclusive=function(t){return this._semaphore.runExclusive(function(){return t()})},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e}();No.default=vw;var rs={};Object.defineProperty(rs,"__esModule",{value:!0});rs.withTimeout=void 0;var Xn=Lo;function _w(e,t,r){var n=this;return r===void 0&&(r=new Error("timeout")),{acquire:function(){return new Promise(function(i,s){return Xn.__awaiter(n,void 0,void 0,function(){var c,a,d;return Xn.__generator(this,function(p){switch(p.label){case 0:return c=!1,setTimeout(function(){c=!0,s(r)},t),[4,e.acquire()];case 1:return a=p.sent(),c?(d=Array.isArray(a)?a[1]:a,d()):i(a),[2]}})})})},runExclusive:function(i){return Xn.__awaiter(this,void 0,void 0,function(){var s,c;return Xn.__generator(this,function(a){switch(a.label){case 0:s=function(){},a.label=1;case 1:return a.trys.push([1,,7,8]),[4,this.acquire()];case 2:return c=a.sent(),Array.isArray(c)?(s=c[1],[4,i(c[0])]):[3,4];case 3:return[2,a.sent()];case 4:return s=c,[4,i()];case 5:return[2,a.sent()];case 6:return[3,8];case 7:return s(),[7];case 8:return[2]}})})},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}rs.withTimeout=_w;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.withTimeout=e.Semaphore=e.Mutex=void 0;var t=No;Object.defineProperty(e,"Mutex",{enumerable:!0,get:function(){return t.default}});var r=ts;Object.defineProperty(e,"Semaphore",{enumerable:!0,get:function(){return r.default}});var n=rs;Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return n.withTimeout}})})(uu);var Ew=Rw,Sw=Object.prototype.hasOwnProperty;function Rw(){for(var e={},t=0;tfunction(...i){const s=t.promiseModule;return new s((c,a)=>{t.multiArgs?i.push((...p)=>{t.errorFirst?p[0]?a(p):(p.shift(),c(p)):c(p)}):t.errorFirst?i.push((p,g)=>{p?a(p):c(g)}):i.push(c),Reflect.apply(e,this===r?n:this,i)})},oc=new WeakMap;var Iw=(e,t)=>{t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};const r=typeof e;if(!(e!==null&&(r==="object"||r==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":r}\``);const n=(c,a)=>{let d=oc.get(c);if(d||(d={},oc.set(c,d)),a in d)return d[a];const p=L=>typeof L=="string"||typeof a=="symbol"?a===L:L.test(a),g=Reflect.getOwnPropertyDescriptor(c,a),y=g===void 0||g.writable||g.configurable,A=(t.include?t.include.some(p):!t.exclude.some(p))&&y;return d[a]=A,A},i=new WeakMap,s=new Proxy(e,{apply(c,a,d){const p=i.get(c);if(p)return Reflect.apply(p,a,d);const g=t.excludeMain?c:sc(c,t,s,c);return i.set(c,g),Reflect.apply(g,a,d)},get(c,a){const d=c[a];if(!n(c,a)||d===Function.prototype[a])return d;const p=i.get(d);if(p)return p;if(typeof d=="function"){const g=sc(d,t,s,c);return i.set(d,g),g}return d}});return s};const Aw=Ln.default;let Tw=class extends Aw{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(t){this.updates=this.updates.concat(t),t.forEach(r=>this.emit("update",r))}addInitialResults(t){}getChangesAndClear(){const t=this.updates;return this.updates=[],t}};var Bo=Tw;const Nw=Bo;let Lw=class extends Nw{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(t){this.allResults=this.allResults.concat(t),super.addResults(t)}addInitialResults(t){this.allResults=this.allResults.concat(t),super.addInitialResults(t)}getAllResults(){return this.allResults}};var Bw=Lw,Hn={minBlockRef:Pw,maxBlockRef:Ow,sortBlockRefs:Po,bnToHex:$w,blockRefIsNumber:Fw,hexToInt:oi,incrementHexInt:Dw,intToHex:hu,unsafeRandomBytes:jw};function Pw(...e){return Po(e)[0]}function Ow(...e){const t=Po(e);return t[t.length-1]}function Po(e){return e.sort((t,r)=>t==="latest"||r==="earliest"?1:r==="latest"||t==="earliest"?-1:oi(t)-oi(r))}function $w(e){return"0x"+e.toString(16)}function Fw(e){return e&&!["earliest","latest","pending"].includes(e)}function oi(e){return e==null?e:Number.parseInt(e,16)}function Dw(e){if(e==null)return e;const t=oi(e);return hu(t+1)}function hu(e){if(e==null)return e;let t=e.toString(16);return t.length%2&&(t="0"+t),"0x"+t}function jw(e){let t="0x";for(let r=0;rn.toLowerCase()))}async initialize({currentBlock:t}){let r=this.params.fromBlock;["latest","pending"].includes(r)&&(r=t),r==="earliest"&&(r="0x0"),this.params.fromBlock=r;const n=qw(this.params.toBlock,t),i=Object.assign({},this.params,{toBlock:n}),s=await this._fetchLogs(i);this.addInitialResults(s)}async update({oldBlock:t,newBlock:r}){const n=r;let i;t?i=Vw(t):i=r;const s=Object.assign({},this.params,{fromBlock:i,toBlock:n}),a=(await this._fetchLogs(s)).filter(d=>this.matchLog(d));this.addResults(a)}async _fetchLogs(t){return await Hw(n=>this.ethQuery.getLogs(t,n))()}matchLog(t){if(ei(this.params.fromBlock)>=ei(t.blockNumber)||zw(this.params.toBlock)&&ei(this.params.toBlock)<=ei(t.blockNumber))return!1;const r=t.address&&t.address.toLowerCase();return this.params.address&&r&&!this.params.address.includes(r)?!1:this.params.topics.every((i,s)=>{let c=t.topics[s];if(!c)return!1;c=c.toLowerCase();let a=Array.isArray(i)?i:[i];return a.includes(null)?!0:(a=a.map(g=>g.toLowerCase()),a.includes(c))})}};var Jw=Gw,Oo=Zw;async function Zw({provider:e,fromBlock:t,toBlock:r}){t||(t=r);const n=cc(t),s=cc(r)-n+1,c=Array(s).fill().map((d,p)=>n+p).map(Kw);let a=await Promise.all(c.map(d=>Yw(e,"eth_getBlockByNumber",[d,!1])));return a=a.filter(d=>d!==null),a}function cc(e){return e==null?e:Number.parseInt(e,16)}function Kw(e){return e==null?e:"0x"+e.toString(16)}function Qw(e,t){return new Promise((r,n)=>{e.sendAsync(t,(i,s)=>{i?n(i):s.error?n(s.error):s.result?r(s.result):n(new Error("Result was empty"))})})}async function Yw(e,t,r){for(let n=0;n<3;n++)try{return await Qw(e,{id:1,jsonrpc:"2.0",method:t,params:r})}catch(i){console.error(`provider.sendAsync failed: ${i.stack||i.message||i}`)}return null}const Xw=Bo,ey=Oo,{incrementHexInt:ty}=Hn;let ry=class extends Xw{constructor({provider:t,params:r}){super(),this.type="block",this.provider=t}async update({oldBlock:t,newBlock:r}){const n=r,i=ty(t),c=(await ey({provider:this.provider,fromBlock:i,toBlock:n})).map(a=>a.hash);this.addResults(c)}};var ny=ry;const iy=Bo,sy=Oo,{incrementHexInt:oy}=Hn;let ay=class extends iy{constructor({provider:t}){super(),this.type="tx",this.provider=t}async update({oldBlock:t}){const r=t,n=oy(t),i=await sy({provider:this.provider,fromBlock:n,toBlock:r}),s=[];for(const c of i)s.push(...c.transactions);this.addResults(s)}};var cy=ay;const ly=uu.Mutex,{createAsyncMiddleware:uy,createScaffoldMiddleware:hy}=xo,dy=Jw,fy=ny,py=cy,{intToHex:du,hexToInt:$s}=Hn;var gy=my;function my({blockTracker:e,provider:t}){let r=0,n={};const i=new ly,s=wy({mutex:i}),c=hy({eth_newFilter:s(Fs(d)),eth_newBlockFilter:s(Fs(p)),eth_newPendingTransactionFilter:s(Fs(g)),eth_uninstallFilter:s(ni(A)),eth_getFilterChanges:s(ni(y)),eth_getFilterLogs:s(ni(_))}),a=async({oldBlock:O,newBlock:B})=>{if(n.length===0)return;const V=await i.acquire();try{await Promise.all($r(n).map(async j=>{try{await j.update({oldBlock:O,newBlock:B})}catch(z){console.error(z)}}))}catch(j){console.error(j)}V()};return c.newLogFilter=d,c.newBlockFilter=p,c.newPendingTransactionFilter=g,c.uninstallFilter=A,c.getFilterChanges=y,c.getFilterLogs=_,c.destroy=()=>{F()},c;async function d(O){const B=new dy({provider:t,params:O});return await L(B),B}async function p(){const O=new fy({provider:t});return await L(O),O}async function g(){const O=new py({provider:t});return await L(O),O}async function y(O){const B=$s(O),V=n[B];if(!V)throw new Error(`No filter for index "${B}"`);return V.getChangesAndClear()}async function _(O){const B=$s(O),V=n[B];if(!V)throw new Error(`No filter for index "${B}"`);let j=[];return V.type==="log"&&(j=V.getAllResults()),j}async function A(O){const B=$s(O),j=!!n[B];return j&&await H(B),j}async function L(O){const B=$r(n).length,V=await e.getLatestBlock();await O.initialize({currentBlock:V}),r++,n[r]=O,O.id=r,O.idHex=du(r);const j=$r(n).length;return I({prevFilterCount:B,newFilterCount:j}),r}async function H(O){const B=$r(n).length;delete n[O];const V=$r(n).length;I({prevFilterCount:B,newFilterCount:V})}async function F(){const O=$r(n).length;n={},I({prevFilterCount:O,newFilterCount:0})}function I({prevFilterCount:O,newFilterCount:B}){if(O===0&&B>0){e.on("sync",a);return}if(O>0&&B===0){e.removeListener("sync",a);return}}}function Fs(e){return ni(async(...t)=>{const r=await e(...t);return du(r.id)})}function ni(e){return uy(async(t,r)=>{const n=await e.apply(null,t.params);r.result=n})}function wy({mutex:e}){return t=>async(r,n,i,s)=>{(await e.acquire())(),t(r,n,i,s)}}function $r(e,t){const r=[];for(let n in e)r.push(e[n]);return r}const yy=Ln.default,{createAsyncMiddleware:lc,createScaffoldMiddleware:by}=xo,vy=gy,{unsafeRandomBytes:_y,incrementHexInt:Ey}=Hn,Sy=Oo;var Ry=Cy;function Cy({blockTracker:e,provider:t}){const r={},n=vy({blockTracker:e,provider:t});let i=!1;const s=new yy,c=by({eth_subscribe:lc(a),eth_unsubscribe:lc(d)});return c.destroy=g,{events:s,middleware:c};async function a(y,_){if(i)throw new Error("SubscriptionManager - attempting to use after destroying");const A=y.params[0],L=_y(16);let H;switch(A){case"newHeads":H=F({subId:L});break;case"logs":const O=y.params[1],B=await n.newLogFilter(O);H=I({subId:L,filter:B});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${A}"`)}r[L]=H,_.result=L;return;function F({subId:O}){const B={type:A,destroy:async()=>{e.removeListener("sync",B.update)},update:async({oldBlock:V,newBlock:j})=>{const z=j,te=Ey(V);(await Sy({provider:t,fromBlock:te,toBlock:z})).map(My).filter(fe=>fe!==null).forEach(fe=>{p(O,fe)})}};return e.on("sync",B.update),B}function I({subId:O,filter:B}){return B.on("update",j=>p(O,j)),{type:A,destroy:async()=>await n.uninstallFilter(B.idHex)}}}async function d(y,_){if(i)throw new Error("SubscriptionManager - attempting to use after destroying");const A=y.params[0],L=r[A];if(!L){_.result=!1;return}delete r[A],await L.destroy(),_.result=!0}function p(y,_){s.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:y,result:_}})}function g(){s.removeAllListeners();for(const y in r)r[y].destroy(),delete r[y];i=!0}}function My(e){return e==null?null:{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLimit:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}Object.defineProperty(Di,"__esModule",{value:!0});Di.SubscriptionManager=void 0;const ky=yl,xy=Ry,uc=()=>{};class Iy{constructor(t){const r=new ky.PollingBlockTracker({provider:t,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:i}=xy({blockTracker:r,provider:t});this.events=n,this.subscriptionMiddleware=i}async handleRequest(t){const r={};return await this.subscriptionMiddleware(t,r,uc,uc),r}destroy(){this.subscriptionMiddleware.destroy()}}Di.SubscriptionManager=Iy;var fu=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.CoinbaseWalletProvider=void 0;const Ay=fu(ui),Ty=Ju,me=wn,de=X,Ny=_n,hc=wt,ti=en,lt=Qr,Ds=fu(u0),un=Xr,Ly=Jr,By=Di,dc="DefaultChainId",fc="DefaultJsonRpcUrl";class Py extends Ty.EventEmitter{constructor(t){var r,n;super(),this._filterPolyfill=new Ly.FilterPolyfill(this),this._subscriptionManager=new By.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=t.chainId,this._jsonRpcUrlFromOpts=t.jsonRpcUrl,this._overrideIsMetaMask=t.overrideIsMetaMask,this._relayProvider=t.relayProvider,this._storage=t.storage,this._relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(r=t.overrideIsCoinbaseWallet)!==null&&r!==void 0?r:!0,this.isCoinbaseBrowser=(n=t.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this.qrUrl=t.qrUrl;const i=this.getChainId(),s=(0,de.prepend0x)(i.toString(16));this.emit("connect",{chainIdStr:s});const c=this._storage.getItem(hc.LOCAL_STORAGE_ADDRESSES_KEY);if(c){const a=c.split(" ");a[0]!==""&&(this._addresses=a.map(d=>(0,de.ensureAddressString)(d)),this.emit("accountsChanged",a))}this._subscriptionManager.events.on("notification",a=>{this.emit("message",{type:a.method,data:a.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener("message",a=>{var d;if(!(a.origin!==location.origin||a.source!==window)&&a.data.type==="walletLinkMessage"&&a.data.data.action==="dappChainSwitched"){const p=a.data.data.chainId,g=(d=a.data.data.jsonRpcUrl)!==null&&d!==void 0?d:this.jsonRpcUrl;this.updateProviderInfo(g,Number(p))}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,de.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var t;return(t=this._storage.getItem(fc))!==null&&t!==void 0?t:this._jsonRpcUrlFromOpts}set jsonRpcUrl(t){this._storage.setItem(fc,t)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(t,r){this.isCoinbaseBrowser||(this._chainIdFromOpts=r,this._jsonRpcUrlFromOpts=t),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(t,r){this.jsonRpcUrl=t;const n=this.getChainId();this._storage.setItem(dc,r.toString(10)),((0,de.ensureIntNumber)(r)!==n||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(t,r,n,i,s,c){const d=await(await this.initializeRelay()).watchAsset(t,r,n,i,s,c==null?void 0:c.toString()).promise;return(0,lt.isErrorResponse)(d)?!1:!!d.result}async addEthereumChain(t,r,n,i,s,c){var a,d;if((0,de.ensureIntNumber)(t)===this.getChainId())return!1;const p=await this.initializeRelay(),g=p.inlineAddEthereumChain(t.toString());!this._isAuthorized()&&!g&&await p.requestEthereumAccounts().promise;const y=await p.addEthereumChain(t.toString(),r,s,n,i,c).promise;return(0,lt.isErrorResponse)(y)?!1:(((a=y.result)===null||a===void 0?void 0:a.isApproved)===!0&&this.updateProviderInfo(r[0],t),((d=y.result)===null||d===void 0?void 0:d.isApproved)===!0)}async switchEthereumChain(t){const n=await(await this.initializeRelay()).switchEthereumChain(t.toString(10),this.selectedAddress||void 0).promise;if((0,lt.isErrorResponse)(n)){if(!n.errorCode)return;throw n.errorCode===me.standardErrorCodes.provider.unsupportedChain?me.standardErrors.provider.unsupportedChain():me.standardErrors.provider.custom({message:n.errorMessage,code:n.errorCode})}const i=n.result;i.isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,t)}setAppInfo(t,r){this.initializeRelay().then(n=>n.setAppInfo(t,r))}async enable(){var t;return(t=this.diagnostic)===null||t===void 0||t.log(un.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?ti.Session.hash(this._relay.session.id):void 0}),this._isAuthorized()?[...this._addresses]:await this.send("eth_requestAccounts")}async close(){(await this.initializeRelay()).resetAndReload()}send(t,r){try{const n=this._send(t,r);if(n instanceof Promise)return n.catch(i=>{throw(0,me.serializeError)(i,t)})}catch(n){throw(0,me.serializeError)(n,t)}}_send(t,r){if(typeof t=="string"){const i=t,s=Array.isArray(r)?r:r!==void 0?[r]:[],c={jsonrpc:"2.0",id:0,method:i,params:s};return this._sendRequestAsync(c).then(a=>a.result)}if(typeof r=="function"){const i=t,s=r;return this._sendAsync(i,s)}if(Array.isArray(t))return t.map(s=>this._sendRequest(s));const n=t;return this._sendRequest(n)}async sendAsync(t,r){try{return this._sendAsync(t,r).catch(n=>{throw(0,me.serializeError)(n,t)})}catch(n){return Promise.reject((0,me.serializeError)(n,t))}}async _sendAsync(t,r){if(typeof r!="function")throw new Error("callback is required");if(Array.isArray(t)){const i=r;this._sendMultipleRequestsAsync(t).then(s=>i(null,s)).catch(s=>i(s,null));return}const n=r;return this._sendRequestAsync(t).then(i=>n(null,i)).catch(i=>n(i,null))}async request(t){try{return this._request(t).catch(r=>{throw(0,me.serializeError)(r,t.method)})}catch(r){return Promise.reject((0,me.serializeError)(r,t.method))}}async _request(t){if(!t||typeof t!="object"||Array.isArray(t))throw me.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:t});const{method:r,params:n}=t;if(typeof r!="string"||r.length===0)throw me.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:t});if(n!==void 0&&!Array.isArray(n)&&(typeof n!="object"||n===null))throw me.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:t});const i=n===void 0?[]:n,s=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:r,params:i,jsonrpc:"2.0",id:s})).result}async scanQRCode(t){const n=await(await this.initializeRelay()).scanQRCode((0,de.ensureRegExpString)(t)).promise;if((0,lt.isErrorResponse)(n))throw(0,me.serializeError)(n.errorMessage,"scanQRCode");if(typeof n.result!="string")throw(0,me.serializeError)("result was not a string","scanQRCode");return n.result}async genericRequest(t,r){const i=await(await this.initializeRelay()).genericRequest(t,r).promise;if((0,lt.isErrorResponse)(i))throw(0,me.serializeError)(i.errorMessage,"generic");if(typeof i.result!="string")throw(0,me.serializeError)("result was not a string","generic");return i.result}async connectAndSignIn(t){var r;(r=this.diagnostic)===null||r===void 0||r.log(un.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::connectAndSignIn",sessionIdHash:this._relay?ti.Session.hash(this._relay.session.id):void 0});let n;try{const s=await this.initializeRelay();if(!(s instanceof Ny.MobileRelay))throw new Error("connectAndSignIn is only supported on mobile");if(n=await s.connectAndSignIn(t).promise,(0,lt.isErrorResponse)(n))throw new Error(n.errorMessage)}catch(s){throw typeof s.message=="string"&&s.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied account authorization"):s}if(!n.result)throw new Error("accounts received is empty");const{accounts:i}=n.result;return this._setAddresses(i),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),n.result}async selectProvider(t){const n=await(await this.initializeRelay()).selectProvider(t).promise;if((0,lt.isErrorResponse)(n))throw(0,me.serializeError)(n.errorMessage,"selectProvider");if(typeof n.result!="string")throw(0,me.serializeError)("result was not a string","selectProvider");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(t){const r={jsonrpc:"2.0",id:t.id},{method:n}=t;if(r.result=this._handleSynchronousMethods(t),r.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return r}_setAddresses(t,r){if(!Array.isArray(t))throw new Error("addresses is not an array");const n=t.map(i=>(0,de.ensureAddressString)(i));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(hc.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" ")))}_sendRequestAsync(t){return new Promise((r,n)=>{try{const i=this._handleSynchronousMethods(t);if(i!==void 0)return r({jsonrpc:"2.0",id:t.id,result:i});const s=this._handleAsynchronousFilterMethods(t);if(s!==void 0){s.then(a=>r(Object.assign(Object.assign({},a),{id:t.id}))).catch(a=>n(a));return}const c=this._handleSubscriptionMethods(t);if(c!==void 0){c.then(a=>r({jsonrpc:"2.0",id:t.id,result:a.result})).catch(a=>n(a));return}}catch(i){return n(i)}this._handleAsynchronousMethods(t).then(i=>i&&r(Object.assign(Object.assign({},i),{id:t.id}))).catch(i=>n(i))})}_sendMultipleRequestsAsync(t){return Promise.all(t.map(r=>this._sendRequestAsync(r)))}_handleSynchronousMethods(t){const{method:r}=t,n=t.params||[];switch(r){case"eth_accounts":return this._eth_accounts();case"eth_coinbase":return this._eth_coinbase();case"eth_uninstallFilter":return this._eth_uninstallFilter(n);case"net_version":return this._net_version();case"eth_chainId":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(t){const{method:r}=t,n=t.params||[];switch(r){case"eth_requestAccounts":return this._eth_requestAccounts();case"eth_sign":return this._eth_sign(n);case"eth_ecRecover":return this._eth_ecRecover(n);case"personal_sign":return this._personal_sign(n);case"personal_ecRecover":return this._personal_ecRecover(n);case"eth_signTransaction":return this._eth_signTransaction(n);case"eth_sendRawTransaction":return this._eth_sendRawTransaction(n);case"eth_sendTransaction":return this._eth_sendTransaction(n);case"eth_signTypedData_v1":return this._eth_signTypedData_v1(n);case"eth_signTypedData_v2":return this._throwUnsupportedMethodError();case"eth_signTypedData_v3":return this._eth_signTypedData_v3(n);case"eth_signTypedData_v4":case"eth_signTypedData":return this._eth_signTypedData_v4(n);case"cbWallet_arbitrary":return this._cbwallet_arbitrary(n);case"wallet_addEthereumChain":return this._wallet_addEthereumChain(n);case"wallet_switchEthereumChain":return this._wallet_switchEthereumChain(n);case"wallet_watchAsset":return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(t,this.jsonRpcUrl).catch(s=>{var c;throw(s.code===me.standardErrorCodes.rpc.methodNotFound||s.code===me.standardErrorCodes.rpc.methodNotSupported)&&((c=this.diagnostic)===null||c===void 0||c.log(un.EVENTS.METHOD_NOT_IMPLEMENTED,{method:t.method,sessionIdHash:this._relay?ti.Session.hash(this._relay.session.id):void 0})),s})}_handleAsynchronousFilterMethods(t){const{method:r}=t,n=t.params||[];switch(r){case"eth_newFilter":return this._eth_newFilter(n);case"eth_newBlockFilter":return this._eth_newBlockFilter();case"eth_newPendingTransactionFilter":return this._eth_newPendingTransactionFilter();case"eth_getFilterChanges":return this._eth_getFilterChanges(n);case"eth_getFilterLogs":return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(t){switch(t.method){case"eth_subscribe":case"eth_unsubscribe":return this._subscriptionManager.handleRequest(t)}}_isKnownAddress(t){try{const r=(0,de.ensureAddressString)(t);return this._addresses.map(i=>(0,de.ensureAddressString)(i)).includes(r)}catch{}return!1}_ensureKnownAddress(t){var r;if(!this._isKnownAddress(t))throw(r=this.diagnostic)===null||r===void 0||r.log(un.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(t){const r=t.from?(0,de.ensureAddressString)(t.from):this.selectedAddress;if(!r)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(r);const n=t.to?(0,de.ensureAddressString)(t.to):null,i=t.value!=null?(0,de.ensureBN)(t.value):new Ay.default(0),s=t.data?(0,de.ensureBuffer)(t.data):Buffer.alloc(0),c=t.nonce!=null?(0,de.ensureIntNumber)(t.nonce):null,a=t.gasPrice!=null?(0,de.ensureBN)(t.gasPrice):null,d=t.maxFeePerGas!=null?(0,de.ensureBN)(t.maxFeePerGas):null,p=t.maxPriorityFeePerGas!=null?(0,de.ensureBN)(t.maxPriorityFeePerGas):null,g=t.gas!=null?(0,de.ensureBN)(t.gas):null,y=t.chainId?(0,de.ensureIntNumber)(t.chainId):this.getChainId();return{fromAddress:r,toAddress:n,weiValue:i,data:s,nonce:c,gasPriceInWei:a,maxFeePerGas:d,maxPriorityFeePerGas:p,gasLimit:g,chainId:y}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw me.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw me.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(t,r,n,i){this._ensureKnownAddress(r);try{const c=await(await this.initializeRelay()).signEthereumMessage(t,r,n,i).promise;if((0,lt.isErrorResponse)(c))throw new Error(c.errorMessage);return{jsonrpc:"2.0",id:0,result:c.result}}catch(s){throw typeof s.message=="string"&&s.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied message signature"):s}}async _ethereumAddressFromSignedMessage(t,r,n){const s=await(await this.initializeRelay()).ethereumAddressFromSignedMessage(t,r,n).promise;if((0,lt.isErrorResponse)(s))throw new Error(s.errorMessage);return{jsonrpc:"2.0",id:0,result:s.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,de.hexStringFromIntNumber)(this.getChainId())}getChainId(){const t=this._storage.getItem(dc);if(!t)return(0,de.ensureIntNumber)(this._chainIdFromOpts);const r=parseInt(t,10);return(0,de.ensureIntNumber)(r)}async _eth_requestAccounts(){var t;if((t=this.diagnostic)===null||t===void 0||t.log(un.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?ti.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let r;try{if(r=await(await this.initializeRelay()).requestEthereumAccounts().promise,(0,lt.isErrorResponse)(r))throw new Error(r.errorMessage)}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied account authorization"):n}if(!r.result)throw new Error("accounts received is empty");return this._setAddresses(r.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(t){this._requireAuthorization();const r=(0,de.ensureAddressString)(t[0]),n=(0,de.ensureBuffer)(t[1]);return this._signEthereumMessage(n,r,!1)}_eth_ecRecover(t){const r=(0,de.ensureBuffer)(t[0]),n=(0,de.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(r,n,!1)}_personal_sign(t){this._requireAuthorization();const r=(0,de.ensureBuffer)(t[0]),n=(0,de.ensureAddressString)(t[1]);return this._signEthereumMessage(r,n,!0)}_personal_ecRecover(t){const r=(0,de.ensureBuffer)(t[0]),n=(0,de.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(r,n,!0)}async _eth_signTransaction(t){this._requireAuthorization();const r=this._prepareTransactionParams(t[0]||{});try{const i=await(await this.initializeRelay()).signEthereumTransaction(r).promise;if((0,lt.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:"2.0",id:0,result:i.result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_sendRawTransaction(t){const r=(0,de.ensureBuffer)(t[0]),i=await(await this.initializeRelay()).submitEthereumTransaction(r,this.getChainId()).promise;if((0,lt.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:"2.0",id:0,result:i.result}}async _eth_sendTransaction(t){this._requireAuthorization();const r=this._prepareTransactionParams(t[0]||{});try{const i=await(await this.initializeRelay()).signAndSubmitEthereumTransaction(r).promise;if((0,lt.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:"2.0",id:0,result:i.result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_signTypedData_v1(t){this._requireAuthorization();const r=(0,de.ensureParsedJSONObject)(t[0]),n=(0,de.ensureAddressString)(t[1]);this._ensureKnownAddress(n);const i=Ds.default.hashForSignTypedDataLegacy({data:r}),s=JSON.stringify(r,null,2);return this._signEthereumMessage(i,n,!1,s)}async _eth_signTypedData_v3(t){this._requireAuthorization();const r=(0,de.ensureAddressString)(t[0]),n=(0,de.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(r);const i=Ds.default.hashForSignTypedData_v3({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,r,!1,s)}async _eth_signTypedData_v4(t){this._requireAuthorization();const r=(0,de.ensureAddressString)(t[0]),n=(0,de.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(r);const i=Ds.default.hashForSignTypedData_v4({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,r,!1,s)}async _cbwallet_arbitrary(t){const r=t[0],n=t[1];if(typeof n!="string")throw new Error("parameter must be a string");if(typeof r!="object"||r===null)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(r,n)}}async _wallet_addEthereumChain(t){var r,n,i,s;const c=t[0];if(((r=c.rpcUrls)===null||r===void 0?void 0:r.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!c.chainName||c.chainName.trim()==="")throw me.standardErrors.rpc.invalidParams("chainName is a required field");if(!c.nativeCurrency)throw me.standardErrors.rpc.invalidParams("nativeCurrency is a required field");const a=parseInt(c.chainId,16);return await this.addEthereumChain(a,(n=c.rpcUrls)!==null&&n!==void 0?n:[],(i=c.blockExplorerUrls)!==null&&i!==void 0?i:[],c.chainName,(s=c.iconUrls)!==null&&s!==void 0?s:[],c.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(t){const r=t[0];return await this.switchEthereumChain(parseInt(r.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(t){const r=Array.isArray(t)?t[0]:t;if(!r.type)throw me.standardErrors.rpc.invalidParams("Type is required");if((r==null?void 0:r.type)!=="ERC20")throw me.standardErrors.rpc.invalidParams(`Asset of type '${r.type}' is not supported`);if(!(r!=null&&r.options))throw me.standardErrors.rpc.invalidParams("Options are required");if(!(r!=null&&r.options.address))throw me.standardErrors.rpc.invalidParams("Address is required");const n=this.getChainId(),{address:i,symbol:s,image:c,decimals:a}=r.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(r.type,i,s,a,c,n)}}_eth_uninstallFilter(t){const r=(0,de.ensureHexString)(t[0]);return this._filterPolyfill.uninstallFilter(r)}async _eth_newFilter(t){const r=t[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(r)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(t){const r=(0,de.ensureHexString)(t[0]);return this._filterPolyfill.getFilterChanges(r)}_eth_getFilterLogs(t){const r=(0,de.ensureHexString)(t[0]);return this._filterPolyfill.getFilterLogs(r)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(t=>(t.setAccountsCallback((r,n)=>this._setAddresses(r,n)),t.setChainCallback((r,n)=>{this.updateProviderInfo(n,parseInt(r,10))}),t.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=t,t))}}Vr.CoinbaseWalletProvider=Py;var ns={};Object.defineProperty(ns,"__esModule",{value:!0});ns.RelayEventManager=void 0;const Oy=X;class $y{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const t=this._nextRequestId,r=(0,Oy.prepend0x)(t.toString(16));return this.callbacks.get(r)&&this.callbacks.delete(r),t}}ns.RelayEventManager=$y;Object.defineProperty(dn,"__esModule",{value:!0});dn.CoinbaseWalletSDK=void 0;const Fy=ci,Dy=li,pc=X,jy=gi,Uy=Vr,Hy=_n,Wy=Tn,Vy=ns,qy=xn,zy=En,pu=Yr;class is{constructor(t){var r,n,i;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;const s=t.linkAPIUrl||Dy.LINK_API_URL;typeof t.overrideIsMetaMask>"u"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=t.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(r=t.overrideIsCoinbaseWallet)!==null&&r!==void 0?r:!0,this._overrideIsCoinbaseBrowser=(n=t.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this._diagnosticLogger=t.diagnosticLogger,this._reloadOnDisconnect=(i=t.reloadOnDisconnect)!==null&&i!==void 0?i:!0;const c=new URL(s),a=`${c.protocol}//${c.host}`;if(this._storage=new jy.ScopedLocalStorage(`-walletlink:${a}`),this._storage.setItem("version",is.VERSION),this.walletExtension||this.coinbaseBrowser)return;this._relayEventManager=new Vy.RelayEventManager;const d=(0,pc.isMobileWeb)(),p=t.uiConstructor||(y=>d?new Wy.MobileRelayUI(y):new qy.WalletLinkRelayUI(y)),g={linkAPIUrl:s,version:pu.LIB_VERSION,darkMode:!!t.darkMode,headlessMode:!!t.headlessMode,uiConstructor:p,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect,enableMobileWalletLink:t.enableMobileWalletLink};this._relay=d?new Hy.MobileRelay(g):new zy.WalletLinkRelay(g),this.setAppInfo(t.appName,t.appLogoUrl),!t.headlessMode&&this._relay.attachUI()}makeWeb3Provider(t="",r=1){const n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(t,r),this._reloadOnDisconnect===!1&&typeof n.disableReloadOnDisconnect=="function"&&n.disableReloadOnDisconnect(),n;const i=this.coinbaseBrowser;if(i)return i;const s=this._relay;if(!s||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return t||s.setConnectDisabled(!0),new Uy.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(s),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:t,chainId:r,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(t,r){var n;this._appName=t||"DApp",this._appLogoUrl=r||(0,pc.getFavicon)();const i=this.walletExtension;i?this.isCipherProvider(i)||i.setAppInfo(this._appName,this._appLogoUrl):(n=this._relay)===null||n===void 0||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var t;const r=this===null||this===void 0?void 0:this.walletExtension;r?r.close():(t=this._relay)===null||t===void 0||t.resetAndReload()}getQrUrl(){var t,r;return(r=(t=this._relay)===null||t===void 0?void 0:t.getQRCodeUrl())!==null&&r!==void 0?r:null}getCoinbaseWalletLogo(t,r=240){return(0,Fy.walletLogo)(t,r)}get walletExtension(){var t;return(t=window.coinbaseWalletExtension)!==null&&t!==void 0?t:window.walletLinkExtension}get coinbaseBrowser(){var t,r;try{const n=(t=window.ethereum)!==null&&t!==void 0?t:(r=window.top)===null||r===void 0?void 0:r.ethereum;return n&&"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch{return}}isCipherProvider(t){return typeof t.isCipher=="boolean"&&t.isCipher}}dn.CoinbaseWalletSDK=is;is.VERSION=pu.LIB_VERSION;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletProvider=e.CoinbaseWalletSDK=void 0;const t=dn,r=Vr;var n=dn;Object.defineProperty(e,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return n.CoinbaseWalletSDK}});var i=Vr;Object.defineProperty(e,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return i.CoinbaseWalletProvider}}),e.default=t.CoinbaseWalletSDK,typeof window<"u"&&(window.CoinbaseWalletSDK=t.CoinbaseWalletSDK,window.CoinbaseWalletProvider=r.CoinbaseWalletProvider,window.WalletLink=t.CoinbaseWalletSDK,window.WalletLinkProvider=r.CoinbaseWalletProvider)})(gc);const Gy=mu(gc),ab=Object.freeze(Object.defineProperty({__proto__:null,default:Gy},Symbol.toStringTag,{value:"Module"}));export{ab as i}; -//# sourceMappingURL=index-CPuAEUoa.js.map diff --git a/apps/web/public/assets/index-CTwKNzhK.js b/apps/web/public/assets/index-CTwKNzhK.js deleted file mode 100644 index c486b3fb..00000000 --- a/apps/web/public/assets/index-CTwKNzhK.js +++ /dev/null @@ -1,1552 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.es-CdO-xVAP.js","./index.es-BYCv7dOh.js","./index-AVOVxDWm.js","./hooks.module-D456YPrV.js","./index-B_Tlc-nD.js"])))=>i.map(i=>d[i]); -var tne=Object.defineProperty;var nne=(e,t,n)=>t in e?tne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ve=(e,t,n)=>nne(e,typeof t!="symbol"?t+"":t,n);(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="30a9286f-2c74-4f2d-9e74-7a76652701eb",e._sentryDebugIdIdentifier="sentry-dbid-30a9286f-2c74-4f2d-9e74-7a76652701eb")}catch{}})();function Ak(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var rne=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};rne.SENTRY_RELEASE={id:"bf9125f32debd33371c936f173d09fe566cea945"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var We=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ns(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var XL={exports:{}},a_={},JL={exports:{}},ht={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ig=Symbol.for("react.element"),one=Symbol.for("react.portal"),ane=Symbol.for("react.fragment"),ine=Symbol.for("react.strict_mode"),sne=Symbol.for("react.profiler"),cne=Symbol.for("react.provider"),lne=Symbol.for("react.context"),une=Symbol.for("react.forward_ref"),dne=Symbol.for("react.suspense"),fne=Symbol.for("react.memo"),hne=Symbol.for("react.lazy"),y7=Symbol.iterator;function mne(e){return e===null||typeof e!="object"?null:(e=y7&&e[y7]||e["@@iterator"],typeof e=="function"?e:null)}var ZL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eU=Object.assign,tU={};function Kh(e,t,n){this.props=e,this.context=t,this.refs=tU,this.updater=n||ZL}Kh.prototype.isReactComponent={};Kh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Kh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nU(){}nU.prototype=Kh.prototype;function Dk(e,t,n){this.props=e,this.context=t,this.refs=tU,this.updater=n||ZL}var kk=Dk.prototype=new nU;kk.constructor=Dk;eU(kk,Kh.prototype);kk.isPureReactComponent=!0;var b7=Array.isArray,rU=Object.prototype.hasOwnProperty,jk={current:null},oU={key:!0,ref:!0,__self:!0,__source:!0};function aU(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)rU.call(t,r)&&!oU.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,J=N[X];if(0>>1;Xo(Z,L))aeo(ne,Z)?(N[X]=ne,N[ae]=L,X=ae):(N[X]=Z,N[G]=L,X=G);else if(aeo(ne,L))N[X]=ne,N[ae]=L,X=ae;else break e}}return M}function o(N,M){var L=N.sortIndex-M.sortIndex;return L!==0?L:N.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var c=[],l=[],u=1,d=null,f=3,h=!1,m=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(N){for(var M=n(l);M!==null;){if(M.callback===null)r(l);else if(M.startTime<=N)r(l),M.sortIndex=M.expirationTime,t(c,M);else break;M=n(l)}}function _(N){if(p=!1,w(N),!m)if(n(c)!==null)m=!0,O(C);else{var M=n(l);M!==null&&I(_,M.startTime-N)}}function C(N,M){m=!1,p&&(p=!1,v(T),T=-1),h=!0;var L=f;try{for(w(M),d=n(c);d!==null&&(!(d.expirationTime>M)||N&&!R());){var X=d.callback;if(typeof X=="function"){d.callback=null,f=d.priorityLevel;var J=X(d.expirationTime<=M);M=e.unstable_now(),typeof J=="function"?d.callback=J:d===n(c)&&r(c),w(M)}else r(c);d=n(c)}if(d!==null)var U=!0;else{var G=n(l);G!==null&&I(_,G.startTime-M),U=!1}return U}finally{d=null,f=L,h=!1}}var x=!1,E=null,T=-1,k=5,D=-1;function R(){return!(e.unstable_now()-DN||125X?(N.sortIndex=L,t(l,N),n(c)===null&&N===n(l)&&(p?(v(T),T=-1):p=!0,I(_,L-X))):(N.sortIndex=J,t(c,N),m||h||(m=!0,O(C))),N},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(N){var M=f;return function(){var L=f;f=M;try{return N.apply(this,arguments)}finally{f=L}}}})(dU);uU.exports=dU;var Sne=uU.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Tne=S,Vo=Sne;function ue(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),FT=Object.prototype.hasOwnProperty,Ane=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w7={},E7={};function Dne(e){return FT.call(E7,e)?!0:FT.call(w7,e)?!1:Ane.test(e)?E7[e]=!0:(w7[e]=!0,!1)}function kne(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function jne(e,t,n,r){if(t===null||typeof t>"u"||kne(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function co(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yr[e]=new co(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yr[t]=new co(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yr[e]=new co(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yr[e]=new co(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yr[e]=new co(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yr[e]=new co(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yr[e]=new co(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yr[e]=new co(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yr[e]=new co(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ik=/[\-:]([a-z])/g;function Ok(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ik,Ok);yr[t]=new co(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ik,Ok);yr[t]=new co(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ik,Ok);yr[t]=new co(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yr[e]=new co(e,1,!1,e.toLowerCase(),null,!1,!1)});yr.xlinkHref=new co("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yr[e]=new co(e,1,!1,e.toLowerCase(),null,!0,!0)});function Rk(e,t,n,r){var o=yr.hasOwnProperty(t)?yr[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==a[s]){var c=` -`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{G6=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wp(e):""}function Pne(e){switch(e.tag){case 5:return Wp(e.type);case 16:return Wp("Lazy");case 13:return Wp("Suspense");case 19:return Wp("SuspenseList");case 0:case 2:case 15:return e=V6(e.type,!1),e;case 11:return e=V6(e.type.render,!1),e;case 1:return e=V6(e.type,!0),e;default:return""}}function $T(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bf:return"Fragment";case yf:return"Portal";case MT:return"Profiler";case Nk:return"StrictMode";case LT:return"Suspense";case UT:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mU:return(e.displayName||"Context")+".Consumer";case hU:return(e._context.displayName||"Context")+".Provider";case Bk:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fk:return t=e.displayName||null,t!==null?t:$T(e.type)||"Memo";case bc:t=e._payload,e=e._init;try{return $T(e(t))}catch{}}return null}function Ine(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $T(t);case 8:return t===Nk?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gU(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function One(e){var t=gU(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ob(e){e._valueTracker||(e._valueTracker=One(e))}function yU(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gU(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function U1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zT(e,t){var n=t.checked;return cn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function x7(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jc(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bU(e,t){t=t.checked,t!=null&&Rk(e,"checked",t,!1)}function HT(e,t){bU(e,t);var n=Jc(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?qT(e,t.type,n):t.hasOwnProperty("defaultValue")&&qT(e,t.type,Jc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function C7(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function qT(e,t,n){(t!=="number"||U1(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gp=Array.isArray;function zf(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Rb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function P0(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var s0={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Rne=["Webkit","ms","Moz","O"];Object.keys(s0).forEach(function(e){Rne.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),s0[t]=s0[e]})});function _U(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||s0.hasOwnProperty(e)&&s0[e]?(""+t).trim():t+"px"}function xU(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=_U(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Nne=cn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function VT(e,t){if(t){if(Nne[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ue(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ue(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ue(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ue(62))}}function KT(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var YT=null;function Mk(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var QT=null,Hf=null,qf=null;function A7(e){if(e=Ng(e)){if(typeof QT!="function")throw Error(ue(280));var t=e.stateNode;t&&(t=u_(t),QT(e.stateNode,e.type,t))}}function CU(e){Hf?qf?qf.push(e):qf=[e]:Hf=e}function SU(){if(Hf){var e=Hf,t=qf;if(qf=Hf=null,A7(e),t)for(e=0;e>>=0,e===0?32:31-(Gne(e)/Vne|0)|0}var Nb=64,Bb=4194304;function Vp(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function q1(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Vp(s):(a&=i,a!==0&&(r=Vp(a)))}else i=n&~o,i!==0?r=Vp(i):a!==0&&(r=Vp(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Og(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xa(t),e[t]=n}function Xne(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=l0),B7=" ",F7=!1;function WU(e,t){switch(e){case"keyup":return Sre.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GU(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vf=!1;function Are(e,t){switch(e){case"compositionend":return GU(t);case"keypress":return t.which!==32?null:(F7=!0,B7);case"textInput":return e=t.data,e===B7&&F7?null:e;default:return null}}function Dre(e,t){if(vf)return e==="compositionend"||!Gk&&WU(e,t)?(e=HU(),Xv=Hk=Oc=null,vf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$7(n)}}function QU(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?QU(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function XU(){for(var e=window,t=U1();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=U1(e.document)}return t}function Vk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Fre(e){var t=XU(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&QU(n.ownerDocument.documentElement,n)){if(r!==null&&Vk(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=z7(n,a);var i=z7(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,wf=null,nA=null,d0=null,rA=!1;function H7(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rA||wf==null||wf!==U1(r)||(r=wf,"selectionStart"in r&&Vk(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),d0&&F0(d0,r)||(d0=r,r=V1(nA,"onSelect"),0xf||(e.current=lA[xf],lA[xf]=null,xf--)}function Kt(e,t){xf++,lA[xf]=e.current,e.current=t}var Zc={},Fr=wl(Zc),yo=wl(!1),Ou=Zc;function lh(e,t){var n=e.type.contextTypes;if(!n)return Zc;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function bo(e){return e=e.childContextTypes,e!=null}function Y1(){Qt(yo),Qt(Fr)}function Q7(e,t,n){if(Fr.current!==Zc)throw Error(ue(168));Kt(Fr,t),Kt(yo,n)}function i$(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ue(108,Ine(e)||"Unknown",o));return cn({},n,r)}function Q1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zc,Ou=Fr.current,Kt(Fr,e),Kt(yo,yo.current),!0}function X7(e,t,n){var r=e.stateNode;if(!r)throw Error(ue(169));n?(e=i$(e,t,Ou),r.__reactInternalMemoizedMergedChildContext=e,Qt(yo),Qt(Fr),Kt(Fr,e)):Qt(yo),Kt(yo,n)}var ns=null,d_=!1,sS=!1;function s$(e){ns===null?ns=[e]:ns.push(e)}function Yre(e){d_=!0,s$(e)}function El(){if(!sS&&ns!==null){sS=!0;var e=0,t=Ot;try{var n=ns;for(Ot=1;e>=i,o-=i,os=1<<32-Xa(t)+o|n<T?(k=E,E=null):k=E.sibling;var D=f(v,E,w[T],_);if(D===null){E===null&&(E=k);break}e&&E&&D.alternate===null&&t(v,E),g=a(D,g,T),x===null?C=D:x.sibling=D,x=D,E=k}if(T===w.length)return n(v,E),Zt&&Zl(v,T),C;if(E===null){for(;TT?(k=E,E=null):k=E.sibling;var R=f(v,E,D.value,_);if(R===null){E===null&&(E=k);break}e&&E&&R.alternate===null&&t(v,E),g=a(R,g,T),x===null?C=R:x.sibling=R,x=R,E=k}if(D.done)return n(v,E),Zt&&Zl(v,T),C;if(E===null){for(;!D.done;T++,D=w.next())D=d(v,D.value,_),D!==null&&(g=a(D,g,T),x===null?C=D:x.sibling=D,x=D);return Zt&&Zl(v,T),C}for(E=r(v,E);!D.done;T++,D=w.next())D=h(E,v,T,D.value,_),D!==null&&(e&&D.alternate!==null&&E.delete(D.key===null?T:D.key),g=a(D,g,T),x===null?C=D:x.sibling=D,x=D);return e&&E.forEach(function(F){return t(v,F)}),Zt&&Zl(v,T),C}function b(v,g,w,_){if(typeof w=="object"&&w!==null&&w.type===bf&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ib:e:{for(var C=w.key,x=g;x!==null;){if(x.key===C){if(C=w.type,C===bf){if(x.tag===7){n(v,x.sibling),g=o(x,w.props.children),g.return=v,v=g;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===bc&&eI(C)===x.type){n(v,x.sibling),g=o(x,w.props),g.ref=ip(v,x,w),g.return=v,v=g;break e}n(v,x);break}else t(v,x);x=x.sibling}w.type===bf?(g=Cu(w.props.children,v.mode,_,w.key),g.return=v,v=g):(_=a1(w.type,w.key,w.props,null,v.mode,_),_.ref=ip(v,g,w),_.return=v,v=_)}return i(v);case yf:e:{for(x=w.key;g!==null;){if(g.key===x)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(v,g.sibling),g=o(g,w.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=pS(w,v.mode,_),g.return=v,v=g}return i(v);case bc:return x=w._init,b(v,g,x(w._payload),_)}if(Gp(w))return m(v,g,w,_);if(tp(w))return p(v,g,w,_);Hb(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(v,g.sibling),g=o(g,w),g.return=v,v=g):(n(v,g),g=mS(w,v.mode,_),g.return=v,v=g),i(v)):n(v,g)}return b}var dh=d$(!0),f$=d$(!1),Z1=wl(null),ew=null,Tf=null,Xk=null;function Jk(){Xk=Tf=ew=null}function Zk(e){var t=Z1.current;Qt(Z1),e._currentValue=t}function fA(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Gf(e,t){ew=e,Xk=Tf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(po=!0),e.firstContext=null)}function va(e){var t=e._currentValue;if(Xk!==e)if(e={context:e,memoizedValue:t,next:null},Tf===null){if(ew===null)throw Error(ue(308));Tf=e,ew.dependencies={lanes:0,firstContext:e}}else Tf=Tf.next=e;return t}var fu=null;function e8(e){fu===null?fu=[e]:fu.push(e)}function h$(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,e8(t)):(n.next=o.next,o.next=n),t.interleaved=n,ws(e,r)}function ws(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var vc=!1;function t8(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function m$(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ss(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $c(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Et&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ws(e,n)}return o=r.interleaved,o===null?(t.next=t,e8(r)):(t.next=o.next,o.next=t),r.interleaved=t,ws(e,n)}function Zv(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uk(e,n)}}function tI(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tw(e,t,n,r){var o=e.updateQueue;vc=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,l=c.next;c.next=null,i===null?a=l:i.next=l,i=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==i&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=o.baseState;i=0,u=l=c=null,s=a;do{var f=s.lane,h=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,p=s;switch(f=t,h=n,p.tag){case 1:if(m=p.payload,typeof m=="function"){d=m.call(h,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=p.payload,f=typeof m=="function"?m.call(h,d,f):m,f==null)break e;d=cn({},d,f);break e;case 2:vc=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=h,c=d):u=u.next=h,i|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(c=d),o.baseState=c,o.firstBaseUpdate=l,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);Bu|=i,e.lanes=i,e.memoizedState=d}}function nI(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=lS.transition;lS.transition={};try{e(!1),t()}finally{Ot=n,lS.transition=r}}function P$(){return wa().memoizedState}function Zre(e,t,n){var r=Hc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},I$(e))O$(t,n);else if(n=h$(e,t,n,r),n!==null){var o=Qr();Ja(n,e,r,o),R$(n,t,r)}}function eoe(e,t,n){var r=Hc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(I$(e))O$(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,ri(s,i)){var c=t.interleaved;c===null?(o.next=o,e8(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=h$(e,t,o,r),n!==null&&(o=Qr(),Ja(n,e,r,o),R$(n,t,r))}}function I$(e){var t=e.alternate;return e===sn||t!==null&&t===sn}function O$(e,t){f0=rw=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function R$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uk(e,n)}}var ow={readContext:va,useCallback:Sr,useContext:Sr,useEffect:Sr,useImperativeHandle:Sr,useInsertionEffect:Sr,useLayoutEffect:Sr,useMemo:Sr,useReducer:Sr,useRef:Sr,useState:Sr,useDebugValue:Sr,useDeferredValue:Sr,useTransition:Sr,useMutableSource:Sr,useSyncExternalStore:Sr,useId:Sr,unstable_isNewReconciler:!1},toe={readContext:va,useCallback:function(e,t){return wi().memoizedState=[e,t===void 0?null:t],e},useContext:va,useEffect:oI,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,t1(4194308,4,T$.bind(null,t,e),n)},useLayoutEffect:function(e,t){return t1(4194308,4,e,t)},useInsertionEffect:function(e,t){return t1(4,2,e,t)},useMemo:function(e,t){var n=wi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Zre.bind(null,sn,e),[r.memoizedState,e]},useRef:function(e){var t=wi();return e={current:e},t.memoizedState=e},useState:rI,useDebugValue:l8,useDeferredValue:function(e){return wi().memoizedState=e},useTransition:function(){var e=rI(!1),t=e[0];return e=Jre.bind(null,e[1]),wi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sn,o=wi();if(Zt){if(n===void 0)throw Error(ue(407));n=n()}else{if(n=t(),tr===null)throw Error(ue(349));Nu&30||b$(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,oI(w$.bind(null,r,a,e),[e]),r.flags|=2048,W0(9,v$.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=wi(),t=tr.identifierPrefix;if(Zt){var n=as,r=os;n=(r&~(1<<32-Xa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=H0++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[xi]=t,e[U0]=r,q$(e,t,!1,!1),t.stateNode=e;e:{switch(i=KT(n,r),n){case"dialog":Yt("cancel",e),Yt("close",e),o=r;break;case"iframe":case"object":case"embed":Yt("load",e),o=r;break;case"video":case"audio":for(o=0;omh&&(t.flags|=128,r=!0,sp(a,!1),t.lanes=4194304)}else{if(!r)if(e=nw(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sp(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Zt)return Tr(t),null}else 2*En()-a.renderingStartTime>mh&&n!==1073741824&&(t.flags|=128,r=!0,sp(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=En(),t.sibling=null,n=rn.current,Kt(rn,r?n&1|2:n&1),t):(Tr(t),null);case 22:case 23:return p8(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Oo&1073741824&&(Tr(t),t.subtreeFlags&6&&(t.flags|=8192)):Tr(t),null;case 24:return null;case 25:return null}throw Error(ue(156,t.tag))}function loe(e,t){switch(Yk(t),t.tag){case 1:return bo(t.type)&&Y1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fh(),Qt(yo),Qt(Fr),o8(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return r8(t),null;case 13:if(Qt(rn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ue(340));uh()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qt(rn),null;case 4:return fh(),null;case 10:return Zk(t.type._context),null;case 22:case 23:return p8(),null;case 24:return null;default:return null}}var Wb=!1,kr=!1,uoe=typeof WeakSet=="function"?WeakSet:Set,xe=null;function Af(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fn(e,t,r)}else n.current=null}function EA(e,t,n){try{n()}catch(r){fn(e,t,r)}}var pI=!1;function doe(e,t){if(oA=W1,e=XU(),Vk(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,c=-1,l=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(s=i+o),d!==a||r!==0&&d.nodeType!==3||(c=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++l===o&&(s=i),f===a&&++u===r&&(c=i),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(aA={focusedElem:e,selectionRange:n},W1=!1,xe=t;xe!==null;)if(t=xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xe=e;else for(;xe!==null;){t=xe;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var p=m.memoizedProps,b=m.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?p:Ua(t.type,p),b);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(_){fn(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,xe=e;break}xe=t.return}return m=pI,pI=!1,m}function h0(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&EA(t,n,a)}o=o.next}while(o!==r)}}function m_(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _A(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function V$(e){var t=e.alternate;t!==null&&(e.alternate=null,V$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xi],delete t[U0],delete t[cA],delete t[Vre],delete t[Kre])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function K$(e){return e.tag===5||e.tag===3||e.tag===4}function gI(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||K$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xA(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=K1));else if(r!==4&&(e=e.child,e!==null))for(xA(e,t,n),e=e.sibling;e!==null;)xA(e,t,n),e=e.sibling}function CA(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(CA(e,t,n),e=e.sibling;e!==null;)CA(e,t,n),e=e.sibling}var sr=null,$a=!1;function ac(e,t,n){for(n=n.child;n!==null;)Y$(e,t,n),n=n.sibling}function Y$(e,t,n){if(Ii&&typeof Ii.onCommitFiberUnmount=="function")try{Ii.onCommitFiberUnmount(i_,n)}catch{}switch(n.tag){case 5:kr||Af(n,t);case 6:var r=sr,o=$a;sr=null,ac(e,t,n),sr=r,$a=o,sr!==null&&($a?(e=sr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):sr.removeChild(n.stateNode));break;case 18:sr!==null&&($a?(e=sr,n=n.stateNode,e.nodeType===8?iS(e.parentNode,n):e.nodeType===1&&iS(e,n),N0(e)):iS(sr,n.stateNode));break;case 4:r=sr,o=$a,sr=n.stateNode.containerInfo,$a=!0,ac(e,t,n),sr=r,$a=o;break;case 0:case 11:case 14:case 15:if(!kr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&EA(n,t,i),o=o.next}while(o!==r)}ac(e,t,n);break;case 1:if(!kr&&(Af(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fn(n,t,s)}ac(e,t,n);break;case 21:ac(e,t,n);break;case 22:n.mode&1?(kr=(r=kr)||n.memoizedState!==null,ac(e,t,n),kr=r):ac(e,t,n);break;default:ac(e,t,n)}}function yI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new uoe),t.forEach(function(r){var o=woe.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Oa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=En()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hoe(r/1960))-r,10e?16:e,Rc===null)var r=!1;else{if(e=Rc,Rc=null,sw=0,Et&6)throw Error(ue(331));var o=Et;for(Et|=4,xe=e.current;xe!==null;){var a=xe,i=a.child;if(xe.flags&16){var s=a.deletions;if(s!==null){for(var c=0;cEn()-h8?xu(e,0):f8|=n),vo(e,t)}function rz(e,t){t===0&&(e.mode&1?(t=Bb,Bb<<=1,!(Bb&130023424)&&(Bb=4194304)):t=1);var n=Qr();e=ws(e,t),e!==null&&(Og(e,t,n),vo(e,n))}function voe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rz(e,n)}function woe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(t),rz(e,n)}var oz;oz=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yo.current)po=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return po=!1,soe(e,t,n);po=!!(e.flags&131072)}else po=!1,Zt&&t.flags&1048576&&c$(t,J1,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;n1(e,t),e=t.pendingProps;var o=lh(t,Fr.current);Gf(t,n),o=i8(null,t,r,e,o,n);var a=s8();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bo(r)?(a=!0,Q1(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,t8(t),o.updater=h_,t.stateNode=o,o._reactInternals=t,mA(t,r,e,n),t=yA(null,t,r,!0,a,n)):(t.tag=0,Zt&&a&&Kk(t),Gr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(n1(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=_oe(r),e=Ua(r,e),o){case 0:t=gA(null,t,r,e,n);break e;case 1:t=fI(null,t,r,e,n);break e;case 11:t=uI(null,t,r,e,n);break e;case 14:t=dI(null,t,r,Ua(r.type,e),n);break e}throw Error(ue(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ua(r,o),gA(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ua(r,o),fI(e,t,r,o,n);case 3:e:{if($$(t),e===null)throw Error(ue(387));r=t.pendingProps,a=t.memoizedState,o=a.element,m$(e,t),tw(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=hh(Error(ue(423)),t),t=hI(e,t,r,n,o);break e}else if(r!==o){o=hh(Error(ue(424)),t),t=hI(e,t,r,n,o);break e}else for($o=Uc(t.stateNode.containerInfo.firstChild),Ho=t,Zt=!0,Ha=null,n=f$(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uh(),r===o){t=Es(e,t,n);break e}Gr(e,t,r,n)}t=t.child}return t;case 5:return p$(t),e===null&&dA(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,iA(r,o)?i=null:a!==null&&iA(r,a)&&(t.flags|=32),U$(e,t),Gr(e,t,i,n),t.child;case 6:return e===null&&dA(t),null;case 13:return z$(e,t,n);case 4:return n8(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dh(t,null,r,n):Gr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ua(r,o),uI(e,t,r,o,n);case 7:return Gr(e,t,t.pendingProps,n),t.child;case 8:return Gr(e,t,t.pendingProps.children,n),t.child;case 12:return Gr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Kt(Z1,r._currentValue),r._currentValue=i,a!==null)if(ri(a.value,i)){if(a.children===o.children&&!yo.current){t=Es(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=ss(-1,n&-n),c.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),fA(a.return,n,t),s.lanes|=n;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(ue(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),fA(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Gr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Gf(t,n),o=va(o),r=r(o),t.flags|=1,Gr(e,t,r,n),t.child;case 14:return r=t.type,o=Ua(r,t.pendingProps),o=Ua(r.type,o),dI(e,t,r,o,n);case 15:return M$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ua(r,o),n1(e,t),t.tag=1,bo(r)?(e=!0,Q1(t)):e=!1,Gf(t,n),N$(t,r,o),mA(t,r,o,n),yA(null,t,r,!0,e,n);case 19:return H$(e,t,n);case 22:return L$(e,t,n)}throw Error(ue(156,t.tag))};function az(e,t){return IU(e,t)}function Eoe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ma(e,t,n,r){return new Eoe(e,t,n,r)}function y8(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _oe(e){if(typeof e=="function")return y8(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bk)return 11;if(e===Fk)return 14}return 2}function qc(e,t){var n=e.alternate;return n===null?(n=ma(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function a1(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")y8(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case bf:return Cu(n.children,o,a,t);case Nk:i=8,o|=8;break;case MT:return e=ma(12,n,t,o|2),e.elementType=MT,e.lanes=a,e;case LT:return e=ma(13,n,t,o),e.elementType=LT,e.lanes=a,e;case UT:return e=ma(19,n,t,o),e.elementType=UT,e.lanes=a,e;case pU:return g_(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hU:i=10;break e;case mU:i=9;break e;case Bk:i=11;break e;case Fk:i=14;break e;case bc:i=16,r=null;break e}throw Error(ue(130,e==null?e:typeof e,""))}return t=ma(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Cu(e,t,n,r){return e=ma(7,e,r,t),e.lanes=n,e}function g_(e,t,n,r){return e=ma(22,e,r,t),e.elementType=pU,e.lanes=n,e.stateNode={isHidden:!1},e}function mS(e,t,n){return e=ma(6,e,null,t),e.lanes=n,e}function pS(e,t,n){return t=ma(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xoe(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Y6(0),this.expirationTimes=Y6(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Y6(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function b8(e,t,n,r,o,a,i,s,c){return e=new xoe(e,t,n,s,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ma(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},t8(a),e}function Coe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lz)}catch(e){console.error(e)}}lz(),lU.exports=Qo;var Fs=lU.exports;const Yp=cd(Fs),koe=Ak({__proto__:null,default:Yp},[Fs]);var uz,SI=Fs;uz=BT.createRoot=SI.createRoot,BT.hydrateRoot=SI.hydrateRoot;/** - * @remix-run/router v1.18.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Mu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Poe(){return Math.random().toString(36).substr(2,8)}function AI(e,t){return{usr:e.state,key:e.key,idx:t}}function V0(e,t,n,r){return n===void 0&&(n=null),nn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ms(t):t,{state:n,key:t&&t.key||r||Poe()})}function Lu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ms(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ioe(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s=Tn.Pop,c=null,l=u();l==null&&(l=0,i.replaceState(nn({},i.state,{idx:l}),""));function u(){return(i.state||{idx:null}).idx}function d(){s=Tn.Pop;let b=u(),v=b==null?null:b-l;l=b,c&&c({action:s,location:p.location,delta:v})}function f(b,v){s=Tn.Push;let g=V0(p.location,b,v);n&&n(g,b),l=u()+1;let w=AI(g,l),_=p.createHref(g);try{i.pushState(w,"",_)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(_)}a&&c&&c({action:s,location:p.location,delta:1})}function h(b,v){s=Tn.Replace;let g=V0(p.location,b,v);n&&n(g,b),l=u();let w=AI(g,l),_=p.createHref(g);i.replaceState(w,"",_),a&&c&&c({action:s,location:p.location,delta:0})}function m(b){let v=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof b=="string"?b:Lu(b);return g=g.replace(/ $/,"%20"),lt(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let p={get action(){return s},get location(){return e(o,i)},listen(b){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(TI,d),c=b,()=>{o.removeEventListener(TI,d),c=null}},createHref(b){return t(o,b)},createURL:m,encodeLocation(b){let v=m(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(b){return i.go(b)}};return p}var Vt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Vt||(Vt={}));const Ooe=new Set(["lazy","caseSensitive","path","id","index","children"]);function Roe(e){return e.index===!0}function K0(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,a)=>{let i=[...n,String(a)],s=typeof o.id=="string"?o.id:i.join("-");if(lt(o.index!==!0||!o.children,"Cannot specify children on an index route"),lt(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Roe(o)){let c=nn({},o,t(o),{id:s});return r[s]=c,c}else{let c=nn({},o,t(o),{id:s,children:void 0});return r[s]=c,o.children&&(c.children=K0(o.children,t,i,r)),c}})}function iu(e,t,n){return n===void 0&&(n="/"),i1(e,t,n,!1)}function i1(e,t,n,r){let o=typeof t=="string"?Ms(t):t,a=Xh(o.pathname||"/",n);if(a==null)return null;let i=dz(e);Boe(i);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(lt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let l=cs([r,c.relativePath]),u=n.concat(c);a.children&&a.children.length>0&&(lt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),dz(a.children,t,u,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:Hoe(l,a.index),routesMeta:u})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let c of fz(a.path))o(a,i,c)}),t}function fz(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=fz(r.join("/")),s=[];return s.push(...i.map(c=>c===""?a:[a,c].join("/"))),o&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function Boe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:qoe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Foe=/^:[\w-]+$/,Moe=3,Loe=2,Uoe=1,$oe=10,zoe=-2,DI=e=>e==="*";function Hoe(e,t){let n=e.split("/"),r=n.length;return n.some(DI)&&(r+=zoe),t&&(r+=Loe),n.filter(o=>!DI(o)).reduce((o,a)=>o+(Foe.test(a)?Moe:a===""?Uoe:$oe),r)}function qoe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Woe(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s{let{paramName:f,isOptional:h}=u;if(f==="*"){let p=s[d]||"";i=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?l[f]=void 0:l[f]=(m||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:i,pattern:e}}function Goe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Mu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Voe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Xh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Koe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ms(e):e;return{pathname:n?n.startsWith("/")?n:Yoe(n,t):t,search:Xoe(r),hash:Joe(o)}}function Yoe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function gS(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function hz(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _8(e,t){let n=hz(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function x8(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ms(e):(o=nn({},e),lt(!o.pathname||!o.pathname.includes("?"),gS("?","pathname","search",o)),lt(!o.pathname||!o.pathname.includes("#"),gS("#","pathname","hash",o)),lt(!o.search||!o.search.includes("#"),gS("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let c=Koe(o,s),l=i&&i!=="/"&&i.endsWith("/"),u=(a||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}const cs=e=>e.join("/").replace(/\/\/+/g,"/"),Qoe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Xoe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Joe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class C8{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function E_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mz=["post","put","patch","delete"],Zoe=new Set(mz),eae=["get",...mz],tae=new Set(eae),nae=new Set([301,302,303,307,308]),rae=new Set([307,308]),yS={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oae={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},lp={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},S8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,aae=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),pz="remix-router-transitions";function iae(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;lt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let H=e.detectErrorBoundary;o=V=>({hasErrorBoundary:H(V)})}else o=aae;let a={},i=K0(e.routes,o,void 0,a),s,c=e.basename||"/",l=e.unstable_dataStrategy||dae,u=e.unstable_patchRoutesOnMiss,d=nn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,h=new Set,m=null,p=null,b=null,v=e.hydrationData!=null,g=iu(i,e.history.location,c),w=null;if(g==null&&!u){let H=Wr(404,{pathname:e.history.location.pathname}),{matches:V,route:oe}=LI(i);g=V,w={[oe.id]:H}}g&&u&&!e.hydrationData&&Hl(g,i,e.history.location.pathname).active&&(g=null);let _;if(!g)_=!1,g=[];else if(g.some(H=>H.route.lazy))_=!1;else if(!g.some(H=>H.route.loader))_=!0;else if(d.v7_partialHydration){let H=e.hydrationData?e.hydrationData.loaderData:null,V=e.hydrationData?e.hydrationData.errors:null,oe=se=>se.route.loader?typeof se.route.loader=="function"&&se.route.loader.hydrate===!0?!1:H&&H[se.route.id]!==void 0||V&&V[se.route.id]!==void 0:!0;if(V){let se=g.findIndex(we=>V[we.route.id]!==void 0);_=g.slice(0,se+1).every(oe)}else _=g.every(oe)}else _=e.hydrationData!=null;let C,x={historyAction:e.history.action,location:e.history.location,matches:g,initialized:_,navigation:yS,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||w,fetchers:new Map,blockers:new Map},E=Tn.Pop,T=!1,k,D=!1,R=new Map,F=null,B=!1,j=!1,P=[],O=[],I=new Map,N=0,M=-1,L=new Map,X=new Set,J=new Map,U=new Map,G=new Set,Z=new Map,ae=new Map,ne=new Map,ie=!1;function te(){if(f=e.history.listen(H=>{let{action:V,location:oe,delta:se}=H;if(ie){ie=!1;return}Mu(ae.size===0||se!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let we=fi({currentLocation:x.location,nextLocation:oe,historyAction:V});if(we&&se!=null){ie=!0,e.history.go(se*-1),Zs(we,{state:"blocked",location:oe,proceed(){Zs(we,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(se)},reset(){let je=new Map(x.blockers);je.set(we,lp),z({blockers:je})}});return}return ke(V,oe)}),n){Cae(t,R);let H=()=>Sae(t,R);t.addEventListener("pagehide",H),F=()=>t.removeEventListener("pagehide",H)}return x.initialized||ke(Tn.Pop,x.location,{initialHydration:!0}),C}function ee(){f&&f(),F&&F(),h.clear(),k&&k.abort(),x.fetchers.forEach((H,V)=>Oe(V)),x.blockers.forEach((H,V)=>$d(V))}function re(H){return h.add(H),()=>h.delete(H)}function z(H,V){V===void 0&&(V={}),x=nn({},x,H);let oe=[],se=[];d.v7_fetcherPersist&&x.fetchers.forEach((we,je)=>{we.state==="idle"&&(G.has(je)?se.push(je):oe.push(je))}),[...h].forEach(we=>we(x,{deletedFetchers:se,unstable_viewTransitionOpts:V.viewTransitionOpts,unstable_flushSync:V.flushSync===!0})),d.v7_fetcherPersist&&(oe.forEach(we=>x.fetchers.delete(we)),se.forEach(we=>Oe(we)))}function fe(H,V,oe){var se,we;let{flushSync:je}=oe===void 0?{}:oe,ze=x.actionData!=null&&x.navigation.formMethod!=null&&za(x.navigation.formMethod)&&x.navigation.state==="loading"&&((se=H.state)==null?void 0:se._isRedirect)!==!0,be;V.actionData?Object.keys(V.actionData).length>0?be=V.actionData:be=null:ze?be=x.actionData:be=null;let Ze=V.loaderData?FI(x.loaderData,V.loaderData,V.matches||[],V.errors):x.loaderData,Re=x.blockers;Re.size>0&&(Re=new Map(Re),Re.forEach((Tt,Pt)=>Re.set(Pt,lp)));let Le=T===!0||x.navigation.formMethod!=null&&za(x.navigation.formMethod)&&((we=H.state)==null?void 0:we._isRedirect)!==!0;s&&(i=s,s=void 0),B||E===Tn.Pop||(E===Tn.Push?e.history.push(H,H.state):E===Tn.Replace&&e.history.replace(H,H.state));let Dt;if(E===Tn.Pop){let Tt=R.get(x.location.pathname);Tt&&Tt.has(H.pathname)?Dt={currentLocation:x.location,nextLocation:H}:R.has(H.pathname)&&(Dt={currentLocation:H,nextLocation:x.location})}else if(D){let Tt=R.get(x.location.pathname);Tt?Tt.add(H.pathname):(Tt=new Set([H.pathname]),R.set(x.location.pathname,Tt)),Dt={currentLocation:x.location,nextLocation:H}}z(nn({},V,{actionData:be,loaderData:Ze,historyAction:E,location:H,initialized:!0,navigation:yS,revalidation:"idle",restoreScrollPosition:zd(H,V.matches||x.matches),preventScrollReset:Le,blockers:Re}),{viewTransitionOpts:Dt,flushSync:je===!0}),E=Tn.Pop,T=!1,D=!1,B=!1,j=!1,P=[],O=[]}async function ve(H,V){if(typeof H=="number"){e.history.go(H);return}let oe=kA(x.location,x.matches,c,d.v7_prependBasename,H,d.v7_relativeSplatPath,V==null?void 0:V.fromRouteId,V==null?void 0:V.relative),{path:se,submission:we,error:je}=jI(d.v7_normalizeFormMethod,!1,oe,V),ze=x.location,be=V0(x.location,se,V&&V.state);be=nn({},be,e.history.encodeLocation(be));let Ze=V&&V.replace!=null?V.replace:void 0,Re=Tn.Push;Ze===!0?Re=Tn.Replace:Ze===!1||we!=null&&za(we.formMethod)&&we.formAction===x.location.pathname+x.location.search&&(Re=Tn.Replace);let Le=V&&"preventScrollReset"in V?V.preventScrollReset===!0:void 0,Dt=(V&&V.unstable_flushSync)===!0,Tt=fi({currentLocation:ze,nextLocation:be,historyAction:Re});if(Tt){Zs(Tt,{state:"blocked",location:be,proceed(){Zs(Tt,{state:"proceeding",proceed:void 0,reset:void 0,location:be}),ve(H,V)},reset(){let Pt=new Map(x.blockers);Pt.set(Tt,lp),z({blockers:Pt})}});return}return await ke(Re,be,{submission:we,pendingError:je,preventScrollReset:Le,replace:V&&V.replace,enableViewTransition:V&&V.unstable_viewTransition,flushSync:Dt})}function Ue(){if(pe(),z({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){ke(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}ke(E||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation})}}async function ke(H,V,oe){k&&k.abort(),k=null,E=H,B=(oe&&oe.startUninterruptedRevalidation)===!0,Zm(x.location,x.matches),T=(oe&&oe.preventScrollReset)===!0,D=(oe&&oe.enableViewTransition)===!0;let se=s||i,we=oe&&oe.overrideNavigation,je=iu(se,V,c),ze=(oe&&oe.flushSync)===!0,be=Hl(je,se,V.pathname);if(be.active&&be.matches&&(je=be.matches),!je){let{error:Ct,notFoundMatches:Nn,route:ln}=Ia(V.pathname);fe(V,{matches:Nn,loaderData:{},errors:{[ln.id]:Ct}},{flushSync:ze});return}if(x.initialized&&!j&&yae(x.location,V)&&!(oe&&oe.submission&&za(oe.submission.formMethod))){fe(V,{matches:je},{flushSync:ze});return}k=new AbortController;let Ze=Vd(e.history,V,k.signal,oe&&oe.submission),Re;if(oe&&oe.pendingError)Re=[kf(je).route.id,{type:Vt.error,error:oe.pendingError}];else if(oe&&oe.submission&&za(oe.submission.formMethod)){let Ct=await Qe(Ze,V,oe.submission,je,be.active,{replace:oe.replace,flushSync:ze});if(Ct.shortCircuited)return;if(Ct.pendingActionResult){let[Nn,ln]=Ct.pendingActionResult;if(Ro(ln)&&E_(ln.error)&&ln.error.status===404){k=null,fe(V,{matches:Ct.matches,loaderData:{},errors:{[Nn]:ln.error}});return}}je=Ct.matches||je,Re=Ct.pendingActionResult,we=bS(V,oe.submission),ze=!1,be.active=!1,Ze=Vd(e.history,Ze.url,Ze.signal)}let{shortCircuited:Le,matches:Dt,loaderData:Tt,errors:Pt}=await Te(Ze,V,je,be.active,we,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,oe&&oe.initialHydration===!0,ze,Re);Le||(k=null,fe(V,nn({matches:Dt||je},MI(Re),{loaderData:Tt,errors:Pt})))}async function Qe(H,V,oe,se,we,je){je===void 0&&(je={}),pe();let ze=_ae(V,oe);if(z({navigation:ze},{flushSync:je.flushSync===!0}),we){let Re=await nc(se,V.pathname,H.signal);if(Re.type==="aborted")return{shortCircuited:!0};if(Re.type==="error"){let{boundaryId:Le,error:Dt}=ta(V.pathname,Re);return{matches:Re.partialMatches,pendingActionResult:[Le,{type:Vt.error,error:Dt}]}}else if(Re.matches)se=Re.matches;else{let{notFoundMatches:Le,error:Dt,route:Tt}=Ia(V.pathname);return{matches:Le,pendingActionResult:[Tt.id,{type:Vt.error,error:Dt}]}}}let be,Ze=Qp(se,V);if(!Ze.route.action&&!Ze.route.lazy)be={type:Vt.error,error:Wr(405,{method:H.method,pathname:V.pathname,routeId:Ze.route.id})};else if(be=(await Q("action",H,[Ze],se))[0],H.signal.aborted)return{shortCircuited:!0};if(pu(be)){let Re;return je&&je.replace!=null?Re=je.replace:Re=RI(be.response.headers.get("Location"),new URL(H.url),c)===x.location.pathname+x.location.search,await W(H,be,{submission:oe,replace:Re}),{shortCircuited:!0}}if(mu(be))throw Wr(400,{type:"defer-action"});if(Ro(be)){let Re=kf(se,Ze.route.id);return(je&&je.replace)!==!0&&(E=Tn.Push),{matches:se,pendingActionResult:[Re.route.id,be]}}return{matches:se,pendingActionResult:[Ze.route.id,be]}}async function Te(H,V,oe,se,we,je,ze,be,Ze,Re,Le){let Dt=we||bS(V,je),Tt=je||ze||zI(Dt),Pt=!B&&(!d.v7_partialHydration||!Ze);if(se){if(Pt){let Ut=Ee(Le);z(nn({navigation:Dt},Ut!==void 0?{actionData:Ut}:{}),{flushSync:Re})}let tt=await nc(oe,V.pathname,H.signal);if(tt.type==="aborted")return{shortCircuited:!0};if(tt.type==="error"){let{boundaryId:Ut,error:$r}=ta(V.pathname,tt);return{matches:tt.partialMatches,loaderData:{},errors:{[Ut]:$r}}}else if(tt.matches)oe=tt.matches;else{let{error:Ut,notFoundMatches:$r,route:$t}=Ia(V.pathname);return{matches:$r,loaderData:{},errors:{[$t.id]:Ut}}}}let Ct=s||i,[Nn,ln]=PI(e.history,x,oe,Tt,V,d.v7_partialHydration&&Ze===!0,d.v7_skipActionErrorRevalidation,j,P,O,G,J,X,Ct,c,Le);if(na(tt=>!(oe&&oe.some(Ut=>Ut.route.id===tt))||Nn&&Nn.some(Ut=>Ut.route.id===tt)),M=++N,Nn.length===0&&ln.length===0){let tt=Lt();return fe(V,nn({matches:oe,loaderData:{},errors:Le&&Ro(Le[1])?{[Le[0]]:Le[1].error}:null},MI(Le),tt?{fetchers:new Map(x.fetchers)}:{}),{flushSync:Re}),{shortCircuited:!0}}if(Pt){let tt={};if(!se){tt.navigation=Dt;let Ut=Ee(Le);Ut!==void 0&&(tt.actionData=Ut)}ln.length>0&&(tt.fetchers=he(ln)),z(tt,{flushSync:Re})}ln.forEach(tt=>{I.has(tt.key)&&at(tt.key),tt.controller&&I.set(tt.key,tt.controller)});let ql=()=>ln.forEach(tt=>at(tt.key));k&&k.signal.addEventListener("abort",ql);let{loaderResults:hi,fetcherResults:mi}=await ce(x.matches,oe,Nn,ln,H);if(H.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",ql),ln.forEach(tt=>I.delete(tt.key));let rc=UI([...hi,...mi]);if(rc){if(rc.idx>=Nn.length){let tt=ln[rc.idx-Nn.length].key;X.add(tt)}return await W(H,rc.result,{replace:be}),{shortCircuited:!0}}let{loaderData:oc,errors:ra}=BI(x,oe,Nn,hi,Le,ln,mi,Z);Z.forEach((tt,Ut)=>{tt.subscribe($r=>{($r||tt.done)&&Z.delete(Ut)})}),d.v7_partialHydration&&Ze&&x.errors&&Object.entries(x.errors).filter(tt=>{let[Ut]=tt;return!Nn.some($r=>$r.route.id===Ut)}).forEach(tt=>{let[Ut,$r]=tt;ra=Object.assign(ra||{},{[Ut]:$r})});let Hd=Lt(),qd=Js(M),Wd=Hd||qd||ln.length>0;return nn({matches:oe,loaderData:oc,errors:ra},Wd?{fetchers:new Map(x.fetchers)}:{})}function Ee(H){if(H&&!Ro(H[1]))return{[H[0]]:H[1].data};if(x.actionData)return Object.keys(x.actionData).length===0?null:x.actionData}function he(H){return H.forEach(V=>{let oe=x.fetchers.get(V.key),se=up(void 0,oe?oe.data:void 0);x.fetchers.set(V.key,se)}),new Map(x.fetchers)}function Me(H,V,oe,se){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");I.has(H)&&at(H);let we=(se&&se.unstable_flushSync)===!0,je=s||i,ze=kA(x.location,x.matches,c,d.v7_prependBasename,oe,d.v7_relativeSplatPath,V,se==null?void 0:se.relative),be=iu(je,ze,c),Ze=Hl(be,je,ze);if(Ze.active&&Ze.matches&&(be=Ze.matches),!be){Ie(H,V,Wr(404,{pathname:ze}),{flushSync:we});return}let{path:Re,submission:Le,error:Dt}=jI(d.v7_normalizeFormMethod,!0,ze,se);if(Dt){Ie(H,V,Dt,{flushSync:we});return}let Tt=Qp(be,Re);if(T=(se&&se.preventScrollReset)===!0,Le&&za(Le.formMethod)){ge(H,V,Re,Tt,be,Ze.active,we,Le);return}J.set(H,{routeId:V,path:Re}),Y(H,V,Re,Tt,be,Ze.active,we,Le)}async function ge(H,V,oe,se,we,je,ze,be){pe(),J.delete(H);function Ze($t){if(!$t.route.action&&!$t.route.lazy){let Do=Wr(405,{method:be.formMethod,pathname:oe,routeId:V});return Ie(H,V,Do,{flushSync:ze}),!0}return!1}if(!je&&Ze(se))return;let Re=x.fetchers.get(H);De(H,xae(be,Re),{flushSync:ze});let Le=new AbortController,Dt=Vd(e.history,oe,Le.signal,be);if(je){let $t=await nc(we,oe,Dt.signal);if($t.type==="aborted")return;if($t.type==="error"){let{error:Do}=ta(oe,$t);Ie(H,V,Do,{flushSync:ze});return}else if($t.matches){if(we=$t.matches,se=Qp(we,oe),Ze(se))return}else{Ie(H,V,Wr(404,{pathname:oe}),{flushSync:ze});return}}I.set(H,Le);let Tt=N,Ct=(await Q("action",Dt,[se],we))[0];if(Dt.signal.aborted){I.get(H)===Le&&I.delete(H);return}if(d.v7_fetcherPersist&&G.has(H)){if(pu(Ct)||Ro(Ct)){De(H,pc(void 0));return}}else{if(pu(Ct))if(I.delete(H),M>Tt){De(H,pc(void 0));return}else return X.add(H),De(H,up(be)),W(Dt,Ct,{fetcherSubmission:be});if(Ro(Ct)){Ie(H,V,Ct.error);return}}if(mu(Ct))throw Wr(400,{type:"defer-action"});let Nn=x.navigation.location||x.location,ln=Vd(e.history,Nn,Le.signal),ql=s||i,hi=x.navigation.state!=="idle"?iu(ql,x.navigation.location,c):x.matches;lt(hi,"Didn't find any matches after fetcher action");let mi=++N;L.set(H,mi);let rc=up(be,Ct.data);x.fetchers.set(H,rc);let[oc,ra]=PI(e.history,x,hi,be,Nn,!1,d.v7_skipActionErrorRevalidation,j,P,O,G,J,X,ql,c,[se.route.id,Ct]);ra.filter($t=>$t.key!==H).forEach($t=>{let Do=$t.key,g7=x.fetchers.get(Do),ene=up(void 0,g7?g7.data:void 0);x.fetchers.set(Do,ene),I.has(Do)&&at(Do),$t.controller&&I.set(Do,$t.controller)}),z({fetchers:new Map(x.fetchers)});let Hd=()=>ra.forEach($t=>at($t.key));Le.signal.addEventListener("abort",Hd);let{loaderResults:qd,fetcherResults:Wd}=await ce(x.matches,hi,oc,ra,ln);if(Le.signal.aborted)return;Le.signal.removeEventListener("abort",Hd),L.delete(H),I.delete(H),ra.forEach($t=>I.delete($t.key));let tt=UI([...qd,...Wd]);if(tt){if(tt.idx>=oc.length){let $t=ra[tt.idx-oc.length].key;X.add($t)}return W(ln,tt.result)}let{loaderData:Ut,errors:$r}=BI(x,x.matches,oc,qd,void 0,ra,Wd,Z);if(x.fetchers.has(H)){let $t=pc(Ct.data);x.fetchers.set(H,$t)}Js(mi),x.navigation.state==="loading"&&mi>M?(lt(E,"Expected pending action"),k&&k.abort(),fe(x.navigation.location,{matches:hi,loaderData:Ut,errors:$r,fetchers:new Map(x.fetchers)})):(z({errors:$r,loaderData:FI(x.loaderData,Ut,hi,$r),fetchers:new Map(x.fetchers)}),j=!1)}async function Y(H,V,oe,se,we,je,ze,be){let Ze=x.fetchers.get(H);De(H,up(be,Ze?Ze.data:void 0),{flushSync:ze});let Re=new AbortController,Le=Vd(e.history,oe,Re.signal);if(je){let Ct=await nc(we,oe,Le.signal);if(Ct.type==="aborted")return;if(Ct.type==="error"){let{error:Nn}=ta(oe,Ct);Ie(H,V,Nn,{flushSync:ze});return}else if(Ct.matches)we=Ct.matches,se=Qp(we,oe);else{Ie(H,V,Wr(404,{pathname:oe}),{flushSync:ze});return}}I.set(H,Re);let Dt=N,Pt=(await Q("loader",Le,[se],we))[0];if(mu(Pt)&&(Pt=await wz(Pt,Le.signal,!0)||Pt),I.get(H)===Re&&I.delete(H),!Le.signal.aborted){if(G.has(H)){De(H,pc(void 0));return}if(pu(Pt))if(M>Dt){De(H,pc(void 0));return}else{X.add(H),await W(Le,Pt);return}if(Ro(Pt)){Ie(H,V,Pt.error);return}lt(!mu(Pt),"Unhandled fetcher deferred data"),De(H,pc(Pt.data))}}async function W(H,V,oe){let{submission:se,fetcherSubmission:we,replace:je}=oe===void 0?{}:oe;V.response.headers.has("X-Remix-Revalidate")&&(j=!0);let ze=V.response.headers.get("Location");lt(ze,"Expected a Location header on the redirect Response"),ze=RI(ze,new URL(H.url),c);let be=V0(x.location,ze,{_isRedirect:!0});if(n){let Pt=!1;if(V.response.headers.has("X-Remix-Reload-Document"))Pt=!0;else if(S8.test(ze)){const Ct=e.history.createURL(ze);Pt=Ct.origin!==t.location.origin||Xh(Ct.pathname,c)==null}if(Pt){je?t.location.replace(ze):t.location.assign(ze);return}}k=null;let Ze=je===!0?Tn.Replace:Tn.Push,{formMethod:Re,formAction:Le,formEncType:Dt}=x.navigation;!se&&!we&&Re&&Le&&Dt&&(se=zI(x.navigation));let Tt=se||we;if(rae.has(V.response.status)&&Tt&&za(Tt.formMethod))await ke(Ze,be,{submission:nn({},Tt,{formAction:ze}),preventScrollReset:T});else{let Pt=bS(be,se);await ke(Ze,be,{overrideNavigation:Pt,fetcherSubmission:we,preventScrollReset:T})}}async function Q(H,V,oe,se){try{let we=await fae(l,H,V,oe,se,a,o);return await Promise.all(we.map((je,ze)=>{if(vae(je)){let be=je.result;return{type:Vt.redirect,response:pae(be,V,oe[ze].route.id,se,c,d.v7_relativeSplatPath)}}return mae(je)}))}catch(we){return oe.map(()=>({type:Vt.error,error:we}))}}async function ce(H,V,oe,se,we){let[je,...ze]=await Promise.all([oe.length?Q("loader",we,oe,V):[],...se.map(be=>{if(be.matches&&be.match&&be.controller){let Ze=Vd(e.history,be.path,be.controller.signal);return Q("loader",Ze,[be.match],be.matches).then(Re=>Re[0])}else return Promise.resolve({type:Vt.error,error:Wr(404,{pathname:be.path})})})]);return await Promise.all([$I(H,oe,je,je.map(()=>we.signal),!1,x.loaderData),$I(H,se.map(be=>be.match),ze,se.map(be=>be.controller?be.controller.signal:null),!0)]),{loaderResults:je,fetcherResults:ze}}function pe(){j=!0,P.push(...na()),J.forEach((H,V)=>{I.has(V)&&(O.push(V),at(V))})}function De(H,V,oe){oe===void 0&&(oe={}),x.fetchers.set(H,V),z({fetchers:new Map(x.fetchers)},{flushSync:(oe&&oe.flushSync)===!0})}function Ie(H,V,oe,se){se===void 0&&(se={});let we=kf(x.matches,V);Oe(H),z({errors:{[we.route.id]:oe},fetchers:new Map(x.fetchers)},{flushSync:(se&&se.flushSync)===!0})}function Je(H){return d.v7_fetcherPersist&&(U.set(H,(U.get(H)||0)+1),G.has(H)&&G.delete(H)),x.fetchers.get(H)||oae}function Oe(H){let V=x.fetchers.get(H);I.has(H)&&!(V&&V.state==="loading"&&L.has(H))&&at(H),J.delete(H),L.delete(H),X.delete(H),G.delete(H),x.fetchers.delete(H)}function _e(H){if(d.v7_fetcherPersist){let V=(U.get(H)||0)-1;V<=0?(U.delete(H),G.add(H)):U.set(H,V)}else Oe(H);z({fetchers:new Map(x.fetchers)})}function at(H){let V=I.get(H);lt(V,"Expected fetch controller: "+H),V.abort(),I.delete(H)}function Ft(H){for(let V of H){let oe=Je(V),se=pc(oe.data);x.fetchers.set(V,se)}}function Lt(){let H=[],V=!1;for(let oe of X){let se=x.fetchers.get(oe);lt(se,"Expected fetcher: "+oe),se.state==="loading"&&(X.delete(oe),H.push(oe),V=!0)}return Ft(H),V}function Js(H){let V=[];for(let[oe,se]of L)if(se0}function Jm(H,V){let oe=x.blockers.get(H)||lp;return ae.get(H)!==V&&ae.set(H,V),oe}function $d(H){x.blockers.delete(H),ae.delete(H)}function Zs(H,V){let oe=x.blockers.get(H)||lp;lt(oe.state==="unblocked"&&V.state==="blocked"||oe.state==="blocked"&&V.state==="blocked"||oe.state==="blocked"&&V.state==="proceeding"||oe.state==="blocked"&&V.state==="unblocked"||oe.state==="proceeding"&&V.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+V.state);let se=new Map(x.blockers);se.set(H,V),z({blockers:se})}function fi(H){let{currentLocation:V,nextLocation:oe,historyAction:se}=H;if(ae.size===0)return;ae.size>1&&Mu(!1,"A router only supports one blocker at a time");let we=Array.from(ae.entries()),[je,ze]=we[we.length-1],be=x.blockers.get(je);if(!(be&&be.state==="proceeding")&&ze({currentLocation:V,nextLocation:oe,historyAction:se}))return je}function Ia(H){let V=Wr(404,{pathname:H}),oe=s||i,{matches:se,route:we}=LI(oe);return na(),{notFoundMatches:se,route:we,error:V}}function ta(H,V){return{boundaryId:kf(V.partialMatches).route.id,error:Wr(400,{type:"route-discovery",pathname:H,message:V.error!=null&&"message"in V.error?V.error:String(V.error)})}}function na(H){let V=[];return Z.forEach((oe,se)=>{(!H||H(se))&&(oe.cancel(),V.push(se),Z.delete(se))}),V}function ec(H,V,oe){if(m=H,b=V,p=oe||null,!v&&x.navigation===yS){v=!0;let se=zd(x.location,x.matches);se!=null&&z({restoreScrollPosition:se})}return()=>{m=null,b=null,p=null}}function tc(H,V){return p&&p(H,V.map(se=>Noe(se,x.loaderData)))||H.key}function Zm(H,V){if(m&&b){let oe=tc(H,V);m[oe]=b()}}function zd(H,V){if(m){let oe=tc(H,V),se=m[oe];if(typeof se=="number")return se}return null}function Hl(H,V,oe){if(u)if(H){let se=H[H.length-1].route;if(se.path&&(se.path==="*"||se.path.endsWith("/*")))return{active:!0,matches:i1(V,oe,c,!0)}}else return{active:!0,matches:i1(V,oe,c,!0)||[]};return{active:!1,matches:null}}async function nc(H,V,oe){let se=H,we=se.length>0?se[se.length-1].route:null;for(;;){let je=s==null,ze=s||i;try{await uae(u,V,se,ze,a,o,ne,oe)}catch(Le){return{type:"error",error:Le,partialMatches:se}}finally{je&&(i=[...i])}if(oe.aborted)return{type:"aborted"};let be=iu(ze,V,c),Ze=!1;if(be){let Le=be[be.length-1].route;if(Le.index)return{type:"success",matches:be};if(Le.path&&Le.path.length>0)if(Le.path==="*")Ze=!0;else return{type:"success",matches:be}}let Re=i1(ze,V,c,!0);if(!Re||se.map(Le=>Le.route.id).join("-")===Re.map(Le=>Le.route.id).join("-"))return{type:"success",matches:Ze?be:null};if(se=Re,we=se[se.length-1].route,we.path==="*")return{type:"success",matches:se}}}function ep(H){a={},s=K0(H,o,void 0,a)}function H6(H,V){let oe=s==null;yz(H,V,s||i,a,o),oe&&(i=[...i],z({}))}return C={get basename(){return c},get future(){return d},get state(){return x},get routes(){return i},get window(){return t},initialize:te,subscribe:re,enableScrollRestoration:ec,navigate:ve,fetch:Me,revalidate:Ue,createHref:H=>e.history.createHref(H),encodeLocation:H=>e.history.encodeLocation(H),getFetcher:Je,deleteFetcher:_e,dispose:ee,getBlocker:Jm,deleteBlocker:$d,patchRoutes:H6,_internalFetchControllers:I,_internalActiveDeferreds:Z,_internalSetRoutes:ep},C}function sae(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function kA(e,t,n,r,o,a,i,s){let c,l;if(i){c=[];for(let d of t)if(c.push(d),d.route.id===i){l=d;break}}else c=t,l=t[t.length-1];let u=x8(o||".",_8(c,a),Xh(e.pathname,n)||e.pathname,s==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!T8(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:cs([n,u.pathname])),Lu(u)}function jI(e,t,n,r){if(!r||!sae(r))return{path:n};if(r.formMethod&&!Eae(r.formMethod))return{path:n,error:Wr(405,{method:r.formMethod})};let o=()=>({path:n,error:Wr(400,{type:"invalid-body"})}),a=r.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),s=bz(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!za(i))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[p,b]=m;return""+h+p+"="+b+` -`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!za(i))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}lt(typeof FormData=="function","FormData is not available in this environment");let c,l;if(r.formData)c=jA(r.formData),l=r.formData;else if(r.body instanceof FormData)c=jA(r.body),l=r.body;else if(r.body instanceof URLSearchParams)c=r.body,l=NI(c);else if(r.body==null)c=new URLSearchParams,l=new FormData;else try{c=new URLSearchParams(r.body),l=NI(c)}catch{return o()}let u={formMethod:i,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(za(u.formMethod))return{path:n,submission:u};let d=Ms(n);return t&&d.search&&T8(d.search)&&c.append("index",""),d.search="?"+c,{path:Lu(d),submission:u}}function cae(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function PI(e,t,n,r,o,a,i,s,c,l,u,d,f,h,m,p){let b=p?Ro(p[1])?p[1].error:p[1].data:void 0,v=e.createURL(t.location),g=e.createURL(o),w=p&&Ro(p[1])?p[0]:void 0,_=w?cae(n,w):n,C=p?p[1].statusCode:void 0,x=i&&C&&C>=400,E=_.filter((k,D)=>{let{route:R}=k;if(R.lazy)return!0;if(R.loader==null)return!1;if(a)return typeof R.loader!="function"||R.loader.hydrate?!0:t.loaderData[R.id]===void 0&&(!t.errors||t.errors[R.id]===void 0);if(lae(t.loaderData,t.matches[D],k)||c.some(j=>j===k.route.id))return!0;let F=t.matches[D],B=k;return II(k,nn({currentUrl:v,currentParams:F.params,nextUrl:g,nextParams:B.params},r,{actionResult:b,actionStatus:C,defaultShouldRevalidate:x?!1:s||v.pathname+v.search===g.pathname+g.search||v.search!==g.search||gz(F,B)}))}),T=[];return d.forEach((k,D)=>{if(a||!n.some(P=>P.route.id===k.routeId)||u.has(D))return;let R=iu(h,k.path,m);if(!R){T.push({key:D,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(D),B=Qp(R,k.path),j=!1;f.has(D)?j=!1:l.includes(D)?j=!0:F&&F.state!=="idle"&&F.data===void 0?j=s:j=II(B,nn({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:b,actionStatus:C,defaultShouldRevalidate:x?!1:s})),j&&T.push({key:D,routeId:k.routeId,path:k.path,matches:R,match:B,controller:new AbortController})}),[E,T]}function lae(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function gz(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function II(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function uae(e,t,n,r,o,a,i,s){let c=[t,...n.map(l=>l.route.id)].join("-");try{let l=i.get(c);l||(l=e({path:t,matches:n,patch:(u,d)=>{s.aborted||yz(u,d,r,o,a)}}),i.set(c,l)),l&&bae(l)&&await l}finally{i.delete(c)}}function yz(e,t,n,r,o){if(e){var a;let i=r[e];lt(i,"No route found to patch children into: routeId = "+e);let s=K0(t,o,[e,"patch",String(((a=i.children)==null?void 0:a.length)||"0")],r);i.children?i.children.push(...s):i.children=s}else{let i=K0(t,o,["patch",String(n.length||"0")],r);n.push(...i)}}async function OI(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];lt(o,"No route found in manifest");let a={};for(let i in r){let c=o[i]!==void 0&&i!=="hasErrorBoundary";Mu(!c,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!c&&!Ooe.has(i)&&(a[i]=r[i])}Object.assign(o,a),Object.assign(o,nn({},t(o),{lazy:void 0}))}function dae(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function fae(e,t,n,r,o,a,i,s){let c=r.reduce((d,f)=>d.add(f.route.id),new Set),l=new Set,u=await e({matches:o.map(d=>{let f=c.has(d.route.id);return nn({},d,{shouldLoad:f,resolve:m=>(l.add(d.route.id),f?hae(t,n,d,a,i,m,s):Promise.resolve({type:Vt.data,result:void 0}))})}),request:n,params:o[0].params,context:s});return o.forEach(d=>lt(l.has(d.route.id),'`match.resolve()` was not called for route id "'+d.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),u.filter((d,f)=>c.has(o[f].route.id))}async function hae(e,t,n,r,o,a,i){let s,c,l=u=>{let d,f=new Promise((p,b)=>d=b);c=()=>d(),t.signal.addEventListener("abort",c);let h=p=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:i},...p!==void 0?[p]:[]),m;return a?m=a(p=>h(p)):m=(async()=>{try{return{type:"data",result:await h()}}catch(p){return{type:"error",result:p}}})(),Promise.race([m,f])};try{let u=n.route[e];if(n.route.lazy)if(u){let d,[f]=await Promise.all([l(u).catch(h=>{d=h}),OI(n.route,o,r)]);if(d!==void 0)throw d;s=f}else if(await OI(n.route,o,r),u=n.route[e],u)s=await l(u);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw Wr(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:Vt.data,result:void 0};else if(u)s=await l(u);else{let d=new URL(t.url),f=d.pathname+d.search;throw Wr(404,{pathname:f})}lt(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:Vt.error,result:u}}finally{c&&t.signal.removeEventListener("abort",c)}return s}async function mae(e){let{result:t,type:n,status:r}=e;if(vz(t)){let i;try{let s=t.headers.get("Content-Type");s&&/\bapplication\/json\b/.test(s)?t.body==null?i=null:i=await t.json():i=await t.text()}catch(s){return{type:Vt.error,error:s}}return n===Vt.error?{type:Vt.error,error:new C8(t.status,t.statusText,i),statusCode:t.status,headers:t.headers}:{type:Vt.data,data:i,statusCode:t.status,headers:t.headers}}if(n===Vt.error)return{type:Vt.error,error:t,statusCode:E_(t)?t.status:r};if(wae(t)){var o,a;return{type:Vt.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}return{type:Vt.data,data:t,statusCode:r}}function pae(e,t,n,r,o,a){let i=e.headers.get("Location");if(lt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!S8.test(i)){let s=r.slice(0,r.findIndex(c=>c.route.id===n)+1);i=kA(new URL(t.url),s,o,!0,i,a),e.headers.set("Location",i)}return e}function RI(e,t,n){if(S8.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Xh(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function Vd(e,t,n,r){let o=e.createURL(bz(t)).toString(),a={signal:n};if(r&&za(r.formMethod)){let{formMethod:i,formEncType:s}=r;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=jA(r.formData):a.body=r.formData}return new Request(o,a)}function jA(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function NI(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function gae(e,t,n,r,o,a){let i={},s=null,c,l=!1,u={},d=r&&Ro(r[1])?r[1].error:void 0;return n.forEach((f,h)=>{let m=t[h].route.id;if(lt(!pu(f),"Cannot handle redirect results in processLoaderData"),Ro(f)){let p=f.error;d!==void 0&&(p=d,d=void 0),s=s||{};{let b=kf(e,m);s[b.route.id]==null&&(s[b.route.id]=p)}i[m]=void 0,l||(l=!0,c=E_(f.error)?f.error.status:500),f.headers&&(u[m]=f.headers)}else mu(f)?(o.set(m,f.deferredData),i[m]=f.deferredData.data,f.statusCode!=null&&f.statusCode!==200&&!l&&(c=f.statusCode),f.headers&&(u[m]=f.headers)):(i[m]=f.data,f.statusCode&&f.statusCode!==200&&!l&&(c=f.statusCode),f.headers&&(u[m]=f.headers))}),d!==void 0&&r&&(s={[r[0]]:d},i[r[0]]=void 0),{loaderData:i,errors:s,statusCode:c||200,loaderHeaders:u}}function BI(e,t,n,r,o,a,i,s){let{loaderData:c,errors:l}=gae(t,n,r,o,s);for(let u=0;ur.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function LI(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Wr(e,t){let{pathname:n,routeId:r,method:o,type:a,message:i}=t===void 0?{}:t,s="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(s="Bad Request",a==="route-discovery"?c='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error: -`+i):o&&n&&r?c="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?c="defer() is not supported in actions":a==="invalid-body"&&(c="Unable to encode submission body")):e===403?(s="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",c='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?c="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new C8(e||500,s,new Error(c),!0)}function UI(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(pu(n))return{result:n,idx:t}}}function bz(e){let t=typeof e=="string"?Ms(e):e;return Lu(nn({},t,{hash:""}))}function yae(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function bae(e){return typeof e=="object"&&e!=null&&"then"in e}function vae(e){return vz(e.result)&&nae.has(e.result.status)}function mu(e){return e.type===Vt.deferred}function Ro(e){return e.type===Vt.error}function pu(e){return(e&&e.type)===Vt.redirect}function wae(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function vz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Eae(e){return tae.has(e.toLowerCase())}function za(e){return Zoe.has(e.toLowerCase())}async function $I(e,t,n,r,o,a){for(let i=0;id.route.id===c.route.id),u=l!=null&&!gz(l,c)&&(a&&a[c.route.id])!==void 0;if(mu(s)&&(o||u)){let d=r[i];lt(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await wz(s,d,o).then(f=>{f&&(n[i]=f||n[i])})}}}async function wz(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Vt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Vt.error,error:o}}return{type:Vt.data,data:e.deferredData.data}}}function T8(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Qp(e,t){let n=typeof t=="string"?Ms(t).search:t.search;if(e[e.length-1].route.index&&T8(n||""))return e[e.length-1];let r=hz(e);return r[r.length-1]}function zI(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function bS(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function _ae(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function up(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function xae(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function pc(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Cae(e,t){try{let n=e.sessionStorage.getItem(pz);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function Sae(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(pz,JSON.stringify(n))}catch(r){Mu(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.25.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function uw(){return uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),S.useCallback(function(l,u){if(u===void 0&&(u={}),!s.current)return;if(typeof l=="number"){r.go(l);return}let d=x8(l,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:cs([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,i,a,e])}const Dae=S.createContext(null);function kae(e){let t=S.useContext(Ls).outlet;return t&&S.createElement(Dae.Provider,{value:e},t)}function jae(){let{matches:e}=S.useContext(Ls),t=e[e.length-1];return t?t.params:{}}function Cz(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=S.useContext(dd),{matches:o}=S.useContext(Ls),{pathname:a}=fd(),i=JSON.stringify(_8(o,r.v7_relativeSplatPath));return S.useMemo(()=>x8(e,JSON.parse(i),a,n==="path"),[e,i,a,n])}function Pae(e,t,n,r){Fg()||lt(!1);let{navigator:o}=S.useContext(dd),{matches:a}=S.useContext(Ls),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let l=fd(),u;u=l;let d=u.pathname||"/",f=d;if(c!=="/"){let p=c.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(p.length).join("/")}let h=iu(e,{pathname:f});return Bae(h&&h.map(p=>Object.assign({},p,{params:Object.assign({},s,p.params),pathname:cs([c,o.encodeLocation?o.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?c:cs([c,o.encodeLocation?o.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),a,n,r)}function Iae(){let e=Az(),t=E_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:o},n):null,null)}const Oae=S.createElement(Iae,null);class Rae extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(Ls.Provider,{value:this.props.routeContext},S.createElement(_z.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Nae(e){let{routeContext:t,match:n,children:r}=e,o=S.useContext(__);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Ls.Provider,{value:t},r)}function Bae(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let i=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||lt(!1),i=i.slice(0,Math.min(i.length,u+1))}let c=!1,l=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((u,d,f)=>{let h,m=!1,p=null,b=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,p=d.route.errorElement||Oae,c&&(l<0&&f===0?($ae("route-fallback"),m=!0,b=null):l===f&&(m=!0,b=d.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,f+1)),g=()=>{let w;return h?w=p:m?w=b:d.route.Component?w=S.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=u,S.createElement(Nae,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?S.createElement(Rae,{location:n.location,revalidation:n.revalidation,component:p,error:h,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var Sz=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Sz||{}),dw=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(dw||{});function Fae(e){let t=S.useContext(__);return t||lt(!1),t}function Mae(e){let t=S.useContext(Ez);return t||lt(!1),t}function Lae(e){let t=S.useContext(Ls);return t||lt(!1),t}function Tz(e){let t=Lae(),n=t.matches[t.matches.length-1];return n.route.id||lt(!1),n.route.id}function Az(){var e;let t=S.useContext(_z),n=Mae(dw.UseRouteError),r=Tz(dw.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Uae(){let{router:e}=Fae(Sz.UseNavigateStable),t=Tz(dw.UseNavigateStable),n=S.useRef(!1);return xz(()=>{n.current=!0}),S.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,uw({fromRouteId:t},a)))},[e,t])}const HI={};function $ae(e,t,n){HI[e]||(HI[e]=!0)}function zae(e){return kae(e.context)}function Hae(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Tn.Pop,navigator:a,static:i=!1,future:s}=e;Fg()&<(!1);let c=t.replace(/^\/*/,"/"),l=S.useMemo(()=>({basename:c,navigator:a,static:i,future:uw({v7_relativeSplatPath:!1},s)}),[c,s,a,i]);typeof r=="string"&&(r=Ms(r));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:m="default"}=r,p=S.useMemo(()=>{let b=Xh(u,c);return b==null?null:{location:{pathname:b,search:d,hash:f,state:h,key:m},navigationType:o}},[c,u,d,f,h,m,o]);return p==null?null:S.createElement(dd.Provider,{value:l},S.createElement(A8.Provider,{children:n,value:p}))}new Promise(()=>{});function qae(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:S.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.25.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Y0(){return Y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Gae(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Vae(e,t){return e.button===0&&(!t||t==="_self")&&!Gae(e)}function PA(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Kae(e,t){let n=PA(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(a=>{n.append(o,a)})}),n}const Yae=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Qae="6";try{window.__reactRouterVersion=Qae}catch{}function Xae(e,t){return iae({basename:void 0,future:Y0({},void 0,{v7_prependBasename:!0}),history:joe({window:void 0}),hydrationData:Jae(),routes:e,mapRouteProperties:qae,unstable_dataStrategy:void 0,unstable_patchRoutesOnMiss:void 0,window:void 0}).initialize()}function Jae(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Y0({},t,{errors:Zae(t.errors)})),t}function Zae(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new C8(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}const eie=S.createContext({isTransitioning:!1}),tie=S.createContext(new Map),nie="startTransition",qI=sU[nie],rie="flushSync",WI=koe[rie];function oie(e){qI?qI(e):e()}function dp(e){WI?WI(e):e()}class aie{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function iie(e){let{fallbackElement:t,router:n,future:r}=e,[o,a]=S.useState(n.state),[i,s]=S.useState(),[c,l]=S.useState({isTransitioning:!1}),[u,d]=S.useState(),[f,h]=S.useState(),[m,p]=S.useState(),b=S.useRef(new Map),{v7_startTransition:v}=r||{},g=S.useCallback(T=>{v?oie(T):T()},[v]),w=S.useCallback((T,k)=>{let{deletedFetchers:D,unstable_flushSync:R,unstable_viewTransitionOpts:F}=k;D.forEach(j=>b.current.delete(j)),T.fetchers.forEach((j,P)=>{j.data!==void 0&&b.current.set(P,j.data)});let B=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!F||B){R?dp(()=>a(T)):g(()=>a(T));return}if(R){dp(()=>{f&&(u&&u.resolve(),f.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let j=n.window.document.startViewTransition(()=>{dp(()=>a(T))});j.finished.finally(()=>{dp(()=>{d(void 0),h(void 0),s(void 0),l({isTransitioning:!1})})}),dp(()=>h(j));return}f?(u&&u.resolve(),f.skipTransition(),p({state:T,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(s(T),l({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[n.window,f,u,b,g]);S.useLayoutEffect(()=>n.subscribe(w),[n,w]),S.useEffect(()=>{c.isTransitioning&&!c.flushSync&&d(new aie)},[c]),S.useEffect(()=>{if(u&&i&&n.window){let T=i,k=u.promise,D=n.window.document.startViewTransition(async()=>{g(()=>a(T)),await k});D.finished.finally(()=>{d(void 0),h(void 0),s(void 0),l({isTransitioning:!1})}),h(D)}},[g,i,u,n.window]),S.useEffect(()=>{u&&i&&o.location.key===i.location.key&&u.resolve()},[u,f,o.location,i]),S.useEffect(()=>{!c.isTransitioning&&m&&(s(m.state),l({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),p(void 0))},[c.isTransitioning,m]),S.useEffect(()=>{},[]);let _=S.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:T=>n.navigate(T),push:(T,k,D)=>n.navigate(T,{state:k,preventScrollReset:D==null?void 0:D.preventScrollReset}),replace:(T,k,D)=>n.navigate(T,{replace:!0,state:k,preventScrollReset:D==null?void 0:D.preventScrollReset})}),[n]),C=n.basename||"/",x=S.useMemo(()=>({router:n,navigator:_,static:!1,basename:C}),[n,_,C]),E=S.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return S.createElement(S.Fragment,null,S.createElement(__.Provider,{value:x},S.createElement(Ez.Provider,{value:o},S.createElement(tie.Provider,{value:b.current},S.createElement(eie.Provider,{value:c},S.createElement(Hae,{basename:C,location:o.location,navigationType:o.historyAction,navigator:_,future:E},o.initialized||n.future.v7_partialHydration?S.createElement(sie,{routes:n.routes,future:n.future,state:o}):t))))),null)}const sie=S.memo(cie);function cie(e){let{routes:t,future:n,state:r}=e;return Pae(t,void 0,r,n)}const lie=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Su=S.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:i,state:s,target:c,to:l,preventScrollReset:u,unstable_viewTransition:d}=t,f=Wae(t,Yae),{basename:h}=S.useContext(dd),m,p=!1;if(typeof l=="string"&&uie.test(l)&&(m=l,lie))try{let w=new URL(window.location.href),_=l.startsWith("//")?new URL(w.protocol+l):new URL(l),C=Xh(_.pathname,h);_.origin===w.origin&&C!=null?l=C+_.search+_.hash:p=!0}catch{}let b=Tae(l,{relative:o}),v=die(l,{replace:i,state:s,target:c,preventScrollReset:u,relative:o,unstable_viewTransition:d});function g(w){r&&r(w),w.defaultPrevented||v(w)}return S.createElement("a",Y0({},f,{href:m||b,onClick:p||a?r:g,ref:n,target:c}))});var GI;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(GI||(GI={}));var VI;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(VI||(VI={}));function die(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,c=Mg(),l=fd(),u=Cz(e,{relative:i});return S.useCallback(d=>{if(Vae(d,n)){d.preventDefault();let f=r!==void 0?r:Lu(l)===Lu(u);c(e,{replace:f,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s})}},[l,c,u,r,o,n,e,a,i,s])}function Dz(e){let t=S.useRef(PA(e)),n=S.useRef(!1),r=fd(),o=S.useMemo(()=>Kae(r.search,n.current?null:t.current),[r.search]),a=Mg(),i=S.useCallback((s,c)=>{const l=PA(typeof s=="function"?s(o):s);n.current=!0,a("?"+l,c)},[a,o]);return[o,i]}function Jh(e){return kz(e)?(e.nodeName||"").toLowerCase():"#document"}function wo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Us(e){var t;return(t=(kz(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kz(e){return e instanceof Node||e instanceof wo(e).Node}function Mt(e){return e instanceof Element||e instanceof wo(e).Element}function xo(e){return e instanceof HTMLElement||e instanceof wo(e).HTMLElement}function IA(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wo(e).ShadowRoot}function Lg(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ko(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function fie(e){return["table","td","th"].includes(Jh(e))}function x_(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function D8(e){const t=k8(),n=Mt(e)?Ko(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function hie(e){let t=_s(e);for(;xo(t)&&!el(t);){if(D8(t))return t;if(x_(t))return null;t=_s(t)}return null}function k8(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function el(e){return["html","body","#document"].includes(Jh(e))}function Ko(e){return wo(e).getComputedStyle(e)}function C_(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _s(e){if(Jh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||IA(e)&&e.host||Us(e);return IA(t)?t.host:t}function jz(e){const t=_s(e);return el(t)?e.ownerDocument?e.ownerDocument.body:e.body:xo(t)&&Lg(t)?t:jz(t)}function Wc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=jz(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=wo(o);return a?t.concat(i,i.visualViewport||[],Lg(o)?o:[],i.frameElement&&n?Wc(i.frameElement):[]):t.concat(o,Wc(o,[],n))}function OA(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function ls(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&IA(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Pz(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Iz(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function mie(e){return gie()?!1:!KI()&&e.width===0&&e.height===0||KI()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Oz(){return/apple/i.test(navigator.vendor)}function KI(){const e=/android/i;return e.test(Pz())||e.test(Iz())}function pie(){return Pz().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function gie(){return Iz().includes("jsdom/")}function Q0(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function yie(e){return"nativeEvent"in e}function bie(e){return e.matches("html,body")}function Nc(e){return(e==null?void 0:e.ownerDocument)||document}function vS(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function su(e){return"composedPath"in e?e.composedPath()[0]:e.target}const vie="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Rz(e){return xo(e)&&e.matches(vie)}const Ai=Math.min,Bo=Math.max,fw=Math.round,Kb=Math.floor,tl=e=>({x:e,y:e}),wie={left:"right",right:"left",bottom:"top",top:"bottom"},Eie={start:"end",end:"start"};function RA(e,t,n){return Bo(e,Ai(t,n))}function Zh(e,t){return typeof e=="function"?e(t):e}function nl(e){return e.split("-")[0]}function em(e){return e.split("-")[1]}function Nz(e){return e==="x"?"y":"x"}function j8(e){return e==="y"?"height":"width"}function Uu(e){return["top","bottom"].includes(nl(e))?"y":"x"}function P8(e){return Nz(Uu(e))}function _ie(e,t,n){n===void 0&&(n=!1);const r=em(e),o=P8(e),a=j8(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=hw(i)),[i,hw(i)]}function xie(e){const t=hw(e);return[NA(e),t,NA(t)]}function NA(e){return e.replace(/start|end/g,t=>Eie[t])}function Cie(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function Sie(e,t,n,r){const o=em(e);let a=Cie(nl(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(NA)))),a}function hw(e){return e.replace(/left|right|bottom|top/g,t=>wie[t])}function Tie(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bz(e){return typeof e!="number"?Tie(e):{top:e,right:e,bottom:e,left:e}}function mw(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}/*! -* tabbable 6.2.0 -* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var Aie=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],BA=Aie.join(","),Fz=typeof Element>"u",X0=Fz?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pw=!Fz&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},gw=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=o===""||o==="true",i=a||n&&t&&e(t.parentNode);return i},Die=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},kie=function(t,n,r){if(gw(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(BA));return n&&X0.call(t,BA)&&o.unshift(t),o=o.filter(r),o},jie=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!gw(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),c=s.length?s:i.children,l=e(c,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{var u=X0.call(i,BA);u&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),f=!gw(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&f){var h=e(d===!0?i.children:d.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:i,candidates:h})}else a.unshift.apply(a,i.children)}}return o},Mz=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Lz=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Die(t))&&!Mz(t)?0:t.tabIndex},Pie=function(t,n){var r=Lz(t);return r<0&&n&&!Mz(t)?0:r},Iie=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Uz=function(t){return t.tagName==="INPUT"},Oie=function(t){return Uz(t)&&t.type==="hidden"},Rie=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Nie=function(t,n){for(var r=0;rsummary:first-of-type"),i=a?t.parentElement:t;if(X0.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var s=t;t;){var c=t.parentElement,l=pw(t);if(c&&!c.shadowRoot&&o(c)===!0)return YI(t);t.assignedSlot?t=t.assignedSlot:!c&&l!==t.ownerDocument?t=l.host:t=c}t=s}if(Lie(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return YI(t);return!1},$ie=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},qie=function e(t){var n=[],r=[];return t.forEach(function(o,a){var i=!!o.scopeParent,s=i?o.scopeParent:o,c=Pie(s,i),l=i?e(o.candidates):s;c===0?i?n.push.apply(n,l):n.push(s):r.push({documentOrder:a,tabIndex:c,item:o,isScope:i,content:l})}),r.sort(Iie).reduce(function(o,a){return a.isScope?o.push.apply(o,a.content):o.push(a.content),o},[]).concat(n)},$z=function(t,n){n=n||{};var r;return n.getShadowRoot?r=jie([t],n.includeContainer,{filter:QI.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Hie}):r=kie(t,n.includeContainer,QI.bind(null,n)),qie(r)};function XI(e,t,n){let{reference:r,floating:o}=e;const a=Uu(t),i=P8(t),s=j8(i),c=nl(t),l=a==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(em(t)){case"start":h[i]-=f*(n&&l?-1:1);break;case"end":h[i]+=f*(n&&l?-1:1);break}return h}const Wie=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=XI(l,r,c),f=r,h={},m=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Zh(e,t)||{};if(l==null)return{};const d=Bz(u),f={x:n,y:r},h=P8(o),m=j8(h),p=await i.getDimensions(l),b=h==="y",v=b?"top":"left",g=b?"bottom":"right",w=b?"clientHeight":"clientWidth",_=a.reference[m]+a.reference[h]-f[h]-a.floating[m],C=f[h]-a.reference[h],x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let E=x?x[w]:0;(!E||!await(i.isElement==null?void 0:i.isElement(x)))&&(E=s.floating[w]||a.floating[m]);const T=_/2-C/2,k=E/2-p[m]/2-1,D=Ai(d[v],k),R=Ai(d[g],k),F=D,B=E-p[m]-R,j=E/2-p[m]/2+T,P=RA(F,j,B),O=!c.arrow&&em(o)!=null&&j!==P&&a.reference[m]/2-(jj<=0)){var R,F;const j=(((R=a.flip)==null?void 0:R.index)||0)+1,P=E[j];if(P)return{data:{index:j,overflows:D},reset:{placement:P}};let O=(F=D.filter(I=>I.overflows[0]<=0).sort((I,N)=>I.overflows[1]-N.overflows[1])[0])==null?void 0:F.placement;if(!O)switch(h){case"bestFit":{var B;const I=(B=D.filter(N=>{if(x){const M=Uu(N.placement);return M===g||M==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(M=>M>0).reduce((M,L)=>M+L,0)]).sort((N,M)=>N[1]-M[1])[0])==null?void 0:B[0];I&&(O=I);break}case"initialPlacement":O=s;break}if(o!==O)return{reset:{placement:O}}}return{}}}};async function Kie(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=nl(n),s=em(n),c=Uu(n)==="y",l=["left","top"].includes(i)?-1:1,u=a&&c?-1:1,d=Zh(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof m=="number"&&(h=s==="end"?m*-1:m),c?{x:h*u,y:f*l}:{x:f*l,y:h*u}}const Yie=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await Kie(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},Qie=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:b=>{let{x:v,y:g}=b;return{x:v,y:g}}},...c}=Zh(e,t),l={x:n,y:r},u=await I8(t,c),d=Uu(nl(o)),f=Nz(d);let h=l[f],m=l[d];if(a){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",g=h+u[b],w=h-u[v];h=RA(g,h,w)}if(i){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",g=m+u[b],w=m-u[v];m=RA(g,m,w)}const p=s.fn({...t,[f]:h,[d]:m});return{...p,data:{x:p.x-n,y:p.y-r}}}}},Xie=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=()=>{},...s}=Zh(e,t),c=await I8(t,s),l=nl(n),u=em(n),d=Uu(n)==="y",{width:f,height:h}=r.floating;let m,p;l==="top"||l==="bottom"?(m=l,p=u===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(p=l,m=u==="end"?"top":"bottom");const b=h-c.top-c.bottom,v=f-c.left-c.right,g=Ai(h-c[m],b),w=Ai(f-c[p],v),_=!t.middlewareData.shift;let C=g,x=w;if(d?x=u||_?Ai(w,v):v:C=u||_?Ai(g,b):b,_&&!u){const T=Bo(c.left,0),k=Bo(c.right,0),D=Bo(c.top,0),R=Bo(c.bottom,0);d?x=f-2*(T!==0||k!==0?T+k:Bo(c.left,c.right)):C=h-2*(D!==0||R!==0?D+R:Bo(c.top,c.bottom))}await i({...t,availableWidth:x,availableHeight:C});const E=await o.getDimensions(a.floating);return f!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function zz(e){const t=Ko(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xo(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=fw(n)!==a||fw(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function O8(e){return Mt(e)?e:e.contextElement}function Kf(e){const t=O8(e);if(!xo(t))return tl(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=zz(t);let i=(a?fw(n.width):n.width)/r,s=(a?fw(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Jie=tl(0);function Hz(e){const t=wo(e);return!k8()||!t.visualViewport?Jie:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zie(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wo(e)?!1:t}function $u(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=O8(e);let i=tl(1);t&&(r?Mt(r)&&(i=Kf(r)):i=Kf(e));const s=Zie(a,n,r)?Hz(a):tl(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const f=wo(a),h=r&&Mt(r)?wo(r):r;let m=f,p=m.frameElement;for(;p&&r&&h!==m;){const b=Kf(p),v=p.getBoundingClientRect(),g=Ko(p),w=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*b.x,_=v.top+(p.clientTop+parseFloat(g.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,d*=b.y,c+=w,l+=_,m=wo(p),p=m.frameElement}}return mw({width:u,height:d,x:c,y:l})}function ese(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Us(r),s=t?x_(t.floating):!1;if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=tl(1);const u=tl(0),d=xo(r);if((d||!d&&!a)&&((Jh(r)!=="body"||Lg(i))&&(c=C_(r)),xo(r))){const f=$u(r);l=Kf(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function tse(e){return Array.from(e.getClientRects())}function qz(e){return $u(Us(e)).left+C_(e).scrollLeft}function nse(e){const t=Us(e),n=C_(e),r=e.ownerDocument.body,o=Bo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Bo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+qz(e);const s=-n.scrollTop;return Ko(r).direction==="rtl"&&(i+=Bo(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function rse(e,t){const n=wo(e),r=Us(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const l=k8();(!l||l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}function ose(e,t){const n=$u(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=xo(e)?Kf(e):tl(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,l=r*a.y;return{width:i,height:s,x:c,y:l}}function JI(e,t,n){let r;if(t==="viewport")r=rse(e,n);else if(t==="document")r=nse(Us(e));else if(Mt(t))r=ose(t,n);else{const o=Hz(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return mw(r)}function Wz(e,t){const n=_s(e);return n===t||!Mt(n)||el(n)?!1:Ko(n).position==="fixed"||Wz(n,t)}function ase(e,t){const n=t.get(e);if(n)return n;let r=Wc(e,[],!1).filter(s=>Mt(s)&&Jh(s)!=="body"),o=null;const a=Ko(e).position==="fixed";let i=a?_s(e):e;for(;Mt(i)&&!el(i);){const s=Ko(i),c=D8(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Lg(i)&&!c&&Wz(e,i))?r=r.filter(u=>u!==i):o=s,i=_s(i)}return t.set(e,r),r}function ise(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?x_(t)?[]:ase(t,this._c):[].concat(n),r],s=i[0],c=i.reduce((l,u)=>{const d=JI(t,u,o);return l.top=Bo(d.top,l.top),l.right=Ai(d.right,l.right),l.bottom=Ai(d.bottom,l.bottom),l.left=Bo(d.left,l.left),l},JI(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function sse(e){const{width:t,height:n}=zz(e);return{width:t,height:n}}function cse(e,t,n){const r=xo(t),o=Us(t),a=n==="fixed",i=$u(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=tl(0);if(r||!r&&!a)if((Jh(t)!=="body"||Lg(o))&&(s=C_(t)),r){const d=$u(t,!0,a,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else o&&(c.x=qz(o));const l=i.left+s.scrollLeft-c.x,u=i.top+s.scrollTop-c.y;return{x:l,y:u,width:i.width,height:i.height}}function wS(e){return Ko(e).position==="static"}function ZI(e,t){return!xo(e)||Ko(e).position==="fixed"?null:t?t(e):e.offsetParent}function Gz(e,t){const n=wo(e);if(x_(e))return n;if(!xo(e)){let o=_s(e);for(;o&&!el(o);){if(Mt(o)&&!wS(o))return o;o=_s(o)}return n}let r=ZI(e,t);for(;r&&fie(r)&&wS(r);)r=ZI(r,t);return r&&el(r)&&wS(r)&&!D8(r)?n:r||hie(e)||n}const lse=async function(e){const t=this.getOffsetParent||Gz,n=this.getDimensions,r=await n(e.floating);return{reference:cse(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function use(e){return Ko(e).direction==="rtl"}const dse={convertOffsetParentRelativeRectToViewportRelativeRect:ese,getDocumentElement:Us,getClippingRect:ise,getOffsetParent:Gz,getElementRects:lse,getClientRects:tse,getDimensions:sse,getScale:Kf,isElement:Mt,isRTL:use};function fse(e,t){let n=null,r;const o=Us(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const{left:l,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const h=Kb(u),m=Kb(o.clientWidth-(l+d)),p=Kb(o.clientHeight-(u+f)),b=Kb(l),g={rootMargin:-h+"px "+-m+"px "+-p+"px "+-b+"px",threshold:Bo(0,Ai(1,c))||1};let w=!0;function _(C){const x=C[0].intersectionRatio;if(x!==c){if(!w)return i();x?i(!1,x):r=setTimeout(()=>{i(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(_,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return i(!0),a}function hse(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=O8(e),u=o||a?[...l?Wc(l):[],...Wc(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const d=l&&s?fse(l,n):null;let f=-1,h=null;i&&(h=new ResizeObserver(v=>{let[g]=v;g&&g.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let m,p=c?$u(e):null;c&&b();function b(){const v=$u(e);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&n(),p=v,m=requestAnimationFrame(b)}return n(),()=>{var v;u.forEach(g=>{o&&g.removeEventListener("scroll",n),a&&g.removeEventListener("resize",n)}),d==null||d(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const mse=Yie,pse=Qie,gse=Vie,yse=Xie,eO=Gie,bse=(e,t,n)=>{const r=new Map,o={platform:dse,...n},a={...o.platform,_c:r};return Wie(e,t,{...o,platform:a})};var s1=typeof document<"u"?S.useLayoutEffect:S.useEffect;function yw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!yw(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!yw(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Vz(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tO(e,t){const n=Vz(e);return Math.round(t*n)/n}function nO(e){const t=S.useRef(e);return s1(()=>{t.current=e}),t}function vse(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=S.useState(r);yw(f,r)||h(r);const[m,p]=S.useState(null),[b,v]=S.useState(null),g=S.useCallback(I=>{I!==x.current&&(x.current=I,p(I))},[]),w=S.useCallback(I=>{I!==E.current&&(E.current=I,v(I))},[]),_=a||m,C=i||b,x=S.useRef(null),E=S.useRef(null),T=S.useRef(u),k=c!=null,D=nO(c),R=nO(o),F=S.useCallback(()=>{if(!x.current||!E.current)return;const I={placement:t,strategy:n,middleware:f};R.current&&(I.platform=R.current),bse(x.current,E.current,I).then(N=>{const M={...N,isPositioned:!0};B.current&&!yw(T.current,M)&&(T.current=M,Fs.flushSync(()=>{d(M)}))})},[f,t,n,R]);s1(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(I=>({...I,isPositioned:!1})))},[l]);const B=S.useRef(!1);s1(()=>(B.current=!0,()=>{B.current=!1}),[]),s1(()=>{if(_&&(x.current=_),C&&(E.current=C),_&&C){if(D.current)return D.current(_,C,F);F()}},[_,C,F,D,k]);const j=S.useMemo(()=>({reference:x,floating:E,setReference:g,setFloating:w}),[g,w]),P=S.useMemo(()=>({reference:_,floating:C}),[_,C]),O=S.useMemo(()=>{const I={position:n,left:0,top:0};if(!P.floating)return I;const N=tO(P.floating,u.x),M=tO(P.floating,u.y);return s?{...I,transform:"translate("+N+"px, "+M+"px)",...Vz(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:M}},[n,s,P.floating,u.x,u.y]);return S.useMemo(()=>({...u,update:F,refs:j,elements:P,floatingStyles:O}),[u,F,j,P,O])}const wse=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?eO({element:r.current,padding:o}).fn(n):{}:r?eO({element:r,padding:o}).fn(n):{}}}},hd=(e,t)=>({...mse(e),options:[e,t]}),Ese=(e,t)=>({...pse(e),options:[e,t]}),_se=(e,t)=>({...gse(e),options:[e,t]}),S_=(e,t)=>({...yse(e),options:[e,t]}),xse=(e,t)=>({...wse(e),options:[e,t]}),Kz={...sU},Cse=Kz.useInsertionEffect,Sse=Cse||(e=>e());function Pc(e){const t=S.useRef(()=>{});return Sse(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+Tse++;function Ase(){const[e,t]=S.useState(()=>rO?oO():void 0);return qo(()=>{e==null&&t(oO())},[]),S.useEffect(()=>{rO=!0},[]),e}const Dse=Kz.useId,T_=Dse||Ase,kse=S.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:a}},width:i=14,height:s=7,tipRadius:c=0,strokeWidth:l=0,staticOffset:u,stroke:d,d:f,style:{transform:h,...m}={},...p}=t,b=T_(),[v,g]=S.useState(!1);if(qo(()=>{if(!o)return;Ko(o).direction==="rtl"&&g(!0)},[o]),!o)return null;const w=l*2,_=w/2,C=i/2*(c/-8+1),x=s/2*c/4,[E,T]=r.split("-"),k=!!f,D=E==="top"||E==="bottom",R=u&&T==="end"?"bottom":"top";let F=u&&T==="end"?"right":"left";u&&v&&(F=T==="end"?"left":"right");const B=(a==null?void 0:a.x)!=null?u||a.x:"",j=(a==null?void 0:a.y)!=null?u||a.y:"",P=f||"M0,0"+(" H"+i)+(" L"+(i-C)+","+(s-x))+(" Q"+i/2+","+s+" "+C+","+(s-x))+" Z",O={top:k?"rotate(180deg)":"",left:k?"rotate(90deg)":"rotate(-90deg)",bottom:k?"":"rotate(180deg)",right:k?"rotate(-90deg)":"rotate(90deg)"}[E];return S.createElement("svg",bw({},p,{"aria-hidden":!0,ref:n,width:k?i:i+w,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[F]:B,[R]:j,[E]:D||k?"100%":"calc(100% - "+w/2+"px)",transform:""+O+(h??""),...m}}),w>0&&S.createElement("path",{clipPath:"url(#"+b+")",fill:"none",stroke:d,strokeWidth:w+(f?0:1),d:P}),S.createElement("path",{stroke:w&&!f?p.fill:"none",d:P}),S.createElement("clipPath",{id:b},S.createElement("rect",{x:-_,y:_*(k?-1:1),width:i+w,height:i})))});function jse(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Pse=S.createContext(null),Ise=S.createContext(null),R8=()=>{var e;return((e=S.useContext(Pse))==null?void 0:e.id)||null},N8=()=>S.useContext(Ise);function Ug(e){return"data-floating-ui-"+e}function gu(e){const t=S.useRef(e);return qo(()=>{t.current=e}),t}const aO=Ug("safe-polygon");function ES(e,t,n){return n&&!Q0(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function A_(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:a,elements:i}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,h=N8(),m=R8(),p=gu(l),b=gu(c),v=gu(n),g=S.useRef(),w=S.useRef(-1),_=S.useRef(),C=S.useRef(-1),x=S.useRef(!0),E=S.useRef(!1),T=S.useRef(()=>{}),k=S.useCallback(()=>{var P;const O=(P=o.current.openEvent)==null?void 0:P.type;return(O==null?void 0:O.includes("mouse"))&&O!=="mousedown"},[o]);S.useEffect(()=>{if(!s)return;function P(O){let{open:I}=O;I||(clearTimeout(w.current),clearTimeout(C.current),x.current=!0)}return a.on("openchange",P),()=>{a.off("openchange",P)}},[s,a]),S.useEffect(()=>{if(!s||!p.current||!n)return;function P(I){k()&&r(!1,I,"hover")}const O=Nc(i.floating).documentElement;return O.addEventListener("mouseleave",P),()=>{O.removeEventListener("mouseleave",P)}},[i.floating,n,r,s,p,k]);const D=S.useCallback(function(P,O,I){O===void 0&&(O=!0),I===void 0&&(I="hover");const N=ES(b.current,"close",g.current);N&&!_.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,P,I),N)):O&&(clearTimeout(w.current),r(!1,P,I))},[b,r]),R=Pc(()=>{T.current(),_.current=void 0}),F=Pc(()=>{if(E.current){const P=Nc(i.floating).body;P.style.pointerEvents="",P.removeAttribute(aO),E.current=!1}});S.useEffect(()=>{if(!s)return;function P(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function O(L){if(clearTimeout(w.current),x.current=!1,u&&!Q0(g.current)||d>0&&!ES(b.current,"open"))return;const X=ES(b.current,"open",g.current);X?w.current=window.setTimeout(()=>{v.current||r(!0,L,"hover")},X):r(!0,L,"hover")}function I(L){if(P())return;T.current();const X=Nc(i.floating);if(clearTimeout(C.current),p.current&&o.current.floatingContext){n||clearTimeout(w.current),_.current=p.current({...o.current.floatingContext,tree:h,x:L.clientX,y:L.clientY,onClose(){F(),R(),D(L,!0,"safe-polygon")}});const U=_.current;X.addEventListener("mousemove",U),T.current=()=>{X.removeEventListener("mousemove",U)};return}(g.current==="touch"?!ls(i.floating,L.relatedTarget):!0)&&D(L)}function N(L){P()||o.current.floatingContext&&(p.current==null||p.current({...o.current.floatingContext,tree:h,x:L.clientX,y:L.clientY,onClose(){F(),R(),D(L)}})(L))}if(Mt(i.domReference)){var M;const L=i.domReference;return n&&L.addEventListener("mouseleave",N),(M=i.floating)==null||M.addEventListener("mouseleave",N),f&&L.addEventListener("mousemove",O,{once:!0}),L.addEventListener("mouseenter",O),L.addEventListener("mouseleave",I),()=>{var X;n&&L.removeEventListener("mouseleave",N),(X=i.floating)==null||X.removeEventListener("mouseleave",N),f&&L.removeEventListener("mousemove",O),L.removeEventListener("mouseenter",O),L.removeEventListener("mouseleave",I)}}},[i,s,e,u,d,f,D,R,F,r,n,v,h,b,p,o]),qo(()=>{var P;if(s&&n&&(P=p.current)!=null&&P.__options.blockPointerEvents&&k()){const I=Nc(i.floating).body;I.setAttribute(aO,""),I.style.pointerEvents="none",E.current=!0;const N=i.floating;if(Mt(i.domReference)&&N){var O;const M=i.domReference,L=h==null||(O=h.nodesRef.current.find(X=>X.id===m))==null||(O=O.context)==null?void 0:O.elements.floating;return L&&(L.style.pointerEvents=""),M.style.pointerEvents="auto",N.style.pointerEvents="auto",()=>{M.style.pointerEvents="",N.style.pointerEvents=""}}}},[s,n,m,i,h,p,k]),qo(()=>{n||(g.current=void 0,R(),F())},[n,R,F]),S.useEffect(()=>()=>{R(),clearTimeout(w.current),clearTimeout(C.current),F()},[s,i.domReference,R,F]);const B=S.useMemo(()=>{function P(O){g.current=O.pointerType}return{onPointerDown:P,onPointerEnter:P,onMouseMove(O){const{nativeEvent:I}=O;function N(){!x.current&&!v.current&&r(!0,I,"hover")}u&&!Q0(g.current)||n||d===0||(clearTimeout(C.current),g.current==="touch"?N():C.current=window.setTimeout(N,d))}}},[u,r,n,v,d]),j=S.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(P){D(P.nativeEvent,!1)}}),[D]);return S.useMemo(()=>s?{reference:B,floating:j}:{},[s,B,j])}function c1(e,t){let n=e.filter(o=>{var a;return o.parentId===t&&((a=o.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(o=>{var a;return(a=r)==null?void 0:a.some(i=>{var s;return o.parentId===i.id&&((s=o.context)==null?void 0:s.open)})}),n=n.concat(r);return n}const Yz=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Qz(e,t){const n=$z(e,Yz());t==="prev"&&n.reverse();const r=n.indexOf(OA(Nc(e)));return n.slice(r+1)[0]}function Ose(){return Qz(document.body,"next")}function Rse(){return Qz(document.body,"prev")}function _S(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!ls(n,r)}function Nse(e){$z(e,Yz()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Bse(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Xz={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let Fse;function iO(e){e.key==="Tab"&&(e.target,clearTimeout(Fse))}const sO=S.forwardRef(function(t,n){const[r,o]=S.useState();qo(()=>(Oz()&&o("button"),document.addEventListener("keydown",iO),()=>{document.removeEventListener("keydown",iO)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Ug("focus-guard")]:"",style:Xz};return S.createElement("span",bw({},t,a))}),Jz=S.createContext(null),cO=Ug("portal");function Mse(e){e===void 0&&(e={});const{id:t,root:n}=e,r=T_(),o=Lse(),[a,i]=S.useState(null),s=S.useRef(null);return qo(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),qo(()=>{if(!r||s.current)return;const c=t?document.getElementById(t):null;if(!c)return;const l=document.createElement("div");l.id=r,l.setAttribute(cO,""),c.appendChild(l),s.current=l,i(l)},[t,r]),qo(()=>{if(!r||s.current)return;let c=n||(o==null?void 0:o.portalNode);c&&!Mt(c)&&(c=c.current),c=c||document.body;let l=null;t&&(l=document.createElement("div"),l.id=t,c.appendChild(l));const u=document.createElement("div");u.id=r,u.setAttribute(cO,""),c=l||c,c.appendChild(u),s.current=u,i(u)},[t,n,r,o]),a}function md(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,a=Mse({id:n,root:r}),[i,s]=S.useState(null),c=S.useRef(null),l=S.useRef(null),u=S.useRef(null),d=S.useRef(null),f=!!i&&!i.modal&&i.open&&o&&!!(r||a);return S.useEffect(()=>{if(!a||!o||i!=null&&i.modal)return;function h(m){a&&_S(m)&&(m.type==="focusin"?Bse:Nse)(a)}return a.addEventListener("focusin",h,!0),a.addEventListener("focusout",h,!0),()=>{a.removeEventListener("focusin",h,!0),a.removeEventListener("focusout",h,!0)}},[a,o,i==null?void 0:i.modal]),S.createElement(Jz.Provider,{value:S.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:l,beforeInsideRef:u,afterInsideRef:d,portalNode:a,setFocusManagerState:s}),[o,a])},f&&a&&S.createElement(sO,{"data-type":"outside",ref:c,onFocus:h=>{if(_S(h,a)){var m;(m=u.current)==null||m.focus()}else{const p=Rse()||(i==null?void 0:i.refs.domReference.current);p==null||p.focus()}}}),f&&a&&S.createElement("span",{"aria-owns":a.id,style:Xz}),a&&Fs.createPortal(t,a),f&&a&&S.createElement(sO,{"data-type":"outside",ref:l,onFocus:h=>{if(_S(h,a)){var m;(m=d.current)==null||m.focus()}else{const p=Ose()||(i==null?void 0:i.refs.domReference.current);p==null||p.focus(),i!=null&&i.closeOnFocusOut&&(i==null||i.onOpenChange(!1,h.nativeEvent))}}}))}const Lse=()=>S.useContext(Jz);function lO(e){return xo(e.target)&&e.target.tagName==="BUTTON"}function uO(e){return Rz(e)}function tm(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:a}}=e,{enabled:i=!0,event:s="click",toggle:c=!0,ignoreMouse:l=!1,keyboardHandlers:u=!0}=t,d=S.useRef(),f=S.useRef(!1),h=S.useMemo(()=>({onPointerDown(m){d.current=m.pointerType},onMouseDown(m){const p=d.current;m.button===0&&s!=="click"&&(Q0(p,!0)&&l||(n&&c&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?r(!1,m.nativeEvent,"click"):(m.preventDefault(),r(!0,m.nativeEvent,"click"))))},onClick(m){const p=d.current;if(s==="mousedown"&&d.current){d.current=void 0;return}Q0(p,!0)&&l||(n&&c&&(!o.current.openEvent||o.current.openEvent.type==="click")?r(!1,m.nativeEvent,"click"):r(!0,m.nativeEvent,"click"))},onKeyDown(m){d.current=void 0,!(m.defaultPrevented||!u||lO(m))&&(m.key===" "&&!uO(a)&&(m.preventDefault(),f.current=!0),m.key==="Enter"&&r(!(n&&c),m.nativeEvent,"click"))},onKeyUp(m){m.defaultPrevented||!u||lO(m)||uO(a)||m.key===" "&&f.current&&(f.current=!1,r(!(n&&c),m.nativeEvent,"click"))}}),[o,a,s,l,u,r,n,c]);return S.useMemo(()=>i?{reference:h}:{},[i,h])}const Use={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},$se={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},dO=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function pd(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:a}=e,{enabled:i=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:h,capture:m}=t,p=N8(),b=Pc(typeof c=="function"?c:()=>!1),v=typeof c=="function"?b:c,g=S.useRef(!1),w=S.useRef(!1),{escapeKey:_,outsidePress:C}=dO(h),{escapeKey:x,outsidePress:E}=dO(m),T=Pc(j=>{var P;if(!n||!i||!s||j.key!=="Escape")return;const O=(P=a.current.floatingContext)==null?void 0:P.nodeId,I=p?c1(p.nodesRef.current,O):[];if(!_&&(j.stopPropagation(),I.length>0)){let N=!0;if(I.forEach(M=>{var L;if((L=M.context)!=null&&L.open&&!M.context.dataRef.current.__escapeKeyBubbles){N=!1;return}}),!N)return}r(!1,yie(j)?j.nativeEvent:j,"escape-key")}),k=Pc(j=>{var P;const O=()=>{var I;T(j),(I=su(j))==null||I.removeEventListener("keydown",O)};(P=su(j))==null||P.addEventListener("keydown",O)}),D=Pc(j=>{var P;const O=g.current;g.current=!1;const I=w.current;if(w.current=!1,l==="click"&&I||O||typeof v=="function"&&!v(j))return;const N=su(j),M="["+Ug("inert")+"]",L=Nc(o.floating).querySelectorAll(M);let X=Mt(N)?N:null;for(;X&&!el(X);){const Z=_s(X);if(el(Z)||!Mt(Z))break;X=Z}if(L.length&&Mt(N)&&!bie(N)&&!ls(N,o.floating)&&Array.from(L).every(Z=>!ls(X,Z)))return;if(xo(N)&&B){const Z=N.clientWidth>0&&N.scrollWidth>N.clientWidth,ae=N.clientHeight>0&&N.scrollHeight>N.clientHeight;let ne=ae&&j.offsetX>N.clientWidth;if(ae&&Ko(N).direction==="rtl"&&(ne=j.offsetX<=N.offsetWidth-N.clientWidth),ne||Z&&j.offsetY>N.clientHeight)return}const J=(P=a.current.floatingContext)==null?void 0:P.nodeId,U=p&&c1(p.nodesRef.current,J).some(Z=>{var ae;return vS(j,(ae=Z.context)==null?void 0:ae.elements.floating)});if(vS(j,o.floating)||vS(j,o.domReference)||U)return;const G=p?c1(p.nodesRef.current,J):[];if(G.length>0){let Z=!0;if(G.forEach(ae=>{var ne;if((ne=ae.context)!=null&&ne.open&&!ae.context.dataRef.current.__outsidePressBubbles){Z=!1;return}}),!Z)return}r(!1,j,"outside-press")}),R=Pc(j=>{var P;const O=()=>{var I;D(j),(I=su(j))==null||I.removeEventListener(l,O)};(P=su(j))==null||P.addEventListener(l,O)});S.useEffect(()=>{if(!n||!i)return;a.current.__escapeKeyBubbles=_,a.current.__outsidePressBubbles=C;function j(I){r(!1,I,"ancestor-scroll")}const P=Nc(o.floating);s&&P.addEventListener("keydown",x?k:T,x),v&&P.addEventListener(l,E?R:D,E);let O=[];return f&&(Mt(o.domReference)&&(O=Wc(o.domReference)),Mt(o.floating)&&(O=O.concat(Wc(o.floating))),!Mt(o.reference)&&o.reference&&o.reference.contextElement&&(O=O.concat(Wc(o.reference.contextElement)))),O=O.filter(I=>{var N;return I!==((N=P.defaultView)==null?void 0:N.visualViewport)}),O.forEach(I=>{I.addEventListener("scroll",j,{passive:!0})}),()=>{s&&P.removeEventListener("keydown",x?k:T,x),v&&P.removeEventListener(l,E?R:D,E),O.forEach(I=>{I.removeEventListener("scroll",j)})}},[a,o,s,v,l,n,r,f,i,_,C,T,x,k,D,E,R]),S.useEffect(()=>{g.current=!1},[v,l]);const F=S.useMemo(()=>({onKeyDown:T,[Use[d]]:j=>{u&&r(!1,j.nativeEvent,"reference-press")}}),[T,r,u,d]),B=S.useMemo(()=>({onKeyDown:T,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[$se[l]]:()=>{g.current=!0}}),[T,l]);return S.useMemo(()=>i?{reference:F,floating:B}:{},[i,F,B])}function zse(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=T_(),a=S.useRef({}),[i]=S.useState(()=>jse()),s=R8()!=null,[c,l]=S.useState(r.reference),u=Pc((h,m,p)=>{a.current.openEvent=h?m:void 0,i.emit("openchange",{open:h,event:m,reason:p,nested:s}),n==null||n(h,m,p)}),d=S.useMemo(()=>({setPositionReference:l}),[]),f=S.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return S.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:i,floatingId:o,refs:d}),[t,u,f,i,o,d])}function gd(e){e===void 0&&(e={});const{nodeId:t}=e,n=zse({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=S.useState(null),[s,c]=S.useState(null),u=(o==null?void 0:o.reference)||a,d=S.useRef(null),f=N8();qo(()=>{u&&(d.current=u)},[u]);const h=vse({...e,elements:{...o,...s&&{reference:s}}}),m=S.useCallback(w=>{const _=Mt(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;c(_),h.refs.setReference(_)},[h.refs]),p=S.useCallback(w=>{(Mt(w)||w===null)&&(d.current=w,i(w)),(Mt(h.refs.reference.current)||h.refs.reference.current===null||w!==null&&!Mt(w))&&h.refs.setReference(w)},[h.refs]),b=S.useMemo(()=>({...h.refs,setReference:p,setPositionReference:m,domReference:d}),[h.refs,p,m]),v=S.useMemo(()=>({...h.elements,domReference:u}),[h.elements,u]),g=S.useMemo(()=>({...h,...r,refs:b,elements:v,nodeId:t}),[h,b,v,t,r]);return qo(()=>{r.dataRef.current.floatingContext=g;const w=f==null?void 0:f.nodesRef.current.find(_=>_.id===t);w&&(w.context=g)}),S.useMemo(()=>({...h,context:g,refs:b,elements:v}),[h,b,v,g])}function Hse(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:a,elements:i}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=S.useRef(!1),u=S.useRef(),d=S.useRef(!0);S.useEffect(()=>{if(!s)return;const h=wo(i.domReference);function m(){!n&&xo(i.domReference)&&i.domReference===OA(Nc(i.domReference))&&(l.current=!0)}function p(){d.current=!0}return h.addEventListener("blur",m),h.addEventListener("keydown",p,!0),()=>{h.removeEventListener("blur",m),h.removeEventListener("keydown",p,!0)}},[i.domReference,n,s]),S.useEffect(()=>{if(!s)return;function h(m){let{reason:p}=m;(p==="reference-press"||p==="escape-key")&&(l.current=!0)}return o.on("openchange",h),()=>{o.off("openchange",h)}},[o,s]),S.useEffect(()=>()=>{clearTimeout(u.current)},[]);const f=S.useMemo(()=>({onPointerDown(h){mie(h.nativeEvent)||(d.current=!1)},onMouseLeave(){l.current=!1},onFocus(h){if(l.current)return;const m=su(h.nativeEvent);if(c&&Mt(m))try{if(Oz()&&pie())throw Error();if(!m.matches(":focus-visible"))return}catch{if(!d.current&&!Rz(m))return}r(!0,h.nativeEvent,"focus")},onBlur(h){l.current=!1;const m=h.relatedTarget,p=h.nativeEvent,b=Mt(m)&&m.hasAttribute(Ug("focus-guard"))&&m.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{var v;const g=OA(i.domReference?i.domReference.ownerDocument:document);!m&&g===i.domReference||ls((v=a.current.floatingContext)==null?void 0:v.refs.floating.current,g)||ls(i.domReference,g)||b||r(!1,p,"focus")})}}),[a,i.domReference,r,c]);return S.useMemo(()=>s?{reference:f}:{},[s,f])}const fO="active",hO="selected";function xS(e,t,n){const r=new Map,o=n==="item";let a=e;if(o&&e){const{[fO]:i,[hO]:s,...c}=e;a=c}return{...n==="floating"&&{tabIndex:-1},...a,...t.map(i=>{const s=i?i[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((i,s)=>(s&&Object.entries(s).forEach(c=>{let[l,u]=c;if(!(o&&[fO,hO].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof u=="function"){var d;(d=r.get(l))==null||d.push(u),i[l]=function(){for(var f,h=arguments.length,m=new Array(h),p=0;pb(...m)).find(b=>b!==void 0)}}}else i[l]=u}),i),{})}}function yd(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),o=S.useCallback(s=>xS(s,e,"reference"),t),a=S.useCallback(s=>xS(s,e,"floating"),n),i=S.useCallback(s=>xS(s,e,"item"),r);return S.useMemo(()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i}),[o,a,i])}const qse=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Wse(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:a=!0,role:i="dialog"}=t,s=(n=qse.get(i))!=null?n:i,c=T_(),u=R8()!=null,d=S.useMemo(()=>s==="tooltip"||i==="label"?{["aria-"+(i==="label"?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?o:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:c},...s==="menu"&&u&&{role:"menuitem"},...i==="select"&&{"aria-autocomplete":"none"},...i==="combobox"&&{"aria-autocomplete":"list"}},[s,o,u,r,c,i]),f=S.useMemo(()=>{const m={id:o,...s&&{role:s}};return s==="tooltip"||i==="label"?m:{...m,...s==="menu"&&{"aria-labelledby":c}}},[s,o,c,i]),h=S.useCallback(m=>{let{active:p,selected:b}=m;const v={role:"option",...p&&{id:o+"-option"}};switch(i){case"select":return{...v,"aria-selected":p&&b};case"combobox":return{...v,...p&&{"aria-selected":!0}}}return{}},[o,i]);return S.useMemo(()=>a?{reference:d,floating:f,item:h}:{},[a,d,f,h])}const mO=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Kd(e,t){return typeof e=="function"?e(t):e}function Gse(e,t){const[n,r]=S.useState(e);return e&&!n&&r(!0),S.useEffect(()=>{if(!e&&n){const o=setTimeout(()=>r(!1),t);return()=>clearTimeout(o)}},[e,n,t]),n}function Vse(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,i=(typeof o=="number"?o:o.close)||0,[s,c]=S.useState("unmounted"),l=Gse(n,i);return!l&&s==="close"&&c("unmounted"),qo(()=>{if(r){if(n){c("initial");const u=requestAnimationFrame(()=>{c("open")});return()=>{cancelAnimationFrame(u)}}c("close")}},[n,r]),{isMounted:l,status:s}}function bd(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:o,common:a,duration:i=250}=t,s=e.placement,c=s.split("-")[0],l=S.useMemo(()=>({side:c,placement:s}),[c,s]),u=typeof i=="number",d=(u?i:i.open)||0,f=(u?i:i.close)||0,[h,m]=S.useState(()=>({...Kd(a,l),...Kd(n,l)})),{isMounted:p,status:b}=Vse(e,{duration:i}),v=gu(n),g=gu(r),w=gu(o),_=gu(a);return qo(()=>{const C=Kd(v.current,l),x=Kd(w.current,l),E=Kd(_.current,l),T=Kd(g.current,l)||Object.keys(C).reduce((k,D)=>(k[D]="",k),{});if(b==="initial"&&m(k=>({transitionProperty:k.transitionProperty,...E,...C})),b==="open"&&m({transitionProperty:Object.keys(T).map(mO).join(","),transitionDuration:d+"ms",...E,...T}),b==="close"){const k=x||C;m({transitionProperty:Object.keys(k).map(mO).join(","),transitionDuration:f+"ms",...E,...k})}},[f,w,v,g,_,d,b,l]),{isMounted:p,styles:h}}function pO(e,t){const[n,r]=e;let o=!1;const a=t.length;for(let i=0,s=a-1;i=r!=d>=r&&n<=(u-c)*(r-l)/(d-l)+c&&(o=!o)}return o}function Kse(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Zz(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,a=!1,i=null,s=null,c=performance.now();function l(d,f){const h=performance.now(),m=h-c;if(i===null||s===null||m===0)return i=d,s=f,c=h,null;const p=d-i,b=f-s,g=Math.sqrt(p*p+b*b)/m;return i=d,s=f,c=h,g}const u=d=>{let{x:f,y:h,placement:m,elements:p,onClose:b,nodeId:v,tree:g}=d;return function(_){function C(){clearTimeout(o),b()}if(clearTimeout(o),!p.domReference||!p.floating||m==null||f==null||h==null)return;const{clientX:x,clientY:E}=_,T=[x,E],k=su(_),D=_.type==="mouseleave",R=ls(p.floating,k),F=ls(p.domReference,k),B=p.domReference.getBoundingClientRect(),j=p.floating.getBoundingClientRect(),P=m.split("-")[0],O=f>j.right-j.width/2,I=h>j.bottom-j.height/2,N=Kse(T,B),M=j.width>B.width,L=j.height>B.height,X=(M?B:j).left,J=(M?B:j).right,U=(L?B:j).top,G=(L?B:j).bottom;if(R&&(a=!0,!D))return;if(F&&(a=!1),F&&!D){a=!0;return}if(D&&Mt(_.relatedTarget)&&ls(p.floating,_.relatedTarget)||g&&c1(g.nodesRef.current,v).some(ne=>{let{context:ie}=ne;return ie==null?void 0:ie.open}))return;if(P==="top"&&h>=B.bottom-1||P==="bottom"&&h<=B.top+1||P==="left"&&f>=B.right-1||P==="right"&&f<=B.left+1)return C();let Z=[];switch(P){case"top":Z=[[X,B.top+1],[X,j.bottom-1],[J,j.bottom-1],[J,B.top+1]];break;case"bottom":Z=[[X,j.top+1],[X,B.bottom-1],[J,B.bottom-1],[J,j.top+1]];break;case"left":Z=[[j.right-1,G],[j.right-1,U],[B.left+1,U],[B.left+1,G]];break;case"right":Z=[[B.right-1,G],[B.right-1,U],[j.left+1,U],[j.left+1,G]];break}function ae(ne){let[ie,te]=ne;switch(P){case"top":{const ee=[M?ie+t/2:O?ie+t*4:ie-t*4,te+t+1],re=[M?ie-t/2:O?ie+t*4:ie-t*4,te+t+1],z=[[j.left,O||M?j.bottom-t:j.top],[j.right,O?M?j.bottom-t:j.top:j.bottom-t]];return[ee,re,...z]}case"bottom":{const ee=[M?ie+t/2:O?ie+t*4:ie-t*4,te-t],re=[M?ie-t/2:O?ie+t*4:ie-t*4,te-t],z=[[j.left,O||M?j.top+t:j.bottom],[j.right,O?M?j.top+t:j.bottom:j.top+t]];return[ee,re,...z]}case"left":{const ee=[ie+t+1,L?te+t/2:I?te+t*4:te-t*4],re=[ie+t+1,L?te-t/2:I?te+t*4:te-t*4];return[...[[I||L?j.right-t:j.left,j.top],[I?L?j.right-t:j.left:j.right-t,j.bottom]],ee,re]}case"right":{const ee=[ie-t,L?te+t/2:I?te+t*4:te-t*4],re=[ie-t,L?te-t/2:I?te+t*4:te-t*4],z=[[I||L?j.left+t:j.right,j.top],[I?L?j.left+t:j.right:j.left+t,j.bottom]];return[ee,re,...z]}}}if(!pO([x,E],Z)){if(a&&!N)return C();if(!D&&r){const ne=l(_.clientX,_.clientY);if(ne!==null&&ne<.1)return C()}pO([x,E],ae([f,h]))?!a&&r&&(o=window.setTimeout(C,40)):C()}}};return u.__options={blockPointerEvents:n},u}function At({children:e,content:t,enabledSafePolygon:n,className:r,contentClassName:o,enabled:a=!0,status:i="default"}){const[s,c]=S.useState(!1),l=S.useRef(null),{refs:u,context:d,floatingStyles:f}=gd({open:s,onOpenChange:c,placement:"top",middleware:[hd(10),_se(),Ese(),xse({element:l})],whileElementsMounted:hse}),h=A_(d,{move:!1,handleClose:n?Zz():void 0}),m=Hse(d),p=pd(d),b=Wse(d,{role:"tooltip"}),{getReferenceProps:v,getFloatingProps:g}=yd([h,m,p,b]),{styles:w,isMounted:_}=bd(d,{initial:{transform:"scale(0.5)",opacity:0},open:{transform:"scale(1)",opacity:1},close:{transform:"scale(0.5)",opacity:0}});return a?y.jsxs(y.Fragment,{children:[y.jsx("div",{ref:u.setReference,...v(),className:r,children:e}),_&&y.jsx(md,{children:y.jsxs("div",{ref:u.setFloating,style:f,...g(),className:"z-30",children:[y.jsx(kse,{ref:l,style:w,context:d,fill:i==="warning"?"#FAAD14":"#0085FF"}),y.jsx("div",{style:w,className:`px-medium py-small flex items-center rounded-lg ${i==="warning"?"bg-app-orange":"bg-primary"} ${o}`,children:typeof t=="string"?y.jsx("span",{className:"text-xs font-semibold",children:t}):t})]})})]}):y.jsx("div",{className:r,children:e})}function Yse(){return y.jsxs("div",{className:"app-footer gap-medium px-medium flex w-full items-center justify-center lg:justify-between lg:px-5",children:[y.jsx("span",{className:"text-xs font-semibold text-white/50",children:`© ${new Date().getFullYear()} Helix Bridge`}),y.jsx("div",{className:"h-3 w-[1px] bg-white/30 lg:hidden"}),y.jsxs("div",{className:"flex items-center gap-5",children:[y.jsx(Qse,{}),y.jsx("div",{className:"hidden h-3 w-[1px] bg-white/30 lg:block"}),y.jsx(Xse,{})]})]})}function Qse(){const e=[{label:"Explorer",path:"/explorer"},{label:"XToken",path:"https://xtoken.box",external:!0},{label:"Docs",path:"https://docs.helixbridge.app",external:!0}],[t,n]=S.useState({label:"Saa",path:"ss",pc:!0,external:!0});return S.useEffect(()=>{window.location.hostname==="helixbridge.app"?n(r=>({...r,label:"Testnet",path:"https://testnet.helixbridge.app"})):window.location.hostname==="testnet.helixbridge.app"?n(r=>({...r,label:"Mainnet",path:"https://helixbridge.app"})):window.location.hostname==="helix-stg-mainnet.vercel.app"?n(r=>({...r,label:"Testnet",path:"https://helix-stg-testnet.vercel.app"})):window.location.hostname==="helix-stg-testnet.vercel.app"?n(r=>({...r,label:"Mainnet",path:"https://helix-stg-mainnet.vercel.app"})):window.location.hostname==="helix-dev-mainnet.vercel.app"?n(r=>({...r,label:"Testnet",path:"https://helix-dev-testnet.vercel.app"})):window.location.hostname==="helix-dev-testnet.vercel.app"?n(r=>({...r,label:"Mainnet",path:"https://helix-dev-mainnet.vercel.app"})):n(r=>({...r,label:"",path:""}))},[]),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[e.concat(t).filter(r=>r.path).map(r=>r.external?y.jsx("a",{href:r.path,target:"_blank",rel:"noopener noreferrer",className:`text-xs font-semibold text-white/50 transition hover:text-white hover:underline active:scale-95 ${r.pc?"hidden lg:inline":""}`,children:r.label},r.label):y.jsx(Su,{to:r.path,className:`text-xs font-semibold text-white/50 transition hover:text-white hover:underline active:scale-95 ${r.pc?"hidden lg:inline":""}`,children:r.label},r.label)),window.location.hostname==="helixbridge.app"&&y.jsx(At,{contentClassName:"w-72",content:"For a fully decentralized experience, you can use the IPFS deployed version.",children:y.jsx("a",{href:"https://helixbridge.eth.limo",target:"_blank",rel:"noopener noreferrer",className:"hidden text-xs font-semibold text-white/50 transition hover:text-white hover:underline active:scale-95 lg:inline",children:"IPFS mirror"})})]})}function Xse(){const e=[{link:"https://github.com/helix-bridge",icon:y.jsx("img",{width:16,height:16,alt:"Github",src:"images/social/github.svg"})},{link:"https://x.com/helixofficialx",icon:y.jsx("img",{width:16,height:16,alt:"X",src:"images/social/x.svg"})},{link:"https://discord.gg/6XyyNGugdE",icon:y.jsx("img",{width:20,height:20,alt:"Discord",src:"images/social/discord.svg"})},{link:"mailto:hello@helixbridge.app",icon:y.jsx("img",{width:16,height:16,alt:"Email",src:"images/social/email.svg"})}];return y.jsx("div",{className:"hidden items-center gap-5 lg:flex",children:e.map((t,n)=>y.jsx("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"opacity-60 transition hover:-translate-y-[2px] hover:opacity-100 active:translate-y-0",children:t.icon},n))})}const eH=S.createContext({}),$g=()=>S.useContext(eH),tH=S.createContext({}),nH=()=>S.useContext(tH),rH=S.createContext({}),B8=()=>S.useContext(rH);function zg(e){const[t,n]=S.useState(e),r=S.useCallback(()=>n(!0),[]),o=S.useCallback(()=>n(!1),[]),a=S.useCallback(()=>n(i=>!i),[]);return{state:t,toggle:a,setTrue:r,setFalse:o,setState:n}}function zu(e,t=5,n=4){return e.length>16?`${e.slice(0,t)}...${e.slice(-1*n)}`:e}const Jse="modulepreload",Zse=function(e,t){return new URL(e,t).href},gO={},me=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(c=>{if(c=Zse(c,r),c in gO)return;gO[c]=!0;const l=c.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(!!r)for(let h=a.length-1;h>=0;h--){const m=a[h];if(m.href===c&&(!l||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${u}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":Jse,l||(f.as="script",f.crossOrigin=""),f.href=c,s&&f.setAttribute("nonce",s),document.head.appendChild(f),l)return new Promise((h,m)=>{f.addEventListener("load",h),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}return o.then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})},ece="0.9.8";let Mr=class FA extends Error{constructor(t,n={}){var i;const r=n.cause instanceof FA?n.cause.details:(i=n.cause)!=null&&i.message?n.cause.message:n.details,o=n.cause instanceof FA&&n.cause.docsPath||n.docsPath,a=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${ece}`].join(` -`);super(a),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 tce(e){return e}function _l(e,t){const n=e.exec(t);return n==null?void 0:n.groups}const oH=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,aH=/^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)?$/,iH=/^\(.+?\).*?$/,yO=/^tuple(?(\[(\d*)\])*)$/;function vw(e){let t=e.type;if(yO.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let o=0;o[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function rce(e){return sH.test(e)}function oce(e){return _l(sH,e)}const cH=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function ace(e){return cH.test(e)}function ice(e){return _l(cH,e)}const lH=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;function sce(e){return lH.test(e)}function cce(e){return _l(lH,e)}const uH=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;function Hg(e){return uH.test(e)}function lce(e){return _l(uH,e)}const dH=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;function uce(e){return dH.test(e)}function dce(e){return _l(dH,e)}const fce=/^fallback\(\)$/;function hce(e){return fce.test(e)}const mce=/^receive\(\) external payable$/;function pce(e){return mce.test(e)}const ww=new Set(["memory","indexed","storage","calldata"]),gce=new Set(["indexed"]),MA=new Set(["calldata","memory","storage"]);class fH extends Mr{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human.html#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class hH extends Mr{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 mH extends Mr{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 pH extends Mr{constructor({param:t}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(t,null,2)})`,docsPath:"/api/human.html#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}class gH extends Mr{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human.html#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class yH extends Mr{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class bH extends Mr{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 vH extends Mr{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 wH extends Mr{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 EH extends Mr{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 jf extends Mr{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class _H extends Mr{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class xH extends Mr{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 CH extends Mr{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 SH extends Mr{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 yce(e,t){return t?`${t}:${e}`:e}const CS=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 LA(e,t={}){if(sce(e)){const n=cce(e);if(!n)throw new jf({signature:e,type:"function"});const r=Mo(n.parameters),o=[],a=r.length;for(let s=0;s[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,vce=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,wce=/^u?int$/;function Va(e,t){var d,f;const n=yce(e,t==null?void 0:t.type);if(CS.has(n))return CS.get(n);const r=iH.test(e),o=_l(r?vce:bce,e);if(!o)throw new yH({param:e});if(o.name&&_ce(o.name))throw new bH({param:e,name:o.name});const a=o.name?{name:o.name}:{},i=o.modifier==="indexed"?{indexed:!0}:{},s=(t==null?void 0:t.structs)??{};let c,l={};if(r){c="tuple";const h=Mo(o.type),m=[],p=h.length;for(let b=0;b[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/;function AH(e,t,n=new Set){const r=[],o=e.length;for(let a=0;a{var o;return((o=e[t.name||n])==null?void 0:o.call(e,r))??t(e,r)}}function xs(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new qce(e.type);return`${e.name}(${k_(e.inputs,{includeName:t})})`}function k_(e,{includeName:t=!1}={}){return e?e.map(n=>jce(n,{includeName:t})).join(t?", ":","):""}function jce(e,{includeName:t}){return e.type.startsWith("tuple")?`(${k_(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function Ea(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Pn(e){return Ea(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const Pce="1.21.3",Ice=e=>e,j_=e=>e,Oce=()=>`viem@${Pce}`;let de=class UA extends Error{constructor(t,n={}){var a;super(),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:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:Oce()});const r=n.cause instanceof UA?n.cause.details:(a=n.cause)!=null&&a.message?n.cause.message:n.details,o=n.cause instanceof UA&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(` -`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return DH(this,t)}};function DH(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e?DH(e.cause,t):t?null:e}class Rce extends de{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(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class bO extends de{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(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class M8 extends de{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(` -`),{metaMessages:[`Params: (${k_(n,{includeName:!0})})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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 P_ extends de{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class Nce extends de{constructor({expectedLength:t,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class Bce extends de{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${Pn(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class kH extends de{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class jH extends de{constructor(t,{docsPath:n}){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://openchain.xyz/signatures?query=${t}.`].join(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class Fce extends de{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class Mce extends de{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://openchain.xyz/signatures?query=${t}.`].join(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class vO extends de{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(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class Ew extends de{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(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class Lce extends de{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(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class Uce extends de{constructor(t,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${xs(t.abiItem)}\`, and`,`\`${n.type}\` in \`${xs(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:"AbiItemAmbiguityError"})}}class PH extends de{constructor({expectedSize:t,givenSize:n}){super(`Expected bytes${t}, got bytes${n}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class Hu extends de{constructor({abiItem:t,data:n,params:r,size:o}){super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join(` -`),{metaMessages:[`Params: (${k_(r,{includeName:!0})})`,`Data: ${n} (${o} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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 nm extends de{constructor({abiItem:t,param:n}){super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${xs(t,{includeName:!0})}".`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class $ce extends de{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class zce extends de{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class Hce extends de{constructor(t){super([`Value "${t}" is not a valid array.`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class qce extends de{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}class Wce extends de{constructor(t){super(`Type "${t}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}let Gce=class extends de{constructor(t){super(`Filter type "${t}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}},IH=class extends de{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:"SliceOffsetOutOfBoundsError"})}},OH=class extends de{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:"SizeExceedsPaddingSizeError"})}};function us(e,{dir:t,size:n=32}={}){return typeof e=="string"?Gc(e,{dir:t,size:n}):Vce(e,{dir:t,size:n})}function Gc(e,{dir:t,size:n=32}={}){if(n===null)return e;const r=e.replace("0x","");if(r.length>n*2)throw new OH({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function Vce(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new OH({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let o=0;ot)throw new Qce({givenSize:Pn(e),maxSize:t})}function wn(e,t={}){const{signed:n}=t;t.size&&xl(e,{size:t.size});const r=BigInt(e);if(!n)return r;const o=(e.length-2)/2,a=(1n<t.toString(16).padStart(2,"0"));function rt(e,t={}){return typeof e=="number"||typeof e=="bigint"?Xe(e,t):typeof e=="string"?I_(e,t):typeof e=="boolean"?L8(e,t):qu(e,t)}function L8(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(xl(n,{size:t.size}),us(n,{size:t.size})):n}function qu(e,t={}){let n="";for(let o=0;oa||o=Ki.zero&&e<=Ki.nine)return e-Ki.zero;if(e>=Ki.A&&e<=Ki.F)return e-(Ki.A-10);if(e>=Ki.a&&e<=Ki.f)return e-(Ki.a-10)}function qg(e,t={}){let n=e;t.size&&(xl(n,{size:t.size}),n=us(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const o=r.length/2,a=new Uint8Array(o);for(let i=0,s=0;i{const t=typeof e=="string"?e:F8(e);return rle(t)},ole=e=>NH(e);function _w(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function U8(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function ale(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");_w(e.outputLen),_w(e.blockLen)}function ph(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 BH(e,t){U8(e);const n=t.outputLen;if(e.length>EO&Yb)}:{h:Number(e>>EO&Yb)|0,l:Number(e&Yb)|0}}function sle(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;oe<>>32-n,lle=(e,t,n)=>t<>>32-n,ule=(e,t,n)=>t<>>64-n,dle=(e,t,n)=>e<>>64-n,SS=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const FH=e=>e instanceof Uint8Array,fle=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),TS=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),gi=(e,t)=>e<<32-t|e>>>t,hle=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!hle)throw new Error("Non little-endian hardware is not supported");function mle(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Wg(e){if(typeof e=="string"&&(e=mle(e)),!FH(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}function ple(...e){const t=new Uint8Array(e.reduce((r,o)=>r+o.length,0));let n=0;return e.forEach(r=>{if(!FH(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}class $8{clone(){return this._cloneInto()}}function O_(e){const t=r=>e().update(Wg(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function gle(e){const t=(r,o)=>e(o).update(Wg(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}function MH(e=32){if(SS&&typeof SS.getRandomValues=="function")return SS.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}const[LH,UH,$H]=[[],[],[]],yle=BigInt(0),fp=BigInt(1),ble=BigInt(2),vle=BigInt(7),wle=BigInt(256),Ele=BigInt(113);for(let e=0,t=fp,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],LH.push(2*(5*r+n)),UH.push((e+1)*(e+2)/2%64);let o=yle;for(let a=0;a<7;a++)t=(t<>vle)*Ele)%wle,t&ble&&(o^=fp<<(fp<n>32?ule(e,t,n):cle(e,t,n),xO=(e,t,n)=>n>32?dle(e,t,n):lle(e,t,n);function zH(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 s=(i+8)%10,c=(i+2)%10,l=n[c],u=n[c+1],d=_O(l,u,1)^n[s],f=xO(l,u,1)^n[s+1];for(let h=0;h<50;h+=10)e[i+h]^=d,e[i+h+1]^=f}let o=e[2],a=e[3];for(let i=0;i<24;i++){const s=UH[i],c=_O(o,a,s),l=xO(o,a,s),u=LH[i];o=e[u],a=e[u+1],e[u]=c,e[u+1]=l}for(let i=0;i<50;i+=10){for(let s=0;s<10;s++)n[s]=e[i+s];for(let s=0;s<10;s++)e[i+s]^=~n[(s+2)%10]&n[(s+4)%10]}e[0]^=_le[r],e[1]^=xle[r]}n.fill(0)}class Gg extends $8{constructor(t,n,r,o=!1,a=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,_w(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=fle(this.state)}keccak(){zH(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){ph(this);const{blockLen:n,state:r}=this;t=Wg(t);const o=t.length;for(let a=0;a=r&&this.keccak();const i=Math.min(r-this.posOut,a-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 _w(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(BH(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,this.state.fill(0)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:o,rounds:a,enableXOF:i}=this;return t||(t=new Gg(n,r,o,i,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=r,t.outputLen=o,t.enableXOF=i,t.destroyed=this.destroyed,t}}const Cl=(e,t,n)=>O_(()=>new Gg(t,e,n)),Cle=Cl(6,144,224/8),Sle=Cl(6,136,256/8),Tle=Cl(6,104,384/8),Ale=Cl(6,72,512/8),Dle=Cl(1,144,224/8),HH=Cl(1,136,256/8),kle=Cl(1,104,384/8),jle=Cl(1,72,512/8),qH=(e,t,n)=>gle((r={})=>new Gg(t,e,r.dkLen===void 0?n:r.dkLen,!0)),Ple=qH(31,168,128/8),Ile=qH(31,136,256/8),Ole=Object.freeze(Object.defineProperty({__proto__:null,Keccak:Gg,keccakP:zH,keccak_224:Dle,keccak_256:HH,keccak_384:kle,keccak_512:jle,sha3_224:Cle,sha3_256:Sle,sha3_384:Tle,sha3_512:Ale,shake128:Ple,shake256:Ile},Symbol.toStringTag,{value:"Module"}));function Or(e,t){const n=t||"hex",r=HH(Ea(e,{strict:!1})?rl(e):e);return n==="bytes"?r:rt(r)}const Rle=e=>Or(rl(e)),z8=e=>Rle(ole(e));let Wo=class extends de{constructor({address:t}){super(`Address "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}};const Nle=/^0x[a-fA-F0-9]{40}$/;function Hn(e){return Nle.test(e)}function Cs(e){return typeof e[0]=="string"?Sl(e):Ble(e)}function Ble(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 Sl(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function kn(e,t,n,{strict:r}={}){return Ea(e,{strict:!1})?Mle(e,t,n,{strict:r}):Fle(e,t,n,{strict:r})}function WH(e,t){if(typeof t=="number"&&t>0&&t>Pn(e)-1)throw new IH({offset:t,position:"start",size:Pn(e)})}function GH(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Pn(e)!==n-t)throw new IH({offset:n,position:"end",size:Pn(e)})}function Fle(e,t,n,{strict:r}={}){WH(e,t);const o=e.slice(t,n);return r&&GH(o,t,n),o}function Mle(e,t,n,{strict:r}={}){WH(e,t);const o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&GH(o,t,n),o}function Vg(e,t){if(e.length!==t.length)throw new kH({expectedLength:e.length,givenLength:t.length});const n=Lle({params:e,values:t}),r=q8(n);return r.length===0?"0x":r}function Lle({params:e,values:t}){const n=[];for(let r=0;r0?Cs([s,i]):s}}if(o)return{dynamic:!0,encoded:i}}return{dynamic:!1,encoded:Cs(a.map(({encoded:i})=>i))}}function zle(e,{param:t}){const[,n]=t.type.split("bytes"),r=Pn(e);if(!n){let o=e;return r%32!==0&&(o=Gc(o,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Cs([Gc(Xe(r,{size:32})),o])}}if(r!==parseInt(n))throw new Bce({expectedSize:parseInt(n),value:e});return{dynamic:!1,encoded:Gc(e,{dir:"right"})}}function Hle(e){return{dynamic:!1,encoded:Gc(L8(e))}}function qle(e,{signed:t}){return{dynamic:!1,encoded:Xe(e,{size:32,signed:t})}}function Wle(e){const t=I_(e),n=Math.ceil(Pn(t)/32),r=[];for(let o=0;oo))}}function R_(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}const Vle=e=>Or(rl(e)),W8=e=>kn(Vle(NH(e)),0,4);function Kg({abi:e,args:t=[],name:n}){const r=Ea(n,{strict:!1}),o=e.filter(i=>r?i.type==="function"?W8(i)===n:i.type==="event"?z8(i)===n:!1:"name"in i&&i.name===n);if(o.length===0)return;if(o.length===1)return o[0];let a;for(const i of o){if(!("inputs"in i))continue;if(!t||t.length===0){if(!i.inputs||i.inputs.length===0)return i;continue}if(!i.inputs||i.inputs.length===0||i.inputs.length!==t.length)continue;if(t.every((c,l)=>{const u="inputs"in i&&i.inputs[l];return u?$A(c,u):!1})){if(a&&"inputs"in a&&a.inputs){const c=VH(i.inputs,a.inputs,t);if(c)throw new Uce({abiItem:i,type:c[0]},{abiItem:a,type:c[1]})}a=i}}return a||o[0]}function $A(e,t){const n=typeof e,r=t.type;switch(r){case"address":return Hn(e);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,a)=>$A(Object.values(e)[a],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=>$A(o,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function VH(e,t,n){for(const r in e){const o=e[r],a=t[r];if(o.type==="tuple"&&a.type==="tuple"&&"components"in o&&"components"in a)return VH(o.components,a.components,n[r]);const i=[o.type,a.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")||i.includes("address")&&i.includes("bytes")?Hn(n[r]):!1)return i}}function Yg({abi:e,eventName:t,args:n}){var s;let r=e[0];if(t&&(r=Kg({abi:e,args:n,name:t}),!r))throw new vO(t,{docsPath:"/docs/contract/encodeEventTopics"});if(r.type!=="event")throw new vO(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const o=xs(r),a=z8(o);let i=[];if(n&&"inputs"in r){const c=(s=r.inputs)==null?void 0:s.filter(u=>"indexed"in u&&u.indexed),l=Array.isArray(n)?n:Object.values(n).length>0?(c==null?void 0:c.map(u=>n[u.name]))??[]:[];l.length>0&&(i=(c==null?void 0:c.map((u,d)=>Array.isArray(l[d])?l[d].map((f,h)=>CO({param:u,value:l[d][h]})):l[d]?CO({param:u,value:l[d]}):null))??[])}return[a,...i]}function CO({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return Or(rl(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new Gce(e.type);return Vg([e],[t])}function N_(e,{method:t}){var r,o;const n={};return e.transport.type==="fallback"&&((o=(r=e.transport).onResponse)==null||o.call(r,({method:a,response:i,status:s,transport:c})=>{s==="success"&&t===a&&(n[i]=c.request)})),a=>n[a]||e.request}async function G8(e,{address:t,abi:n,args:r,eventName:o,fromBlock:a,strict:i,toBlock:s}){const c=N_(e,{method:"eth_newFilter"}),l=o?Yg({abi:n,args:r,eventName:o}):void 0,u=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?Xe(a):a,toBlock:typeof s=="bigint"?Xe(s):s,topics:l}]});return{abi:n,args:r,eventName:o,id:u,request:c(u),strict:i,type:"event"}}function Ta(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}function oi({abi:e,args:t,functionName:n}){let r=e[0];if(n&&(r=Kg({abi:e,args:t,name:n}),!r))throw new Ew(n,{docsPath:"/docs/contract/encodeFunctionData"});if(r.type!=="function")throw new Ew(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const o=xs(r),a=W8(o),i="inputs"in r&&r.inputs?Vg(r.inputs,t??[]):void 0;return Sl([a,i??"0x"])}const KH={1:"An `assert` condition failed.",17:"Arithmic 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."},Kle={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},Yle={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function V8(e,t){const n=e.substring(2).toLowerCase(),r=Or(ds(n),"bytes"),o=n.split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&o[a]&&(o[a]=o[a].toUpperCase()),(r[a>>1]&15)>=8&&o[a+1]&&(o[a+1]=o[a+1].toUpperCase());return`0x${o.join("")}`}function Rr(e,t){if(!Hn(e))throw new Wo({address:e});return V8(e)}function B_(e,t){if(t==="0x"&&e.length>0)throw new P_;if(Pn(t)&&Pn(t)<32)throw new M8({data:t,params:e,size:Pn(t)});return Qle({data:t,params:e})}function Qle({data:e,params:t}){const n=[];let r=0;for(let o=0;o=Pn(e))throw new M8({data:e,params:t,size:Pn(e)});const a=t[o],{consumed:i,value:s}=Yf({data:e,param:a,position:r});n.push(s),r+=i}return n}function Yf({data:e,param:t,position:n}){const r=R_(t.type);if(r){const[a,i]=r;return Jle(e,{length:a,param:{...t,type:i},position:n})}if(t.type==="tuple")return rue(e,{param:t,position:n});if(t.type==="string")return nue(e,{position:n});if(t.type.startsWith("bytes"))return eue(e,{param:t,position:n});const o=kn(e,n,n+32,{strict:!0});if(t.type.startsWith("uint")||t.type.startsWith("int"))return tue(o,{param:t});if(t.type==="address")return Xle(o);if(t.type==="bool")return Zle(o);throw new zce(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function Xle(e){return{consumed:32,value:V8(kn(e,-20))}}function Jle(e,{param:t,length:n,position:r}){if(!n){const i=pr(kn(e,r,r+32,{strict:!0})),s=pr(kn(e,i,i+32,{strict:!0}));let c=0;const l=[];for(let u=0;u48?wn(e,{signed:n}):pr(e,{signed:n})}}function nue(e,{position:t}){const n=pr(kn(e,t,t+32,{strict:!0})),r=pr(kn(e,n,n+32,{strict:!0}));return r===0?{consumed:32,value:""}:{consumed:32,value:RH(Za(kn(e,n+32,n+32+r,{strict:!0})))}}function rue(e,{param:t,position:n}){const r=t.components.length===0||t.components.some(({name:i})=>!i),o=r?[]:{};let a=0;if(xw(t)){const i=pr(kn(e,n,n+32,{strict:!0}));for(let s=0;sa.type==="error"&&n===W8(xs(a)));if(!o)throw new jH(n,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:o,args:"inputs"in o&&o.inputs&&o.inputs.length>0?B_(o.inputs,kn(t,4)):void 0,errorName:o.name}}const Xr=(e,t,n)=>JSON.stringify(e,(r,o)=>{const a=typeof o=="bigint"?o.toString():o;return typeof t=="function"?t(r,a):a},n);function YH({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,a)=>`${r&&o.name?`${o.name}: `:""}${typeof t[a]=="object"?Xr(t[a]):t[a]}`).join(", ")})`}const aue={gwei:9,wei:18},iue={ether:-9,wei:9},sue={ether:-18,gwei:-9};function Wu(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[o,a]=[n.slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),`${r?"-":""}${o||"0"}${a?`.${a}`:""}`}function K8(e,t="wei"){return Wu(e,aue[t])}function Eo(e,t="wei"){return Wu(e,iue[t])}function Qg(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(` -`)}let cue=class extends de{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}},lue=class extends de{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}},uue=class extends de{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Qg(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","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}},due=class extends de{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}},fue=class extends de{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var m;const h=Qg({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"&&`${K8(f)} ${((m=o==null?void 0:o.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${Eo(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${Eo(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${Eo(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",h].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=t}},QH=class extends de{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:o,index:a}){let i="Transaction";r&&a!==void 0&&(i=`Transaction at block time "${r}" at index "${a}"`),t&&a!==void 0&&(i=`Transaction at block hash "${t}" at index "${a}"`),n&&a!==void 0&&(i=`Transaction at block number "${n}" at index "${a}"`),o&&(i=`Transaction with hash "${o}"`),super(`${i} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}},XH=class extends de{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}},hue=class extends de{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}},JH=class extends de{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var p;const h=n?Ta(n):void 0,m=Qg({from:h==null?void 0:h.address,to:d,value:typeof f<"u"&&`${K8(f)} ${((p=o==null?void 0:o.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${Eo(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${Eo(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${Eo(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=t}},Y8=class extends de{constructor(t,{abi:n,args:r,contractAddress:o,docsPath:a,functionName:i,sender:s}){const c=Kg({abi:n,args:r,name:i}),l=c?YH({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,u=c?xs(c,{includeName:!0}):void 0,d=Qg({address:o&&Ice(o),function:u,args:l&&l!=="()"&&`${[...Array((i==null?void 0:i.length)??0).keys()].map(()=>" ").join("")}${l}`,sender:s});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Contract Call:",d].filter(Boolean)}),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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=o,this.functionName=i,this.sender=s}},zA=class extends de{constructor({abi:t,data:n,functionName:r,message:o}){let a,i,s,c;if(n&&n!=="0x")try{i=oue({abi:t,data:n});const{abiItem:u,errorName:d,args:f}=i;if(d==="Error")c=f[0];else if(d==="Panic"){const[h]=f;c=KH[h]}else{const h=u?xs(u,{includeName:!0}):void 0,m=u&&f?YH({abiItem:u,args:f,includeFunctionName:!1,includeName:!1}):void 0;s=[h?`Error: ${h}`:"",m&&m!=="()"?` ${[...Array((d==null?void 0:d.length)??0).keys()].map(()=>" ").join("")}${m}`:""]}}catch(u){a=u}else o&&(c=o);let l;a instanceof jH&&(l=a.signature,s=[`Unable to decode signature "${l}" 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://openchain.xyz/signatures?query=${l}.`]),super(c&&c!=="execution reverted"||l?[`The contract function "${r}" reverted with the following ${l?"signature":"reason"}:`,c||l].join(` -`):`The contract function "${r}" reverted.`,{cause:a,metaMessages:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{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=i,this.reason=c,this.signature=l}},mue=class extends de{constructor({functionName:t}){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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}},Q8=class extends de{constructor({data:t,message:n}){super(n||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}},g0=class extends de{constructor({body:t,details:n,headers:r,status:o,url:a}){super("HTTP request failed.",{details:n,metaMessages:[o&&`Status: ${o}`,`URL: ${j_(a)}`,t&&`Request body: ${Xr(t)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=r,this.status=o,this.url=a}},pue=class extends de{constructor({body:t,details:n,url:r}){super("WebSocket request failed.",{details:n,metaMessages:[`URL: ${j_(r)}`,`Request body: ${Xr(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}},X8=class extends de{constructor({body:t,error:n,url:r}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${j_(r)}`,`Request body: ${Xr(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code}},HA=class extends de{constructor({body:t,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${j_(n)}`,`Request body: ${Xr(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}};const gue=-1;let So=class extends de{constructor(t,{code:n,docsPath:r,metaMessages:o,shortMessage:a}){super(a,{cause:t,docsPath:r,metaMessages:o||(t==null?void 0:t.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=t.name,this.code=t instanceof X8?t.code:n??gue}},rm=class extends So{constructor(t,n){super(t,n),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}},qA=class ZH extends So{constructor(t){super(t,{code:ZH.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}};Object.defineProperty(qA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});let WA=class eq extends So{constructor(t){super(t,{code:eq.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}};Object.defineProperty(WA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});let GA=class tq extends So{constructor(t){super(t,{code:tq.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}};Object.defineProperty(GA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});let VA=class nq extends So{constructor(t){super(t,{code:nq.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}};Object.defineProperty(VA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});let Cw=class rq extends So{constructor(t){super(t,{code:rq.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}};Object.defineProperty(Cw,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});let J0=class oq extends So{constructor(t){super(t,{code:oq.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}};Object.defineProperty(J0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});let KA=class aq extends So{constructor(t){super(t,{code:aq.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}};Object.defineProperty(KA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});let gh=class iq extends So{constructor(t){super(t,{code:iq.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}};Object.defineProperty(gh,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});let YA=class sq extends So{constructor(t){super(t,{code:sq.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}};Object.defineProperty(YA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});let QA=class cq extends So{constructor(t){super(t,{code:cq.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}};Object.defineProperty(QA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});let XA=class lq extends So{constructor(t){super(t,{code:lq.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}};Object.defineProperty(XA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});let JA=class uq extends So{constructor(t){super(t,{code:uq.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}};Object.defineProperty(JA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});let dr=class dq extends rm{constructor(t){super(t,{code:dq.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}};Object.defineProperty(dr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});let ZA=class fq extends rm{constructor(t){super(t,{code:fq.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}};Object.defineProperty(ZA,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});let e5=class hq extends rm{constructor(t){super(t,{code:hq.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}};Object.defineProperty(e5,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});let t5=class mq extends rm{constructor(t){super(t,{code:mq.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}};Object.defineProperty(t5,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});let n5=class pq extends rm{constructor(t){super(t,{code:pq.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}};Object.defineProperty(n5,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});let ol=class gq extends rm{constructor(t){super(t,{code:gq.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}};Object.defineProperty(ol,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});let yue=class extends So{constructor(t){super(t,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}};const bue=3;function Z0(e,{abi:t,address:n,args:r,docsPath:o,functionName:a,sender:i}){const{code:s,data:c,message:l,shortMessage:u}=e instanceof Q8?e:e instanceof de?e.walk(f=>"data"in f)||e.walk():{},d=e instanceof P_?new mue({functionName:a}):[bue,Cw.code].includes(s)&&(c||l||u)?new zA({abi:t,data:typeof c=="object"?c.data:c,functionName:a,message:u??l}):e;return new Y8(d,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:a,sender:i})}let om=class extends de{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 WalletClient."].join(` -`),{docsPath:t,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}},vue=class extends de{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var m;const h=Qg({from:n==null?void 0:n.address,to:d,value:typeof f<"u"&&`${K8(f)} ${((m=o==null?void 0:o.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${Eo(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${Eo(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${Eo(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",h].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=t}},Pf=class extends de{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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}};Object.defineProperty(Pf,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Pf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});let Gu=class extends de{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${Eo(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}};Object.defineProperty(Gu,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});let r5=class extends de{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${Eo(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}};Object.defineProperty(r5,"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/});let o5=class extends de{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}};Object.defineProperty(o5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});let a5=class extends de{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(` -`),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}};Object.defineProperty(a5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});let i5=class extends de{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}};Object.defineProperty(i5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});let s5=class extends de{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` -`),{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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}};Object.defineProperty(s5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});let c5=class extends de{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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}};Object.defineProperty(c5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});let l5=class extends de{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}};Object.defineProperty(l5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});let u5=class extends de{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}};Object.defineProperty(u5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});let eg=class extends de{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${Eo(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${Eo(r)} gwei`:""}).`].join(` -`),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}};Object.defineProperty(eg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});let F_=class extends de{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}};function J8(e,t){const n=(e.details||"").toLowerCase(),r=e.walk(o=>o.code===Pf.code);return r instanceof de?new Pf({cause:e,message:r.details}):Pf.nodeMessage.test(n)?new Pf({cause:e,message:e.details}):Gu.nodeMessage.test(n)?new Gu({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):r5.nodeMessage.test(n)?new r5({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):o5.nodeMessage.test(n)?new o5({cause:e,nonce:t==null?void 0:t.nonce}):a5.nodeMessage.test(n)?new a5({cause:e,nonce:t==null?void 0:t.nonce}):i5.nodeMessage.test(n)?new i5({cause:e,nonce:t==null?void 0:t.nonce}):s5.nodeMessage.test(n)?new s5({cause:e}):c5.nodeMessage.test(n)?new c5({cause:e,gas:t==null?void 0:t.gas}):l5.nodeMessage.test(n)?new l5({cause:e,gas:t==null?void 0:t.gas}):u5.nodeMessage.test(n)?new u5({cause:e}):eg.nodeMessage.test(n)?new eg({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new F_({cause:e})}function wue(e,{docsPath:t,...n}){const r=(()=>{const o=J8(e,n);return o instanceof F_?e:o})();return new vue(r,{docsPath:t,...n})}function Z8(e,{format:t}){if(!t)return{};const n={};function r(a){const i=Object.keys(a);for(const s of i)s in e&&(n[s]=e[s]),a[s]&&typeof a[s]=="object"&&!Array.isArray(a[s])&&r(a[s])}const o=t(e||{});return r(o),n}function M_(e,t){return({exclude:n,format:r})=>({exclude:n,format:o=>{const a=t(o);if(n)for(const i of n)delete a[i];return{...a,...r(o)}},type:e})}const Eue={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function Xg(e){return{...e,gas:typeof e.gas<"u"?Xe(e.gas):void 0,gasPrice:typeof e.gasPrice<"u"?Xe(e.gasPrice):void 0,maxFeePerGas:typeof e.maxFeePerGas<"u"?Xe(e.maxFeePerGas):void 0,maxPriorityFeePerGas:typeof e.maxPriorityFeePerGas<"u"?Xe(e.maxPriorityFeePerGas):void 0,nonce:typeof e.nonce<"u"?Xe(e.nonce):void 0,type:typeof e.type<"u"?Eue[e.type]:void 0,value:typeof e.value<"u"?Xe(e.value):void 0}}const _ue=M_("transactionRequest",Xg);function Jg(e){const{account:t,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:o,to:a}=e,i=t?Ta(t):void 0;if(i&&!Hn(i.address))throw new Wo({address:i.address});if(a&&!Hn(a))throw new Wo({address:a});if(typeof n<"u"&&(typeof r<"u"||typeof o<"u"))throw new cue;if(r&&r>2n**256n-1n)throw new Gu({maxFeePerGas:r});if(o&&r&&o>r)throw new eg({maxFeePerGas:r,maxPriorityFeePerGas:o})}let xue=class extends de{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}},ej=class extends de{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}},Cue=class extends de{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Eo(t)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}},yq=class extends de{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.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}};const bq={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function L_(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?pr(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?pr(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?bq[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 t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof t.v=="bigint"){if(t.v===0n||t.v===27n)return 0;if(t.v===1n||t.v===28n)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),t.type==="legacy"&&(delete t.accessList,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),t.type==="eip2930"&&(delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t}const vq=M_("transaction",L_);function tj(e){var n;const t=(n=e.transactions)==null?void 0:n.map(r=>typeof r=="string"?r:L_(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):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:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const wq=M_("block",tj);async function al(e,{blockHash:t,blockNumber:n,blockTag:r,includeTransactions:o}={}){var u,d,f;const a=r??"latest",i=o??!1,s=n!==void 0?Xe(n):void 0;let c=null;if(t?c=await e.request({method:"eth_getBlockByHash",params:[t,i]}):c=await e.request({method:"eth_getBlockByNumber",params:[s||a,i]}),!c)throw new yq({blockHash:t,blockNumber:n});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.block)==null?void 0:f.format)||tj)(c)}async function nj(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function Sue(e,t){return Eq(e,t)}async function Eq(e,t){var a,i,s;const{block:n,chain:r=e.chain,request:o}=t||{};if(typeof((a=r==null?void 0:r.fees)==null?void 0:a.defaultPriorityFee)=="function"){const c=n||await Fe(e,al,"getBlock")({});return r.fees.defaultPriorityFee({block:c,client:e,request:o})}if(typeof((i=r==null?void 0:r.fees)==null?void 0:i.defaultPriorityFee)<"u")return(s=r==null?void 0:r.fees)==null?void 0:s.defaultPriorityFee;try{const c=await e.request({method:"eth_maxPriorityFeePerGas"});return wn(c)}catch{const[c,l]=await Promise.all([n?Promise.resolve(n):Fe(e,al,"getBlock")({}),Fe(e,nj,"getGasPrice")({})]);if(typeof c.baseFeePerGas!="bigint")throw new ej;const u=l-c.baseFeePerGas;return u<0n?0n:u}}async function Tue(e,t){return d5(e,t)}async function d5(e,t){var f,h;const{block:n,chain:r=e.chain,request:o,type:a="eip1559"}=t||{},i=await(async()=>{var m,p;return typeof((m=r==null?void 0:r.fees)==null?void 0:m.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:e,request:o}):((p=r==null?void 0:r.fees)==null?void 0:p.baseFeeMultiplier)??1.2})();if(i<1)throw new xue;const c=10**(((f=i.toString().split(".")[1])==null?void 0:f.length)??0),l=m=>m*BigInt(Math.ceil(i*c))/BigInt(c),u=n||await Fe(e,al,"getBlock")({});if(typeof((h=r==null?void 0:r.fees)==null?void 0:h.estimateFeesPerGas)=="function")return r.fees.estimateFeesPerGas({block:n,client:e,multiply:l,request:o,type:a});if(a==="eip1559"){if(typeof u.baseFeePerGas!="bigint")throw new ej;const m=o!=null&&o.maxPriorityFeePerGas?o.maxPriorityFeePerGas:await Eq(e,{block:u,chain:r,request:o}),p=l(u.baseFeePerGas);return{maxFeePerGas:(o==null?void 0:o.maxFeePerGas)??p+m,maxPriorityFeePerGas:m}}return{gasPrice:(o==null?void 0:o.gasPrice)??l(await Fe(e,nj,"getGasPrice")({}))}}async function _q(e,{address:t,blockTag:n="latest",blockNumber:r}){const o=await e.request({method:"eth_getTransactionCount",params:[t,r?Xe(r):n]});return pr(o)}function xq(e){if(e.type)return e.type;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 uue({transaction:e})}async function U_(e,t){const{account:n=e.account,chain:r,gas:o,nonce:a,type:i}=t;if(!n)throw new om;const s=Ta(n),c=await Fe(e,al,"getBlock")({blockTag:"latest"}),l={...t,from:s.address};if(typeof a>"u"&&(l.nonce=await Fe(e,_q,"getTransactionCount")({address:s.address,blockTag:"pending"})),typeof i>"u")try{l.type=xq(l)}catch{l.type=typeof c.baseFeePerGas=="bigint"?"eip1559":"legacy"}if(l.type==="eip1559"){const{maxFeePerGas:u,maxPriorityFeePerGas:d}=await d5(e,{block:c,chain:r,request:l});if(typeof t.maxPriorityFeePerGas>"u"&&t.maxFeePerGas&&t.maxFeePerGas"u"&&(l.gas=await Fe(e,rj,"estimateGas")({...l,account:{address:s.address,type:"json-rpc"}})),Jg(l),l}async function rj(e,t){var o,a,i;const n=t.account??e.account;if(!n)throw new om({docsPath:"/docs/actions/public/estimateGas"});const r=Ta(n);try{const{accessList:s,blockNumber:c,blockTag:l,data:u,gas:d,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:p,to:b,value:v,...g}=r.type==="local"?await U_(e,t):t,_=(c?Xe(c):void 0)||l;Jg(t);const C=(i=(a=(o=e.chain)==null?void 0:o.formatters)==null?void 0:a.transactionRequest)==null?void 0:i.format,E=(C||Xg)({...Z8(g,{format:C}),from:r.address,accessList:s,data:u,gas:d,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:p,to:b,value:v}),T=await e.request({method:"eth_estimateGas",params:_?[E,_]:[E]});return BigInt(T)}catch(s){throw wue(s,{...t,account:r,chain:e.chain})}}async function Cq(e,{abi:t,address:n,args:r,functionName:o,...a}){const i=oi({abi:t,args:r,functionName:o});try{return await Fe(e,rj,"estimateGas")({data:i,to:n,...a})}catch(s){const c=a.account?Ta(a.account):void 0;throw Z0(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:c==null?void 0:c.address})}}const SO="/docs/contract/decodeEventLog";function Zg({abi:e,data:t,strict:n,topics:r}){const o=n??!0,[a,...i]=r;if(!a)throw new Fce({docsPath:SO});const s=e.find(m=>m.type==="event"&&a===z8(xs(m)));if(!(s&&"name"in s)||s.type!=="event")throw new Mce(a,{docsPath:SO});const{name:c,inputs:l}=s,u=l==null?void 0:l.some(m=>!("name"in m&&m.name));let d=u?[]:{};const f=l.filter(m=>"indexed"in m&&m.indexed);for(let m=0;m!("indexed"in m&&m.indexed));if(h.length>0){if(t&&t!=="0x")try{const m=B_(h,t);if(m)if(u)d=[...d,...m];else for(let p=0;p0?d:void 0}}function Aue({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(B_([e],t)||[])[0]}function _a(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,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}:{}}}async function oj(e,{address:t,blockHash:n,fromBlock:r,toBlock:o,event:a,events:i,args:s,strict:c}={}){const l=c??!1,u=i??(a?[a]:void 0);let d=[];u&&(d=[u.flatMap(h=>Yg({abi:[h],eventName:h.name,args:s}))],a&&(d=d[0]));let f;return 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"?Xe(r):r,toBlock:typeof o=="bigint"?Xe(o):o}]}),f.map(h=>{var m;try{const{eventName:p,args:b}=u?Zg({abi:u,data:h.data,topics:h.topics,strict:l}):{eventName:void 0,args:void 0};return _a(h,{args:b,eventName:p})}catch(p){let b,v;if(p instanceof Hu||p instanceof nm){if(l)return;b=p.abiItem.name,v=(m=p.abiItem.inputs)==null?void 0:m.some(g=>!("name"in g&&g.name))}return _a(h,{args:v?[]:{},eventName:b})}}).filter(Boolean)}async function aj(e,{abi:t,address:n,args:r,blockHash:o,eventName:a,fromBlock:i,toBlock:s,strict:c}){const l=a?Kg({abi:t,name:a}):void 0,u=l?void 0:t.filter(d=>d.type==="event");return Fe(e,oj,"getLogs")({address:n,args:r,blockHash:o,event:l,events:u,fromBlock:i,toBlock:s,strict:c})}const AS="/docs/contract/decodeFunctionResult";function am({abi:e,args:t,functionName:n,data:r}){let o=e[0];if(n&&(o=Kg({abi:e,args:t,name:n}),!o))throw new Ew(n,{docsPath:AS});if(o.type!=="function")throw new Ew(void 0,{docsPath:AS});if(!o.outputs)throw new Lce(o.name,{docsPath:AS});const a=B_(o.outputs,r);if(a&&a.length>1)return a;if(a&&a.length===1)return a[0]}const f5=[{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"}],Sq=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],Tq=[...Sq,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],Due=[...Sq,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],TO=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],AO=[{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"}]}],kue=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}],jue="0x82ad56cb";let h5=class extends de{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.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}},Pue=class extends de{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}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}},Iue=class extends de{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(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}},Aq=class extends de{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}},$_=class extends de{constructor({chainId:t}){super(`Chain ID "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}};function im({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 h5({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new h5({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}function Oue(e,{docsPath:t,...n}){const r=(()=>{const o=J8(e,n);return o instanceof F_?e:o})();return new JH(r,{docsPath:t,...n})}const DS=new Map;function ij({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){const a=async()=>{const u=c();i();const d=u.map(({args:f})=>f);d.length!==0&&e(d).then(f=>{var h;o&&Array.isArray(f)&&f.sort(o);for(let m=0;m{var h;for(let m=0;mDS.delete(t),s=()=>c().map(({args:u})=>u),c=()=>DS.get(t)||[],l=u=>DS.set(t,[...c(),u]);return{flush:i,async schedule(u){const d={},f=new Promise((p,b)=>{d.resolve=p,d.reject=b});return(n==null?void 0:n([...s(),u]))&&a(),c().length>0?(l({args:u,pendingPromise:d}),f):(l({args:u,pendingPromise:d}),setTimeout(a,r),f)}}}async function z_(e,t){var v,g,w,_;const{account:n=e.account,batch:r=!!((v=e.batch)!=null&&v.multicall),blockNumber:o,blockTag:a="latest",accessList:i,data:s,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:h,value:m,...p}=t,b=n?Ta(n):void 0;try{Jg(t);const x=(o?Xe(o):void 0)||a,E=(_=(w=(g=e.chain)==null?void 0:g.formatters)==null?void 0:w.transactionRequest)==null?void 0:_.format,k=(E||Xg)({...Z8(p,{format:E}),from:b==null?void 0:b.address,accessList:i,data:s,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:h,value:m});if(r&&Rue({request:k}))try{return await Nue(e,{...k,blockNumber:o,blockTag:a})}catch(R){if(!(R instanceof Aq)&&!(R instanceof h5))throw R}const D=await e.request({method:"eth_call",params:x?[k,x]:[k]});return D==="0x"?{data:void 0}:{data:D}}catch(C){const x=Bue(C),{offchainLookup:E,offchainLookupSignature:T}=await me(async()=>{const{offchainLookup:k,offchainLookupSignature:D}=await import("./ccip-BXhNnGEm.js");return{offchainLookup:k,offchainLookupSignature:D}},[],import.meta.url);if((x==null?void 0:x.slice(0,10))===T&&h)return{data:await E(e,{data:x,to:h})};throw Oue(C,{...t,account:b,chain:e.chain})}}function Rue({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith(jue)||!n||Object.values(r).filter(o=>typeof o<"u").length>0)}async function Nue(e,t){var p;const{batchSize:n=1024,wait:r=0}=typeof((p=e.batch)==null?void 0:p.multicall)=="object"?e.batch.multicall:{},{blockNumber:o,blockTag:a="latest",data:i,multicallAddress:s,to:c}=t;let l=s;if(!l){if(!e.chain)throw new Aq;l=im({blockNumber:o,chain:e.chain,contract:"multicall3"})}const d=(o?Xe(o):void 0)||a,{schedule:f}=ij({id:`${e.uid}.${d}`,wait:r,shouldSplitBatch(b){return b.reduce((g,{data:w})=>g+(w.length-2),0)>n*2},fn:async b=>{const v=b.map(_=>({allowFailure:!0,callData:_.data,target:_.to})),g=oi({abi:f5,args:[v],functionName:"aggregate3"}),w=await e.request({method:"eth_call",params:[{data:g,to:l},d]});return am({abi:f5,args:[v],functionName:"aggregate3",data:w||"0x"})}}),[{returnData:h,success:m}]=await f({data:i,to:c});if(!m)throw new Q8({data:h});return h==="0x"?{data:void 0}:{data:h}}function Bue(e){if(!(e instanceof de))return;const t=e.walk();return typeof t.data=="object"?t.data.data:t.data}async function Ss(e,{abi:t,address:n,args:r,functionName:o,...a}){const i=oi({abi:t,args:r,functionName:o});try{const{data:s}=await Fe(e,z_,"call")({data:i,to:n,...a});return am({abi:t,args:r,functionName:o,data:s||"0x"})}catch(s){throw Z0(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/readContract",functionName:o})}}async function Dq(e,{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}){const s=i.account?Ta(i.account):void 0,c=oi({abi:t,args:r,functionName:a});try{const{data:l}=await Fe(e,z_,"call")({batch:!1,data:`${c}${o?o.replace("0x",""):""}`,to:n,...i});return{result:am({abi:t,args:r,functionName:a,data:l||"0x"}),request:{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}}}catch(l){throw Z0(l,{abi:t,address:n,args:r,docsPath:"/docs/contract/simulateContract",functionName:a,sender:s==null?void 0:s.address})}}const kS=new Map,DO=new Map;let Fue=0;function sm(e,t,n){const r=++Fue,o=()=>kS.get(e)||[],a=()=>{const u=o();kS.set(e,u.filter(d=>d.id!==r))},i=()=>{const u=DO.get(e);o().length===1&&u&&u(),a()},s=o();if(kS.set(e,[...s,{id:r,fns:t}]),s&&s.length>0)return i;const c={};for(const u in t)c[u]=(...d)=>{var h,m;const f=o();if(f.length!==0)for(const p of f)(m=(h=p.fns)[u])==null||m.call(h,...d)};const l=n(c);return typeof l=="function"&&DO.set(e,l),i}async function Sw(e){return new Promise(t=>setTimeout(t,e))}function ey(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let o=!0;const a=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:a}));const c=await(n==null?void 0:n(s))??r;await Sw(c);const l=async()=>{o&&(await e({unpoll:a}),await Sw(r),l())};l()})(),a}const Mue=new Map,Lue=new Map;function Uue(e){const t=(o,a)=>({clear:()=>a.delete(o),get:()=>a.get(o),set:i=>a.set(o,i)}),n=t(e,Mue),r=t(e,Lue);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function $ue(e,{cacheKey:t,cacheTime:n=1/0}){const r=Uue(t),o=r.response.get();if(o&&n>0&&new Date().getTime()-o.created.getTime()`blockNumber.${e}`;async function ty(e,{cacheTime:t=e.cacheTime,maxAge:n}={}){const r=await $ue(()=>e.request({method:"eth_blockNumber"}),{cacheKey:zue(e.uid),cacheTime:n??t});return BigInt(r)}async function H_(e,{filter:t}){const n="strict"in t&&t.strict;return(await t.request({method:"eth_getFilterChanges",params:[t.id]})).map(o=>{var a;if(typeof o=="string")return o;try{const{eventName:i,args:s}="abi"in t&&t.abi?Zg({abi:t.abi,data:o.data,topics:o.topics,strict:n}):{eventName:void 0,args:void 0};return _a(o,{args:s,eventName:i})}catch(i){let s,c;if(i instanceof Hu||i instanceof nm){if("strict"in t&&t.strict)return;s=i.abiItem.name,c=(a=i.abiItem.inputs)==null?void 0:a.some(l=>!("name"in l&&l.name))}return _a(o,{args:c?[]:{},eventName:s})}}).filter(Boolean)}async function q_(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}function kq(e,{abi:t,address:n,args:r,batch:o=!0,eventName:a,onError:i,onLogs:s,poll:c,pollingInterval:l=e.pollingInterval,strict:u}){return(typeof c<"u"?c:e.transport.type!=="webSocket")?(()=>{const m=Xr(["watchContractEvent",n,r,o,e.uid,a,l]),p=u??!1;return sm(m,{onLogs:s,onError:i},b=>{let v,g,w=!1;const _=ey(async()=>{var C;if(!w){try{g=await Fe(e,G8,"createContractEventFilter")({abi:t,address:n,args:r,eventName:a,strict:p})}catch{}w=!0;return}try{let x;if(g)x=await Fe(e,H_,"getFilterChanges")({filter:g});else{const E=await Fe(e,ty,"getBlockNumber")({});v&&v!==E?x=await Fe(e,aj,"getContractEvents")({abi:t,address:n,args:r,eventName:a,fromBlock:v+1n,toBlock:E,strict:p}):x=[],v=E}if(x.length===0)return;if(o)b.onLogs(x);else for(const E of x)b.onLogs([E])}catch(x){g&&x instanceof J0&&(w=!1),(C=b.onError)==null||C.call(b,x)}},{emitOnBegin:!0,interval:l});return async()=>{g&&await Fe(e,q_,"uninstallFilter")({filter:g}),_()}})})():(()=>{let m=!0,p=()=>m=!1;return(async()=>{try{const b=a?Yg({abi:t,eventName:a,args:r}):[],{unsubscribe:v}=await e.transport.subscribe({params:["logs",{address:n,topics:b}],onData(g){var _;if(!m)return;const w=g.result;try{const{eventName:C,args:x}=Zg({abi:t,data:w.data,topics:w.topics,strict:u}),E=_a(w,{args:x,eventName:C});s([E])}catch(C){let x,E;if(C instanceof Hu||C instanceof nm){if(u)return;x=C.abiItem.name,E=(_=C.abiItem.inputs)==null?void 0:_.some(k=>!("name"in k&&k.name))}const T=_a(w,{args:E?[]:{},eventName:x});s([T])}},onError(g){i==null||i(g)}});p=v,m||p()}catch(b){i==null||i(b)}})(),p})()}function jq({chain:e,currentChainId:t}){if(!e)throw new Iue;if(t!==e.id)throw new Pue({chain:e,currentChainId:t})}function Hue(e,{docsPath:t,...n}){const r=(()=>{const o=J8(e,n);return o instanceof F_?e:o})();return new fue(r,{docsPath:t,...n})}async function tg(e){const t=await e.request({method:"eth_chainId"});return pr(t)}async function sj(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]})}async function cj(e,t){var p,b,v,g;const{account:n=e.account,chain:r=e.chain,accessList:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,...h}=t;if(!n)throw new om({docsPath:"/docs/actions/wallet/sendTransaction"});const m=Ta(n);try{Jg(t);let w;if(r!==null&&(w=await Fe(e,tg,"getChainId")({}),jq({currentChainId:w,chain:r})),m.type==="local"){const E=await Fe(e,U_,"prepareTransactionRequest")({account:m,accessList:o,chain:r,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,...h});w||(w=await Fe(e,tg,"getChainId")({}));const T=(p=r==null?void 0:r.serializers)==null?void 0:p.transaction,k=await m.signTransaction({...E,chainId:w},{serializer:T});return await Fe(e,sj,"sendRawTransaction")({serializedTransaction:k})}const _=(g=(v=(b=e.chain)==null?void 0:b.formatters)==null?void 0:v.transactionRequest)==null?void 0:g.format,x=(_||Xg)({...Z8(h,{format:_}),accessList:o,data:a,from:m.address,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f});return await e.request({method:"eth_sendTransaction",params:[x]})}catch(w){throw Hue(w,{...t,account:m,chain:t.chain||void 0})}}async function Pq(e,{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}){const s=oi({abi:t,args:r,functionName:a});return await Fe(e,cj,"sendTransaction")({data:`${s}${o?o.replace("0x",""):""}`,to:n,...i})}function que({abi:e,address:t,publicClient:n,walletClient:r}){const o=n!=null,a=r!=null,i={};let s=!1,c=!1,l=!1;for(const u of e)if(u.type==="function"?u.stateMutability==="view"||u.stateMutability==="pure"?s=!0:c=!0:u.type==="event"&&(l=!0),s&&c&&l)break;return o&&(s&&(i.read=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=Qb(f);return Fe(n,Ss,"readContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),c&&(i.simulate=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=Qb(f);return Fe(n,Dq,"simulateContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),l&&(i.createEventFilter=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=jS(f,h);return Fe(n,G8,"createContractEventFilter")({abi:e,address:t,eventName:d,args:m,...p})}}}),i.getEvents=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=jS(f,h);return Fe(n,aj,"getContractEvents")({abi:e,address:t,eventName:d,args:m,...p})}}}),i.watchEvent=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=jS(f,h);return Fe(n,kq,"watchContractEvent")({abi:e,address:t,eventName:d,args:m,...p})}}}))),a&&c&&(i.write=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=Qb(f);return Fe(r,Pq,"writeContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),(o||a)&&c&&(i.estimateGas=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=Qb(f);return Fe(n??r,Cq,"estimateContractGas")({abi:e,address:t,functionName:d,args:h,...m,account:m.account??r.account})}}})),i.address=t,i.abi=e,i}function Qb(e){const t=e.length&&Array.isArray(e[0]),n=t?e[0]:[],r=(t?e[1]:e[0])??{};return{args:n,options:r}}function jS(e,t){let n=!1;Array.isArray(e[0])?n=!0:e.length===1?n=t.inputs.some(a=>a.indexed):e.length===2&&(n=!0);const r=n?e[0]:void 0,o=(n?e[1]:e[0])??{};return{args:r,options:o}}async function Wue(e,{chain:t}){const{id:n,name:r,nativeCurrency:o,rpcUrls:a,blockExplorers:i}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:Xe(n),chainName:r,nativeCurrency:o,rpcUrls:a.default.http,blockExplorerUrls:i?Object.values(i).map(({url:s})=>s):void 0}]})}const m5=256;let Xb=m5,Jb;function Gue(e=11){if(!Jb||Xb+e>m5*2){Jb="",Xb=0;for(let t=0;t{const v=b(p);for(const w in h)delete v[w];const g={...p,...v};return Object.assign(g,{extend:m(g)})}}return Object.assign(h,{extend:m(h)})}function p5(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((o,a)=>{const i=async({count:s=0}={})=>{const c=async({error:l})=>{const u=typeof t=="function"?t({count:s,error:l}):t;u&&await Sw(u),i({count:s+1})};try{const l=await e();o(l)}catch(l){if(s"code"in e?e.code!==-1&&e.code!==-32004&&e.code!==-32005&&e.code!==-32042&&e.code!==-32603:e instanceof g0&&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:!1;function Vue(e,{retryDelay:t=150,retryCount:n=3}={}){return async r=>p5(async()=>{try{return await e(r)}catch(o){const a=o;switch(a.code){case qA.code:throw new qA(a);case WA.code:throw new WA(a);case GA.code:throw new GA(a);case VA.code:throw new VA(a);case Cw.code:throw new Cw(a);case J0.code:throw new J0(a);case KA.code:throw new KA(a);case gh.code:throw new gh(a);case YA.code:throw new YA(a);case QA.code:throw new QA(a);case XA.code:throw new XA(a);case JA.code:throw new JA(a);case dr.code:throw new dr(a);case ZA.code:throw new ZA(a);case e5.code:throw new e5(a);case t5.code:throw new t5(a);case n5.code:throw new n5(a);case ol.code:throw new ol(a);case 5e3:throw new dr(a);default:throw o instanceof de?o:new yue(a)}}},{delay:({count:o,error:a})=>{var i;if(a&&a instanceof g0){const s=(i=a==null?void 0:a.headers)==null?void 0:i.get("Retry-After");if(s!=null&&s.match(/\d/))return parseInt(s)*1e3}return~~(1<!Oq(o)})}function W_({key:e,name:t,request:n,retryCount:r=3,retryDelay:o=150,timeout:a,type:i},s){return{config:{key:e,name:t,request:n,retryCount:r,retryDelay:o,timeout:a,type:i},request:Vue(n,{retryCount:r,retryDelay:o}),value:s}}function ny(e,t={}){const{key:n="custom",name:r="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>W_({key:n,name:r,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})}function kO(e,t={}){const{key:n="fallback",name:r="Fallback",rank:o=!1,retryCount:a,retryDelay:i}=t;return({chain:s,pollingInterval:c=4e3,timeout:l})=>{let u=e,d=()=>{};const f=W_({key:n,name:r,async request({method:h,params:m}){const p=async(b=0)=>{const v=u[b]({chain:s,retryCount:0,timeout:l});try{const g=await v.request({method:h,params:m});return d({method:h,params:m,response:g,transport:v,status:"success"}),g}catch(g){if(d({error:g,method:h,params:m,transport:v,status:"error"}),Oq(g)||b===u.length-1)throw g;return p(b+1)}};return p()},retryCount:a,retryDelay:i,type:"fallback"},{onResponse:h=>d=h,transports:u.map(h=>h({chain:s,retryCount:0}))});if(o){const h=typeof o=="object"?o:{};Kue({chain:s,interval:h.interval??c,onTransports:m=>u=m,sampleCount:h.sampleCount,timeout:h.timeout,transports:u,weights:h.weights})}return f}}function Kue({chain:e,interval:t=4e3,onTransports:n,sampleCount:r=10,timeout:o=1e3,transports:a,weights:i={}}){const{stability:s=.7,latency:c=.3}=i,l=[],u=async()=>{const d=await Promise.all(a.map(async m=>{const p=m({chain:e,retryCount:0,timeout:o}),b=Date.now();let v,g;try{await p.request({method:"net_listening"}),g=1}catch{g=0}finally{v=Date.now()}return{latency:v-b,success:g}}));l.push(d),l.length>r&&l.shift();const f=Math.max(...l.map(m=>Math.max(...m.map(({latency:p})=>p)))),h=a.map((m,p)=>{const b=l.map(C=>C[p].latency),g=1-b.reduce((C,x)=>C+x,0)/b.length/f,w=l.map(C=>C[p].success),_=w.reduce((C,x)=>C+x,0)/w.length;return _===0?[0,p]:[c*g+s*_,p]}).sort((m,p)=>p[0]-m[0]);n(h.map(([,m])=>a[m])),await Sw(t),u()};u()}let Rq=class extends de{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}};function Yue(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const g5=Yue(),Que=Object.freeze(Object.defineProperty({__proto__:null,WebSocket:g5},Symbol.toStringTag,{value:"Module"}));function Nq(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:r}){return new Promise((o,a)=>{(async()=>{let i;try{const s=new AbortController;n>0&&(i=setTimeout(()=>{r?s.abort():a(t)},n)),o(await e({signal:s==null?void 0:s.signal}))}catch(s){s.name==="AbortError"&&a(t),a(s)}finally{clearTimeout(i)}})()})}let y5=0;async function Xue(e,{body:t,fetchOptions:n={},timeout:r=1e4}){var s;const{headers:o,method:a,signal:i}=n;try{const c=await Nq(async({signal:u})=>await fetch(e,{...n,body:Array.isArray(t)?Xr(t.map(f=>({jsonrpc:"2.0",id:f.id??y5++,...f}))):Xr({jsonrpc:"2.0",id:t.id??y5++,...t}),headers:{...o,"Content-Type":"application/json"},method:a||"POST",signal:i||(r>0?u:void 0)}),{errorInstance:new HA({body:t,url:e}),timeout:r,signal:!0});let l;if((s=c.headers.get("Content-Type"))!=null&&s.startsWith("application/json")?l=await c.json():l=await c.text(),!c.ok)throw new g0({body:t,details:Xr(l.error)||c.statusText,headers:c.headers,status:c.status,url:e});return l}catch(c){throw c instanceof g0||c instanceof HA?c:new g0({body:t,details:c.message,url:e})}}const PS=new Map;async function IS(e){let t=PS.get(e);if(t)return t;const{schedule:n}=ij({id:e,fn:async()=>{const a=new g5(e),i=new Map,s=new Map,c=({data:u})=>{const d=JSON.parse(u),f=d.method==="eth_subscription",h=f?d.params.subscription:d.id,m=f?s:i,p=m.get(h);p&&p({data:u}),f||m.delete(h)},l=()=>{PS.delete(e),a.removeEventListener("close",l),a.removeEventListener("message",c)};return a.addEventListener("close",l),a.addEventListener("message",c),a.readyState===g5.CONNECTING&&await new Promise((u,d)=>{a&&(a.onopen=u,a.onerror=d)}),t=Object.assign(a,{requests:i,subscriptions:s}),PS.set(e,t),[t]}}),[r,[o]]=await n();return o}function Jue(e,{body:t,onResponse:n}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new pue({body:t,url:e.url,details:"Socket is closed."});const r=y5++,o=({data:a})=>{var s;const i=JSON.parse(a);typeof i.id=="number"&&r!==i.id||(n==null||n(i),t.method==="eth_subscribe"&&typeof i.result=="string"&&e.subscriptions.set(i.result,o),t.method==="eth_unsubscribe"&&e.subscriptions.delete((s=t.params)==null?void 0:s[0]))};return e.requests.set(r,o),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:r})),e}async function Zue(e,{body:t,timeout:n=1e4}){return Nq(()=>new Promise(r=>Qf.webSocket(e,{body:t,onResponse:r})),{errorInstance:new HA({body:t,url:e.url}),timeout:n})}const Qf={http:Xue,webSocket:Jue,webSocketAsync:Zue};function yh(e,t={}){const{batch:n,fetchOptions:r,key:o="http",name:a="HTTP JSON-RPC",retryDelay:i}=t;return({chain:s,retryCount:c,timeout:l})=>{const{batchSize:u=1e3,wait:d=0}=typeof n=="object"?n:{},f=t.retryCount??c,h=l??t.timeout??1e4,m=e||(s==null?void 0:s.rpcUrls.default.http[0]);if(!m)throw new Rq;return W_({key:o,name:a,async request({method:p,params:b}){const v={method:p,params:b},{schedule:g}=ij({id:`${e}`,wait:d,shouldSplitBatch(x){return x.length>u},fn:x=>Qf.http(m,{body:x,fetchOptions:r,timeout:h}),sort:(x,E)=>x.id-E.id}),w=async x=>n?g(x):[await Qf.http(m,{body:x,fetchOptions:r,timeout:h})],[{error:_,result:C}]=await w(v);if(_)throw new X8({body:v,error:_,url:m});return C},retryCount:f,retryDelay:i,timeout:h,type:"http"},{fetchOptions:r,url:e})}}function lj(e,t){var r,o,a;if(!(e instanceof de))return!1;const n=e.walk(i=>i instanceof zA);return n instanceof zA?!!(((r=n.data)==null?void 0:r.errorName)==="ResolverNotFound"||((o=n.data)==null?void 0:o.errorName)==="ResolverWildcardNotSupported"||(a=n.reason)!=null&&a.includes("Wildcard on non-extended resolvers is not supported")||t==="reverse"&&n.reason===KH[50]):!1}function Bq(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return Ea(t)?t:null}function l1(e){let t=new Uint8Array(32).fill(0);if(!e)return qu(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const o=Bq(n[r]),a=o?rl(o):Or(ds(n[r]),"bytes");t=Or(Cs([t,a]),"bytes")}return qu(t)}function ede(e){return`[${e.slice(2)}]`}function tde(e){const t=new Uint8Array(32).fill(0);return e?Bq(e)||Or(ds(e)):qu(t)}function G_(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const n=new Uint8Array(ds(t).byteLength+2);let r=0;const o=t.split(".");for(let a=0;a255&&(i=ds(ede(tde(o[a])))),n[r]=i.length,n.set(i,r+1),r+=i.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}async function nde(e,{blockNumber:t,blockTag:n,coinType:r,name:o,universalResolverAddress:a}){let i=a;if(!i){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=im({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s=oi({abi:AO,functionName:"addr",...r!=null?{args:[l1(o),BigInt(r)]}:{args:[l1(o)]}}),c=await Fe(e,Ss,"readContract")({address:i,abi:Tq,functionName:"resolve",args:[rt(G_(o)),s],blockNumber:t,blockTag:n});if(c[0]==="0x")return null;const l=am({abi:AO,args:r!=null?[l1(o),BigInt(r)]:void 0,functionName:"addr",data:c[0]});return l==="0x"||Za(l)==="0x00"?null:l}catch(s){if(lj(s,"resolve"))return null;throw s}}let rde=class extends de{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)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}},hp=class extends de{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}},uj=class extends de{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.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}},ode=class extends de{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}};const ade=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,ide=/^(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,})(\/(?[\w\-.]+))?(?\/.*)?$/,sde=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,cde=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function lde(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"||!globalThis.hasOwnProperty("Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}function jO(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function Fq({uri:e,gatewayUrls:t}){const n=sde.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=jO(t==null?void 0:t.ipfs,"https://ipfs.io"),o=jO(t==null?void 0:t.arweave,"https://arweave.net"),a=e.match(ade),{protocol:i,subpath:s,target:c,subtarget:l=""}=(a==null?void 0:a.groups)||{},u=i==="ipns:/"||s==="ipns/",d=i==="ipfs:/"||s==="ipfs/"||ide.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(cde,"");if(f.startsWith("o.json());return await dj({gatewayUrls:e,uri:Mq(n)})}catch{throw new uj({uri:t})}}async function dj({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=Fq({uri:t,gatewayUrls:e});if(r||await lde(n))return n;throw new uj({uri:t})}function dde(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,o]=t.split("/"),[a,i]=n.split(":"),[s,c]=r.split(":");if(!a||a.toLowerCase()!=="eip155")throw new hp({reason:"Only EIP-155 supported"});if(!i)throw new hp({reason:"Chain ID not found"});if(!c)throw new hp({reason:"Contract address not found"});if(!o)throw new hp({reason:"Token ID not found"});if(!s)throw new hp({reason:"ERC namespace not found"});return{chainID:parseInt(i),namespace:s.toLowerCase(),contractAddress:c,tokenID:o}}async function fde(e,{nft:t}){if(t.namespace==="erc721")return Ss(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 Ss(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 ode({namespace:t.namespace})}async function hde(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?mde(e,{gatewayUrls:t,record:n}):dj({uri:n,gatewayUrls:t})}async function mde(e,{gatewayUrls:t,record:n}){const r=dde(n),o=await fde(e,{nft:r}),{uri:a,isOnChain:i,isEncoded:s}=Fq({uri:o,gatewayUrls:t});if(i&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const l=s?atob(a.replace("data:application/json;base64,","")):a,u=JSON.parse(l);return dj({uri:Mq(u),gatewayUrls:t})}let c=r.tokenID;return r.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),ude({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,c)})}async function Lq(e,{blockNumber:t,blockTag:n,name:r,key:o,universalResolverAddress:a}){let i=a;if(!i){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=im({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s=await Fe(e,Ss,"readContract")({address:i,abi:Tq,functionName:"resolve",args:[rt(G_(r)),oi({abi:TO,functionName:"text",args:[l1(r),o]})],blockNumber:t,blockTag:n});if(s[0]==="0x")return null;const c=am({abi:TO,functionName:"text",data:s[0]});return c===""?null:c}catch(s){if(lj(s,"resolve"))return null;throw s}}async function pde(e,{blockNumber:t,blockTag:n,gatewayUrls:r,name:o,universalResolverAddress:a}){const i=await Fe(e,Lq,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:o,universalResolverAddress:a});if(!i)return null;try{return await hde(e,{record:i,gatewayUrls:r})}catch{return null}}async function gde(e,{address:t,blockNumber:n,blockTag:r,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=im({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}const i=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const[s,c]=await Fe(e,Ss,"readContract")({address:a,abi:Due,functionName:"reverse",args:[rt(G_(i))],blockNumber:n,blockTag:r});return t.toLowerCase()!==c.toLowerCase()?null:s}catch(s){if(lj(s,"reverse"))return null;throw s}}async function yde(e,{blockNumber:t,blockTag:n,name:r,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=im({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}const[i]=await Fe(e,Ss,"readContract")({address:a,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[rt(G_(r))],blockNumber:t,blockTag:n});return i}async function bde(e){const t=N_(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}async function Uq(e,{address:t,args:n,event:r,events:o,fromBlock:a,strict:i,toBlock:s}={}){const c=o??(r?[r]:void 0),l=N_(e,{method:"eth_newFilter"});let u=[];c&&(u=[c.flatMap(f=>Yg({abi:[f],eventName:f.name,args:n}))],r&&(u=u[0]));const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?Xe(a):a,toBlock:typeof s=="bigint"?Xe(s):s,...u.length?{topics:u}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:a,id:d,request:l(d),strict:i,toBlock:s,type:"event"}}async function $q(e){const t=N_(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}async function vde(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n?Xe(n):void 0,a=await e.request({method:"eth_getBalance",params:[t,o||r]});return BigInt(a)}async function wde(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){const o=n!==void 0?Xe(n):void 0;let a;return t?a=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):a=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[o||r]}),pr(a)}async function Ede(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n!==void 0?Xe(n):void 0,a=await e.request({method:"eth_getCode",params:[t,o||r]});if(a!=="0x")return a}function _de(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 xde(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:o}){const a=n?Xe(n):void 0,i=await e.request({method:"eth_feeHistory",params:[Xe(t),a||r,o]});return _de(i)}async function Cde(e,{filter:t}){const n=t.strict??!1;return(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(o=>{var a;try{const{eventName:i,args:s}="abi"in t&&t.abi?Zg({abi:t.abi,data:o.data,topics:o.topics,strict:n}):{eventName:void 0,args:void 0};return _a(o,{args:s,eventName:i})}catch(i){let s,c;if(i instanceof Hu||i instanceof nm){if("strict"in t&&t.strict)return;s=i.abiItem.name,c=(a=i.abiItem.inputs)==null?void 0:a.some(l=>!("name"in l&&l.name))}return _a(o,{args:c?[]:{},eventName:s})}}).filter(Boolean)}function Er(e,t={}){const{fees:n=e.fees,formatters:r=e.formatters,serializers:o=e.serializers}=t;return{...e,fees:n,formatters:r,serializers:o}}const Sde=/^(.*)\[([0-9]*)\]$/,zq=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Hq=/^(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 Tde({domain:e,message:t,primaryType:n,types:r}){const o=typeof e>"u"?{}:e,a={EIP712Domain:Yq({domain:o}),...r};Kq({domain:o,message:t,primaryType:n,types:a});const i=["0x1901"];return o&&i.push(Ade({domain:o,types:a})),n!=="EIP712Domain"&&i.push(qq({data:t,primaryType:n,types:a})),Or(Cs(i))}function Ade({domain:e,types:t}){return qq({data:e,primaryType:"EIP712Domain",types:t})}function qq({data:e,primaryType:t,types:n}){const r=Wq({data:e,primaryType:t,types:n});return Or(r)}function Wq({data:e,primaryType:t,types:n}){const r=[{type:"bytes32"}],o=[Dde({primaryType:t,types:n})];for(const a of n[t]){const[i,s]=Vq({types:n,name:a.name,type:a.type,value:e[a.name]});r.push(i),o.push(s)}return Vg(r,o)}function Dde({primaryType:e,types:t}){const n=rt(kde({primaryType:e,types:t}));return Or(n)}function kde({primaryType:e,types:t}){let n="";const r=Gq({primaryType:e,types:t});r.delete(e);const o=[e,...Array.from(r).sort()];for(const a of o)n+=`${a}(${t[a].map(({name:i,type:s})=>`${s} ${i}`).join(",")})`;return n}function Gq({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 a of t[o])Gq({primaryType:a.type,types:t},n);return n}function Vq({types:e,name:t,type:n,value:r}){if(e[n]!==void 0)return[{type:"bytes32"},Or(Wq({data:r,primaryType:n,types:e}))];if(n==="bytes")return r=`0x${(r.length%2?"0":"")+r.slice(2)}`,[{type:"bytes32"},Or(r)];if(n==="string")return[{type:"bytes32"},Or(rt(r))];if(n.lastIndexOf("]")===n.length-1){const o=n.slice(0,n.lastIndexOf("[")),a=r.map(i=>Vq({name:t,type:o,types:e,value:i}));return[{type:"bytes32"},Or(Vg(a.map(([i])=>i),a.map(([,i])=>i)))]}return[{type:n},r]}function Kq({domain:e,message:t,primaryType:n,types:r}){const o=r,a=(i,s)=>{for(const c of i){const{name:l,type:u}=c,d=u,f=s[l],h=d.match(Hq);if(h&&(typeof f=="number"||typeof f=="bigint")){const[b,v,g]=h;Xe(f,{signed:v==="int",size:parseInt(g)/8})}if(d==="address"&&typeof f=="string"&&!Hn(f))throw new Wo({address:f});const m=d.match(zq);if(m){const[b,v]=m;if(v&&Pn(f)!==parseInt(v))throw new PH({expectedSize:parseInt(v),givenSize:Pn(f)})}const p=o[d];p&&a(p,f)}};if(o.EIP712Domain&&e&&a(o.EIP712Domain,e),n!=="EIP712Domain"){const i=o[n];a(i,t)}}function Yq({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"&&{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)}const OS="/docs/contract/encodeDeployData";function Qq({abi:e,args:t,bytecode:n}){if(!t||t.length===0)return n;const r=e.find(a=>"type"in a&&a.type==="constructor");if(!r)throw new Rce({docsPath:OS});if(!("inputs"in r))throw new bO({docsPath:OS});if(!r.inputs||r.inputs.length===0)throw new bO({docsPath:OS});const o=Vg(r.inputs,t);return Sl([n,o])}function jde(e,t){if(e.length!==t.length)throw new kH({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;rthis.bytes.length-1)throw new Pde({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new PO({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},incrementPosition(e){if(e<0)throw new PO({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(){const e=this.inspectByte();return this.position++,e},readBytes(e){const t=this.inspectBytes(e);return this.position+=e,t},readUint8(){const e=this.inspectUint8();return this.position+=1,e},readUint16(){const e=this.inspectUint16();return this.position+=2,e},readUint24(){const e=this.inspectUint24();return this.position+=3,e},readUint32(){const e=this.inspectUint32();return this.position+=4,e},setPosition(e){this.assertPosition(e),this.position=e}};function Ode(e){const t=Object.create(Ide);return t.bytes=e,t.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),t}function V_(e,t="hex"){const n=Jq(e),r=Ode(new Uint8Array(n.length));return n.encode(r),t==="hex"?qu(r.bytes):r.bytes}function Jq(e){return Array.isArray(e)?Rde(e.map(t=>Jq(t))):Nde(e)}function Rde(e){const t=e.reduce((o,a)=>o+a.length,0),n=Zq(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:a}of e)a(o)}}}function Nde(e){const t=typeof e=="string"?qg(e):e,n=Zq(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 Zq(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 de("Length is too large.")}const Bde={"0x0":"reverted","0x1":"success"};function eW(e){return{...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(t=>_a(t)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?pr(e.transactionIndex):null,status:e.status?Bde[e.status]:null,type:e.type?bq[e.type]||e.type:null}}const tW=M_("transactionReceipt",eW);function fj(e){return Ea(e)&&Pn(e)===32}function Fde(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),a=BigInt(4294967295),i=Number(n>>o&a),s=Number(n&a),c=r?4:0,l=r?0:4;e.setUint32(t+c,i,r),e.setUint32(t+l,s,r)}class nW extends $8{constructor(t,n,r,o){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=TS(this.buffer)}update(t){ph(this);const{view:n,buffer:r,blockLen:o}=this;t=Wg(t);const a=t.length;for(let i=0;io-i&&(this.process(r,0),i=0);for(let d=i;du.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;de&t^~e&n,Lde=(e,t,n)=>e&t^e&n^t&n,Ude=new Uint32Array([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]),ic=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),sc=new Uint32Array(64);class rW extends nW{constructor(){super(64,32,8,!1),this.A=ic[0]|0,this.B=ic[1]|0,this.C=ic[2]|0,this.D=ic[3]|0,this.E=ic[4]|0,this.F=ic[5]|0,this.G=ic[6]|0,this.H=ic[7]|0}get(){const{A:t,B:n,C:r,D:o,E:a,F:i,G:s,H:c}=this;return[t,n,r,o,a,i,s,c]}set(t,n,r,o,a,i,s,c){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=a|0,this.F=i|0,this.G=s|0,this.H=c|0}process(t,n){for(let d=0;d<16;d++,n+=4)sc[d]=t.getUint32(n,!1);for(let d=16;d<64;d++){const f=sc[d-15],h=sc[d-2],m=gi(f,7)^gi(f,18)^f>>>3,p=gi(h,17)^gi(h,19)^h>>>10;sc[d]=p+sc[d-7]+m+sc[d-16]|0}let{A:r,B:o,C:a,D:i,E:s,F:c,G:l,H:u}=this;for(let d=0;d<64;d++){const f=gi(s,6)^gi(s,11)^gi(s,25),h=u+f+Mde(s,c,l)+Ude[d]+sc[d]|0,p=(gi(r,2)^gi(r,13)^gi(r,22))+Lde(r,o,a)|0;u=l,l=c,c=s,s=i+h|0,i=a,a=o,o=r,r=h+p|0}r=r+this.A|0,o=o+this.B|0,a=a+this.C|0,i=i+this.D|0,s=s+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(r,o,a,i,s,c,l,u)}roundClean(){sc.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class $de extends rW{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const ng=O_(()=>new rW),zde=O_(()=>new $de),Hde=Object.freeze(Object.defineProperty({__proto__:null,sha224:zde,sha256:ng},Symbol.toStringTag,{value:"Module"})),qde=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),oW=Uint8Array.from({length:16},(e,t)=>t),Wde=oW.map(e=>(9*e+5)%16);let hj=[oW],mj=[Wde];for(let e=0;e<4;e++)for(let t of[hj,mj])t.push(t[e].map(n=>qde[n]));const aW=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>new Uint8Array(e)),Gde=hj.map((e,t)=>e.map(n=>aW[t][n])),Vde=mj.map((e,t)=>e.map(n=>aW[t][n])),Kde=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Yde=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),Zb=(e,t)=>e<>>32-t;function IO(e,t,n,r){return e===0?t^n^r:e===1?t&n|~t&r:e===2?(t|~n)^r:e===3?t&r|n&~r:t^(n|~r)}const ev=new Uint32Array(16);class iW extends nW{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:t,h1:n,h2:r,h3:o,h4:a}=this;return[t,n,r,o,a]}set(t,n,r,o,a){this.h0=t|0,this.h1=n|0,this.h2=r|0,this.h3=o|0,this.h4=a|0}process(t,n){for(let h=0;h<16;h++,n+=4)ev[h]=t.getUint32(n,!0);let r=this.h0|0,o=r,a=this.h1|0,i=a,s=this.h2|0,c=s,l=this.h3|0,u=l,d=this.h4|0,f=d;for(let h=0;h<5;h++){const m=4-h,p=Kde[h],b=Yde[h],v=hj[h],g=mj[h],w=Gde[h],_=Vde[h];for(let C=0;C<16;C++){const x=Zb(r+IO(h,a,s,l)+ev[v[C]]+p,w[C])+d|0;r=d,d=l,l=Zb(s,10)|0,s=a,a=x}for(let C=0;C<16;C++){const x=Zb(o+IO(m,i,c,u)+ev[g[C]]+b,_[C])+f|0;o=f,f=u,u=Zb(c,10)|0,c=i,i=x}}this.set(this.h1+s+u|0,this.h2+l+f|0,this.h3+d+o|0,this.h4+r+i|0,this.h0+a+c|0)}roundClean(){ev.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const Qde=O_(()=>new iW),Xde=Object.freeze(Object.defineProperty({__proto__:null,RIPEMD160:iW,ripemd160:Qde},Symbol.toStringTag,{value:"Module"})),Jde=`Ethereum Signed Message: -`;function Zde(e,t){const n=typeof e=="string"?ds(e):e.raw instanceof Uint8Array?e.raw:rl(e.raw),r=ds(`${Jde}${n.length}`);return Or(Cs([r,n]),t)}function efe(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=e;if(t<=0)throw new $_({chainId:t});if(a&&!Hn(a))throw new Wo({address:a});if(r)throw new de("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(o&&o>2n**256n-1n)throw new Gu({maxFeePerGas:o});if(n&&o&&n>o)throw new eg({maxFeePerGas:o,maxPriorityFeePerGas:n})}function tfe(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=e;if(t<=0)throw new $_({chainId:t});if(a&&!Hn(a))throw new Wo({address:a});if(n||o)throw new de("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>2n**256n-1n)throw new Gu({maxFeePerGas:r})}function nfe(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a,accessList:i}=e;if(a&&!Hn(a))throw new Wo({address:a});if(typeof t<"u"&&t<=0)throw new $_({chainId:t});if(n||o)throw new de("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>2n**256n-1n)throw new Gu({maxFeePerGas:r});if(i)throw new de("`accessList` is not a valid Legacy Transaction attribute.")}function sW(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n{if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);const d=27n+(t.v===27n?0n:1n);if(t.v!==d)throw new lue({v:t.v});return d})();l=[...l,rt(u),t.r,t.s]}else n>0&&(l=[...l,rt(n),"0x","0x"]);return V_(l)}function pj(e,t){let[n,r="0"]=e.split(".");const o=n.startsWith("-");if(o&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),t===0)Math.round(+`.${r}`)===1&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>t){const[a,i,s]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],c=Math.round(+`${i}.${s}`);c>9?r=`${BigInt(a)+BigInt(1)}0`.padStart(a.length+1,"0"):r=`${a}${c}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${o?"-":""}${n}${r}`)}function sfe(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function cfe(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?pr(e.nonce):void 0,storageProof:e.storageProof?sfe(e.storageProof):void 0}}async function lfe(e,{address:t,blockNumber:n,blockTag:r,storageKeys:o}){const a=r??"latest",i=n!==void 0?Xe(n):void 0,s=await e.request({method:"eth_getProof",params:[t,o,i||a]});return cfe(s)}async function ufe(e,{address:t,blockNumber:n,blockTag:r="latest",slot:o}){const a=n!==void 0?Xe(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,o,a||r]})}async function gj(e,{blockHash:t,blockNumber:n,blockTag:r,hash:o,index:a}){var u,d,f;const i=r||"latest",s=n!==void 0?Xe(n):void 0;let c=null;if(o?c=await e.request({method:"eth_getTransactionByHash",params:[o]}):t?c=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,Xe(a)]}):(s||i)&&(c=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[s||i,Xe(a)]})),!c)throw new QH({blockHash:t,blockNumber:n,blockTag:i,hash:o,index:a});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.transaction)==null?void 0:f.format)||L_)(c)}async function dfe(e,{hash:t,transactionReceipt:n}){const[r,o]=await Promise.all([Fe(e,ty,"getBlockNumber")({}),t?Fe(e,gj,"getBlockNumber")({hash:t}):void 0]),a=(n==null?void 0:n.blockNumber)||(o==null?void 0:o.blockNumber);return a?r-a+1n:0n}async function b5(e,{hash:t}){var o,a,i;const n=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!n)throw new XH({hash:t});return(((i=(a=(o=e.chain)==null?void 0:o.formatters)==null?void 0:a.transactionReceipt)==null?void 0:i.format)||eW)(n)}async function ffe(e,t){var p;const{allowFailure:n=!0,batchSize:r,blockNumber:o,blockTag:a,contracts:i,multicallAddress:s}=t,c=r??(typeof((p=e.batch)==null?void 0:p.multicall)=="object"&&e.batch.multicall.batchSize||1024);let l=s;if(!l){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");l=im({blockNumber:o,chain:e.chain,contract:"multicall3"})}const u=[[]];let d=0,f=0;for(let b=0;b0&&f>c&&u[d].length>0&&(d++,f=(C.length-2)/2,u[d]=[]),u[d]=[...u[d],{allowFailure:!0,callData:C,target:g}]}catch(C){const x=Z0(C,{abi:v,address:g,args:w,docsPath:"/docs/contract/multicall",functionName:_});if(!n)throw x;u[d]=[...u[d],{allowFailure:!0,callData:"0x",target:g}]}}const h=await Promise.allSettled(u.map(b=>Fe(e,Ss,"readContract")({abi:f5,address:l,args:[b],blockNumber:o,blockTag:a,functionName:"aggregate3"}))),m=[];for(let b=0;be instanceof Uint8Array,pfe=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function bh(e){if(!Y_(e))throw new Error("Uint8Array expected");let t="";for(let n=0;nr+o.length,0));let n=0;return e.forEach(r=>{if(!Y_(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}function uW(e,t){if(e.length!==t.length)return!1;for(let n=0;ncW;e>>=K_,t+=1);return t}function bfe(e,t){return e>>BigInt(t)&K_}const vfe=(e,t,n)=>e|(n?K_:cW)<(mfe<new Uint8Array(e),OO=e=>Uint8Array.from(e);function dW(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=RS(e),o=RS(e),a=0;const i=()=>{r.fill(1),o.fill(0),a=0},s=(...d)=>n(o,r,...d),c=(d=RS())=>{o=s(OO([0]),d),r=s(),d.length!==0&&(o=s(OO([1]),d),r=s())},l=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const f=[];for(;d{i(),c(d);let h;for(;!(h=f(l()));)c();return i(),h}}const wfe={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"||e instanceof Uint8Array,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 cm(e,t,n={}){const r=(o,a,i)=>{const s=wfe[a];if(typeof s!="function")throw new Error(`Invalid validator "${a}", expected function`);const c=e[o];if(!(i&&c===void 0)&&!s(c,e))throw new Error(`Invalid param ${String(o)}=${c} (${typeof c}), expected ${a}`)};for(const[o,a]of Object.entries(t))r(o,a,!1);for(const[o,a]of Object.entries(n))r(o,a,!0);return e}const fW=Object.freeze(Object.defineProperty({__proto__:null,bitGet:bfe,bitLen:yfe,bitMask:wj,bitSet:vfe,bytesToHex:bh,bytesToNumberBE:Jr,bytesToNumberLE:bj,concatBytes:Fo,createHmacDrbg:dW,ensureBytes:Dr,equalBytes:uW,hexToBytes:vh,hexToNumber:yj,numberToBytesBE:il,numberToBytesLE:vj,numberToHexUnpadded:lW,numberToVarBytesBE:gfe,utf8ToBytes:Q_,validateObject:cm},Symbol.toStringTag,{value:"Module"}));function Efe(e,t){const n=Ea(e)?rl(e):e,r=Ea(t)?rl(t):t;return uW(n,r)}async function hW(e,{address:t,hash:n,signature:r,...o}){const a=Ea(r)?r:rt(r);try{const{data:i}=await Fe(e,z_,"call")({data:Qq({abi:kue,args:[t,n,a],bytecode:hfe}),...o});return Efe(i??"0x0","0x1")}catch(i){if(i instanceof JH)return!1;throw i}}async function _fe(e,{address:t,message:n,signature:r,...o}){const a=Zde(n);return hW(e,{address:t,hash:a,signature:r,...o})}async function xfe(e,{address:t,signature:n,message:r,primaryType:o,types:a,domain:i,...s}){const c=Tde({message:r,primaryType:o,types:a,domain:i});return hW(e,{address:t,hash:c,signature:n,...s})}function mW(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:o,poll:a,pollingInterval:i=e.pollingInterval}){const s=typeof a<"u"?a:e.transport.type!=="webSocket";let c;return s?(()=>{const d=Xr(["watchBlockNumber",e.uid,t,n,i]);return sm(d,{onBlockNumber:r,onError:o},f=>ey(async()=>{var h;try{const m=await Fe(e,ty,"getBlockNumber")({cacheTime:0});if(c){if(m===c)return;if(m-c>1&&n)for(let p=c+1n;pc)&&(f.onBlockNumber(m,c),c=m)}catch(m){(h=f.onError)==null||h.call(f,m)}},{emitOnBegin:t,interval:i}))})():(()=>{let d=!0,f=()=>d=!1;return(async()=>{try{const{unsubscribe:h}=await e.transport.subscribe({params:["newHeads"],onData(m){var b;if(!d)return;const p=wn((b=m.result)==null?void 0:b.number);r(p,c),c=p},onError(m){o==null||o(m)}});f=h,d||f()}catch(h){o==null||o(h)}})(),f})()}async function Cfe(e,{confirmations:t=1,hash:n,onReplaced:r,pollingInterval:o=e.pollingInterval,timeout:a}){const i=Xr(["waitForTransactionReceipt",e.uid,n]);let s,c,l,u=!1;return new Promise((d,f)=>{a&&setTimeout(()=>f(new hue({hash:n})),a);const h=sm(i,{onReplaced:r,resolve:d,reject:f},m=>{const p=Fe(e,mW,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:o,async onBlockNumber(b){if(u)return;let v=b;const g=w=>{p(),w(),h()};try{if(l){if(t>1&&(!l.blockNumber||v-l.blockNumber+1nm.resolve(l));return}if(s||(u=!0,await p5(async()=>{s=await Fe(e,gj,"getTransaction")({hash:n}),s.blockNumber&&(v=s.blockNumber)},{delay:({count:w})=>~~(1<1&&(!l.blockNumber||v-l.blockNumber+1nm.resolve(l))}catch(w){if(s&&(w instanceof QH||w instanceof XH))try{c=s,u=!0;const _=await p5(()=>Fe(e,al,"getBlock")({blockNumber:v,includeTransactions:!0}),{delay:({count:E})=>~~(1<E instanceof yq});u=!1;const C=_.transactions.find(({from:E,nonce:T})=>E===c.from&&T===c.nonce);if(!C||(l=await Fe(e,b5,"getTransactionReceipt")({hash:C.hash}),t>1&&(!l.blockNumber||v-l.blockNumber+1n{var E;(E=m.onReplaced)==null||E.call(m,{reason:x,replacedTransaction:c,transaction:C,transactionReceipt:l}),m.resolve(l)})}catch(_){g(()=>m.reject(_))}else g(()=>m.reject(w))}}})})})}function Sfe(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:o,onError:a,includeTransactions:i,poll:s,pollingInterval:c=e.pollingInterval}){const l=typeof s<"u"?s:e.transport.type!=="webSocket",u=i??!1;let d;return l?(()=>{const m=Xr(["watchBlocks",e.uid,n,r,u,c]);return sm(m,{onBlock:o,onError:a},p=>ey(async()=>{var b;try{const v=await Fe(e,al,"getBlock")({blockTag:t,includeTransactions:u});if(v.number&&(d!=null&&d.number)){if(v.number===d.number)return;if(v.number-d.number>1&&n)for(let g=(d==null?void 0:d.number)+1n;gd.number)&&(p.onBlock(v,d),d=v)}catch(v){(b=p.onError)==null||b.call(p,v)}},{emitOnBegin:r,interval:c}))})():(()=>{let m=!0,p=()=>m=!1;return(async()=>{try{const{unsubscribe:b}=await e.transport.subscribe({params:["newHeads"],onData(v){var _,C,x;if(!m)return;const w=(((x=(C=(_=e.chain)==null?void 0:_.formatters)==null?void 0:C.block)==null?void 0:x.format)||tj)(v.result);o(w,d),d=w},onError(v){a==null||a(v)}});p=b,m||p()}catch(b){a==null||a(b)}})(),p})()}function Tfe(e,{address:t,args:n,batch:r=!0,event:o,events:a,onError:i,onLogs:s,poll:c,pollingInterval:l=e.pollingInterval,strict:u}){const d=typeof c<"u"?c:e.transport.type!=="webSocket",f=u??!1;return d?(()=>{const p=Xr(["watchEvent",t,n,r,e.uid,o,l]);return sm(p,{onLogs:s,onError:i},b=>{let v,g,w=!1;const _=ey(async()=>{var C;if(!w){try{g=await Fe(e,Uq,"createEventFilter")({address:t,args:n,event:o,events:a,strict:f})}catch{}w=!0;return}try{let x;if(g)x=await Fe(e,H_,"getFilterChanges")({filter:g});else{const E=await Fe(e,ty,"getBlockNumber")({});v&&v!==E?x=await Fe(e,oj,"getLogs")({address:t,args:n,event:o,events:a,fromBlock:v+1n,toBlock:E}):x=[],v=E}if(x.length===0)return;if(r)b.onLogs(x);else for(const E of x)b.onLogs([E])}catch(x){g&&x instanceof J0&&(w=!1),(C=b.onError)==null||C.call(b,x)}},{emitOnBegin:!0,interval:l});return async()=>{g&&await Fe(e,q_,"uninstallFilter")({filter:g}),_()}})})():(()=>{let p=!0,b=()=>p=!1;return(async()=>{try{const v=a??(o?[o]:void 0);let g=[];v&&(g=[v.flatMap(_=>Yg({abi:[_],eventName:_.name,args:n}))],o&&(g=g[0]));const{unsubscribe:w}=await e.transport.subscribe({params:["logs",{address:t,topics:g}],onData(_){var x;if(!p)return;const C=_.result;try{const{eventName:E,args:T}=Zg({abi:v,data:C.data,topics:C.topics,strict:f}),k=_a(C,{args:T,eventName:E});s([k])}catch(E){let T,k;if(E instanceof Hu||E instanceof nm){if(u)return;T=E.abiItem.name,k=(x=E.abiItem.inputs)==null?void 0:x.some(R=>!("name"in R&&R.name))}const D=_a(C,{args:k?[]:{},eventName:T});s([D])}},onError(_){i==null||i(_)}});b=w,p||b()}catch(v){i==null||i(v)}})(),b})()}function Afe(e,{batch:t=!0,onError:n,onTransactions:r,poll:o,pollingInterval:a=e.pollingInterval}){return(typeof o<"u"?o:e.transport.type!=="webSocket")?(()=>{const l=Xr(["watchPendingTransactions",e.uid,t,a]);return sm(l,{onTransactions:r,onError:n},u=>{let d;const f=ey(async()=>{var h;try{if(!d)try{d=await Fe(e,$q,"createPendingTransactionFilter")({});return}catch(p){throw f(),p}const m=await Fe(e,H_,"getFilterChanges")({filter:d});if(m.length===0)return;if(t)u.onTransactions(m);else for(const p of m)u.onTransactions([p])}catch(m){(h=u.onError)==null||h.call(u,m)}},{emitOnBegin:!0,interval:a});return async()=>{d&&await Fe(e,q_,"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})()}function Dfe(e){return{call:t=>z_(e,t),createBlockFilter:()=>bde(e),createContractEventFilter:t=>G8(e,t),createEventFilter:t=>Uq(e,t),createPendingTransactionFilter:()=>$q(e),estimateContractGas:t=>Cq(e,t),estimateGas:t=>rj(e,t),getBalance:t=>vde(e,t),getBlock:t=>al(e,t),getBlockNumber:t=>ty(e,t),getBlockTransactionCount:t=>wde(e,t),getBytecode:t=>Ede(e,t),getChainId:()=>tg(e),getContractEvents:t=>aj(e,t),getEnsAddress:t=>nde(e,t),getEnsAvatar:t=>pde(e,t),getEnsName:t=>gde(e,t),getEnsResolver:t=>yde(e,t),getEnsText:t=>Lq(e,t),getFeeHistory:t=>xde(e,t),estimateFeesPerGas:t=>Tue(e,t),getFilterChanges:t=>H_(e,t),getFilterLogs:t=>Cde(e,t),getGasPrice:()=>nj(e),getLogs:t=>oj(e,t),getProof:t=>lfe(e,t),estimateMaxPriorityFeePerGas:t=>Sue(e,t),getStorageAt:t=>ufe(e,t),getTransaction:t=>gj(e,t),getTransactionConfirmations:t=>dfe(e,t),getTransactionCount:t=>_q(e,t),getTransactionReceipt:t=>b5(e,t),multicall:t=>ffe(e,t),prepareTransactionRequest:t=>U_(e,t),readContract:t=>Ss(e,t),sendRawTransaction:t=>sj(e,t),simulateContract:t=>Dq(e,t),verifyMessage:t=>_fe(e,t),verifyTypedData:t=>xfe(e,t),uninstallFilter:t=>q_(e,t),waitForTransactionReceipt:t=>Cfe(e,t),watchBlocks:t=>Sfe(e,t),watchBlockNumber:t=>mW(e,t),watchContractEvent:t=>kq(e,t),watchEvent:t=>Tfe(e,t),watchPendingTransactions:t=>Afe(e,t)}}function Vu(e){const{key:t="public",name:n="Public Client"}=e;return Iq({...e,key:t,name:n,type:"publicClient"}).extend(Dfe)}function kfe(e,{abi:t,args:n,bytecode:r,...o}){const a=Qq({abi:t,args:n,bytecode:r});return cj(e,{...o,data:a})}async function jfe(e){var n;return((n=e.account)==null?void 0:n.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"})).map(r=>V8(r))}async function Pfe(e){return await e.request({method:"wallet_getPermissions"})}async function Ife(e){return(await e.request({method:"eth_requestAccounts"})).map(n=>Rr(n))}async function Ofe(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}async function Rfe(e,{account:t=e.account,message:n}){if(!t)throw new om({docsPath:"/docs/actions/wallet/signMessage"});const r=Ta(t);if(r.type==="local")return r.signMessage({message:n});const o=typeof n=="string"?I_(n):n.raw instanceof Uint8Array?rt(n.raw):n.raw;return e.request({method:"personal_sign",params:[o,r.address]})}async function Nfe(e,t){var l,u,d,f;const{account:n=e.account,chain:r=e.chain,...o}=t;if(!n)throw new om({docsPath:"/docs/actions/wallet/signTransaction"});const a=Ta(n);Jg({account:a,...t});const i=await Fe(e,tg,"getChainId")({});r!==null&&jq({currentChainId:i,chain:r});const s=(r==null?void 0:r.formatters)||((l=e.chain)==null?void 0:l.formatters),c=((u=s==null?void 0:s.transactionRequest)==null?void 0:u.format)||Xg;return a.type==="local"?a.signTransaction({...o,chainId:i},{serializer:(f=(d=e.chain)==null?void 0:d.serializers)==null?void 0:f.transaction}):await e.request({method:"eth_signTransaction",params:[{...c(o),chainId:Xe(i),from:a.address}]})}async function Bfe(e,{account:t=e.account,domain:n,message:r,primaryType:o,types:a}){if(!t)throw new om({docsPath:"/docs/actions/wallet/signTypedData"});const i=Ta(t),s={EIP712Domain:Yq({domain:n}),...a};if(Kq({domain:n,message:r,primaryType:o,types:s}),i.type==="local")return i.signTypedData({domain:n,primaryType:o,types:s,message:r});const c=Xr({domain:n??{},primaryType:o,types:s,message:r},(l,u)=>Ea(u)?u.toLowerCase():u);return e.request({method:"eth_signTypedData_v4",params:[i.address,c]})}async function Ffe(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:Xe(t)}]})}async function Mfe(e,t){return await e.request({method:"wallet_watchAsset",params:t})}function Lfe(e){return{addChain:t=>Wue(e,t),deployContract:t=>kfe(e,t),getAddresses:()=>jfe(e),getChainId:()=>tg(e),getPermissions:()=>Pfe(e),prepareTransactionRequest:t=>U_(e,t),requestAddresses:()=>Ife(e),requestPermissions:t=>Ofe(e,t),sendRawTransaction:t=>sj(e,t),sendTransaction:t=>cj(e,t),signMessage:t=>Rfe(e,t),signTransaction:t=>Nfe(e,t),signTypedData:t=>Bfe(e,t),switchChain:t=>Ffe(e,t),watchAsset:t=>Mfe(e,t),writeContract:t=>Pq(e,t)}}function ry(e){const{key:t="wallet",name:n="Wallet Client",transport:r}=e;return Iq({...e,key:t,name:n,transport:a=>r({...a,retryCount:0}),type:"walletClient"}).extend(Lfe)}function Ufe(e,t={}){const{key:n="webSocket",name:r="WebSocket JSON-RPC",retryDelay:o}=t;return({chain:a,retryCount:i,timeout:s})=>{var d;const c=t.retryCount??i,l=s??t.timeout??1e4,u=e||((d=a==null?void 0:a.rpcUrls.default.webSocket)==null?void 0:d[0]);if(!u)throw new Rq;return W_({key:n,name:r,async request({method:f,params:h}){const m={method:f,params:h},p=await IS(u),{error:b,result:v}=await Qf.webSocketAsync(p,{body:m,timeout:l});if(b)throw new X8({body:m,error:b,url:u});return v},retryCount:c,retryDelay:o,timeout:l,type:"webSocket"},{getSocket(){return IS(u)},async subscribe({params:f,onData:h,onError:m}){const p=await IS(u),{result:b}=await new Promise((v,g)=>Qf.webSocket(p,{body:{method:"eth_subscribe",params:f},onResponse(w){if(w.error){g(w.error),m==null||m(w.error);return}if(typeof w.id=="number"){v(w);return}w.method==="eth_subscription"&&h(w.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(v=>Qf.webSocket(p,{body:{method:"eth_unsubscribe",params:[b]},onResponse:v}))}}}})}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const er=BigInt(0),_n=BigInt(1),cu=BigInt(2),$fe=BigInt(3),v5=BigInt(4),RO=BigInt(5),NO=BigInt(8);BigInt(9);BigInt(16);function Xn(e,t){const n=e%t;return n>=er?n:t+n}function zfe(e,t,n){if(n<=er||t 0");if(n===_n)return er;let r=_n;for(;t>er;)t&_n&&(r=r*e%n),e=e*e%n,t>>=_n;return r}function oa(e,t,n){let r=e;for(;t-- >er;)r*=r,r%=n;return r}function w5(e,t){if(e===er||t<=er)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=Xn(e,t),r=t,o=er,a=_n;for(;n!==er;){const s=r/n,c=r%n,l=o-a*s;r=n,n=c,o=a,a=l}if(r!==_n)throw new Error("invert: does not exist");return Xn(o,t)}function Hfe(e){const t=(e-_n)/cu;let n,r,o;for(n=e-_n,r=0;n%cu===er;n/=cu,r++);for(o=cu;o(r[o]="function",r),t);return cm(e,n)}function Gfe(e,t,n){if(n 0");if(n===er)return e.ONE;if(n===_n)return t;let r=e.ONE,o=t;for(;n>er;)n&_n&&(r=e.mul(r,o)),o=e.sqr(o),n>>=_n;return r}function Vfe(e,t){const n=new Array(t.length),r=t.reduce((a,i,s)=>e.is0(i)?a:(n[s]=a,e.mul(a,i)),e.ONE),o=e.inv(r);return t.reduceRight((a,i,s)=>e.is0(i)?a:(n[s]=e.mul(a,n[s]),e.mul(a,i)),o),n}function gW(e,t){const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Kfe(e,t,n=!1,r={}){if(e<=er)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:o,nByteLength:a}=gW(e,t);if(a>2048)throw new Error("Field lengths over 2048 bytes are not supported");const i=qfe(e),s=Object.freeze({ORDER:e,BITS:o,BYTES:a,MASK:wj(o),ZERO:er,ONE:_n,create:c=>Xn(c,e),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return er<=c&&cc===er,isOdd:c=>(c&_n)===_n,neg:c=>Xn(-c,e),eql:(c,l)=>c===l,sqr:c=>Xn(c*c,e),add:(c,l)=>Xn(c+l,e),sub:(c,l)=>Xn(c-l,e),mul:(c,l)=>Xn(c*l,e),pow:(c,l)=>Gfe(s,c,l),div:(c,l)=>Xn(c*w5(l,e),e),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>w5(c,e),sqrt:r.sqrt||(c=>i(s,c)),invertBatch:c=>Vfe(s,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>n?vj(c,a):il(c,a),fromBytes:c=>{if(c.length!==a)throw new Error(`Fp.fromBytes: expected ${a}, got ${c.length}`);return n?bj(c):Jr(c)}});return Object.freeze(s)}function yW(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 bW(e){const t=yW(e);return t+Math.ceil(t/2)}function Yfe(e,t,n=!1){const r=e.length,o=yW(t),a=bW(t);if(r<16||r1024)throw new Error(`expected ${a}-1024 bytes of input, got ${r}`);const i=n?Jr(e):bj(e),s=Xn(i,t-_n)+_n;return n?vj(s,o):il(s,o)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Qfe=BigInt(0),NS=BigInt(1);function Xfe(e,t){const n=(o,a)=>{const i=a.negate();return o?i:a},r=o=>{const a=Math.ceil(t/o)+1,i=2**(o-1);return{windows:a,windowSize:i}};return{constTimeNegate:n,unsafeLadder(o,a){let i=e.ZERO,s=o;for(;a>Qfe;)a&NS&&(i=i.add(s)),s=s.double(),a>>=NS;return i},precomputeWindow(o,a){const{windows:i,windowSize:s}=r(a),c=[];let l=o,u=l;for(let d=0;d>=h,b>c&&(b-=f,i+=NS);const v=p,g=p+Math.abs(b)-1,w=m%2!==0,_=b<0;b===0?u=u.add(n(w,a[v])):l=l.add(n(_,a[g]))}return{p:l,f:u}},wNAFCached(o,a,i,s){const c=o._WINDOW_SIZE||1;let l=a.get(o);return l||(l=this.precomputeWindow(o,c),c!==1&&a.set(o,s(l))),this.wNAF(c,l,i)}}}function vW(e){return pW(e.Fp),cm(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...gW(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Jfe(e){const t=vW(e);cm(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:o}=t;if(n){if(!r.eql(o,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}const{bytesToNumberBE:Zfe,hexToBytes:ehe}=fW,yu={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(e){const{Err:t}=yu;if(e.length<2||e[0]!==2)throw new t("Invalid signature integer tag");const n=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)throw new t("Invalid signature integer: wrong length");if(r[0]&128)throw new t("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:Zfe(r),l:e.subarray(n+2)}},toSig(e){const{Err:t}=yu,n=typeof e=="string"?ehe(e):e;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||n[0]!=48)throw new t("Invalid signature tag");if(n[1]!==r-2)throw new t("Invalid signature: incorrect length");const{d:o,l:a}=yu._parseInt(n.subarray(2)),{d:i,l:s}=yu._parseInt(a);if(s.length)throw new t("Invalid signature: left bytes after parsing");return{r:o,s:i}},hexFromSig(e){const t=l=>Number.parseInt(l[0],16)&8?"00"+l:l,n=l=>{const u=l.toString(16);return u.length&1?`0${u}`:u},r=t(n(e.s)),o=t(n(e.r)),a=r.length/2,i=o.length/2,s=n(a),c=n(i);return`30${n(i+a+4)}02${c}${o}02${s}${r}`}},Ka=BigInt(0),dn=BigInt(1),cc=BigInt(2),Tw=BigInt(3),BO=BigInt(4);function the(e){const t=Jfe(e),{Fp:n}=t,r=t.toBytes||((m,p,b)=>{const v=p.toAffine();return Fo(Uint8Array.from([4]),n.toBytes(v.x),n.toBytes(v.y))}),o=t.fromBytes||(m=>{const p=m.subarray(1),b=n.fromBytes(p.subarray(0,n.BYTES)),v=n.fromBytes(p.subarray(n.BYTES,2*n.BYTES));return{x:b,y:v}});function a(m){const{a:p,b}=t,v=n.sqr(m),g=n.mul(v,m);return n.add(n.add(g,n.mul(m,p)),b)}if(!n.eql(n.sqr(t.Gy),a(t.Gx)))throw new Error("bad generator point: equation left != right");function i(m){return typeof m=="bigint"&&Kan.eql(w,n.ZERO);return g(b)&&g(v)?d.ZERO:new d(b,v,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(p){const b=n.invertBatch(p.map(v=>v.pz));return p.map((v,g)=>v.toAffine(b[g])).map(d.fromAffine)}static fromHex(p){const b=d.fromAffine(o(Dr("pointHex",p)));return b.assertValidity(),b}static fromPrivateKey(p){return d.BASE.multiply(c(p))}_setWindowSize(p){this._WINDOW_SIZE=p,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:p,y:b}=this.toAffine();if(!n.isValid(p)||!n.isValid(b))throw new Error("bad point: x or y not FE");const v=n.sqr(b),g=a(p);if(!n.eql(v,g))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:p}=this.toAffine();if(n.isOdd)return!n.isOdd(p);throw new Error("Field doesn't support isOdd")}equals(p){u(p);const{px:b,py:v,pz:g}=this,{px:w,py:_,pz:C}=p,x=n.eql(n.mul(b,C),n.mul(w,g)),E=n.eql(n.mul(v,C),n.mul(_,g));return x&&E}negate(){return new d(this.px,n.neg(this.py),this.pz)}double(){const{a:p,b}=t,v=n.mul(b,Tw),{px:g,py:w,pz:_}=this;let C=n.ZERO,x=n.ZERO,E=n.ZERO,T=n.mul(g,g),k=n.mul(w,w),D=n.mul(_,_),R=n.mul(g,w);return R=n.add(R,R),E=n.mul(g,_),E=n.add(E,E),C=n.mul(p,E),x=n.mul(v,D),x=n.add(C,x),C=n.sub(k,x),x=n.add(k,x),x=n.mul(C,x),C=n.mul(R,C),E=n.mul(v,E),D=n.mul(p,D),R=n.sub(T,D),R=n.mul(p,R),R=n.add(R,E),E=n.add(T,T),T=n.add(E,T),T=n.add(T,D),T=n.mul(T,R),x=n.add(x,T),D=n.mul(w,_),D=n.add(D,D),T=n.mul(D,R),C=n.sub(C,T),E=n.mul(D,k),E=n.add(E,E),E=n.add(E,E),new d(C,x,E)}add(p){u(p);const{px:b,py:v,pz:g}=this,{px:w,py:_,pz:C}=p;let x=n.ZERO,E=n.ZERO,T=n.ZERO;const k=t.a,D=n.mul(t.b,Tw);let R=n.mul(b,w),F=n.mul(v,_),B=n.mul(g,C),j=n.add(b,v),P=n.add(w,_);j=n.mul(j,P),P=n.add(R,F),j=n.sub(j,P),P=n.add(b,g);let O=n.add(w,C);return P=n.mul(P,O),O=n.add(R,B),P=n.sub(P,O),O=n.add(v,g),x=n.add(_,C),O=n.mul(O,x),x=n.add(F,B),O=n.sub(O,x),T=n.mul(k,P),x=n.mul(D,B),T=n.add(x,T),x=n.sub(F,T),T=n.add(F,T),E=n.mul(x,T),F=n.add(R,R),F=n.add(F,R),B=n.mul(k,B),P=n.mul(D,P),F=n.add(F,B),B=n.sub(R,B),B=n.mul(k,B),P=n.add(P,B),R=n.mul(F,P),E=n.add(E,R),R=n.mul(O,P),x=n.mul(j,x),x=n.sub(x,R),R=n.mul(j,F),T=n.mul(O,T),T=n.add(T,R),new d(x,E,T)}subtract(p){return this.add(p.negate())}is0(){return this.equals(d.ZERO)}wNAF(p){return h.wNAFCached(this,l,p,b=>{const v=n.invertBatch(b.map(g=>g.pz));return b.map((g,w)=>g.toAffine(v[w])).map(d.fromAffine)})}multiplyUnsafe(p){const b=d.ZERO;if(p===Ka)return b;if(s(p),p===dn)return this;const{endo:v}=t;if(!v)return h.unsafeLadder(this,p);let{k1neg:g,k1:w,k2neg:_,k2:C}=v.splitScalar(p),x=b,E=b,T=this;for(;w>Ka||C>Ka;)w&dn&&(x=x.add(T)),C&dn&&(E=E.add(T)),T=T.double(),w>>=dn,C>>=dn;return g&&(x=x.negate()),_&&(E=E.negate()),E=new d(n.mul(E.px,v.beta),E.py,E.pz),x.add(E)}multiply(p){s(p);let b=p,v,g;const{endo:w}=t;if(w){const{k1neg:_,k1:C,k2neg:x,k2:E}=w.splitScalar(b);let{p:T,f:k}=this.wNAF(C),{p:D,f:R}=this.wNAF(E);T=h.constTimeNegate(_,T),D=h.constTimeNegate(x,D),D=new d(n.mul(D.px,w.beta),D.py,D.pz),v=T.add(D),g=k.add(R)}else{const{p:_,f:C}=this.wNAF(b);v=_,g=C}return d.normalizeZ([v,g])[0]}multiplyAndAddUnsafe(p,b,v){const g=d.BASE,w=(C,x)=>x===Ka||x===dn||!C.equals(g)?C.multiplyUnsafe(x):C.multiply(x),_=w(this,b).add(w(p,v));return _.is0()?void 0:_}toAffine(p){const{px:b,py:v,pz:g}=this,w=this.is0();p==null&&(p=w?n.ONE:n.inv(g));const _=n.mul(b,p),C=n.mul(v,p),x=n.mul(g,p);if(w)return{x:n.ZERO,y:n.ZERO};if(!n.eql(x,n.ONE))throw new Error("invZ was invalid");return{x:_,y:C}}isTorsionFree(){const{h:p,isTorsionFree:b}=t;if(p===dn)return!0;if(b)return b(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:p,clearCofactor:b}=t;return p===dn?this:b?b(d,this):this.multiplyUnsafe(t.h)}toRawBytes(p=!0){return this.assertValidity(),r(d,this,p)}toHex(p=!0){return bh(this.toRawBytes(p))}}d.BASE=new d(t.Gx,t.Gy,n.ONE),d.ZERO=new d(n.ZERO,n.ONE,n.ZERO);const f=t.nBitLength,h=Xfe(d,t.endo?Math.ceil(f/2):f);return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:c,weierstrassEquation:a,isWithinCurveOrder:i}}function nhe(e){const t=vW(e);return cm(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function rhe(e){const t=nhe(e),{Fp:n,n:r}=t,o=n.BYTES+1,a=2*n.BYTES+1;function i(P){return Kabh(il(P,t.nByteLength));function m(P){const O=r>>dn;return P>O}function p(P){return m(P)?s(-P):P}const b=(P,O,I)=>Jr(P.slice(O,I));class v{constructor(O,I,N){this.r=O,this.s=I,this.recovery=N,this.assertValidity()}static fromCompact(O){const I=t.nByteLength;return O=Dr("compactSignature",O,I*2),new v(b(O,0,I),b(O,I,2*I))}static fromDER(O){const{r:I,s:N}=yu.toSig(Dr("DER",O));return new v(I,N)}assertValidity(){if(!f(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!f(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(O){return new v(this.r,this.s,O)}recoverPublicKey(O){const{r:I,s:N,recovery:M}=this,L=E(Dr("msgHash",O));if(M==null||![0,1,2,3].includes(M))throw new Error("recovery id invalid");const X=M===2||M===3?I+t.n:I;if(X>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const J=M&1?"03":"02",U=l.fromHex(J+h(X)),G=c(X),Z=s(-L*G),ae=s(N*G),ne=l.BASE.multiplyAndAddUnsafe(U,Z,ae);if(!ne)throw new Error("point at infinify");return ne.assertValidity(),ne}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new v(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return vh(this.toDERHex())}toDERHex(){return yu.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return vh(this.toCompactHex())}toCompactHex(){return h(this.r)+h(this.s)}}const g={isValidPrivateKey(P){try{return u(P),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const P=bW(t.n);return Yfe(t.randomBytes(P),t.n)},precompute(P=8,O=l.BASE){return O._setWindowSize(P),O.multiply(BigInt(3)),O}};function w(P,O=!0){return l.fromPrivateKey(P).toRawBytes(O)}function _(P){const O=P instanceof Uint8Array,I=typeof P=="string",N=(O||I)&&P.length;return O?N===o||N===a:I?N===2*o||N===2*a:P instanceof l}function C(P,O,I=!0){if(_(P))throw new Error("first arg must be private key");if(!_(O))throw new Error("second arg must be public key");return l.fromHex(O).multiply(u(P)).toRawBytes(I)}const x=t.bits2int||function(P){const O=Jr(P),I=P.length*8-t.nBitLength;return I>0?O>>BigInt(I):O},E=t.bits2int_modN||function(P){return s(x(P))},T=wj(t.nBitLength);function k(P){if(typeof P!="bigint")throw new Error("bigint expected");if(!(Ka<=P&&Pte in I))throw new Error("sign() legacy options not supported");const{hash:N,randomBytes:M}=t;let{lowS:L,prehash:X,extraEntropy:J}=I;L==null&&(L=!0),P=Dr("msgHash",P),X&&(P=Dr("prehashed msgHash",N(P)));const U=E(P),G=u(O),Z=[k(G),k(U)];if(J!=null){const te=J===!0?M(n.BYTES):J;Z.push(Dr("extraEntropy",te))}const ae=Fo(...Z),ne=U;function ie(te){const ee=x(te);if(!f(ee))return;const re=c(ee),z=l.BASE.multiply(ee).toAffine(),fe=s(z.x);if(fe===Ka)return;const ve=s(re*s(ne+fe*G));if(ve===Ka)return;let Ue=(z.x===fe?0:2)|Number(z.y&dn),ke=ve;return L&&m(ve)&&(ke=p(ve),Ue^=1),new v(fe,ke,Ue)}return{seed:ae,k2sig:ie}}const R={lowS:t.lowS,prehash:!1},F={lowS:t.lowS,prehash:!1};function B(P,O,I=R){const{seed:N,k2sig:M}=D(P,O,I),L=t;return dW(L.hash.outputLen,L.nByteLength,L.hmac)(N,M)}l.BASE._setWindowSize(8);function j(P,O,I,N=F){var z;const M=P;if(O=Dr("msgHash",O),I=Dr("publicKey",I),"strict"in N)throw new Error("options.strict was renamed to lowS");const{lowS:L,prehash:X}=N;let J,U;try{if(typeof M=="string"||M instanceof Uint8Array)try{J=v.fromDER(M)}catch(fe){if(!(fe instanceof yu.Err))throw fe;J=v.fromCompact(M)}else if(typeof M=="object"&&typeof M.r=="bigint"&&typeof M.s=="bigint"){const{r:fe,s:ve}=M;J=new v(fe,ve)}else throw new Error("PARSE");U=l.fromHex(I)}catch(fe){if(fe.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(L&&J.hasHighS())return!1;X&&(O=t.hash(O));const{r:G,s:Z}=J,ae=E(O),ne=c(Z),ie=s(ae*ne),te=s(G*ne),ee=(z=l.BASE.multiplyAndAddUnsafe(U,ie,te))==null?void 0:z.toAffine();return ee?s(ee.x)===G:!1}return{CURVE:t,getPublicKey:w,getSharedSecret:C,sign:B,verify:j,ProjectivePoint:l,Signature:v,utils:g}}function ohe(e,t){const n=e.ORDER;let r=Ka;for(let m=n-dn;m%cc===Ka;m/=cc)r+=dn;const o=r,a=cc<{let b=d,v=e.pow(p,l),g=e.sqr(v);g=e.mul(g,p);let w=e.mul(m,g);w=e.pow(w,c),w=e.mul(w,v),v=e.mul(w,p),g=e.mul(w,m);let _=e.mul(g,v);w=e.pow(_,u);let C=e.eql(w,e.ONE);v=e.mul(g,f),w=e.mul(_,b),g=e.cmov(v,g,C),_=e.cmov(w,_,C);for(let x=o;x>dn;x--){let E=x-cc;E=cc<{let g=e.sqr(v);const w=e.mul(b,v);g=e.mul(g,w);let _=e.pow(g,m);_=e.mul(_,w);const C=e.mul(_,p),x=e.mul(e.sqr(_),v),E=e.eql(x,b);let T=e.cmov(C,_,E);return{isValid:E,value:T}}}return h}function ahe(e,t){if(pW(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=ohe(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let o,a,i,s,c,l,u,d;o=e.sqr(r),o=e.mul(o,t.Z),a=e.sqr(o),a=e.add(a,o),i=e.add(a,e.ONE),i=e.mul(i,t.B),s=e.cmov(t.Z,e.neg(a),!e.eql(a,e.ZERO)),s=e.mul(s,t.A),a=e.sqr(i),l=e.sqr(s),c=e.mul(l,t.A),a=e.add(a,c),a=e.mul(a,i),l=e.mul(l,s),c=e.mul(l,t.B),a=e.add(a,c),u=e.mul(o,i);const{isValid:f,value:h}=n(a,l);d=e.mul(o,r),d=e.mul(d,h),u=e.cmov(u,i,f),d=e.cmov(d,h,f);const m=e.isOdd(r)===e.isOdd(d);return d=e.cmov(e.neg(d),d,m),u=e.div(u,s),{x:u,y:d}}}function ihe(e){if(e instanceof Uint8Array)return e;if(typeof e=="string")return Q_(e);throw new Error("DST must be Uint8Array or string")}const she=Jr;function wc(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=e&255,e>>>=8;return new Uint8Array(n)}function che(e,t){const n=new Uint8Array(e.length);for(let r=0;r255&&(t=r(Fo(Q_("H2C-OVERSIZE-DST-"),t)));const{outputLen:o,blockLen:a}=r,i=Math.ceil(n/o);if(i>255)throw new Error("Invalid xmd length");const s=Fo(t,wc(t.length,1)),c=wc(0,a),l=wc(n,2),u=new Array(i),d=r(Fo(c,e,l,wc(0,1),s));u[0]=r(Fo(d,wc(1,1),s));for(let h=1;h<=i;h++){const m=[che(d,u[h-1]),wc(h+1,1),s];u[h]=r(Fo(...m))}return Fo(...u).slice(0,n)}function uhe(e,t,n,r,o){if(rg(e),rg(t),Ej(n),t.length>255){const a=Math.ceil(2*r/8);t=o.create({dkLen:a}).update(Q_("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:n}).update(e).update(wc(n,2)).update(t).update(wc(t.length,1)).digest()}function FO(e,t,n){cm(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:r,k:o,m:a,hash:i,expand:s,DST:c}=n;rg(e),Ej(t);const l=ihe(c),u=r.toString(2).length,d=Math.ceil((u+o)/8),f=t*a*d;let h;if(s==="xmd")h=lhe(e,l,f,i);else if(s==="xof")h=uhe(e,l,f,o,i);else if(s==="_internal_pass")h=e;else throw new Error('expand must be "xmd" or "xof"');const m=new Array(t);for(let p=0;pArray.from(r).reverse());return(r,o)=>{const[a,i,s,c]=n.map(l=>l.reduce((u,d)=>e.add(e.mul(u,r),d)));return r=e.div(a,i),o=e.mul(o,e.div(s,c)),{x:r,y:o}}}function fhe(e,t,n){if(typeof t!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(r,o){const a=FO(r,2,{...n,DST:n.DST,...o}),i=e.fromAffine(t(a[0])),s=e.fromAffine(t(a[1])),c=i.add(s).clearCofactor();return c.assertValidity(),c},encodeToCurve(r,o){const a=FO(r,1,{...n,DST:n.encodeDST,...o}),i=e.fromAffine(t(a[0])).clearCofactor();return i.assertValidity(),i}}}let wW=class extends $8{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,ale(t);const r=Wg(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,a=new Uint8Array(o);a.set(r.length>o?t.create().update(r).digest():r);for(let i=0;inew wW(e,t).update(n).digest();EW.create=(e,t)=>new wW(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function hhe(e){return{hash:e,hmac:(t,...n)=>EW(e,t,ple(...n)),randomBytes:MH}}function mhe(e,t){const n=r=>rhe({...e,...hhe(r)});return Object.freeze({...n(t),create:n})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const X_=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Aw=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_W=BigInt(1),Dw=BigInt(2),MO=(e,t)=>(e+t/Dw)/t;function xW(e){const t=X_,n=BigInt(3),r=BigInt(6),o=BigInt(11),a=BigInt(22),i=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=oa(u,n,t)*u%t,f=oa(d,n,t)*u%t,h=oa(f,Dw,t)*l%t,m=oa(h,o,t)*h%t,p=oa(m,a,t)*m%t,b=oa(p,s,t)*p%t,v=oa(b,c,t)*b%t,g=oa(v,s,t)*p%t,w=oa(g,n,t)*u%t,_=oa(w,i,t)*m%t,C=oa(_,r,t)*l%t,x=oa(C,Dw,t);if(!sl.eql(sl.sqr(x),e))throw new Error("Cannot find square root");return x}const sl=Kfe(X_,void 0,void 0,{sqrt:xW}),oy=mhe({a:BigInt(0),b:BigInt(7),Fp:sl,n:Aw,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=Aw,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-_W*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=n,i=BigInt("0x100000000000000000000000000000000"),s=MO(a*e,t),c=MO(-r*e,t);let l=Xn(e-s*n-c*o,t),u=Xn(-s*r-c*a,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}}}},ng),J_=BigInt(0),CW=e=>typeof e=="bigint"&&J_typeof e=="bigint"&&J_o.charCodeAt(0)));n=Fo(r,r),LO[e]=n}return ng(Fo(n,...t))}const _j=e=>e.toRawBytes(!0).slice(1),E5=e=>il(e,32),BS=e=>Xn(e,X_),og=e=>Xn(e,Aw),xj=oy.ProjectivePoint,ghe=(e,t,n)=>xj.BASE.multiplyAndAddUnsafe(e,t,n);function _5(e){let t=oy.utils.normPrivateKeyToScalar(e),n=xj.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:og(-t),bytes:_j(n)}}function SW(e){if(!CW(e))throw new Error("bad x: need 0 < x < p");const t=BS(e*e),n=BS(t*e+BigInt(7));let r=xW(n);r%Dw!==J_&&(r=BS(-r));const o=new xj(e,r,_W);return o.assertValidity(),o}function TW(...e){return og(Jr(kw("BIP0340/challenge",...e)))}function yhe(e){return _5(e).bytes}function bhe(e,t,n=MH(32)){const r=Dr("message",e),{bytes:o,scalar:a}=_5(t),i=Dr("auxRand",n,32),s=E5(a^Jr(kw("BIP0340/aux",i))),c=kw("BIP0340/nonce",s,o,r),l=og(Jr(c));if(l===J_)throw new Error("sign failed: k is zero");const{bytes:u,scalar:d}=_5(l),f=TW(u,o,r),h=new Uint8Array(64);if(h.set(u,0),h.set(E5(og(d+f*a)),32),!AW(h,r,o))throw new Error("sign: Invalid signature produced");return h}function AW(e,t,n){const r=Dr("signature",e,64),o=Dr("message",t),a=Dr("publicKey",n,32);try{const i=SW(Jr(a)),s=Jr(r.subarray(0,32));if(!CW(s))return!1;const c=Jr(r.subarray(32,64));if(!phe(c))return!1;const l=TW(E5(s),_j(i),o),u=ghe(i,c,og(-l));return!(!u||!u.hasEvenY()||u.toAffine().x!==s)}catch{return!1}}const vhe={getPublicKey:yhe,sign:bhe,verify:AW,utils:{randomPrivateKey:oy.utils.randomPrivateKey,lift_x:SW,pointToBytes:_j,numberToBytesBE:il,bytesToNumberBE:Jr,taggedHash:kw,mod:Xn}},whe=dhe(sl,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(t=>BigInt(t)))),Ehe=ahe(sl,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:sl.create(BigInt("-11"))}),DW=fhe(oy.ProjectivePoint,e=>{const{x:t,y:n}=Ehe(sl.create(e[0]));return whe(t,n)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:sl.ORDER,m:1,k:128,expand:"xmd",hash:ng}),_he=DW.hashToCurve,xhe=DW.encodeToCurve,Che=Object.freeze(Object.defineProperty({__proto__:null,encodeToCurve:xhe,hashToCurve:_he,schnorr:vhe,secp256k1:oy},Symbol.toStringTag,{value:"Module"}));function ut(e,t=18,n){const r=(n==null?void 0:n.precision)??4,o=(n==null?void 0:n.keepZero)??!1,[a,i]=Wu(e,t).split("."),s=a.replace(/(?=(?!^)(\d{3})+$)/g,",");let c=(+`0.${i||0}`).toFixed(r);return o||(c=Number(c).toString()),`${s}${c.slice(1)}`}function She(e){const[t,n]=e.toString().split("."),r=t.replace(/(?=(?!^)(\d{3})+$)/g,",");return n?`${r}.${n}`:r}async function UO(e,t,n){let r=0n;return t.type==="native"?r=await n.getBalance({address:e}):r=await n.readContract({address:t.address,abi:(await me(async()=>{const{default:o}=await Promise.resolve().then(()=>aD);return{default:o}},void 0,import.meta.url)).default,functionName:"balanceOf",args:[e]}),{value:r,token:t}}var jt={},wt={},$O={};Object.defineProperty(wt,"__esModule",{value:!0});wt.HelixChainConf=wt.ChainRpc=wt.PickRPCStrategy=void 0;var Io;(function(e){e[e.Custom=0]="Custom",e[e.First=1]="First",e[e.Best=2]="Best",e[e.Random=3]="Random",e[e.PrivateFirst=4]="PrivateFirst",e[e.PublicFirst=5]="PublicFirst"})(Io||(wt.PickRPCStrategy=Io={}));class Z_{constructor(t){Ve(this,"options");this.options=t}static fromOptions(t){return t.map(n=>new Z_(n))}get provider(){return this.options.provider}get endpoint(){return this.options.endpoint}readEnv(t){return process&&$O?$O[t]??"":""}rpc(t){const{provider:n,endpoint:r}=this.options;if(!r)return;if(!n)return r.indexOf("$")>=-1?void 0:r;const o=n.toLowerCase();let a,i;switch(o){case"public":break;case"ankr":a="$ANKR_KEY",i=(t==null?void 0:t.ankrKey)??(t==null?void 0:t.key)??this.readEnv("ANKR_KEY");break;case"alchemy":a="$ALCHEMY_KEY",i=(t==null?void 0:t.alchemyKey)??(t==null?void 0:t.key)??this.readEnv("ALCHEMY_KEY");break;case"infura":a="$INFURA_KEY",i=(t==null?void 0:t.infuraKey)??(t==null?void 0:t.key)??this.readEnv("INFURA_KEY");break;case"blast":a="$BLAST_KEY",i=(t==null?void 0:t.blastKey)??(t==null?void 0:t.key)??this.readEnv("BLAST_KEY");break;default:return}return a&&i?r.replace(a,i):o==="public"?r:void 0}}wt.ChainRpc=Z_;class Cj{constructor(t){Ve(this,"_data");this._data=t}get _network(){return this._data._network}get testnet(){return this._network==="testnets"}get nativeCurrency(){return this.tokens.find(t=>t.type==="native")}get id(){return this._data.id}get lzid(){return this._data.lzid}get code(){return this._data.code}get name(){return this._data.name}get indexers(){return this._data.indexers}get rpcs(){return this.availableRpcs()}get additional(){return this._data.additional}get contract(){return this._data.contract}get protocol(){return this._data.protocol}get messagers(){return this._data.messagers}get tokens(){return this._data.tokens}get couples(){return this._data.couples}get rpc(){return this.pickRpcSync()}get(t){return this._data[t]}availableRpcs(t){const n=[];for(const r of this._data.rpcs){const o=r.rpc(t);o&&n.push(o)}return n}pickRpcSync(t){switch((t==null?void 0:t.strategy)??Io.PrivateFirst){case Io.Custom:return t!=null&&t.picker?t.picker(this.rpcs):this.rpcs[0];case Io.Random:{const r=this.rpcs.length;return this.rpcs[Math.floor(Math.random()*r)]}case Io.PrivateFirst:{const o=this._data.rpcs.filter(i=>i.provider!=="PUBLIC").map(i=>i.rpc(t==null?void 0:t.auth)).find(i=>i),a={...t,strategy:Io.First};return o||this.pickRpcSync(a)}case Io.PublicFirst:{const o=this._data.rpcs.filter(i=>i.provider==="PUBLIC").map(i=>i.rpc(t==null?void 0:t.auth)).find(i=>i),a={...t,strategy:Io.First};return o||this.pickRpcSync(a)}case Io.Best:case Io.First:default:return this.rpcs[0]}}async pickRpc(t){const n=(t==null?void 0:t.strategy)??Io.PrivateFirst;return n===Io.Custom?t!=null&&t.picker?await t.picker(this.rpcs):this.rpcs[0]:this.pickRpcSync({strategy:n})}indexer(t){return this.indexers.find(n=>n.type===t)}keys(){return Object.keys(this._data)}token(t){for(const n of this.tokens)if(n.alias.find(r=>zr(r,t)))return n}messager(t){const n=t.toUpperCase();for(const r of this.messagers)if(r.name.toUpperCase()===n)return r}categories(){return this.couples.map(n=>n.category).reduce((n,r)=>(n.includes(r)||n.push(r),n),[])}filterCouples(t){return t?this.couples.filter(n=>{if(t.category&&!zr(n.category,t.category)||t.messager&&!(zr(n.messager.name,t.messager)||zr(n.messager.address,t.messager)))return!1;if(t.protocol){if(!(zr(n.protocol.name,t.protocol)||zr(n.protocol.address,t.protocol)))return!1}else if(t.relatedProtocol){let r=[];switch(t.relatedProtocol){case"lnv2-default":r=["lnv2-opposite","lnv2-default"];break;case"lnv2-opposite":r=["lnv2-opposite","lnv2-default"];break}if(r.length&&!r.find(a=>zr(n.protocol.name,a)||zr(n.protocol.address,a)))return!1}return!(t.chain&&!(zr(n.chain.id.toString(),t.chain)||zr(n.chain.code,t.chain)||zr(n.chain.name,t.chain))||t.symbolFrom&&!zr(n.symbol.from,t.symbolFrom)||t.symbolTo&&!zr(n.symbol.to,t.symbolTo)||t.symbol&&!(zr(n.symbol.from,t.symbol)&&zr(n.symbol.to,t.symbol)))}):this.couples}toJSON(){return{_network:this._network,id:this.id,lzid:this.lzid,contract:this.contract,additional:this.additional,code:this.code,name:this.name,rpcs:this.rpcs,indexers:this.indexers,protocol:this.protocol,messagers:this.messagers,tokens:this.tokens,couples:this.couples}}static fromJson(t){return new Cj({_network:t._network,id:BigInt(t.id),lzid:t.lzid?BigInt(t.lzid):void 0,contract:t.contract,additional:t.additional,code:t.code,name:t.name,rpcs:Z_.fromOptions(t.rpcs),indexers:t.indexers,protocol:t.protocol,messagers:t.messagers,tokens:t.tokens,couples:t.couples})}}wt.HelixChainConf=Cj;function zr(e,t){return!e||!t?!1:e.toLowerCase()===t.toLowerCase()}var ex={},tx={};Object.defineProperty(tx,"__esModule",{value:!0});tx.arbitrumChain=void 0;const The=wt;tx.arbitrumChain=The.HelixChainConf.fromJson({id:"42161",lzid:"110",code:"arbitrum",name:"Arbitrum",rpcs:[{provider:"PUBLIC",endpoint:"https://arb1.arbitrum.io/rpc"},{provider:"ALCHEMY",endpoint:"https://arb-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://arbitrum-mainnet.infura.io/v3/$INFURA_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/arbitrum/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://arbitrum-one.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23",lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},{name:"eth2arb-receive",address:"0xc95D939Da72ECe8Bd794d42EaEd28974CDb0ADa2"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-arbitrum/v2.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"RING",address:"0x9e523234D36973f9e38642886197D023C88e307e",decimals:18,type:"erc20",alias:["RING"],name:"RING",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png"},{symbol:"WBTC",address:"0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",decimals:8,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"},{symbol:"DAI",address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",decimals:18,type:"erc20",alias:["DAI"],name:"DAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/dai.png"},{symbol:"LINK",address:"0xf97f4df75117a78c1A5a0DBb814Af92458539FB4",decimals:18,type:"erc20",alias:["LINK"],name:"LINK",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/link.png"}],couples:[{chain:{id:"81457",code:"blast",name:"Blast"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"3776",code:"astar-zkevm",name:"Astar zkEVM"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"48900",code:"zircuit",name:"Zircuit"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"1",code:"ethereum",name:"Ethereum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-opposite",address:"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23"},fee:"100000000000000000000",messager:{name:"eth2arb-receive",address:"0xc95D939Da72ECe8Bd794d42EaEd28974CDb0ADa2"},category:"RING"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"RING",to:"Ring"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"RING"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"RING",to:"Ring"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"RING"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"10000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"324",code:"zksync",name:"zksync"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"1284",code:"moonbeam",name:"Moonbeam"},symbol:{from:"USDT",to:"xcUSDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"BTC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"BTC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"BTC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"BTC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"DAI"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"DAI"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"DAI"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"DAI",to:"xDAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"DAI"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"LINK"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"LINK"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"LINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var nx={};Object.defineProperty(nx,"__esModule",{value:!0});nx.astarZkevmChain=void 0;const Ahe=wt;nx.astarZkevmChain=Ahe.HelixChainConf.fromJson({id:"3776",lzid:"257",code:"astar-zkevm",name:"Astar zkEVM",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.startale.com/astar-zkevm"}],contract:{"proxy-admin":"0x7684389eAa307e25Af38A31873E31Cc3B513EE01","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-astar-zkevm/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var rx={};Object.defineProperty(rx,"__esModule",{value:!0});rx.avalancheChain=void 0;const Dhe=wt;rx.avalancheChain=Dhe.HelixChainConf.fromJson({id:"43114",lzid:"106",code:"avalanche",name:"Avalanche",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/avalanche"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/avalanche/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://ava-mainnet.blastapi.io/$BLAST_KEY/ext/bc/C/rpc"},{provider:"ALCHEMY",endpoint:"https://avax-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://avalanche-mainnet.infura.io/v3/$INFURA_KEY"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"AVAX",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["AVAX"],name:"AVAX",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/avax.png"},{symbol:"USDT",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"WBTC",address:"0x152b9d0FdC40C096757F570A51E494bd4b943E50",decimals:8,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"},{symbol:"DAI",address:"0xd586E7F844cEa2F87f50152665BCbc2C279D8d70",decimals:18,type:"erc20",alias:["DAI"],name:"DAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/dai.png"},{symbol:"LINK",address:"0x5947BB275c521040051D82396192181b413227A3",decimals:18,type:"erc20",alias:["LINK"],name:"LINK",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/link.png"}],couples:[{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"DAI",to:"xDAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var ox={};Object.defineProperty(ox,"__esModule",{value:!0});ox.baseChain=void 0;const khe=wt;ox.baseChain=khe.HelixChainConf.fromJson({id:"8453",lzid:"184",code:"base",name:"base",rpcs:[{provider:"PUBLIC",endpoint:"https://mainnet.base.org"},{provider:"ALCHEMY",endpoint:"https://base-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/base/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://base-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDC",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var ax={};Object.defineProperty(ax,"__esModule",{value:!0});ax.blastChain=void 0;const jhe=wt;ax.blastChain=jhe.HelixChainConf.fromJson({id:"81457",lzid:"243",code:"blast",name:"Blast",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/blast"},{provider:"PUBLIC",endpoint:"https://rpc.blast.io"},{provider:"ALCHEMY",endpoint:"https://blast-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/blast/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://blastl2-mainnet.blastapi.io/$BLAST_KEY"}],contract:{"proxy-admin":"0x7684389eAa307e25Af38A31873E31Cc3B513EE01","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xB180D7DcB5CC161C862aD60442FA37527546cAFC"},messagers:[{name:"msgline",address:"0x98982b1685a63596834a05C1288dA7fbF27d684E"},{name:"layerzero",address:"0x8A87497488073307E1a17e8A12475a94Afcb413f"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-blast/v1.0.0"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xB180D7DcB5CC161C862aD60442FA37527546cAFC"},fee:"10000000000000",messager:{name:"layerzero",address:"0x8A87497488073307E1a17e8A12475a94Afcb413f"},category:"ETH"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var ix={};Object.defineProperty(ix,"__esModule",{value:!0});ix.bscChain=void 0;const Phe=wt;ix.bscChain=Phe.HelixChainConf.fromJson({id:"56",lzid:"102",code:"bsc",name:"bsc",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/bsc"},{provider:"PUBLIC",endpoint:"https://binance.llamarpc.com"},{provider:"PUBLIC",endpoint:"https://bsc-rpc.publicnode.com"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/bsc/$ANKR_KEY"},{provider:"ALCHEMY",endpoint:"https://bnb-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"BLAST",endpoint:"https://bsc-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-bsc/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"BNB",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/bnb.svg",alias:["BNB"],name:"BNB"},{symbol:"USDT",address:"0x55d398326f99059fF775485246999027B3197955",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"WBTC",address:"0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",decimals:18,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"BTC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"BTC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"BTC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"BTC"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var sx={};Object.defineProperty(sx,"__esModule",{value:!0});sx.crabDvmChain=void 0;const Ihe=wt;sx.crabDvmChain=Ihe.HelixChainConf.fromJson({id:"44",code:"crab-dvm",name:"Crab",rpcs:[{provider:"PUBLIC",endpoint:"https://crab-rpc.dcdao.box"},{provider:"PUBLIC",endpoint:"https://crab-rpc.darwinia.network"}],messagers:[{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],tokens:[{symbol:"CRAB",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["CRAB"],name:"CRAB",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/crab.png"},{symbol:"xWRING",alias:["RING","xWRING"],address:"0x273131F7CB50ac002BDd08cA721988731F7e1092",decimals:18,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png",name:"xWRING"}],couples:[{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"CRAB",to:"xWCRAB"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},hidden:!0,category:"CRAB"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"xWRING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"10000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING",hidden:!0}],_network:"mainnets",protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23",lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},indexers:[]});var cx={};Object.defineProperty(cx,"__esModule",{value:!0});cx.darwiniaDvmChain=void 0;const Ohe=wt;cx.darwiniaDvmChain=Ohe.HelixChainConf.fromJson({id:"46",code:"darwinia-dvm",name:"Darwinia",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.darwinia.network"}],indexers:[{type:"thegraph",endpoint:"https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/darwinia"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],messagers:[{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],tokens:[{symbol:"RING",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["RING"],name:"RING",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png"},{symbol:"xWCRAB",alias:["CRAB","xWCRAB"],address:"0x656567Eb75b765FC320783cc6EDd86bD854b2305",decimals:18,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/crab.png",name:"xWCRAB"},{symbol:"ahPINK",alias:["PINK","ahPINK"],address:"0x0000000000000000000000000000000000000404",decimals:10,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/pink.png",name:"ahPINK"},{symbol:"ahUSDT",alias:["USDT","ahUSDT"],address:"0x0000000000000000000000000000000000000403",decimals:6,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png",name:"ahUSDT"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"1",code:"ethereum",name:"Ethereum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-opposite",address:"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"44",code:"crab-dvm",name:"Crab"},symbol:{from:"RING",to:"xWRING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},hidden:!0,category:"RING"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"RING",to:"Ring"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"44",code:"crab-dvm",name:"Crab"},symbol:{from:"xWCRAB",to:"CRAB"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"CRAB",hidden:!0},{chain:{id:"1284",code:"moonbeam",name:"Moonbeam"},symbol:{from:"ahUSDT",to:"xcUSDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"USDT"},{chain:{id:"1284",code:"moonbeam",name:"Moonbeam"},symbol:{from:"ahPINK",to:"xcPINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"PINK"}],_network:"mainnets",protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23",lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var lx={};Object.defineProperty(lx,"__esModule",{value:!0});lx.ethereumChain=void 0;const Rhe=wt;lx.ethereumChain=Rhe.HelixChainConf.fromJson({id:"1",lzid:"101",code:"ethereum",name:"Ethereum",rpcs:[{provider:"PUBLIC",endpoint:"https://eth.llamarpc.com"},{provider:"ALCHEMY",endpoint:"https://eth-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://mainnet.infura.io/v3/$INFURA_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/eth/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://eth-mainnet.blastapi.io/$BLAST_KEY"}],messagers:[{name:"eth2arb-send",address:"0x78a6831Da2293fbEFd0d8aFB4D1f7CBB751e0119"},{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"RING",address:"0x9469D013805bFfB7D3DEBe5E7839237e535ec483",decimals:18,type:"erc20",alias:["RING"],name:"RING",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"eth2arb-send",address:"0x78a6831Da2293fbEFd0d8aFB4D1f7CBB751e0119"},category:"RING"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"}],_network:"mainnets",protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23",lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},indexers:[]});var ux={};Object.defineProperty(ux,"__esModule",{value:!0});ux.gnosisChain=void 0;const Nhe=wt;ux.gnosisChain=Nhe.HelixChainConf.fromJson({id:"100",lzid:"145",code:"gnosis",name:"Gnosis",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.gnosischain.com"},{provider:"PUBLIC",endpoint:"https://gnosis-rpc.publicnode.com"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/gnosis/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://gnosis-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-gnosis/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"xDAI",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["xDAI"],name:"xDAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/xdai.png"},{symbol:"USDT",address:"0x4ECaBa5870353805a9F068101A40E0f32ed605C6",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"xDAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"DAI"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"xDAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"DAI"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"xDAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"DAI"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"xDAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"DAI"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var dx={};Object.defineProperty(dx,"__esModule",{value:!0});dx.lineaChain=void 0;const Bhe=wt;dx.lineaChain=Bhe.HelixChainConf.fromJson({id:"59144",lzid:"183",code:"linea",name:"Linea",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.linea.build"},{provider:"PUBLIC",endpoint:"https://linea.drpc.org"},{provider:"PUBLIC",endpoint:"https://linea.decubate.com"},{provider:"PUBLIC",endpoint:"https://1rpc.io/linea"},{provider:"ALCHEMY",endpoint:"https://linea-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://linea-mainnet.infura.io/v3/$INFURA_KEY"},{provider:"BLAST",endpoint:"https://linea-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/linea"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0xA219439258ca9da29E9Cc4cE5596924745e12B93",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var fx={};Object.defineProperty(fx,"__esModule",{value:!0});fx.mantleChain=void 0;const Fhe=wt;fx.mantleChain=Fhe.HelixChainConf.fromJson({id:"5000",lzid:"181",code:"mantle",name:"Mantle",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/mantle"},{provider:"PUBLIC",endpoint:"https://rpc.mantle.xyz"},{provider:"PUBLIC",endpoint:"https://mantle-rpc.publicnode.com"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/mantle/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://mantle-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/mantle"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"MNT",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["MNT"],name:"MNT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/mnt.png"},{symbol:"USDT",address:"0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"324",code:"zksync",name:"zksync"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var hx={};Object.defineProperty(hx,"__esModule",{value:!0});hx.moonbeamChain=void 0;const Mhe=wt;hx.moonbeamChain=Mhe.HelixChainConf.fromJson({id:"1284",lzid:"126",code:"moonbeam",name:"Moonbeam",rpcs:[{provider:"PUBLIC",endpoint:"https://moonbeam-rpc.dwellir.com"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/moonbeam/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://moonbeam.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-moonbeam/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"GLMR",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",alias:["GLMR"],name:"GLMR"},{symbol:"xcUSDT",alias:["USDT","xcUSDT"],address:"0xFFFFFFfFea09FB06d082fd1275CD48b191cbCD1d",decimals:6,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png",name:"xcUSDT"},{symbol:"xcPINK",alias:["PINK","xcPINK"],address:"0xffffffff30478fafbe935e466da114e14fb3563d",decimals:10,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/pink.png",name:"xcPINK"}],couples:[{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"xcUSDT",to:"ahUSDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"xcUSDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"xcPINK",to:"ahPINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"PINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var mx={};Object.defineProperty(mx,"__esModule",{value:!0});mx.opChain=void 0;const Lhe=wt;mx.opChain=Lhe.HelixChainConf.fromJson({id:"10",lzid:"111",code:"op",name:"Op",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/optimism"},{provider:"PUBLIC",endpoint:"https://mainnet.optimism.io"},{provider:"PUBLIC",endpoint:"https://optimism-rpc.publicnode.com"},{provider:"ALCHEMY",endpoint:"https://opt-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/optimism/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://optimism-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-op/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"WBTC",address:"0x68f180fcCe6836688e9084f035309E29Bf0A2095",decimals:8,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"},{symbol:"DAI",address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",decimals:18,type:"erc20",alias:["DAI"],name:"DAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/dai.png"},{symbol:"LINK",address:"0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6",decimals:18,type:"erc20",alias:["LINK"],name:"LINK",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/link.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"DAI",to:"xDAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var px={};Object.defineProperty(px,"__esModule",{value:!0});px.polygonChain=void 0;const Uhe=wt;px.polygonChain=Uhe.HelixChainConf.fromJson({id:"137",lzid:"109",code:"polygon",name:"Polygon",rpcs:[{provider:"PUBLIC",endpoint:"https://polygon-rpc.com"},{provider:"PUBLIC",endpoint:"https://polygon-bor-rpc.publicnode.com"},{provider:"ALCHEMY",endpoint:"https://polygon-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://polygon-mainnet.infura.io/v3/$INFURA_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/polygon/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://polygon-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-polygon/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"MATIC",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/matic.svg",alias:["MATIC"],name:"MATIC"},{symbol:"Ring",address:"0x9C1C23E60B72Bc88a043bf64aFdb16A02540Ae8f",decimals:18,type:"erc20",alias:["Ring"],name:"Ring",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png"},{symbol:"USDT",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"WBTC",address:"0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",decimals:8,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"},{symbol:"DAI",address:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",decimals:18,type:"erc20",alias:["DAI"],name:"DAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/dai.png"},{symbol:"LINK",address:"0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39",decimals:18,type:"erc20",alias:["LINK"],name:"LINK",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/link.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"Ring",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"RING"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"Ring",to:"RING"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"RING"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"Ring",to:"RING"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"BTC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"BTC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"BTC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"BTC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"DAI"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"DAI"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"DAI"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"DAI",to:"xDAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"DAI"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"LINK"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"LINK"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"LINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var gx={};Object.defineProperty(gx,"__esModule",{value:!0});gx.scrollChain=void 0;const $he=wt;gx.scrollChain=$he.HelixChainConf.fromJson({id:"534352",lzid:"214",code:"scroll",name:"Scroll",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/scroll"},{provider:"PUBLIC",endpoint:"https://rpc.scroll.io"},{provider:"PUBLIC",endpoint:"https://scroll-mainnet.public.blastapi.io"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/scroll/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://scroll-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-scroll/v1.0.1"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"ETH"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"ETH"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"ETH"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"324",code:"zksync",name:"zksync"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var yx={};Object.defineProperty(yx,"__esModule",{value:!0});yx.zircuitChain=void 0;const zhe=wt;yx.zircuitChain=zhe.HelixChainConf.fromJson({id:"48900",lzid:"303",code:"zircuit",name:"Zircuit",rpcs:[{provider:"PUBLIC",endpoint:"https://zircuit1-mainnet.p2pify.com"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/zircuit"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var bx={};Object.defineProperty(bx,"__esModule",{value:!0});bx.zksyncChain=void 0;const Hhe=wt;bx.zksyncChain=Hhe.HelixChainConf.fromJson({id:"324",lzid:"165",code:"zksync",name:"zksync",rpcs:[{provider:"PUBLIC",endpoint:"https://mainnet.era.zksync.io"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/zksync_era/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://zksync-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x767Bc046c989f5e63683fB530f939DD34b91ceAC","lnv2-opposite":null,lnv3:null},additional:{dao:"0x38b9145b6F4f363C42C83F62Ee09df0Ade6F8Dec",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0xA0d8a3C04580a8503ed3Ff30deBb22B83EE615F4","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},messagers:[{name:"layerzero",address:"0x96892F3EaD26515592Da38432cFABad991BBd69d"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x493257fD37EDB34451f62EDf8D2a0C418852bA4C",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC.e",address:"0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4",decimals:6,type:"erc20",alias:["USDC.e"],name:"USDC.e",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.e.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x767Bc046c989f5e63683fB530f939DD34b91ceAC"},fee:"100000",messager:{name:"layerzero",address:"0x96892F3EaD26515592Da38432cFABad991BBd69d"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x767Bc046c989f5e63683fB530f939DD34b91ceAC"},fee:"100000",messager:{name:"layerzero",address:"0x96892F3EaD26515592Da38432cFABad991BBd69d"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x767Bc046c989f5e63683fB530f939DD34b91ceAC"},fee:"100000",messager:{name:"layerzero",address:"0x96892F3EaD26515592Da38432cFABad991BBd69d"},category:"USDT"}],_network:"mainnets",indexers:[]});var vx={};Object.defineProperty(vx,"__esModule",{value:!0});vx.arbitrumSepoliaChain=void 0;const qhe=wt;vx.arbitrumSepoliaChain=qhe.HelixChainConf.fromJson({id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://public.stackup.sh/api/v1/node/arbitrum-sepolia"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x3b8Bb7348D4F581e67E2498574F73e4B9Fc51855",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x8A87497488073307E1a17e8A12475a94Afcb413f",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"2810",code:"morph",name:"morph"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"167009",code:"taiko-hekla",name:"taiko-hekla"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",category:"USDC",messager:{name:"layerzero"}},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",category:"USDC"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"2810",code:"morph",name:"morph"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"80084",code:"bera",name:"bera"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"167009",code:"taiko-hekla",name:"taiko-hekla"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",category:"USDC",messager:{name:"layerzero"}},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"48899",code:"zircuit-sepolia",name:"Zircuit sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"1000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"2810",code:"morph",name:"morph"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"167009",code:"taiko-hekla",name:"taiko-hekla"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"2810",code:"morph",name:"morph"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"80084",code:"bera",name:"bera"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"167009",code:"taiko-hekla",name:"taiko-hekla"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"48899",code:"zircuit-sepolia",name:"Zircuit sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"1000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"2810",code:"morph",name:"morph"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"}],_network:"testnets",protocol:{"lnv2-default":"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739","lnv2-opposite":"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f",lnv3:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},messagers:[],indexers:[]});var wx={};Object.defineProperty(wx,"__esModule",{value:!0});wx.baseSepoliaChain=void 0;const Whe=wt;wx.baseSepoliaChain=Whe.HelixChainConf.fromJson({id:"84532",code:"base-sepolia",name:"base-sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://sepolia.base.org"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0x29D148A9e87C763292a33A55B9dBcAf44A194102"},tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x463D1730a8527CA58d48EF70C7460B9920346567",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x29D148A9e87C763292a33A55B9dBcAf44A194102"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x29D148A9e87C763292a33A55B9dBcAf44A194102"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"}],_network:"testnets",messagers:[],indexers:[]});var Ex={};Object.defineProperty(Ex,"__esModule",{value:!0});Ex.beraChain=void 0;const Ghe=wt;Ex.beraChain=Ghe.HelixChainConf.fromJson({id:"80084",code:"bera",name:"bera",rpcs:[{provider:"PUBLIC",endpoint:"https://bartio.rpc.berachain.com"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},tokens:[{symbol:"BERA",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/bera.svg",alias:["BERA"],name:"BERA"},{symbol:"USDT",address:"0x1E58fE2262301bdC13D9F691D01808045B4D3d0B",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x4F20B4631dB09A699477550cc83503E5925E3654",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"}],_network:"testnets",messagers:[],indexers:[]});var _x={};Object.defineProperty(_x,"__esModule",{value:!0});_x.morphChain=void 0;const Vhe=wt;_x.morphChain=Vhe.HelixChainConf.fromJson({id:"2810",code:"morph",name:"morph",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc-holesky.morphl2.io"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0xBBFb503e37de678074f26b7178b45dA2FCDaA8A4",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x5d016cC247CF6bF03524489C104C1F5016B01Bff",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"}],_network:"testnets",messagers:[],indexers:[]});var xx={};Object.defineProperty(xx,"__esModule",{value:!0});xx.sepoliaChain=void 0;const Khe=wt;xx.sepoliaChain=Khe.HelixChainConf.fromJson({id:"11155111",code:"sepolia",name:"Sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://ethereum-sepolia-rpc.publicnode.com"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x876A4f6eCF13EEb101F9E75FCeF58f19Ff383eEB",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x0ac58Df0cc3542beC4cDa71B16D06C3cCc39f405",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"84532",code:"base-sepolia",name:"base-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"84532",code:"base-sepolia",name:"base-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"84532",code:"base-sepolia",name:"base-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"}],_network:"testnets",protocol:{"lnv2-default":"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739","lnv2-opposite":"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f",lnv3:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},messagers:[],indexers:[]});var Cx={};Object.defineProperty(Cx,"__esModule",{value:!0});Cx.taikoHeklaChain=void 0;const Yhe=wt;Cx.taikoHeklaChain=Yhe.HelixChainConf.fromJson({id:"167009",code:"taiko-hekla",name:"taiko-hekla",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.hekla.taiko.xyz"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x463D1730a8527CA58d48EF70C7460B9920346567",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"}],_network:"testnets",messagers:[],indexers:[]});var Sx={};Object.defineProperty(Sx,"__esModule",{value:!0});Sx.zircuitSepoliaChain=void 0;const Qhe=wt;Sx.zircuitSepoliaChain=Qhe.HelixChainConf.fromJson({id:"48899",code:"zircuit-sepolia",name:"Zircuit sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://zircuit1-testnet.p2pify.com/"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0x369642b7b9cf4eAc16b07797F77e1C0907Ea62c1"},tokens:[{symbol:"USDT",address:"0x9C80EdD342b5D179c3a87946fC1F0963BfcaAa09",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x8A87497488073307E1a17e8A12475a94Afcb413f",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x369642b7b9cf4eAc16b07797F77e1C0907Ea62c1"},fee:"1000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x369642b7b9cf4eAc16b07797F77e1C0907Ea62c1"},fee:"1000000000000000",messager:{name:"layerzero"},category:"USDC"}],_network:"testnets",messagers:[],indexers:[]});var Tx={};Object.defineProperty(Tx,"__esModule",{value:!0});Tx.zksyncSepoliaChain=void 0;const Xhe=wt;Tx.zksyncSepoliaChain=Xhe.HelixChainConf.fromJson({id:"300",code:"zksync-sepolia",name:"zksync-sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://zksync-sepolia.drpc.org"}],protocol:{"lnv2-default":"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37","lnv2-opposite":null,lnv3:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x3350f1ef046e21E052dCbA60Fc575919CCaFEdeb",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x253adBFE99Fcd096B9b5502753F96CF78D42eaD0",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"}],_network:"testnets",messagers:[],indexers:[]});Object.defineProperty(ex,"__esModule",{value:!0});ex.HelixChain=void 0;const Jhe=tx,Zhe=nx,eme=rx,tme=ox,nme=ax,rme=ix,ome=sx,ame=cx,ime=lx,sme=ux,cme=dx,lme=fx,ume=hx,dme=mx,fme=px,hme=gx,mme=yx,pme=bx,gme=vx,yme=wx,bme=Ex,vme=_x,wme=xx,Eme=Cx,_me=Sx,xme=Tx,Be=class Be{static codes(){return["arbitrum","astar-zkevm","avalanche","base","blast","bsc","crab-dvm","darwinia-dvm","ethereum","gnosis","linea","mantle","moonbeam","op","polygon","scroll","zircuit","zksync","arbitrum-sepolia","base-sepolia","bera","morph","sepolia","taiko-hekla","zircuit-sepolia","zksync-sepolia"]}static chains(t){const n=[Be.arbitrum,Be.astarZkevm,Be.avalanche,Be.base,Be.blast,Be.bsc,Be.crabDvm,Be.darwiniaDvm,Be.ethereum,Be.gnosis,Be.linea,Be.mantle,Be.moonbeam,Be.op,Be.polygon,Be.scroll,Be.zircuit,Be.zksync,Be.arbitrumSepolia,Be.baseSepolia,Be.bera,Be.morph,Be.sepolia,Be.taikoHekla,Be.zircuitSepolia,Be.zksyncSepolia],r=t==null?void 0:t.network;return r?n.filter(o=>o._network===r):n}static get(t){const n=t.toString().toUpperCase();return Be.chains().find(r=>r.code.toUpperCase()===n||r.id.toString()===n)}};Ve(Be,"arbitrum",Jhe.arbitrumChain),Ve(Be,"astarZkevm",Zhe.astarZkevmChain),Ve(Be,"avalanche",eme.avalancheChain),Ve(Be,"base",tme.baseChain),Ve(Be,"blast",nme.blastChain),Ve(Be,"bsc",rme.bscChain),Ve(Be,"crabDvm",ome.crabDvmChain),Ve(Be,"darwiniaDvm",ame.darwiniaDvmChain),Ve(Be,"ethereum",ime.ethereumChain),Ve(Be,"gnosis",sme.gnosisChain),Ve(Be,"linea",cme.lineaChain),Ve(Be,"mantle",lme.mantleChain),Ve(Be,"moonbeam",ume.moonbeamChain),Ve(Be,"op",dme.opChain),Ve(Be,"polygon",fme.polygonChain),Ve(Be,"scroll",hme.scrollChain),Ve(Be,"zircuit",mme.zircuitChain),Ve(Be,"zksync",pme.zksyncChain),Ve(Be,"arbitrumSepolia",gme.arbitrumSepoliaChain),Ve(Be,"baseSepolia",yme.baseSepoliaChain),Ve(Be,"bera",bme.beraChain),Ve(Be,"morph",vme.morphChain),Ve(Be,"sepolia",wme.sepoliaChain),Ve(Be,"taikoHekla",Eme.taikoHeklaChain),Ve(Be,"zircuitSepolia",_me.zircuitSepoliaChain),Ve(Be,"zksyncSepolia",xme.zksyncSepoliaChain);let x5=Be;ex.HelixChain=x5;(function(e){var t=We&&We.__createBinding||(Object.create?function(r,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(r,i,s)}:function(r,o,a,i){i===void 0&&(i=a),r[i]=o[a]}),n=We&&We.__exportStar||function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(wt,e),n(ex,e)})(jt);const Ax=1e3,Cme=0,Sme=.25*Ax,Tme=100*Ax,mo=2;var C5=function(e,t){return C5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},C5(e,t)};function or(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");C5(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var K=function(){return K=Object.assign||function(t){for(var n,r=1,o=arguments.length;r=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function jW(e,t){return function(n,r){t(n,r,e)}}function Ame(e,t,n,r,o,a){function i(v){if(v!==void 0&&typeof v!="function")throw new TypeError("Function expected");return v}for(var s=r.kind,c=s==="getter"?"get":s==="setter"?"set":"value",l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,h=n.length-1;h>=0;h--){var m={};for(var p in r)m[p]=p==="access"?{}:r[p];for(var p in r.access)m.access[p]=r.access[p];m.addInitializer=function(v){if(f)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(v||null))};var b=(0,n[h])(s==="accessor"?{get:u.get,set:u.set}:u[c],m);if(s==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(d=i(b.get))&&(u.get=d),(d=i(b.set))&&(u.set=d),(d=i(b.init))&&o.unshift(d)}else(d=i(b))&&(s==="field"?o.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function Dme(e,t,n){for(var r=arguments.length>2,o=0;o0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function cl(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function OW(){for(var e=[],t=0;t1||c(h,p)})},m&&(o[h]=m(o[h])))}function c(h,m){try{l(r[h](m))}catch(p){f(a[0][3],p)}}function l(h){h.value instanceof fs?Promise.resolve(h.value.v).then(u,d):f(a[0][2],h)}function u(h){c("next",h)}function d(h){c("throw",h)}function f(h,m){h(m),a.shift(),a.length&&c(a[0][0],a[0][1])}}function NW(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,a){t[o]=e[o]?function(i){return(n=!n)?{value:fs(e[o](i)),done:!1}:a?a(i):i}:a}}function Tj(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ku=="function"?Ku(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(i){return new Promise(function(s,c){i=e[a](i),o(s,c,i.done,i.value)})}}function o(a,i,s,c){Promise.resolve(c).then(function(l){a({value:l,done:s})},i)}}function BW(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Pme=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function FW(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Dx(t,e,n);return Pme(t,e),t}function MW(e){return e&&e.__esModule?e:{default:e}}function LW(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)}function UW(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function $W(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function zW(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var Ime=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function HW(e){function t(r){e.error=e.hasError?new Ime(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}const Ome={__extends:or,__assign:K,__rest:Zr,__decorate:kW,__param:jW,__metadata:PW,__awaiter:qa,__generator:la,__createBinding:Dx,__exportStar:IW,__values:Ku,__read:cl,__spread:OW,__spreadArrays:RW,__spreadArray:vn,__await:fs,__asyncGenerator:Sj,__asyncDelegator:NW,__asyncValues:Tj,__makeTemplateObject:BW,__importStar:FW,__importDefault:MW,__classPrivateFieldGet:LW,__classPrivateFieldSet:UW,__classPrivateFieldIn:$W,__addDisposableResource:zW,__disposeResources:HW},zYe=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:zW,get __assign(){return K},__asyncDelegator:NW,__asyncGenerator:Sj,__asyncValues:Tj,__await:fs,__awaiter:qa,__classPrivateFieldGet:LW,__classPrivateFieldIn:$W,__classPrivateFieldSet:UW,__createBinding:Dx,__decorate:kW,__disposeResources:HW,__esDecorate:Ame,__exportStar:IW,__extends:or,__generator:la,__importDefault:MW,__importStar:FW,__makeTemplateObject:BW,__metadata:PW,__param:jW,__propKey:kme,__read:cl,__rest:Zr,__runInitializers:Dme,__setFunctionName:jme,__spread:OW,__spreadArray:vn,__spreadArrays:RW,__values:Ku,default:Ome},Symbol.toStringTag,{value:"Module"}));var FS="Invariant Violation",zO=Object.setPrototypeOf,Rme=zO===void 0?function(e,t){return e.__proto__=t,e}:zO,qW=function(e){or(t,e);function t(n){n===void 0&&(n=FS);var r=e.call(this,typeof n=="number"?FS+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=FS,Rme(r,t.prototype),r}return t}(Error);function lu(e,t){if(!e)throw new qW(t)}var WW=["debug","log","warn","error","silent"],Nme=WW.indexOf("log");function tv(e){return function(){if(WW.indexOf(e)>=Nme){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=tv("debug"),e.log=tv("log"),e.warn=tv("warn"),e.error=tv("error")})(lu||(lu={}));var Aj="3.11.1";function Wa(e){try{return e()}catch{}}const S5=Wa(function(){return globalThis})||Wa(function(){return window})||Wa(function(){return self})||Wa(function(){return global})||Wa(function(){return Wa.constructor("return this")()});var HO=new Map;function T5(e){var t=HO.get(e)||1;return HO.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function GW(e,t){t===void 0&&(t=0);var n=T5("stringifyForDisplay");return JSON.stringify(e,function(r,o){return o===void 0?n:o},t).split(JSON.stringify(n)).join("")}function nv(e){return function(t){for(var n=[],r=1;r"}}function Dj(e,t){if(t===void 0&&(t=[]),!!e)return S5[qO]&&S5[qO](e,t.map(VW))}function kj(e,t){if(t===void 0&&(t=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Aj,message:e,args:t.map(VW)})))}function u1(e,t){if(!!!e)throw new Error(t)}function Bme(e){return typeof e=="object"&&e!==null}function Fme(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const Mme=/\r\n|[\n\r]/g;function A5(e,t){let n=0,r=1;for(const o of e.body.matchAll(Mme)){if(typeof o.index=="number"||Fme(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function Lme(e){return KW(e.source,A5(e.source,e.start))}function KW(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,a=e.locationOffset.line-1,i=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${i}:${c} -`,u=r.split(/\r\n|[\n\r]/g),d=u[o];if(d.length>120){const f=Math.floor(c/80),h=c%80,m=[];for(let p=0;p["|",p]),["|","^".padStart(h)],["|",m[f+1]]])}return l+WO([[`${i-1} |`,u[o-1]],[`${i} |`,d],["|","^".padStart(c)],[`${i+1} |`,u[o+1]]])}function WO(e){const t=e.filter(([r,o])=>o!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,o])=>r.padStart(n)+(o?" "+o:"")).join(` -`)}function Ume(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class jj extends Error{constructor(t,...n){var r,o,a;const{nodes:i,source:s,positions:c,path:l,originalError:u,extensions:d}=Ume(n);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=u??void 0,this.nodes=GO(Array.isArray(i)?i:i?[i]:void 0);const f=GO((r=this.nodes)===null||r===void 0?void 0:r.map(m=>m.loc).filter(m=>m!=null));this.source=s??(f==null||(o=f[0])===null||o===void 0?void 0:o.source),this.positions=c??(f==null?void 0:f.map(m=>m.start)),this.locations=c&&s?c.map(m=>A5(s,m)):f==null?void 0:f.map(m=>A5(m.source,m.start));const h=Bme(u==null?void 0:u.extensions)?u==null?void 0:u.extensions:void 0;this.extensions=(a=d??h)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,jj):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=` - -`+Lme(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=` - -`+KW(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function GO(e){return e===void 0||e.length===0?void 0:e}function Jn(e,t,n){return new jj(`Syntax Error: ${n}`,{source:e,positions:[t]})}class $me{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class YW{constructor(t,n,r,o,a,i){this.kind=t,this.start=n,this.end=r,this.line=o,this.column=a,this.value=i,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const QW={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},zme=new Set(Object.keys(QW));function VO(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&zme.has(t)}var If;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(If||(If={}));var D5;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(D5||(D5={}));var Ce;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Ce||(Ce={}));function k5(e){return e===9||e===32}function ag(e){return e>=48&&e<=57}function XW(e){return e>=97&&e<=122||e>=65&&e<=90}function JW(e){return XW(e)||e===95}function Hme(e){return XW(e)||ag(e)||e===95}function qme(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let i=0;is===0?i:i.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,o+1)}function Wme(e){let t=0;for(;t1&&r.slice(1).every(h=>h.length===0||k5(h.charCodeAt(0))),i=n.endsWith('\\"""'),s=e.endsWith('"')&&!i,c=e.endsWith("\\"),l=s||c,u=!o||e.length>70||l||a||i;let d="";const f=o&&k5(e.charCodeAt(0));return(u&&!f||a)&&(d+=` -`),d+=n,(u||l)&&(d+=` -`),'"""'+d+'"""'}var le;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(le||(le={}));class Vme{constructor(t){const n=new YW(le.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==le.EOF)do if(t.next)t=t.next;else{const n=Yme(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===le.COMMENT);return t}}function Kme(e){return e===le.BANG||e===le.DOLLAR||e===le.AMP||e===le.PAREN_L||e===le.PAREN_R||e===le.SPREAD||e===le.COLON||e===le.EQUALS||e===le.AT||e===le.BRACKET_L||e===le.BRACKET_R||e===le.BRACE_L||e===le.PIPE||e===le.BRACE_R}function lm(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function kx(e,t){return ZW(e.charCodeAt(t))&&eG(e.charCodeAt(t+1))}function ZW(e){return e>=55296&&e<=56319}function eG(e){return e>=56320&&e<=57343}function Yu(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return le.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Sn(e,t,n,r,o){const a=e.line,i=1+n-e.lineStart;return new YW(t,n,r,a,i,o)}function Yme(e,t){const n=e.source.body,r=n.length;let o=t;for(;o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function tpe(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` -`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Jn(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function npe(e,t){const n=e.source.body,r=n.length;let o=e.lineStart,a=t+3,i=a,s="";const c=[];for(;atG?"["+lpe(e)+"]":"{ "+n.map(([o,a])=>o+": "+jx(a,t)).join(", ")+" }"}function cpe(e,t){if(e.length===0)return"[]";if(t.length>tG)return"[Array]";const n=Math.min(ope,e.length),r=e.length-n,o=[];for(let a=0;a1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}function lpe(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const upe=globalThis.process&&!0,dpe=upe?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;const o=n.prototype[Symbol.toStringTag],a=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(o===a){const i=Pj(t);throw new Error(`Cannot use ${o} "${i}" from another module or realm. - -Ensure that there is only one instance of "graphql" in the node_modules -directory. If different versions of "graphql" are the dependencies of other -relied on modules, use "resolutions" to ensure only one version is installed. - -https://yarnpkg.com/en/docs/selective-version-resolutions - -Duplicate "graphql" modules cannot be used at the same time since different -versions may have different capabilities and behavior. The data from one -version used in the function from another could produce confusing and -spurious results.`)}}return!1};class nG{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||u1(!1,`Body must be a string. Received: ${Pj(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||u1(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||u1(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function fpe(e){return dpe(e,nG)}function hpe(e,t){return new mpe(e,t).parseDocument()}class mpe{constructor(t,n={}){const r=fpe(t)?t:new nG(t);this._lexer=new Vme(r),this._options=n,this._tokenCounter=0}parseName(){const t=this.expectToken(le.NAME);return this.node(t,{kind:Ce.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Ce.DOCUMENT,definitions:this.many(le.SOF,this.parseDefinition,le.EOF)})}parseDefinition(){if(this.peek(le.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===le.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw Jn(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(le.BRACE_L))return this.node(t,{kind:Ce.OPERATION_DEFINITION,operation:If.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(le.NAME)&&(r=this.parseName()),this.node(t,{kind:Ce.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(le.NAME);switch(t.value){case"query":return If.QUERY;case"mutation":return If.MUTATION;case"subscription":return If.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(le.PAREN_L,this.parseVariableDefinition,le.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Ce.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(le.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(le.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(le.DOLLAR),this.node(t,{kind:Ce.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Ce.SELECTION_SET,selections:this.many(le.BRACE_L,this.parseSelection,le.BRACE_R)})}parseSelection(){return this.peek(le.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,o;return this.expectOptionalToken(le.COLON)?(r=n,o=this.parseName()):o=n,this.node(t,{kind:Ce.FIELD,alias:r,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(le.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(le.PAREN_L,n,le.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:Ce.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(le.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(le.NAME)?this.node(t,{kind:Ce.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Ce.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:Ce.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Ce.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case le.BRACKET_L:return this.parseList(t);case le.BRACE_L:return this.parseObject(t);case le.INT:return this.advanceLexer(),this.node(n,{kind:Ce.INT,value:n.value});case le.FLOAT:return this.advanceLexer(),this.node(n,{kind:Ce.FLOAT,value:n.value});case le.STRING:case le.BLOCK_STRING:return this.parseStringLiteral();case le.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:Ce.BOOLEAN,value:!0});case"false":return this.node(n,{kind:Ce.BOOLEAN,value:!1});case"null":return this.node(n,{kind:Ce.NULL});default:return this.node(n,{kind:Ce.ENUM,value:n.value})}case le.DOLLAR:if(t)if(this.expectToken(le.DOLLAR),this._lexer.token.kind===le.NAME){const r=this._lexer.token.value;throw Jn(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:Ce.STRING,value:t.value,block:t.kind===le.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:Ce.LIST,values:this.any(le.BRACKET_L,n,le.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:Ce.OBJECT,fields:this.any(le.BRACE_L,n,le.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:Ce.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(le.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(le.AT),this.node(n,{kind:Ce.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(le.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(le.BRACKET_R),n=this.node(t,{kind:Ce.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(le.BANG)?this.node(t,{kind:Ce.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Ce.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(le.STRING)||this.peek(le.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),o=this.many(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);return this.node(t,{kind:Ce.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(le.COLON);const r=this.parseNamedType();return this.node(t,{kind:Ce.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:Ce.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(t,{kind:Ce.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:a,fields:i})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(le.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseFieldDefinition,le.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),o=this.parseArgumentDefs();this.expectToken(le.COLON);const a=this.parseTypeReference(),i=this.parseConstDirectives();return this.node(t,{kind:Ce.FIELD_DEFINITION,description:n,name:r,arguments:o,type:a,directives:i})}parseArgumentDefs(){return this.optionalMany(le.PAREN_L,this.parseInputValueDef,le.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(le.COLON);const o=this.parseTypeReference();let a;this.expectOptionalToken(le.EQUALS)&&(a=this.parseConstValueLiteral());const i=this.parseConstDirectives();return this.node(t,{kind:Ce.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:a,directives:i})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(t,{kind:Ce.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:a,fields:i})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),o=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:Ce.UNION_TYPE_DEFINITION,description:n,name:r,directives:o,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(le.EQUALS)?this.delimitedMany(le.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),o=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:Ce.ENUM_TYPE_DEFINITION,description:n,name:r,directives:o,values:a})}parseEnumValuesDefinition(){return this.optionalMany(le.BRACE_L,this.parseEnumValueDefinition,le.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:Ce.ENUM_VALUE_DEFINITION,description:n,name:r,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Jn(this._lexer.source,this._lexer.token.start,`${rv(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),o=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:Ce.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:o,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseInputValueDef,le.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===le.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Ce.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:Ce.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:Ce.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:a})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:Ce.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:a})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Ce.UNION_TYPE_EXTENSION,name:n,directives:r,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Ce.ENUM_TYPE_EXTENSION,name:n,directives:r,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Ce.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:o})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(le.AT);const r=this.parseName(),o=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const i=this.parseDirectiveLocations();return this.node(t,{kind:Ce.DIRECTIVE_DEFINITION,description:n,name:r,arguments:o,repeatable:a,locations:i})}parseDirectiveLocations(){return this.delimitedMany(le.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(D5,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new $me(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Jn(this._lexer.source,n.start,`Expected ${rG(t)}, found ${rv(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===le.NAME&&n.value===t)this.advanceLexer();else throw Jn(this._lexer.source,n.start,`Expected "${t}", found ${rv(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===le.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return Jn(this._lexer.source,n.start,`Unexpected ${rv(n)}.`)}any(t,n,r){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(r);)o.push(n.call(this));return o}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}return[]}many(t,n,r){this.expectToken(t);const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==le.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Jn(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function rv(e){const t=e.value;return rG(e.kind)+(t!=null?` "${t}"`:"")}function rG(e){return Kme(e)?`"${e}"`:e}function ppe(e){return`"${e.replace(gpe,ype)}"`}const gpe=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ype(e){return bpe[e.charCodeAt(0)]}const bpe=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Ij=Object.freeze({});function Ts(e,t,n=QW){const r=new Map;for(const v of Object.values(Ce))r.set(v,vpe(t,v));let o,a=Array.isArray(e),i=[e],s=-1,c=[],l=e,u,d;const f=[],h=[];do{s++;const v=s===i.length,g=v&&c.length!==0;if(v){if(u=h.length===0?void 0:f[f.length-1],l=d,d=h.pop(),g)if(a){l=l.slice();let _=0;for(const[C,x]of c){const E=C-_;x===null?(l.splice(E,1),_++):l[E]=x}}else{l=Object.defineProperties({},Object.getOwnPropertyDescriptors(l));for(const[_,C]of c)l[_]=C}s=o.index,i=o.keys,c=o.edits,a=o.inArray,o=o.prev}else if(d){if(u=a?s:i[s],l=d[u],l==null)continue;f.push(u)}let w;if(!Array.isArray(l)){var m,p;VO(l)||u1(!1,`Invalid AST Node: ${Pj(l)}.`);const _=v?(m=r.get(l.kind))===null||m===void 0?void 0:m.leave:(p=r.get(l.kind))===null||p===void 0?void 0:p.enter;if(w=_==null?void 0:_.call(t,l,u,d,f,h),w===Ij)break;if(w===!1){if(!v){f.pop();continue}}else if(w!==void 0&&(c.push([u,w]),!v))if(VO(w))l=w;else{f.pop();continue}}if(w===void 0&&g&&c.push([u,l]),v)f.pop();else{var b;o={inArray:a,index:s,keys:i,edits:c,prev:o},a=Array.isArray(l),i=a?l:(b=n[l.kind])!==null&&b!==void 0?b:[],s=-1,c=[],d&&h.push(d),d=l}}while(o!==void 0);return c.length!==0?c[c.length-1][1]:e}function vpe(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function wpe(e){return Ts(e,_pe)}const Epe=80,_pe={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Se(e.definitions,` - -`)},OperationDefinition:{leave(e){const t=mt("(",Se(e.variableDefinitions,", "),")"),n=Se([e.operation,Se([e.name,t]),Se(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+mt(" = ",n)+mt(" ",Se(r," "))},SelectionSet:{leave:({selections:e})=>Ra(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){const a=mt("",e,": ")+t;let i=a+mt("(",Se(n,", "),")");return i.length>Epe&&(i=a+mt(`( -`,d1(Se(n,` -`)),` -)`)),Se([i,Se(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+mt(" ",Se(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Se(["...",mt("on ",e),Se(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${mt("(",Se(n,", "),")")} on ${t} ${mt("",Se(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Gme(e):ppe(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Se(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Se(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+mt("(",Se(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>mt("",e,` -`)+Se(["schema",Se(t," "),Ra(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>mt("",e,` -`)+Se(["scalar",t,Se(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>mt("",e,` -`)+Se(["type",t,mt("implements ",Se(n," & ")),Se(r," "),Ra(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>mt("",e,` -`)+t+(YO(n)?mt(`( -`,d1(Se(n,` -`)),` -)`):mt("(",Se(n,", "),")"))+": "+r+mt(" ",Se(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>mt("",e,` -`)+Se([t+": "+n,mt("= ",r),Se(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>mt("",e,` -`)+Se(["interface",t,mt("implements ",Se(n," & ")),Se(r," "),Ra(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>mt("",e,` -`)+Se(["union",t,Se(n," "),mt("= ",Se(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>mt("",e,` -`)+Se(["enum",t,Se(n," "),Ra(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>mt("",e,` -`)+Se([t,Se(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>mt("",e,` -`)+Se(["input",t,Se(n," "),Ra(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>mt("",e,` -`)+"directive @"+t+(YO(n)?mt(`( -`,d1(Se(n,` -`)),` -)`):mt("(",Se(n,", "),")"))+(r?" repeatable":"")+" on "+Se(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Se(["extend schema",Se(e," "),Ra(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Se(["extend scalar",e,Se(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Se(["extend type",e,mt("implements ",Se(t," & ")),Se(n," "),Ra(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Se(["extend interface",e,mt("implements ",Se(t," & ")),Se(n," "),Ra(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Se(["extend union",e,Se(t," "),mt("= ",Se(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Se(["extend enum",e,Se(t," "),Ra(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Se(["extend input",e,Se(t," "),Ra(n)]," ")}};function Se(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function Ra(e){return mt(`{ -`,d1(Se(e,` -`)),` -}`)}function mt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function d1(e){return mt(" ",e.replace(/\n/g,` - `))}function YO(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!==null&&t!==void 0?t:!1}function QO(e){return e.kind===Ce.FIELD||e.kind===Ce.FRAGMENT_SPREAD||e.kind===Ce.INLINE_FRAGMENT}function ay(e,t){var n=e.directives;return!n||!n.length?!0:Spe(n).every(function(r){var o=r.directive,a=r.ifArgument,i=!1;return a.value.kind==="Variable"?(i=t&&t[a.value.name.value],Pe(i!==void 0,69,o.name.value)):i=a.value.value,o.name.value==="skip"?!i:i})}function ig(e,t,n){var r=new Set(e),o=r.size;return Ts(t,{Directive:function(a){if(r.delete(a.name.value)&&(!n||!r.size))return Ij}}),n?!r.size:r.sizeObject.create(null),{forEach:Ape,slice:XO}=Array.prototype,{hasOwnProperty:Dpe}=Object.prototype;let um=class oG{constructor(t=!0,n=Tpe){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return Ape.call(t,r=>n=n.getChildTrie(r)),Dpe.call(n,"data")?n.data:n.data=this.makeData(XO.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let r=0,o=t.length;n&&r=0})||!1,Ipe=(jpe||aG)&&!Ppe;function yn(e){return e!==null&&typeof e=="object"}function Ope(e,t){var n=t,r=[];e.definitions.forEach(function(a){if(a.kind==="OperationDefinition")throw ro(73,a.operation,a.name?" named '".concat(a.name.value,"'"):"");a.kind==="FragmentDefinition"&&r.push(a)}),typeof n>"u"&&(Pe(r.length===1,74,r.length),n=r[0].name.value);var o=K(K({},e),{definitions:vn([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)});return o}function Ix(e){e===void 0&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function Ox(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var n=e.name.value;if(typeof t=="function")return t(n);var r=t&&t[n];return Pe(r,75,n),r||null}default:return null}}function Rpe(){}class j5{constructor(t=1/0,n=Rpe){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:o}=n;o&&(o.older=r),r&&(r.newer=o),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=o)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1}}function P5(){}const Npe=P5,Bpe=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},Fpe=typeof WeakMap<"u"?WeakMap:Map,Mpe=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:P5,unregister:P5}},Lpe=10024;class jw{constructor(t=1/0,n=Npe){this.max=t,this.dispose=n,this.map=new Fpe,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let o=0;o0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Mpe(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:o}=n;o&&(o.older=r),r&&(r.newer=o),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=o)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;const n=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,n),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),n&&this.map.delete(n)}delete(t){const n=this.map.get(t);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var LS=new WeakSet;function sG(e){e.size<=(e.max||-1)||LS.has(e)||(LS.add(e),setTimeout(function(){e.clean(),LS.delete(e)},100))}var Rj=function(e,t){var n=new jw(e,t);return n.set=function(r,o){var a=jw.prototype.set.call(this,r,o);return sG(this),a},n},Upe=function(e,t){var n=new j5(e,t);return n.set=function(r,o){var a=j5.prototype.set.call(this,r,o);return sG(this),a},n},$pe=Symbol.for("apollo.cacheSize"),Fi=K({},S5[$pe]),tu={};function Nj(e,t){tu[e]=t}var zpe=globalThis.__DEV__!==!1?Gpe:void 0,Hpe=globalThis.__DEV__!==!1?Vpe:void 0,qpe=globalThis.__DEV__!==!1?cG:void 0;function Wpe(){var e={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],r=t[1];return[n,Fi[n]||r]}))}function Gpe(){var e,t,n,r,o;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:Wpe(),sizes:K({print:(e=tu.print)===null||e===void 0?void 0:e.call(tu),parser:(t=tu.parser)===null||t===void 0?void 0:t.call(tu),canonicalStringify:(n=tu.canonicalStringify)===null||n===void 0?void 0:n.call(tu),links:O5(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:uG(this.queryManager.documentTransform)}},(o=(r=this.cache).getMemoryInternals)===null||o===void 0?void 0:o.call(r))}}function cG(){return{cache:{fragmentQueryDocuments:Ec(this.getFragmentDoc)}}}function Vpe(){var e=this.config.fragments;return K(K({},cG.apply(this)),{addTypenameDocumentTransform:uG(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Ec(this.storeReader.executeSelectionSet),executeSubSelectedArray:Ec(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Ec(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Ec(e==null?void 0:e.findFragmentSpreads),lookup:Ec(e==null?void 0:e.lookup),transform:Ec(e==null?void 0:e.transform)}})}function Kpe(e){return!!e&&"dirtyKey"in e}function Ec(e){return Kpe(e)?e.size:void 0}function lG(e){return e!=null}function uG(e){return I5(e).map(function(t){return{cache:t}})}function I5(e){return e?vn(vn([Ec(e==null?void 0:e.performWork)],I5(e==null?void 0:e.left),!0),I5(e==null?void 0:e.right),!0).filter(lG):[]}function O5(e){var t;return e?vn(vn([(t=e==null?void 0:e.getMemoryInternals)===null||t===void 0?void 0:t.call(e)],O5(e==null?void 0:e.left),!0),O5(e==null?void 0:e.right),!0).filter(lG):[]}var Vc=Object.assign(function(t){return JSON.stringify(t,Ype)},{reset:function(){Of=new Upe(Fi.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&Nj("canonicalStringify",function(){return Of.size});var Of;Vc.reset();function Ype(e,t){if(t&&typeof t=="object"){var n=Object.getPrototypeOf(t);if(n===Object.prototype||n===null){var r=Object.keys(t);if(r.every(Qpe))return t;var o=JSON.stringify(r),a=Of.get(o);if(!a){r.sort();var i=JSON.stringify(r);a=Of.get(i)||r,Of.set(o,a),Of.set(i,a)}var s=Object.create(n);return a.forEach(function(c){s[c]=t[c]}),s}}return t}function Qpe(e,t,n){return t===0||n[t-1]<=e}function Xf(e){return{__ref:String(e)}}function kt(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function Xpe(e){return yn(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function Jpe(e){return e.kind==="StringValue"}function Zpe(e){return e.kind==="BooleanValue"}function e0e(e){return e.kind==="IntValue"}function t0e(e){return e.kind==="FloatValue"}function n0e(e){return e.kind==="Variable"}function r0e(e){return e.kind==="ObjectValue"}function o0e(e){return e.kind==="ListValue"}function a0e(e){return e.kind==="EnumValue"}function i0e(e){return e.kind==="NullValue"}function wh(e,t,n,r){if(e0e(n)||t0e(n))e[t.value]=Number(n.value);else if(Zpe(n)||Jpe(n))e[t.value]=n.value;else if(r0e(n)){var o={};n.fields.map(function(i){return wh(o,i.name,i.value,r)}),e[t.value]=o}else if(n0e(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(o0e(n))e[t.value]=n.values.map(function(i){var s={};return wh(s,t,i,r),s[t.value]});else if(a0e(n))e[t.value]=n.value;else if(i0e(n))e[t.value]=null;else throw ro(84,t.value,n.kind)}function s0e(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(o){n[o.name.value]={},o.arguments&&o.arguments.forEach(function(a){var i=a.name,s=a.value;return wh(n[o.name.value],i,s,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(o){var a=o.name,i=o.value;return wh(r,a,i,t)})),dG(e.name.value,r,n)}var c0e=["connection","include","skip","client","rest","export","nonreactive"],mp=Vc,dG=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o={};return r.forEach(function(s){o[s]=t[s]}),"".concat(n.connection.key,"(").concat(mp(o),")")}else return n.connection.key;var a=e;if(t){var i=mp(t);a+="(".concat(i,")")}return n&&Object.keys(n).forEach(function(s){c0e.indexOf(s)===-1&&(n[s]&&Object.keys(n[s]).length?a+="@".concat(s,"(").concat(mp(n[s]),")"):a+="@".concat(s))}),a},{setStringify:function(e){var t=mp;return mp=e,t}});function Rx(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){var o=r.name,a=r.value;return wh(n,o,a,t)}),n}return null}function ll(e){return e.alias?e.alias.value:e.name.value}function R5(e,t,n){for(var r,o=0,a=t.selections;oObject.create(null),{forEach:f0e,slice:h0e}=Array.prototype,{hasOwnProperty:m0e}=Object.prototype;class Fj{constructor(t=!0,n=d0e){this.weakness=t,this.makeData=n}lookup(...t){return this.lookupArray(t)}lookupArray(t){let n=this;return f0e.call(t,r=>n=n.getChildTrie(r)),m0e.call(n,"data")?n.data:n.data=this.makeData(h0e.call(t))}peek(...t){return this.peekArray(t)}peekArray(t){let n=this;for(let r=0,o=t.length;n&&rclass{constructor(){this.id=["slot",p0e++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=ir;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===ZO)break;return t!==ir&&(ir.slots[this.id]=n),!0}return ir&&(ir.slots[this.id]=ZO),!1}getValue(){if(this.hasValue())return ir.slots[this.id]}withValue(t,n,r,o){const a={__proto__:null,[this.id]:t},i=ir;ir={parent:i,slots:a};try{return n.apply(o,r)}finally{ir=i}}static bind(t){const n=ir;return function(){const r=ir;try{return ir=n,t.apply(this,arguments)}finally{ir=r}}}static noContext(t,n,r){if(ir){const o=ir;try{return ir=null,t.apply(r,n)}finally{ir=o}}else return t.apply(r,n)}};function eR(e){try{return e()}catch{}}const US="@wry/context:Slot",y0e=eR(()=>globalThis)||eR(()=>global)||Object.create(null),tR=y0e,hG=tR[US]||Array[US]||function(e){try{Object.defineProperty(tR,US,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(g0e()),Bx=new hG,{hasOwnProperty:b0e}=Object.prototype,Mj=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function Lj(e){const{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}const sg=[],v0e=100;function Eh(e,t){if(!e)throw new Error(t||"assertion failure")}function mG(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function pG(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function gG(e){return e.slice(0)}class Fx{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Fx.count}peek(){if(this.value.length===1&&!dl(this))return nR(this),this.value[0]}recompute(t){return Eh(!this.recomputing,"already recomputing"),nR(this),dl(this)?w0e(this,t):pG(this.value)}setDirty(){this.dirty||(this.dirty=!0,yG(this),Lj(this))}dispose(){this.setDirty(),_G(this),Uj(this,(t,n)=>{t.setDirty(),xG(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=sg.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(Mj(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),sg.push(this.deps),this.deps=null)}}Fx.count=0;function nR(e){const t=Bx.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),dl(e)?vG(t,e):wG(t,e),t}function w0e(e,t){return _G(e),Bx.withValue(e,E0e,[e,t]),x0e(e,t)&&_0e(e),pG(e.value)}function E0e(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&e.value.length===1&&(r=gG(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!mG(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(o){e.value[1]=o}e.recomputing=!1}function dl(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function _0e(e){e.dirty=!1,!dl(e)&&bG(e)}function yG(e){Uj(e,vG)}function bG(e){Uj(e,wG)}function Uj(e,t){const n=e.parents.size;if(n){const r=Mj(e.parents);for(let o=0;o0&&e.childValues.forEach((t,n)=>{xG(e,n)}),e.forgetDeps(),Eh(e.dirtyChildren===null)}function xG(e,t){t.parents.delete(e),e.childValues.delete(t),EG(e,t)}function x0e(e,t){if(typeof e.subscribe=="function")try{Lj(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}const C0e={setDirty:!0,dispose:!0,forget:!0};function CG(e){const t=new Map;function n(r){const o=Bx.getValue();if(o){let a=t.get(r);a||t.set(r,a=new Set),o.dependOn(a)}}return n.dirty=function(o,a){const i=t.get(o);if(i){const s=a&&b0e.call(C0e,a)?a:"setDirty";Mj(i).forEach(c=>c[s]()),t.delete(o),Lj(i)}},n}let rR;function S0e(...e){return(rR||(rR=new Fj(typeof WeakMap=="function"))).lookupArray(e)}const $S=new Set;function cg(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=S0e,normalizeResult:o,subscribe:a,cache:i=j5}=Object.create(null)){const s=typeof i=="function"?new i(t,f=>f.dispose()):i,c=function(){const f=r.apply(null,n?n.apply(null,arguments):arguments);if(f===void 0)return e.apply(null,arguments);let h=s.get(f);h||(s.set(f,h=new Fx(e)),h.normalizeResult=o,h.subscribe=a,h.forget=()=>s.delete(f));const m=h.recompute(Array.prototype.slice.call(arguments));return s.set(f,h),$S.add(s),Bx.hasValue()||($S.forEach(p=>p.clean()),$S.clear()),m};Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:o,subscribe:a,cache:s});function l(f){const h=f&&s.get(f);h&&h.setDirty()}c.dirtyKey=l,c.dirty=function(){l(r.apply(null,arguments))};function u(f){const h=f&&s.get(f);if(h)return h.peek()}c.peekKey=u,c.peek=function(){return u(r.apply(null,arguments))};function d(f){return f?s.delete(f):!1}return c.forgetKey=d,c.forget=function(){return d(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function T0e(e){return e}var SG=function(){function e(t,n){n===void 0&&(n=Object.create(null)),this.resultCache=iG?new WeakSet:new Set,this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(T0e,{cache:!1})},e.split=function(t,n,r){return r===void 0&&(r=e.identity()),Object.assign(new e(function(o){var a=t(o)?n:r;return a.transformDocument(o)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new um(dm);this.performWork=cg(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var o=t.getCacheKey(r);if(o)return Pe(Array.isArray(o),68),n.lookupArray(o)},max:Fi["documentTransform.cache"],cache:jw})}},e.prototype.performWork=function(t){return iy(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var n=this.performWork(t);return this.resultCache.add(n),n},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(r){return t.transformDocument(n.transformDocument(r))},{cache:!1}),{left:this,right:t})},e}(),y0,Mx=Object.assign(function(e){var t=y0.get(e);return t||(t=wpe(e),y0.set(e,t)),t},{reset:function(){y0=new Rj(Fi.print||2e3)}});Mx.reset();globalThis.__DEV__!==!1&&Nj("print",function(){return y0?y0.size:0});var bn=Array.isArray;function xa(e){return Array.isArray(e)&&e.length>0}var oR={kind:Ce.FIELD,name:{kind:Ce.NAME,value:"__typename"}};function TG(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===Ce.FRAGMENT_SPREAD&&TG(t[n.name.value],t)})}function A0e(e){return TG(sy(e)||u0e(e),Ix(Nx(e)))?null:e}function D0e(e){var t=new Map,n=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&n.set(r.test,r))}),function(r){var o=t.get(r.name.value);return!o&&n.size&&n.forEach(function(a,i){i(r)&&(o=a)}),o}}function aR(e){var t=new Map;return function(r){r===void 0&&(r=e);var o=t.get(r);return o||t.set(r,o={variables:new Set,fragmentSpreads:new Set}),o}}function AG(e,t){iy(t);for(var n=aR(""),r=aR(""),o=function(v){for(var g=0,w=void 0;g=0;--i)t.definitions[i].kind===Ce.OPERATION_DEFINITION&&++a;var s=D0e(e),c=function(v){return xa(v)&&v.map(s).some(function(g){return g&&g.remove})},l=new Map,u=!1,d={enter:function(v){if(c(v.directives))return u=!0,null}},f=Ts(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(v,g,w,_,C){var x=o(C);x&&x.variables.add(v.name.value)}},FragmentSpread:{enter:function(v,g,w,_,C){if(c(v.directives))return u=!0,null;var x=o(C);x&&x.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter:function(v,g,w,_){l.set(JSON.stringify(_),v)},leave:function(v,g,w,_){var C=l.get(JSON.stringify(_));if(v===C)return v;if(a>0&&v.selectionSet.selections.every(function(x){return x.kind===Ce.FIELD&&x.name.value==="__typename"}))return r(v.name.value).removed=!0,u=!0,null}},Directive:{leave:function(v){if(s(v))return u=!0,null}}});if(!u)return t;var h=function(v){return v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(function(g){h(r(g)).transitiveVars.forEach(function(w){v.transitiveVars.add(w)})})),v},m=new Set;f.definitions.forEach(function(v){v.kind===Ce.OPERATION_DEFINITION?h(n(v.name&&v.name.value)).fragmentSpreads.forEach(function(g){m.add(g)}):v.kind===Ce.FRAGMENT_DEFINITION&&a===0&&!r(v.name.value).removed&&m.add(v.name.value)}),m.forEach(function(v){h(r(v)).fragmentSpreads.forEach(function(g){m.add(g)})});var p=function(v){return!!(!m.has(v)||r(v).removed)},b={enter:function(v){if(p(v.name.value))return null}};return A0e(Ts(f,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(v){if(v.variableDefinitions){var g=h(n(v.name&&v.name.value)).transitiveVars;if(g.size1)for(var r=new fl,o=1;o=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O0e(e,t){if(e){if(typeof e=="string")return sR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sR(e,t)}}function sR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,s=!1,c=arguments[1],l=c;return new a(function(u){return o.subscribe({next:function(d){var f=!s;if(s=!0,!f||i)try{l=r(l,d)}catch(h){return u.error(h)}else l=d},error:function(d){u.error(d)},complete:function(){if(!s&&!i)return u.error(new TypeError("Cannot reduce an empty sequence"));u.next(l),u.complete()}})})},t.concat=function(){for(var r=this,o=arguments.length,a=new Array(o),i=0;i=0&&s.splice(f,1),l()}});s.push(d)},error:function(u){i.error(u)},complete:function(){l()}});function l(){c.closed&&s.length===0&&i.complete()}return function(){s.forEach(function(u){return u.unsubscribe()}),c.unsubscribe()}})},t[B5]=function(){return this},e.from=function(r){var o=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var a=Pw(r,B5);if(a){var i=a.call(r);if(Object(i)!==i)throw new TypeError(i+" is not an object");return N0e(i)&&i.constructor===o?i:new o(function(s){return i.subscribe(s)})}if(qj("iterator")&&(a=Pw(r,R0e),a))return new o(function(s){f1(function(){if(!s.closed){for(var c=I0e(a.call(r)),l;!(l=c()).done;){var u=l.value;if(s.next(u),s.closed)return}s.complete()}})});if(Array.isArray(r))return new o(function(s){f1(function(){if(!s.closed){for(var c=0;c=0;--s){var c=i[s],l=!isNaN(+c),u=l?[]:{};u[c]=a,a=u}n=r.merge(n,a)}),n}function h1(e){var t=L5(e);return xa(t)}function L5(e){var t=xa(e.errors)?e.errors.slice(0):[];return Jf(e)&&xa(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function Qu(){for(var e=[],t=0;t-1;){if(b=void 0,E=[s.slice(0,p),s.slice(p+i.length)],b=E[0],s=E[1],v=b.indexOf(`\r -\r -`),g=uge(b.slice(0,v)),w=g["content-type"],w&&w.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(_=b.slice(v),_){if(C=BG(e,_),Object.keys(C).length>1||"data"in C||"incremental"in C||"errors"in C||"payload"in C)if(W0e(C)){if(x={},"payload"in C){if(Object.keys(C).length===1&&C.payload===null)return[2];x=K({},C.payload)}"errors"in C&&(x=K(K({},x),{extensions:K(K({},"extensions"in x?x.extensions:null),(T={},T[Gj]=C.errors,T))})),t(x)}else t(C);else if(Object.keys(C).length===1&&"hasNext"in C&&!C.hasNext)return[2]}p=s.indexOf(i)}return[3,1];case 3:return[2]}})})}function uge(e){var t={};return e.split(` -`).forEach(function(n){var r=n.indexOf(":");if(r>-1){var o=n.slice(0,r).trim().toLowerCase(),a=n.slice(r+1).trim();t[o]=a}}),t}function BG(e,t){if(e.status>=300){var n=function(){try{return JSON.parse(t)}catch{return t}};NG(e,n(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(o){var r=o;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function dge(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function fge(e){return function(t){return t.text().then(function(n){return BG(t,n)}).then(function(n){return!Array.isArray(n)&&!mR.call(n,"data")&&!mR.call(n,"errors")&&NG(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}var $5=function(e,t){var n;try{n=JSON.stringify(e)}catch(o){var r=ro(39,t,o.message);throw r.parseError=o,r}return n},hge={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},mge={accept:"*/*","content-type":"application/json"},pge={method:"POST"},gge={http:hge,headers:mge,options:pge},yge=function(e,t){return t(e)};function bge(e,t){for(var n=[],r=2;r"u")throw ro(37)},Ege=function(e,t){var n=e.getContext(),r=n.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function _ge(e,t){var n=[],r=function(d,f){n.push("".concat(d,"=").concat(encodeURIComponent(f)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var o=void 0;try{o=$5(t.variables,"Variables map")}catch(d){return{parseError:d}}r("variables",o)}if(t.extensions){var a=void 0;try{a=$5(t.extensions,"Extensions map")}catch(d){return{parseError:d}}r("extensions",a)}var i="",s=e,c=e.indexOf("#");c!==-1&&(i=e.substr(c),s=e.substr(0,c));var l=s.indexOf("?")===-1?"?":"&",u=s+l+n.join("&")+i;return{newURI:u}}var pR=Wa(function(){return fetch}),xge=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?"/graphql":t,r=e.fetch,o=e.print,a=o===void 0?yge:o,i=e.includeExtensions,s=e.preserveHeaderCase,c=e.useGETForQueries,l=e.includeUnusedVariables,u=l===void 0?!1:l,d=Zr(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&wge(r||pR);var f={http:{includeExtensions:i,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new ly(function(h){var m=Ege(h,n),p=h.getContext(),b={};if(p.clientAwareness){var v=p.clientAwareness,g=v.name,w=v.version;g&&(b["apollographql-client-name"]=g),w&&(b["apollographql-client-version"]=w)}var _=K(K({},b),p.headers),C={http:p.http,options:p.fetchOptions,credentials:p.credentials,headers:_};if(ig(["client"],h.query)){var x=DG(h.query);if(!x)return qS(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));h.query=x}var E=bge(h,a,gge,f,C),T=E.options,k=E.body;k.variables&&!u&&(k.variables=Y0e(k.variables,h.query));var D;!T.signal&&typeof AbortController<"u"&&(D=new AbortController,T.signal=D.signal);var R=function(M){return M.kind==="OperationDefinition"&&M.operation==="mutation"},F=function(M){return M.kind==="OperationDefinition"&&M.operation==="subscription"},B=F(cy(h.query)),j=ig(["defer"],h.query);if(c&&!h.query.definitions.some(R)&&(T.method="GET"),j||B){T.headers=T.headers||{};var P="multipart/mixed;";B&&j&&globalThis.__DEV__!==!1&&Pe.warn(38),B?P+="boundary=graphql;subscriptionSpec=1.0,application/json":j&&(P+="deferSpec=20220824,application/json"),T.headers.accept=P}if(T.method==="GET"){var O=_ge(m,k),I=O.newURI,N=O.parseError;if(N)return qS(N);m=I}else try{T.body=$5(k,"Payload")}catch(M){return qS(M)}return new Gt(function(M){var L=r||Wa(function(){return fetch})||pR,X=M.next.bind(M);return L(m,T).then(function(J){var U;h.setContext({response:J});var G=(U=J.headers)===null||U===void 0?void 0:U.get("content-type");return G!==null&&/^multipart\/mixed/i.test(G)?lge(J,X):fge(h)(J).then(X)}).then(function(){D=void 0,M.complete()}).catch(function(J){D=void 0,dge(J,M)}),function(){D&&D.abort()}})})},Cge=function(e){or(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,xge(n).request)||this;return r.options=n,r}return t}(ly);const{toString:gR,hasOwnProperty:Sge}=Object.prototype,yR=Function.prototype.toString,z5=new Map;function Rt(e,t){try{return H5(e,t)}finally{z5.clear()}}function H5(e,t){if(e===t)return!0;const n=gR.call(e),r=gR.call(t);if(n!==r)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(vR(e,t))return!0;const o=bR(e),a=bR(t),i=o.length;if(i!==a.length)return!1;for(let s=0;s=0&&e.indexOf(t,n)===n}function vR(e,t){let n=z5.get(e);if(n){if(n.has(t))return!0}else z5.set(e,n=new Set);return n.add(t),!1}function FG(e,t,n,r){var o=t.data,a=Zr(t,["data"]),i=n.data,s=Zr(n,["data"]);return Rt(a,s)&&p1(cy(e).selectionSet,o,i,{fragmentMap:Ix(Nx(e)),variables:r})}function p1(e,t,n,r){if(t===n)return!0;var o=new Set;return e.selections.every(function(a){if(o.has(a)||(o.add(a),!ay(a,r.variables))||wR(a))return!0;if(ul(a)){var i=ll(a),s=t&&t[i],c=n&&n[i],l=a.selectionSet;if(!l)return Rt(s,c);var u=Array.isArray(s),d=Array.isArray(c);if(u!==d)return!1;if(u&&d){var f=s.length;if(c.length!==f)return!1;for(var h=0;h=0;--c)s.missing=(i={},i[s.path[c]]=s.missing,i)}else s.missing=s.path;return s.__proto__=t.prototype,s}return t}(Error),Kn=Object.prototype.hasOwnProperty;function yp(e){return e==null}function UG(e,t){var n=e.__typename,r=e.id,o=e._id;if(typeof n=="string"&&(t&&(t.keyObject=yp(r)?yp(o)?void 0:{_id:o}:{id:r}),yp(r)&&!yp(o)&&(r=o),!yp(r)))return"".concat(n,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var $G={dataIdFromObject:UG,addTypename:!0,resultCaching:!0,canonizeResults:!1};function jge(e){return Qu($G,e)}function zG(e){var t=e.canonizeResults;return t===void 0?$G.canonizeResults:t}function Pge(e,t){return kt(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var HG=/^[_a-z][_0-9a-z]*/i;function hl(e){var t=e.match(HG);return t?t[0]:e}function q5(e,t,n){return yn(t)?bn(t)?t.every(function(r){return q5(e,r,n)}):e.selections.every(function(r){if(ul(r)&&ay(r,n)){var o=ll(r);return Kn.call(t,o)&&(!r.selectionSet||q5(r.selectionSet,t[o],n))}return!0}):!1}function Rf(e){return yn(e)&&!kt(e)&&!bn(e)}function Ige(){return new fl}function qG(e,t){var n=Ix(Nx(e));return{fragmentMap:n,lookupFragment:function(r){var o=n[r];return!o&&t&&(o=t.lookup(r)),o||null}}}var g1=Object.create(null),WS=function(){return g1},ER=Object.create(null),ug=function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(o,a){return lg(kt(o)?r.get(o.__ref,a):o&&o[a])},this.canRead=function(o){return kt(o)?r.has(o.__ref):typeof o=="object"},this.toReference=function(o,a){if(typeof o=="string")return Xf(o);if(kt(o))return o;var i=r.policies.identify(o)[0];if(i){var s=Xf(i);return a&&r.merge(i,o),s}}}return e.prototype.toObject=function(){return K({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,n){if(this.group.depend(t,n),Kn.call(this.data,t)){var r=this.data[t];if(r&&Kn.call(r,n))return r[n]}if(n==="__typename"&&Kn.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof gc)return this.parent.get(t,n)},e.prototype.lookup=function(t,n){if(n&&this.group.depend(t,"__exists"),Kn.call(this.data,t))return this.data[t];if(this instanceof gc)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,n){var r=this,o;kt(t)&&(t=t.__ref),kt(n)&&(n=n.__ref);var a=typeof t=="string"?this.lookup(o=t):t,i=typeof n=="string"?this.lookup(o=n):n;if(i){Pe(typeof o=="string",1);var s=new fl(Rge).merge(a,i);if(this.data[o]=s,s!==a&&(delete this.refs[o],this.group.caching)){var c=Object.create(null);a||(c.__exists=1),Object.keys(i).forEach(function(l){if(!a||a[l]!==s[l]){c[l]=1;var u=hl(l);u!==l&&!r.policies.hasKeyArgs(s.__typename,u)&&(c[u]=1),s[l]===void 0&&!(r instanceof gc)&&delete s[l]}}),c.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[o]===s.__typename&&delete c.__typename,Object.keys(c).forEach(function(l){return r.group.dirty(o,l)})}}},e.prototype.modify=function(t,n){var r=this,o=this.lookup(t);if(o){var a=Object.create(null),i=!1,s=!0,c={DELETE:g1,INVALIDATE:ER,isReference:kt,toReference:this.toReference,canRead:this.canRead,readField:function(l,u){return r.policies.readField(typeof l=="string"?{fieldName:l,from:u||Xf(t)}:l,{store:r})}};if(Object.keys(o).forEach(function(l){var u=hl(l),d=o[l];if(d!==void 0){var f=typeof n=="function"?n:n[l]||n[u];if(f){var h=f===WS?g1:f(lg(d),K(K({},c),{fieldName:u,storeFieldName:l,storage:r.getStorage(t,l)}));if(h===ER)r.group.dirty(t,l);else if(h===g1&&(h=void 0),h!==d&&(a[l]=h,i=!0,d=h,globalThis.__DEV__!==!1)){var m=function(C){if(r.lookup(C.__ref)===void 0)return globalThis.__DEV__!==!1&&Pe.warn(2,C),!0};if(kt(h))m(h);else if(Array.isArray(h))for(var p=!1,b=void 0,v=0,g=h;v0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof gc?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(i){Kn.call(r,i)&&(Object.keys(t.findChildRefIds(i)).forEach(n.add,n),delete r[i])});var o=Object.keys(r);if(o.length){for(var a=this;a instanceof gc;)a=a.parent;o.forEach(function(i){return a.delete(i)})}return o},e.prototype.findChildRefIds=function(t){if(!Kn.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var o=new Set([r]);o.forEach(function(a){kt(a)&&(n[a.__ref]=!0),yn(a)&&Object.keys(a).forEach(function(i){var s=a[i];yn(s)&&o.add(s)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),WG=function(){function e(t,n){n===void 0&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?CG():null,this.keyMaker=new um(dm)},e.prototype.depend=function(t,n){if(this.d){this.d(GS(t,n));var r=hl(n);r!==n&&this.d(GS(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(GS(t,n),n==="__exists"?"forget":"setDirty")},e}();function GS(e,t){return t+"#"+e}function _R(e,t){v0(e)&&e.group.depend(t,"__exists")}(function(e){var t=function(n){or(r,n);function r(o){var a=o.policies,i=o.resultCaching,s=i===void 0?!0:i,c=o.seed,l=n.call(this,a,new WG(s))||this;return l.stump=new Oge(l),l.storageTrie=new um(dm),c&&l.replace(c),l}return r.prototype.addLayer=function(o,a){return this.stump.addLayer(o,a)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(e);e.Root=t})(ug||(ug={}));var gc=function(e){or(t,e);function t(n,r,o,a){var i=e.call(this,r.policies,a)||this;return i.id=n,i.parent=r,i.replay=o,i.group=a,o(i),i}return t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,o=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(a){var i=r.data[a],s=o.lookup(a);s?i?i!==s&&Object.keys(i).forEach(function(c){Rt(i[c],s[c])||r.group.dirty(a,c)}):(r.group.dirty(a,"__exists"),Object.keys(s).forEach(function(c){r.group.dirty(a,c)})):r.delete(a)}),o):o===this.parent?this:o.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return K(K({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return Kn.call(this.data,n)?K(K({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t}(ug),Oge=function(e){or(t,e);function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new WG(n.group.caching,n.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(n,r){return this.parent.merge(n,r)},t}(gc);function Rge(e,t,n){var r=e[n],o=t[n];return Rt(r,o)?r:o}function v0(e){return!!(e instanceof ug&&e.group.caching)}function Nge(e){return yn(e)?bn(e)?e.slice(0):K({__proto__:Object.getPrototypeOf(e)},e):e}var xR=function(){function e(){this.known=new(iG?WeakSet:Set),this.pool=new um(dm),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return yn(t)&&this.known.has(t)},e.prototype.pass=function(t){if(yn(t)){var n=Nge(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(yn(t)){var r=this.passes.get(t);if(r)return r;var o=Object.getPrototypeOf(t);switch(o){case Array.prototype:{if(this.known.has(t))return t;var a=t.map(this.admit,this),i=this.pool.lookupArray(a);return i.array||(this.known.add(i.array=a),globalThis.__DEV__!==!1&&Object.freeze(a)),i.array}case null:case Object.prototype:{if(this.known.has(t))return t;var s=Object.getPrototypeOf(t),c=[s],l=this.sortedKeys(t);c.push(l.json);var u=c.length;l.sorted.forEach(function(h){c.push(n.admit(t[h]))});var i=this.pool.lookupArray(c);if(!i.object){var d=i.object=Object.create(s);this.known.add(d),l.sorted.forEach(function(h,m){d[h]=c[u+m]}),globalThis.__DEV__!==!1&&Object.freeze(d)}return i.object}}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var o=JSON.stringify(n);(r.keys=this.keysByJSON.get(o))||this.keysByJSON.set(o,r.keys={sorted:n,json:o})}return r.keys},e}();function CR(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Bge=function(){function e(t){var n=this;this.knownResults=new(dm?WeakMap:Map),this.config=Qu(t,{addTypename:t.addTypename!==!1,canonizeResults:zG(t)}),this.canon=t.canon||new xR,this.executeSelectionSet=cg(function(r){var o,a=r.context.canonizeResults,i=CR(r);i[3]=!a;var s=(o=n.executeSelectionSet).peek.apply(o,i);return s?a?K(K({},s),{result:n.canon.admit(s.result)}):s:(_R(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||Fi["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:CR,makeCacheKey:function(r,o,a,i){if(v0(a.store))return a.store.makeCacheKey(r,kt(o)?o.__ref:o,a.varString,i)}}),this.executeSubSelectedArray=cg(function(r){return _R(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||Fi["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var o=r.field,a=r.array,i=r.context;if(v0(i.store))return i.store.makeCacheKey(o,a,i.varString)}})}return e.prototype.resetCanon=function(){this.canon=new xR},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,o=t.rootId,a=o===void 0?"ROOT_QUERY":o,i=t.variables,s=t.returnPartialData,c=s===void 0?!0:s,l=t.canonizeResults,u=l===void 0?this.config.canonizeResults:l,d=this.config.cache.policies;i=K(K({},Bj(fG(r))),i);var f=Xf(a),h=this.executeSelectionSet({selectionSet:cy(r).selectionSet,objectOrReference:f,enclosingRef:f,context:K({store:n,query:r,policies:d,variables:i,varString:Vc(i),canonizeResults:u},qG(r,this.config.fragments))}),m;if(h.missing&&(m=[new LG(Fge(h.missing),h.missing,r,i)],!c))throw m[0];return{result:h.result,complete:!m,missing:m}},e.prototype.isFresh=function(t,n,r,o){if(v0(o.store)&&this.knownResults.get(t)===r){var a=this.executeSelectionSet.peek(r,n,o,this.canon.isKnown(t));if(a&&t===a.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,o=t.objectOrReference,a=t.enclosingRef,i=t.context;if(kt(o)&&!i.policies.rootTypenamesById[o.__ref]&&!i.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var s=i.variables,c=i.policies,l=i.store,u=l.getFieldValue(o,"__typename"),d=[],f,h=new fl;this.config.addTypename&&typeof u=="string"&&!c.rootIdsByTypename[u]&&d.push({__typename:u});function m(w,_){var C;return w.missing&&(f=h.merge(f,(C={},C[_]=w.missing,C))),w.result}var p=new Set(r.selections);p.forEach(function(w){var _,C;if(ay(w,s))if(ul(w)){var x=c.readField({fieldName:w.name.value,field:w,variables:i.variables,from:o},i),E=ll(w);x===void 0?$j.added(w)||(f=h.merge(f,(_={},_[E]="Can't find field '".concat(w.name.value,"' on ").concat(kt(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),_))):bn(x)?x.length>0&&(x=m(n.executeSubSelectedArray({field:w,array:x,enclosingRef:a,context:i}),E)):w.selectionSet?x!=null&&(x=m(n.executeSelectionSet({selectionSet:w.selectionSet,objectOrReference:x,enclosingRef:kt(x)?x:a,context:i}),E)):i.canonizeResults&&(x=n.canon.pass(x)),x!==void 0&&d.push((C={},C[E]=x,C))}else{var T=Ox(w,i.lookupFragment);if(!T&&w.kind===Ce.FRAGMENT_SPREAD)throw ro(9,w.name.value);T&&c.fragmentMatches(T,u)&&T.selectionSet.selections.forEach(p.add,p)}});var b=Lx(d),v={result:b,missing:f},g=i.canonizeResults?this.canon.admit(v):lg(v);return g.result&&this.knownResults.set(g.result,r),g},e.prototype.execSubSelectedArrayImpl=function(t){var n=this,r=t.field,o=t.array,a=t.enclosingRef,i=t.context,s,c=new fl;function l(u,d){var f;return u.missing&&(s=c.merge(s,(f={},f[d]=u.missing,f))),u.result}return r.selectionSet&&(o=o.filter(i.store.canRead)),o=o.map(function(u,d){return u===null?null:bn(u)?l(n.executeSubSelectedArray({field:r,array:u,enclosingRef:a,context:i}),d):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:u,enclosingRef:kt(u)?u:a,context:i}),d):(globalThis.__DEV__!==!1&&Mge(i.store,r,u),u)}),{result:i.canonizeResults?this.canon.admit(o):o,missing:s}},e}();function Fge(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function Mge(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(o){yn(o)&&(Pe(!kt(o),10,Pge(e,o),t.name.value),Object.values(o).forEach(r.add,r))})}}var Vj=new hG,SR=new WeakMap;function w0(e){var t=SR.get(e);return t||SR.set(e,t={vars:new Set,dep:CG()}),t}function TR(e){w0(e).vars.forEach(function(t){return t.forgetCache(e)})}function Lge(e){w0(e).vars.forEach(function(t){return t.attachCache(e)})}function Uge(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(c){w0(c).dep.dirty(r),$ge(c)});var i=Array.from(n);n.clear(),i.forEach(function(c){return c(e)})}}else{var s=Vj.getValue();s&&(o(s),w0(s).dep(r))}return e};r.onNextChange=function(a){return n.add(a),function(){n.delete(a)}};var o=r.attachCache=function(a){return t.add(a),w0(a).vars.add(r),r};return r.forgetCache=function(a){return t.delete(a)},r}function $ge(e){e.broadcastWatches&&e.broadcastWatches()}var AR=Object.create(null);function Kj(e){var t=JSON.stringify(e);return AR[t]||(AR[t]=Object.create(null))}function DR(e){var t=Kj(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var o=function(i,s){return r.readField(s,i)},a=r.keyObject=Yj(e,function(i){var s=Zf(r.storeObject,i,o);return s===void 0&&n!==r.storeObject&&Kn.call(n,i[0])&&(s=Zf(n,i,VG)),Pe(s!==void 0,4,i.join("."),n),s});return"".concat(r.typename,":").concat(JSON.stringify(a))})}function kR(e){var t=Kj(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var o=r.field,a=r.variables,i=r.fieldName,s=Yj(e,function(l){var u=l[0],d=u.charAt(0);if(d==="@"){if(o&&xa(o.directives)){var f=u.slice(1),h=o.directives.find(function(v){return v.name.value===f}),m=h&&Rx(h,a);return m&&Zf(m,l.slice(1))}return}if(d==="$"){var p=u.slice(1);if(a&&Kn.call(a,p)){var b=l.slice(0);return b[0]=p,Zf(a,b)}return}if(n)return Zf(n,l)}),c=JSON.stringify(s);return(n||c!=="{}")&&(i+=":"+c),i})}function Yj(e,t){var n=new fl;return GG(e).reduce(function(r,o){var a,i=t(o);if(i!==void 0){for(var s=o.length-1;s>=0;--s)i=(a={},a[o[s]]=i,a);r=n.merge(r,i)}return r},Object.create(null))}function GG(e){var t=Kj(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(o,a){bn(o)?(GG(o).forEach(function(i){return n.push(r.concat(i))}),r.length=0):(r.push(o),bn(e[a+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function VG(e,t){return e[t]}function Zf(e,t,n){return n=n||VG,KG(t.reduce(function r(o,a){return bn(o)?o.map(function(i){return r(i,a)}):o&&n(o,a)},e))}function KG(e){return yn(e)?bn(e)?e.map(KG):Yj(Object.keys(e).sort(),function(t){return Zf(e,t)}):e}function W5(e){return e.args!==void 0?e.args:e.field?Rx(e.field,e.variables):null}var zge=function(){},jR=function(e,t){return t.fieldName},PR=function(e,t,n){var r=n.mergeObjects;return r(e,t)},IR=function(e,t){return t},Hge=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=K({dataIdFromObject:UG},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,o=this,a=n&&(n.typename||((r=n.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i=n&&n.storeObject||t,s=K(K({},n),{typename:a,storeObject:i,readField:n&&n.readField||function(){var f=Qj(arguments,i);return o.readField(f,{store:o.cache.data,variables:f.variables})}}),c,l=a&&this.getTypePolicy(a),u=l&&l.keyFn||this.config.dataIdFromObject;u;){var d=u(K(K({},t),i),s);if(bn(d))u=DR(d);else{c=d;break}}return c=c?String(c):void 0,s.keyObject?[c,s.keyObject]:[c]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var o=t[r],a=o.queryType,i=o.mutationType,s=o.subscriptionType,c=Zr(o,["queryType","mutationType","subscriptionType"]);a&&n.setRootTypename("Query",r),i&&n.setRootTypename("Mutation",r),s&&n.setRootTypename("Subscription",r),Kn.call(n.toBeAdded,r)?n.toBeAdded[r].push(c):n.toBeAdded[r]=[c]})},e.prototype.updateTypePolicy=function(t,n){var r=this,o=this.getTypePolicy(t),a=n.keyFields,i=n.fields;function s(c,l){c.merge=typeof l=="function"?l:l===!0?PR:l===!1?IR:c.merge}s(o,n.merge),o.keyFn=a===!1?zge:bn(a)?DR(a):typeof a=="function"?a:o.keyFn,i&&Object.keys(i).forEach(function(c){var l=r.getFieldPolicy(t,c,!0),u=i[c];if(typeof u=="function")l.read=u;else{var d=u.keyArgs,f=u.read,h=u.merge;l.keyFn=d===!1?jR:bn(d)?kR(d):typeof d=="function"?d:l.keyFn,typeof f=="function"&&(l.read=f),s(l,h)}l.read&&l.merge&&(l.keyFn=l.keyFn||jR)})},e.prototype.setRootTypename=function(t,n){n===void 0&&(n=t);var r="ROOT_"+t.toUpperCase(),o=this.rootTypenamesById[r];n!==o&&(Pe(!o||o===t,5,t),o&&delete this.rootIdsByTypename[o],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(o){n.getSupertypeSet(o,!0).add(r);var a=o.match(HG);(!a||a[0]!==o)&&n.fuzzySubtypes.set(o,new RegExp(o))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!Kn.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var o=this.supertypeMap.get(t);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(i,s){if(i.test(t)){var c=n.supertypeMap.get(s);c&&c.forEach(function(l){return o.add(l)})}})),o&&o.size&&o.forEach(function(i){var s=n.getTypePolicy(i),c=s.fields,l=Zr(s,["fields"]);Object.assign(r,l),Object.assign(r.fields,c)})}var a=this.toBeAdded[t];return a&&a.length&&a.splice(0).forEach(function(i){n.updateTypePolicy(t,i)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var o=this.getTypePolicy(t).fields;return o[n]||r&&(o[n]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,o){var a=this;if(!t.typeCondition)return!0;if(!n)return!1;var i=t.typeCondition.name.value;if(n===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i))for(var s=this.getSupertypeSet(n,!0),c=[s],l=function(m){var p=a.getSupertypeSet(m,!1);p&&p.size&&c.indexOf(p)<0&&c.push(p)},u=!!(r&&this.fuzzySubtypes.size),d=!1,f=0;f1?o:t}:(i=K({},r),Kn.call(i,"from")||(i.from=t)),globalThis.__DEV__!==!1&&i.from===void 0&&globalThis.__DEV__!==!1&&Pe.warn(7,GW(Array.from(e))),i.variables===void 0&&(i.variables=n),i}function YG(e){return function(n,r){if(bn(n)||bn(r))throw ro(8);if(yn(n)&&yn(r)){var o=e.getFieldValue(n,"__typename"),a=e.getFieldValue(r,"__typename"),i=o&&a&&o!==a;if(i)return r;if(kt(n)&&Rf(r))return e.merge(n.__ref,r),n;if(Rf(n)&&kt(r))return e.merge(n,r.__ref),r;if(Rf(n)&&Rf(r))return K(K({},n),r)}return r}}function VS(e,t,n){var r="".concat(t).concat(n),o=e.flavors.get(r);return o||e.flavors.set(r,o=e.clientOnly===t&&e.deferred===n?e:K(K({},e),{clientOnly:t,deferred:n})),o}var qge=function(){function e(t,n,r){this.cache=t,this.reader=n,this.fragments=r}return e.prototype.writeToStore=function(t,n){var r=this,o=n.query,a=n.result,i=n.dataId,s=n.variables,c=n.overwrite,l=sy(o),u=Ige();s=K(K({},Bj(l)),s);var d=K(K({store:t,written:Object.create(null),merge:function(h,m){return u.merge(h,m)},variables:s,varString:Vc(s)},qG(o,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:a||Object.create(null),dataId:i,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:d});if(!kt(f))throw ro(11,a);return d.incomingById.forEach(function(h,m){var p=h.storeObject,b=h.mergeTree,v=h.fieldNodeSet,g=Xf(m);if(b&&b.map.size){var w=r.applyMerges(b,g,p,d);if(kt(w))return;p=w}if(globalThis.__DEV__!==!1&&!d.overwrite){var _=Object.create(null);v.forEach(function(E){E.selectionSet&&(_[E.name.value]=!0)});var C=function(E){return _[hl(E)]===!0},x=function(E){var T=b&&b.map.get(E);return!!(T&&T.info&&T.info.merge)};Object.keys(p).forEach(function(E){C(E)&&!x(E)&&Wge(g,p,E,d.store)})}t.merge(m,p)}),t.retain(f.__ref),f},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,o=t.result,a=t.selectionSet,i=t.context,s=t.mergeTree,c=this.cache.policies,l=Object.create(null),u=r&&c.rootTypenamesById[r]||R5(o,a,i.fragmentMap)||r&&i.store.get(r,"__typename");typeof u=="string"&&(l.__typename=u);var d=function(){var w=Qj(arguments,l,i.variables);if(kt(w.from)){var _=i.incomingById.get(w.from.__ref);if(_){var C=c.readField(K(K({},w),{from:_.storeObject}),i);if(C!==void 0)return C}}return c.readField(w,i)},f=new Set;this.flattenFields(a,o,i,u).forEach(function(w,_){var C,x=ll(_),E=o[x];if(f.add(_),E!==void 0){var T=c.getStoreFieldName({typename:u,fieldName:_.name.value,field:_,variables:w.variables}),k=RR(s,T),D=n.processFieldValue(E,_,_.selectionSet?VS(w,!1,!1):w,k),R=void 0;_.selectionSet&&(kt(D)||Rf(D))&&(R=d("__typename",D));var F=c.getMergeFunction(u,_.name.value,R);F?k.info={field:_,typename:u,merge:F}:NR(s,T),l=w.merge(l,(C={},C[T]=D,C))}else globalThis.__DEV__!==!1&&!w.clientOnly&&!w.deferred&&!$j.added(_)&&!c.getReadFunction(u,_.name.value)&&globalThis.__DEV__!==!1&&Pe.error(12,ll(_),o)});try{var h=c.identify(o,{typename:u,selectionSet:a,fragmentMap:i.fragmentMap,storeObject:l,readField:d}),m=h[0],p=h[1];r=r||m,p&&(l=i.merge(l,p))}catch(w){if(!r)throw w}if(typeof r=="string"){var b=Xf(r),v=i.written[r]||(i.written[r]=[]);if(v.indexOf(a)>=0||(v.push(a),this.reader&&this.reader.isFresh(o,b,a,i)))return b;var g=i.incomingById.get(r);return g?(g.storeObject=i.merge(g.storeObject,l),g.mergeTree=G5(g.mergeTree,s),f.forEach(function(w){return g.fieldNodeSet.add(w)})):i.incomingById.set(r,{storeObject:l,mergeTree:Iw(s)?void 0:s,fieldNodeSet:f}),b}return l},e.prototype.processFieldValue=function(t,n,r,o){var a=this;return!n.selectionSet||t===null?globalThis.__DEV__!==!1?IG(t):t:bn(t)?t.map(function(i,s){var c=a.processFieldValue(i,n,r,RR(o,s));return NR(o,s),c}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:o})},e.prototype.flattenFields=function(t,n,r,o){o===void 0&&(o=R5(n,t,r.fragmentMap));var a=new Map,i=this.cache.policies,s=new um(!1);return function c(l,u){var d=s.lookup(l,u.clientOnly,u.deferred);d.visited||(d.visited=!0,l.selections.forEach(function(f){if(ay(f,r.variables)){var h=u.clientOnly,m=u.deferred;if(!(h&&m)&&xa(f.directives)&&f.directives.forEach(function(v){var g=v.name.value;if(g==="client"&&(h=!0),g==="defer"){var w=Rx(v,r.variables);(!w||w.if!==!1)&&(m=!0)}}),ul(f)){var p=a.get(f);p&&(h=h&&p.clientOnly,m=m&&p.deferred),a.set(f,VS(r,h,m))}else{var b=Ox(f,r.lookupFragment);if(!b&&f.kind===Ce.FRAGMENT_SPREAD)throw ro(13,f.name.value);b&&i.fragmentMatches(b,o,n,r.variables)&&c(b.selectionSet,VS(r,h,m))}}}))}(t,r),a},e.prototype.applyMerges=function(t,n,r,o,a){var i,s=this;if(t.map.size&&!kt(r)){var c=!bn(r)&&(kt(n)||Rf(n))?n:void 0,l=r;c&&!a&&(a=[kt(c)?c.__ref:c]);var u,d=function(f,h){return bn(f)?typeof h=="number"?f[h]:void 0:o.store.getFieldValue(f,String(h))};t.map.forEach(function(f,h){var m=d(c,h),p=d(l,h);if(p!==void 0){a&&a.push(h);var b=s.applyMerges(f,m,p,o,a);b!==p&&(u=u||new Map,u.set(h,b)),a&&Pe(a.pop()===h)}}),u&&(r=bn(l)?l.slice(0):K({},l),u.forEach(function(f,h){r[h]=f}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,o,a&&(i=o.store).getStorage.apply(i,a)):r},e}(),QG=[];function RR(e,t){var n=e.map;return n.has(t)||n.set(t,QG.pop()||{map:new Map}),n.get(t)}function G5(e,t){if(e===t||!t||Iw(t))return e;if(!e||Iw(e))return t;var n=e.info&&t.info?K(K({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,o=r?new Map:e.map.size?e.map:t.map,a={info:n,map:o};if(r){var i=new Set(t.map.keys());e.map.forEach(function(s,c){a.map.set(c,G5(s,t.map.get(c))),i.delete(c)}),i.forEach(function(s){a.map.set(s,G5(t.map.get(s),e.map.get(s)))})}return a}function Iw(e){return!e||!(e.info||e.map.size)}function NR(e,t){var n=e.map,r=n.get(t);r&&Iw(r)&&(QG.push(r),n.delete(t))}var BR=new Set;function Wge(e,t,n,r){var o=function(d){var f=r.getFieldValue(d,n);return typeof f=="object"&&f},a=o(e);if(a){var i=o(t);if(i&&!kt(a)&&!Rt(a,i)&&!Object.keys(a).every(function(d){return r.getFieldValue(i,d)!==void 0})){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=hl(n),l="".concat(s,".").concat(c);if(!BR.has(l)){BR.add(l);var u=[];!bn(a)&&!bn(i)&&[a,i].forEach(function(d){var f=r.getFieldValue(d,"__typename");typeof f=="string"&&!u.includes(f)&&u.push(f)}),globalThis.__DEV__!==!1&&Pe.warn(14,c,s,u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"",l,K({},a),K({},i))}}}}var XG=function(e){or(t,e);function t(n){n===void 0&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new SG($j),r.assumeImmutableResults=!0,r.makeVar=Uge,r.txCount=0,r.config=jge(n),r.addTypename=!!r.config.addTypename,r.policies=new Hge({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var n=this.data=new ug.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,o=this.storeReader,a=this.config.fragments;this.storeWriter=new qge(this,this.storeReader=new Bge({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:zG(this.config),canon:n?void 0:o&&o.canon,fragments:a}),a),this.maybeBroadcastWatch=cg(function(i,s){return r.broadcastWatch(i,s)},{max:this.config.resultCacheMaxSize||Fi["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(i){var s=i.optimistic?r.optimisticData:r.data;if(v0(s)){var c=i.optimistic,l=i.id,u=i.variables;return s.makeCacheKey(i.query,i.callback,Vc({optimistic:c,id:l,variables:u}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(i){return i.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,o=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(K(K({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:o})).result||null}catch(a){if(a instanceof LG)return null;throw a}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(n){if(Kn.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(K(K({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||Lge(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&TR(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){var r;Vc.reset(),Mx.reset(),this.addTypenameTransform.resetCache(),(r=this.config.fragments)===null||r===void 0||r.resetCaches();var o=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),o},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(kt(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){globalThis.__DEV__!==!1&&Pe.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(Kn.call(n,"id"))return!1;n=K(K({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),Vc.reset(),n&&n.discardWatches?(this.watches.forEach(function(o){return r.maybeBroadcastWatch.forget(o)}),this.watches.clear(),TR(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var r=this,o=n.update,a=n.optimistic,i=a===void 0?!0:a,s=n.removeOptimistic,c=n.onWatchUpdated,l,u=function(f){var h=r,m=h.data,p=h.optimisticData;++r.txCount,f&&(r.data=r.optimisticData=f);try{return l=o(r)}finally{--r.txCount,r.data=m,r.optimisticData=p}},d=new Set;return c&&!this.txCount&&this.broadcastWatches(K(K({},n),{onWatchUpdated:function(f){return d.add(f),!1}})),typeof i=="string"?this.optimisticData=this.optimisticData.addLayer(i,u):i===!1?u(this.data):u(),typeof s=="string"&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&d.size?(this.broadcastWatches(K(K({},n),{onWatchUpdated:function(f,h){var m=c.call(this,f,h);return m!==!1&&d.delete(f),m}})),d.size&&d.forEach(function(f){return r.maybeBroadcastWatch.dirty(f)})):this.broadcastWatches(n),l},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||r!==null})},t.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},t.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(o){return r.maybeBroadcastWatch(o,n)})},t.prototype.addFragmentsToDocument=function(n){var r=this.config.fragments;return r?r.transform(n):n},t.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},t.prototype.broadcastWatch=function(n,r){var o=n.lastDiff,a=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(a.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,a,o)===!1)||(!o||!Rt(o.result,a.result))&&n.callback(n.lastDiff=a,o)},t}(MG);globalThis.__DEV__!==!1&&(XG.prototype.getMemoryInternals=Hpe);var dt;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(dt||(dt={}));function dg(e){return e?e<7:!1}var FR=Object.assign,Gge=Object.hasOwnProperty,V5=function(e){or(t,e);function t(n){var r=n.queryManager,o=n.queryInfo,a=n.options,i=e.call(this,function(b){try{var v=b._subscription._observer;v&&!v.error&&(v.error=Vge)}catch{}var g=!i.observers.size;i.observers.add(b);var w=i.last;return w&&w.error?b.error&&b.error(w.error):w&&w.result&&b.next&&b.next(w.result),g&&i.reobserve().catch(function(){}),function(){i.observers.delete(b)&&!i.observers.size&&i.tearDownQuery()}})||this;i.observers=new Set,i.subscriptions=new Set,i.queryInfo=o,i.queryManager=r,i.waitForOwnResult=KS(a.fetchPolicy),i.isTornDown=!1,i.subscribeToMore=i.subscribeToMore.bind(i);var s=r.defaultOptions.watchQuery,c=s===void 0?{}:s,l=c.fetchPolicy,u=l===void 0?"cache-first":l,d=a.fetchPolicy,f=d===void 0?u:d,h=a.initialFetchPolicy,m=h===void 0?f==="standby"?u:f:h;i.options=K(K({},a),{initialFetchPolicy:m,fetchPolicy:f}),i.queryId=o.queryId||r.generateQueryId();var p=sy(i.query);return i.queryName=p&&p.name&&p.name.value,i}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var n=this;return new Promise(function(r,o){var a={next:function(s){r(s),n.observers.delete(a),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){i.unsubscribe()},0)},error:o},i=n.subscribe(a)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(n){n===void 0&&(n=!0);var r=this.getLastResult(!0),o=this.queryInfo.networkStatus||r&&r.networkStatus||dt.ready,a=K(K({},r),{loading:dg(o),networkStatus:o}),i=this.options.fetchPolicy,s=i===void 0?"cache-first":i;if(!(KS(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(a.data=c.result),Rt(a.data,{})&&(a.data=void 0),c.complete?(delete a.partial,c.complete&&a.networkStatus===dt.loading&&(s==="cache-first"||s==="cache-only")&&(a.networkStatus=dt.ready,a.loading=!1)):a.partial=!0,globalThis.__DEV__!==!1&&!c.complete&&!this.options.partialRefetch&&!a.loading&&!a.data&&!a.error&&ZG(c.missing)}return n&&this.updateLastResult(a),a},t.prototype.isDifferentFromLastResult=function(n,r){if(!this.last)return!0;var o=this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!FG(this.query,this.last.result,n,this.variables):!Rt(this.last.result,n);return o||r&&!Rt(this.last.variables,r)},t.prototype.getLast=function(n,r){var o=this.last;if(o&&o[n]&&(!r||Rt(o.variables,this.variables)))return o[n]},t.prototype.getLastResult=function(n){return this.getLast("result",n)},t.prototype.getLastError=function(n){return this.getLast("error",n)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(n){var r,o={pollInterval:0},a=this.options.fetchPolicy;if(a==="cache-and-network"?o.fetchPolicy=a:a==="no-cache"?o.fetchPolicy="no-cache":o.fetchPolicy="network-only",globalThis.__DEV__!==!1&&n&&Gge.call(n,"variables")){var i=fG(this.query),s=i.variableDefinitions;(!s||!s.some(function(c){return c.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&Pe.warn(20,n,((r=i.name)===null||r===void 0?void 0:r.value)||i)}return n&&!Rt(this.options.variables,n)&&(o.variables=this.options.variables=K(K({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(o,dt.refetch)},t.prototype.fetchMore=function(n){var r=this,o=K(K({},n.query?n:K(K(K(K({},this.options),{query:this.options.query}),n),{variables:K(K({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"});o.query=this.transformDocument(o.query);var a=this.queryManager.generateQueryId();this.lastQuery=n.query?this.transformDocument(this.options.query):o.query;var i=this.queryInfo,s=i.networkStatus;i.networkStatus=dt.fetchMore,o.notifyOnNetworkStatusChange&&this.observe();var c=new Set;return this.queryManager.fetchQuery(a,o,dt.fetchMore).then(function(l){return r.queryManager.removeQuery(a),i.networkStatus===dt.fetchMore&&(i.networkStatus=s),r.queryManager.cache.batch({update:function(u){var d=n.updateQuery;d?u.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(f){return d(f,{fetchMoreResult:l.data,variables:o.variables})}):u.writeQuery({query:o.query,variables:o.variables,data:l.data})},onWatchUpdated:function(u){c.add(u.query)}}),l}).finally(function(){c.has(r.query)||JG(r)})},t.prototype.subscribeToMore=function(n){var r=this,o=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(a){var i=n.updateQuery;i&&r.updateQuery(function(s,c){var l=c.variables;return i(s,{subscriptionData:a,variables:l})})},error:function(a){if(n.onError){n.onError(a);return}globalThis.__DEV__!==!1&&Pe.error(21,a)}});return this.subscriptions.add(o),function(){r.subscriptions.delete(o)&&o.unsubscribe()}},t.prototype.setOptions=function(n){return this.reobserve(n)},t.prototype.silentSetOptions=function(n){var r=Qu(this.options,n||{});FR(this.options,r)},t.prototype.setVariables=function(n){return Rt(this.variables,n)?this.observers.size?this.result():Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},dt.setVariables):Promise.resolve())},t.prototype.updateQuery=function(n){var r=this.queryManager,o=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,a=n(o,{variables:this.variables});a&&(r.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(n,r){if(r.nextFetchPolicy){var o=r.fetchPolicy,a=o===void 0?"cache-first":o,i=r.initialFetchPolicy,s=i===void 0?a:i;a==="standby"||(typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(a,{reason:n,options:r,observable:this,initialFetchPolicy:s}):n==="variables-changed"?r.fetchPolicy=s:r.fetchPolicy=r.nextFetchPolicy)}return r.fetchPolicy},t.prototype.fetch=function(n,r,o){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,n,r,o)},t.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var r=this,o=r.pollingInfo,a=r.options.pollInterval;if(!a||!this.hasObservers()){o&&(clearTimeout(o.timeout),delete this.pollingInfo);return}if(!(o&&o.interval===a)){Pe(a,22);var i=o||(this.pollingInfo={});i.interval=a;var s=function(){var l,u;n.pollingInfo&&(!dg(n.queryInfo.networkStatus)&&!(!((u=(l=n.options).skipPollAttempt)===null||u===void 0)&&u.call(l))?n.reobserve({fetchPolicy:n.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},dt.poll).then(c,c):c())},c=function(){var l=n.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(s,l.interval))};c()}}},t.prototype.updateLastResult=function(n,r){r===void 0&&(r=this.variables);var o=this.getLastError();return o&&this.last&&!Rt(r,this.last.variables)&&(o=void 0),this.last=K({result:this.queryManager.assumeImmutableResults?n:IG(n),variables:r},o?{error:o}:null)},t.prototype.reobserveAsConcast=function(n,r){var o=this;this.isTornDown=!1;var a=r===dt.refetch||r===dt.fetchMore||r===dt.poll,i=this.options.variables,s=this.options.fetchPolicy,c=Qu(this.options,n||{}),l=a?c:FR(this.options,c),u=this.transformDocument(l.query);this.lastQuery=u,a||(this.updatePolling(),n&&n.variables&&!Rt(n.variables,i)&&l.fetchPolicy!=="standby"&&(l.fetchPolicy===s||typeof l.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",l),r===void 0&&(r=dt.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=KS(l.fetchPolicy));var d=function(){o.concast===m&&(o.waitForOwnResult=!1)},f=l.variables&&K({},l.variables),h=this.fetch(l,r,u),m=h.concast,p=h.fromLink,b={next:function(v){Rt(o.variables,f)&&(d(),o.reportResult(v,f))},error:function(v){Rt(o.variables,f)&&(d(),o.reportError(v,f))}};return!a&&(p||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=m,this.observer=b),m.addObserver(b),m},t.prototype.reobserve=function(n,r){return this.reobserveAsConcast(n,r).promise},t.prototype.resubscribeAfterError=function(){for(var n=[],r=0;r0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(n){return this.queryManager.transform(n)},t}(Gt);OG(V5);function JG(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(o,a){return this.nextFetchPolicy=r,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(o,a):n}}):e.reobserve()}function Vge(e){globalThis.__DEV__!==!1&&Pe.error(23,e.message,e.stack)}function ZG(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&Pe.debug(24,e)}function KS(e){return e==="network-only"||e==="no-cache"||e==="standby"}var Nf=new(dm?WeakMap:Map);function YS(e,t){var n=e[t];typeof n=="function"&&(e[t]=function(){return Nf.set(e,(Nf.get(e)+1)%1e15),n.apply(this,arguments)})}function MR(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var QS=function(){function e(t,n){n===void 0&&(n=t.generateQueryId()),this.queryId=n,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=t.cache;Nf.has(r)||(Nf.set(r,0),YS(r,"evict"),YS(r,"modify"),YS(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||dt.loading;return this.variables&&this.networkStatus!==dt.loading&&!Rt(this.variables,t.variables)&&(n=dt.setVariables),Rt(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){MR(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&Rt(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy==="no-cache")return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var n=this,r,o=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&(!((r=this.observableQuery)===null||r===void 0)&&r.getLastError())||(this.updateLastDiff(t),!this.dirty&&!Rt(o&&o.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0))))},e.prototype.setObservableQuery=function(t){var n=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){var r=n.getDiff();r.fromOptimisticTransaction?t.observe():JG(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;MR(this),this.shouldNotify()&&this.listeners.forEach(function(n){return n(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(dg(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if(t!=="cache-only"&&t!=="cache-and-network")return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(t){var n=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var o=K(K({},this.getDiffOptions(t)),{watcher:this,callback:function(a){return n.setDiff(a)}});(!this.lastWatch||!Rt(o,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=o))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===Nf.get(this.cache)&&Rt(n,r.variables)&&Rt(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,o){var a=this,i=new fl,s=xa(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&xa(t.incremental)){var c=RG(this.getDiff().result,t);t.data=c}else if("hasNext"in t&&t.hasNext){var l=this.getDiff();t.data=i.merge(l.result,t.data)}this.graphQLErrors=s,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):o!==0&&(K5(t,r.errorPolicy)?this.cache.performTransaction(function(u){if(a.shouldWrite(t,r.variables))u.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:o===1}),a.lastWrite={result:t,variables:r.variables,dmCount:Nf.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){t.data=a.lastDiff.diff.result;return}var d=a.getDiffOptions(r.variables),f=u.diff(d);!a.stopped&&Rt(a.variables,r.variables)&&a.updateWatch(r.variables),a.updateLastDiff(f,d),f.complete&&(t.data=f.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=dt.ready},e.prototype.markError=function(t){return this.networkStatus=dt.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function K5(e,t){t===void 0&&(t="none");var n=t==="ignore"||t==="all",r=!h1(e);return!r&&n&&e.data&&(r=!0),r}var Kge=Object.prototype.hasOwnProperty,LR=Object.create(null),Yge=function(){function e(t){var n=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Rj(Fi["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new um(!1);var r=new SG(function(a){return n.cache.transformDocument(a)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults;var o=t.documentTransform;this.documentTransform=o?r.concat(o).concat(r):r,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(ro(25))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return qa(this,arguments,void 0,function(n){var r,o,a,i,s,c,l,u=n.mutation,d=n.variables,f=n.optimisticResponse,h=n.updateQueries,m=n.refetchQueries,p=m===void 0?[]:m,b=n.awaitRefetchQueries,v=b===void 0?!1:b,g=n.update,w=n.onQueryUpdated,_=n.fetchPolicy,C=_===void 0?((c=this.defaultOptions.mutate)===null||c===void 0?void 0:c.fetchPolicy)||"network-only":_,x=n.errorPolicy,E=x===void 0?((l=this.defaultOptions.mutate)===null||l===void 0?void 0:l.errorPolicy)||"none":x,T=n.keepRootFields,k=n.context;return la(this,function(D){switch(D.label){case 0:return Pe(u,26),Pe(C==="network-only"||C==="no-cache",27),r=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),o=this.getDocumentInfo(u).hasClientExports,d=this.getVariables(u,d),o?[4,this.localState.addExportedVariables(u,d,k)]:[3,2];case 1:d=D.sent(),D.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[r]={mutation:u,variables:d,loading:!0,error:null}),i=f&&this.markMutationOptimistic(f,{mutationId:r,document:u,variables:d,fetchPolicy:C,errorPolicy:E,context:k,updateQueries:h,update:g,keepRootFields:T}),this.broadcastQueries(),s=this,[2,new Promise(function(R,F){return HS(s.getObservableFromLink(u,K(K({},k),{optimisticResponse:i?f:void 0}),d,{},!1),function(B){if(h1(B)&&E==="none")throw new _c({graphQLErrors:L5(B)});a&&(a.loading=!1,a.error=null);var j=K({},B);return typeof p=="function"&&(p=p(j)),E==="ignore"&&h1(j)&&delete j.errors,s.markMutationResult({mutationId:r,result:j,document:u,variables:d,fetchPolicy:C,errorPolicy:E,context:k,update:g,updateQueries:h,awaitRefetchQueries:v,refetchQueries:p,removeOptimistic:i?r:void 0,onQueryUpdated:w,keepRootFields:T})}).subscribe({next:function(B){s.broadcastQueries(),(!("hasNext"in B)||B.hasNext===!1)&&R(B)},error:function(B){a&&(a.loading=!1,a.error=B),i&&s.cache.removeOptimistic(r),s.broadcastQueries(),F(B instanceof _c?B:new _c({networkError:B}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;n===void 0&&(n=this.cache);var o=t.result,a=[],i=t.fetchPolicy==="no-cache";if(!i&&K5(o,t.errorPolicy)){if(Jf(o)||a.push({result:o.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),Jf(o)&&xa(o.incremental)){var s=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),c=void 0;s.result&&(c=RG(s.result,o)),typeof c<"u"&&(o.data=c,a.push({result:c,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var l=t.updateQueries;l&&this.queries.forEach(function(d,f){var h=d.observableQuery,m=h&&h.queryName;if(!(!m||!Kge.call(l,m))){var p=l[m],b=r.queries.get(f),v=b.document,g=b.variables,w=n.diff({query:v,variables:g,returnPartialData:!0,optimistic:!1}),_=w.result,C=w.complete;if(C&&_){var x=p(_,{mutationResult:o,queryName:v&&N5(v)||void 0,queryVariables:g});x&&a.push({result:x,dataId:"ROOT_QUERY",query:v,variables:g})}}})}if(a.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(d){i||a.forEach(function(p){return d.write(p)});var f=t.update,h=!q0e(o)||Jf(o)&&!o.hasNext;if(f){if(!i){var m=d.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});m.complete&&(o=K(K({},o),{data:m.result}),"incremental"in o&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}h&&f(d,o,{context:t.context,variables:t.variables})}!i&&!t.keepRootFields&&h&&d.modify({id:"ROOT_MUTATION",fields:function(p,b){var v=b.fieldName,g=b.DELETE;return v==="__typename"?p:g}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(d){return u.push(d)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(u).then(function(){return o})}return Promise.resolve(o)},e.prototype.markMutationOptimistic=function(t,n){var r=this,o=typeof t=="function"?t(n.variables,{IGNORE:LR}):t;return o===LR?!1:(this.cache.recordOptimisticTransaction(function(a){try{r.markMutationResult(K(K({},n),{result:{data:o}}),a)}catch(i){globalThis.__DEV__!==!1&&Pe.error(i)}},n.mutationId),!0)},e.prototype.fetchQuery=function(t,n,r){return this.fetchConcastWithInfo(t,n,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var r={hasClientExports:xpe(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:ig(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:AG([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:Bj(sy(t)),asQuery:K(K({},t),{definitions:t.definitions.map(function(o){return o.kind==="OperationDefinition"&&o.operation!=="query"?K(K({},o),{operation:"query"}):o})})};n.set(t,r)}return n.get(t)},e.prototype.getVariables=function(t,n){return K(K({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);t=K(K({},t),{variables:this.getVariables(n,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new QS(this),o=new V5({queryManager:this,queryInfo:r,options:t});return o.lastQuery=n,this.queries.set(o.queryId,r),r.init({document:n,observableQuery:o,variables:o.variables}),o},e.prototype.query=function(t,n){var r=this;return n===void 0&&(n=this.generateQueryId()),Pe(t.query,28),Pe(t.query.kind==="Document",29),Pe(!t.returnPartialData,30),Pe(!t.pollInterval,31),this.fetchQuery(n,K(K({},t),{query:this.transform(t.query)})).finally(function(){return r.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(ro(32)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=dt.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;t===void 0&&(t="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(t)&&t.forEach(function(i){typeof i=="string"?o.set(i,!1):Xpe(i)?o.set(n.transform(i),!1):yn(i)&&i.query&&a.add(i)}),this.queries.forEach(function(i,s){var c=i.observableQuery,l=i.document;if(c){if(t==="all"){r.set(s,c);return}var u=c.queryName,d=c.options.fetchPolicy;if(d==="standby"||t==="active"&&!c.hasObservers())return;(t==="active"||u&&o.has(u)||l&&o.has(l))&&(r.set(s,c),u&&o.set(u,!0),l&&o.set(l,!0))}}),a.size&&a.forEach(function(i){var s=T5("legacyOneTimeQuery"),c=n.getQuery(s).init({document:i.query,variables:i.variables}),l=new V5({queryManager:n,queryInfo:c,options:K(K({},i),{fetchPolicy:"network-only"})});Pe(l.queryId===s),c.setObservableQuery(l),r.set(s,l)}),globalThis.__DEV__!==!1&&o.size&&o.forEach(function(i,s){i||globalThis.__DEV__!==!1&&Pe.warn(typeof s=="string"?33:34,s)}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(o,a){var i=o.options.fetchPolicy;o.resetLastResults(),(t||i!=="standby"&&i!=="cache-only")&&r.push(o.refetch()),n.getQuery(a).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,o=t.fetchPolicy,a=t.errorPolicy,i=a===void 0?"none":a,s=t.variables,c=t.context,l=c===void 0?{}:c,u=t.extensions,d=u===void 0?{}:u;r=this.transform(r),s=this.getVariables(r,s);var f=function(m){return n.getObservableFromLink(r,l,m,d).map(function(p){o!=="no-cache"&&(K5(p,i)&&n.cache.write({query:r,result:p.data,dataId:"ROOT_SUBSCRIPTION",variables:m}),n.broadcastQueries());var b=h1(p),v=ige(p);if(b||v){var g={};if(b&&(g.graphQLErrors=p.errors),v&&(g.protocolErrors=p.extensions[Gj]),i==="none"||v)throw new _c(g)}return i==="ignore"&&delete p.errors,p})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,s,l).then(f);return new Gt(function(m){var p=null;return h.then(function(b){return p=b.subscribe(m)},m.error),function(){return p&&p.unsubscribe()}})}return f(s)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,o,a){var i=this,s;a===void 0&&(a=(s=n==null?void 0:n.queryDeduplication)!==null&&s!==void 0?s:this.queryDeduplication);var c,l=this.getDocumentInfo(t),u=l.serverQuery,d=l.clientQuery;if(u){var f=this,h=f.inFlightLinkObservables,m=f.link,p={query:u,variables:r,operationName:N5(u)||void 0,context:this.prepareContext(K(K({},n),{forceFetch:!a})),extensions:o};if(n=p.context,a){var b=Mx(u),v=Vc(r),g=h.lookup(b,v);if(c=g.observable,!c){var w=new lf([U5(m,p)]);c=g.observable=w,w.beforeNext(function(){h.remove(b,v)})}}else c=new lf([U5(m,p)])}else c=new lf([Gt.of({data:{}})]),n=this.prepareContext(n);return d&&(c=HS(c,function(_){return i.localState.runResolvers({document:d,remoteResult:_,context:n,variables:r})})),c},e.prototype.getResultsFromLink=function(t,n,r){var o=t.lastRequestId=this.generateRequestId(),a=this.cache.transformForLink(r.query);return HS(this.getObservableFromLink(a,r.context,r.variables),function(i){var s=L5(i),c=s.length>0;if(o>=t.lastRequestId){if(c&&r.errorPolicy==="none")throw t.markError(new _c({graphQLErrors:s}));t.markResult(i,a,r,n),t.markReady()}var l={data:i.data,loading:!1,networkStatus:dt.ready};return c&&r.errorPolicy!=="ignore"&&(l.errors=s,l.networkStatus=dt.error),l},function(i){var s=sge(i)?i:new _c({networkError:i});throw o>=t.lastRequestId&&t.markError(s),s})},e.prototype.fetchConcastWithInfo=function(t,n,r,o){var a=this;r===void 0&&(r=dt.loading),o===void 0&&(o=n.query);var i=this.getVariables(o,n.variables),s=this.getQuery(t),c=this.defaultOptions.watchQuery,l=n.fetchPolicy,u=l===void 0?c&&c.fetchPolicy||"cache-first":l,d=n.errorPolicy,f=d===void 0?c&&c.errorPolicy||"none":d,h=n.returnPartialData,m=h===void 0?!1:h,p=n.notifyOnNetworkStatusChange,b=p===void 0?!1:p,v=n.context,g=v===void 0?{}:v,w=Object.assign({},n,{query:o,variables:i,fetchPolicy:u,errorPolicy:f,returnPartialData:m,notifyOnNetworkStatusChange:b,context:g}),_=function(k){w.variables=k;var D=a.fetchQueryByPolicy(s,w,r);return w.fetchPolicy!=="standby"&&D.sources.length>0&&s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",n),D},C=function(){return a.fetchCancelFns.delete(t)};this.fetchCancelFns.set(t,function(k){C(),setTimeout(function(){return x.cancel(k)})});var x,E;if(this.getDocumentInfo(w.query).hasClientExports)x=new lf(this.localState.addExportedVariables(w.query,w.variables,w.context).then(_).then(function(k){return k.sources})),E=!0;else{var T=_(w.variables);E=T.fromLink,x=new lf(T.sources)}return x.promise.then(C,C),{concast:x,fromLink:E}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,o=t.include,a=t.optimistic,i=a===void 0?!1:a,s=t.removeOptimistic,c=s===void 0?i?T5("refetchQueries"):void 0:s,l=t.onQueryUpdated,u=new Map;o&&this.getObservableQueries(o).forEach(function(f,h){u.set(h,{oq:f,lastDiff:n.getQuery(h).getDiff()})});var d=new Map;return r&&this.cache.batch({update:r,optimistic:i&&c||!1,removeOptimistic:c,onWatchUpdated:function(f,h,m){var p=f.watcher instanceof QS&&f.watcher.observableQuery;if(p){if(l){u.delete(p.queryId);var b=l(p,h,m);return b===!0&&(b=p.refetch()),b!==!1&&d.set(p,b),b}l!==null&&u.set(p.queryId,{oq:p,lastDiff:m,diff:h})}}}),u.size&&u.forEach(function(f,h){var m=f.oq,p=f.lastDiff,b=f.diff,v;if(l){if(!b){var g=m.queryInfo;g.reset(),b=g.getDiff()}v=l(m,b,p)}(!l||v===!0)&&(v=m.refetch()),v!==!1&&d.set(m,v),h.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(h)}),c&&this.cache.removeOptimistic(c),d},e.prototype.fetchQueryByPolicy=function(t,n,r){var o=this,a=n.query,i=n.variables,s=n.fetchPolicy,c=n.refetchWritePolicy,l=n.errorPolicy,u=n.returnPartialData,d=n.context,f=n.notifyOnNetworkStatusChange,h=t.networkStatus;t.init({document:a,variables:i,networkStatus:r});var m=function(){return t.getDiff()},p=function(_,C){C===void 0&&(C=t.networkStatus||dt.loading);var x=_.result;globalThis.__DEV__!==!1&&!u&&!Rt(x,{})&&ZG(_.missing);var E=function(T){return Gt.of(K({data:T,loading:dg(C),networkStatus:C},_.complete?null:{partial:!0}))};return x&&o.getDocumentInfo(a).hasForcedResolvers?o.localState.runResolvers({document:a,remoteResult:{data:x},context:d,variables:i,onlyRunForcedResolvers:!0}).then(function(T){return E(T.data||void 0)}):l==="none"&&C===dt.refetch&&Array.isArray(_.missing)?E(void 0):E(x)},b=s==="no-cache"?0:r===dt.refetch&&c!=="merge"?1:2,v=function(){return o.getResultsFromLink(t,b,{query:a,variables:i,context:d,fetchPolicy:s,errorPolicy:l})},g=f&&typeof h=="number"&&h!==r&&dg(r);switch(s){default:case"cache-first":{var w=m();return w.complete?{fromLink:!1,sources:[p(w,t.markReady())]}:u||g?{fromLink:!0,sources:[p(w),v()]}:{fromLink:!0,sources:[v()]}}case"cache-and-network":{var w=m();return w.complete||u||g?{fromLink:!0,sources:[p(w),v()]}:{fromLink:!0,sources:[v()]}}case"cache-only":return{fromLink:!1,sources:[p(m(),t.markReady())]};case"network-only":return g?{fromLink:!0,sources:[p(m()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return g?{fromLink:!0,sources:[p(t.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new QS(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var n=this.localState.prepareContext(t);return K(K(K({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},e}(),Qge=function(){function e(t){var n=t.cache,r=t.client,o=t.resolvers,a=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),o&&this.addResolvers(o),a&&this.setFragmentMatcher(a)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=iR(n.resolvers,r)}):this.resolvers=iR(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return qa(this,arguments,void 0,function(n){var r=n.document,o=n.remoteResult,a=n.context,i=n.variables,s=n.onlyRunForcedResolvers,c=s===void 0?!1:s;return la(this,function(l){return r?[2,this.resolveDocument(r,o.data,a,i,this.fragmentMatcher,c).then(function(u){return K(K({},o),{data:u.result})})]:[2,o]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return ig(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return DG(t)},e.prototype.prepareContext=function(t){var n=this.cache;return K(K({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t){return qa(this,arguments,void 0,function(n,r,o){return r===void 0&&(r={}),o===void 0&&(o={}),la(this,function(a){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,r)||{},this.prepareContext(o),r).then(function(i){return K(K({},r),i.exportedVariables)})]:[2,K({},r)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return Ts(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(n=r.arguments.some(function(o){return o.name.value==="always"&&o.value.kind==="BooleanValue"&&o.value.value===!0}),n))return Ij}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:k0e(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n){return qa(this,arguments,void 0,function(r,o,a,i,s,c){var l,u,d,f,h,m,p,b,v,g,w;return a===void 0&&(a={}),i===void 0&&(i={}),s===void 0&&(s=function(){return!0}),c===void 0&&(c=!1),la(this,function(_){return l=cy(r),u=Nx(r),d=Ix(u),f=this.collectSelectionsToResolve(l,d),h=l.operation,m=h?h.charAt(0).toUpperCase()+h.slice(1):"Query",p=this,b=p.cache,v=p.client,g={fragmentMap:d,context:K(K({},a),{cache:b,client:v}),variables:i,fragmentMatcher:s,defaultOperationType:m,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:c},w=!1,[2,this.resolveSelectionSet(l.selectionSet,w,o,g).then(function(C){return{result:C,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,o){return qa(this,void 0,void 0,function(){var a,i,s,c,l,u=this;return la(this,function(d){return a=o.fragmentMap,i=o.context,s=o.variables,c=[r],l=function(f){return qa(u,void 0,void 0,function(){var h,m;return la(this,function(p){return!n&&!o.selectionsToResolve.has(f)?[2]:ay(f,s)?ul(f)?[2,this.resolveField(f,n,r,o).then(function(b){var v;typeof b<"u"&&c.push((v={},v[ll(f)]=b,v))})]:(l0e(f)?h=f:(h=a[f.name.value],Pe(h,18,f.name.value)),h&&h.typeCondition&&(m=h.typeCondition.name.value,o.fragmentMatcher(r,m,i))?[2,this.resolveSelectionSet(h.selectionSet,n,r,o).then(function(b){c.push(b)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(l)).then(function(){return Lx(c)})]})})},e.prototype.resolveField=function(t,n,r,o){return qa(this,void 0,void 0,function(){var a,i,s,c,l,u,d,f,h,m=this;return la(this,function(p){return r?(a=o.variables,i=t.name.value,s=ll(t),c=i!==s,l=r[s]||r[i],u=Promise.resolve(l),(!o.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(d=r.__typename||o.defaultOperationType,f=this.resolvers&&this.resolvers[d],f&&(h=f[c?i:s],h&&(u=Promise.resolve(Vj.withValue(this.cache,h,[r,Rx(t,a),o.context,{field:t,fragmentMap:o.fragmentMap}]))))),[2,u.then(function(b){var v,g;if(b===void 0&&(b=l),t.directives&&t.directives.forEach(function(_){_.name.value==="export"&&_.arguments&&_.arguments.forEach(function(C){C.name.value==="as"&&C.value.kind==="StringValue"&&(o.exportedVariables[C.value.value]=b)})}),!t.selectionSet||b==null)return b;var w=(g=(v=t.directives)===null||v===void 0?void 0:v.some(function(_){return _.name.value==="client"}))!==null&&g!==void 0?g:!1;if(Array.isArray(b))return m.resolveSubSelectedArray(t,n||w,b,o);if(t.selectionSet)return m.resolveSelectionSet(t.selectionSet,n||w,b,o)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,o){var a=this;return Promise.all(r.map(function(i){if(i===null)return null;if(Array.isArray(i))return a.resolveSubSelectedArray(t,n,i,o);if(t.selectionSet)return a.resolveSelectionSet(t.selectionSet,n,i,o)}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(i){return!Array.isArray(i)},o=this.selectionsToResolveCache;function a(i){if(!o.has(i)){var s=new Set;o.set(i,s),Ts(i,{Directive:function(c,l,u,d,f){c.name.value==="client"&&f.forEach(function(h){r(h)&&QO(h)&&s.add(h)})},FragmentSpread:function(c,l,u,d,f){var h=n[c.name.value];Pe(h,19,c.name.value);var m=a(h);m.size>0&&(f.forEach(function(p){r(p)&&QO(p)&&s.add(p)}),s.add(c),m.forEach(function(p){s.add(p)}))}})}return o.get(i)}return a(t)},e}(),UR=!1,eV=function(){function e(t){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw ro(15);var r=t.uri,o=t.credentials,a=t.headers,i=t.cache,s=t.documentTransform,c=t.ssrMode,l=c===void 0?!1:c,u=t.ssrForceFetchDelay,d=u===void 0?0:u,f=t.connectToDevTools,h=t.queryDeduplication,m=h===void 0?!0:h,p=t.defaultOptions,b=t.defaultContext,v=t.assumeImmutableResults,g=v===void 0?i.assumeImmutableResults:v,w=t.resolvers,_=t.typeDefs,C=t.fragmentMatcher,x=t.name,E=t.version,T=t.devtools,k=t.link;k||(k=r?new Cge({uri:r,credentials:o,headers:a}):ly.empty()),this.link=k,this.cache=i,this.disableNetworkFetches=l||d>0,this.queryDeduplication=m,this.defaultOptions=p||Object.create(null),this.typeDefs=_,this.devtoolsConfig=K(K({},T),{enabled:(T==null?void 0:T.enabled)||f}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),d&&setTimeout(function(){return n.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Aj,this.localState=new Qge({cache:i,client:this,resolvers:w,fragmentMatcher:C}),this.queryManager=new Yge({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:b,documentTransform:s,queryDeduplication:m,ssrMode:l,clientAwareness:{name:x,version:E},localState:this.localState,assumeImmutableResults:g,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this,!UR&&globalThis.__DEV__!==!1&&(UR=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,o=r&&r.userAgent,a=void 0;typeof o=="string"&&(o.indexOf("Chrome/")>-1?a="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":o.indexOf("Firefox/")>-1&&(a="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),a&&globalThis.__DEV__!==!1&&Pe.log("Download the Apollo DevTools for a better development experience: %s",a)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=m1(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=K(K({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=m1(this.defaultOptions.query,t)),Pe(t.fetchPolicy!=="cache-and-network",16),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=K(K({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=m1(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!1),this.cache.readQuery(t,n)},e.prototype.watchFragment=function(t){return this.cache.watchFragment(t)},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return U5(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],o=[];n.forEach(function(i,s){r.push(s),o.push(i)});var a=Promise.all(o);return a.queries=r,a.results=o,a.catch(function(i){globalThis.__DEV__!==!1&&Pe.debug(17,i)}),a},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();globalThis.__DEV__!==!1&&(eV.prototype.getMemoryInternals=zpe);var y1=new Map,Y5=new Map,tV=!0,Ow=!1;function nV(e){return e.replace(/[\s,]+/g," ").trim()}function Xge(e){return nV(e.source.body.substring(e.start,e.end))}function Jge(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var o=r.name.value,a=Xge(r.loc),i=Y5.get(o);i&&!i.has(a)?tV&&console.warn("Warning: fragment with name "+o+` already exists. -graphql-tag enforces all fragment names across your application to be unique; read more about -this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):i||Y5.set(o,i=new Set),i.add(a),t.has(a)||(t.add(a),n.push(r))}else n.push(r)}),K(K({},e),{definitions:n})}function Zge(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(o){var a=r[o];a&&typeof a=="object"&&t.add(a)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function eye(e){var t=nV(e);if(!y1.has(t)){var n=hpe(e,{experimentalFragmentVariables:Ow,allowLegacyFragmentVariables:Ow});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");y1.set(t,Zge(Jge(n)))}return y1.get(t)}function br(e){for(var t=[],n=1;n{var d;return u.symbol===((d=t.sourceToken)==null?void 0:d.symbol)}))==null?void 0:s.cross.find(u=>{var d,f;return u.bridge.category===t.category&&u.target.network===((d=t.targetChain)==null?void 0:d.network)&&u.target.symbol===((f=t.targetToken)==null?void 0:f.symbol)}),this.sourceChain=t.sourceChain,this.targetChain=t.targetChain,this.sourceToken=t.sourceToken,this.targetToken=t.targetToken,this.sourceNativeToken=(c=t.sourceChain)==null?void 0:c.tokens.find(({type:u})=>u==="native"),this.targetNativeToken=(l=t.targetChain)==null?void 0:l.tokens.find(({type:u})=>u==="native"),this.walletClient=t.walletClient,this.publicClient=t.publicClient,t.sourceChain&&t.targetChain&&(this.sourcePublicClient=Vu({chain:t.sourceChain,transport:yh()}),this.targetPublicClient=Vu({chain:t.targetChain,transport:yh()}));const n=jt.HelixChain.chains().find(u=>{var d;return u.code===((d=t.sourceChain)==null?void 0:d.network)}),r=n==null?void 0:n.couples.find(u=>{var d,f,h;return u.chain.code===((d=t.targetChain)==null?void 0:d.network)&&u.symbol.from===((f=t.sourceToken)==null?void 0:f.symbol)&&u.symbol.to===((h=t.targetToken)==null?void 0:h.symbol)&&u.protocol.name===t.protocol}),o=n!=null&&n.protocol&&(r!=null&&r.protocol)?n.protocol[r.protocol.name]:void 0,a=r==null?void 0:r.protocol.address;o&&a&&(this.contract={sourceAddress:o,targetAddress:a})}async getSigner(){if(this.walletClient)return(await this.walletClient.getAddresses()).at(0)}async validateNetwork(t){var r;const n=t==="source"?this.sourceChain:this.targetChain;if((n==null?void 0:n.id)!==await((r=this.publicClient)==null?void 0:r.getChainId()))throw new Error("Wrong network")}isLnBridge(){return!1}getLogo(){return this.logo}getName(){return this.name}getCategory(){return this.category}getContract(){return this.contract}getSourceToken(){return this.sourceToken}getTargetToken(){return this.targetToken}getSourceChain(){return this.sourceChain}getTargetChain(){return this.targetChain}getCrossInfo(){return this.crossInfo}getEstimateTime(){return this.estimateTime}formatEstimateTime(){return`${this.estimateTime.min}~${this.estimateTime.max} Minutes`}getTxGasLimit(){var t,n;return((t=this.sourceChain)==null?void 0:t.network)==="arbitrum"||((n=this.sourceChain)==null?void 0:n.network)==="arbitrum-sepolia"?3000000n:void 0}async getFee(t){}async getDailyLimit(){}async getSourceBalance(t){if(this.sourceToken&&this.sourcePublicClient)return UO(t,this.sourceToken,this.sourcePublicClient)}async getTargetBalance(t){if(this.targetToken&&this.targetPublicClient)return UO(t,this.targetToken,this.targetPublicClient)}async getAllowance(t,n,r,o){if(r.type==="erc20")return{value:await o.readContract({address:r.address,abi:(await me(async()=>{const{default:i}=await Promise.resolve().then(()=>aD);return{default:i}},void 0,import.meta.url)).default,functionName:"allowance",args:[t,n]}),token:r}}async getSourceAllowance(t){if(this.contract&&this.sourceToken&&this.sourcePublicClient)return this.getAllowance(t,this.contract.sourceAddress,this.sourceToken,this.sourcePublicClient)}async getTargetAllowance(t){if(this.contract&&this.targetToken&&this.targetPublicClient)return this.getAllowance(t,this.contract.targetAddress,this.targetToken,this.targetPublicClient)}async approve(t,n,r,o){if(this.publicClient&&this.walletClient){const{request:a}=await this.publicClient.simulateContract({address:o.address,abi:(await me(async()=>{const{default:s}=await Promise.resolve().then(()=>aD);return{default:s}},void 0,import.meta.url)).default,functionName:"approve",args:[r,t],account:n}),i=await this.walletClient.writeContract(a);return this.publicClient.waitForTransactionReceipt({hash:i,confirmations:mo})}}async sourceApprove(t,n){if(await this.validateNetwork("source"),this.sourceToken&&this.contract)return this.approve(t,n,this.contract.sourceAddress,this.sourceToken)}async targetApprove(t,n){if(await this.validateNetwork("target"),this.targetToken&&this.contract)return this.approve(t,n,this.contract.targetAddress,this.targetToken)}async transfer(t,n,r,o){return await this.validateNetwork("source"),this._transfer(t,n,r,o)}async estimateTransferGas(t,n,r,o){return this._transfer(t,n,r,{...o,askEstimateGas:!0})}async estimateTransferGasFee(t,n,r,o){const a=await this.estimateTransferGas(t,n,r,o);if(a&&this.sourcePublicClient){const{maxFeePerGas:i}=await this.sourcePublicClient.estimateFeesPerGas();return i?i*a:void 0}}}class Jj extends Nye{constructor(t){super(t),this.logo={horizontal:"helix-horizontal.svg",symbol:"helix-symbol.svg"},this.name="Helix LnBridge(v2)",this.estimateTime={min:1,max:2}}isLnBridge(){return!0}async getFee(t){if(t!=null&&t.relayer&&this.contract&&this.targetChain&&this.sourceToken&&this.targetToken&&this.sourcePublicClient)return{value:await this.sourcePublicClient.readContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnv2-default-CgNLmNLm.js");return{default:r}},[],import.meta.url)).default,functionName:"totalFee",args:[BigInt(this.targetChain.id),t.relayer,this.sourceToken.address,this.targetToken.address,t.transferAmount??0n]}),token:this.sourceToken}}async _getLayerzeroFee(t,n,r){const[o]=await r.readContract({address:t,abi:(await me(async()=>{const{default:a}=await import("./lnaccess-controller-KB4pI6ch.js");return{default:a}},[],import.meta.url)).default,functionName:"fee",args:[BigInt(n.id),qu(Uint8Array.from([123]),{size:750})]});return o}async _getMsglineFeeAndParams(t,n,r,o,a,i,s,c){var f,h,m,p;const l=(h=(f=jt.HelixChain.chains().find(b=>b.id.toString()===r.id.toString()))==null?void 0:f.messager("msgline"))==null?void 0:h.address,u=(p=(m=jt.HelixChain.chains().find(b=>b.id.toString()===r.id.toString()))==null?void 0:m.couples.find(b=>b.chain.code===o.network&&b.symbol.from===(s==null?void 0:s.symbol)&&b.symbol.to===(c==null?void 0:c.symbol)&&b.protocol.name===this.protocol))==null?void 0:p.messager,d=(u==null?void 0:u.name)==="msgline"?u.address:void 0;if(n&&l&&d&&a&&i){const b=oi({abi:(await me(async()=>{const{default:v}=await import("./msgline-messager-BAOluMJI.js");return{default:v}},[],import.meta.url)).default,functionName:"receiveMessage",args:[BigInt(r.id),a,i,t]});return Kye(r.id,o.id,l,d,n,b)}}async _getLayerzeroWithdrawFee(){if(this.contract&&this.targetChain&&this.sourceNativeToken&&this.sourcePublicClient){const[t]=await this.sourcePublicClient.readContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnv2-default-CgNLmNLm.js");return{default:r}},[],import.meta.url)).default,functionName:"messagers",args:[BigInt(this.targetChain.id)]}),n=await this._getLayerzeroFee(t,this.targetChain,this.sourcePublicClient);return typeof n=="bigint"?{value:n,token:this.sourceNativeToken,params:void 0}:void 0}}async _getMsglineWithdrawFeeAndParams(t){if(this.sourceChain&&this.targetChain&&this.sourceToken&&this.targetToken&&this.contract&&this.sourceNativeToken&&t.transferId&&t.withdrawNonce&&t.relayer&&t.sender){const n=oi({abi:(await me(async()=>{const{default:o}=await import("./lnv2-default-CgNLmNLm.js");return{default:o}},[],import.meta.url)).default,functionName:"withdraw",args:[BigInt(this.sourceChain.id),t.transferId,BigInt(t.withdrawNonce),t.relayer,this.sourceToken.address,this.targetToken.address,t.amount]}),r=await this._getMsglineFeeAndParams(n,t.sender,this.sourceChain,this.targetChain,this.contract.sourceAddress,this.contract.targetAddress,this.sourceToken,this.targetToken);return r?{value:r.fee,token:this.sourceNativeToken,params:r.extParams}:void 0}}async getWithdrawFeeParams(t){if(t.messageChannel==="layerzero")return this._getLayerzeroWithdrawFee();if(t.messageChannel==="msgline")return this._getMsglineWithdrawFeeAndParams(t)}async _transfer(t,n,r,o){}}class dV extends Jj{constructor(t){super(t)}async _transfer(t,n,r,o){const a=await this.getSigner(),i=o==null?void 0:o.relayer,s=o==null?void 0:o.transferId;if(a&&i&&s&&this.contract&&this.sourcePublicClient&&this.targetChain&&this.sourceToken&&this.targetToken){const c=(o==null?void 0:o.askEstimateGas)??!1,l=(o==null?void 0:o.totalFee)??0n,u={remoteChainId:BigInt(this.targetChain.id),provider:i,sourceToken:this.sourceToken.address,targetToken:this.targetToken.address,transferId:s,totalFee:l,withdrawNonce:(o==null?void 0:o.withdrawNonce)||0n},d={address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:f}=await import("./lnv2-default-CgNLmNLm.js");return{default:f}},[],import.meta.url)).default,functionName:"transferAndLockMargin",args:[u,r,n],value:this.sourceToken.type==="native"?r+l:void 0,gas:this.getTxGasLimit(),account:a};if(c)return this.sourcePublicClient.estimateContractGas(d);if(this.walletClient){const f=await this.walletClient.writeContract(d);return this.sourcePublicClient.waitForTransactionReceipt({hash:f,confirmations:mo})}}}async depositMargin(t){if(await this.validateNetwork("target"),this.contract&&this.sourceChain&&this.sourceToken&&this.targetToken&&this.publicClient&&this.walletClient){const n=await this.walletClient.writeContract({address:this.contract.targetAddress,abi:(await me(async()=>{const{default:r}=await import("./lnv2-default-CgNLmNLm.js");return{default:r}},[],import.meta.url)).default,functionName:"depositProviderMargin",args:[BigInt(this.sourceChain.id),this.sourceToken.address,this.targetToken.address,t],value:this.targetToken.type==="native"?t:void 0,gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:n,confirmations:mo})}}async setFeeAndRate(t,n){if(await this.validateNetwork("source"),this.contract&&this.targetChain&&this.sourceToken&&this.targetToken&&this.publicClient&&this.walletClient){const r=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:o}=await import("./lnv2-default-CgNLmNLm.js");return{default:o}},[],import.meta.url)).default,functionName:"setProviderFee",args:[BigInt(this.targetChain.id),this.sourceToken.address,this.targetToken.address,t,n],gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:r,confirmations:mo})}}async withdrawMargin(t,n,r){if(await this.validateNetwork("source"),this.contract&&this.sourceToken&&this.targetToken&&this.targetChain&&this.publicClient&&this.walletClient){const o=BigInt(this.targetChain.id),a=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:i}=await import("./lnv2-default-CgNLmNLm.js");return{default:i}},[],import.meta.url)).default,functionName:"requestWithdrawMargin",args:[o,this.sourceToken.address,this.targetToken.address,n,t],gas:this.getTxGasLimit(),value:r});return this.publicClient.waitForTransactionReceipt({hash:a,confirmations:mo})}}}class fV extends Jj{constructor(t){super(t)}async _transfer(t,n,r,o){const a=await this.getSigner(),i=o==null?void 0:o.relayer,s=o==null?void 0:o.transferId;if(a&&i&&s&&this.contract&&this.sourcePublicClient&&this.sourceToken&&this.targetToken&&this.targetChain){const c=(o==null?void 0:o.askEstimateGas)??!1,l=(o==null?void 0:o.totalFee)??0n,u={remoteChainId:BigInt(this.targetChain.id),provider:i,sourceToken:this.sourceToken.address,targetToken:this.targetToken.address,transferId:s,totalFee:l,depositedMargin:(o==null?void 0:o.depositedMargin)||0n},d={address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:f}=await import("./lnv2-opposite-B8_jUw7k.js");return{default:f}},[],import.meta.url)).default,functionName:"transferAndLockMargin",args:[u,r,n],value:this.sourceToken.type==="native"?r+l:void 0,gas:this.getTxGasLimit(),account:a};if(c)return this.sourcePublicClient.estimateContractGas(d);if(this.walletClient){const f=await this.walletClient.writeContract(d);return this.sourcePublicClient.waitForTransactionReceipt({hash:f,confirmations:mo})}}}async updateFeeAndMargin(t,n,r){if(await this.validateNetwork("source"),this.contract&&this.targetChain&&this.sourceToken&&this.targetToken&&this.publicClient&&this.walletClient){const o=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:a}=await import("./lnv2-opposite-B8_jUw7k.js");return{default:a}},[],import.meta.url)).default,functionName:"updateProviderFeeAndMargin",args:[BigInt(this.targetChain.id),this.sourceToken.address,this.targetToken.address,t,n,r],value:this.sourceToken.type==="native"?t:void 0,gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:o,confirmations:mo})}}}class Zj extends Jj{constructor(t){super(t),this.name="Helix LnBridge(v3)"}async _transfer(t,n,r,o){const a=await this.getSigner(),i=o==null?void 0:o.relayer;if(a&&i&&this.contract&&this.sourcePublicClient&&this.targetChain&&this.sourceToken&&this.targetToken){const s=(o==null?void 0:o.askEstimateGas)??!1,c=(o==null?void 0:o.totalFee)??0n,l={address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:u}=await import("./lnbridge-v3-lhSDcqzS.js");return{default:u}},[],import.meta.url)).default,functionName:"lockAndRemoteRelease",args:[{remoteChainId:BigInt(this.targetChain.id),provider:i,sourceToken:this.sourceToken.address,targetToken:this.targetToken.address,totalFee:c,amount:r,receiver:n,timestamp:BigInt(Math.floor(Date.now()/1e3))}],value:this.sourceToken.type==="native"?r+c:void 0,gas:this.getTxGasLimit(),account:a};if(s)return this.sourcePublicClient.estimateContractGas(l);if(this.walletClient){const u=await this.walletClient.writeContract(l);return this.sourcePublicClient.waitForTransactionReceipt({hash:u,confirmations:mo})}}}async getFee(t){const n=t==null?void 0:t.relayer;if(n&&this.sourcePublicClient&&this.contract&&this.targetChain&&this.sourceToken&&this.targetToken)return{value:await this.sourcePublicClient.readContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnbridge-v3-lhSDcqzS.js");return{default:r}},[],import.meta.url)).default,functionName:"totalFee",args:[BigInt(this.targetChain.id),n,this.sourceToken.address,this.targetToken.address,t.transferAmount??0n]}),token:this.sourceToken}}async getPenaltyReserves(t){if(t&&this.contract&&this.sourceToken&&this.sourcePublicClient)return{value:await this.sourcePublicClient.readContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnbridge-v3-lhSDcqzS.js");return{default:r}},[],import.meta.url)).default,functionName:"penaltyReserves",args:[Or(jde(["address","address"],[this.sourceToken.address,t]))]}),token:this.sourceToken}}async registerLnProvider(t,n,r){if(await this.validateNetwork("source"),this.contract&&this.publicClient&&this.walletClient&&this.targetChain&&this.sourceToken&&this.targetToken){const o=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:a}=await import("./lnbridge-v3-lhSDcqzS.js");return{default:a}},[],import.meta.url)).default,functionName:"registerLnProvider",args:[BigInt(this.targetChain.id),this.sourceToken.address,this.targetToken.address,t,n,r],gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:o,confirmations:mo})}}async depositPenaltyReserve(t){if(await this.validateNetwork("source"),this.contract&&this.publicClient&&this.walletClient&&this.sourceToken){const n=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnbridge-v3-lhSDcqzS.js");return{default:r}},[],import.meta.url)).default,functionName:"depositPenaltyReserve",args:[this.sourceToken.address,t],value:this.sourceToken.type==="native"?t:void 0,gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:n,confirmations:mo})}}async withdrawPenaltyReserve(t){if(await this.validateNetwork("source"),this.contract&&this.sourceToken&&this.publicClient&&this.walletClient){const n=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnbridge-v3-lhSDcqzS.js");return{default:r}},[],import.meta.url)).default,functionName:"withdrawPenaltyReserve",args:[this.sourceToken.address,t]});return this.publicClient.waitForTransactionReceipt({hash:n,confirmations:mo})}}async getWithdrawLiquidityFeeAndParams(t,n,r){if(r==="layerzero"){if(this.contract&&this.sourceChain&&this.targetNativeToken&&this.targetPublicClient){const[o]=await this.targetPublicClient.readContract({address:this.contract.targetAddress,abi:(await me(async()=>{const{default:i}=await import("./lnbridge-v3-lhSDcqzS.js");return{default:i}},[],import.meta.url)).default,functionName:"messagers",args:[BigInt(this.sourceChain.id)]}),a=await this._getLayerzeroFee(o,this.sourceChain,this.targetPublicClient);return typeof a=="bigint"?{value:a,token:this.targetNativeToken,params:void 0}:void 0}}else if(r==="msgline"&&this.targetNativeToken&&this.sourceChain&&this.targetChain&&this.contract){const o=oi({abi:(await me(async()=>{const{default:i}=await import("./lnbridge-v3-lhSDcqzS.js");return{default:i}},[],import.meta.url)).default,functionName:"withdrawLiquidity",args:[n,BigInt(this.targetChain.id),t]}),a=await this._getMsglineFeeAndParams(o,t,this.targetChain,this.sourceChain,this.contract.targetAddress,this.contract.sourceAddress,this.targetToken,this.sourceToken);return a?{value:a.fee,token:this.targetNativeToken,params:a.extParams}:void 0}}async requestWithdrawLiquidity(t,n,r,o){if(await this.validateNetwork("target"),this.contract&&this.sourceChain&&this.publicClient&&this.walletClient){const a=BigInt(this.sourceChain.id),i=await this.walletClient.writeContract({address:this.contract.targetAddress,abi:(await me(async()=>{const{default:s}=await import("./lnbridge-v3-lhSDcqzS.js");return{default:s}},[],import.meta.url)).default,functionName:"requestWithdrawLiquidity",args:[a,n,t,o],value:r,gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:i,confirmations:mo})}}}function fm(e){switch(e.category){case"lnv3":return new Zj({...e,category:"lnbridge",protocol:"lnv3"});case"lnv2-default":return new dV({...e,category:"lnbridge",protocol:"lnv2-default"});case"lnv2-opposite":return new fV({...e,category:"lnbridge",protocol:"lnv2-opposite"});default:return}}function Bye(e,t){return!!(e!=null&&e.cross.some(n=>n.target.network===(t==null?void 0:t.network)&&n.bridge.category==="lnbridge"&&n.bridge.lnv2Type==="default"))}function Fye(e,t){return!!(e!=null&&e.cross.some(n=>n.target.network===(t==null?void 0:t.network)&&n.bridge.category==="lnbridge"&&n.bridge.lnv2Type==="opposite"))}const hV=Er({id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),mV=Er({id:421614,name:"Arbitrum Sepolia",network:"arbitrum-sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-sepolia.g.alchemy.com/v2"],webSocket:["wss://arb-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]},public:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"},default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0}),pV=Er({id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),e4={block:wq({format(e){var n;return{transactions:(n=e.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const o=L_(r);return o.typeHex==="0x7e"&&(o.isSystemTx=r.isSystemTx,o.mint=r.mint?wn(r.mint):void 0,o.sourceHash=r.sourceHash,o.type="deposit"),o}),stateRoot:e.stateRoot}}}),transaction:vq({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?wn(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:tW({format(e){return{l1GasPrice:e.l1GasPrice?wn(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?wn(e.l1GasUsed):null,l1Fee:e.l1Fee?wn(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})},gV=Er({id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-mainnet.g.alchemy.com/v2"],webSocket:["wss://base-mainnet.g.alchemy.com/v2"]},infura:{http:["https://base-mainnet.infura.io/v3"],webSocket:["wss://base-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{blockscout:{name:"Basescout",url:"https://base.blockscout.com"},default:{name:"Basescan",url:"https://basescan.org"},etherscan:{name:"Basescan",url:"https://basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022}}},{formatters:e4}),yV=Er({id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-sepolia.g.alchemy.com/v2"],webSocket:["wss://base-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"},default:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"}},testnet:!0,sourceId:11155111},{formatters:e4}),bV=Er({id:56,name:"BNB Smart Chain",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),Mye=Er({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),vV=Er({id:100,name:"Gnosis",network:"gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]},public:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{etherscan:{name:"Gnosisscan",url:"https://gnosisscan.io"},default:{name:"Gnosis Chain Explorer",url:"https://blockscout.com/xdai/mainnet"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}}),wV=Er({id:59144,name:"Linea Mainnet",network:"linea-mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-mainnet.infura.io/v3"],webSocket:["wss://linea-mainnet.infura.io/ws/v3"]},default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.linea.build"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42}},testnet:!1}),Ux=Er({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),EV=Er({id:5e3,name:"Mantle",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]},public:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"},default:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}}),_V=Er({id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},{formatters:e4}),xV=Er({id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),CV=Er({id:534352,name:"Scroll",network:"scroll",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]},public:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com"},blockscout:{name:"Blockscout",url:"https://blockscout.scroll.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1}),SV=Er({id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x21B000Fd62a880b2125A61e36a284BB757b76025",blockCreated:3914906}},testnet:!0}),t4={block:wq({format(e){var n;const t=(n=e.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const o=t4.transaction.format(r);return o.typeHex==="0x71"?o.type="eip712":o.typeHex==="0xff"&&(o.type="priority"),o});return{l1BatchNumber:e.l1BatchNumber?wn(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?wn(e.l1BatchTimestamp):null,transactions:t}}}),transaction:vq({format(e){const t={};return e.type==="0x71"?t.type="eip712":e.type==="0xff"&&(t.type="priority"),{...t,l1BatchNumber:e.l1BatchNumber?wn(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?wn(e.l1BatchTxIndex):null}}}),transactionReceipt:tW({format(e){return{l1BatchNumber:e.l1BatchNumber?wn(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?wn(e.l1BatchTxIndex):null,logs:e.logs.map(t=>({..._a(t),l1BatchNumber:t.l1BatchNumber?wn(t.l1BatchNumber):null,transactionLogIndex:pr(t.transactionLogIndex),logType:t.logType})),l2ToL1Logs:e.l2ToL1Logs.map(t=>({blockNumber:wn(t.blockHash),blockHash:t.blockHash,l1BatchNumber:wn(t.l1BatchNumber),transactionIndex:wn(t.transactionIndex),shardId:wn(t.shardId),isService:t.isService,sender:t.sender,key:t.key,value:t.value,transactionHash:t.transactionHash,logIndex:wn(t.logIndex)}))}}}),transactionRequest:_ue({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format(e){return e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:rt(e.gasPerPubdata)}:{},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from(qg(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps}:{},...e.customSignature?{customSignature:e.customSignature}:{}},type:e.type==="eip712"?"0x71":"0xff"}:{}}})},Lye=(e,t)=>$ye(e)?Uye(e):rfe(e,t),TV={transaction:Lye};function Uye(e){const{chainId:t,gas:n,nonce:r,to:o,from:a,value:i,maxFeePerGas:s,maxPriorityFeePerGas:c,customSignature:l,factoryDeps:u,paymaster:d,paymasterInput:f,gasPerPubdata:h,data:m}=e;zye(e);const p=[r?rt(r):"0x",c?rt(c):"0x",s?rt(s):"0x",n?rt(n):"0x",o??"0x",i?rt(i):"0x",m??"0x",rt(t),rt(""),rt(""),rt(t),a??"0x",h?rt(h):"0x",u??[],l??"0x",d&&f?[d,f]:[]];return Sl(["0x71",V_(p)])}function $ye(e){return"customSignature"in e||"paymaster"in e||"paymasterInput"in e||"gasPerPubdata"in e||"factoryDeps"in e}function zye(e){const{chainId:t,to:n,from:r,paymaster:o,paymasterInput:a}=e;if(t<=0)throw new $_({chainId:t});if(n&&!Hn(n))throw new Wo({address:n});if(r&&!Hn(r))throw new Wo({address:r});if(o&&!Hn(o))throw new Wo({address:o});if(o&&!a)throw new de("`paymasterInput` must be provided when `paymaster` is defined");if(!o&&a)throw new de("`paymaster` must be provided when `paymasterInput` is defined")}const AV=Er({id:324,name:"zkSync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]},public:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}}},{serializers:TV,formatters:t4}),DV=Er({id:300,name:"zkSync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]},public:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://sepolia.explorer.zksync.io/"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},{serializers:TV,formatters:t4}),Rw=jt.HelixChain.arbitrum,kV=Rw.tokens.map(e=>{var a;const t=Rw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Rw.couples.length&&!Rw.tokens.some(e=>e.type==="native")&&kV.push({...hV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const jV={...hV,network:"arbitrum",name:"Arbitrum One",logo:"arbitrum.png",tokens:kV},Nw=jt.HelixChain.arbitrumSepolia,PV=Nw.tokens.map(e=>{var a;const t=Nw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Nw.couples.length&&!Nw.tokens.some(e=>e.type==="native")&&PV.push({...mV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const IV={...mV,network:"arbitrum-sepolia",name:"Arbitrum Sepolia",logo:"arbitrum.png",tokens:PV},Bw=jt.HelixChain.base,OV=Bw.tokens.map(e=>{var a;const t=Bw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Bw.couples.length&&!Bw.tokens.some(e=>e.type==="native")&&OV.push({...gV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const RV={...gV,network:"base",name:"Base",logo:"base.png",tokens:OV},Fw=jt.HelixChain.bsc,NV=Fw.tokens.map(e=>{var a;const t=Fw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Fw.couples.length&&!Fw.tokens.some(e=>e.type==="native")&&NV.push({...bV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const BV={...bV,network:"bsc",name:"BSC",logo:"bsc.png",tokens:NV};var ct=(e=>(e[e.DARWINIA=46]="DARWINIA",e[e.CRAB=44]="CRAB",e[e.PANGOLIN=43]="PANGOLIN",e[e.ETHEREUM=1]="ETHEREUM",e[e.SEPOLIA=11155111]="SEPOLIA",e[e.ARBITRUM=42161]="ARBITRUM",e[e.ARBITRUM_SEPOLIA=421614]="ARBITRUM_SEPOLIA",e[e.ZKSYNC=324]="ZKSYNC",e[e.ZKSYNC_SEPOLIA=300]="ZKSYNC_SEPOLIA",e[e.POLYGON=137]="POLYGON",e[e.LINEA=59144]="LINEA",e[e.MANTLE=5e3]="MANTLE",e[e.BASE=8453]="BASE",e[e.BASE_SEPOLIA=84532]="BASE_SEPOLIA",e[e.SCROLL=534352]="SCROLL",e[e.BSC=56]="BSC",e[e.OPTIMISM=10]="OPTIMISM",e[e.GNOSIS=100]="GNOSIS",e[e.BLAST=81457]="BLAST",e[e.BERA=80084]="BERA",e[e.TAIKO_HEKLA=167009]="TAIKO_HEKLA",e[e.ASTAR_ZKEVM=3776]="ASTAR_ZKEVM",e[e.MORPH=2810]="MORPH",e[e.MOONBEAM=1284]="MOONBEAM",e[e.AVALANCHE=43114]="AVALANCHE",e[e.ZIRCUIT=48900]="ZIRCUIT",e[e.ZIRCUIT_SEPOLIA=48899]="ZIRCUIT_SEPOLIA",e))(ct||{});const Mw=jt.HelixChain.crabDvm,FV=Mw.tokens.map(e=>{var a;const t=Mw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Mw.couples.length&&!Mw.tokens.some(e=>e.type==="native")&&FV.push({name:"CRAB",symbol:"CRAB",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const MV={id:ct.CRAB,network:"crab-dvm",name:"Crab",nativeCurrency:{name:"CRAB",symbol:"CRAB",decimals:18},rpcUrls:{default:{http:["https://crab-rpc.darwinia.network"],webSocket:["wss://crab-rpc.darwinia.network"]},public:{http:["https://crab-rpc.darwinia.network"],webSocket:["wss://crab-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Subscan",url:"https://crab.subscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:599936}},logo:"crab.png",tokens:FV},Lw=jt.HelixChain.darwiniaDvm,LV=Lw.tokens.map(e=>{var a;const t=Lw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Lw.couples.length&&!Lw.tokens.some(e=>e.type==="native")&&LV.push({name:"RING",symbol:"RING",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const UV={id:ct.DARWINIA,network:"darwinia-dvm",name:"Darwinia",nativeCurrency:{name:"RING",symbol:"RING",decimals:18},rpcUrls:{default:{http:["https://rpc.darwinia.network"],webSocket:["wss://rpc.darwinia.network"]},public:{http:["https://rpc.darwinia.network"],webSocket:["wss://rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.darwinia.network/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:251739}},logo:"darwinia.png",tokens:LV},Uw=jt.HelixChain.ethereum,$V=Uw.tokens.map(e=>{var a;const t=Uw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Uw.couples.length&&!Uw.tokens.some(e=>e.type==="native")&&$V.push({...Ux.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const zV={...Ux,network:"ethereum",name:"Ethereum",logo:"ethereum.png",tokens:$V},$w=jt.HelixChain.sepolia,HV=$w.tokens.map(e=>{var a;const t=$w.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});$w.couples.length&&!$w.tokens.some(e=>e.type==="native")&&HV.push({...SV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const qV={...SV,network:"sepolia",name:"Sepolia",logo:"sepolia.png",tokens:HV},zw=jt.HelixChain.linea,WV=zw.tokens.map(e=>{var a;const t=zw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});zw.couples.length&&!zw.tokens.some(e=>e.type==="native")&&WV.push({...wV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const GV={...wV,network:"linea",name:"Linea",logo:"linea.png",tokens:WV},Hw=jt.HelixChain.mantle,VV=Hw.tokens.map(e=>{var a;const t=Hw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Hw.couples.length&&!Hw.tokens.some(e=>e.type==="native")&&VV.push({...EV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const KV={...EV,network:"mantle",name:"Mantle",logo:"mantle.png",tokens:VV},qw=jt.HelixChain.op,YV=qw.tokens.map(e=>{var a;const t=qw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});qw.couples.length&&!qw.tokens.some(e=>e.type==="native")&&YV.push({..._V.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const QV={..._V,network:"op",name:"OP Mainnet",logo:"optimism.png",tokens:YV},Ww=jt.HelixChain.polygon,XV=Ww.tokens.map(e=>{var a;const t=Ww.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Ww.couples.length&&!Ww.tokens.some(e=>e.type==="native")&&XV.push({...xV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const JV={...xV,network:"polygon",name:"Polygon PoS",logo:"polygon.png",tokens:XV},Gw=jt.HelixChain.scroll,ZV=Gw.tokens.map(e=>{var a;const t=Gw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Gw.couples.length&&!Gw.tokens.some(e=>e.type==="native")&&ZV.push({...CV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const eK={...CV,network:"scroll",name:"Scroll",logo:"scroll.png",tokens:ZV},Vw=jt.HelixChain.zksync,tK=Vw.tokens.map(e=>{var a;const t=Vw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Vw.couples.length&&!Vw.tokens.some(e=>e.type==="native")&&tK.push({...AV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const nK={...AV,network:"zksync",name:"zkSync era",logo:"zksync.png",tokens:tK},Kw=jt.HelixChain.zksyncSepolia,rK=Kw.tokens.map(e=>{var a;const t=Kw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Kw.couples.length&&!Kw.tokens.some(e=>e.type==="native")&&rK.push({...DV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const oK={...DV,network:"zksync-sepolia",name:"zkSync Sepolia Testnet",logo:"zksync.png",tokens:rK},Yw=jt.HelixChain.gnosis,aK=Yw.tokens.map(e=>{var a;const t=Yw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Yw.couples.length&&!Yw.tokens.some(e=>e.type==="native")&&aK.push({...vV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const iK={...vV,network:"gnosis",name:"Gnosis Chain",blockExplorers:{default:{name:"Gnosisscan",url:"https://gnosisscan.io"}},logo:"gnosis.png",tokens:aK};var xn=(e=>(e[e.PENDING=0]="PENDING",e[e.PENDING_TO_REFUND=1]="PENDING_TO_REFUND",e[e.PENDING_TO_CLAIM=2]="PENDING_TO_CLAIM",e[e.SUCCESS=3]="SUCCESS",e[e.REFUNDED=4]="REFUNDED",e[e.PENDING_TO_CONFIRM_REFUND=5]="PENDING_TO_CONFIRM_REFUND",e[e.FAILED=6]="FAILED",e))(xn||{}),Mn=(e=>(e.ADDRESS="address",e.PAGE="page",e.TAB="tab",e.BRIDGE="bridge",e.SOURCE_CHAIN="source_chain",e.TARGET_CHAIN="target_chain",e.SOURCE_TOKEN="source_token",e.TARGET_TOKEN="target_token",e.TOKEN_CATEGORY="token_category",e))(Mn||{});const Qw=jt.HelixChain.blast,sK=Qw.tokens.map(e=>{var a;const t=Qw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Qw.couples.length&&!Qw.tokens.some(e=>e.type==="native")&&sK.push({decimals:18,name:"Ether",symbol:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const cK={id:ct.BLAST,network:"blast",name:"Blast",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.blast.io"]},public:{http:["https://rpc.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://blastscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:212929}},logo:"blast.png",tokens:sK},Xw=jt.HelixChain.bera,lK=Xw.tokens.map(e=>{var a;const t=Xw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Xw.couples.length&&!Xw.tokens.some(e=>e.type==="native")&&lK.push({name:"BERA",symbol:"BERA",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const uK={id:ct.BERA,network:"bera",name:"Berachain Bartio",nativeCurrency:{name:"BERA",symbol:"BERA",decimals:18},rpcUrls:{default:{http:["https://bartio.rpc.berachain.com/"]},public:{http:["https://bartio.rpc.berachain.com/"]}},blockExplorers:{default:{name:"Bartio",url:"https://bartio.beratrail.io"}},testnet:!0,logo:"bera.png",tokens:lK},Jw=jt.HelixChain.astarZkevm,dK=Jw.tokens.map(e=>{var a;const t=Jw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Jw.couples.length&&!Jw.tokens.some(e=>e.type==="native")&&dK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const fK={id:ct.ASTAR_ZKEVM,network:"astar-zkevm",name:"Astar zkEVM",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.startale.com/astar-zkevm"],webSocket:[]},public:{http:["https://rpc.startale.com/astar-zkevm"],webSocket:[]}},blockExplorers:{default:{name:"Blockscout",url:"https://astar-zkevm.explorer.startale.com/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:183817}},logo:"astar.png",tokens:dK},Zw=jt.HelixChain.moonbeam,hK=Zw.tokens.map(e=>{var a;const t=Zw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Zw.couples.length&&!Zw.tokens.some(e=>e.type==="native")&&hK.push({name:"GLMR",symbol:"GLMR",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const mK={id:ct.MOONBEAM,network:"moonbeam",name:"Moonbeam",nativeCurrency:{name:"GLMR",symbol:"GLMR",decimals:18},rpcUrls:{default:{http:["https://rpc.api.moonbeam.network"]},public:{http:["https://rpc.api.moonbeam.network"]}},blockExplorers:{default:{name:"Subscan",url:"https://moonbeam.subscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},logo:"moonbeam.png",tokens:hK},eE=jt.HelixChain.baseSepolia,pK=eE.tokens.map(e=>{var a;const t=eE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});eE.couples.length&&!eE.tokens.some(e=>e.type==="native")&&pK.push({...yV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const gK={...yV,network:"base-sepolia",name:"Base Sepolia",logo:"base.png",tokens:pK},tE=jt.HelixChain.avalanche,yK=tE.tokens.map(e=>{var a;const t=tE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});tE.couples.length&&!tE.tokens.some(e=>e.type==="native")&&yK.push({...pV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const bK={...pV,network:"avalanche",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/chains/avax.png",tokens:yK},nE=jt.HelixChain.taikoHekla,vK=nE.tokens.map(e=>{var a;const t=nE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});nE.couples.length&&!nE.tokens.some(e=>e.type==="native")&&vK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const wK={id:ct.TAIKO_HEKLA,network:"taiko-hekla",name:"Taiko Hekla",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hekla.taiko.xyz"]},public:{http:["https://rpc.hekla.taiko.xyz"]}},blockExplorers:{default:{name:"Taikoscan",url:"https://hekla.taikoscan.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:59757}},testnet:!0,logo:"taiko.png",tokens:vK},rE=jt.HelixChain.zircuit,EK=rE.tokens.map(e=>{var a;const t=rE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});rE.couples.length&&!rE.tokens.some(e=>e.type==="native")&&EK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const _K={id:ct.ZIRCUIT,network:"zircuit",name:"Zircuit",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zircuit1-mainnet.p2pify.com"]},public:{http:["https://zircuit1-mainnet.p2pify.com"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},logo:"zircuit.png",tokens:EK},oE=jt.HelixChain.zircuitSepolia,xK=oE.tokens.map(e=>{var a;const t=oE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});oE.couples.length&&!oE.tokens.some(e=>e.type==="native")&&xK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const CK={id:ct.ZIRCUIT_SEPOLIA,network:"zircuit-sepolia",name:"Zircuit Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zircuit1.p2pify.com"]},public:{http:["https://zircuit1.p2pify.com"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.testnet.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6040287}},testnet:!0,logo:"zircuit.png",tokens:xK};function Hye(){return!1}const aE=jt.HelixChain.morph,SK=aE.tokens.map(e=>{var a;const t=aE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});aE.couples.length&&!aE.tokens.some(e=>e.type==="native")&&SK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const TK={id:ct.MORPH,network:"morph",name:"Morph Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-holesky.morphl2.io"],webSocket:[]},public:{http:["https://rpc-holesky.morphl2.io"],webSocket:[]}},blockExplorers:{default:{name:"Morph",url:"https://explorer-holesky.morphl2.io/"}},testnet:!0,logo:"morph.png",tokens:SK};function st(e){switch(e){case ct.DARWINIA:case"darwinia-dvm":return UV;case ct.CRAB:case"crab-dvm":return MV;case ct.ETHEREUM:case"ethereum":return zV;case ct.ARBITRUM:case"arbitrum":return jV;case ct.ARBITRUM_SEPOLIA:case"arbitrum-sepolia":return IV;case ct.ZKSYNC:case"zksync":return nK;case ct.ZKSYNC_SEPOLIA:case"zksync-sepolia":return oK;case ct.LINEA:case"linea":return GV;case ct.MANTLE:case"mantle":return KV;case ct.POLYGON:case"polygon":return JV;case ct.SCROLL:case"scroll":return eK;case ct.BASE:case"base":return RV;case ct.BSC:case"bsc":return BV;case ct.OPTIMISM:case"op":return QV;case ct.GNOSIS:case"gnosis":return iK;case ct.SEPOLIA:case"sepolia":return qV;case ct.BLAST:case"blast":return cK;case ct.BERA:case"bera":return uK;case ct.TAIKO_HEKLA:case"taiko-hekla":return wK;case ct.ASTAR_ZKEVM:case"astar-zkevm":return fK;case ct.MORPH:case"morph":return TK;case ct.MOONBEAM:case"moonbeam":return mK;case ct.BASE_SEPOLIA:case"base-sepolia":return gK;case ct.AVALANCHE:case"avalanche":return bK;case ct.ZIRCUIT:case"zircuit":return _K;case ct.ZIRCUIT_SEPOLIA:case"zircuit-sepolia":return CK;default:return}}function hm(e){return[jV,IV,MV,UV,zV,qV,GV,KV,nK,oK,JV,eK,RV,BV,QV,iK,cK,uK,wK,fK,TK,mK,gK,bK,_K,CK].sort((n,r)=>n.name.localeCompare(r.name)).filter(n=>!n.hidden&&!n.testnet)}let VR,E0,iE,sE,X5=[],AK=[],v1=[],DK=[],av={},w1={},uu={},uf={},cE=[],lE=[],J5=[],Z5=[],Jp={},E1={},Zp={},_1={};hm().forEach(e=>{let t=[];e.tokens.forEach(n=>{n.cross.forEach(r=>{var i,s,c,l,u,d,f,h,m;const o=st(r.target.network),a=o==null?void 0:o.tokens.find(p=>p.symbol===r.target.symbol);!r.hidden&&o&&a&&(t=t.filter(p=>p.symbol!==n.symbol).concat(n),VR=VR??r.bridge.category,iE=iE??o,av={...av,[e.network]:{...av[e.network],[o.network]:(((i=av[e.network])==null?void 0:i[o.network])||[]).filter(p=>p.symbol!==n.symbol).concat(n)}},w1={...w1,[e.network]:(w1[e.network]||[]).filter(p=>p.id!=o.id).concat(o)},uu={...uu,[e.network]:{...uu[e.network],[o.network]:{...(s=uu[e.network])==null?void 0:s[o.network],[n.symbol]:(((l=(c=uu[e.network])==null?void 0:c[o.network])==null?void 0:l[n.symbol])||[]).filter(p=>p.symbol!==a.symbol).concat(a)}}},uf={...uf,[e.network]:{...uf[e.network],[o.network]:{...(u=uf[e.network])==null?void 0:u[o.network],[n.symbol]:(((f=(d=uf[e.network])==null?void 0:d[o.network])==null?void 0:f[n.symbol])||[]).filter(p=>p!==r.bridge.category).concat(r.bridge.category)}}},r.bridge.category==="lnbridge"&&(cE=cE.filter(p=>p.id!==e.id).concat(e),lE=lE.filter(p=>p.id!==o.id).concat(o),Jp={...Jp,[e.network]:{...Jp[e.network],[o.network]:(((h=Jp[e.network])==null?void 0:h[o.network])||[]).filter(p=>p.symbol!==n.symbol).concat(n)}},E1={...E1,[e.network]:(E1[e.network]||[]).filter(p=>p.id!==o.id).concat(o)},r.bridge.disableV2||(J5=J5.filter(p=>p.id!=e.id).concat(e),Z5=Z5.filter(p=>p.id!==o.id).concat(o),Zp={...Zp,[e.network]:{...Zp[e.network],[o.network]:(((m=Zp[e.network])==null?void 0:m[o.network])||[]).filter(p=>p.symbol!==n.symbol).concat(n)}},_1={..._1,[e.network]:(_1[e.network]||[]).filter(p=>p.id!==o.id).concat(o)})))})}),t.length&&(E0=E0??e,sE=sE??t[0],X5=X5.concat(e),v1=v1.length?v1:t)});var YL,QL;E0&&(AK=w1[E0.network]||[],iE&&sE&&(DK=((QL=(YL=uu[E0.network])==null?void 0:YL[iE.network])==null?void 0:QL[sE.symbol])||[]));function dy(e,t){return e.name.localeCompare(t.name)}function $x(e,t){return e.type==="native"?1:e.symbol.localeCompare(t.symbol)}X5.sort(dy);AK.sort(dy);v1.sort($x);DK.sort($x);cE.sort(dy);lE.sort(dy);function qye(e,t,n){var r,o;return e&&t&&n?((o=(r=uf[e.network])==null?void 0:r[t.network])==null?void 0:o[n.symbol])||[]:[]}function kK(e,t,n,r=[]){var o,a;if(e&&t&&n){const i=(((a=(o=uu[e.network])==null?void 0:o[t.network])==null?void 0:a[n.symbol])||[]).sort($x);return i.length?i:r}return r}function n4(e){return{defaultSourceChains:e?J5:cE,defaultTargetChains:e?Z5:lE}}function uE(e,t,n=[],r){var o;if(e&&t){const i=(((o=(r?Zp:Jp)[e.network])==null?void 0:o[t.network])||[]).sort($x);return i.length?i:n}return n}function r4(e,t=[],n){if(e){const o=((n?_1:E1)[e.network]||[]).sort(dy);return o.length?o:t}return t}function Wye(e){switch(e){case xn.PENDING:return"Pending";case xn.PENDING_TO_CONFIRM_REFUND:return"Refunding";case xn.PENDING_TO_REFUND:return"Pending to Refund";case xn.PENDING_TO_CLAIM:return"Pending to Claim";case xn.REFUNDED:return"Refunded";case xn.SUCCESS:return"Finished";default:return"Unknown"}}function vr(e){var t;return(t=e==null?void 0:e.startsWith)!=null&&t.call(e,"http")?e:`images/token/${e||"unknown.svg"}`}function Rn(e){var t;return(t=e==null?void 0:e.startsWith)!=null&&t.call(e,"http")?e:`images/network/${e||"unknown.png"}`}function Gye(e){var t;return(t=e==null?void 0:e.startsWith)!=null&&t.call(e,"http")?e:`images/bridge/${e}`}function Vye(e){return Math.round(Number(e)*Ax)}function ml(e){return Number((e/Ax).toFixed(3))}function o4(e,t){const n=Cme,r=t?Tme:Sme;return n<=e&&e<=r}async function Kye(e,t,n,r,o,a){const s=await fetch(`https://api.msgport.xyz/ormp/fee?from_chain_id=${e}&to_chain_id=${t}&payload=${a}&from_address=${n}&to_address=${r}&refund_address=${o}`),c=await s.json();if(s.ok&&c.code===0){const l=BigInt(c.data.fee),u=c.data.params;return{fee:l,extParams:u}}}function jK(e){return e.map(t=>{const n=t.split("-").slice(-1).at(0);if(!n||!Ea(n))throw new Error(`Failed to extract transfer id, id: ${t}`);return n})}function Yye(e){let t,n,r;if(e){const o=e.split("/");fj(e)?t=e:o.length===2&&(r=Number(o[0]),n=Number(o[1]))}return{hash:t,total:n,completed:r}}const Qye=()=>{const e=document.createElement("div");return e.className="fixed top-medium right-medium lg:top-5 lg:right-5 flex flex-col overflow-hidden z-40",document.body.appendChild(e),e},Xye=(e,t,n)=>{const r=document.createElement("div");r.className=`rounded-xl shadow-lg border-white/5 border lg:border-none bg-secondary p-medium lg:p-5 flex items-center gap-medium mb-medium animate-notification-enter relative w-[82vw] lg:w-96 ${e.className}`;const o=uz(r);return o.render(y.jsxs(y.Fragment,{children:[y.jsx("img",{alt:t,width:20,height:20,src:`images/notification/${t}.svg`,className:"shrink-0 self-start lg:hidden"}),y.jsx("img",{alt:t,width:24,height:24,src:`images/notification/${t}.svg`,className:"hidden shrink-0 self-start lg:inline"}),y.jsxs("div",{className:"gap-small flex flex-col",children:[e.title&&y.jsx("div",{className:"break-all text-base font-medium text-white",children:e.title}),e.description&&y.jsx("div",{className:"break-all text-sm font-medium text-white",children:e.description})]}),e.closeable&&y.jsx("button",{onClick:n,className:"absolute right-1 top-1 rounded-full bg-transparent p-[2px] transition-transform hover:scale-105 hover:bg-white/10 active:scale-95 lg:right-2 lg:top-2",children:y.jsx("img",{alt:"Close",width:16,height:16,src:"images/close-white.svg"})})]})),{domNode:r,root:o}},Jye=4500;let JS=0,Wl=null;const iv=(e,t)=>{Wl||(Wl=Qye());const{domNode:n,root:r}=Xye(e,t,()=>{n.classList.add("animate-notification-leave")}),o=document.createElement("div");o.appendChild(n),Wl.appendChild(o),JS+=1;let a=!1,i=!1;n.addEventListener("mouseenter",()=>{i=!0}),n.addEventListener("mouseleave",()=>{i=!1,a&&setTimeout(()=>{n.classList.add("animate-notification-leave")},400)}),n.addEventListener("animationend",c=>{c.stopPropagation(),n.classList.contains("animate-notification-enter")?n.classList.remove("animate-notification-enter"):(o.style.height=`${n.offsetHeight}px`,r.unmount(),n.remove(),e.onClose&&e.onClose(),o.classList.add("animate-notification-fadeout"))}),o.addEventListener("animationend",()=>{o.remove(),JS-=1,JS===0&&(Wl==null||Wl.remove(),Wl=null)});const s=()=>{n.classList.add("animate-notification-leave")};return e.duration!==0&&setTimeout(()=>{a=!0,i||n.classList.add("animate-notification-leave")},e.duration&&e.duration>1e3?e.duration:Jye),s},ms={error:e=>iv(e,"error"),warn:e=>iv(e,"warn"),info:e=>iv(e,"info"),success:e=>iv(e,"success")};function KR({href:e,children:t}){return y.jsx("a",{target:"_blank",rel:"noopener",className:"text-primary break-all hover:underline",href:e,children:t})}function Vr(e,t,n){var i;const r=(i=t==null?void 0:t.blockExplorers)==null?void 0:i.default.url,o=e==null?void 0:e.transactionHash,a=new URL(`tx/${o}`,r).href;(e==null?void 0:e.status)==="success"&&o?ms.success({title:`${n??"Transaction"} successful`,description:y.jsx(KR,{href:a,children:o})}):(e==null?void 0:e.status)==="reverted"&&r&&ms.error({title:`${n??"Transaction"} failed`,description:y.jsx(KR,{href:a,children:o})})}function an(e){return ms.error({title:"Oops an error occurred",description:e.message})}function fr(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Xu(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const PK=6048e5,Zye=864e5,YR=6e4,QR=525600,XR=43200,JR=1440;let ebe={};function fy(){return ebe}function fg(e,t){var s,c,l,u;const n=fy(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,o=fr(e),a=o.getDay(),i=(a=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function ZR(e){const t=fr(e);return t.setHours(0,0,0,0),t}function fE(e){const t=fr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function tbe(e,t){const n=ZR(e),r=ZR(t),o=+n-fE(n),a=+r-fE(r);return Math.round((o-a)/Zye)}function nbe(e){const t=IK(e),n=Xu(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),dE(n)}function rbe(e,t){const n=fr(e),r=fr(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function obe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function abe(e){if(!obe(e)&&typeof e!="number")return!1;const t=fr(e);return!isNaN(Number(t))}function ibe(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function sbe(e){const t=fr(e),n=Xu(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const cbe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},lbe=(e,t,n)=>{let r;const o=cbe[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ZS(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ube={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},dbe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fbe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hbe={date:ZS({formats:ube,defaultWidth:"full"}),time:ZS({formats:dbe,defaultWidth:"full"}),dateTime:ZS({formats:fbe,defaultWidth:"full"})},mbe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pbe=(e,t,n,r)=>mbe[e];function vp(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const gbe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ybe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bbe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},vbe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},wbe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ebe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},_be=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},xbe={ordinalNumber:_be,era:vp({values:gbe,defaultWidth:"wide"}),quarter:vp({values:ybe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:vp({values:bbe,defaultWidth:"wide"}),day:vp({values:vbe,defaultWidth:"wide"}),dayPeriod:vp({values:wbe,defaultWidth:"wide",formattingValues:Ebe,defaultFormattingWidth:"wide"})};function wp(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Sbe(s,d=>d.test(i)):Cbe(s,d=>d.test(i));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(i.length);return{value:l,rest:u}}}function Cbe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Sbe(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const Abe=/^(\d+)(th|st|nd|rd)?/i,Dbe=/\d+/i,kbe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},jbe={any:[/^b/i,/^(a|c)/i]},Pbe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ibe={any:[/1/i,/2/i,/3/i,/4/i]},Obe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Rbe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Nbe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Bbe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Fbe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Mbe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Lbe={ordinalNumber:Tbe({matchPattern:Abe,parsePattern:Dbe,valueCallback:e=>parseInt(e,10)}),era:wp({matchPatterns:kbe,defaultMatchWidth:"wide",parsePatterns:jbe,defaultParseWidth:"any"}),quarter:wp({matchPatterns:Pbe,defaultMatchWidth:"wide",parsePatterns:Ibe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:wp({matchPatterns:Obe,defaultMatchWidth:"wide",parsePatterns:Rbe,defaultParseWidth:"any"}),day:wp({matchPatterns:Nbe,defaultMatchWidth:"wide",parsePatterns:Bbe,defaultParseWidth:"any"}),dayPeriod:wp({matchPatterns:Fbe,defaultMatchWidth:"any",parsePatterns:Mbe,defaultParseWidth:"any"})},OK={code:"en-US",formatDistance:lbe,formatLong:hbe,formatRelative:pbe,localize:xbe,match:Lbe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ube(e){const t=fr(e);return tbe(t,sbe(t))+1}function $be(e){const t=fr(e),n=+dE(t)-+nbe(t);return Math.round(n/PK)+1}function RK(e,t){var u,d,f,h;const n=fr(e),r=n.getFullYear(),o=fy(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((h=(f=o.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=Xu(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=fg(i,t),c=Xu(e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const l=fg(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function zbe(e,t){var s,c,l,u;const n=fy(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??1,o=RK(e,t),a=Xu(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),fg(a,t)}function Hbe(e,t){const n=fr(e),r=+fg(n,t)-+zbe(n,t);return Math.round(r/PK)+1}function It(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const lc={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return It(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):It(n+1,2)},d(e,t){return It(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return It(e.getHours()%12||12,t.length)},H(e,t){return It(e.getHours(),t.length)},m(e,t){return It(e.getMinutes(),t.length)},s(e,t){return It(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return It(o,t.length)}},Yd={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},eN={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return lc.y(e,t)},Y:function(e,t,n,r){const o=RK(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return It(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):It(a,t.length)},R:function(e,t){const n=IK(e);return It(n,t.length)},u:function(e,t){const n=e.getFullYear();return It(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return It(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return It(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return lc.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return It(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Hbe(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):It(o,t.length)},I:function(e,t,n){const r=$be(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):It(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):lc.d(e,t)},D:function(e,t,n){const r=Ube(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):It(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return It(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return It(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return It(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Yd.noon:r===0?o=Yd.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Yd.evening:r>=12?o=Yd.afternoon:r>=4?o=Yd.morning:o=Yd.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return lc.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):lc.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):It(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):It(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):lc.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):lc.s(e,t)},S:function(e,t){return lc.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return nN(r);case"XXXX":case"XX":return nu(r);case"XXXXX":case"XXX":default:return nu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return nN(r);case"xxxx":case"xx":return nu(r);case"xxxxx":case"xxx":default:return nu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+tN(r,":");case"OOOO":default:return"GMT"+nu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+tN(r,":");case"zzzz":default:return"GMT"+nu(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return It(r,t.length)},T:function(e,t,n){const r=e.getTime();return It(r,t.length)}};function tN(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+It(a,2)}function nN(e,t){return e%60===0?(e>0?"-":"+")+It(Math.abs(e)/60,2):nu(e,t)}function nu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=It(Math.trunc(r/60),2),a=It(r%60,2);return n+o+t+a}const rN=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},NK=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},qbe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return rN(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",rN(r,t)).replace("{{time}}",NK(o,t))},Wbe={p:NK,P:qbe},Gbe=/^D+$/,Vbe=/^Y+$/,Kbe=["D","DD","YY","YYYY"];function Ybe(e){return Gbe.test(e)}function Qbe(e){return Vbe.test(e)}function Xbe(e,t,n){const r=Jbe(e,t,n);if(console.warn(r),Kbe.includes(e))throw new RangeError(r)}function Jbe(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Zbe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eve=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tve=/^'([^]*?)'?$/,nve=/''/g,rve=/[a-zA-Z]/;function ove(e,t,n){var u,d,f,h,m,p,b,v;const r=fy(),o=(n==null?void 0:n.locale)??r.locale??OK,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((p=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((v=(b=r.locale)==null?void 0:b.options)==null?void 0:v.weekStartsOn)??0,s=fr(e);if(!abe(s))throw new RangeError("Invalid time value");let c=t.match(eve).map(g=>{const w=g[0];if(w==="p"||w==="P"){const _=Wbe[w];return _(g,o.formatLong)}return g}).join("").match(Zbe).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const w=g[0];if(w==="'")return{isToken:!1,value:ave(g)};if(eN[w])return{isToken:!0,value:g};if(w.match(rve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:g}});o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const l={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return c.map(g=>{if(!g.isToken)return g.value;const w=g.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Qbe(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ybe(w))&&Xbe(w,t,String(e));const _=eN[w[0]];return _(s,w,o.localize,l)}).join("")}function ave(e){const t=e.match(tve);return t?t[1].replace(nve,"'"):e}function BK(e,t,n){const r=fy(),o=(n==null?void 0:n.locale)??r.locale??OK,a=rbe(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a});let s,c;a>0?(s=fr(t),c=fr(e)):(s=fr(e),c=fr(t));const l=ibe((n==null?void 0:n.roundingMethod)??"round"),u=c.getTime()-s.getTime(),d=u/YR,f=fE(c)-fE(s),h=(u-f)/YR,m=n==null?void 0:n.unit;let p;if(m?p=m:d<1?p="second":d<60?p="minute":d=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function sve(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function cve(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function lve(e,t){const n=hve(t);return"formatToParts"in n?dve(n,e):fve(n,e)}const uve={year:0,month:1,day:2,hour:3,minute:4,second:5};function dve(e,t){try{const n=e.formatToParts(t),r=[];for(let o=0;o=0?a:1e3+a,r-o}function gve(e,t,n){let o=e.getTime()-t;const a=eD(new Date(o),n);if(t===a)return t;o-=a-t;const i=eD(new Date(o),n);return a===i?a:Math.max(a,i)}function iN(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const sN={};function yve(e){if(sN[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),sN[e]=!0,!0}catch{return!1}}const bve=60*1e3,vve={X:function(e,t,n){const r=n3(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return cN(r);case"XXXX":case"XX":return df(r);case"XXXXX":case"XXX":default:return df(r,":")}},x:function(e,t,n){const r=n3(n.timeZone,e);switch(t){case"x":return cN(r);case"xxxx":case"xx":return df(r);case"xxxxx":case"xxx":default:return df(r,":")}},O:function(e,t,n){const r=n3(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+wve(r,":");case"OOOO":default:return"GMT"+df(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return oN("short",e,n);case"zzzz":default:return oN("long",e,n)}}};function n3(e,t){const n=e?a4(e,t,!0)/bve:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function hE(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length0?"-":"+",r=Math.abs(e),o=hE(Math.floor(r/60),2),a=hE(Math.floor(r%60),2);return n+o+t+a}function cN(e,t){return e%60===0?(e>0?"-":"+")+hE(Math.abs(e)/60,2):df(e,t)}function wve(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+hE(a,2)}function lN(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const Eve=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r3=36e5,uN=6e4,_ve=2,Kr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Eve};function MK(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?_ve:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=xve(e),{year:o,restDateString:a}=Cve(r.date,n),i=Sve(a,o);if(i===null||isNaN(i.getTime()))return new Date(NaN);if(i){const s=i.getTime();let c=0,l;if(r.time&&(c=Tve(r.time),c===null||isNaN(c)))return new Date(NaN);if(r.timeZone||t.timeZone){if(l=a4(r.timeZone||t.timeZone,new Date(s+c)),isNaN(l))return new Date(NaN)}else l=lN(new Date(s+c)),l=lN(new Date(s+c+l));return new Date(s+c+l)}else return new Date(NaN)}function xve(e){const t={};let n=Kr.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=Kr.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const o=Kr.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function Cve(e,t){if(e){const n=Kr.YYY[t],r=Kr.YYYYY[t];let o=Kr.YYYY.exec(e)||r.exec(e);if(o){const a=o[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(o=Kr.YY.exec(e)||n.exec(e),o){const a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}}return{year:null}}function Sve(e,t){if(t===null)return null;let n,r,o;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let a=Kr.MM.exec(e);if(a)return n=new Date(0),r=parseInt(a[1],10)-1,fN(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(a=Kr.DDD.exec(e),a){n=new Date(0);const i=parseInt(a[1],10);return kve(t,i)?(n.setUTCFullYear(t,0,i),n):new Date(NaN)}if(a=Kr.MMDD.exec(e),a){n=new Date(0),r=parseInt(a[1],10)-1;const i=parseInt(a[2],10);return fN(t,r,i)?(n.setUTCFullYear(t,r,i),n):new Date(NaN)}if(a=Kr.Www.exec(e),a)return o=parseInt(a[1],10)-1,hN(o)?dN(t,o):new Date(NaN);if(a=Kr.WwwD.exec(e),a){o=parseInt(a[1],10)-1;const i=parseInt(a[2],10)-1;return hN(o,i)?dN(t,o,i):new Date(NaN)}return null}function Tve(e){let t,n,r=Kr.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),o3(t)?t%24*r3:NaN;if(r=Kr.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),o3(t,n)?t%24*r3+n*uN:NaN;if(r=Kr.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const o=parseFloat(r[3].replace(",","."));return o3(t,n,o)?t%24*r3+n*uN+o*1e3:NaN}return null}function dN(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}const Ave=[31,28,31,30,31,30,31,31,30,31,30,31],Dve=[31,29,31,30,31,30,31,31,30,31,30,31];function LK(e){return e%400===0||e%4===0&&e%100!==0}function fN(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=LK(e);if(r&&n>Dve[t]||!r&&n>Ave[t])return!1}return!0}function kve(e,t){if(t<1)return!1;const n=LK(e);return!(n&&t>366||!n&&t>365)}function hN(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function o3(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const jve=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Pve(e,t,n={}){t=String(t);const r=t.match(jve);if(r){const o=MK(n.originalDate||e,n);t=r.reduce(function(a,i){if(i[0]==="'")return a;const s=a.indexOf(i),c=a[s-1]==="'",l=a.replace(i,"'"+vve[i[0]](o,i,n)+"'");return c?l.substring(0,s-1)+l.substring(s+1):l},t)}return ove(e,t,n)}function Ive(e,t,n){e=MK(e,n);const r=a4(t,e,!0),o=new Date(e.getTime()-r),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}function mN(e,t,n,r){return r={...r,timeZone:t,originalDate:e},Pve(Ive(e,t,{timeZone:r.timeZone}),n,r)}function Ove(e){return`${BK(e,Date.now(),{addSuffix:!0})}`}function hy(e,t){return t!=null&&t.compact?mN(e,"Africa/Abidjan","yyyy-MM-dd hh:mm:ss"):`${mN(e,"Africa/Abidjan","MMM-dd-yyyy hh:mm:ss aa")} +UTC`}function Rve(e){const o=Math.floor(e/36e5),a=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3);return`0${o}`.slice(-2)+":"+`0${a}`.slice(-2)+":"+`0${i}`.slice(-2)}const Nve={CRAB:{logo:"crab.png",category:"CRAB",symbol:"CRAB"},ETH:{logo:"eth.png",category:"ETH",symbol:"ETH"},RING:{logo:"ring.png",category:"RING",symbol:"RING"},USDC:{logo:"usdc.png",category:"USDC",symbol:"USDC"},USDT:{logo:"usdt.png",category:"USDT",symbol:"USDT"},PINK:{logo:"pink.png",category:"PINK",symbol:"PINK"},LINK:{logo:"link.png",category:"LINK",symbol:"LINK"},DAI:{logo:"dai.png",category:"DAI",symbol:"DAI"},BTC:{logo:"btc.png",category:"BTC",symbol:"BTC"}},UK=["USDC","USDT","ETH","BTC","DAI","LINK","RING","CRAB","PINK"],$K=new Set,tD=new Map;hm().filter(({hidden:e})=>!e).forEach(e=>{e.tokens.filter(({category:t})=>UK.some(n=>n===t)).forEach(t=>{t.cross.filter(({hidden:n,bridge:r})=>!n&&r.category==="lnbridge").forEach(n=>{const r=st(n.target.network);(r==null?void 0:r.tokens.find(({symbol:a})=>a===n.target.symbol))&&($K.add(t.category),tD.set(t.category,(tD.get(t.category)||[]).filter(({id:a})=>a!==e.id).concat(e)))})})});function Bve(){return UK.filter(e=>$K.has(e)||!0).map(e=>Nve[e])}function a3(e){return tD.get(e)||[]}function ff(e,t){return e.tokens.filter(({category:n,cross:r})=>n===t&&r.filter(({hidden:o,bridge:a})=>!o&&a.category==="lnbridge").length)}function Ep(e){return e.cross.filter(({hidden:t,bridge:n})=>!t&&n.category==="lnbridge").map(({target:t})=>st(t.network)).filter(t=>t)}function yc(e,t){return t.tokens.filter(({symbol:n})=>e.cross.some(r=>!r.hidden&&r.target.symbol===n&&r.target.network===t.network&&r.bridge.category==="lnbridge"))}function In(e){return typeof e=="function"}function Fve(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var i3=Fve(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription: -`+n.map(function(r,o){return o+1+") "+r.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=n}});function nD(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var zx=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,a;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Ku(i),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(p){t={error:p}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}else i.remove(this);var u=this.initialTeardown;if(In(u))try{u()}catch(p){a=p instanceof i3?p.errors:[p]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=Ku(d),h=f.next();!h.done;h=f.next()){var m=h.value;try{pN(m)}catch(p){a=a??[],p instanceof i3?a=vn(vn([],cl(a)),cl(p.errors)):a.push(p)}}}catch(p){r={error:p}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}if(a)throw new i3(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)pN(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&nD(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&nD(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();zx.EMPTY;function zK(e){return e instanceof zx||e&&"closed"in e&&In(e.remove)&&In(e.add)&&In(e.unsubscribe)}function pN(e){In(e)?e():e.unsubscribe()}var HK={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},qK={setTimeout:function(e,t){for(var n=[],r=2;r{try{e.setItem(t,r(s));return}catch(c){return c}};return{persistClient:P1e(s=>{let c=s,l=i(c),u=0;for(;l&&c;)u++,c=a==null?void 0:a({persistedClient:c,error:l,errorCount:u}),c&&(l=i(c))},n),restoreClient:()=>{const s=e.getItem(t);if(s)return o(s)},removeClient:()=>{e.removeItem(t)}}}return{persistClient:vN,restoreClient:()=>{},removeClient:vN}}function P1e(e,t=100){let n=null,r;return function(...o){r=o,n===null&&(n=setTimeout(()=>{e(...r),n=null},t))}}function vN(){}class mm{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const mg=typeof window>"u"||"Deno"in window;function ia(){}function I1e(e,t){return typeof e=="function"?e(t):e}function iD(e){return typeof e=="number"&&e>=0&&e!==1/0}function fY(e,t){return Math.max(e+(t||0)-Date.now(),0)}function cv(e,t,n){return my(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function hY(e,t,n){return my(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function xc(e,t,n){return my(e)?[{...t,queryKey:e},n]:[e||{},t]}function wN(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(my(i)){if(r){if(t.queryHash!==u4(i,t.options))return!1}else if(!mE(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||a&&!a(t))}function EN(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:a}=e;if(my(a)){if(!t.options.mutationKey)return!1;if(n){if(vu(t.options.mutationKey)!==vu(a))return!1}else if(!mE(t.options.mutationKey,a))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function u4(e,t){return((t==null?void 0:t.queryKeyHashFn)||vu)(e)}function vu(e){return JSON.stringify(e,(t,n)=>sD(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function mE(e,t){return mY(e,t)}function mY(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!mY(e[n],t[n])):!1}function pY(e,t){if(e===t)return e;const n=_N(e)&&_N(t);if(n||sD(e)&&sD(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),a=o.length,i=n?[]:{};let s=0;for(let c=0;c"u")return!0;const n=t.prototype;return!(!xN(n)||!n.hasOwnProperty("isPrototypeOf"))}function xN(e){return Object.prototype.toString.call(e)==="[object Object]"}function my(e){return Array.isArray(e)}function gY(e){return new Promise(t=>{setTimeout(t,e)})}function CN(e){gY(0).then(e)}function O1e(){if(typeof AbortController=="function")return new AbortController}function cD(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?pY(e,t):t}class R1e extends mm{constructor(){super(),this.setup=t=>{if(!mg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const gE=new R1e,SN=["online","offline"];class N1e extends mm{constructor(){super(),this.setup=t=>{if(!mg&&window.addEventListener){const n=()=>t();return SN.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{SN.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const yE=new N1e;function B1e(e){return Math.min(1e3*2**e,3e4)}function Wx(e){return(e??"online")==="online"?yE.isOnline():!0}class yY{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function x1(e){return e instanceof yY}function bY(e){let t=!1,n=0,r=!1,o,a,i;const s=new Promise((b,v)=>{a=b,i=v}),c=b=>{r||(h(new yY(b)),e.abort==null||e.abort())},l=()=>{t=!0},u=()=>{t=!1},d=()=>!gE.isFocused()||e.networkMode!=="always"&&!yE.isOnline(),f=b=>{r||(r=!0,e.onSuccess==null||e.onSuccess(b),o==null||o(),a(b))},h=b=>{r||(r=!0,e.onError==null||e.onError(b),o==null||o(),i(b))},m=()=>new Promise(b=>{o=v=>{const g=r||!d();return g&&b(v),g},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),p=()=>{if(r)return;let b;try{b=e.fn()}catch(v){b=Promise.reject(v)}Promise.resolve(b).then(f).catch(v=>{var g,w;if(r)return;const _=(g=e.retry)!=null?g:3,C=(w=e.retryDelay)!=null?w:B1e,x=typeof C=="function"?C(n,v):C,E=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,v);if(t||!E){h(v);return}n++,e.onFail==null||e.onFail(n,v),gY(x).then(()=>{if(d())return m()}).then(()=>{t?h(v):p()})})};return Wx(e.networkMode)?p():m().then(p),{promise:s,cancel:c,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:l,continueRetry:u}}const d4=console;function F1e(){let e=[],t=0,n=u=>{u()},r=u=>{u()};const o=u=>{let d;t++;try{d=u()}finally{t--,t||s()}return d},a=u=>{t?e.push(u):CN(()=>{n(u)})},i=u=>(...d)=>{a(()=>{u(...d)})},s=()=>{const u=e;e=[],u.length&&CN(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:o,batchCalls:i,schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u}}}const gn=F1e();class vY{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),iD(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(mg?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class M1e extends vY{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||d4,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||L1e(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=cD(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(ia).catch(ia):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!fY(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const i=O1e(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};c(s);const l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),u={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};if(c(u),(r=this.options.behavior)==null||r.onFetch(u),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=u.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=u.fetchOptions)==null?void 0:d.meta})}const f=h=>{if(x1(h)&&h.silent||this.dispatch({type:"error",error:h}),!x1(h)){var m,p,b,v;(m=(p=this.cache.config).onError)==null||m.call(p,h,this),(b=(v=this.cache.config).onSettled)==null||b.call(v,this.state.data,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=bY({fn:u.fetchFn,abort:i==null?void 0:i.abort.bind(i),onSuccess:h=>{var m,p,b,v;if(typeof h>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(h),(m=(p=this.cache.config).onSuccess)==null||m.call(p,h,this),(b=(v=this.cache.config).onSettled)==null||b.call(v,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(h,m)=>{this.dispatch({type:"failed",failureCount:h,error:m})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,a;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:Wx(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return x1(i)&&i.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),gn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function L1e(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class U1e extends mm{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const a=n.queryKey,i=(o=n.queryHash)!=null?o:u4(a,n);let s=this.get(i);return s||(s=new M1e({cache:this,logger:t.getLogger(),queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){gn.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=xc(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>wN(r,o))}findAll(t,n){const[r]=xc(t,n);return Object.keys(r).length>0?this.queries.filter(o=>wN(r,o)):this.queries}notify(t){gn.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){gn.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){gn.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class $1e extends vY{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||d4,this.observers=[],this.state=t.state||wY(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var E;return this.retryer=bY({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(T,k)=>{this.dispatch({type:"failed",failureCount:T,error:k})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(E=this.options.retry)!=null?E:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,a,i,s,c,l,u;if(!n){var d,f,h,m;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(f=this.mutationCache.config).onMutate)==null?void 0:d.call(f,this.state.variables,this));const T=await((h=(m=this.options).onMutate)==null?void 0:h.call(m,this.state.variables));T!==this.state.context&&this.dispatch({type:"loading",context:T,variables:this.state.variables})}const E=await t();return await((r=(o=this.mutationCache.config).onSuccess)==null?void 0:r.call(o,E,this.state.variables,this.state.context,this)),await((a=(i=this.options).onSuccess)==null?void 0:a.call(i,E,this.state.variables,this.state.context)),await((s=(c=this.mutationCache.config).onSettled)==null?void 0:s.call(c,E,null,this.state.variables,this.state.context,this)),await((l=(u=this.options).onSettled)==null?void 0:l.call(u,E,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:E}),E}catch(E){try{var p,b,v,g,w,_,C,x;throw await((p=(b=this.mutationCache.config).onError)==null?void 0:p.call(b,E,this.state.variables,this.state.context,this)),await((v=(g=this.options).onError)==null?void 0:v.call(g,E,this.state.variables,this.state.context)),await((w=(_=this.mutationCache.config).onSettled)==null?void 0:w.call(_,void 0,E,this.state.variables,this.state.context,this)),await((C=(x=this.options).onSettled)==null?void 0:C.call(x,void 0,E,this.state.variables,this.state.context)),E}finally{this.dispatch({type:"error",error:E})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Wx(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),gn.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function wY(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class z1e extends mm{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new $1e({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){gn.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>EN(t,n))}findAll(t){return this.mutations.filter(n=>EN(t,n))}notify(t){gn.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return gn.batch(()=>n.reduce((r,o)=>r.then(()=>o.continue().catch(ia)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function H1e(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,a,i;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,c=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,l=c==null?void 0:c.pageParam,u=(c==null?void 0:c.direction)==="forward",d=(c==null?void 0:c.direction)==="backward",f=((a=e.state.data)==null?void 0:a.pages)||[],h=((i=e.state.data)==null?void 0:i.pageParams)||[];let m=h,p=!1;const b=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>{var E;if((E=e.signal)!=null&&E.aborted)p=!0;else{var T;(T=e.signal)==null||T.addEventListener("abort",()=>{p=!0})}return e.signal}})},v=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),g=(x,E,T,k)=>(m=k?[E,...m]:[...m,E],k?[T,...x]:[...x,T]),w=(x,E,T,k)=>{if(p)return Promise.reject("Cancelled");if(typeof T>"u"&&!E&&x.length)return Promise.resolve(x);const D={queryKey:e.queryKey,pageParam:T,meta:e.options.meta};b(D);const R=v(D);return Promise.resolve(R).then(B=>g(x,T,B,k))};let _;if(!f.length)_=w([]);else if(u){const x=typeof l<"u",E=x?l:TN(e.options,f);_=w(f,x,E)}else if(d){const x=typeof l<"u",E=x?l:q1e(e.options,f);_=w(f,x,E,!0)}else{m=[];const x=typeof e.options.getNextPageParam>"u";_=(s&&f[0]?s(f[0],0,f):!0)?w([],x,h[0]):Promise.resolve(g([],h[0],f[0]));for(let T=1;T{if(s&&f[T]?s(f[T],T,f):!0){const R=x?h[T]:TN(e.options,k);return w(k,x,R)}return Promise.resolve(g(k,h[T],f[T]))})}return _.then(x=>({pages:x,pageParams:m}))}}}}function TN(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function q1e(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class W1e{constructor(t={}){this.queryCache=t.queryCache||new U1e,this.mutationCache=t.mutationCache||new z1e,this.logger=t.logger||d4,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=gE.subscribe(()=>{gE.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=yE.subscribe(()=>{yE.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=xc(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const o=cv(t,n,r),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),a=o==null?void 0:o.state.data,i=I1e(n,a);if(typeof i>"u")return;const s=cv(t),c=this.defaultQueryOptions(s);return this.queryCache.build(this,c).setData(i,{...r,manual:!0})}setQueriesData(t,n,r){return gn.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=xc(t,n),o=this.queryCache;gn.batch(()=>{o.findAll(r).forEach(a=>{o.remove(a)})})}resetQueries(t,n,r){const[o,a]=xc(t,n,r),i=this.queryCache,s={type:"active",...o};return gn.batch(()=>(i.findAll(o).forEach(c=>{c.reset()}),this.refetchQueries(s,a)))}cancelQueries(t,n,r){const[o,a={}]=xc(t,n,r);typeof a.revert>"u"&&(a.revert=!0);const i=gn.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(a)));return Promise.all(i).then(ia).catch(ia)}invalidateQueries(t,n,r){const[o,a]=xc(t,n,r);return gn.batch(()=>{var i,s;if(this.queryCache.findAll(o).forEach(l=>{l.invalidate()}),o.refetchType==="none")return Promise.resolve();const c={...o,type:(i=(s=o.refetchType)!=null?s:o.type)!=null?i:"active"};return this.refetchQueries(c,a)})}refetchQueries(t,n,r){const[o,a]=xc(t,n,r),i=gn.batch(()=>this.queryCache.findAll(o).filter(c=>!c.isDisabled()).map(c=>{var l;return c.fetch(void 0,{...a,cancelRefetch:(l=a==null?void 0:a.cancelRefetch)!=null?l:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(i).then(ia);return a!=null&&a.throwOnError||(s=s.catch(ia)),s}fetchQuery(t,n,r){const o=cv(t,n,r),a=this.defaultQueryOptions(o);typeof a.retry>"u"&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(ia).catch(ia)}fetchInfiniteQuery(t,n,r){const o=cv(t,n,r);return o.behavior=H1e(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(ia).catch(ia)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>vu(t)===vu(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>mE(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>vu(t)===vu(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>mE(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=u4(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class G1e extends mm{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),AN(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lD(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lD(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),pE(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const a=this.hasListeners();a&&DN(this.currentQuery,o,this.options,r)&&this.executeFetch(),this.updateResult(n),a&&(this.currentQuery!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const i=this.computeRefetchInterval();a&&(this.currentQuery!==o||this.options.enabled!==r.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return K1e(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ia)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),mg||this.currentResult.isStale||!iD(this.options.staleTime))return;const n=fY(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(mg||this.options.enabled===!1||!iD(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||gE.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,o=this.options,a=this.currentResult,i=this.currentResultState,s=this.currentResultOptions,c=t!==r,l=c?t.state:this.currentQueryInitialState,u=c?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:f,error:h,errorUpdatedAt:m,fetchStatus:p,status:b}=d,v=!1,g=!1,w;if(n._optimisticResults){const T=this.hasListeners(),k=!T&&AN(t,n),D=T&&DN(t,r,n,o);(k||D)&&(p=Wx(t.options.networkMode)?"fetching":"paused",f||(b="loading")),n._optimisticResults==="isRestoring"&&(p="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&u!=null&&u.isSuccess&&b!=="error")w=u.data,f=u.dataUpdatedAt,b=u.status,v=!0;else if(n.select&&typeof d.data<"u")if(a&&d.data===(i==null?void 0:i.data)&&n.select===this.selectFn)w=this.selectResult;else try{this.selectFn=n.select,w=n.select(d.data),w=cD(a==null?void 0:a.data,w,n),this.selectResult=w,this.selectError=null}catch(T){this.selectError=T}else w=d.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&b==="loading"){let T;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))T=a.data;else if(T=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof T<"u")try{T=n.select(T),this.selectError=null}catch(k){this.selectError=k}typeof T<"u"&&(b="success",w=cD(a==null?void 0:a.data,T,n),g=!0)}this.selectError&&(h=this.selectError,w=this.selectResult,m=Date.now(),b="error");const _=p==="fetching",C=b==="loading",x=b==="error";return{status:b,fetchStatus:p,isLoading:C,isSuccess:b==="success",isError:x,isInitialLoading:C&&_,data:w,dataUpdatedAt:f,error:h,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:_,isRefetching:_&&!C,isLoadingError:x&&d.dataUpdatedAt===0,isPaused:p==="paused",isPlaceholderData:g,isPreviousData:v,isRefetchError:x&&d.dataUpdatedAt!==0,isStale:f4(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,pE(r,n))return;this.currentResult=r;const o={cache:!0},a=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!this.trackedProps.size)return!0;const c=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&c.add("error"),Object.keys(this.currentResult).some(l=>{const u=l;return this.currentResult[u]!==n[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&a()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!x1(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){gn.batch(()=>{if(t.onSuccess){var n,r,o,a;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(o=(a=this.options).onSettled)==null||o.call(a,this.currentResult.data,null)}else if(t.onError){var i,s,c,l;(i=(s=this.options).onError)==null||i.call(s,this.currentResult.error),(c=(l=this.options).onSettled)==null||c.call(l,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function V1e(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function AN(e,t){return V1e(e,t)||e.state.dataUpdatedAt>0&&lD(e,t,t.refetchOnMount)}function lD(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&f4(e,t)}return!1}function DN(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&f4(e,n)}function f4(e,t){return e.isStaleByTime(t.staleTime)}function K1e(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!pE(e.getCurrentResult(),t)}let Y1e=class extends mm{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),pE(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:wY(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){gn.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,o,a;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(o=(a=this.mutateOptions).onSettled)==null||o.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var i,s,c,l;(i=(s=this.mutateOptions).onError)==null||i.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(c=(l=this.mutateOptions).onSettled)==null||c.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)})})}};function Q1e(e){return{mutationKey:e.options.mutationKey,state:e.state}}function X1e(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}function J1e(e){return e.state.isPaused}function Z1e(e){return e.state.status==="success"}function ewe(e,t={}){const n=[],r=[];if(t.dehydrateMutations!==!1){const o=t.shouldDehydrateMutation||J1e;e.getMutationCache().getAll().forEach(a=>{o(a)&&n.push(Q1e(a))})}if(t.dehydrateQueries!==!1){const o=t.shouldDehydrateQuery||Z1e;e.getQueryCache().getAll().forEach(a=>{o(a)&&r.push(X1e(a))})}return{mutations:n,queries:r}}function twe(e,t,n){if(typeof t!="object"||t===null)return;const r=e.getMutationCache(),o=e.getQueryCache(),a=t.mutations||[],i=t.queries||[];a.forEach(s=>{var c;r.build(e,{...n==null||(c=n.defaultOptions)==null?void 0:c.mutations,mutationKey:s.mutationKey},s.state)}),i.forEach(({queryKey:s,state:c,queryHash:l})=>{var u;const d=o.get(l);if(d){if(d.state.dataUpdatedAt"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?lwe:cwe;_Y.useSyncExternalStore=xh.useSyncExternalStore!==void 0?xh.useSyncExternalStore:uwe;EY.exports=_Y;var h4=EY.exports;const dwe=h4.useSyncExternalStore,kN=S.createContext(void 0),xY=S.createContext(!1);function CY(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=kN),window.ReactQueryClientContext):kN)}const m4=({context:e}={})=>{const t=S.useContext(CY(e,S.useContext(xY)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},fwe=({client:e,children:t,context:n,contextSharing:r=!1})=>{S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=CY(n,r);return S.createElement(xY.Provider,{value:!n&&r},S.createElement(o.Provider,{value:e},t))},SY=S.createContext(!1),hwe=()=>S.useContext(SY);SY.Provider;function mwe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const pwe=S.createContext(mwe()),gwe=()=>S.useContext(pwe);function ywe(e,t){return typeof e=="function"?e(...t):!!e}function bwe(e,t,n){const r=hY(e,t,n),o=m4({context:r.context}),[a]=S.useState(()=>new Y1e(o,r));S.useEffect(()=>{a.setOptions(r)},[a,r]);const i=dwe(S.useCallback(c=>a.subscribe(gn.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s=S.useCallback((c,l)=>{a.mutate(c,l).catch(vwe)},[a]);if(i.error&&ywe(a.options.useErrorBoundary,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}function vwe(){}const wwe=["added","removed","updated"];function jN(e){return wwe.includes(e)}async function Ewe({queryClient:e,persister:t,maxAge:n=1e3*60*60*24,buster:r="",hydrateOptions:o}){try{const a=await t.restoreClient();if(a)if(a.timestamp){const i=Date.now()-a.timestamp>n,s=a.buster!==r;i||s?t.removeClient():twe(e,a.clientState,o)}else t.removeClient()}catch{t.removeClient()}}async function PN({queryClient:e,persister:t,buster:n="",dehydrateOptions:r}){const o={buster:n,timestamp:Date.now(),clientState:ewe(e,r)};await t.persistClient(o)}function _we(e){const t=e.queryClient.getQueryCache().subscribe(r=>{jN(r.type)&&PN(e)}),n=e.queryClient.getMutationCache().subscribe(r=>{jN(r.type)&&PN(e)});return()=>{t(),n()}}function xwe(e){let t=!1,n;const r=()=>{t=!0,n==null||n()},o=Ewe(e).then(()=>{t||(n=_we(e))});return[r,o]}var TY=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured for connector "${t}".`),this.name="ChainNotConfiguredForConnectorError"}},ua=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}};function Ju(e){return typeof e=="string"?Number.parseInt(e,e.trim().substring(0,2)==="0x"?16:10):typeof e=="bigint"?Number(e):e}var AY={exports:{}};(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 a(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),m=n?n+l:l;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],h]:c._events[m].push(h):(c._events[m]=h,c._eventsCount++),c}function i(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function s(){this._events=new r,this._eventsCount=0}s.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},s.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,m=new Array(h);f{if(!t.has(e))throw TypeError("Cannot "+n)},ft=(e,t,n)=>(p4(e,t,"read from private field"),n?n.call(e):t.get(e)),Fn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},As=(e,t,n,r)=>(p4(e,t,"write to private field"),t.set(e,n),n),Bn=(e,t,n)=>(p4(e,t,"access private method"),n),py=class extends Swe{constructor({chains:e=[Ux,Mye],options:t}){super(),this.chains=e,this.options=t}getBlockExplorerUrls(e){const{default:t,...n}=e.blockExplorers??{};if(t)return[t.url,...Object.values(n).map(r=>r.url)]}isChainUnsupported(e){return!this.chains.some(t=>t.id===e)}setStorage(e){this.storage=e}};function Twe(e){var n;if(!e)return"Injected";const t=r=>{if(r.isApexWallet)return"Apex Wallet";if(r.isAvalanche)return"Core Wallet";if(r.isBackpack)return"Backpack";if(r.isBifrost)return"Bifrost Wallet";if(r.isBitKeep)return"BitKeep";if(r.isBitski)return"Bitski";if(r.isBlockWallet)return"BlockWallet";if(r.isBraveWallet)return"Brave Wallet";if(r.isCoin98)return"Coin98 Wallet";if(r.isCoinbaseWallet)return"Coinbase Wallet";if(r.isDawn)return"Dawn Wallet";if(r.isDefiant)return"Defiant";if(r.isDesig)return"Desig Wallet";if(r.isEnkrypt)return"Enkrypt";if(r.isExodus)return"Exodus";if(r.isFordefi)return"Fordefi";if(r.isFrame)return"Frame";if(r.isFrontier)return"Frontier Wallet";if(r.isGamestop)return"GameStop Wallet";if(r.isHaqqWallet)return"HAQQ Wallet";if(r.isHyperPay)return"HyperPay Wallet";if(r.isImToken)return"ImToken";if(r.isHaloWallet)return"Halo Wallet";if(r.isKuCoinWallet)return"KuCoin Wallet";if(r.isMathWallet)return"MathWallet";if(r.isNovaWallet)return"Nova Wallet";if(r.isOkxWallet||r.isOKExWallet)return"OKX Wallet";if(r.isOktoWallet)return"Okto Wallet";if(r.isOneInchIOSWallet||r.isOneInchAndroidWallet)return"1inch Wallet";if(r.isOneKey)return"OneKey Wallet";if(r.isOpera)return"Opera";if(r.isPhantom)return"Phantom";if(r.isPortal)return"Ripio Portal";if(r.isRabby)return"Rabby Wallet";if(r.isRainbow)return"Rainbow";if(r.isSafePal)return"SafePal Wallet";if(r.isStatus)return"Status";if(r.isSubWallet)return"SubWallet";if(r.isTalisman)return"Talisman";if(r.isTally)return"Taho";if(r.isTokenPocket)return"TokenPocket";if(r.isTokenary)return"Tokenary";if(r.isTrust||r.isTrustWallet)return"Trust Wallet";if(r.isTTWallet)return"TTWallet";if(r.isXDEFI)return"XDEFI Wallet";if(r.isZeal)return"Zeal";if(r.isZerion)return"Zerion";if(r.isMetaMask)return"MetaMask"};if((n=e.providers)!=null&&n.length){const r=new Set;let o=1;for(const i of e.providers){let s=t(i);s||(s=`Unknown Wallet #${o}`,o+=1),r.add(s)}const a=[...r];return a.length?a:a[0]??"Injected"}return t(e)??"Injected"}var C1,Ds=class extends py{constructor({chains:e,options:t}={}){const n={shimDisconnect:!0,getProvider(){if(typeof window>"u")return;const o=window.ethereum;return o!=null&&o.providers&&o.providers.length>0?o.providers[0]:o},...t};super({chains:e,options:n}),this.id="injected",Fn(this,C1,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=o=>{o.length===0?this.emit("disconnect"):this.emit("change",{account:Rr(o[0])})},this.onChainChanged=o=>{const a=Ju(o),i=this.isChainUnsupported(a);this.emit("change",{chain:{id:a,unsupported:i}})},this.onDisconnect=async o=>{var a;o.code===1013&&await this.getProvider()&&await this.getAccount()||(this.emit("disconnect"),this.options.shimDisconnect&&((a=this.storage)==null||a.removeItem(this.shimDisconnectKey)))};const r=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(r){const o=Twe(r);n.name?this.name=n.name(o):typeof o=="string"?this.name=o:this.name=o[0]}else this.name="Injected";this.ready=!!r}async connect({chainId:e}={}){var t;try{const n=await this.getProvider();if(!n)throw new ua;n.on&&(n.on("accountsChanged",this.onAccountsChanged),n.on("chainChanged",this.onChainChanged),n.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const r=await n.request({method:"eth_requestAccounts"}),o=Rr(r[0]);let a=await this.getChainId(),i=this.isChainUnsupported(a);return e&&a!==e&&(a=(await this.switchChain(e)).id,i=this.isChainUnsupported(a)),this.options.shimDisconnect&&((t=this.storage)==null||t.setItem(this.shimDisconnectKey,!0)),{account:o,chain:{id:a,unsupported:i}}}catch(n){throw this.isUserRejectedRequestError(n)?new dr(n):n.code===-32002?new gh(n):n}}async disconnect(){var t;const e=await this.getProvider();e!=null&&e.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((t=this.storage)==null||t.removeItem(this.shimDisconnectKey)))}async getAccount(){const e=await this.getProvider();if(!e)throw new ua;const t=await e.request({method:"eth_accounts"});return Rr(t[0])}async getChainId(){const e=await this.getProvider();if(!e)throw new ua;return e.request({method:"eth_chainId"}).then(Ju)}async getProvider(){const e=this.options.getProvider();return e&&As(this,C1,e),ft(this,C1)}async getWalletClient({chainId:e}={}){const[t,n]=await Promise.all([this.getProvider(),this.getAccount()]),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){var e;try{if(this.options.shimDisconnect&&!((e=this.storage)!=null&&e.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new ua;return!!await this.getAccount()}catch{return!1}}async switchChain(e){var r,o,a;const t=await this.getProvider();if(!t)throw new ua;const n=Xe(e);try{return await Promise.all([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(i=>this.on("change",({chain:s})=>{(s==null?void 0:s.id)===e&&i()}))]),this.chains.find(i=>i.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(i){const s=this.chains.find(c=>c.id===e);if(!s)throw new TY({chainId:e,connectorId:this.id});if(i.code===4902||((o=(r=i==null?void 0:i.data)==null?void 0:r.originalError)==null?void 0:o.code)===4902)try{if(await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:[((a=s.rpcUrls.public)==null?void 0:a.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(s)}]}),await this.getChainId()!==e)throw new dr(new Error("User rejected switch after adding network."));return s}catch(c){throw new dr(c)}throw this.isUserRejectedRequestError(i)?new dr(i):new ol(i)}}async watchAsset({address:e,decimals:t=18,image:n,symbol:r}){const o=await this.getProvider();if(!o)throw new ua;return o.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:n,symbol:r}}})}isUserRejectedRequestError(e){return e.code===4001}};C1=new WeakMap;var g4=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},l3=(e,t,n)=>(g4(e,t,"read from private field"),t.get(e)),u3=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},lv=(e,t,n,r)=>(g4(e,t,"write to private field"),t.set(e,n),n),Awe=(e,t,n)=>(g4(e,t,"access private method"),n),Dwe={VITE_WALLET_CONNECT_ID:"2719448e2ce94fdd269a3c8587123bcc",VITE_GRAPHQL_ENDPOINT:"https://apollo.helixbridge.app/graphql",VITE_NETWORK_TYPE:"mainnet",BASE_URL:"./",MODE:"mainnet",DEV:!1,PROD:!0,SSR:!1};const kwe=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(i,s,c)=>{let l=i;if(s){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 m=d;s(d=h,m)}},c!=null&&c.fireImmediately&&s(d,d)}return o(l)},e(t,n,r)},jwe=kwe;function Pwe(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var a;const i=c=>c===null?null:JSON.parse(c,void 0),s=(a=n.getItem(o))!=null?a:null;return s instanceof Promise?s.then(i):i(s)},setItem:(o,a)=>n.setItem(o,JSON.stringify(a,void 0)),removeItem:o=>n.removeItem(o)}}const pg=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return pg(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return pg(r)(n)}}}},Iwe=(e,t)=>(n,r,o)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:b=>b,version:0,merge:(b,v)=>({...v,...b}),...t},i=!1;const s=new Set,c=new Set;let l;try{l=a.getStorage()}catch{}if(!l)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...b)},r,o);const u=pg(a.serialize),d=()=>{const b=a.partialize({...r()});let v;const g=u({state:b,version:a.version}).then(w=>l.setItem(a.name,w)).catch(w=>{v=w});if(v)throw v;return g},f=o.setState;o.setState=(b,v)=>{f(b,v),d()};const h=e((...b)=>{n(...b),d()},r,o);let m;const p=()=>{var b;if(!l)return;i=!1,s.forEach(g=>g(r()));const v=((b=a.onRehydrateStorage)==null?void 0:b.call(a,r()))||void 0;return pg(l.getItem.bind(l))(a.name).then(g=>{if(g)return a.deserialize(g)}).then(g=>{if(g)if(typeof g.version=="number"&&g.version!==a.version){if(a.migrate)return a.migrate(g.state,g.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return g.state}).then(g=>{var w;return m=a.merge(g,(w=r())!=null?w:h),n(m,!0),d()}).then(()=>{v==null||v(m,void 0),i=!0,c.forEach(g=>g(m))}).catch(g=>{v==null||v(void 0,g)})};return o.persist={setOptions:b=>{a={...a,...b},b.getStorage&&(l=b.getStorage())},clearStorage:()=>{l==null||l.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>p(),hasHydrated:()=>i,onHydrate:b=>(s.add(b),()=>{s.delete(b)}),onFinishHydration:b=>(c.add(b),()=>{c.delete(b)})},p(),m||h},Owe=(e,t)=>(n,r,o)=>{let a={storage:Pwe(()=>localStorage),partialize:p=>p,version:0,merge:(p,b)=>({...b,...p}),...t},i=!1;const s=new Set,c=new Set;let l=a.storage;if(!l)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...p)},r,o);const u=()=>{const p=a.partialize({...r()});return l.setItem(a.name,{state:p,version:a.version})},d=o.setState;o.setState=(p,b)=>{d(p,b),u()};const f=e((...p)=>{n(...p),u()},r,o);o.getInitialState=()=>f;let h;const m=()=>{var p,b;if(!l)return;i=!1,s.forEach(g=>{var w;return g((w=r())!=null?w:f)});const v=((b=a.onRehydrateStorage)==null?void 0:b.call(a,(p=r())!=null?p:f))||void 0;return pg(l.getItem.bind(l))(a.name).then(g=>{if(g)if(typeof g.version=="number"&&g.version!==a.version){if(a.migrate)return a.migrate(g.state,g.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return g.state}).then(g=>{var w;return h=a.merge(g,(w=r())!=null?w:f),n(h,!0),u()}).then(()=>{v==null||v(h,void 0),h=r(),i=!0,c.forEach(g=>g(h))}).catch(g=>{v==null||v(void 0,g)})};return o.persist={setOptions:p=>{a={...a,...p},p.storage&&(l=p.storage)},clearStorage:()=>{l==null||l.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>i,onHydrate:p=>(s.add(p),()=>{s.delete(p)}),onFinishHydration:p=>(c.add(p),()=>{c.delete(p)})},a.skipHydration||m(),h||f},Rwe=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Dwe?"mainnet":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Iwe(e,t)):Owe(e,t),Nwe=Rwe;var Bwe={VITE_WALLET_CONNECT_ID:"2719448e2ce94fdd269a3c8587123bcc",VITE_GRAPHQL_ENDPOINT:"https://apollo.helixbridge.app/graphql",VITE_NETWORK_TYPE:"mainnet",BASE_URL:"./",MODE:"mainnet",DEV:!1,PROD:!0,SSR:!1};const IN=e=>{let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const h=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(m=>m(t,h))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(Bwe?"mainnet":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},l=t=e(r,o,c);return c},Fwe=e=>e?IN(e):IN;function y4(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function Mwe(e,t,{batch:n={multicall:{wait:32}},pollingInterval:r=4e3,rank:o,retryCount:a,retryDelay:i,stallTimeout:s}={}){if(!e.length)throw new Error("must have at least one chain");let c=[];const l={},u={};for(const d of e){let f=!1;for(const h of t){const m=h(d);m&&(f=!0,c.some(({id:p})=>p===d.id)||(c=[...c,m.chain]),l[d.id]=[...l[d.id]||[],...m.rpcUrls.http],m.rpcUrls.webSocket&&(u[d.id]=[...u[d.id]||[],...m.rpcUrls.webSocket]))}if(!f)throw new Error([`Could not find valid provider configuration for chain "${d.name}". -`,"You may need to add `jsonRpcProvider` to `configureChains` with the chain's RPC URLs.","Read more: https://wagmi.sh/core/providers/jsonRpc"].join(` -`))}return{chains:c,publicClient:({chainId:d})=>{const f=c.find(p=>p.id===d)??e[0],h=l[f.id];if(!h||!h[0])throw new Error(`No providers configured for chain "${f.id}"`);const m=Vu({batch:n,chain:f,transport:kO(h.map(p=>yh(p,{timeout:s})),{rank:o,retryCount:a,retryDelay:i}),pollingInterval:r});return Object.assign(m,{chains:c})},webSocketPublicClient:({chainId:d})=>{const f=c.find(p=>p.id===d)??e[0],h=u[f.id];if(!h||!h[0])return;const m=Vu({batch:n,chain:f,transport:kO(h.map(p=>Ufe(p,{timeout:s})),{rank:o,retryCount:a,retryDelay:i}),pollingInterval:r});return Object.assign(m,{chains:c})}}}var Lwe=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured${t?` for connector "${t}"`:""}.`),this.name="ChainNotConfigured"}},Uwe=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},$we=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},zwe=class extends Error{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}};function uD(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(!uD(e[r],t[r]))return!1;return!0}if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(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.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(a&&!uD(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}var dD=(e,{find:t,replace:n})=>e&&t(e)?n(e):typeof e!="object"?e:Array.isArray(e)?e.map(r=>dD(r,{find:t,replace:n})):e instanceof Object?Object.entries(e).reduce((r,[o,a])=>({...r,[o]:dD(a,{find:t,replace:n})}),{}):e;function Hwe(e){const t=JSON.parse(e);return dD(t,{find:r=>typeof r=="string"&&r.startsWith("#bigint."),replace:r=>BigInt(r.replace("#bigint.",""))})}function ON(e){return typeof e=="number"?e:e==="wei"?0:Math.abs(sue[e])}function RN(e,t){return e.slice(0,t).join(".")||"."}function NN(e,t){const{length:n}=e;for(let r=0;r{const i=typeof a=="bigint"?`#bigint.${a.toString()}`:a;return(t==null?void 0:t(o,i))||i},r),n??void 0)}var DY={getItem:e=>"",setItem:(e,t)=>null,removeItem:e=>null};function kY({deserialize:e=Hwe,key:t="wagmi",serialize:n=Wwe,storage:r}){return{...r,getItem:(o,a=null)=>{const i=r.getItem(`${t}.${o}`);try{return i?e(i):a}catch(s){return console.warn(s),a}},setItem:(o,a)=>{if(a===null)r.removeItem(`${t}.${o}`);else try{r.setItem(`${t}.${o}`,n(a))}catch(i){console.error(i)}},removeItem:o=>r.removeItem(`${t}.${o}`)}}var BN="store",hf,e0,fD,jY,Gwe=class{constructor({autoConnect:e=!1,connectors:t=[new Ds],publicClient:n,storage:r=kY({storage:typeof window<"u"?window.localStorage:DY}),logger:o={warn:console.warn},webSocketPublicClient:a}){var l,u;u3(this,fD),this.publicClients=new Map,this.webSocketPublicClients=new Map,u3(this,hf,void 0),u3(this,e0,void 0),this.args={autoConnect:e,connectors:t,logger:o,publicClient:n,storage:r,webSocketPublicClient:a};let i="disconnected",s;if(e)try{const d=r.getItem(BN),f=(l=d==null?void 0:d.state)==null?void 0:l.data;i=f!=null&&f.account?"reconnecting":"connecting",s=(u=f==null?void 0:f.chain)==null?void 0:u.id}catch{}const c=typeof t=="function"?t():t;c.forEach(d=>d.setStorage(r)),this.store=Fwe(jwe(Nwe(()=>({connectors:c,publicClient:this.getPublicClient({chainId:s}),status:i,webSocketPublicClient:this.getWebSocketPublicClient({chainId:s})}),{name:BN,storage:r,partialize:d=>{var f,h;return{...e&&{data:{account:(f=d==null?void 0:d.data)==null?void 0:f.account,chain:(h=d==null?void 0:d.data)==null?void 0:h.chain}},chains:d==null?void 0:d.chains}},version:2}))),this.storage=r,lv(this,e0,r==null?void 0:r.getItem("wallet")),Awe(this,fD,jY).call(this),e&&typeof window<"u"&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){var e,t;return(t=(e=this.data)==null?void 0:e.chain)==null?void 0:t.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(e){const t=typeof e=="function"?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState(e=>({...e,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){var e,t;this.connector&&await((t=(e=this.connector).disconnect)==null?void 0:t.call(e)),lv(this,hf,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(l3(this,hf))return;lv(this,hf,!0),this.setState(n=>{var r;return{...n,status:(r=n.data)!=null&&r.account?"reconnecting":"connecting"}});const e=l3(this,e0)?[...this.connectors].sort(n=>n.id===l3(this,e0)?-1:1):this.connectors;let t=!1;for(const n of e){if(!n.ready||!n.isAuthorized||!await n.isAuthorized())continue;const o=await n.connect();this.setState(a=>({...a,connector:n,chains:n==null?void 0:n.chains,data:o,status:"connected"})),t=!0;break}return t||this.setState(n=>({...n,data:void 0,status:"disconnected"})),lv(this,hf,!1),this.data}setConnectors(e){this.args={...this.args,connectors:e};const t=typeof e=="function"?e():e;t.forEach(n=>n.setStorage(this.args.storage)),this.setState(n=>({...n,connectors:t}))}getPublicClient({chainId:e}={}){let t=this.publicClients.get(-1);if(t&&(t==null?void 0:t.chain.id)===e||(t=this.publicClients.get(e??-1),t))return t;const{publicClient:n}=this.args;return t=typeof n=="function"?n({chainId:e}):n,this.publicClients.set(e??-1,t),t}setPublicClient(e){var n,r;const t=(r=(n=this.data)==null?void 0:n.chain)==null?void 0:r.id;this.args={...this.args,publicClient:e},this.publicClients.clear(),this.setState(o=>({...o,publicClient:this.getPublicClient({chainId:t})}))}getWebSocketPublicClient({chainId:e}={}){let t=this.webSocketPublicClients.get(-1);if(t&&(t==null?void 0:t.chain.id)===e||(t=this.webSocketPublicClients.get(e??-1),t))return t;const{webSocketPublicClient:n}=this.args;return t=typeof n=="function"?n({chainId:e}):n,t&&this.webSocketPublicClients.set(e??-1,t),t}setWebSocketPublicClient(e){var n,r;const t=(r=(n=this.data)==null?void 0:n.chain)==null?void 0:r.id;this.args={...this.args,webSocketPublicClient:e},this.webSocketPublicClients.clear(),this.setState(o=>({...o,webSocketPublicClient:this.getWebSocketPublicClient({chainId:t})}))}setLastUsedConnector(e=null){var t;(t=this.storage)==null||t.setItem("wallet",e)}};hf=new WeakMap;e0=new WeakMap;fD=new WeakSet;jY=function(){const e=s=>{this.setState(c=>({...c,data:{...c.data,...s}}))},t=()=>{this.clearState()},n=s=>{this.setState(c=>({...c,error:s}))};this.store.subscribe(({connector:s})=>s,(s,c)=>{var l,u,d,f,h,m;(l=c==null?void 0:c.off)==null||l.call(c,"change",e),(u=c==null?void 0:c.off)==null||u.call(c,"disconnect",t),(d=c==null?void 0:c.off)==null||d.call(c,"error",n),s&&((f=s.on)==null||f.call(s,"change",e),(h=s.on)==null||h.call(s,"disconnect",t),(m=s.on)==null||m.call(s,"error",n))});const{publicClient:r,webSocketPublicClient:o}=this.args;(typeof r=="function"||typeof o=="function")&&this.store.subscribe(({data:s})=>{var c;return(c=s==null?void 0:s.chain)==null?void 0:c.id},s=>{this.setState(c=>({...c,publicClient:this.getPublicClient({chainId:s}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:s})}))})};var hD;function Vwe(e){const t=new Gwe(e);return hD=t,t}function oo(){if(!hD)throw new Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return hD}async function Kwe({chainId:e,connector:t}){const n=oo(),r=n.connector;if(r&&t.id===r.id)throw new Uwe;try{n.setState(a=>({...a,status:"connecting"}));const o=await t.connect({chainId:e});return n.setLastUsedConnector(t.id),n.setState(a=>({...a,connector:t,chains:t==null?void 0:t.chains,data:o,status:"connected"})),n.storage.setItem("connected",!0),{...o,connector:t}}catch(o){throw n.setState(a=>({...a,status:a.connector?"connected":"disconnected"})),o}}async function Ywe(){const e=oo();e.connector&&await e.connector.disconnect(),e.clearState(),e.storage.removeItem("connected")}var Qwe=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],Xwe=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function Mi({chainId:e}={}){const t=oo();return e&&t.getPublicClient({chainId:e})||t.publicClient}async function b4({chainId:e}={}){var r,o;return await((o=(r=oo().connector)==null?void 0:r.getWalletClient)==null?void 0:o.call(r,{chainId:e}))||null}function mD({chainId:e}={}){const t=oo();return e&&t.getWebSocketPublicClient({chainId:e})||t.webSocketPublicClient}function Jwe(e,t){const n=oo(),r=async()=>t(Mi(e));return n.subscribe(({publicClient:a})=>a,r)}function Zwe({chainId:e},t){const n=oo(),r=async({chainId:a})=>{if(e&&a&&e!==a)return;const i=await b4({chainId:e});return oo().connector?t(i):t(null)};return n.subscribe(({data:a,connector:i})=>{var s;return{account:a==null?void 0:a.account,chainId:(s=a==null?void 0:a.chain)==null?void 0:s.id,connector:i}},r,{equalityFn:y4})}function eEe(e,t){const n=oo(),r=async()=>t(mD(e));return n.subscribe(({webSocketPublicClient:a})=>a,r)}async function tEe({chainId:e,contracts:t,blockNumber:n,blockTag:r,...o}){const a=Mi({chainId:e});if(!a.chains)throw new $we;if(e&&a.chain.id!==e)throw new Lwe({chainId:e});return a.multicall({allowFailure:o.allowFailure??!0,blockNumber:n,blockTag:r,contracts:t})}async function nEe({address:e,account:t,chainId:n,abi:r,args:o,functionName:a,blockNumber:i,blockTag:s}){return Mi({chainId:n}).readContract({abi:r,address:e,account:t,functionName:a,args:o,blockNumber:i,blockTag:s})}async function rEe({contracts:e,blockNumber:t,blockTag:n,...r}){const{allowFailure:o=!0}=r;try{const a=Mi(),i=e.reduce((u,d,f)=>{const h=d.chainId??a.chain.id;return{...u,[h]:[...u[h]||[],{contract:d,index:f}]}},{}),s=()=>Object.entries(i).map(([u,d])=>tEe({allowFailure:o,chainId:parseInt(u),contracts:d.map(({contract:f})=>f),blockNumber:t,blockTag:n})),c=(await Promise.all(s())).flat(),l=Object.values(i).flatMap(u=>u.map(({index:d})=>d));return c.reduce((u,d,f)=>(u&&(u[l[f]]=d),u),[])}catch(a){if(a instanceof Y8)throw a;const i=()=>e.map(s=>nEe({...s,blockNumber:t,blockTag:n}));return o?(await Promise.allSettled(i())).map(s=>s.status==="fulfilled"?{result:s.value,status:"success"}:{error:s.reason,result:void 0,status:"failure"}):await Promise.all(i())}}async function oEe({address:e,chainId:t,formatUnits:n,token:r}){const o=oo(),a=Mi({chainId:t});if(r){const l=async({abi:u})=>{const d={abi:u,address:r,chainId:t},[f,h,m]=await rEe({allowFailure:!1,contracts:[{...d,functionName:"balanceOf",args:[e]},{...d,functionName:"decimals"},{...d,functionName:"symbol"}]});return{decimals:h,formatted:Wu(f??"0",ON(n??h)),symbol:m,value:f}};try{return await l({abi:Qwe})}catch(u){if(u instanceof Y8){const{symbol:d,...f}=await l({abi:Xwe});return{symbol:RH(Za(d,{dir:"right"})),...f}}throw u}}const i=[...o.publicClient.chains||[],...o.chains??[]],s=await a.getBalance({address:e}),c=i.find(l=>l.id===a.chain.id);return{decimals:(c==null?void 0:c.nativeCurrency.decimals)??18,formatted:Wu(s??"0",ON(n??18)),symbol:(c==null?void 0:c.nativeCurrency.symbol)??"ETH",value:s}}function PY(){const{data:e,connector:t,status:n}=oo();switch(n){case"connected":return{address:e==null?void 0:e.account,connector:t,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:n};case"reconnecting":return{address:e==null?void 0:e.account,connector:t,isConnected:!!(e!=null&&e.account),isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:n};case"connecting":return{address:e==null?void 0:e.account,connector:t,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:n};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:n}}}function IY(){var o,a,i,s;const e=oo(),t=(a=(o=e.data)==null?void 0:o.chain)==null?void 0:a.id,n=e.chains??[],r=[...((i=e.publicClient)==null?void 0:i.chains)||[],...n].find(c=>c.id===t)??{id:t,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:t?{...r,...(s=e.data)==null?void 0:s.chain,id:t}:void 0,chains:n}}async function aEe(e){const t=await b4();if(!t)throw new ua;return await t.signMessage({message:e.message})}async function iEe({chainId:e}){const{connector:t}=oo();if(!t)throw new ua;if(!t.switchChain)throw new zwe({connector:t});return t.switchChain(e)}function sEe(e,{selector:t=n=>n}={}){const n=oo(),r=()=>e(PY());return n.subscribe(({data:a,connector:i,status:s})=>t({address:a==null?void 0:a.account,connector:i,status:s}),r,{equalityFn:y4})}function cEe(e,{selector:t=n=>n}={}){const n=oo(),r=()=>e(IY());return n.subscribe(({data:a,chains:i})=>{var s;return t({chainId:(s=a==null?void 0:a.chain)==null?void 0:s.id,chains:i})},r,{equalityFn:y4})}async function lEe({name:e,chainId:t}){const{normalize:n}=await me(async()=>{const{normalize:a}=await import("./index-DCYYXl21.js");return{normalize:a}},[],import.meta.url);return await Mi({chainId:t}).getEnsAvatar({name:n(e)})}async function uEe({address:e,chainId:t}){return Mi({chainId:t}).getEnsName({address:Rr(e)})}async function dEe({chainId:e}={}){return await Mi({chainId:e}).getBlockNumber()}var OY={exports:{}},RY={};/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Gx=S,fEe=h4;function hEe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mEe=typeof Object.is=="function"?Object.is:hEe,pEe=fEe.useSyncExternalStore,gEe=Gx.useRef,yEe=Gx.useEffect,bEe=Gx.useMemo,vEe=Gx.useDebugValue;RY.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a=gEe(null);if(a.current===null){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=bEe(function(){function c(h){if(!l){if(l=!0,u=h,h=r(h),o!==void 0&&i.hasValue){var m=i.value;if(o(m,h))return d=m}return d=h}if(m=d,mEe(u,h))return m;var p=r(h);return o!==void 0&&o(m,p)?m:(u=h,d=p)}var l=!1,u,d,f=n===void 0?null:n;return[function(){return c(t())},f===null?void 0:function(){return c(f())}]},[t,n,r,o]);var s=pEe(e,a[0],a[1]);return yEe(function(){i.hasValue=!0,i.value=s},[s]),vEe(s),s};OY.exports=RY;var v4=OY.exports;function wEe({queryClient:e=new W1e({defaultOptions:{queries:{cacheTime:1e3*60*60*24,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:t=kY({storage:typeof window<"u"&&window.localStorage?window.localStorage:DY}),persister:n=typeof window<"u"?j1e({key:"cache",storage:t,serialize:o=>o,deserialize:o=>o}):void 0,...r}){const o=Vwe({...r,storage:t});return n&&xwe({queryClient:e,persister:n,dehydrateOptions:{shouldDehydrateQuery:a=>a.cacheTime!==0&&a.queryKey[0].persist!==!1}}),Object.assign(o,{queryClient:e})}var NY=S.createContext(void 0),Vx=S.createContext(void 0);function EEe({children:e,config:t}){return S.createElement(NY.Provider,{children:S.createElement(fwe,{children:e,client:t.queryClient,context:Vx}),value:t})}function Kx(){const e=S.useContext(NY);if(!e)throw new Error(["`useConfig` must be used within `WagmiConfig`.\n","Read more: https://wagmi.sh/react/WagmiConfig"].join(` -`));return e}var _Ee=h4.useSyncExternalStore;function xEe(e){return Array.isArray(e)}function CEe(e){if(!FN(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!FN(n)||!n.hasOwnProperty("isPrototypeOf"))}function FN(e){return Object.prototype.toString.call(e)==="[object Object]"}function SEe(e,t,n){return xEe(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function TEe(e){return JSON.stringify(e,(t,n)=>CEe(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):typeof n=="bigint"?n.toString():n)}function AEe(e,t){return typeof e=="function"?e(...t):!!e}function DEe(e,t){const n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(t.trackedProps.add(r),e[r])})}),n}function kEe(e,t){const n=m4({context:e.context}),r=hwe(),o=gwe(),a=n.defaultQueryOptions({...e,queryKeyHashFn:TEe});a._optimisticResults=r?"isRestoring":"optimistic",a.onError&&(a.onError=gn.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=gn.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=gn.batchCalls(a.onSettled)),a.suspense&&typeof a.staleTime!="number"&&(a.staleTime=1e3),(a.suspense||a.useErrorBoundary)&&(o.isReset()||(a.retryOnMount=!1));const[i]=S.useState(()=>new t(n,a)),s=i.getOptimisticResult(a);if(_Ee(S.useCallback(d=>r?()=>{}:i.subscribe(gn.batchCalls(d)),[i,r]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),S.useEffect(()=>{o.clearReset()},[o]),S.useEffect(()=>{i.setOptions(a,{listeners:!1})},[a,i]),a.suspense&&s.isLoading&&s.isFetching&&!r)throw i.fetchOptimistic(a).then(({data:d})=>{var f,h;(f=a.onSuccess)==null||f.call(a,d),(h=a.onSettled)==null||h.call(a,d,null)}).catch(d=>{var f,h;o.clearReset(),(f=a.onError)==null||f.call(a,d),(h=a.onSettled)==null||h.call(a,void 0,d)});if(s.isError&&!o.isReset()&&!s.isFetching&&AEe(a.useErrorBoundary,[s.error,i.getCurrentQuery()]))throw s.error;const c=s.status==="loading"&&s.fetchStatus==="idle"?"idle":s.status,l=c==="idle",u=c==="loading"&&s.fetchStatus==="fetching";return{...s,defaultedOptions:a,isIdle:l,isLoading:u,observer:i,status:c}}function Yx(e,t,n){const r=hY(e,t,n);return bwe({context:Vx,...r})}function gy(e,t,n){const r=SEe(e,t,n),o=kEe({context:Vx,...r},G1e),a={data:o.data,error:o.error,fetchStatus:o.fetchStatus,isError:o.isError,isFetched:o.isFetched,isFetchedAfterMount:o.isFetchedAfterMount,isFetching:o.isFetching,isIdle:o.isIdle,isLoading:o.isLoading,isRefetching:o.isRefetching,isSuccess:o.isSuccess,refetch:o.refetch,status:o.status,internal:{dataUpdatedAt:o.dataUpdatedAt,errorUpdatedAt:o.errorUpdatedAt,failureCount:o.failureCount,isFetchedAfterMount:o.isFetchedAfterMount,isLoadingError:o.isLoadingError,isPaused:o.isPaused,isPlaceholderData:o.isPlaceholderData,isPreviousData:o.isPreviousData,isRefetchError:o.isRefetchError,isStale:o.isStale,remove:o.remove}};return o.defaultedOptions.notifyOnChangeProps?a:DEe(a,o.observer)}var w4=()=>m4({context:Vx});function zs({chainId:e}={}){return v4.useSyncExternalStoreWithSelector(t=>Jwe({chainId:e},t),()=>Mi({chainId:e}),()=>Mi({chainId:e}),t=>t,(t,n)=>t.uid===n.uid)}function d3({chainId:e}){return[{entity:"walletClient",chainId:e,persist:!1}]}function jEe({queryKey:[{chainId:e}]}){return b4({chainId:e})}function yy({chainId:e,suspense:t,onError:n,onSettled:r,onSuccess:o}={}){const{connector:a}=tn(),i=by({chainId:e}),s=gy(d3({chainId:i}),jEe,{cacheTime:0,enabled:!!a,staleTime:1/0,suspense:t,onError:n,onSettled:r,onSuccess:o}),c=w4();return S.useEffect(()=>Zwe({chainId:i},u=>{u?c.invalidateQueries(d3({chainId:i})):c.removeQueries(d3({chainId:i}))}),[c,i]),s}function PEe({chainId:e}={}){return v4.useSyncExternalStoreWithSelector(t=>eEe({chainId:e},t),()=>mD({chainId:e}),()=>mD({chainId:e}),t=>t,(t,n)=>(t==null?void 0:t.uid)===(n==null?void 0:n.uid))}function by({chainId:e}={}){return zs({chainId:e}).chain.id}function IEe(){const[,e]=S.useReducer(t=>t+1,0);return e}function MN({chainId:e,scopeKey:t}){return[{entity:"blockNumber",chainId:e,scopeKey:t}]}function OEe({queryKey:[{chainId:e}]}){return dEe({chainId:e})}function REe({cacheTime:e=0,chainId:t,enabled:n=!0,scopeKey:r,staleTime:o,suspense:a,watch:i=!1,onBlock:s,onError:c,onSettled:l,onSuccess:u}={}){const d=by({chainId:t}),f=zs({chainId:d}),h=PEe({chainId:d}),m=w4();return S.useEffect(()=>!n||!i&&!s?void 0:(h??f).watchBlockNumber({onBlockNumber:v=>{i&&m.setQueryData(MN({chainId:d,scopeKey:r}),v),s&&s(v)},emitOnBegin:!0}),[d,r,s,f,m,i,h,n]),gy(MN({scopeKey:r,chainId:d}),OEe,{cacheTime:e,enabled:n,staleTime:o,suspense:a,onError:c,onSettled:l,onSuccess:u})}function NEe({chainId:e,enabled:t,queryKey:n}){const r=w4(),o=S.useCallback(()=>r.invalidateQueries({queryKey:n},{cancelRefetch:!1}),[r,n]);REe({chainId:e,enabled:t,onBlock:t?o:void 0,scopeKey:t?void 0:"idle"})}var f3=e=>typeof e=="object"&&!Array.isArray(e);function BY(e,t,n=t,r=uD){const o=S.useRef([]),a=v4.useSyncExternalStoreWithSelector(e,t,n,i=>i,(i,s)=>{if(f3(i)&&f3(s)&&o.current.length){for(const c of o.current)if(!r(i[c],s[c]))return!1;return!0}return r(i,s)});if(f3(a)){const i={...a};return Object.defineProperties(i,Object.entries(i).reduce((s,[c,l])=>({...s,[c]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(c)||o.current.push(c),l)}}),{})),i}return a}function tn({onConnect:e,onDisconnect:t}={}){const n=Kx(),r=S.useCallback(s=>sEe(s),[n]),o=BY(r,PY),a=S.useRef(),i=a.current;return S.useEffect(()=>{(i==null?void 0:i.status)!=="connected"&&o.status==="connected"&&(e==null||e({address:o.address,connector:o.connector,isReconnected:(i==null?void 0:i.status)==="reconnecting"||(i==null?void 0:i.status)===void 0})),(i==null?void 0:i.status)==="connected"&&o.status==="disconnected"&&(t==null||t()),a.current=o},[e,t,i,o]),o}function BEe({address:e,chainId:t,formatUnits:n,scopeKey:r,token:o}){return[{entity:"balance",address:e,chainId:t,formatUnits:n,scopeKey:r,token:o}]}function FEe({queryKey:[{address:e,chainId:t,formatUnits:n,token:r}]}){if(!e)throw new Error("address is required");return oEe({address:e,chainId:t,formatUnits:n,token:r})}function FY({address:e,cacheTime:t,chainId:n,enabled:r=!0,formatUnits:o,scopeKey:a,staleTime:i,suspense:s,token:c,watch:l,onError:u,onSettled:d,onSuccess:f}={}){const h=by({chainId:n}),m=S.useMemo(()=>BEe({address:e,chainId:h,formatUnits:o,scopeKey:a,token:c}),[e,h,o,a,c]),p=gy(m,FEe,{cacheTime:t,enabled:!!(r&&e),staleTime:i,suspense:s,onError:u,onSettled:d,onSuccess:f});return NEe({chainId:h,enabled:!!(r&&l&&e),queryKey:m}),p}var MEe=e=>[{entity:"connect",...e}],LEe=e=>{const{connector:t,chainId:n}=e;if(!t)throw new Error("connector is required");return Kwe({connector:t,chainId:n})};function UEe({chainId:e,connector:t,onError:n,onMutate:r,onSettled:o,onSuccess:a}={}){const i=Kx(),{data:s,error:c,isError:l,isIdle:u,isLoading:d,isSuccess:f,mutate:h,mutateAsync:m,reset:p,status:b,variables:v}=Yx(MEe({connector:t,chainId:e}),LEe,{onError:n,onMutate:r,onSettled:o,onSuccess:a}),g=S.useCallback(_=>h({chainId:(_==null?void 0:_.chainId)??e,connector:(_==null?void 0:_.connector)??t}),[e,t,h]),w=S.useCallback(_=>m({chainId:(_==null?void 0:_.chainId)??e,connector:(_==null?void 0:_.connector)??t}),[e,t,m]);return{connect:g,connectAsync:w,connectors:i.connectors,data:s,error:c,isError:l,isIdle:u,isLoading:d,isSuccess:f,pendingConnector:v==null?void 0:v.connector,reset:p,status:b,variables:v}}var $Ee=[{entity:"disconnect"}],zEe=()=>Ywe();function Qx({onError:e,onMutate:t,onSettled:n,onSuccess:r}={}){const{error:o,isError:a,isIdle:i,isLoading:s,isSuccess:c,mutate:l,mutateAsync:u,reset:d,status:f}=Yx($Ee,zEe,{...e?{onError(h,m,p){e(h,p)}}:{},onMutate:t,...n?{onSettled(h,m,p,b){n(m,b)}}:{},...r?{onSuccess(h,m,p){r(p)}}:{}});return{disconnect:l,disconnectAsync:u,error:o,isError:a,isIdle:i,isLoading:s,isSuccess:c,reset:d,status:f}}function To(){const e=Kx(),t=S.useCallback(n=>cEe(n),[e]);return BY(t,IY)}var HEe=e=>[{entity:"signMessage",...e}],qEe=e=>{const{message:t}=e;if(!t)throw new Error("message is required");return aEe({message:t})};function WEe({message:e,onError:t,onMutate:n,onSettled:r,onSuccess:o}={}){const{data:a,error:i,isError:s,isIdle:c,isLoading:l,isSuccess:u,mutate:d,mutateAsync:f,reset:h,status:m,variables:p}=Yx(HEe({message:e}),qEe,{onError:t,onMutate:n,onSettled:r,onSuccess:o}),b=S.useCallback(g=>d(g||{message:e}),[e,d]),v=S.useCallback(g=>f(g||{message:e}),[e,f]);return{data:a,error:i,isError:s,isIdle:c,isLoading:l,isSuccess:u,reset:h,signMessage:b,signMessageAsync:v,status:m,variables:p}}var GEe=e=>[{entity:"switchNetwork",...e}],VEe=e=>{const{chainId:t}=e;if(!t)throw new Error("chainId is required");return iEe({chainId:t})};function Tl({chainId:e,throwForSwitchChainNotSupported:t,onError:n,onMutate:r,onSettled:o,onSuccess:a}={}){var T;const i=Kx(),s=IEe(),{data:c,error:l,isError:u,isIdle:d,isLoading:f,isSuccess:h,mutate:m,mutateAsync:p,reset:b,status:v,variables:g}=Yx(GEe({chainId:e}),VEe,{onError:n,onMutate:r,onSettled:o,onSuccess:a}),w=S.useCallback(k=>m({chainId:k??e}),[e,m]),_=S.useCallback(k=>p({chainId:k??e}),[e,p]);S.useEffect(()=>i.subscribe(({chains:D,connector:R})=>({chains:D,connector:R}),s),[i,s]);let C,x;const E=!!((T=i.connector)!=null&&T.switchChain);return(t||E)&&(C=w,x=_),{chains:i.chains??[],data:c,error:l,isError:u,isIdle:d,isLoading:f,isSuccess:h,pendingChainId:g==null?void 0:g.chainId,reset:b,status:v,switchNetwork:C,switchNetworkAsync:x,variables:g}}function KEe({name:e,chainId:t,scopeKey:n}){return[{entity:"ensAvatar",name:e,chainId:t,scopeKey:n}]}function YEe({queryKey:[{name:e,chainId:t}]}){if(!e)throw new Error("name is required");return lEe({name:e,chainId:t})}function QEe({cacheTime:e,chainId:t,enabled:n=!0,name:r,scopeKey:o,staleTime:a=1e3*60*60*24,suspense:i,onError:s,onSettled:c,onSuccess:l}={}){const u=by({chainId:t});return gy(KEe({name:r,chainId:u,scopeKey:o}),YEe,{cacheTime:e,enabled:!!(n&&r&&u),staleTime:a,suspense:i,onError:s,onSettled:c,onSuccess:l})}function XEe({address:e,chainId:t,scopeKey:n}){return[{entity:"ensName",address:e,chainId:t,scopeKey:n}]}function JEe({queryKey:[{address:e,chainId:t}]}){if(!e)throw new Error("address is required");return uEe({address:e,chainId:t})}function MY({address:e,cacheTime:t,chainId:n,enabled:r=!0,scopeKey:o,staleTime:a=1e3*60*60*24,suspense:i,onError:s,onSettled:c,onSuccess:l}={}){const u=by({chainId:n});return gy(XEe({address:e,chainId:u,scopeKey:o}),JEe,{cacheTime:t,enabled:!!(r&&e&&u),staleTime:a,suspense:i,onError:s,onSettled:c,onSuccess:l})}const ZEe=hm().filter(e=>e.id!==ct.BERA);function e_e(){const[e,t]=S.useState([]),[n,r]=S.useState(!1),{address:o}=tn(),a=S.useRef(e),i=S.useCallback(()=>{if(o){const s=ZEe.map(c=>{const l=Vu({chain:c,batch:{multicall:!0},transport:yh()}),u=c.tokens.map(d=>d.type==="native"?l.getBalance({address:o}):que({address:d.address,abi:eh,publicClient:l}).read.balanceOf([o]));return u.length?qx(u).pipe(l4(d=>d.map((f,h)=>({chain:c,token:c.tokens[h],balance:f})))):p1e([])});return a.current=[],r(!0),k1e(s,3).pipe(uY()).subscribe({next:c=>{a.current=c.reduce((l,u)=>l.concat(u).sort((d,f)=>d.token.symbol.localeCompare(f.token.symbol)),a.current)},error:c=>{console.error(c),a.current=[],r(!1)},complete:()=>{r(!1)}})}else a.current=[],t([]),r(!1)},[o]);return S.useEffect(()=>{const s=i();return()=>{s==null||s.unsubscribe()}},[i]),S.useEffect(()=>{n||t(a.current)},[n]),{loadingBalanceAll:n,balanceAll:e,updateBalanceAll:i}}function LY(e,t,n,r,o=10){const a=S.useRef(0);S.useEffect(()=>{a.current=0},[e,t,n,r]);const{loading:i,data:s,refetch:c,fetchMore:l}=$s(Dye,{variables:{page:0,row:o,relayer:e,recvTokenAddress:t,fromChain:n,toChain:r},skip:!e||!t||!n||!r}),u=S.useCallback(()=>{c({page:0}),a.current=0},[c]),d=S.useCallback(()=>{a.current=a.current+1,l({variables:{page:a.current}})},[l]);return{loading:i,total:(s==null?void 0:s.historyRecords.total)??0,data:(s==null?void 0:s.historyRecords.records)??[],refetch:u,fetchMore:d}}function t_e(e,t,n){const[r,o]=S.useState(),[a,i]=S.useState(!1),{bridgeInstance:s}=B8();return S.useEffect(()=>{let c;return e.length&&t&&n?(i(!0),c=Yo(s.getWithdrawLiquidityFeeAndParams(t,jK(e.map(({id:l})=>l)),n)).subscribe({next:l=>{i(!1),o(l)},error:l=>{console.error(l),i(!1),o(void 0)}})):(i(!1),o(void 0)),()=>{c==null||c.unsubscribe()}},[e,t,n,s]),{feeAndParams:r,loading:a}}hm();function n_e(e,t,n,r){const[o,a]=S.useState(0n),[i,s]=S.useState(!1),[c,l]=S.useState(!1),{data:u}=yy(),d=zs(),f=S.useCallback(()=>{const m=BigInt(Number.MAX_SAFE_INTEGER)**BigInt(t.decimals);if(t.type==="native")a(m);else if(n&&r){s(!0);const p=Vu({chain:e,transport:yh()});return Yo(p.readContract({address:t.address,abi:eh,functionName:"allowance",args:[n,r]})).subscribe({next:b=>{s(!1),a(b)},error:b=>{console.error(b),s(!1),a(0n)}})}else a(0n)},[e,n,r,t.address,t.decimals,t.type]),h=S.useCallback(async m=>{if(n&&r&&u){l(!0);try{const p=await u.writeContract({address:t.address,abi:eh,functionName:"approve",args:[r,m]}),b=await d.waitForTransactionReceipt({hash:p,confirmations:mo});return b.status==="success"&&a(await d.readContract({address:t.address,abi:eh,functionName:"allowance",args:[n,r]})),l(!1),b}catch(p){console.error(p),an(p),l(!1)}}},[n,r,t.address,d,u]);return S.useEffect(()=>{const m=f();return()=>{m==null||m.unsubscribe()}},[f]),{loading:i,busy:c,allowance:o,refresh:f,approve:h}}function r_e(e,t,n){const[r,o]=S.useState(!1),[a,i]=S.useState(0n),s=S.useCallback(()=>{if(n){const c=Vu({transport:yh(),chain:e});return o(!0),Yo(t.type==="native"?c.getBalance({address:n}):c.readContract({address:t.address,abi:eh,functionName:"balanceOf",args:[n]})).subscribe({next:l=>{o(!1),i(l)},error:l=>{console.error(l),o(!1),i(0n)}})}else o(!1),i(0n)},[e,t.address,t.type,n]);return S.useEffect(()=>{const c=s();return()=>{c==null||c.unsubscribe()}},[s]),{loading:r,balance:a,refresh:s}}function o_e(e,t,n,r){const{loading:o,data:a,refetch:i}=$s(Tye,{variables:{amount:e.toString(),decimals:t.decimals,token:t.address,fromChain:n.network,toChain:r.network},fetchPolicy:"cache-and-network"});return{loading:o,data:a,refetch:i}}const UY=S.createContext({});function a_e(){return S.useContext(UY)}function i_e(e,t,n,r,o){var l;const[a,i]=S.useState(),[s,c]=S.useState(!1);return S.useEffect(()=>{var f;const u=(f=o==null?void 0:o.sortedLnBridgeRelayInfos)==null?void 0:f.records.at(0);c(!0);const d=Yo((e==null?void 0:e.getFee({sender:t,recipient:n,transferAmount:r,relayer:u==null?void 0:u.relayer,baseFee:u!=null&&u.baseFee?BigInt(u.baseFee):void 0,protocolFee:u!=null&&u.protocolFee?BigInt(u.protocolFee):void 0,liquidityFeeRate:u!=null&&u.liquidityFeeRate?BigInt(u.liquidityFeeRate):void 0}))||Promise.resolve(void 0)).subscribe({next:h=>{c(!1),i(h)},error:h=>{console.error(h),c(!1),i(null)}});return()=>{d.unsubscribe()}},[e,r,t,n,(l=o==null?void 0:o.sortedLnBridgeRelayInfos)==null?void 0:l.records]),{loading:s,fee:a}}function s_e(e){const[t,n]=S.useState(!1),[r,o]=S.useState();return S.useEffect(()=>{n(!0);const a=Yo((e==null?void 0:e.getDailyLimit())||Promise.resolve(void 0)).subscribe({next:i=>{n(!1),o(i)},error:i=>{console.error(i),n(!1),o(null)}});return()=>{a.unsubscribe()}},[e]),{loading:t,dailyLimit:r}}function LN(e){const{loading:t,data:n}=$s(kye,{variables:{tokenKey:e.toUpperCase()},fetchPolicy:"cache-and-network"});return S.useMemo(()=>({loading:t,data:(n==null?void 0:n.queryLnBridgeSupportedChains)||[]}),[t,n==null?void 0:n.queryLnBridgeSupportedChains])}function c_e(e,t,n,r){const{loading:o,data:a}=$s(jye,{variables:{fromChain:e.network,toChain:t.network,token:n.address,balance:r.toString()},fetchPolicy:"no-cache"}),[i,s]=S.useState(BigInt(Number.MAX_SAFE_INTEGER)**BigInt(n.decimals));return S.useEffect(()=>{o||s(c=>BigInt((a==null?void 0:a.queryMaxTransfer)??c))},[o,a==null?void 0:a.queryMaxTransfer]),{loadingMaxTransfer:o,maxTransfer:i}}function l_e(e,t){const n=tn(),{loading:r,data:o,refetch:a}=$s(Pye,{variables:{bridges:["lnv2-opposite","lnv2-default","lnv3"],sender:n.address,row:10,page:e},fetchPolicy:"cache-and-network",pollInterval:t?3e3:0,skip:!t});return{loading:r,data:(o==null?void 0:o.historyRecords.records)??[],total:(o==null?void 0:o.historyRecords.total)??0,refetch:a}}function u_e(e){const{loading:t,data:n}=$s(Iye,{variables:{txHash:e??""},fetchPolicy:"cache-and-network",pollInterval:e?4500:0,skip:!e});return{loading:t,data:n==null?void 0:n.historyRecordByTxHash}}function d_e(e,t,n=10){const{loading:r,data:o,networkStatus:a,refetch:i}=$s(Oye,{variables:{sender:e,bridges:["lnv3","lnv2-default","lnv2-opposite"],page:t,row:n},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"});return{loading:r,data:(o==null?void 0:o.historyRecords.records)??[],total:(o==null?void 0:o.historyRecords.total)??0,networkStatus:a,refetch:i}}const f_e={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function $Y(e){const[t,n]=S.useState(!1);return S.useEffect(()=>{const r=window.matchMedia(`(min-width: ${f_e[e]})`);n(r.matches);const o=a=>{n(a.matches)};return r.addEventListener("change",o,!1),()=>{r.addEventListener("change",o,!1)}},[e]),t}function zY(e,t,n,r,o,a){const{loading:i,data:s,refetch:c}=$s(Rye,{variables:{relayer:typeof r=="string"?r.toLowerCase()||void 0:"",fromChain:o==null?void 0:o.network,toChain:a==null?void 0:a.network,version:e,page:t,row:n},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"});return{loading:i,data:(s==null?void 0:s.queryLnBridgeRelayInfos.records)??[],total:(s==null?void 0:s.queryLnBridgeRelayInfos.total)??0,refetch:c}}function pD(){return pD=Object.assign?Object.assign.bind():function(e){for(var t=1;tt??e,[t,e]),o=st(r==null?void 0:r.fromChain),a=st(r==null?void 0:r.toChain),i=o==null?void 0:o.tokens.find(({symbol:s})=>{var c;return s.toUpperCase()===((c=r==null?void 0:r.sendToken)==null?void 0:c.toUpperCase())});return y.jsxs("div",{className:"relative overflow-x-auto pb-2",children:[y.jsx(qs,{loading:n,color:"white",className:"backdrop-blur-[2px]"}),y.jsxs("div",{className:"w-[39.5rem] px-5",children:[y.jsxs("div",{className:"flex flex-col gap-3 text-sm font-normal",children:[y.jsx(zN,{label:"Timestamp",value:r!=null&&r.startTime?hy(r.startTime*1e3):void 0}),y.jsx(zN,{label:"Value",value:r!=null&&r.sendAmount&&i?`${ut(BigInt(r.sendAmount),i.decimals,{precision:8})} ${i.symbol}`:void 0})]}),y.jsxs("div",{className:"mt-8 flex justify-between rounded-3xl bg-white/5 px-14 py-10",children:[y.jsx(HN,{chain:o,tx:r==null?void 0:r.requestTxHash,completed:!!(r!=null&&r.requestTxHash)}),y.jsx(x_e,{data:r}),y.jsx(HN,{chain:a,completed:(r==null?void 0:r.result)===xn.SUCCESS,tx:fj((r==null?void 0:r.confirmedBlocks)??"")?r==null?void 0:r.confirmedBlocks:r==null?void 0:r.responseTxHash})]}),r&&y.jsx("div",{className:"mt-2 inline-flex w-full justify-end pr-2",children:y.jsx(Su,{className:"hover:text-primary text-sm font-light text-white underline transition-colors",target:"_blank",to:`/tx/${r.id}`,rel:"noopener noreferrer",children:"More"})})]})]})}function zN({label:e,value:t}){return y.jsxs("div",{className:"inline-block",children:[y.jsx("span",{className:"inline-block w-24 font-medium",children:e}),y.jsx("span",{className:"text-white/90",children:t})]})}function HN({completed:e,chain:t,tx:n}){var r;return y.jsxs("div",{className:"flex flex-col items-center gap-6",children:[y.jsx("span",{className:"text-sm font-bold text-white",children:(t==null?void 0:t.name)??"-"}),y.jsx("div",{className:"border-primary/25 flex h-28 w-28 items-center justify-center rounded-full border",children:t?y.jsx("img",{alt:t.name,width:64,height:64,src:Rn(t.logo),className:"rounded-full"}):"-"}),y.jsxs("div",{className:"inline-flex min-h-7 min-w-36 items-center justify-center gap-1",children:[e?y.jsx(w_e,{width:18,height:18}):y.jsx(E_e,{width:25,height:25}),t&&n?y.jsxs("a",{target:"_blank",rel:"noopener noreferrer",href:new URL(`tx/${n}`,(r=t.blockExplorers)==null?void 0:r.default.url).href,className:"hover:text-primary text-sm font-normal text-white underline transition-colors",children:["Tx: ",zu(n)]}):y.jsx("span",{className:"ellipsis ml-2",children:"."})]})]})}function x_e({data:e}){const{hash:t,total:n=0,completed:r=0}=Yye(e==null?void 0:e.confirmedBlocks);return y.jsx("div",{className:"flex flex-col items-center justify-center gap-2",children:(e==null?void 0:e.result)===xn.SUCCESS?y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"72",height:"72",viewBox:"0 0 72 72",fill:"none",children:[y.jsx("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M35.5 17V36L2 55V36L35.5 17ZM69 17V36L35.5 55V36L69 17Z",fill:"#FFFFFF"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 17L35.5 36V55L2 36V17ZM35.5 17L69 36V55L35.5 36V17Z",fill:"#FFFFFF"})]}):y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"scale-[0.7]",children:y.jsx("span",{className:"tx-in-progress"})}),y.jsxs("span",{className:"text-sm font-normal italic text-white",children:[" ",n+r?`${r} / ${n}`:t?"Finishing":""," "]})]})})}function C_e({className:e,total:t,currentPage:n,pageSize:r=10,onChange:o=()=>{}}){const a=Math.ceil(t/r);return a>1&&y.jsxs("div",{className:`${e} gap-small flex items-center justify-end`,children:[y.jsx(Fa,{page:"previous",disabled:n===0,onClick:()=>o(n-1)}),S_e(a,n,o),y.jsx(Fa,{page:"next",disabled:n+1===a,onClick:()=>o(n+1)})]})}function Fa({page:e,disabled:t,currentPage:n,onClick:r}){return y.jsx("button",{className:`rounded-small inline-flex h-8 w-8 items-center justify-center border text-sm font-medium text-white transition disabled:scale-100 disabled:cursor-not-allowed disabled:border-transparent disabled:opacity-60 ${e==="more"||e===n?"hover:cursor-default":"hover:border-primary active:scale-95"} ${e===n?"border-primary bg-primary":"bg-component border-transparent"}`,onClick:r,disabled:t,children:e==="more"?y.jsx("span",{children:"..."}):e==="previous"?y.jsx("img",{alt:"Previous",width:16,height:16,src:"images/pagination/previous-page.svg"}):e==="next"?y.jsx("img",{alt:"Next",width:16,height:16,src:"images/pagination/next-page.svg"}):y.jsx("span",{children:e+1})})}function S_e(e,t,n){const r=new Array(e).fill(0).map((o,a)=>a);return t<3||e-48?y.jsxs(y.Fragment,{children:[r.slice(0,4).map(o=>y.jsx(Fa,{page:o,currentPage:t,onClick:()=>n(o)},o)),y.jsx(Fa,{page:"more"}),r.slice(-4).map(o=>y.jsx(Fa,{page:o,currentPage:t,onClick:()=>n(o)},o))]}):r.slice(0,e).map(o=>y.jsx(Fa,{page:o,currentPage:t,onClick:()=>n(o)},o)):y.jsxs(y.Fragment,{children:[y.jsx(Fa,{page:0,currentPage:t,onClick:()=>n(0)}),y.jsx(Fa,{page:"more"}),r.slice(t-1,t+2).map(o=>y.jsx(Fa,{page:o,currentPage:t,onClick:()=>n(o)},o)),y.jsx(Fa,{page:"more"}),y.jsx(Fa,{page:e-1,currentPage:t,onClick:()=>n(e-1)})]})}function T_e({onPageChange:e,onRowClick:t,totalRecords:n,currentPage:r,pageSize:o,dataSource:a,loading:i,columns:s}){const c=S.useMemo(()=>s.reduce((l,u)=>{const d=typeof u.width=="string"?u.width:typeof u.width=="number"?`${u.width}px`:"1fr";return l==="auto"?l=d:l=`${l} ${d}`,l},"auto"),[s]);return y.jsxs("div",{className:"space-y-3",children:[y.jsx("div",{className:"w-full overflow-x-auto pb-1",children:y.jsxs("div",{className:"w-[39.5rem]",children:[y.jsx("div",{className:"grid items-center gap-x-2 rounded-xl bg-white/10 px-3 py-2 text-sm font-semibold text-white",style:{gridTemplateColumns:c},children:s.map(({key:l,title:u})=>typeof u=="string"?y.jsx("h5",{children:u},l):y.jsx(S.Fragment,{children:u},l))}),y.jsxs("div",{className:"relative mt-1",children:[y.jsx(qs,{loading:i,className:`rounded-xl ${a!=null&&a.length?"bg-black/10 backdrop-blur-[2px]":""}`,color:"white"}),a!=null&&a.length?y.jsx("div",{className:"space-y-1 rounded-b-xl",children:a.map(l=>y.jsx("div",{className:`${t?"transition-colors hover:cursor-pointer hover:bg-white/5":""} grid items-center gap-x-2 rounded-xl px-3 py-2 text-sm font-normal text-white`,style:{gridTemplateColumns:c},onClick:()=>t&&t(l),children:s.map(({key:u,dataIndex:d,render:f})=>y.jsx(S.Fragment,{children:f?f(l):y.jsx("span",{children:`${l[d]}`})},u))},l.id))}):y.jsx("div",{className:"flex h-48 flex-col items-center justify-center gap-4",children:i?null:y.jsxs(y.Fragment,{children:[y.jsx("img",{width:50,height:63,alt:"No data",src:"images/no-data.svg"}),y.jsx("span",{className:"text-sm font-medium text-slate-400",children:"No data"})]})})]})]})}),n!==void 0&&r!==void 0&&y.jsx("div",{className:"overflow-x-auto pb-1",children:y.jsx(C_e,{total:n,pageSize:o,currentPage:r,onChange:e})})]})}const A_e=[{title:"",key:"status",width:"10%",render:e=>y.jsx("div",{className:"pl-[20%]",children:e.result===xn.SUCCESS?y.jsx(k_e,{}):y.jsx(j_e,{})})},{title:"Time",key:"time",width:"35%",render:e=>y.jsx("span",{children:hy(e.startTime*1e3,{compact:!0})})},{title:"Value",key:"value",render:e=>{var n;const t=(n=st(e.fromChain))==null?void 0:n.tokens.find(({symbol:r})=>r.toUpperCase()===e.sendToken.toUpperCase());return y.jsx("span",{className:"truncate",children:t?`${ut(BigInt(e.sendAmount),t.decimals)} ${t.symbol}`:"-"})}},{title:y.jsx("span",{className:"text-center",children:"From"}),key:"from",width:"15%",render:e=>{const t=st(e.fromChain);return y.jsx("div",{className:"flex justify-center",children:t?y.jsx("img",{alt:t.name,width:20,height:20,src:Rn(t.logo),className:"rounded-full"}):y.jsx("span",{children:"-"})})}},{title:y.jsx("span",{className:"text-center",children:"To"}),key:"to",width:"15%",render:e=>{const t=st(e.toChain);return y.jsx("div",{className:"flex justify-center",children:t?y.jsx("img",{alt:t.name,width:20,height:20,src:Rn(t.logo),className:"rounded-full"}):y.jsx("span",{children:"-"})})}}];function D_e({onPageChange:e,onRowClick:t,dataSource:n,currentPage:r,totalRecords:o,loading:a}){return y.jsx(T_e,{dataSource:n,totalRecords:o,currentPage:r,pageSize:10,columns:A_e,loading:a,onPageChange:e,onRowClick:t})}function k_e(){return y.jsx("svg",{viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",children:y.jsx("path",{d:"M364.032 896a46.144 46.144 0 0 1-35.712-15.424L15.36 559.936c-20.48-20.608-18.752-53.184 0-73.792 20.352-20.544 52.672-18.816 73.088 0l275.584 284.672 573.248-584.704a51.072 51.072 0 0 1 73.088 0 52.032 52.032 0 0 1 0 73.728l-610.624 620.736a48.768 48.768 0 0 1-35.712 15.424z",fill:"#1afa29"})})}function j_e(){return y.jsxs("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[y.jsx("path",{d:"M554.656 170.656h-85.344v362.656l273.056 183.456 51.2-68.256-238.944-157.856z",fill:"#00B2FF"}),y.jsx("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0z m0 938.656c-234.656 0-426.656-192-426.656-426.656S277.344 85.344 512 85.344s426.656 192 426.656 426.656-192 426.656-426.656 426.656z",fill:"#00B2FF"})]})}function P_e({children:e,isDetail:t,isOpen:n,onBack:r,onClose:o}){const a=S.useRef(null);return S.useEffect(()=>()=>{document.body.style.overflow="auto"},[]),Fs.createPortal(y.jsx(Al,{in:n,timeout:300,nodeRef:a,classNames:"modal-fade",unmountOnExit:!0,onEnter:()=>{document.body.style.overflow="hidden"},onExited:()=>{document.body.style.overflow="auto"},children:y.jsx("div",{className:"bg-background/80 p-medium fixed left-0 top-0 z-[21] flex h-screen w-screen items-center justify-center overflow-auto backdrop-blur-sm",onClick:i=>i.stopPropagation(),ref:a,children:y.jsxs("div",{className:"bg-secondary p-medium relative h-[36rem] w-full rounded-3xl lg:w-[42rem] lg:p-5",children:[y.jsx("button",{className:"right-medium top-medium absolute rounded-full bg-transparent p-[4px] transition hover:scale-105 hover:bg-white/10 active:scale-95",onClick:o,children:y.jsx("img",{width:20,height:20,alt:"Close modal",src:"images/close-white.svg"})}),y.jsx("div",{className:"flex h-6 items-center pl-1 lg:pl-0",children:t?y.jsx("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",className:"text-white/60 transition-[transform,color] hover:scale-105 hover:cursor-pointer hover:text-white active:scale-95",onClick:r,children:y.jsx("path",{d:"M402.746 146.746l-320 320c-24.994 24.992-24.994 65.516 0 90.508l320 320c24.994 24.992 65.516 24.992 90.51 0 24.996-24.992 24.996-65.516 0-90.508L282.508 576 896 576c35.346 0 64-28.652 64-64 0-35.346-28.654-64-64-64L282.508 448l210.746-210.746C505.75 224.758 512 208.378 512 192s-6.248-32.758-18.744-45.254C468.26 121.752 427.74 121.752 402.746 146.746z",fill:"currentColor"})}):y.jsx("h3",{className:"font-bold text-white",children:"History"})}),y.jsx("div",{className:"mt-5",children:e})]})})}),document.body)}function WY({children:e,className:t}){const[n,r]=S.useState(0),{isHistoryOpen:o,historyDetails:a,setIsHistoryOpen:i,setHistoryDetails:s}=$g(),{loading:c,data:l,total:u,refetch:d}=l_e(n,o);S.useEffect(()=>{o?d():(r(0),s(null))},[o,d,s]);const f=S.useRef(null),h=S.useRef(null),m=a?h:f,p=tn(),b=S.useCallback(v=>s(v),[s]);return p.address?y.jsxs(y.Fragment,{children:[y.jsx("button",{className:`${t}`,onClick:v=>{v.stopPropagation(),i(!0)},children:e??y.jsx("span",{children:"History"})}),y.jsx(P_e,{isOpen:o,isDetail:!!a,onClose:()=>i(!1),onBack:()=>s(null),children:y.jsx(vy,{children:y.jsx(Al,{classNames:a?"history-detail-fade":"history-table-fade",timeout:100,nodeRef:m,unmountOnExit:!0,children:y.jsx("div",{ref:m,children:a?y.jsx(__e,{data:a}):y.jsx(D_e,{onPageChange:r,onRowClick:b,currentPage:n,totalRecords:u,dataSource:l,loading:c})})},a?"detail":"history")})})]}):null}function I_e({label:e,children:t,placement:n,hoverable:r,sameWidth:o,labelClassName:a,childClassName:i}){const{state:s,setState:c,setFalse:l}=zg(!1),{refs:u,context:d,floatingStyles:f}=gd({open:s,onOpenChange:c,middleware:[hd(6),o?S_({apply({rects:_,elements:C}){Object.assign(C.floating.style,{width:`${_.reference.width}px`})}}):void 0],placement:n}),{styles:h,isMounted:m}=bd(d,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),p=A_(d,{enabled:!!r}),b=tm(d),v=pd(d),{getReferenceProps:g,getFloatingProps:w}=yd([p,b,v]);return y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:`${a}`,ref:u.setReference,...g(),children:[e,y.jsx("img",{style:{transform:s?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 transition-transform",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})]}),m&&y.jsx(md,{children:y.jsx("div",{style:f,ref:u.setFloating,...w(),className:"z-20",children:y.jsx("div",{className:`${i}`,style:h,onClick:l,children:t})})})]})}var qN='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',O_e={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${qN}`,system:qN},_p={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"}},R_e={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},GY=({borderRadius:e="large",fontStack:t="rounded",overlayBlur:n="none"})=>({blurs:{modalOverlay:R_e[n].modalOverlay},fonts:{body:O_e[t]},radii:{actionButton:_p[e].actionButton,connectButton:_p[e].connectButton,menuButton:_p[e].connectButton,modal:_p[e].modal,modalMobile:_p[e].modalMobile}}),S1="#1A1B1F",VY={blue:{accentColor:"#3898FF",accentColorForeground:"#FFF"},green:{accentColor:"#4BD166",accentColorForeground:S1},orange:{accentColor:"#FF983D",accentColorForeground:S1},pink:{accentColor:"#FF7AB8",accentColorForeground:S1},purple:{accentColor:"#7A70FF",accentColorForeground:"#FFF"},red:{accentColor:"#FF6257",accentColorForeground:"#FFF"}},WN=VY.blue,KY=({accentColor:e=WN.accentColor,accentColorForeground:t=WN.accentColorForeground,...n}={})=>({...GY(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:S1,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)"}});KY.accentColors=VY;var YY={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"}},GN=YY.blue,QY=({accentColor:e=GN.accentColor,accentColorForeground:t=GN.accentColorForeground,...n}={})=>({...GY(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)"}});QY.accentColors=YY;var yD=`{ - "connect_wallet": { - "label": "Connect Wallet", - "wrong_network": { - "label": "Wrong network" - } - }, - - "intro": { - "title": "What is a Wallet?", - "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.", - "digital_asset": { - "title": "A Home for your Digital Assets", - "description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs." - }, - "login": { - "title": "A New Way to Log In", - "description": "Instead of creating new accounts and passwords on every website, just connect your wallet." - }, - "get": { - "label": "Get a Wallet" - }, - "learn_more": { - "label": "Learn More" - } - }, - - "sign_in": { - "label": "Verify your account", - "description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.", - "message": { - "send": "Sign message", - "preparing": "Preparing message...", - "cancel": "Cancel", - "preparing_error": "Error preparing message, please retry!" - }, - "signature": { - "waiting": "Waiting for signature...", - "verifying": "Verifying signature...", - "signing_error": "Error signing message, please retry!", - "verifying_error": "Error verifying signature, please retry!", - "oops_error": "Oops, something went wrong!" - } - }, - - "connect": { - "label": "Connect", - "title": "Connect a Wallet", - "new_to_ethereum": { - "description": "New to Ethereum wallets?", - "learn_more": { - "label": "Learn More" - } - }, - "learn_more": { - "label": "Learn more" - }, - "recent": "Recent", - "status": { - "opening": "Opening %{wallet}...", - "connecting": "Connecting", - "connect_mobile": "Continue in %{wallet}", - "not_installed": "%{wallet} is not installed", - "not_available": "%{wallet} is not available", - "confirm": "Confirm connection in the extension", - "confirm_mobile": "Accept connection request in the wallet" - }, - "secondary_action": { - "get": { - "description": "Don't have %{wallet}?", - "label": "GET" - }, - "install": { - "label": "INSTALL" - }, - "retry": { - "label": "RETRY" - } - }, - "walletconnect": { - "description": { - "full": "Need the official WalletConnect modal?", - "compact": "Need the WalletConnect modal?" - }, - "open": { - "label": "OPEN" - } - } - }, - - "connect_scan": { - "title": "Scan with %{wallet}", - "fallback_title": "Scan with your phone" - }, - - "connector_group": { - "recommended": "Recommended", - "other": "Other", - "popular": "Popular", - "more": "More", - "others": "Others" - }, - - "get": { - "title": "Get a Wallet", - "action": { - "label": "GET" - }, - "mobile": { - "description": "Mobile Wallet" - }, - "extension": { - "description": "Browser Extension" - }, - "mobile_and_extension": { - "description": "Mobile Wallet and Extension" - }, - "mobile_and_desktop": { - "description": "Mobile and Desktop Wallet" - }, - "looking_for": { - "title": "Not what you're looking for?", - "mobile": { - "description": "Select a wallet on the main screen to get started with a different wallet provider." - }, - "desktop": { - "compact_description": "Select a wallet on the main screen to get started with a different wallet provider.", - "wide_description": "Select a wallet on the left to get started with a different wallet provider." - } - } - }, - - "get_options": { - "title": "Get started with %{wallet}", - "short_title": "Get %{wallet}", - "mobile": { - "title": "%{wallet} for Mobile", - "description": "Use the mobile wallet to explore the world of Ethereum.", - "download": { - "label": "Get the app" - } - }, - "extension": { - "title": "%{wallet} for %{browser}", - "description": "Access your wallet right from your favorite web browser.", - "download": { - "label": "Add to %{browser}" - } - }, - "desktop": { - "title": "%{wallet} for %{platform}", - "description": "Access your wallet natively from your powerful desktop.", - "download": { - "label": "Add to %{platform}" - } - } - }, - - "get_mobile": { - "title": "Install %{wallet}", - "description": "Scan with your phone to download on iOS or Android", - "continue": { - "label": "Continue" - } - }, - - "get_instructions": { - "mobile": { - "connect": { - "label": "Connect" - }, - "learn_more": { - "label": "Learn More" - } - }, - "extension": { - "refresh": { - "label": "Refresh" - }, - "learn_more": { - "label": "Learn More" - } - }, - "desktop": { - "connect": { - "label": "Connect" - }, - "learn_more": { - "label": "Learn More" - } - } - }, - - "chains": { - "title": "Switch Networks", - "wrong_network": "Wrong network detected, switch or disconnect to continue.", - "confirm": "Confirm in Wallet", - "switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.", - "switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.", - "disconnect": "Disconnect", - "connected": "Connected" - }, - - "profile": { - "disconnect": { - "label": "Disconnect" - }, - "copy_address": { - "label": "Copy Address", - "copied": "Copied!" - }, - "explorer": { - "label": "View more on explorer" - }, - "transactions": { - "description": "%{appName} transactions will appear here...", - "description_fallback": "Your transactions will appear here...", - "recent": { - "title": "Recent Transactions" - }, - "clear": { - "label": "Clear All" - } - } - }, - - "wallet_connectors": { - "argent": { - "qr_code": { - "step1": { - "description": "Put Argent on your home screen for faster access to your wallet.", - "title": "Open the Argent app" - }, - "step2": { - "description": "Create a wallet and username, or import an existing wallet.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the Scan QR button" - } - } - }, - - "bifrost": { - "qr_code": { - "step1": { - "description": "We recommend putting Bifrost Wallet on your home screen for quicker access.", - "title": "Open the Bifrost Wallet app" - }, - "step2": { - "description": "Create or import a wallet using your recovery phrase.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - } - }, - - "bitget": { - "qr_code": { - "step1": { - "description": "We recommend putting Bitget Wallet on your home screen for quicker access.", - "title": "Open the Bitget Wallet app" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - }, - - "extension": { - "step1": { - "description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.", - "title": "Install the Bitget Wallet extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "bitski": { - "extension": { - "step1": { - "description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.", - "title": "Install the Bitski extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "coin98": { - "qr_code": { - "step1": { - "description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.", - "title": "Open the Coin98 Wallet app" - }, - "step2": { - "description": "You can easily backup your wallet using our backup feature on your phone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the WalletConnect button" - } - }, - - "extension": { - "step1": { - "description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.", - "title": "Install the Coin98 Wallet extension" - }, - "step2": { - "description": "Create a new wallet or import an existing one.", - "title": "Create or Import a wallet" - }, - "step3": { - "description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "coinbase": { - "qr_code": { - "step1": { - "description": "We recommend putting Coinbase Wallet on your home screen for quicker access.", - "title": "Open the Coinbase Wallet app" - }, - "step2": { - "description": "You can easily backup your wallet using the cloud backup feature.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - }, - - "extension": { - "step1": { - "description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.", - "title": "Install the Coinbase Wallet extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "core": { - "qr_code": { - "step1": { - "description": "We recommend putting Core on your home screen for faster access to your wallet.", - "title": "Open the Core app" - }, - "step2": { - "description": "You can easily backup your wallet using our backup feature on your phone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the WalletConnect button" - } - }, - - "extension": { - "step1": { - "description": "We recommend pinning Core to your taskbar for quicker access to your wallet.", - "title": "Install the Core extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "fox": { - "qr_code": { - "step1": { - "description": "We recommend putting FoxWallet on your home screen for quicker access.", - "title": "Open the FoxWallet app" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - } - }, - - "frontier": { - "qr_code": { - "step1": { - "description": "We recommend putting Frontier Wallet on your home screen for quicker access.", - "title": "Open the Frontier Wallet app" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - }, - - "extension": { - "step1": { - "description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.", - "title": "Install the Frontier Wallet extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "im_token": { - "qr_code": { - "step1": { - "title": "Open the imToken app", - "description": "Put imToken app on your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap Scanner Icon in top right corner", - "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." - } - } - }, - - "metamask": { - "qr_code": { - "step1": { - "title": "Open the MetaMask app", - "description": "We recommend putting MetaMask on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - }, - - "extension": { - "step1": { - "title": "Install the MetaMask extension", - "description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "okx": { - "qr_code": { - "step1": { - "title": "Open the OKX Wallet app", - "description": "We recommend putting OKX Wallet on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - }, - - "extension": { - "step1": { - "title": "Install the OKX Wallet extension", - "description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "omni": { - "qr_code": { - "step1": { - "title": "Open the Omni app", - "description": "Add Omni to your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap the QR icon and scan", - "description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect." - } - } - }, - - "token_pocket": { - "qr_code": { - "step1": { - "title": "Open the TokenPocket app", - "description": "We recommend putting TokenPocket on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - }, - - "extension": { - "step1": { - "title": "Install the TokenPocket extension", - "description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "trust": { - "qr_code": { - "step1": { - "title": "Open the Trust Wallet app", - "description": "Put Trust Wallet on your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap WalletConnect in Settings", - "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." - } - }, - - "extension": { - "step1": { - "title": "Install the Trust Wallet extension", - "description": "Click at the top right of your browser and pin Trust Wallet for easy access." - }, - "step2": { - "title": "Create or Import a wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "uniswap": { - "qr_code": { - "step1": { - "title": "Open the Uniswap app", - "description": "Add Uniswap Wallet to your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap the QR icon and scan", - "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect." - } - } - }, - - "zerion": { - "qr_code": { - "step1": { - "title": "Open the Zerion app", - "description": "We recommend putting Zerion on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - }, - - "extension": { - "step1": { - "title": "Install the Zerion extension", - "description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "rainbow": { - "qr_code": { - "step1": { - "title": "Open the Rainbow app", - "description": "We recommend putting Rainbow on your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "You can easily backup your wallet using our backup feature on your phone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - } - }, - - "enkrypt": { - "extension": { - "step1": { - "description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.", - "title": "Install the Enkrypt Wallet extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "frame": { - "extension": { - "step1": { - "description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.", - "title": "Install Frame & the companion extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "one_key": { - "extension": { - "step1": { - "title": "Install the OneKey Wallet extension", - "description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "phantom": { - "extension": { - "step1": { - "title": "Install the Phantom extension", - "description": "We recommend pinning Phantom to your taskbar for easier access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "rabby": { - "extension": { - "step1": { - "title": "Install the Rabby extension", - "description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "safeheron": { - "extension": { - "step1": { - "title": "Install the Core extension", - "description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "taho": { - "extension": { - "step1": { - "title": "Install the Taho extension", - "description": "We recommend pinning Taho to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "talisman": { - "extension": { - "step1": { - "title": "Install the Talisman extension", - "description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import an Ethereum Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "xdefi": { - "extension": { - "step1": { - "title": "Install the XDEFI Wallet extension", - "description": "We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "zeal": { - "extension": { - "step1": { - "title": "Install the Zeal extension", - "description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "safepal": { - "extension": { - "step1": { - "title": "Install the SafePal Wallet extension", - "description": "Click at the top right of your browser and pin SafePal Wallet for easy access." - }, - "step2": { - "title": "Create or Import a wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension." - } - }, - "qr_code": { - "step1": { - "title": "Open the SafePal Wallet app", - "description": "Put SafePal Wallet on your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap WalletConnect in Settings", - "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." - } - } - }, - - "desig": { - "extension": { - "step1": { - "title": "Install the Desig extension", - "description": "We recommend pinning Desig to your taskbar for easier access to your wallet." - }, - "step2": { - "title": "Create a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "subwallet": { - "extension": { - "step1": { - "title": "Install the SubWallet extension", - "description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - }, - "qr_code": { - "step1": { - "title": "Open the SubWallet app", - "description": "We recommend putting SubWallet on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - } - }, - - "clv": { - "extension": { - "step1": { - "title": "Install the CLV Wallet extension", - "description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - }, - "qr_code": { - "step1": { - "title": "Open the CLV Wallet app", - "description": "We recommend putting CLV Wallet on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - } - }, - - "okto": { - "qr_code": { - "step1": { - "title": "Open the Okto app", - "description": "Add Okto to your home screen for quick access" - }, - "step2": { - "title": "Create an MPC Wallet", - "description": "Create an account and generate a wallet" - }, - "step3": { - "title": "Tap WalletConnect in Settings", - "description": "Tap the Scan QR icon at the top right and confirm the prompt to connect." - } - } - }, - - "ledger": { - "desktop": { - "step1": { - "title": "Open the Ledger Live app", - "description": "We recommend putting Ledger Live on your home screen for quicker access." - }, - "step2": { - "title": "Set up your Ledger", - "description": "Set up a new Ledger or connect to an existing one." - }, - "step3": { - "title": "Connect", - "description": "A connection prompt will appear for you to connect your wallet." - } - }, - "qr_code": { - "step1": { - "title": "Open the Ledger Live app", - "description": "We recommend putting Ledger Live on your home screen for quicker access." - }, - "step2": { - "title": "Set up your Ledger", - "description": "You can either sync with the desktop app or connect your Ledger." - }, - "step3": { - "title": "Scan the code", - "description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet." - } - } - } - } -} -`;function N_e(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e}var XY=N_e;function JY(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 a in t.responsiveArray)r[a]!=null&&(o[t.responsiveArray[a]]=r[a]);return o}return r}return XY(n,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function B_e(e){var{conditions:t}=e;if(!t)throw new Error("Styles have no conditions");var n=JY(e);function r(o,a){if(typeof o=="string"||typeof o=="number"||typeof o=="boolean"){if(!t.defaultCondition)throw new Error("No default condition");return a(o,t.defaultCondition)}var i=Array.isArray(o)?n(o):o,s={};for(var c in i)i[c]!=null&&(s[c]=a(i[c],c));return s}return XY(r,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}function F_e(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M_e(e){var t=F_e(e,"string");return typeof t=="symbol"?t:String(t)}function L_e(e,t,n){return t=M_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VN(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 m3(e){for(var t=1;tfunction(){for(var t=arguments.length,n=new Array(t),r=0;rc.styles)),a=Object.keys(o),i=a.filter(c=>"mappings"in o[c]),s=c=>{var l=[],u={},d=m3({},c),f=!1;for(var h of i){var m=c[h];if(m!=null){var p=o[h];f=!0;for(var b of p.mappings)u[b]=m,d[b]==null&&delete d[b]}}var v=f?m3(m3({},u),d):c,g=function(){var x=v[w],E=o[w];try{if(E.mappings)return"continue";if(typeof x=="string"||typeof x=="number")l.push(E.values[x].defaultClass);else if(Array.isArray(x))for(var T=0;Te,z_e=function(){return U_e($_e)(...arguments)};function ZY(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t"u")return oxe;var t=axe(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},sxe=rQ(),th="data-scroll-locked",cxe=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(H_e,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(s,"px ").concat(r,`; - } - body[`).concat(th,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(a,`px; - padding-right: `).concat(i,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(s,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(T1,` { - right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(A1,` { - margin-right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(T1," .").concat(T1,` { - right: 0 `).concat(r,`; - } - - .`).concat(A1," .").concat(A1,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(th,`] { - `).concat(q_e,": ").concat(s,`px; - } -`)},YN=function(){var e=parseInt(document.body.getAttribute(th)||"0",10);return isFinite(e)?e:0},lxe=function(){S.useEffect(function(){return document.body.setAttribute(th,(YN()+1).toString()),function(){var e=YN()-1;e<=0?document.body.removeAttribute(th):document.body.setAttribute(th,e.toString())}},[])},uxe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;lxe();var a=S.useMemo(function(){return ixe(o)},[o]);return S.createElement(sxe,{styles:cxe(a,!t,o,n?"":"!important")})},bD=!1;if(typeof window<"u")try{var fv=Object.defineProperty({},"passive",{get:function(){return bD=!0,!0}});window.addEventListener("test",fv,fv),window.removeEventListener("test",fv,fv)}catch{bD=!1}var Xd=bD?{passive:!1}:!1,dxe=function(e){return e.tagName==="TEXTAREA"},oQ=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!dxe(e)&&n[t]==="visible")},fxe=function(e){return oQ(e,"overflowY")},hxe=function(e){return oQ(e,"overflowX")},QN=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=aQ(e,r);if(o){var a=iQ(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},mxe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},pxe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},aQ=function(e,t){return e==="v"?fxe(t):hxe(t)},iQ=function(e,t){return e==="v"?mxe(t):pxe(t)},gxe=function(e,t){return e==="h"&&t==="rtl"?-1:1},yxe=function(e,t,n,r,o){var a=gxe(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,c=t.contains(s),l=!1,u=i>0,d=0,f=0;do{var h=iQ(e,s),m=h[0],p=h[1],b=h[2],v=p-b-a*m;(m||v)&&aQ(e,s)&&(d+=v,f+=m),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(Math.abs(d)<1||!o)||!u&&(Math.abs(f)<1||!o))&&(l=!0),l},hv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},XN=function(e){return[e.deltaX,e.deltaY]},JN=function(e){return e&&"current"in e?e.current:e},bxe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vxe=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},wxe=0,Jd=[];function Exe(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(wxe++)[0],a=S.useState(rQ)[0],i=S.useRef(e);S.useEffect(function(){i.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=vn([e.lockRef.current],(e.shards||[]).map(JN),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(p,b){if("touches"in p&&p.touches.length===2)return!i.current.allowPinchZoom;var v=hv(p),g=n.current,w="deltaX"in p?p.deltaX:g[0]-v[0],_="deltaY"in p?p.deltaY:g[1]-v[1],C,x=p.target,E=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in p&&E==="h"&&x.type==="range")return!1;var T=QN(E,x);if(!T)return!0;if(T?C=E:(C=E==="v"?"h":"v",T=QN(E,x)),!T)return!1;if(!r.current&&"changedTouches"in p&&(w||_)&&(r.current=C),!C)return!0;var k=r.current||C;return yxe(k,b,p,k==="h"?w:_,!0)},[]),c=S.useCallback(function(p){var b=p;if(!(!Jd.length||Jd[Jd.length-1]!==a)){var v="deltaY"in b?XN(b):hv(b),g=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&bxe(C.delta,v)})[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var w=(i.current.shards||[]).map(JN).filter(Boolean).filter(function(C){return C.contains(b.target)}),_=w.length>0?s(b,w[0]):!i.current.noIsolation;_&&b.cancelable&&b.preventDefault()}}},[]),l=S.useCallback(function(p,b,v,g){var w={name:p,delta:b,target:v,should:g,shadowParent:_xe(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),u=S.useCallback(function(p){n.current=hv(p),r.current=void 0},[]),d=S.useCallback(function(p){l(p.type,XN(p),p.target,s(p,e.lockRef.current))},[]),f=S.useCallback(function(p){l(p.type,hv(p),p.target,s(p,e.lockRef.current))},[]);S.useEffect(function(){return Jd.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Xd),document.addEventListener("touchmove",c,Xd),document.addEventListener("touchstart",u,Xd),function(){Jd=Jd.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,Xd),document.removeEventListener("touchmove",c,Xd),document.removeEventListener("touchstart",u,Xd)}},[]);var h=e.removeScrollBar,m=e.inert;return S.createElement(S.Fragment,null,m?S.createElement(a,{styles:vxe(o)}):null,h?S.createElement(uxe,{gapMode:e.gapMode}):null)}function _xe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xxe=X_e(nQ,Exe);var sQ=S.forwardRef(function(e,t){return S.createElement(Xx,K({},e,{ref:t,sideCar:xxe}))});sQ.classNames=Xx.classNames;function ZN(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function Cxe(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 cQ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r={};for(var o in e){var a=e[o],i=[...n,o];typeof a=="string"||typeof a=="number"||a==null?r[o]=t(a,i):typeof a=="object"&&!Array.isArray(a)?r[o]=cQ(a,t,i):console.warn('Skipping invalid key "'.concat(i.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(a)?"Array":typeof a,'"'))}return r}function eB(e,t){var n={};if(typeof t=="object"){var r=e;cQ(t,(s,c)=>{if(s!=null){var l=Cxe(r,c);n[ZN(l)]=String(s)}})}else{var o=e;for(var a in o){var i=o[a];i!=null&&(n[ZN(a)]=i)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(c=>"".concat(c,":").concat(this[c])).join(";")},writable:!1}),n}var vD={exports:{}};(function(e,t){(function(n,r){var o="1.0.38",a="",i="?",s="function",c="undefined",l="object",u="string",d="major",f="model",h="name",m="type",p="vendor",b="version",v="architecture",g="console",w="mobile",_="tablet",C="smarttv",x="wearable",E="embedded",T=500,k="Amazon",D="Apple",R="ASUS",F="BlackBerry",B="Browser",j="Chrome",P="Edge",O="Firefox",I="Google",N="Huawei",M="LG",L="Microsoft",X="Motorola",J="Opera",U="Samsung",G="Sharp",Z="Sony",ae="Xiaomi",ne="Zebra",ie="Facebook",te="Chromium OS",ee="Mac OS",re=function(Q,ce){var pe={};for(var De in Q)ce[De]&&ce[De].length%2===0?pe[De]=ce[De].concat(Q[De]):pe[De]=Q[De];return pe},z=function(Q){for(var ce={},pe=0;pe0?Oe.length===2?typeof Oe[1]==s?this[Oe[0]]=Oe[1].call(this,at):this[Oe[0]]=Oe[1]:Oe.length===3?typeof Oe[1]===s&&!(Oe[1].exec&&Oe[1].test)?this[Oe[0]]=at?Oe[1].call(this,at,Oe[2]):r:this[Oe[0]]=at?at.replace(Oe[1],Oe[2]):r:Oe.length===4&&(this[Oe[0]]=at?Oe[3].call(this,at.replace(Oe[1],Oe[2])):r):this[Oe]=at||r;pe+=2}},Te=function(Q,ce){for(var pe in ce)if(typeof ce[pe]===l&&ce[pe].length>0){for(var De=0;De2&&(_e[f]="iPad",_e[m]=_),_e},this.getEngine=function(){var _e={};return _e[h]=r,_e[b]=r,Qe.call(_e,De,Je.engine),_e},this.getOS=function(){var _e={};return _e[h]=r,_e[b]=r,Qe.call(_e,De,Je.os),Oe&&!_e[h]&&Ie&&Ie.platform&&Ie.platform!="Unknown"&&(_e[h]=Ie.platform.replace(/chrome os/i,te).replace(/macos/i,ee)),_e},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 De},this.setUA=function(_e){return De=typeof _e===u&&_e.length>T?ke(_e,T):_e,this},this.setUA(De),this};ge.VERSION=o,ge.BROWSER=z([h,b,d]),ge.CPU=z([v]),ge.DEVICE=z([f,p,m,g,w,C,_,x,E]),ge.ENGINE=ge.OS=z([h,b]),e.exports&&(t=e.exports=ge),t.UAParser=ge;var Y=typeof n!==c&&(n.jQuery||n.Zepto);if(Y&&!Y.ua){var W=new ge;Y.ua=W.getResult(),Y.ua.get=function(){return W.getUA()},Y.ua.set=function(Q){W.setUA(Q);var ce=W.getResult();for(var pe in ce)Y.ua[pe]=ce[pe]}}})(typeof window=="object"?window:We)})(vD,vD.exports);var Sxe=vD.exports,wy={},Txe=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},lQ={},Jo={};let x4;const Axe=[0,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];Jo.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Jo.getSymbolTotalCodewords=function(t){return Axe[t]};Jo.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Jo.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');x4=t};Jo.isKanjiModeEnabled=function(){return typeof x4<"u"};Jo.toSJIS=function(t){return x4(t)};var Jx={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,o){if(e.isValid(r))return r;try{return t(r)}catch{return o}}})(Jx);function uQ(){this.buffer=[],this.length=0}uQ.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Dxe=uQ;function Ey(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Ey.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)};Ey.prototype.get=function(e,t){return this.data[e*this.size+t]};Ey.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Ey.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var kxe=Ey,dQ={};(function(e){const t=Jo.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const o=Math.floor(r/7)+2,a=t(r),i=a===145?26:Math.ceil((a-13)/(2*o-2))*2,s=[a-7];for(let c=1;c=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const a=o.size;let i=0,s=0,c=0,l=null,u=null;for(let d=0;d=5&&(i+=t.N1+(s-5)),l=h,s=1),h=o.get(f,d),h===u?c++:(c>=5&&(i+=t.N1+(c-5)),u=h,c=1)}s>=5&&(i+=t.N1+(s-5)),c>=5&&(i+=t.N1+(c-5))}return i},e.getPenaltyN2=function(o){const a=o.size;let i=0;for(let s=0;s=10&&(s===1488||s===93)&&i++,c=c<<1&2047|o.get(u,l),u>=10&&(c===1488||c===93)&&i++}return i*t.N3},e.getPenaltyN4=function(o){let a=0;const i=o.data.length;for(let c=0;c=0;){const i=a[0];for(let c=0;c0){const a=new Uint8Array(this.degree);return a.set(r,o),a}return r};var Pxe=C4,gQ={},Dl={},S4={};S4.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var $i={};const yQ="[0-9]+",Ixe="[A-Z $%*+\\-./:]+";let yg="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";yg=yg.replace(/u/g,"\\u");const Oxe="(?:(?![A-Z0-9 $%*+\\-./:]|"+yg+`)(?:.|[\r -]))+`;$i.KANJI=new RegExp(yg,"g");$i.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");$i.BYTE=new RegExp(Oxe,"g");$i.NUMERIC=new RegExp(yQ,"g");$i.ALPHANUMERIC=new RegExp(Ixe,"g");const Rxe=new RegExp("^"+yg+"$"),Nxe=new RegExp("^"+yQ+"$"),Bxe=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");$i.testKanji=function(t){return Rxe.test(t)};$i.testNumeric=function(t){return Nxe.test(t)};$i.testAlphanumeric=function(t){return Bxe.test(t)};(function(e){const t=S4,n=$i;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,i){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?a.ccBits[0]:i<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return n.testNumeric(a)?e.NUMERIC:n.testAlphanumeric(a)?e.ALPHANUMERIC:n.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(a,i){if(e.isValid(a))return a;try{return r(a)}catch{return i}}})(Dl);(function(e){const t=Jo,n=Zx,r=Jx,o=Dl,a=S4,i=7973,s=t.getBCHDigit(i);function c(f,h,m){for(let p=1;p<=40;p++)if(h<=e.getCapacity(p,m,f))return p}function l(f,h){return o.getCharCountIndicator(f,h)+4}function u(f,h){let m=0;return f.forEach(function(p){const b=l(p.mode,h);m+=b+p.getBitsLength()}),m}function d(f,h){for(let m=1;m<=40;m++)if(u(f,m)<=e.getCapacity(m,h,o.MIXED))return m}e.from=function(h,m){return a.isValid(h)?parseInt(h,10):m},e.getCapacity=function(h,m,p){if(!a.isValid(h))throw new Error("Invalid QR Code version");typeof p>"u"&&(p=o.BYTE);const b=t.getSymbolTotalCodewords(h),v=n.getTotalCodewordsCount(h,m),g=(b-v)*8;if(p===o.MIXED)return g;const w=g-l(p,h);switch(p){case o.NUMERIC:return Math.floor(w/10*3);case o.ALPHANUMERIC:return Math.floor(w/11*2);case o.KANJI:return Math.floor(w/13);case o.BYTE:default:return Math.floor(w/8)}},e.getBestVersionForData=function(h,m){let p;const b=r.from(m,r.M);if(Array.isArray(h)){if(h.length>1)return d(h,b);if(h.length===0)return 1;p=h[0]}else p=h;return c(p.mode,p.getLength(),b)},e.getEncodedBits=function(h){if(!a.isValid(h)||h<7)throw new Error("Invalid QR Code version");let m=h<<12;for(;t.getBCHDigit(m)-s>=0;)m^=i<=0;)o^=vQ<0&&(r=this.data.substr(n),o=parseInt(r,10),t.put(o,a*3+1))};var Lxe=Th;const Uxe=Dl,b3=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Ah(e){this.mode=Uxe.ALPHANUMERIC,this.data=e}Ah.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Ah.prototype.getLength=function(){return this.data.length};Ah.prototype.getBitsLength=function(){return Ah.getBitsLength(this.data.length)};Ah.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=b3.indexOf(this.data[n])*45;r+=b3.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(b3.indexOf(this.data[n]),6)};var $xe=Ah,zxe=function(t){for(var n=[],r=t.length,o=0;o=55296&&a<=56319&&r>o+1){var i=t.charCodeAt(o+1);i>=56320&&i<=57343&&(a=(a-55296)*1024+i-56320+65536,o+=1)}if(a<128){n.push(a);continue}if(a<2048){n.push(a>>6|192),n.push(a&63|128);continue}if(a<55296||a>=57344&&a<65536){n.push(a>>12|224),n.push(a>>6&63|128),n.push(a&63|128);continue}if(a>=65536&&a<=1114111){n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(a&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const Hxe=zxe,qxe=Dl;function Dh(e){this.mode=qxe.BYTE,typeof e=="string"&&(e=Hxe(e)),this.data=new Uint8Array(e)}Dh.getBitsLength=function(t){return t*8};Dh.prototype.getLength=function(){return this.data.length};Dh.prototype.getBitsLength=function(){return Dh.getBitsLength(this.data.length)};Dh.prototype.write=function(e){for(let t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` -Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var Kxe=kh,EQ={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,o){var a={},i={};i[r]=0;var s=t.PriorityQueue.make();s.push(r,0);for(var c,l,u,d,f,h,m,p,b;!s.empty();){c=s.pop(),l=c.value,d=c.cost,f=n[l]||{};for(u in f)f.hasOwnProperty(u)&&(h=f[u],m=d+h,p=i[u],b=typeof i[u]>"u",(b||p>m)&&(i[u]=m,s.push(u,m),a[u]=l))}if(typeof o<"u"&&typeof i[o]>"u"){var v=["Could not find a path from ",r," to ",o,"."].join("");throw new Error(v)}return a},extract_shortest_path_from_predecessor_list:function(n,r){for(var o=[],a=r;a;)o.push(a),n[a],a=n[a];return o.reverse(),o},find_path:function(n,r,o){var a=t.single_source_shortest_paths(n,r,o);return t.extract_shortest_path_from_predecessor_list(a,o)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,o={},a;n=n||{};for(a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);return o.queue=[],o.sorter=n.sorter||r.default_sorter,o},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var o={value:n,cost:r};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(EQ);var Yxe=EQ.exports;(function(e){const t=Dl,n=Lxe,r=$xe,o=Wxe,a=Kxe,i=$i,s=Jo,c=Yxe;function l(v){return unescape(encodeURIComponent(v)).length}function u(v,g,w){const _=[];let C;for(;(C=v.exec(w))!==null;)_.push({data:C[0],index:C.index,mode:g,length:C[0].length});return _}function d(v){const g=u(i.NUMERIC,t.NUMERIC,v),w=u(i.ALPHANUMERIC,t.ALPHANUMERIC,v);let _,C;return s.isKanjiModeEnabled()?(_=u(i.BYTE,t.BYTE,v),C=u(i.KANJI,t.KANJI,v)):(_=u(i.BYTE_KANJI,t.BYTE,v),C=[]),g.concat(w,_,C).sort(function(E,T){return E.index-T.index}).map(function(E){return{data:E.data,mode:E.mode,length:E.length}})}function f(v,g){switch(g){case t.NUMERIC:return n.getBitsLength(v);case t.ALPHANUMERIC:return r.getBitsLength(v);case t.KANJI:return a.getBitsLength(v);case t.BYTE:return o.getBitsLength(v)}}function h(v){return v.reduce(function(g,w){const _=g.length-1>=0?g[g.length-1]:null;return _&&_.mode===w.mode?(g[g.length-1].data+=w.data,g):(g.push(w),g)},[])}function m(v){const g=[];for(let w=0;w=0&&s<=6&&(c===0||c===6)||c>=0&&c<=6&&(s===0||s===6)||s>=2&&s<=4&&c>=2&&c<=4?e.set(a+s,i+c,!0,!0):e.set(a+s,i+c,!1,!0))}}function o2e(e){const t=e.size;for(let n=8;n>s&1)===1,e.set(o,a,i,!0),e.set(a,o,i,!0)}function E3(e,t,n){const r=e.size,o=t2e.getEncodedBits(t,n);let a,i;for(a=0;a<15;a++)i=(o>>a&1)===1,a<6?e.set(a,8,i,!0):a<8?e.set(a+1,8,i,!0):e.set(r-15+a,8,i,!0),a<8?e.set(8,r-a-1,i,!0):a<9?e.set(8,15-a-1+1,i,!0):e.set(8,15-a-1,i,!0);e.set(r-8,8,1,!0)}function s2e(e,t){const n=e.size;let r=-1,o=n-1,a=7,i=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let c=0;c<2;c++)if(!e.isReserved(o,s-c)){let l=!1;i>>a&1)===1),e.set(o,s-c,l),a--,a===-1&&(i++,a=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}function c2e(e,t,n){const r=new Qxe;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),n2e.getCharCountIndicator(c.mode,e)),c.write(r)});const o=t2.getSymbolTotalCodewords(e),a=_D.getTotalCodewordsCount(e,t),i=(o-a)*8;for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const s=(i-r.getLengthInBits())/8;for(let c=0;c=7&&i2e(c,t),s2e(c,i),isNaN(r)&&(r=ED.getBestMask(c,E3.bind(null,c,n))),ED.applyMask(r,c),E3(c,n,r),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}lQ.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let r=v3.M,o,a;return typeof n<"u"&&(r=v3.from(n.errorCorrectionLevel,v3.M),o=wE.from(n.version),a=ED.from(n.maskPattern),n.toSJISFunc&&t2.setToSJISFunction(n.toSJISFunc)),u2e(t,o,r,a)};var _Q={},T4={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");const o=parseInt(r.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const o=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,a=r.width&&r.width>=21?r.width:void 0,i=r.scale||4;return{width:a,scale:a?4:i,margin:o,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,o){return o.width&&o.width>=r+o.margin*2?o.width/(r+o.margin*2):o.scale},e.getImageWidth=function(r,o){const a=e.getScale(r,o);return Math.floor((r+o.margin*2)*a)},e.qrToImageData=function(r,o,a){const i=o.modules.size,s=o.modules.data,c=e.getScale(i,a),l=Math.floor((i+a.margin*2)*c),u=a.margin*c,d=[a.color.light,a.color.dark];for(let f=0;f=u&&h>=u&&f"u"&&(!i||!i.getContext)&&(c=i,i=void 0),i||(l=r()),c=t.getOptions(c);const u=t.getImageWidth(a.modules.size,c),d=l.getContext("2d"),f=d.createImageData(u,u);return t.qrToImageData(f.data,a,c),n(d,l,u),d.putImageData(f,0,0),l},e.renderToDataURL=function(a,i,s){let c=s;typeof c>"u"&&(!i||!i.getContext)&&(c=i,i=void 0),c||(c={});const l=e.render(a,i,c),u=c.type||"image/png",d=c.rendererOpts||{};return l.toDataURL(u,d.quality)}})(_Q);var xQ={};const d2e=T4;function rB(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function _3(e,t,n){let r=e+t;return typeof n<"u"&&(r+=" "+n),r}function f2e(e,t,n){let r="",o=0,a=!1,i=0;for(let s=0;s0&&c>0&&e[s-1]||(r+=a?_3("M",c+n,.5+l+n):_3("m",o,0),o=0,a=!1),c+1':"",l="',u='viewBox="0 0 '+s+" "+s+'"',f=''+c+l+` -`;return typeof r=="function"&&r(null,f),f};const h2e=Txe,xD=lQ,CQ=_Q,m2e=xQ;function A4(e,t,n,r,o){const a=[].slice.call(arguments,1),i=a.length,s=typeof a[i-1]=="function";if(!s&&!h2e())throw new Error("Callback required as last argument");if(s){if(i<2)throw new Error("Too few arguments provided");i===2?(o=n,n=t,t=r=void 0):i===3&&(t.getContext&&typeof o>"u"?(o=r,r=void 0):(o=r,r=n,n=t,t=void 0))}else{if(i<1)throw new Error("Too few arguments provided");return i===1?(n=t,t=r=void 0):i===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(c,l){try{const u=xD.create(n,r);c(e(u,t,r))}catch(u){l(u)}})}try{const c=xD.create(n,r);o(null,e(c,t,r))}catch(c){o(c)}}wy.create=xD.create;wy.toCanvas=A4.bind(null,CQ.render);wy.toDataURL=A4.bind(null,CQ.renderToDataURL);wy.toString=A4.bind(null,function(e,t,n){return m2e.render(e,n)});var D4={},n2={},ot={},SQ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){var l=s>>>16&65535,u=s&65535,d=c>>>16&65535,f=c&65535;return u*f+(l*f+u*d<<16>>>0)|0}e.mul=Math.imul||t;function n(s,c){return s+c|0}e.add=n;function r(s,c){return s-c|0}e.sub=r;function o(s,c){return s<>>32-c}e.rotl=o;function a(s,c){return s<<32-c|s>>>c}e.rotr=a;function i(s){return typeof s=="number"&&isFinite(s)&&Math.floor(s)===s}e.isInteger=Number.isInteger||i,e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(s){return e.isInteger(s)&&s>=-e.MAX_SAFE_INTEGER&&s<=e.MAX_SAFE_INTEGER}})(SQ);Object.defineProperty(ot,"__esModule",{value:!0});var TQ=SQ;function p2e(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}ot.readInt16BE=p2e;function g2e(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}ot.readUint16BE=g2e;function y2e(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}ot.readInt16LE=y2e;function b2e(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}ot.readUint16LE=b2e;function AQ(e,t,n){return t===void 0&&(t=new Uint8Array(2)),n===void 0&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}ot.writeUint16BE=AQ;ot.writeInt16BE=AQ;function DQ(e,t,n){return t===void 0&&(t=new Uint8Array(2)),n===void 0&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}ot.writeUint16LE=DQ;ot.writeInt16LE=DQ;function CD(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}ot.readInt32BE=CD;function SD(e,t){return t===void 0&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}ot.readUint32BE=SD;function TD(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}ot.readInt32LE=TD;function AD(e,t){return t===void 0&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}ot.readUint32LE=AD;function EE(e,t,n){return t===void 0&&(t=new Uint8Array(4)),n===void 0&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}ot.writeUint32BE=EE;ot.writeInt32BE=EE;function _E(e,t,n){return t===void 0&&(t=new Uint8Array(4)),n===void 0&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}ot.writeUint32LE=_E;ot.writeInt32LE=_E;function v2e(e,t){t===void 0&&(t=0);var n=CD(e,t),r=CD(e,t+4);return n*4294967296+r-(r>>31)*4294967296}ot.readInt64BE=v2e;function w2e(e,t){t===void 0&&(t=0);var n=SD(e,t),r=SD(e,t+4);return n*4294967296+r}ot.readUint64BE=w2e;function E2e(e,t){t===void 0&&(t=0);var n=TD(e,t),r=TD(e,t+4);return r*4294967296+n-(n>>31)*4294967296}ot.readInt64LE=E2e;function _2e(e,t){t===void 0&&(t=0);var n=AD(e,t),r=AD(e,t+4);return r*4294967296+n}ot.readUint64LE=_2e;function kQ(e,t,n){return t===void 0&&(t=new Uint8Array(8)),n===void 0&&(n=0),EE(e/4294967296>>>0,t,n),EE(e>>>0,t,n+4),t}ot.writeUint64BE=kQ;ot.writeInt64BE=kQ;function jQ(e,t,n){return t===void 0&&(t=new Uint8Array(8)),n===void 0&&(n=0),_E(e>>>0,t,n),_E(e/4294967296>>>0,t,n+4),t}ot.writeUint64LE=jQ;ot.writeInt64LE=jQ;function x2e(e,t,n){if(n===void 0&&(n=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,o=1,a=e/8+n-1;a>=n;a--)r+=t[a]*o,o*=256;return r}ot.readUintBE=x2e;function C2e(e,t,n){if(n===void 0&&(n=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,o=1,a=n;a=r;a--)n[a]=t/o&255,o*=256;return n}ot.writeUintBE=S2e;function T2e(e,t,n,r){if(n===void 0&&(n=new Uint8Array(e/8)),r===void 0&&(r=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!TQ.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var o=1,a=r;a>>16|P<<16,R=R+P|0,E^=R,E=E>>>20|E<<12,_=_+T|0,O^=_,O=O>>>16|O<<16,F=F+O|0,T^=F,T=T>>>20|T<<12,C=C+k|0,I^=C,I=I>>>16|I<<16,B=B+I|0,k^=B,k=k>>>20|k<<12,x=x+D|0,N^=x,N=N>>>16|N<<16,j=j+N|0,D^=j,D=D>>>20|D<<12,C=C+k|0,I^=C,I=I>>>24|I<<8,B=B+I|0,k^=B,k=k>>>25|k<<7,x=x+D|0,N^=x,N=N>>>24|N<<8,j=j+N|0,D^=j,D=D>>>25|D<<7,_=_+T|0,O^=_,O=O>>>24|O<<8,F=F+O|0,T^=F,T=T>>>25|T<<7,w=w+E|0,P^=w,P=P>>>24|P<<8,R=R+P|0,E^=R,E=E>>>25|E<<7,w=w+T|0,N^=w,N=N>>>16|N<<16,B=B+N|0,T^=B,T=T>>>20|T<<12,_=_+k|0,P^=_,P=P>>>16|P<<16,j=j+P|0,k^=j,k=k>>>20|k<<12,C=C+D|0,O^=C,O=O>>>16|O<<16,R=R+O|0,D^=R,D=D>>>20|D<<12,x=x+E|0,I^=x,I=I>>>16|I<<16,F=F+I|0,E^=F,E=E>>>20|E<<12,C=C+D|0,O^=C,O=O>>>24|O<<8,R=R+O|0,D^=R,D=D>>>25|D<<7,x=x+E|0,I^=x,I=I>>>24|I<<8,F=F+I|0,E^=F,E=E>>>25|E<<7,_=_+k|0,P^=_,P=P>>>24|P<<8,j=j+P|0,k^=j,k=k>>>25|k<<7,w=w+T|0,N^=w,N=N>>>24|N<<8,B=B+N|0,T^=B,T=T>>>25|T<<7;Ar.writeUint32LE(w+r|0,e,0),Ar.writeUint32LE(_+o|0,e,4),Ar.writeUint32LE(C+a|0,e,8),Ar.writeUint32LE(x+i|0,e,12),Ar.writeUint32LE(E+s|0,e,16),Ar.writeUint32LE(T+c|0,e,20),Ar.writeUint32LE(k+l|0,e,24),Ar.writeUint32LE(D+u|0,e,28),Ar.writeUint32LE(R+d|0,e,32),Ar.writeUint32LE(F+f|0,e,36),Ar.writeUint32LE(B+h|0,e,40),Ar.writeUint32LE(j+m|0,e,44),Ar.writeUint32LE(P+p|0,e,48),Ar.writeUint32LE(O+b|0,e,52),Ar.writeUint32LE(I+v|0,e,56),Ar.writeUint32LE(N+g|0,e,60)}function PQ(e,t,n,r,o){if(o===void 0&&(o=0),e.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(r.length>>=8,t++;if(r>0)throw new Error("ChaCha: counter overflow")}var IQ={},kl={};Object.defineProperty(kl,"__esModule",{value:!0});function U2e(e,t,n){return~(e-1)&t|e-1&n}kl.select=U2e;function $2e(e,t){return(e|0)-(t|0)-1>>>31&1}kl.lessOrEqual=$2e;function OQ(e,t){if(e.length!==t.length)return 0;for(var n=0,r=0;r>>8}kl.compare=OQ;function z2e(e,t){return e.length===0||t.length===0?!1:OQ(e,t)!==0}kl.equal=z2e;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=kl,n=si;e.DIGEST_LENGTH=16;var r=function(){function i(s){this.digestLength=e.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var c=s[0]|s[1]<<8;this._r[0]=c&8191;var l=s[2]|s[3]<<8;this._r[1]=(c>>>13|l<<3)&8191;var u=s[4]|s[5]<<8;this._r[2]=(l>>>10|u<<6)&7939;var d=s[6]|s[7]<<8;this._r[3]=(u>>>7|d<<9)&8191;var f=s[8]|s[9]<<8;this._r[4]=(d>>>4|f<<12)&255,this._r[5]=f>>>1&8190;var h=s[10]|s[11]<<8;this._r[6]=(f>>>14|h<<2)&8191;var m=s[12]|s[13]<<8;this._r[7]=(h>>>11|m<<5)&8065;var p=s[14]|s[15]<<8;this._r[8]=(m>>>8|p<<8)&8191,this._r[9]=p>>>5&127,this._pad[0]=s[16]|s[17]<<8,this._pad[1]=s[18]|s[19]<<8,this._pad[2]=s[20]|s[21]<<8,this._pad[3]=s[22]|s[23]<<8,this._pad[4]=s[24]|s[25]<<8,this._pad[5]=s[26]|s[27]<<8,this._pad[6]=s[28]|s[29]<<8,this._pad[7]=s[30]|s[31]<<8}return i.prototype._blocks=function(s,c,l){for(var u=this._fin?0:2048,d=this._h[0],f=this._h[1],h=this._h[2],m=this._h[3],p=this._h[4],b=this._h[5],v=this._h[6],g=this._h[7],w=this._h[8],_=this._h[9],C=this._r[0],x=this._r[1],E=this._r[2],T=this._r[3],k=this._r[4],D=this._r[5],R=this._r[6],F=this._r[7],B=this._r[8],j=this._r[9];l>=16;){var P=s[c+0]|s[c+1]<<8;d+=P&8191;var O=s[c+2]|s[c+3]<<8;f+=(P>>>13|O<<3)&8191;var I=s[c+4]|s[c+5]<<8;h+=(O>>>10|I<<6)&8191;var N=s[c+6]|s[c+7]<<8;m+=(I>>>7|N<<9)&8191;var M=s[c+8]|s[c+9]<<8;p+=(N>>>4|M<<12)&8191,b+=M>>>1&8191;var L=s[c+10]|s[c+11]<<8;v+=(M>>>14|L<<2)&8191;var X=s[c+12]|s[c+13]<<8;g+=(L>>>11|X<<5)&8191;var J=s[c+14]|s[c+15]<<8;w+=(X>>>8|J<<8)&8191,_+=J>>>5|u;var U=0,G=U;G+=d*C,G+=f*(5*j),G+=h*(5*B),G+=m*(5*F),G+=p*(5*R),U=G>>>13,G&=8191,G+=b*(5*D),G+=v*(5*k),G+=g*(5*T),G+=w*(5*E),G+=_*(5*x),U+=G>>>13,G&=8191;var Z=U;Z+=d*x,Z+=f*C,Z+=h*(5*j),Z+=m*(5*B),Z+=p*(5*F),U=Z>>>13,Z&=8191,Z+=b*(5*R),Z+=v*(5*D),Z+=g*(5*k),Z+=w*(5*T),Z+=_*(5*E),U+=Z>>>13,Z&=8191;var ae=U;ae+=d*E,ae+=f*x,ae+=h*C,ae+=m*(5*j),ae+=p*(5*B),U=ae>>>13,ae&=8191,ae+=b*(5*F),ae+=v*(5*R),ae+=g*(5*D),ae+=w*(5*k),ae+=_*(5*T),U+=ae>>>13,ae&=8191;var ne=U;ne+=d*T,ne+=f*E,ne+=h*x,ne+=m*C,ne+=p*(5*j),U=ne>>>13,ne&=8191,ne+=b*(5*B),ne+=v*(5*F),ne+=g*(5*R),ne+=w*(5*D),ne+=_*(5*k),U+=ne>>>13,ne&=8191;var ie=U;ie+=d*k,ie+=f*T,ie+=h*E,ie+=m*x,ie+=p*C,U=ie>>>13,ie&=8191,ie+=b*(5*j),ie+=v*(5*B),ie+=g*(5*F),ie+=w*(5*R),ie+=_*(5*D),U+=ie>>>13,ie&=8191;var te=U;te+=d*D,te+=f*k,te+=h*T,te+=m*E,te+=p*x,U=te>>>13,te&=8191,te+=b*C,te+=v*(5*j),te+=g*(5*B),te+=w*(5*F),te+=_*(5*R),U+=te>>>13,te&=8191;var ee=U;ee+=d*R,ee+=f*D,ee+=h*k,ee+=m*T,ee+=p*E,U=ee>>>13,ee&=8191,ee+=b*x,ee+=v*C,ee+=g*(5*j),ee+=w*(5*B),ee+=_*(5*F),U+=ee>>>13,ee&=8191;var re=U;re+=d*F,re+=f*R,re+=h*D,re+=m*k,re+=p*T,U=re>>>13,re&=8191,re+=b*E,re+=v*x,re+=g*C,re+=w*(5*j),re+=_*(5*B),U+=re>>>13,re&=8191;var z=U;z+=d*B,z+=f*F,z+=h*R,z+=m*D,z+=p*k,U=z>>>13,z&=8191,z+=b*T,z+=v*E,z+=g*x,z+=w*C,z+=_*(5*j),U+=z>>>13,z&=8191;var fe=U;fe+=d*j,fe+=f*B,fe+=h*F,fe+=m*R,fe+=p*D,U=fe>>>13,fe&=8191,fe+=b*k,fe+=v*T,fe+=g*E,fe+=w*x,fe+=_*C,U+=fe>>>13,fe&=8191,U=(U<<2)+U|0,U=U+G|0,G=U&8191,U=U>>>13,Z+=U,d=G,f=Z,h=ae,m=ne,p=ie,b=te,v=ee,g=re,w=z,_=fe,c+=16,l-=16}this._h[0]=d,this._h[1]=f,this._h[2]=h,this._h[3]=m,this._h[4]=p,this._h[5]=b,this._h[6]=v,this._h[7]=g,this._h[8]=w,this._h[9]=_},i.prototype.finish=function(s,c){c===void 0&&(c=0);var l=new Uint16Array(10),u,d,f,h;if(this._leftover){for(h=this._leftover,this._buffer[h++]=1;h<16;h++)this._buffer[h]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(u=this._h[1]>>>13,this._h[1]&=8191,h=2;h<10;h++)this._h[h]+=u,u=this._h[h]>>>13,this._h[h]&=8191;for(this._h[0]+=u*5,u=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=u,u=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=u,l[0]=this._h[0]+5,u=l[0]>>>13,l[0]&=8191,h=1;h<10;h++)l[h]=this._h[h]+u,u=l[h]>>>13,l[h]&=8191;for(l[9]-=8192,d=(u^1)-1,h=0;h<10;h++)l[h]&=d;for(d=~d,h=0;h<10;h++)this._h[h]=this._h[h]&d|l[h];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,f=this._h[0]+this._pad[0],this._h[0]=f&65535,h=1;h<8;h++)f=(this._h[h]+this._pad[h]|0)+(f>>>16)|0,this._h[h]=f&65535;return s[c+0]=this._h[0]>>>0,s[c+1]=this._h[0]>>>8,s[c+2]=this._h[1]>>>0,s[c+3]=this._h[1]>>>8,s[c+4]=this._h[2]>>>0,s[c+5]=this._h[2]>>>8,s[c+6]=this._h[3]>>>0,s[c+7]=this._h[3]>>>8,s[c+8]=this._h[4]>>>0,s[c+9]=this._h[4]>>>8,s[c+10]=this._h[5]>>>0,s[c+11]=this._h[5]>>>8,s[c+12]=this._h[6]>>>0,s[c+13]=this._h[6]>>>8,s[c+14]=this._h[7]>>>0,s[c+15]=this._h[7]>>>8,this._finished=!0,this},i.prototype.update=function(s){var c=0,l=s.length,u;if(this._leftover){u=16-this._leftover,u>l&&(u=l);for(var d=0;d=16&&(u=l-l%16,this._blocks(s,c,u),c+=u,l-=u),l){for(var d=0;d16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var h=new Uint8Array(16);h.set(l,h.length-l.length);var m=new Uint8Array(32);t.stream(this._key,h,m,4);var p=u.length+this.tagLength,b;if(f){if(f.length!==p)throw new Error("ChaCha20Poly1305: incorrect destination length");b=f}else b=new Uint8Array(p);return t.streamXOR(this._key,h,u,b,4),this._authenticate(b.subarray(b.length-this.tagLength,b.length),m,b.subarray(0,b.length-this.tagLength),d),r.wipe(h),b},c.prototype.open=function(l,u,d,f){if(l.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(u.length0&&h.update(i.subarray(f.length%16))),h.update(d),d.length%16>0&&h.update(i.subarray(d.length%16));var m=new Uint8Array(8);f&&o.writeUint64LE(f.length,m),h.update(m),o.writeUint64LE(d.length,m),h.update(m);for(var p=h.digest(),b=0;bthis.blockSize?this._inner.update(n).finish(r).clean():r.set(n);for(var o=0;o1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(t){for(var n=new Uint8Array(t),r=0;r256)throw new Error("randomString charset is too long");let f="";const h=u.length,m=256-256%h;for(;l>0;){const p=o(Math.ceil(l*256/m),d);for(let b=0;b0;b++){const v=p[b];v0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=c[u++],l--;this._bufferLength===this.blockSize&&(a(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(l>=this.blockSize&&(u=a(this._temp,this._state,c,u,l),l%=this.blockSize);l>0;)this._buffer[this._bufferLength++]=c[u++],l--;return this},s.prototype.finish=function(c){if(!this._finished){var l=this._bytesHashed,u=this._bufferLength,d=l/536870912|0,f=l<<3,h=l%64<56?64:128;this._buffer[u]=128;for(var m=u+1;m0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},s.prototype.restoreState=function(c){return this._state.set(c.state),this._bufferLength=c.bufferLength,c.buffer&&this._buffer.set(c.buffer),this._bytesHashed=c.bytesHashed,this._finished=!1,this},s.prototype.cleanSavedState=function(c){n.wipe(c.state),c.buffer&&n.wipe(c.buffer),c.bufferLength=0,c.bytesHashed=0},s}();e.SHA256=r;var o=new Int32Array([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]);function a(s,c,l,u,d){for(;d>=64;){for(var f=c[0],h=c[1],m=c[2],p=c[3],b=c[4],v=c[5],g=c[6],w=c[7],_=0;_<16;_++){var C=u+_*4;s[_]=t.readUint32BE(l,C)}for(var _=16;_<64;_++){var x=s[_-2],E=(x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10;x=s[_-15];var T=(x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3;s[_]=(E+s[_-7]|0)+(T+s[_-16]|0)}for(var _=0;_<64;_++){var E=(((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&v^~b&g)|0)+(w+(o[_]+s[_]|0)|0)|0,T=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&h^f&m^h&m)|0;w=g,g=v,v=b,b=p+E|0,p=m,m=h,h=f,f=E+T|0}c[0]+=f,c[1]+=h,c[2]+=m,c[3]+=p,c[4]+=b,c[5]+=v,c[6]+=g,c[7]+=w,u+=64,d-=64}return u}function i(s){var c=new r;c.update(s);var l=c.digest();return c.clean(),l}e.hash=i})(s2);var j4={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sharedKey=e.generateKeyPair=e.generateKeyPairFromSeed=e.scalarMultBase=e.scalarMult=e.SHARED_KEY_LENGTH=e.SECRET_KEY_LENGTH=e.PUBLIC_KEY_LENGTH=void 0;const t=r2,n=si;e.PUBLIC_KEY_LENGTH=32,e.SECRET_KEY_LENGTH=32,e.SHARED_KEY_LENGTH=32;function r(_){const C=new Float64Array(16);if(_)for(let x=0;x<_.length;x++)C[x]=_[x];return C}const o=new Uint8Array(32);o[0]=9;const a=r([56129,1]);function i(_){let C=1;for(let x=0;x<16;x++){let E=_[x]+C+65535;C=Math.floor(E/65536),_[x]=E-C*65536}_[0]+=C-1+37*(C-1)}function s(_,C,x){const E=~(x-1);for(let T=0;T<16;T++){const k=E&(_[T]^C[T]);_[T]^=k,C[T]^=k}}function c(_,C){const x=r(),E=r();for(let T=0;T<16;T++)E[T]=C[T];i(E),i(E),i(E);for(let T=0;T<2;T++){x[0]=E[0]-65517;for(let D=1;D<15;D++)x[D]=E[D]-65535-(x[D-1]>>16&1),x[D-1]&=65535;x[15]=E[15]-32767-(x[14]>>16&1);const k=x[15]>>16&1;x[14]&=65535,s(E,x,1-k)}for(let T=0;T<16;T++)_[2*T]=E[T]&255,_[2*T+1]=E[T]>>8}function l(_,C){for(let x=0;x<16;x++)_[x]=C[2*x]+(C[2*x+1]<<8);_[15]&=32767}function u(_,C,x){for(let E=0;E<16;E++)_[E]=C[E]+x[E]}function d(_,C,x){for(let E=0;E<16;E++)_[E]=C[E]-x[E]}function f(_,C,x){let E,T,k=0,D=0,R=0,F=0,B=0,j=0,P=0,O=0,I=0,N=0,M=0,L=0,X=0,J=0,U=0,G=0,Z=0,ae=0,ne=0,ie=0,te=0,ee=0,re=0,z=0,fe=0,ve=0,Ue=0,ke=0,Qe=0,Te=0,Ee=0,he=x[0],Me=x[1],ge=x[2],Y=x[3],W=x[4],Q=x[5],ce=x[6],pe=x[7],De=x[8],Ie=x[9],Je=x[10],Oe=x[11],_e=x[12],at=x[13],Ft=x[14],Lt=x[15];E=C[0],k+=E*he,D+=E*Me,R+=E*ge,F+=E*Y,B+=E*W,j+=E*Q,P+=E*ce,O+=E*pe,I+=E*De,N+=E*Ie,M+=E*Je,L+=E*Oe,X+=E*_e,J+=E*at,U+=E*Ft,G+=E*Lt,E=C[1],D+=E*he,R+=E*Me,F+=E*ge,B+=E*Y,j+=E*W,P+=E*Q,O+=E*ce,I+=E*pe,N+=E*De,M+=E*Ie,L+=E*Je,X+=E*Oe,J+=E*_e,U+=E*at,G+=E*Ft,Z+=E*Lt,E=C[2],R+=E*he,F+=E*Me,B+=E*ge,j+=E*Y,P+=E*W,O+=E*Q,I+=E*ce,N+=E*pe,M+=E*De,L+=E*Ie,X+=E*Je,J+=E*Oe,U+=E*_e,G+=E*at,Z+=E*Ft,ae+=E*Lt,E=C[3],F+=E*he,B+=E*Me,j+=E*ge,P+=E*Y,O+=E*W,I+=E*Q,N+=E*ce,M+=E*pe,L+=E*De,X+=E*Ie,J+=E*Je,U+=E*Oe,G+=E*_e,Z+=E*at,ae+=E*Ft,ne+=E*Lt,E=C[4],B+=E*he,j+=E*Me,P+=E*ge,O+=E*Y,I+=E*W,N+=E*Q,M+=E*ce,L+=E*pe,X+=E*De,J+=E*Ie,U+=E*Je,G+=E*Oe,Z+=E*_e,ae+=E*at,ne+=E*Ft,ie+=E*Lt,E=C[5],j+=E*he,P+=E*Me,O+=E*ge,I+=E*Y,N+=E*W,M+=E*Q,L+=E*ce,X+=E*pe,J+=E*De,U+=E*Ie,G+=E*Je,Z+=E*Oe,ae+=E*_e,ne+=E*at,ie+=E*Ft,te+=E*Lt,E=C[6],P+=E*he,O+=E*Me,I+=E*ge,N+=E*Y,M+=E*W,L+=E*Q,X+=E*ce,J+=E*pe,U+=E*De,G+=E*Ie,Z+=E*Je,ae+=E*Oe,ne+=E*_e,ie+=E*at,te+=E*Ft,ee+=E*Lt,E=C[7],O+=E*he,I+=E*Me,N+=E*ge,M+=E*Y,L+=E*W,X+=E*Q,J+=E*ce,U+=E*pe,G+=E*De,Z+=E*Ie,ae+=E*Je,ne+=E*Oe,ie+=E*_e,te+=E*at,ee+=E*Ft,re+=E*Lt,E=C[8],I+=E*he,N+=E*Me,M+=E*ge,L+=E*Y,X+=E*W,J+=E*Q,U+=E*ce,G+=E*pe,Z+=E*De,ae+=E*Ie,ne+=E*Je,ie+=E*Oe,te+=E*_e,ee+=E*at,re+=E*Ft,z+=E*Lt,E=C[9],N+=E*he,M+=E*Me,L+=E*ge,X+=E*Y,J+=E*W,U+=E*Q,G+=E*ce,Z+=E*pe,ae+=E*De,ne+=E*Ie,ie+=E*Je,te+=E*Oe,ee+=E*_e,re+=E*at,z+=E*Ft,fe+=E*Lt,E=C[10],M+=E*he,L+=E*Me,X+=E*ge,J+=E*Y,U+=E*W,G+=E*Q,Z+=E*ce,ae+=E*pe,ne+=E*De,ie+=E*Ie,te+=E*Je,ee+=E*Oe,re+=E*_e,z+=E*at,fe+=E*Ft,ve+=E*Lt,E=C[11],L+=E*he,X+=E*Me,J+=E*ge,U+=E*Y,G+=E*W,Z+=E*Q,ae+=E*ce,ne+=E*pe,ie+=E*De,te+=E*Ie,ee+=E*Je,re+=E*Oe,z+=E*_e,fe+=E*at,ve+=E*Ft,Ue+=E*Lt,E=C[12],X+=E*he,J+=E*Me,U+=E*ge,G+=E*Y,Z+=E*W,ae+=E*Q,ne+=E*ce,ie+=E*pe,te+=E*De,ee+=E*Ie,re+=E*Je,z+=E*Oe,fe+=E*_e,ve+=E*at,Ue+=E*Ft,ke+=E*Lt,E=C[13],J+=E*he,U+=E*Me,G+=E*ge,Z+=E*Y,ae+=E*W,ne+=E*Q,ie+=E*ce,te+=E*pe,ee+=E*De,re+=E*Ie,z+=E*Je,fe+=E*Oe,ve+=E*_e,Ue+=E*at,ke+=E*Ft,Qe+=E*Lt,E=C[14],U+=E*he,G+=E*Me,Z+=E*ge,ae+=E*Y,ne+=E*W,ie+=E*Q,te+=E*ce,ee+=E*pe,re+=E*De,z+=E*Ie,fe+=E*Je,ve+=E*Oe,Ue+=E*_e,ke+=E*at,Qe+=E*Ft,Te+=E*Lt,E=C[15],G+=E*he,Z+=E*Me,ae+=E*ge,ne+=E*Y,ie+=E*W,te+=E*Q,ee+=E*ce,re+=E*pe,z+=E*De,fe+=E*Ie,ve+=E*Je,Ue+=E*Oe,ke+=E*_e,Qe+=E*at,Te+=E*Ft,Ee+=E*Lt,k+=38*Z,D+=38*ae,R+=38*ne,F+=38*ie,B+=38*te,j+=38*ee,P+=38*re,O+=38*z,I+=38*fe,N+=38*ve,M+=38*Ue,L+=38*ke,X+=38*Qe,J+=38*Te,U+=38*Ee,T=1,E=k+T+65535,T=Math.floor(E/65536),k=E-T*65536,E=D+T+65535,T=Math.floor(E/65536),D=E-T*65536,E=R+T+65535,T=Math.floor(E/65536),R=E-T*65536,E=F+T+65535,T=Math.floor(E/65536),F=E-T*65536,E=B+T+65535,T=Math.floor(E/65536),B=E-T*65536,E=j+T+65535,T=Math.floor(E/65536),j=E-T*65536,E=P+T+65535,T=Math.floor(E/65536),P=E-T*65536,E=O+T+65535,T=Math.floor(E/65536),O=E-T*65536,E=I+T+65535,T=Math.floor(E/65536),I=E-T*65536,E=N+T+65535,T=Math.floor(E/65536),N=E-T*65536,E=M+T+65535,T=Math.floor(E/65536),M=E-T*65536,E=L+T+65535,T=Math.floor(E/65536),L=E-T*65536,E=X+T+65535,T=Math.floor(E/65536),X=E-T*65536,E=J+T+65535,T=Math.floor(E/65536),J=E-T*65536,E=U+T+65535,T=Math.floor(E/65536),U=E-T*65536,E=G+T+65535,T=Math.floor(E/65536),G=E-T*65536,k+=T-1+37*(T-1),T=1,E=k+T+65535,T=Math.floor(E/65536),k=E-T*65536,E=D+T+65535,T=Math.floor(E/65536),D=E-T*65536,E=R+T+65535,T=Math.floor(E/65536),R=E-T*65536,E=F+T+65535,T=Math.floor(E/65536),F=E-T*65536,E=B+T+65535,T=Math.floor(E/65536),B=E-T*65536,E=j+T+65535,T=Math.floor(E/65536),j=E-T*65536,E=P+T+65535,T=Math.floor(E/65536),P=E-T*65536,E=O+T+65535,T=Math.floor(E/65536),O=E-T*65536,E=I+T+65535,T=Math.floor(E/65536),I=E-T*65536,E=N+T+65535,T=Math.floor(E/65536),N=E-T*65536,E=M+T+65535,T=Math.floor(E/65536),M=E-T*65536,E=L+T+65535,T=Math.floor(E/65536),L=E-T*65536,E=X+T+65535,T=Math.floor(E/65536),X=E-T*65536,E=J+T+65535,T=Math.floor(E/65536),J=E-T*65536,E=U+T+65535,T=Math.floor(E/65536),U=E-T*65536,E=G+T+65535,T=Math.floor(E/65536),G=E-T*65536,k+=T-1+37*(T-1),_[0]=k,_[1]=D,_[2]=R,_[3]=F,_[4]=B,_[5]=j,_[6]=P,_[7]=O,_[8]=I,_[9]=N,_[10]=M,_[11]=L,_[12]=X,_[13]=J,_[14]=U,_[15]=G}function h(_,C){f(_,C,C)}function m(_,C){const x=r();for(let E=0;E<16;E++)x[E]=C[E];for(let E=253;E>=0;E--)h(x,x),E!==2&&E!==4&&f(x,x,C);for(let E=0;E<16;E++)_[E]=x[E]}function p(_,C){const x=new Uint8Array(32),E=new Float64Array(80),T=r(),k=r(),D=r(),R=r(),F=r(),B=r();for(let I=0;I<31;I++)x[I]=_[I];x[31]=_[31]&127|64,x[0]&=248,l(E,C);for(let I=0;I<16;I++)k[I]=E[I];T[0]=R[0]=1;for(let I=254;I>=0;--I){const N=x[I>>>3]>>>(I&7)&1;s(T,k,N),s(D,R,N),u(F,T,D),d(T,T,D),u(D,k,R),d(k,k,R),h(R,F),h(B,T),f(T,D,T),f(D,k,F),u(F,T,D),d(T,T,D),h(k,T),d(D,R,B),f(T,D,a),u(T,T,R),f(D,D,T),f(T,R,B),f(R,k,E),h(k,F),s(T,k,N),s(D,R,N)}for(let I=0;I<16;I++)E[I+16]=T[I],E[I+32]=D[I],E[I+48]=k[I],E[I+64]=R[I];const j=E.subarray(32),P=E.subarray(16);m(j,j),f(P,P,j);const O=new Uint8Array(32);return c(O,P),O}e.scalarMult=p;function b(_){return p(_,o)}e.scalarMultBase=b;function v(_){if(_.length!==e.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${e.SECRET_KEY_LENGTH} bytes`);const C=new Uint8Array(_);return{publicKey:b(C),secretKey:C}}e.generateKeyPairFromSeed=v;function g(_){const C=(0,t.randomBytes)(32,_),x=v(C);return(0,n.wipe)(C),x}e.generateKeyPair=g;function w(_,C,x=!1){if(_.length!==e.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(C.length!==e.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const E=p(_,C);if(x){let T=0;for(let k=0;ko+a.length,0));const n=BQ(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return P4(n)}function aCe(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,_=new Uint8Array(w);v!==g;){for(var C=m[v],x=0,E=w-1;(C!==0||x>>0,_[E]=C%s>>>0,C=C/s>>>0;if(C!==0)throw new Error("Non-zero carry");b=x,v++}for(var T=w-b;T!==w&&_[T]===0;)T++;for(var k=c.repeat(p);T>>0,w=new Uint8Array(g);m[p];){var _=n[m.charCodeAt(p)];if(_===255)return;for(var C=0,x=g-1;(_!==0||C>>0,w[x]=_%256>>>0,_=_/256>>>0;if(_!==0)throw new Error("Non-zero carry");v=C,p++}if(m[p]!==" "){for(var E=g-v;E!==g&&w[E]===0;)E++;for(var T=new Uint8Array(b+(g-E)),k=b;E!==g;)T[k++]=w[E++];return T}}}function h(m){var p=f(m);if(p)return p;throw new Error(`Non-${t} character`)}return{encode:d,decodeUnsafe:f,decode:h}}var iCe=aCe,sCe=iCe;const cCe=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},lCe=e=>new TextEncoder().encode(e),uCe=e=>new TextDecoder().decode(e);class dCe{constructor(t,n,r){this.name=t,this.prefix=n,this.baseEncode=r}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class fCe{constructor(t,n,r){if(this.name=t,this.prefix=n,n.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=n.codePointAt(0),this.baseDecode=r}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return FQ(this,t)}}class hCe{constructor(t){this.decoders=t}or(t){return FQ(this,t)}decode(t){const n=t[0],r=this.decoders[n];if(r)return r.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const FQ=(e,t)=>new hCe({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class mCe{constructor(t,n,r,o){this.name=t,this.prefix=n,this.baseEncode=r,this.baseDecode=o,this.encoder=new dCe(t,n,r),this.decoder=new fCe(t,n,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const c2=({name:e,prefix:t,encode:n,decode:r})=>new mCe(e,t,n,r),xy=({prefix:e,name:t,alphabet:n})=>{const{encode:r,decode:o}=sCe(n,t);return c2({prefix:e,name:t,encode:r,decode:a=>cCe(o(a))})},pCe=(e,t,n,r)=>{const o={};for(let u=0;u=8&&(s-=8,i[l++]=255&c>>s)}if(s>=n||255&c<<8-s)throw new SyntaxError("Unexpected end of data");return i},gCe=(e,t,n)=>{const r=t[t.length-1]==="=",o=(1<n;)i-=n,a+=t[o&s>>i];if(i&&(a+=t[o&s<c2({prefix:t,name:e,encode(o){return gCe(o,r,n)},decode(o){return pCe(o,r,n,e)}}),yCe=c2({prefix:"\0",name:"identity",encode:e=>uCe(e),decode:e=>lCe(e)}),bCe=Object.freeze(Object.defineProperty({__proto__:null,identity:yCe},Symbol.toStringTag,{value:"Module"})),vCe=_r({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),wCe=Object.freeze(Object.defineProperty({__proto__:null,base2:vCe},Symbol.toStringTag,{value:"Module"})),ECe=_r({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),_Ce=Object.freeze(Object.defineProperty({__proto__:null,base8:ECe},Symbol.toStringTag,{value:"Module"})),xCe=xy({prefix:"9",name:"base10",alphabet:"0123456789"}),CCe=Object.freeze(Object.defineProperty({__proto__:null,base10:xCe},Symbol.toStringTag,{value:"Module"})),SCe=_r({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),TCe=_r({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),ACe=Object.freeze(Object.defineProperty({__proto__:null,base16:SCe,base16upper:TCe},Symbol.toStringTag,{value:"Module"})),DCe=_r({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),kCe=_r({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),jCe=_r({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),PCe=_r({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),ICe=_r({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),OCe=_r({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),RCe=_r({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),NCe=_r({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),BCe=_r({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),FCe=Object.freeze(Object.defineProperty({__proto__:null,base32:DCe,base32hex:ICe,base32hexpad:RCe,base32hexpadupper:NCe,base32hexupper:OCe,base32pad:jCe,base32padupper:PCe,base32upper:kCe,base32z:BCe},Symbol.toStringTag,{value:"Module"})),MCe=xy({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),LCe=xy({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),UCe=Object.freeze(Object.defineProperty({__proto__:null,base36:MCe,base36upper:LCe},Symbol.toStringTag,{value:"Module"})),$Ce=xy({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),zCe=xy({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),HCe=Object.freeze(Object.defineProperty({__proto__:null,base58btc:$Ce,base58flickr:zCe},Symbol.toStringTag,{value:"Module"})),qCe=_r({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),WCe=_r({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),GCe=_r({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),VCe=_r({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),KCe=Object.freeze(Object.defineProperty({__proto__:null,base64:qCe,base64pad:WCe,base64url:GCe,base64urlpad:VCe},Symbol.toStringTag,{value:"Module"})),MQ=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),YCe=MQ.reduce((e,t,n)=>(e[n]=t,e),[]),QCe=MQ.reduce((e,t,n)=>(e[t.codePointAt(0)]=n,e),[]);function XCe(e){return e.reduce((t,n)=>(t+=YCe[n],t),"")}function JCe(e){const t=[];for(const n of e){const r=QCe[n.codePointAt(0)];if(r===void 0)throw new Error(`Non-base256emoji character: ${n}`);t.push(r)}return new Uint8Array(t)}const ZCe=c2({prefix:"🚀",name:"base256emoji",encode:XCe,decode:JCe}),e6e=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:ZCe},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const cB={...bCe,...wCe,..._Ce,...CCe,...ACe,...FCe,...UCe,...HCe,...KCe,...e6e};function LQ(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const lB=LQ("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),x3=LQ("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=BQ(e.length);for(let n=0;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new a6e:typeof navigator<"u"?hB(navigator.userAgent):f6e()}function u6e(e){return e!==""&&c6e.reduce(function(t,n){var r=n[0],o=n[1];if(t)return t;var a=o.exec(e);return!!a&&[r,a]},!1)}function hB(e){var t=u6e(e);if(!t)return null;var n=t[0],r=t[1];if(n==="searchbot")return new o6e;var o=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);o?o.length=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function y6e(e,t){return function(n,r){t(n,r,e)}}function b6e(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function v6e(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function s(u){try{l(r.next(u))}catch(d){i(d)}}function c(u){try{l(r.throw(u))}catch(d){i(d)}}function l(u){u.done?a(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})}function w6e(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $Q(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function x6e(){for(var e=[],t=0;t1||s(f,h)})})}function s(f,h){try{c(r[f](h))}catch(m){d(a[0][3],m)}}function c(f){f.value instanceof bg?Promise.resolve(f.value.v).then(l,u):d(a[0][2],f)}function l(f){s("next",f)}function u(f){s("throw",f)}function d(f,h){f(h),a.shift(),a.length&&s(a[0][0],a[0][1])}}function T6e(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,a){t[o]=e[o]?function(i){return(n=!n)?{value:bg(e[o](i)),done:o==="return"}:a?a(i):i}:a}}function A6e(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof PD=="function"?PD(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(i){return new Promise(function(s,c){i=e[a](i),o(s,c,i.done,i.value)})}}function o(a,i,s,c){Promise.resolve(c).then(function(l){a({value:l,done:s})},i)}}function D6e(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function k6e(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function j6e(e){return e&&e.__esModule?e:{default:e}}function P6e(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I6e(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}const O6e=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return jD},__asyncDelegator:T6e,__asyncGenerator:S6e,__asyncValues:A6e,__await:bg,__awaiter:v6e,__classPrivateFieldGet:P6e,__classPrivateFieldSet:I6e,__createBinding:E6e,__decorate:g6e,__exportStar:_6e,__extends:m6e,__generator:w6e,__importDefault:j6e,__importStar:k6e,__makeTemplateObject:D6e,__metadata:b6e,__param:y6e,__read:$Q,__rest:p6e,__spread:x6e,__spreadArrays:C6e,__values:PD},Symbol.toStringTag,{value:"Module"})),l2=Ns(O6e);var C3={},xp={},mB;function R6e(){if(mB)return xp;mB=1,Object.defineProperty(xp,"__esModule",{value:!0}),xp.delay=void 0;function e(t){return new Promise(n=>{setTimeout(()=>{n(!0)},t)})}return xp.delay=e,xp}var Gl={},S3={},Vl={},pB;function N6e(){return pB||(pB=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.ONE_THOUSAND=Vl.ONE_HUNDRED=void 0,Vl.ONE_HUNDRED=100,Vl.ONE_THOUSAND=1e3),Vl}var T3={},gB;function B6e(){return gB||(gB=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_YEAR=e.FOUR_WEEKS=e.THREE_WEEKS=e.TWO_WEEKS=e.ONE_WEEK=e.THIRTY_DAYS=e.SEVEN_DAYS=e.FIVE_DAYS=e.THREE_DAYS=e.ONE_DAY=e.TWENTY_FOUR_HOURS=e.TWELVE_HOURS=e.SIX_HOURS=e.THREE_HOURS=e.ONE_HOUR=e.SIXTY_MINUTES=e.THIRTY_MINUTES=e.TEN_MINUTES=e.FIVE_MINUTES=e.ONE_MINUTE=e.SIXTY_SECONDS=e.THIRTY_SECONDS=e.TEN_SECONDS=e.FIVE_SECONDS=e.ONE_SECOND=void 0,e.ONE_SECOND=1,e.FIVE_SECONDS=5,e.TEN_SECONDS=10,e.THIRTY_SECONDS=30,e.SIXTY_SECONDS=60,e.ONE_MINUTE=e.SIXTY_SECONDS,e.FIVE_MINUTES=e.ONE_MINUTE*5,e.TEN_MINUTES=e.ONE_MINUTE*10,e.THIRTY_MINUTES=e.ONE_MINUTE*30,e.SIXTY_MINUTES=e.ONE_MINUTE*60,e.ONE_HOUR=e.SIXTY_MINUTES,e.THREE_HOURS=e.ONE_HOUR*3,e.SIX_HOURS=e.ONE_HOUR*6,e.TWELVE_HOURS=e.ONE_HOUR*12,e.TWENTY_FOUR_HOURS=e.ONE_HOUR*24,e.ONE_DAY=e.TWENTY_FOUR_HOURS,e.THREE_DAYS=e.ONE_DAY*3,e.FIVE_DAYS=e.ONE_DAY*5,e.SEVEN_DAYS=e.ONE_DAY*7,e.THIRTY_DAYS=e.ONE_DAY*30,e.ONE_WEEK=e.SEVEN_DAYS,e.TWO_WEEKS=e.ONE_WEEK*2,e.THREE_WEEKS=e.ONE_WEEK*3,e.FOUR_WEEKS=e.ONE_WEEK*4,e.ONE_YEAR=e.ONE_DAY*365}(T3)),T3}var yB;function zQ(){return yB||(yB=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=l2;t.__exportStar(N6e(),e),t.__exportStar(B6e(),e)}(S3)),S3}var bB;function F6e(){if(bB)return Gl;bB=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.fromMiliseconds=Gl.toMiliseconds=void 0;const e=zQ();function t(r){return r*e.ONE_THOUSAND}Gl.toMiliseconds=t;function n(r){return Math.floor(r/e.ONE_THOUSAND)}return Gl.fromMiliseconds=n,Gl}var vB;function M6e(){return vB||(vB=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=l2;t.__exportStar(R6e(),e),t.__exportStar(F6e(),e)}(C3)),C3}var Zd={},wB;function L6e(){if(wB)return Zd;wB=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.Watch=void 0;class e{constructor(){this.timestamps=new Map}start(n){if(this.timestamps.has(n))throw new Error(`Watch already started for label: ${n}`);this.timestamps.set(n,{started:Date.now()})}stop(n){const r=this.get(n);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${n}`);const o=Date.now()-r.started;this.timestamps.set(n,{started:r.started,elapsed:o})}get(n){const r=this.timestamps.get(n);if(typeof r>"u")throw new Error(`No timestamp found for label: ${n}`);return r}elapsed(n){const r=this.get(n);return r.elapsed||Date.now()-r.started}}return Zd.Watch=e,Zd.default=e,Zd}var A3={},Cp={},EB;function U6e(){if(EB)return Cp;EB=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.IWatch=void 0;class e{}return Cp.IWatch=e,Cp}var _B;function $6e(){return _B||(_B=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),l2.__exportStar(U6e(),e)}(A3)),A3}(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=l2;t.__exportStar(M6e(),e),t.__exportStar(L6e(),e),t.__exportStar($6e(),e),t.__exportStar(zQ(),e)})(Au);var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});var z6e=Wt.getLocalStorage=aSe=Wt.getLocalStorageOrThrow=rSe=Wt.getCrypto=tSe=Wt.getCryptoOrThrow=HQ=Wt.getLocation=J6e=Wt.getLocationOrThrow=O4=Wt.getNavigator=Y6e=Wt.getNavigatorOrThrow=I4=Wt.getDocument=G6e=Wt.getDocumentOrThrow=q6e=Wt.getFromWindowOrThrow=H6e=Wt.getFromWindow=void 0;function wd(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}var H6e=Wt.getFromWindow=wd;function pm(e){const t=wd(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}var q6e=Wt.getFromWindowOrThrow=pm;function W6e(){return pm("document")}var G6e=Wt.getDocumentOrThrow=W6e;function V6e(){return wd("document")}var I4=Wt.getDocument=V6e;function K6e(){return pm("navigator")}var Y6e=Wt.getNavigatorOrThrow=K6e;function Q6e(){return wd("navigator")}var O4=Wt.getNavigator=Q6e;function X6e(){return pm("location")}var J6e=Wt.getLocationOrThrow=X6e;function Z6e(){return wd("location")}var HQ=Wt.getLocation=Z6e;function eSe(){return pm("crypto")}var tSe=Wt.getCryptoOrThrow=eSe;function nSe(){return wd("crypto")}var rSe=Wt.getCrypto=nSe;function oSe(){return pm("localStorage")}var aSe=Wt.getLocalStorageOrThrow=oSe;function iSe(){return wd("localStorage")}z6e=Wt.getLocalStorage=iSe;var R4={};Object.defineProperty(R4,"__esModule",{value:!0});var qQ=R4.getWindowMetadata=void 0;const xB=Wt;function sSe(){let e,t;try{e=xB.getDocumentOrThrow(),t=xB.getLocationOrThrow()}catch{return null}function n(){const d=e.getElementsByTagName("link"),f=[];for(let h=0;h-1){const b=m.getAttribute("href");if(b)if(b.toLowerCase().indexOf("https:")===-1&&b.toLowerCase().indexOf("http:")===-1&&b.indexOf("//")!==0){let v=t.protocol+"//"+t.host;if(b.indexOf("/")===0)v+=b;else{const g=t.pathname.split("/");g.pop();const w=g.join("/");v+=w+"/"+b}f.push(v)}else if(b.indexOf("//")===0){const v=t.protocol+b;f.push(v)}else f.push(b)}}return f}function r(...d){const f=e.getElementsByTagName("meta");for(let h=0;hm.getAttribute(b)).filter(b=>b?d.includes(b):!1);if(p.length&&p){const b=m.getAttribute("content");if(b)return b}}return""}function o(){let d=r("name","og:site_name","og:title","twitter:title");return d||(d=e.title),d}function a(){return r("description","og:description","twitter:description","keywords")}const i=o(),s=a(),c=t.origin,l=n();return{description:s,url:c,icons:l,name:i}}qQ=R4.getWindowMetadata=sSe;var vg={},cSe=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),WQ="%[a-f0-9]{2}",CB=new RegExp("("+WQ+")|([^%]+?)","gi"),SB=new RegExp("("+WQ+")+","gi");function ID(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],ID(n),ID(r))}function lSe(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(CB)||[],n=1;n{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]},hSe=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),a=0;ag==null,i=Symbol("encodeFragmentIdentifier");function s(g){switch(g.arrayFormat){case"index":return w=>(_,C)=>{const x=_.length;return C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?_:C===null?[..._,[u(w,g),"[",x,"]"].join("")]:[..._,[u(w,g),"[",u(x,g),"]=",u(C,g)].join("")]};case"bracket":return w=>(_,C)=>C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?_:C===null?[..._,[u(w,g),"[]"].join("")]:[..._,[u(w,g),"[]=",u(C,g)].join("")];case"colon-list-separator":return w=>(_,C)=>C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?_:C===null?[..._,[u(w,g),":list="].join("")]:[..._,[u(w,g),":list=",u(C,g)].join("")];case"comma":case"separator":case"bracket-separator":{const w=g.arrayFormat==="bracket-separator"?"[]=":"=";return _=>(C,x)=>x===void 0||g.skipNull&&x===null||g.skipEmptyString&&x===""?C:(x=x===null?"":x,C.length===0?[[u(_,g),w,u(x,g)].join("")]:[[C,u(x,g)].join(g.arrayFormatSeparator)])}default:return w=>(_,C)=>C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?_:C===null?[..._,u(w,g)]:[..._,[u(w,g),"=",u(C,g)].join("")]}}function c(g){let w;switch(g.arrayFormat){case"index":return(_,C,x)=>{if(w=/\[(\d*)\]$/.exec(_),_=_.replace(/\[\d*\]$/,""),!w){x[_]=C;return}x[_]===void 0&&(x[_]={}),x[_][w[1]]=C};case"bracket":return(_,C,x)=>{if(w=/(\[\])$/.exec(_),_=_.replace(/\[\]$/,""),!w){x[_]=C;return}if(x[_]===void 0){x[_]=[C];return}x[_]=[].concat(x[_],C)};case"colon-list-separator":return(_,C,x)=>{if(w=/(:list)$/.exec(_),_=_.replace(/:list$/,""),!w){x[_]=C;return}if(x[_]===void 0){x[_]=[C];return}x[_]=[].concat(x[_],C)};case"comma":case"separator":return(_,C,x)=>{const E=typeof C=="string"&&C.includes(g.arrayFormatSeparator),T=typeof C=="string"&&!E&&d(C,g).includes(g.arrayFormatSeparator);C=T?d(C,g):C;const k=E||T?C.split(g.arrayFormatSeparator).map(D=>d(D,g)):C===null?C:d(C,g);x[_]=k};case"bracket-separator":return(_,C,x)=>{const E=/(\[\])$/.test(_);if(_=_.replace(/\[\]$/,""),!E){x[_]=C&&d(C,g);return}const T=C===null?[]:C.split(g.arrayFormatSeparator).map(k=>d(k,g));if(x[_]===void 0){x[_]=T;return}x[_]=[].concat(x[_],T)};default:return(_,C,x)=>{if(x[_]===void 0){x[_]=C;return}x[_]=[].concat(x[_],C)}}}function l(g){if(typeof g!="string"||g.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(g,w){return w.encode?w.strict?t(g):encodeURIComponent(g):g}function d(g,w){return w.decode?n(g):g}function f(g){return Array.isArray(g)?g.sort():typeof g=="object"?f(Object.keys(g)).sort((w,_)=>Number(w)-Number(_)).map(w=>g[w]):g}function h(g){const w=g.indexOf("#");return w!==-1&&(g=g.slice(0,w)),g}function m(g){let w="";const _=g.indexOf("#");return _!==-1&&(w=g.slice(_)),w}function p(g){g=h(g);const w=g.indexOf("?");return w===-1?"":g.slice(w+1)}function b(g,w){return w.parseNumbers&&!Number.isNaN(Number(g))&&typeof g=="string"&&g.trim()!==""?g=Number(g):w.parseBooleans&&g!==null&&(g.toLowerCase()==="true"||g.toLowerCase()==="false")&&(g=g.toLowerCase()==="true"),g}function v(g,w){w=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},w),l(w.arrayFormatSeparator);const _=c(w),C=Object.create(null);if(typeof g!="string"||(g=g.trim().replace(/^[?#&]/,""),!g))return C;for(const x of g.split("&")){if(x==="")continue;let[E,T]=r(w.decode?x.replace(/\+/g," "):x,"=");T=T===void 0?null:["comma","separator","bracket-separator"].includes(w.arrayFormat)?T:d(T,w),_(d(E,w),T,C)}for(const x of Object.keys(C)){const E=C[x];if(typeof E=="object"&&E!==null)for(const T of Object.keys(E))E[T]=b(E[T],w);else C[x]=b(E,w)}return w.sort===!1?C:(w.sort===!0?Object.keys(C).sort():Object.keys(C).sort(w.sort)).reduce((x,E)=>{const T=C[E];return T&&typeof T=="object"&&!Array.isArray(T)?x[E]=f(T):x[E]=T,x},Object.create(null))}e.extract=p,e.parse=v,e.stringify=(g,w)=>{if(!g)return"";w=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},w),l(w.arrayFormatSeparator);const _=T=>w.skipNull&&a(g[T])||w.skipEmptyString&&g[T]==="",C=s(w),x={};for(const T of Object.keys(g))_(T)||(x[T]=g[T]);const E=Object.keys(x);return w.sort!==!1&&E.sort(w.sort),E.map(T=>{const k=g[T];return k===void 0?"":k===null?u(T,w):Array.isArray(k)?k.length===0&&w.arrayFormat==="bracket-separator"?u(T,w)+"[]":k.reduce(C(T),[]).join("&"):u(T,w)+"="+u(k,w)}).filter(T=>T.length>0).join("&")},e.parseUrl=(g,w)=>{w=Object.assign({decode:!0},w);const[_,C]=r(g,"#");return Object.assign({url:_.split("?")[0]||"",query:v(p(g),w)},w&&w.parseFragmentIdentifier&&C?{fragmentIdentifier:d(C,w)}:{})},e.stringifyUrl=(g,w)=>{w=Object.assign({encode:!0,strict:!0,[i]:!0},w);const _=h(g.url).split("?")[0]||"",C=e.extract(g.url),x=e.parse(C,{sort:!1}),E=Object.assign(x,g.query);let T=e.stringify(E,w);T&&(T=`?${T}`);let k=m(g.url);return g.fragmentIdentifier&&(k=`#${w[i]?u(g.fragmentIdentifier,w):g.fragmentIdentifier}`),`${_}${T}${k}`},e.pick=(g,w,_)=>{_=Object.assign({parseFragmentIdentifier:!0,[i]:!1},_);const{url:C,query:x,fragmentIdentifier:E}=e.parseUrl(g,_);return e.stringifyUrl({url:C,query:o(x,w),fragmentIdentifier:E},_)},e.exclude=(g,w,_)=>{const C=Array.isArray(w)?x=>!w.includes(x):(x,E)=>!w(x,E);return e.pick(g,C,_)}})(vg);const mSe={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}},pSe=":";function WYe(e){const[t,n]=e.split(pSe);return{namespace:t,reference:n}}function GYe(e,t=[]){const n=[];return Object.keys(e).forEach(r=>{if(t.length&&!t.includes(r))return;const o=e[r];n.push(...o.accounts)}),n}function GQ(e,t){return e.includes(":")?[e]:t.chains||[]}const VQ="base10",_o="base16",OD="base64pad",N4="utf8",KQ=0,Cy=1,gSe=0,TB=1,RD=12,B4=32;function VYe(){const e=j4.generateKeyPair();return{privateKey:ai(e.secretKey,_o),publicKey:ai(e.publicKey,_o)}}function KYe(){const e=r2.randomBytes(B4);return ai(e,_o)}function YYe(e,t){const n=j4.sharedKey(Ya(e,_o),Ya(t,_o),!0),r=new K2e(s2.SHA256,n).expand(B4);return ai(r,_o)}function QYe(e){const t=s2.hash(Ya(e,_o));return ai(t,_o)}function XYe(e){const t=s2.hash(Ya(e,N4));return ai(t,_o)}function ySe(e){return Ya(`${e}`,VQ)}function u2(e){return Number(ai(e,VQ))}function JYe(e){const t=ySe(typeof e.type<"u"?e.type:KQ);if(u2(t)===Cy&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const n=typeof e.senderPublicKey<"u"?Ya(e.senderPublicKey,_o):void 0,r=typeof e.iv<"u"?Ya(e.iv,_o):r2.randomBytes(RD),o=new D4.ChaCha20Poly1305(Ya(e.symKey,_o)).seal(r,Ya(e.message,N4));return bSe({type:t,sealed:o,iv:r,senderPublicKey:n})}function ZYe(e){const t=new D4.ChaCha20Poly1305(Ya(e.symKey,_o)),{sealed:n,iv:r}=YQ(e.encoded),o=t.open(r,n);if(o===null)throw new Error("Failed to decrypt");return ai(o,N4)}function bSe(e){if(u2(e.type)===Cy){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return ai(sB([e.type,e.senderPublicKey,e.iv,e.sealed]),OD)}return ai(sB([e.type,e.iv,e.sealed]),OD)}function YQ(e){const t=Ya(e,OD),n=t.slice(gSe,TB),r=TB;if(u2(n)===Cy){const s=r+B4,c=s+RD,l=t.slice(r,s),u=t.slice(s,c),d=t.slice(c);return{type:n,sealed:d,iv:u,senderPublicKey:l}}const o=r+RD,a=t.slice(r,o),i=t.slice(o);return{type:n,sealed:i,iv:a}}function eQe(e,t){const n=YQ(e);return vSe({type:u2(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?ai(n.senderPublicKey,_o):void 0,receiverPublicKey:t==null?void 0:t.receiverPublicKey})}function vSe(e){const t=(e==null?void 0:e.type)||KQ;if(t===Cy){if(typeof(e==null?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(e==null?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:e==null?void 0:e.senderPublicKey,receiverPublicKey:e==null?void 0:e.receiverPublicKey}}function tQe(e){return e.type===Cy&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}var wSe=Object.defineProperty,AB=Object.getOwnPropertySymbols,ESe=Object.prototype.hasOwnProperty,_Se=Object.prototype.propertyIsEnumerable,DB=(e,t,n)=>t in e?wSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kB=(e,t)=>{for(var n in t||(t={}))ESe.call(t,n)&&DB(e,n,t[n]);if(AB)for(var n of AB(t))_Se.call(t,n)&&DB(e,n,t[n]);return e};const xSe="ReactNative",zo={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},CSe="js";function QQ(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function Sy(){return!I4()&&!!O4()&&navigator.product===xSe}function d2(){return!QQ()&&!!O4()&&!!I4()}function Ty(){return Sy()?zo.reactNative:QQ()?zo.node:d2()?zo.browser:zo.unknown}function nQe(){var e;try{return Sy()&&typeof global<"u"&&typeof(global==null?void 0:global.Application)<"u"?(e=global.Application)==null?void 0:e.applicationId:void 0}catch{return}}function SSe(e,t){let n=vg.parse(e);return n=kB(kB({},n),t),e=vg.stringify(n),e}function rQe(){return qQ()||{name:"",description:"",url:"",icons:[""]}}function TSe(){if(Ty()===zo.reactNative&&typeof global<"u"&&typeof(global==null?void 0:global.Platform)<"u"){const{OS:n,Version:r}=global.Platform;return[n,r].join("-")}const e=l6e();if(e===null)return"unknown";const t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return e.type==="browser"?[t,e.name,e.version].join("-"):[t,e.version].join("-")}function ASe(){var e;const t=Ty();return t===zo.browser?[t,((e=HQ())==null?void 0:e.host)||"unknown"].join(":"):t}function DSe(e,t,n){const r=TSe(),o=ASe();return[[e,t].join("-"),[CSe,n].join("-"),r,o].join("/")}function oQe({protocol:e,version:t,relayUrl:n,sdkVersion:r,auth:o,projectId:a,useOnCloseEvent:i,bundleId:s}){const c=n.split("?"),l=DSe(e,t,r),u={auth:o,ua:l,projectId:a,useOnCloseEvent:i||void 0,origin:s||void 0},d=SSe(c[1]||"",u);return c[0]+"?"+d}function wu(e,t){return e.filter(n=>t.includes(n)).length===e.length}function aQe(e){return Object.fromEntries(e.entries())}function iQe(e){return new Map(Object.entries(e))}function sQe(e=Au.FIVE_MINUTES,t){const n=Au.toMiliseconds(e||Au.FIVE_MINUTES);let r,o,a;return{resolve:i=>{a&&r&&(clearTimeout(a),r(i))},reject:i=>{a&&o&&(clearTimeout(a),o(i))},done:()=>new Promise((i,s)=>{a=setTimeout(()=>{s(new Error(t))},n),r=i,o=s})}}function cQe(e,t,n){return new Promise(async(r,o)=>{const a=setTimeout(()=>o(new Error(n)),t);try{const i=await e;r(i)}catch(i){o(i)}clearTimeout(a)})}function XQ(e,t){if(typeof t=="string"&&t.startsWith(`${e}:`))return t;if(e.toLowerCase()==="topic"){if(typeof t!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}else if(e.toLowerCase()==="id"){if(typeof t!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${e}`)}function lQe(e){return XQ("topic",e)}function uQe(e){return XQ("id",e)}function dQe(e){const[t,n]=e.split(":"),r={id:void 0,topic:void 0};if(t==="topic"&&typeof n=="string")r.topic=n;else if(t==="id"&&Number.isInteger(Number(n)))r.id=Number(n);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${n}`);return r}function fQe(e,t){return Au.fromMiliseconds(Date.now()+Au.toMiliseconds(e))}function hQe(e){return Date.now()>=Au.toMiliseconds(e)}function mQe(e,t){return`${e}${t?`:${t}`:""}`}function D3(e=[],t=[]){return[...new Set([...e,...t])]}async function pQe({id:e,topic:t,wcDeepLink:n}){try{if(!n)return;const r=typeof n=="string"?JSON.parse(n):n;let o=r==null?void 0:r.href;if(typeof o!="string")return;o.endsWith("/")&&(o=o.slice(0,-1));const a=`${o}/wc?requestId=${e}&sessionTopic=${t}`,i=Ty();i===zo.browser?a.startsWith("https://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,"_self","noreferrer noopener"):i===zo.reactNative&&typeof(global==null?void 0:global.Linking)<"u"&&await global.Linking.openURL(a)}catch(r){console.error(r)}}async function gQe(e,t){try{return await e.getItem(t)||(d2()?localStorage.getItem(t):void 0)}catch(n){console.error(n)}}const kSe="irn";function yQe(e){return(e==null?void 0:e.relay)||{protocol:kSe}}function bQe(e){const t=mSe[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var jSe=Object.defineProperty,jB=Object.getOwnPropertySymbols,PSe=Object.prototype.hasOwnProperty,ISe=Object.prototype.propertyIsEnumerable,PB=(e,t,n)=>t in e?jSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,OSe=(e,t)=>{for(var n in t||(t={}))PSe.call(t,n)&&PB(e,n,t[n]);if(jB)for(var n of jB(t))ISe.call(t,n)&&PB(e,n,t[n]);return e};function RSe(e,t="-"){const n={},r="relay"+t;return Object.keys(e).forEach(o=>{if(o.startsWith(r)){const a=o.replace(r,""),i=e[o];n[a]=i}}),n}function vQe(e){e=e.includes("wc://")?e.replace("wc://",""):e,e=e.includes("wc:")?e.replace("wc:",""):e;const t=e.indexOf(":"),n=e.indexOf("?")!==-1?e.indexOf("?"):void 0,r=e.substring(0,t),o=e.substring(t+1,n).split("@"),a=typeof n<"u"?e.substring(n):"",i=vg.parse(a);return{protocol:r,topic:NSe(o[0]),version:parseInt(o[1],10),symKey:i.symKey,relay:RSe(i)}}function NSe(e){return e.startsWith("//")?e.substring(2):e}function BSe(e,t="-"){const n="relay",r={};return Object.keys(e).forEach(o=>{const a=n+t+o;e[o]&&(r[a]=e[o])}),r}function wQe(e){return`${e.protocol}:${e.topic}@${e.version}?`+vg.stringify(OSe({symKey:e.symKey},BSe(e.relay)))}var FSe=Object.defineProperty,MSe=Object.defineProperties,LSe=Object.getOwnPropertyDescriptors,IB=Object.getOwnPropertySymbols,USe=Object.prototype.hasOwnProperty,$Se=Object.prototype.propertyIsEnumerable,OB=(e,t,n)=>t in e?FSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zSe=(e,t)=>{for(var n in t||(t={}))USe.call(t,n)&&OB(e,n,t[n]);if(IB)for(var n of IB(t))$Se.call(t,n)&&OB(e,n,t[n]);return e},HSe=(e,t)=>MSe(e,LSe(t));function gm(e){const t=[];return e.forEach(n=>{const[r,o]=n.split(":");t.push(`${r}:${o}`)}),t}function qSe(e){const t=[];return Object.values(e).forEach(n=>{t.push(...gm(n.accounts))}),t}function WSe(e,t){const n=[];return Object.values(e).forEach(r=>{gm(r.accounts).includes(t)&&n.push(...r.methods)}),n}function GSe(e,t){const n=[];return Object.values(e).forEach(r=>{gm(r.accounts).includes(t)&&n.push(...r.events)}),n}function EQe(e,t){const n=n3e(e,t);if(n)throw new Error(n.message);const r={};for(const[o,a]of Object.entries(e))r[o]={methods:a.methods,events:a.events,chains:a.accounts.map(i=>`${i.split(":")[0]}:${i.split(":")[1]}`)};return r}function JQ(e){return e.includes(":")}function VSe(e){return JQ(e)?e.split(":")[0]:e}function ZQ(e){var t,n,r;const o={};if(!F4(e))return o;for(const[a,i]of Object.entries(e)){const s=JQ(a)?[a]:i.chains,c=i.methods||[],l=i.events||[],u=VSe(a);o[u]=HSe(zSe({},o[u]),{chains:D3(s,(t=o[u])==null?void 0:t.chains),methods:D3(c,(n=o[u])==null?void 0:n.methods),events:D3(l,(r=o[u])==null?void 0:r.events)})}return o}const KSe={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},YSe={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Ic(e,t){const{message:n,code:r}=YSe[e];return{message:t?`${n} ${t}`:n,code:r}}function jh(e,t){const{message:n,code:r}=KSe[e];return{message:t?`${n} ${t}`:n,code:r}}function f2(e,t){return!!Array.isArray(e)}function F4(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function nh(e){return typeof e>"u"}function Da(e,t){return t&&nh(e)?!0:typeof e=="string"&&!!e.trim().length}function M4(e,t){return typeof e=="number"&&!isNaN(e)}function _Qe(e,t){const{requiredNamespaces:n}=t,r=Object.keys(e.namespaces),o=Object.keys(n);let a=!0;return wu(o,r)?(r.forEach(i=>{const{accounts:s,methods:c,events:l}=e.namespaces[i],u=gm(s),d=n[i];(!wu(GQ(i,d),u)||!wu(d.methods,c)||!wu(d.events,l))&&(a=!1)}),a):!1}function xE(e){return Da(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function QSe(e){if(Da(e,!1)&&e.includes(":")){const t=e.split(":");if(t.length===3){const n=t[0]+":"+t[1];return!!t[2]&&xE(n)}}return!1}function xQe(e){if(Da(e,!1))try{return typeof new URL(e)<"u"}catch{return!1}return!1}function CQe(e){var t;return(t=e==null?void 0:e.proposer)==null?void 0:t.publicKey}function SQe(e){return e==null?void 0:e.topic}function TQe(e,t){let n=null;return Da(e==null?void 0:e.publicKey,!1)||(n=Ic("MISSING_OR_INVALID",`${t} controller public key should be a string`)),n}function RB(e){let t=!0;return f2(e)?e.length&&(t=e.every(n=>Da(n,!1))):t=!1,t}function XSe(e,t,n){let r=null;return f2(t)&&t.length?t.forEach(o=>{r||xE(o)||(r=jh("UNSUPPORTED_CHAINS",`${n}, chain ${o} should be a string and conform to "namespace:chainId" format`))}):xE(e)||(r=jh("UNSUPPORTED_CHAINS",`${n}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),r}function JSe(e,t,n){let r=null;return Object.entries(e).forEach(([o,a])=>{if(r)return;const i=XSe(o,GQ(o,a),`${t} ${n}`);i&&(r=i)}),r}function ZSe(e,t){let n=null;return f2(e)?e.forEach(r=>{n||QSe(r)||(n=jh("UNSUPPORTED_ACCOUNTS",`${t}, account ${r} should be a string and conform to "namespace:chainId:address" format`))}):n=jh("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),n}function e3e(e,t){let n=null;return Object.values(e).forEach(r=>{if(n)return;const o=ZSe(r==null?void 0:r.accounts,`${t} namespace`);o&&(n=o)}),n}function t3e(e,t){let n=null;return RB(e==null?void 0:e.methods)?RB(e==null?void 0:e.events)||(n=jh("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):n=jh("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),n}function eX(e,t){let n=null;return Object.values(e).forEach(r=>{if(n)return;const o=t3e(r,`${t}, namespace`);o&&(n=o)}),n}function AQe(e,t,n){let r=null;if(e&&F4(e)){const o=eX(e,t);o&&(r=o);const a=JSe(e,t,n);a&&(r=a)}else r=Ic("MISSING_OR_INVALID",`${t}, ${n} should be an object with data`);return r}function n3e(e,t){let n=null;if(e&&F4(e)){const r=eX(e,t);r&&(n=r);const o=e3e(e,t);o&&(n=o)}else n=Ic("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return n}function r3e(e){return Da(e.protocol,!0)}function DQe(e,t){let n=!1;return e?e&&f2(e)&&e.length&&e.forEach(r=>{n=r3e(r)}):n=!0,n}function kQe(e){return typeof e=="number"}function jQe(e){return typeof e<"u"&&typeof e!==null}function PQe(e){return!(!e||typeof e!="object"||!e.code||!M4(e.code)||!e.message||!Da(e.message,!1))}function IQe(e){return!(nh(e)||!Da(e.method,!1))}function OQe(e){return!(nh(e)||nh(e.result)&&nh(e.error)||!M4(e.id)||!Da(e.jsonrpc,!1))}function RQe(e){return!(nh(e)||!Da(e.name,!1))}function NQe(e,t){return!(!xE(t)||!qSe(e).includes(t))}function BQe(e,t,n){return Da(n,!1)?WSe(e,t).includes(n):!1}function FQe(e,t,n){return Da(n,!1)?GSe(e,t).includes(n):!1}function MQe(e,t,n){let r=null;const o=o3e(e),a=a3e(t),i=Object.keys(o),s=Object.keys(a),c=NB(Object.keys(e)),l=NB(Object.keys(t)),u=c.filter(d=>!l.includes(d));return u.length&&(r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces keys don't satisfy requiredNamespaces. - Required: ${u.toString()} - Received: ${Object.keys(t).toString()}`)),wu(i,s)||(r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces chains don't satisfy required namespaces. - Required: ${i.toString()} - Approved: ${s.toString()}`)),Object.keys(t).forEach(d=>{if(!d.includes(":")||r)return;const f=gm(t[d].accounts);f.includes(d)||(r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces accounts don't satisfy namespace accounts for ${d} - Required: ${d} - Approved: ${f.toString()}`))}),i.forEach(d=>{r||(wu(o[d].methods,a[d].methods)?wu(o[d].events,a[d].events)||(r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces events don't satisfy namespace events for ${d}`)):r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces methods don't satisfy namespace methods for ${d}`))}),r}function o3e(e){const t={};return Object.keys(e).forEach(n=>{var r;n.includes(":")?t[n]=e[n]:(r=e[n].chains)==null||r.forEach(o=>{t[o]={methods:e[n].methods,events:e[n].events}})}),t}function NB(e){return[...new Set(e.map(t=>t.includes(":")?t.split(":")[0]:t))]}function a3e(e){const t={};return Object.keys(e).forEach(n=>{if(n.includes(":"))t[n]=e[n];else{const r=gm(e[n].accounts);r==null||r.forEach(o=>{t[o]={accounts:e[n].accounts.filter(a=>a.includes(`${o}:`)),methods:e[n].methods,events:e[n].events}})}}),t}function LQe(e,t){return M4(e)&&e<=t.max&&e>=t.min}function UQe(){const e=Ty();return new Promise(t=>{switch(e){case zo.browser:t(i3e());break;case zo.reactNative:t(s3e());break;case zo.node:t(c3e());break;default:t(!0)}})}function i3e(){return d2()&&(navigator==null?void 0:navigator.onLine)}async function s3e(){if(Sy()&&typeof global<"u"&&global!=null&&global.NetInfo){const e=await(global==null?void 0:global.NetInfo.fetch());return e==null?void 0:e.isConnected}return!0}function c3e(){return!0}function $Qe(e){switch(Ty()){case zo.browser:l3e(e);break;case zo.reactNative:u3e(e);break}}function l3e(e){!Sy()&&d2()&&(window.addEventListener("online",()=>e(!0)),window.addEventListener("offline",()=>e(!1)))}function u3e(e){Sy()&&typeof global<"u"&&global!=null&&global.NetInfo&&(global==null||global.NetInfo.addEventListener(t=>e(t==null?void 0:t.isConnected)))}const k3={};class zQe{static get(t){return k3[t]}static set(t,n){k3[t]=n}static delete(t){delete k3[t]}}var tX="eip155",d3e="store",nX="requestedChains",ND="wallet_addEthereumChain",on,x0,D1,BD,L4,rX,k1,FD,MD,oX,CE,U4,mf,n0,SE,$4,TE,z4,AE,H4,q4=class extends py{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),Fn(this,D1),Fn(this,L4),Fn(this,k1),Fn(this,MD),Fn(this,CE),Fn(this,mf),Fn(this,SE),Fn(this,TE),Fn(this,AE),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,Fn(this,on,void 0),Fn(this,x0,void 0),this.onAccountsChanged=t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Rr(t[0])})},this.onChainChanged=t=>{const n=Number(t),r=this.isChainUnsupported(n);this.emit("change",{chain:{id:n,unsupported:r}})},this.onDisconnect=()=>{Bn(this,mf,n0).call(this,[]),this.emit("disconnect")},this.onDisplayUri=t=>{this.emit("message",{type:"display_uri",data:t})},this.onConnect=()=>{this.emit("connect",{})},Bn(this,D1,BD).call(this)}async connect({chainId:e,pairingTopic:t}={}){var n,r,o,a,i;try{let s=e;if(!s){const m=(n=this.storage)==null?void 0:n.getItem(d3e),p=(a=(o=(r=m==null?void 0:m.state)==null?void 0:r.data)==null?void 0:o.chain)==null?void 0:a.id;p&&!this.isChainUnsupported(p)?s=p:s=(i=this.chains[0])==null?void 0:i.id}if(!s)throw new Error("No chains found on connector.");const c=await this.getProvider();Bn(this,MD,oX).call(this);const l=Bn(this,k1,FD).call(this);if(c.session&&l&&await c.disconnect(),!c.session||l){const m=this.chains.filter(p=>p.id!==s).map(p=>p.id);this.emit("message",{type:"connecting"}),await c.connect({pairingTopic:t,optionalChains:[s,...m]}),Bn(this,mf,n0).call(this,this.chains.map(({id:p})=>p))}const u=await c.enable(),d=Rr(u[0]),f=await this.getChainId(),h=this.isChainUnsupported(f);return{account:d,chain:{id:f,unsupported:h}}}catch(s){throw/user rejected/i.test(s==null?void 0:s.message)?new dr(s):s}}async disconnect(){const e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{Bn(this,CE,U4).call(this),Bn(this,mf,n0).call(this,[])}}async getAccount(){const{accounts:e}=await this.getProvider();return Rr(e[0])}async getChainId(){const{chainId:e}=await this.getProvider();return e}async getProvider({chainId:e}={}){return ft(this,on)||await Bn(this,D1,BD).call(this),e&&await this.switchChain(e),ft(this,on)}async getWalletClient({chainId:e}={}){const[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){try{const[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=Bn(this,k1,FD).call(this);if(!e)return!1;if(n&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){var n,r;const t=this.chains.find(o=>o.id===e);if(!t)throw new ol(new Error("chain not found on connector."));try{const o=await this.getProvider(),a=Bn(this,TE,z4).call(this),i=Bn(this,AE,H4).call(this);if(!a.includes(e)&&i.includes(ND)){await o.request({method:ND,params:[{chainId:Xe(t.id),blockExplorerUrls:[(r=(n=t.blockExplorers)==null?void 0:n.default)==null?void 0:r.url],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpcUrls.default.http]}]});const c=Bn(this,SE,$4).call(this);c.push(e),Bn(this,mf,n0).call(this,c)}return await o.request({method:"wallet_switchEthereumChain",params:[{chainId:Xe(e)}]}),t}catch(o){const a=typeof o=="string"?o:o==null?void 0:o.message;throw/user rejected request/i.test(a)?new dr(o):new ol(o)}}};on=new WeakMap;x0=new WeakMap;D1=new WeakSet;BD=async function(){return!ft(this,x0)&&typeof window<"u"&&As(this,x0,Bn(this,L4,rX).call(this)),ft(this,x0)};L4=new WeakSet;rX=async function(){const{EthereumProvider:e}=await me(async()=>{const{EthereumProvider:n}=await import("./index.es-CdO-xVAP.js");return{EthereumProvider:n}},__vite__mapDeps([0,1]),import.meta.url),t=this.chains.map(({id:n})=>n);if(t.length){const{projectId:n,showQrModal:r=!0,qrModalOptions:o,metadata:a,relayUrl:i}=this.options;As(this,on,await e.init({showQrModal:r,qrModalOptions:o,projectId:n,optionalChains:t,rpcMap:Object.fromEntries(this.chains.map(s=>[s.id,s.rpcUrls.default.http[0]])),metadata:a,relayUrl:i}))}};k1=new WeakSet;FD=function(){if(Bn(this,AE,H4).call(this).includes(ND)||!this.options.isNewChainsStale)return!1;const t=Bn(this,SE,$4).call(this),n=this.chains.map(({id:o})=>o),r=Bn(this,TE,z4).call(this);return r.length&&!r.some(o=>n.includes(o))?!1:!n.every(o=>t.includes(o))};MD=new WeakSet;oX=function(){ft(this,on)&&(Bn(this,CE,U4).call(this),ft(this,on).on("accountsChanged",this.onAccountsChanged),ft(this,on).on("chainChanged",this.onChainChanged),ft(this,on).on("disconnect",this.onDisconnect),ft(this,on).on("session_delete",this.onDisconnect),ft(this,on).on("display_uri",this.onDisplayUri),ft(this,on).on("connect",this.onConnect))};CE=new WeakSet;U4=function(){ft(this,on)&&(ft(this,on).removeListener("accountsChanged",this.onAccountsChanged),ft(this,on).removeListener("chainChanged",this.onChainChanged),ft(this,on).removeListener("disconnect",this.onDisconnect),ft(this,on).removeListener("session_delete",this.onDisconnect),ft(this,on).removeListener("display_uri",this.onDisplayUri),ft(this,on).removeListener("connect",this.onConnect))};mf=new WeakSet;n0=function(e){var t;(t=this.storage)==null||t.setItem(nX,e)};SE=new WeakSet;$4=function(){var e;return((e=this.storage)==null?void 0:e.getItem(nX))??[]};TE=new WeakSet;z4=function(){var r,o,a;if(!ft(this,on))return[];const e=(r=ft(this,on).session)==null?void 0:r.namespaces;return e?((a=(o=ZQ(e)[tX])==null?void 0:o.chains)==null?void 0:a.map(i=>parseInt(i.split(":")[1]||"")))??[]:[]};AE=new WeakSet;H4=function(){var r,o;if(!ft(this,on))return[];const e=(r=ft(this,on).session)==null?void 0:r.namespaces;return e?((o=ZQ(e)[tX])==null?void 0:o.methods)??[]:[]};var r0,pf,f3e=class extends py{constructor({chains:e,options:t}){super({chains:e,options:{reloadOnDisconnect:!1,...t}}),this.id="coinbaseWallet",this.name="Coinbase Wallet",this.ready=!0,Fn(this,r0,void 0),Fn(this,pf,void 0),this.onAccountsChanged=n=>{n.length===0?this.emit("disconnect"):this.emit("change",{account:Rr(n[0])})},this.onChainChanged=n=>{const r=Ju(n),o=this.isChainUnsupported(r);this.emit("change",{chain:{id:r,unsupported:o}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:e}={}){try{const t=await this.getProvider();t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});const n=await t.enable(),r=Rr(n[0]);let o=await this.getChainId(),a=this.isChainUnsupported(o);return e&&o!==e&&(o=(await this.switchChain(e)).id,a=this.isChainUnsupported(o)),{account:r,chain:{id:o,unsupported:a}}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new dr(t):t}}async disconnect(){if(!ft(this,pf))return;const e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){const t=await(await this.getProvider()).request({method:"eth_accounts"});return Rr(t[0])}async getChainId(){const e=await this.getProvider();return Ju(e.chainId)}async getProvider(){var e;if(!ft(this,pf)){let t=(await me(async()=>{const{default:i}=await import("./index-AVOVxDWm.js").then(s=>s.i);return{default:i}},__vite__mapDeps([2,3]),import.meta.url)).default;typeof t!="function"&&typeof t.default=="function"&&(t=t.default),As(this,r0,new t(this.options));const n=(e=ft(this,r0).walletExtension)==null?void 0:e.getChainId(),r=this.chains.find(i=>this.options.chainId?i.id===this.options.chainId:i.id===n)||this.chains[0],o=this.options.chainId||(r==null?void 0:r.id),a=this.options.jsonRpcUrl||(r==null?void 0:r.rpcUrls.default.http[0]);As(this,pf,ft(this,r0).makeWeb3Provider(a,o))}return ft(this,pf)}async getWalletClient({chainId:e}={}){const[t,n]=await Promise.all([this.getProvider(),this.getAccount()]),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){var r;const t=await this.getProvider(),n=Xe(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(o=>o.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(o){const a=this.chains.find(i=>i.id===e);if(!a)throw new TY({chainId:e,connectorId:this.id});if(o.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:a.name,nativeCurrency:a.nativeCurrency,rpcUrls:[((r=a.rpcUrls.public)==null?void 0:r.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(a)}]}),a}catch(i){throw new dr(i)}throw new ol(o)}}async watchAsset({address:e,decimals:t=18,image:n,symbol:r}){return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:n,symbol:r}}})}};r0=new WeakMap;pf=new WeakMap;var j1,h3e=class extends Ds{constructor({chains:e,options:t}={}){const n={name:"MetaMask",shimDisconnect:!0,getProvider(){function r(a){if(a!=null&&a.isMetaMask&&!(a.isBraveWallet&&!a._events&&!a._state)&&!a.isApexWallet&&!a.isAvalanche&&!a.isBitKeep&&!a.isBlockWallet&&!a.isCoin98&&!a.isFordefi&&!a.isMathWallet&&!(a.isOkxWallet||a.isOKExWallet)&&!(a.isOneInchIOSWallet||a.isOneInchAndroidWallet)&&!a.isOpera&&!a.isPortal&&!a.isRabby&&!a.isDefiant&&!a.isTokenPocket&&!a.isTokenary&&!a.isZeal&&!a.isZerion)return a}if(typeof window>"u")return;const o=window.ethereum;return o!=null&&o.providers?o.providers.find(r):r(o)},...t};super({chains:e,options:n}),this.id="metaMask",this.shimDisconnectKey=`${this.id}.shimDisconnect`,Fn(this,j1,void 0),As(this,j1,n.UNSTABLE_shimOnConnectSelectAccount)}async connect({chainId:e}={}){var t,n,r,o;try{const a=await this.getProvider();if(!a)throw new ua;a.on&&(a.on("accountsChanged",this.onAccountsChanged),a.on("chainChanged",this.onChainChanged),a.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let i=null;if(ft(this,j1)&&((t=this.options)!=null&&t.shimDisconnect)&&!((n=this.storage)!=null&&n.getItem(this.shimDisconnectKey))&&(i=await this.getAccount().catch(()=>null),!!i))try{await a.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}),i=await this.getAccount()}catch(u){if(this.isUserRejectedRequestError(u))throw new dr(u);if(u.code===new gh(u).code)throw u}if(!i){const l=await a.request({method:"eth_requestAccounts"});i=Rr(l[0])}let s=await this.getChainId(),c=this.isChainUnsupported(s);return e&&s!==e&&(s=(await this.switchChain(e)).id,c=this.isChainUnsupported(s)),(r=this.options)!=null&&r.shimDisconnect&&((o=this.storage)==null||o.setItem(this.shimDisconnectKey,!0)),{account:i,chain:{id:s,unsupported:c},provider:a}}catch(a){throw this.isUserRejectedRequestError(a)?new dr(a):a.code===-32002?new gh(a):a}}};j1=new WeakMap;var m3e=/(imtoken|metamask|rainbow|trust wallet|uniswap wallet|ledger)/i,ou,LD,aX,iX=class extends py{constructor(){super(...arguments),Fn(this,LD),this.id="walletConnectLegacy",this.name="WalletConnectLegacy",this.ready=!0,Fn(this,ou,void 0),this.onAccountsChanged=e=>{e.length===0?this.emit("disconnect"):this.emit("change",{account:Rr(e[0])})},this.onChainChanged=e=>{const t=Ju(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:e}={}){var t,n,r,o,a,i;try{let s=e;if(!s){const m=(t=this.storage)==null?void 0:t.getItem("store"),p=(o=(r=(n=m==null?void 0:m.state)==null?void 0:n.data)==null?void 0:r.chain)==null?void 0:o.id;p&&!this.isChainUnsupported(p)&&(s=p)}const c=await this.getProvider({chainId:s,create:!0});c.on("accountsChanged",this.onAccountsChanged),c.on("chainChanged",this.onChainChanged),c.on("disconnect",this.onDisconnect),setTimeout(()=>this.emit("message",{type:"connecting"}),0);const l=await c.enable(),u=Rr(l[0]),d=await this.getChainId(),f=this.isChainUnsupported(d),h=((i=(a=c.connector)==null?void 0:a.peerMeta)==null?void 0:i.name)??"";return m3e.test(h)&&(this.switchChain=Bn(this,LD,aX)),{account:u,chain:{id:d,unsupported:f}}}catch(s){throw/user closed modal/i.test(s.message)?new dr(s):s}}async disconnect(){const e=await this.getProvider();await e.disconnect(),e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),typeof localStorage<"u"&&localStorage.removeItem("walletconnect")}async getAccount(){const t=(await this.getProvider()).accounts;return Rr(t[0])}async getChainId(){const e=await this.getProvider();return Ju(e.chainId)}async getProvider({chainId:e,create:t}={}){var n,r;if(!ft(this,ou)||e||t){const o=(n=this.options)!=null&&n.infuraId?{}:this.chains.reduce((i,s)=>({...i,[s.id]:s.rpcUrls.default.http[0]}),{}),a=(await me(async()=>{const{default:i}=await import("./index-B_Tlc-nD.js");return{default:i}},__vite__mapDeps([4,1,3]),import.meta.url)).default;As(this,ou,new a({...this.options,chainId:e,rpc:{...o,...(r=this.options)==null?void 0:r.rpc}})),ft(this,ou).http=await ft(this,ou).setHttpProvider(e)}return ft(this,ou)}async getWalletClient({chainId:e}={}){const[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}};ou=new WeakMap;LD=new WeakSet;aX=async function(e){const t=await this.getProvider(),n=Xe(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(r=>this.on("change",({chain:o})=>{(o==null?void 0:o.id)===e&&r(e)}))]),this.chains.find(r=>r.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(r){const o=typeof r=="string"?r:r==null?void 0:r.message;throw/user rejected request/i.test(o)?new dr(r):new ol(r)}};var sX={},h2={},W4={exports:{}},rh=typeof Reflect=="object"?Reflect:null,BB=rh&&typeof rh.apply=="function"?rh.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},P1;rh&&typeof rh.ownKeys=="function"?P1=rh.ownKeys:Object.getOwnPropertySymbols?P1=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:P1=function(t){return Object.getOwnPropertyNames(t)};function p3e(e){console&&console.warn&&console.warn(e)}var cX=Number.isNaN||function(t){return t!==t};function Nt(){Nt.init.call(this)}W4.exports=Nt;W4.exports.once=v3e;Nt.EventEmitter=Nt;Nt.prototype._events=void 0;Nt.prototype._eventsCount=0;Nt.prototype._maxListeners=void 0;var FB=10;function m2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Nt,"defaultMaxListeners",{enumerable:!0,get:function(){return FB},set:function(e){if(typeof e!="number"||e<0||cX(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");FB=e}});Nt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Nt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||cX(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function lX(e){return e._maxListeners===void 0?Nt.defaultMaxListeners:e._maxListeners}Nt.prototype.getMaxListeners=function(){return lX(this)};Nt.prototype.emit=function(t){for(var n=[],r=1;r0&&(i=n[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var c=a[t];if(c===void 0)return!1;if(typeof c=="function")BB(c,this,n);else for(var l=c.length,u=mX(c,l),r=0;r0&&i.length>o&&!i.warned){i.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=i.length,p3e(s)}return e}Nt.prototype.addListener=function(t,n){return uX(this,t,n,!1)};Nt.prototype.on=Nt.prototype.addListener;Nt.prototype.prependListener=function(t,n){return uX(this,t,n,!0)};function g3e(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function dX(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=g3e.bind(r);return o.listener=n,r.wrapFn=o,o}Nt.prototype.once=function(t,n){return m2(n),this.on(t,dX(this,t,n)),this};Nt.prototype.prependOnceListener=function(t,n){return m2(n),this.prependListener(t,dX(this,t,n)),this};Nt.prototype.removeListener=function(t,n){var r,o,a,i,s;if(m2(n),o=this._events,o===void 0)return this;if(r=o[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(a=-1,i=r.length-1;i>=0;i--)if(r[i]===n||r[i].listener===n){s=r[i].listener,a=i;break}if(a<0)return this;a===0?r.shift():y3e(r,a),r.length===1&&(o[t]=r[0]),o.removeListener!==void 0&&this.emit("removeListener",t,s||n)}return this};Nt.prototype.off=Nt.prototype.removeListener;Nt.prototype.removeAllListeners=function(t){var n,r,o;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var a=Object.keys(r),i;for(o=0;o=0;o--)this.removeListener(t,n[o]);return this};function fX(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?b3e(o):mX(o,o.length)}Nt.prototype.listeners=function(t){return fX(this,t,!0)};Nt.prototype.rawListeners=function(t){return fX(this,t,!1)};Nt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):hX.call(e,t)};Nt.prototype.listenerCount=hX;function hX(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Nt.prototype.eventNames=function(){return this._eventsCount>0?P1(this._events):[]};function mX(e,t){for(var n=new Array(t),r=0;r(c&&(c.hash=r[0]),c));case"eth_getTransactionReceipt":{let c=r[0];try{c=(await this.sdk.txs.getBySafeTxHash(c)).txHash||c}catch{}return this.sdk.eth.getTransactionReceipt([c]).then(l=>(l&&(l.transactionHash=r[0]),l))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(r[0]);case"eth_call":return this.sdk.eth.call([r[0],r[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([r[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(r[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([r[0]]);default:throw Error(`"${t.method}" not implemented`)}}send(t,n){t||n("Undefined request"),this.request(t).then(r=>n(null,{jsonrpc:"2.0",id:t.id,result:r})).catch(r=>n(r,null))}}h2.SafeAppProvider=x3e;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAppProvider=void 0;var t=h2;Object.defineProperty(e,"SafeAppProvider",{enumerable:!0,get:function(){return t.SafeAppProvider}})})(sX);var yX={},DE={},bX={},Ay={},Dy={};const C3e="@safe-global/safe-apps-sdk",S3e="8.1.0",T3e="SDK developed to integrate third-party apps with Safe app.",A3e="dist/src/index.js",D3e="dist/src/index.d.ts",k3e=["dist/**/*","src/**/*","CHANGELOG.md","README.md"],j3e=!1,P3e=["Safe","sdk","apps"],I3e={test:"jest","format-dist":`sed -i '' 's/"files":/"_files":/' dist/package.json`,build:"yarn rimraf dist && tsc && yarn format-dist"},O3e="Safe (https://safe.global)",R3e="MIT",N3e={"@safe-global/safe-gateway-typescript-sdk":"^3.5.3",viem:"^1.0.0"},B3e={type:"git",url:"git+https://github.com/safe-global/safe-apps-sdk.git"},F3e={url:"https://github.com/safe-global/safe-apps-sdk/issues"},M3e="https://github.com/safe-global/safe-apps-sdk#readme",L3e={access:"public"},U3e={name:C3e,version:S3e,description:T3e,main:A3e,typings:D3e,_files:k3e,sideEffects:j3e,keywords:P3e,scripts:I3e,author:O3e,license:R3e,dependencies:N3e,repository:B3e,bugs:F3e,homepage:M3e,publishConfig:L3e};var $3e=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dy,"__esModule",{value:!0});Dy.getSDKVersion=void 0;const z3e=$3e(U3e),H3e=()=>z3e.default.version.split("-")[0];Dy.getSDKVersion=H3e;var g2={};Object.defineProperty(g2,"__esModule",{value:!0});g2.generateRequestId=void 0;const q3e=e=>e.toString(16).padStart(2,"0"),W3e=e=>{const t=new Uint8Array(e/2);return window.crypto.getRandomValues(t),Array.from(t,q3e).join("")},G3e=()=>typeof window<"u"?W3e(10):new Date().getTime().toString(36);g2.generateRequestId=G3e;Object.defineProperty(Ay,"__esModule",{value:!0});Ay.MessageFormatter=void 0;const V3e=Dy,K3e=g2;class y2{}Ay.MessageFormatter=y2;y2.makeRequest=(e,t)=>({id:(0,K3e.generateRequestId)(),method:e,params:t,env:{sdkVersion:(0,V3e.getSDKVersion)()}});y2.makeResponse=(e,t,n)=>({id:e,success:!0,version:n,data:t});y2.makeErrorResponse=(e,t,n)=>({id:e,success:!1,error:t,version:n});var Ed={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RestrictedMethods=e.Methods=void 0,function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"}(e.Methods||(e.Methods={})),function(t){t.requestAddressBook="requestAddressBook"}(e.RestrictedMethods||(e.RestrictedMethods={}))})(Ed);(function(e){var t=We&&We.__createBinding||(Object.create?function(a,i,s,c){c===void 0&&(c=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(a,c,l)}:function(a,i,s,c){c===void 0&&(c=s),a[c]=i[s]}),n=We&&We.__exportStar||function(a,i){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,a,s)};Object.defineProperty(e,"__esModule",{value:!0});const r=Ay;class o{constructor(i=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:c,data:l,source:u})=>{const d=!l,f=!this.isServer&&u===window.parent,m=(typeof l.version<"u"&&parseInt(l.version.split(".")[0]))>=1;let p=!0;return Array.isArray(this.allowedOrigins)&&(p=this.allowedOrigins.find(b=>b.test(c))!==void 0),!d&&f&&m&&p},this.logIncomingMessage=c=>{console.info(`Safe Apps SDK v1: A message was received from origin ${c.origin}. `,c.data)},this.onParentMessage=c=>{this.isValidMessage(c)&&(this.debugMode&&this.logIncomingMessage(c),this.handleIncomingMessage(c.data))},this.handleIncomingMessage=c=>{const{id:l}=c,u=this.callbacks.get(l);u&&(u(c),this.callbacks.delete(l))},this.send=(c,l)=>{const u=r.MessageFormatter.makeRequest(c,l);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(u,"*"),new Promise((d,f)=>{this.callbacks.set(u.id,h=>{if(!h.success){f(new Error(h.error));return}d(h)})})},this.allowedOrigins=i,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Ed,e)})(bX);var b2={},v2={},w2={};Object.defineProperty(w2,"__esModule",{value:!0});w2.isObjectEIP712TypedData=void 0;const Y3e=e=>typeof e=="object"&&e!=null&&"domain"in e&&"types"in e&&"message"in e;w2.isObjectEIP712TypedData=Y3e;var vX={};Object.defineProperty(vX,"__esModule",{value:!0});var wX={},EX={},Di={},ki={},G4=We&&We.__awaiter||function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function s(u){try{l(r.next(u))}catch(d){i(d)}}function c(u){try{l(r.throw(u))}catch(d){i(d)}}function l(u){u.done?a(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(ki,"__esModule",{value:!0});ki.getData=ki.fetchData=ki.stringifyQuery=ki.insertParams=void 0;const Q3e=e=>typeof e=="object"&&e!==null&&"code"in e&&"message"in e;function X3e(e,t,n){return e.replace(new RegExp(`\\{${t}\\}`,"g"),n)}function J3e(e,t){return t?Object.keys(t).reduce((n,r)=>X3e(n,r,String(t[r])),e):e}ki.insertParams=J3e;function Z3e(e){if(!e)return"";const t=new URLSearchParams;Object.keys(e).forEach(r=>{e[r]!=null&&t.append(r,String(e[r]))});const n=t.toString();return n?`?${n}`:""}ki.stringifyQuery=Z3e;function _X(e){return G4(this,void 0,void 0,function*(){let t;try{t=yield e.json()}catch{t={}}if(!e.ok){const n=Q3e(t)?`CGW error - ${t.code}: ${t.message}`:`CGW error - status ${e.statusText}`;throw new Error(n)}return t})}function eTe(e,t,n,r,o){return G4(this,void 0,void 0,function*(){const a=Object.assign({"Content-Type":"application/json"},r),i={method:t??"POST",headers:a};o&&(i.credentials=o),n!=null&&(i.body=typeof n=="string"?n:JSON.stringify(n));const s=yield fetch(e,i);return _X(s)})}ki.fetchData=eTe;function tTe(e,t,n){return G4(this,void 0,void 0,function*(){const r={method:"GET"};t&&(r.headers=Object.assign(Object.assign({},t),{"Content-Type":"application/json"})),n&&(r.credentials=n);const o=yield fetch(e,r);return _X(o)})}ki.getData=tTe;Object.defineProperty(Di,"__esModule",{value:!0});Di.getEndpoint=Di.deleteEndpoint=Di.putEndpoint=Di.postEndpoint=void 0;const Zu=ki;function E2(e,t,n,r){const o=(0,Zu.insertParams)(t,n),a=(0,Zu.stringifyQuery)(r);return`${e}${o}${a}`}function nTe(e,t,n){const r=E2(e,t,n==null?void 0:n.path,n==null?void 0:n.query);return(0,Zu.fetchData)(r,"POST",n==null?void 0:n.body,n==null?void 0:n.headers,n==null?void 0:n.credentials)}Di.postEndpoint=nTe;function rTe(e,t,n){const r=E2(e,t,n==null?void 0:n.path,n==null?void 0:n.query);return(0,Zu.fetchData)(r,"PUT",n==null?void 0:n.body,n==null?void 0:n.headers,n==null?void 0:n.credentials)}Di.putEndpoint=rTe;function oTe(e,t,n){const r=E2(e,t,n==null?void 0:n.path,n==null?void 0:n.query);return(0,Zu.fetchData)(r,"DELETE",n==null?void 0:n.body,n==null?void 0:n.headers,n==null?void 0:n.credentials)}Di.deleteEndpoint=oTe;function aTe(e,t,n,r){if(r)return(0,Zu.getData)(r,void 0,n==null?void 0:n.credentials);const o=E2(e,t,n==null?void 0:n.path,n==null?void 0:n.query);return(0,Zu.getData)(o,n==null?void 0:n.headers,n==null?void 0:n.credentials)}Di.getEndpoint=aTe;var _2={};Object.defineProperty(_2,"__esModule",{value:!0});_2.DEFAULT_BASE_URL=void 0;_2.DEFAULT_BASE_URL="https://safe-client.safe.global";var xX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationVersionState=void 0,function(t){t.UP_TO_DATE="UP_TO_DATE",t.OUTDATED="OUTDATED",t.UNKNOWN="UNKNOWN"}(e.ImplementationVersionState||(e.ImplementationVersionState={}))})(xX);var CX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAppSocialPlatforms=e.SafeAppFeatures=e.SafeAppAccessPolicyTypes=void 0,function(t){t.NoRestrictions="NO_RESTRICTIONS",t.DomainAllowlist="DOMAIN_ALLOWLIST"}(e.SafeAppAccessPolicyTypes||(e.SafeAppAccessPolicyTypes={})),function(t){t.BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS"}(e.SafeAppFeatures||(e.SafeAppFeatures={})),function(t){t.TWITTER="TWITTER",t.GITHUB="GITHUB",t.DISCORD="DISCORD"}(e.SafeAppSocialPlatforms||(e.SafeAppSocialPlatforms={}))})(CX);var SX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LabelValue=e.StartTimeValue=e.DurationType=e.DetailedExecutionInfoType=e.TransactionListItemType=e.ConflictType=e.TransactionInfoType=e.SettingsInfoType=e.TransactionTokenType=e.TransferDirection=e.TransactionStatus=e.Operation=void 0,function(t){t[t.CALL=0]="CALL",t[t.DELEGATE=1]="DELEGATE"}(e.Operation||(e.Operation={})),function(t){t.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",t.AWAITING_EXECUTION="AWAITING_EXECUTION",t.CANCELLED="CANCELLED",t.FAILED="FAILED",t.SUCCESS="SUCCESS"}(e.TransactionStatus||(e.TransactionStatus={})),function(t){t.INCOMING="INCOMING",t.OUTGOING="OUTGOING",t.UNKNOWN="UNKNOWN"}(e.TransferDirection||(e.TransferDirection={})),function(t){t.ERC20="ERC20",t.ERC721="ERC721",t.NATIVE_COIN="NATIVE_COIN"}(e.TransactionTokenType||(e.TransactionTokenType={})),function(t){t.SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",t.ADD_OWNER="ADD_OWNER",t.REMOVE_OWNER="REMOVE_OWNER",t.SWAP_OWNER="SWAP_OWNER",t.CHANGE_THRESHOLD="CHANGE_THRESHOLD",t.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",t.ENABLE_MODULE="ENABLE_MODULE",t.DISABLE_MODULE="DISABLE_MODULE",t.SET_GUARD="SET_GUARD",t.DELETE_GUARD="DELETE_GUARD"}(e.SettingsInfoType||(e.SettingsInfoType={})),function(t){t.TRANSFER="Transfer",t.SETTINGS_CHANGE="SettingsChange",t.CUSTOM="Custom",t.CREATION="Creation",t.SWAP_ORDER="SwapOrder",t.TWAP_ORDER="TwapOrder",t.SWAP_TRANSFER="SwapTransfer"}(e.TransactionInfoType||(e.TransactionInfoType={})),function(t){t.NONE="None",t.HAS_NEXT="HasNext",t.END="End"}(e.ConflictType||(e.ConflictType={})),function(t){t.TRANSACTION="TRANSACTION",t.LABEL="LABEL",t.CONFLICT_HEADER="CONFLICT_HEADER",t.DATE_LABEL="DATE_LABEL"}(e.TransactionListItemType||(e.TransactionListItemType={})),function(t){t.MULTISIG="MULTISIG",t.MODULE="MODULE"}(e.DetailedExecutionInfoType||(e.DetailedExecutionInfoType={})),function(t){t.AUTO="AUTO",t.LIMIT_DURATION="LIMIT_DURATION"}(e.DurationType||(e.DurationType={})),function(t){t.AT_MINING_TIME="AT_MINING_TIME",t.AT_EPOCH="AT_EPOCH"}(e.StartTimeValue||(e.StartTimeValue={})),function(t){t.Queued="Queued",t.Next="Next"}(e.LabelValue||(e.LabelValue={}))})(SX);var TX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FEATURES=e.GAS_PRICE_TYPE=e.RPC_AUTHENTICATION=void 0,function(t){t.API_KEY_PATH="API_KEY_PATH",t.NO_AUTHENTICATION="NO_AUTHENTICATION",t.UNKNOWN="UNKNOWN"}(e.RPC_AUTHENTICATION||(e.RPC_AUTHENTICATION={})),function(t){t.ORACLE="ORACLE",t.FIXED="FIXED",t.FIXED_1559="FIXED1559",t.UNKNOWN="UNKNOWN"}(e.GAS_PRICE_TYPE||(e.GAS_PRICE_TYPE={})),function(t){t.ERC721="ERC721",t.SAFE_APPS="SAFE_APPS",t.CONTRACT_INTERACTION="CONTRACT_INTERACTION",t.DOMAIN_LOOKUP="DOMAIN_LOOKUP",t.SPENDING_LIMIT="SPENDING_LIMIT",t.EIP1559="EIP1559",t.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",t.TX_SIMULATION="TX_SIMULATION",t.EIP1271="EIP1271"}(e.FEATURES||(e.FEATURES={}))})(TX);var AX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TokenType=void 0,function(t){t.ERC20="ERC20",t.ERC721="ERC721",t.NATIVE_TOKEN="NATIVE_TOKEN"}(e.TokenType||(e.TokenType={}))})(AX);var DX={};Object.defineProperty(DX,"__esModule",{value:!0});var kX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfirmationViewTypes=void 0,function(t){t.COW_SWAP_ORDER="COW_SWAP_ORDER",t.COW_SWAP_TWAP_ORDER="COW_SWAP_TWAP_ORDER"}(e.ConfirmationViewTypes||(e.ConfirmationViewTypes={}))})(kX);var jX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeMessageStatus=e.SafeMessageListItemType=void 0,function(t){t.DATE_LABEL="DATE_LABEL",t.MESSAGE="MESSAGE"}(e.SafeMessageListItemType||(e.SafeMessageListItemType={})),function(t){t.NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",t.CONFIRMED="CONFIRMED"}(e.SafeMessageStatus||(e.SafeMessageStatus={}))})(jX);var PX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeviceType=void 0,function(t){t.ANDROID="ANDROID",t.IOS="IOS",t.WEB="WEB"}(e.DeviceType||(e.DeviceType={}))})(PX);var IX={};Object.defineProperty(IX,"__esModule",{value:!0});(function(e){var t=We&&We.__createBinding||(Object.create?function(Y,W,Q,ce){ce===void 0&&(ce=Q);var pe=Object.getOwnPropertyDescriptor(W,Q);(!pe||("get"in pe?!W.__esModule:pe.writable||pe.configurable))&&(pe={enumerable:!0,get:function(){return W[Q]}}),Object.defineProperty(Y,ce,pe)}:function(Y,W,Q,ce){ce===void 0&&(ce=Q),Y[ce]=W[Q]}),n=We&&We.__exportStar||function(Y,W){for(var Q in Y)Q!=="default"&&!Object.prototype.hasOwnProperty.call(W,Q)&&t(W,Y,Q)};Object.defineProperty(e,"__esModule",{value:!0}),e.deleteAccount=e.getAccount=e.createAccount=e.verifyAuth=e.getAuthNonce=e.getContract=e.getSafeOverviews=e.unsubscribeAll=e.unsubscribeSingle=e.registerRecoveryModule=e.deleteRegisteredEmail=e.getRegisteredEmail=e.verifyEmail=e.resendEmailVerificationCode=e.changeEmail=e.registerEmail=e.unregisterDevice=e.unregisterSafe=e.registerDevice=e.getDelegates=e.confirmSafeMessage=e.proposeSafeMessage=e.getSafeMessage=e.getSafeMessages=e.getDecodedData=e.getMasterCopies=e.getSafeApps=e.getChainConfig=e.getChainsConfig=e.getConfirmationView=e.proposeTransaction=e.getNonces=e.postSafeGasEstimation=e.deleteTransaction=e.getTransactionDetails=e.getTransactionQueue=e.getTransactionHistory=e.getCollectiblesPage=e.getCollectibles=e.getAllOwnedSafes=e.getOwnedSafes=e.getFiatCurrencies=e.getBalances=e.getMultisigTransactions=e.getModuleTransactions=e.getIncomingTransfers=e.getSafeInfo=e.getRelayCount=e.relayTransaction=e.setBaseUrl=void 0,e.putAccountDataSettings=e.getAccountDataSettings=e.getAccountDataTypes=void 0;const r=Di,o=_2;n(xX,e),n(CX,e),n(SX,e),n(TX,e),n(AX,e),n(DX,e),n(kX,e),n(jX,e),n(PX,e),n(IX,e);let a=o.DEFAULT_BASE_URL;const i=Y=>{a=Y};e.setBaseUrl=i;function s(Y,W){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/relay",{path:{chainId:Y},body:W})}e.relayTransaction=s;function c(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/relay/{address}",{path:{chainId:Y,address:W}})}e.getRelayCount=c;function l(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:Y,address:W}})}e.getSafeInfo=l;function u(Y,W,Q,ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:Y,address:W},query:Q},ce)}e.getIncomingTransfers=u;function d(Y,W,Q,ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:Y,address:W},query:Q},ce)}e.getModuleTransactions=d;function f(Y,W,Q,ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:Y,address:W},query:Q},ce)}e.getMultisigTransactions=f;function h(Y,W,Q="usd",ce={}){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:Y,address:W,currency:Q},query:ce})}e.getBalances=h;function m(){return(0,r.getEndpoint)(a,"/v1/balances/supported-fiat-codes")}e.getFiatCurrencies=m;function p(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:Y,address:W}})}e.getOwnedSafes=p;function b(Y){return(0,r.getEndpoint)(a,"/v1/owners/{address}/safes",{path:{address:Y}})}e.getAllOwnedSafes=b;function v(Y,W,Q={}){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:Y,address:W},query:Q})}e.getCollectibles=v;function g(Y,W,Q={},ce){return(0,r.getEndpoint)(a,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:Y,address:W},query:Q},ce)}e.getCollectiblesPage=g;function w(Y,W,Q={},ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:Y,safe_address:W},query:Q},ce)}e.getTransactionHistory=w;function _(Y,W,Q={},ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:Y,safe_address:W},query:Q},ce)}e.getTransactionQueue=_;function C(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:Y,transactionId:W}})}e.getTransactionDetails=C;function x(Y,W,Q){return(0,r.deleteEndpoint)(a,"/v1/chains/{chainId}/transactions/{safeTxHash}",{path:{chainId:Y,safeTxHash:W},body:{signature:Q}})}e.deleteTransaction=x;function E(Y,W,Q){return(0,r.postEndpoint)(a,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:Y,safe_address:W},body:Q})}e.postSafeGasEstimation=E;function T(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/nonces",{path:{chainId:Y,safe_address:W}})}e.getNonces=T;function k(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:Y,safe_address:W},body:Q})}e.proposeTransaction=k;function D(Y,W,Q,ce){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/views/transaction-confirmation",{path:{chainId:Y,safe_address:W},body:{data:Q,to:ce}})}e.getConfirmationView=D;function R(Y){return(0,r.getEndpoint)(a,"/v1/chains",{query:Y})}e.getChainsConfig=R;function F(Y){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}",{path:{chainId:Y}})}e.getChainConfig=F;function B(Y,W={}){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safe-apps",{path:{chainId:Y},query:W})}e.getSafeApps=B;function j(Y){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:Y}})}e.getMasterCopies=j;function P(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/data-decoder",{path:{chainId:Y},body:{data:W,to:Q}})}e.getDecodedData=P;function O(Y,W,Q){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:Y,safe_address:W},query:{}},Q)}e.getSafeMessages=O;function I(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:Y,message_hash:W}})}e.getSafeMessage=I;function N(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:Y,safe_address:W},body:Q})}e.proposeSafeMessage=N;function M(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:Y,message_hash:W},body:Q})}e.confirmSafeMessage=M;function L(Y,W={}){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/delegates",{path:{chainId:Y},query:W})}e.getDelegates=L;function X(Y){return(0,r.postEndpoint)(a,"/v1/register/notifications",{body:Y})}e.registerDevice=X;function J(Y,W,Q){return(0,r.deleteEndpoint)(a,"/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}",{path:{chainId:Y,safe_address:W,uuid:Q}})}e.unregisterSafe=J;function U(Y,W){return(0,r.deleteEndpoint)(a,"/v1/chains/{chainId}/notifications/devices/{uuid}",{path:{chainId:Y,uuid:W}})}e.unregisterDevice=U;function G(Y,W,Q,ce){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails",{path:{chainId:Y,safe_address:W},body:Q,headers:ce})}e.registerEmail=G;function Z(Y,W,Q,ce,pe){return(0,r.putEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:Y,safe_address:W,signer:Q},body:ce,headers:pe})}e.changeEmail=Z;function ae(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify-resend",{path:{chainId:Y,safe_address:W,signer:Q},body:""})}e.resendEmailVerificationCode=ae;function ne(Y,W,Q,ce){return(0,r.putEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify",{path:{chainId:Y,safe_address:W,signer:Q},body:ce})}e.verifyEmail=ne;function ie(Y,W,Q,ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:Y,safe_address:W,signer:Q},headers:ce})}e.getRegisteredEmail=ie;function te(Y,W,Q,ce){return(0,r.deleteEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:Y,safe_address:W,signer:Q},headers:ce})}e.deleteRegisteredEmail=te;function ee(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/recovery",{path:{chainId:Y,safe_address:W},body:Q})}e.registerRecoveryModule=ee;function re(Y){return(0,r.deleteEndpoint)(a,"/v1/subscriptions",{query:Y})}e.unsubscribeSingle=re;function z(Y){return(0,r.deleteEndpoint)(a,"/v1/subscriptions/all",{query:Y})}e.unsubscribeAll=z;function fe(Y,W){return(0,r.getEndpoint)(a,"/v1/safes",{query:Object.assign(Object.assign({},W),{safes:Y.join(",")})})}e.getSafeOverviews=fe;function ve(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/contracts/{contractAddress}",{path:{chainId:Y,contractAddress:W}})}e.getContract=ve;function Ue(){return(0,r.getEndpoint)(a,"/v1/auth/nonce",{credentials:"include"})}e.getAuthNonce=Ue;function ke(Y){return(0,r.postEndpoint)(a,"/v1/auth/verify",{body:Y,credentials:"include"})}e.verifyAuth=ke;function Qe(Y){return(0,r.postEndpoint)(a,"/v1/accounts",{body:Y,credentials:"include"})}e.createAccount=Qe;function Te(Y){return(0,r.getEndpoint)(a,"/v1/accounts/{address}",{path:{address:Y},credentials:"include"})}e.getAccount=Te;function Ee(Y){return(0,r.deleteEndpoint)(a,"/v1/accounts/{address}",{path:{address:Y},credentials:"include"})}e.deleteAccount=Ee;function he(){return(0,r.getEndpoint)(a,"/v1/accounts/data-types")}e.getAccountDataTypes=he;function Me(Y){return(0,r.getEndpoint)(a,"/v1/accounts/{address}/data-settings",{path:{address:Y},credentials:"include"})}e.getAccountDataSettings=Me;function ge(Y,W){return(0,r.putEndpoint)(a,"/v1/accounts/{address}/data-settings",{path:{address:Y},body:W,credentials:"include"})}e.putAccountDataSettings=ge})(EX);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var t=EX;Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return t.Operation}}),Object.defineProperty(e,"TokenType",{enumerable:!0,get:function(){return t.TokenType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return t.TransactionStatus}}),Object.defineProperty(e,"TransferDirection",{enumerable:!0,get:function(){return t.TransferDirection}})})(wX);var OX={};Object.defineProperty(OX,"__esModule",{value:!0});(function(e){var t=We&&We.__createBinding||(Object.create?function(r,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(r,i,s)}:function(r,o,a,i){i===void 0&&(i=a),r[i]=o[a]}),n=We&&We.__exportStar||function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(w2,e),n(vX,e),n(wX,e),n(OX,e)})(v2);Object.defineProperty(b2,"__esModule",{value:!0});b2.TXs=void 0;const yv=Ed,iTe=v2;class sTe{constructor(t){this.communicator=t}async getBySafeTxHash(t){if(!t)throw new Error("Invalid safeTxHash");return(await this.communicator.send(yv.Methods.getTxBySafeTxHash,{safeTxHash:t})).data}async signMessage(t){const n={message:t};return(await this.communicator.send(yv.Methods.signMessage,n)).data}async signTypedMessage(t){if(!(0,iTe.isObjectEIP712TypedData)(t))throw new Error("Invalid typed data");return(await this.communicator.send(yv.Methods.signTypedMessage,{typedData:t})).data}async send({txs:t,params:n}){if(!t||!t.length)throw new Error("No transactions were passed");const r={txs:t,params:n};return(await this.communicator.send(yv.Methods.sendTransactions,r)).data}}b2.TXs=sTe;var x2={},ky={};Object.defineProperty(ky,"__esModule",{value:!0});ky.RPC_CALLS=void 0;ky.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"};Object.defineProperty(x2,"__esModule",{value:!0});x2.Eth=void 0;const ko=ky,cTe=Ed,Yi={defaultBlockParam:(e="latest")=>e,returnFullTxObjectParam:(e=!1)=>e,blockNumberToHex:e=>Number.isInteger(e)?`0x${e.toString(16)}`:e};class lTe{constructor(t){this.communicator=t,this.call=this.buildRequest({call:ko.RPC_CALLS.eth_call,formatters:[null,Yi.defaultBlockParam]}),this.getBalance=this.buildRequest({call:ko.RPC_CALLS.eth_getBalance,formatters:[null,Yi.defaultBlockParam]}),this.getCode=this.buildRequest({call:ko.RPC_CALLS.eth_getCode,formatters:[null,Yi.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:ko.RPC_CALLS.eth_getStorageAt,formatters:[null,Yi.blockNumberToHex,Yi.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:ko.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:ko.RPC_CALLS.eth_getBlockByHash,formatters:[null,Yi.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:ko.RPC_CALLS.eth_getBlockByNumber,formatters:[Yi.blockNumberToHex,Yi.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:ko.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:ko.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:ko.RPC_CALLS.eth_getTransactionCount,formatters:[null,Yi.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:ko.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=n=>this.buildRequest({call:ko.RPC_CALLS.eth_estimateGas})([n]),this.setSafeSettings=this.buildRequest({call:ko.RPC_CALLS.safe_setSettings})}buildRequest(t){const{call:n,formatters:r}=t;return async o=>{r&&Array.isArray(o)&&r.forEach((s,c)=>{s&&(o[c]=s(o[c]))});const a={call:n,params:o||[]};return(await this.communicator.send(cTe.Methods.rpcCall,a)).data}}}x2.Eth=lTe;var C2={},j3={};const V4=Ns(kce);var Kc={},Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getAction=void 0;function uTe(e,t,n){return r=>{var o;return((o=e[t.name||n])==null?void 0:o.call(e,r))??t(e,r)}}Bt.getAction=uTe;var ym={},Ws={},Ne={},Kl={},MB;function Gs(){if(MB)return Kl;MB=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.formatAbiParams=Kl.formatAbiItem=void 0;const e=Jt();function t(o,{includeName:a=!1}={}){if(o.type!=="function"&&o.type!=="event"&&o.type!=="error")throw new e.InvalidDefinitionTypeError(o.type);return`${o.name}(${n(o.inputs,{includeName:a})})`}Kl.formatAbiItem=t;function n(o,{includeName:a=!1}={}){return o?o.map(i=>r(i,{includeName:a})).join(a?", ":","):""}Kl.formatAbiParams=n;function r(o,{includeName:a}){return o.type.startsWith("tuple")?`(${n(o.components,{includeName:a})})${o.type.slice(5)}`:o.type+(a&&o.name?` ${o.name}`:"")}return Kl}var ka={},qn={};Object.defineProperty(qn,"__esModule",{value:!0});qn.isHex=void 0;function dTe(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}qn.isHex=dTe;Object.defineProperty(ka,"__esModule",{value:!0});ka.size=void 0;const fTe=qn;function hTe(e){return(0,fTe.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}ka.size=hTe;var xt={},ei={},S2={};Object.defineProperty(S2,"__esModule",{value:!0});S2.version=void 0;S2.version="1.21.3";Object.defineProperty(ei,"__esModule",{value:!0});ei.getVersion=ei.getUrl=ei.getContractAddress=void 0;const mTe=S2,pTe=e=>e;ei.getContractAddress=pTe;const gTe=e=>e;ei.getUrl=gTe;const yTe=()=>`viem@${mTe.version}`;ei.getVersion=yTe;Object.defineProperty(xt,"__esModule",{value:!0});xt.BaseError=void 0;const bTe=ei;class kE extends Error{constructor(t,n={}){var a;super(),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:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,bTe.getVersion)()});const r=n.cause instanceof kE?n.cause.details:(a=n.cause)!=null&&a.message?n.cause.message:n.details,o=n.cause instanceof kE&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(` -`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return RX(this,t)}}xt.BaseError=kE;function RX(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e?RX(e.cause,t):t?null:e}var LB;function Jt(){if(LB)return Ne;LB=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.UnsupportedPackedAbiType=Ne.InvalidDefinitionTypeError=Ne.InvalidArrayError=Ne.InvalidAbiDecodingTypeError=Ne.InvalidAbiEncodingTypeError=Ne.DecodeLogTopicsMismatch=Ne.DecodeLogDataMismatch=Ne.BytesSizeMismatchError=Ne.AbiItemAmbiguityError=Ne.AbiFunctionSignatureNotFoundError=Ne.AbiFunctionOutputsNotFoundError=Ne.AbiFunctionNotFoundError=Ne.AbiEventNotFoundError=Ne.AbiEventSignatureNotFoundError=Ne.AbiEventSignatureEmptyTopicsError=Ne.AbiErrorSignatureNotFoundError=Ne.AbiErrorNotFoundError=Ne.AbiErrorInputsNotFoundError=Ne.AbiEncodingLengthMismatchError=Ne.AbiEncodingBytesSizeMismatchError=Ne.AbiEncodingArrayLengthMismatchError=Ne.AbiDecodingZeroDataError=Ne.AbiDecodingDataSizeTooSmallError=Ne.AbiDecodingDataSizeInvalidError=Ne.AbiConstructorParamsNotFoundError=Ne.AbiConstructorNotFoundError=void 0;const e=Gs(),t=ka,n=xt;class r extends n.BaseError{constructor({docsPath:j}){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(` -`),{docsPath:j}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}Ne.AbiConstructorNotFoundError=r;class o extends n.BaseError{constructor({docsPath:j}){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(` -`),{docsPath:j}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}Ne.AbiConstructorParamsNotFoundError=o;class a extends n.BaseError{constructor({data:j,size:P}){super([`Data size of ${P} bytes is invalid.`,"Size must be in increments of 32 bytes (size % 32 === 0)."].join(` -`),{metaMessages:[`Data: ${j} (${P} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeInvalidError"})}}Ne.AbiDecodingDataSizeInvalidError=a;class i extends n.BaseError{constructor({data:j,params:P,size:O}){super([`Data size of ${O} bytes is too small for given parameters.`].join(` -`),{metaMessages:[`Params: (${(0,e.formatAbiParams)(P,{includeName:!0})})`,`Data: ${j} (${O} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=j,this.params=P,this.size=O}}Ne.AbiDecodingDataSizeTooSmallError=i;class s extends n.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}Ne.AbiDecodingZeroDataError=s;class c extends n.BaseError{constructor({expectedLength:j,givenLength:P,type:O}){super([`ABI encoding array length mismatch for type ${O}.`,`Expected length: ${j}`,`Given length: ${P}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}Ne.AbiEncodingArrayLengthMismatchError=c;class l extends n.BaseError{constructor({expectedSize:j,value:P}){super(`Size of bytes "${P}" (bytes${(0,t.size)(P)}) does not match expected size (bytes${j}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}Ne.AbiEncodingBytesSizeMismatchError=l;class u extends n.BaseError{constructor({expectedLength:j,givenLength:P}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${j}`,`Given length (values): ${P}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}Ne.AbiEncodingLengthMismatchError=u;class d extends n.BaseError{constructor(j,{docsPath:P}){super([`Arguments (\`args\`) were provided to "${j}", but "${j}" 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(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorInputsNotFoundError"})}}Ne.AbiErrorInputsNotFoundError=d;class f extends n.BaseError{constructor(j,{docsPath:P}={}){super([`Error ${j?`"${j}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorNotFoundError"})}}Ne.AbiErrorNotFoundError=f;class h extends n.BaseError{constructor(j,{docsPath:P}){super([`Encoded error signature "${j}" 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://openchain.xyz/signatures?query=${j}.`].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=j}}Ne.AbiErrorSignatureNotFoundError=h;class m extends n.BaseError{constructor({docsPath:j}){super("Cannot extract event signature from empty topics.",{docsPath:j}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}Ne.AbiEventSignatureEmptyTopicsError=m;class p extends n.BaseError{constructor(j,{docsPath:P}){super([`Encoded event signature "${j}" 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://openchain.xyz/signatures?query=${j}.`].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}Ne.AbiEventSignatureNotFoundError=p;class b extends n.BaseError{constructor(j,{docsPath:P}={}){super([`Event ${j?`"${j}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}Ne.AbiEventNotFoundError=b;class v extends n.BaseError{constructor(j,{docsPath:P}={}){super([`Function ${j?`"${j}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}Ne.AbiFunctionNotFoundError=v;class g extends n.BaseError{constructor(j,{docsPath:P}){super([`Function "${j}" 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(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}Ne.AbiFunctionOutputsNotFoundError=g;class w extends n.BaseError{constructor(j,{docsPath:P}){super([`Encoded function signature "${j}" 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://openchain.xyz/signatures?query=${j}.`].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionSignatureNotFoundError"})}}Ne.AbiFunctionSignatureNotFoundError=w;class _ extends n.BaseError{constructor(j,P){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${j.type}\` in \`${(0,e.formatAbiItem)(j.abiItem)}\`, and`,`\`${P.type}\` in \`${(0,e.formatAbiItem)(P.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:"AbiItemAmbiguityError"})}}Ne.AbiItemAmbiguityError=_;class C extends n.BaseError{constructor({expectedSize:j,givenSize:P}){super(`Expected bytes${j}, got bytes${P}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}Ne.BytesSizeMismatchError=C;class x extends n.BaseError{constructor({abiItem:j,data:P,params:O,size:I}){super([`Data size of ${I} bytes is too small for non-indexed event parameters.`].join(` -`),{metaMessages:[`Params: (${(0,e.formatAbiParams)(O,{includeName:!0})})`,`Data: ${P} (${I} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=j,this.data=P,this.params=O,this.size=I}}Ne.DecodeLogDataMismatch=x;class E extends n.BaseError{constructor({abiItem:j,param:P}){super([`Expected a topic for indexed event parameter${P.name?` "${P.name}"`:""} on event "${(0,e.formatAbiItem)(j,{includeName:!0})}".`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=j}}Ne.DecodeLogTopicsMismatch=E;class T extends n.BaseError{constructor(j,{docsPath:P}){super([`Type "${j}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}Ne.InvalidAbiEncodingTypeError=T;class k extends n.BaseError{constructor(j,{docsPath:P}){super([`Type "${j}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}Ne.InvalidAbiDecodingTypeError=k;class D extends n.BaseError{constructor(j){super([`Value "${j}" is not a valid array.`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}Ne.InvalidArrayError=D;class R extends n.BaseError{constructor(j){super([`"${j}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}Ne.InvalidDefinitionTypeError=R;class F extends n.BaseError{constructor(j){super(`Type "${j}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}return Ne.UnsupportedPackedAbiType=F,Ne}var jy={};Object.defineProperty(jy,"__esModule",{value:!0});jy.FilterTypeNotSupportedError=void 0;const vTe=xt;class wTe extends vTe.BaseError{constructor(t){super(`Filter type "${t}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}jy.FilterTypeNotSupportedError=wTe;var jo={},eo={},pl={};Object.defineProperty(pl,"__esModule",{value:!0});pl.SizeExceedsPaddingSizeError=pl.SliceOffsetOutOfBoundsError=void 0;const NX=xt;class ETe extends NX.BaseError{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:"SliceOffsetOutOfBoundsError"})}}pl.SliceOffsetOutOfBoundsError=ETe;class _Te extends NX.BaseError{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:"SizeExceedsPaddingSizeError"})}}pl.SizeExceedsPaddingSizeError=_Te;Object.defineProperty(eo,"__esModule",{value:!0});eo.padBytes=eo.padHex=eo.pad=void 0;const BX=pl;function xTe(e,{dir:t,size:n=32}={}){return typeof e=="string"?FX(e,{dir:t,size:n}):MX(e,{dir:t,size:n})}eo.pad=xTe;function FX(e,{dir:t,size:n=32}={}){if(n===null)return e;const r=e.replace("0x","");if(r.length>n*2)throw new BX.SizeExceedsPaddingSizeError({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}eo.padHex=FX;function MX(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new BX.SizeExceedsPaddingSizeError({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let o=0;od)throw new e.SizeOverflowError({givenSize:(0,t.size)(u),maxSize:d})}Hr.assertSize=o;function a(u,d){const f=typeof d=="string"?{to:d}:d,h=f.to;return h==="number"?c(u,f):h==="bigint"?i(u,f):h==="string"?l(u,f):h==="boolean"?s(u,f):(0,r.hexToBytes)(u,f)}Hr.fromHex=a;function i(u,d={}){const{signed:f}=d;d.size&&o(u,{size:d.size});const h=BigInt(u);if(!f)return h;const m=(u.length-2)/2,p=(1n<d.toString(16).padStart(2,"0"));function o(u,d={}){return typeof u=="number"||typeof u=="bigint"?s(u,d):typeof u=="string"?l(u,d):typeof u=="boolean"?a(u,d):i(u,d)}Po.toHex=o;function a(u,d={}){const f=`0x${Number(u)}`;return typeof d.size=="number"?((0,n.assertSize)(f,{size:d.size}),(0,t.pad)(f,{size:d.size})):f}Po.boolToHex=a;function i(u,d={}){let f="";for(let m=0;mp||m=c.zero&&h<=c.nine)return h-c.zero;if(h>=c.A&&h<=c.F)return h-(c.A-10);if(h>=c.a&&h<=c.f)return h-(c.a-10)}function u(h,m={}){let p=h;m.size&&((0,r.assertSize)(p,{size:m.size}),p=(0,n.pad)(p,{dir:"right",size:m.size}));let b=p.slice(2);b.length%2&&(b=`0${b}`);const v=b.length/2,g=new Uint8Array(v);for(let w=0,_=0;w{const t=typeof e=="string"?e:(0,NTe.formatAbiItem)(e);return(0,BTe.normalizeSignature)(t)};bm.getFunctionSignature=FTe;Object.defineProperty(Py,"__esModule",{value:!0});Py.getEventSignature=void 0;const MTe=bm,LTe=e=>(0,MTe.getFunctionSignature)(e);Py.getEventSignature=LTe;var lo={};const UTe=Ns(Ole);Object.defineProperty(lo,"__esModule",{value:!0});lo.keccak256=void 0;const $Te=UTe,zTe=qn,HTe=Gn(),qTe=$e();function WTe(e,t){const n=t||"hex",r=(0,$Te.keccak_256)((0,zTe.isHex)(e,{strict:!1})?(0,HTe.toBytes)(e):e);return n==="bytes"?r:(0,qTe.toHex)(r)}lo.keccak256=WTe;Object.defineProperty(Pl,"__esModule",{value:!0});Pl.getEventSelector=void 0;const GTe=Gn(),VTe=Py,KTe=lo,YTe=e=>(0,KTe.keccak256)((0,GTe.toBytes)(e)),QTe=e=>YTe((0,VTe.getEventSignature)(e));Pl.getEventSelector=QTe;var ao={},Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});Zo.InvalidAddressError=void 0;const XTe=xt;class JTe extends XTe.BaseError{constructor({address:t}){super(`Address "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}Zo.InvalidAddressError=JTe;var uo={};Object.defineProperty(uo,"__esModule",{value:!0});uo.isAddress=void 0;const ZTe=/^0x[a-fA-F0-9]{40}$/;function eAe(e){return ZTe.test(e)}uo.isAddress=eAe;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.concatHex=On.concatBytes=On.concat=void 0;function tAe(e){return typeof e[0]=="string"?UX(e):LX(e)}On.concat=tAe;function LX(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}On.concatBytes=LX;function UX(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}On.concatHex=UX;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.sliceHex=Nr.sliceBytes=Nr.slice=void 0;const $X=pl,nAe=qn,jE=ka;function rAe(e,t,n,{strict:r}={}){return(0,nAe.isHex)(e,{strict:!1})?WX(e,t,n,{strict:r}):qX(e,t,n,{strict:r})}Nr.slice=rAe;function zX(e,t){if(typeof t=="number"&&t>0&&t>(0,jE.size)(e)-1)throw new $X.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:(0,jE.size)(e)})}function HX(e,t,n){if(typeof t=="number"&&typeof n=="number"&&(0,jE.size)(e)!==n-t)throw new $X.SliceOffsetOutOfBoundsError({offset:n,position:"end",size:(0,jE.size)(e)})}function qX(e,t,n,{strict:r}={}){zX(e,t);const o=e.slice(t,n);return r&&HX(o,t,n),o}Nr.sliceBytes=qX;function WX(e,t,n,{strict:r}={}){zX(e,t);const o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&HX(o,t,n),o}Nr.sliceHex=WX;Object.defineProperty(ao,"__esModule",{value:!0});ao.getArrayComponents=ao.encodeAbiParameters=void 0;const wg=Jt(),oAe=Zo,aAe=uo,Ph=On,Du=eo,Eg=ka,iAe=Nr,ed=$e();function sAe(e,t){if(e.length!==t.length)throw new wg.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});const n=cAe({params:e,values:t}),r=Y4(n);return r.length===0?"0x":r}ao.encodeAbiParameters=sAe;function cAe({params:e,values:t}){const n=[];for(let r=0;r0?(0,Ph.concat)([s,i]):s}}if(o)return{dynamic:!0,encoded:i}}return{dynamic:!1,encoded:(0,Ph.concat)(a.map(({encoded:i})=>i))}}function dAe(e,{param:t}){const[,n]=t.type.split("bytes"),r=(0,Eg.size)(e);if(!n){let o=e;return r%32!==0&&(o=(0,Du.padHex)(o,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:(0,Ph.concat)([(0,Du.padHex)((0,ed.numberToHex)(r,{size:32})),o])}}if(r!==parseInt(n))throw new wg.AbiEncodingBytesSizeMismatchError({expectedSize:parseInt(n),value:e});return{dynamic:!1,encoded:(0,Du.padHex)(e,{dir:"right"})}}function fAe(e){return{dynamic:!1,encoded:(0,Du.padHex)((0,ed.boolToHex)(e))}}function hAe(e,{signed:t}){return{dynamic:!1,encoded:(0,ed.numberToHex)(e,{size:32,signed:t})}}function mAe(e){const t=(0,ed.stringToHex)(e),n=Math.ceil((0,Eg.size)(t)/32),r=[];for(let o=0;oo))}}function GX(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}ao.getArrayComponents=GX;var Br={},zi={};Object.defineProperty(zi,"__esModule",{value:!0});zi.getFunctionSelector=void 0;const gAe=Nr,yAe=Gn(),bAe=bm,vAe=lo,wAe=e=>(0,vAe.keccak256)((0,yAe.toBytes)(e)),EAe=e=>(0,gAe.slice)(wAe((0,bAe.getFunctionSignature)(e)),0,4);zi.getFunctionSelector=EAe;Object.defineProperty(Br,"__esModule",{value:!0});Br.getAmbiguousTypes=Br.isArgOfType=Br.getAbiItem=void 0;const _Ae=Jt(),xAe=qn,CAe=Pl,SAe=zi,UD=uo;function TAe({abi:e,args:t=[],name:n}){const r=(0,xAe.isHex)(n,{strict:!1}),o=e.filter(i=>r?i.type==="function"?(0,SAe.getFunctionSelector)(i)===n:i.type==="event"?(0,CAe.getEventSelector)(i)===n:!1:"name"in i&&i.name===n);if(o.length===0)return;if(o.length===1)return o[0];let a;for(const i of o){if(!("inputs"in i))continue;if(!t||t.length===0){if(!i.inputs||i.inputs.length===0)return i;continue}if(!i.inputs||i.inputs.length===0||i.inputs.length!==t.length)continue;if(t.every((c,l)=>{const u="inputs"in i&&i.inputs[l];return u?PE(c,u):!1})){if(a&&"inputs"in a&&a.inputs){const c=Q4(i.inputs,a.inputs,t);if(c)throw new _Ae.AbiItemAmbiguityError({abiItem:i,type:c[0]},{abiItem:a,type:c[1]})}a=i}}return a||o[0]}Br.getAbiItem=TAe;function PE(e,t){const n=typeof e,r=t.type;switch(r){case"address":return(0,UD.isAddress)(e);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,a)=>PE(Object.values(e)[a],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=>PE(o,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}Br.isArgOfType=PE;function Q4(e,t,n){for(const r in e){const o=e[r],a=t[r];if(o.type==="tuple"&&a.type==="tuple"&&"components"in o&&"components"in a)return Q4(o.components,a.components,n[r]);const i=[o.type,a.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")||i.includes("address")&&i.includes("bytes")?(0,UD.isAddress)(n[r]):!1)return i}}Br.getAmbiguousTypes=Q4;Object.defineProperty(Ws,"__esModule",{value:!0});Ws.encodeEventTopics=void 0;const HB=Jt(),AAe=jy,DAe=Gn(),kAe=Pl,jAe=lo,PAe=ao,IAe=Gs(),OAe=Br;function RAe({abi:e,eventName:t,args:n}){var s;let r=e[0];if(t&&(r=(0,OAe.getAbiItem)({abi:e,args:n,name:t}),!r))throw new HB.AbiEventNotFoundError(t,{docsPath:"/docs/contract/encodeEventTopics"});if(r.type!=="event")throw new HB.AbiEventNotFoundError(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const o=(0,IAe.formatAbiItem)(r),a=(0,kAe.getEventSelector)(o);let i=[];if(n&&"inputs"in r){const c=(s=r.inputs)==null?void 0:s.filter(u=>"indexed"in u&&u.indexed),l=Array.isArray(n)?n:Object.values(n).length>0?(c==null?void 0:c.map(u=>n[u.name]))??[]:[];l.length>0&&(i=(c==null?void 0:c.map((u,d)=>Array.isArray(l[d])?l[d].map((f,h)=>qB({param:u,value:l[d][h]})):l[d]?qB({param:u,value:l[d]}):null))??[])}return[a,...i]}Ws.encodeEventTopics=RAe;function qB({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return(0,jAe.keccak256)((0,DAe.toBytes)(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new AAe.FilterTypeNotSupportedError(e.type);return(0,PAe.encodeAbiParameters)([e],[t])}var _d={};Object.defineProperty(_d,"__esModule",{value:!0});_d.createFilterRequestScope=void 0;function NAe(e,{method:t}){var r,o;const n={};return e.transport.type==="fallback"&&((o=(r=e.transport).onResponse)==null||o.call(r,({method:a,response:i,status:s,transport:c})=>{s==="success"&&t===a&&(n[i]=c.request)})),a=>n[a]||e.request}_d.createFilterRequestScope=NAe;Object.defineProperty(ym,"__esModule",{value:!0});ym.createContractEventFilter=void 0;const BAe=Ws,WB=$e(),FAe=_d;async function MAe(e,{address:t,abi:n,args:r,eventName:o,fromBlock:a,strict:i,toBlock:s}){const c=(0,FAe.createFilterRequestScope)(e,{method:"eth_newFilter"}),l=o?(0,BAe.encodeEventTopics)({abi:n,args:r,eventName:o}):void 0,u=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?(0,WB.numberToHex)(a):a,toBlock:typeof s=="bigint"?(0,WB.numberToHex)(s):s,topics:l}]});return{abi:n,args:r,eventName:o,id:u,request:c(u),strict:i,type:"event"}}ym.createContractEventFilter=MAe;var Iy={},Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.parseAccount=void 0;function LAe(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}Lr.parseAccount=LAe;var ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.encodeFunctionData=void 0;const GB=Jt(),UAe=On,$Ae=zi,zAe=ao,HAe=Gs(),qAe=Br;function WAe({abi:e,args:t,functionName:n}){let r=e[0];if(n&&(r=(0,qAe.getAbiItem)({abi:e,args:t,name:n}),!r))throw new GB.AbiFunctionNotFoundError(n,{docsPath:"/docs/contract/encodeFunctionData"});if(r.type!=="function")throw new GB.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const o=(0,HAe.formatAbiItem)(r),a=(0,$Ae.getFunctionSelector)(o),i="inputs"in r&&r.inputs?(0,zAe.encodeAbiParameters)(r.inputs,t??[]):void 0;return(0,UAe.concatHex)([a,i??"0x"])}ea.encodeFunctionData=WAe;var Vs={},Zn={},Ri={};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.solidityPanic=Ri.solidityError=Ri.panicReasons=void 0;Ri.panicReasons={1:"An `assert` condition failed.",17:"Arithmic 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."};Ri.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"};Ri.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};var xd={},Hi={},Co={};Object.defineProperty(Co,"__esModule",{value:!0});Co.getAddress=Co.checksumAddress=void 0;const GAe=Zo,VAe=Gn(),KAe=lo,YAe=uo;function VX(e,t){const n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,KAe.keccak256)((0,VAe.stringToBytes)(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&o[a]&&(o[a]=o[a].toUpperCase()),(r[a>>1]&15)>=8&&o[a+1]&&(o[a+1]=o[a+1].toUpperCase());return`0x${o.join("")}`}Co.checksumAddress=VX;function QAe(e,t){if(!(0,YAe.isAddress)(e))throw new GAe.InvalidAddressError({address:e});return VX(e,t)}Co.getAddress=QAe;Object.defineProperty(Hi,"__esModule",{value:!0});Hi.decodeAbiParameters=void 0;const IE=Jt(),XAe=Co,C0=ka,jr=Nr,JAe=ci,ga=Wn(),X4=ao;function ZAe(e,t){if(t==="0x"&&e.length>0)throw new IE.AbiDecodingZeroDataError;if((0,C0.size)(t)&&(0,C0.size)(t)<32)throw new IE.AbiDecodingDataSizeTooSmallError({data:t,params:e,size:(0,C0.size)(t)});return e5e({data:t,params:e})}Hi.decodeAbiParameters=ZAe;function e5e({data:e,params:t}){const n=[];let r=0;for(let o=0;o=(0,C0.size)(e))throw new IE.AbiDecodingDataSizeTooSmallError({data:e,params:t,size:(0,C0.size)(e)});const a=t[o],{consumed:i,value:s}=oh({data:e,param:a,position:r});n.push(s),r+=i}return n}function oh({data:e,param:t,position:n}){const r=(0,X4.getArrayComponents)(t.type);if(r){const[a,i]=r;return n5e(e,{length:a,param:{...t,type:i},position:n})}if(t.type==="tuple")return s5e(e,{param:t,position:n});if(t.type==="string")return i5e(e,{position:n});if(t.type.startsWith("bytes"))return o5e(e,{param:t,position:n});const o=(0,jr.slice)(e,n,n+32,{strict:!0});if(t.type.startsWith("uint")||t.type.startsWith("int"))return a5e(o,{param:t});if(t.type==="address")return t5e(o);if(t.type==="bool")return r5e(o);throw new IE.InvalidAbiDecodingTypeError(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function t5e(e){return{consumed:32,value:(0,XAe.checksumAddress)((0,jr.slice)(e,-20))}}function n5e(e,{param:t,length:n,position:r}){if(!n){const i=(0,ga.hexToNumber)((0,jr.slice)(e,r,r+32,{strict:!0})),s=(0,ga.hexToNumber)((0,jr.slice)(e,i,i+32,{strict:!0}));let c=0;const l=[];for(let u=0;u48?(0,ga.hexToBigInt)(e,{signed:n}):(0,ga.hexToNumber)(e,{signed:n})}}function i5e(e,{position:t}){const n=(0,ga.hexToNumber)((0,jr.slice)(e,t,t+32,{strict:!0})),r=(0,ga.hexToNumber)((0,jr.slice)(e,n,n+32,{strict:!0}));return r===0?{consumed:32,value:""}:{consumed:32,value:(0,ga.hexToString)((0,JAe.trim)((0,jr.slice)(e,n+32,n+32+r,{strict:!0})))}}function s5e(e,{param:t,position:n}){const r=t.components.length===0||t.components.some(({name:i})=>!i),o=r?[]:{};let a=0;if(OE(t)){const i=(0,ga.hexToNumber)((0,jr.slice)(e,n,n+32,{strict:!0}));for(let s=0;sa.type==="error"&&n===(0,c5e.getFunctionSelector)((0,u5e.formatAbiItem)(a)));if(!o)throw new KB.AbiErrorSignatureNotFoundError(n,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:o,args:"inputs"in o&&o.inputs&&o.inputs.length>0?(0,l5e.decodeAbiParameters)(o.inputs,(0,YB.slice)(t,4)):void 0,errorName:o.name}}xd.decodeErrorResult=d5e;var Oy={},xr={};Object.defineProperty(xr,"__esModule",{value:!0});xr.stringify=void 0;const f5e=(e,t,n)=>JSON.stringify(e,(r,o)=>{const a=typeof o=="bigint"?o.toString():o;return typeof t=="function"?t(r,a):a},n);xr.stringify=f5e;Object.defineProperty(Oy,"__esModule",{value:!0});Oy.formatAbiItemWithArgs=void 0;const h5e=xr;function m5e({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,a)=>`${r&&o.name?`${o.name}: `:""}${typeof t[a]=="object"?(0,h5e.stringify)(t[a]):t[a]}`).join(", ")})`}Oy.formatAbiItemWithArgs=m5e;var Il={},ya={};Object.defineProperty(ya,"__esModule",{value:!0});ya.weiUnits=ya.gweiUnits=ya.etherUnits=void 0;ya.etherUnits={gwei:9,wei:18};ya.gweiUnits={ether:-9,wei:9};ya.weiUnits={ether:-18,gwei:-9};var Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});Cd.formatUnits=void 0;function p5e(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[o,a]=[n.slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),`${r?"-":""}${o||"0"}${a?`.${a}`:""}`}Cd.formatUnits=p5e;Object.defineProperty(Il,"__esModule",{value:!0});Il.formatEther=void 0;const g5e=ya,y5e=Cd;function b5e(e,t="wei"){return(0,y5e.formatUnits)(e,g5e.etherUnits[t])}Il.formatEther=b5e;var qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.formatGwei=void 0;const v5e=ya,w5e=Cd;function E5e(e,t="wei"){return(0,w5e.formatUnits)(e,v5e.gweiUnits[t])}qi.formatGwei=E5e;var pt={};Object.defineProperty(pt,"__esModule",{value:!0});pt.WaitForTransactionReceiptTimeoutError=pt.TransactionReceiptNotFoundError=pt.TransactionNotFoundError=pt.TransactionExecutionError=pt.InvalidStorageKeySizeError=pt.InvalidSerializedTransactionError=pt.InvalidSerializedTransactionTypeError=pt.InvalidSerializableTransactionError=pt.InvalidLegacyVError=pt.FeeConflictError=pt.prettyPrint=void 0;const _5e=Il,P3=qi,Wi=xt;function J4(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(` -`)}pt.prettyPrint=J4;class x5e extends Wi.BaseError{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}pt.FeeConflictError=x5e;class C5e extends Wi.BaseError{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}pt.InvalidLegacyVError=C5e;class S5e extends Wi.BaseError{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",J4(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","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}pt.InvalidSerializableTransactionError=S5e;class T5e extends Wi.BaseError{constructor({serializedType:t}){super(`Serialized transaction type "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=t}}pt.InvalidSerializedTransactionTypeError=T5e;class A5e extends Wi.BaseError{constructor({attributes:t,serializedTransaction:n,type:r}){const o=Object.entries(t).map(([a,i])=>typeof i>"u"?a:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${n}"`,o.length>0?`Missing Attributes: ${o.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=n,this.type=r}}pt.InvalidSerializedTransactionError=A5e;class D5e extends Wi.BaseError{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}pt.InvalidStorageKeySizeError=D5e;class k5e extends Wi.BaseError{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var m;const h=J4({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"&&`${(0,_5e.formatEther)(f)} ${((m=o==null?void 0:o.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${(0,P3.formatGwei)(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${(0,P3.formatGwei)(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${(0,P3.formatGwei)(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",h].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=t}}pt.TransactionExecutionError=k5e;class j5e extends Wi.BaseError{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:o,index:a}){let i="Transaction";r&&a!==void 0&&(i=`Transaction at block time "${r}" at index "${a}"`),t&&a!==void 0&&(i=`Transaction at block hash "${t}" at index "${a}"`),n&&a!==void 0&&(i=`Transaction at block number "${n}" at index "${a}"`),o&&(i=`Transaction with hash "${o}"`),super(`${i} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}pt.TransactionNotFoundError=j5e;class P5e extends Wi.BaseError{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}pt.TransactionReceiptNotFoundError=P5e;class I5e extends Wi.BaseError{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}pt.WaitForTransactionReceiptTimeoutError=I5e;Object.defineProperty(Zn,"__esModule",{value:!0});Zn.RawContractError=Zn.ContractFunctionZeroDataError=Zn.ContractFunctionRevertedError=Zn.ContractFunctionExecutionError=Zn.CallExecutionError=void 0;const O5e=Lr,R5e=Ri,N5e=xd,KX=Gs(),YX=Oy,B5e=Br,F5e=Il,I3=qi,M5e=Jt(),Ry=xt,QX=pt,L5e=ei;class U5e extends Ry.BaseError{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var p;const h=n?(0,O5e.parseAccount)(n):void 0,m=(0,QX.prettyPrint)({from:h==null?void 0:h.address,to:d,value:typeof f<"u"&&`${(0,F5e.formatEther)(f)} ${((p=o==null?void 0:o.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${(0,I3.formatGwei)(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${(0,I3.formatGwei)(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${(0,I3.formatGwei)(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=t}}Zn.CallExecutionError=U5e;class $5e extends Ry.BaseError{constructor(t,{abi:n,args:r,contractAddress:o,docsPath:a,functionName:i,sender:s}){const c=(0,B5e.getAbiItem)({abi:n,args:r,name:i}),l=c?(0,YX.formatAbiItemWithArgs)({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,u=c?(0,KX.formatAbiItem)(c,{includeName:!0}):void 0,d=(0,QX.prettyPrint)({address:o&&(0,L5e.getContractAddress)(o),function:u,args:l&&l!=="()"&&`${[...Array((i==null?void 0:i.length)??0).keys()].map(()=>" ").join("")}${l}`,sender:s});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Contract Call:",d].filter(Boolean)}),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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=o,this.functionName=i,this.sender=s}}Zn.ContractFunctionExecutionError=$5e;class z5e extends Ry.BaseError{constructor({abi:t,data:n,functionName:r,message:o}){let a,i,s,c;if(n&&n!=="0x")try{i=(0,N5e.decodeErrorResult)({abi:t,data:n});const{abiItem:u,errorName:d,args:f}=i;if(d==="Error")c=f[0];else if(d==="Panic"){const[h]=f;c=R5e.panicReasons[h]}else{const h=u?(0,KX.formatAbiItem)(u,{includeName:!0}):void 0,m=u&&f?(0,YX.formatAbiItemWithArgs)({abiItem:u,args:f,includeFunctionName:!1,includeName:!1}):void 0;s=[h?`Error: ${h}`:"",m&&m!=="()"?` ${[...Array((d==null?void 0:d.length)??0).keys()].map(()=>" ").join("")}${m}`:""]}}catch(u){a=u}else o&&(c=o);let l;a instanceof M5e.AbiErrorSignatureNotFoundError&&(l=a.signature,s=[`Unable to decode signature "${l}" 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://openchain.xyz/signatures?query=${l}.`]),super(c&&c!=="execution reverted"||l?[`The contract function "${r}" reverted with the following ${l?"signature":"reason"}:`,c||l].join(` -`):`The contract function "${r}" reverted.`,{cause:a,metaMessages:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{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=i,this.reason=c,this.signature=l}}Zn.ContractFunctionRevertedError=z5e;class H5e extends Ry.BaseError{constructor({functionName:t}){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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}Zn.ContractFunctionZeroDataError=H5e;class q5e extends Ry.BaseError{constructor({data:t,message:n}){super(n||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}Zn.RawContractError=q5e;var qe={},hr={};Object.defineProperty(hr,"__esModule",{value:!0});hr.TimeoutError=hr.RpcRequestError=hr.WebSocketRequestError=hr.HttpRequestError=void 0;const A2=xr,D2=xt,k2=ei;class W5e extends D2.BaseError{constructor({body:t,details:n,headers:r,status:o,url:a}){super("HTTP request failed.",{details:n,metaMessages:[o&&`Status: ${o}`,`URL: ${(0,k2.getUrl)(a)}`,t&&`Request body: ${(0,A2.stringify)(t)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=r,this.status=o,this.url=a}}hr.HttpRequestError=W5e;class G5e extends D2.BaseError{constructor({body:t,details:n,url:r}){super("WebSocket request failed.",{details:n,metaMessages:[`URL: ${(0,k2.getUrl)(r)}`,`Request body: ${(0,A2.stringify)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}hr.WebSocketRequestError=G5e;class V5e extends D2.BaseError{constructor({body:t,error:n,url:r}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${(0,k2.getUrl)(r)}`,`Request body: ${(0,A2.stringify)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code}}hr.RpcRequestError=V5e;class K5e extends D2.BaseError{constructor({body:t,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,k2.getUrl)(n)}`,`Request body: ${(0,A2.stringify)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}hr.TimeoutError=K5e;Object.defineProperty(qe,"__esModule",{value:!0});qe.UnknownRpcError=qe.SwitchChainError=qe.ChainDisconnectedError=qe.ProviderDisconnectedError=qe.UnsupportedProviderMethodError=qe.UnauthorizedProviderError=qe.UserRejectedRequestError=qe.JsonRpcVersionUnsupportedError=qe.LimitExceededRpcError=qe.MethodNotSupportedRpcError=qe.TransactionRejectedRpcError=qe.ResourceUnavailableRpcError=qe.ResourceNotFoundRpcError=qe.InvalidInputRpcError=qe.InternalRpcError=qe.InvalidParamsRpcError=qe.MethodNotFoundRpcError=qe.InvalidRequestRpcError=qe.ParseRpcError=qe.ProviderRpcError=qe.RpcError=void 0;const Y5e=xt,Q5e=hr,X5e=-1;class fo extends Y5e.BaseError{constructor(t,{code:n,docsPath:r,metaMessages:o,shortMessage:a}){super(a,{cause:t,docsPath:r,metaMessages:o||(t==null?void 0:t.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=t.name,this.code=t instanceof Q5e.RpcRequestError?t.code:n??X5e}}qe.RpcError=fo;class Sd extends fo{constructor(t,n){super(t,n),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}}qe.ProviderRpcError=Sd;class j2 extends fo{constructor(t){super(t,{code:j2.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(j2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});qe.ParseRpcError=j2;class P2 extends fo{constructor(t){super(t,{code:P2.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(P2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});qe.InvalidRequestRpcError=P2;class I2 extends fo{constructor(t){super(t,{code:I2.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(I2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});qe.MethodNotFoundRpcError=I2;class O2 extends fo{constructor(t){super(t,{code:O2.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(O2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});qe.InvalidParamsRpcError=O2;class R2 extends fo{constructor(t){super(t,{code:R2.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(R2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});qe.InternalRpcError=R2;class N2 extends fo{constructor(t){super(t,{code:N2.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(N2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});qe.InvalidInputRpcError=N2;class B2 extends fo{constructor(t){super(t,{code:B2.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(B2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});qe.ResourceNotFoundRpcError=B2;class F2 extends fo{constructor(t){super(t,{code:F2.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(F2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});qe.ResourceUnavailableRpcError=F2;class M2 extends fo{constructor(t){super(t,{code:M2.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(M2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});qe.TransactionRejectedRpcError=M2;class L2 extends fo{constructor(t){super(t,{code:L2.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(L2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});qe.MethodNotSupportedRpcError=L2;class U2 extends fo{constructor(t){super(t,{code:U2.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(U2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});qe.LimitExceededRpcError=U2;class $2 extends fo{constructor(t){super(t,{code:$2.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty($2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});qe.JsonRpcVersionUnsupportedError=$2;class z2 extends Sd{constructor(t){super(t,{code:z2.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(z2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});qe.UserRejectedRequestError=z2;class H2 extends Sd{constructor(t){super(t,{code:H2.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(H2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});qe.UnauthorizedProviderError=H2;class q2 extends Sd{constructor(t){super(t,{code:q2.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(q2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});qe.UnsupportedProviderMethodError=q2;class W2 extends Sd{constructor(t){super(t,{code:W2.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(W2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});qe.ProviderDisconnectedError=W2;class G2 extends Sd{constructor(t){super(t,{code:G2.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(G2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});qe.ChainDisconnectedError=G2;class V2 extends Sd{constructor(t){super(t,{code:V2.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(V2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});qe.SwitchChainError=V2;class J5e extends fo{constructor(t){super(t,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}qe.UnknownRpcError=J5e;Object.defineProperty(Vs,"__esModule",{value:!0});Vs.getContractError=void 0;const Z5e=Jt(),eDe=xt,bv=Zn,tDe=qe,nDe=3;function rDe(e,{abi:t,address:n,args:r,docsPath:o,functionName:a,sender:i}){const{code:s,data:c,message:l,shortMessage:u}=e instanceof bv.RawContractError?e:e instanceof eDe.BaseError?e.walk(f=>"data"in f)||e.walk():{},d=e instanceof Z5e.AbiDecodingZeroDataError?new bv.ContractFunctionZeroDataError({functionName:a}):[nDe,tDe.InternalRpcError.code].includes(s)&&(c||l||u)?new bv.ContractFunctionRevertedError({abi:t,data:typeof c=="object"?c.data:c,functionName:a,message:u??l}):e;return new bv.ContractFunctionExecutionError(d,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:a,sender:i})}Vs.getContractError=rDe;var Sp={},Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});Ks.AccountNotFoundError=void 0;const oDe=xt;class aDe extends oDe.BaseError{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 WalletClient."].join(` -`),{docsPath:t,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}Ks.AccountNotFoundError=aDe;var Ny={},By={};Object.defineProperty(By,"__esModule",{value:!0});By.EstimateGasExecutionError=void 0;const iDe=Il,O3=qi,sDe=xt,cDe=pt;class lDe extends sDe.BaseError{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var m;const h=(0,cDe.prettyPrint)({from:n==null?void 0:n.address,to:d,value:typeof f<"u"&&`${(0,iDe.formatEther)(f)} ${((m=o==null?void 0:o.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${(0,O3.formatGwei)(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${(0,O3.formatGwei)(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${(0,O3.formatGwei)(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",h].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=t}}By.EstimateGasExecutionError=lDe;var St={};Object.defineProperty(St,"__esModule",{value:!0});St.UnknownNodeError=St.TipAboveFeeCapError=St.TransactionTypeNotSupportedError=St.IntrinsicGasTooLowError=St.IntrinsicGasTooHighError=St.InsufficientFundsError=St.NonceMaxValueError=St.NonceTooLowError=St.NonceTooHighError=St.FeeCapTooLowError=St.FeeCapTooHighError=St.ExecutionRevertedError=void 0;const RE=qi,ja=xt;class Z4 extends ja.BaseError{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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(Z4,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Z4,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});St.ExecutionRevertedError=Z4;class XX extends ja.BaseError{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${(0,RE.formatGwei)(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(XX,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});St.FeeCapTooHighError=XX;class JX extends ja.BaseError{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${(0,RE.formatGwei)(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(JX,"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/});St.FeeCapTooLowError=JX;class ZX extends ja.BaseError{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(ZX,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});St.NonceTooHighError=ZX;class eJ extends ja.BaseError{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(` -`),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(eJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});St.NonceTooLowError=eJ;class tJ extends ja.BaseError{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(tJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});St.NonceMaxValueError=tJ;class nJ extends ja.BaseError{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` -`),{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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(nJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});St.InsufficientFundsError=nJ;class rJ extends ja.BaseError{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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(rJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});St.IntrinsicGasTooHighError=rJ;class oJ extends ja.BaseError{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(oJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});St.IntrinsicGasTooLowError=oJ;class aJ extends ja.BaseError{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(aJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});St.TransactionTypeNotSupportedError=aJ;class iJ extends ja.BaseError{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${(0,RE.formatGwei)(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,RE.formatGwei)(r)} gwei`:""}).`].join(` -`),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(iJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});St.TipAboveFeeCapError=iJ;class uDe extends ja.BaseError{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}St.UnknownNodeError=uDe;var ks={};Object.defineProperty(ks,"__esModule",{value:!0});ks.getNodeError=ks.containsNodeError=void 0;const dDe=xt,Ht=St,fDe=hr,QB=qe;function hDe(e){return e instanceof QB.TransactionRejectedRpcError||e instanceof QB.InvalidInputRpcError||e instanceof fDe.RpcRequestError&&e.code===Ht.ExecutionRevertedError.code}ks.containsNodeError=hDe;function mDe(e,t){const n=(e.details||"").toLowerCase(),r=e.walk(o=>o.code===Ht.ExecutionRevertedError.code);return r instanceof dDe.BaseError?new Ht.ExecutionRevertedError({cause:e,message:r.details}):Ht.ExecutionRevertedError.nodeMessage.test(n)?new Ht.ExecutionRevertedError({cause:e,message:e.details}):Ht.FeeCapTooHighError.nodeMessage.test(n)?new Ht.FeeCapTooHighError({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Ht.FeeCapTooLowError.nodeMessage.test(n)?new Ht.FeeCapTooLowError({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Ht.NonceTooHighError.nodeMessage.test(n)?new Ht.NonceTooHighError({cause:e,nonce:t==null?void 0:t.nonce}):Ht.NonceTooLowError.nodeMessage.test(n)?new Ht.NonceTooLowError({cause:e,nonce:t==null?void 0:t.nonce}):Ht.NonceMaxValueError.nodeMessage.test(n)?new Ht.NonceMaxValueError({cause:e,nonce:t==null?void 0:t.nonce}):Ht.InsufficientFundsError.nodeMessage.test(n)?new Ht.InsufficientFundsError({cause:e}):Ht.IntrinsicGasTooHighError.nodeMessage.test(n)?new Ht.IntrinsicGasTooHighError({cause:e,gas:t==null?void 0:t.gas}):Ht.IntrinsicGasTooLowError.nodeMessage.test(n)?new Ht.IntrinsicGasTooLowError({cause:e,gas:t==null?void 0:t.gas}):Ht.TransactionTypeNotSupportedError.nodeMessage.test(n)?new Ht.TransactionTypeNotSupportedError({cause:e}):Ht.TipAboveFeeCapError.nodeMessage.test(n)?new Ht.TipAboveFeeCapError({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new Ht.UnknownNodeError({cause:e})}ks.getNodeError=mDe;Object.defineProperty(Ny,"__esModule",{value:!0});Ny.getEstimateGasError=void 0;const pDe=By,gDe=St,yDe=ks;function bDe(e,{docsPath:t,...n}){const r=(()=>{const o=(0,yDe.getNodeError)(e,n);return o instanceof gDe.UnknownNodeError?e:o})();return new pDe.EstimateGasExecutionError(r,{docsPath:t,...n})}Ny.getEstimateGasError=bDe;var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});Ol.extract=void 0;function vDe(e,{format:t}){if(!t)return{};const n={};function r(a){const i=Object.keys(a);for(const s of i)s in e&&(n[s]=e[s]),a[s]&&typeof a[s]=="object"&&!Array.isArray(a[s])&&r(a[s])}const o=t(e||{});return r(o),n}Ol.extract=vDe;var Rl={},Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});Nl.defineFormatter=void 0;function wDe(e,t){return({exclude:n,format:r})=>({exclude:n,format:o=>{const a=t(o);if(n)for(const i of n)delete a[i];return{...a,...r(o)}},type:e})}Nl.defineFormatter=wDe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defineTransactionRequest=e.formatTransactionRequest=e.rpcTransactionType=void 0;const t=$e(),n=Nl;e.rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function r(o){return{...o,gas:typeof o.gas<"u"?(0,t.numberToHex)(o.gas):void 0,gasPrice:typeof o.gasPrice<"u"?(0,t.numberToHex)(o.gasPrice):void 0,maxFeePerGas:typeof o.maxFeePerGas<"u"?(0,t.numberToHex)(o.maxFeePerGas):void 0,maxPriorityFeePerGas:typeof o.maxPriorityFeePerGas<"u"?(0,t.numberToHex)(o.maxPriorityFeePerGas):void 0,nonce:typeof o.nonce<"u"?(0,t.numberToHex)(o.nonce):void 0,type:typeof o.type<"u"?e.rpcTransactionType[o.type]:void 0,value:typeof o.value<"u"?(0,t.numberToHex)(o.value):void 0}}e.formatTransactionRequest=r,e.defineTransactionRequest=(0,n.defineFormatter)("transactionRequest",r)})(Rl);var Gi={};Object.defineProperty(Gi,"__esModule",{value:!0});Gi.assertRequest=void 0;const EDe=Lr,XB=Zo,JB=St,_De=pt,ZB=uo;function xDe(e){const{account:t,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:o,to:a}=e,i=t?(0,EDe.parseAccount)(t):void 0;if(i&&!(0,ZB.isAddress)(i.address))throw new XB.InvalidAddressError({address:i.address});if(a&&!(0,ZB.isAddress)(a))throw new XB.InvalidAddressError({address:a});if(typeof n<"u"&&(typeof r<"u"||typeof o<"u"))throw new _De.FeeConflictError;if(r&&r>2n**256n-1n)throw new JB.FeeCapTooHighError({maxFeePerGas:r});if(o&&r&&o>r)throw new JB.TipAboveFeeCapError({maxFeePerGas:r,maxPriorityFeePerGas:o})}Gi.assertRequest=xDe;var Tp={},td={},ti={};Object.defineProperty(ti,"__esModule",{value:!0});ti.MaxFeePerGasTooLowError=ti.Eip1559FeesNotSupportedError=ti.BaseFeeScalarError=void 0;const CDe=qi,eP=xt;class SDe extends eP.BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}ti.BaseFeeScalarError=SDe;class TDe extends eP.BaseError{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}ti.Eip1559FeesNotSupportedError=TDe;class ADe extends eP.BaseError{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,CDe.formatGwei)(t)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}ti.MaxFeePerGasTooLowError=ADe;var nd={},Ys={},vm={};Object.defineProperty(vm,"__esModule",{value:!0});vm.BlockNotFoundError=void 0;const DDe=xt;class kDe extends DDe.BaseError{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.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}vm.BlockNotFoundError=kDe;var js={},wm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defineTransaction=e.formatTransaction=e.transactionType=void 0;const t=Wn(),n=Nl;e.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function r(o){const a={...o,blockHash:o.blockHash?o.blockHash:null,blockNumber:o.blockNumber?BigInt(o.blockNumber):null,chainId:o.chainId?(0,t.hexToNumber)(o.chainId):void 0,gas:o.gas?BigInt(o.gas):void 0,gasPrice:o.gasPrice?BigInt(o.gasPrice):void 0,maxFeePerGas:o.maxFeePerGas?BigInt(o.maxFeePerGas):void 0,maxPriorityFeePerGas:o.maxPriorityFeePerGas?BigInt(o.maxPriorityFeePerGas):void 0,nonce:o.nonce?(0,t.hexToNumber)(o.nonce):void 0,to:o.to?o.to:null,transactionIndex:o.transactionIndex?Number(o.transactionIndex):null,type:o.type?e.transactionType[o.type]:void 0,typeHex:o.type?o.type:void 0,value:o.value?BigInt(o.value):void 0,v:o.v?BigInt(o.v):void 0};return a.yParity=(()=>{if(o.yParity)return Number(o.yParity);if(typeof a.v=="bigint"){if(a.v===0n||a.v===27n)return 0;if(a.v===1n||a.v===28n)return 1;if(a.v>=35n)return a.v%2n===0n?1:0}})(),a.type==="legacy"&&(delete a.accessList,delete a.maxFeePerGas,delete a.maxPriorityFeePerGas,delete a.yParity),a.type==="eip2930"&&(delete a.maxFeePerGas,delete a.maxPriorityFeePerGas),a}e.formatTransaction=r,e.defineTransaction=(0,n.defineFormatter)("transaction",r)})(wm);Object.defineProperty(js,"__esModule",{value:!0});js.defineBlock=js.formatBlock=void 0;const jDe=Nl,PDe=wm;function sJ(e){var n;const t=(n=e.transactions)==null?void 0:n.map(r=>typeof r=="string"?r:(0,PDe.formatTransaction)(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):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:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}js.formatBlock=sJ;js.defineBlock=(0,jDe.defineFormatter)("block",sJ);Object.defineProperty(Ys,"__esModule",{value:!0});Ys.getBlock=void 0;const IDe=vm,ODe=$e(),RDe=js;async function NDe(e,{blockHash:t,blockNumber:n,blockTag:r,includeTransactions:o}={}){var u,d,f;const a=r??"latest",i=o??!1,s=n!==void 0?(0,ODe.numberToHex)(n):void 0;let c=null;if(t?c=await e.request({method:"eth_getBlockByHash",params:[t,i]}):c=await e.request({method:"eth_getBlockByNumber",params:[s||a,i]}),!c)throw new IDe.BlockNotFoundError({blockHash:t,blockNumber:n});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.block)==null?void 0:f.format)||RDe.formatBlock)(c)}Ys.getBlock=NDe;var Em={};Object.defineProperty(Em,"__esModule",{value:!0});Em.getGasPrice=void 0;async function BDe(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}Em.getGasPrice=BDe;Object.defineProperty(nd,"__esModule",{value:!0});nd.internal_estimateMaxPriorityFeePerGas=nd.estimateMaxPriorityFeePerGas=void 0;const FDe=ti,MDe=Wn(),R3=Bt,e9=Ys,LDe=Em;async function UDe(e,t){return cJ(e,t)}nd.estimateMaxPriorityFeePerGas=UDe;async function cJ(e,t){var a,i,s;const{block:n,chain:r=e.chain,request:o}=t||{};if(typeof((a=r==null?void 0:r.fees)==null?void 0:a.defaultPriorityFee)=="function"){const c=n||await(0,R3.getAction)(e,e9.getBlock,"getBlock")({});return r.fees.defaultPriorityFee({block:c,client:e,request:o})}if(typeof((i=r==null?void 0:r.fees)==null?void 0:i.defaultPriorityFee)<"u")return(s=r==null?void 0:r.fees)==null?void 0:s.defaultPriorityFee;try{const c=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,MDe.hexToBigInt)(c)}catch{const[c,l]=await Promise.all([n?Promise.resolve(n):(0,R3.getAction)(e,e9.getBlock,"getBlock")({}),(0,R3.getAction)(e,LDe.getGasPrice,"getGasPrice")({})]);if(typeof c.baseFeePerGas!="bigint")throw new FDe.Eip1559FeesNotSupportedError;const u=l-c.baseFeePerGas;return u<0n?0n:u}}nd.internal_estimateMaxPriorityFeePerGas=cJ;Object.defineProperty(td,"__esModule",{value:!0});td.internal_estimateFeesPerGas=td.estimateFeesPerGas=void 0;const t9=ti,n9=Bt,$De=nd,zDe=Ys,HDe=Em;async function qDe(e,t){return lJ(e,t)}td.estimateFeesPerGas=qDe;async function lJ(e,t){var f,h;const{block:n,chain:r=e.chain,request:o,type:a="eip1559"}=t||{},i=await(async()=>{var m,p;return typeof((m=r==null?void 0:r.fees)==null?void 0:m.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:e,request:o}):((p=r==null?void 0:r.fees)==null?void 0:p.baseFeeMultiplier)??1.2})();if(i<1)throw new t9.BaseFeeScalarError;const c=10**(((f=i.toString().split(".")[1])==null?void 0:f.length)??0),l=m=>m*BigInt(Math.ceil(i*c))/BigInt(c),u=n||await(0,n9.getAction)(e,zDe.getBlock,"getBlock")({});if(typeof((h=r==null?void 0:r.fees)==null?void 0:h.estimateFeesPerGas)=="function")return r.fees.estimateFeesPerGas({block:n,client:e,multiply:l,request:o,type:a});if(a==="eip1559"){if(typeof u.baseFeePerGas!="bigint")throw new t9.Eip1559FeesNotSupportedError;const m=o!=null&&o.maxPriorityFeePerGas?o.maxPriorityFeePerGas:await(0,$De.internal_estimateMaxPriorityFeePerGas)(e,{block:u,chain:r,request:o}),p=l(u.baseFeePerGas);return{maxFeePerGas:(o==null?void 0:o.maxFeePerGas)??p+m,maxPriorityFeePerGas:m}}return{gasPrice:(o==null?void 0:o.gasPrice)??l(await(0,n9.getAction)(e,HDe.getGasPrice,"getGasPrice")({}))}}td.internal_estimateFeesPerGas=lJ;var Fy={};Object.defineProperty(Fy,"__esModule",{value:!0});Fy.getTransactionCount=void 0;const WDe=Wn(),GDe=$e();async function VDe(e,{address:t,blockTag:n="latest",blockNumber:r}){const o=await e.request({method:"eth_getTransactionCount",params:[t,r?(0,GDe.numberToHex)(r):n]});return(0,WDe.hexToNumber)(o)}Fy.getTransactionCount=VDe;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});Td.getTransactionType=void 0;const KDe=pt;function YDe(e){if(e.type)return e.type;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 KDe.InvalidSerializableTransactionError({transaction:e})}Td.getTransactionType=YDe;var r9;function My(){if(r9)return Tp;r9=1,Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.prepareTransactionRequest=void 0;const e=Lr,t=td,n=tP(),r=Ys,o=Fy,a=Ks,i=ti,s=Bt,c=Gi,l=Td;async function u(d,f){const{account:h=d.account,chain:m,gas:p,nonce:b,type:v}=f;if(!h)throw new a.AccountNotFoundError;const g=(0,e.parseAccount)(h),w=await(0,s.getAction)(d,r.getBlock,"getBlock")({blockTag:"latest"}),_={...f,from:g.address};if(typeof b>"u"&&(_.nonce=await(0,s.getAction)(d,o.getTransactionCount,"getTransactionCount")({address:g.address,blockTag:"pending"})),typeof v>"u")try{_.type=(0,l.getTransactionType)(_)}catch{_.type=typeof w.baseFeePerGas=="bigint"?"eip1559":"legacy"}if(_.type==="eip1559"){const{maxFeePerGas:C,maxPriorityFeePerGas:x}=await(0,t.internal_estimateFeesPerGas)(d,{block:w,chain:m,request:_});if(typeof f.maxPriorityFeePerGas>"u"&&f.maxFeePerGas&&f.maxFeePerGas"u"&&(_.gas=await(0,s.getAction)(d,n.estimateGas,"estimateGas")({..._,account:{address:g.address,type:"json-rpc"}})),(0,c.assertRequest)(_),_}return Tp.prepareTransactionRequest=u,Tp}var o9;function tP(){if(o9)return Sp;o9=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.estimateGas=void 0;const e=Lr,t=Ks,n=$e(),r=Ny,o=Ol,a=Rl,i=Gi,s=My();async function c(l,u){var h,m,p;const d=u.account??l.account;if(!d)throw new t.AccountNotFoundError({docsPath:"/docs/actions/public/estimateGas"});const f=(0,e.parseAccount)(d);try{const{accessList:b,blockNumber:v,blockTag:g,data:w,gas:_,gasPrice:C,maxFeePerGas:x,maxPriorityFeePerGas:E,nonce:T,to:k,value:D,...R}=f.type==="local"?await(0,s.prepareTransactionRequest)(l,u):u,B=(v?(0,n.numberToHex)(v):void 0)||g;(0,i.assertRequest)(u);const j=(p=(m=(h=l.chain)==null?void 0:h.formatters)==null?void 0:m.transactionRequest)==null?void 0:p.format,O=(j||a.formatTransactionRequest)({...(0,o.extract)(R,{format:j}),from:f.address,accessList:b,data:w,gas:_,gasPrice:C,maxFeePerGas:x,maxPriorityFeePerGas:E,nonce:T,to:k,value:D}),I=await l.request({method:"eth_estimateGas",params:B?[O,B]:[O]});return BigInt(I)}catch(b){throw(0,r.getEstimateGasError)(b,{...u,account:f,chain:l.chain})}}return Sp.estimateGas=c,Sp}Object.defineProperty(Iy,"__esModule",{value:!0});Iy.estimateContractGas=void 0;const QDe=Lr,XDe=ea,JDe=Vs,ZDe=Bt,eke=tP();async function tke(e,{abi:t,address:n,args:r,functionName:o,...a}){const i=(0,XDe.encodeFunctionData)({abi:t,args:r,functionName:o});try{return await(0,ZDe.getAction)(e,eke.estimateGas,"estimateGas")({data:i,to:n,...a})}catch(s){const c=a.account?(0,QDe.parseAccount)(a.account):void 0;throw(0,JDe.getContractError)(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:c==null?void 0:c.address})}}Iy.estimateContractGas=tke;var _m={},xm={},Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.decodeEventLog=void 0;const ef=Jt(),nke=Pl,uJ=Hi,rke=Gs(),a9="/docs/contract/decodeEventLog";function oke({abi:e,data:t,strict:n,topics:r}){const o=n??!0,[a,...i]=r;if(!a)throw new ef.AbiEventSignatureEmptyTopicsError({docsPath:a9});const s=e.find(m=>m.type==="event"&&a===(0,nke.getEventSelector)((0,rke.formatAbiItem)(m)));if(!(s&&"name"in s)||s.type!=="event")throw new ef.AbiEventSignatureNotFoundError(a,{docsPath:a9});const{name:c,inputs:l}=s,u=l==null?void 0:l.some(m=>!("name"in m&&m.name));let d=u?[]:{};const f=l.filter(m=>"indexed"in m&&m.indexed);for(let m=0;m!("indexed"in m&&m.indexed));if(h.length>0){if(t&&t!=="0x")try{const m=(0,uJ.decodeAbiParameters)(h,t);if(m)if(u)d=[...d,...m];else for(let p=0;p0?d:void 0}}Qs.decodeEventLog=oke;function ake({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,uJ.decodeAbiParameters)([e],t)||[])[0]}var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.formatLog=void 0;function ike(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,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}:{}}}Vi.formatLog=ike;Object.defineProperty(xm,"__esModule",{value:!0});xm.getLogs=void 0;const i9=Jt(),ske=Qs,cke=Ws,s9=$e(),c9=Vi;async function lke(e,{address:t,blockHash:n,fromBlock:r,toBlock:o,event:a,events:i,args:s,strict:c}={}){const l=c??!1,u=i??(a?[a]:void 0);let d=[];u&&(d=[u.flatMap(h=>(0,cke.encodeEventTopics)({abi:[h],eventName:h.name,args:s}))],a&&(d=d[0]));let f;return 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"?(0,s9.numberToHex)(r):r,toBlock:typeof o=="bigint"?(0,s9.numberToHex)(o):o}]}),f.map(h=>{var m;try{const{eventName:p,args:b}=u?(0,ske.decodeEventLog)({abi:u,data:h.data,topics:h.topics,strict:l}):{eventName:void 0,args:void 0};return(0,c9.formatLog)(h,{args:b,eventName:p})}catch(p){let b,v;if(p instanceof i9.DecodeLogDataMismatch||p instanceof i9.DecodeLogTopicsMismatch){if(l)return;b=p.abiItem.name,v=(m=p.abiItem.inputs)==null?void 0:m.some(g=>!("name"in g&&g.name))}return(0,c9.formatLog)(h,{args:v?[]:{},eventName:b})}}).filter(Boolean)}xm.getLogs=lke;Object.defineProperty(_m,"__esModule",{value:!0});_m.getContractEvents=void 0;const uke=Br,dke=Bt,fke=xm;async function hke(e,{abi:t,address:n,args:r,blockHash:o,eventName:a,fromBlock:i,toBlock:s,strict:c}){const l=a?(0,uke.getAbiItem)({abi:t,name:a}):void 0,u=l?void 0:t.filter(d=>d.type==="event");return(0,dke.getAction)(e,fke.getLogs,"getLogs")({address:n,args:r,blockHash:o,event:l,events:u,fromBlock:i,toBlock:s,strict:c})}_m.getContractEvents=hke;var li={},ui={};Object.defineProperty(ui,"__esModule",{value:!0});ui.decodeFunctionResult=void 0;const N3=Jt(),mke=Hi,pke=Br,B3="/docs/contract/decodeFunctionResult";function gke({abi:e,args:t,functionName:n,data:r}){let o=e[0];if(n&&(o=(0,pke.getAbiItem)({abi:e,args:t,name:n}),!o))throw new N3.AbiFunctionNotFoundError(n,{docsPath:B3});if(o.type!=="function")throw new N3.AbiFunctionNotFoundError(void 0,{docsPath:B3});if(!o.outputs)throw new N3.AbiFunctionOutputsNotFoundError(o.name,{docsPath:B3});const a=(0,mke.decodeAbiParameters)(o.outputs,r);if(a&&a.length>1)return a;if(a&&a.length===1)return a[0]}ui.decodeFunctionResult=gke;var Yl={},mn={};Object.defineProperty(mn,"__esModule",{value:!0});mn.universalSignatureValidatorAbi=mn.smartAccountAbi=mn.addressResolverAbi=mn.textResolverAbi=mn.universalResolverReverseAbi=mn.universalResolverResolveAbi=mn.multicall3Abi=void 0;mn.multicall3Abi=[{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"}];const dJ=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}];mn.universalResolverResolveAbi=[...dJ,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}];mn.universalResolverReverseAbi=[...dJ,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}];mn.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}];mn.addressResolverAbi=[{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"}]}];mn.smartAccountAbi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}];mn.universalSignatureValidatorAbi=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}];var K2={};Object.defineProperty(K2,"__esModule",{value:!0});K2.aggregate3Signature=void 0;K2.aggregate3Signature="0x82ad56cb";var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.InvalidChainIdError=Pr.ClientChainNotConfiguredError=Pr.ChainNotFoundError=Pr.ChainMismatchError=Pr.ChainDoesNotSupportContract=void 0;const Ly=xt;class yke extends Ly.BaseError{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.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}Pr.ChainDoesNotSupportContract=yke;class bke extends Ly.BaseError{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}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}Pr.ChainMismatchError=bke;class vke extends Ly.BaseError{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(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}Pr.ChainNotFoundError=vke;class wke extends Ly.BaseError{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}Pr.ClientChainNotConfiguredError=wke;class Eke extends Ly.BaseError{constructor({chainId:t}){super(`Chain ID "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}Pr.InvalidChainIdError=Eke;var di={};Object.defineProperty(di,"__esModule",{value:!0});di.getChainContractAddress=void 0;const l9=Pr;function _ke({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 l9.ChainDoesNotSupportContract({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new l9.ChainDoesNotSupportContract({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}di.getChainContractAddress=_ke;var Uy={};Object.defineProperty(Uy,"__esModule",{value:!0});Uy.getCallError=void 0;const xke=Zn,Cke=St,Ske=ks;function Tke(e,{docsPath:t,...n}){const r=(()=>{const o=(0,Ske.getNodeError)(e,n);return o instanceof Cke.UnknownNodeError?e:o})();return new xke.CallExecutionError(r,{docsPath:t,...n})}Uy.getCallError=Tke;var Cm={};Object.defineProperty(Cm,"__esModule",{value:!0});Cm.createBatchScheduler=void 0;const F3=new Map;function Ake({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){const a=async()=>{const u=c();i();const d=u.map(({args:f})=>f);d.length!==0&&e(d).then(f=>{var h;o&&Array.isArray(f)&&f.sort(o);for(let m=0;m{var h;for(let m=0;mF3.delete(t),s=()=>c().map(({args:u})=>u),c=()=>F3.get(t)||[],l=u=>F3.set(t,[...c(),u]);return{flush:i,async schedule(u){const d={},f=new Promise((p,b)=>{d.resolve=p,d.reject=b});return(n==null?void 0:n([...s(),u]))&&a(),c().length>0?(l({args:u,pendingPromise:d}),f):(l({args:u,pendingPromise:d}),setTimeout(a,r),f)}}}Cm.createBatchScheduler=Ake;var M3={},Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});Yc.OffchainLookupSenderMismatchError=Yc.OffchainLookupResponseMalformedError=Yc.OffchainLookupError=void 0;const Dke=xr,nP=xt,fJ=ei;class kke extends nP.BaseError{constructor({callbackSelector:t,cause:n,data:r,extraData:o,sender:a,urls:i}){var s;super(n.shortMessage||"An error occurred while fetching for an offchain result.",{cause:n,metaMessages:[...n.metaMessages||[],(s=n.metaMessages)!=null&&s.length?"":[],"Offchain Gateway Call:",i&&[" Gateway URL(s):",...i.map(c=>` ${(0,fJ.getUrl)(c)}`)],` Sender: ${a}`,` Data: ${r}`,` Callback selector: ${t}`,` Extra data: ${o}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}Yc.OffchainLookupError=kke;class jke extends nP.BaseError{constructor({result:t,url:n}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,fJ.getUrl)(n)}`,`Response: ${(0,Dke.stringify)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}Yc.OffchainLookupResponseMalformedError=jke;class Pke extends nP.BaseError{constructor({sender:t,to:n}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${n}`,`OffchainLookup sender address: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}Yc.OffchainLookupSenderMismatchError=Pke;var Bl={};Object.defineProperty(Bl,"__esModule",{value:!0});Bl.isAddressEqual=void 0;const u9=Zo,d9=uo;function Ike(e,t){if(!(0,d9.isAddress)(e))throw new u9.InvalidAddressError({address:e});if(!(0,d9.isAddress)(t))throw new u9.InvalidAddressError({address:t});return e.toLowerCase()===t.toLowerCase()}Bl.isAddressEqual=Ike;var f9;function rP(){return f9||(f9=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ccipFetch=e.offchainLookup=e.offchainLookupAbiItem=e.offchainLookupSignature=void 0;const t=$y(),n=Yc,r=hr,o=xd,a=ao,i=Bl,s=On,c=qn,l=xr;e.offchainLookupSignature="0x556f1830",e.offchainLookupAbiItem={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function u(f,{blockNumber:h,blockTag:m,data:p,to:b}){const{args:v}=(0,o.decodeErrorResult)({data:p,abi:[e.offchainLookupAbiItem]}),[g,w,_,C,x]=v;try{if(!(0,i.isAddressEqual)(b,g))throw new n.OffchainLookupSenderMismatchError({sender:g,to:b});const E=await d({data:_,sender:g,urls:w}),{data:T}=await(0,t.call)(f,{blockNumber:h,blockTag:m,data:(0,s.concat)([C,(0,a.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[E,x])]),to:b});return T}catch(E){throw new n.OffchainLookupError({callbackSelector:C,cause:E,data:p,extraData:x,sender:g,urls:w})}}e.offchainLookup=u;async function d({data:f,sender:h,urls:m}){var b;let p=new Error("An unknown error occurred.");for(let v=0;vrP());if((Z==null?void 0:Z.slice(0,10))===ne&&O)return{data:await ae(w,{data:Z,to:O})};throw(0,u.getCallError)(G,{..._,account:M,chain:w.chain})}}Yl.call=p;function b({request:w}){const{data:_,to:C,...x}=w;return!(!_||_.startsWith(n.aggregate3Signature)||!C||Object.values(x).filter(E=>typeof E<"u").length>0)}async function v(w,_){var N;const{batchSize:C=1024,wait:x=0}=typeof((N=w.batch)==null?void 0:N.multicall)=="object"?w.batch.multicall:{},{blockNumber:E,blockTag:T="latest",data:k,multicallAddress:D,to:R}=_;let F=D;if(!F){if(!w.chain)throw new o.ClientChainNotConfiguredError;F=(0,c.getChainContractAddress)({blockNumber:E,chain:w.chain,contract:"multicall3"})}const j=(E?(0,l.numberToHex)(E):void 0)||T,{schedule:P}=(0,h.createBatchScheduler)({id:`${w.uid}.${j}`,wait:x,shouldSplitBatch(M){return M.reduce((X,{data:J})=>X+(J.length-2),0)>C*2},fn:async M=>{const L=M.map(U=>({allowFailure:!0,callData:U.data,target:U.to})),X=(0,s.encodeFunctionData)({abi:t.multicall3Abi,args:[L],functionName:"aggregate3"}),J=await w.request({method:"eth_call",params:[{data:X,to:F},j]});return(0,i.decodeFunctionResult)({abi:t.multicall3Abi,args:[L],functionName:"aggregate3",data:J||"0x"})}}),[{returnData:O,success:I}]=await P({data:k,to:R});if(!I)throw new a.RawContractError({data:O});return O==="0x"?{data:void 0}:{data:O}}function g(w){if(!(w instanceof r.BaseError))return;const _=w.walk();return typeof _.data=="object"?_.data.data:_.data}return Yl.getRevertErrorData=g,Yl}Object.defineProperty(li,"__esModule",{value:!0});li.readContract=void 0;const Oke=ui,Rke=ea,Nke=Vs,Bke=Bt,Fke=$y();async function Mke(e,{abi:t,address:n,args:r,functionName:o,...a}){const i=(0,Rke.encodeFunctionData)({abi:t,args:r,functionName:o});try{const{data:s}=await(0,Bke.getAction)(e,Fke.call,"call")({data:i,to:n,...a});return(0,Oke.decodeFunctionResult)({abi:t,args:r,functionName:o,data:s||"0x"})}catch(s){throw(0,Nke.getContractError)(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/readContract",functionName:o})}}li.readContract=Mke;var zy={};Object.defineProperty(zy,"__esModule",{value:!0});zy.simulateContract=void 0;const Lke=Lr,Uke=ui,$ke=ea,zke=Vs,Hke=Bt,qke=$y();async function Wke(e,{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}){const s=i.account?(0,Lke.parseAccount)(i.account):void 0,c=(0,$ke.encodeFunctionData)({abi:t,args:r,functionName:a});try{const{data:l}=await(0,Hke.getAction)(e,qke.call,"call")({batch:!1,data:`${c}${o?o.replace("0x",""):""}`,to:n,...i});return{result:(0,Uke.decodeFunctionResult)({abi:t,args:r,functionName:a,data:l||"0x"}),request:{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}}}catch(l){throw(0,zke.getContractError)(l,{abi:t,address:n,args:r,docsPath:"/docs/contract/simulateContract",functionName:a,sender:s==null?void 0:s.address})}}zy.simulateContract=Wke;var Hy={},Ad={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.observe=e.cleanupCache=e.listenersCache=void 0,e.listenersCache=new Map,e.cleanupCache=new Map;let t=0;function n(r,o,a){const i=++t,s=()=>e.listenersCache.get(r)||[],c=()=>{const h=s();e.listenersCache.set(r,h.filter(m=>m.id!==i))},l=()=>{const h=e.cleanupCache.get(r);s().length===1&&h&&h(),c()},u=s();if(e.listenersCache.set(r,[...u,{id:i,fns:o}]),u&&u.length>0)return l;const d={};for(const h in o)d[h]=(...m)=>{var b,v;const p=s();if(p.length!==0)for(const g of p)(v=(b=g.fns)[h])==null||v.call(b,...m)};const f=a(d);return typeof f=="function"&&e.cleanupCache.set(r,f),l}e.observe=n})(Ad);var Fl={},Sm={};Object.defineProperty(Sm,"__esModule",{value:!0});Sm.wait=void 0;async function Gke(e){return new Promise(t=>setTimeout(t,e))}Sm.wait=Gke;Object.defineProperty(Fl,"__esModule",{value:!0});Fl.poll=void 0;const m9=Sm;function Vke(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let o=!0;const a=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:a}));const c=await(n==null?void 0:n(s))??r;await(0,m9.wait)(c);const l=async()=>{o&&(await e({unpoll:a}),await(0,m9.wait)(r),l())};l()})(),a}Fl.poll=Vke;var Li={},hJ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.withCache=e.getCache=e.responseCache=e.promiseCache=void 0,e.promiseCache=new Map,e.responseCache=new Map;function t(r){const o=(s,c)=>({clear:()=>c.delete(s),get:()=>c.get(s),set:l=>c.set(s,l)}),a=o(r,e.promiseCache),i=o(r,e.responseCache);return{clear:()=>{a.clear(),i.clear()},promise:a,response:i}}e.getCache=t;async function n(r,{cacheKey:o,cacheTime:a=1/0}){const i=t(o),s=i.response.get();if(s&&a>0&&new Date().getTime()-s.created.getTime()`blockNumber.${e}`;function Kke(e){return(0,mJ.getCache)(pJ(e))}Li.getBlockNumberCache=Kke;async function Yke(e,{cacheTime:t=e.cacheTime,maxAge:n}={}){const r=await(0,mJ.withCache)(()=>e.request({method:"eth_blockNumber"}),{cacheKey:pJ(e.uid),cacheTime:n??t});return BigInt(r)}Li.getBlockNumber=Yke;var Dd={};Object.defineProperty(Dd,"__esModule",{value:!0});Dd.getFilterChanges=void 0;const p9=Jt(),Qke=Qs,g9=Vi;async function Xke(e,{filter:t}){const n="strict"in t&&t.strict;return(await t.request({method:"eth_getFilterChanges",params:[t.id]})).map(o=>{var a;if(typeof o=="string")return o;try{const{eventName:i,args:s}="abi"in t&&t.abi?(0,Qke.decodeEventLog)({abi:t.abi,data:o.data,topics:o.topics,strict:n}):{eventName:void 0,args:void 0};return(0,g9.formatLog)(o,{args:s,eventName:i})}catch(i){let s,c;if(i instanceof p9.DecodeLogDataMismatch||i instanceof p9.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;s=i.abiItem.name,c=(a=i.abiItem.inputs)==null?void 0:a.some(l=>!("name"in l&&l.name))}return(0,g9.formatLog)(o,{args:c?[]:{},eventName:s})}}).filter(Boolean)}Dd.getFilterChanges=Xke;var kd={};Object.defineProperty(kd,"__esModule",{value:!0});kd.uninstallFilter=void 0;async function Jke(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}kd.uninstallFilter=Jke;Object.defineProperty(Hy,"__esModule",{value:!0});Hy.watchContractEvent=void 0;const Zke=Ad,e8e=Fl,t8e=xr,y9=Jt(),n8e=qe,r8e=Qs,o8e=Ws,b9=Vi,Ap=Bt,a8e=ym,i8e=Li,s8e=_m,c8e=Dd,l8e=kd;function u8e(e,{abi:t,address:n,args:r,batch:o=!0,eventName:a,onError:i,onLogs:s,poll:c,pollingInterval:l=e.pollingInterval,strict:u}){return(typeof c<"u"?c:e.transport.type!=="webSocket")?(()=>{const m=(0,t8e.stringify)(["watchContractEvent",n,r,o,e.uid,a,l]),p=u??!1;return(0,Zke.observe)(m,{onLogs:s,onError:i},b=>{let v,g,w=!1;const _=(0,e8e.poll)(async()=>{var C;if(!w){try{g=await(0,Ap.getAction)(e,a8e.createContractEventFilter,"createContractEventFilter")({abi:t,address:n,args:r,eventName:a,strict:p})}catch{}w=!0;return}try{let x;if(g)x=await(0,Ap.getAction)(e,c8e.getFilterChanges,"getFilterChanges")({filter:g});else{const E=await(0,Ap.getAction)(e,i8e.getBlockNumber,"getBlockNumber")({});v&&v!==E?x=await(0,Ap.getAction)(e,s8e.getContractEvents,"getContractEvents")({abi:t,address:n,args:r,eventName:a,fromBlock:v+1n,toBlock:E,strict:p}):x=[],v=E}if(x.length===0)return;if(o)b.onLogs(x);else for(const E of x)b.onLogs([E])}catch(x){g&&x instanceof n8e.InvalidInputRpcError&&(w=!1),(C=b.onError)==null||C.call(b,x)}},{emitOnBegin:!0,interval:l});return async()=>{g&&await(0,Ap.getAction)(e,l8e.uninstallFilter,"uninstallFilter")({filter:g}),_()}})})():(()=>{let m=!0,p=()=>m=!1;return(async()=>{try{const b=a?(0,o8e.encodeEventTopics)({abi:t,eventName:a,args:r}):[],{unsubscribe:v}=await e.transport.subscribe({params:["logs",{address:n,topics:b}],onData(g){var _;if(!m)return;const w=g.result;try{const{eventName:C,args:x}=(0,r8e.decodeEventLog)({abi:t,data:w.data,topics:w.topics,strict:u}),E=(0,b9.formatLog)(w,{args:x,eventName:C});s([E])}catch(C){let x,E;if(C instanceof y9.DecodeLogDataMismatch||C instanceof y9.DecodeLogTopicsMismatch){if(u)return;x=C.abiItem.name,E=(_=C.abiItem.inputs)==null?void 0:_.some(k=>!("name"in k&&k.name))}const T=(0,b9.formatLog)(w,{args:E?[]:{},eventName:x});s([T])}},onError(g){i==null||i(g)}});p=v,m||p()}catch(b){i==null||i(b)}})(),p})()}Hy.watchContractEvent=u8e;var qy={},Tm={},jd={};Object.defineProperty(jd,"__esModule",{value:!0});jd.assertCurrentChain=void 0;const v9=Pr;function d8e({chain:e,currentChainId:t}){if(!e)throw new v9.ChainNotFoundError;if(t!==e.id)throw new v9.ChainMismatchError({chain:e,currentChainId:t})}jd.assertCurrentChain=d8e;var Wy={};Object.defineProperty(Wy,"__esModule",{value:!0});Wy.getTransactionError=void 0;const f8e=St,h8e=pt,m8e=ks;function p8e(e,{docsPath:t,...n}){const r=(()=>{const o=(0,m8e.getNodeError)(e,n);return o instanceof f8e.UnknownNodeError?e:o})();return new h8e.TransactionExecutionError(r,{docsPath:t,...n})}Wy.getTransactionError=p8e;var Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});Pd.getChainId=void 0;const g8e=Wn();async function y8e(e){const t=await e.request({method:"eth_chainId"});return(0,g8e.hexToNumber)(t)}Pd.getChainId=y8e;var Am={};Object.defineProperty(Am,"__esModule",{value:!0});Am.sendRawTransaction=void 0;async function b8e(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]})}Am.sendRawTransaction=b8e;Object.defineProperty(Tm,"__esModule",{value:!0});Tm.sendTransaction=void 0;const v8e=Lr,w8e=Ks,E8e=jd,_8e=Wy,x8e=Ol,C8e=Rl,vv=Bt,S8e=Gi,w9=Pd,T8e=My(),A8e=Am;async function D8e(e,t){var p,b,v,g;const{account:n=e.account,chain:r=e.chain,accessList:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,...h}=t;if(!n)throw new w8e.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});const m=(0,v8e.parseAccount)(n);try{(0,S8e.assertRequest)(t);let w;if(r!==null&&(w=await(0,vv.getAction)(e,w9.getChainId,"getChainId")({}),(0,E8e.assertCurrentChain)({currentChainId:w,chain:r})),m.type==="local"){const E=await(0,vv.getAction)(e,T8e.prepareTransactionRequest,"prepareTransactionRequest")({account:m,accessList:o,chain:r,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,...h});w||(w=await(0,vv.getAction)(e,w9.getChainId,"getChainId")({}));const T=(p=r==null?void 0:r.serializers)==null?void 0:p.transaction,k=await m.signTransaction({...E,chainId:w},{serializer:T});return await(0,vv.getAction)(e,A8e.sendRawTransaction,"sendRawTransaction")({serializedTransaction:k})}const _=(g=(v=(b=e.chain)==null?void 0:b.formatters)==null?void 0:v.transactionRequest)==null?void 0:g.format,x=(_||C8e.formatTransactionRequest)({...(0,x8e.extract)(h,{format:_}),accessList:o,data:a,from:m.address,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f});return await e.request({method:"eth_sendTransaction",params:[x]})}catch(w){throw(0,_8e.getTransactionError)(w,{...t,account:m,chain:t.chain||void 0})}}Tm.sendTransaction=D8e;Object.defineProperty(qy,"__esModule",{value:!0});qy.writeContract=void 0;const k8e=ea,j8e=Bt,P8e=Tm;async function I8e(e,{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}){const s=(0,k8e.encodeFunctionData)({abi:t,args:r,functionName:a});return await(0,j8e.getAction)(e,P8e.sendTransaction,"sendTransaction")({data:`${s}${o?o.replace("0x",""):""}`,to:n,...i})}qy.writeContract=I8e;Object.defineProperty(Kc,"__esModule",{value:!0});Kc.getEventParameters=Kc.getFunctionParameters=Kc.getContract=void 0;const Ql=Bt,O8e=ym,R8e=Iy,N8e=_m,B8e=li,F8e=zy,M8e=Hy,L8e=qy;function U8e({abi:e,address:t,publicClient:n,walletClient:r}){const o=n!=null,a=r!=null,i={};let s=!1,c=!1,l=!1;for(const u of e)if(u.type==="function"?u.stateMutability==="view"||u.stateMutability==="pure"?s=!0:c=!0:u.type==="event"&&(l=!0),s&&c&&l)break;return o&&(s&&(i.read=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=o0(f);return(0,Ql.getAction)(n,B8e.readContract,"readContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),c&&(i.simulate=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=o0(f);return(0,Ql.getAction)(n,F8e.simulateContract,"simulateContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),l&&(i.createEventFilter=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=I1(f,h);return(0,Ql.getAction)(n,O8e.createContractEventFilter,"createContractEventFilter")({abi:e,address:t,eventName:d,args:m,...p})}}}),i.getEvents=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=I1(f,h);return(0,Ql.getAction)(n,N8e.getContractEvents,"getContractEvents")({abi:e,address:t,eventName:d,args:m,...p})}}}),i.watchEvent=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=I1(f,h);return(0,Ql.getAction)(n,M8e.watchContractEvent,"watchContractEvent")({abi:e,address:t,eventName:d,args:m,...p})}}}))),a&&c&&(i.write=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=o0(f);return(0,Ql.getAction)(r,L8e.writeContract,"writeContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),(o||a)&&c&&(i.estimateGas=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=o0(f),p=n??r;return(0,Ql.getAction)(p,R8e.estimateContractGas,"estimateContractGas")({abi:e,address:t,functionName:d,args:h,...m,account:m.account??r.account})}}})),i.address=t,i.abi=e,i}Kc.getContract=U8e;function o0(e){const t=e.length&&Array.isArray(e[0]),n=t?e[0]:[],r=(t?e[1]:e[0])??{};return{args:n,options:r}}Kc.getFunctionParameters=o0;function I1(e,t){let n=!1;Array.isArray(e[0])?n=!0:e.length===1?n=t.inputs.some(a=>a.indexed):e.length===2&&(n=!0);const r=n?e[0]:void 0,o=(n?e[1]:e[0])??{};return{args:r,options:o}}Kc.getEventParameters=I1;var Id={},gJ={},Dm={};Object.defineProperty(Dm,"__esModule",{value:!0});Dm.publicKeyToAddress=void 0;const $8e=Co,z8e=lo;function H8e(e){const t=(0,z8e.keccak256)(`0x${e.substring(4)}`).substring(26);return(0,$8e.checksumAddress)(`0x${t}`)}Dm.publicKeyToAddress=H8e;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.publicKeyToAddress=e.parseAccount=void 0;var t=Lr;Object.defineProperty(e,"parseAccount",{enumerable:!0,get:function(){return t.parseAccount}});var n=Dm;Object.defineProperty(e,"publicKeyToAddress",{enumerable:!0,get:function(){return n.publicKeyToAddress}})})(gJ);var Y2={};Object.defineProperty(Y2,"__esModule",{value:!0});Y2.uid=void 0;const $D=256;let wv=$D,Ev;function q8e(e=11){if(!Ev||wv+e>$D*2){Ev="",wv=0;for(let t=0;t<$D;t++)Ev+=(256+Math.random()*256|0).toString(16).substring(1)}return Ev.substring(wv,wv+++e)}Y2.uid=q8e;Object.defineProperty(Id,"__esModule",{value:!0});Id.createClient=void 0;const W8e=gJ,G8e=Y2;function V8e(e){const{batch:t,cacheTime:n=e.pollingInterval??4e3,key:r="base",name:o="Base Client",pollingInterval:a=4e3,type:i="base"}=e,s=e.chain,c=e.account?(0,W8e.parseAccount)(e.account):void 0,{config:l,request:u,value:d}=e.transport({chain:s,pollingInterval:a}),f={...l,...d},h={account:c,batch:t,cacheTime:n,chain:s,key:r,name:o,pollingInterval:a,request:u,transport:f,type:i,uid:(0,G8e.uid)()};function m(p){return b=>{const v=b(p);for(const w in h)delete v[w];const g={...p,...v};return Object.assign(g,{extend:m(g)})}}return Object.assign(h,{extend:m(h)})}Id.createClient=V8e;var Q2={},Ml={},X2={},Gy={};Object.defineProperty(Gy,"__esModule",{value:!0});Gy.withRetry=void 0;const K8e=Sm;function Y8e(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((o,a)=>{const i=async({count:s=0}={})=>{const c=async({error:l})=>{const u=typeof t=="function"?t({count:s,error:l}):t;u&&await(0,K8e.wait)(u),i({count:s+1})};try{const l=await e();o(l)}catch(l){if(s"code"in s?s.code!==-1&&s.code!==-32004&&s.code!==-32005&&s.code!==-32042&&s.code!==-32603:s instanceof n.HttpRequestError&&s.status?s.status!==403&&s.status!==408&&s.status!==413&&s.status!==429&&s.status!==500&&s.status!==502&&s.status!==503&&s.status!==504:!1;e.isDeterministicError=a;function i(s,{retryDelay:c=150,retryCount:l=3}={}){return async u=>(0,o.withRetry)(async()=>{try{return await s(u)}catch(d){const f=d;switch(f.code){case r.ParseRpcError.code:throw new r.ParseRpcError(f);case r.InvalidRequestRpcError.code:throw new r.InvalidRequestRpcError(f);case r.MethodNotFoundRpcError.code:throw new r.MethodNotFoundRpcError(f);case r.InvalidParamsRpcError.code:throw new r.InvalidParamsRpcError(f);case r.InternalRpcError.code:throw new r.InternalRpcError(f);case r.InvalidInputRpcError.code:throw new r.InvalidInputRpcError(f);case r.ResourceNotFoundRpcError.code:throw new r.ResourceNotFoundRpcError(f);case r.ResourceUnavailableRpcError.code:throw new r.ResourceUnavailableRpcError(f);case r.TransactionRejectedRpcError.code:throw new r.TransactionRejectedRpcError(f);case r.MethodNotSupportedRpcError.code:throw new r.MethodNotSupportedRpcError(f);case r.LimitExceededRpcError.code:throw new r.LimitExceededRpcError(f);case r.JsonRpcVersionUnsupportedError.code:throw new r.JsonRpcVersionUnsupportedError(f);case r.UserRejectedRequestError.code:throw new r.UserRejectedRequestError(f);case r.UnauthorizedProviderError.code:throw new r.UnauthorizedProviderError(f);case r.UnsupportedProviderMethodError.code:throw new r.UnsupportedProviderMethodError(f);case r.ProviderDisconnectedError.code:throw new r.ProviderDisconnectedError(f);case r.ChainDisconnectedError.code:throw new r.ChainDisconnectedError(f);case r.SwitchChainError.code:throw new r.SwitchChainError(f);case 5e3:throw new r.UserRejectedRequestError(f);default:throw d instanceof t.BaseError?d:new r.UnknownRpcError(f)}}},{delay:({count:d,error:f})=>{var h;if(f&&f instanceof n.HttpRequestError){const m=(h=f==null?void 0:f.headers)==null?void 0:h.get("Retry-After");if(m!=null&&m.match(/\d/))return parseInt(m)*1e3}return~~(1<!(0,e.isDeterministicError)(d)})}e.buildRequest=i})(X2);Object.defineProperty(Ml,"__esModule",{value:!0});Ml.createTransport=void 0;const Q8e=X2;function X8e({key:e,name:t,request:n,retryCount:r=3,retryDelay:o=150,timeout:a,type:i},s){return{config:{key:e,name:t,request:n,retryCount:r,retryDelay:o,timeout:a,type:i},request:(0,Q8e.buildRequest)(n,{retryCount:r,retryDelay:o}),value:s}}Ml.createTransport=X8e;Object.defineProperty(Q2,"__esModule",{value:!0});Q2.custom=void 0;const J8e=Ml;function Z8e(e,t={}){const{key:n="custom",name:r="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>(0,J8e.createTransport)({key:n,name:r,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})}Q2.custom=Z8e;var Ih={};Object.defineProperty(Ih,"__esModule",{value:!0});Ih.rankTransports=Ih.fallback=void 0;const eje=X2,tje=Sm,nje=Ml;function rje(e,t={}){const{key:n="fallback",name:r="Fallback",rank:o=!1,retryCount:a,retryDelay:i}=t;return({chain:s,pollingInterval:c=4e3,timeout:l})=>{let u=e,d=()=>{};const f=(0,nje.createTransport)({key:n,name:r,async request({method:h,params:m}){const p=async(b=0)=>{const v=u[b]({chain:s,retryCount:0,timeout:l});try{const g=await v.request({method:h,params:m});return d({method:h,params:m,response:g,transport:v,status:"success"}),g}catch(g){if(d({error:g,method:h,params:m,transport:v,status:"error"}),(0,eje.isDeterministicError)(g)||b===u.length-1)throw g;return p(b+1)}};return p()},retryCount:a,retryDelay:i,type:"fallback"},{onResponse:h=>d=h,transports:u.map(h=>h({chain:s,retryCount:0}))});if(o){const h=typeof o=="object"?o:{};yJ({chain:s,interval:h.interval??c,onTransports:m=>u=m,sampleCount:h.sampleCount,timeout:h.timeout,transports:u,weights:h.weights})}return f}}Ih.fallback=rje;function yJ({chain:e,interval:t=4e3,onTransports:n,sampleCount:r=10,timeout:o=1e3,transports:a,weights:i={}}){const{stability:s=.7,latency:c=.3}=i,l=[],u=async()=>{const d=await Promise.all(a.map(async m=>{const p=m({chain:e,retryCount:0,timeout:o}),b=Date.now();let v,g;try{await p.request({method:"net_listening"}),g=1}catch{g=0}finally{v=Date.now()}return{latency:v-b,success:g}}));l.push(d),l.length>r&&l.shift();const f=Math.max(...l.map(m=>Math.max(...m.map(({latency:p})=>p)))),h=a.map((m,p)=>{const b=l.map(C=>C[p].latency),g=1-b.reduce((C,x)=>C+x,0)/b.length/f,w=l.map(C=>C[p].success),_=w.reduce((C,x)=>C+x,0)/w.length;return _===0?[0,p]:[c*g+s*_,p]}).sort((m,p)=>p[0]-m[0]);n(h.map(([,m])=>a[m])),await(0,tje.wait)(t),u()};u()}Ih.rankTransports=yJ;var J2={},km={};Object.defineProperty(km,"__esModule",{value:!0});km.UrlRequiredError=void 0;const oje=xt;class aje extends oje.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}km.UrlRequiredError=aje;var Z2={};const ije=Ns(Que);var eC={};Object.defineProperty(eC,"__esModule",{value:!0});eC.withTimeout=void 0;function sje(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:r}){return new Promise((o,a)=>{(async()=>{let i;try{const s=new AbortController;n>0&&(i=setTimeout(()=>{r?s.abort():a(t)},n)),o(await e({signal:s==null?void 0:s.signal}))}catch(s){s.name==="AbortError"&&a(t),a(s)}finally{clearTimeout(i)}})()})}eC.withTimeout=sje;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.rpc=e.getSocket=e.socketsCache=void 0;const t=ije,n=hr,r=Cm,o=eC,a=xr;let i=0;async function s(d,{body:f,fetchOptions:h={},timeout:m=1e4}){var g;const{headers:p,method:b,signal:v}=h;try{const w=await(0,o.withTimeout)(async({signal:C})=>await fetch(d,{...h,body:Array.isArray(f)?(0,a.stringify)(f.map(E=>({jsonrpc:"2.0",id:E.id??i++,...E}))):(0,a.stringify)({jsonrpc:"2.0",id:f.id??i++,...f}),headers:{...p,"Content-Type":"application/json"},method:b||"POST",signal:v||(m>0?C:void 0)}),{errorInstance:new n.TimeoutError({body:f,url:d}),timeout:m,signal:!0});let _;if((g=w.headers.get("Content-Type"))!=null&&g.startsWith("application/json")?_=await w.json():_=await w.text(),!w.ok)throw new n.HttpRequestError({body:f,details:(0,a.stringify)(_.error)||w.statusText,headers:w.headers,status:w.status,url:d});return _}catch(w){throw w instanceof n.HttpRequestError||w instanceof n.TimeoutError?w:new n.HttpRequestError({body:f,details:w.message,url:d})}}e.socketsCache=new Map;async function c(d){let f=e.socketsCache.get(d);if(f)return f;const{schedule:h}=(0,r.createBatchScheduler)({id:d,fn:async()=>{const b=new t.WebSocket(d),v=new Map,g=new Map,w=({data:C})=>{const x=JSON.parse(C),E=x.method==="eth_subscription",T=E?x.params.subscription:x.id,k=E?g:v,D=k.get(T);D&&D({data:C}),E||k.delete(T)},_=()=>{e.socketsCache.delete(d),b.removeEventListener("close",_),b.removeEventListener("message",w)};return b.addEventListener("close",_),b.addEventListener("message",w),b.readyState===t.WebSocket.CONNECTING&&await new Promise((C,x)=>{b&&(b.onopen=C,b.onerror=x)}),f=Object.assign(b,{requests:v,subscriptions:g}),e.socketsCache.set(d,f),[f]}}),[m,[p]]=await h();return p}e.getSocket=c;function l(d,{body:f,onResponse:h}){if(d.readyState===d.CLOSED||d.readyState===d.CLOSING)throw new n.WebSocketRequestError({body:f,url:d.url,details:"Socket is closed."});const m=i++,p=({data:b})=>{var g;const v=JSON.parse(b);typeof v.id=="number"&&m!==v.id||(h==null||h(v),f.method==="eth_subscribe"&&typeof v.result=="string"&&d.subscriptions.set(v.result,p),f.method==="eth_unsubscribe"&&d.subscriptions.delete((g=f.params)==null?void 0:g[0]))};return d.requests.set(m,p),d.send(JSON.stringify({jsonrpc:"2.0",...f,id:m})),d}async function u(d,{body:f,timeout:h=1e4}){return(0,o.withTimeout)(()=>new Promise(m=>e.rpc.webSocket(d,{body:f,onResponse:m})),{errorInstance:new n.TimeoutError({body:f,url:d.url}),timeout:h})}e.rpc={http:s,webSocket:l,webSocketAsync:u}})(Z2);Object.defineProperty(J2,"__esModule",{value:!0});J2.http=void 0;const cje=hr,lje=km,uje=Cm,E9=Z2,dje=Ml;function fje(e,t={}){const{batch:n,fetchOptions:r,key:o="http",name:a="HTTP JSON-RPC",retryDelay:i}=t;return({chain:s,retryCount:c,timeout:l})=>{const{batchSize:u=1e3,wait:d=0}=typeof n=="object"?n:{},f=t.retryCount??c,h=l??t.timeout??1e4,m=e||(s==null?void 0:s.rpcUrls.default.http[0]);if(!m)throw new lje.UrlRequiredError;return(0,dje.createTransport)({key:o,name:a,async request({method:p,params:b}){const v={method:p,params:b},{schedule:g}=(0,uje.createBatchScheduler)({id:`${e}`,wait:d,shouldSplitBatch(x){return x.length>u},fn:x=>E9.rpc.http(m,{body:x,fetchOptions:r,timeout:h}),sort:(x,E)=>x.id-E.id}),w=async x=>n?g(x):[await E9.rpc.http(m,{body:x,fetchOptions:r,timeout:h})],[{error:_,result:C}]=await w(v);if(_)throw new cje.RpcRequestError({body:v,error:_,url:m});return C},retryCount:f,retryDelay:i,timeout:h,type:"http"},{fetchOptions:r,url:e})}}J2.http=fje;var Dp={},kp={},tC={},jm={};Object.defineProperty(jm,"__esModule",{value:!0});jm.isNullUniversalResolverError=void 0;const hje=Ri,mje=xt,_9=Zn;function pje(e,t){var r,o,a;if(!(e instanceof mje.BaseError))return!1;const n=e.walk(i=>i instanceof _9.ContractFunctionRevertedError);return n instanceof _9.ContractFunctionRevertedError?!!(((r=n.data)==null?void 0:r.errorName)==="ResolverNotFound"||((o=n.data)==null?void 0:o.errorName)==="ResolverWildcardNotSupported"||(a=n.reason)!=null&&a.includes("Wildcard on non-extended resolvers is not supported")||t==="reverse"&&n.reason===hje.panicReasons[50]):!1}jm.isNullUniversalResolverError=pje;var Pm={},Vy={};Object.defineProperty(Vy,"__esModule",{value:!0});Vy.encodedLabelToLabelhash=void 0;const gje=qn;function yje(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return(0,gje.isHex)(t)?t:null}Vy.encodedLabelToLabelhash=yje;Object.defineProperty(Pm,"__esModule",{value:!0});Pm.namehash=void 0;const bje=On,x9=Gn(),C9=$e(),S9=lo,vje=Vy;function wje(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,C9.bytesToHex)(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const o=(0,vje.encodedLabelToLabelhash)(n[r]),a=o?(0,x9.toBytes)(o):(0,S9.keccak256)((0,x9.stringToBytes)(n[r]),"bytes");t=(0,S9.keccak256)((0,bje.concat)([t,a]),"bytes")}return(0,C9.bytesToHex)(t)}Pm.namehash=wje;var Od={},nC={};Object.defineProperty(nC,"__esModule",{value:!0});nC.encodeLabelhash=void 0;function Eje(e){return`[${e.slice(2)}]`}nC.encodeLabelhash=Eje;var Ky={};Object.defineProperty(Ky,"__esModule",{value:!0});Ky.labelhash=void 0;const _je=Gn(),xje=$e(),Cje=lo,Sje=Vy;function Tje(e){const t=new Uint8Array(32).fill(0);return e?(0,Sje.encodedLabelToLabelhash)(e)||(0,Cje.keccak256)((0,_je.stringToBytes)(e)):(0,xje.bytesToHex)(t)}Ky.labelhash=Tje;Object.defineProperty(Od,"__esModule",{value:!0});Od.packetToBytes=void 0;const L3=Gn(),Aje=nC,Dje=Ky;function kje(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const n=new Uint8Array((0,L3.stringToBytes)(t).byteLength+2);let r=0;const o=t.split(".");for(let a=0;a255&&(i=(0,L3.stringToBytes)((0,Aje.encodeLabelhash)((0,Dje.labelhash)(o[a])))),n[r]=i.length,n.set(i,r+1),r+=i.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}Od.packetToBytes=kje;Object.defineProperty(tC,"__esModule",{value:!0});tC.getEnsAddress=void 0;const U3=mn,jje=ui,Pje=ea,Ije=di,Oje=ci,Rje=$e(),Nje=jm,$3=Pm,Bje=Od,Fje=Bt,Mje=li;async function Lje(e,{blockNumber:t,blockTag:n,coinType:r,name:o,universalResolverAddress:a}){let i=a;if(!i){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=(0,Ije.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s=(0,Pje.encodeFunctionData)({abi:U3.addressResolverAbi,functionName:"addr",...r!=null?{args:[(0,$3.namehash)(o),BigInt(r)]}:{args:[(0,$3.namehash)(o)]}}),c=await(0,Fje.getAction)(e,Mje.readContract,"readContract")({address:i,abi:U3.universalResolverResolveAbi,functionName:"resolve",args:[(0,Rje.toHex)((0,Bje.packetToBytes)(o)),s],blockNumber:t,blockTag:n});if(c[0]==="0x")return null;const l=(0,jje.decodeFunctionResult)({abi:U3.addressResolverAbi,args:r!=null?[(0,$3.namehash)(o),BigInt(r)]:void 0,functionName:"addr",data:c[0]});return l==="0x"||(0,Oje.trim)(l)==="0x00"?null:l}catch(s){if((0,Nje.isNullUniversalResolverError)(s,"resolve"))return null;throw s}}tC.getEnsAddress=Lje;var rC={},oC={},Qn={},Qa={};Object.defineProperty(Qa,"__esModule",{value:!0});Qa.EnsAvatarUnsupportedNamespaceError=Qa.EnsAvatarUriResolutionError=Qa.EnsAvatarInvalidNftUriError=Qa.EnsAvatarInvalidMetadataError=void 0;const aC=xt;class Uje extends aC.BaseError{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)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}Qa.EnsAvatarInvalidMetadataError=Uje;class $je extends aC.BaseError{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}Qa.EnsAvatarInvalidNftUriError=$je;class zje extends aC.BaseError{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.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}Qa.EnsAvatarUriResolutionError=zje;class Hje extends aC.BaseError{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}Qa.EnsAvatarUnsupportedNamespaceError=Hje;Object.defineProperty(Qn,"__esModule",{value:!0});Qn.getNftTokenUri=Qn.parseNftUri=Qn.parseAvatarUri=Qn.getMetadataAvatarUri=Qn.getJsonImage=Qn.resolveAvatarUri=Qn.getGateway=Qn.isImageUri=void 0;const T9=li,Si=Qa,qje=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,Wje=/^(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,})(\/(?[\w\-.]+))?(?\/.*)?$/,Gje=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,Vje=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function bJ(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"||!globalThis.hasOwnProperty("Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}Qn.isImageUri=bJ;function zD(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}Qn.getGateway=zD;function vJ({uri:e,gatewayUrls:t}){const n=Gje.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=zD(t==null?void 0:t.ipfs,"https://ipfs.io"),o=zD(t==null?void 0:t.arweave,"https://arweave.net"),a=e.match(qje),{protocol:i,subpath:s,target:c,subtarget:l=""}=(a==null?void 0:a.groups)||{},u=i==="ipns:/"||s==="ipns/",d=i==="ipfs:/"||s==="ipfs/"||Wje.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(Vje,"");if(f.startsWith("o.json());return await EJ({gatewayUrls:e,uri:wJ(n)})}catch{throw new Si.EnsAvatarUriResolutionError({uri:t})}}Qn.getMetadataAvatarUri=Kje;async function EJ({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=vJ({uri:t,gatewayUrls:e});if(r||await bJ(n))return n;throw new Si.EnsAvatarUriResolutionError({uri:t})}Qn.parseAvatarUri=EJ;function Yje(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,o]=t.split("/"),[a,i]=n.split(":"),[s,c]=r.split(":");if(!a||a.toLowerCase()!=="eip155")throw new Si.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!i)throw new Si.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!c)throw new Si.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!o)throw new Si.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!s)throw new Si.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:parseInt(i),namespace:s.toLowerCase(),contractAddress:c,tokenID:o}}Qn.parseNftUri=Yje;async function Qje(e,{nft:t}){if(t.namespace==="erc721")return(0,T9.readContract)(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(0,T9.readContract)(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 Si.EnsAvatarUnsupportedNamespaceError({namespace:t.namespace})}Qn.getNftTokenUri=Qje;Object.defineProperty(oC,"__esModule",{value:!0});oC.parseAvatarRecord=void 0;const au=Qn;async function Xje(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?Jje(e,{gatewayUrls:t,record:n}):(0,au.parseAvatarUri)({uri:n,gatewayUrls:t})}oC.parseAvatarRecord=Xje;async function Jje(e,{gatewayUrls:t,record:n}){const r=(0,au.parseNftUri)(n),o=await(0,au.getNftTokenUri)(e,{nft:r}),{uri:a,isOnChain:i,isEncoded:s}=(0,au.resolveAvatarUri)({uri:o,gatewayUrls:t});if(i&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const l=s?atob(a.replace("data:application/json;base64,","")):a,u=JSON.parse(l);return(0,au.parseAvatarUri)({uri:(0,au.getJsonImage)(u),gatewayUrls:t})}let c=r.tokenID;return r.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),(0,au.getMetadataAvatarUri)({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,c)})}var Yy={};Object.defineProperty(Yy,"__esModule",{value:!0});Yy.getEnsText=void 0;const z3=mn,Zje=ui,e4e=ea,t4e=di,n4e=$e(),r4e=jm,o4e=Pm,a4e=Od,i4e=Bt,s4e=li;async function c4e(e,{blockNumber:t,blockTag:n,name:r,key:o,universalResolverAddress:a}){let i=a;if(!i){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=(0,t4e.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s=await(0,i4e.getAction)(e,s4e.readContract,"readContract")({address:i,abi:z3.universalResolverResolveAbi,functionName:"resolve",args:[(0,n4e.toHex)((0,a4e.packetToBytes)(r)),(0,e4e.encodeFunctionData)({abi:z3.textResolverAbi,functionName:"text",args:[(0,o4e.namehash)(r),o]})],blockNumber:t,blockTag:n});if(s[0]==="0x")return null;const c=(0,Zje.decodeFunctionResult)({abi:z3.textResolverAbi,functionName:"text",data:s[0]});return c===""?null:c}catch(s){if((0,r4e.isNullUniversalResolverError)(s,"resolve"))return null;throw s}}Yy.getEnsText=c4e;Object.defineProperty(rC,"__esModule",{value:!0});rC.getEnsAvatar=void 0;const l4e=oC,u4e=Bt,d4e=Yy;async function f4e(e,{blockNumber:t,blockTag:n,gatewayUrls:r,name:o,universalResolverAddress:a}){const i=await(0,u4e.getAction)(e,d4e.getEnsText,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:o,universalResolverAddress:a});if(!i)return null;try{return await(0,l4e.parseAvatarRecord)(e,{record:i,gatewayUrls:r})}catch{return null}}rC.getEnsAvatar=f4e;var iC={};Object.defineProperty(iC,"__esModule",{value:!0});iC.getEnsName=void 0;const h4e=mn,m4e=di,p4e=$e(),g4e=jm,y4e=Od,b4e=Bt,v4e=li;async function w4e(e,{address:t,blockNumber:n,blockTag:r,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=(0,m4e.getChainContractAddress)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}const i=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const[s,c]=await(0,b4e.getAction)(e,v4e.readContract,"readContract")({address:a,abi:h4e.universalResolverReverseAbi,functionName:"reverse",args:[(0,p4e.toHex)((0,y4e.packetToBytes)(i))],blockNumber:n,blockTag:r});return t.toLowerCase()!==c.toLowerCase()?null:s}catch(s){if((0,g4e.isNullUniversalResolverError)(s,"reverse"))return null;throw s}}iC.getEnsName=w4e;var sC={};Object.defineProperty(sC,"__esModule",{value:!0});sC.getEnsResolver=void 0;const E4e=di,_4e=$e(),x4e=Od,C4e=Bt,S4e=li;async function T4e(e,{blockNumber:t,blockTag:n,name:r,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=(0,E4e.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}const[i]=await(0,C4e.getAction)(e,S4e.readContract,"readContract")({address:a,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,_4e.toHex)((0,x4e.packetToBytes)(r))],blockNumber:t,blockTag:n});return i}sC.getEnsResolver=T4e;var cC={};Object.defineProperty(cC,"__esModule",{value:!0});cC.createBlockFilter=void 0;const A4e=_d;async function D4e(e){const t=(0,A4e.createFilterRequestScope)(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}cC.createBlockFilter=D4e;var Qy={};Object.defineProperty(Qy,"__esModule",{value:!0});Qy.createEventFilter=void 0;const k4e=Ws,A9=$e(),j4e=_d;async function P4e(e,{address:t,args:n,event:r,events:o,fromBlock:a,strict:i,toBlock:s}={}){const c=o??(r?[r]:void 0),l=(0,j4e.createFilterRequestScope)(e,{method:"eth_newFilter"});let u=[];c&&(u=[c.flatMap(f=>(0,k4e.encodeEventTopics)({abi:[f],eventName:f.name,args:n}))],r&&(u=u[0]));const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?(0,A9.numberToHex)(a):a,toBlock:typeof s=="bigint"?(0,A9.numberToHex)(s):s,...u.length?{topics:u}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:a,id:d,request:l(d),strict:i,toBlock:s,type:"event"}}Qy.createEventFilter=P4e;var Xy={};Object.defineProperty(Xy,"__esModule",{value:!0});Xy.createPendingTransactionFilter=void 0;const I4e=_d;async function O4e(e){const t=(0,I4e.createFilterRequestScope)(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}Xy.createPendingTransactionFilter=O4e;var lC={};Object.defineProperty(lC,"__esModule",{value:!0});lC.getBalance=void 0;const R4e=$e();async function N4e(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n?(0,R4e.numberToHex)(n):void 0,a=await e.request({method:"eth_getBalance",params:[t,o||r]});return BigInt(a)}lC.getBalance=N4e;var uC={};Object.defineProperty(uC,"__esModule",{value:!0});uC.getBlockTransactionCount=void 0;const B4e=Wn(),F4e=$e();async function M4e(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){const o=n!==void 0?(0,F4e.numberToHex)(n):void 0;let a;return t?a=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):a=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[o||r]}),(0,B4e.hexToNumber)(a)}uC.getBlockTransactionCount=M4e;var dC={};Object.defineProperty(dC,"__esModule",{value:!0});dC.getBytecode=void 0;const L4e=$e();async function U4e(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n!==void 0?(0,L4e.numberToHex)(n):void 0,a=await e.request({method:"eth_getCode",params:[t,o||r]});if(a!=="0x")return a}dC.getBytecode=U4e;var fC={},hC={};Object.defineProperty(hC,"__esModule",{value:!0});hC.formatFeeHistory=void 0;function $4e(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)))}}hC.formatFeeHistory=$4e;Object.defineProperty(fC,"__esModule",{value:!0});fC.getFeeHistory=void 0;const D9=$e(),z4e=hC;async function H4e(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:o}){const a=n?(0,D9.numberToHex)(n):void 0,i=await e.request({method:"eth_feeHistory",params:[(0,D9.numberToHex)(t),a||r,o]});return(0,z4e.formatFeeHistory)(i)}fC.getFeeHistory=H4e;var mC={};Object.defineProperty(mC,"__esModule",{value:!0});mC.getFilterLogs=void 0;const k9=Jt(),q4e=Qs,j9=Vi;async function W4e(e,{filter:t}){const n=t.strict??!1;return(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(o=>{var a;try{const{eventName:i,args:s}="abi"in t&&t.abi?(0,q4e.decodeEventLog)({abi:t.abi,data:o.data,topics:o.topics,strict:n}):{eventName:void 0,args:void 0};return(0,j9.formatLog)(o,{args:s,eventName:i})}catch(i){let s,c;if(i instanceof k9.DecodeLogDataMismatch||i instanceof k9.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;s=i.abiItem.name,c=(a=i.abiItem.inputs)==null?void 0:a.some(l=>!("name"in l&&l.name))}return(0,j9.formatLog)(o,{args:c?[]:{},eventName:s})}}).filter(Boolean)}mC.getFilterLogs=W4e;var jp={},Pp={},H3={},Jy={};Object.defineProperty(Jy,"__esModule",{value:!0});Jy.defineChain=void 0;function G4e(e,t={}){const{fees:n=e.fees,formatters:r=e.formatters,serializers:o=e.serializers}=t;return{...e,fees:n,formatters:r,serializers:o}}Jy.defineChain=G4e;var Zy={};Object.defineProperty(Zy,"__esModule",{value:!0});Zy.extractChain=void 0;function V4e({chains:e,id:t}){return e.find(n=>n.id===t)}Zy.extractChain=V4e;var Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.integerRegex=Ni.bytesRegex=Ni.arrayRegex=void 0;Ni.arrayRegex=/^(.*)\[([0-9]*)\]$/;Ni.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;Ni.integerRegex=/^(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)?$/;var Qi={},Xl={},P9;function eb(){if(P9)return Xl;P9=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.hashDomain=Xl.hashTypedData=void 0;const e=ao,t=On,n=$e(),r=lo,o=pC();function a({domain:h,message:m,primaryType:p,types:b}){const v=typeof h>"u"?{}:h,g={EIP712Domain:(0,o.getTypesForEIP712Domain)({domain:v}),...b};(0,o.validateTypedData)({domain:v,message:m,primaryType:p,types:g});const w=["0x1901"];return v&&w.push(i({domain:v,types:g})),p!=="EIP712Domain"&&w.push(s({data:m,primaryType:p,types:g})),(0,r.keccak256)((0,t.concat)(w))}Xl.hashTypedData=a;function i({domain:h,types:m}){return s({data:h,primaryType:"EIP712Domain",types:m})}Xl.hashDomain=i;function s({data:h,primaryType:m,types:p}){const b=c({data:h,primaryType:m,types:p});return(0,r.keccak256)(b)}function c({data:h,primaryType:m,types:p}){const b=[{type:"bytes32"}],v=[l({primaryType:m,types:p})];for(const g of p[m]){const[w,_]=f({types:p,name:g.name,type:g.type,value:h[g.name]});b.push(w),v.push(_)}return(0,e.encodeAbiParameters)(b,v)}function l({primaryType:h,types:m}){const p=(0,n.toHex)(u({primaryType:h,types:m}));return(0,r.keccak256)(p)}function u({primaryType:h,types:m}){let p="";const b=d({primaryType:h,types:m});b.delete(h);const v=[h,...Array.from(b).sort()];for(const g of v)p+=`${g}(${m[g].map(({name:w,type:_})=>`${_} ${w}`).join(",")})`;return p}function d({primaryType:h,types:m},p=new Set){const b=h.match(/^\w*/u),v=b==null?void 0:b[0];if(p.has(v)||m[v]===void 0)return p;p.add(v);for(const g of m[v])d({primaryType:g.type,types:m},p);return p}function f({types:h,name:m,type:p,value:b}){if(h[p]!==void 0)return[{type:"bytes32"},(0,r.keccak256)(c({data:b,primaryType:p,types:h}))];if(p==="bytes")return b=`0x${(b.length%2?"0":"")+b.slice(2)}`,[{type:"bytes32"},(0,r.keccak256)(b)];if(p==="string")return[{type:"bytes32"},(0,r.keccak256)((0,n.toHex)(b))];if(p.lastIndexOf("]")===p.length-1){const v=p.slice(0,p.lastIndexOf("[")),g=b.map(w=>f({name:m,type:v,types:h,value:w}));return[{type:"bytes32"},(0,r.keccak256)((0,e.encodeAbiParameters)(g.map(([w])=>w),g.map(([,w])=>w)))]}return[{type:p},b]}return Xl}var I9;function pC(){if(I9)return Qi;I9=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.domainSeparator=Qi.getTypesForEIP712Domain=Qi.validateTypedData=void 0;const e=Jt(),t=Zo,n=uo,r=ka,o=$e(),a=Ni,i=eb();function s({domain:u,message:d,primaryType:f,types:h}){const m=h,p=(b,v)=>{for(const g of b){const{name:w,type:_}=g,C=_,x=v[w],E=C.match(a.integerRegex);if(E&&(typeof x=="number"||typeof x=="bigint")){const[D,R,F]=E;(0,o.numberToHex)(x,{signed:R==="int",size:parseInt(F)/8})}if(C==="address"&&typeof x=="string"&&!(0,n.isAddress)(x))throw new t.InvalidAddressError({address:x});const T=C.match(a.bytesRegex);if(T){const[D,R]=T;if(R&&(0,r.size)(x)!==parseInt(R))throw new e.BytesSizeMismatchError({expectedSize:parseInt(R),givenSize:(0,r.size)(x)})}const k=m[C];k&&p(k,x)}};if(m.EIP712Domain&&u&&p(m.EIP712Domain,u),f!=="EIP712Domain"){const b=m[f];p(b,d)}}Qi.validateTypedData=s;function c({domain:u}){return[typeof(u==null?void 0:u.name)=="string"&&{name:"name",type:"string"},(u==null?void 0:u.version)&&{name:"version",type:"string"},typeof(u==null?void 0:u.chainId)=="number"&&{name:"chainId",type:"uint256"},(u==null?void 0:u.verifyingContract)&&{name:"verifyingContract",type:"address"},(u==null?void 0:u.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}Qi.getTypesForEIP712Domain=c;function l({domain:u}){return(0,i.hashDomain)({domain:u,types:{EIP712Domain:c({domain:u})}})}return Qi.domainSeparator=l,Qi}var tb={};Object.defineProperty(tb,"__esModule",{value:!0});tb.decodeFunctionData=void 0;const K4e=Jt(),O9=Nr,Y4e=zi,Q4e=Hi,X4e=Gs();function J4e({abi:e,data:t}){const n=(0,O9.slice)(t,0,4),r=e.find(o=>o.type==="function"&&n===(0,Y4e.getFunctionSelector)((0,X4e.formatAbiItem)(o)));if(!r)throw new K4e.AbiFunctionSignatureNotFoundError(n,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:r.name,args:"inputs"in r&&r.inputs&&r.inputs.length>0?(0,Q4e.decodeAbiParameters)(r.inputs,(0,O9.slice)(t,4)):void 0}}tb.decodeFunctionData=J4e;var Im={};Object.defineProperty(Im,"__esModule",{value:!0});Im.encodeDeployData=void 0;const q3=Jt(),Z4e=On,ePe=ao,W3="/docs/contract/encodeDeployData";function tPe({abi:e,args:t,bytecode:n}){if(!t||t.length===0)return n;const r=e.find(a=>"type"in a&&a.type==="constructor");if(!r)throw new q3.AbiConstructorNotFoundError({docsPath:W3});if(!("inputs"in r))throw new q3.AbiConstructorParamsNotFoundError({docsPath:W3});if(!r.inputs||r.inputs.length===0)throw new q3.AbiConstructorParamsNotFoundError({docsPath:W3});const o=(0,ePe.encodeAbiParameters)(r.inputs,t);return(0,Z4e.concatHex)([n,o])}Im.encodeDeployData=tPe;var nb={};Object.defineProperty(nb,"__esModule",{value:!0});nb.encodeErrorResult=void 0;const G3=Jt(),nPe=On,rPe=zi,oPe=ao,aPe=Gs(),iPe=Br,V3="/docs/contract/encodeErrorResult";function sPe({abi:e,errorName:t,args:n}){let r=e[0];if(t&&(r=(0,iPe.getAbiItem)({abi:e,args:n,name:t}),!r))throw new G3.AbiErrorNotFoundError(t,{docsPath:V3});if(r.type!=="error")throw new G3.AbiErrorNotFoundError(void 0,{docsPath:V3});const o=(0,aPe.formatAbiItem)(r),a=(0,rPe.getFunctionSelector)(o);let i="0x";if(n&&n.length>0){if(!r.inputs)throw new G3.AbiErrorInputsNotFoundError(r.name,{docsPath:V3});i=(0,oPe.encodeAbiParameters)(r.inputs,n)}return(0,nPe.concatHex)([a,i])}nb.encodeErrorResult=sPe;var rb={};Object.defineProperty(rb,"__esModule",{value:!0});rb.encodeFunctionResult=void 0;const K3=Jt(),cPe=ao,lPe=Br,uPe="/docs/contract/encodeFunctionResult";function dPe({abi:e,functionName:t,result:n}){let r=e[0];if(t&&(r=(0,lPe.getAbiItem)({abi:e,name:t}),!r))throw new K3.AbiFunctionNotFoundError(t,{docsPath:"/docs/contract/encodeFunctionResult"});if(r.type!=="function")throw new K3.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionResult"});if(!r.outputs)throw new K3.AbiFunctionOutputsNotFoundError(r.name,{docsPath:uPe});let o=Array.isArray(n)?n:[n];return r.outputs.length===0&&!o[0]&&(o=[]),(0,cPe.encodeAbiParameters)(r.outputs,o)}rb.encodeFunctionResult=dPe;var ob={};Object.defineProperty(ob,"__esModule",{value:!0});ob.encodePacked=void 0;const HD=Jt(),fPe=Zo,hPe=uo,_J=On,Y3=eo,Q3=$e(),X3=Ni;function mPe(e,t){if(e.length!==t.length)throw new HD.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;rthis.bytes.length-1)throw new J3.PositionOutOfBoundsError({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new J3.NegativeOffsetError({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},incrementPosition(e){if(e<0)throw new J3.NegativeOffsetError({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(){const e=this.inspectByte();return this.position++,e},readBytes(e){const t=this.inspectBytes(e);return this.position+=e,t},readUint8(){const e=this.inspectUint8();return this.position+=1,e},readUint16(){const e=this.inspectUint16();return this.position+=2,e},readUint24(){const e=this.inspectUint24();return this.position+=3,e},readUint32(){const e=this.inspectUint32();return this.position+=4,e},setPosition(e){this.assertPosition(e),this.position=e}};function vPe(e){const t=Object.create(bPe);return t.bytes=e,t.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),t}ab.createCursor=vPe;var R9;function gC(){if(R9)return Ji;R9=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.hexToRlp=Ji.bytesToRlp=Ji.toRlp=void 0;const e=LJ(),t=ab,n=Gn(),r=$e();function o(d,f="hex"){const h=s(d),m=(0,t.createCursor)(new Uint8Array(h.length));return h.encode(m),f==="hex"?(0,r.bytesToHex)(m.bytes):m.bytes}Ji.toRlp=o;function a(d,f="bytes"){return o(d,f)}Ji.bytesToRlp=a;function i(d,f="hex"){return o(d,f)}Ji.hexToRlp=i;function s(d){return Array.isArray(d)?c(d.map(f=>s(f))):l(d)}function c(d){const f=d.reduce((p,b)=>p+b.length,0),h=u(f);return{length:f<=55?1+f:1+h+f,encode(p){f<=55?p.pushByte(192+f):(p.pushByte(247+h),h===1?p.pushUint8(f):h===2?p.pushUint16(f):h===3?p.pushUint24(f):p.pushUint32(f));for(const{encode:b}of d)b(p)}}}function l(d){const f=typeof d=="string"?(0,n.hexToBytes)(d):d,h=u(f.length);return{length:f.length===1&&f[0]<128?1:f.length<=55?1+f.length:1+h+f.length,encode(p){f.length===1&&f[0]<128?p.pushBytes(f):f.length<=55?(p.pushByte(128+f.length),p.pushBytes(f)):(p.pushByte(183+h),h===1?p.pushUint8(f.length):h===2?p.pushUint16(f.length):h===3?p.pushUint24(f.length):p.pushUint32(f.length),p.pushBytes(f))}}}function u(d){if(d<2**8)return 1;if(d<2**16)return 2;if(d<2**24)return 3;if(d<2**32)return 4;throw new e.BaseError("Length is too large.")}return Ji}var N9;function SJ(){if(N9)return Xi;N9=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.getCreate2Address=Xi.getCreateAddress=Xi.getContractAddress=void 0;const e=On,t=Om,n=eo,r=Nr,o=Gn(),a=gC(),i=lo,s=Co;function c(d){return d.opcode==="CREATE2"?u(d):l(d)}Xi.getContractAddress=c;function l(d){const f=(0,o.toBytes)((0,s.getAddress)(d.from));let h=(0,o.toBytes)(d.nonce);return h[0]===0&&(h=new Uint8Array([])),(0,s.getAddress)(`0x${(0,i.keccak256)((0,a.toRlp)([f,h],"bytes")).slice(26)}`)}Xi.getCreateAddress=l;function u(d){const f=(0,o.toBytes)((0,s.getAddress)(d.from)),h=(0,n.pad)((0,t.isBytes)(d.salt)?d.salt:(0,o.toBytes)(d.salt),{size:32}),m="bytecodeHash"in d?(0,t.isBytes)(d.bytecodeHash)?d.bytecodeHash:(0,o.toBytes)(d.bytecodeHash):(0,i.keccak256)(d.bytecode,"bytes");return(0,s.getAddress)((0,r.slice)((0,i.keccak256)((0,e.concat)([(0,o.toBytes)("0xff"),f,h,m])),12))}return Xi.getCreate2Address=u,Xi}var ji={};Object.defineProperty(ji,"__esModule",{value:!0});ji.extractFunctionType=ji.extractFunctionParams=ji.extractFunctionName=ji.extractFunctionParts=void 0;const wPe=/((function|event)\s)?(.*)(\((.*)\))/;function yC(e){const t=e.match(wPe),n=(t==null?void 0:t[2])||void 0,r=t==null?void 0:t[3],o=(t==null?void 0:t[5])||void 0;return{type:n,name:r,params:o}}ji.extractFunctionParts=yC;function EPe(e){return yC(e).name}ji.extractFunctionName=EPe;function _Pe(e){const t=yC(e).params,n=t==null?void 0:t.split(",").map(r=>r.trim().split(" "));return n==null?void 0:n.map(r=>({type:r[0],name:r[1]==="indexed"?r[2]:r[1],...r[1]==="indexed"?{indexed:!0}:{}}))}ji.extractFunctionParams=_Pe;function xPe(e){return yC(e).type}ji.extractFunctionType=xPe;var gl={};Object.defineProperty(gl,"__esModule",{value:!0});gl.defineTransactionReceipt=gl.formatTransactionReceipt=void 0;const CPe=Wn(),SPe=Nl,TPe=Vi,APe=wm,DPe={"0x0":"reverted","0x1":"success"};function TJ(e){return{...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(t=>(0,TPe.formatLog)(t)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,CPe.hexToNumber)(e.transactionIndex):null,status:e.status?DPe[e.status]:null,type:e.type?APe.transactionType[e.type]||e.type:null}}gl.formatTransactionReceipt=TJ;gl.defineTransactionReceipt=(0,SPe.defineFormatter)("transactionReceipt",TJ);var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.bytesToString=Lo.bytesToNumber=Lo.bytesToBool=Lo.bytesToBigInt=Lo.fromBytes=void 0;const kPe=hn,AJ=ci,Rh=Wn(),oP=$e();function jPe(e,t){const n=typeof t=="string"?{to:t}:t,r=n.to;return r==="number"?jJ(e,n):r==="bigint"?DJ(e,n):r==="boolean"?kJ(e,n):r==="string"?PJ(e,n):(0,oP.bytesToHex)(e,n)}Lo.fromBytes=jPe;function DJ(e,t={}){typeof t.size<"u"&&(0,Rh.assertSize)(e,{size:t.size});const n=(0,oP.bytesToHex)(e,t);return(0,Rh.hexToBigInt)(n)}Lo.bytesToBigInt=DJ;function kJ(e,t={}){let n=e;if(typeof t.size<"u"&&((0,Rh.assertSize)(n,{size:t.size}),n=(0,AJ.trim)(n)),n.length>1||n[0]>1)throw new kPe.InvalidBytesBooleanError(n);return!!n[0]}Lo.bytesToBool=kJ;function jJ(e,t={}){typeof t.size<"u"&&(0,Rh.assertSize)(e,{size:t.size});const n=(0,oP.bytesToHex)(e,t);return(0,Rh.hexToNumber)(n)}Lo.bytesToNumber=jJ;function PJ(e,t={}){let n=e;return typeof t.size<"u"&&((0,Rh.assertSize)(n,{size:t.size}),n=(0,AJ.trim)(n,{dir:"right"})),new TextDecoder().decode(n)}Lo.bytesToString=PJ;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});Bi.rlpToHex=Bi.rlpToBytes=Bi.fromRlp=void 0;const PPe=xt,IPe=hn,OPe=ab,RPe=Gn(),B9=$e();function aP(e,t="hex"){const n=(()=>{if(typeof e=="string"){if(e.length>3&&e.length%2!==0)throw new IPe.InvalidHexValueError(e);return(0,RPe.hexToBytes)(e)}return e})(),r=(0,OPe.createCursor)(n);return IJ(r,t)}Bi.fromRlp=aP;function NPe(e,t="bytes"){return aP(e,t)}Bi.rlpToBytes=NPe;function BPe(e,t="hex"){return aP(e,t)}Bi.rlpToHex=BPe;function IJ(e,t="hex"){if(e.bytes.length===0)return t==="hex"?(0,B9.bytesToHex)(e.bytes):e.bytes;const n=e.readByte();if(n<128&&e.decrementPosition(1),n<192){const o=F9(e,n,128),a=e.readBytes(o);return t==="hex"?(0,B9.bytesToHex)(a):a}const r=F9(e,n,192);return FPe(e,r,t)}function F9(e,t,n){if(n===128&&t<128)return 1;if(t<=n+55)return t-n;if(t===n+55+1)return e.readUint8();if(t===n+55+2)return e.readUint16();if(t===n+55+3)return e.readUint24();if(t===n+55+4)return e.readUint32();throw new PPe.BaseError("Invalid RLP prefix")}function FPe(e,t,n){const r=e.position,o=[];for(;e.position-rcb);return`0x${a.Signature.fromCompact(n.substring(2,130)).addRecoveryBit(o-27).recoverPublicKey(r.substring(2)).toHex(!1)}`}Nm.recoverPublicKey=e7e;Object.defineProperty(Rd,"__esModule",{value:!0});Rd.recoverAddress=void 0;const t7e=Dm,n7e=Nm;async function r7e({hash:e,signature:t}){return(0,t7e.publicKeyToAddress)(await(0,n7e.recoverPublicKey)({hash:e,signature:t}))}Rd.recoverAddress=r7e;var Bm={},Fm={},lb={};Object.defineProperty(lb,"__esModule",{value:!0});lb.presignMessagePrefix=void 0;lb.presignMessagePrefix=`Ethereum Signed Message: -`;Object.defineProperty(Fm,"__esModule",{value:!0});Fm.hashMessage=void 0;const o7e=lb,a7e=On,Z3=Gn(),i7e=lo;function s7e(e,t){const n=typeof e=="string"?(0,Z3.stringToBytes)(e):e.raw instanceof Uint8Array?e.raw:(0,Z3.toBytes)(e.raw),r=(0,Z3.stringToBytes)(`${o7e.presignMessagePrefix}${n.length}`);return(0,i7e.keccak256)((0,a7e.concat)([r,n]),t)}Fm.hashMessage=s7e;Object.defineProperty(Bm,"__esModule",{value:!0});Bm.recoverMessageAddress=void 0;const c7e=Fm,l7e=Rd;async function u7e({message:e,signature:t}){return(0,l7e.recoverAddress)({hash:(0,c7e.hashMessage)(e),signature:t})}Bm.recoverMessageAddress=u7e;var Mm={};Object.defineProperty(Mm,"__esModule",{value:!0});Mm.recoverTypedDataAddress=void 0;const d7e=eb(),f7e=Rd;async function h7e({domain:e,message:t,primaryType:n,signature:r,types:o}){return(0,f7e.recoverAddress)({hash:(0,d7e.hashTypedData)({domain:e,message:t,primaryType:n,types:o}),signature:r})}Mm.recoverTypedDataAddress=h7e;var ub={};Object.defineProperty(ub,"__esModule",{value:!0});ub.verifyMessage=void 0;const m7e=Co,p7e=Bl,g7e=Bm;async function y7e({address:e,message:t,signature:n}){return(0,p7e.isAddressEqual)((0,m7e.getAddress)(e),await(0,g7e.recoverMessageAddress)({message:t,signature:n}))}ub.verifyMessage=y7e;var db={};Object.defineProperty(db,"__esModule",{value:!0});db.verifyTypedData=void 0;const b7e=Co,v7e=Bl,w7e=Mm;async function E7e({address:e,domain:t,message:n,primaryType:r,signature:o,types:a}){return(0,v7e.isAddressEqual)((0,b7e.getAddress)(e),await(0,w7e.recoverTypedDataAddress)({domain:t,message:n,primaryType:r,signature:o,types:a}))}db.verifyTypedData=E7e;var Lm={};Object.defineProperty(Lm,"__esModule",{value:!0});Lm.getSerializedTransactionType=void 0;const _7e=pt,x7e=Nr,C7e=Wn();function S7e(e){const t=(0,x7e.sliceHex)(e,0,1);if(t==="0x02")return"eip1559";if(t==="0x01")return"eip2930";if(t!=="0x"&&(0,C7e.hexToNumber)(t)>=192)return"legacy";throw new _7e.InvalidSerializedTransactionTypeError({serializedType:t})}Lm.getSerializedTransactionType=S7e;var ni={};Object.defineProperty(ni,"__esModule",{value:!0});ni.assertTransactionLegacy=ni.assertTransactionEIP2930=ni.assertTransactionEIP1559=void 0;const iP=Zo,NE=xt,sP=Pr,BE=St,cP=uo;function T7e(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=e;if(t<=0)throw new sP.InvalidChainIdError({chainId:t});if(a&&!(0,cP.isAddress)(a))throw new iP.InvalidAddressError({address:a});if(r)throw new NE.BaseError("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(o&&o>2n**256n-1n)throw new BE.FeeCapTooHighError({maxFeePerGas:o});if(n&&o&&n>o)throw new BE.TipAboveFeeCapError({maxFeePerGas:o,maxPriorityFeePerGas:n})}ni.assertTransactionEIP1559=T7e;function A7e(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=e;if(t<=0)throw new sP.InvalidChainIdError({chainId:t});if(a&&!(0,cP.isAddress)(a))throw new iP.InvalidAddressError({address:a});if(n||o)throw new NE.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>2n**256n-1n)throw new BE.FeeCapTooHighError({maxFeePerGas:r})}ni.assertTransactionEIP2930=A7e;function D7e(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a,accessList:i}=e;if(a&&!(0,cP.isAddress)(a))throw new iP.InvalidAddressError({address:a});if(typeof t<"u"&&t<=0)throw new sP.InvalidChainIdError({chainId:t});if(n||o)throw new NE.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>2n**256n-1n)throw new BE.FeeCapTooHighError({maxFeePerGas:r});if(i)throw new NE.BaseError("`accessList` is not a valid Legacy Transaction attribute.")}ni.assertTransactionLegacy=D7e;var ps={};Object.defineProperty(ps,"__esModule",{value:!0});ps.parseAccessList=ps.toTransactionArray=ps.parseTransaction=void 0;const k7e=Zo,FE=pt,j7e=uo,An=qn,U9=eo,P7e=ci,ur=Wn(),OJ=Bi,I7e=Rm,lP=ni,O7e=Lm;function R7e(e){const t=(0,O7e.getSerializedTransactionType)(e);return t==="eip1559"?N7e(e):t==="eip2930"?B7e(e):F7e(e)}ps.parseTransaction=R7e;function N7e(e){const t=uP(e),[n,r,o,a,i,s,c,l,u,d,f,h]=t;if(!(t.length===9||t.length===12))throw new FE.InvalidSerializedTransactionError({attributes:{chainId:n,nonce:r,maxPriorityFeePerGas:o,maxFeePerGas:a,gas:i,to:s,value:c,data:l,accessList:u,...t.length>9?{v:d,r:f,s:h}:{}},serializedTransaction:e,type:"eip1559"});const m={chainId:(0,ur.hexToNumber)(n),type:"eip1559"};return(0,An.isHex)(s)&&s!=="0x"&&(m.to=s),(0,An.isHex)(i)&&i!=="0x"&&(m.gas=(0,ur.hexToBigInt)(i)),(0,An.isHex)(l)&&l!=="0x"&&(m.data=l),(0,An.isHex)(r)&&r!=="0x"&&(m.nonce=(0,ur.hexToNumber)(r)),(0,An.isHex)(c)&&c!=="0x"&&(m.value=(0,ur.hexToBigInt)(c)),(0,An.isHex)(a)&&a!=="0x"&&(m.maxFeePerGas=(0,ur.hexToBigInt)(a)),(0,An.isHex)(o)&&o!=="0x"&&(m.maxPriorityFeePerGas=(0,ur.hexToBigInt)(o)),u.length!==0&&u!=="0x"&&(m.accessList=dP(u)),(0,lP.assertTransactionEIP1559)(m),{...t.length===12?RJ(t):void 0,...m}}function B7e(e){const t=uP(e),[n,r,o,a,i,s,c,l,u,d,f]=t;if(!(t.length===8||t.length===11))throw new FE.InvalidSerializedTransactionError({attributes:{chainId:n,nonce:r,gasPrice:o,gas:a,to:i,value:s,data:c,accessList:l,...t.length>8?{v:u,r:d,s:f}:{}},serializedTransaction:e,type:"eip2930"});const h={chainId:(0,ur.hexToNumber)(n),type:"eip2930"};return(0,An.isHex)(i)&&i!=="0x"&&(h.to=i),(0,An.isHex)(a)&&a!=="0x"&&(h.gas=(0,ur.hexToBigInt)(a)),(0,An.isHex)(c)&&c!=="0x"&&(h.data=c),(0,An.isHex)(r)&&r!=="0x"&&(h.nonce=(0,ur.hexToNumber)(r)),(0,An.isHex)(s)&&s!=="0x"&&(h.value=(0,ur.hexToBigInt)(s)),(0,An.isHex)(o)&&o!=="0x"&&(h.gasPrice=(0,ur.hexToBigInt)(o)),l.length!==0&&l!=="0x"&&(h.accessList=dP(l)),(0,lP.assertTransactionEIP2930)(h),{...t.length===11?RJ(t):void 0,...h}}function F7e(e){const t=(0,OJ.fromRlp)(e,"hex"),[n,r,o,a,i,s,c,l,u]=t;if(!(t.length===6||t.length===9))throw new FE.InvalidSerializedTransactionError({attributes:{nonce:n,gasPrice:r,gas:o,to:a,value:i,data:s,...t.length>6?{v:c,r:l,s:u}:{}},serializedTransaction:e,type:"legacy"});const d={type:"legacy"};if((0,An.isHex)(a)&&a!=="0x"&&(d.to=a),(0,An.isHex)(o)&&o!=="0x"&&(d.gas=(0,ur.hexToBigInt)(o)),(0,An.isHex)(s)&&s!=="0x"&&(d.data=s),(0,An.isHex)(n)&&n!=="0x"&&(d.nonce=(0,ur.hexToNumber)(n)),(0,An.isHex)(i)&&i!=="0x"&&(d.value=(0,ur.hexToBigInt)(i)),(0,An.isHex)(r)&&r!=="0x"&&(d.gasPrice=(0,ur.hexToBigInt)(r)),(0,lP.assertTransactionLegacy)(d),t.length===6)return d;const f=(0,An.isHex)(c)&&c!=="0x"?(0,ur.hexToBigInt)(c):0n;if(u==="0x"&&l==="0x")return f>0&&(d.chainId=Number(f)),d;const h=f,m=Number((h-35n)/2n);if(m>0)d.chainId=m;else if(h!==27n&&h!==28n)throw new FE.InvalidLegacyVError({v:h});return d.v=h,d.s=u,d.r=l,d}function uP(e){return(0,OJ.fromRlp)(`0x${e.slice(4)}`,"hex")}ps.toTransactionArray=uP;function dP(e){const t=[];for(let n=0;n(0,I7e.isHash)(a)?a:(0,P7e.trim)(a))})}return t}ps.parseAccessList=dP;function RJ(e){const t=e.slice(-3),n=t[0]==="0x"||(0,ur.hexToBigInt)(t[0])===0n?27n:28n;return{r:(0,U9.padHex)(t[1],{size:32}),s:(0,U9.padHex)(t[2],{size:32}),v:n,yParity:n===27n?0:1}}var Ip={},Um={};Object.defineProperty(Um,"__esModule",{value:!0});Um.serializeAccessList=void 0;const M7e=Zo,L7e=pt,U7e=uo;function $7e(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n{if(m>0)return BigInt(m*2)+BigInt(35n+h.v-27n);if(h.v>=35n)return(h.v-35n)/2n>0?h.v:27n+(h.v===35n?0n:1n);const E=27n+(h.v===27n?0n:1n);if(h.v!==E)throw new e.InvalidLegacyVError({v:h.v});return E})();C=[...C,(0,r.toHex)(x),h.r,h.s]}else m>0&&(C=[...C,(0,r.toHex)(m),"0x","0x"]);return(0,o.toRlp)(C)}return Ip}var Nd={};Object.defineProperty(Nd,"__esModule",{value:!0});Nd.parseUnits=void 0;function z7e(e,t){let[n,r="0"]=e.split(".");const o=n.startsWith("-");if(o&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),t===0)Math.round(+`.${r}`)===1&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>t){const[a,i,s]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],c=Math.round(+`${i}.${s}`);c>9?r=`${BigInt(a)+BigInt(1)}0`.padStart(a.length+1,"0"):r=`${a}${c}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${o?"-":""}${n}${r}`)}Nd.parseUnits=z7e;var fb={};Object.defineProperty(fb,"__esModule",{value:!0});fb.parseEther=void 0;const H7e=ya,q7e=Nd;function W7e(e,t="wei"){return(0,q7e.parseUnits)(e,H7e.etherUnits[t])}fb.parseEther=W7e;var hb={};Object.defineProperty(hb,"__esModule",{value:!0});hb.parseGwei=void 0;const G7e=ya,V7e=Nd;function K7e(e,t="wei"){return(0,V7e.parseUnits)(e,G7e.gweiUnits[t])}hb.parseGwei=K7e;var z9;function $m(){return z9||(z9=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.concat=e.extractFunctionParts=e.extractFunctionType=e.extractFunctionParams=e.extractFunctionName=e.isAddressEqual=e.isAddress=e.getAddress=e.getCreate2Address=e.getCreateAddress=e.getContractAddress=e.publicKeyToAddress=e.parseAccount=e.formatAbiParams=e.formatAbiItem=e.formatAbiItemWithArgs=e.encodePacked=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.getAbiItem=e.encodeFunctionResult=e.encodeFunctionData=e.encodeEventTopics=e.encodeErrorResult=e.encodeDeployData=e.encodeAbiParameters=e.decodeFunctionResult=e.decodeFunctionData=e.decodeEventLog=e.decodeErrorResult=e.decodeAbiParameters=e.validateTypedData=e.stringify=e.rpc=e.getSocket=e.integerRegex=e.bytesRegex=e.arrayRegex=e.getChainContractAddress=e.extractChain=e.defineChain=e.assertCurrentChain=e.offchainLookupSignature=e.offchainLookupAbiItem=e.offchainLookup=e.ccipFetch=e.buildRequest=e.isDeterministicError=void 0,e.getEstimateGasError=e.getContractError=e.getCallError=e.getNodeError=e.containsNodeError=e.fromRlp=e.hexToString=e.hexToNumber=e.hexToBigInt=e.hexToBool=e.fromHex=e.fromBytes=e.bytesToString=e.bytesToNumber=e.bytesToBool=e.bytesToBigint=e.bytesToBigInt=e.stringToHex=e.numberToHex=e.toHex=e.bytesToHex=e.boolToHex=e.stringToBytes=e.numberToBytes=e.hexToBytes=e.toBytes=e.boolToBytes=e.toRlp=e.extract=e.formatTransactionRequest=e.defineTransactionRequest=e.defineTransactionReceipt=e.formatLog=e.transactionType=e.formatTransaction=e.defineTransaction=e.formatBlock=e.defineBlock=e.trim=e.sliceHex=e.sliceBytes=e.slice=e.size=e.padHex=e.padBytes=e.pad=e.isHex=e.isBytes=e.concatHex=e.concatBytes=void 0,e.parseGwei=e.parseEther=e.parseUnits=e.formatUnits=e.formatGwei=e.formatEther=e.serializeAccessList=e.serializeTransaction=e.prepareTransactionRequest=e.parseTransaction=e.assertTransactionLegacy=e.assertTransactionEIP2930=e.assertTransactionEIP1559=e.assertRequest=e.getTransactionType=e.getSerializedTransactionType=e.hashMessage=e.verifyTypedData=e.verifyMessage=e.recoverTypedDataAddress=e.recoverPublicKey=e.recoverMessageAddress=e.recoverAddress=e.hashTypedData=e.ripemd160=e.sha256=e.keccak256=e.isHash=e.getFunctionSelector=e.getEventSelector=e.defineFormatter=e.getTransactionError=void 0;var t=X2;Object.defineProperty(e,"isDeterministicError",{enumerable:!0,get:function(){return t.isDeterministicError}}),Object.defineProperty(e,"buildRequest",{enumerable:!0,get:function(){return t.buildRequest}});var n=rP();Object.defineProperty(e,"ccipFetch",{enumerable:!0,get:function(){return n.ccipFetch}}),Object.defineProperty(e,"offchainLookup",{enumerable:!0,get:function(){return n.offchainLookup}}),Object.defineProperty(e,"offchainLookupAbiItem",{enumerable:!0,get:function(){return n.offchainLookupAbiItem}}),Object.defineProperty(e,"offchainLookupSignature",{enumerable:!0,get:function(){return n.offchainLookupSignature}});var r=jd;Object.defineProperty(e,"assertCurrentChain",{enumerable:!0,get:function(){return r.assertCurrentChain}});var o=Jy;Object.defineProperty(e,"defineChain",{enumerable:!0,get:function(){return o.defineChain}});var a=Zy;Object.defineProperty(e,"extractChain",{enumerable:!0,get:function(){return a.extractChain}});var i=di;Object.defineProperty(e,"getChainContractAddress",{enumerable:!0,get:function(){return i.getChainContractAddress}});var s=Ni;Object.defineProperty(e,"arrayRegex",{enumerable:!0,get:function(){return s.arrayRegex}}),Object.defineProperty(e,"bytesRegex",{enumerable:!0,get:function(){return s.bytesRegex}}),Object.defineProperty(e,"integerRegex",{enumerable:!0,get:function(){return s.integerRegex}});var c=Z2;Object.defineProperty(e,"getSocket",{enumerable:!0,get:function(){return c.getSocket}}),Object.defineProperty(e,"rpc",{enumerable:!0,get:function(){return c.rpc}});var l=xr;Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}});var u=pC();Object.defineProperty(e,"validateTypedData",{enumerable:!0,get:function(){return u.validateTypedData}});var d=Hi;Object.defineProperty(e,"decodeAbiParameters",{enumerable:!0,get:function(){return d.decodeAbiParameters}});var f=xd;Object.defineProperty(e,"decodeErrorResult",{enumerable:!0,get:function(){return f.decodeErrorResult}});var h=Qs;Object.defineProperty(e,"decodeEventLog",{enumerable:!0,get:function(){return h.decodeEventLog}});var m=tb;Object.defineProperty(e,"decodeFunctionData",{enumerable:!0,get:function(){return m.decodeFunctionData}});var p=ui;Object.defineProperty(e,"decodeFunctionResult",{enumerable:!0,get:function(){return p.decodeFunctionResult}});var b=ao;Object.defineProperty(e,"encodeAbiParameters",{enumerable:!0,get:function(){return b.encodeAbiParameters}});var v=Im;Object.defineProperty(e,"encodeDeployData",{enumerable:!0,get:function(){return v.encodeDeployData}});var g=nb;Object.defineProperty(e,"encodeErrorResult",{enumerable:!0,get:function(){return g.encodeErrorResult}});var w=Ws;Object.defineProperty(e,"encodeEventTopics",{enumerable:!0,get:function(){return w.encodeEventTopics}});var _=ea;Object.defineProperty(e,"encodeFunctionData",{enumerable:!0,get:function(){return _.encodeFunctionData}});var C=rb;Object.defineProperty(e,"encodeFunctionResult",{enumerable:!0,get:function(){return C.encodeFunctionResult}});var x=Br;Object.defineProperty(e,"getAbiItem",{enumerable:!0,get:function(){return x.getAbiItem}});var E=V4;Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return E.parseAbi}}),Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return E.parseAbiItem}}),Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return E.parseAbiParameter}}),Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return E.parseAbiParameters}});var T=ob;Object.defineProperty(e,"encodePacked",{enumerable:!0,get:function(){return T.encodePacked}});var k=Oy;Object.defineProperty(e,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return k.formatAbiItemWithArgs}});var D=Gs();Object.defineProperty(e,"formatAbiItem",{enumerable:!0,get:function(){return D.formatAbiItem}}),Object.defineProperty(e,"formatAbiParams",{enumerable:!0,get:function(){return D.formatAbiParams}});var R=Lr;Object.defineProperty(e,"parseAccount",{enumerable:!0,get:function(){return R.parseAccount}});var F=Dm;Object.defineProperty(e,"publicKeyToAddress",{enumerable:!0,get:function(){return F.publicKeyToAddress}});var B=SJ();Object.defineProperty(e,"getContractAddress",{enumerable:!0,get:function(){return B.getContractAddress}}),Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return B.getCreateAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return B.getCreate2Address}});var j=Co;Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return j.getAddress}});var P=uo;Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return P.isAddress}});var O=Bl;Object.defineProperty(e,"isAddressEqual",{enumerable:!0,get:function(){return O.isAddressEqual}});var I=ji;Object.defineProperty(e,"extractFunctionName",{enumerable:!0,get:function(){return I.extractFunctionName}}),Object.defineProperty(e,"extractFunctionParams",{enumerable:!0,get:function(){return I.extractFunctionParams}}),Object.defineProperty(e,"extractFunctionType",{enumerable:!0,get:function(){return I.extractFunctionType}}),Object.defineProperty(e,"extractFunctionParts",{enumerable:!0,get:function(){return I.extractFunctionParts}});var N=On;Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return N.concat}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return N.concatBytes}}),Object.defineProperty(e,"concatHex",{enumerable:!0,get:function(){return N.concatHex}});var M=Om;Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return M.isBytes}});var L=qn;Object.defineProperty(e,"isHex",{enumerable:!0,get:function(){return L.isHex}});var X=eo;Object.defineProperty(e,"pad",{enumerable:!0,get:function(){return X.pad}}),Object.defineProperty(e,"padBytes",{enumerable:!0,get:function(){return X.padBytes}}),Object.defineProperty(e,"padHex",{enumerable:!0,get:function(){return X.padHex}});var J=ka;Object.defineProperty(e,"size",{enumerable:!0,get:function(){return J.size}});var U=Nr;Object.defineProperty(e,"slice",{enumerable:!0,get:function(){return U.slice}}),Object.defineProperty(e,"sliceBytes",{enumerable:!0,get:function(){return U.sliceBytes}}),Object.defineProperty(e,"sliceHex",{enumerable:!0,get:function(){return U.sliceHex}});var G=ci;Object.defineProperty(e,"trim",{enumerable:!0,get:function(){return G.trim}});var Z=js;Object.defineProperty(e,"defineBlock",{enumerable:!0,get:function(){return Z.defineBlock}}),Object.defineProperty(e,"formatBlock",{enumerable:!0,get:function(){return Z.formatBlock}});var ae=wm;Object.defineProperty(e,"defineTransaction",{enumerable:!0,get:function(){return ae.defineTransaction}}),Object.defineProperty(e,"formatTransaction",{enumerable:!0,get:function(){return ae.formatTransaction}}),Object.defineProperty(e,"transactionType",{enumerable:!0,get:function(){return ae.transactionType}});var ne=Vi;Object.defineProperty(e,"formatLog",{enumerable:!0,get:function(){return ne.formatLog}});var ie=gl;Object.defineProperty(e,"defineTransactionReceipt",{enumerable:!0,get:function(){return ie.defineTransactionReceipt}});var te=Rl;Object.defineProperty(e,"defineTransactionRequest",{enumerable:!0,get:function(){return te.defineTransactionRequest}}),Object.defineProperty(e,"formatTransactionRequest",{enumerable:!0,get:function(){return te.formatTransactionRequest}});var ee=Ol;Object.defineProperty(e,"extract",{enumerable:!0,get:function(){return ee.extract}});var re=gC();Object.defineProperty(e,"toRlp",{enumerable:!0,get:function(){return re.toRlp}});var z=Gn();Object.defineProperty(e,"boolToBytes",{enumerable:!0,get:function(){return z.boolToBytes}}),Object.defineProperty(e,"toBytes",{enumerable:!0,get:function(){return z.toBytes}}),Object.defineProperty(e,"hexToBytes",{enumerable:!0,get:function(){return z.hexToBytes}}),Object.defineProperty(e,"numberToBytes",{enumerable:!0,get:function(){return z.numberToBytes}}),Object.defineProperty(e,"stringToBytes",{enumerable:!0,get:function(){return z.stringToBytes}});var fe=$e();Object.defineProperty(e,"boolToHex",{enumerable:!0,get:function(){return fe.boolToHex}}),Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return fe.bytesToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return fe.toHex}}),Object.defineProperty(e,"numberToHex",{enumerable:!0,get:function(){return fe.numberToHex}}),Object.defineProperty(e,"stringToHex",{enumerable:!0,get:function(){return fe.stringToHex}});var ve=Lo;Object.defineProperty(e,"bytesToBigInt",{enumerable:!0,get:function(){return ve.bytesToBigInt}}),Object.defineProperty(e,"bytesToBigint",{enumerable:!0,get:function(){return ve.bytesToBigInt}}),Object.defineProperty(e,"bytesToBool",{enumerable:!0,get:function(){return ve.bytesToBool}}),Object.defineProperty(e,"bytesToNumber",{enumerable:!0,get:function(){return ve.bytesToNumber}}),Object.defineProperty(e,"bytesToString",{enumerable:!0,get:function(){return ve.bytesToString}}),Object.defineProperty(e,"fromBytes",{enumerable:!0,get:function(){return ve.fromBytes}});var Ue=Wn();Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return Ue.fromHex}}),Object.defineProperty(e,"hexToBool",{enumerable:!0,get:function(){return Ue.hexToBool}}),Object.defineProperty(e,"hexToBigInt",{enumerable:!0,get:function(){return Ue.hexToBigInt}}),Object.defineProperty(e,"hexToNumber",{enumerable:!0,get:function(){return Ue.hexToNumber}}),Object.defineProperty(e,"hexToString",{enumerable:!0,get:function(){return Ue.hexToString}});var ke=Bi;Object.defineProperty(e,"fromRlp",{enumerable:!0,get:function(){return ke.fromRlp}});var Qe=ks;Object.defineProperty(e,"containsNodeError",{enumerable:!0,get:function(){return Qe.containsNodeError}}),Object.defineProperty(e,"getNodeError",{enumerable:!0,get:function(){return Qe.getNodeError}});var Te=Uy;Object.defineProperty(e,"getCallError",{enumerable:!0,get:function(){return Te.getCallError}});var Ee=Vs;Object.defineProperty(e,"getContractError",{enumerable:!0,get:function(){return Ee.getContractError}});var he=Ny;Object.defineProperty(e,"getEstimateGasError",{enumerable:!0,get:function(){return he.getEstimateGasError}});var Me=Wy;Object.defineProperty(e,"getTransactionError",{enumerable:!0,get:function(){return Me.getTransactionError}});var ge=Nl;Object.defineProperty(e,"defineFormatter",{enumerable:!0,get:function(){return ge.defineFormatter}});var Y=Pl;Object.defineProperty(e,"getEventSelector",{enumerable:!0,get:function(){return Y.getEventSelector}});var W=zi;Object.defineProperty(e,"getFunctionSelector",{enumerable:!0,get:function(){return W.getFunctionSelector}});var Q=Rm;Object.defineProperty(e,"isHash",{enumerable:!0,get:function(){return Q.isHash}});var ce=lo;Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return ce.keccak256}});var pe=ib;Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return pe.sha256}});var De=sb;Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return De.ripemd160}});var Ie=eb();Object.defineProperty(e,"hashTypedData",{enumerable:!0,get:function(){return Ie.hashTypedData}});var Je=Rd;Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return Je.recoverAddress}});var Oe=Bm;Object.defineProperty(e,"recoverMessageAddress",{enumerable:!0,get:function(){return Oe.recoverMessageAddress}});var _e=Nm;Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return _e.recoverPublicKey}});var at=Mm;Object.defineProperty(e,"recoverTypedDataAddress",{enumerable:!0,get:function(){return at.recoverTypedDataAddress}});var Ft=ub;Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return Ft.verifyMessage}});var Lt=db;Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return Lt.verifyTypedData}});var Js=Fm;Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return Js.hashMessage}});var Jm=Lm;Object.defineProperty(e,"getSerializedTransactionType",{enumerable:!0,get:function(){return Jm.getSerializedTransactionType}});var $d=Td;Object.defineProperty(e,"getTransactionType",{enumerable:!0,get:function(){return $d.getTransactionType}});var Zs=Gi;Object.defineProperty(e,"assertRequest",{enumerable:!0,get:function(){return Zs.assertRequest}});var fi=ni;Object.defineProperty(e,"assertTransactionEIP1559",{enumerable:!0,get:function(){return fi.assertTransactionEIP1559}}),Object.defineProperty(e,"assertTransactionEIP2930",{enumerable:!0,get:function(){return fi.assertTransactionEIP2930}}),Object.defineProperty(e,"assertTransactionLegacy",{enumerable:!0,get:function(){return fi.assertTransactionLegacy}});var Ia=ps;Object.defineProperty(e,"parseTransaction",{enumerable:!0,get:function(){return Ia.parseTransaction}});var ta=My();Object.defineProperty(e,"prepareTransactionRequest",{enumerable:!0,get:function(){return ta.prepareTransactionRequest}});var na=NJ();Object.defineProperty(e,"serializeTransaction",{enumerable:!0,get:function(){return na.serializeTransaction}});var ec=Um;Object.defineProperty(e,"serializeAccessList",{enumerable:!0,get:function(){return ec.serializeAccessList}});var tc=Il;Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return tc.formatEther}});var Zm=qi;Object.defineProperty(e,"formatGwei",{enumerable:!0,get:function(){return Zm.formatGwei}});var zd=Cd;Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return zd.formatUnits}});var Hl=Nd;Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return Hl.parseUnits}});var nc=fb;Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return nc.parseEther}});var ep=hb;Object.defineProperty(e,"parseGwei",{enumerable:!0,get:function(){return ep.parseGwei}})}(H3)),H3}var H9;function Y7e(){if(H9)return Pp;H9=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.formatProof=void 0;const e=$m();function t(r){return r.map(o=>({...o,value:BigInt(o.value)}))}function n(r){return{...r,balance:r.balance?BigInt(r.balance):void 0,nonce:r.nonce?(0,e.hexToNumber)(r.nonce):void 0,storageProof:r.storageProof?t(r.storageProof):void 0}}return Pp.formatProof=n,Pp}var q9;function Q7e(){if(q9)return jp;q9=1,Object.defineProperty(jp,"__esModule",{value:!0}),jp.getProof=void 0;const e=$e(),t=Y7e();async function n(r,{address:o,blockNumber:a,blockTag:i,storageKeys:s}){const c=i??"latest",l=a!==void 0?(0,e.numberToHex)(a):void 0,u=await r.request({method:"eth_getProof",params:[o,s,l||c]});return(0,t.formatProof)(u)}return jp.getProof=n,jp}var bC={};Object.defineProperty(bC,"__esModule",{value:!0});bC.getStorageAt=void 0;const X7e=$e();async function J7e(e,{address:t,blockNumber:n,blockTag:r="latest",slot:o}){const a=n!==void 0?(0,X7e.numberToHex)(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,o,a||r]})}bC.getStorageAt=J7e;var zm={};Object.defineProperty(zm,"__esModule",{value:!0});zm.getTransaction=void 0;const Z7e=pt,eT=$e(),eIe=wm;async function tIe(e,{blockHash:t,blockNumber:n,blockTag:r,hash:o,index:a}){var u,d,f;const i=r||"latest",s=n!==void 0?(0,eT.numberToHex)(n):void 0;let c=null;if(o?c=await e.request({method:"eth_getTransactionByHash",params:[o]}):t?c=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,eT.numberToHex)(a)]}):(s||i)&&(c=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[s||i,(0,eT.numberToHex)(a)]})),!c)throw new Z7e.TransactionNotFoundError({blockHash:t,blockNumber:n,blockTag:i,hash:o,index:a});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.transaction)==null?void 0:f.format)||eIe.formatTransaction)(c)}zm.getTransaction=tIe;var vC={};Object.defineProperty(vC,"__esModule",{value:!0});vC.getTransactionConfirmations=void 0;const W9=Bt,nIe=Li,rIe=zm;async function oIe(e,{hash:t,transactionReceipt:n}){const[r,o]=await Promise.all([(0,W9.getAction)(e,nIe.getBlockNumber,"getBlockNumber")({}),t?(0,W9.getAction)(e,rIe.getTransaction,"getBlockNumber")({hash:t}):void 0]),a=(n==null?void 0:n.blockNumber)||(o==null?void 0:o.blockNumber);return a?r-a+1n:0n}vC.getTransactionConfirmations=oIe;var mb={};Object.defineProperty(mb,"__esModule",{value:!0});mb.getTransactionReceipt=void 0;const aIe=pt,iIe=gl;async function sIe(e,{hash:t}){var o,a,i;const n=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!n)throw new aIe.TransactionReceiptNotFoundError({hash:t});return(((i=(a=(o=e.chain)==null?void 0:o.formatters)==null?void 0:a.transactionReceipt)==null?void 0:i.format)||iIe.formatTransactionReceipt)(n)}mb.getTransactionReceipt=sIe;var wC={};Object.defineProperty(wC,"__esModule",{value:!0});wC.multicall=void 0;const cIe=mn,lIe=Jt(),uIe=xt,dIe=Zn,fIe=ui,hIe=ea,mIe=di,G9=Vs,pIe=Bt,gIe=li;async function yIe(e,t){var p;const{allowFailure:n=!0,batchSize:r,blockNumber:o,blockTag:a,contracts:i,multicallAddress:s}=t,c=r??(typeof((p=e.batch)==null?void 0:p.multicall)=="object"&&e.batch.multicall.batchSize||1024);let l=s;if(!l){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");l=(0,mIe.getChainContractAddress)({blockNumber:o,chain:e.chain,contract:"multicall3"})}const u=[[]];let d=0,f=0;for(let b=0;b0&&f>c&&u[d].length>0&&(d++,f=(C.length-2)/2,u[d]=[]),u[d]=[...u[d],{allowFailure:!0,callData:C,target:g}]}catch(C){const x=(0,G9.getContractError)(C,{abi:v,address:g,args:w,docsPath:"/docs/contract/multicall",functionName:_});if(!n)throw x;u[d]=[...u[d],{allowFailure:!0,callData:"0x",target:g}]}}const h=await Promise.allSettled(u.map(b=>(0,pIe.getAction)(e,gIe.readContract,"readContract")({abi:cIe.multicall3Abi,address:l,args:[b],blockNumber:o,blockTag:a,functionName:"aggregate3"}))),m=[];for(let b=0;b{const d=(0,AIe.stringify)(["watchBlockNumber",e.uid,t,n,i]);return(0,SIe.observe)(d,{onBlockNumber:r,onError:o},f=>(0,TIe.poll)(async()=>{var h;try{const m=await(0,CIe.getAction)(e,DIe.getBlockNumber,"getBlockNumber")({cacheTime:0});if(c){if(m===c)return;if(m-c>1&&n)for(let p=c+1n;pc)&&(f.onBlockNumber(m,c),c=m)}catch(m){(h=f.onError)==null||h.call(f,m)}},{emitOnBegin:t,interval:i}))})():(()=>{let d=!0,f=()=>d=!1;return(async()=>{try{const{unsubscribe:h}=await e.transport.subscribe({params:["newHeads"],onData(m){var b;if(!d)return;const p=(0,xIe.hexToBigInt)((b=m.result)==null?void 0:b.number);r(p,c),c=p},onError(m){o==null||o(m)}});f=h,d||f()}catch(h){o==null||o(h)}})(),f})()}pb.watchBlockNumber=kIe;Object.defineProperty(xC,"__esModule",{value:!0});xC.waitForTransactionReceipt=void 0;const jIe=vm,tT=pt,Bp=Bt,PIe=Ad,J9=Gy,IIe=xr,OIe=Ys,RIe=zm,Z9=mb,NIe=pb;async function BIe(e,{confirmations:t=1,hash:n,onReplaced:r,pollingInterval:o=e.pollingInterval,timeout:a}){const i=(0,IIe.stringify)(["waitForTransactionReceipt",e.uid,n]);let s,c,l,u=!1;return new Promise((d,f)=>{a&&setTimeout(()=>f(new tT.WaitForTransactionReceiptTimeoutError({hash:n})),a);const h=(0,PIe.observe)(i,{onReplaced:r,resolve:d,reject:f},m=>{const p=(0,Bp.getAction)(e,NIe.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:o,async onBlockNumber(b){if(u)return;let v=b;const g=w=>{p(),w(),h()};try{if(l){if(t>1&&(!l.blockNumber||v-l.blockNumber+1nm.resolve(l));return}if(s||(u=!0,await(0,J9.withRetry)(async()=>{s=await(0,Bp.getAction)(e,RIe.getTransaction,"getTransaction")({hash:n}),s.blockNumber&&(v=s.blockNumber)},{delay:({count:w})=>~~(1<1&&(!l.blockNumber||v-l.blockNumber+1nm.resolve(l))}catch(w){if(s&&(w instanceof tT.TransactionNotFoundError||w instanceof tT.TransactionReceiptNotFoundError))try{c=s,u=!0;const _=await(0,J9.withRetry)(()=>(0,Bp.getAction)(e,OIe.getBlock,"getBlock")({blockNumber:v,includeTransactions:!0}),{delay:({count:E})=>~~(1<E instanceof jIe.BlockNotFoundError});u=!1;const C=_.transactions.find(({from:E,nonce:T})=>E===c.from&&T===c.nonce);if(!C||(l=await(0,Bp.getAction)(e,Z9.getTransactionReceipt,"getTransactionReceipt")({hash:C.hash}),t>1&&(!l.blockNumber||v-l.blockNumber+1n{var E;(E=m.onReplaced)==null||E.call(m,{reason:x,replacedTransaction:c,transaction:C,transactionReceipt:l}),m.resolve(l)})}catch(_){g(()=>m.reject(_))}else g(()=>m.reject(w))}}})})})}xC.waitForTransactionReceipt=BIe;var CC={};Object.defineProperty(CC,"__esModule",{value:!0});CC.watchBlocks=void 0;const FIe=js,eF=Bt,MIe=Ad,LIe=Fl,UIe=xr,tF=Ys;function $Ie(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:o,onError:a,includeTransactions:i,poll:s,pollingInterval:c=e.pollingInterval}){const l=typeof s<"u"?s:e.transport.type!=="webSocket",u=i??!1;let d;return l?(()=>{const m=(0,UIe.stringify)(["watchBlocks",e.uid,n,r,u,c]);return(0,MIe.observe)(m,{onBlock:o,onError:a},p=>(0,LIe.poll)(async()=>{var b;try{const v=await(0,eF.getAction)(e,tF.getBlock,"getBlock")({blockTag:t,includeTransactions:u});if(v.number&&(d!=null&&d.number)){if(v.number===d.number)return;if(v.number-d.number>1&&n)for(let g=(d==null?void 0:d.number)+1n;gd.number)&&(p.onBlock(v,d),d=v)}catch(v){(b=p.onError)==null||b.call(p,v)}},{emitOnBegin:r,interval:c}))})():(()=>{let m=!0,p=()=>m=!1;return(async()=>{try{const{unsubscribe:b}=await e.transport.subscribe({params:["newHeads"],onData(v){var _,C,x;if(!m)return;const w=(((x=(C=(_=e.chain)==null?void 0:_.formatters)==null?void 0:C.block)==null?void 0:x.format)||FIe.formatBlock)(v.result);o(w,d),d=w},onError(v){a==null||a(v)}});p=b,m||p()}catch(b){a==null||a(b)}})(),p})()}CC.watchBlocks=$Ie;var Fp={},nF;function zIe(){if(nF)return Fp;nF=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.watchEvent=void 0;const e=Ad,t=Fl,n=xr,r=Jt(),o=qe,a=Bt,i=$m(),s=Qy,c=Li,l=Dd,u=xm,d=kd;function f(h,{address:m,args:p,batch:b=!0,event:v,events:g,onError:w,onLogs:_,poll:C,pollingInterval:x=h.pollingInterval,strict:E}){const T=typeof C<"u"?C:h.transport.type!=="webSocket",k=E??!1;return T?(()=>{const F=(0,n.stringify)(["watchEvent",m,p,b,h.uid,v,x]);return(0,e.observe)(F,{onLogs:_,onError:w},B=>{let j,P,O=!1;const I=(0,t.poll)(async()=>{var N;if(!O){try{P=await(0,a.getAction)(h,s.createEventFilter,"createEventFilter")({address:m,args:p,event:v,events:g,strict:k})}catch{}O=!0;return}try{let M;if(P)M=await(0,a.getAction)(h,l.getFilterChanges,"getFilterChanges")({filter:P});else{const L=await(0,a.getAction)(h,c.getBlockNumber,"getBlockNumber")({});j&&j!==L?M=await(0,a.getAction)(h,u.getLogs,"getLogs")({address:m,args:p,event:v,events:g,fromBlock:j+1n,toBlock:L}):M=[],j=L}if(M.length===0)return;if(b)B.onLogs(M);else for(const L of M)B.onLogs([L])}catch(M){P&&M instanceof o.InvalidInputRpcError&&(O=!1),(N=B.onError)==null||N.call(B,M)}},{emitOnBegin:!0,interval:x});return async()=>{P&&await(0,a.getAction)(h,d.uninstallFilter,"uninstallFilter")({filter:P}),I()}})})():(()=>{let F=!0,B=()=>F=!1;return(async()=>{try{const j=g??(v?[v]:void 0);let P=[];j&&(P=[j.flatMap(I=>(0,i.encodeEventTopics)({abi:[I],eventName:I.name,args:p}))],v&&(P=P[0]));const{unsubscribe:O}=await h.transport.subscribe({params:["logs",{address:m,topics:P}],onData(I){var M;if(!F)return;const N=I.result;try{const{eventName:L,args:X}=(0,i.decodeEventLog)({abi:j,data:N.data,topics:N.topics,strict:k}),J=(0,i.formatLog)(N,{args:X,eventName:L});_([J])}catch(L){let X,J;if(L instanceof r.DecodeLogDataMismatch||L instanceof r.DecodeLogTopicsMismatch){if(E)return;X=L.abiItem.name,J=(M=L.abiItem.inputs)==null?void 0:M.some(G=>!("name"in G&&G.name))}const U=(0,i.formatLog)(N,{args:J?[]:{},eventName:X});_([U])}},onError(I){w==null||w(I)}});B=O,F||B()}catch(j){w==null||w(j)}})(),B})()}return Fp.watchEvent=f,Fp}var SC={};Object.defineProperty(SC,"__esModule",{value:!0});SC.watchPendingTransactions=void 0;const nT=Bt,HIe=Ad,qIe=Fl,WIe=xr,GIe=Xy,VIe=Dd,KIe=kd;function YIe(e,{batch:t=!0,onError:n,onTransactions:r,poll:o,pollingInterval:a=e.pollingInterval}){return(typeof o<"u"?o:e.transport.type!=="webSocket")?(()=>{const l=(0,WIe.stringify)(["watchPendingTransactions",e.uid,t,a]);return(0,HIe.observe)(l,{onTransactions:r,onError:n},u=>{let d;const f=(0,qIe.poll)(async()=>{var h;try{if(!d)try{d=await(0,nT.getAction)(e,GIe.createPendingTransactionFilter,"createPendingTransactionFilter")({});return}catch(p){throw f(),p}const m=await(0,nT.getAction)(e,VIe.getFilterChanges,"getFilterChanges")({filter:d});if(m.length===0)return;if(t)u.onTransactions(m);else for(const p of m)u.onTransactions([p])}catch(m){(h=u.onError)==null||h.call(u,m)}},{emitOnBegin:!0,interval:a});return async()=>{d&&await(0,nT.getAction)(e,KIe.uninstallFilter,"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})()}SC.watchPendingTransactions=YIe;var rF;function FJ(){if(rF)return kp;rF=1,Object.defineProperty(kp,"__esModule",{value:!0}),kp.publicActions=void 0;const e=tC,t=rC,n=iC,r=sC,o=Yy,a=$y(),i=cC,s=ym,c=Qy,l=Xy,u=Iy,d=td,f=tP(),h=nd,m=lC,p=Ys,b=Li,v=uC,g=dC,w=Pd,_=_m,C=fC,x=Dd,E=mC,T=Em,k=xm,D=Q7e(),R=bC,F=zm,B=vC,j=Fy,P=mb,O=wC,I=li,N=zy,M=kd,L=EIe(),X=_Ie(),J=xC,U=pb,G=CC,Z=Hy,ae=zIe(),ne=SC,ie=My(),te=Am;function ee(re){return{call:z=>(0,a.call)(re,z),createBlockFilter:()=>(0,i.createBlockFilter)(re),createContractEventFilter:z=>(0,s.createContractEventFilter)(re,z),createEventFilter:z=>(0,c.createEventFilter)(re,z),createPendingTransactionFilter:()=>(0,l.createPendingTransactionFilter)(re),estimateContractGas:z=>(0,u.estimateContractGas)(re,z),estimateGas:z=>(0,f.estimateGas)(re,z),getBalance:z=>(0,m.getBalance)(re,z),getBlock:z=>(0,p.getBlock)(re,z),getBlockNumber:z=>(0,b.getBlockNumber)(re,z),getBlockTransactionCount:z=>(0,v.getBlockTransactionCount)(re,z),getBytecode:z=>(0,g.getBytecode)(re,z),getChainId:()=>(0,w.getChainId)(re),getContractEvents:z=>(0,_.getContractEvents)(re,z),getEnsAddress:z=>(0,e.getEnsAddress)(re,z),getEnsAvatar:z=>(0,t.getEnsAvatar)(re,z),getEnsName:z=>(0,n.getEnsName)(re,z),getEnsResolver:z=>(0,r.getEnsResolver)(re,z),getEnsText:z=>(0,o.getEnsText)(re,z),getFeeHistory:z=>(0,C.getFeeHistory)(re,z),estimateFeesPerGas:z=>(0,d.estimateFeesPerGas)(re,z),getFilterChanges:z=>(0,x.getFilterChanges)(re,z),getFilterLogs:z=>(0,E.getFilterLogs)(re,z),getGasPrice:()=>(0,T.getGasPrice)(re),getLogs:z=>(0,k.getLogs)(re,z),getProof:z=>(0,D.getProof)(re,z),estimateMaxPriorityFeePerGas:z=>(0,h.estimateMaxPriorityFeePerGas)(re,z),getStorageAt:z=>(0,R.getStorageAt)(re,z),getTransaction:z=>(0,F.getTransaction)(re,z),getTransactionConfirmations:z=>(0,B.getTransactionConfirmations)(re,z),getTransactionCount:z=>(0,j.getTransactionCount)(re,z),getTransactionReceipt:z=>(0,P.getTransactionReceipt)(re,z),multicall:z=>(0,O.multicall)(re,z),prepareTransactionRequest:z=>(0,ie.prepareTransactionRequest)(re,z),readContract:z=>(0,I.readContract)(re,z),sendRawTransaction:z=>(0,te.sendRawTransaction)(re,z),simulateContract:z=>(0,N.simulateContract)(re,z),verifyMessage:z=>(0,L.verifyMessage)(re,z),verifyTypedData:z=>(0,X.verifyTypedData)(re,z),uninstallFilter:z=>(0,M.uninstallFilter)(re,z),waitForTransactionReceipt:z=>(0,J.waitForTransactionReceipt)(re,z),watchBlocks:z=>(0,G.watchBlocks)(re,z),watchBlockNumber:z=>(0,U.watchBlockNumber)(re,z),watchContractEvent:z=>(0,Z.watchContractEvent)(re,z),watchEvent:z=>(0,ae.watchEvent)(re,z),watchPendingTransactions:z=>(0,ne.watchPendingTransactions)(re,z)}}return kp.publicActions=ee,kp}var oF;function QIe(){if(oF)return Dp;oF=1,Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.createPublicClient=void 0;const e=Id,t=FJ();function n(r){const{key:o="public",name:a="Public Client"}=r;return(0,e.createClient)({...r,key:o,name:a,type:"publicClient"}).extend(t.publicActions)}return Dp.createPublicClient=n,Dp}var TC={},gb={},AC={};Object.defineProperty(AC,"__esModule",{value:!0});AC.dropTransaction=void 0;async function XIe(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}AC.dropTransaction=XIe;var DC={};Object.defineProperty(DC,"__esModule",{value:!0});DC.dumpState=void 0;async function JIe(e){return e.request({method:`${e.mode}_dumpState`})}DC.dumpState=JIe;var kC={};Object.defineProperty(kC,"__esModule",{value:!0});kC.getAutomine=void 0;async function ZIe(e){return e.mode==="ganache"?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}kC.getAutomine=ZIe;var jC={};Object.defineProperty(jC,"__esModule",{value:!0});jC.getTxpoolContent=void 0;async function eOe(e){return await e.request({method:"txpool_content"})}jC.getTxpoolContent=eOe;var PC={};Object.defineProperty(PC,"__esModule",{value:!0});PC.getTxpoolStatus=void 0;const aF=Wn();async function tOe(e){const{pending:t,queued:n}=await e.request({method:"txpool_status"});return{pending:(0,aF.hexToNumber)(t),queued:(0,aF.hexToNumber)(n)}}PC.getTxpoolStatus=tOe;var IC={};Object.defineProperty(IC,"__esModule",{value:!0});IC.impersonateAccount=void 0;async function nOe(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}IC.impersonateAccount=nOe;var OC={};Object.defineProperty(OC,"__esModule",{value:!0});OC.increaseTime=void 0;const rOe=$e();async function oOe(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[(0,rOe.numberToHex)(t)]})}OC.increaseTime=oOe;var RC={};Object.defineProperty(RC,"__esModule",{value:!0});RC.inspectTxpool=void 0;async function aOe(e){return await e.request({method:"txpool_inspect"})}RC.inspectTxpool=aOe;var NC={};Object.defineProperty(NC,"__esModule",{value:!0});NC.loadState=void 0;async function iOe(e,{state:t}){await e.request({method:`${e.mode}_loadState`,params:[t]})}NC.loadState=iOe;var BC={};Object.defineProperty(BC,"__esModule",{value:!0});BC.mine=void 0;const rT=$e();async function sOe(e,{blocks:t,interval:n}){e.mode==="ganache"?await e.request({method:"evm_mine",params:[{blocks:(0,rT.numberToHex)(t)}]}):await e.request({method:`${e.mode}_mine`,params:[(0,rT.numberToHex)(t),(0,rT.numberToHex)(n||0)]})}BC.mine=sOe;var FC={};Object.defineProperty(FC,"__esModule",{value:!0});FC.removeBlockTimestampInterval=void 0;async function cOe(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}FC.removeBlockTimestampInterval=cOe;var MC={};Object.defineProperty(MC,"__esModule",{value:!0});MC.reset=void 0;async function lOe(e,{blockNumber:t,jsonRpcUrl:n}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:n}}]})}MC.reset=lOe;var LC={};Object.defineProperty(LC,"__esModule",{value:!0});LC.revert=void 0;async function uOe(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}LC.revert=uOe;var UC={};Object.defineProperty(UC,"__esModule",{value:!0});UC.sendUnsignedTransaction=void 0;const dOe=Ol,fOe=Rl;async function hOe(e,t){var v,g,w;const{accessList:n,data:r,from:o,gas:a,gasPrice:i,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,to:u,value:d,...f}=t,h=(w=(g=(v=e.chain)==null?void 0:v.formatters)==null?void 0:g.transactionRequest)==null?void 0:w.format,p=(h||fOe.formatTransactionRequest)({...(0,dOe.extract)(f,{format:h}),accessList:n,data:r,from:o,gas:a,gasPrice:i,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,to:u,value:d});return await e.request({method:"eth_sendUnsignedTransaction",params:[p]})}UC.sendUnsignedTransaction=hOe;var $C={};Object.defineProperty($C,"__esModule",{value:!0});$C.setAutomine=void 0;async function mOe(e,t){e.mode==="ganache"?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}$C.setAutomine=mOe;var zC={};Object.defineProperty(zC,"__esModule",{value:!0});zC.setBalance=void 0;const iF=$e();async function pOe(e,{address:t,value:n}){e.mode==="ganache"?await e.request({method:"evm_setAccountBalance",params:[t,(0,iF.numberToHex)(n)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,(0,iF.numberToHex)(n)]})}zC.setBalance=pOe;var HC={};Object.defineProperty(HC,"__esModule",{value:!0});HC.setBlockGasLimit=void 0;const gOe=$e();async function yOe(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[(0,gOe.numberToHex)(t)]})}HC.setBlockGasLimit=yOe;var qC={};Object.defineProperty(qC,"__esModule",{value:!0});qC.setBlockTimestampInterval=void 0;async function bOe(e,{interval:t}){const n=e.mode==="hardhat"?t*1e3:t;await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[n]})}qC.setBlockTimestampInterval=bOe;var WC={};Object.defineProperty(WC,"__esModule",{value:!0});WC.setCode=void 0;async function vOe(e,{address:t,bytecode:n}){await e.request({method:`${e.mode}_setCode`,params:[t,n]})}WC.setCode=vOe;var GC={};Object.defineProperty(GC,"__esModule",{value:!0});GC.setCoinbase=void 0;async function wOe(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}GC.setCoinbase=wOe;var VC={};Object.defineProperty(VC,"__esModule",{value:!0});VC.setIntervalMining=void 0;async function EOe(e,{interval:t}){const n=e.mode==="hardhat"?t*1e3:t;await e.request({method:"evm_setIntervalMining",params:[n]})}VC.setIntervalMining=EOe;var KC={};Object.defineProperty(KC,"__esModule",{value:!0});KC.setLoggingEnabled=void 0;async function _Oe(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}KC.setLoggingEnabled=_Oe;var YC={};Object.defineProperty(YC,"__esModule",{value:!0});YC.setMinGasPrice=void 0;const xOe=$e();async function COe(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[(0,xOe.numberToHex)(t)]})}YC.setMinGasPrice=COe;var QC={};Object.defineProperty(QC,"__esModule",{value:!0});QC.setNextBlockBaseFeePerGas=void 0;const SOe=$e();async function TOe(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[(0,SOe.numberToHex)(t)]})}QC.setNextBlockBaseFeePerGas=TOe;var XC={};Object.defineProperty(XC,"__esModule",{value:!0});XC.setNextBlockTimestamp=void 0;const AOe=$e();async function DOe(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[(0,AOe.numberToHex)(t)]})}XC.setNextBlockTimestamp=DOe;var JC={};Object.defineProperty(JC,"__esModule",{value:!0});JC.setNonce=void 0;const kOe=$e();async function jOe(e,{address:t,nonce:n}){await e.request({method:`${e.mode}_setNonce`,params:[t,(0,kOe.numberToHex)(n)]})}JC.setNonce=jOe;var ZC={};Object.defineProperty(ZC,"__esModule",{value:!0});ZC.setRpcUrl=void 0;async function POe(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}ZC.setRpcUrl=POe;var e6={};Object.defineProperty(e6,"__esModule",{value:!0});e6.setStorageAt=void 0;const IOe=$e();async function OOe(e,{address:t,index:n,value:r}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,typeof n=="number"?(0,IOe.numberToHex)(n):n,r]})}e6.setStorageAt=OOe;var t6={};Object.defineProperty(t6,"__esModule",{value:!0});t6.snapshot=void 0;async function ROe(e){return await e.request({method:"evm_snapshot"})}t6.snapshot=ROe;var n6={};Object.defineProperty(n6,"__esModule",{value:!0});n6.stopImpersonatingAccount=void 0;async function NOe(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}n6.stopImpersonatingAccount=NOe;Object.defineProperty(gb,"__esModule",{value:!0});gb.testActions=void 0;const BOe=AC,FOe=DC,MOe=kC,LOe=jC,UOe=PC,$Oe=IC,zOe=OC,HOe=RC,qOe=NC,WOe=BC,GOe=FC,VOe=MC,KOe=LC,YOe=UC,QOe=$C,XOe=zC,JOe=HC,ZOe=qC,eRe=WC,tRe=GC,nRe=VC,rRe=KC,oRe=YC,aRe=QC,iRe=XC,sRe=JC,cRe=ZC,lRe=e6,uRe=t6,dRe=n6;function fRe({mode:e}){return t=>{const n=t.extend(()=>({mode:e}));return{dropTransaction:r=>(0,BOe.dropTransaction)(n,r),dumpState:()=>(0,FOe.dumpState)(n),getAutomine:()=>(0,MOe.getAutomine)(n),getTxpoolContent:()=>(0,LOe.getTxpoolContent)(n),getTxpoolStatus:()=>(0,UOe.getTxpoolStatus)(n),impersonateAccount:r=>(0,$Oe.impersonateAccount)(n,r),increaseTime:r=>(0,zOe.increaseTime)(n,r),inspectTxpool:()=>(0,HOe.inspectTxpool)(n),loadState:r=>(0,qOe.loadState)(n,r),mine:r=>(0,WOe.mine)(n,r),removeBlockTimestampInterval:()=>(0,GOe.removeBlockTimestampInterval)(n),reset:r=>(0,VOe.reset)(n,r),revert:r=>(0,KOe.revert)(n,r),sendUnsignedTransaction:r=>(0,YOe.sendUnsignedTransaction)(n,r),setAutomine:r=>(0,QOe.setAutomine)(n,r),setBalance:r=>(0,XOe.setBalance)(n,r),setBlockGasLimit:r=>(0,JOe.setBlockGasLimit)(n,r),setBlockTimestampInterval:r=>(0,ZOe.setBlockTimestampInterval)(n,r),setCode:r=>(0,eRe.setCode)(n,r),setCoinbase:r=>(0,tRe.setCoinbase)(n,r),setIntervalMining:r=>(0,nRe.setIntervalMining)(n,r),setLoggingEnabled:r=>(0,rRe.setLoggingEnabled)(n,r),setMinGasPrice:r=>(0,oRe.setMinGasPrice)(n,r),setNextBlockBaseFeePerGas:r=>(0,aRe.setNextBlockBaseFeePerGas)(n,r),setNextBlockTimestamp:r=>(0,iRe.setNextBlockTimestamp)(n,r),setNonce:r=>(0,sRe.setNonce)(n,r),setRpcUrl:r=>(0,cRe.setRpcUrl)(n,r),setStorageAt:r=>(0,lRe.setStorageAt)(n,r),snapshot:()=>(0,uRe.snapshot)(n),stopImpersonatingAccount:r=>(0,dRe.stopImpersonatingAccount)(n,r)}}}gb.testActions=fRe;Object.defineProperty(TC,"__esModule",{value:!0});TC.createTestClient=void 0;const hRe=Id,mRe=gb;function pRe(e){const{key:t="test",name:n="Test Client",mode:r}=e;return(0,hRe.createClient)({...e,key:t,name:n,type:"testClient"}).extend(a=>({mode:r,...(0,mRe.testActions)({mode:r})(a)}))}TC.createTestClient=pRe;var Mp={},r6={};Object.defineProperty(r6,"__esModule",{value:!0});r6.addChain=void 0;const gRe=$e();async function yRe(e,{chain:t}){const{id:n,name:r,nativeCurrency:o,rpcUrls:a,blockExplorers:i}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,gRe.numberToHex)(n),chainName:r,nativeCurrency:o,rpcUrls:a.default.http,blockExplorerUrls:i?Object.values(i).map(({url:s})=>s):void 0}]})}r6.addChain=yRe;var o6={};Object.defineProperty(o6,"__esModule",{value:!0});o6.deployContract=void 0;const bRe=Im,vRe=Tm;function wRe(e,{abi:t,args:n,bytecode:r,...o}){const a=(0,bRe.encodeDeployData)({abi:t,args:n,bytecode:r});return(0,vRe.sendTransaction)(e,{...o,data:a})}o6.deployContract=wRe;var a6={};Object.defineProperty(a6,"__esModule",{value:!0});a6.getAddresses=void 0;const ERe=Co;async function _Re(e){var n;return((n=e.account)==null?void 0:n.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"})).map(r=>(0,ERe.checksumAddress)(r))}a6.getAddresses=_Re;var i6={};Object.defineProperty(i6,"__esModule",{value:!0});i6.getPermissions=void 0;async function xRe(e){return await e.request({method:"wallet_getPermissions"})}i6.getPermissions=xRe;var s6={};Object.defineProperty(s6,"__esModule",{value:!0});s6.requestAddresses=void 0;const CRe=Co;async function SRe(e){return(await e.request({method:"eth_requestAccounts"})).map(n=>(0,CRe.getAddress)(n))}s6.requestAddresses=SRe;var c6={};Object.defineProperty(c6,"__esModule",{value:!0});c6.requestPermissions=void 0;async function TRe(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}c6.requestPermissions=TRe;var l6={};Object.defineProperty(l6,"__esModule",{value:!0});l6.signMessage=void 0;const ARe=Lr,DRe=Ks,sF=$e();async function kRe(e,{account:t=e.account,message:n}){if(!t)throw new DRe.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const r=(0,ARe.parseAccount)(t);if(r.type==="local")return r.signMessage({message:n});const o=typeof n=="string"?(0,sF.stringToHex)(n):n.raw instanceof Uint8Array?(0,sF.toHex)(n.raw):n.raw;return e.request({method:"personal_sign",params:[o,r.address]})}l6.signMessage=kRe;var Lp={},cF;function jRe(){if(cF)return Lp;cF=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.signTransaction=void 0;const e=Lr,t=Ks,n=jd,r=Rl,o=Bt,a=$m(),i=Gi,s=Pd;async function c(l,u){var g,w,_,C;const{account:d=l.account,chain:f=l.chain,...h}=u;if(!d)throw new t.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const m=(0,e.parseAccount)(d);(0,i.assertRequest)({account:m,...u});const p=await(0,o.getAction)(l,s.getChainId,"getChainId")({});f!==null&&(0,n.assertCurrentChain)({currentChainId:p,chain:f});const b=(f==null?void 0:f.formatters)||((g=l.chain)==null?void 0:g.formatters),v=((w=b==null?void 0:b.transactionRequest)==null?void 0:w.format)||r.formatTransactionRequest;return m.type==="local"?m.signTransaction({...h,chainId:p},{serializer:(C=(_=l.chain)==null?void 0:_.serializers)==null?void 0:C.transaction}):await l.request({method:"eth_signTransaction",params:[{...v(h),chainId:(0,a.numberToHex)(p),from:m.address}]})}return Lp.signTransaction=c,Lp}var u6={};Object.defineProperty(u6,"__esModule",{value:!0});u6.signTypedData=void 0;const PRe=Lr,IRe=Ks,ORe=qn,RRe=xr,lF=pC();async function NRe(e,{account:t=e.account,domain:n,message:r,primaryType:o,types:a}){if(!t)throw new IRe.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const i=(0,PRe.parseAccount)(t),s={EIP712Domain:(0,lF.getTypesForEIP712Domain)({domain:n}),...a};if((0,lF.validateTypedData)({domain:n,message:r,primaryType:o,types:s}),i.type==="local")return i.signTypedData({domain:n,primaryType:o,types:s,message:r});const c=(0,RRe.stringify)({domain:n??{},primaryType:o,types:s,message:r},(l,u)=>(0,ORe.isHex)(u)?u.toLowerCase():u);return e.request({method:"eth_signTypedData_v4",params:[i.address,c]})}u6.signTypedData=NRe;var d6={};Object.defineProperty(d6,"__esModule",{value:!0});d6.switchChain=void 0;const BRe=$e();async function FRe(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,BRe.numberToHex)(t)}]})}d6.switchChain=FRe;var f6={};Object.defineProperty(f6,"__esModule",{value:!0});f6.watchAsset=void 0;async function MRe(e,t){return await e.request({method:"wallet_watchAsset",params:t})}f6.watchAsset=MRe;var uF;function MJ(){if(uF)return Mp;uF=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.walletActions=void 0;const e=Pd,t=r6,n=o6,r=a6,o=i6,a=My(),i=s6,s=c6,c=Am,l=Tm,u=l6,d=jRe(),f=u6,h=d6,m=f6,p=qy;function b(v){return{addChain:g=>(0,t.addChain)(v,g),deployContract:g=>(0,n.deployContract)(v,g),getAddresses:()=>(0,r.getAddresses)(v),getChainId:()=>(0,e.getChainId)(v),getPermissions:()=>(0,o.getPermissions)(v),prepareTransactionRequest:g=>(0,a.prepareTransactionRequest)(v,g),requestAddresses:()=>(0,i.requestAddresses)(v),requestPermissions:g=>(0,s.requestPermissions)(v,g),sendRawTransaction:g=>(0,c.sendRawTransaction)(v,g),sendTransaction:g=>(0,l.sendTransaction)(v,g),signMessage:g=>(0,u.signMessage)(v,g),signTransaction:g=>(0,d.signTransaction)(v,g),signTypedData:g=>(0,f.signTypedData)(v,g),switchChain:g=>(0,h.switchChain)(v,g),watchAsset:g=>(0,m.watchAsset)(v,g),writeContract:g=>(0,p.writeContract)(v,g)}}return Mp.walletActions=b,Mp}var Up={},dF;function LRe(){if(dF)return Up;dF=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.createWalletClient=void 0;const e=Id,t=MJ();function n(r){const{key:o="wallet",name:a="Wallet Client",transport:i}=r;return(0,e.createClient)({...r,key:o,name:a,transport:c=>i({...c,retryCount:0}),type:"walletClient"}).extend(t.walletActions)}return Up.createWalletClient=n,Up}var h6={};Object.defineProperty(h6,"__esModule",{value:!0});h6.webSocket=void 0;const URe=hr,$Re=km,tf=Z2,zRe=Ml;function HRe(e,t={}){const{key:n="webSocket",name:r="WebSocket JSON-RPC",retryDelay:o}=t;return({chain:a,retryCount:i,timeout:s})=>{var d;const c=t.retryCount??i,l=s??t.timeout??1e4,u=e||((d=a==null?void 0:a.rpcUrls.default.webSocket)==null?void 0:d[0]);if(!u)throw new $Re.UrlRequiredError;return(0,zRe.createTransport)({key:n,name:r,async request({method:f,params:h}){const m={method:f,params:h},p=await(0,tf.getSocket)(u),{error:b,result:v}=await tf.rpc.webSocketAsync(p,{body:m,timeout:l});if(b)throw new URe.RpcRequestError({body:m,error:b,url:u});return v},retryCount:c,retryDelay:o,timeout:l,type:"webSocket"},{getSocket(){return(0,tf.getSocket)(u)},async subscribe({params:f,onData:h,onError:m}){const p=await(0,tf.getSocket)(u),{result:b}=await new Promise((v,g)=>tf.rpc.webSocket(p,{body:{method:"eth_subscribe",params:f},onResponse(w){if(w.error){g(w.error),m==null||m(w.error);return}if(typeof w.id=="number"){v(w);return}w.method==="eth_subscription"&&h(w.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(v=>tf.rpc.webSocket(p,{body:{method:"eth_unsubscribe",params:[b]},onResponse:v}))}}}})}}h6.webSocket=HRe;var m6={};Object.defineProperty(m6,"__esModule",{value:!0});m6.zeroAddress=void 0;m6.zeroAddress="0x0000000000000000000000000000000000000000";var q={};Object.defineProperty(q,"__esModule",{value:!0});q.minInt144=q.minInt136=q.minInt128=q.minInt120=q.minInt112=q.minInt104=q.minInt96=q.minInt88=q.minInt80=q.minInt72=q.minInt64=q.minInt56=q.minInt48=q.minInt40=q.minInt32=q.minInt24=q.minInt16=q.minInt8=q.maxInt256=q.maxInt248=q.maxInt240=q.maxInt232=q.maxInt224=q.maxInt216=q.maxInt208=q.maxInt200=q.maxInt192=q.maxInt184=q.maxInt176=q.maxInt168=q.maxInt160=q.maxInt152=q.maxInt144=q.maxInt136=q.maxInt128=q.maxInt120=q.maxInt112=q.maxInt104=q.maxInt96=q.maxInt88=q.maxInt80=q.maxInt72=q.maxInt64=q.maxInt56=q.maxInt48=q.maxInt40=q.maxInt32=q.maxInt24=q.maxInt16=q.maxInt8=void 0;q.maxUint256=q.maxUint248=q.maxUint240=q.maxUint232=q.maxUint224=q.maxUint216=q.maxUint208=q.maxUint200=q.maxUint192=q.maxUint184=q.maxUint176=q.maxUint168=q.maxUint160=q.maxUint152=q.maxUint144=q.maxUint136=q.maxUint128=q.maxUint120=q.maxUint112=q.maxUint104=q.maxUint96=q.maxUint88=q.maxUint80=q.maxUint72=q.maxUint64=q.maxUint56=q.maxUint48=q.maxUint40=q.maxUint32=q.maxUint24=q.maxUint16=q.maxUint8=q.minInt256=q.minInt248=q.minInt240=q.minInt232=q.minInt224=q.minInt216=q.minInt208=q.minInt200=q.minInt192=q.minInt184=q.minInt176=q.minInt168=q.minInt160=q.minInt152=void 0;q.maxInt8=2n**(8n-1n)-1n;q.maxInt16=2n**(16n-1n)-1n;q.maxInt24=2n**(24n-1n)-1n;q.maxInt32=2n**(32n-1n)-1n;q.maxInt40=2n**(40n-1n)-1n;q.maxInt48=2n**(48n-1n)-1n;q.maxInt56=2n**(56n-1n)-1n;q.maxInt64=2n**(64n-1n)-1n;q.maxInt72=2n**(72n-1n)-1n;q.maxInt80=2n**(80n-1n)-1n;q.maxInt88=2n**(88n-1n)-1n;q.maxInt96=2n**(96n-1n)-1n;q.maxInt104=2n**(104n-1n)-1n;q.maxInt112=2n**(112n-1n)-1n;q.maxInt120=2n**(120n-1n)-1n;q.maxInt128=2n**(128n-1n)-1n;q.maxInt136=2n**(136n-1n)-1n;q.maxInt144=2n**(144n-1n)-1n;q.maxInt152=2n**(152n-1n)-1n;q.maxInt160=2n**(160n-1n)-1n;q.maxInt168=2n**(168n-1n)-1n;q.maxInt176=2n**(176n-1n)-1n;q.maxInt184=2n**(184n-1n)-1n;q.maxInt192=2n**(192n-1n)-1n;q.maxInt200=2n**(200n-1n)-1n;q.maxInt208=2n**(208n-1n)-1n;q.maxInt216=2n**(216n-1n)-1n;q.maxInt224=2n**(224n-1n)-1n;q.maxInt232=2n**(232n-1n)-1n;q.maxInt240=2n**(240n-1n)-1n;q.maxInt248=2n**(248n-1n)-1n;q.maxInt256=2n**(256n-1n)-1n;q.minInt8=-(2n**(8n-1n));q.minInt16=-(2n**(16n-1n));q.minInt24=-(2n**(24n-1n));q.minInt32=-(2n**(32n-1n));q.minInt40=-(2n**(40n-1n));q.minInt48=-(2n**(48n-1n));q.minInt56=-(2n**(56n-1n));q.minInt64=-(2n**(64n-1n));q.minInt72=-(2n**(72n-1n));q.minInt80=-(2n**(80n-1n));q.minInt88=-(2n**(88n-1n));q.minInt96=-(2n**(96n-1n));q.minInt104=-(2n**(104n-1n));q.minInt112=-(2n**(112n-1n));q.minInt120=-(2n**(120n-1n));q.minInt128=-(2n**(128n-1n));q.minInt136=-(2n**(136n-1n));q.minInt144=-(2n**(144n-1n));q.minInt152=-(2n**(152n-1n));q.minInt160=-(2n**(160n-1n));q.minInt168=-(2n**(168n-1n));q.minInt176=-(2n**(176n-1n));q.minInt184=-(2n**(184n-1n));q.minInt192=-(2n**(192n-1n));q.minInt200=-(2n**(200n-1n));q.minInt208=-(2n**(208n-1n));q.minInt216=-(2n**(216n-1n));q.minInt224=-(2n**(224n-1n));q.minInt232=-(2n**(232n-1n));q.minInt240=-(2n**(240n-1n));q.minInt248=-(2n**(248n-1n));q.minInt256=-(2n**(256n-1n));q.maxUint8=2n**8n-1n;q.maxUint16=2n**16n-1n;q.maxUint24=2n**24n-1n;q.maxUint32=2n**32n-1n;q.maxUint40=2n**40n-1n;q.maxUint48=2n**48n-1n;q.maxUint56=2n**56n-1n;q.maxUint64=2n**64n-1n;q.maxUint72=2n**72n-1n;q.maxUint80=2n**80n-1n;q.maxUint88=2n**88n-1n;q.maxUint96=2n**96n-1n;q.maxUint104=2n**104n-1n;q.maxUint112=2n**112n-1n;q.maxUint120=2n**120n-1n;q.maxUint128=2n**128n-1n;q.maxUint136=2n**136n-1n;q.maxUint144=2n**144n-1n;q.maxUint152=2n**152n-1n;q.maxUint160=2n**160n-1n;q.maxUint168=2n**168n-1n;q.maxUint176=2n**176n-1n;q.maxUint184=2n**184n-1n;q.maxUint192=2n**192n-1n;q.maxUint200=2n**200n-1n;q.maxUint208=2n**208n-1n;q.maxUint216=2n**216n-1n;q.maxUint224=2n**224n-1n;q.maxUint232=2n**232n-1n;q.maxUint240=2n**240n-1n;q.maxUint248=2n**248n-1n;q.maxUint256=2n**256n-1n;var p6={};Object.defineProperty(p6,"__esModule",{value:!0});p6.zeroHash=void 0;p6.zeroHash="0x0000000000000000000000000000000000000000000000000000000000000000";var g6={};Object.defineProperty(g6,"__esModule",{value:!0});g6.decodeDeployData=void 0;const oT=Jt(),qRe=Hi,aT="/docs/contract/decodeDeployData";function WRe({abi:e,bytecode:t,data:n}){if(n===t)return{bytecode:t};const r=e.find(a=>"type"in a&&a.type==="constructor");if(!r)throw new oT.AbiConstructorNotFoundError({docsPath:aT});if(!("inputs"in r))throw new oT.AbiConstructorParamsNotFoundError({docsPath:aT});if(!r.inputs||r.inputs.length===0)throw new oT.AbiConstructorParamsNotFoundError({docsPath:aT});return{args:(0,qRe.decodeAbiParameters)(r.inputs,`0x${n.replace(t,"")}`),bytecode:t}}g6.decodeDeployData=WRe;var y6={};Object.defineProperty(y6,"__esModule",{value:!0});y6.compactSignatureToSignature=void 0;const GRe=Gn(),VRe=$e();function KRe({r:e,yParityAndS:t}){const n=(0,GRe.hexToBytes)(t),r=n[0]&128?28n:27n,o=n;return r===28n&&(o[0]&=127),{r:e,s:(0,VRe.bytesToHex)(o),v:r}}y6.compactSignatureToSignature=KRe;var b6={};Object.defineProperty(b6,"__esModule",{value:!0});b6.hexToCompactSignature=void 0;const YRe=cb,fF=$e();function QRe(e){const{r:t,s:n}=YRe.secp256k1.Signature.fromCompact(e.slice(2,130));return{r:(0,fF.numberToHex)(t,{size:32}),yParityAndS:(0,fF.numberToHex)(n,{size:32})}}b6.hexToCompactSignature=QRe;var v6={};Object.defineProperty(v6,"__esModule",{value:!0});v6.hexToSignature=void 0;const XRe=cb,hF=$e();function JRe(e){const{r:t,s:n}=XRe.secp256k1.Signature.fromCompact(e.slice(2,130)),r=BigInt(`0x${e.slice(130)}`);return{r:(0,hF.numberToHex)(t,{size:32}),s:(0,hF.numberToHex)(n,{size:32}),v:r}}v6.hexToSignature=JRe;var $p={},mF;function ZRe(){if(mF)return $p;mF=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.signatureToCompactSignature=void 0;const e=$m();function t(n){const{r,s:o,v:a}=n,i=a-27n;let s=o;if(i===1n){const c=(0,e.hexToBytes)(o);c[0]|=128,s=(0,e.bytesToHex)(c)}return{r,yParityAndS:s}}return $p.signatureToCompactSignature=t,$p}var w6={};Object.defineProperty(w6,"__esModule",{value:!0});w6.compactSignatureToHex=void 0;const eNe=cb,pF=Wn();function tNe({r:e,yParityAndS:t}){return`0x${new eNe.secp256k1.Signature((0,pF.hexToBigInt)(e),(0,pF.hexToBigInt)(t)).toCompactHex()}`}w6.compactSignatureToHex=tNe;var E6={};Object.defineProperty(E6,"__esModule",{value:!0});E6.signatureToHex=void 0;const nNe=cb,gF=Wn(),rNe=$e();function oNe({r:e,s:t,v:n}){return`0x${new nNe.secp256k1.Signature((0,gF.hexToBigInt)(e),(0,gF.hexToBigInt)(t)).toCompactHex()}${(0,rNe.toHex)(n).slice(2)}`}E6.signatureToHex=oNe;var yF;function LJ(){return yF||(yF=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.maxInt112=e.maxInt104=e.maxInt96=e.maxInt88=e.maxInt80=e.maxInt72=e.maxInt64=e.maxInt56=e.maxInt48=e.maxInt40=e.maxInt32=e.maxInt24=e.maxInt16=e.maxInt8=e.weiUnits=e.gweiUnits=e.etherUnits=e.zeroAddress=e.multicall3Abi=e.webSocket=e.createWalletClient=e.createTransport=e.walletActions=e.testActions=e.publicActions=e.createTestClient=e.createPublicClient=e.http=e.fallback=e.custom=e.createClient=e.getContract=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.UnknownSignatureError=e.UnknownTypeError=e.SolidityProtectedKeywordError=e.InvalidStructSignatureError=e.InvalidSignatureError=e.InvalidParenthesisError=e.InvalidParameterError=e.InvalidModifierError=e.InvalidFunctionModifierError=e.InvalidAbiTypeParameterError=e.InvalidAbiItemError=e.InvalidAbiParametersError=e.InvalidAbiParameterError=e.CircularReferenceError=void 0,e.maxUint256=e.maxUint248=e.maxUint240=e.maxUint232=e.maxUint224=e.maxUint216=e.maxUint208=e.maxUint200=e.maxUint192=e.maxUint184=e.maxUint176=e.maxUint168=e.maxUint160=e.maxUint152=e.maxUint144=e.maxUint136=e.maxUint128=e.maxUint120=e.maxUint112=e.maxUint104=e.maxUint96=e.maxUint88=e.maxUint80=e.maxUint72=e.maxUint64=e.maxUint56=e.maxUint48=e.maxUint40=e.maxUint32=e.maxUint24=e.maxUint16=e.maxUint8=e.maxInt256=e.maxInt248=e.maxInt240=e.maxInt232=e.maxInt224=e.maxInt216=e.maxInt208=e.maxInt200=e.maxInt192=e.maxInt184=e.maxInt176=e.maxInt168=e.maxInt160=e.maxInt152=e.maxInt144=e.maxInt136=e.maxInt128=e.maxInt120=void 0,e.AbiFunctionOutputsNotFoundError=e.AbiFunctionNotFoundError=e.AbiEventSignatureNotFoundError=e.AbiEventSignatureEmptyTopicsError=e.AbiEventNotFoundError=e.AbiErrorSignatureNotFoundError=e.AbiErrorNotFoundError=e.AbiErrorInputsNotFoundError=e.AbiEncodingBytesSizeMismatchError=e.AbiEncodingLengthMismatchError=e.AbiEncodingArrayLengthMismatchError=e.AbiDecodingZeroDataError=e.AbiDecodingDataSizeTooSmallError=e.AbiDecodingDataSizeInvalidError=e.AbiConstructorParamsNotFoundError=e.AbiConstructorNotFoundError=e.presignMessagePrefix=e.zeroHash=e.minInt256=e.minInt248=e.minInt240=e.minInt232=e.minInt224=e.minInt216=e.minInt208=e.minInt200=e.minInt192=e.minInt184=e.minInt176=e.minInt168=e.minInt160=e.minInt152=e.minInt144=e.minInt136=e.minInt128=e.minInt120=e.minInt112=e.minInt104=e.minInt96=e.minInt88=e.minInt80=e.minInt72=e.minInt64=e.minInt56=e.minInt48=e.minInt40=e.minInt32=e.minInt24=e.minInt16=e.minInt8=void 0,e.InvalidHexBooleanError=e.IntegerOutOfRangeError=e.InvalidBytesBooleanError=e.DataLengthTooShortError=e.DataLengthTooLongError=e.InvalidChainIdError=e.ClientChainNotConfiguredError=e.ChainNotFoundError=e.ChainMismatchError=e.ChainDoesNotSupportContract=e.UserRejectedRequestError=e.UnsupportedProviderMethodError=e.UnknownRpcError=e.UnauthorizedProviderError=e.TransactionRejectedRpcError=e.SwitchChainError=e.RpcError=e.ResourceUnavailableRpcError=e.ResourceNotFoundRpcError=e.ProviderRpcError=e.ProviderDisconnectedError=e.ParseRpcError=e.MethodNotSupportedRpcError=e.MethodNotFoundRpcError=e.LimitExceededRpcError=e.JsonRpcVersionUnsupportedError=e.InvalidRequestRpcError=e.InvalidParamsRpcError=e.InvalidInputRpcError=e.InternalRpcError=e.ChainDisconnectedError=e.MaxFeePerGasTooLowError=e.Eip1559FeesNotSupportedError=e.BaseFeeScalarError=e.RawContractError=e.ContractFunctionZeroDataError=e.ContractFunctionRevertedError=e.ContractFunctionExecutionError=e.CallExecutionError=e.BlockNotFoundError=e.BaseError=e.UnsupportedPackedAbiType=e.InvalidDefinitionTypeError=e.InvalidArrayError=e.InvalidAbiEncodingTypeError=e.InvalidAbiDecodingTypeError=e.DecodeLogTopicsMismatch=e.DecodeLogDataMismatch=e.BytesSizeMismatchError=e.AbiFunctionSignatureNotFoundError=void 0,e.encodeAbiParameters=e.decodeFunctionResult=e.decodeFunctionData=e.decodeEventLog=e.decodeErrorResult=e.decodeDeployData=e.decodeAbiParameters=e.formatLog=e.formatBlock=e.defineBlock=e.namehash=e.labelhash=e.UrlRequiredError=e.SliceOffsetOutOfBoundsError=e.SizeExceedsPaddingSizeError=e.WaitForTransactionReceiptTimeoutError=e.TransactionReceiptNotFoundError=e.TransactionNotFoundError=e.TransactionExecutionError=e.InvalidStorageKeySizeError=e.InvalidSerializedTransactionTypeError=e.InvalidSerializedTransactionError=e.InvalidSerializableTransactionError=e.InvalidLegacyVError=e.FeeConflictError=e.InvalidAddressError=e.WebSocketRequestError=e.TimeoutError=e.RpcRequestError=e.HttpRequestError=e.FilterTypeNotSupportedError=e.UnknownNodeError=e.TransactionTypeNotSupportedError=e.TipAboveFeeCapError=e.NonceTooLowError=e.NonceTooHighError=e.NonceMaxValueError=e.IntrinsicGasTooLowError=e.IntrinsicGasTooHighError=e.InsufficientFundsError=e.FeeCapTooLowError=e.FeeCapTooHighError=e.ExecutionRevertedError=e.EstimateGasExecutionError=e.EnsAvatarUnsupportedNamespaceError=e.EnsAvatarInvalidNftUriError=e.EnsAvatarUriResolutionError=e.SizeOverflowError=e.OffsetOutOfBoundsError=e.InvalidHexValueError=void 0,e.toHex=e.stringToHex=e.numberToHex=e.bytesToHex=e.boolToHex=e.toBytes=e.stringToBytes=e.numberToBytes=e.hexToBytes=e.boolToBytes=e.assertTransactionLegacy=e.assertTransactionEIP2930=e.assertTransactionEIP1559=e.assertRequest=e.verifyTypedData=e.verifyMessage=e.toRlp=e.hexToRlp=e.bytesToRlp=e.signatureToHex=e.compactSignatureToHex=e.signatureToCompactSignature=e.recoverTypedDataAddress=e.recoverPublicKey=e.recoverMessageAddress=e.recoverAddress=e.hexToSignature=e.hexToCompactSignature=e.compactSignatureToSignature=e.hashTypedData=e.hashDomain=e.getTransactionType=e.getSerializedTransactionType=e.getCreateAddress=e.getCreate2Address=e.getContractAddress=e.getAbiItem=e.rpcTransactionType=e.formatTransactionRequest=e.defineTransactionRequest=e.formatTransactionReceipt=e.defineTransactionReceipt=e.transactionType=e.formatTransaction=e.defineTransaction=e.encodeFunctionResult=e.encodeFunctionData=e.encodeEventTopics=e.encodeErrorResult=e.encodeDeployData=void 0,e.parseUnits=e.parseTransaction=e.parseGwei=e.parseEther=e.padHex=e.padBytes=e.pad=e.ripemd160=e.sha256=e.keccak256=e.isHex=e.isHash=e.isBytes=e.isAddressEqual=e.isAddress=e.hashMessage=e.getFunctionSignature=e.getFunctionSelector=e.getEventSignature=e.getEventSelector=e.getContractError=e.getAddress=e.checksumAddress=e.fromRlp=e.hexToString=e.hexToNumber=e.hexToBool=e.hexToBigInt=e.fromHex=e.formatUnits=e.formatGwei=e.formatEther=e.encodePacked=e.getChainContractAddress=e.extractChain=e.defineChain=e.assertCurrentChain=e.concatHex=e.concatBytes=e.concat=e.offchainLookupSignature=e.offchainLookupAbiItem=e.offchainLookup=e.ccipFetch=e.fromBytes=e.bytesToString=e.bytesToNumber=e.bytesToBool=e.bytesToBigint=e.bytesToBigInt=void 0,e.getTypesForEIP712Domain=e.domainSeparator=e.validateTypedData=e.trim=e.stringify=e.sliceHex=e.sliceBytes=e.slice=e.size=e.serializeTransaction=e.serializeAccessList=void 0;var t=V4;Object.defineProperty(e,"CircularReferenceError",{enumerable:!0,get:function(){return t.CircularReferenceError}}),Object.defineProperty(e,"InvalidAbiParameterError",{enumerable:!0,get:function(){return t.InvalidAbiParameterError}}),Object.defineProperty(e,"InvalidAbiParametersError",{enumerable:!0,get:function(){return t.InvalidAbiParametersError}}),Object.defineProperty(e,"InvalidAbiItemError",{enumerable:!0,get:function(){return t.InvalidAbiItemError}}),Object.defineProperty(e,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return t.InvalidAbiTypeParameterError}}),Object.defineProperty(e,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return t.InvalidFunctionModifierError}}),Object.defineProperty(e,"InvalidModifierError",{enumerable:!0,get:function(){return t.InvalidModifierError}}),Object.defineProperty(e,"InvalidParameterError",{enumerable:!0,get:function(){return t.InvalidParameterError}}),Object.defineProperty(e,"InvalidParenthesisError",{enumerable:!0,get:function(){return t.InvalidParenthesisError}}),Object.defineProperty(e,"InvalidSignatureError",{enumerable:!0,get:function(){return t.InvalidSignatureError}}),Object.defineProperty(e,"InvalidStructSignatureError",{enumerable:!0,get:function(){return t.InvalidStructSignatureError}}),Object.defineProperty(e,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return t.SolidityProtectedKeywordError}}),Object.defineProperty(e,"UnknownTypeError",{enumerable:!0,get:function(){return t.UnknownTypeError}}),Object.defineProperty(e,"UnknownSignatureError",{enumerable:!0,get:function(){return t.UnknownSignatureError}}),Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return t.parseAbi}}),Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return t.parseAbiItem}}),Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return t.parseAbiParameter}}),Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return t.parseAbiParameters}});var n=Kc;Object.defineProperty(e,"getContract",{enumerable:!0,get:function(){return n.getContract}});var r=Id;Object.defineProperty(e,"createClient",{enumerable:!0,get:function(){return r.createClient}});var o=Q2;Object.defineProperty(e,"custom",{enumerable:!0,get:function(){return o.custom}});var a=Ih;Object.defineProperty(e,"fallback",{enumerable:!0,get:function(){return a.fallback}});var i=J2;Object.defineProperty(e,"http",{enumerable:!0,get:function(){return i.http}});var s=QIe();Object.defineProperty(e,"createPublicClient",{enumerable:!0,get:function(){return s.createPublicClient}});var c=TC;Object.defineProperty(e,"createTestClient",{enumerable:!0,get:function(){return c.createTestClient}});var l=FJ();Object.defineProperty(e,"publicActions",{enumerable:!0,get:function(){return l.publicActions}});var u=gb;Object.defineProperty(e,"testActions",{enumerable:!0,get:function(){return u.testActions}});var d=MJ();Object.defineProperty(e,"walletActions",{enumerable:!0,get:function(){return d.walletActions}});var f=Ml;Object.defineProperty(e,"createTransport",{enumerable:!0,get:function(){return f.createTransport}});var h=LRe();Object.defineProperty(e,"createWalletClient",{enumerable:!0,get:function(){return h.createWalletClient}});var m=h6;Object.defineProperty(e,"webSocket",{enumerable:!0,get:function(){return m.webSocket}});var p=mn;Object.defineProperty(e,"multicall3Abi",{enumerable:!0,get:function(){return p.multicall3Abi}});var b=m6;Object.defineProperty(e,"zeroAddress",{enumerable:!0,get:function(){return b.zeroAddress}});var v=ya;Object.defineProperty(e,"etherUnits",{enumerable:!0,get:function(){return v.etherUnits}}),Object.defineProperty(e,"gweiUnits",{enumerable:!0,get:function(){return v.gweiUnits}}),Object.defineProperty(e,"weiUnits",{enumerable:!0,get:function(){return v.weiUnits}});var g=q;Object.defineProperty(e,"maxInt8",{enumerable:!0,get:function(){return g.maxInt8}}),Object.defineProperty(e,"maxInt16",{enumerable:!0,get:function(){return g.maxInt16}}),Object.defineProperty(e,"maxInt24",{enumerable:!0,get:function(){return g.maxInt24}}),Object.defineProperty(e,"maxInt32",{enumerable:!0,get:function(){return g.maxInt32}}),Object.defineProperty(e,"maxInt40",{enumerable:!0,get:function(){return g.maxInt40}}),Object.defineProperty(e,"maxInt48",{enumerable:!0,get:function(){return g.maxInt48}}),Object.defineProperty(e,"maxInt56",{enumerable:!0,get:function(){return g.maxInt56}}),Object.defineProperty(e,"maxInt64",{enumerable:!0,get:function(){return g.maxInt64}}),Object.defineProperty(e,"maxInt72",{enumerable:!0,get:function(){return g.maxInt72}}),Object.defineProperty(e,"maxInt80",{enumerable:!0,get:function(){return g.maxInt80}}),Object.defineProperty(e,"maxInt88",{enumerable:!0,get:function(){return g.maxInt88}}),Object.defineProperty(e,"maxInt96",{enumerable:!0,get:function(){return g.maxInt96}}),Object.defineProperty(e,"maxInt104",{enumerable:!0,get:function(){return g.maxInt104}}),Object.defineProperty(e,"maxInt112",{enumerable:!0,get:function(){return g.maxInt112}}),Object.defineProperty(e,"maxInt120",{enumerable:!0,get:function(){return g.maxInt120}}),Object.defineProperty(e,"maxInt128",{enumerable:!0,get:function(){return g.maxInt128}}),Object.defineProperty(e,"maxInt136",{enumerable:!0,get:function(){return g.maxInt136}}),Object.defineProperty(e,"maxInt144",{enumerable:!0,get:function(){return g.maxInt144}}),Object.defineProperty(e,"maxInt152",{enumerable:!0,get:function(){return g.maxInt152}}),Object.defineProperty(e,"maxInt160",{enumerable:!0,get:function(){return g.maxInt160}}),Object.defineProperty(e,"maxInt168",{enumerable:!0,get:function(){return g.maxInt168}}),Object.defineProperty(e,"maxInt176",{enumerable:!0,get:function(){return g.maxInt176}}),Object.defineProperty(e,"maxInt184",{enumerable:!0,get:function(){return g.maxInt184}}),Object.defineProperty(e,"maxInt192",{enumerable:!0,get:function(){return g.maxInt192}}),Object.defineProperty(e,"maxInt200",{enumerable:!0,get:function(){return g.maxInt200}}),Object.defineProperty(e,"maxInt208",{enumerable:!0,get:function(){return g.maxInt208}}),Object.defineProperty(e,"maxInt216",{enumerable:!0,get:function(){return g.maxInt216}}),Object.defineProperty(e,"maxInt224",{enumerable:!0,get:function(){return g.maxInt224}}),Object.defineProperty(e,"maxInt232",{enumerable:!0,get:function(){return g.maxInt232}}),Object.defineProperty(e,"maxInt240",{enumerable:!0,get:function(){return g.maxInt240}}),Object.defineProperty(e,"maxInt248",{enumerable:!0,get:function(){return g.maxInt248}}),Object.defineProperty(e,"maxInt256",{enumerable:!0,get:function(){return g.maxInt256}}),Object.defineProperty(e,"maxUint8",{enumerable:!0,get:function(){return g.maxUint8}}),Object.defineProperty(e,"maxUint16",{enumerable:!0,get:function(){return g.maxUint16}}),Object.defineProperty(e,"maxUint24",{enumerable:!0,get:function(){return g.maxUint24}}),Object.defineProperty(e,"maxUint32",{enumerable:!0,get:function(){return g.maxUint32}}),Object.defineProperty(e,"maxUint40",{enumerable:!0,get:function(){return g.maxUint40}}),Object.defineProperty(e,"maxUint48",{enumerable:!0,get:function(){return g.maxUint48}}),Object.defineProperty(e,"maxUint56",{enumerable:!0,get:function(){return g.maxUint56}}),Object.defineProperty(e,"maxUint64",{enumerable:!0,get:function(){return g.maxUint64}}),Object.defineProperty(e,"maxUint72",{enumerable:!0,get:function(){return g.maxUint72}}),Object.defineProperty(e,"maxUint80",{enumerable:!0,get:function(){return g.maxUint80}}),Object.defineProperty(e,"maxUint88",{enumerable:!0,get:function(){return g.maxUint88}}),Object.defineProperty(e,"maxUint96",{enumerable:!0,get:function(){return g.maxUint96}}),Object.defineProperty(e,"maxUint104",{enumerable:!0,get:function(){return g.maxUint104}}),Object.defineProperty(e,"maxUint112",{enumerable:!0,get:function(){return g.maxUint112}}),Object.defineProperty(e,"maxUint120",{enumerable:!0,get:function(){return g.maxUint120}}),Object.defineProperty(e,"maxUint128",{enumerable:!0,get:function(){return g.maxUint128}}),Object.defineProperty(e,"maxUint136",{enumerable:!0,get:function(){return g.maxUint136}}),Object.defineProperty(e,"maxUint144",{enumerable:!0,get:function(){return g.maxUint144}}),Object.defineProperty(e,"maxUint152",{enumerable:!0,get:function(){return g.maxUint152}}),Object.defineProperty(e,"maxUint160",{enumerable:!0,get:function(){return g.maxUint160}}),Object.defineProperty(e,"maxUint168",{enumerable:!0,get:function(){return g.maxUint168}}),Object.defineProperty(e,"maxUint176",{enumerable:!0,get:function(){return g.maxUint176}}),Object.defineProperty(e,"maxUint184",{enumerable:!0,get:function(){return g.maxUint184}}),Object.defineProperty(e,"maxUint192",{enumerable:!0,get:function(){return g.maxUint192}}),Object.defineProperty(e,"maxUint200",{enumerable:!0,get:function(){return g.maxUint200}}),Object.defineProperty(e,"maxUint208",{enumerable:!0,get:function(){return g.maxUint208}}),Object.defineProperty(e,"maxUint216",{enumerable:!0,get:function(){return g.maxUint216}}),Object.defineProperty(e,"maxUint224",{enumerable:!0,get:function(){return g.maxUint224}}),Object.defineProperty(e,"maxUint232",{enumerable:!0,get:function(){return g.maxUint232}}),Object.defineProperty(e,"maxUint240",{enumerable:!0,get:function(){return g.maxUint240}}),Object.defineProperty(e,"maxUint248",{enumerable:!0,get:function(){return g.maxUint248}}),Object.defineProperty(e,"maxUint256",{enumerable:!0,get:function(){return g.maxUint256}}),Object.defineProperty(e,"minInt8",{enumerable:!0,get:function(){return g.minInt8}}),Object.defineProperty(e,"minInt16",{enumerable:!0,get:function(){return g.minInt16}}),Object.defineProperty(e,"minInt24",{enumerable:!0,get:function(){return g.minInt24}}),Object.defineProperty(e,"minInt32",{enumerable:!0,get:function(){return g.minInt32}}),Object.defineProperty(e,"minInt40",{enumerable:!0,get:function(){return g.minInt40}}),Object.defineProperty(e,"minInt48",{enumerable:!0,get:function(){return g.minInt48}}),Object.defineProperty(e,"minInt56",{enumerable:!0,get:function(){return g.minInt56}}),Object.defineProperty(e,"minInt64",{enumerable:!0,get:function(){return g.minInt64}}),Object.defineProperty(e,"minInt72",{enumerable:!0,get:function(){return g.minInt72}}),Object.defineProperty(e,"minInt80",{enumerable:!0,get:function(){return g.minInt80}}),Object.defineProperty(e,"minInt88",{enumerable:!0,get:function(){return g.minInt88}}),Object.defineProperty(e,"minInt96",{enumerable:!0,get:function(){return g.minInt96}}),Object.defineProperty(e,"minInt104",{enumerable:!0,get:function(){return g.minInt104}}),Object.defineProperty(e,"minInt112",{enumerable:!0,get:function(){return g.minInt112}}),Object.defineProperty(e,"minInt120",{enumerable:!0,get:function(){return g.minInt120}}),Object.defineProperty(e,"minInt128",{enumerable:!0,get:function(){return g.minInt128}}),Object.defineProperty(e,"minInt136",{enumerable:!0,get:function(){return g.minInt136}}),Object.defineProperty(e,"minInt144",{enumerable:!0,get:function(){return g.minInt144}}),Object.defineProperty(e,"minInt152",{enumerable:!0,get:function(){return g.minInt152}}),Object.defineProperty(e,"minInt160",{enumerable:!0,get:function(){return g.minInt160}}),Object.defineProperty(e,"minInt168",{enumerable:!0,get:function(){return g.minInt168}}),Object.defineProperty(e,"minInt176",{enumerable:!0,get:function(){return g.minInt176}}),Object.defineProperty(e,"minInt184",{enumerable:!0,get:function(){return g.minInt184}}),Object.defineProperty(e,"minInt192",{enumerable:!0,get:function(){return g.minInt192}}),Object.defineProperty(e,"minInt200",{enumerable:!0,get:function(){return g.minInt200}}),Object.defineProperty(e,"minInt208",{enumerable:!0,get:function(){return g.minInt208}}),Object.defineProperty(e,"minInt216",{enumerable:!0,get:function(){return g.minInt216}}),Object.defineProperty(e,"minInt224",{enumerable:!0,get:function(){return g.minInt224}}),Object.defineProperty(e,"minInt232",{enumerable:!0,get:function(){return g.minInt232}}),Object.defineProperty(e,"minInt240",{enumerable:!0,get:function(){return g.minInt240}}),Object.defineProperty(e,"minInt248",{enumerable:!0,get:function(){return g.minInt248}}),Object.defineProperty(e,"minInt256",{enumerable:!0,get:function(){return g.minInt256}});var w=p6;Object.defineProperty(e,"zeroHash",{enumerable:!0,get:function(){return w.zeroHash}});var _=lb;Object.defineProperty(e,"presignMessagePrefix",{enumerable:!0,get:function(){return _.presignMessagePrefix}});var C=Jt();Object.defineProperty(e,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return C.AbiConstructorNotFoundError}}),Object.defineProperty(e,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return C.AbiConstructorParamsNotFoundError}}),Object.defineProperty(e,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return C.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(e,"AbiDecodingDataSizeTooSmallError",{enumerable:!0,get:function(){return C.AbiDecodingDataSizeTooSmallError}}),Object.defineProperty(e,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return C.AbiDecodingZeroDataError}}),Object.defineProperty(e,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return C.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(e,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return C.AbiEncodingLengthMismatchError}}),Object.defineProperty(e,"AbiEncodingBytesSizeMismatchError",{enumerable:!0,get:function(){return C.AbiEncodingBytesSizeMismatchError}}),Object.defineProperty(e,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return C.AbiErrorInputsNotFoundError}}),Object.defineProperty(e,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return C.AbiErrorNotFoundError}}),Object.defineProperty(e,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return C.AbiErrorSignatureNotFoundError}}),Object.defineProperty(e,"AbiEventNotFoundError",{enumerable:!0,get:function(){return C.AbiEventNotFoundError}}),Object.defineProperty(e,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return C.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(e,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return C.AbiEventSignatureNotFoundError}}),Object.defineProperty(e,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return C.AbiFunctionNotFoundError}}),Object.defineProperty(e,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return C.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(e,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return C.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(e,"BytesSizeMismatchError",{enumerable:!0,get:function(){return C.BytesSizeMismatchError}}),Object.defineProperty(e,"DecodeLogDataMismatch",{enumerable:!0,get:function(){return C.DecodeLogDataMismatch}}),Object.defineProperty(e,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return C.DecodeLogTopicsMismatch}}),Object.defineProperty(e,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return C.InvalidAbiDecodingTypeError}}),Object.defineProperty(e,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return C.InvalidAbiEncodingTypeError}}),Object.defineProperty(e,"InvalidArrayError",{enumerable:!0,get:function(){return C.InvalidArrayError}}),Object.defineProperty(e,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return C.InvalidDefinitionTypeError}}),Object.defineProperty(e,"UnsupportedPackedAbiType",{enumerable:!0,get:function(){return C.UnsupportedPackedAbiType}});var x=xt;Object.defineProperty(e,"BaseError",{enumerable:!0,get:function(){return x.BaseError}});var E=vm;Object.defineProperty(e,"BlockNotFoundError",{enumerable:!0,get:function(){return E.BlockNotFoundError}});var T=Zn;Object.defineProperty(e,"CallExecutionError",{enumerable:!0,get:function(){return T.CallExecutionError}}),Object.defineProperty(e,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return T.ContractFunctionExecutionError}}),Object.defineProperty(e,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return T.ContractFunctionRevertedError}}),Object.defineProperty(e,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return T.ContractFunctionZeroDataError}}),Object.defineProperty(e,"RawContractError",{enumerable:!0,get:function(){return T.RawContractError}});var k=ti;Object.defineProperty(e,"BaseFeeScalarError",{enumerable:!0,get:function(){return k.BaseFeeScalarError}}),Object.defineProperty(e,"Eip1559FeesNotSupportedError",{enumerable:!0,get:function(){return k.Eip1559FeesNotSupportedError}}),Object.defineProperty(e,"MaxFeePerGasTooLowError",{enumerable:!0,get:function(){return k.MaxFeePerGasTooLowError}});var D=qe;Object.defineProperty(e,"ChainDisconnectedError",{enumerable:!0,get:function(){return D.ChainDisconnectedError}}),Object.defineProperty(e,"InternalRpcError",{enumerable:!0,get:function(){return D.InternalRpcError}}),Object.defineProperty(e,"InvalidInputRpcError",{enumerable:!0,get:function(){return D.InvalidInputRpcError}}),Object.defineProperty(e,"InvalidParamsRpcError",{enumerable:!0,get:function(){return D.InvalidParamsRpcError}}),Object.defineProperty(e,"InvalidRequestRpcError",{enumerable:!0,get:function(){return D.InvalidRequestRpcError}}),Object.defineProperty(e,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return D.JsonRpcVersionUnsupportedError}}),Object.defineProperty(e,"LimitExceededRpcError",{enumerable:!0,get:function(){return D.LimitExceededRpcError}}),Object.defineProperty(e,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return D.MethodNotFoundRpcError}}),Object.defineProperty(e,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return D.MethodNotSupportedRpcError}}),Object.defineProperty(e,"ParseRpcError",{enumerable:!0,get:function(){return D.ParseRpcError}}),Object.defineProperty(e,"ProviderDisconnectedError",{enumerable:!0,get:function(){return D.ProviderDisconnectedError}}),Object.defineProperty(e,"ProviderRpcError",{enumerable:!0,get:function(){return D.ProviderRpcError}}),Object.defineProperty(e,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return D.ResourceNotFoundRpcError}}),Object.defineProperty(e,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return D.ResourceUnavailableRpcError}}),Object.defineProperty(e,"RpcError",{enumerable:!0,get:function(){return D.RpcError}}),Object.defineProperty(e,"SwitchChainError",{enumerable:!0,get:function(){return D.SwitchChainError}}),Object.defineProperty(e,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return D.TransactionRejectedRpcError}}),Object.defineProperty(e,"UnauthorizedProviderError",{enumerable:!0,get:function(){return D.UnauthorizedProviderError}}),Object.defineProperty(e,"UnknownRpcError",{enumerable:!0,get:function(){return D.UnknownRpcError}}),Object.defineProperty(e,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return D.UnsupportedProviderMethodError}}),Object.defineProperty(e,"UserRejectedRequestError",{enumerable:!0,get:function(){return D.UserRejectedRequestError}});var R=Pr;Object.defineProperty(e,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return R.ChainDoesNotSupportContract}}),Object.defineProperty(e,"ChainMismatchError",{enumerable:!0,get:function(){return R.ChainMismatchError}}),Object.defineProperty(e,"ChainNotFoundError",{enumerable:!0,get:function(){return R.ChainNotFoundError}}),Object.defineProperty(e,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return R.ClientChainNotConfiguredError}}),Object.defineProperty(e,"InvalidChainIdError",{enumerable:!0,get:function(){return R.InvalidChainIdError}});var F=hn;Object.defineProperty(e,"DataLengthTooLongError",{enumerable:!0,get:function(){return F.DataLengthTooLongError}}),Object.defineProperty(e,"DataLengthTooShortError",{enumerable:!0,get:function(){return F.DataLengthTooShortError}}),Object.defineProperty(e,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return F.InvalidBytesBooleanError}}),Object.defineProperty(e,"IntegerOutOfRangeError",{enumerable:!0,get:function(){return F.IntegerOutOfRangeError}}),Object.defineProperty(e,"InvalidHexBooleanError",{enumerable:!0,get:function(){return F.InvalidHexBooleanError}}),Object.defineProperty(e,"InvalidHexValueError",{enumerable:!0,get:function(){return F.InvalidHexValueError}}),Object.defineProperty(e,"OffsetOutOfBoundsError",{enumerable:!0,get:function(){return F.OffsetOutOfBoundsError}}),Object.defineProperty(e,"SizeOverflowError",{enumerable:!0,get:function(){return F.SizeOverflowError}});var B=Qa;Object.defineProperty(e,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return B.EnsAvatarUriResolutionError}}),Object.defineProperty(e,"EnsAvatarInvalidNftUriError",{enumerable:!0,get:function(){return B.EnsAvatarInvalidNftUriError}}),Object.defineProperty(e,"EnsAvatarUnsupportedNamespaceError",{enumerable:!0,get:function(){return B.EnsAvatarUnsupportedNamespaceError}});var j=By;Object.defineProperty(e,"EstimateGasExecutionError",{enumerable:!0,get:function(){return j.EstimateGasExecutionError}});var P=St;Object.defineProperty(e,"ExecutionRevertedError",{enumerable:!0,get:function(){return P.ExecutionRevertedError}}),Object.defineProperty(e,"FeeCapTooHighError",{enumerable:!0,get:function(){return P.FeeCapTooHighError}}),Object.defineProperty(e,"FeeCapTooLowError",{enumerable:!0,get:function(){return P.FeeCapTooLowError}}),Object.defineProperty(e,"InsufficientFundsError",{enumerable:!0,get:function(){return P.InsufficientFundsError}}),Object.defineProperty(e,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return P.IntrinsicGasTooHighError}}),Object.defineProperty(e,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return P.IntrinsicGasTooLowError}}),Object.defineProperty(e,"NonceMaxValueError",{enumerable:!0,get:function(){return P.NonceMaxValueError}}),Object.defineProperty(e,"NonceTooHighError",{enumerable:!0,get:function(){return P.NonceTooHighError}}),Object.defineProperty(e,"NonceTooLowError",{enumerable:!0,get:function(){return P.NonceTooLowError}}),Object.defineProperty(e,"TipAboveFeeCapError",{enumerable:!0,get:function(){return P.TipAboveFeeCapError}}),Object.defineProperty(e,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return P.TransactionTypeNotSupportedError}}),Object.defineProperty(e,"UnknownNodeError",{enumerable:!0,get:function(){return P.UnknownNodeError}});var O=jy;Object.defineProperty(e,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return O.FilterTypeNotSupportedError}});var I=hr;Object.defineProperty(e,"HttpRequestError",{enumerable:!0,get:function(){return I.HttpRequestError}}),Object.defineProperty(e,"RpcRequestError",{enumerable:!0,get:function(){return I.RpcRequestError}}),Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return I.TimeoutError}}),Object.defineProperty(e,"WebSocketRequestError",{enumerable:!0,get:function(){return I.WebSocketRequestError}});var N=Zo;Object.defineProperty(e,"InvalidAddressError",{enumerable:!0,get:function(){return N.InvalidAddressError}});var M=pt;Object.defineProperty(e,"FeeConflictError",{enumerable:!0,get:function(){return M.FeeConflictError}}),Object.defineProperty(e,"InvalidLegacyVError",{enumerable:!0,get:function(){return M.InvalidLegacyVError}}),Object.defineProperty(e,"InvalidSerializableTransactionError",{enumerable:!0,get:function(){return M.InvalidSerializableTransactionError}}),Object.defineProperty(e,"InvalidSerializedTransactionError",{enumerable:!0,get:function(){return M.InvalidSerializedTransactionError}}),Object.defineProperty(e,"InvalidSerializedTransactionTypeError",{enumerable:!0,get:function(){return M.InvalidSerializedTransactionTypeError}}),Object.defineProperty(e,"InvalidStorageKeySizeError",{enumerable:!0,get:function(){return M.InvalidStorageKeySizeError}}),Object.defineProperty(e,"TransactionExecutionError",{enumerable:!0,get:function(){return M.TransactionExecutionError}}),Object.defineProperty(e,"TransactionNotFoundError",{enumerable:!0,get:function(){return M.TransactionNotFoundError}}),Object.defineProperty(e,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return M.TransactionReceiptNotFoundError}}),Object.defineProperty(e,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return M.WaitForTransactionReceiptTimeoutError}});var L=pl;Object.defineProperty(e,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return L.SizeExceedsPaddingSizeError}}),Object.defineProperty(e,"SliceOffsetOutOfBoundsError",{enumerable:!0,get:function(){return L.SliceOffsetOutOfBoundsError}});var X=km;Object.defineProperty(e,"UrlRequiredError",{enumerable:!0,get:function(){return X.UrlRequiredError}});var J=Ky;Object.defineProperty(e,"labelhash",{enumerable:!0,get:function(){return J.labelhash}});var U=Pm;Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return U.namehash}});var G=js;Object.defineProperty(e,"defineBlock",{enumerable:!0,get:function(){return G.defineBlock}}),Object.defineProperty(e,"formatBlock",{enumerable:!0,get:function(){return G.formatBlock}});var Z=Vi;Object.defineProperty(e,"formatLog",{enumerable:!0,get:function(){return Z.formatLog}});var ae=Hi;Object.defineProperty(e,"decodeAbiParameters",{enumerable:!0,get:function(){return ae.decodeAbiParameters}});var ne=g6;Object.defineProperty(e,"decodeDeployData",{enumerable:!0,get:function(){return ne.decodeDeployData}});var ie=xd;Object.defineProperty(e,"decodeErrorResult",{enumerable:!0,get:function(){return ie.decodeErrorResult}});var te=Qs;Object.defineProperty(e,"decodeEventLog",{enumerable:!0,get:function(){return te.decodeEventLog}});var ee=tb;Object.defineProperty(e,"decodeFunctionData",{enumerable:!0,get:function(){return ee.decodeFunctionData}});var re=ui;Object.defineProperty(e,"decodeFunctionResult",{enumerable:!0,get:function(){return re.decodeFunctionResult}});var z=ao;Object.defineProperty(e,"encodeAbiParameters",{enumerable:!0,get:function(){return z.encodeAbiParameters}});var fe=Im;Object.defineProperty(e,"encodeDeployData",{enumerable:!0,get:function(){return fe.encodeDeployData}});var ve=nb;Object.defineProperty(e,"encodeErrorResult",{enumerable:!0,get:function(){return ve.encodeErrorResult}});var Ue=Ws;Object.defineProperty(e,"encodeEventTopics",{enumerable:!0,get:function(){return Ue.encodeEventTopics}});var ke=ea;Object.defineProperty(e,"encodeFunctionData",{enumerable:!0,get:function(){return ke.encodeFunctionData}});var Qe=rb;Object.defineProperty(e,"encodeFunctionResult",{enumerable:!0,get:function(){return Qe.encodeFunctionResult}});var Te=wm;Object.defineProperty(e,"defineTransaction",{enumerable:!0,get:function(){return Te.defineTransaction}}),Object.defineProperty(e,"formatTransaction",{enumerable:!0,get:function(){return Te.formatTransaction}}),Object.defineProperty(e,"transactionType",{enumerable:!0,get:function(){return Te.transactionType}});var Ee=gl;Object.defineProperty(e,"defineTransactionReceipt",{enumerable:!0,get:function(){return Ee.defineTransactionReceipt}}),Object.defineProperty(e,"formatTransactionReceipt",{enumerable:!0,get:function(){return Ee.formatTransactionReceipt}});var he=Rl;Object.defineProperty(e,"defineTransactionRequest",{enumerable:!0,get:function(){return he.defineTransactionRequest}}),Object.defineProperty(e,"formatTransactionRequest",{enumerable:!0,get:function(){return he.formatTransactionRequest}}),Object.defineProperty(e,"rpcTransactionType",{enumerable:!0,get:function(){return he.rpcTransactionType}});var Me=Br;Object.defineProperty(e,"getAbiItem",{enumerable:!0,get:function(){return Me.getAbiItem}});var ge=SJ();Object.defineProperty(e,"getContractAddress",{enumerable:!0,get:function(){return ge.getContractAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return ge.getCreate2Address}}),Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return ge.getCreateAddress}});var Y=Lm;Object.defineProperty(e,"getSerializedTransactionType",{enumerable:!0,get:function(){return Y.getSerializedTransactionType}});var W=Td;Object.defineProperty(e,"getTransactionType",{enumerable:!0,get:function(){return W.getTransactionType}});var Q=eb();Object.defineProperty(e,"hashDomain",{enumerable:!0,get:function(){return Q.hashDomain}}),Object.defineProperty(e,"hashTypedData",{enumerable:!0,get:function(){return Q.hashTypedData}});var ce=y6;Object.defineProperty(e,"compactSignatureToSignature",{enumerable:!0,get:function(){return ce.compactSignatureToSignature}});var pe=b6;Object.defineProperty(e,"hexToCompactSignature",{enumerable:!0,get:function(){return pe.hexToCompactSignature}});var De=v6;Object.defineProperty(e,"hexToSignature",{enumerable:!0,get:function(){return De.hexToSignature}});var Ie=Rd;Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return Ie.recoverAddress}});var Je=Bm;Object.defineProperty(e,"recoverMessageAddress",{enumerable:!0,get:function(){return Je.recoverMessageAddress}});var Oe=Nm;Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return Oe.recoverPublicKey}});var _e=Mm;Object.defineProperty(e,"recoverTypedDataAddress",{enumerable:!0,get:function(){return _e.recoverTypedDataAddress}});var at=ZRe();Object.defineProperty(e,"signatureToCompactSignature",{enumerable:!0,get:function(){return at.signatureToCompactSignature}});var Ft=w6;Object.defineProperty(e,"compactSignatureToHex",{enumerable:!0,get:function(){return Ft.compactSignatureToHex}});var Lt=E6;Object.defineProperty(e,"signatureToHex",{enumerable:!0,get:function(){return Lt.signatureToHex}});var Js=gC();Object.defineProperty(e,"bytesToRlp",{enumerable:!0,get:function(){return Js.bytesToRlp}}),Object.defineProperty(e,"hexToRlp",{enumerable:!0,get:function(){return Js.hexToRlp}}),Object.defineProperty(e,"toRlp",{enumerable:!0,get:function(){return Js.toRlp}});var Jm=ub;Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return Jm.verifyMessage}});var $d=db;Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return $d.verifyTypedData}});var Zs=Gi;Object.defineProperty(e,"assertRequest",{enumerable:!0,get:function(){return Zs.assertRequest}});var fi=ni;Object.defineProperty(e,"assertTransactionEIP1559",{enumerable:!0,get:function(){return fi.assertTransactionEIP1559}}),Object.defineProperty(e,"assertTransactionEIP2930",{enumerable:!0,get:function(){return fi.assertTransactionEIP2930}}),Object.defineProperty(e,"assertTransactionLegacy",{enumerable:!0,get:function(){return fi.assertTransactionLegacy}});var Ia=Gn();Object.defineProperty(e,"boolToBytes",{enumerable:!0,get:function(){return Ia.boolToBytes}}),Object.defineProperty(e,"hexToBytes",{enumerable:!0,get:function(){return Ia.hexToBytes}}),Object.defineProperty(e,"numberToBytes",{enumerable:!0,get:function(){return Ia.numberToBytes}}),Object.defineProperty(e,"stringToBytes",{enumerable:!0,get:function(){return Ia.stringToBytes}}),Object.defineProperty(e,"toBytes",{enumerable:!0,get:function(){return Ia.toBytes}});var ta=$e();Object.defineProperty(e,"boolToHex",{enumerable:!0,get:function(){return ta.boolToHex}}),Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return ta.bytesToHex}}),Object.defineProperty(e,"numberToHex",{enumerable:!0,get:function(){return ta.numberToHex}}),Object.defineProperty(e,"stringToHex",{enumerable:!0,get:function(){return ta.stringToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return ta.toHex}});var na=Lo;Object.defineProperty(e,"bytesToBigInt",{enumerable:!0,get:function(){return na.bytesToBigInt}}),Object.defineProperty(e,"bytesToBigint",{enumerable:!0,get:function(){return na.bytesToBigInt}}),Object.defineProperty(e,"bytesToBool",{enumerable:!0,get:function(){return na.bytesToBool}}),Object.defineProperty(e,"bytesToNumber",{enumerable:!0,get:function(){return na.bytesToNumber}}),Object.defineProperty(e,"bytesToString",{enumerable:!0,get:function(){return na.bytesToString}}),Object.defineProperty(e,"fromBytes",{enumerable:!0,get:function(){return na.fromBytes}});var ec=rP();Object.defineProperty(e,"ccipFetch",{enumerable:!0,get:function(){return ec.ccipFetch}}),Object.defineProperty(e,"offchainLookup",{enumerable:!0,get:function(){return ec.offchainLookup}}),Object.defineProperty(e,"offchainLookupAbiItem",{enumerable:!0,get:function(){return ec.offchainLookupAbiItem}}),Object.defineProperty(e,"offchainLookupSignature",{enumerable:!0,get:function(){return ec.offchainLookupSignature}});var tc=On;Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return tc.concat}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return tc.concatBytes}}),Object.defineProperty(e,"concatHex",{enumerable:!0,get:function(){return tc.concatHex}});var Zm=jd;Object.defineProperty(e,"assertCurrentChain",{enumerable:!0,get:function(){return Zm.assertCurrentChain}});var zd=Jy;Object.defineProperty(e,"defineChain",{enumerable:!0,get:function(){return zd.defineChain}});var Hl=Zy;Object.defineProperty(e,"extractChain",{enumerable:!0,get:function(){return Hl.extractChain}});var nc=di;Object.defineProperty(e,"getChainContractAddress",{enumerable:!0,get:function(){return nc.getChainContractAddress}});var ep=ob;Object.defineProperty(e,"encodePacked",{enumerable:!0,get:function(){return ep.encodePacked}});var H6=Il;Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return H6.formatEther}});var H=qi;Object.defineProperty(e,"formatGwei",{enumerable:!0,get:function(){return H.formatGwei}});var V=Cd;Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return V.formatUnits}});var oe=Wn();Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return oe.fromHex}}),Object.defineProperty(e,"hexToBigInt",{enumerable:!0,get:function(){return oe.hexToBigInt}}),Object.defineProperty(e,"hexToBool",{enumerable:!0,get:function(){return oe.hexToBool}}),Object.defineProperty(e,"hexToNumber",{enumerable:!0,get:function(){return oe.hexToNumber}}),Object.defineProperty(e,"hexToString",{enumerable:!0,get:function(){return oe.hexToString}});var se=Bi;Object.defineProperty(e,"fromRlp",{enumerable:!0,get:function(){return se.fromRlp}});var we=Co;Object.defineProperty(e,"checksumAddress",{enumerable:!0,get:function(){return we.checksumAddress}}),Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return we.getAddress}});var je=Vs;Object.defineProperty(e,"getContractError",{enumerable:!0,get:function(){return je.getContractError}});var ze=Pl;Object.defineProperty(e,"getEventSelector",{enumerable:!0,get:function(){return ze.getEventSelector}});var be=Py;Object.defineProperty(e,"getEventSignature",{enumerable:!0,get:function(){return be.getEventSignature}});var Ze=zi;Object.defineProperty(e,"getFunctionSelector",{enumerable:!0,get:function(){return Ze.getFunctionSelector}});var Re=bm;Object.defineProperty(e,"getFunctionSignature",{enumerable:!0,get:function(){return Re.getFunctionSignature}});var Le=Fm;Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return Le.hashMessage}});var Dt=uo;Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return Dt.isAddress}});var Tt=Bl;Object.defineProperty(e,"isAddressEqual",{enumerable:!0,get:function(){return Tt.isAddressEqual}});var Pt=Om;Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return Pt.isBytes}});var Ct=Rm;Object.defineProperty(e,"isHash",{enumerable:!0,get:function(){return Ct.isHash}});var Nn=qn;Object.defineProperty(e,"isHex",{enumerable:!0,get:function(){return Nn.isHex}});var ln=lo;Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return ln.keccak256}});var ql=ib;Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return ql.sha256}});var hi=sb;Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return hi.ripemd160}});var mi=eo;Object.defineProperty(e,"pad",{enumerable:!0,get:function(){return mi.pad}}),Object.defineProperty(e,"padBytes",{enumerable:!0,get:function(){return mi.padBytes}}),Object.defineProperty(e,"padHex",{enumerable:!0,get:function(){return mi.padHex}});var rc=fb;Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return rc.parseEther}});var oc=hb;Object.defineProperty(e,"parseGwei",{enumerable:!0,get:function(){return oc.parseGwei}});var ra=ps;Object.defineProperty(e,"parseTransaction",{enumerable:!0,get:function(){return ra.parseTransaction}});var Hd=Nd;Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return Hd.parseUnits}});var qd=Um;Object.defineProperty(e,"serializeAccessList",{enumerable:!0,get:function(){return qd.serializeAccessList}});var Wd=NJ();Object.defineProperty(e,"serializeTransaction",{enumerable:!0,get:function(){return Wd.serializeTransaction}});var tt=ka;Object.defineProperty(e,"size",{enumerable:!0,get:function(){return tt.size}});var Ut=Nr;Object.defineProperty(e,"slice",{enumerable:!0,get:function(){return Ut.slice}}),Object.defineProperty(e,"sliceBytes",{enumerable:!0,get:function(){return Ut.sliceBytes}}),Object.defineProperty(e,"sliceHex",{enumerable:!0,get:function(){return Ut.sliceHex}});var $r=xr;Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return $r.stringify}});var $t=ci;Object.defineProperty(e,"trim",{enumerable:!0,get:function(){return $t.trim}});var Do=pC();Object.defineProperty(e,"validateTypedData",{enumerable:!0,get:function(){return Do.validateTypedData}}),Object.defineProperty(e,"domainSeparator",{enumerable:!0,get:function(){return Do.domainSeparator}}),Object.defineProperty(e,"getTypesForEIP712Domain",{enumerable:!0,get:function(){return Do.getTypesForEIP712Domain}})}(j3)),j3}var Nh={};Object.defineProperty(Nh,"__esModule",{value:!0});Nh.MAGIC_VALUE_BYTES=Nh.MAGIC_VALUE=void 0;const aNe="0x1626ba7e";Nh.MAGIC_VALUE=aNe;const iNe="0x20c13b0b";Nh.MAGIC_VALUE_BYTES=iNe;var fP={},yb={},rd={};Object.defineProperty(rd,"__esModule",{value:!0});rd.PermissionsError=rd.PERMISSIONS_REQUEST_REJECTED=void 0;rd.PERMISSIONS_REQUEST_REJECTED=4001;class hP extends Error{constructor(t,n,r){super(t),this.code=n,this.data=r,Object.setPrototypeOf(this,hP.prototype)}}rd.PermissionsError=hP;Object.defineProperty(yb,"__esModule",{value:!0});yb.Wallet=void 0;const iT=Ed,_v=rd;class sNe{constructor(t){this.communicator=t}async getPermissions(){return(await this.communicator.send(iT.Methods.wallet_getPermissions,void 0)).data}async requestPermissions(t){if(!this.isPermissionRequestValid(t))throw new _v.PermissionsError("Permissions request is invalid",_v.PERMISSIONS_REQUEST_REJECTED);try{return(await this.communicator.send(iT.Methods.wallet_requestPermissions,t)).data}catch{throw new _v.PermissionsError("Permissions rejected",_v.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(t){return t.every(n=>typeof n=="object"?Object.keys(n).every(r=>!!Object.values(iT.RestrictedMethods).includes(r)):!1)}}yb.Wallet=sNe;Object.defineProperty(fP,"__esModule",{value:!0});const cNe=yb,bF=rd,vF=(e,t)=>t.some(n=>n.parentCapability===e),lNe=()=>(e,t,n)=>{const r=n.value;return n.value=async function(){const o=new cNe.Wallet(this.communicator);let a=await o.getPermissions();if(vF(t,a)||(a=await o.requestPermissions([{[t]:{}}])),!vF(t,a))throw new bF.PermissionsError("Permissions rejected",bF.PERMISSIONS_REQUEST_REJECTED);return r.apply(this)},n};fP.default=lNe;var uNe=We&&We.__decorate||function(e,t,n,r){var o=arguments.length,a=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},dNe=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(C2,"__esModule",{value:!0});C2.Safe=void 0;const xv=LJ(),wF=Nh,uc=Ed,EF=ky,fNe=v2,hNe=dNe(fP);class UJ{constructor(t){this.communicator=t}async getChainInfo(){return(await this.communicator.send(uc.Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(uc.Methods.getSafeInfo,void 0)).data}async experimental_getBalances({currency:t="usd"}={}){return(await this.communicator.send(uc.Methods.getSafeBalances,{currency:t})).data}async check1271Signature(t,n="0x"){const r=await this.getInfo(),o=(0,xv.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[t,n]}),a={call:EF.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:o},"latest"]};try{return(await this.communicator.send(uc.Methods.rpcCall,a)).data.slice(0,10).toLowerCase()===wF.MAGIC_VALUE}catch{return!1}}async check1271SignatureBytes(t,n="0x"){const r=await this.getInfo(),o=(0,xv.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[t,n]}),a={call:EF.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:o},"latest"]};try{return(await this.communicator.send(uc.Methods.rpcCall,a)).data.slice(0,10).toLowerCase()===wF.MAGIC_VALUE_BYTES}catch{return!1}}calculateMessageHash(t){return(0,xv.hashMessage)(t)}calculateTypedMessageHash(t){const n=typeof t.domain.chainId=="object"?t.domain.chainId.toNumber():Number(t.domain.chainId);let r=t.primaryType;if(!r){const o=Object.values(t.types),a=Object.keys(t.types).filter(i=>o.every(s=>s.every(({type:c})=>c.replace("[","").replace("]","")!==i)));if(a.length===0||a.length>1)throw new Error("Please specify primaryType");r=a[0]}return(0,xv.hashTypedData)({message:t.message,domain:Object.assign(Object.assign({},t.domain),{chainId:n,verifyingContract:t.domain.verifyingContract,salt:t.domain.salt}),types:t.types,primaryType:r})}async getOffChainSignature(t){return(await this.communicator.send(uc.Methods.getOffChainSignature,t)).data}async isMessageSigned(t,n="0x"){let r;if(typeof t=="string"&&(r=async()=>{const o=this.calculateMessageHash(t);return await this.isMessageHashSigned(o,n)}),(0,fNe.isObjectEIP712TypedData)(t)&&(r=async()=>{const o=this.calculateTypedMessageHash(t);return await this.isMessageHashSigned(o,n)}),r)return await r();throw new Error("Invalid message type")}async isMessageHashSigned(t,n="0x"){const r=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const o of r)if(await o(t,n))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(uc.Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(uc.Methods.requestAddressBook,void 0)).data}}uNe([(0,hNe.default)()],UJ.prototype,"requestAddressBook",null);C2.Safe=UJ;var mNe=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(DE,"__esModule",{value:!0});const pNe=mNe(bX),gNe=b2,yNe=x2,bNe=C2,vNe=yb;let wNe=class{constructor(t={}){const{allowedDomains:n=null,debug:r=!1}=t;this.communicator=new pNe.default(n,r),this.eth=new yNe.Eth(this.communicator),this.txs=new gNe.TXs(this.communicator),this.safe=new bNe.Safe(this.communicator),this.wallet=new vNe.Wallet(this.communicator)}};DE.default=wNe;(function(e){var t=We&&We.__createBinding||(Object.create?function(i,s,c,l){l===void 0&&(l=c);var u=Object.getOwnPropertyDescriptor(s,c);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(i,l,u)}:function(i,s,c,l){l===void 0&&(l=c),i[l]=s[c]}),n=We&&We.__exportStar||function(i,s){for(var c in i)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&t(s,i,c)},r=We&&We.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.getSDKVersion=void 0;const o=r(DE);e.default=o.default,n(DE,e),n(v2,e),n(Ed,e),n(Ay,e);var a=Dy;Object.defineProperty(e,"getSDKVersion",{enumerable:!0,get:function(){return a.getSDKVersion}})})(yX);const Cv=cd(yX);var a0,i0,$J=class extends py{constructor({chains:e,options:t}){const n={shimDisconnect:!1,...t};super({chains:e,options:n}),this.id="safe",this.name="Safe",this.ready=!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,Fn(this,a0,void 0),Fn(this,i0,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`;let r=Cv;typeof Cv!="function"&&typeof Cv.default=="function"&&(r=Cv.default),As(this,i0,new r(n))}async connect(){var r;const e=await this.getProvider();if(!e)throw new ua;e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const t=await this.getAccount(),n=await this.getChainId();return this.options.shimDisconnect&&((r=this.storage)==null||r.setItem(this.shimDisconnectKey,!0)),{account:t,chain:{id:n,unsupported:this.isChainUnsupported(n)}}}async disconnect(){var t;const e=await this.getProvider();e!=null&&e.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((t=this.storage)==null||t.removeItem(this.shimDisconnectKey)))}async getAccount(){const e=await this.getProvider();if(!e)throw new ua;const t=await e.request({method:"eth_accounts"});return Rr(t[0])}async getChainId(){const e=await this.getProvider();if(!e)throw new ua;return Ju(e.chainId)}async getProvider(){if(!ft(this,a0)){const e=await ft(this,i0).safe.getInfo();if(!e)throw new Error("Could not load Safe information");As(this,a0,new sX.SafeAppProvider(e,ft(this,i0)))}return ft(this,a0)}async getWalletClient({chainId:e}={}){const t=await this.getProvider(),n=await this.getAccount(),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){var e;try{return this.options.shimDisconnect&&!((e=this.storage)!=null&&e.getItem(this.shimDisconnectKey))?!1:!!await this.getAccount()}catch{return!1}}onAccountsChanged(e){}onChainChanged(e){}onDisconnect(){this.emit("disconnect")}};a0=new WeakMap;i0=new WeakMap;var ENe=768;B_e({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}});var _Ne=JY({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),qD=z_e({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"}}}}}),_F={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)"}},xNe={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},CNe="_12cbo8i3 ju367v8r",SNe={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function wr({active:e,hover:t}){return[CNe,t&&SNe[t],xNe[e]]}var zJ=S.createContext(null);function TNe(){var e;const{adapter:t}=(e=S.useContext(zJ))!=null?e:{};if(!t)throw new Error("No authentication adapter found");return t}function _6(){var e;const t=S.useContext(zJ);return(e=t==null?void 0:t.status)!=null?e:null}function HJ(){const e=_6(),{isConnected:t}=tn();return t?e&&(e==="loading"||e==="unauthenticated")?e:"connected":"disconnected"}function mP(){return typeof navigator<"u"&&/android/i.test(navigator.userAgent)}function ANe(){return typeof navigator<"u"&&/iPhone|iPod/.test(navigator.userAgent)}function DNe(){return typeof navigator<"u"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function Ll(){return ANe()||DNe()}function Cr(){return mP()||Ll()}var kNe="iekbcc0",jNe={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"},PNe=({reset:e,...t})=>{if(!e)return qD(t);const n=jNe[e],r=qD(t);return eQ(kNe,n,r)},$=S.forwardRef(({as:e="div",className:t,testId:n,...r},o)=>{const a={},i={};for(const c in r)qD.properties.has(c)?a[c]=r[c]:i[c]=r[c];const s=PNe({reset:typeof e=="string"?e:"div",...a});return S.createElement(e,{className:eQ(s,t),...i,"data-testid":n?`rk-${n.replace(/^rk-/,"")}`:void 0,ref:o})});$.displayName="Box";var qJ=new Map,sT=new Map;async function WJ(e){const t=sT.get(e);if(t)return t;const n=async()=>e().then(async o=>(qJ.set(e,o),o)),r=n().catch(o=>n().catch(a=>{sT.delete(e)}));return sT.set(e,r),r}async function Ui(...e){return await Promise.all(e.map(t=>typeof t=="function"?WJ(t):t))}function INe(){const[,e]=S.useReducer(t=>t+1,0);return e}function pP(e){const t=typeof e=="function"?qJ.get(e):void 0,n=INe();return S.useEffect(()=>{typeof e=="function"&&!t&&WJ(e).then(n)},[e,t,n]),typeof e=="function"?t:e}function nr({alt:e,background:t,borderColor:n,borderRadius:r,boxShadow:o,height:a,src:i,width:s,testId:c}){const l=Ll(),u=pP(i),d=u&&/^http/.test(u),[f,h]=S.useReducer(()=>!0,!1);return A.createElement($,{"aria-label":e,borderRadius:r,boxShadow:o,height:typeof a=="string"?a:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:t,height:typeof a=="number"?a:void 0,width:typeof s=="number"?s:void 0},width:typeof s=="string"?s:void 0,testId:c},A.createElement($,{...d?{"aria-hidden":!0,as:"img",onLoad:h,src:u}:{backgroundSize:"cover"},height:"full",position:"absolute",...l?{WebkitUserSelect:"none"}:{},style:{touchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...d?{opacity:f?1:0}:{backgroundImage:u?`url(${u})`:void 0,backgroundRepeat:"no-repeat",opacity:u?1:0}},width:"full"}),n?A.createElement($,{...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 ONe="_1luule42",RNe="_1luule43",NNe=e=>S.useMemo(()=>`${e}_${Math.round(Math.random()*1e9)}`,[e]),_g=({height:e=21,width:t=21})=>{const n=NNe("spinner");return A.createElement("svg",{className:ONe,fill:"none",height:e,viewBox:"0 0 21 21",width:t,xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Loading"),A.createElement("clipPath",{id:n},A.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"})),A.createElement("foreignObject",{clipPath:`url(#${n})`,height:"21",width:"21",x:"0",y:"0"},A.createElement("div",{className:RNe})))},yt=["#FC5C54","#FFD95A","#E95D72","#6A87C8","#5FD0F3","#75C06B","#FFDD86","#5FC6D4","#FF949A","#FF8024","#9BA1A4","#EC66FF","#FF8CBC","#FF9A23","#C5DADB","#A8CE63","#71ABFF","#FFE279","#B6B1B6","#FF6780","#A575FF","#4D82FF","#FFB35A"],xF=[{color:yt[0],emoji:"🌶"},{color:yt[1],emoji:"🤑"},{color:yt[2],emoji:"🐙"},{color:yt[3],emoji:"🫐"},{color:yt[4],emoji:"🐳"},{color:yt[0],emoji:"🤶"},{color:yt[5],emoji:"🌲"},{color:yt[6],emoji:"🌞"},{color:yt[7],emoji:"🐒"},{color:yt[8],emoji:"🐵"},{color:yt[9],emoji:"🦊"},{color:yt[10],emoji:"🐼"},{color:yt[11],emoji:"🦄"},{color:yt[12],emoji:"🐷"},{color:yt[13],emoji:"🐧"},{color:yt[8],emoji:"🦩"},{color:yt[14],emoji:"👽"},{color:yt[0],emoji:"🎈"},{color:yt[8],emoji:"🍉"},{color:yt[1],emoji:"🎉"},{color:yt[15],emoji:"🐲"},{color:yt[16],emoji:"🌎"},{color:yt[17],emoji:"🍊"},{color:yt[18],emoji:"🐭"},{color:yt[19],emoji:"🍣"},{color:yt[1],emoji:"🐥"},{color:yt[20],emoji:"👾"},{color:yt[15],emoji:"🥦"},{color:yt[0],emoji:"👹"},{color:yt[17],emoji:"🙀"},{color:yt[4],emoji:"⛱"},{color:yt[21],emoji:"⛵️"},{color:yt[17],emoji:"🥳"},{color:yt[8],emoji:"🤯"},{color:yt[22],emoji:"🤠"}];function BNe(e){let t=0;if(e.length===0)return t;for(let n=0;n{const[r,o]=S.useState(!1);S.useEffect(()=>{if(t){const s=new Image;s.src=t,s.onload=()=>o(!0)}},[t]);const{color:a,emoji:i}=S.useMemo(()=>FNe(e),[e]);return t?r?A.createElement($,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${t})`,backgroundPosition:"center",height:n,width:n}}):A.createElement($,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:n,width:n}},A.createElement(_g,null)):A.createElement($,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!t&&{backgroundColor:a},height:n,width:n}},i)},GJ=MNe,VJ=S.createContext(GJ);function LNe({address:e,imageUrl:t,loading:n,size:r}){const o=S.useContext(VJ);return A.createElement($,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${r}px`,width:`${r}px`},userSelect:"none"},A.createElement($,{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"},A.createElement(o,{address:e,ensImage:t,size:r})),n&&A.createElement($,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},A.createElement(_g,{height:"100%",width:"100%"})))}var CF={defaultLocale:"en",locale:"en"},UNe=class{constructor(e){this.listeners=new Set,this.defaultLocale=CF.defaultLocale,this.enableFallback=!1,this.locale=CF.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,a)=>{for(const i of Object.keys(o)){const s=`${a}.${i}`,c=o[i];typeof c=="object"&&c!==null?r(c,s):n[s]=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){const n=`${this.locale}.${e}`,r=this.translations[n];if(!r){if(this.enableFallback){const o=`${this.defaultLocale}.${e}`,a=this.translations[o];if(a)return this.translateWithReplacements(a,t)}return this.missingMessage(e)}return this.translateWithReplacements(r,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)}}},ha=new UNe({en:JSON.parse(yD),"en-US":JSON.parse(yD)});ha.defaultLocale="en-US";ha.locale="en-US";ha.enableFallback=!0;var $Ne=async e=>{switch(e){case"ar":case"ar-AR":return(await me(async()=>{const{default:t}=await import("./ar_AR-PQJDYWVZ-APfsCj9O.js");return{default:t}},[],import.meta.url)).default;case"en":case"en-US":return(await me(async()=>{const{default:t}=await Promise.resolve().then(()=>KL);return{default:t}},void 0,import.meta.url)).default;case"es":case"es-419":return(await me(async()=>{const{default:t}=await import("./es_419-GLICGTYE-DAMYsXQt.js");return{default:t}},[],import.meta.url)).default;case"fr":case"fr-FR":return(await me(async()=>{const{default:t}=await import("./fr_FR-UC7Z4T6O-B67bog61.js");return{default:t}},[],import.meta.url)).default;case"hi":case"hi-IN":return(await me(async()=>{const{default:t}=await import("./hi_IN-RGKVTIVE-Do-3nNHB.js");return{default:t}},[],import.meta.url)).default;case"id":case"id-ID":return(await me(async()=>{const{default:t}=await import("./id_ID-3SKVJ2RK-DLkFahck.js");return{default:t}},[],import.meta.url)).default;case"ja":case"ja-JP":return(await me(async()=>{const{default:t}=await import("./ja_JP-GYCPH6AT-B2ynLT17.js");return{default:t}},[],import.meta.url)).default;case"ko":case"ko-KR":return(await me(async()=>{const{default:t}=await import("./ko_KR-V2HAEAHG-MSD6VZVz.js");return{default:t}},[],import.meta.url)).default;case"pt":case"pt-BR":return(await me(async()=>{const{default:t}=await import("./pt_BR-JDDVMLRA-aYSlgkhd.js");return{default:t}},[],import.meta.url)).default;case"ru":case"ru-RU":return(await me(async()=>{const{default:t}=await import("./ru_RU-3W6WVVOI-CElW9r3c.js");return{default:t}},[],import.meta.url)).default;case"th":case"th-TH":return(await me(async()=>{const{default:t}=await import("./th_TH-UWDENI2F-isfr4Uax.js");return{default:t}},[],import.meta.url)).default;case"tr":case"tr-TR":return(await me(async()=>{const{default:t}=await import("./tr_TR-NAI3OICG-BccpdJoF.js");return{default:t}},[],import.meta.url)).default;case"ua":case"uk-UA":return(await me(async()=>{const{default:t}=await import("./uk_UA-H7BFRWP5-BxO6MaLd.js");return{default:t}},[],import.meta.url)).default;case"zh":case"zh-CN":return(await me(async()=>{const{default:t}=await import("./zh_CN-BO5MSGV2-D6N76dxU.js");return{default:t}},[],import.meta.url)).default;default:return(await me(async()=>{const{default:t}=await Promise.resolve().then(()=>KL);return{default:t}},void 0,import.meta.url)).default}};async function SF(e){if(ha.isLocaleCached(e)){ha.updateLocale(e);return}const n=await $Ne(e);ha.setTranslations(e,JSON.parse(n))}var zNe=()=>{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}},ar=S.createContext({i18n:ha}),HNe=({children:e,locale:t})=>{const[n,r]=S.useState(0),o=S.useMemo(()=>zNe(),[]);S.useEffect(()=>ha.onChange(()=>{r(s=>s+1)}),[]),S.useEffect(()=>{t&&t!==ha.locale?SF(t):!t&&o&&o!==ha.locale&&SF(o)},[t,o]);const a=S.useMemo(()=>({t:(s,c)=>ha.t(s,c),i18n:ha}),[n]);return A.createElement(ar.Provider,{value:a},e)};function gP(e){return e!=null}var cT={iconBackground:"#96bedc",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./arbitrum-LYDBJZP3-BMNNBURC.js");return{default:e}},[],import.meta.url)).default},TF={iconBackground:"#e84141",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./avalanche-TFPKP544-BAW5xZLs.js");return{default:e}},[],import.meta.url)).default},lT={iconBackground:"#0052ff",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./base-3MIUIYGA-BacvpD6v.js");return{default:e}},[],import.meta.url)).default},AF={iconBackground:"#ebac0e",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./bsc-S2GSW6VX-Bz0b4JEm.js");return{default:e}},[],import.meta.url)).default},DF={iconBackground:"#002D74",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./cronos-DQKKIEX7-D-xN-IeE.js");return{default:e}},[],import.meta.url)).default},dc={iconBackground:"#484c50",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./ethereum-4FY57XJF-BF1-Gkmk.js");return{default:e}},[],import.meta.url)).default},qNe={iconBackground:"#f9f7ec",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./hardhat-ARRFHFKB-BsaKr6xa.js");return{default:e}},[],import.meta.url)).default},Sv={iconBackground:"#ff5a57",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./optimism-UUP5Y7TB-BI-bx6R2.js");return{default:e}},[],import.meta.url)).default},kF={iconBackground:"#9f71ec",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./polygon-Z4QITDL7-DuMBfvk7.js");return{default:e}},[],import.meta.url)).default},jF={iconBackground:"#f9f7ec",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./xdc-5UHQ25DW-DoSn3ve8.js");return{default:e}},[],import.meta.url)).default},PF={iconBackground:"#f9f7ec",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./zkSync-XRUC4ZHO-CS2pRbzJ.js");return{default:e}},[],import.meta.url)).default},uT={iconBackground:"#000000",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./zora-KVO7WIOK-CYiMysry.js");return{default:e}},[],import.meta.url)).default},WNe={arbitrum:{chainId:42161,name:"Arbitrum",...cT},arbitrumGoerli:{chainId:421613,...cT},arbitrumSepolia:{chainId:421614,...cT},avalanche:{chainId:43114,...TF},avalancheFuji:{chainId:43113,...TF},base:{chainId:8453,name:"Base",...lT},baseGoerli:{chainId:84531,...lT},baseSepolia:{chainId:84532,...lT},bsc:{chainId:56,name:"BSC",...AF},bscTestnet:{chainId:97,...AF},cronos:{chainId:25,...DF},cronosTestnet:{chainId:338,...DF},goerli:{chainId:5,...dc},hardhat:{chainId:31337,...qNe},holesky:{chainId:17e3,...dc},kovan:{chainId:42,...dc},localhost:{chainId:1337,...dc},mainnet:{chainId:1,name:"Ethereum",...dc},optimism:{chainId:10,name:"Optimism",...Sv},optimismGoerli:{chainId:420,...Sv},optimismKovan:{chainId:69,...Sv},optimismSepolia:{chainId:11155420,...Sv},polygon:{chainId:137,name:"Polygon",...kF},polygonMumbai:{chainId:80001,...kF},rinkeby:{chainId:4,...dc},ropsten:{chainId:3,...dc},sepolia:{chainId:11155111,...dc},xdc:{chainId:50,name:"XinFin",...jF},xdcTestnet:{chainId:51,...jF},zkSync:{chainId:324,name:"zkSync",...PF},zkSyncTestnet:{chainId:280,...PF},zora:{chainId:7777777,name:"Zora",...uT},zoraSepolia:{chainId:999999999,...uT},zoraTestnet:{chainId:999,...uT}},GNe=Object.fromEntries(Object.values(WNe).filter(gP).map(({chainId:e,...t})=>[e,t])),VNe=e=>e.map(t=>{var n,r,o,a;const i=(n=GNe[t.id])!=null?n:{};return{...t,name:(r=i.name)!=null?r:t.name,iconUrl:(o=t.iconUrl)!=null?o:i.iconUrl,iconBackground:(a=t.iconBackground)!=null?a:i.iconBackground}}),yP=S.createContext({chains:[]});function KNe({chains:e,children:t,initialChain:n}){return A.createElement(yP.Provider,{value:S.useMemo(()=>({chains:VNe(e),initialChainId:typeof n=="number"?n:n==null?void 0:n.id}),[e,n])},t)}var x6=()=>S.useContext(yP).chains,YNe=()=>S.useContext(yP).initialChainId,QNe=()=>{const e=x6();return S.useMemo(()=>{const t={};for(const n of e)t[n.id]=n;return t},[e])},KJ=S.createContext({showBalance:void 0,setShowBalance:()=>{}});function XNe({children:e}){const[t,n]=S.useState();return A.createElement(KJ.Provider,{value:{showBalance:t,setShowBalance:n}},e)}var JNe=()=>S.useContext(KJ);function ZNe(){const[e,t]=S.useState(!1);return S.useEffect(()=>(t(!0),()=>{t(!1)}),[]),S.useCallback(()=>e,[e])}function YJ(){const e=Ux.id,t=zs(),n=Array.isArray(t.chains)?t.chains:[],r=n==null?void 0:n.some(o=>(o==null?void 0:o.id)===e);return{chainId:e,enabled:r}}function QJ(e){const{chainId:t,enabled:n}=YJ(),{data:r}=QEe({chainId:t,enabled:n,name:e});return r}function XJ(e){const{chainId:t,enabled:n}=YJ(),{data:r}=MY({address:e,chainId:t,enabled:n});return r}function bP(){var e;const{chain:t}=To();return(e=t==null?void 0:t.id)!=null?e:null}var JJ="rk-transactions";function eBe(e){try{const t=e?JSON.parse(e):{};return typeof t=="object"?t:{}}catch{return{}}}function IF(){return eBe(typeof localStorage<"u"?localStorage.getItem(JJ):null)}var tBe=/^0x([A-Fa-f0-9]{64})$/;function nBe(e){const t=[];return tBe.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 rBe({provider:e}){let t=IF(),n=e;const r=new Set,o=new Map;function a(p){n=p}function i(p,b){var v,g;return(g=(v=t[p])==null?void 0:v[b])!=null?g:[]}function s(p,b,v){const g=nBe(v);if(g.length>0)throw new Error(["Unable to add transaction",...g].join(` -`));d(p,b,w=>[{...v,status:"pending"},...w.filter(({hash:_})=>_!==v.hash)])}function c(p,b){d(p,b,()=>[])}function l(p,b,v,g){d(p,b,w=>w.map(_=>_.hash===v?{..._,status:g}:_))}async function u(p,b){await Promise.all(i(p,b).filter(v=>v.status==="pending").map(async v=>{const{confirmations:g,hash:w}=v,_=o.get(w);if(_)return await _;const C=n.waitForTransactionReceipt({confirmations:g,hash:w,timeout:3e5}).then(({status:x})=>{o.delete(w),x!==void 0&&l(p,b,w,x===0||x==="reverted"?"failed":"confirmed")}).catch(()=>{l(p,b,w,"failed")});return o.set(w,C),await C}))}function d(p,b,v){var g,w;t=IF(),t[p]=(g=t[p])!=null?g:{};let _=0;const C=10,x=v((w=t[p][b])!=null?w:[]).filter(({status:E})=>E==="pending"?!0:_++<=C);t[p][b]=x.length>0?x:void 0,f(),h(),u(p,b)}function f(){localStorage.setItem(JJ,JSON.stringify(t))}function h(){for(const p of r)p()}function m(p){return r.add(p),()=>{r.delete(p)}}return{addTransaction:s,clearTransactions:c,getTransactions:i,onChange:m,setProvider:a,waitForPendingTransactions:u}}var dT,ZJ=S.createContext(null);function oBe({children:e}){const t=zs(),{address:n}=tn(),r=bP(),[o]=S.useState(()=>dT??(dT=rBe({provider:t})));return S.useEffect(()=>{o.setProvider(t)},[o,t]),S.useEffect(()=>{n&&r&&o.waitForPendingTransactions(n,r)},[o,n,r]),A.createElement(ZJ.Provider,{value:o},e)}function eZ(){const e=S.useContext(ZJ);if(!e)throw new Error("Transaction hooks must be used within RainbowKitProvider");return e}function tZ(){const e=eZ(),{address:t}=tn(),n=bP(),[r,o]=S.useState(()=>e&&t&&n?e.getTransactions(t,n):[]);return S.useEffect(()=>{if(e&&t&&n)return o(e.getTransactions(t,n)),e.onChange(()=>{o(e.getTransactions(t,n))})},[e,t,n]),r}var OF=e=>typeof e=="function"?e():e;function aBe(e,{extends:t}={}){const n={...eB(_F,OF(e))};if(!t)return n;const r=eB(_F,OF(t));return Object.fromEntries(Object.entries(n).filter(([a,i])=>i!==r[a]))}function RF(e,t={}){return Object.entries(aBe(e,t)).map(([n,r])=>`${n}:${r.replace(/[:;{}]/g,"")};`).join("")}var nZ={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},Hm=S.createContext(nZ),rZ=S.createContext(!1);function iBe(e,t){let n;return()=>{n&&clearTimeout(n),n=setTimeout(()=>{n=null,e()},t)}}var oZ=()=>{const[e,t]=S.useState({height:void 0,width:void 0});return S.useEffect(()=>{const n=iBe(()=>{t({height:window.innerHeight,width:window.innerWidth})},500);return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),e},bb=S.createContext({connector:null,setConnector:()=>{}});function sBe({children:e}){const[t,n]=S.useState(null);return A.createElement(bb.Provider,{value:S.useMemo(()=>({connector:t,setConnector:n}),[t])},e)}var vb={COMPACT:"compact",WIDE:"wide"},C6=S.createContext(vb.WIDE);function cBe({children:e,modalSize:t}){const{width:n}=oZ(),r=n&&n{uBe({version:"1.3.7"})},[]);S.useEffect(()=>{e()},[e])}function fBe(e){const t=[];for(const n of e)t.push(...n);return t}function hBe(e,t){const n={};for(const r of e){const o=t(r);o&&(n[o]=r)}return n}function wP(){return typeof navigator<"u"&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function mBe(){return typeof document<"u"&&getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")!==""}function EP(){var e;if(typeof navigator>"u")return"Browser";const t=navigator.userAgent.toLowerCase();return(e=navigator.brave)!=null&&e.isBrave?"Brave":t.indexOf("edg/")>-1?"Edge":t.indexOf("op")>-1?"Opera":mBe()?"Arc":t.indexOf("chrome")>-1?"Chrome":t.indexOf("firefox")>-1?"Firefox":wP()?"Safari":"Browser"}var pBe=Sxe.UAParser(),{os:_P}=pBe;function gBe(){return _P.name==="Windows"}function yBe(){return _P.name==="Mac OS"}function bBe(){return["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(_P.name)}function xP(){return gBe()?"Windows":yBe()?"macOS":bBe()?"Linux":"Desktop"}var vBe=e=>{var t,n,r,o,a,i,s,c,l,u,d,f;const h=EP();return(f={Arc:(t=e==null?void 0:e.downloadUrls)==null?void 0:t.chrome,Brave:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.chrome,Chrome:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.chrome,Edge:((o=e==null?void 0:e.downloadUrls)==null?void 0:o.edge)||((a=e==null?void 0:e.downloadUrls)==null?void 0:a.chrome),Firefox:(i=e==null?void 0:e.downloadUrls)==null?void 0:i.firefox,Opera:((s=e==null?void 0:e.downloadUrls)==null?void 0:s.opera)||((c=e==null?void 0:e.downloadUrls)==null?void 0:c.chrome),Safari:(l=e==null?void 0:e.downloadUrls)==null?void 0:l.safari,Browser:(u=e==null?void 0:e.downloadUrls)==null?void 0:u.browserExtension}[h])!=null?f:(d=e==null?void 0:e.downloadUrls)==null?void 0:d.browserExtension},wBe=e=>{var t,n,r,o;return(o=Ll()?(t=e==null?void 0:e.downloadUrls)==null?void 0:t.ios:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.android)!=null?o:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.mobile},EBe=e=>{var t,n,r,o,a,i;const s=xP();return(i={Windows:(t=e==null?void 0:e.downloadUrls)==null?void 0:t.windows,macOS:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.macos,Linux:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.linux,Desktop:(o=e==null?void 0:e.downloadUrls)==null?void 0:o.desktop}[s])!=null?i:(a=e==null?void 0:e.downloadUrls)==null?void 0:a.desktop},aZ="rk-recent";function _Be(e){try{const t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch{return[]}}function iZ(){return typeof localStorage<"u"?_Be(localStorage.getItem(aZ)):[]}function xBe(e){return[...new Set(e)]}function CBe(e){const t=xBe([e,...iZ()]);localStorage.setItem(aZ,JSON.stringify(t))}function S6(){var e;const t=x6(),n=YNe(),{connectAsync:r,connectors:o}=UEe(),a=o;async function i(m,p){var b,v,g;const w=await p.getChainId(),_=await r({chainId:(g=n??((b=t.find(({id:C})=>C===w))==null?void 0:b.id))!=null?g:(v=t[0])==null?void 0:v.id,connector:p});return _&&CBe(m),_}async function s(m,p){try{return await i(m,p)}catch(b){if(!(b.name==="UserRejectedRequestError"||b.message==="Connection request reset. Please try again."))throw b}}const c=fBe(a.map(m=>{var p;return(p=m._wallets)!=null?p:[]})).sort((m,p)=>m.index-p.index),l=hBe(c,m=>m.id),d=iZ().map(m=>l[m]).filter(gP).slice(0,3),f=[...d,...c.filter(m=>!d.includes(m))],h=[];for(const m of f){if(!m)continue;const p=d.includes(m);h.push({...m,connect:()=>m.connector.showQrModal?s(m.id,m.connector):i(m.id,m.connector),desktopDownloadUrl:EBe(m),extensionDownloadUrl:vBe(m),groupName:m.groupName,mobileDownloadUrl:wBe(m),onConnecting:b=>m.connector.on("message",({type:v})=>v==="connecting"?b():void 0),ready:((e=m.installed)!=null?e:!0)&&m.connector.ready,recent:p,showWalletConnectModal:m.walletConnectModalConnector?()=>s(m.id,m.walletConnectModalConnector):void 0})}return h}var sZ=async()=>(await me(async()=>{const{default:e}=await import("./assets-26YY4GVD-BJE_4jQP.js");return{default:e}},[],import.meta.url)).default,SBe=()=>Ui(sZ),TBe=()=>A.createElement(nr,{background:"#d0d5de",borderRadius:"10",height:"48",src:sZ,width:"48"}),cZ=async()=>(await me(async()=>{const{default:e}=await import("./login-ZSMM5UYL-DT0rm6wp.js");return{default:e}},[],import.meta.url)).default,ABe=()=>Ui(cZ),DBe=()=>A.createElement(nr,{background:"#d0d5de",borderRadius:"10",height:"48",src:cZ,width:"48"}),Ae=A.forwardRef(({as:e="div",children:t,className:n,color:r,display:o,font:a="body",id:i,size:s="16",style:c,tabIndex:l,textAlign:u="inherit",weight:d="regular",testId:f},h)=>A.createElement($,{as:e,className:n,color:r,display:o,fontFamily:a,fontSize:s,fontWeight:d,id:i,ref:h,style:c,tabIndex:l,textAlign:u,testId:f},t));Ae.displayName="Text";var kBe={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function to({disabled:e=!1,href:t,label:n,onClick:r,rel:o="noreferrer noopener",size:a="medium",target:i="_blank",testId:s,type:c="primary"}){const l=c==="primary",u=a!=="large",d=Cr(),f=e?"actionButtonSecondaryBackground":l?"accentColor":u?"actionButtonSecondaryBackground":null,{fontSize:h,height:m,paddingX:p,paddingY:b}=kBe[a],v=!d||!u;return A.createElement($,{...t?e?{}:{as:"a",href:t,rel:o,target:i}:{as:"button",type:"button"},onClick:e?void 0:r,...v?{borderColor:d&&!u&&!l?"actionButtonBorderMobile":"actionButtonBorder",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!e&&wr({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:p,paddingY:b,style:{willChange:"transform"},testId:s,textAlign:"center",transition:"transform",...f?{background:f}:{},...m?{height:m}:{}},A.createElement(Ae,{color:e?"modalTextSecondary":l?"accentColorForeground":"accentColor",size:h,weight:"bold"},n))}var jBe=()=>Cr()?A.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"},A.createElement("title",null,"Close"),A.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"})):A.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Close"),A.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"})),od=({"aria-label":e="Close",onClose:t})=>{const n=Cr();return A.createElement($,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:wr({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"},A.createElement(jBe,null))},lZ=async()=>(await me(async()=>{const{default:e}=await import("./sign-FZVB2CS6-DXQn9z7A.js");return{default:e}},[],import.meta.url)).default;function PBe({onClose:e,onCloseModal:t}){const{i18n:n}=S.useContext(ar),[{status:r,...o},a]=A.useState({status:"idle"}),i=TNe(),s=S.useCallback(async()=>{try{const m=await i.getNonce();a(p=>({...p,nonce:m}))}catch{a(m=>({...m,errorMessage:n.t("sign_in.message.preparing_error"),status:"idle"}))}},[i,n.t]),c=S.useRef(!1);A.useEffect(()=>{c.current||(c.current=!0,s())},[s]);const l=Cr(),{address:u}=tn(),{chain:d}=To(),{signMessageAsync:f}=WEe(),h=async()=>{try{const m=d==null?void 0:d.id,{nonce:p}=o;if(!u||!m||!p)return;a(g=>({...g,errorMessage:void 0,status:"signing"}));const b=i.createMessage({address:u,chainId:m,nonce:p});let v;try{v=await f({message:i.getMessageBody({message:b})})}catch(g){return g instanceof dr?a(w=>({...w,status:"idle"})):a(w=>({...w,errorMessage:n.t("sign_in.signature.signing_error"),status:"idle"}))}a(g=>({...g,status:"verifying"}));try{if(await i.verify({message:b,signature:v})){t();return}throw new Error}catch{return a(g=>({...g,errorMessage:n.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{a({errorMessage:n.t("sign_in.signature.oops_error"),status:"idle"})}};return A.createElement($,{position:"relative"},A.createElement($,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},A.createElement(od,{onClose:e})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:l?"60px":"36px"}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"6":"4",style:{maxWidth:l?320:280}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"32":"16"},A.createElement(nr,{height:40,src:lZ,width:40}),A.createElement(Ae,{color:"modalText",size:l?"20":"18",textAlign:"center",weight:"heavy"},n.t("sign_in.label"))),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"16":"12"},A.createElement(Ae,{color:"modalTextSecondary",size:l?"16":"14",textAlign:"center"},n.t("sign_in.description")),r==="idle"&&o.errorMessage?A.createElement(Ae,{color:"error",size:l?"16":"14",textAlign:"center",weight:"bold"},o.errorMessage):null)),A.createElement($,{alignItems:l?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},A.createElement(to,{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?A.createElement(to,{label:"Cancel",onClick:e,size:"large",type:"secondary"}):A.createElement($,{as:"button",borderRadius:"full",className:wr({active:"shrink",hover:"grow"}),display:"block",onClick:e,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"closeButton",size:l?"16":"14",weight:"bold"},n.t("sign_in.message.cancel"))))))}function IBe(){const e=x6(),t=S6(),n=_6()==="unauthenticated",r=S.useCallback(()=>{Ui(...t.map(o=>o.iconUrl),...e.map(o=>o.iconUrl).filter(gP)),Cr()||(SBe(),ABe()),n&&Ui(lZ)},[t,e,n]);S.useEffect(()=>{r()},[r])}var uZ="WALLETCONNECT_DEEPLINK_CHOICE";function OBe({mobileUri:e,name:t}){localStorage.setItem(uZ,JSON.stringify({href:e.split("?")[0],name:t}))}function RBe(){localStorage.removeItem(uZ)}var dZ=S.createContext(void 0),WD="data-rk",fZ=e=>({[WD]:e||""}),NBe=e=>{if(e&&!/^[a-zA-Z0-9_]+$/.test(e))throw new Error(`Invalid ID: ${e}`);return e?`[${WD}="${e}"]`:`[${WD}]`},BBe=()=>{const e=S.useContext(dZ);return fZ(e)},FBe=QY();function MBe({appInfo:e,avatar:t,chains:n,children:r,coolMode:o=!1,id:a,initialChain:i,locale:s,modalSize:c=vb.WIDE,showRecentTransactions:l=!1,theme:u=FBe}){if(IBe(),dBe(),tn({onDisconnect:RBe}),typeof u=="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 d=NBe(a),f={...nZ,...e},h=t??GJ;return A.createElement(KNe,{chains:n,initialChain:i},A.createElement(sBe,null,A.createElement(HNe,{locale:s},A.createElement(rZ.Provider,{value:o},A.createElement(cBe,{modalSize:c},A.createElement(vP.Provider,{value:l},A.createElement(oBe,null,A.createElement(VJ.Provider,{value:h},A.createElement(Hm.Provider,{value:f},A.createElement(dZ.Provider,{value:a},A.createElement(XNe,null,A.createElement(X9e,null,u?A.createElement("div",{...fZ(a)},A.createElement("style",{dangerouslySetInnerHTML:{__html:[`${d}{${RF("lightMode"in u?u.lightMode:u)}}`,"darkMode"in u?`@media(prefers-color-scheme:dark){${d}{${RF(u.darkMode,{extends:u.lightMode})}}}`:null].join("")}}),r):r))))))))))))}var LBe="_9pm4ki5 ju367va ju367v15 ju367v8r",UBe="_9pm4ki3 ju367v9h ju367vb3 ju367va ju367v2q ju367v8q",NF=(e,t)=>{const n=e.querySelectorAll("button:not(:disabled), a[href]");n.length!==0&&n[t==="end"?n.length-1:0].focus()};function $Be(e){const t=S.useRef(null);return S.useEffect(()=>{const n=document.activeElement;return()=>{var r;(r=n.focus)==null||r.call(n)}},[]),S.useEffect(()=>{if(t.current){const n=t.current.querySelector("[data-auto-focus]");n?n.focus():t.current.focus()}},[]),A.createElement(A.Fragment,null,A.createElement("div",{onFocus:S.useCallback(()=>t.current&&NF(t.current,"end"),[]),tabIndex:0}),A.createElement("div",{ref:t,style:{outline:"none"},tabIndex:-1,...e}),A.createElement("div",{onFocus:S.useCallback(()=>t.current&&NF(t.current,"start"),[]),tabIndex:0}))}var zBe=e=>e.stopPropagation();function ME({children:e,onClose:t,open:n,titleId:r}){S.useEffect(()=>{const l=u=>n&&u.key==="Escape"&&t();return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[n,t]);const[o,a]=S.useState(!0);S.useEffect(()=>{a(getComputedStyle(window.document.body).overflow!=="hidden")},[]);const i=S.useCallback(()=>t(),[t]),s=BBe(),c=Cr();return A.createElement(A.Fragment,null,n?Fs.createPortal(A.createElement(sQ,{enabled:o},A.createElement($,{...s},A.createElement($,{...s,alignItems:c?"flex-end":"center","aria-labelledby":r,"aria-modal":!0,className:UBe,onClick:i,position:"fixed",role:"dialog"},A.createElement($Be,{className:LBe,onClick:zBe,role:"document"},e)))),document.body):null)}var HBe="_1ckjpok7",qBe="_1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",WBe="_1ckjpok4 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",GBe="_1ckjpok6 ju367vq",VBe="_1ckjpok3 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",KBe="_1ckjpok2 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r";function LE({bottomSheetOnMobile:e=!1,children:t,marginTop:n,padding:r="16",paddingBottom:o,wide:a=!1}){const i=Cr(),c=S.useContext(C6)===vb.COMPACT;return A.createElement($,{marginTop:n},A.createElement($,{className:[a?i?KBe:c?WBe:VBe:qBe,i?GBe:null,i&&e?HBe:null].join(" ")},A.createElement($,{padding:r,paddingBottom:o??r},t)))}var BF=["k","m","b","t"];function Tv(e,t=1){return e.toString().replace(new RegExp(`(.+\\.\\d{${t}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function hZ(e){if(e<1)return Tv(e,3);if(e<10**2)return Tv(e,2);if(e<10**4)return new Intl.NumberFormat().format(parseFloat(Tv(e,1)));const t=10**1;let n=String(e);for(let r=BF.length-1;r>=0;r--){const o=10**((r+1)*3);if(o<=e){e=e*t/o/t,n=Tv(e,1)+BF[r];break}}return n}function mZ(e){return e.length<8?e:`${e.substring(0,4)}…${e.substring(e.length-4)}`}function pZ(e){const t=e.split("."),n=t.pop();return t.join(".").length>24?`${t.join(".").substring(0,24)}...`:`${t.join(".")}.${n}`}var YBe=()=>A.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Copied"),A.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"})),QBe=()=>A.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Copy"),A.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"})),XBe=()=>A.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Disconnect"),A.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 JBe(){const e=eZ(),{address:t}=tn(),n=bP();return S.useCallback(()=>{if(!t||!n)throw new Error("No address or chain ID found");e.clearTransactions(t,n)},[e,t,n])}var gZ=e=>{var t,n;return(n=(t=e==null?void 0:e.blockExplorers)==null?void 0:t.default)==null?void 0:n.url},yZ=()=>A.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Link"),A.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"})),ZBe=()=>A.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Cancel"),A.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"})),e9e=()=>A.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Success"),A.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"})),t9e=e=>{switch(e){case"pending":return _g;case"confirmed":return e9e;case"failed":return ZBe;default:return _g}};function n9e({tx:e}){const t=Cr(),n=t9e(e.status),r=e.status==="failed"?"error":"accentColor",{chain:o}=To(),a=e.status==="confirmed"?"Confirmed":e.status==="failed"?"Failed":"Pending",i=gZ(o);return A.createElement(A.Fragment,null,A.createElement($,{...i?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:wr({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"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:t?"16":"14"},A.createElement($,{color:r},A.createElement(n,null)),A.createElement($,{display:"flex",flexDirection:"column",gap:t?"3":"1"},A.createElement($,null,A.createElement(Ae,{color:"modalText",font:"body",size:t?"16":"14",weight:"bold"},e==null?void 0:e.description)),A.createElement($,null,A.createElement(Ae,{color:e.status==="pending"?"modalTextSecondary":r,font:"body",size:"14",weight:t?"medium":"regular"},a)))),i&&A.createElement($,{alignItems:"center",color:"modalTextDim",display:"flex"},A.createElement(yZ,null))))}var r9e=3;function o9e({address:e}){const t=tZ(),n=JBe(),{chain:r}=To(),o=gZ(r),a=t.slice(0,r9e),i=a.length>0,s=Cr(),{appName:c}=S.useContext(Hm),{i18n:l}=S.useContext(ar);return A.createElement(A.Fragment,null,A.createElement($,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:s?"8":"18"},i&&A.createElement($,{paddingBottom:s?"4":"0",paddingTop:"8",paddingX:s?"12":"6"},A.createElement($,{display:"flex",justifyContent:"space-between"},A.createElement(Ae,{color:"modalTextSecondary",size:s?"16":"14",weight:"semibold"},l.t("profile.transactions.recent.title")),A.createElement($,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},A.createElement($,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:wr({active:"shrink"}),onClick:n,paddingX:s?"8":"12",paddingY:s?"4":"5",transition:"default",type:"button"},A.createElement(Ae,{color:"modalTextSecondary",size:s?"16":"14",weight:"semibold"},l.t("profile.transactions.clear.label")))))),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},i?a.map(u=>A.createElement(n9e,{key:u.hash,tx:u})):A.createElement(A.Fragment,null,A.createElement($,{padding:s?"12":"8"},A.createElement(Ae,{color:"modalTextDim",size:s?"16":"14",weight:s?"medium":"bold"},c?l.t("profile.transactions.description",{appName:c}):l.t("profile.transactions.description_fallback"))),s&&A.createElement($,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),o&&A.createElement($,{paddingBottom:"18",paddingX:s?"8":"18"},A.createElement($,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:wr({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",...s?{paddingLeft:"12"}:{}},A.createElement(Ae,{color:"modalText",font:"body",size:s?"16":"14",weight:s?"semibold":"bold"},l.t("profile.explorer.label")),A.createElement(yZ,null))))}function FF({action:e,icon:t,label:n,testId:r,url:o}){const a=Cr();return A.createElement($,{...o?{as:"a",href:o,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...a?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:wr({active:"shrinkSm",hover:a?void 0:"grow"}),display:"flex",onClick:e,padding:a?"6":"8",style:{willChange:"transform"},testId:r,transition:"default",width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},A.createElement($,{color:"modalText",height:"max"},t),A.createElement($,null,A.createElement(Ae,{color:"modalText",size:a?"12":"13",weight:"semibold"},n))))}function a9e({address:e,ensAvatar:t,ensName:n,onClose:r,onDisconnect:o}){const a=S.useContext(vP),{data:i}=FY({address:e}),[s,c]=S.useState(!1),l=S.useCallback(()=>{e&&(navigator.clipboard.writeText(e),c(!0))},[e]);if(S.useEffect(()=>{if(s){const b=setTimeout(()=>{c(!1)},1500);return()=>clearTimeout(b)}},[s]),!e)return null;const u=n?pZ(n):mZ(e),d=i==null?void 0:i.formatted,f=d?hZ(parseFloat(d)):void 0,h="rk_profile_title",m=Cr(),{i18n:p}=S.useContext(ar);return A.createElement(A.Fragment,null,A.createElement($,{display:"flex",flexDirection:"column"},A.createElement($,{background:"profileForeground",padding:"16"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:m?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},A.createElement($,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},A.createElement(od,{onClose:r}))," ",A.createElement($,{marginTop:m?"24":"0"},A.createElement(LNe,{address:e,imageUrl:t,size:m?82:74})),A.createElement($,{display:"flex",flexDirection:"column",gap:m?"4":"0",textAlign:"center"},A.createElement($,{textAlign:"center"},A.createElement(Ae,{as:"h1",color:"modalText",id:h,size:m?"20":"18",weight:"heavy"},u)),i&&A.createElement($,{textAlign:"center"},A.createElement(Ae,{as:"h1",color:"modalTextSecondary",id:h,size:m?"16":"14",weight:"semibold"},f," ",i.symbol)))),A.createElement($,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},A.createElement(FF,{action:l,icon:s?A.createElement(YBe,null):A.createElement(QBe,null),label:s?p.t("profile.copy_address.copied"):p.t("profile.copy_address.label")}),A.createElement(FF,{action:o,icon:A.createElement(XBe,null),label:p.t("profile.disconnect.label"),testId:"disconnect-button"}))),a&&A.createElement(A.Fragment,null,A.createElement($,{background:"generalBorder",height:"1",marginTop:"-1"}),A.createElement($,null,A.createElement(o9e,{address:e})))))}function i9e({onClose:e,open:t}){const{address:n}=tn(),r=XJ(n),o=QJ(r),{disconnect:a}=Qx();return n?A.createElement(A.Fragment,null,n&&A.createElement(ME,{onClose:e,open:t,titleId:"rk_account_modal_title"},A.createElement(LE,{bottomSheetOnMobile:!0,padding:"0"},A.createElement(a9e,{address:n,ensAvatar:o,ensName:r,onClose:e,onDisconnect:a})))):null}var s9e=({size:e})=>A.createElement("svg",{fill:"none",height:e,viewBox:"0 0 28 28",width:e,xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Disconnect"),A.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"})),c9e="v9horb0",GD=A.forwardRef(({children:e,currentlySelected:t=!1,onClick:n,testId:r,...o},a)=>{const i=Cr();return A.createElement($,{as:"button",borderRadius:"menuButton",disabled:t,display:"flex",onClick:n,ref:a,testId:r,type:"button"},A.createElement($,{borderRadius:"menuButton",className:[i?c9e:void 0,!t&&wr({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))});GD.displayName="MenuButton";var l9e="_18dqw9x0",u9e="_18dqw9x1";function d9e({onClose:e,open:t}){var n;const{chain:r}=To(),{chains:o,pendingChainId:a,reset:i,switchNetwork:s}=Tl({onSettled:()=>{i(),e()}}),{i18n:c}=S.useContext(ar),{disconnect:l}=Qx(),u="rk_chain_modal_title",d=Cr(),f=(n=r==null?void 0:r.unsupported)!=null?n:!1,h=d?"36":"28",{appName:m}=S.useContext(Hm),p=x6();return!r||!(r!=null&&r.id)?null:A.createElement(ME,{onClose:e,open:t,titleId:u},A.createElement(LE,{bottomSheetOnMobile:!0,paddingBottom:"0"},A.createElement($,{display:"flex",flexDirection:"column",gap:"14"},A.createElement($,{display:"flex",flexDirection:"row",justifyContent:"space-between"},d&&A.createElement($,{width:"30"}),A.createElement($,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},A.createElement(Ae,{as:"h1",color:"modalText",id:u,size:d?"20":"18",weight:"heavy"},c.t("chains.title"))),A.createElement(od,{onClose:e})),f&&A.createElement($,{marginX:"8",textAlign:d?"center":"left"},A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},c.t("chains.wrong_network"))),A.createElement($,{className:d?u9e:l9e,display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},s?p.map(({iconBackground:b,iconUrl:v,id:g,name:w},_)=>{const C=o.find(T=>T.id===g);if(!C)return null;const x=C.id===(r==null?void 0:r.id),E=!x&&C.id===a;return A.createElement(S.Fragment,{key:C.id},A.createElement(GD,{currentlySelected:x,onClick:x?void 0:()=>s(C.id),testId:`chain-option-${C.id}`},A.createElement($,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:h},v&&A.createElement($,{height:"full",marginRight:"8"},A.createElement(nr,{alt:w??C.name,background:b,borderRadius:"full",height:h,src:v,width:h,testId:`chain-option-${C.id}-icon`})),A.createElement("div",null,w??C.name)),x&&A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},A.createElement(Ae,{color:"accentColorForeground",size:"14",weight:"medium"},c.t("chains.connected")),A.createElement($,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),E&&A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},A.createElement(Ae,{color:"modalText",size:"14",weight:"medium"},c.t("chains.confirm")),A.createElement($,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),d&&_l(),testId:"chain-option-disconnect"},A.createElement($,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:h},A.createElement($,{alignItems:"center",color:"error",height:h,justifyContent:"center",marginRight:"8"},A.createElement(s9e,{size:Number(h)})),A.createElement("div",null,c.t("chains.disconnect")))))))))))}function f9e(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 h9e="rk-latest-id";function m9e(e){localStorage.setItem(h9e,e)}var CP=({children:e,href:t})=>A.createElement($,{as:"a",color:"accentColor",href:t,rel:"noreferrer",target:"_blank"},e),SP=({children:e})=>A.createElement(Ae,{color:"modalTextSecondary",size:"12",weight:"medium"},e);function MF({compactModeEnabled:e=!1,getWallet:t}){const{disclaimer:n,learnMoreUrl:r}=S.useContext(Hm),{i18n:o}=S.useContext(ar);return A.createElement(A.Fragment,null,A.createElement($,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},A.createElement($,{marginBottom:"10"},!e&&A.createElement(Ae,{color:"modalText",size:"18",weight:"heavy"},o.t("intro.title"))),A.createElement($,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},A.createElement($,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},A.createElement(TBe,null)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},o.t("intro.digital_asset.title")),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},o.t("intro.digital_asset.description")))),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},A.createElement($,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},A.createElement(DBe,null)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},o.t("intro.login.title")),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},o.t("intro.login.description"))))),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},A.createElement(to,{label:o.t("intro.get.label"),onClick:t}),A.createElement($,{as:"a",className:wr({active:"shrink",hover:"grow"}),display:"block",href:r,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},o.t("intro.learn_more.label")))),n&&!e&&A.createElement($,{marginBottom:"8",marginTop:"12",textAlign:"center"},A.createElement(n,{Link:CP,Text:SP}))))}var bZ=()=>A.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Back"),A.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"})),p9e=()=>A.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Info"),A.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"})),g9e=({"aria-label":e="Info",onClick:t})=>{const n=Cr();return A.createElement($,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:wr({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"},A.createElement(p9e,null))},vZ=e=>{const t=S.useRef(null),n=S.useContext(rZ),r=pP(e);return S.useEffect(()=>{if(n&&t.current&&r)return b9e(t.current,r)},[n,r]),t},y9e=()=>{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},LF=0;function b9e(e,t){LF++;const n=[15,20,25,35,45],r=35;let o=[],a=!1,i=0,s=0;const c=y9e();function l(){const _=n[Math.floor(Math.random()*n.length)],C=Math.random()*10,x=Math.random()*25,E=Math.random()*360,T=Math.random()*35*(Math.random()<=.5?-1:1),k=s-_/2,D=i-_/2,R=Math.random()<=.5?-1:1,F=document.createElement("div");F.innerHTML=``,F.setAttribute("style",["position:absolute","will-change:transform",`top:${k}px`,`left:${D}px`,`transform:rotate(${E}deg)`].join(";")),c.appendChild(F),o.push({direction:R,element:F,left:D,size:_,speedHorz:C,speedUp:x,spinSpeed:T,spinVal:E,top:k})}function u(){for(const _ of o)_.left=_.left-_.speedHorz*_.direction,_.top=_.top-_.speedUp,_.speedUp=Math.min(_.size,_.speedUp-1),_.spinVal=_.spinVal+_.spinSpeed,_.top>=Math.max(window.innerHeight,document.body.clientHeight)+_.size&&(o=o.filter(C=>C!==_),_.element.remove()),_.element.setAttribute("style",["position:absolute","will-change:transform",`top:${_.top}px`,`left:${_.left}px`,`transform:rotate(${_.spinVal}deg)`].join(";"))}let d;function f(){a&&o.length{var C,x;"touches"in _?(i=(C=_.touches)==null?void 0:C[0].clientX,s=(x=_.touches)==null?void 0:x[0].clientY):(i=_.clientX,s=_.clientY)},g=_=>{v(_),a=!0},w=()=>{a=!1};return e.addEventListener(b,v,{passive:!1}),e.addEventListener(m,g),e.addEventListener(p,w),e.addEventListener("mouseleave",w),()=>{e.removeEventListener(b,v),e.removeEventListener(m,g),e.removeEventListener(p,w),e.removeEventListener("mouseleave",w);const _=setInterval(()=>{d&&o.length===0&&(cancelAnimationFrame(d),clearInterval(_),--LF===0&&c.remove())},500)}}var v9e="g5kl0l0",wZ=({as:e="button",currentlySelected:t=!1,iconBackground:n,iconUrl:r,name:o,onClick:a,ready:i,recent:s,testId:c,...l})=>{const u=vZ(r),[d,f]=S.useState(!1),{i18n:h}=S.useContext(ar);return A.createElement($,{display:"flex",flexDirection:"column",onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),ref:u},A.createElement($,{as:e,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:t?void 0:[v9e,wr({active:"shrink"})],disabled:t,onClick:a,padding:"5",style:{willChange:"transform"},testId:c,transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...l},A.createElement($,{color:t?"accentColorForeground":"modalText",disabled:!i,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},A.createElement(nr,{background:n,...d?{}:{borderColor:"actionButtonBorder"},borderRadius:"6",height:"28",src:r,width:"28"}),A.createElement($,null,A.createElement($,{style:{marginTop:s?-2:void 0}},o),s&&A.createElement(Ae,{color:t?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},h.t("connect.recent")))))))};wZ.displayName="ModalSelection";var fT=(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=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),a=parseInt(n.substring(4,6),16);return t>1&&t<=100&&(t=t/100),`rgba(${r},${o},${a},${t})`},w9e=e=>e?[fT(e,.2),fT(e,.14),fT(e,.1)]:null,E9e=e=>/^#([0-9a-f]{3}){1,2}$/i.test(e),EZ=async()=>(await me(async()=>{const{default:e}=await import("./connect-XNDTNVUH-Rkfb_zm3.js");return{default:e}},[],import.meta.url)).default,_9e=()=>Ui(EZ),x9e=()=>A.createElement(nr,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:EZ,width:"48"}),_Z=async()=>(await me(async()=>{const{default:e}=await import("./create-PAJXJDV3-CO2P7llu.js");return{default:e}},[],import.meta.url)).default,xZ=()=>Ui(_Z),C9e=()=>A.createElement(nr,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:_Z,width:"48"}),CZ=async()=>(await me(async()=>{const{default:e}=await import("./refresh-5KGGHTJP-CHhFOl-t.js");return{default:e}},[],import.meta.url)).default,S9e=()=>Ui(CZ),T9e=()=>A.createElement(nr,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:CZ,width:"48"}),SZ=async()=>(await me(async()=>{const{default:e}=await import("./scan-HZBLXLM4-DxZfTx07.js");return{default:e}},[],import.meta.url)).default,TZ=()=>Ui(SZ),A9e=()=>A.createElement(nr,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:SZ,width:"48"}),D9e="_1vwt0cg0",k9e="_1vwt0cg2 ju367v7a ju367v7v",j9e="_1vwt0cg3",P9e="_1vwt0cg4",I9e=(e,t)=>{const n=Array.prototype.slice.call(wy.create(e,{errorCorrectionLevel:t}).modules.data,0),r=Math.sqrt(n.length);return n.reduce((o,a,i)=>(i%r===0?o.push([a]):o[o.length-1].push(a))&&o,[])};function AZ({ecl:e="M",logoBackground:t,logoMargin:n=10,logoSize:r=50,logoUrl:o,size:a=200,uri:i}){const s="20",c=a-parseInt(s,10)*2,l=S.useMemo(()=>{const f=[],h=I9e(i,e),m=c/h.length;[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:w,y:_})=>{const C=(h.length-7)*m*w,x=(h.length-7)*m*_;for(let E=0;E<3;E++)f.push(A.createElement("rect",{fill:E%2!==0?"white":"black",height:m*(7-E*2),key:`${E}-${w}-${_}`,rx:(E-2)*-5+(E===0?2:0),ry:(E-2)*-5+(E===0?2:0),width:m*(7-E*2),x:C+m*E,y:x+m*E}))});const b=Math.floor((r+25)/m),v=h.length/2-b/2,g=h.length/2+b/2-1;return h.forEach((w,_)=>{w.forEach((C,x)=>{h[_][x]&&(_<7&&x<7||_>h.length-8&&x<7||_<7&&x>h.length-8||_>v&&_v&&x{switch(EP()){case"Arc":return(await me(async()=>{const{default:t}=await import("./Arc-QDJFTGH2-kQUVOusT.js");return{default:t}},[],import.meta.url)).default;case"Brave":return(await me(async()=>{const{default:t}=await import("./Brave-YATE5BIM-Crgwi_gE.js");return{default:t}},[],import.meta.url)).default;case"Chrome":return(await me(async()=>{const{default:t}=await import("./Chrome-LGF33C3S-CKyHgdNL.js");return{default:t}},[],import.meta.url)).default;case"Edge":return(await me(async()=>{const{default:t}=await import("./Edge-K2JEGI5S-_s-lgiRS.js");return{default:t}},[],import.meta.url)).default;case"Firefox":return(await me(async()=>{const{default:t}=await import("./Firefox-NP5SYEK5-7GCpd7vS.js");return{default:t}},[],import.meta.url)).default;case"Opera":return(await me(async()=>{const{default:t}=await import("./Opera-KV54PXPA-7mn5oIb-.js");return{default:t}},[],import.meta.url)).default;case"Safari":return(await me(async()=>{const{default:t}=await import("./Safari-2QIYKJ4P-DQKkg1Bn.js");return{default:t}},[],import.meta.url)).default;default:return(await me(async()=>{const{default:t}=await import("./Browser-HN7O5MN7-DHqH2OSI.js");return{default:t}},[],import.meta.url)).default}},O9e=()=>Ui(DZ),kZ=async()=>{switch(xP()){case"Windows":return(await me(async()=>{const{default:t}=await import("./Windows-R3CKAIUV-PWNRgNSo.js");return{default:t}},[],import.meta.url)).default;case"macOS":return(await me(async()=>{const{default:t}=await import("./Macos-2KTZ2XLP-pPa2wwwq.js");return{default:t}},[],import.meta.url)).default;case"Linux":return(await me(async()=>{const{default:t}=await import("./Linux-NS2LQPT4-BSWfZXoy.js");return{default:t}},[],import.meta.url)).default;default:return(await me(async()=>{const{default:t}=await import("./Linux-NS2LQPT4-BSWfZXoy.js");return{default:t}},[],import.meta.url)).default}},R9e=()=>Ui(kZ);function N9e({getWalletDownload:e,compactModeEnabled:t}){const r=S6().splice(0,5),{i18n:o}=S.useContext(ar);return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},r==null?void 0:r.filter(a=>{var i;return a.extensionDownloadUrl||a.desktopDownloadUrl||a.qrCode&&((i=a.downloadUrls)==null?void 0:i.qrCode)}).map(a=>{const{downloadUrls:i,iconBackground:s,iconUrl:c,id:l,name:u,qrCode:d}=a,f=(i==null?void 0:i.qrCode)&&d,h=!!a.extensionDownloadUrl,m=(i==null?void 0:i.qrCode)&&h,p=(i==null?void 0:i.qrCode)&&!!a.desktopDownloadUrl;return A.createElement($,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:a.id,width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},A.createElement(nr,{background:s,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:c,width:"48"}),A.createElement($,{display:"flex",flexDirection:"column",gap:"2"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},u),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},m?o.t("get.mobile_and_extension.description"):p?o.t("get.mobile_and_desktop.description"):f?o.t("get.mobile.description"):h?o.t("get.extension.description"):null))),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(to,{label:o.t("get.action.label"),onClick:()=>e(l),type:"secondary"})))})),A.createElement($,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},o.t("get.looking_for.title")),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},t?o.t("get.looking_for.desktop.compact_description"):o.t("get.looking_for.desktop.wide_description"))))}var hT="44";function B9e({changeWalletStep:e,compactModeEnabled:t,connectionError:n,onClose:r,qrCodeUri:o,reconnect:a,wallet:i}){var s;const{downloadUrls:c,iconBackground:l,iconUrl:u,name:d,qrCode:f,ready:h,showWalletConnectModal:m}=i,p=(s=i.desktop)==null?void 0:s.getUri,b=wP(),{i18n:v}=S.useContext(ar),g=!!i.extensionDownloadUrl,w=(c==null?void 0:c.qrCode)&&g,_=(c==null?void 0:c.qrCode)&&!!i.desktopDownloadUrl,C=f&&o,x=m?{description:t?v.t("connect.walletconnect.description.compact"):v.t("connect.walletconnect.description.full"),label:v.t("connect.walletconnect.open.label"),onClick:()=>{r(),m()}}:C?{description:v.t("connect.secondary_action.get.description",{wallet:d}),label:v.t("connect.secondary_action.get.label"),onClick:()=>e(w||_?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:E}=oZ(),T=E&&E<768;return S.useEffect(()=>{O9e(),R9e()},[]),A.createElement($,{display:"flex",flexDirection:"column",height:"full",width:"full"},C?A.createElement($,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},A.createElement(AZ,{logoBackground:l,logoSize:t?60:72,logoUrl:u,size:t?318:T?Math.max(280,Math.min(E-308,382)):382,uri:o})):A.createElement($,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},A.createElement($,{borderRadius:"10",height:hT,overflow:"hidden"},A.createElement(nr,{height:hT,src:u,width:hT})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},A.createElement(Ae,{color:"modalText",size:"18",weight:"bold"},h?v.t("connect.status.opening",{wallet:d}):g?v.t("connect.status.not_installed",{wallet:d}):v.t("connect.status.not_available",{wallet:d})),!h&&g?A.createElement($,{paddingTop:"20"},A.createElement(to,{href:i.extensionDownloadUrl,label:v.t("connect.secondary_action.install.label"),type:"secondary"})):null,h&&!C&&A.createElement(A.Fragment,null,A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},A.createElement(Ae,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},v.t("connect.status.confirm"))),A.createElement($,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},n?A.createElement(to,{label:v.t("connect.secondary_action.retry.label"),onClick:p?async()=>{const k=await p();window.open(k,b?"_blank":"_self")}:()=>{a(i)}}):A.createElement($,{color:"modalTextSecondary"},A.createElement(_g,null))))))),A.createElement($,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},h&&x&&A.createElement(A.Fragment,null,A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},x.description),A.createElement(to,{label:x.label,onClick:x.onClick,type:"secondary"}))))}var mT=({actionLabel:e,description:t,iconAccent:n,iconBackground:r,iconUrl:o,isCompact:a,onAction:i,title:s,url:c,variant:l})=>{const u=l==="browser",d=!u&&n&&w9e(n);return A.createElement($,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:a?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},A.createElement($,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),u&&A.createElement($,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},A.createElement($,{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)"}},A.createElement($,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},A.createElement(nr,{borderRadius:"full",height:"200",src:o,width:"200"})),A.createElement($,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},A.createElement(nr,{borderRadius:"full",height:"200",src:o,width:"200"})))),!u&&d&&A.createElement($,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},A.createElement($,{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}}),A.createElement($,{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}})),A.createElement($,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},A.createElement($,null,A.createElement(nr,{height:"60",src:o,width:"60",...r?{background:r,borderColor:"generalBorder",borderRadius:"10"}:null})),A.createElement($,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},s),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},t),A.createElement($,{marginTop:"14",width:"max"},A.createElement(to,{href:c,label:e,onClick:i,size:"medium"})))))};function F9e({changeWalletStep:e,wallet:t}){const n=EP(),r=xP(),a=S.useContext(C6)==="compact",{desktop:i,desktopDownloadUrl:s,extension:c,extensionDownloadUrl:l,mobileDownloadUrl:u}=t,{i18n:d}=S.useContext(ar);return S.useEffect(()=>{xZ(),TZ(),S9e(),_9e()},[]),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},l&&A.createElement(mT,{actionLabel:d.t("get_options.extension.download.label",{browser:n}),description:d.t("get_options.extension.description"),iconUrl:DZ,isCompact:a,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"}),s&&A.createElement(mT,{actionLabel:d.t("get_options.desktop.download.label",{platform:r}),description:d.t("get_options.desktop.description"),iconUrl:kZ,isCompact:a,onAction:()=>e(i!=null&&i.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:d.t("get_options.desktop.title",{wallet:t.name,platform:r}),url:s,variant:"desktop"}),u&&A.createElement(mT,{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:a,onAction:()=>{e("DOWNLOAD")},title:d.t("get_options.mobile.title",{wallet:t.name}),variant:"app"})))}function M9e({changeWalletStep:e,wallet:t}){const{downloadUrls:n,qrCode:r}=t,{i18n:o}=S.useContext(ar);return S.useEffect(()=>{xZ(),TZ()},[]),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},A.createElement($,{style:{maxWidth:220,textAlign:"center"}},A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"semibold"},o.t("get_mobile.description"))),A.createElement($,{height:"full"},n!=null&&n.qrCode?A.createElement(AZ,{logoSize:0,size:268,uri:n.qrCode}):null),A.createElement($,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},A.createElement(to,{label:o.t("get_mobile.continue.label"),onClick:()=>e(r!=null&&r.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var Bh={connect:()=>A.createElement(x9e,null),create:()=>A.createElement(C9e,null),install:e=>A.createElement(nr,{background:e.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:e.iconUrl,width:"48"}),refresh:()=>A.createElement(T9e,null),scan:()=>A.createElement(A9e,null)};function L9e({connectWallet:e,wallet:t}){var n,r,o,a;const{i18n:i}=S.useContext(ar);return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},A.createElement($,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(r=(n=t==null?void 0:t.qrCode)==null?void 0:n.instructions)==null?void 0:r.steps.map((s,c)=>{var l;return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:c},A.createElement($,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(l=Bh[s.step])==null?void 0:l.call(Bh,t)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},i.t(s.title)),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t(s.description))))})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},A.createElement(to,{label:i.t("get_instructions.mobile.connect.label"),onClick:()=>e(t)}),A.createElement($,{as:"a",className:wr({active:"shrink",hover:"grow"}),display:"block",href:(a=(o=t==null?void 0:t.qrCode)==null?void 0:o.instructions)==null?void 0:a.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},i.t("get_instructions.mobile.learn_more.label")))))}function U9e({wallet:e}){var t,n,r,o;const{i18n:a}=S.useContext(ar);return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},A.createElement($,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(n=(t=e==null?void 0:e.extension)==null?void 0:t.instructions)==null?void 0:n.steps.map((i,s)=>{var c;return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:s},A.createElement($,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(c=Bh[i.step])==null?void 0:c.call(Bh,e)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},a.t(i.title)),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t(i.description))))})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},A.createElement(to,{label:a.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),A.createElement($,{as:"a",className:wr({active:"shrink",hover:"grow"}),display:"block",href:(o=(r=e==null?void 0:e.extension)==null?void 0:r.instructions)==null?void 0:o.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},a.t("get_instructions.extension.learn_more.label")))))}function $9e({connectWallet:e,wallet:t}){var n,r,o,a;const{i18n:i}=S.useContext(ar);return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},A.createElement($,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(r=(n=t==null?void 0:t.desktop)==null?void 0:n.instructions)==null?void 0:r.steps.map((s,c)=>{var l;return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:c},A.createElement($,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(l=Bh[s.step])==null?void 0:l.call(Bh,t)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},i.t(s.title)),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t(s.description))))})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},A.createElement(to,{label:i.t("get_instructions.desktop.connect.label"),onClick:()=>e(t)}),A.createElement($,{as:"a",className:wr({active:"shrink",hover:"grow"}),display:"block",href:(a=(o=t==null?void 0:t.desktop)==null?void 0:o.instructions)==null?void 0:a.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},i.t("get_instructions.desktop.learn_more.label")))))}function z9e({onClose:e}){const t="rk_connect_title",n=wP(),[r,o]=S.useState(),[a,i]=S.useState(),[s,c]=S.useState(),l=!!(a!=null&&a.qrCode)&&s,[u,d]=S.useState(!1),h=S.useContext(C6)===vb.COMPACT,{disclaimer:m}=S.useContext(Hm),{i18n:p}=S.useContext(ar),b=S.useRef(!1),{connector:v}=S.useContext(bb),g=S6().filter(L=>L.ready||!!L.extensionDownloadUrl).sort((L,X)=>L.groupIndex-X.groupIndex),w=f9e(g,L=>L.groupName),_=["Recommended","Other","Popular","More","Others"];S.useEffect(()=>{v&&!b.current&&(k("CONNECT"),x(v),b.current=!0)},[v]);const C=L=>{var X,J,U;if(d(!1),L.ready){(J=(X=L==null?void 0:L.connect)==null?void 0:X.call(L))==null||J.catch(()=>{d(!0)});const G=(U=L.desktop)==null?void 0:U.getUri;G&&setTimeout(async()=>{const Z=await G();window.open(Z,n?"_blank":"_self")},0)}},x=L=>{var X;if(m9e(L.id),C(L),o(L.id),L.ready){let J=!1;(X=L==null?void 0:L.onConnecting)==null||X.call(L,async()=>{var U,G;if(J)return;J=!0;const Z=g.find(te=>L.id===te.id),ae=await((U=Z==null?void 0:Z.qrCode)==null?void 0:U.getUri());c(ae),setTimeout(()=>{i(Z),k("CONNECT")},ae?0:50);const ne=await(Z==null?void 0:Z.connector.getProvider()),ie=(G=ne==null?void 0:ne.signer)==null?void 0:G.connection;if(ie!=null&&ie.on&&(ie!=null&&ie.off)){const te=()=>{ee(),x(L)},ee=()=>{ie.off("close",te),ie.off("open",ee)};ie.on("close",te),ie.on("open",ee)}})}else i(L),k(L!=null&&L.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT")},E=L=>{var X;o(L);const J=g.find(ae=>L===ae.id),U=(X=J==null?void 0:J.downloadUrls)==null?void 0:X.qrCode,G=!!(J!=null&&J.desktopDownloadUrl),Z=!!(J!=null&&J.extensionDownloadUrl);i(J),k(U&&(Z||G)?"DOWNLOAD_OPTIONS":U?"DOWNLOAD":G?"INSTRUCTIONS_DESKTOP":"INSTRUCTIONS_EXTENSION")},T=()=>{o(void 0),i(void 0),c(void 0)},k=(L,X=!1)=>{X&&L==="GET"&&D==="GET"?T():!X&&L==="GET"?R("GET"):!X&&L==="CONNECT"&&R("CONNECT"),B(L)},[D,R]=S.useState("NONE"),[F,B]=S.useState("NONE");let j=null,P=null,O=null,I;S.useEffect(()=>{d(!1)},[F,a]);const M=!!(!!(a!=null&&a.extensionDownloadUrl)&&(a!=null&&a.mobileDownloadUrl));switch(F){case"NONE":j=A.createElement(MF,{getWallet:()=>k("GET")});break;case"LEARN_COMPACT":j=A.createElement(MF,{compactModeEnabled:h,getWallet:()=>k("GET")}),P=p.t("intro.title"),O="NONE";break;case"GET":j=A.createElement(N9e,{getWalletDownload:E,compactModeEnabled:h}),P=p.t("get.title"),O=h?"LEARN_COMPACT":"NONE";break;case"CONNECT":j=a&&A.createElement(B9e,{changeWalletStep:k,compactModeEnabled:h,connectionError:u,onClose:e,qrCodeUri:s,reconnect:C,wallet:a}),P=l&&(a.name==="WalletConnect"?p.t("connect_scan.fallback_title"):p.t("connect_scan.title",{wallet:a.name})),O=h?v?null:"NONE":null,I=h?v?()=>{}:T:()=>{};break;case"DOWNLOAD_OPTIONS":j=a&&A.createElement(F9e,{changeWalletStep:k,wallet:a}),P=a&&p.t("get_options.short_title",{wallet:a.name}),O=v?"CONNECT":h?"NONE":null;break;case"DOWNLOAD":j=a&&A.createElement(M9e,{changeWalletStep:k,wallet:a}),P=a&&p.t("get_mobile.title",{wallet:a.name}),O=M?"DOWNLOAD_OPTIONS":D;break;case"INSTRUCTIONS_MOBILE":j=a&&A.createElement(L9e,{connectWallet:x,wallet:a}),P=a&&p.t("get_options.title",{wallet:h&&a.shortName||a.name}),O="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":j=a&&A.createElement(U9e,{wallet:a}),P=a&&p.t("get_options.title",{wallet:h&&a.shortName||a.name}),O="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":j=a&&A.createElement($9e,{connectWallet:x,wallet:a}),P=a&&p.t("get_options.title",{wallet:h&&a.shortName||a.name}),O="DOWNLOAD_OPTIONS";break}return A.createElement($,{display:"flex",flexDirection:"row",style:{maxHeight:h?468:504}},(h?F==="NONE":!0)&&A.createElement($,{className:h?P9e:j9e,display:"flex",flexDirection:"column",marginTop:"16"},A.createElement($,{display:"flex",justifyContent:"space-between"},h&&m&&A.createElement($,{marginLeft:"16",width:"28"},A.createElement(g9e,{onClick:()=>k("LEARN_COMPACT")})),h&&!m&&A.createElement($,{marginLeft:"16",width:"28"}),A.createElement($,{marginLeft:h?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},A.createElement(Ae,{as:"h1",color:"modalText",id:t,size:"18",weight:"heavy",testId:"connect-header-label"},p.t("connect.title"))),h&&A.createElement($,{marginRight:"16"},A.createElement(od,{onClose:e}))),A.createElement($,{className:k9e,paddingBottom:"18"},Object.entries(w).map(([L,X],J)=>X.length>0&&A.createElement(S.Fragment,{key:J},L?A.createElement($,{marginBottom:"8",marginTop:"16",marginX:"6"},A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"bold"},_.includes(L)?p.t(`connector_group.${L.toLowerCase()}`):L)):null,A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},X.map(U=>A.createElement(wZ,{currentlySelected:U.id===r,iconBackground:U.iconBackground,iconUrl:U.iconUrl,key:U.id,name:U.name,onClick:()=>x(U),ready:U.ready,recent:U.recent,testId:`wallet-option-${U.id}`})))))),h&&A.createElement(A.Fragment,null,A.createElement($,{background:"generalBorder",height:"1",marginTop:"-1"}),m?A.createElement($,{paddingX:"24",paddingY:"16",textAlign:"center"},A.createElement(m,{Link:CP,Text:SP})):A.createElement($,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},A.createElement($,{paddingY:"4"},A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},p.t("connect.new_to_ethereum.description"))),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},A.createElement($,{className:wr({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>k("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},p.t("connect.new_to_ethereum.learn_more.label"))))))),(h?F!=="NONE":!0)&&A.createElement(A.Fragment,null,!h&&A.createElement($,{background:"generalBorder",minWidth:"1",width:"1"}),A.createElement($,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},A.createElement($,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},A.createElement($,{width:"28"},O&&A.createElement($,{as:"button",className:wr({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{O&&k(O,!0),I==null||I()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},A.createElement(bZ,null))),A.createElement($,{display:"flex",justifyContent:"center",style:{flexGrow:1}},P&&A.createElement(Ae,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},P)),A.createElement(od,{onClose:e})),A.createElement($,{display:"flex",flexDirection:"column",style:{minHeight:h?396:432}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},j)))))}var H9e="_1am14412",q9e="_1am14410",W9e="_1am14413",G9e=({wallet:e})=>A.createElement("svg",{className:W9e,viewBox:"0 0 86 86",width:"86",height:"86"},A.createElement("title",null,"Loading"),A.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:`${160/3} ${2*160/3}`,strokeDashoffset:160,className:H9e,style:{stroke:(e==null?void 0:e.iconAccent)||"#0D3887"}}));function jZ({onClose:e,wallet:t,connecting:n}){const{connect:r,connector:o,iconBackground:a,iconUrl:i,id:s,mobile:c,name:l,onConnecting:u,ready:d,shortName:f}=t,h=c==null?void 0:c.getUri,m=vZ(i),p=S.useRef(!1),{i18n:b}=S.useContext(ar),v=S.useCallback(async()=>{var g;s==="walletConnect"&&(e==null||e()),(g=r==null?void 0:r())==null||g.catch(()=>{});let w=!1;u==null||u(async()=>{if(!w&&(w=!0,h)){const _=await h();if((o.id==="walletConnect"||o.id==="walletConnectLegacy")&&OBe({mobileUri:_,name:l}),_.startsWith("http")){const C=document.createElement("a");C.href=_,C.target="_blank",C.rel="noreferrer noopener",C.click()}else window.location.href=_}})},[o,r,h,u,e,l,s]);return S.useEffect(()=>{n&&!p.current&&(v(),p.current=!0)},[n,v]),A.createElement($,{as:"button",color:d?"modalText":"modalTextSecondary",disabled:!d,fontFamily:"body",key:s,onClick:v,ref:m,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${s}`,type:"button",width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},A.createElement($,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},n?A.createElement(G9e,{wallet:t}):null,A.createElement(nr,{background:a,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:i,width:"60"})),n?null:A.createElement($,{display:"flex",flexDirection:"column",textAlign:"center"},A.createElement(Ae,{as:"h2",color:t.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},A.createElement($,{as:"span",position:"relative"},f??l,!t.ready&&" (unsupported)")),t.recent&&A.createElement(Ae,{color:"accentColor",size:"12",weight:"medium"},b.t("connect.recent")))))}function V9e({onClose:e}){var t;const n="rk_connect_title",r=S6(),{disclaimer:o,learnMoreUrl:a}=S.useContext(Hm);let i=null,s=null,c=!1,l=null;const[u,d]=S.useState("CONNECT"),{i18n:f}=S.useContext(ar),h=Ll();switch(u){case"CONNECT":{i=f.t("connect.title"),c=!0,s=A.createElement($,null,A.createElement($,{background:"profileForeground",className:q9e,display:"flex",paddingBottom:"20",paddingTop:"6"},A.createElement($,{display:"flex",style:{margin:"0 auto"}},r.filter(m=>m.ready).map(m=>A.createElement($,{key:m.id,paddingX:"20"},A.createElement($,{width:"60"},A.createElement(jZ,{onClose:e,wallet:m})))))),A.createElement($,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},A.createElement($,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},A.createElement(Ae,{color:"modalText",size:"16",weight:"bold"},f.t("intro.title")),A.createElement(Ae,{color:"modalTextSecondary",size:"16"},f.t("intro.description")))),A.createElement($,{paddingTop:"32",paddingX:"20"},A.createElement($,{display:"flex",gap:"14",justifyContent:"center"},A.createElement(to,{label:f.t("intro.get.label"),onClick:()=>d("GET"),size:"large",type:"secondary"}),A.createElement(to,{href:a,label:f.t("intro.learn_more.label"),size:"large",type:"secondary"}))),o&&A.createElement($,{marginTop:"28",marginX:"32",textAlign:"center"},A.createElement(o,{Link:CP,Text:SP})));break}case"GET":{i=f.t("get.title"),l="CONNECT";const m=(t=r==null?void 0:r.filter(p=>{var b,v,g;return((b=p.downloadUrls)==null?void 0:b.ios)||((v=p.downloadUrls)==null?void 0:v.android)||((g=p.downloadUrls)==null?void 0:g.mobile)}))==null?void 0:t.splice(0,3);s=A.createElement($,null,A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},m.map((p,b)=>{const{downloadUrls:v,iconBackground:g,iconUrl:w,name:_}=p;return!(v!=null&&v.ios)&&!(v!=null&&v.android)&&!(v!=null&&v.mobile)?null:A.createElement($,{display:"flex",gap:"16",key:p.id,paddingX:"20",width:"full"},A.createElement($,{style:{minHeight:48,minWidth:48}},A.createElement(nr,{background:g,borderColor:"generalBorder",borderRadius:"10",height:"48",src:w,width:"48"})),A.createElement($,{display:"flex",flexDirection:"column",width:"full"},A.createElement($,{alignItems:"center",display:"flex",height:"48"},A.createElement($,{width:"full"},A.createElement(Ae,{color:"modalText",size:"18",weight:"bold"},_)),A.createElement(to,{href:(h?v==null?void 0:v.ios:v==null?void 0:v.android)||(v==null?void 0:v.mobile),label:f.t("get.action.label"),size:"small",type:"secondary"})),bd(l),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},A.createElement(bZ,null))),A.createElement($,{marginTop:"4",textAlign:"center",width:"full"},A.createElement(Ae,{as:"h1",color:"modalText",id:n,size:"20",weight:"bold"},i)),A.createElement($,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},A.createElement($,{style:{marginBottom:-20,marginTop:-20}},A.createElement(od,{onClose:e}))))),A.createElement($,{display:"flex",flexDirection:"column"},s))}var K9e=({onClose:e})=>{const{connector:t}=S.useContext(bb),{i18n:n}=S.useContext(ar),r=(t==null?void 0:t.name)||"";return A.createElement($,null,A.createElement($,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},A.createElement($,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},A.createElement(od,{onClose:e})),A.createElement($,{width:"60"},A.createElement(jZ,{onClose:e,wallet:t,connecting:!0})),A.createElement($,{marginTop:"20"},A.createElement(Ae,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},n.t("connect.status.connect_mobile",{wallet:r}))),A.createElement($,{maxWidth:"full",marginTop:"8"},A.createElement(Ae,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},n.t("connect.status.confirm_mobile",{wallet:r})))))};function Y9e({onClose:e}){const{connector:t}=S.useContext(bb);return Cr()?t?A.createElement(K9e,{onClose:e}):A.createElement(V9e,{onClose:e}):A.createElement(z9e,{onClose:e})}function Q9e({onClose:e,open:t}){const n="rk_connect_title",r=HJ(),{disconnect:o}=Qx(),{isConnecting:a}=tn(),i=A.useCallback(()=>{e(),o()},[e,o]),s=A.useCallback(()=>{a&&o(),e()},[e,o,a]);return r==="disconnected"?A.createElement(ME,{onClose:s,open:t,titleId:n},A.createElement(LE,{bottomSheetOnMobile:!0,padding:"0",wide:!0},A.createElement(Y9e,{onClose:s}))):r==="unauthenticated"?A.createElement(ME,{onClose:i,open:t,titleId:n},A.createElement(LE,{bottomSheetOnMobile:!0,padding:"0"},A.createElement(PBe,{onClose:i,onCloseModal:e}))):null}function pT(){const[e,t]=S.useState(!1);return{closeModal:S.useCallback(()=>t(!1),[]),isModalOpen:e,openModal:S.useCallback(()=>t(!0),[])}}var wb=S.createContext({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1});function X9e({children:e}){const{closeModal:t,isModalOpen:n,openModal:r}=pT(),{closeModal:o,isModalOpen:a,openModal:i}=pT(),{closeModal:s,isModalOpen:c,openModal:l}=pT(),u=HJ(),{chain:d}=To(),f=!(d!=null&&d.unsupported);function h({keepConnectModalOpen:p=!1}={}){p||t(),o(),s()}const m=_6()==="unauthenticated";return tn({onConnect:()=>h({keepConnectModalOpen:m}),onDisconnect:()=>h()}),A.createElement(wb.Provider,{value:S.useMemo(()=>({accountModalOpen:a,chainModalOpen:c,connectModalOpen:n,openAccountModal:f&&u==="connected"?i:void 0,openChainModal:u==="connected"?l:void 0,openConnectModal:u==="disconnected"||u==="unauthenticated"?r:void 0}),[u,f,a,c,n,i,l,r])},e,A.createElement(Q9e,{onClose:t,open:n}),A.createElement(i9e,{onClose:o,open:a}),A.createElement(d9e,{onClose:s,open:c}))}function J9e(){const{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}=S.useContext(wb);return{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}}function Z9e(){const{accountModalOpen:e,openAccountModal:t}=S.useContext(wb);return{accountModalOpen:e,openAccountModal:t}}function eFe(){const{chainModalOpen:e,openChainModal:t}=S.useContext(wb);return{chainModalOpen:e,openChainModal:t}}function Eb(){const{connectModalOpen:e,openConnectModal:t}=S.useContext(wb);return{connectModalOpen:e,openConnectModal:t}}var gT=()=>{};function tFe({children:e}){var t,n,r,o;const a=ZNe(),{address:i}=tn(),s=XJ(i),c=QJ(s),l=QNe(),u=(t=_6())!=null?t:void 0,{chain:d}=To(),f=d?l[d.id]:void 0,h=(n=f==null?void 0:f.name)!=null?n:void 0,m=(r=f==null?void 0:f.iconUrl)!=null?r:void 0,p=(o=f==null?void 0:f.iconBackground)!=null?o:void 0,b=pP(m),v=S.useContext(vP),g=tZ().some(({status:B})=>B==="pending")&&v,{showBalance:w}=JNe(),_=w?_Ne(w)[Cr()?"smallScreen":"largeScreen"]:!0,{data:C}=FY({address:_?i:void 0}),x=C?`${hZ(parseFloat(C.formatted))} ${C.symbol}`:void 0,{openConnectModal:E}=Eb(),{openChainModal:T}=eFe(),{openAccountModal:k}=Z9e(),{accountModalOpen:D,chainModalOpen:R,connectModalOpen:F}=J9e();return A.createElement(A.Fragment,null,e({account:i?{address:i,balanceDecimals:C==null?void 0:C.decimals,balanceFormatted:C==null?void 0:C.formatted,balanceSymbol:C==null?void 0:C.symbol,displayBalance:x,displayName:s?pZ(s):mZ(i),ensAvatar:c??void 0,ensName:s??void 0,hasPendingTransactions:g}:void 0,accountModalOpen:D,authenticationStatus:u,chain:d?{hasIcon:!!m,iconBackground:p,iconUrl:b,id:d.id,name:h??d.name,unsupported:d.unsupported}:void 0,chainModalOpen:R,connectModalOpen:F,mounted:a(),openAccountModal:k??gT,openChainModal:T??gT,openConnectModal:E??gT}))}tFe.displayName="ConnectButton.Custom";function nFe(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0))}function PZ(e){return"groupName"in e[0]?UF(e):UF([{groupName:"",wallets:e}])()}var UF=e=>()=>{let t=-1;const n=[],r=[],o=[],a=[];return e.forEach(({groupName:s,wallets:c},l)=>{c.forEach(u=>{if(t++,u!=null&&u.iconAccent&&!E9e(u==null?void 0:u.iconAccent))throw new Error(`Property \`iconAccent\` is not a hex value for wallet: ${u.name}`);const d={...u,groupIndex:l,groupName:s,index:t};typeof u.hidden=="function"?o.push(d):r.push(d)})}),[...r,...o].forEach(({createConnector:s,groupIndex:c,groupName:l,hidden:u,index:d,...f})=>{if(typeof u=="function"&&u({wallets:[...a.map(({connector:g,id:w,installed:_,name:C})=>({connector:g,id:w,installed:_,name:C}))]}))return;const{connector:h,...m}=nFe(s());let p;if(f.id==="walletConnect"&&m.qrCode&&!Cr()){const{chains:v,options:g}=h;p=new q4({chains:v,options:{...g,showQrModal:!0}}),n.push(p)}const b={connector:h,groupIndex:c,groupName:l,index:d,walletConnectModalConnector:p,...f,...m};a.push(b),n.includes(h)||(n.push(h),h._wallets=[]),h._wallets.push(b)}),n},rFe=({chains:e,...t})=>{var n;return{id:"brave",name:"Brave Wallet",iconUrl:async()=>(await me(async()=>{const{default:r}=await import("./braveWallet-BTBH4MDN-Dk8CDq00.js");return{default:r}},[],import.meta.url)).default,iconBackground:"#fff",installed:typeof window<"u"&&((n=window.ethereum)==null?void 0:n.isBraveWallet)===!0,downloadUrls:{},createConnector:()=>({connector:new Ds({chains:e,options:t})})}};function IZ(e){if(typeof window>"u"||typeof window.ethereum>"u")return;const t=window.ethereum.providers;return t?t.find(n=>n[e]):window.ethereum[e]?window.ethereum:void 0}function OZ(e){return!!IZ(e)}function oFe(e){if(typeof window>"u"||typeof window.ethereum>"u")return;const t=window.ethereum.providers,n=IZ(e);return n||(typeof t<"u"&&t.length>0?t[0]:window.ethereum)}function aFe({chains:e,flag:t,options:n}){return new Ds({chains:e,options:{getProvider:()=>oFe(t),...n}})}var iFe=({appName:e,chains:t,...n})=>{const r=OZ("isCoinbaseWallet");return{id:"coinbase",name:"Coinbase Wallet",shortName:"Coinbase",iconUrl:async()=>(await me(async()=>{const{default:o}=await import("./coinbaseWallet-2OUR5TUP-CpvNSmI2.js");return{default:o}},[],import.meta.url)).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:r||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},createConnector:()=>{const o=Ll(),a=new f3e({chains:t,options:{appName:e,headlessMode:!0,...n}});return{connector:a,...o?{}:{qrCode:{getUri:async()=>(await a.getProvider()).qrUrl,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"wallet_connectors.coinbase.qr_code.step1.description",step:"install",title:"wallet_connectors.coinbase.qr_code.step1.title"},{description:"wallet_connectors.coinbase.qr_code.step2.description",step:"create",title:"wallet_connectors.coinbase.qr_code.step2.title"},{description:"wallet_connectors.coinbase.qr_code.step3.description",step:"scan",title:"wallet_connectors.coinbase.qr_code.step3.title"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"wallet_connectors.coinbase.extension.step1.description",step:"install",title:"wallet_connectors.coinbase.extension.step1.title"},{description:"wallet_connectors.coinbase.extension.step2.description",step:"create",title:"wallet_connectors.coinbase.extension.step2.title"},{description:"wallet_connectors.coinbase.extension.step3.description",step:"refresh",title:"wallet_connectors.coinbase.extension.step3.title"}]}}}}}}},sFe=({chains:e,...t})=>({id:"injected",name:"Browser Wallet",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./injectedWallet-EUKDEAIU-CMyNXBNM.js");return{default:n}},[],import.meta.url)).default,iconBackground:"#fff",hidden:({wallets:n})=>n.some(r=>r.installed&&r.name===r.connector.name&&(r.connector instanceof Ds||r.id==="coinbase")),createConnector:()=>({connector:new Ds({chains:e,options:t})})});async function TP(e,t){const n=await e.getProvider();return t==="2"?new Promise(r=>n.once("display_uri",r)):n.connector.uri}var RZ=new Map;function cFe(e,t){const n=e==="1"?new iX(t):new q4(t);return RZ.set(JSON.stringify(t),n),n}function UE({chains:e,options:t={},projectId:n,version:r="2"}){const o="21fef48091f12692cad574a6f7753643";if(r==="2"){if(!n||n==="")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");(n==="YOUR_PROJECT_ID"||n===o)&&console.warn("Invalid projectId. Please create a unique WalletConnect Cloud projectId for your dApp https://www.rainbowkit.com/docs/installation#configure")}const a={chains:e,options:r==="1"?{qrcode:!1,...t}:{projectId:n==="YOUR_PROJECT_ID"?o:n,showQrModal:!1,...t}},i=JSON.stringify(a),s=RZ.get(i);return s??cFe(r,a)}function $F(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.isBlockWallet||e.isCoinbaseWallet||e.isDawn||e.isEnkrypt||e.isExodus||e.isFrame||e.isFrontier||e.isGamestop||e.isHyperPay||e.isImToken||e.isKuCoinWallet||e.isMathWallet||e.isOkxWallet||e.isOKExWallet||e.isOneInchIOSWallet||e.isOneInchAndroidWallet||e.isOpera||e.isPhantom||e.isPortal||e.isRabby||e.isRainbow||e.isStatus||e.isTalisman||e.isTally||e.isTokenPocket||e.isTokenary||e.isTrust||e.isTrustWallet||e.isXDEFI||e.isZeal||e.isZerion)}var lFe=({chains:e,projectId:t,walletConnectOptions:n,walletConnectVersion:r="2",...o})=>{var a,i;const s=typeof window<"u"&&((a=window.ethereum)==null?void 0:a.providers),c=typeof window<"u"&&typeof window.ethereum<"u"&&(((i=window.ethereum.providers)==null?void 0:i.some($F))||window.ethereum.isMetaMask),l=!c;return{id:"metaMask",name:"MetaMask",iconUrl:async()=>(await me(async()=>{const{default:u}=await import("./metaMaskWallet-ORHUNQRP-DhHH5FFG.js");return{default:u}},[],import.meta.url)).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:l?void 0:c,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"},createConnector:()=>{const u=l?UE({projectId:t,chains:e,version:r,options:n}):new h3e({chains:e,options:{getProvider:()=>Array.isArray(s)&&s.find($F)||(typeof window<"u"?window.ethereum:void 0),...o}}),d=async()=>{const f=await TP(u,r);return mP()?f:Ll()?`metamask://wc?uri=${encodeURIComponent(f)}`:`https://metamask.app.link/wc?uri=${encodeURIComponent(f)}`};return{connector:u,mobile:{getUri:l?d:void 0},qrCode:l?{getUri:d,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"}]}}}}}},uFe=({chains:e,projectId:t,walletConnectOptions:n,walletConnectVersion:r="2",...o})=>{const a=OZ("isRainbow"),i=!a;return{id:"rainbow",name:"Rainbow",iconUrl:async()=>(await me(async()=>{const{default:s}=await import("./rainbowWallet-GGU64QEI-Buwz1oV3.js");return{default:s}},[],import.meta.url)).default,iconBackground:"#0c2f78",installed:i?void 0:a,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"},createConnector:()=>{const s=i?UE({projectId:t,chains:e,version:r,options:n}):aFe({flag:"isRainbow",chains:e,options:o}),c=async()=>{const l=await TP(s,r);return mP()?l:Ll()?`rainbow://wc?uri=${encodeURIComponent(l)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(l)}&connector=rainbowkit`};return{connector:s,mobile:{getUri:i?c:void 0},qrCode:i?{getUri:c,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}}}},dFe=({chains:e,...t})=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./safeWallet-DFMLSLCR-7Jx5rkap.js");return{default:n}},[],import.meta.url)).default,installed:!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,downloadUrls:{},createConnector:()=>({connector:new $J({chains:e,options:t})})}),fFe=({chains:e,options:t,projectId:n,version:r="2"})=>({id:"walletConnect",name:"WalletConnect",iconUrl:async()=>(await me(async()=>{const{default:o}=await import("./walletConnectWallet-D6ZADJM7-BtZ74X7H.js");return{default:o}},[],import.meta.url)).default,iconBackground:"#3b99fc",createConnector:()=>{const o=Ll(),a=UE(r==="1"?{version:"1",chains:e,options:{qrcode:o,...t}}:{version:"2",chains:e,projectId:n,options:{showQrModal:o,...t}}),i=async()=>TP(a,r);return{connector:a,...o?{}:{mobile:{getUri:i},qrCode:{getUri:i}}}}}),hFe=({appName:e,chains:t,projectId:n})=>{const r=[{groupName:"Popular",wallets:[sFe({chains:t}),dFe({chains:t}),uFe({chains:t,projectId:n}),iFe({appName:e,chains:t}),lFe({chains:t,projectId:n}),fFe({chains:t,projectId:n}),rFe({chains:t})]}];return{connectors:PZ(r),wallets:r}};function mFe({width:e=32,height:t=32,fill:n="#52C41A"}){return y.jsx("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:e,height:t,className:"shrink-0",children:y.jsx("path",{d:"M864.554667 268.501333a42.666667 42.666667 0 0 1 0 60.330667L412.032 781.397333a42.453333 42.453333 0 0 1-22.613333 11.818667l-5.034667 0.597333H379.306667a42.496 42.496 0 0 1-27.648-12.416l-211.2-211.2a42.666667 42.666667 0 1 1 60.330666-60.330666l180.992 180.992 422.4-422.4a42.666667 42.666667 0 0 1 60.330667 0z",fill:n})})}function AP({text:e,copiedColor:t}){const[n,r]=S.useState(!1),o=S.useCallback(async a=>{a.stopPropagation();try{await navigator.clipboard.writeText(e),r(!0)}catch(i){console.error(i)}},[e]);return S.useEffect(()=>{let a;return n&&(a=dY(1e3,0).subscribe(()=>r(!1))),()=>a==null?void 0:a.unsubscribe()},[n]),n?y.jsx(mFe,{width:16,height:16,fill:t}):y.jsx("img",{width:16,height:16,alt:"Copy",src:"images/copy.svg",className:"shrink-0 transition hover:scale-105 hover:cursor-pointer hover:opacity-80 active:scale-105",onClick:o})}function Ca({address:e,copyable:t,className:n,forceShort:r,prefixLength:o,suffixLength:a,disableTooltip:i}){return y.jsxs("div",{className:"gap-small inline-flex items-center",children:[r?y.jsx(At,{enabledSafePolygon:!0,content:e,enabled:!i,children:y.jsx("span",{className:n,children:zu(e,o,a)})}):y.jsxs(y.Fragment,{children:[y.jsx(At,{enabledSafePolygon:!0,content:e,className:`lg:hidden ${n}`,enabled:!i,children:y.jsx("span",{children:zu(e,o,a)})}),y.jsx("span",{className:`hidden lg:inline ${n}`,children:e})]}),t?y.jsx(AP,{text:e}):null]})}var DP={},kP={},Xs=function(e){e==null&&(e=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};Xs.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};Xs.prototype.init_by_array=function(e,t){var n,r,o;for(this.init_seed(19650218),n=1,r=0,o=this.N>t?this.N:t;o;o--){var a=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((a&4294901760)>>>16)*1664525<<16)+(a&65535)*1664525)+e[r]+r,this.mt[n]>>>=0,n++,r++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),r>=t&&(r=0)}for(o=this.N-1;o;o--){var a=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((a&4294901760)>>>16)*1566083941<<16)+(a&65535)*1566083941)-n,this.mt[n]>>>=0,n++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648};Xs.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n>>1^t[e&1];for(;n>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};Xs.prototype.random_int31=function(){return this.random_int()>>>1};Xs.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};Xs.prototype.random=function(){return this.random_int()*(1/4294967296)};Xs.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};Xs.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var pFe=Xs,NZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HSLToHex=e.hexToHSL=e.colorRotate=void 0;var t=function(o,a){var i=(0,e.hexToHSL)(o),s=i.h;return s=(s+a)%360,s=s<0?360+s:s,i.h=s,(0,e.HSLToHex)(i)};e.colorRotate=t;var n=function(o){var a="0x"+o[1]+o[2],i="0x"+o[3]+o[4],s="0x"+o[5]+o[6],c=parseInt(a)/255,l=parseInt(i)/255,u=parseInt(s)/255,d=Math.min(c,l,u),f=Math.max(c,l,u),h=f-d,m=0,p=0,b=0;return h==0?m=0:f==c?m=(l-u)/h%6:f==l?m=(u-c)/h+2:m=(c-l)/h+4,m=Math.round(m*60),m<0&&(m+=360),b=(f+d)/2,p=h==0?0:h/(1-Math.abs(2*b-1)),p=+(p*100).toFixed(1),b=+(b*100).toFixed(1),{h:m,s:p,l:b}};e.hexToHSL=n;var r=function(o){var a=o.h,i=o.s,s=o.l;i/=100,s/=100;var c=(1-Math.abs(2*s-1))*i,l=c*(1-Math.abs(a/60%2-1)),u=s-c/2,d=0,f=0,h=0;0<=a&&a<60?(d=c,f=l,h=0):60<=a&&a<120?(d=l,f=c,h=0):120<=a&&a<180?(d=0,f=c,h=l):180<=a&&a<240?(d=0,f=l,h=c):240<=a&&a<300?(d=l,f=0,h=c):300<=a&&a<360&&(d=c,f=0,h=l);var m=Math.round((d+u)*255).toString(16),p=Math.round((f+u)*255).toString(16),b=Math.round((h+u)*255).toString(16);return m.length==1&&(m="0"+m),p.length==1&&(p="0"+p),b.length==1&&(b="0"+b),"#"+m+p+b};e.HSLToHex=r})(NZ);var jP={};Object.defineProperty(jP,"__esModule",{value:!0});jP.default=Object.freeze(["#01888c","#fc7500","#034f5d","#f73f01","#fc1960","#c7144c","#f3c100","#1598f2","#2465e1","#f19e02"]);var PP={},Bf=We&&We.__assign||function(){return Bf=Object.assign||function(e){for(var t,n=1,r=arguments.length;ni(),className:"user-dropdown-item",children:[y.jsx("img",{width:18,height:18,alt:"Disconnect",src:"images/disconnect.svg",className:"shrink-0"}),y.jsx(WF,{children:"Disconnect"})]})]}),y.jsx("div",{className:"mx-5 h-[1px] bg-white/10"}),y.jsxs("div",{className:"relative flex max-h-[40vh] min-h-[2.5rem] flex-col overflow-y-auto px-2 lg:max-h-[72vh]",children:[y.jsx(qs,{loading:o,color:"white",size:"small",className:"bg-white/5 backdrop-blur-[2px]"}),r.filter(({balance:c})=>00y.jsxs("button",{className:"gap-large lg:py-medium flex items-center rounded-xl px-3 py-2 transition-colors hover:bg-white/10 disabled:cursor-default",disabled:!0,children:[y.jsxs("div",{className:"relative",children:[y.jsx("img",{alt:"Token",width:32,height:32,src:vr(c.token.logo),className:"rounded-full"}),y.jsx("img",{alt:"Chain",width:20,height:20,src:Rn(c.chain.logo),className:"absolute -bottom-1 -right-1 rounded-full"})]}),y.jsxs("div",{className:"flex flex-col items-start",children:[y.jsxs("span",{className:"text-sm font-semibold text-white",children:[ut(c.balance,c.token.decimals)," ",c.token.symbol]}),y.jsx("span",{className:"text-xs font-medium text-white/50",children:c.chain.name})]})]},`${c.chain.network}-${c.token.symbol}`)):o?null:y.jsx("div",{className:"inline-flex h-10 items-center justify-center",children:y.jsx("span",{className:"text-sm font-medium text-slate-400",children:"No data"})})]})]}):y.jsx("button",{className:"bg-primary px-large hover:bg-primary/90 lg:py-small inline-flex rounded-xl py-2 transition-colors",onClick:s,children:y.jsx("span",{className:"text-sm font-bold text-white",children:"Connect Wallet"})})}function WF({children:e}){return y.jsx("span",{className:"text-sm font-medium",children:e})}const RFe=hm();function GF({placement:e}){const[t,n]=S.useState(!1),r=tn(),{refs:o,context:a,floatingStyles:i}=gd({placement:e,open:t,onOpenChange:n,middleware:[hd(6)]}),{styles:s,isMounted:c}=bd(a,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),l=tm(a),u=pd(a),{getReferenceProps:d,getFloatingProps:f}=yd([l,u]),{switchNetwork:h}=Tl(),{chain:m}=To(),p=S.useMemo(()=>st(m==null?void 0:m.id),[m==null?void 0:m.id]);return r.address?y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"gap-small lg:bg-secondary flex h-8 w-fit items-center justify-between rounded-xl bg-white/20 px-3 transition-colors hover:bg-white/20",ref:o.setReference,...d(),children:p?y.jsxs(y.Fragment,{children:[y.jsx("img",{alt:"Active chain",width:20,height:20,src:Rn(p.logo),className:"rounded-full"}),y.jsx("img",{style:{transform:t?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 transition-transform",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})]}):y.jsxs(y.Fragment,{children:[y.jsx("img",{alt:"Wrong chain",width:18,height:18,src:"images/warning.svg"}),y.jsx("span",{className:"text-sm font-bold text-orange-400",children:"Wrong Chain"})]})}),c&&y.jsx(md,{children:y.jsx("div",{style:i,ref:o.setFloating,...f(),className:"z-20",children:y.jsx("div",{style:s,className:"bg-background flex max-h-[18rem] flex-col overflow-y-auto rounded-xl border border-white/20 py-2",onClick:()=>n(!1),children:RFe.map(b=>y.jsxs("button",{className:"gap-medium px-large py-medium flex items-center transition-colors hover:bg-white/5 disabled:bg-white/10",disabled:b.id===(m==null?void 0:m.id),onClick:()=>h==null?void 0:h(b.id),children:[y.jsx("img",{alt:"Chain",width:22,height:22,src:Rn(b.logo),className:"rounded-full"}),y.jsx("span",{className:"text-sm font-bold text-white",children:b.name})]},b.id))})})})]}):null}function NFe({children:e,isOpen:t,maskClosable:n,onClose:r=()=>{}}){const o=S.useRef(null);return Fs.createPortal(y.jsx(Al,{in:t,timeout:300,nodeRef:o,classNames:"drawer-fade",unmountOnExit:!0,onEnter:()=>{document.body.style.overflow="hidden"},onExited:()=>{document.body.style.overflow="auto"},children:y.jsx("div",{ref:o,onClick:()=>n&&r(),className:"bg-app-bg/80 fixed left-0 top-0 z-20 h-screen w-screen backdrop-blur-sm",children:y.jsx("div",{className:"bg-secondary absolute right-0 top-0 h-screen w-3/4 overflow-y-auto",onClick:a=>a.stopPropagation(),children:y.jsxs("div",{className:"flex h-full w-full flex-col items-start",children:[y.jsxs("div",{className:"p-medium flex w-full items-center justify-between",children:[y.jsx(Su,{to:"/",onClick:r,children:y.jsx("img",{width:90,height:25,alt:"Logo",src:"images/logo.svg"})}),y.jsx("img",{width:24,height:24,alt:"Close",src:"images/close.svg",className:"transition-transform active:scale-95",onClick:r})]}),e]})})})}),document.body)}const VF=[{href:"/",label:"Transfer"},{href:"/relayer",label:"Relayer"}];function BFe(){const{state:e,setTrue:t,setFalse:n}=zg(!1),{pathname:r}=fd();return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:`app-header px-medium fixed left-0 top-0 z-10 flex w-full items-center justify-between border-b border-b-white/25 lg:border-b-transparent lg:px-5 ${r==="/"?"backdrop-blur lg:bg-transparent lg:backdrop-blur-none":"bg-background"}`,children:[y.jsxs("div",{className:"flex items-center gap-5",children:[y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx(Su,{to:"/",children:y.jsx("img",{width:90,height:25,alt:"Logo",src:"images/logo.svg"})}),Hye()]}),y.jsx("div",{className:"gap-medium hidden items-center lg:flex",children:VF.map(({href:o,label:a,external:i,soon:s,disabled:c})=>i?y.jsx("a",{rel:"noopener noreferrer",target:"_blank",href:o,className:"py-small rounded-full px-3 text-sm font-bold transition-colors hover:bg-white/[0.15]",children:a},a):s||c?y.jsx(At,{content:s?"Coming soon":"This feature is temporarily under maintenance",children:y.jsx("span",{className:"py-small rounded-full px-3 text-sm font-bold text-white/50",children:a})},a):y.jsx(Su,{to:o,className:`py-small relative rounded-full px-3 text-sm font-bold transition-colors hover:bg-white/[0.15] ${r===o?"text-primary after:bg-primary after:absolute after:-bottom-[2px] after:left-1/4 after:block after:h-[3px] after:w-1/2 after:rounded-full":"text-white"}`,children:a},a))})]}),y.jsxs("div",{className:"gap-medium hidden items-center lg:flex",children:[y.jsx(WY,{className:"bg-secondary px-large inline-flex h-8 items-center rounded-full text-sm font-bold text-white transition-colors hover:bg-white/20"}),y.jsx(qF,{prefixLength:14,suffixLength:10}),y.jsx(GF,{placement:"bottom-end"})]}),y.jsx("img",{width:24,height:24,alt:"Menu",src:"images/menu.svg",className:"inline transition-transform active:translate-y-1 lg:hidden",onClick:t})]}),y.jsx(NFe,{maskClosable:!0,isOpen:e,onClose:n,children:y.jsx("div",{className:"flex w-full items-start justify-center",style:{marginTop:"20%"},children:y.jsxs("div",{className:"flex w-max flex-col items-start gap-10",children:[y.jsx("div",{className:"gap-large flex flex-col",children:VF.map(({label:o,href:a,external:i,soon:s,disabled:c})=>i?y.jsx("a",{rel:"noopener noreferrer",target:"_blank",href:a,className:"text-sm font-bold",children:o},o):s||c?y.jsx(At,{content:s?"Coming soon":"This feature is temporarily under maintenance",children:y.jsx("span",{className:"text-sm font-bold text-white/50",children:o})},o):y.jsx(Su,{to:a,className:`relative text-sm font-bold ${r===a?"text-primary underline decoration-2 underline-offset-4":"text-white"}`,onClick:n,children:o},o))}),y.jsxs("div",{className:"gap-medium flex flex-col",children:[y.jsx(GF,{}),y.jsx(qF,{placement:"bottom",onComplete:n})]})]})})})]})}function FFe({children:e}){const[t,n]=S.useState(),[r,o]=S.useState(!1),[a,i]=S.useState(""),{balanceAll:s,loadingBalanceAll:c,updateBalanceAll:l}=e_e();return y.jsx(eH.Provider,{value:{balanceAll:s,recordsSearch:a,isHistoryOpen:r,historyDetails:t,loadingBalanceAll:c,updateBalanceAll:l,setRecordsSearch:i,setIsHistoryOpen:o,setHistoryDetails:n},children:e})}const MFe="https://apollo.helixbridge.app/graphql";function LFe({children:e}){const t=new eV({uri:MFe,cache:new XG({typePolicies:{Query:{fields:{historyRecords:{keyArgs:n=>n!=null&&n.needWithdrawLiquidity?["relayer","recvTokenAddress","fromChains","toChains","row"]:void 0,merge:(n,r,{args:o})=>{if(o!=null&&o.needWithdrawLiquidity){const a=((o==null?void 0:o.page)??0)*(o.row??0),i=n?n.records.slice(0):[];for(let s=0;sn.once("display_uri",r)):n.connector.uri}var BZ=new Map;function $Fe(e,t){const n=e==="1"?new iX(t):new q4(t);return BZ.set(JSON.stringify(t),n),n}function zFe({chains:e,options:t={},projectId:n,version:r="2"}){const o="21fef48091f12692cad574a6f7753643";if(r==="2"){if(!n||n==="")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");(n==="YOUR_PROJECT_ID"||n===o)&&console.warn("Invalid projectId. Please create a unique WalletConnect Cloud projectId for your dApp https://www.rainbowkit.com/docs/installation#configure")}const a={chains:e,options:r==="1"?{qrcode:!1,...t}:{projectId:n==="YOUR_PROJECT_ID"?o:n,showQrModal:!1,...t}},i=JSON.stringify(a),s=BZ.get(i);return s??$Fe(r,a)}var HFe=({chains:e,...t})=>({id:"talisman",name:"Talisman",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./talismanWallet-W5EQ26N7-COwK-IAC.js");return{default:n}},[],import.meta.url)).default,iconBackground:"#fff",installed:typeof window<"u"&&typeof window.talismanEth<"u"&&window.talismanEth.isTalisman===!0,downloadUrls:{chrome:"https://chrome.google.com/webstore/detail/talisman-polkadot-wallet/fijngjgcjhjmmpcmkeiomlglpeiijkld",firefox:"https://addons.mozilla.org/en-US/firefox/addon/talisman-wallet-extension/",browserExtension:"https://talisman.xyz/download"},createConnector:()=>({connector:new Ds({chains:e,options:{getProvider:()=>{if(!(typeof window>"u"))return window.talismanEth},...t}}),extension:{instructions:{learnMoreUrl:"https://talisman.xyz/",steps:[{description:"wallet_connectors.talisman.extension.step1.description",step:"install",title:"wallet_connectors.talisman.extension.step1.title"},{description:"wallet_connectors.talisman.extension.step2.description",step:"create",title:"wallet_connectors.talisman.extension.step2.title"},{description:"wallet_connectors.talisman.extension.step3.description",step:"refresh",title:"wallet_connectors.talisman.extension.step3.title"}]}}})}),qFe=({chains:e,...t})=>({id:"rabby",name:"Rabby Wallet",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./rabbyWallet-22VWIFCE-C-acKMUn.js");return{default:n}},[],import.meta.url)).default,iconBackground:"#8697FF",installed:typeof window<"u"&&typeof window.ethereum<"u"&&window.ethereum.isRabby===!0,downloadUrls:{chrome:"https://chrome.google.com/webstore/detail/rabby-wallet/acmacodkjbdgmoleebolmdjonilkdbch",browserExtension:"https://rabby.io"},createConnector:()=>({connector:new Ds({chains:e,options:t}),extension:{instructions:{learnMoreUrl:"https://rabby.io/",steps:[{description:"wallet_connectors.rabby.extension.step1.description",step:"install",title:"wallet_connectors.rabby.extension.step1.title"},{description:"wallet_connectors.rabby.extension.step2.description",step:"create",title:"wallet_connectors.rabby.extension.step2.title"},{description:"wallet_connectors.rabby.extension.step3.description",step:"refresh",title:"wallet_connectors.rabby.extension.step3.title"}]}}})}),WFe=({chains:e,...t})=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./safeWallet-DFMLSLCR-BD-GpskT.js");return{default:n}},[],import.meta.url)).default,installed:!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,downloadUrls:{},createConnector:()=>({connector:new $J({chains:e,options:t})})}),GFe=({chains:e,projectId:t,walletConnectOptions:n,walletConnectVersion:r="2",...o})=>{const i=!(typeof window<"u"&&typeof window.okxwallet<"u");return{id:"okx",name:"OKX Wallet",iconUrl:async()=>(await me(async()=>{const{default:s}=await import("./okxWallet-GKYMI2XW-CdXZL5HC.js");return{default:s}},[],import.meta.url)).default,iconAccent:"#000",iconBackground:"#000",downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.okinc.okex.gp",ios:"https://itunes.apple.com/app/id1327268470?mt=8",mobile:"https://okx.com/download",qrCode:"https://okx.com/download",chrome:"https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",edge:"https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",firefox:"https://addons.mozilla.org/firefox/addon/okexwallet/",browserExtension:"https://okx.com/download"},createConnector:()=>{const s=i?zFe({projectId:t,chains:e,version:r,options:n}):new Ds({chains:e,options:{getProvider:()=>window.okxwallet,...o}});return{connector:s,mobile:{getUri:i?async()=>{const c=await KF(s,r);return UFe()?c:`okex://main/wc?uri=${encodeURIComponent(c)}`}:void 0},qrCode:i?{getUri:async()=>KF(s,r),instructions:{learnMoreUrl:"https://okx.com/web3/",steps:[{description:"wallet_connectors.okx.qr_code.step1.description",step:"install",title:"wallet_connectors.okx.qr_code.step1.title"},{description:"wallet_connectors.okx.qr_code.step2.description",step:"create",title:"wallet_connectors.okx.qr_code.step2.title"},{description:"wallet_connectors.okx.qr_code.step3.description",step:"scan",title:"wallet_connectors.okx.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://okx.com/web3/",steps:[{description:"wallet_connectors.okx.extension.step1.description",step:"install",title:"wallet_connectors.okx.extension.step1.title"},{description:"wallet_connectors.okx.extension.step2.description",step:"create",title:"wallet_connectors.okx.extension.step2.title"},{description:"wallet_connectors.okx.extension.step3.description",step:"refresh",title:"wallet_connectors.okx.extension.step3.title"}]}}}}}};function VFe(){return function(e){return e.rpcUrls.public.http[0]?{chain:e,rpcUrls:e.rpcUrls.public}:null}}const FZ="2719448e2ce94fdd269a3c8587123bcc",MZ="Helix Bridge",{chains:Ff,publicClient:KFe}=Mwe(hm().map(({tokens:e,...t})=>t),[VFe()]),{wallets:YFe}=hFe({appName:MZ,projectId:FZ,chains:Ff}),QFe=PZ([...YFe,{groupName:"More",wallets:[GFe({chains:Ff,projectId:FZ}),qFe({chains:Ff}),HFe({chains:Ff}),WFe({chains:Ff})]}]),XFe=wEe({autoConnect:!0,connectors:QFe,publicClient:KFe});function JFe({children:e}){return y.jsx(EEe,{config:XFe,children:y.jsx(MBe,{theme:KY({borderRadius:"large",accentColor:"#0085FF"}),chains:Ff,appInfo:{appName:MZ},children:e})})}function ZFe(){return y.jsx(LFe,{children:y.jsx(JFe,{children:y.jsxs(FFe,{children:[y.jsx(BFe,{}),y.jsx(zae,{}),y.jsx(Yse,{})]})})})}function eMe({text:e,tips:t}){return y.jsxs("div",{className:"gap-small inline-flex items-center",children:[y.jsx("span",{className:"text-sm font-normal text-white/50",children:e}),t?y.jsx(At,{content:t,enabledSafePolygon:!0,children:y.jsx("img",{width:14,height:14,alt:"Info",src:"images/info.svg"})}):null]})}function LZ({width:e,height:t,className:n,onClick:r}){return y.jsx("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:e??"64",height:t??"64",className:n,onClick:r,children:y.jsx("path",{d:"M787.584 164.138667a85.333333 85.333333 0 0 1 1.493333 15.936v13.653333A128.042667 128.042667 0 0 1 896 320v88.021333c36.821333 9.493333 64 42.88 64 82.645334v149.333333a85.376 85.376 0 0 1-64 82.645333V810.666667a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V320a128 128 0 0 1 127.744-128v-1.429333L687.829333 96.213333a85.333333 85.333333 0 0 1 99.776 67.904zM768 256H192a64 64 0 0 0-63.893333 60.245333L128 320v490.666667a64 64 0 0 0 60.245333 63.893333L192 874.666667h576a64 64 0 0 0 63.893333-60.245334L832 810.666667v-85.333334h-181.333333a160 160 0 0 1 0-320H832v-85.333333a64 64 0 0 0-60.245333-63.893333L768 256z m106.666667 213.333333H650.666667a96 96 0 0 0-4.522667 191.893334L650.666667 661.333333H874.666667a21.333333 21.333333 0 0 0 21.184-18.837333L896 640v-149.333333a21.333333 21.333333 0 0 0-18.837333-21.184L874.666667 469.333333z m-224 64a32 32 0 1 1 0 64 32 32 0 0 1 0-64z m51.584-374.549333l-2.474667 0.341333-172.949333 32.853334h198.229333v-12.906667l-0.341333-2.986667a21.333333 21.333333 0 0 0-22.464-17.28z",fill:"#ffffff"})})}function tMe({value:e,options:t=[],onChange:n=()=>{}}){const[r,o]=S.useState(!1),{refs:a,context:i,floatingStyles:s}=gd({open:r,onOpenChange:o,middleware:[hd(6),S_({apply({rects:p,elements:b}){Object.assign(b.floating.style,{width:`${p.reference.width}px`})}})]}),{styles:c,isMounted:l}=bd(i,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),u=tm(i),d=pd(i),{getReferenceProps:f,getFloatingProps:h}=yd([u,d]),m=S.useCallback(p=>{if(p.target.value){const b=p.target.value,v=Hn(b)?void 0:"* Invalid address";n({input:b,alert:v,value:Hn(b)?b:void 0})}else n({input:"",value:void 0,alert:"* Require recipient"})},[n]);return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mx-medium gap-small px-medium group flex items-center justify-between rounded-[0.625rem] bg-[#1F282C] py-2 transition-colors focus-within:bg-white/10 hover:bg-white/10",ref:a.setReference,...f(),children:[y.jsxs("div",{className:"gap-small flex w-full items-center lg:gap-2",children:[y.jsx(LZ,{width:20,height:20,className:"opacity-50 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"}),y.jsx("input",{placeholder:"Recipient",value:(e==null?void 0:e.input)??"",className:"w-full bg-transparent text-sm font-medium text-white/50 transition-colors focus-visible:outline-none group-focus-within:text-white group-hover:text-white",onChange:m})]}),y.jsx("img",{style:{transform:r?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 opacity-50 transition-[transform,opacity] group-focus-within:opacity-100 group-hover:opacity-100",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})]}),l&&y.jsx(md,{children:y.jsx("div",{style:s,ref:a.setFloating,...h(),className:"z-20",children:y.jsx("div",{className:"rounded-xl border border-white/20 bg-[#00141D] py-2",style:c,onClick:()=>o(!1),children:t.length?t.map(p=>y.jsx(nMe,{address:p,onSelect:n},p)):y.jsx("div",{className:"py-small flex items-center justify-center",children:y.jsx("span",{className:"text-sm font-extrabold text-slate-400",children:"No data"})})})})})]})}function nMe({address:e,onSelect:t}){const{data:n}=MY({address:e});return y.jsx("button",{className:"py-small w-full truncate px-2 text-start transition-colors hover:bg-white/10",onClick:()=>t({input:e,value:e,alert:void 0}),children:y.jsx("span",{className:"text-sm font-semibold text-white",children:n??e})})}function xg({alert:e,children:t,titleText:n,titleTips:r,className:o,recipient:a,expandRecipient:i,recipientOptions:s,onExpandRecipient:c=()=>{},onRecipientChange:l=()=>{}}){return y.jsxs("div",{className:"gap-small flex flex-col transition-opacity",children:[y.jsxs("div",{className:`gap-medium rounded-large bg-app-bg py-medium flex flex-col transition-[outline] duration-200 ${o} ${e?"outline outline-1 outline-orange-500":"outline-none"}`,children:[n?y.jsxs("div",{className:"px-medium flex items-center justify-between",children:[y.jsx(eMe,{text:n,tips:r}),a?y.jsx(LZ,{className:"opacity-50 transition-[transform,opacity] hover:cursor-pointer hover:opacity-100 active:scale-95",width:20,height:20,onClick:c}):null]}):null,t,i&&y.jsx(tMe,{value:a,options:s,onChange:l})]}),e?y.jsx("span",{className:"text-xs font-normal text-orange-500",children:e}):null]})}function rMe({value:e,options:t,onChange:n}){const[r,o]=S.useState(-1),a=$Y("lg"),i=S.useMemo(()=>a?5:4,[a]);return y.jsxs("div",{className:"gap-medium px-medium flex items-center",children:[y.jsx(YF,{token:e,active:!0}),y.jsx("span",{className:"text-base font-bold text-white",children:e.symbol}),y.jsxs("div",{className:"gap-medium group ml-2 flex items-center",children:[t.filter(s=>s.symbol!==e.symbol).slice(0,i).map((s,c)=>y.jsx(YF,{index:c,token:s,hoveIndex:r,onClick:n,onHoverChange:o},s.symbol)),i+1s.symbol!==e.symbol).slice(i),onClick:n})]})]})}function YF({token:e,active:t,index:n=0,hoveIndex:r=-1,onClick:o=()=>{},onHoverChange:a=()=>{}}){return y.jsx("img",{width:t?32:36,height:t?32:36,alt:"Token image",src:vr(e.logo),className:`shrink-0 rounded-full transition-[transform,opacity] duration-200 ${t?"h-[2rem] w-[2rem] opacity-100":`${n<=r?"group-active:-translate-x-2":""} h-[2.25rem] w-[2.25rem] opacity-50 hover:cursor-pointer hover:opacity-80`}`,onClick:()=>{!t&&o(e)},onMouseEnter:()=>{!t&&a(n)},onMouseLeave:()=>{!t&&a(-1)}})}function oMe({options:e,onClick:t=()=>{}}){const[n,r]=S.useState(!1),{refs:o,context:a,floatingStyles:i}=gd({open:n,onOpenChange:r,middleware:[hd(4)]}),{styles:s,isMounted:c}=bd(a,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),l=A_(a,{handleClose:Zz()}),u=tm(a),d=pd(a),{getReferenceProps:f,getFloatingProps:h}=yd([l,u,d]);return y.jsxs(y.Fragment,{children:[y.jsx("img",{width:36,height:36,src:vr("more.svg"),alt:"More tokens",className:`transition-opacity duration-200 hover:cursor-pointer hover:opacity-80 ${n?"opacity-80":"opacity-50"}`,ref:o.setReference,...f()}),c&&y.jsx(md,{children:y.jsx("div",{style:i,ref:o.setFloating,...h(),className:"z-20",children:y.jsx("div",{className:"bg-app-bg flex flex-col gap-2 rounded-xl border border-white/20 px-3 py-2",style:s,onClick:()=>r(!1),children:e.map(m=>y.jsx("img",{width:36,height:36,src:vr(m.logo),className:"rounded-full opacity-60 transition-opacity duration-200 hover:cursor-pointer hover:opacity-80",onClick:()=>t(m)},m.symbol))})})})]})}function aMe({token:e,options:t,loading:n,onChange:r}){return y.jsxs("div",{className:"relative",children:[y.jsx(qs,{loading:n,className:"rounded-large backdrop-blur-[2px]",icon:!1}),y.jsx(xg,{titleText:"Token",children:y.jsx(rMe,{value:e,options:t,onChange:r})})]})}function RP({label:e,placeholder:t,disabled:n,children:r,hoverable:o,clearable:a,placement:i,sameWidth:s,offsetSize:c,labelClassName:l,childClassName:u,onClear:d=()=>{}}){const{state:f,setState:h,setFalse:m}=zg(!1),{refs:p,context:b,floatingStyles:v}=gd({open:f,onOpenChange:h,placement:i,middleware:[hd(c??4),s?S_({apply({rects:k,elements:D}){Object.assign(D.floating.style,{width:`${k.reference.width}px`})}}):void 0]}),{styles:g,isMounted:w}=bd(b,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),_=A_(b,{enabled:!!o}),C=tm(b),x=pd(b),{getReferenceProps:E,getFloatingProps:T}=yd([_,C,x]);return y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:`disabled:cursor-not-allowed disabled:opacity-60 ${l}`,ref:p.setReference,...E(),disabled:n,children:[e||t,y.jsxs("div",{className:"gap-small flex shrink-0 items-center transition-transform group-hover:-translate-x-2",children:[e&&a?y.jsx("div",{className:"relative h-[16px] w-[16px] shrink-0 rounded-full bg-transparent p-[2px] opacity-80 transition hover:scale-105 hover:bg-white/20 hover:opacity-100 active:scale-95",onClick:k=>{k.stopPropagation(),d()},children:y.jsx("img",{alt:"Close",src:"images/close.svg",className:"h-full w-full"})}):null,y.jsx("img",{style:{transform:f?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 transition-transform",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})]})]}),w&&y.jsx(md,{children:y.jsx("div",{style:v,ref:p.setFloating,...T(),className:"z-20",children:y.jsx("div",{className:`${u}`,style:g,onClick:m,children:r})})})]})}function iMe({children:e,label:t}){const[n,r]=S.useState(!1),{refs:o,context:a,floatingStyles:i}=gd({open:n,onOpenChange:r,placement:"bottom",middleware:[hd(6),S_({apply({rects:h,elements:m}){Object.assign(m.floating.style,{width:`${h.reference.width}px`})}})]}),{styles:s,isMounted:c}=bd(a,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),l=tm(a),u=pd(a),{getReferenceProps:d,getFloatingProps:f}=yd([l,u]);return y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:`gap-small mx-medium py-small group flex w-full items-center justify-between rounded-[0.625rem] transition-colors hover:bg-white/5 ${n?"bg-white/5":""}`,ref:o.setReference,...d(),children:[y.jsx("div",{className:`gap-medium flex items-center transition-transform group-hover:translate-x-2 ${n?"translate-x-2":""}`,children:t}),y.jsx("div",{className:`transition-transform group-hover:-translate-x-2 ${n?"-translate-x-2":""}`,children:y.jsx("img",{style:{transform:n?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 transition-transform",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})})]}),c&&y.jsx(md,{children:y.jsx("div",{style:i,ref:o.setFloating,...f(),className:"z-20",children:y.jsx("div",{className:"py-medium rounded-large flex flex-col gap-2 border border-white/20 bg-[#00141D]",onClick:()=>r(!1),style:s,children:e})})})]})}function QF({chain:e,token:t,chainOptions:n,tokenOptions:r,onChainChange:o,onTokenChange:a}){const[i,s]=S.useState("");return y.jsxs("div",{className:"flex items-center",children:[y.jsx(iMe,{label:y.jsxs(y.Fragment,{children:[y.jsx("img",{width:32,height:32,alt:"Chain",src:Rn(e.logo),className:"h-[2rem] w-[2rem] shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-base font-bold text-white",children:e.name})]}),children:n.length?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mx-medium px-medium flex items-center gap-1 rounded-xl bg-white/5 transition-colors focus-within:bg-white/10 focus-within:outline-none hover:bg-white/10",children:[y.jsx("img",{alt:"Search",width:24,height:24,src:"images/search.svg",className:"h-6 w-6 opacity-60"}),y.jsx("input",{className:"w-full bg-transparent py-2 text-base font-medium focus-visible:outline-none",placeholder:"Search ...",value:i,onClick:c=>{c.stopPropagation()},onChange:c=>{s(c.target.value)}})]}),y.jsx("div",{className:"mx-auto h-[1px] w-5 bg-white/50"}),y.jsx("div",{className:"app-scrollbar flex max-h-[17.2rem] flex-col overflow-y-auto",children:n.filter(({name:c})=>c.toLowerCase().includes(i.toLowerCase())).map(c=>y.jsx(sMe,{selected:e,option:c,token:t,onSelect:o},c.id))})]}):y.jsx("div",{className:"py-medium flex justify-center",children:y.jsx("span",{className:"text-sm font-bold text-slate-400",children:"No data"})})}),r.length>1?y.jsx(RP,{placeholder:y.jsx("span",{className:"text-sm font-bold text-slate-400",children:"Select a token"}),label:y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:26,height:26,alt:"Token",src:vr(t.logo),className:"h-[1.625rem] w-[1.625rem] shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-bold text-white",children:t.symbol})]}),labelClassName:"flex items-center justify-between gap-small px-small py-2 rounded-[0.625rem] bg-[#1F282C] w-[9.25rem] mr-medium transition-colors hover:bg-white/20",childClassName:"flex flex-col gap-small p-small rounded-[0.625rem] bg-[#00141D] border border-white/20",offsetSize:12,sameWidth:!0,children:r.map(c=>y.jsx(cMe,{selected:t,option:c,onSelect:a},c.symbol))}):null]})}function sMe({selected:e,option:t,token:n,onSelect:r=()=>{}}){const{balanceAll:o}=$g();return y.jsxs("button",{className:"gap-small py-medium flex items-center justify-between px-5 transition-colors hover:bg-white/5 disabled:bg-white/10",disabled:e.id===t.id,onClick:()=>{r(t)},children:[y.jsxs("div",{className:"gap-large flex items-center",children:[y.jsx("img",{width:30,height:30,alt:"Chain",src:Rn(t.logo),className:"h-[1.875rem] w-[1.875rem] shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-bold text-white",children:t.name})]}),o.filter(a=>a.chain.id===t.id&&a.token.category===n.category).slice(0,1).map(a=>y.jsx("span",{className:"truncate text-xs font-medium text-white/50",children:`${ut(a.balance,a.token.decimals,{precision:6})} ${a.token.symbol}`},`${a.chain.network}-${a.token.symbol}`))]})}function cMe({selected:e,option:t,onSelect:n=()=>{}}){return y.jsxs("button",{className:"gap-small p-small flex items-center rounded-[0.625rem] transition-colors hover:bg-white/5 disabled:bg-white/10",disabled:e.symbol===t.symbol,onClick:()=>{n(t)},children:[y.jsx("img",{width:24,height:24,alt:"Chain",src:vr(t.logo),className:"h-[1.5rem] w-[1.5rem] shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-bold text-white",children:t.name})]})}function lMe({disabled:e,onSwitch:t=()=>{}}){const[n,r]=S.useState(0);return y.jsx("div",{className:"relative h-[2px] lg:h-[4px]",children:y.jsx(At,{className:`absolute left-1/2 top-1/2 z-[9] -translate-x-1/2 -translate-y-1/2 rounded-lg bg-[#1F282C] transition-shadow hover:shadow-[0_0_8px_1px_rgba(255,255,255,.8)] ${e?"opacity-80 hover:cursor-not-allowed":"hover:cursor-pointer"}`,content:"This cross-chain is currently unavailable",enabled:e===!0,children:y.jsx("div",{className:"transition-transform duration-300",style:{transform:`rotateX(${180*n}deg)`},onClick:()=>{e||(r(o=>o+1),t())},children:y.jsx("img",{width:28,height:28,alt:"Switch",src:"images/switch.svg",className:`h-[1.75rem] w-[1.75rem] shrink-0 transition-opacity ${e?"opacity-80":""}`})})})})}function uMe({loading:e,recipient:t,disableSwitch:n,expandRecipient:r,recipientOptions:o,sourceChain:a,targetChain:i,sourceToken:s,targetToken:c,sourceChainOptions:l,targetChainOptions:u,sourceTokenOptions:d,targetTokenOptions:f,onSwitch:h,onExpandRecipient:m,onRecipientChange:p,onSourceChainChange:b,onTargetChainChange:v,onSourceTokenChange:g,onTargetTokenChange:w}){return y.jsxs("div",{className:"relative flex flex-col",children:[y.jsx(qs,{loading:e,className:"rounded-large backdrop-blur-[2px]",icon:!1}),y.jsx(xg,{titleText:"From",titleTips:y.jsx(XF,{token:s,chain:a}),children:y.jsx(QF,{chain:a,token:s,chainOptions:l,tokenOptions:d,onChainChange:b,onTokenChange:g})}),y.jsx(lMe,{disabled:n||e,onSwitch:h}),y.jsx(xg,{titleText:"To",titleTips:y.jsx(XF,{token:c,chain:i}),recipient:t,alert:t==null?void 0:t.alert,expandRecipient:r,recipientOptions:o,onExpandRecipient:m,onRecipientChange:p,children:y.jsx(QF,{chain:i,token:c,chainOptions:u,tokenOptions:f,onChainChange:v,onTokenChange:w})})]})}function XF({token:e,chain:t}){var r;const n=new URL(`/address/${e.address}`,(r=t.blockExplorers)==null?void 0:r.default.url);return y.jsxs("div",{className:"gap-small flex flex-col",children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{alt:"Token",width:18,height:18,src:vr(e.logo),className:"rounded-full"}),y.jsxs("span",{className:"text-sm font-extrabold text-white",children:[e.symbol,e.type==="native"?" (native token)":null]})]}),e.type==="native"?null:y.jsxs("div",{className:"inline-flex items-center gap-1",children:[y.jsx("a",{className:"text-sm font-semibold text-white hover:underline",rel:"noopener noreferrer",target:"_blank",href:n.href,children:zu(e.address,12,10)}),y.jsx(AP,{text:e.address,copiedColor:"#ffffff"})]})]})}const bT=[{inputs:[{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"uint8",name:"_decimals",type:"uint8"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"allowFaucet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"faucet",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxFaucetAllowed",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"allowed",type:"uint256"}],name:"setMaxFaucetAllowed",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],pn=S.forwardRef(function({kind:t,busy:n,disabled:r,className:o,children:a,...i},s){return y.jsxs("button",{className:`border-primary relative border transition disabled:cursor-not-allowed ${o} ${t==="primary"?"bg-primary text-white":"text-primary bg-transparent"} ${n?"":"hover:opacity-80 active:translate-y-1 disabled:translate-y-0 disabled:opacity-60"}`,disabled:r||n,ref:s,...i,children:[n&&y.jsx("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-10 flex items-center justify-center",children:y.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-[3px] border-b-white/50 border-l-white/50 border-r-white border-t-white"})}),y.jsx("div",{className:`${n?"invisible":"visible"}`,children:a})]})});function Bd({title:e,subTitle:t,isOpen:n,maskClosable:r,children:o,cancelText:a,okText:i,className:s,disabledCancel:c,disabledOk:l,busy:u,extra:d,forceFooterHidden:f,onClose:h=()=>{},onCancel:m,onOk:p}){const b=S.useRef(null);return S.useEffect(()=>()=>{document.body.style.overflow="auto"},[]),Fs.createPortal(y.jsx(Al,{in:n,timeout:300,nodeRef:b,classNames:"modal-fade",unmountOnExit:!0,appear:!0,onEnter:()=>{document.body.style.overflow="hidden"},onExited:()=>{document.body.style.overflow="auto"},children:y.jsx("div",{ref:b,onClick:()=>r&&h(),className:"bg-app-bg/80 p-medium fixed left-0 top-0 z-20 flex h-screen w-screen items-center justify-center backdrop-blur-sm",children:y.jsxs("div",{className:`p-medium relative flex flex-col gap-5 rounded-3xl bg-[#1F282C] lg:p-5 ${s}`,onClick:v=>v.stopPropagation(),children:[y.jsx("button",{onClick:h,className:"right-medium top-medium absolute rounded-full bg-transparent p-[4px] transition hover:scale-105 hover:bg-white/10 active:scale-95",children:y.jsx("img",{width:20,height:20,alt:"Close",src:"images/close-white.svg"})}),y.jsxs("div",{className:"gap-medium flex flex-col lg:gap-5",children:[y.jsx("h3",{className:"text-xl font-bold text-white",children:e}),t?typeof t=="string"?y.jsx("h5",{className:"text-base font-normal text-white",children:t}):t:null]}),y.jsx("div",{className:"h-[1px] bg-white/10"}),o,f?null:m||p?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"gap-small flex flex-col",children:[d,y.jsx("div",{className:"h-[1px] bg-white/10"})]}),y.jsxs("div",{className:"flex items-center justify-between gap-5",children:[m&&y.jsx(pn,{kind:"default",onClick:m,disabled:c,className:"h-10 flex-1 rounded-[1.25rem] text-sm font-bold",children:a||"Cancel"}),p&&y.jsx(pn,{kind:"primary",onClick:p,disabled:l,busy:u,className:"h-10 flex-1 rounded-[1.25rem] text-sm font-bold",children:i||"Ok"})]})]}):null]})})}),document.body)}function dMe({sourceChain:e,sourceToken:t,onSuccess:n=()=>{}}){const[r,o]=S.useState(!1),[a,i]=S.useState(!1),[s,c]=S.useState(!1),[l,u]=S.useState(0n),[d,f]=S.useState(0n),h=zs({chainId:e.id}),{data:m}=yy(),{switchNetwork:p}=Tl(),{address:b}=tn(),{chain:v}=To(),g=S.useCallback(async()=>{if((v==null?void 0:v.id)!==e.id)p==null||p(e.id);else if(b&&h&&m)try{c(!0);const w=await m.writeContract({address:t.address,abi:bT,functionName:"faucet",args:[1n<=l?l-1n:l]}),_=await h.waitForTransactionReceipt({hash:w,confirmations:mo});Vr(_,e),c(!1),_.status==="success"&&(u(0n),c(!1),o(!1),n())}catch(w){console.error(w),an(w),c(!1)}},[l,v,b,e,t,h,m,n,p]);return S.useEffect(()=>{let w;return b&&t.type==="erc20"&&h?(i(!0),w=qx([Yo(h.readContract({address:t.address,abi:bT,functionName:"allowFaucet",args:[b]})),Yo(h.readContract({address:t.address,abi:bT,functionName:"maxFaucetAllowed"}))]).subscribe({next:([_,C])=>{i(!1);const x=pj(C.toString(),t.decimals);u(x-_),f(x)},error:_=>{console.error(_),i(!1),u(0n),f(0n)}})):(u(0n),f(0n)),()=>{w==null||w.unsubscribe()}},[b,t,h]),y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"rounded-full bg-white/20 px-2 py-[2px] text-xs font-semibold text-white opacity-60 transition-opacity hover:opacity-100 active:scale-95",onClick:()=>o(!0),children:"Faucet"}),y.jsxs(Bd,{className:"w-full lg:w-[24rem]",title:"Faucet",okText:(v==null?void 0:v.id)===e.id?"Claim":"Switch Network",isOpen:r,disabledCancel:s,disabledOk:l<=1n,busy:s,onClose:()=>o(!1),onCancel:()=>o(!1),onOk:g,children:[y.jsx(JF,{text:"Max",tips:"The maximum you can claim",children:y.jsx(ZF,{loading:a,value:d,token:t})}),y.jsx(JF,{text:"Allow",tips:"Currently available for claiming",children:y.jsx(ZF,{loading:a,value:l,token:t})})]})]})}function JF({text:e,tips:t,children:n}){return y.jsxs("div",{className:"gap-small flex flex-col",children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:e}),t?y.jsx(At,{content:t,children:y.jsx("img",{width:16,height:16,alt:"Tips",src:"images/info.svg",className:"h-4 w-4 shrink-0"})}):null]}),n]})}function ZF({value:e,token:t,loading:n}){return y.jsxs("div",{className:"bg-background flex items-center justify-between rounded-xl px-4 py-3",children:[n?y.jsx(Sh,{size:"small",color:"white"}):y.jsx("span",{className:"text-base font-bold",children:ut(e,t.decimals,{precision:3,keepZero:!0})}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("img",{width:24,height:24,alt:"Token",className:"h-6 w-6 shrink-0 rounded-full",src:vr(t.logo)}),y.jsx("span",{className:"text-base font-bold",children:t.symbol})]})]})}function fMe({min:e,max:t,chain:n,sourceToken:r,targetToken:o,value:a,balance:i,loading:s,onRefresh:c,onChange:l=()=>{}}){const[u,d]=S.useState("text-[3rem] font-light"),f=S.useRef(null),h=S.useRef(null),m=S.useRef(r);S.useEffect(()=>{(r.decimals!==m.current.decimals||r.symbol!==m.current.symbol)&&(m.current=r,l({input:"",value:0n,valid:!0,alert:""}))},[r,l]);const p=S.useCallback(()=>{const{value:v,input:g}=eM(Wu(t??0n,r.decimals),r.decimals,tM(r,o));l({valid:!0,alert:"",value:v,input:g})},[r,o,t,l]),b=S.useCallback(v=>{const g=v.target.value;let w={value:0n,input:""},_=!0,C="";g?Number.isNaN(Number(g))||(w=eM(g,r.decimals,tM(r,o)),i{var _,C;const v=((_=f.current)==null?void 0:_.clientWidth)||1,w=(((C=h.current)==null?void 0:C.clientWidth)||0)/v*100;w<20?d("text-[3rem] font-light"):w<30?d("text-[2.25rem] font-light"):w<40?d("text-[1.875rem] font-normal"):w<50?d("text-[1.5rem] font-medium"):w<60?d("text-[1.25rem] font-semibold"):d("text-[1.25rem] font-bold")},[a.input]),y.jsxs("div",{className:"gap-medium px-medium flex flex-col",children:[y.jsx("input",{className:`${u} h-12 bg-transparent text-white transition-[font-size,font-weight,line-height] duration-300 focus-visible:outline-none`,ref:f,placeholder:"0",value:a.input,onChange:b}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs("span",{className:"text-sm font-normal text-white/50",children:["Balance: ",ut(i,r.decimals)]}),y.jsx("button",{className:`rounded-full bg-white/20 p-[3px] opacity-50 transition hover:opacity-100 active:scale-95 ${s?"animate-spin":""}`,onClick:c,children:y.jsx("img",{alt:"Refresh balance",width:14,height:14,src:"images/refresh.svg"})}),y.jsx("button",{className:"rounded-full bg-white/20 px-2 py-[2px] text-xs font-semibold text-white opacity-60 transition-[transform,opacity] hover:opacity-100 active:scale-95",onClick:p,children:"Max"}),n.testnet?y.jsx(dMe,{sourceChain:n,sourceToken:r,onSuccess:c}):null]}),y.jsx("span",{className:"invisible fixed left-0 top-0 -z-50",ref:h,children:a.input})]})}function eM(e,t,n){let r="",o=0n;const[a,i]=e.replace(/,/g,"").split(".").concat("-1");return a&&(r=i==="-1"?a:i?`${a}.${i.slice(0,n)}`:`${a}.`,o=pj(r,t)),{value:o,input:r}}function tM(e,t){return e.decimals{var d;return 0<(((d=t==null?void 0:t.sortedLnBridgeRelayInfos)==null?void 0:d.records.length)||0)},[(l=t==null?void 0:t.sortedLnBridgeRelayInfos)==null?void 0:l.records.length]),{loading:s,dailyLimit:c}=s_e(r);return y.jsx(xg,{children:y.jsx(mMe,{transferLimit:{loading:n,value:(u=t==null?void 0:t.sortedLnBridgeRelayInfos)!=null&&u.transferLimit?BigInt(t.sortedLnBridgeRelayInfos.transferLimit):void 0,token:e},estimatedTime:i?{loading:n,value:r==null?void 0:r.formatEstimateTime()}:void 0,transactionFee:{warning:o?void 0:"Liquidity is not enough",loading:a,value:o==null?void 0:o.value,token:o==null?void 0:o.token},dailyLimit:c?{loading:s,value:c.limit,token:c.token}:void 0})})}const zp=Bve();function gMe({children:e}){const[t,n]=S.useState(zp[0]),[r,o]=S.useState({input:"",value:0n,valid:!0,alert:""}),[a,i]=S.useState(a3(t.category)),[s,c]=S.useState(a[0]),[l,u]=S.useState(ff(s,t.category)[0]),[d,f]=S.useState(Ep(l)),[h,m]=S.useState(d[0]),[p,b]=S.useState(yc(l,h)[0]),v=S.useRef(t),g=S.useRef(s),w=S.useRef(l),_=S.useRef(h),C=S.useRef(p),x=S.useCallback(te=>{n(te),v.current=te},[]),E=S.useCallback(te=>{c(te),g.current=te},[]),T=S.useCallback(te=>{u(te),w.current=te},[]),k=S.useCallback(te=>{m(te),_.current=te},[]),D=S.useCallback(te=>{b(te),C.current=te},[]);S.useEffect(()=>{const te=new URLSearchParams(window.location.hash.split("?")[1]),ee=te.get(Mn.TOKEN_CATEGORY),re=zp.find(({category:W})=>W===ee)||zp[0],z=te.get(Mn.SOURCE_CHAIN),fe=a3(re.category),ve=fe.find(({network:W})=>W===z)||fe[0],Ue=te.get(Mn.SOURCE_TOKEN),ke=ff(ve,re.category),Qe=ke.find(({symbol:W})=>W===Ue)||ke[0],Te=te.get(Mn.TARGET_CHAIN),Ee=Ep(Qe),he=Ee.find(({network:W})=>W===Te)||Ee[0],Me=te.get(Mn.TARGET_CHAIN),ge=yc(Qe,he),Y=ge.find(({symbol:W})=>W===Me)||ge[0];g.current=ve,w.current=Qe,_.current=he,C.current=Y,x(re)},[x]);const[R]=Dz(),F=S.useRef(R);S.useEffect(()=>{F.current=R},[R]);const B=Mg(),j=S.useCallback((te=!1)=>{const ee=te?new URLSearchParams:new URLSearchParams(F.current.toString());ee.set(Mn.TOKEN_CATEGORY,v.current.category),te||(ee.set(Mn.SOURCE_CHAIN,g.current.network),ee.set(Mn.SOURCE_TOKEN,w.current.symbol),ee.set(Mn.TARGET_CHAIN,_.current.network),ee.set(Mn.TARGET_TOKEN,C.current.symbol)),B(`?${ee.toString()}`)},[B]),[P,O]=S.useState(zp),{loading:I,data:N}=LN("");S.useEffect(()=>{if(!I&&N.length){const te=N.map(({tokenKey:re})=>re),ee=zp.filter(re=>te.includes(re.category.toUpperCase()));ee.some(({category:re})=>re===v.current.category)||x(ee[0]),O(ee)}},[x,I,N]);const{loading:M,data:L}=LN(t.category),X=S.useRef(L);S.useEffect(()=>{X.current=L;const te=v.current,ee=a3(te.category).filter(Te=>{var Ee;return(Ee=L.at(0))==null?void 0:Ee.chains.some(({fromChain:he})=>Te.network===he)}),re=ee.find(({id:Te})=>Te===g.current.id)||ee.at(0)||g.current,z=ff(re,te.category),fe=z.find(({symbol:Te})=>Te===w.current.symbol)||z.at(0)||w.current,ve=Ep(fe).filter(Te=>{var Ee,he;return(he=(Ee=L.at(0))==null?void 0:Ee.chains.find(({fromChain:Me})=>re.network===Me))==null?void 0:he.toChains.includes(Te.network)}),Ue=ve.find(({id:Te})=>Te===_.current.id)||ve.at(0)||_.current,ke=yc(fe,Ue),Qe=ke.find(({symbol:Te})=>Te===C.current.symbol)||ke.at(0)||C.current;i(ee),f(ve),E(re),T(fe),k(Ue),D(Qe),j()},[L,j,E,T,k,D]);const J=S.useCallback(te=>{x(te),j(!0)},[j,x]),U=S.useCallback(te=>{const ee=ff(te,v.current.category),re=ee.find(({symbol:ke})=>ke===w.current.symbol)||ee[0],z=Ep(re).filter(ke=>{var Qe,Te;return(Te=(Qe=X.current.at(0))==null?void 0:Qe.chains.find(({fromChain:Ee})=>te.network===Ee))==null?void 0:Te.toChains.includes(ke.network)}),fe=z.find(({id:ke})=>ke===_.current.id)||z[0],ve=yc(re,fe),Ue=ve.find(({symbol:ke})=>ke===C.current.symbol)||ve[0];f(z),E(te),T(re),k(fe),D(Ue),j()},[j,E,T,k,D]),G=S.useCallback(te=>{const ee=Ep(te).filter(ve=>{var Ue,ke;return(ke=(Ue=X.current.at(0))==null?void 0:Ue.chains.find(({fromChain:Qe})=>g.current.network===Qe))==null?void 0:ke.toChains.includes(ve.network)}),re=ee.find(({id:ve})=>ve===_.current.id)||ee[0],z=yc(te,re),fe=z.find(({symbol:ve})=>ve===C.current.symbol)||z[0];f(ee),T(te),k(re),D(fe),j()},[j,T,k,D]),Z=S.useCallback(te=>{const ee=yc(w.current,te),re=ee.find(({symbol:z})=>z===C.current.symbol)||ee[0];k(te),D(re),j()},[j,k,D]),ae=S.useCallback(te=>{D(te),j()},[j,D]),ne=S.useCallback(()=>{const te=_.current,ee=g.current,re=ff(te,v.current.category),z=re.find(({symbol:Ue})=>Ue===w.current.symbol)||re[0],fe=yc(z,ee),ve=fe.find(({symbol:Ue})=>Ue===C.current.symbol)||fe[0];E(te),T(z),k(ee),D(ve),j()},[j,E,T,k,D]),ie=S.useCallback((te,ee)=>{var re,z;return!!((z=(re=X.current.at(0))==null?void 0:re.chains.find(({fromChain:fe})=>ee.network===fe))!=null&&z.toChains.includes(te.network))},[]);return y.jsx(UY.Provider,{value:{amount:r,token:t,sourceChain:s,sourceToken:l,targetChain:h,targetToken:p,sourceChainOptions:a,targetChainOptions:d,availableTokenOptions:P,loadingSupportedChains:M,loadingAvailableTokenOptions:I,setAmount:o,isSwitchAvailable:ie,handleTokenChange:J,handleSourceChainChange:U,handleSourceTokenChange:G,handleTargetChainChange:Z,handleTargetTokenChange:ae,handleSwitch:ne},children:e})}const nM="disclaimer";function yMe(){const{state:e,setState:t,setFalse:n}=zg(!1);return S.useEffect(()=>{t(!localStorage.getItem(nM))},[t]),y.jsxs(Bd,{title:"Disclaimer",className:"w-full lg:w-[30rem]",isOpen:e,onClose:n,children:[y.jsxs("div",{className:"gap-medium flex flex-col",children:[y.jsx(nf,{content:"By using Helix, I agree to the following:"}),y.jsx(nf,{content:"I understand that Helix is a bridge aggregator and is only responsible for routing the transfer to the selected bridge. Helix does not hold any funds in custody at any point."}),y.jsx(nf,{content:"I understand that the fees shown in a route are estimations and may vary."}),y.jsx(nf,{content:"I understand that the bridging time shown in a route is an estimation. Helix has no control over the bridging time. The bridge or protocol being used may sometimes take more time than the estimated time."}),y.jsx(nf,{content:"I understand that the app is in Beta and all risks associated with using it."}),y.jsx(nf,{content:"I am lawfully permitted to access this site and use Helix under the laws of the jurisdiction in which I reside and am located."})]}),y.jsx("div",{}),y.jsx(pn,{className:"rounded-medium px-large py-small mx-auto w-fit",kind:"primary",onClick:()=>{n(),localStorage.setItem(nM,"agree")},children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Agree and Continue"})})]})}function nf({content:e}){return y.jsx("p",{className:"text-sm font-medium text-white",children:e})}function bMe({sender:e,recipient:t,busy:n,fee:r,bridge:o,sourceChain:a,sourceToken:i,targetChain:s,targetToken:c,amount:l,isOpen:u,onClose:d,onConfirm:f}){return y.jsxs(Bd,{title:"Transfer Review",isOpen:u,className:"w-full lg:w-[26rem]",okText:"Confirm",disabledCancel:n,busy:n,onClose:d,onCancel:d,onOk:f,children:[y.jsxs("div",{className:"gap-small flex flex-col",children:[y.jsx(rM,{type:"source",address:e,chain:a,token:i,amount:l}),y.jsx("div",{className:"relative",children:y.jsx("div",{className:"absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center",children:y.jsx("img",{width:36,height:36,alt:"Transfer to",src:"images/transfer-to.svg",className:"shrink-0"})})}),y.jsx(rM,{type:"target",address:t,chain:s,token:c,amount:l})]}),y.jsxs("div",{className:"gap-medium flex flex-col",children:[y.jsx("span",{className:"text-sm font-bold text-white/50",children:"Information"}),y.jsx(vMe,{fee:r,bridge:o})]})]})}function rM({type:e,address:t,chain:n,token:r,amount:o}){return n&&r?y.jsxs("div",{className:"bg-background lg:p-large flex items-start justify-between gap-2 rounded-xl p-3 lg:rounded-2xl",children:[y.jsx("img",{width:36,height:36,alt:"Chain",src:Rn(n.logo),className:"shrink-0 rounded-full"}),y.jsxs("div",{className:"flex w-full flex-col gap-1 truncate",children:[y.jsxs("div",{className:"flex items-center justify-between gap-1",children:[y.jsx("span",{className:"max-w-[46%] truncate text-base font-semibold text-white",children:n.name}),y.jsxs("span",{className:`max-w-[46%] truncate text-sm font-extrabold ${e==="source"?"text-app-red":"text-app-green"}`,children:[e==="source"?"-":"+",She(o.input)]})]}),y.jsxs("div",{className:"flex items-center justify-between gap-1",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:t?zu(t,8,6):""}),y.jsx("span",{className:"text-sm font-extrabold text-white",children:r.symbol})]})]})]}):null}function vMe({fee:e,bridge:t}){return y.jsxs("div",{className:"gap-small bg-background lg:p-large flex flex-col rounded-xl p-3 lg:rounded-2xl",children:[y.jsx(oM,{label:"Estimated Arrival Time",value:t==null?void 0:t.formatEstimateTime()}),y.jsx(oM,{label:"Transaction Fee",value:e?`${ut(e.value,e.token.decimals,{precision:6})} ${e.token.symbol}`:null})]})}function oM({label:e,value:t}){return y.jsxs("div",{className:"gap-medium flex items-center justify-between text-sm font-bold italic text-white",children:[y.jsx("span",{children:e}),y.jsx("span",{className:"truncate",children:t})]})}function wMe(){var ge,Y,W;const{updateBalanceAll:e,setIsHistoryOpen:t,setHistoryDetails:n}=$g(),[r,o]=S.useState(!1),[a,i]=S.useState(!1),{amount:s,token:c,sourceChain:l,sourceToken:u,targetChain:d,targetToken:f,sourceChainOptions:h,targetChainOptions:m,availableTokenOptions:p,loadingSupportedChains:b,loadingAvailableTokenOptions:v,setAmount:g,isSwitchAvailable:w,handleTokenChange:_,handleSourceChainChange:C,handleSourceTokenChange:x,handleTargetChainChange:E,handleTargetTokenChange:T,handleSwitch:k}=a_e(),D=S.useDeferredValue(s),R=tn(),{chain:F}=To(),B=zs(),{data:j}=yy(),{switchNetwork:P}=Tl(),{openConnectModal:O}=Eb(),[I,N]=S.useState({input:R.address??"",value:R.address,alert:void 0}),[M,L]=S.useState(!1),X=S.useRef(!1);S.useEffect(()=>{X.current||(R.address?N({input:R.address,value:R.address,alert:void 0}):N({input:"",value:void 0,alert:void 0}))},[R.address]);const J=S.useCallback(Q=>{N(Q),X.current=!0},[]),U=S.useCallback(()=>L(Q=>!Q),[]),{balance:G,loading:Z,refresh:ae}=r_e(l,u,R.address),{maxTransfer:ne}=c_e(l,d,u,G),{data:ie,loading:te}=o_e(D.value,u,l,d),ee=S.useMemo(()=>{var ce,pe;const Q=(pe=(ce=ie==null?void 0:ie.sortedLnBridgeRelayInfos)==null?void 0:ce.records.at(0))==null?void 0:pe.bridge;return Q?fm({category:Q,walletClient:j,publicClient:B,sourceChain:l,sourceToken:u,targetChain:d,targetToken:f}):void 0},[(ge=ie==null?void 0:ie.sortedLnBridgeRelayInfos)==null?void 0:ge.records,j,B,l,u,d,f]),{loading:re,fee:z}=i_e(ee,R.address,R.address,D.value,ie),{allowance:fe,loading:ve,busy:Ue,approve:ke,refresh:Qe}=n_e(l,u,R.address,(Y=ee==null?void 0:ee.getContract())==null?void 0:Y.sourceAddress),[Te,Ee]=S.useMemo(()=>{let Q="Transfer",ce=!1;return F!=null&&F.id?F.id!==l.id?(Q="Switch Chain",ce=!1):fe<((z==null?void 0:z.token.type)==="native"?D.value:D.value+((z==null?void 0:z.value)??0n))?(Q="Approve",ce=!1):(Q="Transfer",ce=ve||(z==null?void 0:z.value)===void 0||!D.input||!D.valid||!I.value||!!I.alert):(Q="Connect Wallet",ce=!1),[Q,ce]},[fe,ve,F==null?void 0:F.id,D,l.id,z==null?void 0:z.value,z==null?void 0:z.token.type,I.alert,I.value]),he=S.useCallback(async()=>{if(Te==="Connect Wallet")O==null||O();else if(Te==="Switch Chain")P==null||P(l.id);else if(Te==="Approve"){const Q=await ke((z==null?void 0:z.token.type)==="native"?D.value:D.value+((z==null?void 0:z.value)??0n));Vr(Q,l,"Approval")}else Te==="Transfer"&&o(!0)},[Te,l,D.value,z==null?void 0:z.value,z==null?void 0:z.token.type,ke,O,P]),Me=S.useCallback(async()=>{var pe,De;const Q=ee==null?void 0:ee.getSourceChain(),ce=ee==null?void 0:ee.getTargetChain();if(ee&&R.address&&I.value){const Ie=(pe=ie==null?void 0:ie.sortedLnBridgeRelayInfos)==null?void 0:pe.records.at(0);try{i(!0);const Je=await ee.transfer(R.address,I.value,D.value,{relayer:Ie==null?void 0:Ie.relayer,transferId:Ie==null?void 0:Ie.lastTransferId,totalFee:z==null?void 0:z.value,withdrawNonce:BigInt((Ie==null?void 0:Ie.withdrawNonce)??0),depositedMargin:BigInt((Ie==null?void 0:Ie.margin)??0)});Vr(Je,Q,"Transfer"),i(!1),(Je==null?void 0:Je.status)==="success"&&(g({input:"",valid:!0,value:0n,alert:""}),n({requestTxHash:Je.transactionHash,fromChain:Q==null?void 0:Q.network,toChain:ce==null?void 0:ce.network,sendToken:(De=ee.getSourceToken())==null?void 0:De.symbol,sendAmount:D.value.toString()}),o(!1),t(!0),ae(),Qe(),e())}catch(Je){console.error(Je),an(Je),i(!1)}}},[(W=ie==null?void 0:ie.sortedLnBridgeRelayInfos)==null?void 0:W.records,R.address,I.value,ee,z==null?void 0:z.value,D.value,g,ae,Qe,e,t,n]);return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"gap-medium p-medium flex w-full flex-col rounded-2xl bg-[#1F282C] lg:w-[27.5rem] lg:gap-5 lg:rounded-[2rem] lg:p-5",children:[y.jsx(aMe,{token:c,options:p,loading:v,onChange:_}),y.jsx(uMe,{recipient:I,loading:b,expandRecipient:M,recipientOptions:R.address?[R.address]:[],sourceChain:l,targetChain:d,sourceToken:u,targetToken:f,sourceChainOptions:h,targetChainOptions:m,disableSwitch:!w(l,d),sourceTokenOptions:ff(l,c.category),targetTokenOptions:yc(u,d),onSourceChainChange:C,onSourceTokenChange:x,onTargetChainChange:E,onTargetTokenChange:T,onSwitch:k,onRecipientChange:J,onExpandRecipient:U}),y.jsx(hMe,{amount:s,loading:Z,balance:G,sourceToken:u,targetToken:f,chain:l,max:ne,onChange:g,onRefresh:ae}),y.jsx(pMe,{bridge:ee,sourceToken:u,relayData:ie,loadingRelayData:te,fee:z,loadingFee:re}),y.jsx(pn,{className:"inline-flex h-12 items-center justify-center rounded-full",kind:"primary",busy:Ue,disabled:Ee||!h.length,onClick:he,children:y.jsx("span",{className:"text-base font-bold text-white",children:Te})})]}),y.jsx(bMe,{sender:R.address,recipient:I.value,sourceChain:l,sourceToken:u,targetChain:d,targetToken:f,fee:z,bridge:ee,amount:D,busy:a,isOpen:r,onClose:()=>o(!1),onConfirm:Me}),y.jsx(yMe,{})]})}function EMe(){return y.jsx(gMe,{children:y.jsx(wMe,{})})}function _Me(){return y.jsxs("main",{className:"app-main relative overflow-hidden",children:[y.jsx("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[-1] flex items-center justify-center",children:y.jsx("div",{className:"bg-primary lg:bg-primary/40 h-[70vw] w-[70vw] rounded-full blur-[8rem] lg:h-[65vh] lg:w-[65vh]"})}),y.jsx("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-[2] overflow-y-auto",children:y.jsx("div",{className:"page-container flex min-h-full items-start justify-center lg:items-center lg:!pb-10",children:y.jsx(EMe,{})})})]})}function xMe({value:e,onChange:t}){return y.jsxs("div",{className:"bg-secondary relative flex items-center rounded-full p-1",children:[y.jsx("div",{className:"bg-primary absolute left-1 top-1 inline-flex h-6 w-12 items-center justify-center rounded-full transition-transform",style:{transform:e==="lnv3"?"translate(0, 0)":"translate(3rem, 0)"},children:y.jsx("span",{className:"text-sm font-bold uppercase text-white/90",children:e==="lnv3"?"v3":"v2"})}),y.jsx("span",{className:"inline-flex h-6 w-12 items-center justify-center text-sm font-normal text-white/50 transition-colors hover:cursor-pointer hover:text-white",onClick:()=>t("lnv3"),children:"V3"}),y.jsx("span",{className:"inline-flex h-6 w-12 items-center justify-center text-sm font-normal text-white/50 transition-colors hover:cursor-pointer hover:text-white",onClick:()=>t("lnv2"),children:"V2"})]})}function CMe({options:e,activeKey:t,className:n,onChange:r=()=>{}}){var c;const o=S.useRef(null),a=S.useRef(null),i=S.useRef(t),s=i.current===t?a:o;return i.current=t,y.jsxs("div",{className:"flex w-full flex-col items-center gap-5",children:[y.jsx("div",{className:`flex h-10 w-full ${n}`,children:e.filter(({hidden:l})=>!l).map(({key:l,label:u,disabled:d})=>y.jsx("div",{className:`border-primary flex flex-1 items-center justify-center border-y border-r transition-colors duration-100 first:rounded-l-full first:border-l last:rounded-r-full ${t===l?"bg-primary":"hover:bg-primary/50 bg-transparent"} ${d?"opacity-60":""}`,children:y.jsx(At,{enabled:!!d,content:"Coming soon",className:"h-full w-full",children:y.jsx("button",{onClick:()=>r(l),className:`h-full w-full ${t===l?"disabled:cursor-default":"disabled:cursor-not-allowed"}`,disabled:d||t===l,children:typeof u=="string"?y.jsx("span",{className:"text-sm font-medium lg:font-extrabold",children:u}):u})})},l))}),y.jsx(vy,{children:y.jsx(Al,{timeout:150,nodeRef:s,classNames:"tabs-fade",unmountOnExit:!0,children:y.jsx("div",{ref:s,className:"w-full",children:(c=e.find(({key:l})=>l===t))==null?void 0:c.children})},t)})]})}function SMe({total:e,current:t,size:n=10,onChange:r=()=>{}}){const o=Math.ceil(e/n);return o>1?y.jsxs("div",{className:"gap-small flex items-center justify-end",children:[y.jsx(Ma,{label:"previous",current:t,total:o,onClick:()=>r(t-1)}),TMe(t,o,r),y.jsx(Ma,{label:"next",current:t,total:o,onClick:()=>r(t+1)})]}):null}function Ma({label:e,current:t,total:n,onClick:r}){const{disabled:o,className:a}=S.useMemo(()=>{let i="inline-flex items-center justify-center h-8 min-w-[2rem] px-[2px] rounded-md border text-sm font-normal text-white bg-secondary transition-[opacity,color]",s=!1;return e==="next"&&t+1===n||e==="previous"&&t===0?(i+=" disabled:cursor-not-allowed disabled:opacity-50 border-white/30",s=!0):e===t?(i+=" bg-white/10 disabled:cursor-default border-transparent",s=!0):e==="more"?(i+=" opacity-50 disabled:cursor-default border-white/30",s=!0):i+=" opacity-50 hover:opacity-100 border-white/30",{disabled:s,className:i}},[e,t,n]);return y.jsx("button",{className:a,disabled:o,onClick:r,children:e==="more"?y.jsx("span",{children:"..."}):e==="previous"?y.jsx("img",{alt:"Previous page",width:16,height:16,src:"images/pagination/previous-page.svg"}):e==="next"?y.jsx("img",{alt:"Next page",width:16,height:16,src:"images/pagination/next-page.svg"}):y.jsx("span",{children:e+1})})}function TMe(e,t,n){const r=new Array(t).fill(0).map((o,a)=>a);return e<3||t-48?y.jsxs(y.Fragment,{children:[r.slice(0,4).map(o=>y.jsx(Ma,{label:o,current:e,total:t,onClick:()=>n(o)},o)),y.jsx(Ma,{label:"more",current:e,total:t}),r.slice(-4).map(o=>y.jsx(Ma,{label:o,current:e,total:t,onClick:()=>n(o)},o))]}):r.map(o=>y.jsx(Ma,{label:o,current:e,total:t,onClick:()=>n(o)},o)):y.jsxs(y.Fragment,{children:[y.jsx(Ma,{label:0,current:e,total:t,onClick:()=>n(0)}),y.jsx(Ma,{label:"more",current:e,total:t}),r.slice(e-1,e+2).map(o=>y.jsx(Ma,{label:o,current:e,total:t,onClick:()=>n(o)},o)),y.jsx(Ma,{label:"more",current:e,total:t}),y.jsx(Ma,{label:t-1,current:e,total:t,onClick:()=>n(t-1)})]})}function AMe({onPageChange:e,totalRecords:t,currentPage:n,dataSource:r,className:o,pageSize:a,loading:i,columns:s}){const c=S.useMemo(()=>s.reduce((l,u)=>{const d=typeof u.width=="string"?u.width:typeof u.width=="number"?`${u.width}px`:"1fr";return l==="auto"?l=d:l=`${l} ${d}`,l},"auto"),[s]);return y.jsxs("div",{className:"space-y-3",children:[y.jsx("div",{className:"w-full overflow-x-auto",children:y.jsxs("div",{className:`bg-secondary rounded-2xl p-2 lg:p-5 ${o}`,children:[y.jsx("div",{className:"bg-background py-large grid items-center gap-x-2 rounded-t-xl border-b border-b-white/10 px-3 text-sm font-normal text-white/50",style:{gridTemplateColumns:c},children:s.map(({key:l,title:u})=>typeof u=="string"?y.jsx("h5",{children:u},l):y.jsx(S.Fragment,{children:u},l))}),y.jsxs("div",{className:"relative",children:[y.jsx(qs,{loading:i,className:`rounded-b-xl ${r!=null&&r.length?"bg-black/5 backdrop-blur-[2px]":""}`,color:"white"}),r!=null&&r.length?y.jsx("div",{className:"rounded-b-xl",children:r.map(l=>y.jsx("div",{className:"bg-background grid items-center gap-x-2 px-3 py-2 text-sm font-normal text-white last:rounded-b-xl",style:{gridTemplateColumns:c},children:s.map(({key:u,dataIndex:d,render:f})=>y.jsx(S.Fragment,{children:f?f(l):y.jsx("span",{children:`${l[d]}`})},u))},l.id))}):y.jsx("div",{className:"flex h-48 flex-col items-center justify-center gap-4",children:i?null:y.jsxs(y.Fragment,{children:[y.jsx("img",{width:50,height:63,alt:"No data",src:"images/no-data.svg"}),y.jsx("span",{className:"text-sm font-normal text-slate-400",children:"No data"})]})})]})]})}),t!==void 0&&n!==void 0&&y.jsx("div",{className:"overflow-x-auto pb-1",children:y.jsx(SMe,{size:a,current:n,total:t,onChange:e})})]})}function DMe({record:e}){const[t,n]=S.useState();return S.useEffect(()=>{const r=st(e.fromChain),o=st(e.toChain),a=r==null?void 0:r.tokens.find(l=>{var u;return l.address.toLowerCase()===((u=e.sendToken)==null?void 0:u.toLowerCase())}),i=o==null?void 0:o.tokens.find(l=>{var u;return l.symbol===((u=a==null?void 0:a.cross.find(d=>(d.bridge.category===e.bridge||d.bridge.category==="lnbridge"&&e.bridge.startsWith("ln"))&&d.target.network===e.toChain))==null?void 0:u.target.symbol)}),s=new Zj({category:"lnbridge",sourceChain:r,targetChain:o,sourceToken:a,targetToken:i,protocol:"lnv3"}),c=Yo(s.getPenaltyReserves(e.relayer)).subscribe({next:n,error:l=>{console.error(l),n(null)}});return()=>{c.unsubscribe()}},[e]),t?y.jsx(At,{content:ut(t.value,t.token.decimals),className:"w-fit max-w-full truncate",children:ut(t.value,t.token.decimals)}):y.jsx("span",{children:"-"})}function kMe({record:e}){const{relayer:t,sourceChain:n,targetChain:r,sourceToken:o,targetToken:a}=S.useMemo(()=>{const s=st(e.fromChain),c=st(e.toChain),l=s==null?void 0:s.tokens.find(d=>{var f;return d.address.toLowerCase()===((f=e.sendToken)==null?void 0:f.toLowerCase())}),u=c==null?void 0:c.tokens.find(d=>{var f;return d.symbol===((f=l==null?void 0:l.cross.find(h=>(h.bridge.category===e.bridge||h.bridge.category==="lnbridge"&&e.bridge.startsWith("ln"))&&h.target.network===e.toChain))==null?void 0:f.target.symbol)});return{relayer:e.relayer,sourceChain:s,targetChain:c,sourceToken:l,targetToken:u}},[e]),{data:i}=LY(t,a==null?void 0:a.address,n==null?void 0:n.network,r==null?void 0:r.network,240);return o?y.jsx(jMe,{data:i,token:o}):y.jsx("span",{children:"-"})}function jMe({data:e,token:t}){const n=e.reduce((r,o)=>r+BigInt(o.sendAmount),0n);return y.jsx(At,{content:ut(n,t.decimals),className:"w-fit max-w-full truncate",children:ut(n,t.decimals)})}function PMe({record:e}){const[t,n]=S.useState();return S.useEffect(()=>{let r;const o=st(e.fromChain),a=st(e.toChain),i=o==null?void 0:o.tokens.find(l=>{var u;return l.address.toLowerCase()===((u=e.sendToken)==null?void 0:u.toLowerCase())}),s=a==null?void 0:a.tokens.find(l=>{var u;return l.symbol===((u=i==null?void 0:i.cross.find(d=>(d.bridge.category===e.bridge||d.bridge.category==="lnbridge"&&e.bridge.startsWith("ln"))&&d.target.network===e.toChain))==null?void 0:u.target.symbol)}),c=fm({category:e.bridge,sourceChain:o,targetChain:a,sourceToken:i,targetToken:s});return c?r=Yo(c.getTargetAllowance(e.relayer)).subscribe({next:n,error:l=>{console.error(l),n(null)}}):n(null),()=>{r==null||r.unsubscribe()}},[e]),t?y.jsx(At,{content:ut(t.value,t.token.decimals),className:"w-fit max-w-full truncate",children:ut(t.value,t.token.decimals)}):y.jsx("span",{children:"-"})}function IMe({record:e}){const[t,n]=S.useState();return S.useEffect(()=>{let r;const o=st(e.fromChain),a=st(e.toChain),i=o==null?void 0:o.tokens.find(l=>{var u;return l.address.toLowerCase()===((u=e.sendToken)==null?void 0:u.toLowerCase())}),s=a==null?void 0:a.tokens.find(l=>{var u;return l.symbol===((u=i==null?void 0:i.cross.find(d=>(d.bridge.category===e.bridge||d.bridge.category==="lnbridge"&&e.bridge.startsWith("ln"))&&d.target.network===e.toChain))==null?void 0:u.target.symbol)}),c=fm({category:e.bridge,sourceChain:o,targetChain:a,sourceToken:i,targetToken:s});return c?r=Yo(c.getTargetBalance(e.relayer)).subscribe({next:n,error:l=>{console.error(l),n(null)}}):n(null),()=>{r==null||r.unsubscribe()}},[e]),t?y.jsx(At,{content:ut(t.value,t.token.decimals),className:"w-fit max-w-full truncate",children:ut(t.value,t.token.decimals)}):y.jsx("span",{children:"-"})}function UZ({network:e}){const t=st(e);return t?y.jsx(At,{content:t.name,className:"mx-auto w-fit",children:y.jsx("img",{width:24,height:24,alt:t.name,src:Rn(t.logo),className:"rounded-full"})}):y.jsx("span",{children:"-"})}function Ao({title:e,tips:t,className:n}){return y.jsxs("div",{className:`gap-small flex items-center ${n}`,children:[y.jsx("span",{className:"truncate",children:e}),t?y.jsx(At,{content:t,className:"shrink-0",contentClassName:"max-w-[18rem]",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]})}function OMe({signers:e,heartbeatTimestamp:t}){const n=RMe(e),r=n.filter(([a,i])=>i),o=$Z(t);return n.length>0?y.jsx(At,{content:y.jsxs("div",{className:"flex flex-col items-start gap-2",children:[y.jsx("span",{className:"text-xs font-semibold",children:`Total: ${r.length} / ${n.length}`}),n.map(([a,i])=>y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:`h-[8px] w-[8px] rounded-full ${i?"bg-app-green":"bg-white/50"}`}),y.jsx("span",{className:"text-xs font-semibold",children:zu(a,10,8)})]},a))]}),className:"mx-auto w-fit",children:y.jsx("div",{className:`h-[8px] w-[8px] rounded-full ${r.length===n.length?"bg-app-green":r.length>0?"bg-app-orange":"bg-white/50"}`})}):y.jsx(At,{content:o?"Online":"Offline",className:"mx-auto w-fit",children:y.jsx("div",{className:`h-[8px] w-[8px] rounded-full ${o?"bg-app-green":"bg-white/50"}`})})}function $Z(e){return Date.now()-(e??0)*1e3<5*60*1e3}function RMe(e){return(e==null?void 0:e.split(",").reduce((t,n)=>{const[r,o]=n.split("-");return t.push([r,$Z(Number(o))]),t},[]))||[]}const Dv=({version:e,isDashboard:t})=>({key:"status",title:"",width:t&&e==="lnv3"?32:54,render:({heartbeatTimestamp:n,signers:r})=>y.jsx(OMe,{heartbeatTimestamp:n,signers:r})}),kv=({isDashboard:e})=>({key:"from",title:y.jsx(Ao,{title:"From",className:"justify-center"}),render:({fromChain:t})=>y.jsx(UZ,{network:t}),width:e?54:void 0}),jv=({isDashboard:e})=>({key:"to",title:y.jsx(Ao,{title:"To",className:"justify-center"}),render:({toChain:t})=>y.jsx(UZ,{network:t}),width:e?54:void 0}),Pv=({isDashboard:e})=>({key:"token",title:y.jsx(Ao,{title:"Token",className:"justify-center"}),render:({fromChain:t,sendToken:n})=>{var o;const r=(o=st(t))==null?void 0:o.tokens.find(a=>a.address.toLowerCase()===(n==null?void 0:n.toLowerCase()));return r?y.jsx(At,{content:r.symbol,className:"mx-auto w-fit",children:y.jsx("img",{width:24,height:24,alt:r.symbol,src:vr(r.logo),className:"rounded-full"})}):y.jsx("span",{children:"-"})},width:e?72:void 0}),Iv=e=>({key:"base fee",title:y.jsx(Ao,{title:"Base Fee",tips:"The fixed fee set by the relayer and charged in a transaction"}),render:({fromChain:t,sendToken:n,baseFee:r})=>{var a;const o=(a=st(t))==null?void 0:a.tokens.find(i=>i.address.toLowerCase()===(n==null?void 0:n.toLowerCase()));return o&&r?y.jsx("span",{className:"truncate",children:ut(BigInt(r),o.decimals,{precision:6})}):y.jsx("span",{children:"-"})}}),Ov=e=>({key:"liquidity fee rate",title:y.jsx(Ao,{title:"Liquidity Fee Rate",tips:"Liquidity Fee Rate: the percentage deducted by the relayer from the transfer amount in a transaction"}),render:({liquidityFeeRate:t})=>typeof t=="number"?y.jsx("span",{className:"truncate",children:`${ml(t)}%`}):y.jsx("span",{children:"-"}),width:118}),Rv=e=>({key:"profit",title:y.jsx(Ao,{title:"Profit"}),render:({fromChain:t,sendToken:n,profit:r})=>{var a;const o=(a=st(t))==null?void 0:a.tokens.find(i=>i.address.toLowerCase()===(n==null?void 0:n.toLowerCase()));return o&&r?y.jsx("span",{className:"truncate",children:ut(BigInt(r),o.decimals)}):y.jsx("span",{children:"-"})}}),aM=e=>({key:"margin",title:y.jsx(Ao,{title:"Margin"}),render:({margin:t,fromChain:n,sendToken:r})=>{var a;const o=(a=st(n))==null?void 0:a.tokens.find(i=>i.address.toLowerCase()===(r==null?void 0:r.toLowerCase()));return t&&o?y.jsx("span",{className:"truncate",children:ut(BigInt(t),o.decimals,{keepZero:!1})}):y.jsx("span",{children:"-"})}}),iM=e=>({key:"Transfer limit",title:y.jsx(Ao,{title:"Transfer Limit"}),render:({transferLimit:t,fromChain:n,sendToken:r})=>{var a;const o=(a=st(n))==null?void 0:a.tokens.find(i=>i.address.toLowerCase()===(r==null?void 0:r.toLowerCase()));return t&&o?y.jsx("span",{className:"truncate",children:ut(BigInt(t),o.decimals,{keepZero:!1})}):y.jsx("span",{children:"-"})}}),sM=e=>({key:"penalty",title:y.jsx(Ao,{title:"Penalty"}),render:t=>y.jsx(DMe,{record:t})}),NMe=e=>({key:"liquidity",title:y.jsx(Ao,{title:"Liquidity",tips:"Total withdrawable liquidity"}),render:t=>y.jsx(kMe,{record:t})}),cM=e=>({key:"allowance",title:y.jsx(Ao,{title:"Allowance",tips:"Allowance on target chain"}),render:t=>y.jsx(PMe,{record:t})}),lM=e=>({key:"balance",title:y.jsx(Ao,{title:"Balance",tips:"Balance on target chain"}),render:t=>y.jsx(IMe,{record:t})}),uM=({onClick:e=()=>{}})=>({key:"action",title:y.jsx(Ao,{title:"Action",className:"justify-center"}),render:t=>y.jsx("div",{className:"flex justify-center",children:y.jsx(pn,{className:"rounded-medium px-medium w-fit py-[2px]",onClick:()=>e(t),kind:"default",children:y.jsx("span",{children:"Manage"})})})}),dM=e=>({key:"relayer",title:y.jsx(Ao,{title:"Relayer"}),render:({relayer:t})=>y.jsx("div",{className:"truncate",children:y.jsx(Ca,{address:t,forceShort:!0,copyable:!0})})});function zZ({options:e,activeKey:t,onChange:n=()=>{}}){var s;const r=S.useRef(null),o=S.useRef(null),a=S.useRef(t),i=a.current===t?o:r;return a.current=t,y.jsxs("div",{className:"flex w-full flex-col items-center gap-5",children:[y.jsx("div",{className:"flex h-10 w-full",children:e.filter(({hidden:c})=>!c).map(({key:c,label:l,disabled:u})=>y.jsx("div",{className:`border-primary flex flex-1 items-center justify-center border-y border-r transition-colors duration-100 first:rounded-l-xl first:border-l last:rounded-r-xl ${t===c?"bg-primary":"hover:bg-primary/50 bg-transparent"} ${u?"opacity-60":""}`,children:y.jsx(At,{enabled:!!u,content:"Coming soon",className:"h-full w-full",children:y.jsx("button",{onClick:()=>n(c),className:`h-full w-full ${t===c?"disabled:cursor-default":"disabled:cursor-not-allowed"}`,disabled:u||t===c,children:typeof l=="string"?y.jsx("span",{className:"text-sm font-medium lg:font-extrabold",children:l}):l})})},c))}),y.jsx(vy,{children:y.jsx(Al,{timeout:150,nodeRef:i,classNames:"tabs-fade",unmountOnExit:!0,children:y.jsx("div",{ref:i,className:"w-full",children:(s=e.find(({key:c})=>c===t))==null?void 0:s.children})},t)})]})}const NP=S.forwardRef(function({className:t,...n},r){return y.jsx("input",{className:`focus-visible:outline-none disabled:cursor-not-allowed ${t}`,ref:r,...n})});function O1({text:e}){return y.jsx("div",{className:"absolute -bottom-[1.2rem] left-0 inline-flex w-full",children:y.jsx("span",{className:"text-app-red text-xs font-medium",children:e})})}function Ir({max:e,min:t,balance:n,disabled:r,placeholder:o,value:a,token:i,onChange:s=()=>{}}){const c=S.useRef(null),l=S.useRef(n),u=S.useRef(i),[d,f]=S.useState(),h=S.useMemo(()=>{if(i!=null&&i.decimals){if(e!==void 0)return`Max ${ut(e,i.decimals)}`;if(n!==void 0)return`Balance ${ut(n,i.decimals)}`}return o??"Enter an amount"},[n,e,o,i==null?void 0:i.decimals]),m=S.useCallback(p=>{const b=p.target.value;let v={value:0n,input:""},g=!0;b?i&&!Number.isNaN(Number(b))&&(v=BMe(b,i.decimals),typeof t=="bigint"&&v.value{n!==l.current&&(l.current=n,typeof n=="bigint"?n{var p;(i==null?void 0:i.decimals)!==((p=u.current)==null?void 0:p.decimals)&&(u.current=i,s({valid:!0,input:"",value:0n}))},[i,s]),y.jsxs("div",{className:`normal-input-wrap relative ${a.valid?"valid-input-wrap border-transparent":"invalid-input-wrap"} bg-app-bg px-medium rounded-xl`,children:[y.jsxs("div",{className:"gap-small flex h-10 items-center justify-between text-sm font-semibold text-white lg:h-11",children:[y.jsx(NP,{placeholder:h,className:"w-full rounded bg-transparent",onChange:m,ref:c,disabled:r,value:a.input}),i?y.jsx("span",{children:i.symbol}):null]}),d===1?y.jsx(O1,{text:"* Insufficient"}):d===3?y.jsx(O1,{text:`* Max: ${ut(e??0n,(i==null?void 0:i.decimals)??0,{precision:6})}`}):d===2?y.jsx(O1,{text:`* Min: ${ut(t??0n,(i==null?void 0:i.decimals)??0,{precision:6})}`}):null]})}function BMe(e,t){let n="",r=0n;const[o,a]=e.replace(/,/g,"").split(".").concat("-1");return o&&(n=a==="-1"?o:a?`${o}.${a.slice(0,t)}`:`${o}.`,r=pj(n,t)),{value:r,input:n}}function T6({isV3:e,placeholder:t,value:n,className:r,onChange:o=()=>{}}){const a=S.useCallback(i=>{const s=i.target.value;let c=!0,l=0;s?Number.isNaN(Number(s))||(l=Vye(s),c=o4(l,e),o({valid:c,value:l,input:s})):o({valid:c,value:l,input:s})},[e,o]);return y.jsxs("div",{className:`normal-input-wrap gap-small relative flex items-center justify-between ${r} ${n.valid?"valid-input-wrap border-transparent":"invalid-input-wrap"}`,children:[y.jsx(NP,{className:"w-full rounded bg-transparent",placeholder:t,onChange:a,value:n.input}),y.jsx("span",{className:"rounded bg-transparent",children:"%"}),n.valid?null:y.jsx(O1,{text:`* Please enter 0 ~ ${e?"100":"0.25"}`})]})}function FMe({loading:e,total:t,value:n,options:r,onChange:o=()=>{},onLoadMore:a=()=>{}}){return y.jsxs("div",{className:`bg-app-bg relative max-h-60 rounded-xl ${e?"overflow-y-hidden":"app-scrollbar overflow-y-auto"}`,children:[y.jsx(qs,{loading:e,className:"bg-black/30"}),y.jsx("div",{className:"flex flex-col py-2",children:r.length?r.map(i=>y.jsxs("div",{className:"gap-medium px-large flex items-center justify-between py-2",children:[y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("button",{className:`border-primary h-4 w-4 border transition-[transform,color] hover:scale-105 active:scale-95 ${n.some(({id:s})=>s===i.id)?"bg-primary":"bg-transparent"}`,onClick:()=>o(n.some(({id:s})=>s===i.id)?n.filter(({id:s})=>s!==i.id):n.concat({id:i.id}))}),y.jsx("a",{target:"_blank",href:`/tx/${i.id}`,className:"text-primary truncate text-base font-medium hover:underline",children:MMe(i.id)})]}),i.lastRequestWithdraw.length>1?y.jsx(At,{content:`Last request withdraw at ${hy(Number(i.lastRequestWithdraw)*1e3,{compact:!0})}`,children:y.jsx("img",{alt:"In progress",width:24,height:24,src:"images/notification/progress.svg",className:"animate-spin rounded-full",style:{animationDuration:"3s"}})}):null]},i.id)):y.jsx("div",{className:"py-small flex items-center justify-center",children:y.jsx("span",{className:"text-sm font-semibold text-slate-400",children:"No data"})})}),t>r.length?y.jsx("button",{onClick:a,className:"rounded-b-medium hover:bg-primary w-full border-t border-t-white/10 py-2 text-sm font-semibold text-white transition-[transform,color] active:translate-y-1",children:"Load More"}):null]})}function MMe(e){return`${e.slice(0,14)}...${e.slice(-8)}`}const Na={input:"",valid:!0,value:0n},fM={input:"",valid:!0,value:0};function wT(e,t){return{valid:!0,value:e??0n,input:e?Wu(e,t.decimals):""}}function LMe({relayerInfo:e,isOpen:t,onClose:n,onSuccess:r}){const{sourceChain:o,targetChain:a,sourceToken:i,targetToken:s,sourceBalance:c,targetBalance:l,sourceAllowance:u,penaltyReserve:d,isGettingPenaltyReserves:f,setSourceChain:h,setTargetChain:m,setSourceToken:p,registerLnProvider:b,depositPenaltyReserve:v,withdrawPenaltyReserve:g,withdrawLiquidity:w,sourceApprove:_,targetApprove:C}=B8(),[x,E]=S.useState(Na),[T,k]=S.useState(Na),[D,R]=S.useState(Na),[F,B]=S.useState(Na),[j,P]=S.useState(Na),[O,I]=S.useState(fM),[N,M]=S.useState("update"),[L,X]=S.useState(!1),{switchNetwork:J}=Tl(),{chain:U}=To(),{loading:G,total:Z,data:ae,refetch:ne,fetchMore:ie}=LY(e==null?void 0:e.relayer,s==null?void 0:s.address,e==null?void 0:e.fromChain,e==null?void 0:e.toChain),[te,ee]=S.useState([]),{feeAndParams:re,loading:z}=t_e(te,e==null?void 0:e.relayer,e==null?void 0:e.messageChannel),{okText:fe,okDisabled:ve}=S.useMemo(()=>{let Ee="Confirm",he=!1;return N==="allowance"?(U==null?void 0:U.id)!==(a==null?void 0:a.id)?Ee="Switch Network":!j.input||!j.valid?(Ee="Approve",he=!0):Ee="Approve":N==="withdraw liquidity"?(U==null?void 0:U.id)!==(a==null?void 0:a.id)?Ee="Switch Network":(!te.length||z||!re)&&(he=!0):(U==null?void 0:U.id)!==(o==null?void 0:o.id)?Ee="Switch Network":N==="deposit"?!x.input||!x.valid?he=!0:(i==null?void 0:i.type)!=="native"&&x.value>((u==null?void 0:u.value)??0n)&&(Ee="Approve"):N==="update"?(!T.input||!T.valid||!F.input||!F.valid||!O.input||!O.valid)&&(he=!0):N==="withdraw penalty reserve"&&(d===void 0||f||!D.input||!D.valid)&&(he=!0),{okText:Ee,okDisabled:he}},[N,F,U==null?void 0:U.id,O,x,u==null?void 0:u.value,o==null?void 0:o.id,a==null?void 0:a.id,i==null?void 0:i.type,T,D,d,f,te.length,z,re,j]),{baseFee:Ue,feeRate:ke,transferLimit:Qe}=S.useMemo(()=>{const Ee=BigInt((e==null?void 0:e.baseFee)??0),he=Number((e==null?void 0:e.liquidityFeeRate)??0),Me=BigInt((e==null?void 0:e.transferLimit)??0);return{baseFee:Ee,feeRate:he,transferLimit:Me}},[e]),Te=S.useCallback(async()=>{let Ee;X(!0);try{N==="allowance"?(U==null?void 0:U.id)!==(a==null?void 0:a.id)?J==null||J(a==null?void 0:a.id):Ee=await C(j.value):N==="withdraw liquidity"?(U==null?void 0:U.id)!==(a==null?void 0:a.id)?J==null||J(a==null?void 0:a.id):(Ee=await w(te,(re==null?void 0:re.value)??0n,re==null?void 0:re.params),(Ee==null?void 0:Ee.status)==="success"&&ne()):(U==null?void 0:U.id)!==(o==null?void 0:o.id)?J==null||J(o==null?void 0:o.id):N==="update"?Ee=await b(F.value,O.value,T.value):N==="deposit"?fe==="Approve"?Ee=await _(x.value):Ee=await v(x.value):N==="withdraw penalty reserve"&&(Ee=await g(D.value))}catch(he){console.error(he),an(he)}finally{(Ee==null?void 0:Ee.status)==="success"&&(n(),r())}X(!1)},[U==null?void 0:U.id,o==null?void 0:o.id,a==null?void 0:a.id,N,fe,F,O,x,T,D,te,re,j,v,n,r,b,J,g,w,ne,_,C]);return S.useEffect(()=>{E(Na),k(Na),R(Na),B(Na),P(Na),I(fM),ee([]);const Ee=st(e==null?void 0:e.fromChain),he=st(e==null?void 0:e.toChain),Me=Ee==null?void 0:Ee.tokens.find(ge=>{var Y;return ge.address.toLowerCase()===((Y=e==null?void 0:e.sendToken)==null?void 0:Y.toLowerCase())});h(Ee),m(he),p(Me),M("update")},[e,h,m,p]),S.useEffect(()=>{i&&(E(Na),k(wT(Qe,i)),R(wT(d,i)),B(wT(Ue,i)),I({valid:!0,value:ke,input:ml(ke).toString()}))},[N,i,Qe,d,Ue,ke]),y.jsx(Bd,{title:"Manage Relayer",className:"w-full lg:w-[32rem]",okText:fe,isOpen:t,onClose:n,onOk:Te,busy:L,disabledCancel:L,disabledOk:ve,onCancel:n,children:y.jsx(zZ,{options:[{key:"update",label:y.jsx("span",{className:"text-sm font-bold",children:"Update"}),children:y.jsxs("div",{className:"flex flex-col gap-5",children:[y.jsx(fc,{text:"Base Fee",children:y.jsx(Ir,{token:i,value:F,onChange:B})}),y.jsx(fc,{text:"Liquidity Fee Rate",children:y.jsx(T6,{isV3:!0,className:"bg-app-bg px-medium h-10 rounded-xl text-sm font-semibold text-white lg:h-11",value:O,placeholder:ke===void 0?void 0:`${ml(ke)}%`,onChange:I})}),y.jsx(fc,{text:"Trasfer Limit",children:y.jsx(Ir,{token:i,value:T,onChange:k})})]})},{key:"deposit",label:y.jsx("span",{className:"text-sm font-bold",children:"Deposit"}),children:y.jsx(fc,{text:"More Penalty Reserves",children:y.jsx(Ir,{balance:c==null?void 0:c.value,token:c==null?void 0:c.token,value:x,onChange:E})})},{key:"withdraw penalty reserve",label:y.jsx("span",{className:"text-sm font-bold",children:"Penalty"}),children:y.jsx("div",{className:"flex flex-col gap-5",children:y.jsx(fc,{text:"Withdraw Penalty Reserves",children:y.jsxs("div",{className:"relative",children:[f&&y.jsx("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-10 flex items-center pl-2",children:y.jsx(Sh,{size:"small",color:"white"})}),y.jsx(Ir,{balance:d,token:i,value:D,onChange:R})]})})})},{key:"withdraw liquidity",label:y.jsx("span",{className:"text-sm font-bold",children:"Liquidity"}),children:y.jsxs("div",{className:"flex flex-col gap-5",children:[y.jsx(fc,{text:"Withdrawable Liquidity",children:y.jsx(FMe,{loading:G,total:Z,value:te,options:ae,onChange:ee,onLoadMore:ie})}),te.length?y.jsx(fc,{text:"Withdraw Fee",tips:"This value is calculated and does not require input",children:y.jsx("div",{className:`bg-app-bg p-medium relative flex h-10 items-center justify-between rounded-xl border lg:h-11 ${re||z?"border-transparent":"border-app-red"}`,children:z?y.jsx(Sh,{size:"small",color:"white"}):re?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-sm font-semibold text-white",children:ut(re.value,re.token.decimals,{precision:6})}),y.jsx("span",{className:"text-sm font-semibold text-white",children:re.token.symbol})]}):y.jsx("span",{className:"text-app-red absolute -bottom-5 left-0 text-xs font-medium",children:"* Failed to get fee, withdraw is temporarily unavailable"})})}):null]})},{key:"allowance",label:y.jsx("span",{className:"text-sm font-bold",children:"Allowance"}),children:y.jsx("div",{className:"flex flex-col gap-5",children:y.jsx(fc,{text:"Approve Amount",children:y.jsx(Ir,{balance:l==null?void 0:l.value,token:l==null?void 0:l.token,value:j,onChange:P})})}),hidden:(s==null?void 0:s.type)==="native"}],activeKey:N,onChange:M})})}function fc({text:e,children:t,height:n,tips:r}){return y.jsxs("div",{className:"gap-medium flex flex-col",style:{height:n},children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:e}),r?y.jsx(At,{content:r,children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]}),t]})}function UMe({relayerInfo:e,isOpen:t,onClose:n,onSuccess:r}){const{defaultBridge:o,oppositeBridge:a,bridgeCategory:i,sourceAllowance:s,targetAllowance:c,sourceBalance:l,targetBalance:u,sourceChain:d,targetChain:f,sourceToken:h,targetToken:m,margin:p,baseFee:b,feeRate:v,withdrawAmount:g,setMargin:w,setBaseFee:_,setFeeRate:C,setSourceChain:x,setTargetChain:E,setSourceToken:T,setBridgeCategory:k,setFeeAndRate:D,setWithdrawAmount:R,depositMargin:F,updateFeeAndMargin:B,withdrawMargin:j,sourceApprove:P,targetApprove:O,isLnBridgeExist:I}=nH(),[N,M]=S.useState("update"),[L,X]=S.useState(),[J,U]=S.useState(!1),[G,Z]=S.useState(!1),[ae,ne]=S.useState(),[ie,te]=S.useState({input:"",valid:!0,value:0n}),[ee,re]=S.useState({input:"",valid:!0,value:0n}),[z,fe]=S.useState({input:"",valid:!0,value:0n}),[ve,Ue]=S.useState({input:"",valid:!0,value:0}),ke=S.useDeferredValue(g),{switchNetwork:Qe}=Tl(),{chain:Te}=To(),{address:Ee}=tn(),he=uy(),{okText:Me,disableOk:ge,switchChainId:Y}=S.useMemo(()=>{let W="Confirm",Q,ce=!1;return N==="allowance"?(Te==null?void 0:Te.id)!==(f==null?void 0:f.id)?(W="Switch Network",Q=f==null?void 0:f.id):!ie.input||!ie.valid?ce=!0:W="Approve":N==="deposit"?(i==="lnv2-default"?(Te==null?void 0:Te.id)!==(f==null?void 0:f.id)?(W="Switch Network",Q=f==null?void 0:f.id):(m==null?void 0:m.type)!=="native"&&ee.value>((c==null?void 0:c.value)||0n)&&(W="Approve"):i==="lnv2-opposite"&&((Te==null?void 0:Te.id)!==(d==null?void 0:d.id)?(W="Switch Network",Q=d==null?void 0:d.id):(h==null?void 0:h.type)!=="native"&&ee.value>((s==null?void 0:s.value)||0n)&&(W="Approve")),ce=!(ee.value&&ee.valid)&&W==="Confirm"):(Te==null?void 0:Te.id)!==(d==null?void 0:d.id)&&(W="Switch Network",Q=d==null?void 0:d.id),N==="update"?ce=!(z.input&&z.valid&&ve.input&&ve.valid)&&W==="Confirm":N==="withdraw"&&(ce=!(g.value&&g.valid&&(ae!=null&&ae.value))&&W==="Confirm"),{okText:W,disableOk:ce,switchChainId:Q}},[Te,N,ae,z,ve,ee,g,i,d,f,h,m,s,c,ie]);return S.useEffect(()=>{const W=e==null?void 0:e.bridge,Q=st(e==null?void 0:e.fromChain),ce=st(e==null?void 0:e.toChain),pe=Q==null?void 0:Q.tokens.find(De=>{var Ie;return De.address.toLowerCase()===((Ie=e==null?void 0:e.sendToken)==null?void 0:Ie.toLowerCase())});e!=null&&e.baseFee&&_(BigInt(e.baseFee)),e!=null&&e.liquidityFeeRate&&C(Number(e.liquidityFeeRate)),e!=null&&e.margin&&w(BigInt(e.margin)),k(W),x(Q),E(ce),T(pe),te({input:"",valid:!0,value:0n}),re({input:"",valid:!0,value:0n}),R({input:"",valid:!0,value:0n}),fe({input:"",valid:!0,value:0n}),Ue({input:"",valid:!0,value:0}),M("update")},[e,_,C,w,k,x,E,T,R]),S.useEffect(()=>{let W;if(N==="withdraw"&&(o||a)&&((e==null?void 0:e.messageChannel)==="layerzero"||(e==null?void 0:e.messageChannel)==="msgline")){Z(!0);const Q={amount:ke.value,sender:Ee,relayer:e.relayer,transferId:e.lastTransferId,withdrawNonce:e.withdrawNonce,messageChannel:e.messageChannel};W=Yo(o?o.getWithdrawFeeParams(Q):a?a.getWithdrawFeeParams(Q):Promise.resolve(void 0)).subscribe({next:ne,error:ce=>{console.error(ce),ne(void 0),Z(!1)},complete:()=>Z(!1)})}else ne(void 0);return()=>W==null?void 0:W.unsubscribe()},[o,a,e,Ee,N,ke]),y.jsx(Bd,{title:"Manage Relayer",className:"w-full lg:w-[32rem]",okText:Me,isOpen:t,onClose:n,onOk:async()=>{let W;if(Ee&&d&&f&&h&&m){U(!0);try{Me==="Switch Network"?Qe==null||Qe(Y):N==="allowance"?i==="lnv2-default"&&o?W=await O(Ee,ie.value,o,f):i==="lnv2-opposite"&&a&&(W=await O(Ee,ie.value,a,f)):Me==="Approve"?i==="lnv2-default"&&o?await O(Ee,ee.value,o,f):i==="lnv2-opposite"&&a&&await P(Ee,ee.value,a,d):N==="update"?i==="lnv2-default"&&o?W=await D(z.value,ve.value,o,d):i==="lnv2-opposite"&&a&&(W=await B(Ee,p??0n,z.value,ve.value,a,d)):N==="deposit"?i==="lnv2-default"&&o?await I(he,d,f,h,m)?W=await F(Ee,ee.value,o,f):ms.warn({title:"Deposit failed",description:"The bridge does not exist."}):i==="lnv2-opposite"&&a&&(await I(he,d,f,h,m)?W=await B(Ee,ee.value,b??0n,v??0,a,d):ms.warn({title:"Deposit failed",description:"The bridge does not exist."})):N==="withdraw"&&i==="lnv2-default"&&o&&(W=await j((ae==null?void 0:ae.params)??Ee,g.value,(ae==null?void 0:ae.value)??0n,o,d))}catch(Q){console.error(Q),an(Q)}finally{U(!1),(W==null?void 0:W.status)==="success"&&(r(),n())}}},busy:J,disabledCancel:J,disabledOk:ge||N==="withdraw"&&Me==="Confirm"&&G,extra:N==="withdraw"?y.jsx("div",{className:"h-6 self-end",children:y.jsx("span",{className:"text-sm font-medium text-white/50",children:(e==null?void 0:e.messageChannel)==="layerzero"?"Powered by LayerZero & Helix":"Powered by Msgport & Helix"})}):y.jsx("div",{className:"h-6"}),onCancel:n,children:y.jsx(zZ,{options:[{key:"update",label:y.jsx("span",{className:"text-sm font-bold",children:"Update"}),children:y.jsxs("div",{className:"flex flex-col gap-5",style:{height:L},children:[y.jsx(rf,{label:"Base Fee",children:y.jsx(Ir,{token:h,value:z,onChange:fe})}),y.jsx(rf,{label:"Liquidity Fee Rate",children:y.jsx(T6,{value:ve,className:"bg-app-bg px-medium h-10 rounded-xl text-sm font-semibold text-white lg:h-11",placeholder:v===void 0?void 0:`${ml(v)}%`,onChange:Ue})})]})},{key:"deposit",label:y.jsx("span",{className:"text-sm font-bold",children:"Deposit"}),children:y.jsx(rf,{label:"More Margin",height:L,children:y.jsx(Ir,{balance:i==="lnv2-default"?u==null?void 0:u.value:i==="lnv2-opposite"?l==null?void 0:l.value:void 0,token:i==="lnv2-default"?u==null?void 0:u.token:i==="lnv2-opposite"?l==null?void 0:l.token:void 0,value:ee,onChange:re})})},{key:"withdraw",label:y.jsxs("div",{className:"gap-small flex items-center justify-center",children:[y.jsx("span",{className:"text-sm font-bold",children:"Withdraw"}),y.jsx(At,{content:"A cross-chain message is required to perform a `withdraw margin` operation",contentClassName:"w-72",className:"w-fit",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})})]}),children:y.jsxs("div",{className:"flex flex-col gap-5",ref:W=>X(Q=>(W==null?void 0:W.clientHeight)||Q),children:[y.jsx(rf,{label:"Withdraw Amount",children:y.jsx(Ir,{balance:p,token:h,value:g,onChange:R})}),y.jsx(rf,{label:"Withdraw Fee",tips:"This value is calculated and does not require input",children:y.jsx("div",{className:`bg-app-bg px-medium relative flex h-10 items-center justify-between rounded-xl border lg:h-11 ${ae||G?"border-transparent":"border-app-red"}`,children:G?y.jsx(Sh,{size:"small",color:"white"}):ae?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-sm font-semibold text-white",children:ut(ae.value,ae.token.decimals,{precision:6})}),y.jsx("span",{className:"text-sm font-semibold text-white",children:ae.token.symbol})]}):y.jsx("span",{className:"text-app-red absolute -bottom-5 left-0 text-xs font-medium",children:"* Failed to get fee, withdraw is temporarily unavailable"})})})]}),disabled:!((e==null?void 0:e.messageChannel)==="layerzero"||(e==null?void 0:e.messageChannel)==="msgline")},{key:"allowance",label:y.jsx("span",{className:"text-sm font-bold",children:"Allowance"}),children:y.jsx("div",{className:"flex flex-col gap-5",children:y.jsx(rf,{label:"Approve More",height:L,children:y.jsx(Ir,{balance:u==null?void 0:u.value,token:u==null?void 0:u.token,value:ie,onChange:te})})}),hidden:(m==null?void 0:m.type)==="native"}],activeKey:N,onChange:M})})}function rf({label:e,children:t,height:n,tips:r}){return y.jsxs("div",{className:"gap-medium flex flex-col",style:{height:n},children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:e}),r?y.jsx(At,{content:r,children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]}),t]})}function HZ({onPageChange:e,onRefetch:t,totalRecords:n,isDashboard:r,currentPage:o,dataSource:a,pageSize:i,version:s,loading:c}){const[l,u]=S.useState(),d=S.useMemo(()=>r?s==="lnv3"?[Dv({version:s,isDashboard:r}),kv({version:s,isDashboard:r}),jv({version:s,isDashboard:r}),Pv({version:s,isDashboard:r}),Iv(),Ov(),Rv(),iM(),sM(),NMe(),cM(),lM(),uM({onClick:u})]:[Dv({version:s,isDashboard:r}),kv({version:s,isDashboard:r}),jv({version:s,isDashboard:r}),Pv({version:s,isDashboard:r}),Iv(),Ov(),Rv(),aM(),cM(),lM(),uM({onClick:u})]:s==="lnv3"?[Dv({version:s,isDashboard:r}),dM(),kv({version:s,isDashboard:r}),jv({version:s,isDashboard:r}),Pv({version:s,isDashboard:r}),Iv(),Ov(),Rv(),iM(),sM()]:[Dv({version:s,isDashboard:r}),dM(),kv({version:s,isDashboard:r}),jv({version:s,isDashboard:r}),Pv({version:s,isDashboard:r}),Iv(),Ov(),Rv(),aM()],[s,r]),f=S.useCallback(()=>u(void 0),[]);return y.jsxs(y.Fragment,{children:[y.jsx(AMe,{onPageChange:e,totalRecords:n,currentPage:o,dataSource:a,pageSize:i,columns:d,loading:c,className:s==="lnv3"?"min-w-[68rem]":"min-w-[60rem]"}),r&&(s==="lnv3"?y.jsx(LMe,{relayerInfo:l,isOpen:!!l,onClose:f,onSuccess:t}):y.jsx(UMe,{relayerInfo:l,isOpen:!!l,onClose:f,onSuccess:t}))]})}function qZ({placeholder:e,className:t,value:n,onClear:r,onChange:o=()=>{}}){return y.jsxs("div",{className:`normal-input-wrap valid-input-wrap gap-small rounded-medium px-medium focus-within:border-primary flex items-center justify-between border-white/20 py-2 ${t}`,children:[y.jsx(NP,{placeholder:e,type:"text",value:n,onChange:a=>o(a.target.value),className:"rounded-small w-full bg-transparent text-sm font-medium text-white"}),n?y.jsx("button",{className:"relative h-[20px] w-[20px] shrink-0 rounded-full bg-transparent p-[2px] transition hover:scale-105 hover:bg-white/20 active:scale-95",onClick:r,children:y.jsx("img",{alt:"Close",src:"images/close.svg",className:"h-full w-full"})}):y.jsx("img",{width:20,height:20,alt:"Search",src:"images/search.svg",className:"shrink-0"})]})}function A6({enabled:e,enabledAfterClick:t,onClick:n,onRefresh:r}){const o=S.useRef(null),a=S.useRef(null);return S.useEffect(()=>{var i,s,c,l,u;e?(i=o.current)!=null&&i.classList.contains("refresh-countdown")||(s=o.current)==null||s.classList.add("refresh-countdown"):((l=(c=o.current)==null?void 0:c.getAnimations().at(0))==null||l.cancel(),(u=o.current)==null||u.classList.remove("refresh-countdown"))},[e]),y.jsx("button",{className:"rounded-full bg-transparent transition hover:scale-105 hover:bg-white/10 active:scale-95",onClick:()=>{var i,s,c,l;(s=(i=o.current)==null?void 0:i.getAnimations().at(0))==null||s.cancel(),(c=o.current)==null||c.classList.remove("refresh-countdown"),t&&setTimeout(()=>{var u;(u=o.current)==null||u.classList.add("refresh-countdown")},300),(l=a.current)==null||l.dispatchEvent(new Event("click")),n&&n()},children:y.jsxs("svg",{ref:a,id:"countdown_refresh",xmlns:"http://www.w3.org/2000/svg",viewBox:"-6 -6 36 36",width:"36",height:"36",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[y.jsx("path",{stroke:"none",fill:"none",className:"fill-white/30",d:"M16.2751 7.78995C13.932 5.44681 10.133 5.44681 7.78986 7.78995C7.02853 8.55128 6.51457 9.4663 6.24798 10.4351C6.24473 10.4499 6.24114 10.4646 6.23719 10.4793C6.17635 10.7064 6.12938 10.9339 6.09577 11.161C5.83159 12.9457 6.39255 14.7026 7.52624 15.9944C7.61054 16.0901 7.69842 16.1838 7.78986 16.2752C8.08307 16.5685 8.39909 16.825 8.7322 17.0448C9.25533 17.3892 9.84172 17.6568 10.4798 17.8278C10.7386 17.8971 10.9979 17.9484 11.2565 17.9825C12.9537 18.2061 14.6187 17.6866 15.8747 16.6415C16.0123 16.5265 16.1459 16.4044 16.2751 16.2752C16.2848 16.2655 16.2947 16.2561 16.3047 16.2469C17.0123 15.531 17.5491 14.627 17.8283 13.5851C17.9712 13.0517 18.5196 12.7351 19.053 12.878C19.5865 13.021 19.9031 13.5693 19.7602 14.1028C19.3141 15.7676 18.3745 17.1684 17.1409 18.1899C16.1883 18.9822 15.0949 19.5189 13.9515 19.8002C11.8607 20.3147 9.6028 19.9749 7.7328 18.7809C7.06855 18.3579 6.47841 17.8432 5.97519 17.2589C5.12341 16.2738 4.55173 15.1302 4.26015 13.9324C4.01698 12.9416 3.96104 11.8931 4.12168 10.8379C4.36697 9.20484 5.1183 7.63309 6.37564 6.37574C9.49984 3.25154 14.5652 3.25154 17.6894 6.37574L18.2332 6.91959L18.2337 5.49951C18.2338 5.05769 18.5921 4.69964 19.034 4.69979C19.4758 4.69995 19.8338 5.05825 19.8337 5.50007L19.8325 9.03277L19.8322 9.8325L19.0325 9.83249L18.9401 9.83249C18.8146 9.85665 18.6854 9.85665 18.5599 9.83248L15.5005 9.83245C15.0587 9.83245 14.7005 9.47427 14.7005 9.03244C14.7005 8.59062 15.0587 8.23245 15.5005 8.23245L16.7176 8.23246L16.2751 7.78995Z"}),y.jsxs("defs",{children:[y.jsx("path",{id:"refresh",stroke:"none",fill:"none",d:"M16.2751 7.78995C13.932 5.44681 10.133 5.44681 7.78986 7.78995C7.02853 8.55128 6.51457 9.4663 6.24798 10.4351C6.24473 10.4499 6.24114 10.4646 6.23719 10.4793C6.17635 10.7064 6.12938 10.9339 6.09577 11.161C5.83159 12.9457 6.39255 14.7026 7.52624 15.9944C7.61054 16.0901 7.69842 16.1838 7.78986 16.2752C8.08307 16.5685 8.39909 16.825 8.7322 17.0448C9.25533 17.3892 9.84172 17.6568 10.4798 17.8278C10.7386 17.8971 10.9979 17.9484 11.2565 17.9825C12.9537 18.2061 14.6187 17.6866 15.8747 16.6415C16.0123 16.5265 16.1459 16.4044 16.2751 16.2752C16.2848 16.2655 16.2947 16.2561 16.3047 16.2469C17.0123 15.531 17.5491 14.627 17.8283 13.5851C17.9712 13.0517 18.5196 12.7351 19.053 12.878C19.5865 13.021 19.9031 13.5693 19.7602 14.1028C19.3141 15.7676 18.3745 17.1684 17.1409 18.1899C16.1883 18.9822 15.0949 19.5189 13.9515 19.8002C11.8607 20.3147 9.6028 19.9749 7.7328 18.7809C7.06855 18.3579 6.47841 17.8432 5.97519 17.2589C5.12341 16.2738 4.55173 15.1302 4.26015 13.9324C4.01698 12.9416 3.96104 11.8931 4.12168 10.8379C4.36697 9.20484 5.1183 7.63309 6.37564 6.37574C9.49984 3.25154 14.5652 3.25154 17.6894 6.37574L18.2332 6.91959L18.2337 5.49951C18.2338 5.05769 18.5921 4.69964 19.034 4.69979C19.4758 4.69995 19.8338 5.05825 19.8337 5.50007L19.8325 9.03277L19.8322 9.8325L19.0325 9.83249L18.9401 9.83249C18.8146 9.85665 18.6854 9.85665 18.5599 9.83248L15.5005 9.83245C15.0587 9.83245 14.7005 9.47427 14.7005 9.03244C14.7005 8.59062 15.0587 8.23245 15.5005 8.23245L16.7176 8.23246L16.2751 7.78995Z"}),y.jsx("clipPath",{id:"refresh-clip",children:y.jsx("use",{xlinkHref:"#refresh"})})]}),y.jsx("g",{clipPath:"url(#refresh-clip)",children:y.jsx("circle",{ref:o,cx:"12",cy:"12",r:"5",transform:"rotate(365,12,12)",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeDasharray:"30",strokeDashoffset:"0",onAnimationIteration:()=>{r&&r()}})}),y.jsx("use",{xlinkHref:"#refresh"}),y.jsx("animateTransform",{id:"transform_0",attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 0 0",to:"-10 0 0",dur:"0.07s",begin:"countdown_refresh.click;",repeatCount:"1"}),y.jsx("animateTransform",{id:"transform_1",attributeName:"transform",attributeType:"XML",type:"rotate",from:"-45 0 0",to:"390 0 0",dur:"0.6s",begin:"transform_0.end",repeatCount:"1"}),y.jsx("animateTransform",{id:"transform_2",attributeName:"transform",attributeType:"XML",type:"rotate",from:"390 0 0",to:"360 0 0",dur:"0.15s",begin:"transform_1.end",repeatCount:"1"})]})})}function Fh({value:e,placeholder:t,className:n,options:r=[],onChange:o=()=>{}}){return y.jsx(RP,{sameWidth:!0,clearable:!0,label:e?y.jsxs("div",{className:"gap-medium flex items-center truncate",children:[y.jsx("img",{alt:"Chain",width:22,height:22,src:Rn(e.logo),className:"hidden shrink-0 rounded-full lg:inline"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:e.name})]}):void 0,placeholder:y.jsx("span",{className:"truncate text-sm font-semibold text-slate-400",children:t}),labelClassName:`gap-small flex items-center justify-between ${n}`,childClassName:"bg-app-bg flex flex-col rounded-xl max-h-64 overflow-y-auto border border-white/20 py-small",onClear:()=>o(void 0),children:r.length?r.map(a=>y.jsxs("button",{disabled:(e==null?void 0:e.id)===a.id,onClick:()=>o(a),className:"gap-medium px-large py-medium flex items-center text-start transition-colors hover:bg-white/5 disabled:bg-white/10",children:[y.jsx("img",{width:22,height:22,alt:a.name,src:Rn(a.logo),className:"rounded-full"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:a.name})]},a.id)):y.jsx("div",{className:"inline-flex justify-center p-2",children:y.jsx("span",{className:"text-sm font-semibold text-slate-400",children:"No data"})})})}const hM=10,{defaultSourceChains:$Me,defaultTargetChains:zMe}=n4();function HMe({version:e}){const[t,n]=S.useState(),[r,o]=S.useState(),[a,i]=S.useState(0),[s,c]=S.useState(""),l=S.useDeferredValue(s),{loading:u,data:d,total:f,refetch:h}=zY(e,a,hM,l,t,r),m=S.useCallback(b=>{c(b),i(0)},[]),p=S.useCallback(()=>{c(""),i(0)},[]);return S.useEffect(()=>i(0),[e]),y.jsxs("div",{className:"space-y-5",children:[y.jsxs("div",{className:"gap-medium flex flex-col items-start justify-between lg:flex-row lg:items-center",children:[y.jsx(qZ,{value:s,onClear:p,onChange:m,placeholder:"Search by address",className:"w-full lg:w-[21.5rem]"}),y.jsxs("div",{className:"gap-small flex items-center lg:gap-5",children:[y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("span",{className:"hidden text-sm font-semibold text-white lg:inline",children:"From"}),y.jsx(Fh,{className:"rounded-medium px-medium h-9 w-40 border border-white/20 lg:w-44",placeholder:"Source chain",options:$Me,onChange:b=>{n(b),o(void 0),i(0)},value:t})]}),y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("span",{className:"hidden text-sm font-semibold text-white lg:inline",children:"To"}),y.jsx(Fh,{className:"rounded-medium px-medium h-9 w-40 border border-white/20 lg:w-44",placeholder:"Target chain",options:r4(t,zMe),onChange:b=>{o(b),i(0)},value:r})]}),y.jsx(A6,{onClick:h})]})]}),y.jsx(HZ,{onPageChange:i,onRefetch:h,currentPage:a,totalRecords:f,pageSize:hM,dataSource:d,version:e,loading:u})]})}function mM({children:e}){const[t,n]=S.useState(void 0),[r,o]=S.useState(void 0),[a,i]=S.useState(void 0),[s,c]=S.useState(void 0),[l,u]=S.useState(void 0),[d,f]=S.useState(void 0),[h,m]=S.useState(void 0),[p,b]=S.useState(void 0),[v,g]=S.useState(!1),{data:w}=yy(),_=zs(),{address:C}=tn(),x=S.useMemo(()=>kK(t,r,a).at(0),[t,r,a]),E=S.useMemo(()=>new Zj({category:"lnbridge",sourceChain:t,targetChain:r,sourceToken:a,targetToken:x,publicClient:_,walletClient:w,protocol:"lnv3"}),[t,r,a,x,w,_]),T=S.useCallback(async O=>{const{data:I}=await O.query({query:uV,variables:{fromChainId:t==null?void 0:t.id,toChainId:r==null?void 0:r.id,fromToken:a==null?void 0:a.address,toToken:x==null?void 0:x.address,version:"lnv3"},fetchPolicy:"no-cache"});return I.checkLnBridgeExist?!0:(ms.warn({title:"Transaction failed",description:"The bridge does not exist."}),!1)},[t,r,a,x]),k=S.useCallback(async O=>{if(C)try{const I=await E.sourceApprove(O,C);return Vr(I,E.getSourceChain(),"Approval"),u(await E.getSourceAllowance(C)),I}catch(I){console.error(I),an(I)}},[C,E]),D=S.useCallback(async O=>{if(C)try{const I=await E.targetApprove(O,C);return Vr(I,E.getTargetChain(),"Approval"),f(await E.getTargetAllowance(C)),I}catch(I){console.error(I),an(I)}},[C,E]),R=S.useCallback(async()=>{try{g(!0);const O=await E.getPenaltyReserves(C);g(!1),c(O==null?void 0:O.value)}catch(O){console.error(O),g(!1)}},[C,E]),F=S.useCallback(async O=>{try{const I=await E.depositPenaltyReserve(O);return Vr(I,E.getSourceChain(),"Deposite"),(I==null?void 0:I.status)==="success"&&(await R(),C&&m(await E.getSourceBalance(C))),I}catch(I){console.error(I),an(I)}},[C,E,R]),B=S.useCallback(async(O,I,N)=>{try{const M=await E.registerLnProvider(O,I,N);return Vr(M,E.getSourceChain(),"Register"),M}catch(M){console.error(M),an(M)}},[E]),j=S.useCallback(async O=>{try{const I=await E.withdrawPenaltyReserve(O);return Vr(I,E.getSourceChain(),"Withdraw"),(I==null?void 0:I.status)==="success"&&(await R(),C&&m(await E.getSourceBalance(C))),I}catch(I){console.error(I),an(I)}},[E,C,R]),P=S.useCallback(async(O,I,N)=>{if(C)try{const M=await E.requestWithdrawLiquidity(C,jK(O.map(({id:L})=>L)),I,N??C);return Vr(M,E.getTargetChain(),"Withdraw"),M}catch(M){console.error(M),an(M)}},[E,C]);return S.useEffect(()=>{let O;return C&&E?(g(!0),O=qx([E.getSourceAllowance(C),E.getTargetAllowance(C),E.getSourceBalance(C),E.getTargetBalance(C),E.getPenaltyReserves(C)]).subscribe({next:([I,N,M,L,X])=>{g(!1),u(I),f(N),m(M),b(L),c(X==null?void 0:X.value)},error:I=>{console.error(I),g(!1),u(void 0),f(void 0),m(void 0),b(void 0),c(void 0)}})):(u(void 0),f(void 0),m(void 0),b(void 0),c(void 0)),()=>{O==null||O.unsubscribe()}},[C,E]),y.jsx(rH.Provider,{value:{bridgeInstance:E,sourceChain:t,targetChain:r,sourceToken:a,targetToken:x,penaltyReserve:s,sourceAllowance:l,targetAllowance:d,sourceBalance:h,targetBalance:p,isGettingPenaltyReserves:v,setSourceChain:n,setTargetChain:o,setSourceToken:i,isLnBridgeExist:T,sourceApprove:k,targetApprove:D,depositPenaltyReserve:F,registerLnProvider:B,withdrawPenaltyReserve:j,withdrawLiquidity:P},children:e})}function ah({step:e,title:t}){return y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("div",{className:"bg-primary inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-xl font-bold text-white",children:e})}),y.jsx("h5",{className:"text-lg font-bold text-white",children:t})]})}function WZ({options:e,disabled:t,value:n,placeholder:r,onChange:o=()=>{}}){return y.jsx(RP,{clearable:!0,sameWidth:!0,labelClassName:"gap-small flex items-center justify-between rounded-xl bg-app-bg h-11 px-medium",childClassName:"bg-app-bg py-medium flex flex-col rounded-xl border border-white/20 max-h-52 overflow-y-auto app-scrollbar",label:n?y.jsxs("div",{className:"gap-medium flex items-center truncate",children:[y.jsx("img",{alt:"Chain",width:22,height:22,src:vr(n.logo),className:"hidden shrink-0 rounded-full lg:inline"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:n.symbol})]}):void 0,placeholder:y.jsx("span",{className:"text-sm font-semibold text-slate-400",children:r}),disabled:t,onClear:()=>o(void 0),children:e.length?e.map(a=>y.jsxs("button",{onClick:()=>{o(a)},className:"gap-medium px-large py-small flex items-center transition hover:bg-white/5",children:[y.jsx("img",{width:26,height:26,alt:"Token",src:vr(a.logo),className:"rounded-full"}),y.jsxs("div",{className:"flex flex-col items-start",children:[y.jsx("span",{className:"text-sm font-semibold text-white",children:a.symbol}),a.type==="native"?y.jsx("span",{className:"text-xs font-medium text-white/50",children:"native token"}):y.jsx(Ca,{address:a.address,copyable:!0,className:"text-xs font-medium text-white/50"})]})]},a.symbol)):y.jsx("div",{className:"inline-flex justify-center p-2",children:y.jsx("span",{className:"text-sm font-semibold text-slate-400",children:"No data"})})})}function lr({property:e,address:t,bridge:n,chain:r,token:o,balance:a,percent:i,className:s}){return y.jsxs("div",{className:`gap-small flex-col items-start ${s??"flex"}`,children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:e}),!!t&&y.jsx(Ca,{address:t,forceShort:!0,className:"text-sm font-semibold text-white"}),!!n&&y.jsx("span",{className:"text-sm font-semibold text-white",children:n==="lnv3"?"LnBridgeV3":n==="lnv2-opposite"?"Opposite":"Default"}),!!r&&y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:18,height:18,alt:"Chain",src:Rn(r.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:r.name})]}),o&&a?y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:ut(a,o.decimals)}):null,!!o&&!a&&y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:18,height:18,alt:"Token",src:vr(o.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:o.symbol})]}),!!i&&y.jsxs("span",{className:"text-sm font-semibold text-white",children:[i,"%"]})]})}const{defaultSourceChains:qMe,defaultTargetChains:WMe}=n4(),of={input:"",valid:!0,value:0n},pM={input:"",valid:!0,value:0};function GMe({onManage:e=()=>{}}){const{sourceChain:t,targetChain:n,sourceToken:r,targetToken:o,sourceBalance:a,targetBalance:i,sourceAllowance:s,targetAllowance:c,setSourceChain:l,setTargetChain:u,setSourceToken:d,sourceApprove:f,targetApprove:h,depositPenaltyReserve:m,registerLnProvider:p,isLnBridgeExist:b}=B8(),[v,g]=S.useState(of),[w,_]=S.useState(of),[C,x]=S.useState(of),[E,T]=S.useState(pM),[k,D]=S.useState(0),[R,F]=S.useState(!1),[B,j]=S.useState(!1),[P,O]=S.useState(!1),[I,N]=S.useState(!1),{state:M,setTrue:L,setFalse:X}=zg(!1),J=uy(),{address:U}=tn(),{chain:G}=To(),{switchNetwork:Z}=Tl(),{openConnectModal:ae}=Eb(),ne=S.useCallback(async()=>{try{if(O(!0),(t==null?void 0:t.id)!==(G==null?void 0:G.id))Z==null||Z(t==null?void 0:t.id);else if(await b(J)){const ee=await p(C.value,E.value,w.value);j((ee==null?void 0:ee.status)==="success")}}catch(ee){console.error(ee),an(ee)}finally{O(!1)}},[G,J,t,C,E,w,b,p,Z]),ie=S.useCallback(async()=>{try{if(F(!0),(t==null?void 0:t.id)!==(G==null?void 0:G.id))Z==null||Z(t==null?void 0:t.id);else if(await b(J))if((r==null?void 0:r.type)!=="native"&&v.value>((s==null?void 0:s.value)||0n))await f(v.value);else{const ee=await m(v.value);(ee==null?void 0:ee.status)==="success"&&(o!=null&&o.type&&(o==null?void 0:o.type)!=="native"?D(4):L())}}catch(ee){console.error(ee),an(ee)}finally{F(!1)}},[G,J,t,r,o,s,v,m,f,b,Z,L]),te=S.useCallback(async()=>{try{N(!0),(G==null?void 0:G.id)!==(n==null?void 0:n.id)?Z==null||Z(n==null?void 0:n.id):await h((i==null?void 0:i.value)||0n)}catch(ee){console.error(ee),an(ee)}finally{N(!1)}},[G,n,i,h,Z]);return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mx-auto flex w-full flex-col gap-5 lg:w-[40rem]",children:[y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:1,title:"Select Chain and Token"}),y.jsx(mc,{}),k===0&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(hc,{text:"From",className:"flex-1",children:y.jsx(Fh,{className:"bg-app-bg px-medium h-10 rounded-xl lg:h-11",options:qMe,placeholder:"Source chain",value:t,onChange:ee=>{l(ee),u(void 0),d(void 0)}})}),y.jsx(hc,{text:"To",className:"flex-1",children:y.jsx(Fh,{className:"bg-app-bg px-medium h-10 rounded-xl lg:h-11",options:r4(t,WMe),placeholder:"Target chain",value:n,onChange:ee=>{u(ee),d(void 0)}})})]}),y.jsx(hc,{text:"Token",children:y.jsx(WZ,{disabled:!uE(t,n).length,options:uE(t,n),placeholder:"Select a token",value:r,onChange:d})}),y.jsx(mc,{}),y.jsx(pn,{onClick:()=>{U?D(2):ae==null||ae()},kind:"primary",className:"inline-flex h-11 items-center justify-center rounded-full",disabled:!r,children:y.jsx("span",{className:"text-sm font-semibold text-white",children:U?"Next":"Connect Wallet"})})]}),1<=k&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"gap-small flex items-center justify-between",children:[y.jsx(lr,{property:"Address",address:U,className:"hidden lg:flex"}),y.jsx(lr,{property:"Bridge Type",bridge:"lnv3",className:"hidden lg:flex"}),y.jsx(lr,{property:"From",chain:t}),y.jsx(lr,{property:"To",chain:n}),y.jsx(lr,{property:"Token",token:r})]}),y.jsx(mc,{}),y.jsx(pn,{kind:"default",onClick:()=>{D(0),l(void 0),u(void 0),d(void 0),g(of),_(of),x(of),T(pM),j(!1)},className:"inline-flex h-11 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Reset"})})]})]}),y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:2,title:"Deposit Penalty Reserve and Set Fee"}),k===2&&y.jsxs(y.Fragment,{children:[y.jsx(mc,{}),y.jsx(hc,{text:"Base Fee",tips:"The fixed fee set by the relayer and charged in a transaction",children:y.jsx(Ir,{token:r,value:C,onChange:x})}),y.jsx(hc,{text:"Liquidity Fee Rate",tips:"The percentage deducted by the relayer from the transfer amount in a transaction",children:y.jsx(T6,{isV3:!0,placeholder:"Enter 0 ~ 100",className:"bg-app-bg px-medium h-10 rounded-xl text-sm font-semibold text-white lg:h-11",value:E,onChange:T})}),y.jsx(hc,{text:"Transfer Limit",children:y.jsx(Ir,{token:r,value:w,onChange:_})}),y.jsx(mc,{}),y.jsx(pn,{kind:B?"default":"primary",disabled:B||(t==null?void 0:t.id)===(G==null?void 0:G.id)&&!(C.input&&C.valid&&E.input&&E.valid&&w.input&&w.valid&&o4(E.value,!0)),busy:P,className:"inline-flex h-11 items-center justify-center rounded-full",onClick:ne,children:y.jsx("span",{className:"text-sm font-semibold text-white",children:(t==null?void 0:t.id)!==(G==null?void 0:G.id)?"Switch Network":"Register"})}),y.jsx(hc,{text:"Deposit Penalty Reserve",children:y.jsx(Ir,{balance:a==null?void 0:a.value,token:a==null?void 0:a.token,value:v,onChange:g})}),y.jsx(pn,{kind:B?"primary":"default",className:"inline-flex h-11 items-center justify-center rounded-full",disabled:!B||(t==null?void 0:t.id)===(G==null?void 0:G.id)&&!(v.input&&v.valid),busy:R,onClick:ie,children:y.jsx("span",{className:"text-sm font-semibold text-white",children:B&&(t==null?void 0:t.id)!==(G==null?void 0:G.id)?"Switch Network":(r==null?void 0:r.type)!=="native"&&v.value>((s==null?void 0:s.value)||0n)?"Approve":"Deposit"})})]}),3<=k&&y.jsxs(y.Fragment,{children:[y.jsx(mc,{}),y.jsxs("div",{className:"gap-small flex items-center justify-between",children:[y.jsx(lr,{property:"Transfer Limit",token:r,balance:w.value}),y.jsx(lr,{property:"Penalty Reserve",token:r,balance:v.value}),y.jsx(lr,{property:"Base Fee",token:r,balance:C.value}),y.jsx(lr,{property:"Liquidity Fee Rate",percent:ml(E.value)})]})]})]}),o!=null&&o.type&&o.type!=="native"?y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:3,title:"Authorize Token on Target Chain and Run Relayer"}),k===4&&y.jsxs(y.Fragment,{children:[y.jsx(VMe,{content:"Authorize token on target chain and run relayer to start relaying messages and earn rewards. Please note this step authorizes tokens for the relayer to send to users' target chain address based on transactions. Ensure you authorize enough tokens for multiple transactions as needed."}),y.jsx(mc,{}),y.jsx(hc,{text:"Current Allowance",children:y.jsx(Ir,{token:c==null?void 0:c.token,disabled:!0,value:{value:(c==null?void 0:c.value)??0n,input:ut((c==null?void 0:c.value)??0n,(c==null?void 0:c.token.decimals)??0),valid:!0},placeholder:"-"})}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(pn,{kind:"default",onClick:L,className:"inline-flex h-11 flex-1 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Skip"})}),y.jsx(pn,{kind:"primary",onClick:te,className:"inline-flex h-11 flex-1 items-center justify-center rounded-full",busy:I,disabled:(r==null?void 0:r.type)==="native",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:(G==null?void 0:G.id)===(n==null?void 0:n.id)?"Approve More":"Switch Network"})})]})]})]}):null]}),y.jsxs(Bd,{title:"One More Step!",subTitle:y.jsxs("div",{className:"flex flex-wrap items-center text-sm font-semibold text-white",children:["Now ",y.jsx(gM,{style:"link"})," to start relaying messages and earn rewards."]}),isOpen:M,onClose:X,children:[y.jsxs("div",{className:"gap-x-small grid items-center gap-y-5 text-sm font-semibold text-white",style:{gridTemplateColumns:"130px auto"},children:[y.jsx("span",{className:"text-white/50",children:"Address"}),U?y.jsx(Ca,{address:U}):null,y.jsx("span",{className:"text-white/50",children:"Bridge Type"}),y.jsx("span",{children:"LnBridgeV3"}),y.jsx("span",{className:"text-white/50",children:"From"}),y.jsx(yM,{chain:t}),y.jsx("span",{className:"text-white/50",children:"To"}),y.jsx(yM,{chain:n}),y.jsx("span",{className:"text-white/50",children:"Token"}),y.jsx(KMe,{token:r}),y.jsx("span",{className:"text-white/50",children:"Penalty Reserve"}),y.jsx(ET,{amount:v.value,token:r}),y.jsx("span",{className:"text-white/50",children:"Transfer Limit"}),y.jsx(ET,{amount:w.value,token:r}),y.jsx("span",{className:"text-white/50",children:"Base Fee"}),y.jsx(ET,{amount:C.value,token:r}),y.jsx("span",{className:"text-white/50",children:"Liquidity Fee Rate"}),y.jsxs("span",{children:[ml(E.value),"%"]})]}),y.jsx(mc,{}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(pn,{kind:"default",onClick:e,className:"inline-flex h-10 flex-1 items-center justify-center rounded-full lg:h-11",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Manage"})}),y.jsx(gM,{style:"button"})]})]})]})}function gM({style:e,onClick:t=()=>{}}){return y.jsx("a",{href:"https://github.com/helix-bridge/relayer/tree/main",className:`inline-flex items-center justify-center ${e==="button"?"bg-primary h-10 flex-1 items-center justify-center rounded-full text-sm font-semibold text-white transition-opacity hover:opacity-80 lg:h-11":"text-primary text-sm font-semibold hover:underline"}`,rel:"noopener",target:"_blank",onClick:t,children:e==="button"?"Run relayer":"run a relayer"})}function hc({children:e,text:t,tips:n,className:r}){return y.jsxs("div",{className:`gap-medium flex flex-col ${r}`,children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:t}),n?y.jsx(At,{content:n,className:"w-fit",contentClassName:"max-w-[20rem]",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]}),e]})}function VMe({content:e}){return y.jsx("span",{className:"text-sm font-medium text-white/50",children:e})}function yM({chain:e}){return e?y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:22,height:22,alt:"Chain",src:Rn(e.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{children:e.name})]}):""}function KMe({token:e}){return e?y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:22,height:22,alt:"Chain",src:vr(e.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{children:e.symbol})]}):""}function ET({token:e,amount:t}){return y.jsx("span",{children:e?`${ut(t,e.decimals,{precision:6})} ${e.symbol}`:""})}function mc(){return y.jsx("div",{className:"h-[1px] bg-white/10"})}function bM({children:e}){const[t,n]=S.useState(),[r,o]=S.useState(),[a,i]=S.useState(),[s,c]=S.useState(),[l,u]=S.useState(),[d,f]=S.useState(),[h,m]=S.useState(),[p,b]=S.useState(),[v,g]=S.useState(),[w,_]=S.useState(),[C,x]=S.useState(),[E,T]=S.useState({input:"",valid:!0,value:0n}),{data:k}=yy(),D=zs(),{address:R}=tn(),F=S.useMemo(()=>kK(p,v,w).at(0),[p,v,w]),{defaultBridge:B,oppositeBridge:j,bridgeInstance:P}=S.useMemo(()=>{let U,G;const Z={sourceChain:p,targetChain:v,sourceToken:w,targetToken:F,walletClient:k,publicClient:D};return Bye(w,v)?U=new dV({category:"lnv2-default",...Z,protocol:"lnv2-default"}):Fye(w,v)&&(G=new fV({category:"lnv2-opposite",...Z,protocol:"lnv2-opposite"})),{defaultBridge:U,oppositeBridge:G,bridgeInstance:U??G}},[p,v,w,F,k,D]),O=S.useCallback(async(U,G,Z,ae,ne)=>{const{data:ie}=await U.query({query:uV,variables:{fromChainId:G.id,toChainId:Z.id,fromToken:ae.address,toToken:ne.address,version:"lnv2"},fetchPolicy:"no-cache"});return ie.checkLnBridgeExist?!0:(console.warn("[isLnBridgeExist]",G.id,Z.id,ae.address,ne.address),!1)},[]),I=S.useCallback(async(U,G,Z,ae)=>{try{const ne=await Z.sourceApprove(G,U);return Vr(ne,ae,"Approval"),c(await Z.getSourceAllowance(U)),ne}catch(ne){console.error(ne),an(ne)}},[]),N=S.useCallback(async(U,G,Z,ae)=>{try{const ne=await Z.targetApprove(G,U);return Vr(ne,ae,"Approval"),u(await Z.getTargetAllowance(U)),ne}catch(ne){console.error(ne),an(ne)}},[]),M=S.useCallback(async(U,G,Z,ae)=>{try{const ne=await Z.depositMargin(G);Vr(ne,ae,"Deposite");const ie=await Z.getTargetAllowance(U),te=await Z.getTargetBalance(U);return u(ie),m(te),ne}catch(ne){console.error(ne),an(ne)}},[]),L=S.useCallback(async(U,G,Z,ae)=>{try{const ne=await Z.setFeeAndRate(U,G);return Vr(ne,ae),ne}catch(ne){console.error(ne),an(ne)}},[]),X=S.useCallback(async(U,G,Z,ae,ne,ie)=>{try{const te=await ne.updateFeeAndMargin(G,Z,ae);Vr(te,ie);const ee=await ne.getSourceAllowance(U),re=await ne.getSourceBalance(U);return c(ee),f(re),te}catch(te){console.error(te),an(te)}},[]),J=S.useCallback(async(U,G,Z,ae,ne)=>{try{const ie=await ae.withdrawMargin(U,G,Z);return Vr(ie,ne,"Withdraw"),ie}catch(ie){console.error(ie),an(ie)}},[]);return S.useEffect(()=>{let U;return R&&P?U=qx([P.getSourceAllowance(R),P.getTargetAllowance(R),P.getSourceBalance(R),P.getTargetBalance(R)]).subscribe({next:([G,Z,ae,ne])=>{c(G),u(Z),f(ae),m(ne)},error:G=>{console.error(G),c(void 0),u(void 0),f(void 0),m(void 0)}}):(c(void 0),u(void 0),f(void 0),m(void 0)),()=>U==null?void 0:U.unsubscribe()},[R,P]),y.jsx(tH.Provider,{value:{margin:t,baseFee:r,feeRate:a,sourceAllowance:s,targetAllowance:l,sourceBalance:d,targetBalance:h,sourceChain:p,targetChain:v,sourceToken:w,targetToken:F,bridgeCategory:C,defaultBridge:B,oppositeBridge:j,withdrawAmount:E,setMargin:n,setBaseFee:o,setFeeRate:i,setSourceAllowance:c,setTargetAllowance:u,setSourceBalance:f,setTargetBalance:m,setSourceChain:b,setTargetChain:g,setSourceToken:_,setBridgeCategory:x,setWithdrawAmount:T,sourceApprove:I,targetApprove:N,depositMargin:M,updateFeeAndMargin:X,setFeeAndRate:L,withdrawMargin:J,isLnBridgeExist:O},children:e})}const{defaultSourceChains:YMe,defaultTargetChains:QMe}=n4(!0);function XMe({onManage:e=()=>{}}){const{sourceChain:t,targetChain:n,sourceToken:r,targetToken:o,sourceAllowance:a,sourceBalance:i,targetAllowance:s,targetBalance:c,defaultBridge:l,oppositeBridge:u,setBridgeCategory:d,setSourceChain:f,setTargetChain:h,setSourceToken:m,setFeeAndRate:p,sourceApprove:b,targetApprove:v,depositMargin:g,updateFeeAndMargin:w,isLnBridgeExist:_}=nH(),[C,x]=S.useState(!1),[E,T]=S.useState(!1),[k,D]=S.useState(!1),[R,F]=S.useState(!1),[B,j]=S.useState(0),[P,O]=S.useState({input:"",valid:!0,value:0n}),[I,N]=S.useState({input:"",valid:!0,value:0n}),[M,L]=S.useState({input:"",valid:!0,value:0}),X=uy(),{address:J}=tn(),{chain:U}=To(),{switchNetwork:G}=Tl(),{openConnectModal:Z}=Eb(),ae=S.useCallback(async(ne,ie,te,ee,re)=>{var fe;const{data:z}=await X.query({query:Aye,variables:{fromChain:ie.network,toChain:te.network,bridge:re,relayer:ne.toLowerCase(),page:0,row:2},fetchPolicy:"no-cache"});return(fe=z.queryLnBridgeRelayInfos)!=null&&fe.records.some(({sendToken:ve})=>(ve==null?void 0:ve.toLowerCase())===ee.address.toLowerCase())?(ms.warn({title:"Transaction failed",description:"You have registered a relayer that supports this cross-chain."}),!0):!1},[X]);return S.useEffect(()=>{d(qye(t,n,r).at(0))},[t,n,r,d]),y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mx-auto flex w-full flex-col gap-5 lg:w-[40rem]",children:[y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:1,title:"Select Chain and Token"}),B===0&&y.jsxs(y.Fragment,{children:[y.jsx(_T,{content:"Different source chains and target chains correspond to different bridge types. In different bridge types, the relayer is required to set margin on different chains. When the bridge type is 'default', the relayer needs to set margin on the target chain. If the bridge type is 'opposite', the relayer must set margin on the source chain."}),y.jsx(bi,{}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(Jl,{label:"From",className:"flex-1",children:y.jsx(Fh,{className:"bg-app-bg px-medium h-10 rounded-xl lg:h-11",options:YMe,placeholder:"Source chain",value:t,onChange:ne=>{f(ne),h(void 0),m(void 0)}})}),y.jsx(Jl,{label:"To",className:"flex-1",children:y.jsx(Fh,{className:"bg-app-bg px-medium h-10 rounded-xl lg:h-11",options:r4(t,QMe,!0),placeholder:"Target chain",value:n,onChange:ne=>{h(ne),m(void 0)}})})]}),y.jsx(Jl,{label:"Token",children:y.jsx(WZ,{disabled:!uE(t,n,[],!0).length,options:uE(t,n,[],!0),placeholder:"Select a token",value:r,onChange:m})}),y.jsx(bi,{}),y.jsx(pn,{onClick:()=>{J?j(2):Z==null||Z()},kind:"primary",className:"inline-flex h-11 items-center justify-center rounded-full",disabled:!r,children:y.jsx("span",{className:"text-sm font-semibold text-white",children:J?"Next":"Connect Wallet"})})]}),1<=B&&y.jsxs(y.Fragment,{children:[y.jsx(bi,{}),y.jsxs("div",{className:"gap-small flex items-center justify-between",children:[y.jsx(lr,{property:"Address",address:J,className:"hidden lg:flex"}),y.jsx(lr,{property:"Bridge Type",bridge:u?"lnv2-opposite":"lnv2-default",className:"hidden lg:flex"}),y.jsx(lr,{property:"From",chain:t}),y.jsx(lr,{property:"To",chain:n}),y.jsx(lr,{property:"Token",token:r})]}),y.jsx(bi,{}),y.jsx(pn,{kind:"default",onClick:()=>{j(0),f(void 0),h(void 0),m(void 0),O({input:"",valid:!0,value:0n}),N({input:"",valid:!0,value:0n}),L({input:"",valid:!0,value:0}),F(!1)},className:"inline-flex h-11 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Reset"})})]})]}),y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:2,title:"Deposit Margin and Set Fee"}),B===2&&y.jsxs(y.Fragment,{children:[y.jsx(_T,{content:"When a relayer engages in misconduct, their margin will be used for compensation. The fee charged by the relayer in the source chain from user transactions is baseFee + transferAmount * liquidityFeeRate."}),y.jsx(bi,{}),y.jsx(Jl,{label:"Deposit Margin",children:y.jsx(Ir,{balance:l?c==null?void 0:c.value:i==null?void 0:i.value,token:l?c==null?void 0:c.token:i==null?void 0:i.token,value:P,disabled:R,onChange:O})}),l?y.jsxs(y.Fragment,{children:[y.jsx(pn,{kind:R?"default":"primary",className:"inline-flex h-11 items-center justify-center rounded-full",disabled:R||(n==null?void 0:n.id)===(U==null?void 0:U.id)&&P.value===0n,busy:C,onClick:async()=>{if(J&&l&&t&&n&&r&&o){x(!0);try{if(n.id!==(U==null?void 0:U.id))G==null||G(n.id);else if((o==null?void 0:o.type)!=="native"&&P.value>((s==null?void 0:s.value)||0n))await v(J,P.value,l,n);else if(await _(X,t,n,r,o)){if(!await ae(J,t,n,r,"lnv2-default")){const ne=await g(J,P.value,l,n);(ne==null?void 0:ne.status)==="success"&&F(!0)}}else ms.warn({title:"Deposit failed",description:"The bridge does not exist."})}catch(ne){console.error(ne),an(ne)}finally{x(!1)}}},children:y.jsx("span",{className:"text-sm font-semibold text-white",children:!R&&(n==null?void 0:n.id)!==(U==null?void 0:U.id)?"Switch Network":!R&&(o==null?void 0:o.type)!=="native"&&P.value>((s==null?void 0:s.value)||0n)?"Approve":"Deposit"})}),y.jsx(bi,{})]}):null,y.jsx(Jl,{label:"Base Fee",tips:"The fixed fee set by the relayer and charged in a transaction",children:y.jsx(Ir,{token:r,value:I,onChange:N})}),y.jsx(Jl,{label:"Liquidity Fee Rate",tips:"The percentage deducted by the relayer from the transfer amount in a transaction",children:y.jsx(T6,{placeholder:"Enter 0 ~ 0.25",className:"bg-app-bg px-medium h-10 rounded-xl text-sm font-semibold text-white lg:h-11",value:M,onChange:L})}),y.jsx(bi,{}),y.jsx(pn,{kind:R?"primary":"default",disabled:(t==null?void 0:t.id)===(U==null?void 0:U.id)&&!(P.input&&I.input&&M.input&&o4(M.value)),busy:E,className:"inline-flex h-11 items-center justify-center rounded-full",onClick:async()=>{let ne;if(J&&t&&n&&r&&o){T(!0);try{t.id!==(U==null?void 0:U.id)?G==null||G(t.id):u&&(r==null?void 0:r.type)!=="native"&&P.value>((a==null?void 0:a.value)||0n)?await b(J,P.value,u,t):l?ne=await p(I.value,M.value,l,t):u&&await _(X,t,n,r,o)?await ae(J,t,n,r,"lnv2-opposite")||(ne=await w(J,P.value,I.value,M.value,u,t)):ms.warn({title:"Deposit failed",description:"The bridge does not exist."})}catch(ie){console.error(ie),an(ie)}finally{T(!1),(ne==null?void 0:ne.status)==="success"&&(o.type&&o.type!=="native"?j(4):D(!0))}}},children:y.jsx("span",{className:"text-sm font-semibold text-white",children:l?(t==null?void 0:t.id)!==(U==null?void 0:U.id)?"Switch Network":"Register":u?(t==null?void 0:t.id)!==(U==null?void 0:U.id)?"Switch Network":(r==null?void 0:r.type)!=="native"&&P.value>((a==null?void 0:a.value)||0n)?"Approve":"Register":"Register"})})]}),3<=B&&y.jsxs(y.Fragment,{children:[y.jsx(bi,{}),y.jsxs("div",{className:"gap-small flex items-center justify-between",children:[y.jsx(lr,{property:"Margin",token:l?o:u?r:void 0,balance:P.value}),y.jsx(lr,{property:"Base Fee",token:r,balance:I.value}),y.jsx(lr,{property:"Liquidity Fee Rate",percent:ml(M.value)})]})]})]}),o!=null&&o.type&&o.type!=="native"?y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:3,title:"Authorize Token on Target Chain and Run Relayer"}),B===4&&y.jsxs(y.Fragment,{children:[y.jsx(_T,{content:"Authorize token on target chain and run relayer to start relaying messages and earn rewards. Please note this step authorizes tokens for the relayer to send to users' target chain address based on transactions. Ensure you authorize enough tokens for multiple transactions as needed."}),y.jsx(bi,{}),y.jsx(Jl,{label:"Current Allowance",children:y.jsx(Ir,{token:o,disabled:!0,value:{value:(s==null?void 0:s.value)??0n,input:ut((s==null?void 0:s.value)??0n,(s==null?void 0:s.token.decimals)??0),valid:!0},placeholder:"-"})}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(pn,{kind:"default",onClick:()=>D(!0),className:"inline-flex h-11 flex-1 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Skip"})}),y.jsx(pn,{kind:"primary",onClick:async()=>{if(J&&n){T(!0);try{(U==null?void 0:U.id)!==n.id?G==null||G(n.id):l?await v(J,(c==null?void 0:c.value)||0n,l,n):u&&await v(J,(c==null?void 0:c.value)||0n,u,n)}catch(ne){console.error(ne),an(ne)}finally{T(!1)}}},className:"inline-flex h-11 flex-1 items-center justify-center rounded-full",busy:E,disabled:(r==null?void 0:r.type)==="native",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:(U==null?void 0:U.id)===(n==null?void 0:n.id)?"Approve More":"Switch Network"})})]})]})]}):null]}),y.jsxs(Bd,{title:"One More Step!",subTitle:y.jsxs("div",{className:"flex flex-wrap items-center text-sm font-semibold text-white",children:["Now ",y.jsx(vM,{style:"link"})," to start relaying messages and earn rewards."]}),isOpen:k,onClose:()=>D(!1),children:[y.jsxs("div",{className:"gap-x-small grid items-center gap-y-5 text-sm font-semibold text-white",style:{gridTemplateColumns:"130px auto"},children:[y.jsx("span",{className:"text-white/50",children:"Address"}),J?y.jsx(Ca,{address:J}):null,y.jsx("span",{className:"text-white/50",children:"Bridge Type"}),y.jsx("span",{children:l?"Default":u?"Opposite":"-"}),y.jsx("span",{className:"text-white/50",children:"From"}),y.jsx(wM,{chain:t}),y.jsx("span",{className:"text-white/50",children:"To"}),y.jsx(wM,{chain:n}),y.jsx("span",{className:"text-white/50",children:"Token"}),y.jsx(JMe,{token:r}),y.jsx("span",{className:"text-white/50",children:"Margin"}),y.jsx(ZMe,{margin:P.value,token:l?o:r}),y.jsx("span",{className:"text-white/50",children:"Base Fee"}),y.jsx(eLe,{fee:I.value,token:r}),y.jsx("span",{className:"text-white/50",children:"Liquidity Fee Rate"}),y.jsxs("span",{children:[ml(M.value),"%"]})]}),y.jsx(bi,{}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(pn,{kind:"default",onClick:e,className:"inline-flex h-10 flex-1 items-center justify-center rounded-full lg:h-11",children:y.jsx("span",{className:"text-sm font-semibold",children:"Manage"})}),y.jsx(vM,{style:"button"})]})]})]})}function vM({style:e,onClick:t=()=>{}}){return y.jsx("a",{href:"https://github.com/helix-bridge/relayer/tree/main",className:`inline-flex items-center justify-center ${e==="button"?"border-radius bg-primary h-10 flex-1 items-center justify-center rounded-full text-sm font-semibold text-white transition-opacity hover:opacity-80 lg:h-11":"text-primary text-sm font-semibold hover:underline"}`,rel:"noopener",target:"_blank",onClick:t,children:e==="button"?"Run relayer":"run a relayer"})}function Jl({children:e,label:t,tips:n,className:r}){return y.jsxs("div",{className:`gap-medium flex flex-col ${r}`,children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:t}),n?y.jsx(At,{content:n,className:"w-fit",contentClassName:"max-w-[18rem]",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]}),e]})}function _T({content:e}){return y.jsx("span",{className:"text-sm font-medium text-white/50",children:e})}function wM({chain:e}){return e?y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:22,height:22,alt:"Chain",src:Rn(e.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{children:e.name})]}):""}function JMe({token:e}){return e?y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:22,height:22,alt:"Chain",src:vr(e.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{children:e.symbol})]}):""}function ZMe({token:e,margin:t}){return y.jsx("span",{children:e?`${ut(t,e.decimals)} ${e.symbol}`:""})}function eLe({fee:e,token:t}){return y.jsx("span",{children:t?`${ut(e,t.decimals)} ${t.symbol}`:""})}function bi(){return y.jsx("div",{className:"h-[1px] bg-white/10"})}const EM=10;function _M({version:e}){const t=tn(),[n,r]=S.useState(0),{loading:o,data:a,total:i,refetch:s}=zY(e,n,EM,t.address);return S.useEffect(()=>r(0),[e]),y.jsxs("div",{className:"space-y-medium",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-base font-semibold text-white",children:"Relayers"}),y.jsx(A6,{onClick:s})]}),y.jsx(HZ,{onPageChange:r,onRefetch:s,currentPage:n,totalRecords:i,pageSize:EM,dataSource:a,version:e,loading:o,isDashboard:!0})]})}function tLe(){const[e,t]=S.useState("manage"),[n,r]=S.useState("lnv3"),o=S.useCallback(()=>t("manage"),[]);return y.jsxs("div",{className:"flex flex-col items-center gap-5",children:[y.jsx("div",{className:"flex w-full justify-end lg:w-[40rem]",children:y.jsx(xMe,{value:n,onChange:r})}),y.jsx(CMe,{options:[{key:"manage",label:"Manage",children:n==="lnv3"?y.jsx(mM,{children:y.jsx(_M,{version:n})}):y.jsx(bM,{children:y.jsx(_M,{version:n})})},{key:"register",label:"Register",children:n==="lnv3"?y.jsx(mM,{children:y.jsx(GMe,{onManage:o})}):y.jsx(bM,{children:y.jsx(XMe,{onManage:o})})},{key:"overview",label:"Overview",children:y.jsx(HMe,{version:n})}],className:"lg:w-[40rem]",activeKey:e,onChange:t})]})}function BP({children:e}){return y.jsx("main",{className:"app-main",children:y.jsx("div",{className:"page-container",children:e})})}function nLe(){return y.jsx(BP,{children:y.jsx(tLe,{})})}function rLe(){return y.jsx(y.Fragment,{children:y.jsx("main",{className:"app-main flex items-center justify-center",children:y.jsxs("div",{className:"gap-medium flex w-fit flex-col items-start",children:[y.jsx("h2",{className:"text-base font-medium text-white",children:"Not Found !"}),y.jsx("p",{className:"text-sm font-normal text-white",children:"Could not find requested resource"}),y.jsx(Su,{to:"/",className:"text-primary text-sm font-normal hover:underline",children:"Return Home"})]})})})}function oLe(){const e=Az();return y.jsxs("main",{className:"app-main flex flex-col items-center justify-center gap-5",children:[y.jsx("h1",{className:"font-bold",children:"Oops!"}),y.jsx("p",{children:"Sorry, an unexpected error has occurred."}),y.jsx("p",{children:y.jsx("i",{className:"text-sm",children:e.statusText||e.message})})]})}function aLe({total:e,current:t,size:n=10,onChange:r=()=>{}}){const o=Math.ceil(e/n);return o>1?y.jsxs("div",{className:"gap-small flex items-center justify-end",children:[y.jsx(La,{label:"previous",current:t,total:o,onClick:()=>r(t-1)}),iLe(t,o,r),y.jsx(La,{label:"next",current:t,total:o,onClick:()=>r(t+1)})]}):null}function La({label:e,current:t,total:n,onClick:r}){const{disabled:o,className:a}=S.useMemo(()=>{let i="inline-flex items-center justify-center h-8 min-w-[2rem] px-[2px] rounded-md border text-sm font-normal text-white bg-secondary transition-[opacity,color]",s=!1;return e==="next"&&t+1===n||e==="previous"&&t===0?(i+=" disabled:cursor-not-allowed disabled:opacity-50 border-white/30",s=!0):e===t?(i+=" bg-white/10 disabled:cursor-default border-transparent",s=!0):e==="more"?(i+=" opacity-50 disabled:cursor-default border-white/30",s=!0):i+=" opacity-50 hover:opacity-100 border-white/30",{disabled:s,className:i}},[e,t,n]);return y.jsx("button",{className:a,disabled:o,onClick:r,children:e==="more"?y.jsx("span",{children:"..."}):e==="previous"?y.jsx("img",{alt:"Previous page",width:16,height:16,src:"images/pagination/previous-page.svg"}):e==="next"?y.jsx("img",{alt:"Next page",width:16,height:16,src:"images/pagination/next-page.svg"}):y.jsx("span",{children:e+1})})}function iLe(e,t,n){const r=new Array(t).fill(0).map((o,a)=>a);return e<3||t-48?y.jsxs(y.Fragment,{children:[r.slice(0,4).map(o=>y.jsx(La,{label:o,current:e,total:t,onClick:()=>n(o)},o)),y.jsx(La,{label:"more",current:e,total:t}),r.slice(-4).map(o=>y.jsx(La,{label:o,current:e,total:t,onClick:()=>n(o)},o))]}):r.map(o=>y.jsx(La,{label:o,current:e,total:t,onClick:()=>n(o)},o)):y.jsxs(y.Fragment,{children:[y.jsx(La,{label:0,current:e,total:t,onClick:()=>n(0)}),y.jsx(La,{label:"more",current:e,total:t}),r.slice(e-1,e+2).map(o=>y.jsx(La,{label:o,current:e,total:t,onClick:()=>n(o)},o)),y.jsx(La,{label:"more",current:e,total:t}),y.jsx(La,{label:t-1,current:e,total:t,onClick:()=>n(t-1)})]})}function sLe({onPageChange:e,onRowClick:t,totalRecords:n,currentPage:r,pageSize:o,dataSource:a,loading:i,columns:s}){const c=S.useMemo(()=>s.reduce((l,u)=>{const d=typeof u.width=="string"?u.width:typeof u.width=="number"?`${u.width}px`:"1fr";return l==="auto"?l=d:l=`${l} ${d}`,l},"auto"),[s]);return y.jsxs("div",{className:"space-y-3",children:[y.jsx("div",{className:"w-full overflow-x-auto",children:y.jsxs("div",{className:"bg-secondary min-w-[62rem] rounded-2xl p-2 lg:p-5",children:[y.jsx("div",{className:"bg-background py-large grid items-center gap-x-2 rounded-t-xl border-b border-b-white/10 px-3 text-sm font-normal text-white/50",style:{gridTemplateColumns:c},children:s.map(({key:l,title:u})=>typeof u=="string"?y.jsx("h5",{children:u},l):y.jsx(S.Fragment,{children:u},l))}),y.jsxs("div",{className:"relative",children:[y.jsx(qs,{loading:i,className:`rounded-b-xl ${a!=null&&a.length?"bg-black/5 backdrop-blur-[2px]":""}`,color:"white"}),a!=null&&a.length?y.jsx("div",{className:"rounded-b-xl",children:a.map(l=>y.jsx("div",{className:`${t?"hover:bg-background/50 transition-colors hover:cursor-pointer":""} bg-background grid items-center gap-x-2 px-3 py-2 text-sm font-normal text-white last:rounded-b-xl`,style:{gridTemplateColumns:c},onClick:()=>t&&t(l),children:s.map(({key:u,dataIndex:d,render:f})=>y.jsx(S.Fragment,{children:f?f(l):y.jsx("span",{children:`${l[d]}`})},u))},l.key))}):y.jsx("div",{className:"flex h-48 flex-col items-center justify-center gap-4",children:i?null:y.jsxs(y.Fragment,{children:[y.jsx("img",{width:50,height:63,alt:"No data",src:"images/no-data.svg"}),y.jsx("span",{className:"text-sm font-normal text-slate-400",children:"No data"})]})})]})]})}),n!==void 0&&r!==void 0&&y.jsx("div",{className:"overflow-x-auto pb-1",children:y.jsx(aLe,{size:o,current:r,total:n,onChange:e})})]})}function cLe(e=!1){return[{title:"From",key:"from",width:e?void 0:"10%",render:t=>{const n=st(t.fromChain);return n?y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("img",{alt:n.name,width:32,height:32,src:Rn(n.logo),className:"rounded-full"}),y.jsx("span",{className:"hidden truncate lg:inline",children:n.name})]}):y.jsx("span",{children:"-"})}},{title:"To",key:"to",width:e?void 0:"10%",render:t=>{const n=st(t.toChain);return n?y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("img",{alt:n.name,width:32,height:32,src:Rn(n.logo),className:"rounded-full"}),y.jsx("span",{className:"hidden truncate lg:inline",children:n.name})]}):y.jsx("span",{children:"-"})}},{title:"Sender",key:"sender",render:t=>t.sender?y.jsx(Ca,{address:t.sender,copyable:!0,forceShort:!0}):y.jsx("span",{children:"-"})},{title:"Recipient",key:"recipient",render:t=>t.recipient?y.jsx(Ca,{address:t.recipient,copyable:!0,forceShort:!0}):y.jsx("span",{children:"-"})},{title:"Amount",key:"amount",render:t=>{var r;const n=(r=st(t.fromChain))==null?void 0:r.tokens.find(({symbol:o})=>o.toUpperCase()===t.sendToken.toUpperCase());return n?y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("img",{width:32,height:32,alt:n.symbol,src:vr(n.logo),className:"hidden rounded-full lg:block"}),y.jsx("span",{className:"truncate",children:`${ut(BigInt(t.sendAmount),n.decimals)} ${n.symbol}`})]}):y.jsx("span",{children:"-"})}},{title:y.jsx("span",{className:"text-end",children:"Status"}),key:"status",width:e?"13%":"15%",render:({result:t,startTime:n,confirmedBlocks:r})=>y.jsxs("div",{className:"flex flex-col items-end truncate",children:[y.jsx("span",{className:"truncate",children:hy(n*1e3,{compact:!0})}),y.jsx("span",{className:`truncate text-xs font-semibold ${t===xn.SUCCESS?"text-app-green":t===xn.REFUNDED?"text-app-orange":t===xn.PENDING?"text-primary":"text-white/50"}`,children:t===xn.PENDING?r?fj(r)?"Confirming":`Pending ${r}`:"Pending":Wye(t)})]})}]}function lLe({onPageChange:e,onRowClick:t,dataSource:n,currentPage:r,totalRecords:o,pageSize:a,loading:i}){const s=$Y("lg");return y.jsx(sLe,{dataSource:n.map(({id:c,...l})=>({key:c,id:c,...l})),totalRecords:o,currentPage:r,pageSize:a,columns:cLe(s),loading:i,onPageChange:e,onRowClick:t})}const xM=10;function uLe(){const{recordsSearch:e,setRecordsSearch:t}=$g(),n=S.useDeferredValue(e),[,r]=Dz(),o=Mg(),[a,i]=S.useState(0),[s,c]=S.useState(!1),{data:l,total:u,networkStatus:d,refetch:f}=d_e(n.toLowerCase(),a,xM);return S.useEffect(()=>{t(new URLSearchParams(window.location.hash.split("?")[1]).get(Mn.ADDRESS)||"")},[t]),S.useEffect(()=>{const h=Number(new URLSearchParams(window.location.hash.split("?")[1]).get(Mn.PAGE));!Number.isNaN(h)&&h>0&&i(h-1)},[]),y.jsxs("div",{className:"space-y-5",children:[y.jsxs("div",{className:"flex items-center justify-between gap-5",children:[y.jsx(qZ,{placeholder:"Search by address",className:"hover:border-primary w-full lg:w-[26.5rem]",value:e,onChange:h=>{t(h),i(0),r(m=>(m.delete(Mn.PAGE),Hn(h)?m.set(Mn.ADDRESS,h):m.delete(Mn.ADDRESS),m))},onClear:()=>{t(""),i(0),r(h=>(h.delete(Mn.ADDRESS),h.delete(Mn.PAGE),h))}}),y.jsx(A6,{onClick:()=>{c(!0),setTimeout(()=>f(),0)},onRefresh:()=>{c(!1),setTimeout(()=>f(),0)},enabled:d===dt.ready,enabledAfterClick:!0})]}),y.jsx(lLe,{dataSource:l,totalRecords:u,currentPage:a,pageSize:xM,loading:d===dt.loading||d===dt.setVariables||d===dt.refetch&&s,onPageChange:h=>{i(h),r(m=>(m.set(Mn.PAGE,(h+1).toString()),m))},onRowClick:({id:h})=>o(`/tx/${h}`,{state:{source:"explorer"}})})]})}function dLe(){return y.jsx(BP,{children:y.jsx(uLe,{})})}function fLe({width:e,height:t,type:n,bridge:r}){return r?y.jsx(At,{content:r.getName(),className:"w-fit",children:y.jsx("img",{width:e,height:t,alt:"Bridge",src:Gye(n==="symbol"?r.getLogo().symbol:r.getLogo().horizontal),className:"shrink-0 rounded-full"})}):null}function hLe({record:e}){const t=st(e==null?void 0:e.fromChain),n=st(e==null?void 0:e.toChain),r=e?fm({category:e.bridge}):void 0;return y.jsxs("div",{className:"gap-large flex items-center",children:[y.jsx(CM,{logo:Rn(t==null?void 0:t.logo),name:(t==null?void 0:t.name)||"Unknown"}),y.jsx(SM,{}),y.jsx(fLe,{width:132,height:32,type:"horizontal",bridge:r}),y.jsx(SM,{}),y.jsx(CM,{logo:Rn(n==null?void 0:n.logo),name:(n==null?void 0:n.name)||"Unknown"})]})}function CM({logo:e,name:t}){return y.jsx(At,{content:t,className:"shrink-0",children:y.jsx("img",{width:32,height:32,alt:t,src:e,className:"rounded-full"})})}function SM(){return y.jsx("img",{width:9,height:12,alt:"Caret right",src:"images/caret-right.svg",className:"shrink-0"})}function mLe({result:e}){const{icon:t,text:n,color:r}=S.useMemo(()=>{let o="unknown.svg",a="Unknown",i="#0085FF";return e===xn.PENDING||e===xn.PENDING_TO_REFUND||e===xn.PENDING_TO_CLAIM?(o="pending.svg",a="Pending",i="#0085FF"):e===xn.REFUNDED?(o="refunded.svg",a="Refunded",i="#FAAD14"):e===xn.SUCCESS?(o="success.svg",a="Success",i="#52C41A"):e===xn.PENDING_TO_CONFIRM_REFUND&&(o="pending.svg",a="Refunding",i="#0085FF"),{icon:o,text:a,color:i}},[e]);return y.jsxs("div",{className:"gap-small pl-small pr-medium flex items-center rounded-3xl py-[3px]",style:{backgroundColor:r},children:[y.jsx("img",{width:t==="unknown.svg"?16:20,height:t==="unknown.svg"?16:20,alt:"Result",src:`images/status/${t}`}),y.jsx("span",{className:"text-sm font-medium",children:n})]})}function pLe({record:e}){const[t,n]=S.useState(0),[r,o]=S.useState(!1);return S.useEffect(()=>{const a=D1e(1e3).subscribe(()=>n(i=>i>0?i-1e3:0));return()=>a.unsubscribe()},[]),S.useEffect(()=>{var a;if(e!=null&&e.bridge){const i=e?e.startTime*1e3:Date.now(),s=((((a=fm({category:e.bridge}))==null?void 0:a.getEstimateTime().min)||0)+10)*60*1e3;n(s),o(Date.now()-i>s)}else n(0),o(!1)},[e]),y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx(mLe,{result:e==null?void 0:e.result}),(e==null?void 0:e.result)===xn.PENDING&&y.jsx("div",{className:"inline text-sm font-medium text-white/50",children:r?y.jsxs("span",{children:["It seems to be taking longer than usual."," ",y.jsx("a",{href:`mailto:hello@helixbridge.app?subject=${encodeURIComponent("Transfer time out")}&body=${encodeURIComponent(location.href)}`,rel:"noreferrer",target:"_blank",className:"text-primary hover:underline",children:"Contact us"})," ","for support."]}):`Estimated to wait ${Rve(t)}`})]})}function TM({chain:e,txHash:t}){const n=st(e);return t?y.jsxs("div",{className:"gap-medium flex items-center",children:[n!=null&&n.blockExplorers?y.jsx("a",{className:"text-primary text-sm font-medium transition hover:underline",href:new URL(`tx/${t}`,n.blockExplorers.default.url).href,rel:"noopener noreferrer",target:"_blank",children:t}):y.jsx("span",{className:"text-sm font-medium text-white",children:t}),y.jsx(AP,{text:t})]}):y.jsx("span",{className:"text-sm font-medium text-white",children:"Waiting for the transaction..."})}function gLe({record:e}){return y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("img",{width:16,height:16,alt:"Confirm time",src:"images/time.svg",className:"shrink-0"}),y.jsx("span",{className:"text-sm font-medium text-white",children:e?`${Ove(e.startTime*1e3)} (${hy(e.startTime*1e3)})`:null}),!!(e!=null&&e.startTime&&(e!=null&&e.endTime))&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"h-3 w-[1px] bg-white/50"}),y.jsx("img",{width:16,height:16,alt:"Confirm time",src:"images/clock.svg",className:"shrink-0"}),y.jsxs("span",{className:"text-sm font-medium text-white/50",children:["Confirmed within ",BK(e.startTime*1e3,e.endTime*1e3)]})]})]})}function yLe({record:e,bridge:t}){const n=t==null?void 0:t.getContract();return e&&n?y.jsxs("div",{className:"flex flex-col items-start justify-between",children:[y.jsx(AM,{chain:e.fromChain,from:e.sender,to:n.sourceAddress,symbol:e.sendToken,amount:BigInt(e.sendAmount||0)}),y.jsx(AM,{chain:e.toChain,from:n.targetAddress,to:e.recipient,symbol:e.recvToken,amount:BigInt(e.recvAmount||0)})]}):null}function AM({chain:e,from:t,to:n,symbol:r,amount:o}){const a=st(e),i=a==null?void 0:a.tokens.find(s=>s.symbol.toUpperCase()===r.toUpperCase());return i&&a?y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx(At,{content:a.name,className:"shrink-0",children:y.jsx("img",{width:16,height:16,alt:"Chain logo",src:Rn(a.logo),className:"shrink-0 rounded-full"})}),y.jsx(xT,{text:"From"}),y.jsx(DM,{address:t}),y.jsx(xT,{text:"To"}),y.jsx(DM,{address:n}),y.jsx(xT,{text:"For"}),y.jsx("img",{width:16,height:16,alt:"Token icon",src:vr(i.logo),className:"shrink-0 rounded-full"}),y.jsxs("span",{className:"text-sm font-medium text-white",children:[ut(o,i.decimals,{keepZero:!1,precision:4})," ",r]})]}):null}function DM({address:e}){return y.jsx("div",{className:"inline-block w-24 truncate",children:y.jsx(Ca,{address:e,forceShort:!0,className:"text-primary text-sm font-medium"})})}function xT({text:e}){return y.jsx("span",{className:"text-sm font-medium text-white",children:e})}function bLe({record:e}){var n;const t=(n=st(e==null?void 0:e.toChain))==null?void 0:n.tokens.find(({symbol:r,address:o})=>{var a;return r===(e==null?void 0:e.recvToken)||(e==null?void 0:e.recvTokenAddress)&&o.toLowerCase()===((a=e.recvTokenAddress)==null?void 0:a.toLowerCase())});return t?y.jsxs("div",{className:"gap-medium flex items-center",children:[t.type!=="native"&&y.jsx(Ca,{address:t.address,copyable:!0,className:"text-primary text-sm font-medium"}),y.jsx("img",{width:20,height:20,alt:"Token",src:vr(t.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{className:"text-sm font-medium text-white",children:t.symbol}),window.ethereum&&t.type!=="native"?y.jsx(pn,{className:"rounded-medium px-medium py-[1px]",onClick:async()=>{try{await window.ethereum.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t.address,symbol:t.symbol,decimals:t.decimals,image:""}}})}catch(r){console.error(r)}},children:y.jsx("span",{className:"text-sm font-medium text-white",children:"Add to MetaMask"})}):null]}):null}function vLe({record:e}){var n;const t=(n=st(e==null?void 0:e.fromChain))==null?void 0:n.tokens.find(({symbol:r})=>r.toUpperCase()===(e==null?void 0:e.sendToken.toUpperCase()));return y.jsx("span",{className:"text-sm font-medium text-white",children:t&&(e!=null&&e.sendAmount)?`${ut(BigInt(e.sendAmount),t.decimals,{keepZero:!1,precision:4})} ${t.symbol}`:null})}function wLe({record:e}){var n;const t=(n=st(e==null?void 0:e.fromChain))==null?void 0:n.tokens.find(({symbol:r})=>r.toUpperCase()===(e==null?void 0:e.feeToken.toUpperCase()));return y.jsx("span",{className:"text-sm font-medium text-white",children:t&&(e!=null&&e.fee)?`${ut(BigInt(e.fee),t.decimals,{keepZero:!1,precision:4})} ${t.symbol}`:null})}function ELe({text:e,tips:t}){return y.jsxs("div",{className:"gap-small flex w-52 items-center justify-start",children:[y.jsx("span",{className:"text-sm font-extrabold",children:e}),t?y.jsx(At,{content:t,className:"shrink-0",contentClassName:"max-w-[15rem] lg:max-w-xs",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]})}function _Le({width:e=20,height:t=20,fill:n="#ffffff",className:r,onClick:o}){return y.jsx("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:e,height:t,className:r,onClick:o,children:y.jsx("path",{d:"M232.727273 0h558.545454a232.727273 232.727273 0 0 1 232.727273 232.727273v558.545454a232.727273 232.727273 0 0 1-232.727273 232.727273H232.727273a232.727273 232.727273 0 0 1-232.727273-232.727273V232.727273a232.727273 232.727273 0 0 1 232.727273-232.727273z m438.178909 711.819636L471.086545 512l199.819637-199.819636L605.090909 246.365091 339.456 512 605.090909 777.634909l65.815273-65.815273z",fill:n})})}function xLe(e){var i,s,c,l,u,d,f;const{loading:t,data:n,refetch:r}=$s(Sye,{variables:{id:e.id},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"}),o=Mg(),a=S.useMemo(()=>{var g,w,_;const h=(g=n==null?void 0:n.historyRecordById)==null?void 0:g.bridge,m=st((w=n==null?void 0:n.historyRecordById)==null?void 0:w.fromChain),p=st((_=n==null?void 0:n.historyRecordById)==null?void 0:_.toChain),b=m==null?void 0:m.tokens.find(C=>{var x;return C.symbol.toUpperCase()===((x=n==null?void 0:n.historyRecordById)==null?void 0:x.sendToken.toUpperCase())}),v=p==null?void 0:p.tokens.find(C=>{var x;return C.symbol.toUpperCase()===((x=n==null?void 0:n.historyRecordById)==null?void 0:x.recvToken.toUpperCase())});if(h)return fm({category:h,sourceChain:m,targetChain:p,sourceToken:b,targetToken:v})},[n==null?void 0:n.historyRecordById]);return y.jsxs("div",{className:"container mx-auto",children:[y.jsxs("div",{className:"flex items-center justify-between gap-5",children:[y.jsxs("div",{className:"flex items-center gap-2 lg:gap-3",children:[e.source==="explorer"&&y.jsx(_Le,{className:"opacity-100 transition-[transform,opacity] hover:scale-105 hover:cursor-pointer hover:opacity-100 lg:opacity-50",onClick:()=>o(-1)}),y.jsx("h3",{className:"text-base font-bold text-white",children:"Transaction Details"})]}),y.jsx(A6,{onClick:r})]}),y.jsx("div",{className:"app-scrollbar mt-5 overflow-x-auto",children:y.jsxs("div",{className:"gap-medium rounded-large bg-secondary py-medium relative flex min-w-max flex-col px-7",children:[y.jsx(qs,{loading:t,className:"rounded-large backdrop-blur-[2px]"}),y.jsx(aa,{label:"Transfer Route",children:y.jsx(hLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(Nv,{}),y.jsx(aa,{label:"Status",tips:"The status of the cross-chain transaction: Success, Pending, or Refunded.",children:y.jsx(pLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(aa,{label:"Source Tx Hash",tips:"Unique character string (TxID) assigned to every verified transaction on the Source Chain.",children:y.jsx(TM,{chain:(i=n==null?void 0:n.historyRecordById)==null?void 0:i.fromChain,txHash:(s=n==null?void 0:n.historyRecordById)==null?void 0:s.requestTxHash})}),y.jsx(aa,{label:"Target Tx Hash",tips:"Unique character string (TxID) assigned to every verified transaction on the Target Chain.",children:y.jsx(TM,{chain:(c=n==null?void 0:n.historyRecordById)==null?void 0:c.toChain,txHash:(l=n==null?void 0:n.historyRecordById)==null?void 0:l.responseTxHash})}),y.jsx(aa,{label:"Timestamp",tips:"The date and time at which a transaction is mined. And the time period elapsed for the completion of the cross-chain.",children:y.jsx(gLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(Nv,{}),y.jsx(aa,{label:"Sender",tips:"Address (external or contract) sending the transaction.",children:(u=n==null?void 0:n.historyRecordById)!=null&&u.sender?y.jsx(Ca,{address:n.historyRecordById.sender,className:"text-primary text-sm font-medium",copyable:!0}):null}),y.jsx(aa,{label:"Receiver",tips:"Address (external or contract) receiving the transaction.",children:(d=n==null?void 0:n.historyRecordById)!=null&&d.recipient?y.jsx(Ca,{address:n.historyRecordById.recipient,className:"text-primary text-sm font-medium",copyable:!0}):null}),y.jsx(aa,{label:"Token Transfer",tips:"List of tokens transferred in this cross-chain transaction.",children:y.jsx(yLe,{record:n==null?void 0:n.historyRecordById,bridge:a})}),y.jsx(aa,{label:"Token To Receive",children:y.jsx(bLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(Nv,{}),y.jsx(aa,{label:"Value",tips:"The amount to be transferred to the recipient with the cross-chain transaction.",children:y.jsx(vLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(aa,{label:"Transaction Fee",tips:"Amount paid for processing the cross-chain transaction.",children:y.jsx(wLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(Nv,{}),y.jsx(aa,{label:"Nonce",tips:"A unique number of cross-chain transaction in Bridge.",children:(f=n==null?void 0:n.historyRecordById)!=null&&f.nonce?y.jsx("span",{className:"text-sm font-medium text-white",children:n.historyRecordById.nonce}):null})]})})]})}function aa({label:e,tips:t,children:n}){return y.jsxs("div",{className:"gap-small lg:gap-medium flex flex-col items-start lg:h-11 lg:flex-row lg:items-center",children:[y.jsx(ELe,{text:e,tips:t}),y.jsx("div",{className:"pl-5 lg:pl-0",children:n})]})}function Nv(){return y.jsx("div",{className:"h-[1px] w-full bg-white/10"})}function CLe(){var n;const e=jae(),t=fd();return y.jsx(BP,{children:y.jsx(xLe,{id:e.id??"",source:(n=t.state)==null?void 0:n.source})})}const SLe=Xae([{element:y.jsx(ZFe,{}),children:[{path:"/",element:y.jsx(_Me,{})},{path:"/relayer",element:y.jsx(nLe,{})},{path:"/explorer",element:y.jsx(dLe,{})},{path:"/tx/:id",element:y.jsx(CLe,{})},{path:"*",element:y.jsx(rLe,{})}],errorElement:y.jsx(oLe,{})}]);function TLe(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:a,onRegisterError:i}=e;let s,c,l;const u=async(f=!0)=>{await c,await(l==null?void 0:l())};async function d(){if("serviceWorker"in navigator){if(s=await me(async()=>{const{Workbox:f}=await import("./workbox-window.prod.es5-rX37VysU.js");return{Workbox:f}},[],import.meta.url).then(({Workbox:f})=>new f("./sw.js",{scope:"./",type:"classic"})).catch(f=>{i==null||i(f)}),!s)return;l=async()=>{await(s==null?void 0:s.messageSkipWaiting())};{let f=!1;const h=()=>{f=!0,s==null||s.addEventListener("controlling",m=>{m.isUpdate&&window.location.reload()}),n==null||n()};s.addEventListener("installed",m=>{typeof m.isUpdate>"u"?typeof m.isExternal<"u"?m.isExternal?h():!f&&(r==null||r()):m.isExternal?window.location.reload():!f&&(r==null||r()):m.isUpdate||r==null||r()}),s.addEventListener("waiting",h),s.addEventListener("externalwaiting",h)}s.register({immediate:t}).then(f=>{a?a("./sw.js",f):o==null||o(f)}).catch(f=>{i==null||i(f)})}}return c=d(),u}function ALe(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:a,onRegisterError:i}=e,[s,c]=S.useState(!1),[l,u]=S.useState(!1),[d]=S.useState(()=>TLe({immediate:t,onOfflineReady(){u(!0),r==null||r()},onNeedRefresh(){c(!0),n==null||n()},onRegistered:o,onRegisteredSW:a,onRegisterError:i}));return{needRefresh:[s,c],offlineReady:[l,u],updateServiceWorker:d}}const DLe=window.matchMedia("(display-mode: standalone)").matches,kLe=!1;function jLe(){const{needRefresh:[e,t],updateServiceWorker:n}=ALe({onRegisteredSW(o,a){}});function r(){t(!1)}return y.jsx("div",{role:"alert","aria-labelledby":"toast-message",children:e&&DLe&&kLe&&y.jsxs("div",{className:"bg-background fixed bottom-0 right-0 z-10 m-4 flex flex-col gap-y-3 rounded-xl border border-white/20 p-3 text-left",children:[y.jsx("span",{id:"toast-message",className:"text-sm font-bold text-white",children:"New content available, click on reload button to update."}),y.jsxs("div",{className:"flex items-center justify-end gap-x-3",children:[y.jsx(pn,{className:"rounded-lg px-3 py-[0.125rem] text-sm font-bold",onClick:()=>r(),children:"Close"}),y.jsx(pn,{className:"rounded-lg px-3 py-[0.125rem] text-sm font-bold",onClick:()=>n(!0),kind:"primary",children:"Reload"})]})]})})}const GZ=Object.prototype.toString;function FP(e){switch(GZ.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ps(e,Error)}}function qm(e,t){return GZ.call(e)===`[object ${t}]`}function VZ(e){return qm(e,"ErrorEvent")}function kM(e){return qm(e,"DOMError")}function PLe(e){return qm(e,"DOMException")}function gs(e){return qm(e,"String")}function MP(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function LP(e){return e===null||MP(e)||typeof e!="object"&&typeof e!="function"}function Mh(e){return qm(e,"Object")}function D6(e){return typeof Event<"u"&&Ps(e,Event)}function ILe(e){return typeof Element<"u"&&Ps(e,Element)}function OLe(e){return qm(e,"RegExp")}function k6(e){return!!(e&&e.then&&typeof e.then=="function")}function RLe(e){return Mh(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ps(e,t){try{return e instanceof t}catch{return!1}}function KZ(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function ih(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function jM(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rNLe(e,r,n))}function BLe(e,t,n=250,r,o,a,i){if(!a.exception||!a.exception.values||!i||!Ps(i.originalException,Error))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=FLe(VD(e,t,o,i.originalException,r,a.exception.values,s,0),n))}function VD(e,t,n,r,o,a,i,s){if(a.length>=n+1)return a;let c=[...a];if(Ps(r[o],Error)){PM(i,s);const l=e(t,r[o]),u=c.length;IM(l,o,u,s),c=VD(e,t,n,r[o],o,[l,...c],l,u)}return Array.isArray(r.errors)&&r.errors.forEach((l,u)=>{if(Ps(l,Error)){PM(i,s);const d=e(t,l),f=c.length;IM(d,`errors[${u}]`,f,s),c=VD(e,t,n,l,o,[d,...c],d,f)}}),c}function PM(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function IM(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function FLe(e,t){return e.map(n=>(n.value&&(n.value=ih(n.value,t)),n))}const ku="8.30.0",bt=globalThis;function j6(e,t,n){const r=bt,o=r.__SENTRY__=r.__SENTRY__||{},a=o[ku]=o[ku]||{};return a[e]||(a[e]=t())}const sh=bt,MLe=80;function Is(e,t={}){if(!e)return"";try{let n=e;const r=5,o=[];let a=0,i=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||MLe;for(;n&&a++1&&i+o.length*c+l.length>=d));)o.push(l),i+=l.length,n=n.parentNode;return o.reverse().join(s)}catch{return""}}function LLe(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(sh.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(o&&o.length)o.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&gs(i)){const s=i.split(/\s+/);for(const c of s)r.push(`.${c}`)}}const a=["aria-label","type","name","title","alt"];for(const i of a){const s=n.getAttribute(i);s&&r.push(`[${i}="${s}"]`)}return r.join("")}function YZ(){try{return sh.document.location.href}catch{return""}}function ULe(e){return sh.document&&sh.document.querySelector?sh.document.querySelector(e):null}function QZ(e){if(!sh.HTMLElement)return null;let t=e;const n=5;for(let r=0;r"u"||__SENTRY_DEBUG__,$Le="Sentry Logger ",KD=["debug","info","warn","error","log","assert","trace"],zE={};function Gm(e){if(!("console"in bt))return e();const t=bt.console,n={},r=Object.keys(zE);r.forEach(o=>{const a=zE[o];n[o]=t[o],t[o]=a});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function zLe(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Wm?KD.forEach(n=>{t[n]=(...r)=>{e&&Gm(()=>{bt.console[n](`${$Le}[${n}]:`,...r)})}}):KD.forEach(n=>{t[n]=()=>{}}),t}const ye=j6("logger",zLe),HLe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function qLe(e){return e==="http"||e==="https"}function _b(e,t=!1){const{host:n,path:r,pass:o,port:a,projectId:i,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&o?`:${o}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${i}`}function WLe(e){const t=HLe.exec(e);if(!t){Gm(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",a="",i="",s=""]=t.slice(1);let c="",l=s;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const d=l.match(/^\d+/);d&&(l=d[0])}return XZ({host:a,pass:o,path:c,projectId:l,port:i,protocol:n,publicKey:r})}function XZ(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function GLe(e){if(!Wm)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(ye.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?qLe(r)?t&&isNaN(parseInt(t,10))?(ye.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ye.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(ye.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function VLe(e){const t=typeof e=="string"?WLe(e):XZ(e);if(!(!t||!GLe(t)))return t}class Ti extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function go(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&JZ(o,r),e[t]=o}function Sa(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Wm&&ye.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function JZ(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Sa(e,"__sentry_original__",t)}catch{}}function UP(e){return e.__sentry_original__}function KLe(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function ZZ(e){if(FP(e))return{message:e.message,name:e.name,stack:e.stack,...RM(e)};if(D6(e)){const t={type:e.type,target:OM(e.target),currentTarget:OM(e.currentTarget),...RM(e)};return typeof CustomEvent<"u"&&Ps(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function OM(e){try{return ILe(e)?Is(e):Object.prototype.toString.call(e)}catch{return""}}function RM(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function YLe(e,t=40){const n=Object.keys(ZZ(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return ih(r,t);for(let o=n.length;o>0;o--){const a=n.slice(0,o).join(", ");if(!(a.length>t))return o===n.length?a:ih(a,t)}return""}function zn(e){return YD(e,new Map)}function YD(e,t){if(QLe(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.keys(e))typeof e[o]<"u"&&(r[o]=YD(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(YD(o,t))}),r}return e}function QLe(e){if(!Mh(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const eee=50,ad="?",NM=/\(error: (.*)\)/,BM=/captureMessage|captureException/;function tee(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const a=[],i=n.split(` -`);for(let s=r;s1024)continue;const l=NM.test(c)?c.replace(NM,"$1"):c;if(!l.match(/\S*Error: /)){for(const u of t){const d=u(l);if(d){a.push(d);break}}if(a.length>=eee+o)break}}return JLe(a.slice(o))}}function XLe(e){return Array.isArray(e)?tee(...e):e}function JLe(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Bv(t).function||"")&&t.pop(),t.reverse(),BM.test(Bv(t).function||"")&&(t.pop(),BM.test(Bv(t).function||"")&&t.pop()),t.slice(0,eee).map(n=>({...n,filename:n.filename||Bv(t).filename,function:n.function||ad}))}function Bv(e){return e[e.length-1]||{}}const CT="";function Os(e){try{return!e||typeof e!="function"?CT:e.name||CT}catch{return CT}}function FM(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const R1={},MM={};function Ul(e,t){R1[e]=R1[e]||[],R1[e].push(t)}function $l(e,t){MM[e]||(t(),MM[e]=!0)}function ba(e,t){const n=e&&R1[e];if(n)for(const r of n)try{r(t)}catch(o){Wm&&ye.error(`Error while triggering instrumentation handler. -Type: ${e} -Name: ${Os(r)} -Error:`,o)}}function ZLe(e){const t="console";Ul(t,e),$l(t,eUe)}function eUe(){"console"in bt&&KD.forEach(function(e){e in bt.console&&go(bt.console,e,function(t){return zE[e]=t,function(...n){ba("console",{args:n,level:e});const o=zE[e];o&&o.apply(bt.console,n)}})})}const QD=bt;function nee(){if(!("fetch"in QD))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function XD(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function tUe(){if(typeof EdgeRuntime=="string")return!0;if(!nee())return!1;if(XD(QD.fetch))return!0;let e=!1;const t=QD.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=XD(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Wm&&ye.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const ree=1e3;function xb(){return Date.now()/ree}function nUe(){const{performance:e}=bt;if(!e||!e.now)return xb;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/ree}const no=nUe(),io=(()=>{const{performance:e}=bt;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=oaee(void 0,t))}function rUe(e){const t="fetch-body-resolved";Ul(t,e),$l(t,()=>aee(aUe))}function aee(e,t=!1){t&&!tUe()||go(bt,"fetch",function(n){return function(...r){const{method:o,url:a}=iUe(r),i={args:r,fetchData:{method:o,url:a},startTimestamp:no()*1e3};e||ba("fetch",{...i});const s=new Error().stack;return n.apply(bt,r).then(async c=>(e?e(c):ba("fetch",{...i,endTimestamp:no()*1e3,response:c}),c),c=>{throw ba("fetch",{...i,endTimestamp:no()*1e3,error:c}),FP(c)&&c.stack===void 0&&(c.stack=s,Sa(c,"framesToPop",1)),c})}})}async function oUe(e,t){if(e&&e.body&&e.body.getReader){const n=e.body.getReader();async function r({done:o}){if(o)return Promise.resolve();try{const a=await Promise.race([n.read(),new Promise(i=>{setTimeout(()=>{i({done:!0})},5e3)})]);await r(a)}catch{}}return n.read().then(r).then(t).catch(()=>{})}}async function aUe(e){let t;try{t=e.clone()}catch{return}await oUe(t,()=>{ba("fetch-body-resolved",{endTimestamp:no()*1e3,response:e})})}function JD(e,t){return!!e&&typeof e=="object"&&!!e[t]}function LM(e){return typeof e=="string"?e:e?JD(e,"url")?e.url:e.toString?e.toString():"":""}function iUe(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:LM(n),method:JD(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:LM(t),method:JD(t,"method")?String(t.method).toUpperCase():"GET"}}let Fv=null;function iee(e){const t="error";Ul(t,e),$l(t,sUe)}function sUe(){Fv=bt.onerror,bt.onerror=function(e,t,n,r,o){return ba("error",{column:r,error:o,line:n,msg:e,url:t}),Fv&&!Fv.__SENTRY_LOADER__?Fv.apply(this,arguments):!1},bt.onerror.__SENTRY_INSTRUMENTED__=!0}let Mv=null;function see(e){const t="unhandledrejection";Ul(t,e),$l(t,cUe)}function cUe(){Mv=bt.onunhandledrejection,bt.onunhandledrejection=function(e){return ba("unhandledrejection",e),Mv&&!Mv.__SENTRY_LOADER__?Mv.apply(this,arguments):!0},bt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function lUe(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function uUe(){return"npm"}function dUe(){return!lUe()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function UM(){return typeof window<"u"&&(!dUe()||fUe())}function fUe(){return bt.process!==void 0&&bt.process.type==="renderer"}function hUe(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let a=0;aMath.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function cee(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Cc(e){const{message:t,event_id:n}=e;if(t)return t;const r=cee(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function ZD(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],a=o[0]=o[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Cg(e,t){const n=cee(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const a={...o&&o.data,...t.data};n.mechanism.data=a}}function $M(e){if(e&&e.__sentry_captured__)return!0;try{Sa(e,"__sentry_captured__",!0)}catch{}return!1}function lee(e){return Array.isArray(e)?e:[e]}function _i(e,t=100,n=1/0){try{return ek("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function uee(e,t=3,n=100*1024){const r=_i(e,t);return yUe(r)>n?uee(e,t-1,n):r}function ek(e,t,n=1/0,r=1/0,o=hUe()){const[a,i]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;const s=mUe(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace("object ","");if(a(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return ek("",h,c-1,r,o)}catch{}const u=Array.isArray(t)?[]:{};let d=0;const f=ZZ(t);for(const h in f){if(!Object.prototype.hasOwnProperty.call(f,h))continue;if(d>=r){u[h]="[MaxProperties ~]";break}const m=f[h];u[h]=ek(h,m,c-1,r,o),d++}return i(t),u}function mUe(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(KZ(t))return"[VueViewModel]";if(RLe(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Os(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=pUe(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function pUe(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function gUe(e){return~-encodeURI(e).split(/%..|./).length}function yUe(e){return gUe(JSON.stringify(e))}var ts;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(ts||(ts={}));function Rs(e){return new fa(t=>{t(e)})}function HE(e){return new fa((t,n)=>{n(e)})}class fa{constructor(t){fa.prototype.__init.call(this),fa.prototype.__init2.call(this),fa.prototype.__init3.call(this),fa.prototype.__init4.call(this),this._state=ts.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new fa((r,o)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(i){o(i)}},a=>{if(!n)o(a);else try{r(n(a))}catch(i){o(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new fa((n,r)=>{let o,a;return this.then(i=>{a=!1,o=i,t&&t()},i=>{a=!0,o=i,t&&t()}).then(()=>{if(a){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(ts.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(ts.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===ts.PENDING){if(k6(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===ts.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===ts.RESOLVED&&n[1](this._value),this._state===ts.REJECTED&&n[2](this._value),n[0]=!0)})}}}function bUe(e){const t=[];function n(){return e===void 0||t.lengthr(s)).then(null,()=>r(s).then(null,()=>{})),s}function a(i){return new fa((s,c)=>{let l=t.length;if(!l)return s(!0);const u=setTimeout(()=>{i&&i>0&&s(!1)},i);t.forEach(d=>{Rs(d).then(()=>{--l||(clearTimeout(u),s(!0))},c)})})}return{$:t,add:o,drain:a}}function ju(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const vUe=["fatal","error","warning","log","info","debug"];function wUe(e){return e==="warn"?"warning":vUe.includes(e)?e:"log"}const tk="baggage",dee="sentry-",EUe=/^sentry-/,_Ue=8192;function fee(e){const t=xUe(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,a])=>{if(o.match(EUe)){const i=o.slice(dee.length);r[i]=a}return r},{});if(Object.keys(n).length>0)return n}function hee(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${dee}${r}`]=o),n),{});return CUe(t)}function xUe(e){if(!(!e||!gs(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=zM(n);return Object.entries(r).forEach(([o,a])=>{t[o]=a}),t},{}):zM(e)}function zM(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function CUe(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=o===0?a:`${t},${a}`;return i.length>_Ue?(Wm&&ye.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}const SUe=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function TUe(e){if(!e)return;const t=e.match(SUe);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function AUe(e,t){const n=TUe(e),r=fee(t),{traceId:o,parentSpanId:a,parentSampled:i}=n||{};return n?{traceId:o||en(),parentSpanId:a||en().substring(16),spanId:en().substring(16),sampled:i,dsc:r||{}}:{traceId:o||en(),spanId:en().substring(16)}}function $P(e=en(),t=en().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Fd(e,t=[]){return[e,t]}function DUe(e,t){const[n,r]=e;return[n,[...r,t]]}function HM(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function nk(e){return bt.__SENTRY__&&bt.__SENTRY__.encodePolyfill?bt.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function kUe(e){const[t,n]=e;let r=JSON.stringify(t);function o(a){typeof r=="string"?r=typeof a=="string"?r+a:[nk(r),a]:r.push(typeof a=="string"?nk(a):a)}for(const a of n){const[i,s]=a;if(o(` -${JSON.stringify(i)} -`),typeof s=="string"||s instanceof Uint8Array)o(s);else{let c;try{c=JSON.stringify(s)}catch{c=JSON.stringify(_i(s))}o(c)}}return typeof r=="string"?r:jUe(r)}function jUe(e){const t=e.reduce((o,a)=>o+a.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function PUe(e){return[{type:"span"},e]}function IUe(e){const t=typeof e.data=="string"?nk(e.data):e.data;return[zn({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const OUe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function qM(e){return OUe[e]}function zP(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function mee(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:_b(r)},...o&&{trace:zn({...o})}}}function RUe(e,t,n){const r=[{type:"client_report"},{timestamp:xb(),discarded_events:e}];return Fd(t?{dsn:t}:{},[r])}const NUe=60*1e3;function BUe(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?NUe:r-t}function FUe(e,t){return e[t]||e.all||0}function pee(e,t,n=Date.now()){return FUe(e,t)>n}function gee(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},a=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(a)for(const s of a.trim().split(",")){const[c,l,,,u]=s.split(":",5),d=parseInt(c,10),f=(isNaN(d)?60:d)*1e3;if(!l)o.all=r+f;else for(const h of l.split(";"))h==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(o[h]=r+f):o[h]=r+f}else i?o.all=r+BUe(i,r):t===429&&(o.all=r+60*1e3);return o}function MUe(e,t){return e??t()}function Uo(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}function qE(){return{traceId:en(),spanId:en().substring(16)}}const Lv=bt;function LUe(){const e=Lv.chrome,t=e&&e.app&&e.app.runtime,n="history"in Lv&&!!Lv.history.pushState&&!!Lv.history.replaceState;return!t&&n}const nt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Vm(){return HP(bt),bt}function HP(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ku,t[ku]=t[ku]||{}}function UUe(e){const t=no(),n={sid:en(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>zUe(n)};return e&&Lh(n,e),n}function Lh(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||no(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:en()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function $Ue(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Lh(e,n)}function zUe(e){return zn({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const rk="_sentrySpan";function Sg(e,t){t?Sa(e,rk,t):delete e[rk]}function WE(e){return e[rk]}const HUe=100;class qP{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=qE()}clone(){const t=new qP;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Sg(t,WE(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Lh(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,o]=n instanceof id?[n.getScopeData(),n.getRequestSession()]:Mh(n)?[t,t.requestSession]:[],{tags:a,extra:i,user:s,contexts:c,level:l,fingerprint:u=[],propagationContext:d}=r||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},s&&Object.keys(s).length&&(this._user=s),l&&(this._level=l),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Sg(this,void 0),this._attachments=[],this._propagationContext=qE(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:HUe;if(r<=0)return this;const o={timestamp:xb(),...t},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:WE(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:en();if(!this._client)return ye.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r&&r.event_id?r.event_id:en();if(!this._client)return ye.warn("No client configured on scope - will not capture message!"),o;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:o},this),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:en();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(ye.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const id=qP;function qUe(){return j6("defaultCurrentScope",()=>new id)}function WUe(){return j6("defaultIsolationScope",()=>new id)}class GUe{constructor(t,n){let r;t?r=t:r=new id;let o;n?o=n:o=new id,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return k6(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Uh(){const e=Vm(),t=HP(e);return t.stack=t.stack||new GUe(qUe(),WUe())}function VUe(e){return Uh().withScope(e)}function KUe(e,t){const n=Uh();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function WM(e){return Uh().withScope(()=>e(Uh().getIsolationScope()))}function YUe(){return{withIsolationScope:WM,withScope:VUe,withSetScope:KUe,withSetIsolationScope:(e,t)=>WM(t),getCurrentScope:()=>Uh().getScope(),getIsolationScope:()=>Uh().getIsolationScope()}}function Cb(e){const t=HP(e);return t.acs?t.acs:YUe()}function Xt(){const e=Vm();return Cb(e).getCurrentScope()}function Pa(){const e=Vm();return Cb(e).getIsolationScope()}function QUe(){return j6("globalScope",()=>new id)}function WP(...e){const t=Vm(),n=Cb(t);if(e.length===2){const[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function gt(){return Xt().getClient()}const XUe="_sentryMetrics";function ok(e){const t=e[XUe];if(!t)return;const n={};for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(zn(o));return n}const is="sentry.source",yee="sentry.sample_rate",sd="sentry.op",rr="sentry.origin",ak="sentry.idle_span_finish_reason",P6="sentry.measurement_unit",I6="sentry.measurement_value",JUe="sentry.profile_id",GP="sentry.exclusive_time",ZUe=0,bee=1,Vn=2;function e$e(e){if(e<400&&e>=100)return{code:bee};if(e>=400&&e<500)switch(e){case 401:return{code:Vn,message:"unauthenticated"};case 403:return{code:Vn,message:"permission_denied"};case 404:return{code:Vn,message:"not_found"};case 409:return{code:Vn,message:"already_exists"};case 413:return{code:Vn,message:"failed_precondition"};case 429:return{code:Vn,message:"resource_exhausted"};case 499:return{code:Vn,message:"cancelled"};default:return{code:Vn,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Vn,message:"unimplemented"};case 503:return{code:Vn,message:"unavailable"};case 504:return{code:Vn,message:"deadline_exceeded"};default:return{code:Vn,message:"internal_error"}}return{code:Vn,message:"unknown_error"}}function vee(e,t){e.setAttribute("http.response.status_code",t);const n=e$e(t);n.message!=="unknown_error"&&e.setStatus(n)}const wee=0,Eee=1;function t$e(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:a,status:i,origin:s}=_t(e);return zn({parent_span_id:a,span_id:t,trace_id:n,data:r,op:o,status:i,origin:s})}function n$e(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=_t(e);return zn({parent_span_id:r,span_id:t,trace_id:n})}function _ee(e){const{traceId:t,spanId:n}=e.spanContext(),r=Md(e);return $P(t,n,r)}function Pu(e){return typeof e=="number"?GM(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?GM(e.getTime()):no()}function GM(e){return e>9999999999?e/1e3:e}function _t(e){if(o$e(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(r$e(e)){const{attributes:r,startTime:o,name:a,endTime:i,parentSpanId:s,status:c}=e;return zn({span_id:t,trace_id:n,data:r,description:a,parent_span_id:s,start_timestamp:Pu(o),timestamp:Pu(i)||void 0,status:xee(c),op:r[sd],origin:r[rr],_metrics_summary:ok(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function r$e(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function o$e(e){return typeof e.getSpanJSON=="function"}function Md(e){const{traceFlags:t}=e.spanContext();return t===Eee}function xee(e){if(!(!e||e.code===ZUe))return e.code===bee?"ok":e.message||"unknown_error"}const Iu="_sentryChildSpans",ik="_sentryRootSpan";function Cee(e,t){const n=e[ik]||e;Sa(t,ik,n),e[Iu]?e[Iu].add(t):Sa(e,Iu,new Set([t]))}function a$e(e,t){e[Iu]&&e[Iu].delete(t)}function N1(e){const t=new Set;function n(r){if(!t.has(r)&&Md(r)){t.add(r);const o=r[Iu]?Array.from(r[Iu]):[];for(const a of o)n(a)}}return n(e),Array.from(t)}function gr(e){return e[ik]||e}function Ur(){const e=Vm(),t=Cb(e);return t.getActiveSpan?t.getActiveSpan():WE(Xt())}let VM=!1;function i$e(){VM||(VM=!0,iee(sk),see(sk))}function sk(){const e=Ur(),t=e&&gr(e);if(t){const n="internal_error";nt&&ye.log(`[Tracing] Root span: ${n} -> Global error occured`),t.setStatus({code:Vn,message:n})}}sk.tag="sentry_tracingErrorCallback";const See="_sentryScope",Tee="_sentryIsolationScope";function s$e(e,t,n){e&&(Sa(e,Tee,n),Sa(e,See,t))}function KM(e){return{scope:e[See],isolationScope:e[Tee]}}function yl(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=gt(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class Km{constructor(t={}){this._traceId=t.traceId||en(),this._spanId=t.spanId||en().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:wee}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}const VP="production",Aee="_frozenDsc";function YM(e,t){Sa(e,Aee,t)}function O6(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=zn({environment:n.environment||VP,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Ld(e){const t=gt();if(!t)return{};const n=O6(_t(e).trace_id||"",t),r=gr(e),o=r[Aee];if(o)return o;const a=r.spanContext().traceState,i=a&&a.get("sentry.dsc"),s=i&&fee(i);if(s)return s;const c=_t(r),l=c.data||{},u=l[yee];u!=null&&(n.sample_rate=`${u}`);const d=l[is],f=c.description;return d!=="url"&&f&&(n.transaction=f),n.sampled=String(Md(r)),t.emit("createDsc",n,r),n}function c$e(e){if(!nt)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=_t(e),{spanId:o}=e.spanContext(),a=Md(e),i=gr(e),s=i===e,c=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&l.push(`parent ID: ${r}`),!s){const{op:u,description:d}=_t(i);l.push(`root ID: ${i.spanContext().spanId}`),u&&l.push(`root op: ${u}`),d&&l.push(`root description: ${d}`)}ye.log(`${c} - ${l.join(` - `)}`)}function l$e(e){if(!nt)return;const{description:t="< unknown name >",op:n="< unknown op >"}=_t(e),{spanId:r}=e.spanContext(),a=gr(e)===e,i=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${t}" with ID ${r}`;ye.log(i)}function GE(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){nt&&ye.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function u$e(e,t){if(!yl(e))return[!1];let n;typeof e.tracesSampler=="function"?n=e.tracesSampler(t):t.parentSampled!==void 0?n=t.parentSampled:typeof e.tracesSampleRate<"u"?n=e.tracesSampleRate:n=1;const r=GE(n);return r===void 0?(nt&&ye.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()s(_t(u)):u=>_t(u),l=[];for(const u of e){const d=c(u);d&&l.push(PUe(d))}return Fd(i,l)}function p$e(e,t,n,r=Ur()){const o=r&&gr(r);o&&o.addEvent(e,{[I6]:t,[P6]:n})}function QM(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},o=r[P6],a=r[I6];typeof o=="string"&&typeof a=="number"&&(t[n.name]={value:a,unit:o})}),t}const XM=1e3;class KP{constructor(t={}){this._traceId=t.traceId||en(),this._spanId=t.spanId||en().substring(16),this._startTime=t.startTimestamp||no(),this._attributes={},this.setAttributes({[rr]:"manual",[sd]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Eee:wee}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Pu(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this}end(t){this._endTime||(this._endTime=Pu(t),l$e(this),this._onSpanEnded())}getSpanJSON(){return zn({data:this._attributes,description:this._name,op:this._attributes[sd],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:xee(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[rr],_metrics_summary:ok(this),profile_id:this._attributes[JUe],exclusive_time:this._attributes[GP],measurements:QM(this._events),is_segment:this._isStandaloneSpan&&gr(this)===this||void 0,segment_id:this._isStandaloneSpan?gr(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){nt&&ye.log("[Tracing] Adding an event to span:",t);const o=JM(n)?n:r||no(),a=JM(n)?{}:n||{},i={name:t,time:Pu(o),attributes:a};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=gt();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===gr(this)))return;if(this._isStandaloneSpan){this._sampled?y$e(m$e([this],t)):(nt&&ye.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(KM(this).scope||Xt()).captureEvent(r)}_convertSpanToTransaction(){if(!ZM(_t(this)))return;this._name||(nt&&ye.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:t,isolationScope:n}=KM(this),o=(t||Xt()).getClient()||gt();if(this._sampled!==!0){nt&&ye.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),o&&o.recordDroppedEvent("sample_rate","transaction");return}const i=N1(this).filter(d=>d!==this&&!g$e(d)).map(d=>_t(d)).filter(ZM),s=this._attributes[is],c={contexts:{trace:t$e(this)},spans:i.length>XM?i.sort((d,f)=>d.start_timestamp-f.start_timestamp).slice(0,XM):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...zn({dynamicSamplingContext:Ld(this)})},_metrics_summary:ok(this),...s&&{transaction_info:{source:s}}},l=QM(this._events);return l&&Object.keys(l).length&&(nt&&ye.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),c.measurements=l),c}}function JM(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function ZM(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function g$e(e){return e instanceof KP&&e.isStandaloneSpan()}function y$e(e){const t=gt();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}const r=t.getTransport();r&&r.send(e).then(null,o=>{nt&&ye.error("Error while sending span:",o)})}const Dee="__SENTRY_SUPPRESS_TRACING__";function zl(e){const t=jee();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=v$e(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?i=>WP(e.scope,i):o!==void 0?i=>kee(o,i):i=>i())(()=>{const i=Xt(),s=E$e(i);return e.onlyIfParent&&!s?new Km:b$e({parentSpan:s,spanArguments:n,forceTransaction:r,scope:i})})}function kee(e,t){const n=jee();return n.withActiveSpan?n.withActiveSpan(e,t):WP(r=>(Sg(r,e||void 0),t(r)))}function b$e({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!yl())return new Km;const o=Pa();let a;if(e&&!n)a=w$e(e,r,t),Cee(e,a);else if(e){const i=Ld(e),{traceId:s,spanId:c}=e.spanContext(),l=Md(e);a=eL({traceId:s,parentSpanId:c,...t},r,l),YM(a,i)}else{const{traceId:i,dsc:s,parentSpanId:c,sampled:l}={...o.getPropagationContext(),...r.getPropagationContext()};a=eL({traceId:i,parentSpanId:c,...t},r,l),s&&YM(a,s)}return c$e(a),s$e(a,r,o),a}function v$e(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Pu(e.startTime),delete r.startTime,r}return n}function jee(){const e=Vm();return Cb(e)}function eL(e,t,n){const r=gt(),o=r&&r.getOptions()||{},{name:a="",attributes:i}=e,[s,c]=t.getScopeData().sdkProcessingMetadata[Dee]?[!1]:u$e(o,{name:a,parentSampled:n,attributes:i,transactionContext:{name:a,parentSampled:n}}),l=new KP({...e,attributes:{[is]:"custom",...e.attributes},sampled:s});return c!==void 0&&l.setAttribute(yee,c),r&&r.emit("spanStart",l),l}function w$e(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[Dee]?!1:Md(e),i=a?new KP({...n,parentSpanId:r,traceId:o,sampled:a}):new Km({traceId:o});Cee(e,i);const s=gt();return s&&(s.emit("spanStart",i),n.endTimestamp&&s.emit("spanEnd",i)),i}function E$e(e){const t=WE(e);if(!t)return;const n=gt();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?gr(t):t}const B1={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},_$e="heartbeatFailed",x$e="idleTimeout",C$e="finalTimeout",S$e="externalFinish";function Pee(e,t={}){const n=new Map;let r=!1,o,a=S$e,i=!t.disableAutoFinish;const s=[],{idleTimeout:c=B1.idleTimeout,finalTimeout:l=B1.finalTimeout,childSpanTimeout:u=B1.childSpanTimeout,beforeSpanEnd:d}=t,f=gt();if(!f||!yl())return new Km;const h=Xt(),m=Ur(),p=T$e(e);p.end=new Proxy(p.end,{apply(x,E,T){d&&d(p);const[k,...D]=T,R=k||no(),F=Pu(R),B=N1(p).filter(N=>N!==p);if(!B.length)return C(F),Reflect.apply(x,E,[F,...D]);const j=B.map(N=>_t(N).timestamp).filter(N=>!!N),P=j.length?Math.max(...j):void 0,O=_t(p).start_timestamp,I=Math.min(O?O+l/1e3:1/0,Math.max(O||-1/0,Math.min(F,P||1/0)));return C(I),Reflect.apply(x,E,[I,...D])}});function b(){o&&(clearTimeout(o),o=void 0)}function v(x){b(),o=setTimeout(()=>{!r&&n.size===0&&i&&(a=x$e,p.end(x))},c)}function g(x){o=setTimeout(()=>{!r&&i&&(a=_$e,p.end(x))},u)}function w(x){b(),n.set(x,!0);const E=no();g(E+u/1e3)}function _(x){if(n.has(x)&&n.delete(x),n.size===0){const E=no();v(E+c/1e3)}}function C(x){r=!0,n.clear(),s.forEach(F=>F()),Sg(h,m);const E=_t(p),{start_timestamp:T}=E;if(!T)return;(E.data||{})[ak]||p.setAttribute(ak,a),ye.log(`[Tracing] Idle span "${E.op}" finished`);const D=N1(p).filter(F=>F!==p);let R=0;D.forEach(F=>{F.isRecording()&&(F.setStatus({code:Vn,message:"cancelled"}),F.end(x),nt&&ye.log("[Tracing] Cancelling span since span ended early",JSON.stringify(F,void 0,2)));const B=_t(F),{timestamp:j=0,start_timestamp:P=0}=B,O=P<=x,I=(l+c)/1e3,N=j-P<=I;if(nt){const M=JSON.stringify(F,void 0,2);O?N||ye.log("[Tracing] Discarding span since it finished after idle span final timeout",M):ye.log("[Tracing] Discarding span since it happened after idle span was finished",M)}(!N||!O)&&(a$e(p,F),R++)}),R>0&&p.setAttribute("sentry.idle_span_discarded_spans",R)}return s.push(f.on("spanStart",x=>{if(r||x===p||_t(x).timestamp)return;N1(p).includes(x)&&w(x.spanContext().spanId)})),s.push(f.on("spanEnd",x=>{r||_(x.spanContext().spanId)})),s.push(f.on("idleSpanEnableAutoFinish",x=>{x===p&&(i=!0,v(),n.size&&g())})),t.disableAutoFinish||v(),setTimeout(()=>{r||(p.setStatus({code:Vn,message:"deadline_exceeded"}),a=C$e,p.end())},l),p}function T$e(e){const t=zl(e);return Sg(Xt(),t),nt&&ye.log("[Tracing] Started span is an idle span"),t}function ck(e,t,n,r=0){return new fa((o,a)=>{const i=e[r];if(t===null||typeof i!="function")o(t);else{const s=i({...t},n);nt&&i.id&&s===null&&ye.log(`Event processor "${i.id}" dropped event`),k6(s)?s.then(c=>ck(e,c,n,r+1).then(o)).then(null,a):ck(e,s,n,r+1).then(o).then(null,a)}})}function A$e(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:a}=t;D$e(e,t),r&&P$e(e,r),I$e(e,n),k$e(e,o),j$e(e,a)}function tL(e,t){const{extra:n,tags:r,user:o,contexts:a,level:i,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:f,transactionName:h,span:m}=t;Hp(e,"extra",n),Hp(e,"tags",r),Hp(e,"user",o),Hp(e,"contexts",a),Hp(e,"sdkProcessingMetadata",s),i&&(e.level=i),h&&(e.transactionName=h),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function Hp(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function D$e(e,t){const{extra:n,tags:r,user:o,contexts:a,level:i,transactionName:s}=t,c=zn(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=zn(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=zn(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=zn(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),i&&(e.level=i),s&&e.type!=="transaction"&&(e.transaction=s)}function k$e(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function j$e(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function P$e(e,t){e.contexts={trace:n$e(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ld(t),...e.sdkProcessingMetadata};const n=gr(t),r=_t(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function I$e(e,t){e.fingerprint=e.fingerprint?lee(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Iee(e,t,n,r,o,a){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||en(),timestamp:t.timestamp||xb()},l=n.integrations||e.integrations.map(b=>b.name);O$e(c,e),B$e(c,l),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&R$e(c,e.stackParser);const u=M$e(r,n.captureContext);n.mechanism&&Cg(c,n.mechanism);const d=o?o.getEventProcessors():[],f=QUe().getScopeData();if(a){const b=a.getScopeData();tL(f,b)}if(u){const b=u.getScopeData();tL(f,b)}const h=[...n.attachments||[],...f.attachments];h.length&&(n.attachments=h),A$e(c,f);const m=[...d,...f.eventProcessors];return ck(m,c,n).then(b=>(b&&N$e(b),typeof i=="number"&&i>0?F$e(b,i,s):b))}function O$e(e,t){const{environment:n,release:r,dist:o,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:VP),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=ih(e.message,a));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=ih(i.value,a));const s=e.request;s&&s.url&&(s.url=ih(s.url,a))}const nL=new WeakMap;function R$e(e,t){const n=bt._sentryDebugIds;if(!n)return;let r;const o=nL.get(t);o?r=o:(r=new Map,nL.set(t,r));const a=Object.entries(n).reduce((i,[s,c])=>{let l;const u=r.get(s);u?l=u:(l=t(s),r.set(s,l));for(let d=l.length-1;d>=0;d--){const f=l[d];if(f.filename){i[f.filename]=c;break}}return i},{});try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=a[s.filename])})})}catch{}}function N$e(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function B$e(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function F$e(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:_i(o.data,t,n)}}))},...e.user&&{user:_i(e.user,t,n)},...e.contexts&&{contexts:_i(e.contexts,t,n)},...e.extra&&{extra:_i(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=_i(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:_i(o.data,t,n)}}))),r}function M$e(e,t){if(!t)return e;const n=e?e.clone():new id;return n.update(t),n}function YP(e,t){return Xt().captureException(e,void 0)}function Oee(e,t){return Xt().captureEvent(e,t)}function Ree(e,t){Pa().setContext(e,t)}function L$e(e){Pa().addEventProcessor(e)}function rL(e){const t=gt(),n=Pa(),r=Xt(),{release:o,environment:a=VP}=t&&t.getOptions()||{},{userAgent:i}=bt.navigator||{},s=UUe({release:o,environment:a,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&Lh(c,{status:"exited"}),Nee(),n.setSession(s),r.setSession(s),s}function Nee(){const e=Pa(),t=Xt(),n=t.getSession()||e.getSession();n&&$Ue(n),Bee(),e.setSession(),t.setSession()}function Bee(){const e=Pa(),t=Xt(),n=gt(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function oL(e=!1){if(e){Nee();return}Bee()}const U$e="7";function $$e(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function z$e(e){return`${$$e(e)}${e.projectId}/envelope/`}function H$e(e,t){return KLe({sentry_key:e.publicKey,sentry_version:U$e,...t&&{sentry_client:`${t.name}/${t.version}`}})}function q$e(e,t,n){return t||`${z$e(e)}?${H$e(e,n)}`}const aL=[];function W$e(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function G$e(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=lee(n(t)):r=t;const o=W$e(r),a=o.findIndex(i=>i.name==="Debug");if(a>-1){const[i]=o.splice(a,1);o.push(i)}return o}function V$e(e,t){const n={};return t.forEach(r=>{r&&Fee(e,r,n)}),n}function iL(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Fee(e,t,n){if(n[t.name]){nt&&ye.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,aL.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),aL.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,a)=>r(o,a,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((a,i)=>r(a,i,e),{id:t.name});e.addEventProcessor(o)}nt&&ye.log(`Integration installed: ${t.name}`)}const sL="Not capturing exception because it's already been captured.";class K$e{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=VLe(t.dsn):nt&&ye.warn("No DSN provided, client will not send events."),this._dsn){const n=q$e(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const o=en();if($M(t))return nt&&ye.log(sL),o;const a={event_id:o,...n};return this._process(this.eventFromException(t,a).then(i=>this._captureEvent(i,a,r))),a.event_id}captureMessage(t,n,r,o){const a={event_id:en(),...r},i=MP(t)?t:String(t),s=LP(t)?this.eventFromMessage(i,n,a):this.eventFromException(t,a);return this._process(s.then(c=>this._captureEvent(c,a,o))),a.event_id}captureEvent(t,n,r){const o=en();if(n&&n.originalException&&$M(n.originalException))return nt&&ye.log(sL),o;const a={event_id:o,...n},s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,a,s||r)),a.event_id}captureSession(t){typeof t.release!="string"?nt&&ye.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Lh(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):Rs(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Fee(this,t,this._integrations),n||iL(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=h$e(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=DUe(r,IUe(a));const o=this.sendEnvelope(r);o&&o.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=f$e(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=typeof r=="number"?r:1,a=`${t}:${n}`;nt&&ye.log(`Recording outcome: "${a}"${o>1?` (${o} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+o}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(nt&&ye.error("Error while sending event:",n),n)):(nt&&ye.error("Transport disabled"),Rs({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=V$e(this,t),iL(this,t)}_updateSessionFromEvent(t,n){let r=!1,o=!1;const a=n.exception&&n.exception.values;if(a){o=!0;for(const c of a){const l=c.mechanism;if(l&&l.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(Lh(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new fa(n=>{let r=0;const o=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=o,t&&r>=t&&(clearInterval(a),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o=Pa()){const a=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Iee(a,t,n,r,this,o).then(s=>{if(s===null)return s;const c={...o.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(s.contexts&&s.contexts.trace)&&c){const{traceId:u,spanId:d,parentSpanId:f,dsc:h}=c;s.contexts={trace:zn({trace_id:u,span_id:d,parent_span_id:f}),...s.contexts};const m=h||O6(u,this);s.sdkProcessingMetadata={dynamicSamplingContext:m,...s.sdkProcessingMetadata}}return s})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(nt){const a=o;a.logLevel==="log"?ye.log(a.message):ye.warn(a)}})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:a}=o,i=Lee(t),s=Mee(t),c=t.type||"error",l=`before send for type \`${c}\``,u=typeof a>"u"?void 0:GE(a);if(s&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",t),HE(new Ti(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=c==="replay_event"?"replay":c,h=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,h).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",d,t),new Ti("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return m;const b=Q$e(this,o,m,n);return Y$e(b,l)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",d,t),i){const g=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",g)}throw new Ti(`${l} returned \`null\`, will not send event.`,"log")}const p=r&&r.getSession();if(!i&&p&&this._updateSessionFromEvent(p,m),i){const v=m.sdkProcessingMetadata&&m.sdkProcessingMetadata.spanCountBeforeProcessing||0,g=m.spans?m.spans.length:0,w=v-g;w>0&&this.recordDroppedEvent("before_send","span",w)}const b=m.transaction_info;if(i&&b&&m.transaction!==t.transaction){const v="custom";m.transaction_info={...b,source:v}}return this.sendEvent(m,n),m}).then(null,m=>{throw m instanceof Ti?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),new Ti(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${m}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,a]=n.split(":");return{reason:o,category:a,quantity:r}})}_flushOutcomes(){nt&&ye.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){nt&&ye.log("No outcomes to send");return}if(!this._dsn){nt&&ye.log("No dsn provided, will not send outcomes");return}nt&&ye.log("Sending outcomes:",t);const n=RUe(t,this._options.tunnel&&_b(this._dsn));this.sendEnvelope(n)}}function Y$e(e,t){const n=`${t} must return \`null\` or a valid event.`;if(k6(e))return e.then(r=>{if(!Mh(r)&&r!==null)throw new Ti(n);return r},r=>{throw new Ti(`${t} rejected with ${r}`)});if(!Mh(e)&&e!==null)throw new Ti(n);return e}function Q$e(e,t,n,r){const{beforeSend:o,beforeSendTransaction:a,beforeSendSpan:i}=t;if(Mee(n)&&o)return o(n,r);if(Lee(n)){if(n.spans&&i){const s=[];for(const c of n.spans){const l=i(c);l?s.push(l):e.recordDroppedEvent("before_send","span")}n.spans=s}if(a){if(n.spans){const s=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:s}}return a(n,r)}}return n}function Mee(e){return e.type===void 0}function Lee(e){return e.type==="transaction"}function X$e(e,t){t.debug===!0&&(nt?ye.enable():Gm(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Xt().update(t.initialScope);const r=new e(t);return J$e(r),r.init(),r}function J$e(e){Xt().setClient(e)}const Z$e=64;function eze(e,t,n=bUe(e.bufferSize||Z$e)){let r={};const o=i=>n.drain(i);function a(i){const s=[];if(HM(i,(d,f)=>{const h=qM(f);if(pee(r,h)){const m=cL(d,f);e.recordDroppedEvent("ratelimit_backoff",h,m)}else s.push(d)}),s.length===0)return Rs({});const c=Fd(i[0],s),l=d=>{HM(c,(f,h)=>{const m=cL(f,h);e.recordDroppedEvent(d,qM(h),m)})},u=()=>t({body:kUe(c)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&nt&&ye.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=gee(r,d),d),d=>{throw l("network_error"),d});return n.add(u).then(d=>d,d=>{if(d instanceof Ti)return nt&&ye.error("Skipped sending event because buffer is full."),l("queue_overflow"),Rs({});throw d})}return{send:a,flush:o}}function cL(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function tze(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return rze(e,n)||nze(e,r)}function nze(e,t){return t?lL(e)===lL(t):!1}function rze(e,t){return t?e.includes(t.host):!1}function lL(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Uee(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:ku})),version:ku}),e._metadata=o}const oze=100;function bl(e,t){const n=gt(),r=Pa();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=oze}=n.getOptions();if(a<=0)return;const s={timestamp:xb(),...e},c=o?Gm(()=>o(s,t)):s;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,a))}let uL;const aze="FunctionToString",dL=new WeakMap,ize=()=>({name:aze,setupOnce(){uL=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=UP(this),n=dL.has(gt())&&t!==void 0?t:this;return uL.apply(n,e)}}catch{}},setup(e){dL.set(e,!0)}}),sze=ize,cze=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],lze="InboundFilters",uze=(e={})=>({name:lze,processEvent(t,n,r){const o=r.getOptions(),a=fze(e,o);return hze(t,a)?null:t}}),dze=uze;function fze(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:cze],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function hze(e,t){return t.ignoreInternal&&vze(e)?(nt&&ye.warn(`Event dropped due to being internal Sentry Error. -Event: ${Cc(e)}`),!0):mze(e,t.ignoreErrors)?(nt&&ye.warn(`Event dropped due to being matched by \`ignoreErrors\` option. -Event: ${Cc(e)}`),!0):Eze(e)?(nt&&ye.warn(`Event dropped due to not having an error message, error type or stacktrace. -Event: ${Cc(e)}`),!0):pze(e,t.ignoreTransactions)?(nt&&ye.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${Cc(e)}`),!0):gze(e,t.denyUrls)?(nt&&ye.warn(`Event dropped due to being matched by \`denyUrls\` option. -Event: ${Cc(e)}. -Url: ${VE(e)}`),!0):yze(e,t.allowUrls)?!1:(nt&&ye.warn(`Event dropped due to not being matched by \`allowUrls\` option. -Event: ${Cc(e)}. -Url: ${VE(e)}`),!0)}function mze(e,t){return e.type||!t||!t.length?!1:bze(e).some(n=>Qc(n,t))}function pze(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Qc(n,t):!1}function gze(e,t){if(!t||!t.length)return!1;const n=VE(e);return n?Qc(n,t):!1}function yze(e,t){if(!t||!t.length)return!0;const n=VE(e);return n?Qc(n,t):!0}function bze(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function vze(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function wze(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function VE(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?wze(t):null}catch{return nt&&ye.error(`Cannot extract url for event ${Cc(e)}`),null}}function Eze(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}const _ze="Dedupe",xze=()=>{let e;return{name:_ze,processEvent(t){if(t.type)return t;try{if(Sze(t,e))return nt&&ye.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Cze=xze;function Sze(e,t){return t?!!(Tze(e,t)||Aze(e,t)):!1}function Tze(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!zee(e,t)||!$ee(e,t))}function Aze(e,t){const n=fL(t),r=fL(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!zee(e,t)||!$ee(e,t))}function $ee(e,t){let n=FM(e),r=FM(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o0?m.join(","):void 0}}else return{"sentry-trace":u,baggage:d}}function jze(e){try{return new URL(e).href}catch{return}}function Pze(e,t){if(t.response){vee(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Vn,message:"internal_error"});e.end()}const et=bt;let lk=0;function Hee(){return lk>0}function Ize(){lk++,setTimeout(()=>{lk--})}function $h(e,t={},n){if(typeof e!="function")return e;try{const o=e.__sentry_wrapped__;if(o)return o;if(UP(e))return e}catch{return e}const r=function(){const o=Array.prototype.slice.call(arguments);try{const a=o.map(i=>$h(i,t));return e.apply(this,a)}catch(a){throw Ize(),WP(i=>{i.addEventProcessor(s=>(t.mechanism&&(ZD(s,void 0),Cg(s,t.mechanism)),s.extra={...s.extra,arguments:o},s)),YP(a)}),a}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}JZ(r,e),Sa(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const ii=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function QP(e,t){const n=XP(e,t),r={type:t&&t.name,value:Fze(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Oze(e,t,n,r){const o=gt(),a=o&&o.getOptions().normalizeDepth,i=zze(t),s={__serialized__:uee(t,a)};if(i)return{exception:{values:[QP(e,i)]},extra:s};const c={exception:{values:[{type:D6(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Uze(t,{isUnhandledRejection:r})}]},extra:s};if(n){const l=XP(e,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function ST(e,t){return{exception:{values:[QP(e,t)]}}}function XP(e,t){const n=t.stacktrace||t.stack||"",r=Nze(t),o=Bze(t);try{return e(n,r,o)}catch{}return[]}const Rze=/Minified React error #\d+;/i;function Nze(e){return e&&Rze.test(e.message)?1:0}function Bze(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Fze(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Mze(e,t,n,r){const o=n&&n.syntheticException||void 0,a=JP(e,t,o,r);return Cg(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),Rs(a)}function Lze(e,t,n="info",r,o){const a=r&&r.syntheticException||void 0,i=uk(e,t,a,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),Rs(i)}function JP(e,t,n,r,o){let a;if(VZ(t)&&t.error)return ST(e,t.error);if(kM(t)||PLe(t)){const i=t;if("stack"in t)a=ST(e,t);else{const s=i.name||(kM(i)?"DOMError":"DOMException"),c=i.message?`${s}: ${i.message}`:s;a=uk(e,c,n,r),ZD(a,c)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return FP(t)?ST(e,t):Mh(t)||D6(t)?(a=Oze(e,t,n,o),Cg(a,{synthetic:!0}),a):(a=uk(e,t,n,r),ZD(a,`${t}`),Cg(a,{synthetic:!0}),a)}function uk(e,t,n,r){const o={};if(r&&n){const a=XP(e,n);a.length&&(o.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(MP(t)){const{__sentry_template_string__:a,__sentry_template_values__:i}=t;return o.logentry={message:a,params:i},o}return o.message=t,o}function Uze(e,{isUnhandledRejection:t}){const n=YLe(e),r=t?"promise rejection":"exception";return VZ(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:D6(e)?`Event \`${$ze(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function $ze(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function zze(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function Hze(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:_b(r)}},a=qze(e);return Fd(o,[a])}function qze(e){return[{type:"user_report"},e]}class Wze extends K$e{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=et.SENTRY_SDK_SOURCE||uUe();Uee(n,"browser",["browser"],r),super(n),n.sendClientReports&&et.document&&et.document.addEventListener("visibilitychange",()=>{et.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Mze(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Lze(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){ii&&ye.warn("SDK not enabled, will not capture user feedback.");return}const n=Hze(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const Go=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Gze=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Ym=(e,t,n,r)=>{let o,a;return i=>{t.value>=0&&(i||r)&&(a=t.value-(o||0),(a||o===void 0)&&(o=t.value,t.delta=a,t.rating=Gze(t.value,n),e(t)))}},Ke=bt,Vze=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Sb=()=>Ke.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],R6=()=>{const e=Sb();return e&&e.activationStart||0},Qm=(e,t)=>{const n=Sb();let r="navigate";return n&&(Ke.document&&Ke.document.prerendering||R6()>0?r="prerender":Ke.document&&Ke.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Vze(),navigationType:r}},Ud=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Tb=e=>{const t=n=>{(n.type==="pagehide"||Ke.document&&Ke.document.visibilityState==="hidden")&&e(n)};Ke.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ZP=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};let Tg=-1;const Kze=()=>{Tg=Ke.document.visibilityState==="hidden"&&!Ke.document.prerendering?0:1/0},KE=e=>{Ke.document.visibilityState==="hidden"&&Tg>-1&&(Tg=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("visibilitychange",KE,!0),removeEventListener("prerenderingchange",KE,!0))},Yze=()=>{addEventListener("visibilitychange",KE,!0),addEventListener("prerenderingchange",KE,!0)},N6=()=>(Ke.document&&Tg<0&&(Kze(),Yze()),{get firstHiddenTime(){return Tg}}),Ab=e=>{Ke.document&&Ke.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Qze=[1800,3e3],Xze=(e,t={})=>{Ab(()=>{const n=N6(),r=Qm("FCP");let o;const i=Ud("paint",s=>{s.forEach(c=>{c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime{Xze(ZP(()=>{const n=Qm("CLS",0);let r,o=0,a=[];const i=c=>{c.forEach(l=>{if(!l.hadRecentInput){const u=a[0],d=a[a.length-1];o&&u&&d&&l.startTime-d.startTime<1e3&&l.startTime-u.startTime<5e3?(o+=l.value,a.push(l)):(o=l.value,a=[l])}}),o>n.value&&(n.value=o,n.entries=a,r())},s=Ud("layout-shift",i);s&&(r=Ym(e,n,Jze,t.reportAllChanges),Tb(()=>{i(s.takeRecords()),r(!0)}),setTimeout(r,0))}))},eHe=[100,300],tHe=(e,t={})=>{Ab(()=>{const n=N6(),r=Qm("FID");let o;const a=c=>{c.startTime{c.forEach(a)},s=Ud("first-input",i);o=Ym(e,r,eHe,t.reportAllChanges),s&&Tb(ZP(()=>{i(s.takeRecords()),s.disconnect()}))})};let qee=0,TT=1/0,Uv=0;const nHe=e=>{e.forEach(t=>{t.interactionId&&(TT=Math.min(TT,t.interactionId),Uv=Math.max(Uv,t.interactionId),qee=Uv?(Uv-TT)/7+1:0)})};let dk;const rHe=()=>dk?qee:performance.interactionCount||0,oHe=()=>{"interactionCount"in performance||dk||(dk=Ud("event",nHe,{type:"event",buffered:!0,durationThreshold:0}))},aHe=[200,500],iHe=0,Wee=()=>rHe()-iHe,hL=10,rs=[],AT={},mL=e=>{const t=rs[rs.length-1],n=AT[e.interactionId];if(n||rs.lengtht.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};AT[r.id]=r,rs.push(r)}rs.sort((r,o)=>o.latency-r.latency),rs.splice(hL).forEach(r=>{delete AT[r.id]})}},sHe=()=>{const e=Math.min(rs.length-1,Math.floor(Wee()/50));return rs[e]},cHe=(e,t={})=>{Ab(()=>{oHe();const n=Qm("INP");let r;const o=i=>{i.forEach(c=>{c.interactionId&&mL(c),c.entryType==="first-input"&&!rs.some(u=>u.entries.some(d=>c.duration===d.duration&&c.startTime===d.startTime))&&mL(c)});const s=sHe();s&&s.latency!==n.value&&(n.value=s.latency,n.entries=s.entries,r())},a=Ud("event",o,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:40});r=Ym(e,n,aHe,t.reportAllChanges),a&&("PerformanceEventTiming"in Ke&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),Tb(()=>{o(a.takeRecords()),n.value<0&&Wee()>0&&(n.value=0,n.entries=[]),r(!0)}))})},lHe=[2500,4e3],pL={},uHe=(e,t={})=>{Ab(()=>{const n=N6(),r=Qm("LCP");let o;const a=s=>{const c=s[s.length-1];c&&c.startTime{pL[r.id]||(a(i.takeRecords()),i.disconnect(),pL[r.id]=!0,o(!0))});["keydown","click"].forEach(c=>{Ke.document&&addEventListener(c,()=>setTimeout(s,0),!0)}),Tb(s)}})},dHe=[800,1800],fk=e=>{Ke.document&&Ke.document.prerendering?Ab(()=>fk(e)):Ke.document&&Ke.document.readyState!=="complete"?addEventListener("load",()=>fk(e),!0):setTimeout(e,0)},fHe=(e,t={})=>{const n=Qm("TTFB"),r=Ym(e,n,dHe,t.reportAllChanges);fk(()=>{const o=Sb();if(o){const a=o.responseStart;if(a<=0||a>performance.now())return;n.value=Math.max(a-R6(),0),n.entries=[o],r(!0)}})},S0={},YE={};let Gee,Vee,Kee,Yee,Qee;function e7(e,t=!1){return Db("cls",e,mHe,Gee,t)}function Xee(e,t=!1){return Db("lcp",e,gHe,Kee,t)}function Jee(e){return Db("fid",e,pHe,Vee)}function hHe(e){return Db("ttfb",e,yHe,Yee)}function Zee(e){return Db("inp",e,bHe,Qee)}function zh(e,t){return ete(e,t),YE[e]||(vHe(e),YE[e]=!0),tte(e,t)}function Xm(e,t){const n=S0[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(o){Go&&ye.error(`Error while triggering instrumentation handler. -Type: ${e} -Name: ${Os(r)} -Error:`,o)}}function mHe(){return Zze(e=>{Xm("cls",{metric:e}),Gee=e},{reportAllChanges:!0})}function pHe(){return tHe(e=>{Xm("fid",{metric:e}),Vee=e})}function gHe(){return uHe(e=>{Xm("lcp",{metric:e}),Kee=e},{reportAllChanges:!0})}function yHe(){return fHe(e=>{Xm("ttfb",{metric:e}),Yee=e})}function bHe(){return cHe(e=>{Xm("inp",{metric:e}),Qee=e})}function Db(e,t,n,r,o=!1){ete(e,t);let a;return YE[e]||(a=n(),YE[e]=!0),r&&t({metric:r}),tte(e,t,o?a:void 0)}function vHe(e){const t={};e==="event"&&(t.durationThreshold=0),Ud(e,n=>{Xm(e,{entries:n})},t)}function ete(e,t){S0[e]=S0[e]||[],S0[e].push(t)}function tte(e,t,n){return()=>{n&&n();const r=S0[e];if(!r)return;const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function wHe(e){return"duration"in e}function DT(e){return typeof e=="number"&&isFinite(e)}function Hh(e,t,n,{...r}){const o=_t(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),kee(e,()=>{const a=zl({startTime:t,...r});return a&&a.end(n),a})}function nte(e){const t=gt();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:a}=e,{release:i,environment:s}=t.getOptions(),c=t.getIntegrationByName("Replay"),l=c&&c.getReplayId(),u=Xt(),d=u.getUser(),f=d!==void 0?d.email||d.id||d.ip_address:void 0;let h;try{h=u.getScopeData().contexts.profile.profile_id}catch{}const m={release:i,environment:s,user:f||void 0,profile_id:h||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":Ke.navigator&&Ke.navigator.userAgent,...o};return zl({name:n,attributes:m,startTime:a,experimental:{standalone:!0}})}function t7(){return Ke&&Ke.addEventListener&&Ke.performance}function Cn(e){return e/1e3}function EHe(){let e=0,t,n;if(!xHe())return;let r=!1;function o(){r||(r=!0,n&&_He(e,t,n),a())}const a=e7(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(e=i.value,t=s)},!0);Tb(()=>{o()}),setTimeout(()=>{const i=gt(),s=Uo([i,"optionalAccess",d=>d.on,"call",d=>d("startNavigationSpan",()=>{o(),s&&s()})]),c=Ur(),l=c&&gr(c),u=l&&_t(l);u&&u.op==="pageload"&&(n=l.spanContext().spanId)},0)}function _He(e,t,n){Go&&ye.log(`Sending CLS span (${e})`);const r=Cn((io||0)+(Uo([t,"optionalAccess",c=>c.startTime])||0)),o=Xt().getScopeData().transactionName,a=t?Is(Uo([t,"access",c=>c.sources,"access",c=>c[0],"optionalAccess",c=>c.node])):"Layout shift",i=zn({[rr]:"auto.http.browser.cls",[sd]:"ui.webvital.cls",[GP]:Uo([t,"optionalAccess",c=>c.duration])||0,"sentry.pageload.span_id":n}),s=nte({name:a,transaction:o,attributes:i,startTime:r});Uo([s,"optionalAccess",c=>c.addEvent,"call",c=>c("cls",{[P6]:"",[I6]:e})]),Uo([s,"optionalAccess",c=>c.end,"call",c=>c(r)])}function xHe(){try{return Uo([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch{return!1}}const CHe=2147483647;let gL=0,cr={},Ei,T0;function SHe({recordClsStandaloneSpans:e}){const t=t7();if(t&&io){t.mark&&Ke.performance.mark("sentry-tracing-init");const n=PHe(),r=jHe(),o=IHe(),a=e?EHe():kHe();return()=>{n(),r(),o(),a&&a()}}return()=>{}}function THe(){zh("longtask",({entries:e})=>{if(Ur())for(const t of e){const n=Cn(io+t.startTime),r=Cn(t.duration),o=zl({name:"Main UI thread blocked",op:"ui.long-task",startTime:n,attributes:{[rr]:"auto.ui.browser.metrics"}});o&&o.end(n+r)}})}function AHe(){new PerformanceObserver(t=>{if(Ur())for(const n of t.getEntries()){if(!n.scripts[0])continue;const r=Cn(io+n.startTime),o=Cn(n.duration),a={[rr]:"auto.ui.browser.metrics"},i=n.scripts[0],{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=i;a["browser.script.invoker"]=s,a["browser.script.invoker_type"]=c,l&&(a["code.filepath"]=l),u&&(a["code.function"]=u),d!==-1&&(a["browser.script.source_char_position"]=d);const f=zl({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:r,attributes:a});f&&f.end(r+o)}}).observe({type:"long-animation-frame",buffered:!0})}function DHe(){zh("event",({entries:e})=>{if(Ur()){for(const t of e)if(t.name==="click"){const n=Cn(io+t.startTime),r=Cn(t.duration),o={name:Is(t.target),op:`ui.interaction.${t.name}`,startTime:n,attributes:{[rr]:"auto.ui.browser.metrics"}},a=QZ(t.target);a&&(o.attributes["ui.component_name"]=a);const i=zl(o);i&&i.end(n+r)}}})}function kHe(){return e7(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Go&&ye.log(`[Measurements] Adding CLS ${e.value}`),cr.cls={value:e.value,unit:""},T0=t)},!0)}function jHe(){return Xee(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Go&&ye.log("[Measurements] Adding LCP"),cr.lcp={value:e.value,unit:"millisecond"},Ei=t)},!0)}function PHe(){return Jee(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Cn(io),r=Cn(t.startTime);Go&&ye.log("[Measurements] Adding FID"),cr.fid={value:e.value,unit:"millisecond"},cr["mark.fid"]={value:n+r,unit:"second"}})}function IHe(){return hHe(({metric:e})=>{e.entries[e.entries.length-1]&&(Go&&ye.log("[Measurements] Adding TTFB"),cr.ttfb={value:e.value,unit:"millisecond"})})}function OHe(e,t){const n=t7();if(!n||!Ke.performance.getEntries||!io)return;Go&&ye.log("[Tracing] Adding & adjusting spans using Performance API");const r=Cn(io),o=n.getEntries(),{op:a,start_timestamp:i}=_t(e);if(o.slice(gL).forEach(s=>{const c=Cn(s.startTime),l=Cn(Math.max(0,s.duration));if(!(a==="navigation"&&i&&r+c{p$e(c,l.value,l.unit)}),e.setAttribute("performance.timeOrigin",r),LHe(e)}Ei=void 0,T0=void 0,cr={}}function RHe(e,t,n,r,o){const a=Sb(),i=Cn(a?a.requestStart:0),s=o+Math.max(n,i),c=o+n,l=c+r,u={[rr]:"auto.resource.browser.metrics"};return s!==c&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=s),Hh(e,s,l,{name:t.name,op:t.entryType,attributes:u}),s}function NHe(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{$v(e,t,r,n)}),$v(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),$v(e,t,"fetch",n,"cache","domainLookupStart"),$v(e,t,"domainLookup",n,"DNS"),BHe(e,t,n)}function $v(e,t,n,r,o,a){const i=a?t[a]:t[`${n}End`],s=t[`${n}Start`];!s||!i||Hh(e,r+Cn(s),r+Cn(i),{op:"browser",name:o||n,attributes:{[rr]:"auto.ui.browser.metrics"}})}function BHe(e,t,n){const r=n+Cn(t.requestStart),o=n+Cn(t.responseEnd),a=n+Cn(t.responseStart);t.responseEnd&&(Hh(e,r,o,{op:"browser",name:"request",attributes:{[rr]:"auto.ui.browser.metrics"}}),Hh(e,a,o,{op:"browser",name:"response",attributes:{[rr]:"auto.ui.browser.metrics"}}))}function FHe(e,t,n,r,o,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const i=ju(n),s={[rr]:"auto.resource.browser.metrics"};kT(s,t,"transferSize","http.response_transfer_size"),kT(s,t,"encodedBodySize","http.response_content_length"),kT(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus),i.protocol&&(s["url.scheme"]=i.protocol.split(":").pop()),i.host&&(s["server.address"]=i.host),s["url.same_origin"]=n.includes(Ke.location.origin);const c=a+r,l=c+o;Hh(e,c,l,{name:n.replace(Ke.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:s})}function MHe(e){const t=Ke.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),DT(n.rtt)&&(cr["connection.rtt"]={value:n.rtt,unit:"millisecond"})),DT(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),DT(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function LHe(e){Ei&&(Go&&ye.log("[Measurements] Adding LCP Data"),Ei.element&&e.setAttribute("lcp.element",Is(Ei.element)),Ei.id&&e.setAttribute("lcp.id",Ei.id),Ei.url&&e.setAttribute("lcp.url",Ei.url.trim().slice(0,200)),e.setAttribute("lcp.size",Ei.size)),T0&&T0.sources&&(Go&&ye.log("[Measurements] Adding CLS Data"),T0.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,Is(t.node))))}function kT(e,t,n,r){const o=t[n];o!=null&&o{const r=Ke[n]&&Ke[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(go(r,"addEventListener",function(o){return function(a,i,s){if(a==="click"||a=="keypress")try{const c=this,l=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},u=l[a]=l[a]||{refCount:0};if(!u.handler){const d=bL(e);u.handler=d,o.call(this,a,d,s)}u.refCount++}catch{}return o.call(this,a,i,s)}}),go(r,"removeEventListener",function(o){return function(a,i,s){if(a==="click"||a=="keypress")try{const c=this,l=c.__sentry_instrumentation_handlers__||{},u=l[a];u&&(u.refCount--,u.refCount<=0&&(o.call(this,a,u.handler,s),u.handler=void 0,delete l[a]),Object.keys(l).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,a,i,s)}}))})}function HHe(e){if(e.type!==hk)return!1;try{if(!e.target||e.target._sentryId!==mk)return!1}catch{}return!0}function qHe(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function bL(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=WHe(n);if(qHe(n.type,r))return;Sa(n,"_sentryCaptured",!0),r&&!r._sentryId&&Sa(r,"_sentryId",en());const o=n.type==="keypress"?"input":n.type;HHe(n)||(e({event:n,name:o,global:t}),hk=n.type,mk=r?r._sentryId:void 0),clearTimeout(yL),yL=Ke.setTimeout(()=>{mk=void 0,hk=void 0},$He)}}function WHe(e){try{return e.target}catch{return null}}let zv;function B6(e){const t="history";Ul(t,e),$l(t,GHe)}function GHe(){if(!LUe())return;const e=Ke.onpopstate;Ke.onpopstate=function(...n){const r=Ke.location.href,o=zv;if(zv=r,ba("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const o=r.length>2?r[2]:void 0;if(o){const a=zv,i=String(o);zv=i,ba("history",{from:a,to:i})}return n.apply(this,r)}}go(Ke.history,"pushState",t),go(Ke.history,"replaceState",t)}const F1={};function ote(e){const t=F1[e];if(t)return t;let n=Ke[e];if(XD(n))return F1[e]=n.bind(Ke);const r=Ke.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const a=o.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(o)}catch(o){Go&&ye.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(F1[e]=n.bind(Ke))}function vL(e){F1[e]=void 0}function qh(...e){return ote("setTimeout")(...e)}const Eu="__sentry_xhr_v3__";function ate(e){const t="xhr";Ul(t,e),$l(t,VHe)}function VHe(){if(!Ke.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const o=no()*1e3,a=gs(r[0])?r[0].toUpperCase():void 0,i=KHe(r[1]);if(!a||!i)return t.apply(n,r);n[Eu]={method:a,url:i,request_headers:{}},a==="POST"&&i.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const s=()=>{const c=n[Eu];if(c&&n.readyState===4){try{c.status_code=n.status}catch{}const l={endTimestamp:no()*1e3,startTimestamp:o,xhr:n};ba("xhr",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(c,l,u){return s(),c.apply(l,u)}}):n.addEventListener("readystatechange",s),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(c,l,u){const[d,f]=u,h=l[Eu];return h&&gs(d)&&gs(f)&&(h.request_headers[d.toLowerCase()]=f),c.apply(l,u)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const o=n[Eu];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const a={startTimestamp:no()*1e3,xhr:n};return ba("xhr",a),t.apply(n,r)}})}function KHe(e){if(gs(e))return e;try{return e.toString()}catch{}}const jT=[],M1=new Map;function YHe(){if(t7()&&io){const t=QHe();return()=>{t()}}return()=>{}}const wL={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function QHe(){return Zee(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(m=>m.duration===e.value&&wL[m.name]);if(!t)return;const{interactionId:n}=t,r=wL[t.name],o=Cn(io+t.startTime),a=Cn(e.value),i=Ur(),s=i?gr(i):void 0,l=(n!=null?M1.get(n):void 0)||s,u=l?_t(l).description:Xt().getScopeData().transactionName,d=Is(t.target),f=zn({[rr]:"auto.http.browser.inp",[sd]:`ui.interaction.${r}`,[GP]:t.duration}),h=nte({name:d,transaction:u,attributes:f,startTime:o});Uo([h,"optionalAccess",m=>m.addEvent,"call",m=>m("inp",{[P6]:"millisecond",[I6]:e.value})]),Uo([h,"optionalAccess",m=>m.end,"call",m=>m(o+a)])})}function XHe(e){const t=({entries:n})=>{const r=Ur(),o=r&&gr(r);n.forEach(a=>{if(!wHe(a)||!o)return;const i=a.interactionId;if(i!=null&&!M1.has(i)){if(jT.length>10){const s=jT.shift();M1.delete(s)}jT.push(i),M1.set(i,o)}})};zh("event",t),zh("first-input",t)}function JHe(e,t=ote("fetch")){let n=0,r=0;function o(a){const i=a.body.length;n+=i,r++;const s={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return vL("fetch"),HE("No fetch implementation available");try{return t(e.url,s).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return vL("fetch"),n-=i,r--,HE(c)}}return eze(e,o)}const ZHe=30,eqe=50;function pk(e,t,n,r){const o={filename:e,function:t===""?ad:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const tqe=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,nqe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rqe=/\((\S*)(?::(\d+))(?::(\d+))\)/,oqe=e=>{const t=tqe.exec(e);if(t){const[,r,o,a]=t;return pk(r,ad,+o,+a)}const n=nqe.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=rqe.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[o,a]=ite(n[1]||ad,n[2]);return pk(a,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},aqe=[ZHe,oqe],iqe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,sqe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,cqe=e=>{const t=iqe.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=sqe.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],o=t[1]||ad;return[o,r]=ite(o,r),pk(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},lqe=[eqe,cqe],uqe=[aqe,lqe],dqe=tee(...uqe),ite=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:ad,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Hv=1024,fqe="Breadcrumbs",hqe=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:fqe,setup(n){t.console&&ZLe(yqe(n)),t.dom&&rte(gqe(n,t.dom)),t.xhr&&ate(bqe(n)),t.fetch&&oee(vqe(n)),t.history&&B6(wqe(n)),t.sentry&&n.on("beforeSendEvent",pqe(n))}}},mqe=hqe;function pqe(e){return function(n){gt()===e&&bl({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Cc(n)},{event:n})}}function gqe(e,t){return function(r){if(gt()!==e)return;let o,a,i=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>Hv&&(ii&&ye.warn(`\`dom.maxStringLength\` cannot exceed ${Hv}, but a value of ${s} was configured. Sentry will use ${Hv} instead.`),s=Hv),typeof i=="string"&&(i=[i]);try{const l=r.event,u=Eqe(l)?l.target:l;o=Is(u,{keyAttrs:i,maxStringLength:s}),a=QZ(u)}catch{o=""}if(o.length===0)return;const c={category:`ui.${r.name}`,message:o};a&&(c.data={"ui.component_name":a}),bl(c,{event:r.event,name:r.name,global:r.global})}}function yqe(e){return function(n){if(gt()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:wUe(n.level),message:jM(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${jM(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;bl(r,{input:n.args,level:n.level})}}function bqe(e){return function(n){if(gt()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,a=n.xhr[Eu];if(!r||!o||!a)return;const{method:i,url:s,status_code:c,body:l}=a,u={method:i,url:s,status_code:c},d={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:o};bl({category:"xhr",data:u,type:"http"},d)}}function vqe(e){return function(n){if(gt()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};bl({category:"fetch",data:a,level:"error",type:"http"},i)}else{const a=n.response,i={...n.fetchData,status_code:a&&a.status},s={input:n.args,response:a,startTimestamp:r,endTimestamp:o};bl({category:"fetch",data:i,type:"http"},s)}}}function wqe(e){return function(n){if(gt()!==e)return;let r=n.from,o=n.to;const a=ju(et.location.href);let i=r?ju(r):void 0;const s=ju(o);(!i||!i.path)&&(i=a),a.protocol===s.protocol&&a.host===s.host&&(o=s.relative),a.protocol===i.protocol&&a.host===i.host&&(r=i.relative),bl({category:"navigation",data:{from:r,to:o}})}}function Eqe(e){return!!e&&!!e.target}const _qe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],xqe="BrowserApiErrors",Cqe=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:xqe,setupOnce(){t.setTimeout&&go(et,"setTimeout",EL),t.setInterval&&go(et,"setInterval",EL),t.requestAnimationFrame&&go(et,"requestAnimationFrame",Tqe),t.XMLHttpRequest&&"XMLHttpRequest"in et&&go(XMLHttpRequest.prototype,"send",Aqe);const n=t.eventTarget;n&&(Array.isArray(n)?n:_qe).forEach(Dqe)}}},Sqe=Cqe;function EL(e){return function(...t){const n=t[0];return t[0]=$h(n,{mechanism:{data:{function:Os(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Tqe(e){return function(t){return e.apply(this,[$h(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Os(e)},handled:!1,type:"instrument"}})])}}function Aqe(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&go(n,o,function(a){const i={mechanism:{data:{function:o,handler:Os(a)},handled:!1,type:"instrument"}},s=UP(a);return s&&(i.mechanism.data.handler=Os(s)),$h(a,i)})}),e.apply(this,t)}}function Dqe(e){const t=et,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(go(n,"addEventListener",function(r){return function(o,a,i){try{typeof a.handleEvent=="function"&&(a.handleEvent=$h(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Os(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,$h(a,{mechanism:{data:{function:"addEventListener",handler:Os(a),target:e},handled:!1,type:"instrument"}}),i])}}),go(n,"removeEventListener",function(r){return function(o,a,i){const s=a;try{const c=s&&s.__sentry_wrapped__;c&&r.call(this,o,c,i)}catch{}return r.call(this,o,s,i)}}))}const kqe="GlobalHandlers",jqe=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:kqe,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Iqe(n),_L("onerror")),t.onunhandledrejection&&(Oqe(n),_L("onunhandledrejection"))}}},Pqe=jqe;function Iqe(e){iee(t=>{const{stackParser:n,attachStacktrace:r}=ste();if(gt()!==e||Hee())return;const{msg:o,url:a,line:i,column:s,error:c}=t,l=Bqe(JP(n,c||o,void 0,r,!1),a,i,s);l.level="error",Oee(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Oqe(e){see(t=>{const{stackParser:n,attachStacktrace:r}=ste();if(gt()!==e||Hee())return;const o=Rqe(t),a=LP(o)?Nqe(o):JP(n,o,void 0,r,!0);a.level="error",Oee(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Rqe(e){if(LP(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Nqe(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Bqe(e,t,n,r){const o=e.exception=e.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{},s=i.stacktrace=i.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=gs(t)&&t.length>0?t:YZ();return c.length===0&&c.push({colno:l,filename:d,function:ad,in_app:!0,lineno:u}),e}function _L(e){ii&&ye.log(`Global Handler attached: ${e}`)}function ste(){const e=gt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Fqe=()=>({name:"HttpContext",preprocessEvent(e){if(!et.navigator&&!et.location&&!et.document)return;const t=e.request&&e.request.url||et.location&&et.location.href,{referrer:n}=et.document||{},{userAgent:r}=et.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:o};e.request=a}}),Mqe="cause",Lqe=5,Uqe="LinkedErrors",$qe=(e={})=>{const t=e.limit||Lqe,n=e.key||Mqe;return{name:Uqe,preprocessEvent(r,o,a){const i=a.getOptions();BLe(QP,i.stackParser,i.maxValueLength,n,t,r,o)}}},zqe=$qe;function Hqe(e){return[dze(),sze(),Sqe(),mqe(),Pqe(),zqe(),Cze(),Fqe()]}function qqe(e={}){const t={defaultIntegrations:Hqe(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:et.SENTRY_RELEASE&&et.SENTRY_RELEASE.id?et.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function Wqe(){const e=typeof et.window<"u"&&et;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,o=et.location&&et.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&et===et.top&&a.some(c=>o.startsWith(`${c}//`)),s=typeof e.nw<"u";return!!r&&!i&&!s}function Gqe(e={}){const t=qqe(e);if(Wqe()){Gm(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}ii&&(nee()||ye.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:XLe(t.stackParser||dqe),integrations:G$e(t),transport:t.transport||JHe},r=X$e(Wze,n);return t.autoSessionTracking&&Vqe(),r}function Vqe(){if(typeof et.document>"u"){ii&&ye.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}rL({ignoreDuration:!0}),oL(),B6(({from:e,to:t})=>{e!==void 0&&e!==t&&(rL({ignoreDuration:!0}),oL())})}const qt=bt,n7="sentryReplaySession",Kqe="replay_event",r7="Unable to send Replay",Yqe=3e5,Qqe=9e5,Xqe=5e3,Jqe=5500,Zqe=6e4,eWe=5e3,tWe=3,xL=15e4,qv=5e3,nWe=3e3,rWe=300,o7=2e7,oWe=4999,aWe=15e3,CL=36e5;function gk(e,t){return e??t()}function Ag(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}var Un;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Un||(Un={}));function iWe(e){return e.nodeType===e.ELEMENT_NODE}function A0(e){const t=Ag([e,"optionalAccess",n=>n.host]);return Ag([t,"optionalAccess",n=>n.shadowRoot])===e}function D0(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function sWe(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function cWe(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function QE(e){try{const t=e.rules||e.cssRules;return t?sWe(Array.from(t,cte).join("")):null}catch{return null}}function cte(e){let t;if(uWe(e))try{t=QE(e.styleSheet)||cWe(e)}catch{}else if(dWe(e)&&e.selectorText.includes(":"))return lWe(e.cssText);return t||e.cssText}function lWe(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function uWe(e){return"styleSheet"in e}function dWe(e){return"selectorText"in e}class lte{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=Ag([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return gk(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function fWe(){return new lte}function F6({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Dg({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Wh(e){return e.toLowerCase()}function yk(e){return e.toUpperCase()}const SL="__rrweb_original__";function hWe(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;rc!==0))return!1}return!0}function a7(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Wh(t):null}function XE(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function ute(e,t){let n;try{n=new URL(e,gk(t,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,o=n.pathname.match(r);return gk(Ag([o,"optionalAccess",a=>a[1]]),()=>null)}const TL={};function dte(e){const t=TL[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(o)}catch{}return TL[e]=r.bind(window)}function bk(...e){return dte("setTimeout")(...e)}function fte(...e){return dte("clearTimeout")(...e)}let mWe=1;const pWe=new RegExp("[^a-z0-9-_:]"),kg=-2;function i7(){return mWe++}function gWe(e){if(e instanceof HTMLFormElement)return"form";const t=Wh(e.tagName);return pWe.test(t)?"div":t}function yWe(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let af,AL;const bWe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,vWe=/^(?:[a-z+]+:)?\/\//i,wWe=/^www\..*/i,EWe=/^(data:)([^,]*),(.*)/i;function JE(e,t){return(e||"").replace(bWe,(n,r,o,a,i,s)=>{const c=o||i||s,l=r||a||"";if(!c)return n;if(vWe.test(c)||wWe.test(c))return`url(${l}${c}${l})`;if(EWe.test(c))return`url(${l}${c}${l})`;if(c[0]==="/")return`url(${l}${yWe(t)+c}${l})`;const u=t.split("/"),d=c.split("/");u.pop();for(const f of d)f!=="."&&(f===".."?u.pop():u.push(f));return`url(${l}${u.join("/")}${l})`})}const _We=/^[^ \t\n\r\u000c]+/,xWe=/^[, \t\n\r\u000c]+/;function CWe(e,t){if(t.trim()==="")return t;let n=0;function r(a){let i;const s=a.exec(t.substring(n));return s?(i=s[0],n+=i.length,i):""}const o=[];for(;r(xWe),!(n>=t.length);){let a=r(_We);if(a.slice(-1)===",")a=Mf(e,a.substring(0,a.length-1)),o.push(a);else{let i="";a=Mf(e,a);let s=!1;for(;;){const c=t.charAt(n);if(c===""){o.push((a+i).trim());break}else if(s)c===")"&&(s=!1);else if(c===","){n+=1,o.push((a+i).trim());break}else c==="("&&(s=!0);i+=c,n+=1}}}return o.join(", ")}function Mf(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function SWe(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function s7(){const e=document.createElement("a");return e.href="",e.href}function hte(e,t,n,r,o,a){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?Mf(e,r):n==="srcset"?CWe(e,r):n==="style"?JE(r,s7()):t==="object"&&n==="data"?Mf(e,r):typeof a=="function"?a(n,r,o):r)}function mte(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function TWe(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const a=e.classList[o];if(t.test(a))return!0}if(n)return e.matches(n)}catch{}return!1}function AWe(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function _u(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:_u(e.parentNode,t,n,r+1)}function Lf(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(AWe(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Gh(e,t,n,r,o,a){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){const l=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(l))return!0}let s=-1,c=-1;if(a){if(c=_u(i,Lf(r,o)),c<0)return!0;s=_u(i,Lf(t,n),c>=0?c:1/0)}else{if(s=_u(i,Lf(t,n)),s<0)return!1;c=_u(i,Lf(r,o),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function DWe(e,t,n){const r=e.contentWindow;if(!r)return;let o=!1,a;try{a=r.document.readyState}catch{return}if(a!=="complete"){const s=bk(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{fte(s),o=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return bk(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function kWe(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const a=bk(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{fte(a),r=!0,t()})}function jWe(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:m={},maskTextFn:p,maskInputFn:b,dataURLOptions:v={},inlineImages:g,recordCanvas:w,keepIframeSrcFn:_,newlyAddedElement:C=!1}=t,x=PWe(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Un.Document,childNodes:[],compatMode:e.compatMode}:{type:Un.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Un.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return OWe(e,{doc:n,blockClass:o,blockSelector:a,unblockSelector:i,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:m,maskInputFn:b,dataURLOptions:v,inlineImages:g,recordCanvas:w,keepIframeSrcFn:_,newlyAddedElement:C,rootId:x,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return IWe(e,{maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:p,maskInputOptions:m,maskInputFn:b,rootId:x});case e.CDATA_SECTION_NODE:return{type:Un.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:Un.Comment,textContent:e.textContent||"",rootId:x};default:return!1}}function PWe(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function IWe(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:a,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const h=d==="STYLE"?!0:void 0,m=d==="SCRIPT"?!0:void 0,p=d==="TEXTAREA"?!0:void 0;if(h&&f){try{e.nextSibling||e.previousSibling||Ag([e,"access",v=>v.parentNode,"access",v=>v.sheet,"optionalAccess",v=>v.cssRules])&&(f=QE(e.parentNode.sheet))}catch(v){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`,e)}f=JE(f,s7())}m&&(f="SCRIPT_PLACEHOLDER");const b=Gh(e,r,a,o,i,n);if(!h&&!m&&!p&&f&&b&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,"*")),p&&f&&(c.textarea||b)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const v=F6({type:null,tagName:d,maskInputOptions:c});f=Dg({isMasked:Gh(e,r,a,o,i,v),element:e,value:f,maskInputFn:l})}return{type:Un.Text,textContent:f||"",isStyle:h,rootId:u}}function OWe(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:a,inlineStylesheet:i,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1,rootId:p,maskAllText:b,maskTextClass:v,unmaskTextClass:g,maskTextSelector:w,unmaskTextSelector:_}=t,C=TWe(e,r,o,a),x=gWe(e);let E={};const T=e.attributes.length;for(let D=0;DF.href===e.href);let R=null;D&&(R=QE(D)),R&&(delete E.rel,delete E.href,E._cssText=JE(R,D.href))}if(x==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const D=QE(e.sheet);D&&(E._cssText=JE(D,s7()))}if(x==="input"||x==="textarea"||x==="select"||x==="option"){const D=e,R=a7(D),F=XE(D,yk(x),R),B=D.checked;if(R!=="submit"&&R!=="button"&&F){const j=Gh(D,v,w,g,_,F6({type:R,tagName:yk(x),maskInputOptions:s}));E.value=Dg({isMasked:j,element:D,value:F,maskInputFn:l})}B&&(E.checked=B)}if(x==="option"&&(e.selected&&!s.select?E.selected=!0:delete E.selected),x==="canvas"&&f){if(e.__context==="2d")hWe(e)||(E.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const D=e.toDataURL(u.type,u.quality),R=document.createElement("canvas");R.width=e.width,R.height=e.height;const F=R.toDataURL(u.type,u.quality);D!==F&&(E.rr_dataURL=D)}}if(x==="img"&&d){af||(af=n.createElement("canvas"),AL=af.getContext("2d"));const D=e,R=D.crossOrigin;D.crossOrigin="anonymous";const F=()=>{D.removeEventListener("load",F);try{af.width=D.naturalWidth,af.height=D.naturalHeight,AL.drawImage(D,0,0),E.rr_dataURL=af.toDataURL(u.type,u.quality)}catch(B){console.warn(`Cannot inline img src=${D.currentSrc}! Error: ${B}`)}R?E.crossOrigin=R:D.removeAttribute("crossorigin")};D.complete&&D.naturalWidth!==0?F():D.addEventListener("load",F)}if((x==="audio"||x==="video")&&(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop)),C){const{width:D,height:R}=e.getBoundingClientRect();E={class:E.class,rr_width:`${D}px`,rr_height:`${R}px`}}x==="iframe"&&!h(E.src)&&(!C&&!e.contentDocument&&(E.rr_src=E.src),delete E.src);let k;try{customElements.get(x)&&(k=!0)}catch{}return{type:Un.Element,tagName:x,attributes:E,childNodes:[],isSVG:SWe(e)||void 0,needBlock:C,rootId:p,isCustom:k}}function zt(e){return e==null?"":e.toLowerCase()}function RWe(e,t){if(t.comment&&e.type===Un.Comment)return!0;if(e.type===Un.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&ute(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(zt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||zt(e.attributes.name)==="application-name"||zt(e.attributes.rel)==="icon"||zt(e.attributes.rel)==="apple-touch-icon"||zt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&zt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(zt(e.attributes.property).match(/^(og|twitter|fb):/)||zt(e.attributes.name).match(/^(og|twitter):/)||zt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(zt(e.attributes.name)==="robots"||zt(e.attributes.name)==="googlebot"||zt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(zt(e.attributes.name)==="author"||zt(e.attributes.name)==="generator"||zt(e.attributes.name)==="framework"||zt(e.attributes.name)==="publisher"||zt(e.attributes.name)==="progid"||zt(e.attributes.property).match(/^article:/)||zt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(zt(e.attributes.name)==="google-site-verification"||zt(e.attributes.name)==="yandex-verification"||zt(e.attributes.name)==="csrf-token"||zt(e.attributes.name)==="p:domain_verify"||zt(e.attributes.name)==="verify-v1"||zt(e.attributes.name)==="verification"||zt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Uf(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:m={},maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w={},inlineImages:_=!1,recordCanvas:C=!1,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:T=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:D=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:F=!1}=t;let{preserveWhiteSpace:B=!0}=t;const j=jWe(e,{doc:n,mirror:r,blockClass:o,blockSelector:a,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,dataURLOptions:w,inlineImages:_,recordCanvas:C,keepIframeSrcFn:R,newlyAddedElement:F});if(!j)return console.warn(e,"not serialized"),null;let P;r.hasNode(e)?P=r.getId(e):RWe(j,g)||!B&&j.type===Un.Text&&!j.isStyle&&!j.textContent.replace(/^\s+|\s+$/gm,"").length?P=kg:P=i7();const O=Object.assign(j,{id:P});if(r.add(e,O),P===kg)return null;x&&x(e);let I=!f;if(O.type===Un.Element){I=I&&!O.needBlock,delete O.needBlock;const N=e.shadowRoot;N&&D0(N)&&(O.isShadowHost=!0)}if((O.type===Un.Document||O.type===Un.Element)&&I){g.headWhitespace&&O.type===Un.Element&&O.tagName==="head"&&(B=!1);const N={doc:n,mirror:r,blockClass:o,blockSelector:a,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:_,recordCanvas:C,preserveWhiteSpace:B,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:k,stylesheetLoadTimeout:D,keepIframeSrcFn:R};for(const M of Array.from(e.childNodes)){const L=Uf(M,N);L&&O.childNodes.push(L)}if(iWe(e)&&e.shadowRoot)for(const M of Array.from(e.shadowRoot.childNodes)){const L=Uf(M,N);L&&(D0(e.shadowRoot)&&(L.isShadow=!0),O.childNodes.push(L))}}return e.parentNode&&A0(e.parentNode)&&D0(e.parentNode)&&(O.isShadow=!0),O.type===Un.Element&&O.tagName==="iframe"&&DWe(e,()=>{const N=e.contentDocument;if(N&&E){const M=Uf(N,{doc:N,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:_,recordCanvas:C,preserveWhiteSpace:B,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:k,stylesheetLoadTimeout:D,keepIframeSrcFn:R});M&&E(e,M)}},T),O.type===Un.Element&&O.tagName==="link"&&typeof O.attributes.rel=="string"&&(O.attributes.rel==="stylesheet"||O.attributes.rel==="preload"&&typeof O.attributes.href=="string"&&ute(O.attributes.href)==="css")&&kWe(e,()=>{if(k){const N=Uf(e,{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:_,recordCanvas:C,preserveWhiteSpace:B,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:k,stylesheetLoadTimeout:D,keepIframeSrcFn:R});N&&k(e,N)}},D),O}function NWe(e,t){const{mirror:n=new lte,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:a=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:h=!1,maskAllInputs:m=!1,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOM:g=!1,dataURLOptions:w,preserveWhiteSpace:_,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:T,stylesheetLoadTimeout:k,keepIframeSrcFn:D=()=>!1}=t||{};return Uf(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,maskAllText:i,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:g==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:g===!1?{}:g,dataURLOptions:w,inlineImages:f,recordCanvas:h,preserveWhiteSpace:_,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:T,stylesheetLoadTimeout:k,keepIframeSrcFn:D,newlyAddedElement:!1})}function Sc(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}function Yr(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const gf=`Please stop import mirror directly. Instead of that,\r -now you can use replayer.getMirror() to access the mirror instance of a replayer,\r -or you can use record.mirror to access the mirror instance during recording.`;let DL={map:{},getId(){return console.error(gf),-1},getNode(){return console.error(gf),null},removeNodeFromMap(){console.error(gf)},has(){return console.error(gf),!1},reset(){console.error(gf)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(DL=new Proxy(DL,{get(e,t,n){return t==="map"&&console.error(gf),Reflect.get(e,t,n)}}));function jg(e,t,n={}){let r=null,o=0;return function(...a){const i=Date.now();!o&&n.leading===!1&&(o=i);const s=t-(i-o),c=this;s<=0||s>t?(r&&(zWe(r),r=null),o=i,e.apply(c,a)):!r&&n.trailing!==!1&&(r=M6(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function pte(e,t,n,r,o=window){const a=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(i){M6(()=>{n.set.call(this,i)},0),a&&a.set&&a.set.call(this,i)}}),()=>pte(e,t,a||{},!0)}function c7(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}let ZE=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ZE=()=>new Date().getTime());function gte(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Sc([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Sc([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Sc([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Sc([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Sc([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Sc([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function yte(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function bte(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function vte(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function No(e,t,n,r,o){if(!e)return!1;const a=vte(e);if(!a)return!1;const i=Lf(t,n);if(!o){const l=r&&a.matches(r);return i(a)&&!l}const s=_u(a,i);let c=-1;return s<0?!1:(r&&(c=_u(a,Lf(null,r))),s>-1&&c<0?!0:s{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Ete(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function _te(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function wk(e){return!!Sc([e,"optionalAccess",t=>t.shadowRoot])}class MWe{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return MUe(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function xte(e){let t=null;return Sc([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function LWe(e){let t=e,n;for(;n=xte(t);)t=n;return t}function UWe(e){const t=e.ownerDocument;if(!t)return!1;const n=LWe(e);return t.contains(n)}function Cte(e){const t=e.ownerDocument;return t?t.contains(e)||UWe(e):!1}const kL={};function l7(e){const t=kL[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(o)}catch{}return kL[e]=r.bind(window)}function $We(...e){return l7("requestAnimationFrame")(...e)}function M6(...e){return l7("setTimeout")(...e)}function zWe(...e){return l7("clearTimeout")(...e)}var it=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(it||{}),Ye=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Ye||{}),qr=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(qr||{}),Zi=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Zi||{});function HWe(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}function jL(e){return"__ln"in e}class qWe{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;ro.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&jL(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&jL(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const PL=(e,t)=>`${e}@${t}`;class WWe{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new qWe,o=c=>{let l=c,u=kg;for(;u===kg;)l=l&&l.nextSibling,u=l&&this.mirror.getId(l);return u},a=c=>{if(!c.parentNode||!Cte(c))return;const l=A0(c.parentNode)?this.mirror.getId(xte(c)):this.mirror.getId(c.parentNode),u=o(c);if(l===-1||u===-1)return r.addNode(c);const d=Uf(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{Ete(f,this.mirror)&&!No(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),_te(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),wk(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,h)=>{No(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,h),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,h)=>{this.stylesheetManager.attachLinkElement(f,h)}});d&&(t.push({parentId:l,nextId:u,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)IL(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||a(c);for(const c of this.addedSet)!OL(this.droppedSet,c)&&!IL(this.removes,c,this.mirror)||OL(this.movedSet,c)?a(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const l=this.mirror.getId(i.value.parentNode),u=o(i.value);l!==-1&&u!==-1&&(c=i)}if(!c){let l=r.tail;for(;l;){const u=l;if(l=l.previous,u){const d=this.mirror.getId(u.value.parentNode);if(o(u.value)===-1)continue;if(d!==-1){c=u;break}else{const h=u.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const m=h.parentNode.host;if(this.mirror.getId(m)!==-1){c=u;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),a(c.value)}const s={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:l}=c;if(typeof l.style=="string"){const u=JSON.stringify(c.styleDiff),d=JSON.stringify(c._unchangedStyles);u.length!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!s.texts.length&&!s.attributes.length&&!s.removes.length&&!s.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=t=>{if(!PT(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!No(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Gh(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,vte(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){const i=a7(n),s=n.tagName;o=XE(n,s,i);const c=F6({maskInputOptions:this.maskInputOptions,tagName:s,type:i}),l=Gh(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=Dg({isMasked:l,element:n,value:o,maskInputFn:this.maskInputFn})}if(No(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let a=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!n.contentDocument)r="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!mte(n.tagName,r)&&(a.attributes[r]=hte(this.doc,Wh(n.tagName),Wh(r),o,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const s of Array.from(n.style)){const c=n.style.getPropertyValue(s),l=n.style.getPropertyPriority(s);c!==i.style.getPropertyValue(s)||l!==i.style.getPropertyPriority(s)?l===""?a.styleDiff[s]=c:a.styleDiff[s]=[c,l]:a._unchangedStyles[s]=[c,l]}for(const s of Array.from(i.style))n.style.getPropertyValue(s)===""&&(a.styleDiff[s]=!1)}break}case"childList":{if(No(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),o=A0(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);No(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||PT(n,this.mirror)||!BWe(n,this.mirror)||(this.addedSet.has(n)?(Ek(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||wte(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[PL(r,o)]?Ek(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:A0(t.target)&&D0(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(PT(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[PL(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);No(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),wk(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ek(e,t){e.delete(t),t.childNodes.forEach(n=>Ek(e,n))}function IL(e,t,n){return e.length===0?!1:Ste(e,t,n)}function Ste(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return e.some(a=>a.id===o)?!0:Ste(e,r,n)}function OL(e,t){return e.size===0?!1:Tte(e,t)}function Tte(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Tte(e,n):!1}let k0;function GWe(e){k0=e}function VWe(){k0=void 0}const vt=e=>k0?(...n)=>{try{return e(...n)}catch(r){if(k0&&k0(r)===!0)return()=>{};throw r}}:e;function Ga(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}const $f=[];function kb(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Ate(e,t){const n=new WWe;$f.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=Ga([window,"optionalAccess",i=>i.Zone,"optionalAccess",i=>i.__symbol__,"optionalCall",i=>i("MutationObserver")]);o&&window[o]&&(r=window[o]);const a=new r(vt(i=>{e.onMutation&&e.onMutation(i)===!1||n.processMutations.bind(n)(i)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function KWe({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],s;const c=jg(vt(d=>{const f=Date.now()-s;e(i.map(h=>(h.timeOffset-=f,h)),d),i=[],s=null}),a),l=vt(jg(vt(d=>{const f=kb(d),{clientX:h,clientY:m}=vk(d)?d.changedTouches[0]:d;s||(s=ZE()),i.push({x:h,y:m,id:r.getId(f),timeOffset:ZE()-s}),c(typeof DragEvent<"u"&&d instanceof DragEvent?Ye.Drag:d instanceof MouseEvent?Ye.MouseMove:Ye.TouchMove)}),o,{trailing:!1})),u=[Yr("mousemove",l,n),Yr("touchmove",l,n),Yr("drag",l,n)];return vt(()=>{u.forEach(d=>d())})}function YWe({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,sampling:i}){if(i.mouseInteraction===!1)return()=>{};const s=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,c=[];let l=null;const u=d=>f=>{const h=kb(f);if(No(h,r,o,a,!0))return;let m=null,p=d;if("pointerType"in f){switch(f.pointerType){case"mouse":m=Zi.Mouse;break;case"touch":m=Zi.Touch;break;case"pen":m=Zi.Pen;break}m===Zi.Touch?qr[d]===qr.MouseDown?p="TouchStart":qr[d]===qr.MouseUp&&(p="TouchEnd"):Zi.Pen}else vk(f)&&(m=Zi.Touch);m!==null?(l=m,(p.startsWith("Touch")&&m===Zi.Touch||p.startsWith("Mouse")&&m===Zi.Mouse)&&(m=null)):qr[d]===qr.Click&&(m=l,l=null);const b=vk(f)?f.changedTouches[0]:f;if(!b)return;const v=n.getId(h),{clientX:g,clientY:w}=b;vt(e)({type:qr[p],id:v,x:g,y:w,...m!==null&&{pointerType:m}})};return Object.keys(qr).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&s[d]!==!1).forEach(d=>{let f=Wh(d);const h=u(d);if(window.PointerEvent)switch(qr[d]){case qr.MouseDown:case qr.MouseUp:f=f.replace("mouse","pointer");break;case qr.TouchStart:case qr.TouchEnd:return}c.push(Yr(f,h,t))}),vt(()=>{c.forEach(d=>d())})}function Dte({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,sampling:i}){const s=vt(jg(vt(c=>{const l=kb(c);if(!l||No(l,r,o,a,!0))return;const u=n.getId(l);if(l===t&&t.defaultView){const d=gte(t.defaultView);e({id:u,x:d.left,y:d.top})}else e({id:u,x:l.scrollLeft,y:l.scrollTop})}),i.scroll||100));return Yr("scroll",s,t)}function QWe({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=vt(jg(vt(()=>{const a=yte(),i=bte();(n!==a||r!==i)&&(e({width:Number(i),height:Number(a)}),n=a,r=i)}),200));return Yr("resize",o,t)}const XWe=["INPUT","TEXTAREA","SELECT"],RL=new WeakMap;function JWe({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,ignoreClass:i,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:m,unmaskTextSelector:p}){function b(E){let T=kb(E);const k=E.isTrusted,D=T&&yk(T.tagName);if(D==="OPTION"&&(T=T.parentElement),!T||!D||XWe.indexOf(D)<0||No(T,r,o,a,!0))return;const R=T;if(R.classList.contains(i)||s&&R.matches(s))return;const F=a7(T);let B=XE(R,D,F),j=!1;const P=F6({maskInputOptions:c,tagName:D,type:F}),O=Gh(T,f,m,h,p,P);(F==="radio"||F==="checkbox")&&(j=T.checked),B=Dg({isMasked:O,element:T,value:B,maskInputFn:l}),v(T,d?{text:B,isChecked:j,userTriggered:k}:{text:B,isChecked:j});const I=T.name;F==="radio"&&I&&j&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(N=>{if(N!==T){const M=Dg({isMasked:O,element:N,value:XE(N,D,F),maskInputFn:l});v(N,d?{text:M,isChecked:!j,userTriggered:!1}:{text:M,isChecked:!j})}})}function v(E,T){const k=RL.get(E);if(!k||k.text!==T.text||k.isChecked!==T.isChecked){RL.set(E,T);const D=n.getId(E);vt(e)({...T,id:D})}}const w=(u.input==="last"?["change"]:["input","change"]).map(E=>Yr(E,vt(b),t)),_=t.defaultView;if(!_)return()=>{w.forEach(E=>E())};const C=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),x=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return C&&C.set&&w.push(...x.map(E=>pte(E[0],E[1],{set(){vt(b)({target:this,isTrusted:!1})}},!1,_))),vt(()=>{w.forEach(E=>E())})}function e_(e){const t=[];function n(r,o){if(Wv("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Wv("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Wv("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Wv("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(i)}return o}return n(e,t)}function Tc(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function ZWe({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:vt((u,d,f)=>{const[h,m]=f,{id:p,styleId:b}=Tc(d,t,n.styleMirror);return(p&&p!==-1||b&&b!==-1)&&e({id:p,styleId:b,adds:[{rule:h,index:m}]}),u.apply(d,f)})});const a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:vt((u,d,f)=>{const[h]=f,{id:m,styleId:p}=Tc(d,t,n.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,removes:[{index:h}]}),u.apply(d,f)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:vt((u,d,f)=>{const[h]=f,{id:m,styleId:p}=Tc(d,t,n.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,replace:h}),u.apply(d,f)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:vt((u,d,f)=>{const[h]=f,{id:m,styleId:p}=Tc(d,t,n.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,replaceSync:h}),u.apply(d,f)})}));const c={};Gv("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Gv("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Gv("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Gv("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([u,d])=>{l[u]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(l[u].insertRule,{apply:vt((f,h,m)=>{const[p,b]=m,{id:v,styleId:g}=Tc(h.parentStyleSheet,t,n.styleMirror);return(v&&v!==-1||g&&g!==-1)&&e({id:v,styleId:g,adds:[{rule:p,index:[...e_(h),b||0]}]}),f.apply(h,m)})}),d.prototype.deleteRule=new Proxy(l[u].deleteRule,{apply:vt((f,h,m)=>{const[p]=m,{id:b,styleId:v}=Tc(h.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||v&&v!==-1)&&e({id:b,styleId:v,removes:[{index:[...e_(h),p]}]}),f.apply(h,m)})})}),vt(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=a,i&&(r.CSSStyleSheet.prototype.replace=i),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([u,d])=>{d.prototype.insertRule=l[u].insertRule,d.prototype.deleteRule=l[u].deleteRule})})}function kte({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const o=n.nodeName==="#document"?Ga([n,"access",i=>i.defaultView,"optionalAccess",i=>i.Document]):Ga([n,"access",i=>i.ownerDocument,"optionalAccess",i=>i.defaultView,"optionalAccess",i=>i.ShadowRoot]),a=Ga([o,"optionalAccess",i=>i.prototype])?Object.getOwnPropertyDescriptor(Ga([o,"optionalAccess",i=>i.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return Ga([a,"access",i=>i.get,"optionalAccess",i=>i.call,"call",i=>i(this)])},set(i){const s=Ga([a,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,i)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(i,r)}catch{}return s}}),vt(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function eGe({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:vt((s,c,l)=>{const[u,d,f]=l;if(n.has(u))return a.apply(c,[u,d,f]);const{id:h,styleId:m}=Tc(Ga([c,"access",p=>p.parentRule,"optionalAccess",p=>p.parentStyleSheet]),t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,set:{property:u,value:d,priority:f},index:e_(c.parentRule)}),s.apply(c,l)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:vt((s,c,l)=>{const[u]=l;if(n.has(u))return i.apply(c,[u]);const{id:d,styleId:f}=Tc(Ga([c,"access",h=>h.parentRule,"optionalAccess",h=>h.parentStyleSheet]),t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:u},index:e_(c.parentRule)}),s.apply(c,l)})}),vt(()=>{o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=i})}function tGe({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:a,doc:i}){const s=vt(l=>jg(vt(u=>{const d=kb(u);if(!d||No(d,t,n,r,!0))return;const{currentTime:f,volume:h,muted:m,playbackRate:p}=d;e({type:l,id:o.getId(d),currentTime:f,volume:h,muted:m,playbackRate:p})}),a.media||500)),c=[Yr("play",s(0),i),Yr("pause",s(1),i),Yr("seeked",s(2),i),Yr("volumechange",s(3),i),Yr("ratechange",s(4),i)];return vt(()=>{c.forEach(l=>l())})}function nGe({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,a=n.FontFace;n.FontFace=function(c,l,u){const d=new a(c,l,u);return o.set(d,{family:c,buffer:typeof l!="string",descriptors:u,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),d};const i=c7(t.fonts,"add",function(s){return function(c){return M6(vt(()=>{const l=o.get(c);l&&(e(l),o.delete(c))}),0),s.apply(this,[c])}});return r.push(()=>{n.FontFace=a}),r.push(i),vt(()=>{r.forEach(s=>s())})}function rGe(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,selectionCb:i}=e;let s=!0;const c=vt(()=>{const l=t.getSelection();if(!l||s&&Ga([l,"optionalAccess",f=>f.isCollapsed]))return;s=l.isCollapsed||!1;const u=[],d=l.rangeCount||0;for(let f=0;f{}:c7(n.customElements,"define",function(o){return function(a,i,s){try{t({define:{name:a}})}catch{}return o.apply(this,[a,i,s])}})}function aGe(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Ate(e,e.doc));const o=KWe(e),a=YWe(e),i=Dte(e),s=QWe(e,{win:n}),c=JWe(e),l=tGe(e);let u=()=>{},d=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(u=ZWe(e,{win:n}),d=kte(e,e.doc),f=eGe(e,{win:n}),e.collectFonts&&(h=nGe(e)));const m=rGe(e),p=oGe(e),b=[];for(const v of e.plugins)b.push(v.observer(v.callback,n,v.options));return vt(()=>{$f.forEach(v=>v.reset()),Ga([r,"optionalAccess",v=>v.disconnect,"call",v=>v()]),o(),a(),i(),s(),c(),l(),u(),d(),f(),h(),m(),p(),b.forEach(v=>v())})}function Wv(e){return typeof window[e]<"u"}function Gv(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class _k{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){const a=r||this.getIdToRemoteIdMap(t),i=o||this.getRemoteIdToIdMap(t);let s=a.get(n);return s||(s=this.generateIdFn(),a.set(n,s),i.set(s,n)),s}getIds(t,n){const r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(a=>this.getId(t,a,r,o))}getRemoteId(t,n,r){const o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const a=o.get(n);return a||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function NL(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}class iGe{constructor(){this.crossOriginIframeMirror=new _k(i7),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class sGe{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new _k(i7),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new _k(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),NL([this,"access",r=>r.loadListener,"optionalCall",r=>r(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const a=this.transformCrossOriginEvent(o,n.data.event);a&&this.wrappedEmit(a,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case it.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:it.IncrementalSnapshot,data:{source:Ye.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case it.Meta:case it.Load:case it.DomContentLoaded:return!1;case it.Plugin:return n;case it.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case it.IncrementalSnapshot:switch(n.data.source){case Ye.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(r.node,o)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Ye.Drag:case Ye.TouchMove:case Ye.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Ye.ViewportResize:return!1;case Ye.MediaInteraction:case Ye.MouseInteraction:case Ye.Scroll:case Ye.CanvasMutation:case Ye.Input:return this.replaceIds(n.data,t,["id"]),n;case Ye.StyleSheetRule:case Ye.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Ye.Font:return n;case Ye.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case Ye.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),NL([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(o=>{this.replaceStyleIds(o,t,["styleId"])})]),n}}return!1}replace(t,n,r,o){for(const a of o)!Array.isArray(n[a])&&typeof n[a]!="number"||(Array.isArray(n[a])?n[a]=t.getIds(r,n[a]):n[a]=t.getId(r,n[a]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Un.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class cGe{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class lGe{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!D0(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Ate({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Dte({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),M6(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(kte({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(c7(t.prototype,"attachShadow",function(o){return function(a){const i=o.call(this,a);return this.shadowRoot&&Cte(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class BL{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class uGe{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new MWe,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},o=[];for(const a of t){let i;this.styleMirror.has(a)?i=this.styleMirror.getId(a):(i=this.styleMirror.add(a),o.push({styleId:i,rules:Array.from(a.rules||CSSRule,(s,c)=>({rule:cte(s),index:c}))})),r.styleIds.push(i)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class dGe{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){$We(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let un,t_;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Uo([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Ba=fWe();function ys(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:a=null,unblockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:p,maskInputOptions:b,slimDOMOptions:v,maskAttributeFn:g,maskInputFn:w,maskTextFn:_,maxCanvasSize:C=null,packFn:x,sampling:E={},dataURLOptions:T={},mousemoveWait:k,recordDOM:D=!0,recordCanvas:R=!1,recordCrossOriginIframes:F=!1,recordAfter:B=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:P=!1,inlineImages:O=!1,plugins:I,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:M=new Set([]),errorHandler:L,onMutation:X,getCanvasManager:J}=e;GWe(L);const U=F?window.parent===window:!0;let G=!1;if(!U)try{window.parent.document&&(G=!1)}catch{G=!0}if(U&&!t)throw new Error("emit function is required");k!==void 0&&E.mousemove===void 0&&(E.mousemove=k),Ba.reset();const Z=p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:b!==void 0?b:{},ae=v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:v==="all",headMetaDescKeywords:v==="all"}:v||{};FWe();let ne,ie=0;const te=he=>{for(const Me of I||[])Me.eventProcessor&&(he=Me.eventProcessor(he));return x&&!G&&(he=x(he)),he};un=(he,Me)=>{const ge=he;if(ge.timestamp=ZE(),Uo([$f,"access",Y=>Y[0],"optionalAccess",Y=>Y.isFrozen,"call",Y=>Y()])&&ge.type!==it.FullSnapshot&&!(ge.type===it.IncrementalSnapshot&&ge.data.source===Ye.Mutation)&&$f.forEach(Y=>Y.unfreeze()),U)Uo([t,"optionalCall",Y=>Y(te(ge),Me)]);else if(G){const Y={type:"rrweb",event:te(ge),origin:window.location.origin,isCheckout:Me};window.parent.postMessage(Y,"*")}if(ge.type===it.FullSnapshot)ne=ge,ie=0;else if(ge.type===it.IncrementalSnapshot){if(ge.data.source===Ye.Mutation&&ge.data.isAttachIframe)return;ie++;const Y=r&&ie>=r,W=n&&ne&&ge.timestamp-ne.timestamp>n;(Y||W)&&Ee(!0)}};const ee=he=>{un({type:it.IncrementalSnapshot,data:{source:Ye.Mutation,...he}})},re=he=>un({type:it.IncrementalSnapshot,data:{source:Ye.Scroll,...he}}),z=he=>un({type:it.IncrementalSnapshot,data:{source:Ye.CanvasMutation,...he}}),fe=he=>un({type:it.IncrementalSnapshot,data:{source:Ye.AdoptedStyleSheet,...he}}),ve=new uGe({mutationCb:ee,adoptedStyleSheetCb:fe}),Ue=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new iGe:new sGe({mirror:Ba,mutationCb:ee,stylesheetManager:ve,recordCrossOriginIframes:F,wrappedEmit:un});for(const he of I||[])he.getMirror&&he.getMirror({nodeMirror:Ba,crossOriginIframeMirror:Ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ue.crossOriginIframeStyleMirror});const ke=new dGe,Qe=hGe(J,{mirror:Ba,win:window,mutationCb:he=>un({type:it.IncrementalSnapshot,data:{source:Ye.CanvasMutation,...he}}),recordCanvas:R,blockClass:o,blockSelector:a,unblockSelector:i,maxCanvasSize:C,sampling:E.canvas,dataURLOptions:T,errorHandler:L}),Te=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new cGe:new lGe({mutationCb:ee,scrollCb:re,bypassOptions:{onMutation:X,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:Z,dataURLOptions:T,maskAttributeFn:g,maskTextFn:_,maskInputFn:w,recordCanvas:R,inlineImages:O,sampling:E,slimDOMOptions:ae,iframeManager:Ue,stylesheetManager:ve,canvasManager:Qe,keepIframeSrcFn:N,processedNodeManager:ke},mirror:Ba}),Ee=(he=!1)=>{if(!D)return;un({type:it.Meta,data:{href:window.location.href,width:bte(),height:yte()}},he),ve.reset(),Te.init(),$f.forEach(ge=>ge.lock());const Me=NWe(document,{mirror:Ba,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:Z,maskAttributeFn:g,maskInputFn:w,maskTextFn:_,slimDOM:ae,dataURLOptions:T,recordCanvas:R,inlineImages:O,onSerialize:ge=>{Ete(ge,Ba)&&Ue.addIframe(ge),_te(ge,Ba)&&ve.trackLinkElement(ge),wk(ge)&&Te.addShadowRoot(ge.shadowRoot,document)},onIframeLoad:(ge,Y)=>{Ue.attachIframe(ge,Y),ge.contentWindow&&Qe.addWindow(ge.contentWindow),Te.observeAttachShadow(ge)},onStylesheetLoad:(ge,Y)=>{ve.attachLinkElement(ge,Y)},keepIframeSrcFn:N});if(!Me)return console.warn("Failed to snapshot the document");un({type:it.FullSnapshot,data:{node:Me,initialOffset:gte(window)}}),$f.forEach(ge=>ge.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ve.adoptStyleSheets(document.adoptedStyleSheets,Ba.getId(document))};t_=Ee;try{const he=[],Me=Y=>vt(aGe)({onMutation:X,mutationCb:ee,mousemoveCb:(W,Q)=>un({type:it.IncrementalSnapshot,data:{source:Q,positions:W}}),mouseInteractionCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.MouseInteraction,...W}}),scrollCb:re,viewportResizeCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.ViewportResize,...W}}),inputCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.Input,...W}}),mediaInteractionCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.MediaInteraction,...W}}),styleSheetRuleCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.StyleSheetRule,...W}}),styleDeclarationCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.StyleDeclaration,...W}}),canvasMutationCb:z,fontCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.Font,...W}}),selectionCb:W=>{un({type:it.IncrementalSnapshot,data:{source:Ye.Selection,...W}})},customElementCb:W=>{un({type:it.IncrementalSnapshot,data:{source:Ye.CustomElement,...W}})},blockClass:o,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:Z,inlineStylesheet:m,sampling:E,recordDOM:D,recordCanvas:R,inlineImages:O,userTriggeredOnInput:j,collectFonts:P,doc:Y,maskAttributeFn:g,maskInputFn:w,maskTextFn:_,keepIframeSrcFn:N,blockSelector:a,unblockSelector:i,slimDOMOptions:ae,dataURLOptions:T,mirror:Ba,iframeManager:Ue,stylesheetManager:ve,shadowDomManager:Te,processedNodeManager:ke,canvasManager:Qe,ignoreCSSAttributes:M,plugins:Uo([I,"optionalAccess",W=>W.filter,"call",W=>W(Q=>Q.observer),"optionalAccess",W=>W.map,"call",W=>W(Q=>({observer:Q.observer,options:Q.options,callback:ce=>un({type:it.Plugin,data:{plugin:Q.name,payload:ce}})}))])||[]},{});Ue.addLoadListener(Y=>{try{he.push(Me(Y.contentDocument))}catch(W){console.warn(W)}});const ge=()=>{Ee(),he.push(Me(document))};return document.readyState==="interactive"||document.readyState==="complete"?ge():(he.push(Yr("DOMContentLoaded",()=>{un({type:it.DomContentLoaded,data:{}}),B==="DOMContentLoaded"&&ge()})),he.push(Yr("load",()=>{un({type:it.Load,data:{}}),B==="load"&&ge()},window))),()=>{he.forEach(Y=>Y()),ke.destroy(),t_=void 0,VWe()}}catch(he){console.warn(he)}}function fGe(e){if(!t_)throw new Error("please take full snapshot after start recording");t_(e)}ys.mirror=Ba;ys.takeFullSnapshot=fGe;function hGe(e,t){try{return e?e(t):new BL}catch{return console.warn("Unable to initialize CanvasManager"),new BL}}const He=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,FL=["info","warn","error","log"],L1="[Replay] ";function IT(e,t="info"){bl({category:"console",data:{logger:"replay"},level:t,message:`${L1}${e}`},{level:t})}function mGe(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return He?(FL.forEach(r=>{n[r]=(...o)=>{ye[r](L1,...o),t&&IT(o[0])}}),n.exception=(r,...o)=>{n.error&&n.error(...o),ye.error(L1,r),e?YP(r):t&&IT(r)},n.infoTick=(...r)=>{ye.info(L1,...r),t&&setTimeout(()=>IT(r[0]),0)}):FL.forEach(r=>{n[r]=()=>{}}),n}const Ge=mGe(),pGe=3,gGe=5;function u7(e){return e>9999999999?e:e*1e3}function OT(e){return e>9999999999?e/1e3:e}function jb(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:it.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:_i(t,10,1e3)}}),t.category==="console")))}const yGe="button,a";function jte(e){return e.closest(yGe)||e}function Pte(e){const t=Ite(e);return!t||!(t instanceof Element)?t:jte(t)}function Ite(e){return bGe(e)?e.target:e}function bGe(e){return typeof e=="object"&&!!e&&"target"in e}let Ac;function vGe(e){return Ac||(Ac=[],wGe()),Ac.push(e),()=>{const t=Ac?Ac.indexOf(e):-1;t>-1&&Ac.splice(t,1)}}function wGe(){go(qt,"open",function(e){return function(...t){if(Ac)try{Ac.forEach(n=>n())}catch{}return e.apply(qt,t)}})}const EGe=new Set([Ye.Mutation,Ye.StyleSheetRule,Ye.StyleDeclaration,Ye.AdoptedStyleSheet,Ye.CanvasMutation,Ye.Selection,Ye.MediaInteraction]);function _Ge(e,t,n){e.handleClick(t,n)}class xGe{constructor(t,n,r=jb){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=vGe(()=>{this._lastMutation=ML()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(SGe(n,this._ignoreSelector)||!TGe(t))return;const r={timestamp:OT(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=OT(t)}registerScroll(t=Date.now()){this._lastScroll=OT(t)}registerClick(t){const n=jte(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=ML();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!r&&!o,{clickCount:i,clickBreadcrumb:s}=t;if(a){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,l=c1){const c={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:qt.location.href,route:n.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=qh(()=>this._checkClicks(),1e3)}}const CGe=["A","BUTTON","INPUT"];function SGe(e,t){return!!(!CGe.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function TGe(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function ML(){return Date.now()/1e3}function AGe(e,t){try{if(!DGe(t))return;const{source:n}=t.data;if(EGe.has(n)&&e.registerMutation(t.timestamp),n===Ye.Scroll&&e.registerScroll(t.timestamp),kGe(t)){const{type:r,id:o}=t.data,a=ys.mirror.getNode(o);a instanceof HTMLElement&&r===qr.Click&&e.registerClick(a)}}catch{}}function DGe(e){return e.type===pGe}function kGe(e){return e.data.source===Ye.MouseInteraction}function Pi(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var n_;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(n_||(n_={}));const jGe=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function PGe(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(jGe.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const IGe=e=>t=>{if(!e.isEnabled())return;const n=OGe(t);if(!n)return;const r=t.name==="click",o=r?t.event:void 0;r&&e.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&_Ge(e.clickDetector,n,Pte(t.event)),jb(e,n)};function Ote(e,t){const n=ys.mirror.getId(e),r=n&&ys.mirror.getNode(n),o=r&&ys.mirror.getMeta(r),a=o&&NGe(o)?o:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(i=>i.type===n_.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:PGe(a.attributes)}}:{}}}function OGe(e){const{target:t,message:n}=RGe(e);return Pi({category:`ui.${e.name}`,...Ote(t,n)})}function RGe(e){const t=e.name==="click";let n,r=null;try{r=t?Pte(e.event):Ite(e.event),n=Is(r,{maxStringLength:200})||""}catch{n=""}return{target:r,message:n}}function NGe(e){return e.type===n_.Element}function BGe(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=FGe(t);n&&jb(e,n)}function FGe(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:a,target:i}=e;if(!i||MGe(i)||!a)return null;const s=t||r||o,c=a.length===1;if(!s&&c)return null;const l=Is(i,{maxStringLength:200})||"",u=Ote(i,l);return Pi({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:a}})}function MGe(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const LGe={resource:qGe,paint:zGe,navigation:HGe};function Vv(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function UGe(e){return e.map($Ge).filter(Boolean)}function $Ge(e){const t=LGe[e.entryType];return t?t(e):null}function Vh(e){return((io||qt.performance.timeOrigin)+e)/1e3}function zGe(e){const{duration:t,entryType:n,name:r,startTime:o}=e,a=Vh(o);return{type:n,name:r,start:a,end:a+t,data:void 0}}function HGe(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:a,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:h,transferSize:m,type:p}=e;return o===0?null:{type:`${t}.${p}`,start:Vh(h),end:Vh(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}function qGe(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:a,decodedBodySize:i,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Vh(a),end:Vh(o),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:s}}}function WGe(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return L6(e,"largest-contentful-paint",n)}function GGe(e){return e.sources!==void 0}function VGe(e){const t=[],n=[];for(const r of e.entries)if(GGe(r)){const o=[];for(const a of r.sources)if(a.node){n.push(a.node);const i=ys.mirror.getId(a.node);i&&o.push(i)}t.push({value:r.value,nodeIds:o.length?o:void 0})}return L6(e,"cumulative-layout-shift",n,t)}function KGe(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return L6(e,"first-input-delay",n)}function YGe(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return L6(e,"interaction-to-next-paint",n)}function L6(e,t,n,r){const o=e.value,a=e.rating,i=Vh(o);return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:a,nodeIds:n?n.map(s=>ys.mirror.getId(s)):void 0,attributions:r}}}function QGe(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(o=>{r.push(zh(o,n))}),r.push(Xee(Vv(WGe,e)),e7(Vv(VGe,e)),Jee(Vv(KGe,e)),Zee(Vv(YGe,e))),()=>{r.forEach(o=>o())}}const XGe='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function JGe(){const e=new Blob([XGe]);return URL.createObjectURL(e)}class d7 extends Error{constructor(){super(`Event buffer exceeded maximum size of ${o7}.`)}}class Rte{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>o7)throw new d7;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?u7(t):null}}class ZGe{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){He&&Ge.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((o,a)=>{const i=({data:s})=>{const c=s;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",i),!c.success){He&&Ge.error("Error in compression worker: ",c.response),a(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class eVe{constructor(t){this._worker=new ZGe(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=u7(t.timestamp);(!this._earliestTimestamp||no7?Promise.reject(new d7):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{He&&Ge.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class tVe{constructor(t){this._fallback=new Rte,this._compression=new eVe(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){He&&Ge.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,r=[];for(const o of t)r.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(o){He&&Ge.exception(o,"Failed to add events when switching buffers.")}}}function nVe({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=rVe(t);if(n)return n}return He&&Ge.info("Using simple buffer"),new Rte}function rVe(e){try{const t=e||oVe();if(!t)return;He&&Ge.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new tVe(n)}catch(t){He&&Ge.exception(t,"Failed to create compression worker")}}function oVe(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?JGe():""}function f7(){try{return"sessionStorage"in qt&&!!qt.sessionStorage}catch{return!1}}function aVe(e){iVe(),e.session=void 0}function iVe(){if(f7())try{qt.sessionStorage.removeItem(n7)}catch{}}function Nte(e){return e===void 0?!1:Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(He&&Ge.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function dVe(e,t){try{if(typeof t=="function"&&lVe(e))return t(e)}catch(n){return He&&Ge.exception(n,"An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function p7(e){return!e.type}function Ck(e){return e.type==="transaction"}function fVe(e){return e.type==="replay_event"}function UL(e){return e.type==="feedback"}function hVe(e){return(t,n)=>{if(!e.isEnabled()||!p7(t)&&!Ck(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Ck(t)){mVe(e,t);return}pVe(e,t)}}}function mVe(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function pVe(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||qh(()=>{e.sendBufferedReplayOrFlush()})}function gVe(e){return t=>{!e.isEnabled()||!p7(t)||yVe(e,t)}}function yVe(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=Pi({category:"replay.hydrate-error",data:{url:YZ()}});jb(e,r)}}function bVe(e){const t=gt();t&&t.on("beforeAddBreadcrumb",n=>vVe(e,n))}function vVe(e,t){if(!e.isEnabled()||!$te(t))return;const n=wVe(t);n&&jb(e,n)}function wVe(e){return!$te(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?EVe(e):Pi(e)}function EVe(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Pi(e);let n=!1;const r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>qv?(n=!0,`${o.slice(0,qv)}…`):o;if(typeof o=="object")try{const a=_i(o,7);return JSON.stringify(a).length>qv?(n=!0,`${JSON.stringify(a,null,2).slice(0,qv)}…`):a}catch{}return o});return Pi({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function $te(e){return!!e.category}function _Ve(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function xVe(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:it.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function CVe(e,t){return e.recordingMode!=="buffer"||t.message===r7||!t.exception||t.type?!1:Nte(e.getOptions().errorSampleRate)}function SVe(e){return Object.assign((t,n)=>e.isEnabled()?fVe(t)?(delete t.breadcrumbs,t):!p7(t)&&!Ck(t)&&!UL(t)||!e.checkAndHandleExpiredSession()?t:UL(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),xVe(e,t),t):_Ve(t,n)&&!e.getOptions()._experiments.captureExceptions?(He&&Ge.log("Ignoring error from rrweb internals",t),null):((CVe(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):t,{id:"Replay"})}function U6(e,t){return t.map(({type:n,start:r,end:o,name:a,data:i})=>{const s=e.throttledAddEvent({type:it.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:r,endTimestamp:o,data:i}}});return typeof s=="string"?Promise.resolve(null):s})}function TVe(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function AVe(e){return t=>{if(!e.isEnabled())return;const n=TVe(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(U6(e,[n]),!1)))}}function DVe(e,t){return He&&e.getOptions()._experiments.traceInternals?!1:tze(t,gt())}function zte(e,t){e.isEnabled()&&t!==null&&(DVe(e,t.name)||e.addUpdate(()=>(U6(e,[t]),!0)))}function $6(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Gte(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Hte(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function qte(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Gte(e)];if(!e)return[void 0]}catch(t){return He&&Ge.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return He&&Ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function r_(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Wte(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:a,statusCode:i,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:zn({method:a,statusCode:i,request:s,response:c})}}function Pg(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Xc(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:a}=kVe(n);return r.body=o,a&&a.length>0&&(r._meta={warnings:a}),r}function Sk(e,t){return Object.entries(e).reduce((n,[r,o])=>{const a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=o),n},{})}function Gte(e){return new URLSearchParams(e).toString()}function kVe(e){if(!e||typeof e!="string")return{body:e};const t=e.length>xL,n=jVe(e);if(t){const r=e.slice(0,xL);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function jVe(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function o_(e,t){const n=PVe(e);return Qc(n,t)}function PVe(e,t=qt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(qt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function IVe(e,t,n){try{const r=await RVe(e,t,n),o=Wte("resource.fetch",r);zte(n.replay,o)}catch(r){He&&Ge.exception(r,"Failed to capture fetch breadcrumb")}}function OVe(e,t){const{input:n,response:r}=t,o=n?Vte(n):void 0,a=$6(o),i=r?Hte(r.headers.get("content-length")):void 0;a!==void 0&&(e.data.request_body_size=a),i!==void 0&&(e.data.response_body_size=i)}async function RVe(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:a=r}=t,{url:i,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=o_(i,n.networkDetailAllowUrls)&&!o_(i,n.networkDetailDenyUrls),f=d?NVe(n,t.input,l):Pg(l),h=await BVe(d,n,t.response,u);return{startTimestamp:o,endTimestamp:a,url:i,method:s,statusCode:c,request:f,response:h}}function NVe({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?LVe(n,t):{};if(!e)return Xc(o,r,void 0);const a=Vte(n),[i,s]=qte(a),c=Xc(o,r,i);return s?r_(c,s):c}async function BVe(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&o!==void 0)return Pg(o);const a=r?Kte(r.headers,n):{};if(!r||!t&&o!==void 0)return Xc(a,o,void 0);const[i,s]=await MVe(r),c=FVe(i,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:a});return s?r_(c,s):c}function FVe(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const a=e&&e.length&&n===void 0?$6(e):n;return r?t?Xc(o,a,e):Xc(o,a,void 0):Pg(a)}catch(a){return He&&Ge.exception(a,"Failed to serialize response body"),Xc(o,n,void 0)}}async function MVe(e){const t=UVe(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await $Ve(t)]}catch(n){return He&&Ge.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function Vte(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function Kte(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function LVe(e,t){return e.length===1&&typeof e[0]!="string"?$L(e[0],t):e.length===2?$L(e[1],t):{}}function $L(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Kte(n,t):Array.isArray(n)?{}:Sk(n,t):{}}function UVe(e){try{return e.clone()}catch(t){He&&Ge.exception(t,"Failed to clone response body")}}function $Ve(e){return new Promise((t,n)=>{const r=qh(()=>n(new Error("Timeout while trying to read response body")),500);zVe(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function zVe(e){return await e.text()}async function HVe(e,t,n){try{const r=WVe(e,t,n),o=Wte("resource.xhr",r);zte(n.replay,o)}catch(r){He&&Ge.exception(r,"Failed to capture xhr breadcrumb")}}function qVe(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=$6(r),a=n.getResponseHeader("content-length")?Hte(n.getResponseHeader("content-length")):YVe(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),a!==void 0&&(e.data.response_body_size=a)}function WVe(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:a=r,input:i,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!s||!o_(c,n.networkDetailAllowUrls)||o_(c,n.networkDetailDenyUrls)){const x=Pg(d),E=Pg(f);return{startTimestamp:o,endTimestamp:a,url:c,method:l,statusCode:u,request:x,response:E}}const h=s[Eu],m=h?Sk(h.request_headers,n.networkRequestHeaders):{},p=Sk(GVe(s),n.networkResponseHeaders),[b,v]=n.networkCaptureBodies?qte(i):[void 0],[g,w]=n.networkCaptureBodies?VVe(s):[void 0],_=Xc(m,d,b),C=Xc(p,f,g);return{startTimestamp:o,endTimestamp:a,url:c,method:l,statusCode:u,request:v?r_(_,v):_,response:w?r_(C,w):C}}function GVe(e){const t=e.getAllResponseHeaders();return t?t.split(`\r -`).reduce((n,r)=>{const[o,a]=r.split(": ");return a&&(n[o.toLowerCase()]=a),n},{}):{}}function VVe(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return KVe(e.response,e.responseType)}catch(n){t.push(n)}return He&&Ge.warn("Failed to get xhr response body",...t),[void 0]}function KVe(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return He&&Ge.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return He&&Ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function YVe(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return $6(n)}catch{return}}function QVe(e){const t=gt();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:i}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(c,l)=>XVe(s,c,l))}catch{}}function XVe(e,t,n){if(t.data)try{JVe(t)&&eKe(n)&&(qVe(t,n),HVe(t,n,e)),ZVe(t)&&tKe(n)&&(OVe(t,n),IVe(t,n,e))}catch(r){He&&Ge.exception(r,"Error when enriching network breadcrumb")}}function JVe(e){return e.category==="xhr"}function ZVe(e){return e.category==="fetch"}function eKe(e){return e&&e.xhr}function tKe(e){return e&&e.response}function nKe(e){const t=gt();rte(IGe(e)),B6(AVe(e)),bVe(e),QVe(e);const n=SVe(e);L$e(n),t&&(t.on("beforeSendEvent",gVe(e)),t.on("afterSendEvent",hVe(e)),t.on("createDsc",r=>{const o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=o)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",(r,o)=>{const a=e.getSessionId();o&&o.includeReplay&&e.isEnabled()&&a&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=a)}))}async function rKe(e){try{return Promise.all(U6(e,[oKe(qt.performance.memory)]))}catch{return[]}}function oKe(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function aKe(e,t,n){let r,o,a;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return c(),r=e(),r}function c(){o!==void 0&&clearTimeout(o),a!==void 0&&clearTimeout(a),o=a=void 0}function l(){return o!==void 0||a!==void 0?s():r}function u(){return o&&clearTimeout(o),o=qh(s,t),i&&a===void 0&&(a=qh(s,i)),r}return u.cancel=c,u.flush=l,u}function iKe(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){He&&Ge.warn("Received replay event after session expired.");return}const o=r||!t;t=!0,e.clickDetector&&AGe(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!m7(e,n,o))return!0;if(!o)return!1;if(cKe(e,o),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){const a=e.eventBuffer.getEarliestTimestamp();a&&(He&&Ge.info(`Updating session start time to earliest event in buffer to ${new Date(a)}`),e.session.started=a,e.getOptions().stickySession&&h7(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function sKe(e){const t=e.getOptions();return{type:it.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function cKe(e,t){!t||!e.session||e.session.segmentId!==0||m7(e,sKe(e),!1)}function lKe(e,t,n,r){return Fd(mee(e,zP(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function uKe({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} -`;if(typeof e=="string")n=`${r}${e}`;else{const a=new TextEncoder().encode(r);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function dKe({client:e,scope:t,replayId:n,event:r}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a={event_id:n,integrations:o};e.emit("preprocessEvent",r,a);const i=await Iee(e.getOptions(),r,a,t,e,Pa());if(!i)return null;i.platform=i.platform||"javascript";const s=e.getSdkMetadata(),{name:c,version:l}=s&&s.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:l||"0.0.0"},i}async function fKe({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:a}){const i=uKe({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=gt(),f=Xt(),h=d&&d.getTransport(),m=d&&d.getDsn();if(!d||!h||!m||!a.sampled)return Rs({});const p={type:Kqe,replay_start_timestamp:u/1e3,timestamp:o/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled},b=await dKe({scope:f,client:d,replayId:t,event:p});if(!b)return d.recordDroppedEvent("event_processor","replay",p),He&&Ge.info("An event processor returned `null`, will not send event."),Rs({});delete b.sdkProcessingMetadata;const v=lKe(b,i,m,d.getOptions().tunnel);let g;try{g=await h.send(v)}catch(_){const C=new Error(r7);try{C.cause=_}catch{}throw C}if(typeof g.statusCode=="number"&&(g.statusCode<200||g.statusCode>=300))throw new Yte(g.statusCode);const w=gee({},g);if(pee(w,"replay"))throw new Qte(w);return g}class Yte extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Qte extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Xte(e,t={count:0,interval:eWe}){const{recordingData:n,options:r}=e;if(n.length)try{return await fKe(e),!0}catch(o){if(o instanceof Yte||o instanceof Qte)throw o;if(Ree("Replays",{_retryCount:t.count}),He&&r._experiments&&r._experiments.captureExceptions&&YP(o),t.count>=tWe){const a=new Error(`${r7} - max retries exceeded`);try{a.cause=o}catch{}throw a}return t.interval*=++t.count,new Promise((a,i)=>{qh(async()=>{try{await Xte(e,t),a(!0)}catch(s){i(s)}},t.interval)})}}const Jte="__THROTTLED",hKe="__SKIPPED";function mKe(e,t,n){const r=new Map,o=s=>{const c=s-n;r.forEach((l,u)=>{u[...r.values()].reduce((s,c)=>s+c,0);let i=!1;return(...s)=>{const c=Math.floor(Date.now()/1e3);if(o(c),a()>=t){const u=i;return i=!0,u?hKe:Jte}i=!1;const l=r.get(c)||0;return r.set(c,l+1),e(...s)}}class Dc{constructor({options:t,recordingOptions:n}){Dc.prototype.__init.call(this),Dc.prototype.__init2.call(this),Dc.prototype.__init3.call(this),Dc.prototype.__init4.call(this),Dc.prototype.__init5.call(this),Dc.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Yqe,sessionIdleExpire:Qqe},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=aKe(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=mKe((i,s)=>uVe(this,i,s),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),a=r?{threshold:Math.min(nWe,r),timeout:r,scrollTimeout:rWe,ignoreSelector:o?o.join(","):""}:void 0;if(a&&(this.clickDetector=new xGe(this,a)),He){const i=t._experiments;Ge.setConfig({captureExceptions:!!i.captureExceptions,traceInternals:!!i.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){He&&Ge.exception(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,o=n<=0&&r<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){He&&Ge.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",He&&Ge.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){He&&Ge.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){He&&Ge.info("Buffering is in progress, call `flush()` to save the replay");return}He&&Ge.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=RT({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){He&&Ge.info("Buffering is in progress, call `flush()` to save the replay");return}He&&Ge.infoTick("Starting replay in buffer mode");const t=RT({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=ys({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:Zqe},emit:iKe(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{He&&Ge.info(`Stopping Replay${n?` triggered by ${n}`:""}`),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,aVe(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),He&&Ge.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),He&&Ge.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();He&&Ge.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&xk(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${qt.location.pathname}${qt.location.hash}${qt.location.search}`,n=`${qt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===Jte){const o=Pi({category:"replay.throttled"});this.addUpdate(()=>!m7(this,{type:gGe,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Ur(),n=t&&gr(t),o=(n&&_t(n).data||{})[is];if(!(!n||!o||!["route","custom"].includes(o)))return _t(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=nVe({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=RT({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Mte(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{qt.document.addEventListener("visibilitychange",this._handleVisibilityChange),qt.addEventListener("blur",this._handleWindowBlur),qt.addEventListener("focus",this._handleWindowFocus),qt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(nKe(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=QGe(this)}_removeListeners(){try{qt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),qt.removeEventListener("blur",this._handleWindowBlur),qt.removeEventListener("focus",this._handleWindowFocus),qt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{qt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Pi({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Pi({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{BGe(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Fte(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){He&&Ge.info("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:it.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=UGe(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(U6(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&rthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await Xte({replayId:t,recordingData:a,segmentId:o,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=gt();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){He&&Ge.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const a=othis._options.maxReplayDuration+5e3;if(a||i){He&&Ge.info(`Session duration (${Math.floor(o/1e3)}s) is too ${a?"short":"long"}, not sending replay.`),a&&this._debouncedFlush();return}const s=this.eventBuffer;if(s&&this.session.segmentId===0&&!s.hasCheckout&&He&&Ge.info("Flushing initial segment without checkout."),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(c){He&&Ge.error(c)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&h7(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>o||a){const i=Pi({category:"replay.mutations",data:{count:n,limit:a}});this._createCustomBreadcrumb(i)}return a?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function qp(e,t){return[...e,...t].join(",")}function pKe({mask:e,unmask:t,block:n,unblock:r,ignore:o}){const a=['base[href="/"]'],i=qp(e,[".sentry-mask","[data-sentry-mask]"]),s=qp(t,[]);return{maskTextSelector:i,unmaskTextSelector:s,blockSelector:qp(n,[".sentry-block","[data-sentry-block]",...a]),unblockSelector:qp(r,[]),ignoreSelector:qp(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function gKe({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:a}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?a:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}const zL='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',yKe=["content-length","content-type","accept"];let HL=!1;const bKe=e=>new z6(e);class z6{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=Xqe,flushMaxDelay:n=Jqe,minReplayDuration:r=oWe,maxReplayDuration:o=CL,stickySession:a=!0,useCompression:i=!0,workerUrl:s,_experiments:c={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:f=750,mutationLimit:h=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:b=[],networkDetailDenyUrls:v=[],networkCaptureBodies:g=!0,networkRequestHeaders:w=[],networkResponseHeaders:_=[],mask:C=[],maskAttributes:x=["title","placeholder"],unmask:E=[],block:T=[],unblock:k=[],ignore:D=[],maskFn:R,beforeAddRecordingEvent:F,beforeErrorSampling:B}={}){this.name=z6.id;const j=pKe({mask:C,unmask:E,block:T,unblock:k,ignore:D});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:R,maskInputFn:R,maskAttributeFn:(P,O,I)=>gKe({maskAttributes:x,maskAllText:l,privacyOptions:j,key:P,value:O,el:I}),...j,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:P=>{try{P.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,aWe),maxReplayDuration:Math.min(o,CL),stickySession:a,useCompression:i,workerUrl:s,blockAllMedia:d,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:f,mutationLimit:h,slowClickTimeout:m,slowClickIgnoreSelectors:p,networkDetailAllowUrls:b,networkDetailDenyUrls:v,networkCaptureBodies:g,networkRequestHeaders:qL(w),networkResponseHeaders:qL(_),beforeAddRecordingEvent:F,beforeErrorSampling:B,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${zL}`:zL),this._isInitialized&&UM())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return HL}set _isInitialized(t){HL=t}afterAllSetup(t){!UM()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=vKe(this._initialOptions,t);this._replay=new Dc({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}z6.__initStatic();function vKe(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...zn(e)},o=GE(n.replaysSessionSampleRate),a=GE(n.replaysOnErrorSampleRate);return o==null&&a==null&&Gm(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(r.sessionSampleRate=o),a!=null&&(r.errorSampleRate=a),r}function qL(e){return[...yKe,...e.map(t=>t.toLowerCase())]}const WL=new WeakMap,NT=new Map,Tk={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function wKe(e,t){const{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:o,enableHTTPTimings:a,tracePropagationTargets:i}={traceFetch:Tk.traceFetch,traceXHR:Tk.traceXHR,...t},s=typeof o=="function"?o:u=>!0,c=u=>CKe(u,i),l={};n&&(e.addEventProcessor(u=>(u.type==="transaction"&&u.spans&&u.spans.forEach(d=>{if(d.op==="http.client"){const f=NT.get(d.span_id);f&&(d.timestamp=f/1e3,NT.delete(d.span_id))}}),u)),rUe(u=>{if(u.response){const d=WL.get(u.response);d&&u.endTimestamp&&NT.set(d,u.endTimestamp)}}),oee(u=>{const d=Dze(u,s,c,l);if(u.response&&u.fetchData.__span&&WL.set(u.response,u.fetchData.__span),d){const f=Zte(u.fetchData.url),h=f?ju(f).host:void 0;d.setAttributes({"http.url":f,"server.address":h})}a&&d&&GL(d)})),r&&ate(u=>{const d=SKe(u,s,c,l);a&&d&&GL(d)})}function EKe(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function GL(e){const{url:t}=_t(e).data||{};if(!t||typeof t!="string")return;const n=zh("resource",({entries:r})=>{r.forEach(o=>{EKe(o)&&o.name.endsWith(t)&&(xKe(o).forEach(i=>e.setAttribute(...i)),setTimeout(n))})})}function _Ke(e){let t="unknown",n="unknown",r="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function vi(e=0){return((io||performance.timeOrigin)+e)/1e3}function xKe(e){const{name:t,version:n}=_Ke(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),io?[...r,["http.request.redirect_start",vi(e.redirectStart)],["http.request.fetch_start",vi(e.fetchStart)],["http.request.domain_lookup_start",vi(e.domainLookupStart)],["http.request.domain_lookup_end",vi(e.domainLookupEnd)],["http.request.connect_start",vi(e.connectStart)],["http.request.secure_connection_start",vi(e.secureConnectionStart)],["http.request.connection_end",vi(e.connectEnd)],["http.request.request_start",vi(e.requestStart)],["http.request.response_start",vi(e.responseStart)],["http.request.response_end",vi(e.responseEnd)]]:r}function CKe(e,t){const n=et.location&&et.location.href;if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const a=r.origin===o;return t?Qc(r.toString(),t)||a&&Qc(r.pathname,t):a}else{const r=!!e.match(/^\/(?!\/)/);return t?Qc(e,t):r}}function SKe(e,t,n,r){const o=e.xhr,a=o&&o[Eu];if(!o||o.__sentry_own_request__||!a)return;const i=yl()&&t(a.url);if(e.endTimestamp&&i){const f=o.__sentry_xhr_span_id__;if(!f)return;const h=r[f];h&&a.status_code!==void 0&&(vee(h,a.status_code),h.end(),delete r[f]);return}const s=Zte(a.url),c=s?ju(s).host:void 0,l=!!Ur(),u=i&&l?zl({name:`${a.method} ${a.url}`,attributes:{type:"xhr","http.method":a.method,"http.url":s,url:a.url,"server.address":c,[rr]:"auto.http.browser",[sd]:"http.client"}}):new Km;o.__sentry_xhr_span_id__=u.spanContext().spanId,r[o.__sentry_xhr_span_id__]=u;const d=gt();return o.setRequestHeader&&n(a.url)&&d&&TKe(o,d,yl()&&l?u:void 0),u}function TKe(e,t,n){const r=Xt(),o=Pa(),{traceId:a,spanId:i,sampled:s,dsc:c}={...o.getPropagationContext(),...r.getPropagationContext()},l=n&&yl()?_ee(n):$P(a,i,s),u=hee(c||(n?Ld(n):O6(a,t)));AKe(e,l,u)}function AKe(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(tk,n)}catch{}}function Zte(e){try{return new URL(e,et.location.origin).href}catch{return}}function DKe(){et&&et.document?et.document.addEventListener("visibilitychange",()=>{const e=Ur();if(!e)return;const t=gr(e);if(et.document.hidden&&t){const n="cancelled",{op:r,status:o}=_t(t);ii&&ye.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:Vn,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ii&&ye.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const kKe="BrowserTracing",jKe={...B1,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Tk},PKe=(e={})=>{i$e();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:o,enableStandaloneClsSpans:a},beforeStartSpan:i,idleTimeout:s,finalTimeout:c,childSpanTimeout:l,markBackgroundSpan:u,traceFetch:d,traceXHR:f,shouldCreateSpanForRequest:h,enableHTTPTimings:m,instrumentPageLoad:p,instrumentNavigation:b}={...jKe,...e},v=SHe({recordClsStandaloneSpans:a||!1});t&&YHe(),r&&bt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?AHe():n&&THe(),o&&DHe();const g={name:void 0,source:void 0};function w(_,C){const x=C.op==="pageload",E=i?i(C):C,T=E.attributes||{};C.name!==E.name&&(T[is]="custom",E.attributes=T),g.name=E.name,g.source=T[is];const k=Pee(E,{idleTimeout:s,finalTimeout:c,childSpanTimeout:l,disableAutoFinish:x,beforeSpanEnd:R=>{v(),OHe(R,{recordClsOnPageloadSpan:!a})}});function D(){["interactive","complete"].includes(et.document.readyState)&&_.emit("idleSpanEnableAutoFinish",k)}return x&&et.document&&(et.document.addEventListener("readystatechange",()=>{D()}),D()),k}return{name:kKe,afterAllSetup(_){let C,x=et.location&&et.location.href;_.on("startNavigationSpan",E=>{gt()===_&&(C&&!_t(C).timestamp&&(ii&&ye.log(`[Tracing] Finishing current root span with op: ${_t(C).op}`),C.end()),C=w(_,{op:"navigation",...E}))}),_.on("startPageLoadSpan",(E,T={})=>{if(gt()!==_)return;C&&!_t(C).timestamp&&(ii&&ye.log(`[Tracing] Finishing current root span with op: ${_t(C).op}`),C.end());const k=T.sentryTrace||VL("sentry-trace"),D=T.baggage||VL("baggage"),R=AUe(k,D);Xt().setPropagationContext(R),C=w(_,{op:"pageload",...E})}),_.on("spanEnd",E=>{const T=_t(E).op;if(E!==gr(E)||T!=="navigation"&&T!=="pageload")return;const k=Xt(),D=k.getPropagationContext();k.setPropagationContext({...D,sampled:D.sampled!==void 0?D.sampled:Md(E),dsc:D.dsc||Ld(E)})}),et.location&&(p&&IKe(_,{name:et.location.pathname,startTime:io?io/1e3:void 0,attributes:{[is]:"url",[rr]:"auto.pageload.browser"}}),b&&B6(({to:E,from:T})=>{if(T===void 0&&x&&x.indexOf(E)!==-1){x=void 0;return}T!==E&&(x=void 0,OKe(_,{name:et.location.pathname,attributes:{[is]:"url",[rr]:"auto.navigation.browser"}}))})),u&&DKe(),o&&RKe(s,c,l,g),t&&XHe(),wKe(_,{traceFetch:d,traceXHR:f,tracePropagationTargets:_.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:h,enableHTTPTimings:m})}}};function IKe(e,t,n){e.emit("startPageLoadSpan",t,n),Xt().setTransactionName(t.name);const r=Ur();return(r&&_t(r).op)==="pageload"?r:void 0}function OKe(e,t){Pa().setPropagationContext(qE()),Xt().setPropagationContext(qE()),e.emit("startNavigationSpan",t),Xt().setTransactionName(t.name);const n=Ur();return(n&&_t(n).op)==="navigation"?n:void 0}function VL(e){const t=ULe(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function RKe(e,t,n,r){let o;const a=()=>{const i="ui.action.click",s=Ur(),c=s&&gr(s);if(c){const l=_t(c).op;if(["navigation","pageload"].includes(l)){ii&&ye.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(ak,"interactionInterrupted"),o.end(),o=void 0),!r.name){ii&&ye.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}o=Pee({name:r.name,op:i,attributes:{[is]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};et.document&&addEventListener("click",a,{once:!1,capture:!0})}function NKe(e){const t={...e};return Uee(t,"react"),Ree("react",{version:S.version}),Gqe(t)}NKe({dsn:"https://a66eef9c0aaa54aab451554089b9bebd@o4507939319906304.ingest.us.sentry.io/4507939325411328",integrations:[PKe(),bKe()],tracesSampleRate:1,tracePropagationTargets:["localhost",/^https:\/\/yourserver\.io\/api/],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1});BT.createRoot(document.getElementById("root")).render(y.jsxs(A.StrictMode,{children:[y.jsx(iie,{router:SLe}),y.jsx(jLe,{})]}));const KL=Object.freeze(Object.defineProperty({__proto__:null,default:yD},Symbol.toStringTag,{value:"Module"}));export{u2 as $,sB as A,de as B,nh as C,VYe as D,KYe as E,YYe as F,vSe as G,g0 as H,Wo as I,tQe as J,QYe as K,JYe as L,SQe as M,Ic as N,eQe as O,ZYe as P,YQ as Q,_o as R,nQe as S,cQe as T,UQe as U,CQe as V,$Qe as W,oQe as X,HQe as Y,Cy as Z,me as _,pde as a,fSe as a$,fQe as a0,wQe as a1,vQe as a2,sQe as a3,mQe as a4,jh as a5,hQe as a6,jQe as a7,xQe as a8,Da as a9,NQe as aA,IQe as aB,BQe as aC,LQe as aD,OQe as aE,RQe as aF,FQe as aG,kQe as aH,VSe as aI,JQ as aJ,D3 as aK,WYe as aL,GYe as aM,HQ as aN,z6e as aO,O4 as aP,H6e as aQ,q6e as aR,G6e as aS,I4 as aT,Y6e as aU,J6e as aV,tSe as aW,rSe as aX,aSe as aY,l6e as aZ,qQ as a_,dQe as aa,lQe as ab,uQe as ac,Sy as ad,d2 as ae,QQ as af,aQe as ag,iQe as ah,XYe as ai,yQe as aj,bQe as ak,f2 as al,rQe as am,F4 as an,EQe as ao,gQe as ap,pQe as aq,_Qe as ar,zQe as as,DQe as at,AQe as au,n3e as av,MQe as aw,PQe as ax,r3e as ay,TQe as az,gde as b,hSe as b0,cSe as b1,dSe as b2,wy as b3,Z2e as b4,zYe as b5,yde as c,Lq as d,j_ as e,oue as f,nde as g,z_ as h,Hn as i,Cs as j,Vg as k,tde as l,Ea as m,l1 as n,We as o,cd as p,gX as q,l2 as r,Xr as s,Ns as t,Au as u,ot as v,si as w,r2 as x,Ya as y,ai as z}; -//# sourceMappingURL=index-CTwKNzhK.js.map diff --git a/apps/web/public/assets/index-Ca5iS1sT.js b/apps/web/public/assets/index-Ca5iS1sT.js deleted file mode 100644 index 37b527fb..00000000 --- a/apps/web/public/assets/index-Ca5iS1sT.js +++ /dev/null @@ -1,2 +0,0 @@ -import{g as ce,a as ie,b as Be,c as fe,d as Qe,l as Ee,n as ge}from"./index-Bl6Lkf65.js";(function(){try{var A=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new A.Error().stack;e&&(A._sentryDebugIds=A._sentryDebugIds||{},A._sentryDebugIds[e]="b86dc40b-125a-4330-9414-50db45ec9f48",A._sentryDebugIdIdentifier="sentry-dbid-b86dc40b-125a-4330-9414-50db45ec9f48")}catch{}})();var RA="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const AA=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),eA=4;function UA(A){let e=0;function t(){return A[e++]<<8|A[e++]}let l=t(),n=1,r=[0,1];for(let D=1;D>--C&1}const c=31,i=2**c,B=i>>>1,g=B>>1,Q=i-1;let E=0;for(let D=0;D1;){let Z=p+Y>>>1;D>>1|s(),u=u<<1^B,a=(a^B)<<1|B|1;I=u,S=1+a-u}let P=l-4;return M.map(D=>{switch(D-P){case 3:return P+65792+(A[w++]<<16|A[w++]<<8|A[w++]);case 2:return P+256+(A[w++]<<8|A[w++]);case 1:return P+A[w++];default:return D-1}})}function NA(A){let e=0;return()=>A[e++]}function rA(A){return NA(UA(kA(A)))}function kA(A){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((n,r)=>e[n.charCodeAt(0)]=r);let t=A.length,l=new Uint8Array(6*t>>3);for(let n=0,r=0,o=0,w=0;n=8&&(l[r++]=w>>(o-=8));return l}function FA(A){return A&1?~A>>1:A>>1}function JA(A,e){let t=Array(A);for(let l=0,n=0;l{let e=H(A);if(e.length)return e})}function wA(A){let e=[];for(;;){let t=A();if(t==0)break;e.push(HA(t,A))}for(;;){let t=A()-1;if(t<0)break;e.push(OA(t,A))}return e.flat()}function O(A){let e=[];for(;;){let t=A(e.length);if(!t)break;e.push(t)}return e}function sA(A,e,t){let l=Array(A).fill().map(()=>[]);for(let n=0;nl[o].push(r));return l}function HA(A,e){let t=1+e(),l=e(),n=O(e);return sA(n.length,1+A,e).flatMap((o,w)=>{let[C,...f]=o;return Array(n[w]).fill().map((s,c)=>{let i=c*l;return[C+c*t,f.map(B=>B+i)]})})}function OA(A,e){let t=1+e();return sA(t,1+A,e).map(n=>[n[0],n.slice(1)])}function mA(A){let e=[],t=H(A);return n(l([]),[]),e;function l(r){let o=A(),w=O(()=>{let C=H(A).map(f=>t[f]);if(C.length)return l(C)});return{S:o,B:w,Q:r}}function n({S:r,B:o},w,C){if(!(r&4&&C===w[w.length-1])){r&2&&(C=w[w.length-1]),r&1&&e.push(w);for(let f of o)for(let s of f.Q)n(f,[...w,s],C)}}}function GA(A){return A.toString(16).toUpperCase().padStart(2,"0")}function CA(A){return`{${GA(A)}}`}function SA(A){let e=[];for(let t=0,l=A.length;t>24&255}function BA(A){return A&16777215}let j,tA,X,V;function YA(){let A=rA(VA);j=new Map(oA(A).flatMap((e,t)=>e.map(l=>[l,t+1<<24]))),tA=new Set(H(A)),X=new Map,V=new Map;for(let[e,t]of wA(A)){if(!tA.has(e)&&t.length==2){let[l,n]=t,r=V.get(l);r||(r=new Map,V.set(l,r)),r.set(n,e)}X.set(e,t.reverse())}}function fA(A){return A>=m&&A=L&&A=K&&ex&&e0&&n(x+f)}else{let o=X.get(r);o?t.push(...o):n(r)}if(!t.length)break;r=t.pop()}if(l&&e.length>1){let r=F(e[0]);for(let o=1;o0&&n>=o)o==0?(e.push(l,...t),t.length=0,l=w):t.push(w),n=o;else{let C=ZA(l,w);C>=0?l=C:n==0&&o==0?(e.push(l),l=w):(t.push(w),n=o)}}return l>=0&&e.push(l,...t),e}function EA(A){return QA(A).map(BA)}function jA(A){return TA(QA(A))}const nA=45,gA=".",MA=65039,DA=1,R=A=>Array.from(A);function G(A,e){return A.P.has(e)||A.Q.has(e)}class XA extends Array{get is_emoji(){return!0}}let v,uA,h,W,pA,U,T,d,aA,lA,q;function y(){if(v)return;let A=rA(RA);const e=()=>H(A),t=()=>new Set(e());v=new Map(wA(A)),uA=t(),h=e(),W=new Set(e().map(s=>h[s])),h=new Set(h),pA=t(),t();let l=oA(A),n=A();const r=()=>new Set(e().flatMap(s=>l[s]).concat(e()));U=O(s=>{let c=O(A).map(i=>i+96);if(c.length){let i=s>=n;c[0]-=32,c=N(c),i&&(c=`Restricted[${c}]`);let B=r(),g=r(),Q=!A();return{N:c,P:B,Q:g,M:Q,R:i}}}),T=t(),d=new Map;let o=e().concat(R(T)).sort((s,c)=>s-c);o.forEach((s,c)=>{let i=A(),B=o[c]=i?o[c-i]:{V:[],M:new Map};B.V.push(s),T.has(s)||d.set(s,B)});for(let{V:s,M:c}of new Set(d.values())){let i=[];for(let g of s){let Q=U.filter(M=>G(M,g)),E=i.find(({G:M})=>Q.some(I=>M.has(I)));E||(E={G:new Set,V:[]},i.push(E)),E.V.push(g),Q.forEach(M=>E.G.add(M))}let B=i.flatMap(g=>R(g.G));for(let{G:g,V:Q}of i){let E=new Set(B.filter(M=>!g.has(M)));for(let M of Q)c.set(M,E)}}let w=new Set,C=new Set;const f=s=>w.has(s)?C.add(s):w.add(s);for(let s of U){for(let c of s.P)f(c);for(let c of s.Q)f(c)}for(let s of w)!d.has(s)&&!C.has(s)&&d.set(s,DA);aA=new Set(R(w).concat(R(EA(w)))),lA=mA(A).map(s=>XA.from(s)).sort(PA),q=new Map;for(let s of lA){let c=[q];for(let i of s){let B=c.map(g=>{let Q=g.get(i);return Q||(Q=new Map,g.set(i,Q)),Q});i===MA?c.push(...B):c=B}for(let i of c)i.V=s}}function _(A){return(hA(A)?"":`${$(z([A]))} `)+CA(A)}function $(A){return`"${A}"‎`}function vA(A){if(A.length>=4&&A[2]==nA&&A[3]==nA)throw new Error(`invalid label extension: "${N(A.slice(0,4))}"`)}function WA(A){for(let t=A.lastIndexOf(95);t>0;)if(A[--t]!==95)throw new Error("underscore allowed only at start")}function qA(A){let e=A[0],t=AA.get(e);if(t)throw J(`leading ${t}`);let l=A.length,n=-1;for(let r=1;r{let r=SA(n),o={input:r,offset:l};l+=r.length+1;try{let w=o.tokens=le(r,e,t),C=w.length,f;if(!C)throw new Error("empty label");let s=o.output=w.flat();if(WA(s),!(o.emoji=C>1||w[0].is_emoji)&&s.every(i=>i<128))vA(s),f="ASCII";else{let i=w.flatMap(B=>B.is_emoji?[]:B);if(!i.length)f="Emoji";else{if(h.has(s[0]))throw J("leading combining mark");for(let Q=1;Qo.has(w)):R(o),!t.length)return}else l.push(n)}if(t){for(let n of t)if(l.every(r=>G(n,r)))throw new Error(`whole-script confusable: ${A.N}/${n.N}`)}}function ee(A){let e=U;for(let t of A){let l=e.filter(n=>G(n,t));if(!l.length)throw U.some(n=>G(n,t))?dA(e[0],t):IA(t);if(e=l,l.length==1)break}return e}function te(A){return A.map(({input:e,error:t,output:l})=>{if(t){let n=t.message;throw new Error(A.length==1?n:`Invalid label ${$(z(e))}: ${n}`)}return N(l)}).join(gA)}function IA(A){return new Error(`disallowed character: ${_(A)}`)}function dA(A,e){let t=_(e),l=U.find(n=>n.P.has(e));return l&&(t=`${l.N} ${t}`),new Error(`illegal mixture: ${A.N} + ${t}`)}function J(A){return new Error(`illegal placement: ${A}`)}function ne(A,e){for(let t of e)if(!G(A,t))throw dA(A,t);if(A.M){let t=EA(e);for(let l=1,n=t.length;leA)throw new Error(`excessive non-spacing marks: ${$(z(t.slice(l-1,r)))} (${r-l}/${eA})`);l=r}}}function le(A,e,t){let l=[],n=[];for(A=A.slice().reverse();A.length;){let r=oe(A);if(r)n.length&&(l.push(e(n)),n=[]),l.push(t(r));else{let o=A.pop();if(aA.has(o))n.push(o);else{let w=v.get(o);if(w)n.push(...w);else if(!uA.has(o))throw IA(o)}}}return n.length&&l.push(e(n)),l}function re(A){return A.filter(e=>e!=MA)}function oe(A,e){let t=q,l,n=A.length;for(;n&&(t=t.get(A[--n]),!!t);){let{V:r}=t;r&&(l=r,A.length=n)}return l}function we(A){return _A(A)}export{ce as getEnsAddress,ie as getEnsAvatar,Be as getEnsName,fe as getEnsResolver,Qe as getEnsText,Ee as labelhash,ge as namehash,we as normalize}; -//# sourceMappingURL=index-Ca5iS1sT.js.map diff --git a/apps/web/public/assets/index-Cd-8U-EF.js b/apps/web/public/assets/index-Cd-8U-EF.js deleted file mode 100644 index 4f5e5cfe..00000000 --- a/apps/web/public/assets/index-Cd-8U-EF.js +++ /dev/null @@ -1,13 +0,0 @@ -import{b4 as Ks,o as ee,t as mn,q as ai,b5 as gu,p as mu}from"./index-Cl-fQh5M.js";import{d as wu,e as yu}from"./hooks.module-D456YPrV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0c7731bb-cc31-4573-a6f2-64400df96250",e._sentryDebugIdIdentifier="sentry-dbid-0c7731bb-cc31-4573-a6f2-64400df96250")}catch{}})();var gc={},dn={},ci={};Object.defineProperty(ci,"__esModule",{value:!0});ci.walletLogo=void 0;const bu=(e,t)=>{let r;switch(e){case"standard":return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return r=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};ci.walletLogo=bu;var li={};Object.defineProperty(li,"__esModule",{value:!0});li.LINK_API_URL=void 0;li.LINK_API_URL="https://www.walletlink.org";var X={},Qs={exports:{}};Qs.exports;(function(e){(function(t,r){function n(x,o){if(!x)throw new Error(o||"Assertion failed")}function i(x,o){x.super_=o;var f=function(){};f.prototype=o.prototype,x.prototype=new f,x.prototype.constructor=x}function s(x,o,f){if(s.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,x!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(x||0,o||10,f||"be"))}typeof t=="object"?t.exports=s:r.BN=s,s.BN=s,s.wordSize=26;var c;try{typeof window<"u"&&typeof window.Buffer<"u"?c=window.Buffer:c=Ks.Buffer}catch{}s.isBN=function(o){return o instanceof s?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===s.wordSize&&Array.isArray(o.words)},s.max=function(o,f){return o.cmp(f)>0?o:f},s.min=function(o,f){return o.cmp(f)<0?o:f},s.prototype._init=function(o,f,w){if(typeof o=="number")return this._initNumber(o,f,w);if(typeof o=="object")return this._initArray(o,f,w);f==="hex"&&(f=16),n(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var b=0;o[0]==="-"&&(b++,this.negative=1),b=0;b-=3)k=o[b]|o[b-1]<<8|o[b-2]<<16,this.words[S]|=k<>>26-N&67108863,N+=24,N>=26&&(N-=26,S++);else if(w==="le")for(b=0,S=0;b>>26-N&67108863,N+=24,N>=26&&(N-=26,S++);return this._strip()};function a(x,o){var f=x.charCodeAt(o);if(f>=48&&f<=57)return f-48;if(f>=65&&f<=70)return f-55;if(f>=97&&f<=102)return f-87;n(!1,"Invalid character in "+x)}function d(x,o,f){var w=a(x,f);return f-1>=o&&(w|=a(x,f-1)<<4),w}s.prototype._parseHex=function(o,f,w){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var b=0;b=f;b-=2)N=d(o,f,b)<=18?(S-=18,k+=1,this.words[k]|=N>>>26):S+=8;else{var v=o.length-f;for(b=v%2===0?f+1:f;b=18?(S-=18,k+=1,this.words[k]|=N>>>26):S+=8}this._strip()};function p(x,o,f,w){for(var b=0,S=0,k=Math.min(x.length,f),N=o;N=49?S=v-49+10:v>=17?S=v-17+10:S=v,n(v>=0&&S1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=y}catch{s.prototype.inspect=y}else s.prototype.inspect=y;function y(){return(this.red?""}var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],L=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(o,f){o=o||10,f=f|0||1;var w;if(o===16||o==="hex"){w="";for(var b=0,S=0,k=0;k>>24-b&16777215,b+=2,b>=26&&(b-=26,k--),S!==0||k!==this.length-1?w=_[6-v.length]+v+w:w=v+w}for(S!==0&&(w=S.toString(16)+w);w.length%f!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(o===(o|0)&&o>=2&&o<=36){var u=A[o],R=L[o];w="";var K=this.clone();for(K.negative=0;!K.isZero();){var J=K.modrn(R).toString(o);K=K.idivn(R),K.isZero()?w=J+w:w=_[u-J.length]+J+w}for(this.isZero()&&(w="0"+w);w.length%f!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},s.prototype.toJSON=function(){return this.toString(16,2)},c&&(s.prototype.toBuffer=function(o,f){return this.toArrayLike(c,o,f)}),s.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)};var H=function(o,f){return o.allocUnsafe?o.allocUnsafe(f):new o(f)};s.prototype.toArrayLike=function(o,f,w){this._strip();var b=this.byteLength(),S=w||Math.max(1,b);n(b<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0");var k=H(o,S),N=f==="le"?"LE":"BE";return this["_toArrayLike"+N](k,b),k},s.prototype._toArrayLikeLE=function(o,f){for(var w=0,b=0,S=0,k=0;S>8&255),w>16&255),k===6?(w>24&255),b=0,k=0):(b=N>>>24,k+=2)}if(w=0&&(o[w--]=N>>8&255),w>=0&&(o[w--]=N>>16&255),k===6?(w>=0&&(o[w--]=N>>24&255),b=0,k=0):(b=N>>>24,k+=2)}if(w>=0)for(o[w--]=b;w>=0;)o[w--]=0},Math.clz32?s.prototype._countBits=function(o){return 32-Math.clz32(o)}:s.prototype._countBits=function(o){var f=o,w=0;return f>=4096&&(w+=13,f>>>=13),f>=64&&(w+=7,f>>>=7),f>=8&&(w+=4,f>>>=4),f>=2&&(w+=2,f>>>=2),w+f},s.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,w=0;return f&8191||(w+=13,f>>>=13),f&127||(w+=7,f>>>=7),f&15||(w+=4,f>>>=4),f&3||(w+=2,f>>>=2),f&1||w++,w},s.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function F(x){for(var o=new Array(x.bitLength()),f=0;f>>b&1}return o}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;fo.length?this.clone().ior(o):o.clone().ior(this)},s.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},s.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var w=0;wo.length?this.clone().iand(o):o.clone().iand(this)},s.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},s.prototype.iuxor=function(o){var f,w;this.length>o.length?(f=this,w=o):(f=o,w=this);for(var b=0;bo.length?this.clone().ixor(o):o.clone().ixor(this)},s.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},s.prototype.inotn=function(o){n(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,w=o%26;this._expand(f),w>0&&f--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-w),this._strip()},s.prototype.notn=function(o){return this.clone().inotn(o)},s.prototype.setn=function(o,f){n(typeof o=="number"&&o>=0);var w=o/26|0,b=o%26;return this._expand(w+1),f?this.words[w]=this.words[w]|1<o.length?(w=this,b=o):(w=o,b=this);for(var S=0,k=0;k>>26;for(;S!==0&&k>>26;if(this.length=w.length,S!==0)this.words[this.length]=S,this.length++;else if(w!==this)for(;ko.length?this.clone().iadd(o):o.clone().iadd(this)},s.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var w=this.cmp(o);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,S;w>0?(b=this,S=o):(b=o,S=this);for(var k=0,N=0;N>26,this.words[N]=f&67108863;for(;k!==0&&N>26,this.words[N]=f&67108863;if(k===0&&N>>26,K=v&67108863,J=Math.min(u,o.length-1),T=Math.max(0,u-x.length+1);T<=J;T++){var $=u-T|0;b=x.words[$]|0,S=o.words[T]|0,k=b*S+K,R+=k/67108864|0,K=k&67108863}f.words[u]=K|0,v=R|0}return v!==0?f.words[u]=v|0:f.length--,f._strip()}var O=function(o,f,w){var b=o.words,S=f.words,k=w.words,N=0,v,u,R,K=b[0]|0,J=K&8191,T=K>>>13,$=b[1]|0,W=$&8191,Z=$>>>13,le=b[2]|0,C=le&8191,M=le>>>13,q=b[3]|0,G=q&8191,se=q>>>13,ue=b[4]|0,re=ue&8191,be=ue>>>13,dt=b[5]|0,Se=dt&8191,Ee=dt>>>13,Je=b[6]|0,ve=Je&8191,Re=Je>>>13,Qe=b[7]|0,_e=Qe&8191,m=Qe>>>13,l=b[8]|0,h=l&8191,E=l>>>13,P=b[9]|0,D=P&8191,U=P>>>13,he=S[0]|0,ae=he&8191,ie=he>>>13,Ce=S[1]|0,ne=Ce&8191,Me=Ce>>>13,Sr=S[2]|0,ke=Sr&8191,xe=Sr>>>13,Rr=S[3]|0,Ie=Rr&8191,Ae=Rr>>>13,Cr=S[4]|0,Te=Cr&8191,Ne=Cr>>>13,Mr=S[5]|0,Le=Mr&8191,Be=Mr>>>13,kr=S[6]|0,Pe=kr&8191,Oe=kr>>>13,xr=S[7]|0,$e=xr&8191,Fe=xr>>>13,Ir=S[8]|0,De=Ir&8191,je=Ir>>>13,Ar=S[9]|0,Ue=Ar&8191,He=Ar>>>13;w.negative=o.negative^f.negative,w.length=19,v=Math.imul(J,ae),u=Math.imul(J,ie),u=u+Math.imul(T,ae)|0,R=Math.imul(T,ie);var Gt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,v=Math.imul(W,ae),u=Math.imul(W,ie),u=u+Math.imul(Z,ae)|0,R=Math.imul(Z,ie),v=v+Math.imul(J,ne)|0,u=u+Math.imul(J,Me)|0,u=u+Math.imul(T,ne)|0,R=R+Math.imul(T,Me)|0;var Jt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,v=Math.imul(C,ae),u=Math.imul(C,ie),u=u+Math.imul(M,ae)|0,R=Math.imul(M,ie),v=v+Math.imul(W,ne)|0,u=u+Math.imul(W,Me)|0,u=u+Math.imul(Z,ne)|0,R=R+Math.imul(Z,Me)|0,v=v+Math.imul(J,ke)|0,u=u+Math.imul(J,xe)|0,u=u+Math.imul(T,ke)|0,R=R+Math.imul(T,xe)|0;var Zt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,v=Math.imul(G,ae),u=Math.imul(G,ie),u=u+Math.imul(se,ae)|0,R=Math.imul(se,ie),v=v+Math.imul(C,ne)|0,u=u+Math.imul(C,Me)|0,u=u+Math.imul(M,ne)|0,R=R+Math.imul(M,Me)|0,v=v+Math.imul(W,ke)|0,u=u+Math.imul(W,xe)|0,u=u+Math.imul(Z,ke)|0,R=R+Math.imul(Z,xe)|0,v=v+Math.imul(J,Ie)|0,u=u+Math.imul(J,Ae)|0,u=u+Math.imul(T,Ie)|0,R=R+Math.imul(T,Ae)|0;var Kt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,v=Math.imul(re,ae),u=Math.imul(re,ie),u=u+Math.imul(be,ae)|0,R=Math.imul(be,ie),v=v+Math.imul(G,ne)|0,u=u+Math.imul(G,Me)|0,u=u+Math.imul(se,ne)|0,R=R+Math.imul(se,Me)|0,v=v+Math.imul(C,ke)|0,u=u+Math.imul(C,xe)|0,u=u+Math.imul(M,ke)|0,R=R+Math.imul(M,xe)|0,v=v+Math.imul(W,Ie)|0,u=u+Math.imul(W,Ae)|0,u=u+Math.imul(Z,Ie)|0,R=R+Math.imul(Z,Ae)|0,v=v+Math.imul(J,Te)|0,u=u+Math.imul(J,Ne)|0,u=u+Math.imul(T,Te)|0,R=R+Math.imul(T,Ne)|0;var Qt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v=Math.imul(Se,ae),u=Math.imul(Se,ie),u=u+Math.imul(Ee,ae)|0,R=Math.imul(Ee,ie),v=v+Math.imul(re,ne)|0,u=u+Math.imul(re,Me)|0,u=u+Math.imul(be,ne)|0,R=R+Math.imul(be,Me)|0,v=v+Math.imul(G,ke)|0,u=u+Math.imul(G,xe)|0,u=u+Math.imul(se,ke)|0,R=R+Math.imul(se,xe)|0,v=v+Math.imul(C,Ie)|0,u=u+Math.imul(C,Ae)|0,u=u+Math.imul(M,Ie)|0,R=R+Math.imul(M,Ae)|0,v=v+Math.imul(W,Te)|0,u=u+Math.imul(W,Ne)|0,u=u+Math.imul(Z,Te)|0,R=R+Math.imul(Z,Ne)|0,v=v+Math.imul(J,Le)|0,u=u+Math.imul(J,Be)|0,u=u+Math.imul(T,Le)|0,R=R+Math.imul(T,Be)|0;var Yt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,v=Math.imul(ve,ae),u=Math.imul(ve,ie),u=u+Math.imul(Re,ae)|0,R=Math.imul(Re,ie),v=v+Math.imul(Se,ne)|0,u=u+Math.imul(Se,Me)|0,u=u+Math.imul(Ee,ne)|0,R=R+Math.imul(Ee,Me)|0,v=v+Math.imul(re,ke)|0,u=u+Math.imul(re,xe)|0,u=u+Math.imul(be,ke)|0,R=R+Math.imul(be,xe)|0,v=v+Math.imul(G,Ie)|0,u=u+Math.imul(G,Ae)|0,u=u+Math.imul(se,Ie)|0,R=R+Math.imul(se,Ae)|0,v=v+Math.imul(C,Te)|0,u=u+Math.imul(C,Ne)|0,u=u+Math.imul(M,Te)|0,R=R+Math.imul(M,Ne)|0,v=v+Math.imul(W,Le)|0,u=u+Math.imul(W,Be)|0,u=u+Math.imul(Z,Le)|0,R=R+Math.imul(Z,Be)|0,v=v+Math.imul(J,Pe)|0,u=u+Math.imul(J,Oe)|0,u=u+Math.imul(T,Pe)|0,R=R+Math.imul(T,Oe)|0;var Xt=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,v=Math.imul(_e,ae),u=Math.imul(_e,ie),u=u+Math.imul(m,ae)|0,R=Math.imul(m,ie),v=v+Math.imul(ve,ne)|0,u=u+Math.imul(ve,Me)|0,u=u+Math.imul(Re,ne)|0,R=R+Math.imul(Re,Me)|0,v=v+Math.imul(Se,ke)|0,u=u+Math.imul(Se,xe)|0,u=u+Math.imul(Ee,ke)|0,R=R+Math.imul(Ee,xe)|0,v=v+Math.imul(re,Ie)|0,u=u+Math.imul(re,Ae)|0,u=u+Math.imul(be,Ie)|0,R=R+Math.imul(be,Ae)|0,v=v+Math.imul(G,Te)|0,u=u+Math.imul(G,Ne)|0,u=u+Math.imul(se,Te)|0,R=R+Math.imul(se,Ne)|0,v=v+Math.imul(C,Le)|0,u=u+Math.imul(C,Be)|0,u=u+Math.imul(M,Le)|0,R=R+Math.imul(M,Be)|0,v=v+Math.imul(W,Pe)|0,u=u+Math.imul(W,Oe)|0,u=u+Math.imul(Z,Pe)|0,R=R+Math.imul(Z,Oe)|0,v=v+Math.imul(J,$e)|0,u=u+Math.imul(J,Fe)|0,u=u+Math.imul(T,$e)|0,R=R+Math.imul(T,Fe)|0;var er=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(er>>>26)|0,er&=67108863,v=Math.imul(h,ae),u=Math.imul(h,ie),u=u+Math.imul(E,ae)|0,R=Math.imul(E,ie),v=v+Math.imul(_e,ne)|0,u=u+Math.imul(_e,Me)|0,u=u+Math.imul(m,ne)|0,R=R+Math.imul(m,Me)|0,v=v+Math.imul(ve,ke)|0,u=u+Math.imul(ve,xe)|0,u=u+Math.imul(Re,ke)|0,R=R+Math.imul(Re,xe)|0,v=v+Math.imul(Se,Ie)|0,u=u+Math.imul(Se,Ae)|0,u=u+Math.imul(Ee,Ie)|0,R=R+Math.imul(Ee,Ae)|0,v=v+Math.imul(re,Te)|0,u=u+Math.imul(re,Ne)|0,u=u+Math.imul(be,Te)|0,R=R+Math.imul(be,Ne)|0,v=v+Math.imul(G,Le)|0,u=u+Math.imul(G,Be)|0,u=u+Math.imul(se,Le)|0,R=R+Math.imul(se,Be)|0,v=v+Math.imul(C,Pe)|0,u=u+Math.imul(C,Oe)|0,u=u+Math.imul(M,Pe)|0,R=R+Math.imul(M,Oe)|0,v=v+Math.imul(W,$e)|0,u=u+Math.imul(W,Fe)|0,u=u+Math.imul(Z,$e)|0,R=R+Math.imul(Z,Fe)|0,v=v+Math.imul(J,De)|0,u=u+Math.imul(J,je)|0,u=u+Math.imul(T,De)|0,R=R+Math.imul(T,je)|0;var tr=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(tr>>>26)|0,tr&=67108863,v=Math.imul(D,ae),u=Math.imul(D,ie),u=u+Math.imul(U,ae)|0,R=Math.imul(U,ie),v=v+Math.imul(h,ne)|0,u=u+Math.imul(h,Me)|0,u=u+Math.imul(E,ne)|0,R=R+Math.imul(E,Me)|0,v=v+Math.imul(_e,ke)|0,u=u+Math.imul(_e,xe)|0,u=u+Math.imul(m,ke)|0,R=R+Math.imul(m,xe)|0,v=v+Math.imul(ve,Ie)|0,u=u+Math.imul(ve,Ae)|0,u=u+Math.imul(Re,Ie)|0,R=R+Math.imul(Re,Ae)|0,v=v+Math.imul(Se,Te)|0,u=u+Math.imul(Se,Ne)|0,u=u+Math.imul(Ee,Te)|0,R=R+Math.imul(Ee,Ne)|0,v=v+Math.imul(re,Le)|0,u=u+Math.imul(re,Be)|0,u=u+Math.imul(be,Le)|0,R=R+Math.imul(be,Be)|0,v=v+Math.imul(G,Pe)|0,u=u+Math.imul(G,Oe)|0,u=u+Math.imul(se,Pe)|0,R=R+Math.imul(se,Oe)|0,v=v+Math.imul(C,$e)|0,u=u+Math.imul(C,Fe)|0,u=u+Math.imul(M,$e)|0,R=R+Math.imul(M,Fe)|0,v=v+Math.imul(W,De)|0,u=u+Math.imul(W,je)|0,u=u+Math.imul(Z,De)|0,R=R+Math.imul(Z,je)|0,v=v+Math.imul(J,Ue)|0,u=u+Math.imul(J,He)|0,u=u+Math.imul(T,Ue)|0,R=R+Math.imul(T,He)|0;var rr=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(rr>>>26)|0,rr&=67108863,v=Math.imul(D,ne),u=Math.imul(D,Me),u=u+Math.imul(U,ne)|0,R=Math.imul(U,Me),v=v+Math.imul(h,ke)|0,u=u+Math.imul(h,xe)|0,u=u+Math.imul(E,ke)|0,R=R+Math.imul(E,xe)|0,v=v+Math.imul(_e,Ie)|0,u=u+Math.imul(_e,Ae)|0,u=u+Math.imul(m,Ie)|0,R=R+Math.imul(m,Ae)|0,v=v+Math.imul(ve,Te)|0,u=u+Math.imul(ve,Ne)|0,u=u+Math.imul(Re,Te)|0,R=R+Math.imul(Re,Ne)|0,v=v+Math.imul(Se,Le)|0,u=u+Math.imul(Se,Be)|0,u=u+Math.imul(Ee,Le)|0,R=R+Math.imul(Ee,Be)|0,v=v+Math.imul(re,Pe)|0,u=u+Math.imul(re,Oe)|0,u=u+Math.imul(be,Pe)|0,R=R+Math.imul(be,Oe)|0,v=v+Math.imul(G,$e)|0,u=u+Math.imul(G,Fe)|0,u=u+Math.imul(se,$e)|0,R=R+Math.imul(se,Fe)|0,v=v+Math.imul(C,De)|0,u=u+Math.imul(C,je)|0,u=u+Math.imul(M,De)|0,R=R+Math.imul(M,je)|0,v=v+Math.imul(W,Ue)|0,u=u+Math.imul(W,He)|0,u=u+Math.imul(Z,Ue)|0,R=R+Math.imul(Z,He)|0;var nr=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(nr>>>26)|0,nr&=67108863,v=Math.imul(D,ke),u=Math.imul(D,xe),u=u+Math.imul(U,ke)|0,R=Math.imul(U,xe),v=v+Math.imul(h,Ie)|0,u=u+Math.imul(h,Ae)|0,u=u+Math.imul(E,Ie)|0,R=R+Math.imul(E,Ae)|0,v=v+Math.imul(_e,Te)|0,u=u+Math.imul(_e,Ne)|0,u=u+Math.imul(m,Te)|0,R=R+Math.imul(m,Ne)|0,v=v+Math.imul(ve,Le)|0,u=u+Math.imul(ve,Be)|0,u=u+Math.imul(Re,Le)|0,R=R+Math.imul(Re,Be)|0,v=v+Math.imul(Se,Pe)|0,u=u+Math.imul(Se,Oe)|0,u=u+Math.imul(Ee,Pe)|0,R=R+Math.imul(Ee,Oe)|0,v=v+Math.imul(re,$e)|0,u=u+Math.imul(re,Fe)|0,u=u+Math.imul(be,$e)|0,R=R+Math.imul(be,Fe)|0,v=v+Math.imul(G,De)|0,u=u+Math.imul(G,je)|0,u=u+Math.imul(se,De)|0,R=R+Math.imul(se,je)|0,v=v+Math.imul(C,Ue)|0,u=u+Math.imul(C,He)|0,u=u+Math.imul(M,Ue)|0,R=R+Math.imul(M,He)|0;var ir=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(ir>>>26)|0,ir&=67108863,v=Math.imul(D,Ie),u=Math.imul(D,Ae),u=u+Math.imul(U,Ie)|0,R=Math.imul(U,Ae),v=v+Math.imul(h,Te)|0,u=u+Math.imul(h,Ne)|0,u=u+Math.imul(E,Te)|0,R=R+Math.imul(E,Ne)|0,v=v+Math.imul(_e,Le)|0,u=u+Math.imul(_e,Be)|0,u=u+Math.imul(m,Le)|0,R=R+Math.imul(m,Be)|0,v=v+Math.imul(ve,Pe)|0,u=u+Math.imul(ve,Oe)|0,u=u+Math.imul(Re,Pe)|0,R=R+Math.imul(Re,Oe)|0,v=v+Math.imul(Se,$e)|0,u=u+Math.imul(Se,Fe)|0,u=u+Math.imul(Ee,$e)|0,R=R+Math.imul(Ee,Fe)|0,v=v+Math.imul(re,De)|0,u=u+Math.imul(re,je)|0,u=u+Math.imul(be,De)|0,R=R+Math.imul(be,je)|0,v=v+Math.imul(G,Ue)|0,u=u+Math.imul(G,He)|0,u=u+Math.imul(se,Ue)|0,R=R+Math.imul(se,He)|0;var sr=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(sr>>>26)|0,sr&=67108863,v=Math.imul(D,Te),u=Math.imul(D,Ne),u=u+Math.imul(U,Te)|0,R=Math.imul(U,Ne),v=v+Math.imul(h,Le)|0,u=u+Math.imul(h,Be)|0,u=u+Math.imul(E,Le)|0,R=R+Math.imul(E,Be)|0,v=v+Math.imul(_e,Pe)|0,u=u+Math.imul(_e,Oe)|0,u=u+Math.imul(m,Pe)|0,R=R+Math.imul(m,Oe)|0,v=v+Math.imul(ve,$e)|0,u=u+Math.imul(ve,Fe)|0,u=u+Math.imul(Re,$e)|0,R=R+Math.imul(Re,Fe)|0,v=v+Math.imul(Se,De)|0,u=u+Math.imul(Se,je)|0,u=u+Math.imul(Ee,De)|0,R=R+Math.imul(Ee,je)|0,v=v+Math.imul(re,Ue)|0,u=u+Math.imul(re,He)|0,u=u+Math.imul(be,Ue)|0,R=R+Math.imul(be,He)|0;var or=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(or>>>26)|0,or&=67108863,v=Math.imul(D,Le),u=Math.imul(D,Be),u=u+Math.imul(U,Le)|0,R=Math.imul(U,Be),v=v+Math.imul(h,Pe)|0,u=u+Math.imul(h,Oe)|0,u=u+Math.imul(E,Pe)|0,R=R+Math.imul(E,Oe)|0,v=v+Math.imul(_e,$e)|0,u=u+Math.imul(_e,Fe)|0,u=u+Math.imul(m,$e)|0,R=R+Math.imul(m,Fe)|0,v=v+Math.imul(ve,De)|0,u=u+Math.imul(ve,je)|0,u=u+Math.imul(Re,De)|0,R=R+Math.imul(Re,je)|0,v=v+Math.imul(Se,Ue)|0,u=u+Math.imul(Se,He)|0,u=u+Math.imul(Ee,Ue)|0,R=R+Math.imul(Ee,He)|0;var ss=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(ss>>>26)|0,ss&=67108863,v=Math.imul(D,Pe),u=Math.imul(D,Oe),u=u+Math.imul(U,Pe)|0,R=Math.imul(U,Oe),v=v+Math.imul(h,$e)|0,u=u+Math.imul(h,Fe)|0,u=u+Math.imul(E,$e)|0,R=R+Math.imul(E,Fe)|0,v=v+Math.imul(_e,De)|0,u=u+Math.imul(_e,je)|0,u=u+Math.imul(m,De)|0,R=R+Math.imul(m,je)|0,v=v+Math.imul(ve,Ue)|0,u=u+Math.imul(ve,He)|0,u=u+Math.imul(Re,Ue)|0,R=R+Math.imul(Re,He)|0;var os=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(os>>>26)|0,os&=67108863,v=Math.imul(D,$e),u=Math.imul(D,Fe),u=u+Math.imul(U,$e)|0,R=Math.imul(U,Fe),v=v+Math.imul(h,De)|0,u=u+Math.imul(h,je)|0,u=u+Math.imul(E,De)|0,R=R+Math.imul(E,je)|0,v=v+Math.imul(_e,Ue)|0,u=u+Math.imul(_e,He)|0,u=u+Math.imul(m,Ue)|0,R=R+Math.imul(m,He)|0;var as=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(as>>>26)|0,as&=67108863,v=Math.imul(D,De),u=Math.imul(D,je),u=u+Math.imul(U,De)|0,R=Math.imul(U,je),v=v+Math.imul(h,Ue)|0,u=u+Math.imul(h,He)|0,u=u+Math.imul(E,Ue)|0,R=R+Math.imul(E,He)|0;var cs=(N+v|0)+((u&8191)<<13)|0;N=(R+(u>>>13)|0)+(cs>>>26)|0,cs&=67108863,v=Math.imul(D,Ue),u=Math.imul(D,He),u=u+Math.imul(U,Ue)|0,R=Math.imul(U,He);var ls=(N+v|0)+((u&8191)<<13)|0;return N=(R+(u>>>13)|0)+(ls>>>26)|0,ls&=67108863,k[0]=Gt,k[1]=Jt,k[2]=Zt,k[3]=Kt,k[4]=Qt,k[5]=Yt,k[6]=Xt,k[7]=er,k[8]=tr,k[9]=rr,k[10]=nr,k[11]=ir,k[12]=sr,k[13]=or,k[14]=ss,k[15]=os,k[16]=as,k[17]=cs,k[18]=ls,N!==0&&(k[19]=N,w.length++),w};Math.imul||(O=I);function B(x,o,f){f.negative=o.negative^x.negative,f.length=x.length+o.length;for(var w=0,b=0,S=0;S>>26)|0,b+=k>>>26,k&=67108863}f.words[S]=N,w=k,k=b}return w!==0?f.words[S]=w:f.length--,f._strip()}function V(x,o,f){return B(x,o,f)}s.prototype.mulTo=function(o,f){var w,b=this.length+o.length;return this.length===10&&o.length===10?w=O(this,o,f):b<63?w=I(this,o,f):b<1024?w=B(this,o,f):w=V(this,o,f),w},s.prototype.mul=function(o){var f=new s(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},s.prototype.mulf=function(o){var f=new s(null);return f.words=new Array(this.length+o.length),V(this,o,f)},s.prototype.imul=function(o){return this.clone().mulTo(o,this)},s.prototype.imuln=function(o){var f=o<0;f&&(o=-o),n(typeof o=="number"),n(o<67108864);for(var w=0,b=0;b>=26,w+=S/67108864|0,w+=k>>>26,this.words[b]=k&67108863}return w!==0&&(this.words[b]=w,this.length++),f?this.ineg():this},s.prototype.muln=function(o){return this.clone().imuln(o)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(o){var f=F(o);if(f.length===0)return new s(1);for(var w=this,b=0;b=0);var f=o%26,w=(o-f)/26,b=67108863>>>26-f<<26-f,S;if(f!==0){var k=0;for(S=0;S>>26-f}k&&(this.words[S]=k,this.length++)}if(w!==0){for(S=this.length-1;S>=0;S--)this.words[S+w]=this.words[S];for(S=0;S=0);var b;f?b=(f-f%26)/26:b=0;var S=o%26,k=Math.min((o-S)/26,this.length),N=67108863^67108863>>>S<k)for(this.length-=k,u=0;u=0&&(R!==0||u>=b);u--){var K=this.words[u]|0;this.words[u]=R<<26-S|K>>>S,R=K&N}return v&&R!==0&&(v.words[v.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(o,f,w){return n(this.negative===0),this.iushrn(o,f,w)},s.prototype.shln=function(o){return this.clone().ishln(o)},s.prototype.ushln=function(o){return this.clone().iushln(o)},s.prototype.shrn=function(o){return this.clone().ishrn(o)},s.prototype.ushrn=function(o){return this.clone().iushrn(o)},s.prototype.testn=function(o){n(typeof o=="number"&&o>=0);var f=o%26,w=(o-f)/26,b=1<=0);var f=o%26,w=(o-f)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(f!==0&&w++,this.length=Math.min(w,this.length),f!==0){var b=67108863^67108863>>>f<=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},s.prototype.isubn=function(o){if(n(typeof o=="number"),n(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f>26)-(v/67108864|0),this.words[S+w]=k&67108863}for(;S>26,this.words[S+w]=k&67108863;if(N===0)return this._strip();for(n(N===-1),N=0,S=0;S>26,this.words[S]=k&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(o,f){var w=this.length-o.length,b=this.clone(),S=o,k=S.words[S.length-1]|0,N=this._countBits(k);w=26-N,w!==0&&(S=S.ushln(w),b.iushln(w),k=S.words[S.length-1]|0);var v=b.length-S.length,u;if(f!=="mod"){u=new s(null),u.length=v+1,u.words=new Array(u.length);for(var R=0;R=0;J--){var T=(b.words[S.length+J]|0)*67108864+(b.words[S.length+J-1]|0);for(T=Math.min(T/k|0,67108863),b._ishlnsubmul(S,T,J);b.negative!==0;)T--,b.negative=0,b._ishlnsubmul(S,1,J),b.isZero()||(b.negative^=1);u&&(u.words[J]=T)}return u&&u._strip(),b._strip(),f!=="div"&&w!==0&&b.iushrn(w),{div:u||null,mod:b}},s.prototype.divmod=function(o,f,w){if(n(!o.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var b,S,k;return this.negative!==0&&o.negative===0?(k=this.neg().divmod(o,f),f!=="mod"&&(b=k.div.neg()),f!=="div"&&(S=k.mod.neg(),w&&S.negative!==0&&S.iadd(o)),{div:b,mod:S}):this.negative===0&&o.negative!==0?(k=this.divmod(o.neg(),f),f!=="mod"&&(b=k.div.neg()),{div:b,mod:k.mod}):this.negative&o.negative?(k=this.neg().divmod(o.neg(),f),f!=="div"&&(S=k.mod.neg(),w&&S.negative!==0&&S.isub(o)),{div:k.div,mod:S}):o.length>this.length||this.cmp(o)<0?{div:new s(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new s(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new s(this.modrn(o.words[0]))}:this._wordDiv(o,f)},s.prototype.div=function(o){return this.divmod(o,"div",!1).div},s.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},s.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},s.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var w=f.div.negative!==0?f.mod.isub(o):f.mod,b=o.ushrn(1),S=o.andln(1),k=w.cmp(b);return k<0||S===1&&k===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},s.prototype.modrn=function(o){var f=o<0;f&&(o=-o),n(o<=67108863);for(var w=(1<<26)%o,b=0,S=this.length-1;S>=0;S--)b=(w*b+(this.words[S]|0))%o;return f?-b:b},s.prototype.modn=function(o){return this.modrn(o)},s.prototype.idivn=function(o){var f=o<0;f&&(o=-o),n(o<=67108863);for(var w=0,b=this.length-1;b>=0;b--){var S=(this.words[b]|0)+w*67108864;this.words[b]=S/o|0,w=S%o}return this._strip(),f?this.ineg():this},s.prototype.divn=function(o){return this.clone().idivn(o)},s.prototype.egcd=function(o){n(o.negative===0),n(!o.isZero());var f=this,w=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var b=new s(1),S=new s(0),k=new s(0),N=new s(1),v=0;f.isEven()&&w.isEven();)f.iushrn(1),w.iushrn(1),++v;for(var u=w.clone(),R=f.clone();!f.isZero();){for(var K=0,J=1;!(f.words[0]&J)&&K<26;++K,J<<=1);if(K>0)for(f.iushrn(K);K-- >0;)(b.isOdd()||S.isOdd())&&(b.iadd(u),S.isub(R)),b.iushrn(1),S.iushrn(1);for(var T=0,$=1;!(w.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(w.iushrn(T);T-- >0;)(k.isOdd()||N.isOdd())&&(k.iadd(u),N.isub(R)),k.iushrn(1),N.iushrn(1);f.cmp(w)>=0?(f.isub(w),b.isub(k),S.isub(N)):(w.isub(f),k.isub(b),N.isub(S))}return{a:k,b:N,gcd:w.iushln(v)}},s.prototype._invmp=function(o){n(o.negative===0),n(!o.isZero());var f=this,w=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var b=new s(1),S=new s(0),k=w.clone();f.cmpn(1)>0&&w.cmpn(1)>0;){for(var N=0,v=1;!(f.words[0]&v)&&N<26;++N,v<<=1);if(N>0)for(f.iushrn(N);N-- >0;)b.isOdd()&&b.iadd(k),b.iushrn(1);for(var u=0,R=1;!(w.words[0]&R)&&u<26;++u,R<<=1);if(u>0)for(w.iushrn(u);u-- >0;)S.isOdd()&&S.iadd(k),S.iushrn(1);f.cmp(w)>=0?(f.isub(w),b.isub(S)):(w.isub(f),S.isub(b))}var K;return f.cmpn(1)===0?K=b:K=S,K.cmpn(0)<0&&K.iadd(o),K},s.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),w=o.clone();f.negative=0,w.negative=0;for(var b=0;f.isEven()&&w.isEven();b++)f.iushrn(1),w.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;w.isEven();)w.iushrn(1);var S=f.cmp(w);if(S<0){var k=f;f=w,w=k}else if(S===0||w.cmpn(1)===0)break;f.isub(w)}while(!0);return w.iushln(b)},s.prototype.invm=function(o){return this.egcd(o).a.umod(o)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(o){return this.words[0]&o},s.prototype.bincn=function(o){n(typeof o=="number");var f=o%26,w=(o-f)/26,b=1<>>26,N&=67108863,this.words[k]=N}return S!==0&&(this.words[k]=S,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this._strip();var w;if(this.length>1)w=1;else{f&&(o=-o),n(o<=67108863,"Number is too big");var b=this.words[0]|0;w=b===o?0:bo.length)return 1;if(this.length=0;w--){var b=this.words[w]|0,S=o.words[w]|0;if(b!==S){bS&&(f=1);break}}return f},s.prototype.gtn=function(o){return this.cmpn(o)===1},s.prototype.gt=function(o){return this.cmp(o)===1},s.prototype.gten=function(o){return this.cmpn(o)>=0},s.prototype.gte=function(o){return this.cmp(o)>=0},s.prototype.ltn=function(o){return this.cmpn(o)===-1},s.prototype.lt=function(o){return this.cmp(o)===-1},s.prototype.lten=function(o){return this.cmpn(o)<=0},s.prototype.lte=function(o){return this.cmp(o)<=0},s.prototype.eqn=function(o){return this.cmpn(o)===0},s.prototype.eq=function(o){return this.cmp(o)===0},s.red=function(o){return new oe(o)},s.prototype.toRed=function(o){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(o){return this.red=o,this},s.prototype.forceRed=function(o){return n(!this.red,"Already a number in reduction context"),this._forceRed(o)},s.prototype.redAdd=function(o){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},s.prototype.redIAdd=function(o){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},s.prototype.redSub=function(o){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},s.prototype.redISub=function(o){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},s.prototype.redShl=function(o){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},s.prototype.redMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},s.prototype.redIMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(o){return n(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function z(x,o){this.name=x,this.p=new s(o,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}z.prototype._tmp=function(){var o=new s(null);return o.words=new Array(Math.ceil(this.n/13)),o},z.prototype.ireduce=function(o){var f=o,w;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),w=f.bitLength();while(w>this.n);var b=w0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},z.prototype.split=function(o,f){o.iushrn(this.n,0,f)},z.prototype.imulK=function(o){return o.imul(this.k)};function te(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(te,z),te.prototype.split=function(o,f){for(var w=4194303,b=Math.min(o.length,9),S=0;S>>22,k=N}k>>>=22,o.words[S-10]=k,k===0&&o.length>10?o.length-=10:o.length-=9},te.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,w=0;w>>=26,o.words[w]=S,f=b}return f!==0&&(o.words[o.length++]=f),o},s._prime=function(o){if(j[o])return j[o];var f;if(o==="k256")f=new te;else if(o==="p224")f=new Y;else if(o==="p192")f=new Q;else if(o==="p25519")f=new fe;else throw new Error("Unknown prime "+o);return j[o]=f,f};function oe(x){if(typeof x=="string"){var o=s._prime(x);this.m=o.p,this.prime=o}else n(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}oe.prototype._verify1=function(o){n(o.negative===0,"red works only with positives"),n(o.red,"red works only with red numbers")},oe.prototype._verify2=function(o,f){n((o.negative|f.negative)===0,"red works only with positives"),n(o.red&&o.red===f.red,"red works only with red numbers")},oe.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(g(o,o.umod(this.m)._forceRed(this)),o)},oe.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},oe.prototype.add=function(o,f){this._verify2(o,f);var w=o.add(f);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},oe.prototype.iadd=function(o,f){this._verify2(o,f);var w=o.iadd(f);return w.cmp(this.m)>=0&&w.isub(this.m),w},oe.prototype.sub=function(o,f){this._verify2(o,f);var w=o.sub(f);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},oe.prototype.isub=function(o,f){this._verify2(o,f);var w=o.isub(f);return w.cmpn(0)<0&&w.iadd(this.m),w},oe.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},oe.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},oe.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},oe.prototype.isqr=function(o){return this.imul(o,o.clone())},oe.prototype.sqr=function(o){return this.mul(o,o)},oe.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(n(f%2===1),f===3){var w=this.m.add(new s(1)).iushrn(2);return this.pow(o,w)}for(var b=this.m.subn(1),S=0;!b.isZero()&&b.andln(1)===0;)S++,b.iushrn(1);n(!b.isZero());var k=new s(1).toRed(this),N=k.redNeg(),v=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);this.pow(u,v).cmp(N)!==0;)u.redIAdd(N);for(var R=this.pow(u,b),K=this.pow(o,b.addn(1).iushrn(1)),J=this.pow(o,b),T=S;J.cmp(k)!==0;){for(var $=J,W=0;$.cmp(k)!==0;W++)$=$.redSqr();n(W=0;S--){for(var R=f.words[S],K=u-1;K>=0;K--){var J=R>>K&1;if(k!==b[0]&&(k=this.sqr(k)),J===0&&N===0){v=0;continue}N<<=1,N|=J,v++,!(v!==w&&(S!==0||K!==0))&&(k=this.mul(k,b[N]),v=0,N=0)}u=26}return k},oe.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},oe.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},s.mont=function(o){return new pe(o)};function pe(x){oe.call(this,x),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(pe,oe),pe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},pe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},pe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var w=o.imul(f),b=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=w.isub(b).iushrn(this.shift),k=S;return S.cmp(this.m)>=0?k=S.isub(this.m):S.cmpn(0)<0&&(k=S.iadd(this.m)),k._forceRed(this)},pe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new s(0)._forceRed(this);var w=o.mul(f),b=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=w.isub(b).iushrn(this.shift),k=S;return S.cmp(this.m)>=0?k=S.isub(this.m):S.cmpn(0)<0&&(k=S.iadd(this.m)),k._forceRed(this)},pe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,ee)})(Qs);var ui=Qs.exports,wn={},Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.errorValues=Ft.standardErrorCodes=void 0;Ft.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}};Ft.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}};var hi={},di={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serialize=e.getErrorCode=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=Ft,r="Unspecified error message.";e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function n(_,A=r){if(_&&Number.isInteger(_)){const L=_.toString();if(g(t.errorValues,L))return t.errorValues[L].message;if(d(_))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return A}e.getMessageFromCode=n;function i(_){if(!Number.isInteger(_))return!1;const A=_.toString();return!!(t.errorValues[A]||d(_))}e.isValidCode=i;function s(_){var A;if(typeof _=="number")return _;if(c(_))return(A=_.code)!==null&&A!==void 0?A:_.errorCode}e.getErrorCode=s;function c(_){return typeof _=="object"&&_!==null&&(typeof _.code=="number"||typeof _.errorCode=="number")}function a(_,{shouldIncludeStack:A=!1}={}){const L={};if(_&&typeof _=="object"&&!Array.isArray(_)&&g(_,"code")&&i(_.code)){const H=_;L.code=H.code,H.message&&typeof H.message=="string"?(L.message=H.message,g(H,"data")&&(L.data=H.data)):(L.message=n(L.code),L.data={originalError:p(_)})}else L.code=t.standardErrorCodes.rpc.internal,L.message=y(_,"message")?_.message:r,L.data={originalError:p(_)};return A&&(L.stack=y(_,"stack")?_.stack:void 0),L}e.serialize=a;function d(_){return _>=-32099&&_<=-32e3}function p(_){return _&&typeof _=="object"&&!Array.isArray(_)?Object.assign({},_):_}function g(_,A){return Object.prototype.hasOwnProperty.call(_,A)}function y(_,A){return typeof _=="object"&&_!==null&&A in _&&typeof _[A]=="string"}})(di);Object.defineProperty(hi,"__esModule",{value:!0});hi.standardErrors=void 0;const et=Ft,mc=di;hi.standardErrors={rpc:{parse:e=>ft(et.standardErrorCodes.rpc.parse,e),invalidRequest:e=>ft(et.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>ft(et.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>ft(et.standardErrorCodes.rpc.methodNotFound,e),internal:e=>ft(et.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return ft(t,e)},invalidInput:e=>ft(et.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>ft(et.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>ft(et.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>ft(et.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>ft(et.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>ft(et.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>Tr(et.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>Tr(et.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>Tr(et.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>Tr(et.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>Tr(et.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>Tr(et.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:n}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new bc(t,r,n)}}};function ft(e,t){const[r,n]=wc(t);return new yc(e,r||(0,mc.getMessageFromCode)(e),n)}function Tr(e,t){const[r,n]=wc(t);return new bc(e,r||(0,mc.getMessageFromCode)(e),n)}function wc(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}let yc=class extends Error{constructor(t,r,n){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string.');super(r),this.code=t,n!==void 0&&(this.data=n)}},bc=class extends yc{constructor(t,r,n){if(!vu(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,r,n)}};function vu(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}var fi={},Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.isErrorResponse=void 0;function _u(e){return e.errorMessage!==void 0}Qr.isErrorResponse=_u;var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.LIB_VERSION=void 0;Yr.LIB_VERSION="3.9.3";Object.defineProperty(fi,"__esModule",{value:!0});fi.serializeError=void 0;const Eu=Qr,Su=Yr,Ru=Ft,Cu=di;function Mu(e,t){const r=(0,Cu.serialize)(ku(e),{shouldIncludeStack:!0}),n=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");n.searchParams.set("version",Su.LIB_VERSION),n.searchParams.set("code",r.code.toString());const i=xu(r.data,t);return i&&n.searchParams.set("method",i),n.searchParams.set("message",r.message),Object.assign(Object.assign({},r),{docUrl:n.href})}fi.serializeError=Mu;function ku(e){return typeof e=="string"?{message:e,code:Ru.standardErrorCodes.rpc.internal}:(0,Eu.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e}function xu(e,t){const r=e==null?void 0:e.method;if(r)return r;if(t!==void 0){if(typeof t=="string")return t;if(Array.isArray(t)){if(t.length>0)return t[0].method}else return t.method}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.standardErrors=e.standardErrorCodes=e.serializeError=e.getMessageFromCode=e.getErrorCode=void 0;const t=Ft;Object.defineProperty(e,"standardErrorCodes",{enumerable:!0,get:function(){return t.standardErrorCodes}});const r=hi;Object.defineProperty(e,"standardErrors",{enumerable:!0,get:function(){return r.standardErrors}});const n=fi;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}});const i=di;Object.defineProperty(e,"getErrorCode",{enumerable:!0,get:function(){return i.getErrorCode}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}})})(wn);var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.ProviderType=Ze.RegExpString=Ze.IntNumber=Ze.BigIntString=Ze.AddressString=Ze.HexString=Ze.OpaqueType=void 0;function yn(){return e=>e}Ze.OpaqueType=yn;Ze.HexString=yn();Ze.AddressString=yn();Ze.BigIntString=yn();function Iu(e){return Math.floor(e)}Ze.IntNumber=Iu;Ze.RegExpString=yn();var $o;(function(e){e.CoinbaseWallet="CoinbaseWallet",e.MetaMask="MetaMask",e.Unselected=""})($o||(Ze.ProviderType=$o={}));var Au=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(X,"__esModule",{value:!0});X.isMobileWeb=X.getLocation=X.isInIFrame=X.createQrUrl=X.getFavicon=X.range=X.isBigNumber=X.ensureParsedJSONObject=X.ensureBN=X.ensureRegExpString=X.ensureIntNumber=X.ensureBuffer=X.ensureAddressString=X.ensureEvenLengthHexString=X.ensureHexString=X.isHexString=X.prepend0x=X.strip0x=X.has0xPrefix=X.hexStringFromIntNumber=X.intNumberFromHexString=X.bigIntStringFromBN=X.hexStringFromBuffer=X.hexStringToUint8Array=X.uint8ArrayToHex=X.randomBytesHex=void 0;const Ht=Au(ui),yr=wn,yt=Ze,vc=/^[0-9]*$/,_c=/^[a-f0-9]*$/;function Tu(e){return Ec(crypto.getRandomValues(new Uint8Array(e)))}X.randomBytesHex=Tu;function Ec(e){return[...e].map(t=>t.toString(16).padStart(2,"0")).join("")}X.uint8ArrayToHex=Ec;function Nu(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>parseInt(t,16)))}X.hexStringToUint8Array=Nu;function Lu(e,t=!1){const r=e.toString("hex");return(0,yt.HexString)(t?`0x${r}`:r)}X.hexStringFromBuffer=Lu;function Bu(e){return(0,yt.BigIntString)(e.toString(10))}X.bigIntStringFromBN=Bu;function Pu(e){return(0,yt.IntNumber)(new Ht.default(vn(e,!1),16).toNumber())}X.intNumberFromHexString=Pu;function Ou(e){return(0,yt.HexString)(`0x${new Ht.default(e).toString(16)}`)}X.hexStringFromIntNumber=Ou;function Ys(e){return e.startsWith("0x")||e.startsWith("0X")}X.has0xPrefix=Ys;function pi(e){return Ys(e)?e.slice(2):e}X.strip0x=pi;function Sc(e){return Ys(e)?`0x${e.slice(2)}`:`0x${e}`}X.prepend0x=Sc;function bn(e){if(typeof e!="string")return!1;const t=pi(e).toLowerCase();return _c.test(t)}X.isHexString=bn;function Rc(e,t=!1){if(typeof e=="string"){const r=pi(e).toLowerCase();if(_c.test(r))return(0,yt.HexString)(t?`0x${r}`:r)}throw yr.standardErrors.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`)}X.ensureHexString=Rc;function vn(e,t=!1){let r=Rc(e,!1);return r.length%2===1&&(r=(0,yt.HexString)(`0${r}`)),t?(0,yt.HexString)(`0x${r}`):r}X.ensureEvenLengthHexString=vn;function $u(e){if(typeof e=="string"){const t=pi(e).toLowerCase();if(bn(t)&&t.length===40)return(0,yt.AddressString)(Sc(t))}throw yr.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}X.ensureAddressString=$u;function Fu(e){if(Buffer.isBuffer(e))return e;if(typeof e=="string"){if(bn(e)){const t=vn(e,!1);return Buffer.from(t,"hex")}return Buffer.from(e,"utf8")}throw yr.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)}X.ensureBuffer=Fu;function Cc(e){if(typeof e=="number"&&Number.isInteger(e))return(0,yt.IntNumber)(e);if(typeof e=="string"){if(vc.test(e))return(0,yt.IntNumber)(Number(e));if(bn(e))return(0,yt.IntNumber)(new Ht.default(vn(e,!1),16).toNumber())}throw yr.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}X.ensureIntNumber=Cc;function Du(e){if(e instanceof RegExp)return(0,yt.RegExpString)(e.toString());throw yr.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)}X.ensureRegExpString=Du;function ju(e){if(e!==null&&(Ht.default.isBN(e)||Mc(e)))return new Ht.default(e.toString(10),10);if(typeof e=="number")return new Ht.default(Cc(e));if(typeof e=="string"){if(vc.test(e))return new Ht.default(e,10);if(bn(e))return new Ht.default(vn(e,!1),16)}throw yr.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}X.ensureBN=ju;function Uu(e){if(typeof e=="string")return JSON.parse(e);if(typeof e=="object")return e;throw yr.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}X.ensureParsedJSONObject=Uu;function Mc(e){if(e==null||typeof e.constructor!="function")return!1;const{constructor:t}=e;return typeof t.config=="function"&&typeof t.EUCLID=="number"}X.isBigNumber=Mc;function Hu(e,t){return Array.from({length:t-e},(r,n)=>e+n)}X.range=Hu;function Wu(){const e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:t,host:r}=document.location,n=e?e.getAttribute("href"):null;return!n||n.startsWith("javascript:")||n.startsWith("vbscript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?t+n:`${t}//${r}${n}`}X.getFavicon=Wu;function Vu(e,t,r,n,i,s){const c=n?"parent-id":"id",a=new URLSearchParams({[c]:e,secret:t,server:r,v:i,chainId:s.toString()}).toString();return`${r}/#/link?${a}`}X.createQrUrl=Vu;function kc(){try{return window.frameElement!==null}catch{return!1}}X.isInIFrame=kc;function qu(){try{return kc()&&window.top?window.top.location:window.location}catch{return window.location}}X.getLocation=qu;function zu(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((e=window==null?void 0:window.navigator)===null||e===void 0?void 0:e.userAgent)}X.isMobileWeb=zu;var gi={};Object.defineProperty(gi,"__esModule",{value:!0});gi.ScopedLocalStorage=void 0;class Gu{constructor(t){this.scope=t}setItem(t,r){localStorage.setItem(this.scopedKey(t),r)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){const t=this.scopedKey(""),r=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(t){return`${this.scope}:${t}`}}gi.ScopedLocalStorage=Gu;var Vr={},xc={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(d,p,g){this.fn=d,this.context=p,this.once=g||!1}function s(d,p,g,y,_){if(typeof g!="function")throw new TypeError("The listener must be a function");var A=new i(g,y||d,_),L=r?r+p:p;return d._events[L]?d._events[L].fn?d._events[L]=[d._events[L],A]:d._events[L].push(A):(d._events[L]=A,d._eventsCount++),d}function c(d,p){--d._eventsCount===0?d._events=new n:delete d._events[p]}function a(){this._events=new n,this._eventsCount=0}a.prototype.eventNames=function(){var p=[],g,y;if(this._eventsCount===0)return p;for(y in g=this._events)t.call(g,y)&&p.push(r?y.slice(1):y);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(g)):p},a.prototype.listeners=function(p){var g=r?r+p:p,y=this._events[g];if(!y)return[];if(y.fn)return[y.fn];for(var _=0,A=y.length,L=new Array(A);_n.json()).then(n=>{if(!n)throw Fo.standardErrors.rpc.parse({});const i=n,{error:s}=i;if(s)throw(0,Fo.serializeError)(s,t.method);return i})}}wt.RelayAbstract=Zu;var en={},Ic={exports:{}},js={exports:{}};typeof Object.create=="function"?js.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:js.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var St=js.exports,Us={exports:{}},Sn={},mi={};mi.byteLength=Yu;mi.toByteArray=eh;mi.fromByteArray=nh;var Tt=[],mt=[],Ku=typeof Uint8Array<"u"?Uint8Array:Array,us="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Nr=0,Qu=us.length;Nr0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Yu(e){var t=Ac(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Xu(e,t,r){return(t+r)*3/4-r}function eh(e){var t,r=Ac(e),n=r[0],i=r[1],s=new Ku(Xu(e,n,i)),c=0,a=i>0?n-4:n,d;for(d=0;d>16&255,s[c++]=t>>8&255,s[c++]=t&255;return i===2&&(t=mt[e.charCodeAt(d)]<<2|mt[e.charCodeAt(d+1)]>>4,s[c++]=t&255),i===1&&(t=mt[e.charCodeAt(d)]<<10|mt[e.charCodeAt(d+1)]<<4|mt[e.charCodeAt(d+2)]>>2,s[c++]=t>>8&255,s[c++]=t&255),s}function th(e){return Tt[e>>18&63]+Tt[e>>12&63]+Tt[e>>6&63]+Tt[e&63]}function rh(e,t,r){for(var n,i=[],s=t;sa?a:c+s));return n===1?(t=e[r-1],i.push(Tt[t>>2]+Tt[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Tt[t>>10]+Tt[t>>4&63]+Tt[t<<2&63]+"=")),i.join("")}var Xs={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Xs.read=function(e,t,r,n,i){var s,c,a=i*8-n-1,d=(1<>1,g=-7,y=r?i-1:0,_=r?-1:1,A=e[t+y];for(y+=_,s=A&(1<<-g)-1,A>>=-g,g+=a;g>0;s=s*256+e[t+y],y+=_,g-=8);for(c=s&(1<<-g)-1,s>>=-g,g+=n;g>0;c=c*256+e[t+y],y+=_,g-=8);if(s===0)s=1-p;else{if(s===d)return c?NaN:(A?-1:1)*(1/0);c=c+Math.pow(2,n),s=s-p}return(A?-1:1)*c*Math.pow(2,s-n)};Xs.write=function(e,t,r,n,i,s){var c,a,d,p=s*8-i-1,g=(1<>1,_=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=n?0:s-1,L=n?1:-1,H=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,c=g):(c=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-c))<1&&(c--,d*=2),c+y>=1?t+=_/d:t+=_*Math.pow(2,1-y),t*d>=2&&(c++,d/=2),c+y>=g?(a=0,c=g):c+y>=1?(a=(t*d-1)*Math.pow(2,i),c=c+y):(a=t*Math.pow(2,y-1)*Math.pow(2,i),c=0));i>=8;e[r+A]=a&255,A+=L,a/=256,i-=8);for(c=c<0;e[r+A]=c&255,A+=L,c/=256,p-=8);e[r+A-L]|=H*128};/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */(function(e){const t=mi,r=Xs,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=s(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const m=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(m,l),m.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function c(m){if(m>i)throw new RangeError('The value "'+m+'" is invalid for option "size"');const l=new Uint8Array(m);return Object.setPrototypeOf(l,a.prototype),l}function a(m,l,h){if(typeof m=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(m)}return d(m,l,h)}a.poolSize=8192;function d(m,l,h){if(typeof m=="string")return _(m,l);if(ArrayBuffer.isView(m))return L(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(Je(m,ArrayBuffer)||m&&Je(m.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Je(m,SharedArrayBuffer)||m&&Je(m.buffer,SharedArrayBuffer)))return H(m,l,h);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const E=m.valueOf&&m.valueOf();if(E!=null&&E!==m)return a.from(E,l,h);const P=F(m);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return a.from(m[Symbol.toPrimitive]("string"),l,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}a.from=function(m,l,h){return d(m,l,h)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function p(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function g(m,l,h){return p(m),m<=0?c(m):l!==void 0?typeof h=="string"?c(m).fill(l,h):c(m).fill(l):c(m)}a.alloc=function(m,l,h){return g(m,l,h)};function y(m){return p(m),c(m<0?0:I(m)|0)}a.allocUnsafe=function(m){return y(m)},a.allocUnsafeSlow=function(m){return y(m)};function _(m,l){if((typeof l!="string"||l==="")&&(l="utf8"),!a.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const h=B(m,l)|0;let E=c(h);const P=E.write(m,l);return P!==h&&(E=E.slice(0,P)),E}function A(m){const l=m.length<0?0:I(m.length)|0,h=c(l);for(let E=0;E=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return m|0}function O(m){return+m!=m&&(m=0),a.alloc(+m)}a.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==a.prototype},a.compare=function(l,h){if(Je(l,Uint8Array)&&(l=a.from(l,l.offset,l.byteLength)),Je(h,Uint8Array)&&(h=a.from(h,h.offset,h.byteLength)),!a.isBuffer(l)||!a.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===h)return 0;let E=l.length,P=h.length;for(let D=0,U=Math.min(E,P);DP.length?(a.isBuffer(U)||(U=a.from(U)),U.copy(P,D)):Uint8Array.prototype.set.call(P,U,D);else if(a.isBuffer(U))U.copy(P,D);else throw new TypeError('"list" argument must be an Array of Buffers');D+=U.length}return P};function B(m,l){if(a.isBuffer(m))return m.length;if(ArrayBuffer.isView(m)||Je(m,ArrayBuffer))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);const h=m.length,E=arguments.length>2&&arguments[2]===!0;if(!E&&h===0)return 0;let P=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return re(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return Se(m).length;default:if(P)return E?-1:re(m).length;l=(""+l).toLowerCase(),P=!0}}a.byteLength=B;function V(m,l,h){let E=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,l>>>=0,h<=l))return"";for(m||(m="utf8");;)switch(m){case"hex":return k(this,l,h);case"utf8":case"utf-8":return o(this,l,h);case"ascii":return b(this,l,h);case"latin1":case"binary":return S(this,l,h);case"base64":return x(this,l,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,l,h);default:if(E)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),E=!0}}a.prototype._isBuffer=!0;function j(m,l,h){const E=m[l];m[l]=m[h],m[h]=E}a.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let h=0;hh&&(l+=" ... "),""},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(l,h,E,P,D){if(Je(l,Uint8Array)&&(l=a.from(l,l.offset,l.byteLength)),!a.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(h===void 0&&(h=0),E===void 0&&(E=l?l.length:0),P===void 0&&(P=0),D===void 0&&(D=this.length),h<0||E>l.length||P<0||D>this.length)throw new RangeError("out of range index");if(P>=D&&h>=E)return 0;if(P>=D)return-1;if(h>=E)return 1;if(h>>>=0,E>>>=0,P>>>=0,D>>>=0,this===l)return 0;let U=D-P,he=E-h;const ae=Math.min(U,he),ie=this.slice(P,D),Ce=l.slice(h,E);for(let ne=0;ne2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,ve(h)&&(h=P?0:m.length-1),h<0&&(h=m.length+h),h>=m.length){if(P)return-1;h=m.length-1}else if(h<0)if(P)h=0;else return-1;if(typeof l=="string"&&(l=a.from(l,E)),a.isBuffer(l))return l.length===0?-1:te(m,l,h,E,P);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(m,l,h):Uint8Array.prototype.lastIndexOf.call(m,l,h):te(m,[l],h,E,P);throw new TypeError("val must be string, number or Buffer")}function te(m,l,h,E,P){let D=1,U=m.length,he=l.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(m.length<2||l.length<2)return-1;D=2,U/=2,he/=2,h/=2}function ae(Ce,ne){return D===1?Ce[ne]:Ce.readUInt16BE(ne*D)}let ie;if(P){let Ce=-1;for(ie=h;ieU&&(h=U-he),ie=h;ie>=0;ie--){let Ce=!0;for(let ne=0;neP&&(E=P)):E=P;const D=l.length;E>D/2&&(E=D/2);let U;for(U=0;U>>0,isFinite(E)?(E=E>>>0,P===void 0&&(P="utf8")):(P=E,E=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const D=this.length-h;if((E===void 0||E>D)&&(E=D),l.length>0&&(E<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");let U=!1;for(;;)switch(P){case"hex":return Y(this,l,h,E);case"utf8":case"utf-8":return Q(this,l,h,E);case"ascii":case"latin1":case"binary":return fe(this,l,h,E);case"base64":return oe(this,l,h,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,l,h,E);default:if(U)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),U=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function x(m,l,h){return l===0&&h===m.length?t.fromByteArray(m):t.fromByteArray(m.slice(l,h))}function o(m,l,h){h=Math.min(m.length,h);const E=[];let P=l;for(;P239?4:D>223?3:D>191?2:1;if(P+he<=h){let ae,ie,Ce,ne;switch(he){case 1:D<128&&(U=D);break;case 2:ae=m[P+1],(ae&192)===128&&(ne=(D&31)<<6|ae&63,ne>127&&(U=ne));break;case 3:ae=m[P+1],ie=m[P+2],(ae&192)===128&&(ie&192)===128&&(ne=(D&15)<<12|(ae&63)<<6|ie&63,ne>2047&&(ne<55296||ne>57343)&&(U=ne));break;case 4:ae=m[P+1],ie=m[P+2],Ce=m[P+3],(ae&192)===128&&(ie&192)===128&&(Ce&192)===128&&(ne=(D&15)<<18|(ae&63)<<12|(ie&63)<<6|Ce&63,ne>65535&&ne<1114112&&(U=ne))}}U===null?(U=65533,he=1):U>65535&&(U-=65536,E.push(U>>>10&1023|55296),U=56320|U&1023),E.push(U),P+=he}return w(E)}const f=4096;function w(m){const l=m.length;if(l<=f)return String.fromCharCode.apply(String,m);let h="",E=0;for(;EE)&&(h=E);let P="";for(let D=l;DE&&(l=E),h<0?(h+=E,h<0&&(h=0)):h>E&&(h=E),hh)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(l,h,E){l=l>>>0,h=h>>>0,E||v(l,h,this.length);let P=this[l],D=1,U=0;for(;++U>>0,h=h>>>0,E||v(l,h,this.length);let P=this[l+--h],D=1;for(;h>0&&(D*=256);)P+=this[l+--h]*D;return P},a.prototype.readUint8=a.prototype.readUInt8=function(l,h){return l=l>>>0,h||v(l,1,this.length),this[l]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(l,h){return l=l>>>0,h||v(l,2,this.length),this[l]|this[l+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(l,h){return l=l>>>0,h||v(l,2,this.length),this[l]<<8|this[l+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(l,h){return l=l>>>0,h||v(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(l,h){return l=l>>>0,h||v(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},a.prototype.readBigUInt64LE=Qe(function(l){l=l>>>0,q(l,"offset");const h=this[l],E=this[l+7];(h===void 0||E===void 0)&&G(l,this.length-8);const P=h+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,D=this[++l]+this[++l]*2**8+this[++l]*2**16+E*2**24;return BigInt(P)+(BigInt(D)<>>0,q(l,"offset");const h=this[l],E=this[l+7];(h===void 0||E===void 0)&&G(l,this.length-8);const P=h*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],D=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+E;return(BigInt(P)<>>0,h=h>>>0,E||v(l,h,this.length);let P=this[l],D=1,U=0;for(;++U=D&&(P-=Math.pow(2,8*h)),P},a.prototype.readIntBE=function(l,h,E){l=l>>>0,h=h>>>0,E||v(l,h,this.length);let P=h,D=1,U=this[l+--P];for(;P>0&&(D*=256);)U+=this[l+--P]*D;return D*=128,U>=D&&(U-=Math.pow(2,8*h)),U},a.prototype.readInt8=function(l,h){return l=l>>>0,h||v(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},a.prototype.readInt16LE=function(l,h){l=l>>>0,h||v(l,2,this.length);const E=this[l]|this[l+1]<<8;return E&32768?E|4294901760:E},a.prototype.readInt16BE=function(l,h){l=l>>>0,h||v(l,2,this.length);const E=this[l+1]|this[l]<<8;return E&32768?E|4294901760:E},a.prototype.readInt32LE=function(l,h){return l=l>>>0,h||v(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},a.prototype.readInt32BE=function(l,h){return l=l>>>0,h||v(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},a.prototype.readBigInt64LE=Qe(function(l){l=l>>>0,q(l,"offset");const h=this[l],E=this[l+7];(h===void 0||E===void 0)&&G(l,this.length-8);const P=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(E<<24);return(BigInt(P)<>>0,q(l,"offset");const h=this[l],E=this[l+7];(h===void 0||E===void 0)&&G(l,this.length-8);const P=(h<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(P)<>>0,h||v(l,4,this.length),r.read(this,l,!0,23,4)},a.prototype.readFloatBE=function(l,h){return l=l>>>0,h||v(l,4,this.length),r.read(this,l,!1,23,4)},a.prototype.readDoubleLE=function(l,h){return l=l>>>0,h||v(l,8,this.length),r.read(this,l,!0,52,8)},a.prototype.readDoubleBE=function(l,h){return l=l>>>0,h||v(l,8,this.length),r.read(this,l,!1,52,8)};function u(m,l,h,E,P,D){if(!a.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>P||lm.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(l,h,E,P){if(l=+l,h=h>>>0,E=E>>>0,!P){const he=Math.pow(2,8*E)-1;u(this,l,h,E,he,0)}let D=1,U=0;for(this[h]=l&255;++U>>0,E=E>>>0,!P){const he=Math.pow(2,8*E)-1;u(this,l,h,E,he,0)}let D=E-1,U=1;for(this[h+D]=l&255;--D>=0&&(U*=256);)this[h+D]=l/U&255;return h+E},a.prototype.writeUint8=a.prototype.writeUInt8=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,1,255,0),this[h]=l&255,h+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,2,65535,0),this[h]=l&255,this[h+1]=l>>>8,h+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,2,65535,0),this[h]=l>>>8,this[h+1]=l&255,h+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,4,4294967295,0),this[h+3]=l>>>24,this[h+2]=l>>>16,this[h+1]=l>>>8,this[h]=l&255,h+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,4,4294967295,0),this[h]=l>>>24,this[h+1]=l>>>16,this[h+2]=l>>>8,this[h+3]=l&255,h+4};function R(m,l,h,E,P){M(l,E,P,m,h,7);let D=Number(l&BigInt(4294967295));m[h++]=D,D=D>>8,m[h++]=D,D=D>>8,m[h++]=D,D=D>>8,m[h++]=D;let U=Number(l>>BigInt(32)&BigInt(4294967295));return m[h++]=U,U=U>>8,m[h++]=U,U=U>>8,m[h++]=U,U=U>>8,m[h++]=U,h}function K(m,l,h,E,P){M(l,E,P,m,h,7);let D=Number(l&BigInt(4294967295));m[h+7]=D,D=D>>8,m[h+6]=D,D=D>>8,m[h+5]=D,D=D>>8,m[h+4]=D;let U=Number(l>>BigInt(32)&BigInt(4294967295));return m[h+3]=U,U=U>>8,m[h+2]=U,U=U>>8,m[h+1]=U,U=U>>8,m[h]=U,h+8}a.prototype.writeBigUInt64LE=Qe(function(l,h=0){return R(this,l,h,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Qe(function(l,h=0){return K(this,l,h,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(l,h,E,P){if(l=+l,h=h>>>0,!P){const ae=Math.pow(2,8*E-1);u(this,l,h,E,ae-1,-ae)}let D=0,U=1,he=0;for(this[h]=l&255;++D>0)-he&255;return h+E},a.prototype.writeIntBE=function(l,h,E,P){if(l=+l,h=h>>>0,!P){const ae=Math.pow(2,8*E-1);u(this,l,h,E,ae-1,-ae)}let D=E-1,U=1,he=0;for(this[h+D]=l&255;--D>=0&&(U*=256);)l<0&&he===0&&this[h+D+1]!==0&&(he=1),this[h+D]=(l/U>>0)-he&255;return h+E},a.prototype.writeInt8=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,1,127,-128),l<0&&(l=255+l+1),this[h]=l&255,h+1},a.prototype.writeInt16LE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,2,32767,-32768),this[h]=l&255,this[h+1]=l>>>8,h+2},a.prototype.writeInt16BE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,2,32767,-32768),this[h]=l>>>8,this[h+1]=l&255,h+2},a.prototype.writeInt32LE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,4,2147483647,-2147483648),this[h]=l&255,this[h+1]=l>>>8,this[h+2]=l>>>16,this[h+3]=l>>>24,h+4},a.prototype.writeInt32BE=function(l,h,E){return l=+l,h=h>>>0,E||u(this,l,h,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[h]=l>>>24,this[h+1]=l>>>16,this[h+2]=l>>>8,this[h+3]=l&255,h+4},a.prototype.writeBigInt64LE=Qe(function(l,h=0){return R(this,l,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Qe(function(l,h=0){return K(this,l,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function J(m,l,h,E,P,D){if(h+E>m.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function T(m,l,h,E,P){return l=+l,h=h>>>0,P||J(m,l,h,4),r.write(m,l,h,E,23,4),h+4}a.prototype.writeFloatLE=function(l,h,E){return T(this,l,h,!0,E)},a.prototype.writeFloatBE=function(l,h,E){return T(this,l,h,!1,E)};function $(m,l,h,E,P){return l=+l,h=h>>>0,P||J(m,l,h,8),r.write(m,l,h,E,52,8),h+8}a.prototype.writeDoubleLE=function(l,h,E){return $(this,l,h,!0,E)},a.prototype.writeDoubleBE=function(l,h,E){return $(this,l,h,!1,E)},a.prototype.copy=function(l,h,E,P){if(!a.isBuffer(l))throw new TypeError("argument should be a Buffer");if(E||(E=0),!P&&P!==0&&(P=this.length),h>=l.length&&(h=l.length),h||(h=0),P>0&&P=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),l.length-h>>0,E=E===void 0?this.length:E>>>0,l||(l=0);let D;if(typeof l=="number")for(D=h;D2**32?P=le(String(h)):typeof h=="bigint"&&(P=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(P=le(P)),P+="n"),E+=` It must be ${l}. Received ${P}`,E},RangeError);function le(m){let l="",h=m.length;const E=m[0]==="-"?1:0;for(;h>=E+4;h-=3)l=`_${m.slice(h-3,h)}${l}`;return`${m.slice(0,h)}${l}`}function C(m,l,h){q(l,"offset"),(m[l]===void 0||m[l+h]===void 0)&&G(l,m.length-(h+1))}function M(m,l,h,E,P,D){if(m>h||m= 0${U} and < 2${U} ** ${(D+1)*8}${U}`:he=`>= -(2${U} ** ${(D+1)*8-1}${U}) and < 2 ** ${(D+1)*8-1}${U}`,new W.ERR_OUT_OF_RANGE("value",he,m)}C(E,P,D)}function q(m,l){if(typeof m!="number")throw new W.ERR_INVALID_ARG_TYPE(l,"number",m)}function G(m,l,h){throw Math.floor(m)!==m?(q(m,h),new W.ERR_OUT_OF_RANGE("offset","an integer",m)):l<0?new W.ERR_BUFFER_OUT_OF_BOUNDS:new W.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,m)}const se=/[^+/0-9A-Za-z-_]/g;function ue(m){if(m=m.split("=")[0],m=m.trim().replace(se,""),m.length<2)return"";for(;m.length%4!==0;)m=m+"=";return m}function re(m,l){l=l||1/0;let h;const E=m.length;let P=null;const D=[];for(let U=0;U55295&&h<57344){if(!P){if(h>56319){(l-=3)>-1&&D.push(239,191,189);continue}else if(U+1===E){(l-=3)>-1&&D.push(239,191,189);continue}P=h;continue}if(h<56320){(l-=3)>-1&&D.push(239,191,189),P=h;continue}h=(P-55296<<10|h-56320)+65536}else P&&(l-=3)>-1&&D.push(239,191,189);if(P=null,h<128){if((l-=1)<0)break;D.push(h)}else if(h<2048){if((l-=2)<0)break;D.push(h>>6|192,h&63|128)}else if(h<65536){if((l-=3)<0)break;D.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((l-=4)<0)break;D.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return D}function be(m){const l=[];for(let h=0;h>8,P=h%256,D.push(P),D.push(E);return D}function Se(m){return t.toByteArray(ue(m))}function Ee(m,l,h,E){let P;for(P=0;P=l.length||P>=m.length);++P)l[P+h]=m[P];return P}function Je(m,l){return m instanceof l||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===l.name}function ve(m){return m!==m}const Re=function(){const m="0123456789abcdef",l=new Array(256);for(let h=0;h<16;++h){const E=h*16;for(let P=0;P<16;++P)l[E+P]=m[h]+m[P]}return l}();function Qe(m){return typeof BigInt>"u"?_e:m}function _e(){throw new Error("BigInt not supported")}})(Sn);/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(e,t){var r=Sn,n=r.Buffer;function i(c,a){for(var d in c)a[d]=c[d]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=s);function s(c,a,d){return n(c,a,d)}s.prototype=Object.create(n.prototype),i(n,s),s.from=function(c,a,d){if(typeof c=="number")throw new TypeError("Argument must not be a number");return n(c,a,d)},s.alloc=function(c,a,d){if(typeof c!="number")throw new TypeError("Argument must be a number");var p=n(c);return a!==void 0?typeof d=="string"?p.fill(a,d):p.fill(a):p.fill(0),p},s.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return n(c)},s.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(c)}})(Us,Us.exports);var zt=Us.exports,Tc=zt.Buffer;function wi(e,t){this._block=Tc.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}wi.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=Tc.from(e,t));for(var r=this._block,n=this._blockSize,i=e.length,s=this._len,c=0;c=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(r&4294967295)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var s=this._hash();return e?s.toString(e):s};wi.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var tn=wi,ih=St,Nc=tn,sh=zt.Buffer,oh=[1518500249,1859775393,-1894007588,-899497514],ah=new Array(80);function Rn(){this.init(),this._w=ah,Nc.call(this,64,56)}ih(Rn,Nc);Rn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function ch(e){return e<<5|e>>>27}function lh(e){return e<<30|e>>>2}function uh(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}Rn.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,a=0;a<16;++a)t[a]=e.readInt32BE(a*4);for(;a<80;++a)t[a]=t[a-3]^t[a-8]^t[a-14]^t[a-16];for(var d=0;d<80;++d){var p=~~(d/20),g=ch(r)+uh(p,n,i,s)+c+t[d]+oh[p]|0;c=s,s=i,i=lh(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0};Rn.prototype._hash=function(){var e=sh.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var hh=Rn,dh=St,Lc=tn,fh=zt.Buffer,ph=[1518500249,1859775393,-1894007588,-899497514],gh=new Array(80);function Cn(){this.init(),this._w=gh,Lc.call(this,64,56)}dh(Cn,Lc);Cn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function mh(e){return e<<1|e>>>31}function wh(e){return e<<5|e>>>27}function yh(e){return e<<30|e>>>2}function bh(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}Cn.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,a=0;a<16;++a)t[a]=e.readInt32BE(a*4);for(;a<80;++a)t[a]=mh(t[a-3]^t[a-8]^t[a-14]^t[a-16]);for(var d=0;d<80;++d){var p=~~(d/20),g=wh(r)+bh(p,n,i,s)+c+t[d]+ph[p]|0;c=s,s=i,i=yh(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0};Cn.prototype._hash=function(){var e=fh.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var vh=Cn,_h=St,Bc=tn,Eh=zt.Buffer,Sh=[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],Rh=new Array(64);function Mn(){this.init(),this._w=Rh,Bc.call(this,64,56)}_h(Mn,Bc);Mn.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function Ch(e,t,r){return r^e&(t^r)}function Mh(e,t,r){return e&t|r&(e|t)}function kh(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function xh(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function Ih(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function Ah(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}Mn.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,a=this._f|0,d=this._g|0,p=this._h|0,g=0;g<16;++g)t[g]=e.readInt32BE(g*4);for(;g<64;++g)t[g]=Ah(t[g-2])+t[g-7]+Ih(t[g-15])+t[g-16]|0;for(var y=0;y<64;++y){var _=p+xh(c)+Ch(c,a,d)+Sh[y]+t[y]|0,A=kh(r)+Mh(r,n,i)|0;p=d,d=a,a=c,c=s+_|0,s=i,i=n,n=r,r=_+A|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=a+this._f|0,this._g=d+this._g|0,this._h=p+this._h|0};Mn.prototype._hash=function(){var e=Eh.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var Pc=Mn,Th=St,Nh=Pc,Lh=tn,Bh=zt.Buffer,Ph=new Array(64);function yi(){this.init(),this._w=Ph,Lh.call(this,64,56)}Th(yi,Nh);yi.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};yi.prototype._hash=function(){var e=Bh.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var Oh=yi,$h=St,Oc=tn,Fh=zt.Buffer,Do=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Dh=new Array(160);function kn(){this.init(),this._w=Dh,Oc.call(this,128,112)}$h(kn,Oc);kn.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function jo(e,t,r){return r^e&(t^r)}function Uo(e,t,r){return e&t|r&(e|t)}function Ho(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function Wo(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function jh(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Uh(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Hh(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Wh(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Ye(e,t){return e>>>0>>0?1:0}kn.prototype._update=function(e){for(var t=this._w,r=this._ah|0,n=this._bh|0,i=this._ch|0,s=this._dh|0,c=this._eh|0,a=this._fh|0,d=this._gh|0,p=this._hh|0,g=this._al|0,y=this._bl|0,_=this._cl|0,A=this._dl|0,L=this._el|0,H=this._fl|0,F=this._gl|0,I=this._hl|0,O=0;O<32;O+=2)t[O]=e.readInt32BE(O*4),t[O+1]=e.readInt32BE(O*4+4);for(;O<160;O+=2){var B=t[O-30],V=t[O-15*2+1],j=jh(B,V),z=Uh(V,B);B=t[O-2*2],V=t[O-2*2+1];var te=Hh(B,V),Y=Wh(V,B),Q=t[O-7*2],fe=t[O-7*2+1],oe=t[O-16*2],pe=t[O-16*2+1],x=z+fe|0,o=j+Q+Ye(x,z)|0;x=x+Y|0,o=o+te+Ye(x,Y)|0,x=x+pe|0,o=o+oe+Ye(x,pe)|0,t[O]=o,t[O+1]=x}for(var f=0;f<160;f+=2){o=t[f],x=t[f+1];var w=Uo(r,n,i),b=Uo(g,y,_),S=Ho(r,g),k=Ho(g,r),N=Wo(c,L),v=Wo(L,c),u=Do[f],R=Do[f+1],K=jo(c,a,d),J=jo(L,H,F),T=I+v|0,$=p+N+Ye(T,I)|0;T=T+J|0,$=$+K+Ye(T,J)|0,T=T+R|0,$=$+u+Ye(T,R)|0,T=T+x|0,$=$+o+Ye(T,x)|0;var W=k+b|0,Z=S+w+Ye(W,k)|0;p=d,I=F,d=a,F=H,a=c,H=L,L=A+T|0,c=s+$+Ye(L,A)|0,s=i,A=_,i=n,_=y,n=r,y=g,g=T+W|0,r=$+Z+Ye(g,T)|0}this._al=this._al+g|0,this._bl=this._bl+y|0,this._cl=this._cl+_|0,this._dl=this._dl+A|0,this._el=this._el+L|0,this._fl=this._fl+H|0,this._gl=this._gl+F|0,this._hl=this._hl+I|0,this._ah=this._ah+r+Ye(this._al,g)|0,this._bh=this._bh+n+Ye(this._bl,y)|0,this._ch=this._ch+i+Ye(this._cl,_)|0,this._dh=this._dh+s+Ye(this._dl,A)|0,this._eh=this._eh+c+Ye(this._el,L)|0,this._fh=this._fh+a+Ye(this._fl,H)|0,this._gh=this._gh+d+Ye(this._gl,F)|0,this._hh=this._hh+p+Ye(this._hl,I)|0};kn.prototype._hash=function(){var e=Fh.allocUnsafe(64);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var $c=kn,Vh=St,qh=$c,zh=tn,Gh=zt.Buffer,Jh=new Array(160);function bi(){this.init(),this._w=Jh,zh.call(this,128,112)}Vh(bi,qh);bi.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};bi.prototype._hash=function(){var e=Gh.allocUnsafe(48);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var Zh=bi,br=Ic.exports=function(t){t=t.toLowerCase();var r=br[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r};br.sha=hh;br.sha1=vh;br.sha224=Oh;br.sha256=Pc;br.sha384=Zh;br.sha512=$c;var Kh=Ic.exports;Object.defineProperty(en,"__esModule",{value:!0});en.Session=void 0;const Vo=Kh,qo=X,zo="session:id",Go="session:secret",Jo="session:linked";class eo{constructor(t,r,n,i){this._storage=t,this._id=r||(0,qo.randomBytesHex)(16),this._secret=n||(0,qo.randomBytesHex)(32),this._key=new Vo.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!i}static load(t){const r=t.getItem(zo),n=t.getItem(Jo),i=t.getItem(Go);return r&&i?new eo(t,r,i,n==="1"):null}static hash(t){return new Vo.sha256().update(t).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(t){this._linked=t,this.persistLinked()}save(){return this._storage.setItem(zo,this._id),this._storage.setItem(Go,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(Jo,this._linked?"1":"0")}}en.Session=eo;var vi={},_i={};Object.defineProperty(_i,"__esModule",{value:!0});_i.Cipher=void 0;const Wn=X;class Qh{constructor(t){this.secret=t}async encrypt(t){const r=this.secret;if(r.length!==64)throw Error("secret must be 256 bits");const n=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey("raw",(0,Wn.hexStringToUint8Array)(r),{name:"aes-gcm"},!1,["encrypt","decrypt"]),s=new TextEncoder,c=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},i,s.encode(t)),a=16,d=c.slice(c.byteLength-a),p=c.slice(0,c.byteLength-a),g=new Uint8Array(d),y=new Uint8Array(p),_=new Uint8Array([...n,...g,...y]);return(0,Wn.uint8ArrayToHex)(_)}async decrypt(t){const r=this.secret;if(r.length!==64)throw Error("secret must be 256 bits");return new Promise((n,i)=>{(async function(){const s=await crypto.subtle.importKey("raw",(0,Wn.hexStringToUint8Array)(r),{name:"aes-gcm"},!1,["encrypt","decrypt"]),c=(0,Wn.hexStringToUint8Array)(t),a=c.slice(0,12),d=c.slice(12,28),p=c.slice(28),g=new Uint8Array([...p,...d]),y={name:"AES-GCM",iv:new Uint8Array(a)};try{const _=await window.crypto.subtle.decrypt(y,s,g),A=new TextDecoder;n(A.decode(_))}catch(_){i(_)}})()})}}_i.Cipher=Qh;var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0});Ei.WalletLinkHTTP=void 0;class Yh{constructor(t,r,n){this.linkAPIUrl=t,this.sessionId=r;const i=`${r}:${n}`;this.auth=`Basic ${btoa(i)}`}async markUnseenEventsAsSeen(t){return Promise.all(t.map(r=>fetch(`${this.linkAPIUrl}/events/${r.eventId}/seen`,{method:"POST",headers:{Authorization:this.auth}}))).catch(r=>console.error("Unabled to mark event as failed:",r))}async fetchUnseenEvents(){var t;const r=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(r.ok){const{events:n,error:i}=await r.json();if(i)throw new Error(`Check unseen events failed: ${i}`);const s=(t=n==null?void 0:n.filter(c=>c.event==="Web3Response").map(c=>({type:"Event",sessionId:this.sessionId,eventId:c.id,event:c.event,data:c.data})))!==null&&t!==void 0?t:[];return this.markUnseenEventsAsSeen(s),s}throw new Error(`Check unseen events failed: ${r.status}`)}}Ei.WalletLinkHTTP=Yh;var qr={};Object.defineProperty(qr,"__esModule",{value:!0});qr.WalletLinkWebSocket=qr.ConnectionState=void 0;var Dr;(function(e){e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED"})(Dr||(qr.ConnectionState=Dr={}));class Xh{setConnectionStateListener(t){this.connectionStateListener=t}setIncomingDataListener(t){this.incomingDataListener=t}constructor(t,r=WebSocket){this.WebSocketClass=r,this.webSocket=null,this.pendingData=[],this.url=t.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw new Error("webSocket object is not null");return new Promise((t,r)=>{var n;let i;try{this.webSocket=i=new this.WebSocketClass(this.url)}catch(s){r(s);return}(n=this.connectionStateListener)===null||n===void 0||n.call(this,Dr.CONNECTING),i.onclose=s=>{var c;this.clearWebSocket(),r(new Error(`websocket error ${s.code}: ${s.reason}`)),(c=this.connectionStateListener)===null||c===void 0||c.call(this,Dr.DISCONNECTED)},i.onopen=s=>{var c;t(),(c=this.connectionStateListener)===null||c===void 0||c.call(this,Dr.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(d=>this.sendData(d)),this.pendingData=[])},i.onmessage=s=>{var c,a;if(s.data==="h")(c=this.incomingDataListener)===null||c===void 0||c.call(this,{type:"Heartbeat"});else try{const d=JSON.parse(s.data);(a=this.incomingDataListener)===null||a===void 0||a.call(this,d)}catch{}}})}disconnect(){var t;const{webSocket:r}=this;if(r){this.clearWebSocket(),(t=this.connectionStateListener)===null||t===void 0||t.call(this,Dr.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{r.close()}catch{}}}sendData(t){const{webSocket:r}=this;if(!r){this.pendingData.push(t),this.connect();return}r.send(t)}clearWebSocket(){const{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}}qr.WalletLinkWebSocket=Xh;Object.defineProperty(vi,"__esModule",{value:!0});vi.WalletLinkConnection=void 0;const Lr=Ze,ed=_i,Mt=Xr,Zo=wt,Br=en,td=Ei,Vn=qr,Ko=1e4,rd=6e4;class nd{constructor({session:t,linkAPIUrl:r,listener:n,diagnostic:i,WebSocketClass:s=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,Lr.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=a=>{if(!a)return;new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",p=>a.JsonRpcUrl&&this.handleChainUpdated(p,a.JsonRpcUrl)]]).forEach((p,g)=>{const y=a[g];y!==void 0&&p(y)})},this.handleDestroyed=a=>{var d,p;a==="1"&&((d=this.listener)===null||d===void 0||d.resetAndReload(),(p=this.diagnostic)===null||p===void 0||p.log(Mt.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:Br.Session.hash(this.session.id)}))},this.handleAccountUpdated=async a=>{var d,p;try{const g=await this.cipher.decrypt(a);(d=this.listener)===null||d===void 0||d.accountUpdated(g)}catch{(p=this.diagnostic)===null||p===void 0||p.log(Mt.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}},this.handleMetadataUpdated=async(a,d)=>{var p,g;try{const y=await this.cipher.decrypt(d);(p=this.listener)===null||p===void 0||p.metadataUpdated(a,y)}catch{(g=this.diagnostic)===null||g===void 0||g.log(Mt.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:a})}},this.handleWalletUsernameUpdated=async a=>{this.handleMetadataUpdated(Zo.WALLET_USER_NAME_KEY,a)},this.handleAppVersionUpdated=async a=>{this.handleMetadataUpdated(Zo.APP_VERSION_KEY,a)},this.handleChainUpdated=async(a,d)=>{var p,g;try{const y=await this.cipher.decrypt(a),_=await this.cipher.decrypt(d);(p=this.listener)===null||p===void 0||p.chainUpdated(y,_)}catch{(g=this.diagnostic)===null||g===void 0||g.log(Mt.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}},this.session=t,this.cipher=new ed.Cipher(t.secret),this.diagnostic=i,this.listener=n;const c=new Vn.WalletLinkWebSocket(`${r}/rpc`,s);c.setConnectionStateListener(async a=>{var d;(d=this.diagnostic)===null||d===void 0||d.log(Mt.EVENTS.CONNECTED_STATE_CHANGE,{state:a,sessionIdHash:Br.Session.hash(t.id)});let p=!1;switch(a){case Vn.ConnectionState.DISCONNECTED:if(!this.destroyed){const g=async()=>{await new Promise(y=>setTimeout(y,5e3)),this.destroyed||c.connect().catch(()=>{g()})};g()}break;case Vn.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),p=!0}catch{}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},Ko),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case Vn.ConnectionState.CONNECTING:break}this.connected!==p&&(this.connected=p)}),c.setIncomingDataListener(a=>{var d,p,g;switch(a.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{const y=a.type==="IsLinkedOK"?a.linked:void 0;(d=this.diagnostic)===null||d===void 0||d.log(Mt.EVENTS.LINKED,{sessionIdHash:Br.Session.hash(t.id),linked:y,type:a.type,onlineGuests:a.onlineGuests}),this.linked=y||a.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":{(p=this.diagnostic)===null||p===void 0||p.log(Mt.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:Br.Session.hash(t.id),metadata_keys:a&&a.metadata?Object.keys(a.metadata):void 0}),this.handleSessionMetadataUpdated(a.metadata);break}case"Event":{this.handleIncomingEvent(a);break}}a.id!==void 0&&((g=this.requestResolutions.get(a.id))===null||g===void 0||g(a))}),this.ws=c,this.http=new td.WalletLinkHTTP(r,t.id,t.key)}connect(){var t;if(this.destroyed)throw new Error("instance is destroyed");(t=this.diagnostic)===null||t===void 0||t.log(Mt.EVENTS.STARTED_CONNECTING,{sessionIdHash:Br.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var t;this.destroyed=!0,this.ws.disconnect(),(t=this.diagnostic)===null||t===void 0||t.log(Mt.EVENTS.DISCONNECTED,{sessionIdHash:Br.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(t){var r,n;this._connected=t,t&&((r=this.onceConnected)===null||r===void 0||r.call(this)),(n=this.listener)===null||n===void 0||n.connectedUpdated(t)}setOnceConnected(t){return new Promise(r=>{this.connected?t().then(r):this.onceConnected=()=>{t().then(r),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(t){var r,n;this._linked=t,t&&((r=this.onceLinked)===null||r===void 0||r.call(this)),(n=this.listener)===null||n===void 0||n.linkedUpdated(t)}setOnceLinked(t){return new Promise(r=>{this.linked?t().then(r):this.onceLinked=()=>{t().then(r),this.onceLinked=void 0}})}async handleIncomingEvent(t){var r,n;if(!(t.type!=="Event"||t.event!=="Web3Response"))try{const i=await this.cipher.decrypt(t.data),s=JSON.parse(i);if(s.type!=="WEB3_RESPONSE")return;(r=this.listener)===null||r===void 0||r.handleWeb3ResponseMessage(s)}catch{(n=this.diagnostic)===null||n===void 0||n.log(Mt.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(t=>setTimeout(t,250));try{await this.fetchUnseenEventsAPI()}catch(t){console.error("Unable to check for unseen events",t)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(r=>this.handleIncomingEvent(r))}async setSessionMetadata(t,r){const n={type:"SetSessionConfig",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[t]:r}};return this.setOnceConnected(async()=>{const i=await this.makeRequest(n);if(i.type==="Fail")throw new Error(i.error||"failed to set session metadata")})}async publishEvent(t,r,n=!1){const i=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},r),{origin:location.origin,relaySource:window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),s={type:"PublishEvent",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:t,data:i,callWebhook:n};return this.setOnceLinked(async()=>{const c=await this.makeRequest(s);if(c.type==="Fail")throw new Error(c.error||"failed to publish event");return c.eventId})}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>Ko*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}async makeRequest(t,r=rd){const n=t.id;this.sendData(t);let i;return Promise.race([new Promise((s,c)=>{i=window.setTimeout(()=>{c(new Error(`request ${n} timed out`))},r)}),new Promise(s=>{this.requestResolutions.set(n,c=>{clearTimeout(i),s(c),this.requestResolutions.delete(n)})})])}async authenticate(){const t={type:"HostSession",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},r=await this.makeRequest(t);if(r.type==="Fail")throw new Error(r.error||"failed to authentcate")}sendIsLinked(){const t={type:"IsLinked",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}sendGetSessionConfig(){const t={type:"GetSessionConfig",id:(0,Lr.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}}vi.WalletLinkConnection=nd;var xn={},In={},to={};Object.defineProperty(to,"__esModule",{value:!0});to.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}';var id=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(In,"__esModule",{value:!0});In.injectCssReset=void 0;const sd=id(to);function od(){const e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(sd.default)),document.documentElement.appendChild(e)}In.injectCssReset=od;var Si={};const at=mn(wu);var Ri={};function Fc(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t65536?(n[0]=240|(i&1835008)>>>18,n[1]=128|(i&258048)>>>12,n[2]=128|(i&4032)>>>6,n[3]=128|i&63):i>2048?(n[0]=224|(i&61440)>>>12,n[1]=128|(i&4032)>>>6,n[2]=128|i&63):i>128?(n[0]=192|(i&1984)>>>6,n[1]=128|i&63):n[0]=i,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}Dc.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,r=this.parsedData.length;t=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=Lt.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(0<=r&&r<=6&&(n==0||n==6)||0<=n&&n<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[e+r][t+n]=!0:this.modules[e+r][t+n]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=Ve.getLostPoint(this);(r==0||e>n)&&(e=n,t=r)}return t},createMovieClip:function(e,t,r){var n=e.createEmptyMovieClip(t,r),i=1;this.make();for(var s=0;s>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=Ve.getBCHTypeInfo(r),i=0;i<15;i++){var s=!e&&(n>>i&1)==1;i<6?this.modules[i][8]=s:i<8?this.modules[i+1][8]=s:this.modules[this.moduleCount-15+i][8]=s}for(var i=0;i<15;i++){var s=!e&&(n>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=s:i<9?this.modules[8][15-i-1+1]=s:this.modules[8][15-i-1]=s}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,s=0,c=this.moduleCount-1;c>0;c-=2)for(c==6&&c--;;){for(var a=0;a<2;a++)if(this.modules[n][c-a]==null){var d=!1;s>>i&1)==1);var p=Ve.getMask(t,n,c-a);p&&(d=!d),this.modules[n][c-a]=d,i--,i==-1&&(s++,i=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}};Lt.PAD0=236;Lt.PAD1=17;Lt.createData=function(e,t,r){for(var n=Nt.getRSBlocks(e,t),i=new jc,s=0;sa*8)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+a*8+")");for(i.getLengthInBits()+4<=a*8&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=a*8||(i.put(Lt.PAD0,8),i.getLengthInBits()>=a*8));)i.put(Lt.PAD1,8);return Lt.createBytes(i,n)};Lt.createBytes=function(e,t){for(var r=0,n=0,i=0,s=new Array(t.length),c=new Array(t.length),a=0;a=0?A.get(L):0}}for(var H=0,g=0;g=0;)t^=Ve.G15<=0;)t^=Ve.G18<>>=1;return t},getPatternPosition:function(e){return Ve.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case jt.PATTERN000:return(t+r)%2==0;case jt.PATTERN001:return t%2==0;case jt.PATTERN010:return r%3==0;case jt.PATTERN011:return(t+r)%3==0;case jt.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case jt.PATTERN101:return t*r%2+t*r%3==0;case jt.PATTERN110:return(t*r%2+t*r%3)%2==0;case jt.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new jr([1],0),r=0;r5&&(r+=3+s-5)}for(var n=0;n=256;)e-=255;return Xe.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var tt=0;tt<8;tt++)Xe.EXP_TABLE[tt]=1<>>7-e%8&1)==1},put:function(e,t){for(var r=0;r>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var hs=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function Uc(e){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof e=="string"&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function r(d){switch(d){case"L":return Wt.L;case"M":return Wt.M;case"Q":return Wt.Q;case"H":return Wt.H;default:throw new Error("Unknwon error correction level: "+d)}}function n(d,p){for(var g=i(d),y=1,_=0,A=0,L=hs.length;A<=L;A++){var H=hs[A];if(!H)throw new Error("Content too long: expected "+_+" but got "+g);switch(p){case"L":_=H[0];break;case"M":_=H[1];break;case"Q":_=H[2];break;case"H":_=H[3];break;default:throw new Error("Unknwon error correction level: "+p)}if(g<=_)break;y++}if(y>hs.length)throw new Error("Content too long");return y}function i(d){var p=encodeURI(d).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return p.length+(p.length!=d?3:0)}var s=this.options.content,c=n(s,this.options.ecl),a=r(this.options.ecl);this.qrcode=new Lt(c,a),this.qrcode.addData(s),this.qrcode.make()}Uc.prototype.svg=function(e){var t=this.options||{},r=this.qrcode.modules;typeof e>"u"&&(e={container:t.container||"svg"});for(var n=typeof t.pretty<"u"?!!t.pretty:!0,i=n?" ":"",s=n?`\r -`:"",c=t.width,a=t.height,d=r.length,p=c/(d+2*t.padding),g=a/(d+2*t.padding),y=typeof t.join<"u"?!!t.join:!1,_=typeof t.swap<"u"?!!t.swap:!1,A=typeof t.xmlDeclaration<"u"?!!t.xmlDeclaration:!0,L=typeof t.predefined<"u"?!!t.predefined:!1,H=L?i+''+s:"",F=i+''+s,I="",O="",B=0;B'+s:I+=i+''+s}}y&&(I=i+'');let oe="";if(this.options.image!==void 0&&this.options.image.svg){const x=c*this.options.image.width/100,o=a*this.options.image.height/100,f=c/2-x/2,w=a/2-o/2;oe+=``,oe+=this.options.image.svg+s,oe+=""}var pe="";switch(e.container){case"svg":A&&(pe+=''+s),pe+=''+s,pe+=H+F+I,pe+=oe,pe+="";break;case"svg-viewbox":A&&(pe+=''+s),pe+=''+s,pe+=H+F+I,pe+=oe,pe+="";break;case"g":pe+=''+s,pe+=H+F+I,pe+=oe,pe+="";break;default:pe+=(H+F+I+oe).replace(/^\s+/,"");break}return pe};var hd=Uc,dd=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ii,"__esModule",{value:!0});Ii.QRCode=void 0;const fd=at,Xo=Ci,pd=dd(hd),gd=e=>{const[t,r]=(0,Xo.useState)("");return(0,Xo.useEffect)(()=>{var n,i;const s=new pd.default({content:e.content,background:e.bgColor||"#ffffff",color:e.fgColor||"#000000",container:"svg",ecl:"M",width:(n=e.width)!==null&&n!==void 0?n:256,height:(i=e.height)!==null&&i!==void 0?i:256,padding:0,image:e.image}),c=Buffer.from(s.svg(),"utf8").toString("base64");r(`data:image/svg+xml;base64,${c}`)},[e.bgColor,e.content,e.fgColor,e.height,e.image,e.width]),t?(0,fd.h)("img",{src:t,alt:"QR Code"}):null};Ii.QRCode=gd;var Ai={},ro={};Object.defineProperty(ro,"__esModule",{value:!0});ro.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}";var md=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.Spinner=void 0;const zn=at,wd=md(ro),yd=e=>{var t;const r=(t=e.size)!==null&&t!==void 0?t:64,n=e.color||"#000";return(0,zn.h)("div",{class:"-cbwsdk-spinner"},(0,zn.h)("style",null,wd.default),(0,zn.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:r,height:r}},(0,zn.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))};Ai.Spinner=yd;var no={};Object.defineProperty(no,"__esModule",{value:!0});no.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer;border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}";var Hc=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zr,"__esModule",{value:!0});zr.CoinbaseWalletSteps=zr.ConnectContent=void 0;const gr=Hc(An),we=at,bd=X,vd=Yr,_d=Mi,Ed=ki,Sd=xi,Rd=Ii,Cd=Ai,Md=Hc(no),ds={title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",steps:Wc},kd=e=>e==="light"?"#FFFFFF":"#0A0B0D";function xd(e){const{theme:t}=e,r=(0,bd.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId),n=ds.steps;return(0,we.h)("div",{"data-testid":"connect-content",className:(0,gr.default)("-cbwsdk-connect-content",t)},(0,we.h)("style",null,Md.default),(0,we.h)("div",{className:"-cbwsdk-connect-content-header"},(0,we.h)("h2",{className:(0,gr.default)("-cbwsdk-connect-content-heading",t)},"Scan to connect with our mobile app"),e.onCancel&&(0,we.h)("button",{type:"button",className:"-cbwsdk-cancel-button",onClick:e.onCancel},(0,we.h)(_d.CloseIcon,{fill:t==="light"?"#0A0B0D":"#FFFFFF"}))),(0,we.h)("div",{className:"-cbwsdk-connect-content-layout"},(0,we.h)("div",{className:"-cbwsdk-connect-content-column-left"},(0,we.h)(Id,{title:ds.title,description:ds.description,theme:t})),(0,we.h)("div",{className:"-cbwsdk-connect-content-column-right"},(0,we.h)("div",{className:"-cbwsdk-connect-content-qr-wrapper"},(0,we.h)(Rd.QRCode,{content:r,width:200,height:200,fgColor:"#000",bgColor:"transparent"}),(0,we.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:vd.LIB_VERSION}),(0,we.h)("input",{type:"hidden",value:r})),(0,we.h)(n,{theme:t}),!e.isConnected&&(0,we.h)("div",{"data-testid":"connecting-spinner",className:(0,gr.default)("-cbwsdk-connect-content-qr-connecting",t)},(0,we.h)(Cd.Spinner,{size:36,color:t==="dark"?"#FFF":"#000"}),(0,we.h)("p",null,"Connecting...")))))}zr.ConnectContent=xd;function Id({title:e,description:t,theme:r}){return(0,we.h)("div",{className:(0,gr.default)("-cbwsdk-connect-item",r)},(0,we.h)("div",null,(0,we.h)(Ed.CoinbaseWalletRound,null)),(0,we.h)("div",{className:"-cbwsdk-connect-item-copy-wrapper"},(0,we.h)("h3",{className:"-cbwsdk-connect-item-title"},e),(0,we.h)("p",{className:"-cbwsdk-connect-item-description"},t)))}function Wc({theme:e}){return(0,we.h)("ol",{className:"-cbwsdk-wallet-steps"},(0,we.h)("li",{className:(0,gr.default)("-cbwsdk-wallet-steps-item",e)},(0,we.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,we.h)("li",{className:(0,gr.default)("-cbwsdk-wallet-steps-item",e)},(0,we.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},(0,we.h)("span",null,"Tap ",(0,we.h)("strong",null,"Scan")," "),(0,we.h)("span",{className:(0,gr.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,we.h)(Sd.QRCodeIcon,{fill:kd(e)})))))}zr.CoinbaseWalletSteps=Wc;var Ti={},Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ArrowLeftIcon=void 0;const ea=at;function Ad(e){return(0,ea.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,ea.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}Ni.ArrowLeftIcon=Ad;var Li={};Object.defineProperty(Li,"__esModule",{value:!0});Li.LaptopIcon=void 0;const fs=at;function Td(e){return(0,fs.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,fs.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,fs.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}Li.LaptopIcon=Td;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});Bi.SafeIcon=void 0;const ta=at;function Nd(e){return(0,ta.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,ta.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}Bi.SafeIcon=Nd;var io={};Object.defineProperty(io,"__esModule",{value:!0});io.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}";var Vc=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.TryExtensionContent=void 0;const ar=Vc(An),Ge=at,ps=Ci,Ld=Ni,Bd=Li,Pd=Bi,Od=Vc(io);function $d({theme:e}){const[t,r]=(0,ps.useState)(!1),n=(0,ps.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),i=(0,ps.useCallback)(()=>{t?window.location.reload():(n(),r(!0))},[n,t]);return(0,Ge.h)("div",{class:(0,ar.default)("-cbwsdk-try-extension",e)},(0,Ge.h)("style",null,Od.default),(0,Ge.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Ge.h)("h3",{class:(0,ar.default)("-cbwsdk-try-extension-heading",e)},"Or try the Coinbase Wallet browser extension"),(0,Ge.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,Ge.h)("button",{class:(0,ar.default)("-cbwsdk-try-extension-cta",e),onClick:i},t?"Refresh":"Install"),(0,Ge.h)("div",null,!t&&(0,Ge.h)(Ld.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:e==="light"?"#0052FF":"#588AF5"})))),(0,Ge.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Ge.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,Ge.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Ge.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Ge.h)("span",{class:(0,ar.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,Ge.h)(Bd.LaptopIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Ge.h)("div",{class:(0,ar.default)("-cbwsdk-try-extension-list-item-copy",e)},"Connect with dapps with just one click on your desktop browser")),(0,Ge.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Ge.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Ge.h)("span",{class:(0,ar.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,Ge.h)(Pd.SafeIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Ge.h)("div",{class:(0,ar.default)("-cbwsdk-try-extension-list-item-copy",e)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}Ti.TryExtensionContent=$d;var so={};Object.defineProperty(so,"__esModule",{value:!0});so.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}";var qc=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.ConnectDialog=void 0;const gs=qc(An),cr=at,ms=Ci,Fd=zr,Dd=Ti,jd=qc(so),Ud=e=>{const{isOpen:t,darkMode:r}=e,[n,i]=(0,ms.useState)(!t),[s,c]=(0,ms.useState)(!t);(0,ms.useEffect)(()=>{const d=[window.setTimeout(()=>{c(!t)},10)];return t?i(!1):d.push(window.setTimeout(()=>{i(!0)},360)),()=>{d.forEach(window.clearTimeout)}},[t]);const a=r?"dark":"light";return(0,cr.h)("div",{class:(0,gs.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,cr.h)("style",null,jd.default),(0,cr.h)("div",{class:(0,gs.default)("-cbwsdk-connect-dialog-backdrop",a,s&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,cr.h)("div",{class:"-cbwsdk-connect-dialog"},(0,cr.h)("div",{class:(0,gs.default)("-cbwsdk-connect-dialog-box",s&&"-cbwsdk-connect-dialog-box-hidden")},e.connectDisabled?null:(0,cr.h)(Fd.ConnectContent,{theme:a,version:e.version,sessionId:e.sessionId,sessionSecret:e.sessionSecret,linkAPIUrl:e.linkAPIUrl,isConnected:e.isConnected,isParentConnection:e.isParentConnection,chainId:e.chainId,onCancel:e.onCancel}),(0,cr.h)(Dd.TryExtensionContent,{theme:a}))))};Ri.ConnectDialog=Ud;Object.defineProperty(Si,"__esModule",{value:!0});Si.LinkFlow=void 0;const ws=at,Hd=Ri;class Wd{constructor(t){this.connected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=t.darkMode,this.version=t.version,this.sessionId=t.sessionId,this.sessionSecret=t.sessionSecret,this.linkAPIUrl=t.linkAPIUrl,this.isParentConnection=t.isParentConnection}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",t.appendChild(this.root),this.render()}setConnected(t){this.connected!==t&&(this.connected=t,this.render())}setChainId(t){this.chainId!==t&&(this.chainId=t,this.render())}detach(){var t;this.root&&((0,ws.render)(null,this.root),(t=this.root.parentElement)===null||t===void 0||t.removeChild(this.root))}setConnectDisabled(t){this.connectDisabled=t}open(t){this.isOpen=!0,this.onCancel=t.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){this.root&&(0,ws.render)((0,ws.h)(Hd.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.connected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}}Si.LinkFlow=Wd;var oo={},ao={};Object.defineProperty(ao,"__esModule",{value:!0});ao.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}";(function(e){var t=ee&&ee.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.SnackbarInstance=e.SnackbarContainer=e.Snackbar=void 0;const r=t(An),n=at,i=Ci,s=t(ao),c="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";class d{constructor(_){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=_.darkMode}attach(_){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",_.appendChild(this.root),this.render()}presentItem(_){const A=this.nextItemKey++;return this.items.set(A,_),this.render(),()=>{this.items.delete(A),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,n.render)((0,n.h)("div",null,(0,n.h)(e.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([_,A])=>(0,n.h)(e.SnackbarInstance,Object.assign({},A,{key:_}))))),this.root)}}e.Snackbar=d;const p=y=>(0,n.h)("div",{class:(0,r.default)("-cbwsdk-snackbar-container")},(0,n.h)("style",null,s.default),(0,n.h)("div",{class:"-cbwsdk-snackbar"},y.children));e.SnackbarContainer=p;const g=({autoExpand:y,message:_,menuItems:A})=>{const[L,H]=(0,i.useState)(!0),[F,I]=(0,i.useState)(y??!1);(0,i.useEffect)(()=>{const B=[window.setTimeout(()=>{H(!1)},1),window.setTimeout(()=>{I(!0)},1e4)];return()=>{B.forEach(window.clearTimeout)}});const O=()=>{I(!F)};return(0,n.h)("div",{class:(0,r.default)("-cbwsdk-snackbar-instance",L&&"-cbwsdk-snackbar-instance-hidden",F&&"-cbwsdk-snackbar-instance-expanded")},(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:O},(0,n.h)("img",{src:c,class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},_),(0,n.h)("div",{class:"-gear-container"},!F&&(0,n.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,n.h)("img",{src:a,class:"-gear-icon",title:"Expand"}))),A&&A.length>0&&(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},A.map((B,V)=>(0,n.h)("div",{class:(0,r.default)("-cbwsdk-snackbar-instance-menu-item",B.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:B.onClick,key:V},(0,n.h)("svg",{width:B.svgWidth,height:B.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("path",{"fill-rule":B.defaultFillRule,"clip-rule":B.defaultClipRule,d:B.path,fill:"#AAAAAA"})),(0,n.h)("span",{class:(0,r.default)("-cbwsdk-snackbar-instance-menu-item-info",B.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},B.info)))))};e.SnackbarInstance=g})(oo);Object.defineProperty(xn,"__esModule",{value:!0});xn.WalletLinkRelayUI=void 0;const Vd=In,qd=Si,zd=oo;class Gd{constructor(t){this.standalone=null,this.attached=!1,this.snackbar=new zd.Snackbar({darkMode:t.darkMode}),this.linkFlow=new qd.LinkFlow({darkMode:t.darkMode,version:t.version,sessionId:t.session.id,sessionSecret:t.session.secret,linkAPIUrl:t.linkAPIUrl,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const t=document.documentElement,r=document.createElement("div");r.className="-cbwsdk-css-reset",t.appendChild(r),this.linkFlow.attach(r),this.snackbar.attach(r),this.attached=!0,(0,Vd.injectCssReset)()}setConnected(t){this.linkFlow.setConnected(t)}setChainId(t){this.linkFlow.setChainId(t)}setConnectDisabled(t){this.linkFlow.setConnectDisabled(t)}addEthereumChain(){}watchAsset(){}switchEthereumChain(){}requestEthereumAccounts(t){this.linkFlow.open({onCancel:t.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}showConnecting(t){let r;return t.isUnlinkedErrorState?r={autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]}:r={message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:t.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]},this.snackbar.presentItem(r)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(t){this.standalone=t}isStandalone(){var t;return(t=this.standalone)!==null&&t!==void 0?t:!1}}xn.WalletLinkRelayUI=Gd;Object.defineProperty(En,"__esModule",{value:!0});En.WalletLinkRelay=void 0;const Pr=wn,Jd=Ze,We=X,lr=Xr,ra=wt,Ut=en,Zd=vi,ur=Qr,Kd=xn;class $t extends ra.RelayAbstract{constructor(t){var r;super(),this.accountsCallback=null,this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.chainCallback=null,this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.linkedUpdated=c=>{var a;this.isLinked=c;const d=this.storage.getItem(ra.LOCAL_STORAGE_ADDRESSES_KEY);if(c&&(this.session.linked=c),this.isUnlinkedErrorState=!1,d){const p=d.split(" "),g=this.storage.getItem("IsStandaloneSigning")==="true";if(p[0]!==""&&!c&&this.session.linked&&!g){this.isUnlinkedErrorState=!0;const y=this.getSessionIdHash();(a=this.diagnostic)===null||a===void 0||a.log(lr.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:y})}}},this.metadataUpdated=(c,a)=>{this.storage.setItem(c,a)},this.chainUpdated=(c,a)=>{this.chainCallbackParams.chainId===c&&this.chainCallbackParams.jsonRpcUrl===a||(this.chainCallbackParams={chainId:c,jsonRpcUrl:a},this.chainCallback&&this.chainCallback(c,a))},this.accountUpdated=c=>{this.accountsCallback&&this.accountsCallback([c]),$t.accountRequestCallbackIds.size>0&&(Array.from($t.accountRequestCallbackIds.values()).forEach(a=>{const d={type:"WEB3_RESPONSE",id:a,response:{method:"requestEthereumAccounts",result:[c]}};this.invokeCallback(Object.assign(Object.assign({},d),{id:a}))}),$t.accountRequestCallbackIds.clear())},this.connectedUpdated=c=>{this.ui.setConnected(c)},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.options=t;const{session:n,ui:i,connection:s}=this.subscribe();this._session=n,this.connection=s,this.relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this._reloadOnDisconnect=(r=t.reloadOnDisconnect)!==null&&r!==void 0?r:!0,this.ui=i}subscribe(){const t=Ut.Session.load(this.storage)||new Ut.Session(this.storage).save(),{linkAPIUrl:r,diagnostic:n}=this,i=new Zd.WalletLinkConnection({session:t,linkAPIUrl:r,diagnostic:n,listener:this}),{version:s,darkMode:c}=this.options,a=this.options.uiConstructor({linkAPIUrl:r,version:s,darkMode:c,session:t});return i.connect(),{session:t,ui:a,connection:i}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata("__destroyed","1"),new Promise(t=>setTimeout(()=>t(null),1e3))]).then(()=>{var t,r;const n=this.ui.isStandalone();(t=this.diagnostic)===null||t===void 0||t.log(lr.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const i=Ut.Session.load(this.storage);if((i==null?void 0:i.id)===this._session.id?this.storage.clear():i&&((r=this.diagnostic)===null||r===void 0||r.log(lr.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:Ut.Session.hash(i.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);const{session:s,ui:c,connection:a}=this.subscribe();this._session=s,this.connection=a,this.ui=c,n&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.options.headlessMode||this.attachUI()}).catch(t=>{var r;(r=this.diagnostic)===null||r===void 0||r.log(lr.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${t}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(t,r){this.appName=t,this.appLogoUrl=r}getStorageItem(t){return this.storage.getItem(t)}get session(){return this._session}setStorageItem(t,r){this.storage.setItem(t,r)}signEthereumMessage(t,r,n,i){return this.sendRequest({method:"signEthereumMessage",params:{message:(0,We.hexStringFromBuffer)(t,!0),address:r,addPrefix:n,typedDataJson:i||null}})}ethereumAddressFromSignedMessage(t,r,n){return this.sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:(0,We.hexStringFromBuffer)(t,!0),signature:(0,We.hexStringFromBuffer)(r,!0),addPrefix:n}})}signEthereumTransaction(t){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,We.bigIntStringFromBN)(t.weiValue),data:(0,We.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,We.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?(0,We.bigIntStringFromBN)(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?(0,We.bigIntStringFromBN)(t.gasPriceInWei):null,gasLimit:t.gasLimit?(0,We.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,We.bigIntStringFromBN)(t.weiValue),data:(0,We.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,We.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?(0,We.bigIntStringFromBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?(0,We.bigIntStringFromBN)(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?(0,We.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,r){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:(0,We.hexStringFromBuffer)(t,!0),chainId:r}})}scanQRCode(t){return this.sendRequest({method:"scanQRCode",params:{regExp:t}})}getQRCodeUrl(){return(0,We.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(t,r){return this.sendRequest({method:"generic",params:{action:r,data:t}})}sendGenericMessage(t){return this.sendRequest(t)}sendRequest(t){let r=null;const n=(0,We.randomBytesHex)(8),i=c=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,c),r==null||r()};return{promise:new Promise((c,a)=>{this.ui.isStandalone()||(r=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:i,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,d=>{if(r==null||r(),(0,ur.isErrorResponse)(d))return a(new Error(d.errorMessage));c(d)}),this.ui.isStandalone()?this.sendRequestStandalone(n,t):this.publishWeb3RequestEvent(n,t)}),cancel:i}}setConnectDisabled(t){this.ui.setConnectDisabled(t)}setAccountsCallback(t){this.accountsCallback=t}setChainCallback(t){this.chainCallback=t}setDappDefaultChainCallback(t){this.dappDefaultChain=t,this.ui instanceof Kd.WalletLinkRelayUI&&this.ui.setChainId(t)}publishWeb3RequestEvent(t,r){var n;const i={type:"WEB3_REQUEST",id:t,request:r},s=Ut.Session.load(this.storage);(n=this.diagnostic)===null||n===void 0||n.log(lr.EVENTS.WEB3_REQUEST,{eventId:i.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?Ut.Session.hash(s.id):"",isSessionMismatched:((s==null?void 0:s.id)!==this._session.id).toString()}),this.publishEvent("Web3Request",i,!0).then(c=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(lr.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:i.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?Ut.Session.hash(s.id):"",isSessionMismatched:((s==null?void 0:s.id)!==this._session.id).toString()})}).catch(c=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i.id,response:{method:r.method,errorMessage:c.message}})})}publishWeb3RequestCanceledEvent(t){const r={type:"WEB3_REQUEST_CANCELED",id:t};this.publishEvent("Web3RequestCanceled",r,!1).then()}publishEvent(t,r,n){return this.connection.publishEvent(t,r,n)}handleWeb3ResponseMessage(t){var r;const{response:n}=t;if((r=this.diagnostic)===null||r===void 0||r.log(lr.EVENTS.WEB3_RESPONSE,{eventId:t.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),n.method==="requestEthereumAccounts"){$t.accountRequestCallbackIds.forEach(i=>this.invokeCallback(Object.assign(Object.assign({},t),{id:i}))),$t.accountRequestCallbackIds.clear();return}this.invokeCallback(t)}handleErrorResponse(t,r,n,i){var s;const c=(s=n==null?void 0:n.message)!==null&&s!==void 0?s:(0,Pr.getMessageFromCode)(i);this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:t,response:{method:r,errorMessage:c,errorCode:i}})}invokeCallback(t){const r=this.relayEventManager.callbacks.get(t.id);r&&(r(t.response),this.relayEventManager.callbacks.delete(t.id))}requestEthereumAccounts(){const t={method:"requestEthereumAccounts",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},r=(0,We.randomBytesHex)(8),n=s=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,s)};return{promise:new Promise((s,c)=>{if(this.relayEventManager.callbacks.set(r,a=>{if(this.ui.hideRequestEthereumAccounts(),(0,ur.isErrorResponse)(a))return c(new Error(a.errorMessage));s(a)}),this.ui.inlineAccountsResponse()){const a=d=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:r,response:{method:"requestEthereumAccounts",result:d}})};this.ui.requestEthereumAccounts({onCancel:n,onAccounts:a})}else{const a=Pr.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>n(a)})}$t.accountRequestCallbackIds.add(r),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(r,t)}),cancel:n}}selectProvider(t){const r={method:"selectProvider",params:{providerOptions:t}},n=(0,We.randomBytesHex)(8),i=c=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,r.method,c)},s=new Promise((c,a)=>{this.relayEventManager.callbacks.set(n,g=>{if((0,ur.isErrorResponse)(g))return a(new Error(g.errorMessage));c(g)});const d=g=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:n,response:{method:"selectProvider",result:Jd.ProviderType.Unselected}})},p=g=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:n,response:{method:"selectProvider",result:g}})};this.ui.selectProvider&&this.ui.selectProvider({onApprove:p,onCancel:d,providerOptions:t})});return{cancel:i,promise:s}}watchAsset(t,r,n,i,s,c){const a={method:"watchAsset",params:{type:t,options:{address:r,symbol:n,decimals:i,image:s},chainId:c}};let d=null;const p=(0,We.randomBytesHex)(8),g=_=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,a.method,_),d==null||d()};this.ui.inlineWatchAsset()||(d=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:g,onResetConnection:this.resetAndReload}));const y=new Promise((_,A)=>{this.relayEventManager.callbacks.set(p,F=>{if(d==null||d(),(0,ur.isErrorResponse)(F))return A(new Error(F.errorMessage));_(F)});const L=F=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"watchAsset",result:!1}})},H=()=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"watchAsset",result:!0}})};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:H,onCancel:L,type:t,address:r,symbol:n,decimals:i,image:s,chainId:c}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(p,a)});return{cancel:g,promise:y}}addEthereumChain(t,r,n,i,s,c){const a={method:"addEthereumChain",params:{chainId:t,rpcUrls:r,blockExplorerUrls:i,chainName:s,iconUrls:n,nativeCurrency:c}};let d=null;const p=(0,We.randomBytesHex)(8),g=_=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,a.method,_),d==null||d()};return this.ui.inlineAddEthereumChain(t)||(d=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:g,onResetConnection:this.resetAndReload})),{promise:new Promise((_,A)=>{this.relayEventManager.callbacks.set(p,F=>{if(d==null||d(),(0,ur.isErrorResponse)(F))return A(new Error(F.errorMessage));_(F)});const L=F=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"addEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},H=F=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"addEthereumChain",result:{isApproved:!0,rpcUrl:F}}})};this.ui.inlineAddEthereumChain(t)&&this.ui.addEthereumChain({onCancel:L,onApprove:H,chainId:a.params.chainId,rpcUrls:a.params.rpcUrls,blockExplorerUrls:a.params.blockExplorerUrls,chainName:a.params.chainName,iconUrls:a.params.iconUrls,nativeCurrency:a.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(t)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(p,a)}),cancel:g}}switchEthereumChain(t,r){const n={method:"switchEthereumChain",params:Object.assign({chainId:t},{address:r})},i=(0,We.randomBytesHex)(8),s=a=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,n.method,a)};return{promise:new Promise((a,d)=>{this.relayEventManager.callbacks.set(i,y=>{if((0,ur.isErrorResponse)(y)&&y.errorCode)return d(Pr.standardErrors.provider.custom({code:y.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if((0,ur.isErrorResponse)(y))return d(new Error(y.errorMessage));a(y)});const p=y=>{var _;if(y){const A=(_=(0,Pr.getErrorCode)(y))!==null&&_!==void 0?_:Pr.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(i,"switchEthereumChain",y instanceof Error?y:Pr.standardErrors.provider.unsupportedChain(t),A)}else this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i,response:{method:"switchEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},g=y=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i,response:{method:"switchEthereumChain",result:{isApproved:!0,rpcUrl:y}}})};this.ui.switchEthereumChain({onCancel:p,onApprove:g,chainId:n.params.chainId,address:n.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(i,n)}),cancel:s}}inlineAddEthereumChain(t){return this.ui.inlineAddEthereumChain(t)}getSessionIdHash(){return Ut.Session.hash(this._session.id)}sendRequestStandalone(t,r){const n=s=>{this.handleErrorResponse(t,r.method,s)},i=s=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:t,response:s})};switch(r.method){case"signEthereumMessage":this.ui.signEthereumMessage({request:r,onSuccess:i,onCancel:n});break;case"signEthereumTransaction":this.ui.signEthereumTransaction({request:r,onSuccess:i,onCancel:n});break;case"submitEthereumTransaction":this.ui.submitEthereumTransaction({request:r,onSuccess:i,onCancel:n});break;case"ethereumAddressFromSignedMessage":this.ui.ethereumAddressFromSignedMessage({request:r,onSuccess:i});break;default:n();break}}}En.WalletLinkRelay=$t;$t.accountRequestCallbackIds=new Set;var Tn={},Pi={},zc={};(function(e){var t=ee&&ee.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,c,a)}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=ee&&ee.__exportStar||function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(oo,e)})(zc);var co={};Object.defineProperty(co,"__esModule",{value:!0});co.default=".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}";var Gc=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pi,"__esModule",{value:!0});Pi.RedirectDialog=void 0;const Qd=Gc(An),At=at,Yd=In,Xd=zc,ef=Gc(co);class tf{constructor(){this.root=null}attach(){const t=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",t.appendChild(this.root),(0,Yd.injectCssReset)()}present(t){this.render(t)}clear(){this.render(null)}render(t){this.root&&((0,At.render)(null,this.root),t&&(0,At.render)((0,At.h)(rf,Object.assign({},t,{onDismiss:()=>{this.clear()}})),this.root))}}Pi.RedirectDialog=tf;const rf=({title:e,buttonText:t,darkMode:r,onButtonClick:n,onDismiss:i})=>{const s=r?"dark":"light";return(0,At.h)(Xd.SnackbarContainer,{darkMode:r},(0,At.h)("div",{class:"-cbwsdk-redirect-dialog"},(0,At.h)("style",null,ef.default),(0,At.h)("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:i}),(0,At.h)("div",{class:(0,Qd.default)("-cbwsdk-redirect-dialog-box",s)},(0,At.h)("p",null,e),(0,At.h)("button",{onClick:n},t))))};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.MobileRelayUI=void 0;const nf=Pi;class sf{constructor(t){this.attached=!1,this.darkMode=!1,this.redirectDialog=new nf.RedirectDialog,this.darkMode=t.darkMode}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}setConnected(t){}redirectToCoinbaseWallet(t){const r=new URL("https://go.cb-w.com/walletlink");r.searchParams.append("redirect_url",window.location.href),t&&r.searchParams.append("wl_url",t);const n=document.createElement("a");n.target="cbw-opener",n.href=r.href,n.rel="noreferrer noopener",n.click()}openCoinbaseWalletDeeplink(t){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",darkMode:this.darkMode,onButtonClick:()=>{this.redirectToCoinbaseWallet(t)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(t)},99)}showConnecting(t){return()=>{this.redirectDialog.clear()}}hideRequestEthereumAccounts(){this.redirectDialog.clear()}requestEthereumAccounts(){}addEthereumChain(){}watchAsset(){}selectProvider(){}switchEthereumChain(){}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}reloadUI(){}setStandalone(){}setConnectDisabled(){}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}isStandalone(){return!1}}Tn.MobileRelayUI=sf;Object.defineProperty(_n,"__esModule",{value:!0});_n.MobileRelay=void 0;const of=X,af=En,cf=Tn;class lf extends af.WalletLinkRelay{constructor(t){var r;super(t),this._enableMobileWalletLink=(r=t.enableMobileWalletLink)!==null&&r!==void 0?r:!1}requestEthereumAccounts(){return this._enableMobileWalletLink?super.requestEthereumAccounts():{promise:new Promise(()=>{const t=(0,of.getLocation)();t.href=`https://go.cb-w.com/dapp?cb_url=${encodeURIComponent(t.href)}`}),cancel:()=>{}}}publishWeb3RequestEvent(t,r){if(super.publishWeb3RequestEvent(t,r),!(this._enableMobileWalletLink&&this.ui instanceof cf.MobileRelayUI))return;let n=!1;switch(r.method){case"requestEthereumAccounts":case"connectAndSignIn":n=!0,this.ui.openCoinbaseWalletDeeplink(this.getQRCodeUrl());break;case"switchEthereumChain":return;default:n=!0,this.ui.openCoinbaseWalletDeeplink();break}n&&window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0})}handleWeb3ResponseMessage(t){super.handleWeb3ResponseMessage(t)}connectAndSignIn(t){if(!this._enableMobileWalletLink)throw new Error("connectAndSignIn is supported only when enableMobileWalletLink is on");return this.sendRequest({method:"connectAndSignIn",params:{appName:this.appName,appLogoUrl:this.appLogoUrl,domain:window.location.hostname,aud:window.location.href,version:"1",type:"eip4361",nonce:t.nonce,iat:new Date().toISOString(),chainId:`eip155:${this.dappDefaultChain}`,statement:t.statement,resources:t.resources}})}}_n.MobileRelay=lf;var Hs={exports:{}},Jc=ai.EventEmitter,ys,na;function uf(){if(na)return ys;na=1;function e(L,H){var F=Object.keys(L);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(L);H&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(L,O).enumerable})),F.push.apply(F,I)}return F}function t(L){for(var H=1;H0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(F){var I={data:F,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var F=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,F}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(F){if(this.length===0)return"";for(var I=this.head,O=""+I.data;I=I.next;)O+=F+I.data;return O}},{key:"concat",value:function(F){if(this.length===0)return p.alloc(0);for(var I=p.allocUnsafe(F>>>0),O=this.head,B=0;O;)A(O.data,I,B),B+=O.data.length,O=O.next;return I}},{key:"consume",value:function(F,I){var O;return FV.length?V.length:F;if(j===V.length?B+=V:B+=V.slice(0,F),F-=j,F===0){j===V.length?(++O,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=V.slice(j));break}++O}return this.length-=O,B}},{key:"_getBuffer",value:function(F){var I=p.allocUnsafe(F),O=this.head,B=1;for(O.data.copy(I),F-=O.data.length;O=O.next;){var V=O.data,j=F>V.length?V.length:F;if(V.copy(I,I.length-F,0,j),F-=j,F===0){j===V.length?(++B,O.next?this.head=O.next:this.head=this.tail=null):(this.head=O,O.data=V.slice(j));break}++B}return this.length-=B,I}},{key:_,value:function(F,I){return y(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),L}(),ys}function hf(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Ws,this,e)):process.nextTick(Ws,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(ri,r):(r._writableState.errorEmitted=!0,process.nextTick(ia,r,s)):process.nextTick(ia,r,s):t?(process.nextTick(ri,r),t(s)):process.nextTick(ri,r)}),this)}function ia(e,t){Ws(e,t),ri(e)}function ri(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function df(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ws(e,t){e.emit("error",t)}function ff(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}var Zc={destroy:hf,undestroy:df,errorOrDestroy:ff},vr={};function pf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Kc={};function vt(e,t,r){r||(r=Error);function n(s,c,a){return typeof t=="string"?t:t(s,c,a)}var i=function(s){pf(c,s);function c(a,d,p){return s.call(this,n(a,d,p))||this}return c}(r);i.prototype.name=r.name,i.prototype.code=e,Kc[e]=i}function sa(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function gf(e,t,r){return e.substr(0,t.length)===t}function mf(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function wf(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}vt("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);vt("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&gf(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(mf(e," argument"))i="The ".concat(e," ").concat(n," ").concat(sa(t,"type"));else{var s=wf(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(s," ").concat(n," ").concat(sa(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);vt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");vt("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});vt("ERR_STREAM_PREMATURE_CLOSE","Premature close");vt("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});vt("ERR_MULTIPLE_CALLBACK","Callback called multiple times");vt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");vt("ERR_STREAM_WRITE_AFTER_END","write after end");vt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);vt("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);vt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");vr.codes=Kc;var yf=vr.codes.ERR_INVALID_OPT_VALUE;function bf(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function vf(e,t,r,n){var i=bf(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new yf(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}var Qc={getHighWaterMark:vf},_f=Ef;function Ef(e,t){if(bs("noDeprecation"))return e;var r=!1;function n(){if(!r){if(bs("throwDeprecation"))throw new Error(t);bs("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function bs(e){try{if(!ee.localStorage)return!1}catch{return!1}var t=ee.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var vs,oa;function Yc(){if(oa)return vs;oa=1,vs=Y;function e(T){var $=this;this.next=null,this.entry=null,this.finish=function(){J($,T)}}var t;Y.WritableState=z;var r={deprecate:_f},n=Jc,i=Sn.Buffer,s=(typeof ee<"u"?ee:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c(T){return i.from(T)}function a(T){return i.isBuffer(T)||T instanceof s}var d=Zc,p=Qc,g=p.getHighWaterMark,y=vr.codes,_=y.ERR_INVALID_ARG_TYPE,A=y.ERR_METHOD_NOT_IMPLEMENTED,L=y.ERR_MULTIPLE_CALLBACK,H=y.ERR_STREAM_CANNOT_PIPE,F=y.ERR_STREAM_DESTROYED,I=y.ERR_STREAM_NULL_VALUES,O=y.ERR_STREAM_WRITE_AFTER_END,B=y.ERR_UNKNOWN_ENCODING,V=d.errorOrDestroy;St(Y,n);function j(){}function z(T,$,W){t=t||Gr(),T=T||{},typeof W!="boolean"&&(W=$ instanceof t),this.objectMode=!!T.objectMode,W&&(this.objectMode=this.objectMode||!!T.writableObjectMode),this.highWaterMark=g(this,T,"writableHighWaterMark",W),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=T.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){w($,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=T.emitClose!==!1,this.autoDestroy=!!T.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}z.prototype.getBuffer=function(){for(var $=this.bufferedRequest,W=[];$;)W.push($),$=$.next;return W},function(){try{Object.defineProperty(z.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var te;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(te=Function.prototype[Symbol.hasInstance],Object.defineProperty(Y,Symbol.hasInstance,{value:function($){return te.call(this,$)?!0:this!==Y?!1:$&&$._writableState instanceof z}})):te=function($){return $ instanceof this};function Y(T){t=t||Gr();var $=this instanceof t;if(!$&&!te.call(Y,this))return new Y(T);this._writableState=new z(T,this,$),this.writable=!0,T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final)),n.call(this)}Y.prototype.pipe=function(){V(this,new H)};function Q(T,$){var W=new O;V(T,W),process.nextTick($,W)}function fe(T,$,W,Z){var le;return W===null?le=new I:typeof W!="string"&&!$.objectMode&&(le=new _("chunk",["string","Buffer"],W)),le?(V(T,le),process.nextTick(Z,le),!1):!0}Y.prototype.write=function(T,$,W){var Z=this._writableState,le=!1,C=!Z.objectMode&&a(T);return C&&!i.isBuffer(T)&&(T=c(T)),typeof $=="function"&&(W=$,$=null),C?$="buffer":$||($=Z.defaultEncoding),typeof W!="function"&&(W=j),Z.ending?Q(this,W):(C||fe(this,Z,T,W))&&(Z.pendingcb++,le=pe(this,Z,C,T,$,W)),le},Y.prototype.cork=function(){this._writableState.corked++},Y.prototype.uncork=function(){var T=this._writableState;T.corked&&(T.corked--,!T.writing&&!T.corked&&!T.bufferProcessing&&T.bufferedRequest&&k(this,T))},Y.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=$.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf(($+"").toLowerCase())>-1))throw new B($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(Y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function oe(T,$,W){return!T.objectMode&&T.decodeStrings!==!1&&typeof $=="string"&&($=i.from($,W)),$}Object.defineProperty(Y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function pe(T,$,W,Z,le,C){if(!W){var M=oe($,Z,le);Z!==M&&(W=!0,le="buffer",Z=M)}var q=$.objectMode?1:Z.length;$.length+=q;var G=$.length<$.highWaterMark;if(G||($.needDrain=!0),$.writing||$.corked){var se=$.lastBufferedRequest;$.lastBufferedRequest={chunk:Z,encoding:le,isBuf:W,callback:C,next:null},se?se.next=$.lastBufferedRequest:$.bufferedRequest=$.lastBufferedRequest,$.bufferedRequestCount+=1}else x(T,$,!1,q,Z,le,C);return G}function x(T,$,W,Z,le,C,M){$.writelen=Z,$.writecb=M,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new F("write")):W?T._writev(le,$.onwrite):T._write(le,C,$.onwrite),$.sync=!1}function o(T,$,W,Z,le){--$.pendingcb,W?(process.nextTick(le,Z),process.nextTick(R,T,$),T._writableState.errorEmitted=!0,V(T,Z)):(le(Z),T._writableState.errorEmitted=!0,V(T,Z),R(T,$))}function f(T){T.writing=!1,T.writecb=null,T.length-=T.writelen,T.writelen=0}function w(T,$){var W=T._writableState,Z=W.sync,le=W.writecb;if(typeof le!="function")throw new L;if(f(W),$)o(T,W,Z,$,le);else{var C=N(W)||T.destroyed;!C&&!W.corked&&!W.bufferProcessing&&W.bufferedRequest&&k(T,W),Z?process.nextTick(b,T,W,C,le):b(T,W,C,le)}}function b(T,$,W,Z){W||S(T,$),$.pendingcb--,Z(),R(T,$)}function S(T,$){$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"))}function k(T,$){$.bufferProcessing=!0;var W=$.bufferedRequest;if(T._writev&&W&&W.next){var Z=$.bufferedRequestCount,le=new Array(Z),C=$.corkedRequestsFree;C.entry=W;for(var M=0,q=!0;W;)le[M]=W,W.isBuf||(q=!1),W=W.next,M+=1;le.allBuffers=q,x(T,$,!0,$.length,le,"",C.finish),$.pendingcb++,$.lastBufferedRequest=null,C.next?($.corkedRequestsFree=C.next,C.next=null):$.corkedRequestsFree=new e($),$.bufferedRequestCount=0}else{for(;W;){var G=W.chunk,se=W.encoding,ue=W.callback,re=$.objectMode?1:G.length;if(x(T,$,!1,re,G,se,ue),W=W.next,$.bufferedRequestCount--,$.writing)break}W===null&&($.lastBufferedRequest=null)}$.bufferedRequest=W,$.bufferProcessing=!1}Y.prototype._write=function(T,$,W){W(new A("_write()"))},Y.prototype._writev=null,Y.prototype.end=function(T,$,W){var Z=this._writableState;return typeof T=="function"?(W=T,T=null,$=null):typeof $=="function"&&(W=$,$=null),T!=null&&this.write(T,$),Z.corked&&(Z.corked=1,this.uncork()),Z.ending||K(this,Z,W),this},Object.defineProperty(Y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function N(T){return T.ending&&T.length===0&&T.bufferedRequest===null&&!T.finished&&!T.writing}function v(T,$){T._final(function(W){$.pendingcb--,W&&V(T,W),$.prefinished=!0,T.emit("prefinish"),R(T,$)})}function u(T,$){!$.prefinished&&!$.finalCalled&&(typeof T._final=="function"&&!$.destroyed?($.pendingcb++,$.finalCalled=!0,process.nextTick(v,T,$)):($.prefinished=!0,T.emit("prefinish")))}function R(T,$){var W=N($);if(W&&(u(T,$),$.pendingcb===0&&($.finished=!0,T.emit("finish"),$.autoDestroy))){var Z=T._readableState;(!Z||Z.autoDestroy&&Z.endEmitted)&&T.destroy()}return W}function K(T,$,W){$.ending=!0,R(T,$),W&&($.finished?process.nextTick(W):T.once("finish",W)),$.ended=!0,T.writable=!1}function J(T,$,W){var Z=T.entry;for(T.entry=null;Z;){var le=Z.callback;$.pendingcb--,le(W),Z=Z.next}$.corkedRequestsFree.next=T}return Object.defineProperty(Y.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function($){this._writableState&&(this._writableState.destroyed=$)}}),Y.prototype.destroy=d.destroy,Y.prototype._undestroy=d.undestroy,Y.prototype._destroy=function(T,$){$(T)},vs}var _s,aa;function Gr(){if(aa)return _s;aa=1;var e=Object.keys||function(p){var g=[];for(var y in p)g.push(y);return g};_s=c;var t=el(),r=Yc();St(c,t);for(var n=e(r.prototype),i=0;i>5===6?2:I>>4===14?3:I>>3===30?4:I>>6===2?-1:-2}function c(I,O,B){var V=O.length-1;if(V=0?(j>0&&(I.lastNeed=j-1),j):--V=0?(j>0&&(I.lastNeed=j-2),j):--V=0?(j>0&&(j===2?j=0:I.lastNeed=j-3),j):0))}function a(I,O,B){if((O[0]&192)!==128)return I.lastNeed=0,"�";if(I.lastNeed>1&&O.length>1){if((O[1]&192)!==128)return I.lastNeed=1,"�";if(I.lastNeed>2&&O.length>2&&(O[2]&192)!==128)return I.lastNeed=2,"�"}}function d(I){var O=this.lastTotal-this.lastNeed,B=a(this,I);if(B!==void 0)return B;if(this.lastNeed<=I.length)return I.copy(this.lastChar,O,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);I.copy(this.lastChar,O,0,I.length),this.lastNeed-=I.length}function p(I,O){var B=c(this,I,O);if(!this.lastNeed)return I.toString("utf8",O);this.lastTotal=B;var V=I.length-(B-this.lastNeed);return I.copy(this.lastChar,0,V),I.toString("utf8",O,V)}function g(I){var O=I&&I.length?this.write(I):"";return this.lastNeed?O+"�":O}function y(I,O){if((I.length-O)%2===0){var B=I.toString("utf16le",O);if(B){var V=B.charCodeAt(B.length-1);if(V>=55296&&V<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1],B.slice(0,-1)}return B}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=I[I.length-1],I.toString("utf16le",O,I.length-1)}function _(I){var O=I&&I.length?this.write(I):"";if(this.lastNeed){var B=this.lastTotal-this.lastNeed;return O+this.lastChar.toString("utf16le",0,B)}return O}function A(I,O){var B=(I.length-O)%3;return B===0?I.toString("base64",O):(this.lastNeed=3-B,this.lastTotal=3,B===1?this.lastChar[0]=I[I.length-1]:(this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1]),I.toString("base64",O,I.length-B))}function L(I){var O=I&&I.length?this.write(I):"";return this.lastNeed?O+this.lastChar.toString("base64",0,3-this.lastNeed):O}function H(I){return I.toString(this.encoding)}function F(I){return I&&I.length?this.write(I):""}return Es}var ua=vr.codes.ERR_STREAM_PREMATURE_CLOSE;function Sf(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i0)if(typeof M!="string"&&!ue.objectMode&&Object.getPrototypeOf(M)!==n.prototype&&(M=s(M)),G)ue.endEmitted?j(C,new I):oe(C,ue,M,!0);else if(ue.ended)j(C,new H);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!q?(M=ue.decoder.write(M),ue.objectMode||M.length!==0?oe(C,ue,M,!1):k(C,ue)):oe(C,ue,M,!1)}else G||(ue.reading=!1,k(C,ue))}return!ue.ended&&(ue.length=x?C=x:(C--,C|=C>>>1,C|=C>>>2,C|=C>>>4,C|=C>>>8,C|=C>>>16,C++),C}function f(C,M){return C<=0||M.length===0&&M.ended?0:M.objectMode?1:C!==C?M.flowing&&M.length?M.buffer.head.data.length:M.length:(C>M.highWaterMark&&(M.highWaterMark=o(C)),C<=M.length?C:M.ended?M.length:(M.needReadable=!0,0))}Q.prototype.read=function(C){d("read",C),C=parseInt(C,10);var M=this._readableState,q=C;if(C!==0&&(M.emittedReadable=!1),C===0&&M.needReadable&&((M.highWaterMark!==0?M.length>=M.highWaterMark:M.length>0)||M.ended))return d("read: emitReadable",M.length,M.ended),M.length===0&&M.ended?W(this):b(this),null;if(C=f(C,M),C===0&&M.ended)return M.length===0&&W(this),null;var G=M.needReadable;d("need readable",G),(M.length===0||M.length-C0?se=$(C,M):se=null,se===null?(M.needReadable=M.length<=M.highWaterMark,C=0):(M.length-=C,M.awaitDrain=0),M.length===0&&(M.ended||(M.needReadable=!0),q!==C&&M.ended&&W(this)),se!==null&&this.emit("data",se),se};function w(C,M){if(d("onEofChunk"),!M.ended){if(M.decoder){var q=M.decoder.end();q&&q.length&&(M.buffer.push(q),M.length+=M.objectMode?1:q.length)}M.ended=!0,M.sync?b(C):(M.needReadable=!1,M.emittedReadable||(M.emittedReadable=!0,S(C)))}}function b(C){var M=C._readableState;d("emitReadable",M.needReadable,M.emittedReadable),M.needReadable=!1,M.emittedReadable||(d("emitReadable",M.flowing),M.emittedReadable=!0,process.nextTick(S,C))}function S(C){var M=C._readableState;d("emitReadable_",M.destroyed,M.length,M.ended),!M.destroyed&&(M.length||M.ended)&&(C.emit("readable"),M.emittedReadable=!1),M.needReadable=!M.flowing&&!M.ended&&M.length<=M.highWaterMark,T(C)}function k(C,M){M.readingMore||(M.readingMore=!0,process.nextTick(N,C,M))}function N(C,M){for(;!M.reading&&!M.ended&&(M.length1&&le(G.pipes,C)!==-1)&&!Se&&(d("false write response, pause",G.awaitDrain),G.awaitDrain++),q.pause())}function ve(m){d("onerror",m),_e(),C.removeListener("error",ve),t(C,"error")===0&&j(C,m)}te(C,"error",ve);function Re(){C.removeListener("finish",Qe),_e()}C.once("close",Re);function Qe(){d("onfinish"),C.removeListener("close",Re),_e()}C.once("finish",Qe);function _e(){d("unpipe"),q.unpipe(C)}return C.emit("pipe",q),G.flowing||(d("pipe resume"),q.resume()),C};function v(C){return function(){var q=C._readableState;d("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&t(C,"data")&&(q.flowing=!0,T(C))}}Q.prototype.unpipe=function(C){var M=this._readableState,q={hasUnpiped:!1};if(M.pipesCount===0)return this;if(M.pipesCount===1)return C&&C!==M.pipes?this:(C||(C=M.pipes),M.pipes=null,M.pipesCount=0,M.flowing=!1,C&&C.emit("unpipe",this,q),this);if(!C){var G=M.pipes,se=M.pipesCount;M.pipes=null,M.pipesCount=0,M.flowing=!1;for(var ue=0;ue0,G.flowing!==!1&&this.resume()):C==="readable"&&!G.endEmitted&&!G.readableListening&&(G.readableListening=G.needReadable=!0,G.flowing=!1,G.emittedReadable=!1,d("on readable",G.length,G.reading),G.length?b(this):G.reading||process.nextTick(R,this)),q},Q.prototype.addListener=Q.prototype.on,Q.prototype.removeListener=function(C,M){var q=r.prototype.removeListener.call(this,C,M);return C==="readable"&&process.nextTick(u,this),q},Q.prototype.removeAllListeners=function(C){var M=r.prototype.removeAllListeners.apply(this,arguments);return(C==="readable"||C===void 0)&&process.nextTick(u,this),M};function u(C){var M=C._readableState;M.readableListening=C.listenerCount("readable")>0,M.resumeScheduled&&!M.paused?M.flowing=!0:C.listenerCount("data")>0&&C.resume()}function R(C){d("readable nexttick read 0"),C.read(0)}Q.prototype.resume=function(){var C=this._readableState;return C.flowing||(d("resume"),C.flowing=!C.readableListening,K(this,C)),C.paused=!1,this};function K(C,M){M.resumeScheduled||(M.resumeScheduled=!0,process.nextTick(J,C,M))}function J(C,M){d("resume",M.reading),M.reading||C.read(0),M.resumeScheduled=!1,C.emit("resume"),T(C),M.flowing&&!M.reading&&C.read(0)}Q.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function T(C){var M=C._readableState;for(d("flow",M.flowing);M.flowing&&C.read()!==null;);}Q.prototype.wrap=function(C){var M=this,q=this._readableState,G=!1;C.on("end",function(){if(d("wrapped end"),q.decoder&&!q.ended){var re=q.decoder.end();re&&re.length&&M.push(re)}M.push(null)}),C.on("data",function(re){if(d("wrapped data"),q.decoder&&(re=q.decoder.write(re)),!(q.objectMode&&re==null)&&!(!q.objectMode&&(!re||!re.length))){var be=M.push(re);be||(G=!0,C.pause())}});for(var se in C)this[se]===void 0&&typeof C[se]=="function"&&(this[se]=function(be){return function(){return C[be].apply(C,arguments)}}(se));for(var ue=0;ue=M.length?(M.decoder?q=M.buffer.join(""):M.buffer.length===1?q=M.buffer.first():q=M.buffer.concat(M.length),M.buffer.clear()):q=M.buffer.consume(C,M.decoder),q}function W(C){var M=C._readableState;d("endReadable",M.endEmitted),M.endEmitted||(M.ended=!0,process.nextTick(Z,M,C))}function Z(C,M){if(d("endReadableNT",C.endEmitted,C.length),!C.endEmitted&&C.length===0&&(C.endEmitted=!0,M.readable=!1,M.emit("end"),C.autoDestroy)){var q=M._writableState;(!q||q.autoDestroy&&q.finished)&&M.destroy()}}typeof Symbol=="function"&&(Q.from=function(C,M){return V===void 0&&(V=kf()),V(Q,C,M)});function le(C,M){for(var q=0,G=C.length;q0;return Df(c,d,p,function(g){i||(i=g),g&&s.forEach(ma),!d&&(s.forEach(ma),n(i))})});return t.reduce(jf)}var Wf=Hf;(function(e,t){t=e.exports=el(),t.Stream=t,t.Readable=t,t.Writable=Yc(),t.Duplex=Gr(),t.Transform=tl,t.PassThrough=Bf,t.finished=lo,t.pipeline=Wf})(Hs,Hs.exports);var il=Hs.exports;const{Transform:Vf}=il;var qf=e=>class sl extends Vf{constructor(r,n,i,s,c){super(c),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=s,this._options=c,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let s=null;try{this.update(r,n)}catch(c){s=c}i(s)}_flush(r){let n=null;try{this.push(this.digest())}catch(i){n=i}r(n)}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(n=n.toString(r)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new sl(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const{Transform:zf}=il;var Gf=e=>class ol extends zf{constructor(r,n,i,s){super(s),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._options=s,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let s=null;try{this.update(r,n)}catch(c){s=c}i(s)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}squeeze(r,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(r);return n!==void 0&&(i=i.toString(n)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new ol(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const Jf=qf,Zf=Gf;var Kf=function(e){const t=Jf(e),r=Zf(e);return function(n,i){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new t(1152,448,null,224,i);case"keccak256":return new t(1088,512,null,256,i);case"keccak384":return new t(832,768,null,384,i);case"keccak512":return new t(576,1024,null,512,i);case"sha3-224":return new t(1152,448,6,224,i);case"sha3-256":return new t(1088,512,6,256,i);case"sha3-384":return new t(832,768,6,384,i);case"sha3-512":return new t(576,1024,6,512,i);case"shake128":return new r(1344,256,31,i);case"shake256":return new r(1088,512,31,i);default:throw new Error("Invald algorithm: "+n)}}},al={};const wa=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];al.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],i=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],a=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],p=e[7]^e[17]^e[27]^e[37]^e[47],g=e[8]^e[18]^e[28]^e[38]^e[48],y=e[9]^e[19]^e[29]^e[39]^e[49];let _=g^(i<<1|s>>>31),A=y^(s<<1|i>>>31);const L=e[0]^_,H=e[1]^A,F=e[10]^_,I=e[11]^A,O=e[20]^_,B=e[21]^A,V=e[30]^_,j=e[31]^A,z=e[40]^_,te=e[41]^A;_=r^(c<<1|a>>>31),A=n^(a<<1|c>>>31);const Y=e[2]^_,Q=e[3]^A,fe=e[12]^_,oe=e[13]^A,pe=e[22]^_,x=e[23]^A,o=e[32]^_,f=e[33]^A,w=e[42]^_,b=e[43]^A;_=i^(d<<1|p>>>31),A=s^(p<<1|d>>>31);const S=e[4]^_,k=e[5]^A,N=e[14]^_,v=e[15]^A,u=e[24]^_,R=e[25]^A,K=e[34]^_,J=e[35]^A,T=e[44]^_,$=e[45]^A;_=c^(g<<1|y>>>31),A=a^(y<<1|g>>>31);const W=e[6]^_,Z=e[7]^A,le=e[16]^_,C=e[17]^A,M=e[26]^_,q=e[27]^A,G=e[36]^_,se=e[37]^A,ue=e[46]^_,re=e[47]^A;_=d^(r<<1|n>>>31),A=p^(n<<1|r>>>31);const be=e[8]^_,dt=e[9]^A,Se=e[18]^_,Ee=e[19]^A,Je=e[28]^_,ve=e[29]^A,Re=e[38]^_,Qe=e[39]^A,_e=e[48]^_,m=e[49]^A,l=L,h=H,E=I<<4|F>>>28,P=F<<4|I>>>28,D=O<<3|B>>>29,U=B<<3|O>>>29,he=j<<9|V>>>23,ae=V<<9|j>>>23,ie=z<<18|te>>>14,Ce=te<<18|z>>>14,ne=Y<<1|Q>>>31,Me=Q<<1|Y>>>31,Sr=oe<<12|fe>>>20,ke=fe<<12|oe>>>20,xe=pe<<10|x>>>22,Rr=x<<10|pe>>>22,Ie=f<<13|o>>>19,Ae=o<<13|f>>>19,Cr=w<<2|b>>>30,Te=b<<2|w>>>30,Ne=k<<30|S>>>2,Mr=S<<30|k>>>2,Le=N<<6|v>>>26,Be=v<<6|N>>>26,kr=R<<11|u>>>21,Pe=u<<11|R>>>21,Oe=K<<15|J>>>17,xr=J<<15|K>>>17,$e=$<<29|T>>>3,Fe=T<<29|$>>>3,Ir=W<<28|Z>>>4,De=Z<<28|W>>>4,je=C<<23|le>>>9,Ar=le<<23|C>>>9,Ue=M<<25|q>>>7,He=q<<25|M>>>7,Gt=G<<21|se>>>11,Jt=se<<21|G>>>11,Zt=re<<24|ue>>>8,Kt=ue<<24|re>>>8,Qt=be<<27|dt>>>5,Yt=dt<<27|be>>>5,Xt=Se<<20|Ee>>>12,er=Ee<<20|Se>>>12,tr=ve<<7|Je>>>25,rr=Je<<7|ve>>>25,nr=Re<<8|Qe>>>24,ir=Qe<<8|Re>>>24,sr=_e<<14|m>>>18,or=m<<14|_e>>>18;e[0]=l^~Sr&kr,e[1]=h^~ke&Pe,e[10]=Ir^~Xt&D,e[11]=De^~er&U,e[20]=ne^~Le&Ue,e[21]=Me^~Be&He,e[30]=Qt^~E&xe,e[31]=Yt^~P&Rr,e[40]=Ne^~je&tr,e[41]=Mr^~Ar&rr,e[2]=Sr^~kr&Gt,e[3]=ke^~Pe&Jt,e[12]=Xt^~D&Ie,e[13]=er^~U&Ae,e[22]=Le^~Ue&nr,e[23]=Be^~He&ir,e[32]=E^~xe&Oe,e[33]=P^~Rr&xr,e[42]=je^~tr&he,e[43]=Ar^~rr&ae,e[4]=kr^~Gt&sr,e[5]=Pe^~Jt&or,e[14]=D^~Ie&$e,e[15]=U^~Ae&Fe,e[24]=Ue^~nr&ie,e[25]=He^~ir&Ce,e[34]=xe^~Oe&Zt,e[35]=Rr^~xr&Kt,e[44]=tr^~he&Cr,e[45]=rr^~ae&Te,e[6]=Gt^~sr&l,e[7]=Jt^~or&h,e[16]=Ie^~$e&Ir,e[17]=Ae^~Fe&De,e[26]=nr^~ie&ne,e[27]=ir^~Ce&Me,e[36]=Oe^~Zt&Qt,e[37]=xr^~Kt&Yt,e[46]=he^~Cr&Ne,e[47]=ae^~Te&Mr,e[8]=sr^~l&Sr,e[9]=or^~h&ke,e[18]=$e^~Ir&Xt,e[19]=Fe^~De&er,e[28]=ie^~ne&Le,e[29]=Ce^~Me&Be,e[38]=Zt^~Qt&E,e[39]=Kt^~Yt&P,e[48]=Cr^~Ne&je,e[49]=Te^~Mr&Ar,e[0]^=wa[t*2],e[1]^=wa[t*2+1]}};const ii=al;function rn(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}rn.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};rn.prototype.absorb=function(e){for(let t=0;t>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(ii.p1600(this.state),this.count=0);return t};rn.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};var Qf=rn,Yf=Kf(Qf);const Xf=Yf,e0=ui;function cl(e){return Buffer.allocUnsafe(e).fill(0)}function ll(e,t,r){const n=cl(t);return e=Fi(e),r?e.length"u")throw new Error("Not an array?");if(r=pl(e),r!=="dynamic"&&r!==0&&t.length>r)throw new Error("Elements exceed array size: "+r);i=[],e=e.slice(0,e.lastIndexOf("[")),typeof t=="string"&&(t=JSON.parse(t));for(s in t)i.push(It(e,t[s]));if(r==="dynamic"){var c=It("uint256",t.length);i.unshift(c)}return Buffer.concat(i)}else{if(e==="bytes")return t=new Buffer(t),i=Buffer.concat([It("uint256",t.length),t]),t.length%32!==0&&(i=Buffer.concat([i,mr.zeros(32-t.length%32)])),i;if(e.startsWith("bytes")){if(r=Ur(e),r<1||r>32)throw new Error("Invalid bytes width: "+r);return mr.setLengthRight(t,32)}else if(e.startsWith("uint")){if(r=Ur(e),r%8||r<8||r>256)throw new Error("Invalid uint width: "+r);if(n=hr(t),n.bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+n.bitLength());if(n<0)throw new Error("Supplied uint is negative");return n.toArrayLike(Buffer,"be",32)}else if(e.startsWith("int")){if(r=Ur(e),r%8||r<8||r>256)throw new Error("Invalid int width: "+r);if(n=hr(t),n.bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+n.bitLength());return n.toTwos(256).toArrayLike(Buffer,"be",32)}else if(e.startsWith("ufixed")){if(r=ya(e),n=hr(t),n<0)throw new Error("Supplied ufixed is negative");return It("uint256",n.mul(new fr(2).pow(new fr(r[1]))))}else if(e.startsWith("fixed"))return r=ya(e),It("int256",hr(t).mul(new fr(2).pow(new fr(r[1]))))}throw new Error("Unsupported or invalid type: "+e)}function s0(e){return e==="string"||e==="bytes"||pl(e)==="dynamic"}function o0(e){return e.lastIndexOf("]")===e.length-1}function a0(e,t){var r=[],n=[],i=32*e.length;for(var s in e){var c=fl(e[s]),a=t[s],d=It(c,a);s0(c)?(r.push(It("uint256",i)),n.push(d),i+=d.length):r.push(d)}return Buffer.concat(r.concat(n))}function gl(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var r,n,i=[],s=0;s32)throw new Error("Invalid bytes width: "+r);i.push(mr.setLengthRight(a,r))}else if(c.startsWith("uint")){if(r=Ur(c),r%8||r<8||r>256)throw new Error("Invalid uint width: "+r);if(n=hr(a),n.bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+n.bitLength());i.push(n.toArrayLike(Buffer,"be",r/8))}else if(c.startsWith("int")){if(r=Ur(c),r%8||r<8||r>256)throw new Error("Invalid int width: "+r);if(n=hr(a),n.bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+n.bitLength());i.push(n.toTwos(r).toArrayLike(Buffer,"be",r/8))}else throw new Error("Unsupported or invalid type: "+c)}return Buffer.concat(i)}function c0(e,t){return mr.keccak(gl(e,t))}var l0={rawEncode:a0,solidityPack:gl,soliditySHA3:c0};const Et=dl,hn=l0,ml={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},ks={encodeData(e,t,r,n=!0){const i=["bytes32"],s=[this.hashType(e,r)];if(n){const c=(a,d,p)=>{if(r[d]!==void 0)return["bytes32",p==null?"0x0000000000000000000000000000000000000000000000000000000000000000":Et.keccak(this.encodeData(d,p,r,n))];if(p===void 0)throw new Error(`missing value for field ${a} of type ${d}`);if(d==="bytes")return["bytes32",Et.keccak(p)];if(d==="string")return typeof p=="string"&&(p=Buffer.from(p,"utf8")),["bytes32",Et.keccak(p)];if(d.lastIndexOf("]")===d.length-1){const g=d.slice(0,d.lastIndexOf("[")),y=p.map(_=>c(a,g,_));return["bytes32",Et.keccak(hn.rawEncode(y.map(([_])=>_),y.map(([,_])=>_)))]}return[d,p]};for(const a of r[e]){const[d,p]=c(a.name,a.type,t[a.name]);i.push(d),s.push(p)}}else for(const c of r[e]){let a=t[c.name];if(a!==void 0)if(c.type==="bytes")i.push("bytes32"),a=Et.keccak(a),s.push(a);else if(c.type==="string")i.push("bytes32"),typeof a=="string"&&(a=Buffer.from(a,"utf8")),a=Et.keccak(a),s.push(a);else if(r[c.type]!==void 0)i.push("bytes32"),a=Et.keccak(this.encodeData(c.type,a,r,n)),s.push(a);else{if(c.type.lastIndexOf("]")===c.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");i.push(c.type),s.push(a)}}return hn.rawEncode(i,s)},encodeType(e,t){let r="",n=this.findTypeDependencies(e,t).filter(i=>i!==e);n=[e].concat(n.sort());for(const i of n){if(!t[i])throw new Error("No type definition specified: "+i);r+=i+"("+t[i].map(({name:c,type:a})=>a+" "+c).join(",")+")"}return r},findTypeDependencies(e,t,r=[]){if(e=e.match(/^\w*/)[0],r.includes(e)||t[e]===void 0)return r;r.push(e);for(const n of t[e])for(const i of this.findTypeDependencies(n.type,t,r))!r.includes(i)&&r.push(i);return r},hashStruct(e,t,r,n=!0){return Et.keccak(this.encodeData(e,t,r,n))},hashType(e,t){return Et.keccak(this.encodeType(e,t))},sanitizeData(e){const t={};for(const r in ml.properties)e[r]&&(t[r]=e[r]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){const r=this.sanitizeData(e),n=[Buffer.from("1901","hex")];return n.push(this.hashStruct("EIP712Domain",r.domain,r.types,t)),r.primaryType!=="EIP712Domain"&&n.push(this.hashStruct(r.primaryType,r.message,r.types,t)),Et.keccak(Buffer.concat(n))}};var u0={TYPED_MESSAGE_SCHEMA:ml,TypedDataUtils:ks,hashForSignTypedDataLegacy:function(e){return h0(e.data)},hashForSignTypedData_v3:function(e){return ks.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return ks.hash(e.data)}};function h0(e){const t=new Error("Expect argument to be non-empty array");if(typeof e!="object"||!e.length)throw t;const r=e.map(function(s){return s.type==="bytes"?Et.toBuffer(s.value):s.value}),n=e.map(function(s){return s.type}),i=e.map(function(s){if(!s.name)throw t;return s.type+" "+s.name});return hn.soliditySHA3(["bytes32","bytes32"],[hn.soliditySHA3(new Array(e.length).fill("string"),i),hn.soliditySHA3(n,r)])}var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.filterFromParam=Jr.FilterPolyfill=void 0;const Fr=Ze,it=X,d0=5*60*1e3,dr={jsonrpc:"2.0",id:0};class f0{constructor(t){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,Fr.IntNumber)(1),this.REQUEST_THROTTLE_INTERVAL=1e3,this.lastFetchTimestamp=new Date(0),this.resolvers=[],this.provider=t}async newFilter(t){const r=wl(t),n=this.makeFilterId(),i=await this.setInitialCursorPosition(n,r.fromBlock);return console.info(`Installing new log filter(${n}):`,r,"initial cursor position:",i),this.logFilters.set(n,r),this.setFilterTimeout(n),(0,it.hexStringFromIntNumber)(n)}async newBlockFilter(){const t=this.makeFilterId(),r=await this.setInitialCursorPosition(t,"latest");return console.info(`Installing new block filter (${t}) with initial cursor position:`,r),this.blockFilters.add(t),this.setFilterTimeout(t),(0,it.hexStringFromIntNumber)(t)}async newPendingTransactionFilter(){const t=this.makeFilterId(),r=await this.setInitialCursorPosition(t,"latest");return console.info(`Installing new block filter (${t}) with initial cursor position:`,r),this.pendingTransactionFilters.add(t),this.setFilterTimeout(t),(0,it.hexStringFromIntNumber)(t)}uninstallFilter(t){const r=(0,it.intNumberFromHexString)(t);return console.info(`Uninstalling filter (${r})`),this.deleteFilter(r),!0}getFilterChanges(t){const r=(0,it.intNumberFromHexString)(t);return this.timeouts.has(r)&&this.setFilterTimeout(r),this.logFilters.has(r)?this.getLogFilterChanges(r):this.blockFilters.has(r)?this.getBlockFilterChanges(r):this.pendingTransactionFilters.has(r)?this.getPendingTransactionFilterChanges(r):Promise.resolve(Gn())}async getFilterLogs(t){const r=(0,it.intNumberFromHexString)(t),n=this.logFilters.get(r);return n?this.sendAsyncPromise(Object.assign(Object.assign({},dr),{method:"eth_getLogs",params:[ba(n)]})):Gn()}makeFilterId(){return(0,Fr.IntNumber)(++this.nextFilterId)}sendAsyncPromise(t){return new Promise((r,n)=>{this.provider.sendAsync(t,(i,s)=>{if(i)return n(i);if(Array.isArray(s)||s==null)return n(new Error(`unexpected response received: ${JSON.stringify(s)}`));r(s)})})}deleteFilter(t){console.info(`Deleting filter (${t})`),this.logFilters.delete(t),this.blockFilters.delete(t),this.pendingTransactionFilters.delete(t),this.cursors.delete(t),this.timeouts.delete(t)}async getLogFilterChanges(t){const r=this.logFilters.get(t),n=this.cursors.get(t);if(!n||!r)return Gn();const i=await this.getCurrentBlockHeight(),s=r.toBlock==="latest"?i:r.toBlock;if(n>i||n>Number(r.toBlock))return Jn();console.info(`Fetching logs from ${n} to ${s} for filter ${t}`);const c=await this.sendAsyncPromise(Object.assign(Object.assign({},dr),{method:"eth_getLogs",params:[ba(Object.assign(Object.assign({},r),{fromBlock:n,toBlock:s}))]}));if(Array.isArray(c.result)){const a=c.result.map(p=>(0,it.intNumberFromHexString)(p.blockNumber||"0x0")),d=Math.max(...a);if(d&&d>n){const p=(0,Fr.IntNumber)(d+1);console.info(`Moving cursor position for filter (${t}) from ${n} to ${p}`),this.cursors.set(t,p)}}return c}async getBlockFilterChanges(t){const r=this.cursors.get(t);if(!r)return Gn();const n=await this.getCurrentBlockHeight();if(r>n)return Jn();console.info(`Fetching blocks from ${r} to ${n} for filter (${t})`);const i=(await Promise.all((0,it.range)(r,n+1).map(c=>this.getBlockHashByNumber((0,Fr.IntNumber)(c))))).filter(c=>!!c),s=(0,Fr.IntNumber)(r+i.length);return console.info(`Moving cursor position for filter (${t}) from ${r} to ${s}`),this.cursors.set(t,s),Object.assign(Object.assign({},dr),{result:i})}async getPendingTransactionFilterChanges(t){return Promise.resolve(Jn())}async setInitialCursorPosition(t,r){const n=await this.getCurrentBlockHeight(),i=typeof r=="number"&&r>n?r:n;return this.cursors.set(t,i),i}setFilterTimeout(t){const r=this.timeouts.get(t);r&&window.clearTimeout(r);const n=window.setTimeout(()=>{console.info(`Filter (${t}) timed out`),this.deleteFilter(t)},d0);this.timeouts.set(t,n)}async getCurrentBlockHeight(){const t=new Date;if(t.getTime()-this.lastFetchTimestamp.getTime()>this.REQUEST_THROTTLE_INTERVAL){this.lastFetchTimestamp=t;const r=await this._getCurrentBlockHeight();this.currentBlockHeight=r,this.resolvers.forEach(n=>n(r)),this.resolvers=[]}return this.currentBlockHeight?this.currentBlockHeight:new Promise(r=>this.resolvers.push(r))}async _getCurrentBlockHeight(){const{result:t}=await this.sendAsyncPromise(Object.assign(Object.assign({},dr),{method:"eth_blockNumber",params:[]}));return(0,it.intNumberFromHexString)((0,it.ensureHexString)(t))}async getBlockHashByNumber(t){const r=await this.sendAsyncPromise(Object.assign(Object.assign({},dr),{method:"eth_getBlockByNumber",params:[(0,it.hexStringFromIntNumber)(t),!1]}));return r.result&&typeof r.result.hash=="string"?(0,it.ensureHexString)(r.result.hash):null}}Jr.FilterPolyfill=f0;function wl(e){return{fromBlock:va(e.fromBlock),toBlock:va(e.toBlock),addresses:e.address===void 0?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}Jr.filterFromParam=wl;function ba(e){const t={fromBlock:_a(e.fromBlock),toBlock:_a(e.toBlock),topics:e.topics};return e.addresses!==null&&(t.address=e.addresses),t}function va(e){if(e===void 0||e==="latest"||e==="pending")return"latest";if(e==="earliest")return(0,Fr.IntNumber)(0);if((0,it.isHexString)(e))return(0,it.intNumberFromHexString)(e);throw new Error(`Invalid block option: ${String(e)}`)}function _a(e){return e==="latest"?e:(0,it.hexStringFromIntNumber)(e)}function Gn(){return Object.assign(Object.assign({},dr),{error:{code:-32e3,message:"filter not found"}})}function Jn(){return Object.assign(Object.assign({},dr),{result:[]})}var Di={},yl={},ji={},uo=p0;function p0(e){e=e||{};var t=e.max||Number.MAX_SAFE_INTEGER,r=typeof e.start<"u"?e.start:Math.floor(Math.random()*t);return function(){return r=r%t,r++}}const Ea=(e,t)=>function(){const r=t.promiseModule,n=new Array(arguments.length);for(let i=0;i{t.errorFirst?n.push(function(c,a){if(t.multiArgs){const d=new Array(arguments.length-1);for(let p=1;p{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const r=i=>{const s=c=>typeof c=="string"?i===c:c.test(i);return t.include?t.include.some(s):!t.exclude.some(s)};let n;typeof e=="function"?n=function(){return t.excludeMain?e.apply(this,arguments):Ea(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(const i in e){const s=e[i];n[i]=typeof s=="function"&&r(i)?Ea(s,t):s}return n},Nn={},Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});const m0=ai;function Sa(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout(()=>{throw n})}}function w0(e){const t=e.length,r=new Array(t);for(let n=0;n0&&([c]=r),c instanceof Error)throw c;const a=new Error(`Unhandled error.${c?` (${c.message})`:""}`);throw a.context=c,a}const s=i[t];if(s===void 0)return!1;if(typeof s=="function")Sa(s,this,r);else{const c=s.length,a=w0(s);for(let d=0;de+t,Ra=["sync","latest"];class S0 extends v0.default{constructor(t){super(),this._blockResetDuration=t.blockResetDuration||20*_0,this._usePastBlocks=t.usePastBlocks||!1,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(r=>this.once("latest",r))}removeAllListeners(t){return t?super.removeAllListeners(t):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(t){Ra.includes(t)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit("_started"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit("_ended"))}_getBlockTrackerEventCount(){return Ra.map(t=>this.listenerCount(t)).reduce(E0)}_shouldUseNewBlock(t){const r=this._currentBlock;if(!r)return!0;const n=Ca(t),i=Ca(r);return this._usePastBlocks&&ni}_newPotentialLatest(t){this._shouldUseNewBlock(t)&&this._setCurrentBlock(t)}_setCurrentBlock(t){const r=this._currentBlock;this._currentBlock=t,this.emit("latest",t),this.emit("sync",{oldBlock:r,newBlock:t})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}Nn.BaseBlockTracker=S0;function Ca(e){return Number.parseInt(e,16)}var bl={},vl={},rt={};class _l extends TypeError{constructor(t,r){let n;const{message:i,explanation:s,...c}=t,{path:a}=t,d=a.length===0?i:`At path: ${a.join(".")} -- ${i}`;super(s??d),s!=null&&(this.cause=d),Object.assign(this,c),this.name=this.constructor.name,this.failures=()=>n??(n=[t,...r()])}}function R0(e){return bt(e)&&typeof e[Symbol.iterator]=="function"}function bt(e){return typeof e=="object"&&e!=null}function Ma(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ke(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function C0(e){const{done:t,value:r}=e.next();return t?void 0:r}function M0(e,t,r,n){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:i,branch:s}=t,{type:c}=r,{refinement:a,message:d=`Expected a value of type \`${c}\`${a?` with refinement \`${a}\``:""}, but received: \`${Ke(n)}\``}=e;return{value:n,type:c,refinement:a,key:i[i.length-1],path:i,branch:s,...e,message:d}}function*Vs(e,t,r,n){R0(e)||(e=[e]);for(const i of e){const s=M0(i,t,r,n);s&&(yield s)}}function*ho(e,t,r={}){const{path:n=[],branch:i=[e],coerce:s=!1,mask:c=!1}=r,a={path:n,branch:i};if(s&&(e=t.coercer(e,a),c&&t.type!=="type"&&bt(t.schema)&&bt(e)&&!Array.isArray(e)))for(const p in e)t.schema[p]===void 0&&delete e[p];let d="valid";for(const p of t.validator(e,a))p.explanation=r.message,d="not_valid",yield[p,void 0];for(let[p,g,y]of t.entries(e,a)){const _=ho(g,y,{path:p===void 0?n:[...n,p],branch:p===void 0?i:[...i,g],coerce:s,mask:c,message:r.message});for(const A of _)A[0]?(d=A[0].refinement!=null?"not_refined":"not_valid",yield[A[0],void 0]):s&&(g=A[1],p===void 0?e=g:e instanceof Map?e.set(p,g):e instanceof Set?e.add(g):bt(e)&&(g!==void 0||p in e)&&(e[p]=g))}if(d!=="not_valid")for(const p of t.refiner(e,a))p.explanation=r.message,d="not_refined",yield[p,void 0];d==="valid"&&(yield[void 0,e])}class ze{constructor(t){const{type:r,schema:n,validator:i,refiner:s,coercer:c=d=>d,entries:a=function*(){}}=t;this.type=r,this.schema=n,this.entries=a,this.coercer=c,i?this.validator=(d,p)=>{const g=i(d,p);return Vs(g,p,this,d)}:this.validator=()=>[],s?this.refiner=(d,p)=>{const g=s(d,p);return Vs(g,p,this,d)}:this.refiner=()=>[]}assert(t,r){return El(t,this,r)}create(t,r){return Sl(t,this,r)}is(t){return fo(t,this)}mask(t,r){return Rl(t,this,r)}validate(t,r={}){return nn(t,this,r)}}function El(e,t,r){const n=nn(e,t,{message:r});if(n[0])throw n[0]}function Sl(e,t,r){const n=nn(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function Rl(e,t,r){const n=nn(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function fo(e,t){return!nn(e,t)[0]}function nn(e,t,r={}){const n=ho(e,t,r),i=C0(n);return i[0]?[new _l(i[0],function*(){for(const c of n)c[0]&&(yield c[0])}),void 0]:[void 0,i[1]]}function k0(...e){const t=e[0].type==="type",r=e.map(i=>i.schema),n=Object.assign({},...r);return t?Pn(n):Bn(n)}function ct(e,t){return new ze({type:e,schema:null,validator:t})}function x0(e,t){return new ze({...e,refiner:(r,n)=>r===void 0||e.refiner(r,n),validator(r,n){return r===void 0?!0:(t(r,n),e.validator(r,n))}})}function I0(e){return new ze({type:"dynamic",schema:null,*entries(t,r){yield*e(t,r).entries(t,r)},validator(t,r){return e(t,r).validator(t,r)},coercer(t,r){return e(t,r).coercer(t,r)},refiner(t,r){return e(t,r).refiner(t,r)}})}function A0(e){let t;return new ze({type:"lazy",schema:null,*entries(r,n){t??(t=e()),yield*t.entries(r,n)},validator(r,n){return t??(t=e()),t.validator(r,n)},coercer(r,n){return t??(t=e()),t.coercer(r,n)},refiner(r,n){return t??(t=e()),t.refiner(r,n)}})}function T0(e,t){const{schema:r}=e,n={...r};for(const i of t)delete n[i];switch(e.type){case"type":return Pn(n);default:return Bn(n)}}function N0(e){const t=e instanceof ze,r=t?{...e.schema}:{...e};for(const n in r)r[n]=Cl(r[n]);return t&&e.type==="type"?Pn(r):Bn(r)}function L0(e,t){const{schema:r}=e,n={};for(const i of t)n[i]=r[i];switch(e.type){case"type":return Pn(n);default:return Bn(n)}}function B0(e,t){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),ct(e,t)}function P0(){return ct("any",()=>!0)}function O0(e){return new ze({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,n]of t.entries())yield[r,n,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${Ke(t)}`}})}function $0(){return ct("bigint",e=>typeof e=="bigint")}function F0(){return ct("boolean",e=>typeof e=="boolean")}function D0(){return ct("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${Ke(e)}`)}function j0(e){const t={},r=e.map(n=>Ke(n)).join();for(const n of e)t[n]=n;return new ze({type:"enums",schema:t,validator(n){return e.includes(n)||`Expected one of \`${r}\`, but received: ${Ke(n)}`}})}function U0(){return ct("func",e=>typeof e=="function"||`Expected a function, but received: ${Ke(e)}`)}function H0(e){return ct("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${Ke(t)}`)}function W0(){return ct("integer",e=>typeof e=="number"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${Ke(e)}`)}function V0(e){return new ze({type:"intersection",schema:null,*entries(t,r){for(const n of e)yield*n.entries(t,r)},*validator(t,r){for(const n of e)yield*n.validator(t,r)},*refiner(t,r){for(const n of e)yield*n.refiner(t,r)}})}function q0(e){const t=Ke(e),r=typeof e;return new ze({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?e:null,validator(n){return n===e||`Expected the literal \`${t}\`, but received: ${Ke(n)}`}})}function z0(e,t){return new ze({type:"map",schema:null,*entries(r){if(e&&t&&r instanceof Map)for(const[n,i]of r.entries())yield[n,n,e],yield[n,i,t]},coercer(r){return r instanceof Map?new Map(r):r},validator(r){return r instanceof Map||`Expected a \`Map\` object, but received: ${Ke(r)}`}})}function po(){return ct("never",()=>!1)}function G0(e){return new ze({...e,validator:(t,r)=>t===null||e.validator(t,r),refiner:(t,r)=>t===null||e.refiner(t,r)})}function J0(){return ct("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${Ke(e)}`)}function Bn(e){const t=e?Object.keys(e):[],r=po();return new ze({type:"object",schema:e||null,*entries(n){if(e&&bt(n)){const i=new Set(Object.keys(n));for(const s of t)i.delete(s),yield[s,n[s],e[s]];for(const s of i)yield[s,n[s],r]}},validator(n){return bt(n)||`Expected an object, but received: ${Ke(n)}`},coercer(n){return bt(n)?{...n}:n}})}function Cl(e){return new ze({...e,validator:(t,r)=>t===void 0||e.validator(t,r),refiner:(t,r)=>t===void 0||e.refiner(t,r)})}function Z0(e,t){return new ze({type:"record",schema:null,*entries(r){if(bt(r))for(const n in r){const i=r[n];yield[n,n,e],yield[n,i,t]}},validator(r){return bt(r)||`Expected an object, but received: ${Ke(r)}`}})}function K0(){return ct("regexp",e=>e instanceof RegExp)}function Q0(e){return new ze({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(const r of t)yield[r,r,e]},coercer(t){return t instanceof Set?new Set(t):t},validator(t){return t instanceof Set||`Expected a \`Set\` object, but received: ${Ke(t)}`}})}function Ml(){return ct("string",e=>typeof e=="string"||`Expected a string, but received: ${Ke(e)}`)}function Y0(e){const t=po();return new ze({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const n=Math.max(e.length,r.length);for(let i=0;ir.type).join(" | ");return new ze({type:"union",schema:null,coercer(r){for(const n of e){const[i,s]=n.validate(r,{coerce:!0});if(!i)return s}return r},validator(r,n){const i=[];for(const s of e){const[...c]=ho(r,s,n),[a]=c;if(a[0])for(const[d]of c)d&&i.push(d);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${Ke(r)}`,...i]}})}function kl(){return ct("unknown",()=>!0)}function go(e,t,r){return new ze({...e,coercer:(n,i)=>fo(n,t)?e.coercer(r(n,i),i):e.coercer(n,i)})}function e1(e,t,r={}){return go(e,kl(),n=>{const i=typeof t=="function"?t():t;if(n===void 0)return i;if(!r.strict&&Ma(n)&&Ma(i)){const s={...n};let c=!1;for(const a in i)s[a]===void 0&&(s[a]=i[a],c=!0);if(c)return s}return n})}function t1(e){return go(e,Ml(),t=>t.trim())}function r1(e){return _r(e,"empty",t=>{const r=xl(t);return r===0||`Expected an empty ${e.type} but received one with a size of \`${r}\``})}function xl(e){return e instanceof Map||e instanceof Set?e.size:e.length}function n1(e,t,r={}){const{exclusive:n}=r;return _r(e,"max",i=>n?in?i>t:i>=t||`Expected a ${e.type} greater than ${n?"":"or equal to "}${t} but received \`${i}\``)}function s1(e){return _r(e,"nonempty",t=>xl(t)>0||`Expected a nonempty ${e.type} but received an empty one`)}function o1(e,t){return _r(e,"pattern",r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`)}function a1(e,t,r=t){const n=`Expected a ${e.type}`,i=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return _r(e,"size",s=>{if(typeof s=="number"||s instanceof Date)return t<=s&&s<=r||`${n} ${i} but received \`${s}\``;if(s instanceof Map||s instanceof Set){const{size:c}=s;return t<=c&&c<=r||`${n} with a size ${i} but received one with a size of \`${c}\``}else{const{length:c}=s;return t<=c&&c<=r||`${n} with a length ${i} but received one with a length of \`${c}\``}})}function _r(e,t,r){return new ze({...e,*refiner(n,i){yield*e.refiner(n,i);const s=r(n,i),c=Vs(s,i,e,n);for(const a of c)yield{...a,refinement:t}}})}const c1=Object.freeze(Object.defineProperty({__proto__:null,Struct:ze,StructError:_l,any:P0,array:O0,assert:El,assign:k0,bigint:$0,boolean:F0,coerce:go,create:Sl,date:D0,defaulted:e1,define:ct,deprecated:x0,dynamic:I0,empty:r1,enums:j0,func:U0,instance:H0,integer:W0,intersection:V0,is:fo,lazy:A0,literal:q0,map:z0,mask:Rl,max:n1,min:i1,never:po,nonempty:s1,nullable:G0,number:J0,object:Bn,omit:T0,optional:Cl,partial:N0,pattern:o1,pick:L0,record:Z0,refine:_r,regexp:K0,set:Q0,size:a1,string:Ml,struct:B0,trimmed:t1,tuple:Y0,type:Pn,union:X0,unknown:kl,validate:nn},Symbol.toStringTag,{value:"Module"})),Er=mn(c1);Object.defineProperty(rt,"__esModule",{value:!0});rt.assertExhaustive=rt.assertStruct=rt.assert=rt.AssertionError=void 0;const l1=Er;function u1(e){return typeof e=="object"&&e!==null&&"message"in e}function h1(e){var t,r;return typeof((r=(t=e==null?void 0:e.prototype)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.name)=="string"}function d1(e){const t=u1(e)?e.message:String(e);return t.endsWith(".")?t.slice(0,-1):t}function Il(e,t){return h1(e)?new e({message:t}):e({message:t})}class mo extends Error{constructor(t){super(t.message),this.code="ERR_ASSERTION"}}rt.AssertionError=mo;function f1(e,t="Assertion failed.",r=mo){if(!e)throw t instanceof Error?t:Il(r,t)}rt.assert=f1;function p1(e,t,r="Assertion failed",n=mo){try{(0,l1.assert)(e,t)}catch(i){throw Il(n,`${r}: ${d1(i)}.`)}}rt.assertStruct=p1;function g1(e){throw new Error("Invalid branch reached. Should be detected during compilation.")}rt.assertExhaustive=g1;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.base64=void 0;const m1=Er,w1=rt,y1=(e,t={})=>{var r,n;const i=(r=t.paddingRequired)!==null&&r!==void 0?r:!1,s=(n=t.characterSet)!==null&&n!==void 0?n:"base64";let c;s==="base64"?c=String.raw`[A-Za-z0-9+\/]`:((0,w1.assert)(s==="base64url"),c=String.raw`[-_A-Za-z0-9]`);let a;return i?a=new RegExp(`^(?:${c}{4})*(?:${c}{3}=|${c}{2}==)?$`,"u"):a=new RegExp(`^(?:${c}{4})*(?:${c}{2,3}|${c}{3}=|${c}{2}==)?$`,"u"),(0,m1.pattern)(e,a)};On.base64=y1;var ye={},$n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.StrictHexStruct=e.HexStruct=void 0;const t=Er,r=rt;e.HexStruct=(0,t.pattern)((0,t.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]+$/iu);function n(p){return(0,t.is)(p,e.HexStruct)}e.isHexString=n;function i(p){return(0,t.is)(p,e.StrictHexStruct)}e.isStrictHexString=i;function s(p){(0,r.assert)(n(p),"Value must be a hexadecimal string.")}e.assertIsHexString=s;function c(p){(0,r.assert)(i(p),'Value must be a hexadecimal string, starting with "0x".')}e.assertIsStrictHexString=c;function a(p){return p.startsWith("0x")?p:p.startsWith("0X")?`0x${p.substring(2)}`:`0x${p}`}e.add0x=a;function d(p){return p.startsWith("0x")||p.startsWith("0X")?p.substring(2):p}e.remove0x=d})($n);Object.defineProperty(ye,"__esModule",{value:!0});ye.createDataView=ye.concatBytes=ye.valueToBytes=ye.stringToBytes=ye.numberToBytes=ye.signedBigIntToBytes=ye.bigIntToBytes=ye.hexToBytes=ye.bytesToString=ye.bytesToNumber=ye.bytesToSignedBigInt=ye.bytesToBigInt=ye.bytesToHex=ye.assertIsBytes=ye.isBytes=void 0;const ht=rt,qs=$n,ka=48,xa=58,Ia=87;function b1(){const e=[];return()=>{if(e.length===0)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}const v1=b1();function wo(e){return e instanceof Uint8Array}ye.isBytes=wo;function sn(e){(0,ht.assert)(wo(e),"Value must be a Uint8Array.")}ye.assertIsBytes=sn;function Al(e){if(sn(e),e.length===0)return"0x";const t=v1(),r=new Array(e.length);for(let n=0;n=BigInt(0),"Value must be a non-negative bigint.");const t=e.toString(16);return Ui(t)}ye.bigIntToBytes=Nl;function R1(e,t){(0,ht.assert)(t>0);const r=e>>BigInt(31);return!((~e&r)+(e&~r)>>BigInt(t*8+-1))}function C1(e,t){(0,ht.assert)(typeof e=="bigint","Value must be a bigint."),(0,ht.assert)(typeof t=="number","Byte length must be a number."),(0,ht.assert)(t>0,"Byte length must be greater than 0."),(0,ht.assert)(R1(e,t),"Byte length is too small to represent the given value.");let r=e;const n=new Uint8Array(t);for(let i=0;i>=BigInt(8);return n.reverse()}ye.signedBigIntToBytes=C1;function Ll(e){(0,ht.assert)(typeof e=="number","Value must be a number."),(0,ht.assert)(e>=0,"Value must be a non-negative number."),(0,ht.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");const t=e.toString(16);return Ui(t)}ye.numberToBytes=Ll;function Bl(e){return(0,ht.assert)(typeof e=="string","Value must be a string."),new TextEncoder().encode(e)}ye.stringToBytes=Bl;function Pl(e){if(typeof e=="bigint")return Nl(e);if(typeof e=="number")return Ll(e);if(typeof e=="string")return e.startsWith("0x")?Ui(e):Bl(e);if(wo(e))return e;throw new TypeError(`Unsupported value type: "${typeof e}".`)}ye.valueToBytes=Pl;function M1(e){const t=new Array(e.length);let r=0;for(let i=0;it.call(r,n,i,this))}get(t){return st(this,_t,"f").get(t)}has(t){return st(this,_t,"f").has(t)}keys(){return st(this,_t,"f").keys()}values(){return st(this,_t,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([t,r])=>`${String(t)} => ${String(r)}`).join(", ")} `:""}}`}}Zr.FrozenMap=yo;class bo{constructor(t){kt.set(this,void 0),Fl(this,kt,new Set(t),"f"),Object.freeze(this)}get size(){return st(this,kt,"f").size}[(kt=new WeakMap,Symbol.iterator)](){return st(this,kt,"f")[Symbol.iterator]()}entries(){return st(this,kt,"f").entries()}forEach(t,r){return st(this,kt,"f").forEach((n,i,s)=>t.call(r,n,i,this))}has(t){return st(this,kt,"f").has(t)}keys(){return st(this,kt,"f").keys()}values(){return st(this,kt,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(t=>String(t)).join(", ")} `:""}}`}}Zr.FrozenSet=bo;Object.freeze(yo);Object.freeze(yo.prototype);Object.freeze(bo);Object.freeze(bo.prototype);var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0});var jl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.getJsonSize=e.isValidJson=e.JsonStruct=e.UnsafeJsonStruct=void 0;const t=Er,r=rt,n=()=>(0,t.define)("finite number",j=>(0,t.is)(j,(0,t.number)())&&Number.isFinite(j));e.UnsafeJsonStruct=(0,t.union)([(0,t.literal)(null),(0,t.boolean)(),n(),(0,t.string)(),(0,t.array)((0,t.lazy)(()=>e.UnsafeJsonStruct)),(0,t.record)((0,t.string)(),(0,t.lazy)(()=>e.UnsafeJsonStruct))]),e.JsonStruct=(0,t.define)("Json",(j,z)=>{function te(Y,Q){const oe=[...Q.validator(Y,z)];return oe.length>0?oe:!0}try{const Y=te(j,e.UnsafeJsonStruct);return Y!==!0?Y:te(JSON.parse(JSON.stringify(j)),e.UnsafeJsonStruct)}catch(Y){return Y instanceof RangeError?"Circular reference detected":!1}});function i(j){return(0,t.is)(j,e.JsonStruct)}e.isValidJson=i;function s(j){(0,r.assertStruct)(j,e.JsonStruct,"Invalid JSON value");const z=JSON.stringify(j);return new TextEncoder().encode(z).byteLength}e.getJsonSize=s,e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,t.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,t.nullable)((0,t.union)([(0,t.number)(),(0,t.string)()])),e.JsonRpcErrorStruct=(0,t.object)({code:(0,t.integer)(),message:(0,t.string)(),data:(0,t.optional)(e.JsonStruct),stack:(0,t.optional)((0,t.string)())}),e.JsonRpcParamsStruct=(0,t.optional)((0,t.union)([(0,t.record)((0,t.string)(),e.JsonStruct),(0,t.array)(e.JsonStruct)])),e.JsonRpcRequestStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:e.JsonRpcParamsStruct}),e.JsonRpcNotificationStruct=(0,t.omit)(e.JsonRpcRequestStruct,["id"]);function c(j){return(0,t.is)(j,e.JsonRpcNotificationStruct)}e.isJsonRpcNotification=c;function a(j,z){(0,r.assertStruct)(j,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",z)}e.assertIsJsonRpcNotification=a;function d(j){return(0,t.is)(j,e.JsonRpcRequestStruct)}e.isJsonRpcRequest=d;function p(j,z){(0,r.assertStruct)(j,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",z)}e.assertIsJsonRpcRequest=p,e.PendingJsonRpcResponseStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,t.optional)((0,t.unknown)()),error:(0,t.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,t.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]);function g(j){return(0,t.is)(j,e.PendingJsonRpcResponseStruct)}e.isPendingJsonRpcResponse=g;function y(j,z){(0,r.assertStruct)(j,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",z)}e.assertIsPendingJsonRpcResponse=y;function _(j){return(0,t.is)(j,e.JsonRpcResponseStruct)}e.isJsonRpcResponse=_;function A(j,z){(0,r.assertStruct)(j,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",z)}e.assertIsJsonRpcResponse=A;function L(j){return(0,t.is)(j,e.JsonRpcSuccessStruct)}e.isJsonRpcSuccess=L;function H(j,z){(0,r.assertStruct)(j,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",z)}e.assertIsJsonRpcSuccess=H;function F(j){return(0,t.is)(j,e.JsonRpcFailureStruct)}e.isJsonRpcFailure=F;function I(j,z){(0,r.assertStruct)(j,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",z)}e.assertIsJsonRpcFailure=I;function O(j){return(0,t.is)(j,e.JsonRpcErrorStruct)}e.isJsonRpcError=O;function B(j,z){(0,r.assertStruct)(j,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",z)}e.assertIsJsonRpcError=B;function V(j){const{permitEmptyString:z,permitFractions:te,permitNull:Y}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},j);return fe=>!!(typeof fe=="number"&&(te||Number.isInteger(fe))||typeof fe=="string"&&(z||fe.length>0)||Y&&fe===null)}e.getJsonRpcIdValidator=V})(jl);var Ul={};Object.defineProperty(Ul,"__esModule",{value:!0});var Kr={},zs={exports:{}},xs,Ta;function F1(){if(Ta)return xs;Ta=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,s=n*365.25;xs=function(g,y){y=y||{};var _=typeof g;if(_==="string"&&g.length>0)return c(g);if(_==="number"&&isFinite(g))return y.long?d(g):a(g);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(g))};function c(g){if(g=String(g),!(g.length>100)){var y=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(y){var _=parseFloat(y[1]),A=(y[2]||"ms").toLowerCase();switch(A){case"years":case"year":case"yrs":case"yr":case"y":return _*s;case"weeks":case"week":case"w":return _*i;case"days":case"day":case"d":return _*n;case"hours":case"hour":case"hrs":case"hr":case"h":return _*r;case"minutes":case"minute":case"mins":case"min":case"m":return _*t;case"seconds":case"second":case"secs":case"sec":case"s":return _*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return _;default:return}}}}function a(g){var y=Math.abs(g);return y>=n?Math.round(g/n)+"d":y>=r?Math.round(g/r)+"h":y>=t?Math.round(g/t)+"m":y>=e?Math.round(g/e)+"s":g+"ms"}function d(g){var y=Math.abs(g);return y>=n?p(g,y,n,"day"):y>=r?p(g,y,r,"hour"):y>=t?p(g,y,t,"minute"):y>=e?p(g,y,e,"second"):g+" ms"}function p(g,y,_,A){var L=y>=_*1.5;return Math.round(g/_)+" "+A+(L?"s":"")}return xs}function D1(e){r.debug=r,r.default=r,r.coerce=d,r.disable=s,r.enable=i,r.enabled=c,r.humanize=F1(),r.destroy=p,Object.keys(e).forEach(g=>{r[g]=e[g]}),r.names=[],r.skips=[],r.formatters={};function t(g){let y=0;for(let _=0;_{if(z==="%%")return"%";V++;const Y=r.formatters[te];if(typeof Y=="function"){const Q=F[V];z=Y.call(I,Q),F.splice(V,1),V--}return z}),r.formatArgs.call(I,F),(I.log||r.log).apply(I,F)}return H.namespace=g,H.useColors=r.useColors(),H.color=r.selectColor(g),H.extend=n,H.destroy=r.destroy,Object.defineProperty(H,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(A!==r.namespaces&&(A=r.namespaces,L=r.enabled(g)),L),set:F=>{_=F}}),typeof r.init=="function"&&r.init(H),H}function n(g,y){const _=r(this.namespace+(typeof y>"u"?":":y)+g);return _.log=this.log,_}function i(g){r.save(g),r.namespaces=g,r.names=[],r.skips=[];let y;const _=(typeof g=="string"?g:"").split(/[\s,]+/),A=_.length;for(y=0;y"-"+y)].join(",");return r.enable(""),g}function c(g){if(g[g.length-1]==="*")return!0;let y,_;for(y=0,_=r.skips.length;y<_;y++)if(r.skips[y].test(g))return!1;for(y=0,_=r.names.length;y<_;y++)if(r.names[y].test(g))return!0;return!1}function a(g){return g.toString().substring(2,g.toString().length-2).replace(/\.\*\?$/,"*")}function d(g){return g instanceof Error?g.stack||g.message:g}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var j1=D1;(function(e,t){var r={};t.formatArgs=i,t.save=s,t.load=c,t.useColors=n,t.storage=a(),t.destroy=(()=>{let p=!1;return()=>{p||(p=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(p){if(p[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+p[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const g="color: "+this.color;p.splice(1,0,g,"color: inherit");let y=0,_=0;p[0].replace(/%[a-zA-Z%]/g,A=>{A!=="%%"&&(y++,A==="%c"&&(_=y))}),p.splice(_,0,g)}t.log=console.debug||console.log||(()=>{});function s(p){try{p?t.storage.setItem("debug",p):t.storage.removeItem("debug")}catch{}}function c(){let p;try{p=t.storage.getItem("debug")}catch{}return!p&&typeof process<"u"&&"env"in process&&(p=r.DEBUG),p}function a(){try{return localStorage}catch{}}e.exports=j1(t);const{formatters:d}=e.exports;d.j=function(p){try{return JSON.stringify(p)}catch(g){return"[UnexpectedJSONParseError]: "+g.message}}})(zs,zs.exports);var U1=zs.exports,H1=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kr,"__esModule",{value:!0});Kr.createModuleLogger=Kr.createProjectLogger=void 0;const W1=H1(U1),V1=(0,W1.default)("metamask");function q1(e){return V1.extend(e)}Kr.createProjectLogger=q1;function z1(e,t){return e.extend(t)}Kr.createModuleLogger=z1;var Hl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0;function t(p){return Array.isArray(p)&&p.length>0}e.isNonEmptyArray=t;function r(p){return p==null}e.isNullOrUndefined=r;function n(p){return!!p&&typeof p=="object"&&!Array.isArray(p)}e.isObject=n;const i=(p,g)=>Object.hasOwnProperty.call(p,g);e.hasProperty=i,function(p){p[p.Null=4]="Null",p[p.Comma=1]="Comma",p[p.Wrapper=1]="Wrapper",p[p.True=4]="True",p[p.False=5]="False",p[p.Quote=1]="Quote",p[p.Colon=1]="Colon",p[p.Date=24]="Date"}(e.JsonSize||(e.JsonSize={})),e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu;function s(p){if(typeof p!="object"||p===null)return!1;try{let g=p;for(;Object.getPrototypeOf(g)!==null;)g=Object.getPrototypeOf(g);return Object.getPrototypeOf(p)===g}catch{return!1}}e.isPlainObject=s;function c(p){return p.charCodeAt(0)<=127}e.isASCII=c;function a(p){var g;return p.split("").reduce((_,A)=>c(A)?_+1:_+2,0)+((g=p.match(e.ESCAPE_CHARACTERS_REGEXP))!==null&&g!==void 0?g:[]).length}e.calculateStringSize=a;function d(p){return p.toString().length}e.calculateNumberSize=d})(Hl);var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.hexToBigInt=Pt.hexToNumber=Pt.bigIntToHex=Pt.numberToHex=void 0;const Hr=rt,pn=$n,G1=e=>((0,Hr.assert)(typeof e=="number","Value must be a number."),(0,Hr.assert)(e>=0,"Value must be a non-negative number."),(0,Hr.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,pn.add0x)(e.toString(16)));Pt.numberToHex=G1;const J1=e=>((0,Hr.assert)(typeof e=="bigint","Value must be a bigint."),(0,Hr.assert)(e>=0,"Value must be a non-negative bigint."),(0,pn.add0x)(e.toString(16)));Pt.bigIntToHex=J1;const Z1=e=>{(0,pn.assertIsHexString)(e);const t=parseInt(e,16);return(0,Hr.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t};Pt.hexToNumber=Z1;const K1=e=>((0,pn.assertIsHexString)(e),BigInt((0,pn.add0x)(e)));Pt.hexToBigInt=K1;var Wl={};Object.defineProperty(Wl,"__esModule",{value:!0});var Vl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,function(s){s[s.Millisecond=1]="Millisecond",s[s.Second=1e3]="Second",s[s.Minute=6e4]="Minute",s[s.Hour=36e5]="Hour",s[s.Day=864e5]="Day",s[s.Week=6048e5]="Week",s[s.Year=31536e6]="Year"}(e.Duration||(e.Duration={}));const t=s=>Number.isInteger(s)&&s>=0,r=(s,c)=>{if(!t(s))throw new Error(`"${c}" must be a non-negative integer. Received: "${s}".`)};function n(s,c){return r(s,"count"),s*c}e.inMilliseconds=n;function i(s){return r(s,"timestamp"),Date.now()-s}e.timeSince=i})(Vl);var ql={};Object.defineProperty(ql,"__esModule",{value:!0});var zl={},Gs={exports:{}};const Q1="2.0.0",Gl=256,Y1=Number.MAX_SAFE_INTEGER||9007199254740991,X1=16,ep=Gl-6,tp=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Vi={MAX_LENGTH:Gl,MAX_SAFE_COMPONENT_LENGTH:X1,MAX_SAFE_BUILD_LENGTH:ep,MAX_SAFE_INTEGER:Y1,RELEASE_TYPES:tp,SEMVER_SPEC_VERSION:Q1,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Is={};const rp=typeof process=="object"&&Is&&Is.NODE_DEBUG&&/\bsemver\b/i.test(Is.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var qi=rp;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=Vi,s=qi;t=e.exports={};const c=t.re=[],a=t.safeRe=[],d=t.src=[],p=t.t={};let g=0;const y="[a-zA-Z0-9-]",_=[["\\s",1],["\\d",i],[y,n]],A=H=>{for(const[F,I]of _)H=H.split(`${F}*`).join(`${F}{0,${I}}`).split(`${F}+`).join(`${F}{1,${I}}`);return H},L=(H,F,I)=>{const O=A(F),B=g++;s(H,B,F),p[H]=B,d[B]=F,c[B]=new RegExp(F,I?"g":void 0),a[B]=new RegExp(O,I?"g":void 0)};L("NUMERICIDENTIFIER","0|[1-9]\\d*"),L("NUMERICIDENTIFIERLOOSE","\\d+"),L("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`),L("MAINVERSION",`(${d[p.NUMERICIDENTIFIER]})\\.(${d[p.NUMERICIDENTIFIER]})\\.(${d[p.NUMERICIDENTIFIER]})`),L("MAINVERSIONLOOSE",`(${d[p.NUMERICIDENTIFIERLOOSE]})\\.(${d[p.NUMERICIDENTIFIERLOOSE]})\\.(${d[p.NUMERICIDENTIFIERLOOSE]})`),L("PRERELEASEIDENTIFIER",`(?:${d[p.NUMERICIDENTIFIER]}|${d[p.NONNUMERICIDENTIFIER]})`),L("PRERELEASEIDENTIFIERLOOSE",`(?:${d[p.NUMERICIDENTIFIERLOOSE]}|${d[p.NONNUMERICIDENTIFIER]})`),L("PRERELEASE",`(?:-(${d[p.PRERELEASEIDENTIFIER]}(?:\\.${d[p.PRERELEASEIDENTIFIER]})*))`),L("PRERELEASELOOSE",`(?:-?(${d[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[p.PRERELEASEIDENTIFIERLOOSE]})*))`),L("BUILDIDENTIFIER",`${y}+`),L("BUILD",`(?:\\+(${d[p.BUILDIDENTIFIER]}(?:\\.${d[p.BUILDIDENTIFIER]})*))`),L("FULLPLAIN",`v?${d[p.MAINVERSION]}${d[p.PRERELEASE]}?${d[p.BUILD]}?`),L("FULL",`^${d[p.FULLPLAIN]}$`),L("LOOSEPLAIN",`[v=\\s]*${d[p.MAINVERSIONLOOSE]}${d[p.PRERELEASELOOSE]}?${d[p.BUILD]}?`),L("LOOSE",`^${d[p.LOOSEPLAIN]}$`),L("GTLT","((?:<|>)?=?)"),L("XRANGEIDENTIFIERLOOSE",`${d[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),L("XRANGEIDENTIFIER",`${d[p.NUMERICIDENTIFIER]}|x|X|\\*`),L("XRANGEPLAIN",`[v=\\s]*(${d[p.XRANGEIDENTIFIER]})(?:\\.(${d[p.XRANGEIDENTIFIER]})(?:\\.(${d[p.XRANGEIDENTIFIER]})(?:${d[p.PRERELEASE]})?${d[p.BUILD]}?)?)?`),L("XRANGEPLAINLOOSE",`[v=\\s]*(${d[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[p.XRANGEIDENTIFIERLOOSE]})(?:${d[p.PRERELEASELOOSE]})?${d[p.BUILD]}?)?)?`),L("XRANGE",`^${d[p.GTLT]}\\s*${d[p.XRANGEPLAIN]}$`),L("XRANGELOOSE",`^${d[p.GTLT]}\\s*${d[p.XRANGEPLAINLOOSE]}$`),L("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),L("COERCE",`${d[p.COERCEPLAIN]}(?:$|[^\\d])`),L("COERCEFULL",d[p.COERCEPLAIN]+`(?:${d[p.PRERELEASE]})?(?:${d[p.BUILD]})?(?:$|[^\\d])`),L("COERCERTL",d[p.COERCE],!0),L("COERCERTLFULL",d[p.COERCEFULL],!0),L("LONETILDE","(?:~>?)"),L("TILDETRIM",`(\\s*)${d[p.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",L("TILDE",`^${d[p.LONETILDE]}${d[p.XRANGEPLAIN]}$`),L("TILDELOOSE",`^${d[p.LONETILDE]}${d[p.XRANGEPLAINLOOSE]}$`),L("LONECARET","(?:\\^)"),L("CARETTRIM",`(\\s*)${d[p.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",L("CARET",`^${d[p.LONECARET]}${d[p.XRANGEPLAIN]}$`),L("CARETLOOSE",`^${d[p.LONECARET]}${d[p.XRANGEPLAINLOOSE]}$`),L("COMPARATORLOOSE",`^${d[p.GTLT]}\\s*(${d[p.LOOSEPLAIN]})$|^$`),L("COMPARATOR",`^${d[p.GTLT]}\\s*(${d[p.FULLPLAIN]})$|^$`),L("COMPARATORTRIM",`(\\s*)${d[p.GTLT]}\\s*(${d[p.LOOSEPLAIN]}|${d[p.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",L("HYPHENRANGE",`^\\s*(${d[p.XRANGEPLAIN]})\\s+-\\s+(${d[p.XRANGEPLAIN]})\\s*$`),L("HYPHENRANGELOOSE",`^\\s*(${d[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[p.XRANGEPLAINLOOSE]})\\s*$`),L("STAR","(<|>)?=?\\s*\\*"),L("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),L("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Gs,Gs.exports);var Fn=Gs.exports;const np=Object.freeze({loose:!0}),ip=Object.freeze({}),sp=e=>e?typeof e!="object"?np:e:ip;var vo=sp;const Na=/^[0-9]+$/,Jl=(e,t)=>{const r=Na.test(e),n=Na.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:eJl(t,e);var Zl={compareIdentifiers:Jl,rcompareIdentifiers:op};const Zn=qi,{MAX_LENGTH:La,MAX_SAFE_INTEGER:Kn}=Vi,{safeRe:Ba,t:Pa}=Fn,ap=vo,{compareIdentifiers:Or}=Zl;let cp=class xt{constructor(t,r){if(r=ap(r),t instanceof xt){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>La)throw new TypeError(`version is longer than ${La} characters`);Zn("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Ba[Pa.LOOSE]:Ba[Pa.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Kn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Kn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Kn||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const s=+i;if(s>=0&&s=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),Or(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var ot=cp;const Oa=ot,lp=(e,t,r=!1)=>{if(e instanceof Oa)return e;try{return new Oa(e,t)}catch(n){if(!r)return null;throw n}};var on=lp;const up=on,hp=(e,t)=>{const r=up(e,t);return r?r.version:null};var dp=hp;const fp=on,pp=(e,t)=>{const r=fp(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var gp=pp;const $a=ot,mp=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new $a(e instanceof $a?e.version:e,r).inc(t,n,i).version}catch{return null}};var wp=mp;const Fa=on,yp=(e,t)=>{const r=Fa(e,null,!0),n=Fa(t,null,!0),i=r.compare(n);if(i===0)return null;const s=i>0,c=s?r:n,a=s?n:r,d=!!c.prerelease.length;if(!!a.prerelease.length&&!d)return!a.patch&&!a.minor?"major":c.patch?"patch":c.minor?"minor":"major";const g=d?"pre":"";return r.major!==n.major?g+"major":r.minor!==n.minor?g+"minor":r.patch!==n.patch?g+"patch":"prerelease"};var bp=yp;const vp=ot,_p=(e,t)=>new vp(e,t).major;var Ep=_p;const Sp=ot,Rp=(e,t)=>new Sp(e,t).minor;var Cp=Rp;const Mp=ot,kp=(e,t)=>new Mp(e,t).patch;var xp=kp;const Ip=on,Ap=(e,t)=>{const r=Ip(e,t);return r&&r.prerelease.length?r.prerelease:null};var Tp=Ap;const Da=ot,Np=(e,t,r)=>new Da(e,r).compare(new Da(t,r));var Rt=Np;const Lp=Rt,Bp=(e,t,r)=>Lp(t,e,r);var Pp=Bp;const Op=Rt,$p=(e,t)=>Op(e,t,!0);var Fp=$p;const ja=ot,Dp=(e,t,r)=>{const n=new ja(e,r),i=new ja(t,r);return n.compare(i)||n.compareBuild(i)};var _o=Dp;const jp=_o,Up=(e,t)=>e.sort((r,n)=>jp(r,n,t));var Hp=Up;const Wp=_o,Vp=(e,t)=>e.sort((r,n)=>Wp(n,r,t));var qp=Vp;const zp=Rt,Gp=(e,t,r)=>zp(e,t,r)>0;var zi=Gp;const Jp=Rt,Zp=(e,t,r)=>Jp(e,t,r)<0;var Eo=Zp;const Kp=Rt,Qp=(e,t,r)=>Kp(e,t,r)===0;var Kl=Qp;const Yp=Rt,Xp=(e,t,r)=>Yp(e,t,r)!==0;var Ql=Xp;const eg=Rt,tg=(e,t,r)=>eg(e,t,r)>=0;var So=tg;const rg=Rt,ng=(e,t,r)=>rg(e,t,r)<=0;var Ro=ng;const ig=Kl,sg=Ql,og=zi,ag=So,cg=Eo,lg=Ro,ug=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return ig(e,r,n);case"!=":return sg(e,r,n);case">":return og(e,r,n);case">=":return ag(e,r,n);case"<":return cg(e,r,n);case"<=":return lg(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var Yl=ug;const hg=ot,dg=on,{safeRe:Qn,t:Yn}=Fn,fg=(e,t)=>{if(e instanceof hg)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Qn[Yn.COERCEFULL]:Qn[Yn.COERCE]);else{const d=t.includePrerelease?Qn[Yn.COERCERTLFULL]:Qn[Yn.COERCERTL];let p;for(;(p=d.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||p.index+p[0].length!==r.index+r[0].length)&&(r=p),d.lastIndex=p.index+p[1].length+p[2].length;d.lastIndex=-1}if(r===null)return null;const n=r[2],i=r[3]||"0",s=r[4]||"0",c=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return dg(`${n}.${i}.${s}${c}${a}`,t)};var pg=fg;class gg{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}}var mg=gg,As,Ua;function Ct(){if(Ua)return As;Ua=1;const e=/\s+/g;class t{constructor(f,w){if(w=i(w),f instanceof t)return f.loose===!!w.loose&&f.includePrerelease===!!w.includePrerelease?f:new t(f.raw,w);if(f instanceof s)return this.raw=f.value,this.set=[[f]],this.formatted=void 0,this;if(this.options=w,this.loose=!!w.loose,this.includePrerelease=!!w.includePrerelease,this.raw=f.trim().replace(e," "),this.set=this.raw.split("||").map(b=>this.parseRange(b.trim())).filter(b=>b.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const b=this.set[0];if(this.set=this.set.filter(S=>!H(S[0])),this.set.length===0)this.set=[b];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&F(S[0])){this.set=[S];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let f=0;f0&&(this.formatted+="||");const w=this.set[f];for(let b=0;b0&&(this.formatted+=" "),this.formatted+=w[b].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(f){const b=((this.options.includePrerelease&&A)|(this.options.loose&&L))+":"+f,S=n.get(b);if(S)return S;const k=this.options.loose,N=k?d[p.HYPHENRANGELOOSE]:d[p.HYPHENRANGE];f=f.replace(N,pe(this.options.includePrerelease)),c("hyphen replace",f),f=f.replace(d[p.COMPARATORTRIM],g),c("comparator trim",f),f=f.replace(d[p.TILDETRIM],y),c("tilde trim",f),f=f.replace(d[p.CARETTRIM],_),c("caret trim",f);let v=f.split(" ").map(J=>O(J,this.options)).join(" ").split(/\s+/).map(J=>oe(J,this.options));k&&(v=v.filter(J=>(c("loose invalid filter",J,this.options),!!J.match(d[p.COMPARATORLOOSE])))),c("range list",v);const u=new Map,R=v.map(J=>new s(J,this.options));for(const J of R){if(H(J))return[J];u.set(J.value,J)}u.size>1&&u.has("")&&u.delete("");const K=[...u.values()];return n.set(b,K),K}intersects(f,w){if(!(f instanceof t))throw new TypeError("a Range is required");return this.set.some(b=>I(b,w)&&f.set.some(S=>I(S,w)&&b.every(k=>S.every(N=>k.intersects(N,w)))))}test(f){if(!f)return!1;if(typeof f=="string")try{f=new a(f,this.options)}catch{return!1}for(let w=0;wo.value==="<0.0.0-0",F=o=>o.value==="",I=(o,f)=>{let w=!0;const b=o.slice();let S=b.pop();for(;w&&b.length;)w=b.every(k=>S.intersects(k,f)),S=b.pop();return w},O=(o,f)=>(c("comp",o,f),o=z(o,f),c("caret",o),o=V(o,f),c("tildes",o),o=Y(o,f),c("xrange",o),o=fe(o,f),c("stars",o),o),B=o=>!o||o.toLowerCase()==="x"||o==="*",V=(o,f)=>o.trim().split(/\s+/).map(w=>j(w,f)).join(" "),j=(o,f)=>{const w=f.loose?d[p.TILDELOOSE]:d[p.TILDE];return o.replace(w,(b,S,k,N,v)=>{c("tilde",o,b,S,k,N,v);let u;return B(S)?u="":B(k)?u=`>=${S}.0.0 <${+S+1}.0.0-0`:B(N)?u=`>=${S}.${k}.0 <${S}.${+k+1}.0-0`:v?(c("replaceTilde pr",v),u=`>=${S}.${k}.${N}-${v} <${S}.${+k+1}.0-0`):u=`>=${S}.${k}.${N} <${S}.${+k+1}.0-0`,c("tilde return",u),u})},z=(o,f)=>o.trim().split(/\s+/).map(w=>te(w,f)).join(" "),te=(o,f)=>{c("caret",o,f);const w=f.loose?d[p.CARETLOOSE]:d[p.CARET],b=f.includePrerelease?"-0":"";return o.replace(w,(S,k,N,v,u)=>{c("caret",o,S,k,N,v,u);let R;return B(k)?R="":B(N)?R=`>=${k}.0.0${b} <${+k+1}.0.0-0`:B(v)?k==="0"?R=`>=${k}.${N}.0${b} <${k}.${+N+1}.0-0`:R=`>=${k}.${N}.0${b} <${+k+1}.0.0-0`:u?(c("replaceCaret pr",u),k==="0"?N==="0"?R=`>=${k}.${N}.${v}-${u} <${k}.${N}.${+v+1}-0`:R=`>=${k}.${N}.${v}-${u} <${k}.${+N+1}.0-0`:R=`>=${k}.${N}.${v}-${u} <${+k+1}.0.0-0`):(c("no pr"),k==="0"?N==="0"?R=`>=${k}.${N}.${v}${b} <${k}.${N}.${+v+1}-0`:R=`>=${k}.${N}.${v}${b} <${k}.${+N+1}.0-0`:R=`>=${k}.${N}.${v} <${+k+1}.0.0-0`),c("caret return",R),R})},Y=(o,f)=>(c("replaceXRanges",o,f),o.split(/\s+/).map(w=>Q(w,f)).join(" ")),Q=(o,f)=>{o=o.trim();const w=f.loose?d[p.XRANGELOOSE]:d[p.XRANGE];return o.replace(w,(b,S,k,N,v,u)=>{c("xRange",o,b,S,k,N,v,u);const R=B(k),K=R||B(N),J=K||B(v),T=J;return S==="="&&T&&(S=""),u=f.includePrerelease?"-0":"",R?S===">"||S==="<"?b="<0.0.0-0":b="*":S&&T?(K&&(N=0),v=0,S===">"?(S=">=",K?(k=+k+1,N=0,v=0):(N=+N+1,v=0)):S==="<="&&(S="<",K?k=+k+1:N=+N+1),S==="<"&&(u="-0"),b=`${S+k}.${N}.${v}${u}`):K?b=`>=${k}.0.0${u} <${+k+1}.0.0-0`:J&&(b=`>=${k}.${N}.0${u} <${k}.${+N+1}.0-0`),c("xRange return",b),b})},fe=(o,f)=>(c("replaceStars",o,f),o.trim().replace(d[p.STAR],"")),oe=(o,f)=>(c("replaceGTE0",o,f),o.trim().replace(d[f.includePrerelease?p.GTE0PRE:p.GTE0],"")),pe=o=>(f,w,b,S,k,N,v,u,R,K,J,T)=>(B(b)?w="":B(S)?w=`>=${b}.0.0${o?"-0":""}`:B(k)?w=`>=${b}.${S}.0${o?"-0":""}`:N?w=`>=${w}`:w=`>=${w}${o?"-0":""}`,B(R)?u="":B(K)?u=`<${+R+1}.0.0-0`:B(J)?u=`<${R}.${+K+1}.0-0`:T?u=`<=${R}.${K}.${J}-${T}`:o?u=`<${R}.${K}.${+J+1}-0`:u=`<=${u}`,`${w} ${u}`.trim()),x=(o,f,w)=>{for(let b=0;b0){const S=o[b].semver;if(S.major===f.major&&S.minor===f.minor&&S.patch===f.patch)return!0}return!1}return!0};return As}var Ts,Ha;function Gi(){if(Ha)return Ts;Ha=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(g,y){if(y=r(y),g instanceof t){if(g.loose===!!y.loose)return g;g=g.value}g=g.trim().split(/\s+/).join(" "),c("comparator",g,y),this.options=y,this.loose=!!y.loose,this.parse(g),this.semver===e?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(g){const y=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],_=g.match(y);if(!_)throw new TypeError(`Invalid comparator: ${g}`);this.operator=_[1]!==void 0?_[1]:"",this.operator==="="&&(this.operator=""),_[2]?this.semver=new a(_[2],this.options.loose):this.semver=e}toString(){return this.value}test(g){if(c("Comparator.test",g,this.options.loose),this.semver===e||g===e)return!0;if(typeof g=="string")try{g=new a(g,this.options)}catch{return!1}return s(g,this.operator,this.semver,this.options)}intersects(g,y){if(!(g instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new d(g.value,y).test(this.value):g.operator===""?g.value===""?!0:new d(this.value,y).test(g.semver):(y=r(y),y.includePrerelease&&(this.value==="<0.0.0-0"||g.value==="<0.0.0-0")||!y.includePrerelease&&(this.value.startsWith("<0.0.0")||g.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&g.operator.startsWith(">")||this.operator.startsWith("<")&&g.operator.startsWith("<")||this.semver.version===g.semver.version&&this.operator.includes("=")&&g.operator.includes("=")||s(this.semver,"<",g.semver,y)&&this.operator.startsWith(">")&&g.operator.startsWith("<")||s(this.semver,">",g.semver,y)&&this.operator.startsWith("<")&&g.operator.startsWith(">")))}}Ts=t;const r=vo,{safeRe:n,t:i}=Fn,s=Yl,c=qi,a=ot,d=Ct();return Ts}const wg=Ct(),yg=(e,t,r)=>{try{t=new wg(t,r)}catch{return!1}return t.test(e)};var Ji=yg;const bg=Ct(),vg=(e,t)=>new bg(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var _g=vg;const Eg=ot,Sg=Ct(),Rg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new Sg(t,r)}catch{return null}return e.forEach(c=>{s.test(c)&&(!n||i.compare(c)===-1)&&(n=c,i=new Eg(n,r))}),n};var Cg=Rg;const Mg=ot,kg=Ct(),xg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new kg(t,r)}catch{return null}return e.forEach(c=>{s.test(c)&&(!n||i.compare(c)===1)&&(n=c,i=new Mg(n,r))}),n};var Ig=xg;const Ns=ot,Ag=Ct(),Wa=zi,Tg=(e,t)=>{e=new Ag(e,t);let r=new Ns("0.0.0");if(e.test(r)||(r=new Ns("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n{const a=new Ns(c.semver.version);switch(c.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||Wa(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),s&&(!r||Wa(r,s))&&(r=s)}return r&&e.test(r)?r:null};var Ng=Tg;const Lg=Ct(),Bg=(e,t)=>{try{return new Lg(e,t).range||"*"}catch{return null}};var Pg=Bg;const Og=ot,Xl=Gi(),{ANY:$g}=Xl,Fg=Ct(),Dg=Ji,Va=zi,qa=Eo,jg=Ro,Ug=So,Hg=(e,t,r,n)=>{e=new Og(e,n),t=new Fg(t,n);let i,s,c,a,d;switch(r){case">":i=Va,s=jg,c=qa,a=">",d=">=";break;case"<":i=qa,s=Ug,c=Va,a="<",d="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Dg(e,t,n))return!1;for(let p=0;p{A.semver===$g&&(A=new Xl(">=0.0.0")),y=y||A,_=_||A,i(A.semver,y.semver,n)?y=A:c(A.semver,_.semver,n)&&(_=A)}),y.operator===a||y.operator===d||(!_.operator||_.operator===a)&&s(e,_.semver))return!1;if(_.operator===d&&c(e,_.semver))return!1}return!0};var Co=Hg;const Wg=Co,Vg=(e,t,r)=>Wg(e,t,">",r);var qg=Vg;const zg=Co,Gg=(e,t,r)=>zg(e,t,"<",r);var Jg=Gg;const za=Ct(),Zg=(e,t,r)=>(e=new za(e,r),t=new za(t,r),e.intersects(t,r));var Kg=Zg;const Qg=Ji,Yg=Rt;var Xg=(e,t,r)=>{const n=[];let i=null,s=null;const c=e.sort((g,y)=>Yg(g,y,r));for(const g of c)Qg(g,t,r)?(s=g,i||(i=g)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const a=[];for(const[g,y]of n)g===y?a.push(g):!y&&g===c[0]?a.push("*"):y?g===c[0]?a.push(`<=${y}`):a.push(`${g} - ${y}`):a.push(`>=${g}`);const d=a.join(" || "),p=typeof t.raw=="string"?t.raw:String(t);return d.length{if(e===t)return!0;e=new Ga(e,r),t=new Ga(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const c=rm(i,s,r);if(n=n||c!==null,c)continue e}if(n)return!1}return!0},tm=[new Mo(">=0.0.0-0")],Ja=[new Mo(">=0.0.0")],rm=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Ls){if(t.length===1&&t[0].semver===Ls)return!0;r.includePrerelease?e=tm:e=Ja}if(t.length===1&&t[0].semver===Ls){if(r.includePrerelease)return!0;t=Ja}const n=new Set;let i,s;for(const A of e)A.operator===">"||A.operator===">="?i=Za(i,A,r):A.operator==="<"||A.operator==="<="?s=Ka(s,A,r):n.add(A.semver);if(n.size>1)return null;let c;if(i&&s){if(c=ko(i.semver,s.semver,r),c>0)return null;if(c===0&&(i.operator!==">="||s.operator!=="<="))return null}for(const A of n){if(i&&!cn(A,String(i),r)||s&&!cn(A,String(s),r))return null;for(const L of t)if(!cn(A,String(L),r))return!1;return!0}let a,d,p,g,y=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,_=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;y&&y.prerelease.length===1&&s.operator==="<"&&y.prerelease[0]===0&&(y=!1);for(const A of t){if(g=g||A.operator===">"||A.operator===">=",p=p||A.operator==="<"||A.operator==="<=",i){if(_&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===_.major&&A.semver.minor===_.minor&&A.semver.patch===_.patch&&(_=!1),A.operator===">"||A.operator===">="){if(a=Za(i,A,r),a===A&&a!==i)return!1}else if(i.operator===">="&&!cn(i.semver,String(A),r))return!1}if(s){if(y&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===y.major&&A.semver.minor===y.minor&&A.semver.patch===y.patch&&(y=!1),A.operator==="<"||A.operator==="<="){if(d=Ka(s,A,r),d===A&&d!==s)return!1}else if(s.operator==="<="&&!cn(s.semver,String(A),r))return!1}if(!A.operator&&(s||i)&&c!==0)return!1}return!(i&&p&&!s&&c!==0||s&&g&&!i&&c!==0||_||y)},Za=(e,t,r)=>{if(!e)return t;const n=ko(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},Ka=(e,t,r)=>{if(!e)return t;const n=ko(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var nm=em;const Bs=Fn,Qa=Vi,im=ot,Ya=Zl,sm=on,om=dp,am=gp,cm=wp,lm=bp,um=Ep,hm=Cp,dm=xp,fm=Tp,pm=Rt,gm=Pp,mm=Fp,wm=_o,ym=Hp,bm=qp,vm=zi,_m=Eo,Em=Kl,Sm=Ql,Rm=So,Cm=Ro,Mm=Yl,km=pg,xm=Gi(),Im=Ct(),Am=Ji,Tm=_g,Nm=Cg,Lm=Ig,Bm=Ng,Pm=Pg,Om=Co,$m=qg,Fm=Jg,Dm=Kg,jm=Xg,Um=nm;var Hm={parse:sm,valid:om,clean:am,inc:cm,diff:lm,major:um,minor:hm,patch:dm,prerelease:fm,compare:pm,rcompare:gm,compareLoose:mm,compareBuild:wm,sort:ym,rsort:bm,gt:vm,lt:_m,eq:Em,neq:Sm,gte:Rm,lte:Cm,cmp:Mm,coerce:km,Comparator:xm,Range:Im,satisfies:Am,toComparators:Tm,maxSatisfying:Nm,minSatisfying:Lm,minVersion:Bm,validRange:Pm,outside:Om,gtr:$m,ltr:Fm,intersects:Dm,simplifyRange:jm,subset:Um,SemVer:im,re:Bs.re,src:Bs.src,tokens:Bs.t,SEMVER_SPEC_VERSION:Qa.SEMVER_SPEC_VERSION,RELEASE_TYPES:Qa.RELEASE_TYPES,compareIdentifiers:Ya.compareIdentifiers,rcompareIdentifiers:Ya.rcompareIdentifiers};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const t=Hm,r=Er,n=rt;e.VersionStruct=(0,r.refine)((0,r.string)(),"Version",y=>(0,t.valid)(y)===null?`Expected SemVer version, got "${y}"`:!0),e.VersionRangeStruct=(0,r.refine)((0,r.string)(),"Version range",y=>(0,t.validRange)(y)===null?`Expected SemVer range, got "${y}"`:!0);function i(y){return(0,r.is)(y,e.VersionStruct)}e.isValidSemVerVersion=i;function s(y){return(0,r.is)(y,e.VersionRangeStruct)}e.isValidSemVerRange=s;function c(y){(0,n.assertStruct)(y,e.VersionStruct)}e.assertIsSemVerVersion=c;function a(y){(0,n.assertStruct)(y,e.VersionRangeStruct)}e.assertIsSemVerRange=a;function d(y,_){return(0,t.gt)(y,_)}e.gtVersion=d;function p(y,_){return(0,t.gtr)(y,_)}e.gtRange=p;function g(y,_){return(0,t.satisfies)(y,_,{includePrerelease:!0})}e.satisfiesVersionRange=g})(zl);(function(e){var t=ee&&ee.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,c,a)}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=ee&&ee.__exportStar||function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(rt,e),r(On,e),r(ye,e),r(Hi,e),r(Bt,e),r(Zr,e),r(Dl,e),r($n,e),r(jl,e),r(Ul,e),r(Kr,e),r(Hl,e),r(Pt,e),r(Wl,e),r(Vl,e),r(ql,e),r(zl,e)})(vl);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createModuleLogger=e.projectLogger=void 0;const t=vl;Object.defineProperty(e,"createModuleLogger",{enumerable:!0,get:function(){return t.createModuleLogger}}),e.projectLogger=(0,t.createProjectLogger)("eth-block-tracker")})(bl);var eu=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ji,"__esModule",{value:!0});ji.PollingBlockTracker=void 0;const Wm=eu(uo),Vm=eu(g0),qm=Nn,Xa=bl,ec=(0,Xa.createModuleLogger)(Xa.projectLogger,"polling-block-tracker"),zm=(0,Wm.default)(),Gm=1e3;class Jm extends qm.BaseBlockTracker{constructor(t={}){var r;if(!t.provider)throw new Error("PollingBlockTracker - no provider specified.");super(Object.assign(Object.assign({},t),{blockResetDuration:(r=t.blockResetDuration)!==null&&r!==void 0?r:t.pollingInterval})),this._provider=t.provider,this._pollingInterval=t.pollingInterval||20*Gm,this._retryTimeout=t.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=t.keepEventLoopActive===void 0?!0:t.keepEventLoopActive,this._setSkipCacheFlag=t.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var t;this._isRunning;)try{await this._updateLatestBlock();const r=tc(this._pollingInterval,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await r}catch(r){const n=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block: -${(t=r.stack)!==null&&t!==void 0?t:r}`);try{this.emit("error",n)}catch{console.error(n)}const i=tc(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await i}}async _updateLatestBlock(){const t=await this._fetchLatestBlock();this._newPotentialLatest(t)}async _fetchLatestBlock(){const t={jsonrpc:"2.0",id:zm(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(t.skipCache=!0),ec("Making request",t);const r=await(0,Vm.default)(n=>this._provider.sendAsync(t,n))();if(ec("Got response",r),r.error)throw new Error(`PollingBlockTracker - encountered error fetching block: -${r.error.message}`);return r.result}}ji.PollingBlockTracker=Jm;function tc(e,t){return new Promise(r=>{const n=setTimeout(r,e);n.unref&&t&&n.unref()})}var Zi={},Zm=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.SubscribeBlockTracker=void 0;const Km=Zm(uo),Qm=Nn,Ym=(0,Km.default)();class Xm extends Qm.BaseBlockTracker{constructor(t={}){if(!t.provider)throw new Error("SubscribeBlockTracker - no provider specified.");super(t),this._provider=t.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(this._subscriptionId===void 0||this._subscriptionId===null)try{const t=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(t)}catch(t){this.emit("error",t)}}async _end(){if(this._subscriptionId!==null&&this._subscriptionId!==void 0)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(t){this.emit("error",t)}}_call(t,...r){return new Promise((n,i)=>{this._provider.sendAsync({id:Ym(),method:t,params:r,jsonrpc:"2.0"},(s,c)=>{s?i(s):n(c.result)})})}_handleSubData(t,r){var n;r.method==="eth_subscription"&&((n=r.params)===null||n===void 0?void 0:n.subscription)===this._subscriptionId&&this._newPotentialLatest(r.params.result.number)}}Zi.SubscribeBlockTracker=Xm;(function(e){var t=ee&&ee.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=ee&&ee.__exportStar||function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(ji,e),r(Zi,e)})(yl);var xo={},Ki={},Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.getUniqueId=void 0;const tu=4294967295;let Ps=Math.floor(Math.random()*tu);function ew(){return Ps=(Ps+1)%tu,Ps}Dn.getUniqueId=ew;Object.defineProperty(Ki,"__esModule",{value:!0});Ki.createIdRemapMiddleware=void 0;const tw=Dn;function rw(){return(e,t,r,n)=>{const i=e.id,s=tw.getUniqueId();e.id=s,t.id=s,r(c=>{e.id=i,t.id=i,c()})}}Ki.createIdRemapMiddleware=rw;var Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.createAsyncMiddleware=void 0;function nw(e){return async(t,r,n,i)=>{let s;const c=new Promise(g=>{s=g});let a=null,d=!1;const p=async()=>{d=!0,n(g=>{a=g,s()}),await c};try{await e(t,r,p),d?(await c,a(null)):i(null)}catch(g){a?a(g):i(g)}}}Qi.createAsyncMiddleware=nw;var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.createScaffoldMiddleware=void 0;function iw(e){return(t,r,n,i)=>{const s=e[t.method];return s===void 0?n():typeof s=="function"?s(t,r,n,i):(r.result=s,i())}}Yi.createScaffoldMiddleware=iw;var jn={},Io={};Object.defineProperty(Io,"__esModule",{value:!0});const sw=ai;function rc(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout(()=>{throw n})}}function ow(e){const t=e.length,r=new Array(t);for(let n=0;n0&&([c]=r),c instanceof Error)throw c;const a=new Error(`Unhandled error.${c?` (${c.message})`:""}`);throw a.context=c,a}const s=i[t];if(s===void 0)return!1;if(typeof s=="function")rc(s,this,r);else{const c=s.length,a=ow(s);for(let d=0;d"u"&&(n=iu()),Js(e,"",0,[],void 0,0,n);var i;try{pr.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,ou(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;wr.length!==0;){var s=wr.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Wr(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),wr.push([n,r,t,i])):pr.push([t,r,e]):(n[r]=e,wr.push([n,r,t]))}function Js(e,t,r,n,i,s,c){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;ac.depthLimit){Wr(si,e,t,i);return}if(typeof c.edgesLimit<"u"&&r+1>c.edgesLimit){Wr(si,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;at?1:0}function su(e,t,r,n){typeof n>"u"&&(n=iu());var i=Zs(e,"",0,[],void 0,0,n)||e,s;try{pr.length===0?s=JSON.stringify(i,t,r):s=JSON.stringify(i,ou(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;wr.length!==0;){var c=wr.pop();c.length===4?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function Zs(e,t,r,n,i,s,c){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;ac.depthLimit){Wr(si,e,t,i);return}if(typeof c.edgesLimit<"u"&&r+1>c.edgesLimit){Wr(si,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a0)for(var n=0;n=1e3&&e<=4999}function fw(e,t){if(t!=="[Circular]")return t}var Ao={},qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.errorValues=qt.errorCodes=void 0;qt.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};qt.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=qt,r=Vt,n=t.errorCodes.rpc.internal,i="Unspecified error message. This is a bug, please report it.",s={code:n,message:c(n)};e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function c(_,A=i){if(Number.isInteger(_)){const L=_.toString();if(y(t.errorValues,L))return t.errorValues[L].message;if(p(_))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return A}e.getMessageFromCode=c;function a(_){if(!Number.isInteger(_))return!1;const A=_.toString();return!!(t.errorValues[A]||p(_))}e.isValidCode=a;function d(_,{fallbackError:A=s,shouldIncludeStack:L=!1}={}){var H,F;if(!A||!Number.isInteger(A.code)||typeof A.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(_ instanceof r.EthereumRpcError)return _.serialize();const I={};if(_&&typeof _=="object"&&!Array.isArray(_)&&y(_,"code")&&a(_.code)){const B=_;I.code=B.code,B.message&&typeof B.message=="string"?(I.message=B.message,y(B,"data")&&(I.data=B.data)):(I.message=c(I.code),I.data={originalError:g(_)})}else{I.code=A.code;const B=(H=_)===null||H===void 0?void 0:H.message;I.message=B&&typeof B=="string"?B:A.message,I.data={originalError:g(_)}}const O=(F=_)===null||F===void 0?void 0:F.stack;return L&&_&&O&&typeof O=="string"&&(I.stack=O),I}e.serializeError=d;function p(_){return _>=-32099&&_<=-32e3}function g(_){return _&&typeof _=="object"&&!Array.isArray(_)?Object.assign({},_):_}function y(_,A){return Object.prototype.hasOwnProperty.call(_,A)}})(Ao);var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.ethErrors=void 0;const To=Vt,cu=Ao,nt=qt;Xi.ethErrors={rpc:{parse:e=>pt(nt.errorCodes.rpc.parse,e),invalidRequest:e=>pt(nt.errorCodes.rpc.invalidRequest,e),invalidParams:e=>pt(nt.errorCodes.rpc.invalidParams,e),methodNotFound:e=>pt(nt.errorCodes.rpc.methodNotFound,e),internal:e=>pt(nt.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return pt(t,e)},invalidInput:e=>pt(nt.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>pt(nt.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>pt(nt.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>pt(nt.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>pt(nt.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>pt(nt.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>ln(nt.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>ln(nt.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>ln(nt.errorCodes.provider.unsupportedMethod,e),disconnected:e=>ln(nt.errorCodes.provider.disconnected,e),chainDisconnected:e=>ln(nt.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:n}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new To.EthereumProviderError(t,r,n)}}};function pt(e,t){const[r,n]=lu(t);return new To.EthereumRpcError(e,r||cu.getMessageFromCode(e),n)}function ln(e,t){const[r,n]=lu(t);return new To.EthereumProviderError(e,r||cu.getMessageFromCode(e),n)}function lu(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=Vt;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const r=Ao;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const n=Xi;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return n.ethErrors}});const i=qt;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return i.errorCodes}})})(ru);var pw=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jn,"__esModule",{value:!0});jn.JsonRpcEngine=void 0;const gw=pw(Io),gt=ru;class Ot extends gw.default{constructor(){super(),this._middleware=[]}push(t){this._middleware.push(t)}handle(t,r){if(r&&typeof r!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(t)?r?this._handleBatch(t,r):this._handleBatch(t):r?this._handle(t,r):this._promiseHandle(t)}asMiddleware(){return async(t,r,n,i)=>{try{const[s,c,a]=await Ot._runAllMiddleware(t,r,this._middleware);return c?(await Ot._runReturnHandlers(a),i(s)):n(async d=>{try{await Ot._runReturnHandlers(a)}catch(p){return d(p)}return d()})}catch(s){return i(s)}}}async _handleBatch(t,r){try{const n=await Promise.all(t.map(this._promiseHandle.bind(this)));return r?r(null,n):n}catch(n){if(r)return r(n);throw n}}_promiseHandle(t){return new Promise(r=>{this._handle(t,(n,i)=>{r(i)})})}async _handle(t,r){if(!t||Array.isArray(t)||typeof t!="object"){const c=new gt.EthereumRpcError(gt.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof t}`,{request:t});return r(c,{id:void 0,jsonrpc:"2.0",error:c})}if(typeof t.method!="string"){const c=new gt.EthereumRpcError(gt.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof t.method}`,{request:t});return r(c,{id:t.id,jsonrpc:"2.0",error:c})}const n=Object.assign({},t),i={id:n.id,jsonrpc:n.jsonrpc};let s=null;try{await this._processRequest(n,i)}catch(c){s=c}return s&&(delete i.result,i.error||(i.error=gt.serializeError(s))),r(s,i)}async _processRequest(t,r){const[n,i,s]=await Ot._runAllMiddleware(t,r,this._middleware);if(Ot._checkForCompletion(t,r,i),await Ot._runReturnHandlers(s),n)throw n}static async _runAllMiddleware(t,r,n){const i=[];let s=null,c=!1;for(const a of n)if([s,c]=await Ot._runMiddleware(t,r,a,i),c)break;return[s,c,i.reverse()]}static _runMiddleware(t,r,n,i){return new Promise(s=>{const c=d=>{const p=d||r.error;p&&(r.error=gt.serializeError(p)),s([p,!0])},a=d=>{r.error?c(r.error):(d&&(typeof d!="function"&&c(new gt.EthereumRpcError(gt.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof d}" for request: -${Os(t)}`,{request:t})),i.push(d)),s([null,!1]))};try{n(t,r,a,c)}catch(d){c(d)}})}static async _runReturnHandlers(t){for(const r of t)await new Promise((n,i)=>{r(s=>s?i(s):n())})}static _checkForCompletion(t,r,n){if(!("result"in r)&&!("error"in r))throw new gt.EthereumRpcError(gt.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: -${Os(t)}`,{request:t});if(!n)throw new gt.EthereumRpcError(gt.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: -${Os(t)}`,{request:t})}}jn.JsonRpcEngine=Ot;function Os(e){return JSON.stringify(e,null,2)}var es={};Object.defineProperty(es,"__esModule",{value:!0});es.mergeMiddleware=void 0;const mw=jn;function ww(e){const t=new mw.JsonRpcEngine;return e.forEach(r=>t.push(r)),t.asMiddleware()}es.mergeMiddleware=ww;(function(e){var t=ee&&ee.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=ee&&ee.__exportStar||function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(Ki,e),r(Qi,e),r(Yi,e),r(Dn,e),r(jn,e),r(es,e)})(xo);var uu={},No={};const Lo=mn(gu);var ts={};Object.defineProperty(ts,"__esModule",{value:!0});var nc=Lo,yw=function(){function e(t){if(this._maxConcurrency=t,this._queue=[],t<=0)throw new Error("semaphore must be initialized to a positive value");this._value=t}return e.prototype.acquire=function(){var t=this,r=this.isLocked(),n=new Promise(function(i){return t._queue.push(i)});return r||this._dispatch(),n},e.prototype.runExclusive=function(t){return nc.__awaiter(this,void 0,void 0,function(){var r,n,i;return nc.__generator(this,function(s){switch(s.label){case 0:return[4,this.acquire()];case 1:r=s.sent(),n=r[0],i=r[1],s.label=2;case 2:return s.trys.push([2,,4,5]),[4,t(n)];case 3:return[2,s.sent()];case 4:return i(),[7];case 5:return[2]}})})},e.prototype.isLocked=function(){return this._value<=0},e.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},e.prototype._dispatch=function(){var t=this,r=this._queue.shift();if(r){var n=!1;this._currentReleaser=function(){n||(n=!0,t._value++,t._dispatch())},r([this._value--,this._currentReleaser])}},e}();ts.default=yw;Object.defineProperty(No,"__esModule",{value:!0});var ic=Lo,bw=ts,vw=function(){function e(){this._semaphore=new bw.default(1)}return e.prototype.acquire=function(){return ic.__awaiter(this,void 0,void 0,function(){var t,r;return ic.__generator(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return t=n.sent(),r=t[1],[2,r]}})})},e.prototype.runExclusive=function(t){return this._semaphore.runExclusive(function(){return t()})},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e}();No.default=vw;var rs={};Object.defineProperty(rs,"__esModule",{value:!0});rs.withTimeout=void 0;var Xn=Lo;function _w(e,t,r){var n=this;return r===void 0&&(r=new Error("timeout")),{acquire:function(){return new Promise(function(i,s){return Xn.__awaiter(n,void 0,void 0,function(){var c,a,d;return Xn.__generator(this,function(p){switch(p.label){case 0:return c=!1,setTimeout(function(){c=!0,s(r)},t),[4,e.acquire()];case 1:return a=p.sent(),c?(d=Array.isArray(a)?a[1]:a,d()):i(a),[2]}})})})},runExclusive:function(i){return Xn.__awaiter(this,void 0,void 0,function(){var s,c;return Xn.__generator(this,function(a){switch(a.label){case 0:s=function(){},a.label=1;case 1:return a.trys.push([1,,7,8]),[4,this.acquire()];case 2:return c=a.sent(),Array.isArray(c)?(s=c[1],[4,i(c[0])]):[3,4];case 3:return[2,a.sent()];case 4:return s=c,[4,i()];case 5:return[2,a.sent()];case 6:return[3,8];case 7:return s(),[7];case 8:return[2]}})})},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}rs.withTimeout=_w;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.withTimeout=e.Semaphore=e.Mutex=void 0;var t=No;Object.defineProperty(e,"Mutex",{enumerable:!0,get:function(){return t.default}});var r=ts;Object.defineProperty(e,"Semaphore",{enumerable:!0,get:function(){return r.default}});var n=rs;Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return n.withTimeout}})})(uu);var Ew=Rw,Sw=Object.prototype.hasOwnProperty;function Rw(){for(var e={},t=0;tfunction(...i){const s=t.promiseModule;return new s((c,a)=>{t.multiArgs?i.push((...p)=>{t.errorFirst?p[0]?a(p):(p.shift(),c(p)):c(p)}):t.errorFirst?i.push((p,g)=>{p?a(p):c(g)}):i.push(c),Reflect.apply(e,this===r?n:this,i)})},oc=new WeakMap;var Iw=(e,t)=>{t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};const r=typeof e;if(!(e!==null&&(r==="object"||r==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":r}\``);const n=(c,a)=>{let d=oc.get(c);if(d||(d={},oc.set(c,d)),a in d)return d[a];const p=L=>typeof L=="string"||typeof a=="symbol"?a===L:L.test(a),g=Reflect.getOwnPropertyDescriptor(c,a),y=g===void 0||g.writable||g.configurable,A=(t.include?t.include.some(p):!t.exclude.some(p))&&y;return d[a]=A,A},i=new WeakMap,s=new Proxy(e,{apply(c,a,d){const p=i.get(c);if(p)return Reflect.apply(p,a,d);const g=t.excludeMain?c:sc(c,t,s,c);return i.set(c,g),Reflect.apply(g,a,d)},get(c,a){const d=c[a];if(!n(c,a)||d===Function.prototype[a])return d;const p=i.get(d);if(p)return p;if(typeof d=="function"){const g=sc(d,t,s,c);return i.set(d,g),g}return d}});return s};const Aw=Ln.default;let Tw=class extends Aw{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(t){this.updates=this.updates.concat(t),t.forEach(r=>this.emit("update",r))}addInitialResults(t){}getChangesAndClear(){const t=this.updates;return this.updates=[],t}};var Bo=Tw;const Nw=Bo;let Lw=class extends Nw{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(t){this.allResults=this.allResults.concat(t),super.addResults(t)}addInitialResults(t){this.allResults=this.allResults.concat(t),super.addInitialResults(t)}getAllResults(){return this.allResults}};var Bw=Lw,Hn={minBlockRef:Pw,maxBlockRef:Ow,sortBlockRefs:Po,bnToHex:$w,blockRefIsNumber:Fw,hexToInt:oi,incrementHexInt:Dw,intToHex:hu,unsafeRandomBytes:jw};function Pw(...e){return Po(e)[0]}function Ow(...e){const t=Po(e);return t[t.length-1]}function Po(e){return e.sort((t,r)=>t==="latest"||r==="earliest"?1:r==="latest"||t==="earliest"?-1:oi(t)-oi(r))}function $w(e){return"0x"+e.toString(16)}function Fw(e){return e&&!["earliest","latest","pending"].includes(e)}function oi(e){return e==null?e:Number.parseInt(e,16)}function Dw(e){if(e==null)return e;const t=oi(e);return hu(t+1)}function hu(e){if(e==null)return e;let t=e.toString(16);return t.length%2&&(t="0"+t),"0x"+t}function jw(e){let t="0x";for(let r=0;rn.toLowerCase()))}async initialize({currentBlock:t}){let r=this.params.fromBlock;["latest","pending"].includes(r)&&(r=t),r==="earliest"&&(r="0x0"),this.params.fromBlock=r;const n=qw(this.params.toBlock,t),i=Object.assign({},this.params,{toBlock:n}),s=await this._fetchLogs(i);this.addInitialResults(s)}async update({oldBlock:t,newBlock:r}){const n=r;let i;t?i=Vw(t):i=r;const s=Object.assign({},this.params,{fromBlock:i,toBlock:n}),a=(await this._fetchLogs(s)).filter(d=>this.matchLog(d));this.addResults(a)}async _fetchLogs(t){return await Hw(n=>this.ethQuery.getLogs(t,n))()}matchLog(t){if(ei(this.params.fromBlock)>=ei(t.blockNumber)||zw(this.params.toBlock)&&ei(this.params.toBlock)<=ei(t.blockNumber))return!1;const r=t.address&&t.address.toLowerCase();return this.params.address&&r&&!this.params.address.includes(r)?!1:this.params.topics.every((i,s)=>{let c=t.topics[s];if(!c)return!1;c=c.toLowerCase();let a=Array.isArray(i)?i:[i];return a.includes(null)?!0:(a=a.map(g=>g.toLowerCase()),a.includes(c))})}};var Jw=Gw,Oo=Zw;async function Zw({provider:e,fromBlock:t,toBlock:r}){t||(t=r);const n=cc(t),s=cc(r)-n+1,c=Array(s).fill().map((d,p)=>n+p).map(Kw);let a=await Promise.all(c.map(d=>Yw(e,"eth_getBlockByNumber",[d,!1])));return a=a.filter(d=>d!==null),a}function cc(e){return e==null?e:Number.parseInt(e,16)}function Kw(e){return e==null?e:"0x"+e.toString(16)}function Qw(e,t){return new Promise((r,n)=>{e.sendAsync(t,(i,s)=>{i?n(i):s.error?n(s.error):s.result?r(s.result):n(new Error("Result was empty"))})})}async function Yw(e,t,r){for(let n=0;n<3;n++)try{return await Qw(e,{id:1,jsonrpc:"2.0",method:t,params:r})}catch(i){console.error(`provider.sendAsync failed: ${i.stack||i.message||i}`)}return null}const Xw=Bo,ey=Oo,{incrementHexInt:ty}=Hn;let ry=class extends Xw{constructor({provider:t,params:r}){super(),this.type="block",this.provider=t}async update({oldBlock:t,newBlock:r}){const n=r,i=ty(t),c=(await ey({provider:this.provider,fromBlock:i,toBlock:n})).map(a=>a.hash);this.addResults(c)}};var ny=ry;const iy=Bo,sy=Oo,{incrementHexInt:oy}=Hn;let ay=class extends iy{constructor({provider:t}){super(),this.type="tx",this.provider=t}async update({oldBlock:t}){const r=t,n=oy(t),i=await sy({provider:this.provider,fromBlock:n,toBlock:r}),s=[];for(const c of i)s.push(...c.transactions);this.addResults(s)}};var cy=ay;const ly=uu.Mutex,{createAsyncMiddleware:uy,createScaffoldMiddleware:hy}=xo,dy=Jw,fy=ny,py=cy,{intToHex:du,hexToInt:$s}=Hn;var gy=my;function my({blockTracker:e,provider:t}){let r=0,n={};const i=new ly,s=wy({mutex:i}),c=hy({eth_newFilter:s(Fs(d)),eth_newBlockFilter:s(Fs(p)),eth_newPendingTransactionFilter:s(Fs(g)),eth_uninstallFilter:s(ni(A)),eth_getFilterChanges:s(ni(y)),eth_getFilterLogs:s(ni(_))}),a=async({oldBlock:O,newBlock:B})=>{if(n.length===0)return;const V=await i.acquire();try{await Promise.all($r(n).map(async j=>{try{await j.update({oldBlock:O,newBlock:B})}catch(z){console.error(z)}}))}catch(j){console.error(j)}V()};return c.newLogFilter=d,c.newBlockFilter=p,c.newPendingTransactionFilter=g,c.uninstallFilter=A,c.getFilterChanges=y,c.getFilterLogs=_,c.destroy=()=>{F()},c;async function d(O){const B=new dy({provider:t,params:O});return await L(B),B}async function p(){const O=new fy({provider:t});return await L(O),O}async function g(){const O=new py({provider:t});return await L(O),O}async function y(O){const B=$s(O),V=n[B];if(!V)throw new Error(`No filter for index "${B}"`);return V.getChangesAndClear()}async function _(O){const B=$s(O),V=n[B];if(!V)throw new Error(`No filter for index "${B}"`);let j=[];return V.type==="log"&&(j=V.getAllResults()),j}async function A(O){const B=$s(O),j=!!n[B];return j&&await H(B),j}async function L(O){const B=$r(n).length,V=await e.getLatestBlock();await O.initialize({currentBlock:V}),r++,n[r]=O,O.id=r,O.idHex=du(r);const j=$r(n).length;return I({prevFilterCount:B,newFilterCount:j}),r}async function H(O){const B=$r(n).length;delete n[O];const V=$r(n).length;I({prevFilterCount:B,newFilterCount:V})}async function F(){const O=$r(n).length;n={},I({prevFilterCount:O,newFilterCount:0})}function I({prevFilterCount:O,newFilterCount:B}){if(O===0&&B>0){e.on("sync",a);return}if(O>0&&B===0){e.removeListener("sync",a);return}}}function Fs(e){return ni(async(...t)=>{const r=await e(...t);return du(r.id)})}function ni(e){return uy(async(t,r)=>{const n=await e.apply(null,t.params);r.result=n})}function wy({mutex:e}){return t=>async(r,n,i,s)=>{(await e.acquire())(),t(r,n,i,s)}}function $r(e,t){const r=[];for(let n in e)r.push(e[n]);return r}const yy=Ln.default,{createAsyncMiddleware:lc,createScaffoldMiddleware:by}=xo,vy=gy,{unsafeRandomBytes:_y,incrementHexInt:Ey}=Hn,Sy=Oo;var Ry=Cy;function Cy({blockTracker:e,provider:t}){const r={},n=vy({blockTracker:e,provider:t});let i=!1;const s=new yy,c=by({eth_subscribe:lc(a),eth_unsubscribe:lc(d)});return c.destroy=g,{events:s,middleware:c};async function a(y,_){if(i)throw new Error("SubscriptionManager - attempting to use after destroying");const A=y.params[0],L=_y(16);let H;switch(A){case"newHeads":H=F({subId:L});break;case"logs":const O=y.params[1],B=await n.newLogFilter(O);H=I({subId:L,filter:B});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${A}"`)}r[L]=H,_.result=L;return;function F({subId:O}){const B={type:A,destroy:async()=>{e.removeListener("sync",B.update)},update:async({oldBlock:V,newBlock:j})=>{const z=j,te=Ey(V);(await Sy({provider:t,fromBlock:te,toBlock:z})).map(My).filter(fe=>fe!==null).forEach(fe=>{p(O,fe)})}};return e.on("sync",B.update),B}function I({subId:O,filter:B}){return B.on("update",j=>p(O,j)),{type:A,destroy:async()=>await n.uninstallFilter(B.idHex)}}}async function d(y,_){if(i)throw new Error("SubscriptionManager - attempting to use after destroying");const A=y.params[0],L=r[A];if(!L){_.result=!1;return}delete r[A],await L.destroy(),_.result=!0}function p(y,_){s.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:y,result:_}})}function g(){s.removeAllListeners();for(const y in r)r[y].destroy(),delete r[y];i=!0}}function My(e){return e==null?null:{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLimit:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}Object.defineProperty(Di,"__esModule",{value:!0});Di.SubscriptionManager=void 0;const ky=yl,xy=Ry,uc=()=>{};class Iy{constructor(t){const r=new ky.PollingBlockTracker({provider:t,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:i}=xy({blockTracker:r,provider:t});this.events=n,this.subscriptionMiddleware=i}async handleRequest(t){const r={};return await this.subscriptionMiddleware(t,r,uc,uc),r}destroy(){this.subscriptionMiddleware.destroy()}}Di.SubscriptionManager=Iy;var fu=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.CoinbaseWalletProvider=void 0;const Ay=fu(ui),Ty=Ju,me=wn,de=X,Ny=_n,hc=wt,ti=en,lt=Qr,Ds=fu(u0),un=Xr,Ly=Jr,By=Di,dc="DefaultChainId",fc="DefaultJsonRpcUrl";class Py extends Ty.EventEmitter{constructor(t){var r,n;super(),this._filterPolyfill=new Ly.FilterPolyfill(this),this._subscriptionManager=new By.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=t.chainId,this._jsonRpcUrlFromOpts=t.jsonRpcUrl,this._overrideIsMetaMask=t.overrideIsMetaMask,this._relayProvider=t.relayProvider,this._storage=t.storage,this._relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(r=t.overrideIsCoinbaseWallet)!==null&&r!==void 0?r:!0,this.isCoinbaseBrowser=(n=t.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this.qrUrl=t.qrUrl;const i=this.getChainId(),s=(0,de.prepend0x)(i.toString(16));this.emit("connect",{chainIdStr:s});const c=this._storage.getItem(hc.LOCAL_STORAGE_ADDRESSES_KEY);if(c){const a=c.split(" ");a[0]!==""&&(this._addresses=a.map(d=>(0,de.ensureAddressString)(d)),this.emit("accountsChanged",a))}this._subscriptionManager.events.on("notification",a=>{this.emit("message",{type:a.method,data:a.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener("message",a=>{var d;if(!(a.origin!==location.origin||a.source!==window)&&a.data.type==="walletLinkMessage"&&a.data.data.action==="dappChainSwitched"){const p=a.data.data.chainId,g=(d=a.data.data.jsonRpcUrl)!==null&&d!==void 0?d:this.jsonRpcUrl;this.updateProviderInfo(g,Number(p))}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,de.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var t;return(t=this._storage.getItem(fc))!==null&&t!==void 0?t:this._jsonRpcUrlFromOpts}set jsonRpcUrl(t){this._storage.setItem(fc,t)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(t,r){this.isCoinbaseBrowser||(this._chainIdFromOpts=r,this._jsonRpcUrlFromOpts=t),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(t,r){this.jsonRpcUrl=t;const n=this.getChainId();this._storage.setItem(dc,r.toString(10)),((0,de.ensureIntNumber)(r)!==n||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(t,r,n,i,s,c){const d=await(await this.initializeRelay()).watchAsset(t,r,n,i,s,c==null?void 0:c.toString()).promise;return(0,lt.isErrorResponse)(d)?!1:!!d.result}async addEthereumChain(t,r,n,i,s,c){var a,d;if((0,de.ensureIntNumber)(t)===this.getChainId())return!1;const p=await this.initializeRelay(),g=p.inlineAddEthereumChain(t.toString());!this._isAuthorized()&&!g&&await p.requestEthereumAccounts().promise;const y=await p.addEthereumChain(t.toString(),r,s,n,i,c).promise;return(0,lt.isErrorResponse)(y)?!1:(((a=y.result)===null||a===void 0?void 0:a.isApproved)===!0&&this.updateProviderInfo(r[0],t),((d=y.result)===null||d===void 0?void 0:d.isApproved)===!0)}async switchEthereumChain(t){const n=await(await this.initializeRelay()).switchEthereumChain(t.toString(10),this.selectedAddress||void 0).promise;if((0,lt.isErrorResponse)(n)){if(!n.errorCode)return;throw n.errorCode===me.standardErrorCodes.provider.unsupportedChain?me.standardErrors.provider.unsupportedChain():me.standardErrors.provider.custom({message:n.errorMessage,code:n.errorCode})}const i=n.result;i.isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,t)}setAppInfo(t,r){this.initializeRelay().then(n=>n.setAppInfo(t,r))}async enable(){var t;return(t=this.diagnostic)===null||t===void 0||t.log(un.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?ti.Session.hash(this._relay.session.id):void 0}),this._isAuthorized()?[...this._addresses]:await this.send("eth_requestAccounts")}async close(){(await this.initializeRelay()).resetAndReload()}send(t,r){try{const n=this._send(t,r);if(n instanceof Promise)return n.catch(i=>{throw(0,me.serializeError)(i,t)})}catch(n){throw(0,me.serializeError)(n,t)}}_send(t,r){if(typeof t=="string"){const i=t,s=Array.isArray(r)?r:r!==void 0?[r]:[],c={jsonrpc:"2.0",id:0,method:i,params:s};return this._sendRequestAsync(c).then(a=>a.result)}if(typeof r=="function"){const i=t,s=r;return this._sendAsync(i,s)}if(Array.isArray(t))return t.map(s=>this._sendRequest(s));const n=t;return this._sendRequest(n)}async sendAsync(t,r){try{return this._sendAsync(t,r).catch(n=>{throw(0,me.serializeError)(n,t)})}catch(n){return Promise.reject((0,me.serializeError)(n,t))}}async _sendAsync(t,r){if(typeof r!="function")throw new Error("callback is required");if(Array.isArray(t)){const i=r;this._sendMultipleRequestsAsync(t).then(s=>i(null,s)).catch(s=>i(s,null));return}const n=r;return this._sendRequestAsync(t).then(i=>n(null,i)).catch(i=>n(i,null))}async request(t){try{return this._request(t).catch(r=>{throw(0,me.serializeError)(r,t.method)})}catch(r){return Promise.reject((0,me.serializeError)(r,t.method))}}async _request(t){if(!t||typeof t!="object"||Array.isArray(t))throw me.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:t});const{method:r,params:n}=t;if(typeof r!="string"||r.length===0)throw me.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:t});if(n!==void 0&&!Array.isArray(n)&&(typeof n!="object"||n===null))throw me.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:t});const i=n===void 0?[]:n,s=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:r,params:i,jsonrpc:"2.0",id:s})).result}async scanQRCode(t){const n=await(await this.initializeRelay()).scanQRCode((0,de.ensureRegExpString)(t)).promise;if((0,lt.isErrorResponse)(n))throw(0,me.serializeError)(n.errorMessage,"scanQRCode");if(typeof n.result!="string")throw(0,me.serializeError)("result was not a string","scanQRCode");return n.result}async genericRequest(t,r){const i=await(await this.initializeRelay()).genericRequest(t,r).promise;if((0,lt.isErrorResponse)(i))throw(0,me.serializeError)(i.errorMessage,"generic");if(typeof i.result!="string")throw(0,me.serializeError)("result was not a string","generic");return i.result}async connectAndSignIn(t){var r;(r=this.diagnostic)===null||r===void 0||r.log(un.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::connectAndSignIn",sessionIdHash:this._relay?ti.Session.hash(this._relay.session.id):void 0});let n;try{const s=await this.initializeRelay();if(!(s instanceof Ny.MobileRelay))throw new Error("connectAndSignIn is only supported on mobile");if(n=await s.connectAndSignIn(t).promise,(0,lt.isErrorResponse)(n))throw new Error(n.errorMessage)}catch(s){throw typeof s.message=="string"&&s.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied account authorization"):s}if(!n.result)throw new Error("accounts received is empty");const{accounts:i}=n.result;return this._setAddresses(i),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),n.result}async selectProvider(t){const n=await(await this.initializeRelay()).selectProvider(t).promise;if((0,lt.isErrorResponse)(n))throw(0,me.serializeError)(n.errorMessage,"selectProvider");if(typeof n.result!="string")throw(0,me.serializeError)("result was not a string","selectProvider");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(t){const r={jsonrpc:"2.0",id:t.id},{method:n}=t;if(r.result=this._handleSynchronousMethods(t),r.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return r}_setAddresses(t,r){if(!Array.isArray(t))throw new Error("addresses is not an array");const n=t.map(i=>(0,de.ensureAddressString)(i));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(hc.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" ")))}_sendRequestAsync(t){return new Promise((r,n)=>{try{const i=this._handleSynchronousMethods(t);if(i!==void 0)return r({jsonrpc:"2.0",id:t.id,result:i});const s=this._handleAsynchronousFilterMethods(t);if(s!==void 0){s.then(a=>r(Object.assign(Object.assign({},a),{id:t.id}))).catch(a=>n(a));return}const c=this._handleSubscriptionMethods(t);if(c!==void 0){c.then(a=>r({jsonrpc:"2.0",id:t.id,result:a.result})).catch(a=>n(a));return}}catch(i){return n(i)}this._handleAsynchronousMethods(t).then(i=>i&&r(Object.assign(Object.assign({},i),{id:t.id}))).catch(i=>n(i))})}_sendMultipleRequestsAsync(t){return Promise.all(t.map(r=>this._sendRequestAsync(r)))}_handleSynchronousMethods(t){const{method:r}=t,n=t.params||[];switch(r){case"eth_accounts":return this._eth_accounts();case"eth_coinbase":return this._eth_coinbase();case"eth_uninstallFilter":return this._eth_uninstallFilter(n);case"net_version":return this._net_version();case"eth_chainId":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(t){const{method:r}=t,n=t.params||[];switch(r){case"eth_requestAccounts":return this._eth_requestAccounts();case"eth_sign":return this._eth_sign(n);case"eth_ecRecover":return this._eth_ecRecover(n);case"personal_sign":return this._personal_sign(n);case"personal_ecRecover":return this._personal_ecRecover(n);case"eth_signTransaction":return this._eth_signTransaction(n);case"eth_sendRawTransaction":return this._eth_sendRawTransaction(n);case"eth_sendTransaction":return this._eth_sendTransaction(n);case"eth_signTypedData_v1":return this._eth_signTypedData_v1(n);case"eth_signTypedData_v2":return this._throwUnsupportedMethodError();case"eth_signTypedData_v3":return this._eth_signTypedData_v3(n);case"eth_signTypedData_v4":case"eth_signTypedData":return this._eth_signTypedData_v4(n);case"cbWallet_arbitrary":return this._cbwallet_arbitrary(n);case"wallet_addEthereumChain":return this._wallet_addEthereumChain(n);case"wallet_switchEthereumChain":return this._wallet_switchEthereumChain(n);case"wallet_watchAsset":return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(t,this.jsonRpcUrl).catch(s=>{var c;throw(s.code===me.standardErrorCodes.rpc.methodNotFound||s.code===me.standardErrorCodes.rpc.methodNotSupported)&&((c=this.diagnostic)===null||c===void 0||c.log(un.EVENTS.METHOD_NOT_IMPLEMENTED,{method:t.method,sessionIdHash:this._relay?ti.Session.hash(this._relay.session.id):void 0})),s})}_handleAsynchronousFilterMethods(t){const{method:r}=t,n=t.params||[];switch(r){case"eth_newFilter":return this._eth_newFilter(n);case"eth_newBlockFilter":return this._eth_newBlockFilter();case"eth_newPendingTransactionFilter":return this._eth_newPendingTransactionFilter();case"eth_getFilterChanges":return this._eth_getFilterChanges(n);case"eth_getFilterLogs":return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(t){switch(t.method){case"eth_subscribe":case"eth_unsubscribe":return this._subscriptionManager.handleRequest(t)}}_isKnownAddress(t){try{const r=(0,de.ensureAddressString)(t);return this._addresses.map(i=>(0,de.ensureAddressString)(i)).includes(r)}catch{}return!1}_ensureKnownAddress(t){var r;if(!this._isKnownAddress(t))throw(r=this.diagnostic)===null||r===void 0||r.log(un.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(t){const r=t.from?(0,de.ensureAddressString)(t.from):this.selectedAddress;if(!r)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(r);const n=t.to?(0,de.ensureAddressString)(t.to):null,i=t.value!=null?(0,de.ensureBN)(t.value):new Ay.default(0),s=t.data?(0,de.ensureBuffer)(t.data):Buffer.alloc(0),c=t.nonce!=null?(0,de.ensureIntNumber)(t.nonce):null,a=t.gasPrice!=null?(0,de.ensureBN)(t.gasPrice):null,d=t.maxFeePerGas!=null?(0,de.ensureBN)(t.maxFeePerGas):null,p=t.maxPriorityFeePerGas!=null?(0,de.ensureBN)(t.maxPriorityFeePerGas):null,g=t.gas!=null?(0,de.ensureBN)(t.gas):null,y=t.chainId?(0,de.ensureIntNumber)(t.chainId):this.getChainId();return{fromAddress:r,toAddress:n,weiValue:i,data:s,nonce:c,gasPriceInWei:a,maxFeePerGas:d,maxPriorityFeePerGas:p,gasLimit:g,chainId:y}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw me.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw me.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(t,r,n,i){this._ensureKnownAddress(r);try{const c=await(await this.initializeRelay()).signEthereumMessage(t,r,n,i).promise;if((0,lt.isErrorResponse)(c))throw new Error(c.errorMessage);return{jsonrpc:"2.0",id:0,result:c.result}}catch(s){throw typeof s.message=="string"&&s.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied message signature"):s}}async _ethereumAddressFromSignedMessage(t,r,n){const s=await(await this.initializeRelay()).ethereumAddressFromSignedMessage(t,r,n).promise;if((0,lt.isErrorResponse)(s))throw new Error(s.errorMessage);return{jsonrpc:"2.0",id:0,result:s.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,de.hexStringFromIntNumber)(this.getChainId())}getChainId(){const t=this._storage.getItem(dc);if(!t)return(0,de.ensureIntNumber)(this._chainIdFromOpts);const r=parseInt(t,10);return(0,de.ensureIntNumber)(r)}async _eth_requestAccounts(){var t;if((t=this.diagnostic)===null||t===void 0||t.log(un.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?ti.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let r;try{if(r=await(await this.initializeRelay()).requestEthereumAccounts().promise,(0,lt.isErrorResponse)(r))throw new Error(r.errorMessage)}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied account authorization"):n}if(!r.result)throw new Error("accounts received is empty");return this._setAddresses(r.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(t){this._requireAuthorization();const r=(0,de.ensureAddressString)(t[0]),n=(0,de.ensureBuffer)(t[1]);return this._signEthereumMessage(n,r,!1)}_eth_ecRecover(t){const r=(0,de.ensureBuffer)(t[0]),n=(0,de.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(r,n,!1)}_personal_sign(t){this._requireAuthorization();const r=(0,de.ensureBuffer)(t[0]),n=(0,de.ensureAddressString)(t[1]);return this._signEthereumMessage(r,n,!0)}_personal_ecRecover(t){const r=(0,de.ensureBuffer)(t[0]),n=(0,de.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(r,n,!0)}async _eth_signTransaction(t){this._requireAuthorization();const r=this._prepareTransactionParams(t[0]||{});try{const i=await(await this.initializeRelay()).signEthereumTransaction(r).promise;if((0,lt.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:"2.0",id:0,result:i.result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_sendRawTransaction(t){const r=(0,de.ensureBuffer)(t[0]),i=await(await this.initializeRelay()).submitEthereumTransaction(r,this.getChainId()).promise;if((0,lt.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:"2.0",id:0,result:i.result}}async _eth_sendTransaction(t){this._requireAuthorization();const r=this._prepareTransactionParams(t[0]||{});try{const i=await(await this.initializeRelay()).signAndSubmitEthereumTransaction(r).promise;if((0,lt.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:"2.0",id:0,result:i.result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?me.standardErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_signTypedData_v1(t){this._requireAuthorization();const r=(0,de.ensureParsedJSONObject)(t[0]),n=(0,de.ensureAddressString)(t[1]);this._ensureKnownAddress(n);const i=Ds.default.hashForSignTypedDataLegacy({data:r}),s=JSON.stringify(r,null,2);return this._signEthereumMessage(i,n,!1,s)}async _eth_signTypedData_v3(t){this._requireAuthorization();const r=(0,de.ensureAddressString)(t[0]),n=(0,de.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(r);const i=Ds.default.hashForSignTypedData_v3({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,r,!1,s)}async _eth_signTypedData_v4(t){this._requireAuthorization();const r=(0,de.ensureAddressString)(t[0]),n=(0,de.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(r);const i=Ds.default.hashForSignTypedData_v4({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,r,!1,s)}async _cbwallet_arbitrary(t){const r=t[0],n=t[1];if(typeof n!="string")throw new Error("parameter must be a string");if(typeof r!="object"||r===null)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(r,n)}}async _wallet_addEthereumChain(t){var r,n,i,s;const c=t[0];if(((r=c.rpcUrls)===null||r===void 0?void 0:r.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!c.chainName||c.chainName.trim()==="")throw me.standardErrors.rpc.invalidParams("chainName is a required field");if(!c.nativeCurrency)throw me.standardErrors.rpc.invalidParams("nativeCurrency is a required field");const a=parseInt(c.chainId,16);return await this.addEthereumChain(a,(n=c.rpcUrls)!==null&&n!==void 0?n:[],(i=c.blockExplorerUrls)!==null&&i!==void 0?i:[],c.chainName,(s=c.iconUrls)!==null&&s!==void 0?s:[],c.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(t){const r=t[0];return await this.switchEthereumChain(parseInt(r.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(t){const r=Array.isArray(t)?t[0]:t;if(!r.type)throw me.standardErrors.rpc.invalidParams("Type is required");if((r==null?void 0:r.type)!=="ERC20")throw me.standardErrors.rpc.invalidParams(`Asset of type '${r.type}' is not supported`);if(!(r!=null&&r.options))throw me.standardErrors.rpc.invalidParams("Options are required");if(!(r!=null&&r.options.address))throw me.standardErrors.rpc.invalidParams("Address is required");const n=this.getChainId(),{address:i,symbol:s,image:c,decimals:a}=r.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(r.type,i,s,a,c,n)}}_eth_uninstallFilter(t){const r=(0,de.ensureHexString)(t[0]);return this._filterPolyfill.uninstallFilter(r)}async _eth_newFilter(t){const r=t[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(r)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(t){const r=(0,de.ensureHexString)(t[0]);return this._filterPolyfill.getFilterChanges(r)}_eth_getFilterLogs(t){const r=(0,de.ensureHexString)(t[0]);return this._filterPolyfill.getFilterLogs(r)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(t=>(t.setAccountsCallback((r,n)=>this._setAddresses(r,n)),t.setChainCallback((r,n)=>{this.updateProviderInfo(n,parseInt(r,10))}),t.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=t,t))}}Vr.CoinbaseWalletProvider=Py;var ns={};Object.defineProperty(ns,"__esModule",{value:!0});ns.RelayEventManager=void 0;const Oy=X;class $y{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const t=this._nextRequestId,r=(0,Oy.prepend0x)(t.toString(16));return this.callbacks.get(r)&&this.callbacks.delete(r),t}}ns.RelayEventManager=$y;Object.defineProperty(dn,"__esModule",{value:!0});dn.CoinbaseWalletSDK=void 0;const Fy=ci,Dy=li,pc=X,jy=gi,Uy=Vr,Hy=_n,Wy=Tn,Vy=ns,qy=xn,zy=En,pu=Yr;class is{constructor(t){var r,n,i;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;const s=t.linkAPIUrl||Dy.LINK_API_URL;typeof t.overrideIsMetaMask>"u"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=t.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(r=t.overrideIsCoinbaseWallet)!==null&&r!==void 0?r:!0,this._overrideIsCoinbaseBrowser=(n=t.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this._diagnosticLogger=t.diagnosticLogger,this._reloadOnDisconnect=(i=t.reloadOnDisconnect)!==null&&i!==void 0?i:!0;const c=new URL(s),a=`${c.protocol}//${c.host}`;if(this._storage=new jy.ScopedLocalStorage(`-walletlink:${a}`),this._storage.setItem("version",is.VERSION),this.walletExtension||this.coinbaseBrowser)return;this._relayEventManager=new Vy.RelayEventManager;const d=(0,pc.isMobileWeb)(),p=t.uiConstructor||(y=>d?new Wy.MobileRelayUI(y):new qy.WalletLinkRelayUI(y)),g={linkAPIUrl:s,version:pu.LIB_VERSION,darkMode:!!t.darkMode,headlessMode:!!t.headlessMode,uiConstructor:p,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect,enableMobileWalletLink:t.enableMobileWalletLink};this._relay=d?new Hy.MobileRelay(g):new zy.WalletLinkRelay(g),this.setAppInfo(t.appName,t.appLogoUrl),!t.headlessMode&&this._relay.attachUI()}makeWeb3Provider(t="",r=1){const n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(t,r),this._reloadOnDisconnect===!1&&typeof n.disableReloadOnDisconnect=="function"&&n.disableReloadOnDisconnect(),n;const i=this.coinbaseBrowser;if(i)return i;const s=this._relay;if(!s||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return t||s.setConnectDisabled(!0),new Uy.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(s),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:t,chainId:r,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(t,r){var n;this._appName=t||"DApp",this._appLogoUrl=r||(0,pc.getFavicon)();const i=this.walletExtension;i?this.isCipherProvider(i)||i.setAppInfo(this._appName,this._appLogoUrl):(n=this._relay)===null||n===void 0||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var t;const r=this===null||this===void 0?void 0:this.walletExtension;r?r.close():(t=this._relay)===null||t===void 0||t.resetAndReload()}getQrUrl(){var t,r;return(r=(t=this._relay)===null||t===void 0?void 0:t.getQRCodeUrl())!==null&&r!==void 0?r:null}getCoinbaseWalletLogo(t,r=240){return(0,Fy.walletLogo)(t,r)}get walletExtension(){var t;return(t=window.coinbaseWalletExtension)!==null&&t!==void 0?t:window.walletLinkExtension}get coinbaseBrowser(){var t,r;try{const n=(t=window.ethereum)!==null&&t!==void 0?t:(r=window.top)===null||r===void 0?void 0:r.ethereum;return n&&"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch{return}}isCipherProvider(t){return typeof t.isCipher=="boolean"&&t.isCipher}}dn.CoinbaseWalletSDK=is;is.VERSION=pu.LIB_VERSION;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletProvider=e.CoinbaseWalletSDK=void 0;const t=dn,r=Vr;var n=dn;Object.defineProperty(e,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return n.CoinbaseWalletSDK}});var i=Vr;Object.defineProperty(e,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return i.CoinbaseWalletProvider}}),e.default=t.CoinbaseWalletSDK,typeof window<"u"&&(window.CoinbaseWalletSDK=t.CoinbaseWalletSDK,window.CoinbaseWalletProvider=r.CoinbaseWalletProvider,window.WalletLink=t.CoinbaseWalletSDK,window.WalletLinkProvider=r.CoinbaseWalletProvider)})(gc);const Gy=mu(gc),ab=Object.freeze(Object.defineProperty({__proto__:null,default:Gy},Symbol.toStringTag,{value:"Module"}));export{ab as i}; -//# sourceMappingURL=index-Cd-8U-EF.js.map diff --git a/apps/web/public/assets/index-Cl-fQh5M.js b/apps/web/public/assets/index-Cl-fQh5M.js deleted file mode 100644 index 7e95fee0..00000000 --- a/apps/web/public/assets/index-Cl-fQh5M.js +++ /dev/null @@ -1,1552 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.es-C4tnSl6V.js","./index.es-83zPAjH-.js","./index-Cd-8U-EF.js","./hooks.module-D456YPrV.js","./index-CtWpA4AQ.js"])))=>i.map(i=>d[i]); -var tne=Object.defineProperty;var nne=(e,t,n)=>t in e?tne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ve=(e,t,n)=>nne(e,typeof t!="symbol"?t+"":t,n);(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5b7b4dd3-b968-4d91-97c8-598542d7d4f7",e._sentryDebugIdIdentifier="sentry-dbid-5b7b4dd3-b968-4d91-97c8-598542d7d4f7")}catch{}})();function A8(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var rne=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};rne.SENTRY_RELEASE={id:"8fb2513ed4e1a4f45217ceb2351f06406ec83a83"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var We=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ns(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var XL={exports:{}},a_={},JL={exports:{}},ht={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ig=Symbol.for("react.element"),one=Symbol.for("react.portal"),ane=Symbol.for("react.fragment"),ine=Symbol.for("react.strict_mode"),sne=Symbol.for("react.profiler"),cne=Symbol.for("react.provider"),lne=Symbol.for("react.context"),une=Symbol.for("react.forward_ref"),dne=Symbol.for("react.suspense"),fne=Symbol.for("react.memo"),hne=Symbol.for("react.lazy"),y7=Symbol.iterator;function mne(e){return e===null||typeof e!="object"?null:(e=y7&&e[y7]||e["@@iterator"],typeof e=="function"?e:null)}var ZL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eU=Object.assign,tU={};function Kh(e,t,n){this.props=e,this.context=t,this.refs=tU,this.updater=n||ZL}Kh.prototype.isReactComponent={};Kh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Kh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nU(){}nU.prototype=Kh.prototype;function D8(e,t,n){this.props=e,this.context=t,this.refs=tU,this.updater=n||ZL}var k8=D8.prototype=new nU;k8.constructor=D8;eU(k8,Kh.prototype);k8.isPureReactComponent=!0;var b7=Array.isArray,rU=Object.prototype.hasOwnProperty,j8={current:null},oU={key:!0,ref:!0,__self:!0,__source:!0};function aU(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)rU.call(t,r)&&!oU.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,J=N[X];if(0>>1;Xo(Z,L))aeo(ne,Z)?(N[X]=ne,N[ae]=L,X=ae):(N[X]=Z,N[G]=L,X=G);else if(aeo(ne,L))N[X]=ne,N[ae]=L,X=ae;else break e}}return M}function o(N,M){var L=N.sortIndex-M.sortIndex;return L!==0?L:N.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var c=[],l=[],u=1,d=null,f=3,h=!1,m=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(N){for(var M=n(l);M!==null;){if(M.callback===null)r(l);else if(M.startTime<=N)r(l),M.sortIndex=M.expirationTime,t(c,M);else break;M=n(l)}}function _(N){if(p=!1,w(N),!m)if(n(c)!==null)m=!0,O(C);else{var M=n(l);M!==null&&I(_,M.startTime-N)}}function C(N,M){m=!1,p&&(p=!1,v(T),T=-1),h=!0;var L=f;try{for(w(M),d=n(c);d!==null&&(!(d.expirationTime>M)||N&&!R());){var X=d.callback;if(typeof X=="function"){d.callback=null,f=d.priorityLevel;var J=X(d.expirationTime<=M);M=e.unstable_now(),typeof J=="function"?d.callback=J:d===n(c)&&r(c),w(M)}else r(c);d=n(c)}if(d!==null)var U=!0;else{var G=n(l);G!==null&&I(_,G.startTime-M),U=!1}return U}finally{d=null,f=L,h=!1}}var x=!1,E=null,T=-1,k=5,D=-1;function R(){return!(e.unstable_now()-DN||125X?(N.sortIndex=L,t(l,N),n(c)===null&&N===n(l)&&(p?(v(T),T=-1):p=!0,I(_,L-X))):(N.sortIndex=J,t(c,N),m||h||(m=!0,O(C))),N},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(N){var M=f;return function(){var L=f;f=M;try{return N.apply(this,arguments)}finally{f=L}}}})(dU);uU.exports=dU;var Sne=uU.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Tne=S,Vo=Sne;function ue(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),FT=Object.prototype.hasOwnProperty,Ane=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w7={},E7={};function Dne(e){return FT.call(E7,e)?!0:FT.call(w7,e)?!1:Ane.test(e)?E7[e]=!0:(w7[e]=!0,!1)}function kne(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function jne(e,t,n,r){if(t===null||typeof t>"u"||kne(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function so(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yr[e]=new so(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yr[t]=new so(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yr[e]=new so(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yr[e]=new so(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yr[e]=new so(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yr[e]=new so(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yr[e]=new so(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yr[e]=new so(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yr[e]=new so(e,5,!1,e.toLowerCase(),null,!1,!1)});var I8=/[\-:]([a-z])/g;function O8(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(I8,O8);yr[t]=new so(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(I8,O8);yr[t]=new so(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(I8,O8);yr[t]=new so(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yr[e]=new so(e,1,!1,e.toLowerCase(),null,!1,!1)});yr.xlinkHref=new so("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yr[e]=new so(e,1,!1,e.toLowerCase(),null,!0,!0)});function R8(e,t,n,r){var o=yr.hasOwnProperty(t)?yr[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==a[s]){var c=` -`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{G6=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wp(e):""}function Pne(e){switch(e.tag){case 5:return Wp(e.type);case 16:return Wp("Lazy");case 13:return Wp("Suspense");case 19:return Wp("SuspenseList");case 0:case 2:case 15:return e=V6(e.type,!1),e;case 11:return e=V6(e.type.render,!1),e;case 1:return e=V6(e.type,!0),e;default:return""}}function $T(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bf:return"Fragment";case yf:return"Portal";case MT:return"Profiler";case N8:return"StrictMode";case LT:return"Suspense";case UT:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mU:return(e.displayName||"Context")+".Consumer";case hU:return(e._context.displayName||"Context")+".Provider";case B8:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F8:return t=e.displayName||null,t!==null?t:$T(e.type)||"Memo";case bc:t=e._payload,e=e._init;try{return $T(e(t))}catch{}}return null}function Ine(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $T(t);case 8:return t===N8?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gU(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function One(e){var t=gU(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ob(e){e._valueTracker||(e._valueTracker=One(e))}function yU(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gU(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function U1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zT(e,t){var n=t.checked;return cn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function x7(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jc(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bU(e,t){t=t.checked,t!=null&&R8(e,"checked",t,!1)}function HT(e,t){bU(e,t);var n=Jc(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?qT(e,t.type,n):t.hasOwnProperty("defaultValue")&&qT(e,t.type,Jc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function C7(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function qT(e,t,n){(t!=="number"||U1(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gp=Array.isArray;function zf(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Rb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function P0(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var s0={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Rne=["Webkit","ms","Moz","O"];Object.keys(s0).forEach(function(e){Rne.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),s0[t]=s0[e]})});function _U(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||s0.hasOwnProperty(e)&&s0[e]?(""+t).trim():t+"px"}function xU(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=_U(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Nne=cn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function VT(e,t){if(t){if(Nne[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ue(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ue(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ue(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ue(62))}}function KT(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var YT=null;function M8(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var QT=null,Hf=null,qf=null;function A7(e){if(e=Ng(e)){if(typeof QT!="function")throw Error(ue(280));var t=e.stateNode;t&&(t=u_(t),QT(e.stateNode,e.type,t))}}function CU(e){Hf?qf?qf.push(e):qf=[e]:Hf=e}function SU(){if(Hf){var e=Hf,t=qf;if(qf=Hf=null,A7(e),t)for(e=0;e>>=0,e===0?32:31-(Gne(e)/Vne|0)|0}var Nb=64,Bb=4194304;function Vp(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function q1(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Vp(s):(a&=i,a!==0&&(r=Vp(a)))}else i=n&~o,i!==0?r=Vp(i):a!==0&&(r=Vp(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Og(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xa(t),e[t]=n}function Xne(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=l0),B7=" ",F7=!1;function WU(e,t){switch(e){case"keyup":return Sre.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GU(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vf=!1;function Are(e,t){switch(e){case"compositionend":return GU(t);case"keypress":return t.which!==32?null:(F7=!0,B7);case"textInput":return e=t.data,e===B7&&F7?null:e;default:return null}}function Dre(e,t){if(vf)return e==="compositionend"||!G8&&WU(e,t)?(e=HU(),Xv=H8=Oc=null,vf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$7(n)}}function QU(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?QU(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function XU(){for(var e=window,t=U1();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=U1(e.document)}return t}function V8(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Fre(e){var t=XU(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&QU(n.ownerDocument.documentElement,n)){if(r!==null&&V8(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=z7(n,a);var i=z7(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,wf=null,nA=null,d0=null,rA=!1;function H7(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rA||wf==null||wf!==U1(r)||(r=wf,"selectionStart"in r&&V8(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),d0&&F0(d0,r)||(d0=r,r=V1(nA,"onSelect"),0xf||(e.current=lA[xf],lA[xf]=null,xf--)}function Kt(e,t){xf++,lA[xf]=e.current,e.current=t}var Zc={},Fr=wl(Zc),go=wl(!1),Ou=Zc;function lh(e,t){var n=e.type.contextTypes;if(!n)return Zc;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yo(e){return e=e.childContextTypes,e!=null}function Y1(){Qt(go),Qt(Fr)}function Q7(e,t,n){if(Fr.current!==Zc)throw Error(ue(168));Kt(Fr,t),Kt(go,n)}function i$(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ue(108,Ine(e)||"Unknown",o));return cn({},n,r)}function Q1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zc,Ou=Fr.current,Kt(Fr,e),Kt(go,go.current),!0}function X7(e,t,n){var r=e.stateNode;if(!r)throw Error(ue(169));n?(e=i$(e,t,Ou),r.__reactInternalMemoizedMergedChildContext=e,Qt(go),Qt(Fr),Kt(Fr,e)):Qt(go),Kt(go,n)}var ns=null,d_=!1,sS=!1;function s$(e){ns===null?ns=[e]:ns.push(e)}function Yre(e){d_=!0,s$(e)}function El(){if(!sS&&ns!==null){sS=!0;var e=0,t=Ot;try{var n=ns;for(Ot=1;e>=i,o-=i,os=1<<32-Xa(t)+o|n<T?(k=E,E=null):k=E.sibling;var D=f(v,E,w[T],_);if(D===null){E===null&&(E=k);break}e&&E&&D.alternate===null&&t(v,E),g=a(D,g,T),x===null?C=D:x.sibling=D,x=D,E=k}if(T===w.length)return n(v,E),Zt&&Zl(v,T),C;if(E===null){for(;TT?(k=E,E=null):k=E.sibling;var R=f(v,E,D.value,_);if(R===null){E===null&&(E=k);break}e&&E&&R.alternate===null&&t(v,E),g=a(R,g,T),x===null?C=R:x.sibling=R,x=R,E=k}if(D.done)return n(v,E),Zt&&Zl(v,T),C;if(E===null){for(;!D.done;T++,D=w.next())D=d(v,D.value,_),D!==null&&(g=a(D,g,T),x===null?C=D:x.sibling=D,x=D);return Zt&&Zl(v,T),C}for(E=r(v,E);!D.done;T++,D=w.next())D=h(E,v,T,D.value,_),D!==null&&(e&&D.alternate!==null&&E.delete(D.key===null?T:D.key),g=a(D,g,T),x===null?C=D:x.sibling=D,x=D);return e&&E.forEach(function(F){return t(v,F)}),Zt&&Zl(v,T),C}function b(v,g,w,_){if(typeof w=="object"&&w!==null&&w.type===bf&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ib:e:{for(var C=w.key,x=g;x!==null;){if(x.key===C){if(C=w.type,C===bf){if(x.tag===7){n(v,x.sibling),g=o(x,w.props.children),g.return=v,v=g;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===bc&&eI(C)===x.type){n(v,x.sibling),g=o(x,w.props),g.ref=ip(v,x,w),g.return=v,v=g;break e}n(v,x);break}else t(v,x);x=x.sibling}w.type===bf?(g=Cu(w.props.children,v.mode,_,w.key),g.return=v,v=g):(_=a1(w.type,w.key,w.props,null,v.mode,_),_.ref=ip(v,g,w),_.return=v,v=_)}return i(v);case yf:e:{for(x=w.key;g!==null;){if(g.key===x)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(v,g.sibling),g=o(g,w.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=pS(w,v.mode,_),g.return=v,v=g}return i(v);case bc:return x=w._init,b(v,g,x(w._payload),_)}if(Gp(w))return m(v,g,w,_);if(tp(w))return p(v,g,w,_);Hb(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(v,g.sibling),g=o(g,w),g.return=v,v=g):(n(v,g),g=mS(w,v.mode,_),g.return=v,v=g),i(v)):n(v,g)}return b}var dh=d$(!0),f$=d$(!1),Z1=wl(null),ew=null,Tf=null,X8=null;function J8(){X8=Tf=ew=null}function Z8(e){var t=Z1.current;Qt(Z1),e._currentValue=t}function fA(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Gf(e,t){ew=e,X8=Tf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mo=!0),e.firstContext=null)}function va(e){var t=e._currentValue;if(X8!==e)if(e={context:e,memoizedValue:t,next:null},Tf===null){if(ew===null)throw Error(ue(308));Tf=e,ew.dependencies={lanes:0,firstContext:e}}else Tf=Tf.next=e;return t}var fu=null;function ek(e){fu===null?fu=[e]:fu.push(e)}function h$(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ek(t)):(n.next=o.next,o.next=n),t.interleaved=n,ws(e,r)}function ws(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var vc=!1;function tk(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function m$(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ss(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $c(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Et&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ws(e,n)}return o=r.interleaved,o===null?(t.next=t,ek(r)):(t.next=o.next,o.next=t),r.interleaved=t,ws(e,n)}function Zv(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,U8(e,n)}}function tI(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tw(e,t,n,r){var o=e.updateQueue;vc=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,l=c.next;c.next=null,i===null?a=l:i.next=l,i=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==i&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=o.baseState;i=0,u=l=c=null,s=a;do{var f=s.lane,h=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,p=s;switch(f=t,h=n,p.tag){case 1:if(m=p.payload,typeof m=="function"){d=m.call(h,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=p.payload,f=typeof m=="function"?m.call(h,d,f):m,f==null)break e;d=cn({},d,f);break e;case 2:vc=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=h,c=d):u=u.next=h,i|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(c=d),o.baseState=c,o.firstBaseUpdate=l,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);Bu|=i,e.lanes=i,e.memoizedState=d}}function nI(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=lS.transition;lS.transition={};try{e(!1),t()}finally{Ot=n,lS.transition=r}}function P$(){return wa().memoizedState}function Zre(e,t,n){var r=Hc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},I$(e))O$(t,n);else if(n=h$(e,t,n,r),n!==null){var o=Yr();Ja(n,e,r,o),R$(n,t,r)}}function eoe(e,t,n){var r=Hc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(I$(e))O$(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,ri(s,i)){var c=t.interleaved;c===null?(o.next=o,ek(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=h$(e,t,o,r),n!==null&&(o=Yr(),Ja(n,e,r,o),R$(n,t,r))}}function I$(e){var t=e.alternate;return e===sn||t!==null&&t===sn}function O$(e,t){f0=rw=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function R$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,U8(e,n)}}var ow={readContext:va,useCallback:Sr,useContext:Sr,useEffect:Sr,useImperativeHandle:Sr,useInsertionEffect:Sr,useLayoutEffect:Sr,useMemo:Sr,useReducer:Sr,useRef:Sr,useState:Sr,useDebugValue:Sr,useDeferredValue:Sr,useTransition:Sr,useMutableSource:Sr,useSyncExternalStore:Sr,useId:Sr,unstable_isNewReconciler:!1},toe={readContext:va,useCallback:function(e,t){return wi().memoizedState=[e,t===void 0?null:t],e},useContext:va,useEffect:oI,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,t1(4194308,4,T$.bind(null,t,e),n)},useLayoutEffect:function(e,t){return t1(4194308,4,e,t)},useInsertionEffect:function(e,t){return t1(4,2,e,t)},useMemo:function(e,t){var n=wi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Zre.bind(null,sn,e),[r.memoizedState,e]},useRef:function(e){var t=wi();return e={current:e},t.memoizedState=e},useState:rI,useDebugValue:lk,useDeferredValue:function(e){return wi().memoizedState=e},useTransition:function(){var e=rI(!1),t=e[0];return e=Jre.bind(null,e[1]),wi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sn,o=wi();if(Zt){if(n===void 0)throw Error(ue(407));n=n()}else{if(n=t(),tr===null)throw Error(ue(349));Nu&30||b$(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,oI(w$.bind(null,r,a,e),[e]),r.flags|=2048,W0(9,v$.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=wi(),t=tr.identifierPrefix;if(Zt){var n=as,r=os;n=(r&~(1<<32-Xa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=H0++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[xi]=t,e[U0]=r,q$(e,t,!1,!1),t.stateNode=e;e:{switch(i=KT(n,r),n){case"dialog":Yt("cancel",e),Yt("close",e),o=r;break;case"iframe":case"object":case"embed":Yt("load",e),o=r;break;case"video":case"audio":for(o=0;omh&&(t.flags|=128,r=!0,sp(a,!1),t.lanes=4194304)}else{if(!r)if(e=nw(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sp(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Zt)return Tr(t),null}else 2*En()-a.renderingStartTime>mh&&n!==1073741824&&(t.flags|=128,r=!0,sp(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=En(),t.sibling=null,n=rn.current,Kt(rn,r?n&1|2:n&1),t):(Tr(t),null);case 22:case 23:return pk(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Oo&1073741824&&(Tr(t),t.subtreeFlags&6&&(t.flags|=8192)):Tr(t),null;case 24:return null;case 25:return null}throw Error(ue(156,t.tag))}function loe(e,t){switch(Y8(t),t.tag){case 1:return yo(t.type)&&Y1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fh(),Qt(go),Qt(Fr),ok(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return rk(t),null;case 13:if(Qt(rn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ue(340));uh()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qt(rn),null;case 4:return fh(),null;case 10:return Z8(t.type._context),null;case 22:case 23:return pk(),null;case 24:return null;default:return null}}var Wb=!1,kr=!1,uoe=typeof WeakSet=="function"?WeakSet:Set,xe=null;function Af(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fn(e,t,r)}else n.current=null}function EA(e,t,n){try{n()}catch(r){fn(e,t,r)}}var pI=!1;function doe(e,t){if(oA=W1,e=XU(),V8(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,c=-1,l=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(s=i+o),d!==a||r!==0&&d.nodeType!==3||(c=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++l===o&&(s=i),f===a&&++u===r&&(c=i),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(aA={focusedElem:e,selectionRange:n},W1=!1,xe=t;xe!==null;)if(t=xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xe=e;else for(;xe!==null;){t=xe;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var p=m.memoizedProps,b=m.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?p:Ua(t.type,p),b);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(_){fn(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,xe=e;break}xe=t.return}return m=pI,pI=!1,m}function h0(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&EA(t,n,a)}o=o.next}while(o!==r)}}function m_(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _A(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function V$(e){var t=e.alternate;t!==null&&(e.alternate=null,V$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xi],delete t[U0],delete t[cA],delete t[Vre],delete t[Kre])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function K$(e){return e.tag===5||e.tag===3||e.tag===4}function gI(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||K$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xA(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=K1));else if(r!==4&&(e=e.child,e!==null))for(xA(e,t,n),e=e.sibling;e!==null;)xA(e,t,n),e=e.sibling}function CA(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(CA(e,t,n),e=e.sibling;e!==null;)CA(e,t,n),e=e.sibling}var sr=null,$a=!1;function ac(e,t,n){for(n=n.child;n!==null;)Y$(e,t,n),n=n.sibling}function Y$(e,t,n){if(Ii&&typeof Ii.onCommitFiberUnmount=="function")try{Ii.onCommitFiberUnmount(i_,n)}catch{}switch(n.tag){case 5:kr||Af(n,t);case 6:var r=sr,o=$a;sr=null,ac(e,t,n),sr=r,$a=o,sr!==null&&($a?(e=sr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):sr.removeChild(n.stateNode));break;case 18:sr!==null&&($a?(e=sr,n=n.stateNode,e.nodeType===8?iS(e.parentNode,n):e.nodeType===1&&iS(e,n),N0(e)):iS(sr,n.stateNode));break;case 4:r=sr,o=$a,sr=n.stateNode.containerInfo,$a=!0,ac(e,t,n),sr=r,$a=o;break;case 0:case 11:case 14:case 15:if(!kr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&EA(n,t,i),o=o.next}while(o!==r)}ac(e,t,n);break;case 1:if(!kr&&(Af(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fn(n,t,s)}ac(e,t,n);break;case 21:ac(e,t,n);break;case 22:n.mode&1?(kr=(r=kr)||n.memoizedState!==null,ac(e,t,n),kr=r):ac(e,t,n);break;default:ac(e,t,n)}}function yI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new uoe),t.forEach(function(r){var o=woe.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Oa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=En()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hoe(r/1960))-r,10e?16:e,Rc===null)var r=!1;else{if(e=Rc,Rc=null,sw=0,Et&6)throw Error(ue(331));var o=Et;for(Et|=4,xe=e.current;xe!==null;){var a=xe,i=a.child;if(xe.flags&16){var s=a.deletions;if(s!==null){for(var c=0;cEn()-hk?xu(e,0):fk|=n),bo(e,t)}function rz(e,t){t===0&&(e.mode&1?(t=Bb,Bb<<=1,!(Bb&130023424)&&(Bb=4194304)):t=1);var n=Yr();e=ws(e,t),e!==null&&(Og(e,t,n),bo(e,n))}function voe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rz(e,n)}function woe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(t),rz(e,n)}var oz;oz=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||go.current)mo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return mo=!1,soe(e,t,n);mo=!!(e.flags&131072)}else mo=!1,Zt&&t.flags&1048576&&c$(t,J1,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;n1(e,t),e=t.pendingProps;var o=lh(t,Fr.current);Gf(t,n),o=ik(null,t,r,e,o,n);var a=sk();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,yo(r)?(a=!0,Q1(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,tk(t),o.updater=h_,t.stateNode=o,o._reactInternals=t,mA(t,r,e,n),t=yA(null,t,r,!0,a,n)):(t.tag=0,Zt&&a&&K8(t),Wr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(n1(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=_oe(r),e=Ua(r,e),o){case 0:t=gA(null,t,r,e,n);break e;case 1:t=fI(null,t,r,e,n);break e;case 11:t=uI(null,t,r,e,n);break e;case 14:t=dI(null,t,r,Ua(r.type,e),n);break e}throw Error(ue(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ua(r,o),gA(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ua(r,o),fI(e,t,r,o,n);case 3:e:{if($$(t),e===null)throw Error(ue(387));r=t.pendingProps,a=t.memoizedState,o=a.element,m$(e,t),tw(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=hh(Error(ue(423)),t),t=hI(e,t,r,n,o);break e}else if(r!==o){o=hh(Error(ue(424)),t),t=hI(e,t,r,n,o);break e}else for($o=Uc(t.stateNode.containerInfo.firstChild),Ho=t,Zt=!0,Ha=null,n=f$(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uh(),r===o){t=Es(e,t,n);break e}Wr(e,t,r,n)}t=t.child}return t;case 5:return p$(t),e===null&&dA(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,iA(r,o)?i=null:a!==null&&iA(r,a)&&(t.flags|=32),U$(e,t),Wr(e,t,i,n),t.child;case 6:return e===null&&dA(t),null;case 13:return z$(e,t,n);case 4:return nk(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dh(t,null,r,n):Wr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ua(r,o),uI(e,t,r,o,n);case 7:return Wr(e,t,t.pendingProps,n),t.child;case 8:return Wr(e,t,t.pendingProps.children,n),t.child;case 12:return Wr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Kt(Z1,r._currentValue),r._currentValue=i,a!==null)if(ri(a.value,i)){if(a.children===o.children&&!go.current){t=Es(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=ss(-1,n&-n),c.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),fA(a.return,n,t),s.lanes|=n;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(ue(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),fA(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Wr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Gf(t,n),o=va(o),r=r(o),t.flags|=1,Wr(e,t,r,n),t.child;case 14:return r=t.type,o=Ua(r,t.pendingProps),o=Ua(r.type,o),dI(e,t,r,o,n);case 15:return M$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ua(r,o),n1(e,t),t.tag=1,yo(r)?(e=!0,Q1(t)):e=!1,Gf(t,n),N$(t,r,o),mA(t,r,o,n),yA(null,t,r,!0,e,n);case 19:return H$(e,t,n);case 22:return L$(e,t,n)}throw Error(ue(156,t.tag))};function az(e,t){return IU(e,t)}function Eoe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ma(e,t,n,r){return new Eoe(e,t,n,r)}function yk(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _oe(e){if(typeof e=="function")return yk(e)?1:0;if(e!=null){if(e=e.$$typeof,e===B8)return 11;if(e===F8)return 14}return 2}function qc(e,t){var n=e.alternate;return n===null?(n=ma(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function a1(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")yk(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case bf:return Cu(n.children,o,a,t);case N8:i=8,o|=8;break;case MT:return e=ma(12,n,t,o|2),e.elementType=MT,e.lanes=a,e;case LT:return e=ma(13,n,t,o),e.elementType=LT,e.lanes=a,e;case UT:return e=ma(19,n,t,o),e.elementType=UT,e.lanes=a,e;case pU:return g_(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hU:i=10;break e;case mU:i=9;break e;case B8:i=11;break e;case F8:i=14;break e;case bc:i=16,r=null;break e}throw Error(ue(130,e==null?e:typeof e,""))}return t=ma(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Cu(e,t,n,r){return e=ma(7,e,r,t),e.lanes=n,e}function g_(e,t,n,r){return e=ma(22,e,r,t),e.elementType=pU,e.lanes=n,e.stateNode={isHidden:!1},e}function mS(e,t,n){return e=ma(6,e,null,t),e.lanes=n,e}function pS(e,t,n){return t=ma(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xoe(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Y6(0),this.expirationTimes=Y6(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Y6(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function bk(e,t,n,r,o,a,i,s,c){return e=new xoe(e,t,n,s,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ma(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},tk(a),e}function Coe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lz)}catch(e){console.error(e)}}lz(),lU.exports=Qo;var Fs=lU.exports;const Yp=cd(Fs),koe=A8({__proto__:null,default:Yp},[Fs]);var uz,SI=Fs;uz=BT.createRoot=SI.createRoot,BT.hydrateRoot=SI.hydrateRoot;/** - * @remix-run/router v1.18.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Mu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Poe(){return Math.random().toString(36).substr(2,8)}function AI(e,t){return{usr:e.state,key:e.key,idx:t}}function V0(e,t,n,r){return n===void 0&&(n=null),nn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ms(t):t,{state:n,key:t&&t.key||r||Poe()})}function Lu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ms(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ioe(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s=Tn.Pop,c=null,l=u();l==null&&(l=0,i.replaceState(nn({},i.state,{idx:l}),""));function u(){return(i.state||{idx:null}).idx}function d(){s=Tn.Pop;let b=u(),v=b==null?null:b-l;l=b,c&&c({action:s,location:p.location,delta:v})}function f(b,v){s=Tn.Push;let g=V0(p.location,b,v);n&&n(g,b),l=u()+1;let w=AI(g,l),_=p.createHref(g);try{i.pushState(w,"",_)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(_)}a&&c&&c({action:s,location:p.location,delta:1})}function h(b,v){s=Tn.Replace;let g=V0(p.location,b,v);n&&n(g,b),l=u();let w=AI(g,l),_=p.createHref(g);i.replaceState(w,"",_),a&&c&&c({action:s,location:p.location,delta:0})}function m(b){let v=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof b=="string"?b:Lu(b);return g=g.replace(/ $/,"%20"),lt(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let p={get action(){return s},get location(){return e(o,i)},listen(b){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(TI,d),c=b,()=>{o.removeEventListener(TI,d),c=null}},createHref(b){return t(o,b)},createURL:m,encodeLocation(b){let v=m(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(b){return i.go(b)}};return p}var Vt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Vt||(Vt={}));const Ooe=new Set(["lazy","caseSensitive","path","id","index","children"]);function Roe(e){return e.index===!0}function K0(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,a)=>{let i=[...n,String(a)],s=typeof o.id=="string"?o.id:i.join("-");if(lt(o.index!==!0||!o.children,"Cannot specify children on an index route"),lt(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Roe(o)){let c=nn({},o,t(o),{id:s});return r[s]=c,c}else{let c=nn({},o,t(o),{id:s,children:void 0});return r[s]=c,o.children&&(c.children=K0(o.children,t,i,r)),c}})}function iu(e,t,n){return n===void 0&&(n="/"),i1(e,t,n,!1)}function i1(e,t,n,r){let o=typeof t=="string"?Ms(t):t,a=Xh(o.pathname||"/",n);if(a==null)return null;let i=dz(e);Boe(i);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(lt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let l=cs([r,c.relativePath]),u=n.concat(c);a.children&&a.children.length>0&&(lt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),dz(a.children,t,u,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:Hoe(l,a.index),routesMeta:u})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let c of fz(a.path))o(a,i,c)}),t}function fz(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=fz(r.join("/")),s=[];return s.push(...i.map(c=>c===""?a:[a,c].join("/"))),o&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function Boe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:qoe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Foe=/^:[\w-]+$/,Moe=3,Loe=2,Uoe=1,$oe=10,zoe=-2,DI=e=>e==="*";function Hoe(e,t){let n=e.split("/"),r=n.length;return n.some(DI)&&(r+=zoe),t&&(r+=Loe),n.filter(o=>!DI(o)).reduce((o,a)=>o+(Foe.test(a)?Moe:a===""?Uoe:$oe),r)}function qoe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Woe(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s{let{paramName:f,isOptional:h}=u;if(f==="*"){let p=s[d]||"";i=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?l[f]=void 0:l[f]=(m||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:i,pattern:e}}function Goe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Mu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Voe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Xh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Koe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ms(e):e;return{pathname:n?n.startsWith("/")?n:Yoe(n,t):t,search:Xoe(r),hash:Joe(o)}}function Yoe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function gS(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function hz(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _k(e,t){let n=hz(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xk(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ms(e):(o=nn({},e),lt(!o.pathname||!o.pathname.includes("?"),gS("?","pathname","search",o)),lt(!o.pathname||!o.pathname.includes("#"),gS("#","pathname","hash",o)),lt(!o.search||!o.search.includes("#"),gS("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let c=Koe(o,s),l=i&&i!=="/"&&i.endsWith("/"),u=(a||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}const cs=e=>e.join("/").replace(/\/\/+/g,"/"),Qoe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Xoe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Joe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ck{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function E_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mz=["post","put","patch","delete"],Zoe=new Set(mz),eae=["get",...mz],tae=new Set(eae),nae=new Set([301,302,303,307,308]),rae=new Set([307,308]),yS={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oae={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},lp={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Sk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,aae=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),pz="remix-router-transitions";function iae(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;lt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let H=e.detectErrorBoundary;o=V=>({hasErrorBoundary:H(V)})}else o=aae;let a={},i=K0(e.routes,o,void 0,a),s,c=e.basename||"/",l=e.unstable_dataStrategy||dae,u=e.unstable_patchRoutesOnMiss,d=nn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,h=new Set,m=null,p=null,b=null,v=e.hydrationData!=null,g=iu(i,e.history.location,c),w=null;if(g==null&&!u){let H=qr(404,{pathname:e.history.location.pathname}),{matches:V,route:oe}=LI(i);g=V,w={[oe.id]:H}}g&&u&&!e.hydrationData&&Hl(g,i,e.history.location.pathname).active&&(g=null);let _;if(!g)_=!1,g=[];else if(g.some(H=>H.route.lazy))_=!1;else if(!g.some(H=>H.route.loader))_=!0;else if(d.v7_partialHydration){let H=e.hydrationData?e.hydrationData.loaderData:null,V=e.hydrationData?e.hydrationData.errors:null,oe=se=>se.route.loader?typeof se.route.loader=="function"&&se.route.loader.hydrate===!0?!1:H&&H[se.route.id]!==void 0||V&&V[se.route.id]!==void 0:!0;if(V){let se=g.findIndex(we=>V[we.route.id]!==void 0);_=g.slice(0,se+1).every(oe)}else _=g.every(oe)}else _=e.hydrationData!=null;let C,x={historyAction:e.history.action,location:e.history.location,matches:g,initialized:_,navigation:yS,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||w,fetchers:new Map,blockers:new Map},E=Tn.Pop,T=!1,k,D=!1,R=new Map,F=null,B=!1,j=!1,P=[],O=[],I=new Map,N=0,M=-1,L=new Map,X=new Set,J=new Map,U=new Map,G=new Set,Z=new Map,ae=new Map,ne=new Map,ie=!1;function te(){if(f=e.history.listen(H=>{let{action:V,location:oe,delta:se}=H;if(ie){ie=!1;return}Mu(ae.size===0||se!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let we=fi({currentLocation:x.location,nextLocation:oe,historyAction:V});if(we&&se!=null){ie=!0,e.history.go(se*-1),Zs(we,{state:"blocked",location:oe,proceed(){Zs(we,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(se)},reset(){let je=new Map(x.blockers);je.set(we,lp),z({blockers:je})}});return}return ke(V,oe)}),n){Cae(t,R);let H=()=>Sae(t,R);t.addEventListener("pagehide",H),F=()=>t.removeEventListener("pagehide",H)}return x.initialized||ke(Tn.Pop,x.location,{initialHydration:!0}),C}function ee(){f&&f(),F&&F(),h.clear(),k&&k.abort(),x.fetchers.forEach((H,V)=>Oe(V)),x.blockers.forEach((H,V)=>$d(V))}function re(H){return h.add(H),()=>h.delete(H)}function z(H,V){V===void 0&&(V={}),x=nn({},x,H);let oe=[],se=[];d.v7_fetcherPersist&&x.fetchers.forEach((we,je)=>{we.state==="idle"&&(G.has(je)?se.push(je):oe.push(je))}),[...h].forEach(we=>we(x,{deletedFetchers:se,unstable_viewTransitionOpts:V.viewTransitionOpts,unstable_flushSync:V.flushSync===!0})),d.v7_fetcherPersist&&(oe.forEach(we=>x.fetchers.delete(we)),se.forEach(we=>Oe(we)))}function fe(H,V,oe){var se,we;let{flushSync:je}=oe===void 0?{}:oe,ze=x.actionData!=null&&x.navigation.formMethod!=null&&za(x.navigation.formMethod)&&x.navigation.state==="loading"&&((se=H.state)==null?void 0:se._isRedirect)!==!0,be;V.actionData?Object.keys(V.actionData).length>0?be=V.actionData:be=null:ze?be=x.actionData:be=null;let Ze=V.loaderData?FI(x.loaderData,V.loaderData,V.matches||[],V.errors):x.loaderData,Re=x.blockers;Re.size>0&&(Re=new Map(Re),Re.forEach((Tt,Pt)=>Re.set(Pt,lp)));let Le=T===!0||x.navigation.formMethod!=null&&za(x.navigation.formMethod)&&((we=H.state)==null?void 0:we._isRedirect)!==!0;s&&(i=s,s=void 0),B||E===Tn.Pop||(E===Tn.Push?e.history.push(H,H.state):E===Tn.Replace&&e.history.replace(H,H.state));let Dt;if(E===Tn.Pop){let Tt=R.get(x.location.pathname);Tt&&Tt.has(H.pathname)?Dt={currentLocation:x.location,nextLocation:H}:R.has(H.pathname)&&(Dt={currentLocation:H,nextLocation:x.location})}else if(D){let Tt=R.get(x.location.pathname);Tt?Tt.add(H.pathname):(Tt=new Set([H.pathname]),R.set(x.location.pathname,Tt)),Dt={currentLocation:x.location,nextLocation:H}}z(nn({},V,{actionData:be,loaderData:Ze,historyAction:E,location:H,initialized:!0,navigation:yS,revalidation:"idle",restoreScrollPosition:zd(H,V.matches||x.matches),preventScrollReset:Le,blockers:Re}),{viewTransitionOpts:Dt,flushSync:je===!0}),E=Tn.Pop,T=!1,D=!1,B=!1,j=!1,P=[],O=[]}async function ve(H,V){if(typeof H=="number"){e.history.go(H);return}let oe=kA(x.location,x.matches,c,d.v7_prependBasename,H,d.v7_relativeSplatPath,V==null?void 0:V.fromRouteId,V==null?void 0:V.relative),{path:se,submission:we,error:je}=jI(d.v7_normalizeFormMethod,!1,oe,V),ze=x.location,be=V0(x.location,se,V&&V.state);be=nn({},be,e.history.encodeLocation(be));let Ze=V&&V.replace!=null?V.replace:void 0,Re=Tn.Push;Ze===!0?Re=Tn.Replace:Ze===!1||we!=null&&za(we.formMethod)&&we.formAction===x.location.pathname+x.location.search&&(Re=Tn.Replace);let Le=V&&"preventScrollReset"in V?V.preventScrollReset===!0:void 0,Dt=(V&&V.unstable_flushSync)===!0,Tt=fi({currentLocation:ze,nextLocation:be,historyAction:Re});if(Tt){Zs(Tt,{state:"blocked",location:be,proceed(){Zs(Tt,{state:"proceeding",proceed:void 0,reset:void 0,location:be}),ve(H,V)},reset(){let Pt=new Map(x.blockers);Pt.set(Tt,lp),z({blockers:Pt})}});return}return await ke(Re,be,{submission:we,pendingError:je,preventScrollReset:Le,replace:V&&V.replace,enableViewTransition:V&&V.unstable_viewTransition,flushSync:Dt})}function Ue(){if(pe(),z({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){ke(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}ke(E||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation})}}async function ke(H,V,oe){k&&k.abort(),k=null,E=H,B=(oe&&oe.startUninterruptedRevalidation)===!0,Zm(x.location,x.matches),T=(oe&&oe.preventScrollReset)===!0,D=(oe&&oe.enableViewTransition)===!0;let se=s||i,we=oe&&oe.overrideNavigation,je=iu(se,V,c),ze=(oe&&oe.flushSync)===!0,be=Hl(je,se,V.pathname);if(be.active&&be.matches&&(je=be.matches),!je){let{error:Ct,notFoundMatches:Nn,route:ln}=Ia(V.pathname);fe(V,{matches:Nn,loaderData:{},errors:{[ln.id]:Ct}},{flushSync:ze});return}if(x.initialized&&!j&&yae(x.location,V)&&!(oe&&oe.submission&&za(oe.submission.formMethod))){fe(V,{matches:je},{flushSync:ze});return}k=new AbortController;let Ze=Vd(e.history,V,k.signal,oe&&oe.submission),Re;if(oe&&oe.pendingError)Re=[kf(je).route.id,{type:Vt.error,error:oe.pendingError}];else if(oe&&oe.submission&&za(oe.submission.formMethod)){let Ct=await Qe(Ze,V,oe.submission,je,be.active,{replace:oe.replace,flushSync:ze});if(Ct.shortCircuited)return;if(Ct.pendingActionResult){let[Nn,ln]=Ct.pendingActionResult;if(Ro(ln)&&E_(ln.error)&&ln.error.status===404){k=null,fe(V,{matches:Ct.matches,loaderData:{},errors:{[Nn]:ln.error}});return}}je=Ct.matches||je,Re=Ct.pendingActionResult,we=bS(V,oe.submission),ze=!1,be.active=!1,Ze=Vd(e.history,Ze.url,Ze.signal)}let{shortCircuited:Le,matches:Dt,loaderData:Tt,errors:Pt}=await Te(Ze,V,je,be.active,we,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,oe&&oe.initialHydration===!0,ze,Re);Le||(k=null,fe(V,nn({matches:Dt||je},MI(Re),{loaderData:Tt,errors:Pt})))}async function Qe(H,V,oe,se,we,je){je===void 0&&(je={}),pe();let ze=_ae(V,oe);if(z({navigation:ze},{flushSync:je.flushSync===!0}),we){let Re=await nc(se,V.pathname,H.signal);if(Re.type==="aborted")return{shortCircuited:!0};if(Re.type==="error"){let{boundaryId:Le,error:Dt}=ta(V.pathname,Re);return{matches:Re.partialMatches,pendingActionResult:[Le,{type:Vt.error,error:Dt}]}}else if(Re.matches)se=Re.matches;else{let{notFoundMatches:Le,error:Dt,route:Tt}=Ia(V.pathname);return{matches:Le,pendingActionResult:[Tt.id,{type:Vt.error,error:Dt}]}}}let be,Ze=Qp(se,V);if(!Ze.route.action&&!Ze.route.lazy)be={type:Vt.error,error:qr(405,{method:H.method,pathname:V.pathname,routeId:Ze.route.id})};else if(be=(await Q("action",H,[Ze],se))[0],H.signal.aborted)return{shortCircuited:!0};if(pu(be)){let Re;return je&&je.replace!=null?Re=je.replace:Re=RI(be.response.headers.get("Location"),new URL(H.url),c)===x.location.pathname+x.location.search,await W(H,be,{submission:oe,replace:Re}),{shortCircuited:!0}}if(mu(be))throw qr(400,{type:"defer-action"});if(Ro(be)){let Re=kf(se,Ze.route.id);return(je&&je.replace)!==!0&&(E=Tn.Push),{matches:se,pendingActionResult:[Re.route.id,be]}}return{matches:se,pendingActionResult:[Ze.route.id,be]}}async function Te(H,V,oe,se,we,je,ze,be,Ze,Re,Le){let Dt=we||bS(V,je),Tt=je||ze||zI(Dt),Pt=!B&&(!d.v7_partialHydration||!Ze);if(se){if(Pt){let Ut=Ee(Le);z(nn({navigation:Dt},Ut!==void 0?{actionData:Ut}:{}),{flushSync:Re})}let tt=await nc(oe,V.pathname,H.signal);if(tt.type==="aborted")return{shortCircuited:!0};if(tt.type==="error"){let{boundaryId:Ut,error:$r}=ta(V.pathname,tt);return{matches:tt.partialMatches,loaderData:{},errors:{[Ut]:$r}}}else if(tt.matches)oe=tt.matches;else{let{error:Ut,notFoundMatches:$r,route:$t}=Ia(V.pathname);return{matches:$r,loaderData:{},errors:{[$t.id]:Ut}}}}let Ct=s||i,[Nn,ln]=PI(e.history,x,oe,Tt,V,d.v7_partialHydration&&Ze===!0,d.v7_skipActionErrorRevalidation,j,P,O,G,J,X,Ct,c,Le);if(na(tt=>!(oe&&oe.some(Ut=>Ut.route.id===tt))||Nn&&Nn.some(Ut=>Ut.route.id===tt)),M=++N,Nn.length===0&&ln.length===0){let tt=Lt();return fe(V,nn({matches:oe,loaderData:{},errors:Le&&Ro(Le[1])?{[Le[0]]:Le[1].error}:null},MI(Le),tt?{fetchers:new Map(x.fetchers)}:{}),{flushSync:Re}),{shortCircuited:!0}}if(Pt){let tt={};if(!se){tt.navigation=Dt;let Ut=Ee(Le);Ut!==void 0&&(tt.actionData=Ut)}ln.length>0&&(tt.fetchers=he(ln)),z(tt,{flushSync:Re})}ln.forEach(tt=>{I.has(tt.key)&&at(tt.key),tt.controller&&I.set(tt.key,tt.controller)});let ql=()=>ln.forEach(tt=>at(tt.key));k&&k.signal.addEventListener("abort",ql);let{loaderResults:hi,fetcherResults:mi}=await ce(x.matches,oe,Nn,ln,H);if(H.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",ql),ln.forEach(tt=>I.delete(tt.key));let rc=UI([...hi,...mi]);if(rc){if(rc.idx>=Nn.length){let tt=ln[rc.idx-Nn.length].key;X.add(tt)}return await W(H,rc.result,{replace:be}),{shortCircuited:!0}}let{loaderData:oc,errors:ra}=BI(x,oe,Nn,hi,Le,ln,mi,Z);Z.forEach((tt,Ut)=>{tt.subscribe($r=>{($r||tt.done)&&Z.delete(Ut)})}),d.v7_partialHydration&&Ze&&x.errors&&Object.entries(x.errors).filter(tt=>{let[Ut]=tt;return!Nn.some($r=>$r.route.id===Ut)}).forEach(tt=>{let[Ut,$r]=tt;ra=Object.assign(ra||{},{[Ut]:$r})});let Hd=Lt(),qd=Js(M),Wd=Hd||qd||ln.length>0;return nn({matches:oe,loaderData:oc,errors:ra},Wd?{fetchers:new Map(x.fetchers)}:{})}function Ee(H){if(H&&!Ro(H[1]))return{[H[0]]:H[1].data};if(x.actionData)return Object.keys(x.actionData).length===0?null:x.actionData}function he(H){return H.forEach(V=>{let oe=x.fetchers.get(V.key),se=up(void 0,oe?oe.data:void 0);x.fetchers.set(V.key,se)}),new Map(x.fetchers)}function Me(H,V,oe,se){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");I.has(H)&&at(H);let we=(se&&se.unstable_flushSync)===!0,je=s||i,ze=kA(x.location,x.matches,c,d.v7_prependBasename,oe,d.v7_relativeSplatPath,V,se==null?void 0:se.relative),be=iu(je,ze,c),Ze=Hl(be,je,ze);if(Ze.active&&Ze.matches&&(be=Ze.matches),!be){Ie(H,V,qr(404,{pathname:ze}),{flushSync:we});return}let{path:Re,submission:Le,error:Dt}=jI(d.v7_normalizeFormMethod,!0,ze,se);if(Dt){Ie(H,V,Dt,{flushSync:we});return}let Tt=Qp(be,Re);if(T=(se&&se.preventScrollReset)===!0,Le&&za(Le.formMethod)){ge(H,V,Re,Tt,be,Ze.active,we,Le);return}J.set(H,{routeId:V,path:Re}),Y(H,V,Re,Tt,be,Ze.active,we,Le)}async function ge(H,V,oe,se,we,je,ze,be){pe(),J.delete(H);function Ze($t){if(!$t.route.action&&!$t.route.lazy){let Ao=qr(405,{method:be.formMethod,pathname:oe,routeId:V});return Ie(H,V,Ao,{flushSync:ze}),!0}return!1}if(!je&&Ze(se))return;let Re=x.fetchers.get(H);De(H,xae(be,Re),{flushSync:ze});let Le=new AbortController,Dt=Vd(e.history,oe,Le.signal,be);if(je){let $t=await nc(we,oe,Dt.signal);if($t.type==="aborted")return;if($t.type==="error"){let{error:Ao}=ta(oe,$t);Ie(H,V,Ao,{flushSync:ze});return}else if($t.matches){if(we=$t.matches,se=Qp(we,oe),Ze(se))return}else{Ie(H,V,qr(404,{pathname:oe}),{flushSync:ze});return}}I.set(H,Le);let Tt=N,Ct=(await Q("action",Dt,[se],we))[0];if(Dt.signal.aborted){I.get(H)===Le&&I.delete(H);return}if(d.v7_fetcherPersist&&G.has(H)){if(pu(Ct)||Ro(Ct)){De(H,pc(void 0));return}}else{if(pu(Ct))if(I.delete(H),M>Tt){De(H,pc(void 0));return}else return X.add(H),De(H,up(be)),W(Dt,Ct,{fetcherSubmission:be});if(Ro(Ct)){Ie(H,V,Ct.error);return}}if(mu(Ct))throw qr(400,{type:"defer-action"});let Nn=x.navigation.location||x.location,ln=Vd(e.history,Nn,Le.signal),ql=s||i,hi=x.navigation.state!=="idle"?iu(ql,x.navigation.location,c):x.matches;lt(hi,"Didn't find any matches after fetcher action");let mi=++N;L.set(H,mi);let rc=up(be,Ct.data);x.fetchers.set(H,rc);let[oc,ra]=PI(e.history,x,hi,be,Nn,!1,d.v7_skipActionErrorRevalidation,j,P,O,G,J,X,ql,c,[se.route.id,Ct]);ra.filter($t=>$t.key!==H).forEach($t=>{let Ao=$t.key,g7=x.fetchers.get(Ao),ene=up(void 0,g7?g7.data:void 0);x.fetchers.set(Ao,ene),I.has(Ao)&&at(Ao),$t.controller&&I.set(Ao,$t.controller)}),z({fetchers:new Map(x.fetchers)});let Hd=()=>ra.forEach($t=>at($t.key));Le.signal.addEventListener("abort",Hd);let{loaderResults:qd,fetcherResults:Wd}=await ce(x.matches,hi,oc,ra,ln);if(Le.signal.aborted)return;Le.signal.removeEventListener("abort",Hd),L.delete(H),I.delete(H),ra.forEach($t=>I.delete($t.key));let tt=UI([...qd,...Wd]);if(tt){if(tt.idx>=oc.length){let $t=ra[tt.idx-oc.length].key;X.add($t)}return W(ln,tt.result)}let{loaderData:Ut,errors:$r}=BI(x,x.matches,oc,qd,void 0,ra,Wd,Z);if(x.fetchers.has(H)){let $t=pc(Ct.data);x.fetchers.set(H,$t)}Js(mi),x.navigation.state==="loading"&&mi>M?(lt(E,"Expected pending action"),k&&k.abort(),fe(x.navigation.location,{matches:hi,loaderData:Ut,errors:$r,fetchers:new Map(x.fetchers)})):(z({errors:$r,loaderData:FI(x.loaderData,Ut,hi,$r),fetchers:new Map(x.fetchers)}),j=!1)}async function Y(H,V,oe,se,we,je,ze,be){let Ze=x.fetchers.get(H);De(H,up(be,Ze?Ze.data:void 0),{flushSync:ze});let Re=new AbortController,Le=Vd(e.history,oe,Re.signal);if(je){let Ct=await nc(we,oe,Le.signal);if(Ct.type==="aborted")return;if(Ct.type==="error"){let{error:Nn}=ta(oe,Ct);Ie(H,V,Nn,{flushSync:ze});return}else if(Ct.matches)we=Ct.matches,se=Qp(we,oe);else{Ie(H,V,qr(404,{pathname:oe}),{flushSync:ze});return}}I.set(H,Re);let Dt=N,Pt=(await Q("loader",Le,[se],we))[0];if(mu(Pt)&&(Pt=await wz(Pt,Le.signal,!0)||Pt),I.get(H)===Re&&I.delete(H),!Le.signal.aborted){if(G.has(H)){De(H,pc(void 0));return}if(pu(Pt))if(M>Dt){De(H,pc(void 0));return}else{X.add(H),await W(Le,Pt);return}if(Ro(Pt)){Ie(H,V,Pt.error);return}lt(!mu(Pt),"Unhandled fetcher deferred data"),De(H,pc(Pt.data))}}async function W(H,V,oe){let{submission:se,fetcherSubmission:we,replace:je}=oe===void 0?{}:oe;V.response.headers.has("X-Remix-Revalidate")&&(j=!0);let ze=V.response.headers.get("Location");lt(ze,"Expected a Location header on the redirect Response"),ze=RI(ze,new URL(H.url),c);let be=V0(x.location,ze,{_isRedirect:!0});if(n){let Pt=!1;if(V.response.headers.has("X-Remix-Reload-Document"))Pt=!0;else if(Sk.test(ze)){const Ct=e.history.createURL(ze);Pt=Ct.origin!==t.location.origin||Xh(Ct.pathname,c)==null}if(Pt){je?t.location.replace(ze):t.location.assign(ze);return}}k=null;let Ze=je===!0?Tn.Replace:Tn.Push,{formMethod:Re,formAction:Le,formEncType:Dt}=x.navigation;!se&&!we&&Re&&Le&&Dt&&(se=zI(x.navigation));let Tt=se||we;if(rae.has(V.response.status)&&Tt&&za(Tt.formMethod))await ke(Ze,be,{submission:nn({},Tt,{formAction:ze}),preventScrollReset:T});else{let Pt=bS(be,se);await ke(Ze,be,{overrideNavigation:Pt,fetcherSubmission:we,preventScrollReset:T})}}async function Q(H,V,oe,se){try{let we=await fae(l,H,V,oe,se,a,o);return await Promise.all(we.map((je,ze)=>{if(vae(je)){let be=je.result;return{type:Vt.redirect,response:pae(be,V,oe[ze].route.id,se,c,d.v7_relativeSplatPath)}}return mae(je)}))}catch(we){return oe.map(()=>({type:Vt.error,error:we}))}}async function ce(H,V,oe,se,we){let[je,...ze]=await Promise.all([oe.length?Q("loader",we,oe,V):[],...se.map(be=>{if(be.matches&&be.match&&be.controller){let Ze=Vd(e.history,be.path,be.controller.signal);return Q("loader",Ze,[be.match],be.matches).then(Re=>Re[0])}else return Promise.resolve({type:Vt.error,error:qr(404,{pathname:be.path})})})]);return await Promise.all([$I(H,oe,je,je.map(()=>we.signal),!1,x.loaderData),$I(H,se.map(be=>be.match),ze,se.map(be=>be.controller?be.controller.signal:null),!0)]),{loaderResults:je,fetcherResults:ze}}function pe(){j=!0,P.push(...na()),J.forEach((H,V)=>{I.has(V)&&(O.push(V),at(V))})}function De(H,V,oe){oe===void 0&&(oe={}),x.fetchers.set(H,V),z({fetchers:new Map(x.fetchers)},{flushSync:(oe&&oe.flushSync)===!0})}function Ie(H,V,oe,se){se===void 0&&(se={});let we=kf(x.matches,V);Oe(H),z({errors:{[we.route.id]:oe},fetchers:new Map(x.fetchers)},{flushSync:(se&&se.flushSync)===!0})}function Je(H){return d.v7_fetcherPersist&&(U.set(H,(U.get(H)||0)+1),G.has(H)&&G.delete(H)),x.fetchers.get(H)||oae}function Oe(H){let V=x.fetchers.get(H);I.has(H)&&!(V&&V.state==="loading"&&L.has(H))&&at(H),J.delete(H),L.delete(H),X.delete(H),G.delete(H),x.fetchers.delete(H)}function _e(H){if(d.v7_fetcherPersist){let V=(U.get(H)||0)-1;V<=0?(U.delete(H),G.add(H)):U.set(H,V)}else Oe(H);z({fetchers:new Map(x.fetchers)})}function at(H){let V=I.get(H);lt(V,"Expected fetch controller: "+H),V.abort(),I.delete(H)}function Ft(H){for(let V of H){let oe=Je(V),se=pc(oe.data);x.fetchers.set(V,se)}}function Lt(){let H=[],V=!1;for(let oe of X){let se=x.fetchers.get(oe);lt(se,"Expected fetcher: "+oe),se.state==="loading"&&(X.delete(oe),H.push(oe),V=!0)}return Ft(H),V}function Js(H){let V=[];for(let[oe,se]of L)if(se0}function Jm(H,V){let oe=x.blockers.get(H)||lp;return ae.get(H)!==V&&ae.set(H,V),oe}function $d(H){x.blockers.delete(H),ae.delete(H)}function Zs(H,V){let oe=x.blockers.get(H)||lp;lt(oe.state==="unblocked"&&V.state==="blocked"||oe.state==="blocked"&&V.state==="blocked"||oe.state==="blocked"&&V.state==="proceeding"||oe.state==="blocked"&&V.state==="unblocked"||oe.state==="proceeding"&&V.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+V.state);let se=new Map(x.blockers);se.set(H,V),z({blockers:se})}function fi(H){let{currentLocation:V,nextLocation:oe,historyAction:se}=H;if(ae.size===0)return;ae.size>1&&Mu(!1,"A router only supports one blocker at a time");let we=Array.from(ae.entries()),[je,ze]=we[we.length-1],be=x.blockers.get(je);if(!(be&&be.state==="proceeding")&&ze({currentLocation:V,nextLocation:oe,historyAction:se}))return je}function Ia(H){let V=qr(404,{pathname:H}),oe=s||i,{matches:se,route:we}=LI(oe);return na(),{notFoundMatches:se,route:we,error:V}}function ta(H,V){return{boundaryId:kf(V.partialMatches).route.id,error:qr(400,{type:"route-discovery",pathname:H,message:V.error!=null&&"message"in V.error?V.error:String(V.error)})}}function na(H){let V=[];return Z.forEach((oe,se)=>{(!H||H(se))&&(oe.cancel(),V.push(se),Z.delete(se))}),V}function ec(H,V,oe){if(m=H,b=V,p=oe||null,!v&&x.navigation===yS){v=!0;let se=zd(x.location,x.matches);se!=null&&z({restoreScrollPosition:se})}return()=>{m=null,b=null,p=null}}function tc(H,V){return p&&p(H,V.map(se=>Noe(se,x.loaderData)))||H.key}function Zm(H,V){if(m&&b){let oe=tc(H,V);m[oe]=b()}}function zd(H,V){if(m){let oe=tc(H,V),se=m[oe];if(typeof se=="number")return se}return null}function Hl(H,V,oe){if(u)if(H){let se=H[H.length-1].route;if(se.path&&(se.path==="*"||se.path.endsWith("/*")))return{active:!0,matches:i1(V,oe,c,!0)}}else return{active:!0,matches:i1(V,oe,c,!0)||[]};return{active:!1,matches:null}}async function nc(H,V,oe){let se=H,we=se.length>0?se[se.length-1].route:null;for(;;){let je=s==null,ze=s||i;try{await uae(u,V,se,ze,a,o,ne,oe)}catch(Le){return{type:"error",error:Le,partialMatches:se}}finally{je&&(i=[...i])}if(oe.aborted)return{type:"aborted"};let be=iu(ze,V,c),Ze=!1;if(be){let Le=be[be.length-1].route;if(Le.index)return{type:"success",matches:be};if(Le.path&&Le.path.length>0)if(Le.path==="*")Ze=!0;else return{type:"success",matches:be}}let Re=i1(ze,V,c,!0);if(!Re||se.map(Le=>Le.route.id).join("-")===Re.map(Le=>Le.route.id).join("-"))return{type:"success",matches:Ze?be:null};if(se=Re,we=se[se.length-1].route,we.path==="*")return{type:"success",matches:se}}}function ep(H){a={},s=K0(H,o,void 0,a)}function H6(H,V){let oe=s==null;yz(H,V,s||i,a,o),oe&&(i=[...i],z({}))}return C={get basename(){return c},get future(){return d},get state(){return x},get routes(){return i},get window(){return t},initialize:te,subscribe:re,enableScrollRestoration:ec,navigate:ve,fetch:Me,revalidate:Ue,createHref:H=>e.history.createHref(H),encodeLocation:H=>e.history.encodeLocation(H),getFetcher:Je,deleteFetcher:_e,dispose:ee,getBlocker:Jm,deleteBlocker:$d,patchRoutes:H6,_internalFetchControllers:I,_internalActiveDeferreds:Z,_internalSetRoutes:ep},C}function sae(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function kA(e,t,n,r,o,a,i,s){let c,l;if(i){c=[];for(let d of t)if(c.push(d),d.route.id===i){l=d;break}}else c=t,l=t[t.length-1];let u=xk(o||".",_k(c,a),Xh(e.pathname,n)||e.pathname,s==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!Tk(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:cs([n,u.pathname])),Lu(u)}function jI(e,t,n,r){if(!r||!sae(r))return{path:n};if(r.formMethod&&!Eae(r.formMethod))return{path:n,error:qr(405,{method:r.formMethod})};let o=()=>({path:n,error:qr(400,{type:"invalid-body"})}),a=r.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),s=bz(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!za(i))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[p,b]=m;return""+h+p+"="+b+` -`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!za(i))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}lt(typeof FormData=="function","FormData is not available in this environment");let c,l;if(r.formData)c=jA(r.formData),l=r.formData;else if(r.body instanceof FormData)c=jA(r.body),l=r.body;else if(r.body instanceof URLSearchParams)c=r.body,l=NI(c);else if(r.body==null)c=new URLSearchParams,l=new FormData;else try{c=new URLSearchParams(r.body),l=NI(c)}catch{return o()}let u={formMethod:i,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(za(u.formMethod))return{path:n,submission:u};let d=Ms(n);return t&&d.search&&Tk(d.search)&&c.append("index",""),d.search="?"+c,{path:Lu(d),submission:u}}function cae(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function PI(e,t,n,r,o,a,i,s,c,l,u,d,f,h,m,p){let b=p?Ro(p[1])?p[1].error:p[1].data:void 0,v=e.createURL(t.location),g=e.createURL(o),w=p&&Ro(p[1])?p[0]:void 0,_=w?cae(n,w):n,C=p?p[1].statusCode:void 0,x=i&&C&&C>=400,E=_.filter((k,D)=>{let{route:R}=k;if(R.lazy)return!0;if(R.loader==null)return!1;if(a)return typeof R.loader!="function"||R.loader.hydrate?!0:t.loaderData[R.id]===void 0&&(!t.errors||t.errors[R.id]===void 0);if(lae(t.loaderData,t.matches[D],k)||c.some(j=>j===k.route.id))return!0;let F=t.matches[D],B=k;return II(k,nn({currentUrl:v,currentParams:F.params,nextUrl:g,nextParams:B.params},r,{actionResult:b,actionStatus:C,defaultShouldRevalidate:x?!1:s||v.pathname+v.search===g.pathname+g.search||v.search!==g.search||gz(F,B)}))}),T=[];return d.forEach((k,D)=>{if(a||!n.some(P=>P.route.id===k.routeId)||u.has(D))return;let R=iu(h,k.path,m);if(!R){T.push({key:D,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(D),B=Qp(R,k.path),j=!1;f.has(D)?j=!1:l.includes(D)?j=!0:F&&F.state!=="idle"&&F.data===void 0?j=s:j=II(B,nn({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:b,actionStatus:C,defaultShouldRevalidate:x?!1:s})),j&&T.push({key:D,routeId:k.routeId,path:k.path,matches:R,match:B,controller:new AbortController})}),[E,T]}function lae(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function gz(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function II(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function uae(e,t,n,r,o,a,i,s){let c=[t,...n.map(l=>l.route.id)].join("-");try{let l=i.get(c);l||(l=e({path:t,matches:n,patch:(u,d)=>{s.aborted||yz(u,d,r,o,a)}}),i.set(c,l)),l&&bae(l)&&await l}finally{i.delete(c)}}function yz(e,t,n,r,o){if(e){var a;let i=r[e];lt(i,"No route found to patch children into: routeId = "+e);let s=K0(t,o,[e,"patch",String(((a=i.children)==null?void 0:a.length)||"0")],r);i.children?i.children.push(...s):i.children=s}else{let i=K0(t,o,["patch",String(n.length||"0")],r);n.push(...i)}}async function OI(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];lt(o,"No route found in manifest");let a={};for(let i in r){let c=o[i]!==void 0&&i!=="hasErrorBoundary";Mu(!c,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!c&&!Ooe.has(i)&&(a[i]=r[i])}Object.assign(o,a),Object.assign(o,nn({},t(o),{lazy:void 0}))}function dae(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function fae(e,t,n,r,o,a,i,s){let c=r.reduce((d,f)=>d.add(f.route.id),new Set),l=new Set,u=await e({matches:o.map(d=>{let f=c.has(d.route.id);return nn({},d,{shouldLoad:f,resolve:m=>(l.add(d.route.id),f?hae(t,n,d,a,i,m,s):Promise.resolve({type:Vt.data,result:void 0}))})}),request:n,params:o[0].params,context:s});return o.forEach(d=>lt(l.has(d.route.id),'`match.resolve()` was not called for route id "'+d.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),u.filter((d,f)=>c.has(o[f].route.id))}async function hae(e,t,n,r,o,a,i){let s,c,l=u=>{let d,f=new Promise((p,b)=>d=b);c=()=>d(),t.signal.addEventListener("abort",c);let h=p=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:i},...p!==void 0?[p]:[]),m;return a?m=a(p=>h(p)):m=(async()=>{try{return{type:"data",result:await h()}}catch(p){return{type:"error",result:p}}})(),Promise.race([m,f])};try{let u=n.route[e];if(n.route.lazy)if(u){let d,[f]=await Promise.all([l(u).catch(h=>{d=h}),OI(n.route,o,r)]);if(d!==void 0)throw d;s=f}else if(await OI(n.route,o,r),u=n.route[e],u)s=await l(u);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw qr(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:Vt.data,result:void 0};else if(u)s=await l(u);else{let d=new URL(t.url),f=d.pathname+d.search;throw qr(404,{pathname:f})}lt(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:Vt.error,result:u}}finally{c&&t.signal.removeEventListener("abort",c)}return s}async function mae(e){let{result:t,type:n,status:r}=e;if(vz(t)){let i;try{let s=t.headers.get("Content-Type");s&&/\bapplication\/json\b/.test(s)?t.body==null?i=null:i=await t.json():i=await t.text()}catch(s){return{type:Vt.error,error:s}}return n===Vt.error?{type:Vt.error,error:new Ck(t.status,t.statusText,i),statusCode:t.status,headers:t.headers}:{type:Vt.data,data:i,statusCode:t.status,headers:t.headers}}if(n===Vt.error)return{type:Vt.error,error:t,statusCode:E_(t)?t.status:r};if(wae(t)){var o,a;return{type:Vt.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}return{type:Vt.data,data:t,statusCode:r}}function pae(e,t,n,r,o,a){let i=e.headers.get("Location");if(lt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!Sk.test(i)){let s=r.slice(0,r.findIndex(c=>c.route.id===n)+1);i=kA(new URL(t.url),s,o,!0,i,a),e.headers.set("Location",i)}return e}function RI(e,t,n){if(Sk.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Xh(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function Vd(e,t,n,r){let o=e.createURL(bz(t)).toString(),a={signal:n};if(r&&za(r.formMethod)){let{formMethod:i,formEncType:s}=r;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=jA(r.formData):a.body=r.formData}return new Request(o,a)}function jA(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function NI(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function gae(e,t,n,r,o,a){let i={},s=null,c,l=!1,u={},d=r&&Ro(r[1])?r[1].error:void 0;return n.forEach((f,h)=>{let m=t[h].route.id;if(lt(!pu(f),"Cannot handle redirect results in processLoaderData"),Ro(f)){let p=f.error;d!==void 0&&(p=d,d=void 0),s=s||{};{let b=kf(e,m);s[b.route.id]==null&&(s[b.route.id]=p)}i[m]=void 0,l||(l=!0,c=E_(f.error)?f.error.status:500),f.headers&&(u[m]=f.headers)}else mu(f)?(o.set(m,f.deferredData),i[m]=f.deferredData.data,f.statusCode!=null&&f.statusCode!==200&&!l&&(c=f.statusCode),f.headers&&(u[m]=f.headers)):(i[m]=f.data,f.statusCode&&f.statusCode!==200&&!l&&(c=f.statusCode),f.headers&&(u[m]=f.headers))}),d!==void 0&&r&&(s={[r[0]]:d},i[r[0]]=void 0),{loaderData:i,errors:s,statusCode:c||200,loaderHeaders:u}}function BI(e,t,n,r,o,a,i,s){let{loaderData:c,errors:l}=gae(t,n,r,o,s);for(let u=0;ur.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function LI(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function qr(e,t){let{pathname:n,routeId:r,method:o,type:a,message:i}=t===void 0?{}:t,s="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(s="Bad Request",a==="route-discovery"?c='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error: -`+i):o&&n&&r?c="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?c="defer() is not supported in actions":a==="invalid-body"&&(c="Unable to encode submission body")):e===403?(s="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",c='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?c="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new Ck(e||500,s,new Error(c),!0)}function UI(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(pu(n))return{result:n,idx:t}}}function bz(e){let t=typeof e=="string"?Ms(e):e;return Lu(nn({},t,{hash:""}))}function yae(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function bae(e){return typeof e=="object"&&e!=null&&"then"in e}function vae(e){return vz(e.result)&&nae.has(e.result.status)}function mu(e){return e.type===Vt.deferred}function Ro(e){return e.type===Vt.error}function pu(e){return(e&&e.type)===Vt.redirect}function wae(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function vz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Eae(e){return tae.has(e.toLowerCase())}function za(e){return Zoe.has(e.toLowerCase())}async function $I(e,t,n,r,o,a){for(let i=0;id.route.id===c.route.id),u=l!=null&&!gz(l,c)&&(a&&a[c.route.id])!==void 0;if(mu(s)&&(o||u)){let d=r[i];lt(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await wz(s,d,o).then(f=>{f&&(n[i]=f||n[i])})}}}async function wz(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Vt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Vt.error,error:o}}return{type:Vt.data,data:e.deferredData.data}}}function Tk(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Qp(e,t){let n=typeof t=="string"?Ms(t).search:t.search;if(e[e.length-1].route.index&&Tk(n||""))return e[e.length-1];let r=hz(e);return r[r.length-1]}function zI(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function bS(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function _ae(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function up(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function xae(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function pc(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Cae(e,t){try{let n=e.sessionStorage.getItem(pz);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function Sae(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(pz,JSON.stringify(n))}catch(r){Mu(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.25.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function uw(){return uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),S.useCallback(function(l,u){if(u===void 0&&(u={}),!s.current)return;if(typeof l=="number"){r.go(l);return}let d=xk(l,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:cs([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,i,a,e])}const Dae=S.createContext(null);function kae(e){let t=S.useContext(Ls).outlet;return t&&S.createElement(Dae.Provider,{value:e},t)}function jae(){let{matches:e}=S.useContext(Ls),t=e[e.length-1];return t?t.params:{}}function Cz(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=S.useContext(dd),{matches:o}=S.useContext(Ls),{pathname:a}=fd(),i=JSON.stringify(_k(o,r.v7_relativeSplatPath));return S.useMemo(()=>xk(e,JSON.parse(i),a,n==="path"),[e,i,a,n])}function Pae(e,t,n,r){Fg()||lt(!1);let{navigator:o}=S.useContext(dd),{matches:a}=S.useContext(Ls),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let l=fd(),u;u=l;let d=u.pathname||"/",f=d;if(c!=="/"){let p=c.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(p.length).join("/")}let h=iu(e,{pathname:f});return Bae(h&&h.map(p=>Object.assign({},p,{params:Object.assign({},s,p.params),pathname:cs([c,o.encodeLocation?o.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?c:cs([c,o.encodeLocation?o.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),a,n,r)}function Iae(){let e=Az(),t=E_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:o},n):null,null)}const Oae=S.createElement(Iae,null);class Rae extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(Ls.Provider,{value:this.props.routeContext},S.createElement(_z.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Nae(e){let{routeContext:t,match:n,children:r}=e,o=S.useContext(__);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Ls.Provider,{value:t},r)}function Bae(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let i=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||lt(!1),i=i.slice(0,Math.min(i.length,u+1))}let c=!1,l=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((u,d,f)=>{let h,m=!1,p=null,b=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,p=d.route.errorElement||Oae,c&&(l<0&&f===0?($ae("route-fallback"),m=!0,b=null):l===f&&(m=!0,b=d.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,f+1)),g=()=>{let w;return h?w=p:m?w=b:d.route.Component?w=S.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=u,S.createElement(Nae,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?S.createElement(Rae,{location:n.location,revalidation:n.revalidation,component:p,error:h,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var Sz=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Sz||{}),dw=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(dw||{});function Fae(e){let t=S.useContext(__);return t||lt(!1),t}function Mae(e){let t=S.useContext(Ez);return t||lt(!1),t}function Lae(e){let t=S.useContext(Ls);return t||lt(!1),t}function Tz(e){let t=Lae(),n=t.matches[t.matches.length-1];return n.route.id||lt(!1),n.route.id}function Az(){var e;let t=S.useContext(_z),n=Mae(dw.UseRouteError),r=Tz(dw.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Uae(){let{router:e}=Fae(Sz.UseNavigateStable),t=Tz(dw.UseNavigateStable),n=S.useRef(!1);return xz(()=>{n.current=!0}),S.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,uw({fromRouteId:t},a)))},[e,t])}const HI={};function $ae(e,t,n){HI[e]||(HI[e]=!0)}function zae(e){return kae(e.context)}function Hae(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Tn.Pop,navigator:a,static:i=!1,future:s}=e;Fg()&<(!1);let c=t.replace(/^\/*/,"/"),l=S.useMemo(()=>({basename:c,navigator:a,static:i,future:uw({v7_relativeSplatPath:!1},s)}),[c,s,a,i]);typeof r=="string"&&(r=Ms(r));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:m="default"}=r,p=S.useMemo(()=>{let b=Xh(u,c);return b==null?null:{location:{pathname:b,search:d,hash:f,state:h,key:m},navigationType:o}},[c,u,d,f,h,m,o]);return p==null?null:S.createElement(dd.Provider,{value:l},S.createElement(Ak.Provider,{children:n,value:p}))}new Promise(()=>{});function qae(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:S.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.25.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Y0(){return Y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Gae(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Vae(e,t){return e.button===0&&(!t||t==="_self")&&!Gae(e)}function PA(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Kae(e,t){let n=PA(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(a=>{n.append(o,a)})}),n}const Yae=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Qae="6";try{window.__reactRouterVersion=Qae}catch{}function Xae(e,t){return iae({basename:void 0,future:Y0({},void 0,{v7_prependBasename:!0}),history:joe({window:void 0}),hydrationData:Jae(),routes:e,mapRouteProperties:qae,unstable_dataStrategy:void 0,unstable_patchRoutesOnMiss:void 0,window:void 0}).initialize()}function Jae(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Y0({},t,{errors:Zae(t.errors)})),t}function Zae(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Ck(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}const eie=S.createContext({isTransitioning:!1}),tie=S.createContext(new Map),nie="startTransition",qI=sU[nie],rie="flushSync",WI=koe[rie];function oie(e){qI?qI(e):e()}function dp(e){WI?WI(e):e()}class aie{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function iie(e){let{fallbackElement:t,router:n,future:r}=e,[o,a]=S.useState(n.state),[i,s]=S.useState(),[c,l]=S.useState({isTransitioning:!1}),[u,d]=S.useState(),[f,h]=S.useState(),[m,p]=S.useState(),b=S.useRef(new Map),{v7_startTransition:v}=r||{},g=S.useCallback(T=>{v?oie(T):T()},[v]),w=S.useCallback((T,k)=>{let{deletedFetchers:D,unstable_flushSync:R,unstable_viewTransitionOpts:F}=k;D.forEach(j=>b.current.delete(j)),T.fetchers.forEach((j,P)=>{j.data!==void 0&&b.current.set(P,j.data)});let B=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!F||B){R?dp(()=>a(T)):g(()=>a(T));return}if(R){dp(()=>{f&&(u&&u.resolve(),f.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let j=n.window.document.startViewTransition(()=>{dp(()=>a(T))});j.finished.finally(()=>{dp(()=>{d(void 0),h(void 0),s(void 0),l({isTransitioning:!1})})}),dp(()=>h(j));return}f?(u&&u.resolve(),f.skipTransition(),p({state:T,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(s(T),l({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[n.window,f,u,b,g]);S.useLayoutEffect(()=>n.subscribe(w),[n,w]),S.useEffect(()=>{c.isTransitioning&&!c.flushSync&&d(new aie)},[c]),S.useEffect(()=>{if(u&&i&&n.window){let T=i,k=u.promise,D=n.window.document.startViewTransition(async()=>{g(()=>a(T)),await k});D.finished.finally(()=>{d(void 0),h(void 0),s(void 0),l({isTransitioning:!1})}),h(D)}},[g,i,u,n.window]),S.useEffect(()=>{u&&i&&o.location.key===i.location.key&&u.resolve()},[u,f,o.location,i]),S.useEffect(()=>{!c.isTransitioning&&m&&(s(m.state),l({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),p(void 0))},[c.isTransitioning,m]),S.useEffect(()=>{},[]);let _=S.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:T=>n.navigate(T),push:(T,k,D)=>n.navigate(T,{state:k,preventScrollReset:D==null?void 0:D.preventScrollReset}),replace:(T,k,D)=>n.navigate(T,{replace:!0,state:k,preventScrollReset:D==null?void 0:D.preventScrollReset})}),[n]),C=n.basename||"/",x=S.useMemo(()=>({router:n,navigator:_,static:!1,basename:C}),[n,_,C]),E=S.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return S.createElement(S.Fragment,null,S.createElement(__.Provider,{value:x},S.createElement(Ez.Provider,{value:o},S.createElement(tie.Provider,{value:b.current},S.createElement(eie.Provider,{value:c},S.createElement(Hae,{basename:C,location:o.location,navigationType:o.historyAction,navigator:_,future:E},o.initialized||n.future.v7_partialHydration?S.createElement(sie,{routes:n.routes,future:n.future,state:o}):t))))),null)}const sie=S.memo(cie);function cie(e){let{routes:t,future:n,state:r}=e;return Pae(t,void 0,r,n)}const lie=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Su=S.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:i,state:s,target:c,to:l,preventScrollReset:u,unstable_viewTransition:d}=t,f=Wae(t,Yae),{basename:h}=S.useContext(dd),m,p=!1;if(typeof l=="string"&&uie.test(l)&&(m=l,lie))try{let w=new URL(window.location.href),_=l.startsWith("//")?new URL(w.protocol+l):new URL(l),C=Xh(_.pathname,h);_.origin===w.origin&&C!=null?l=C+_.search+_.hash:p=!0}catch{}let b=Tae(l,{relative:o}),v=die(l,{replace:i,state:s,target:c,preventScrollReset:u,relative:o,unstable_viewTransition:d});function g(w){r&&r(w),w.defaultPrevented||v(w)}return S.createElement("a",Y0({},f,{href:m||b,onClick:p||a?r:g,ref:n,target:c}))});var GI;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(GI||(GI={}));var VI;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(VI||(VI={}));function die(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,c=Mg(),l=fd(),u=Cz(e,{relative:i});return S.useCallback(d=>{if(Vae(d,n)){d.preventDefault();let f=r!==void 0?r:Lu(l)===Lu(u);c(e,{replace:f,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s})}},[l,c,u,r,o,n,e,a,i,s])}function Dz(e){let t=S.useRef(PA(e)),n=S.useRef(!1),r=fd(),o=S.useMemo(()=>Kae(r.search,n.current?null:t.current),[r.search]),a=Mg(),i=S.useCallback((s,c)=>{const l=PA(typeof s=="function"?s(o):s);n.current=!0,a("?"+l,c)},[a,o]);return[o,i]}function Jh(e){return kz(e)?(e.nodeName||"").toLowerCase():"#document"}function vo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Us(e){var t;return(t=(kz(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kz(e){return e instanceof Node||e instanceof vo(e).Node}function Mt(e){return e instanceof Element||e instanceof vo(e).Element}function _o(e){return e instanceof HTMLElement||e instanceof vo(e).HTMLElement}function IA(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vo(e).ShadowRoot}function Lg(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ko(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function fie(e){return["table","td","th"].includes(Jh(e))}function x_(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Dk(e){const t=kk(),n=Mt(e)?Ko(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function hie(e){let t=_s(e);for(;_o(t)&&!el(t);){if(Dk(t))return t;if(x_(t))return null;t=_s(t)}return null}function kk(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function el(e){return["html","body","#document"].includes(Jh(e))}function Ko(e){return vo(e).getComputedStyle(e)}function C_(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _s(e){if(Jh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||IA(e)&&e.host||Us(e);return IA(t)?t.host:t}function jz(e){const t=_s(e);return el(t)?e.ownerDocument?e.ownerDocument.body:e.body:_o(t)&&Lg(t)?t:jz(t)}function Wc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=jz(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=vo(o);return a?t.concat(i,i.visualViewport||[],Lg(o)?o:[],i.frameElement&&n?Wc(i.frameElement):[]):t.concat(o,Wc(o,[],n))}function OA(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function ls(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&IA(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Pz(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Iz(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function mie(e){return gie()?!1:!KI()&&e.width===0&&e.height===0||KI()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Oz(){return/apple/i.test(navigator.vendor)}function KI(){const e=/android/i;return e.test(Pz())||e.test(Iz())}function pie(){return Pz().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function gie(){return Iz().includes("jsdom/")}function Q0(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function yie(e){return"nativeEvent"in e}function bie(e){return e.matches("html,body")}function Nc(e){return(e==null?void 0:e.ownerDocument)||document}function vS(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function su(e){return"composedPath"in e?e.composedPath()[0]:e.target}const vie="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Rz(e){return _o(e)&&e.matches(vie)}const Ai=Math.min,Bo=Math.max,fw=Math.round,Kb=Math.floor,tl=e=>({x:e,y:e}),wie={left:"right",right:"left",bottom:"top",top:"bottom"},Eie={start:"end",end:"start"};function RA(e,t,n){return Bo(e,Ai(t,n))}function Zh(e,t){return typeof e=="function"?e(t):e}function nl(e){return e.split("-")[0]}function em(e){return e.split("-")[1]}function Nz(e){return e==="x"?"y":"x"}function jk(e){return e==="y"?"height":"width"}function Uu(e){return["top","bottom"].includes(nl(e))?"y":"x"}function Pk(e){return Nz(Uu(e))}function _ie(e,t,n){n===void 0&&(n=!1);const r=em(e),o=Pk(e),a=jk(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=hw(i)),[i,hw(i)]}function xie(e){const t=hw(e);return[NA(e),t,NA(t)]}function NA(e){return e.replace(/start|end/g,t=>Eie[t])}function Cie(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function Sie(e,t,n,r){const o=em(e);let a=Cie(nl(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(NA)))),a}function hw(e){return e.replace(/left|right|bottom|top/g,t=>wie[t])}function Tie(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bz(e){return typeof e!="number"?Tie(e):{top:e,right:e,bottom:e,left:e}}function mw(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}/*! -* tabbable 6.2.0 -* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var Aie=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],BA=Aie.join(","),Fz=typeof Element>"u",X0=Fz?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pw=!Fz&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},gw=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=o===""||o==="true",i=a||n&&t&&e(t.parentNode);return i},Die=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},kie=function(t,n,r){if(gw(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(BA));return n&&X0.call(t,BA)&&o.unshift(t),o=o.filter(r),o},jie=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!gw(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),c=s.length?s:i.children,l=e(c,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{var u=X0.call(i,BA);u&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),f=!gw(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&f){var h=e(d===!0?i.children:d.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:i,candidates:h})}else a.unshift.apply(a,i.children)}}return o},Mz=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Lz=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Die(t))&&!Mz(t)?0:t.tabIndex},Pie=function(t,n){var r=Lz(t);return r<0&&n&&!Mz(t)?0:r},Iie=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Uz=function(t){return t.tagName==="INPUT"},Oie=function(t){return Uz(t)&&t.type==="hidden"},Rie=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Nie=function(t,n){for(var r=0;rsummary:first-of-type"),i=a?t.parentElement:t;if(X0.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var s=t;t;){var c=t.parentElement,l=pw(t);if(c&&!c.shadowRoot&&o(c)===!0)return YI(t);t.assignedSlot?t=t.assignedSlot:!c&&l!==t.ownerDocument?t=l.host:t=c}t=s}if(Lie(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return YI(t);return!1},$ie=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},qie=function e(t){var n=[],r=[];return t.forEach(function(o,a){var i=!!o.scopeParent,s=i?o.scopeParent:o,c=Pie(s,i),l=i?e(o.candidates):s;c===0?i?n.push.apply(n,l):n.push(s):r.push({documentOrder:a,tabIndex:c,item:o,isScope:i,content:l})}),r.sort(Iie).reduce(function(o,a){return a.isScope?o.push.apply(o,a.content):o.push(a.content),o},[]).concat(n)},$z=function(t,n){n=n||{};var r;return n.getShadowRoot?r=jie([t],n.includeContainer,{filter:QI.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Hie}):r=kie(t,n.includeContainer,QI.bind(null,n)),qie(r)};function XI(e,t,n){let{reference:r,floating:o}=e;const a=Uu(t),i=Pk(t),s=jk(i),c=nl(t),l=a==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(em(t)){case"start":h[i]-=f*(n&&l?-1:1);break;case"end":h[i]+=f*(n&&l?-1:1);break}return h}const Wie=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=XI(l,r,c),f=r,h={},m=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Zh(e,t)||{};if(l==null)return{};const d=Bz(u),f={x:n,y:r},h=Pk(o),m=jk(h),p=await i.getDimensions(l),b=h==="y",v=b?"top":"left",g=b?"bottom":"right",w=b?"clientHeight":"clientWidth",_=a.reference[m]+a.reference[h]-f[h]-a.floating[m],C=f[h]-a.reference[h],x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let E=x?x[w]:0;(!E||!await(i.isElement==null?void 0:i.isElement(x)))&&(E=s.floating[w]||a.floating[m]);const T=_/2-C/2,k=E/2-p[m]/2-1,D=Ai(d[v],k),R=Ai(d[g],k),F=D,B=E-p[m]-R,j=E/2-p[m]/2+T,P=RA(F,j,B),O=!c.arrow&&em(o)!=null&&j!==P&&a.reference[m]/2-(jj<=0)){var R,F;const j=(((R=a.flip)==null?void 0:R.index)||0)+1,P=E[j];if(P)return{data:{index:j,overflows:D},reset:{placement:P}};let O=(F=D.filter(I=>I.overflows[0]<=0).sort((I,N)=>I.overflows[1]-N.overflows[1])[0])==null?void 0:F.placement;if(!O)switch(h){case"bestFit":{var B;const I=(B=D.filter(N=>{if(x){const M=Uu(N.placement);return M===g||M==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(M=>M>0).reduce((M,L)=>M+L,0)]).sort((N,M)=>N[1]-M[1])[0])==null?void 0:B[0];I&&(O=I);break}case"initialPlacement":O=s;break}if(o!==O)return{reset:{placement:O}}}return{}}}};async function Kie(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=nl(n),s=em(n),c=Uu(n)==="y",l=["left","top"].includes(i)?-1:1,u=a&&c?-1:1,d=Zh(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof m=="number"&&(h=s==="end"?m*-1:m),c?{x:h*u,y:f*l}:{x:f*l,y:h*u}}const Yie=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await Kie(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},Qie=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:b=>{let{x:v,y:g}=b;return{x:v,y:g}}},...c}=Zh(e,t),l={x:n,y:r},u=await Ik(t,c),d=Uu(nl(o)),f=Nz(d);let h=l[f],m=l[d];if(a){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",g=h+u[b],w=h-u[v];h=RA(g,h,w)}if(i){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",g=m+u[b],w=m-u[v];m=RA(g,m,w)}const p=s.fn({...t,[f]:h,[d]:m});return{...p,data:{x:p.x-n,y:p.y-r}}}}},Xie=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=()=>{},...s}=Zh(e,t),c=await Ik(t,s),l=nl(n),u=em(n),d=Uu(n)==="y",{width:f,height:h}=r.floating;let m,p;l==="top"||l==="bottom"?(m=l,p=u===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(p=l,m=u==="end"?"top":"bottom");const b=h-c.top-c.bottom,v=f-c.left-c.right,g=Ai(h-c[m],b),w=Ai(f-c[p],v),_=!t.middlewareData.shift;let C=g,x=w;if(d?x=u||_?Ai(w,v):v:C=u||_?Ai(g,b):b,_&&!u){const T=Bo(c.left,0),k=Bo(c.right,0),D=Bo(c.top,0),R=Bo(c.bottom,0);d?x=f-2*(T!==0||k!==0?T+k:Bo(c.left,c.right)):C=h-2*(D!==0||R!==0?D+R:Bo(c.top,c.bottom))}await i({...t,availableWidth:x,availableHeight:C});const E=await o.getDimensions(a.floating);return f!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function zz(e){const t=Ko(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_o(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=fw(n)!==a||fw(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Ok(e){return Mt(e)?e:e.contextElement}function Kf(e){const t=Ok(e);if(!_o(t))return tl(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=zz(t);let i=(a?fw(n.width):n.width)/r,s=(a?fw(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Jie=tl(0);function Hz(e){const t=vo(e);return!kk()||!t.visualViewport?Jie:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zie(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==vo(e)?!1:t}function $u(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Ok(e);let i=tl(1);t&&(r?Mt(r)&&(i=Kf(r)):i=Kf(e));const s=Zie(a,n,r)?Hz(a):tl(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const f=vo(a),h=r&&Mt(r)?vo(r):r;let m=f,p=m.frameElement;for(;p&&r&&h!==m;){const b=Kf(p),v=p.getBoundingClientRect(),g=Ko(p),w=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*b.x,_=v.top+(p.clientTop+parseFloat(g.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,d*=b.y,c+=w,l+=_,m=vo(p),p=m.frameElement}}return mw({width:u,height:d,x:c,y:l})}function ese(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Us(r),s=t?x_(t.floating):!1;if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=tl(1);const u=tl(0),d=_o(r);if((d||!d&&!a)&&((Jh(r)!=="body"||Lg(i))&&(c=C_(r)),_o(r))){const f=$u(r);l=Kf(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function tse(e){return Array.from(e.getClientRects())}function qz(e){return $u(Us(e)).left+C_(e).scrollLeft}function nse(e){const t=Us(e),n=C_(e),r=e.ownerDocument.body,o=Bo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Bo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+qz(e);const s=-n.scrollTop;return Ko(r).direction==="rtl"&&(i+=Bo(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function rse(e,t){const n=vo(e),r=Us(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const l=kk();(!l||l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}function ose(e,t){const n=$u(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=_o(e)?Kf(e):tl(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,l=r*a.y;return{width:i,height:s,x:c,y:l}}function JI(e,t,n){let r;if(t==="viewport")r=rse(e,n);else if(t==="document")r=nse(Us(e));else if(Mt(t))r=ose(t,n);else{const o=Hz(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return mw(r)}function Wz(e,t){const n=_s(e);return n===t||!Mt(n)||el(n)?!1:Ko(n).position==="fixed"||Wz(n,t)}function ase(e,t){const n=t.get(e);if(n)return n;let r=Wc(e,[],!1).filter(s=>Mt(s)&&Jh(s)!=="body"),o=null;const a=Ko(e).position==="fixed";let i=a?_s(e):e;for(;Mt(i)&&!el(i);){const s=Ko(i),c=Dk(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Lg(i)&&!c&&Wz(e,i))?r=r.filter(u=>u!==i):o=s,i=_s(i)}return t.set(e,r),r}function ise(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?x_(t)?[]:ase(t,this._c):[].concat(n),r],s=i[0],c=i.reduce((l,u)=>{const d=JI(t,u,o);return l.top=Bo(d.top,l.top),l.right=Ai(d.right,l.right),l.bottom=Ai(d.bottom,l.bottom),l.left=Bo(d.left,l.left),l},JI(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function sse(e){const{width:t,height:n}=zz(e);return{width:t,height:n}}function cse(e,t,n){const r=_o(t),o=Us(t),a=n==="fixed",i=$u(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=tl(0);if(r||!r&&!a)if((Jh(t)!=="body"||Lg(o))&&(s=C_(t)),r){const d=$u(t,!0,a,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else o&&(c.x=qz(o));const l=i.left+s.scrollLeft-c.x,u=i.top+s.scrollTop-c.y;return{x:l,y:u,width:i.width,height:i.height}}function wS(e){return Ko(e).position==="static"}function ZI(e,t){return!_o(e)||Ko(e).position==="fixed"?null:t?t(e):e.offsetParent}function Gz(e,t){const n=vo(e);if(x_(e))return n;if(!_o(e)){let o=_s(e);for(;o&&!el(o);){if(Mt(o)&&!wS(o))return o;o=_s(o)}return n}let r=ZI(e,t);for(;r&&fie(r)&&wS(r);)r=ZI(r,t);return r&&el(r)&&wS(r)&&!Dk(r)?n:r||hie(e)||n}const lse=async function(e){const t=this.getOffsetParent||Gz,n=this.getDimensions,r=await n(e.floating);return{reference:cse(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function use(e){return Ko(e).direction==="rtl"}const dse={convertOffsetParentRelativeRectToViewportRelativeRect:ese,getDocumentElement:Us,getClippingRect:ise,getOffsetParent:Gz,getElementRects:lse,getClientRects:tse,getDimensions:sse,getScale:Kf,isElement:Mt,isRTL:use};function fse(e,t){let n=null,r;const o=Us(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const{left:l,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const h=Kb(u),m=Kb(o.clientWidth-(l+d)),p=Kb(o.clientHeight-(u+f)),b=Kb(l),g={rootMargin:-h+"px "+-m+"px "+-p+"px "+-b+"px",threshold:Bo(0,Ai(1,c))||1};let w=!0;function _(C){const x=C[0].intersectionRatio;if(x!==c){if(!w)return i();x?i(!1,x):r=setTimeout(()=>{i(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(_,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return i(!0),a}function hse(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Ok(e),u=o||a?[...l?Wc(l):[],...Wc(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const d=l&&s?fse(l,n):null;let f=-1,h=null;i&&(h=new ResizeObserver(v=>{let[g]=v;g&&g.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let m,p=c?$u(e):null;c&&b();function b(){const v=$u(e);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&n(),p=v,m=requestAnimationFrame(b)}return n(),()=>{var v;u.forEach(g=>{o&&g.removeEventListener("scroll",n),a&&g.removeEventListener("resize",n)}),d==null||d(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const mse=Yie,pse=Qie,gse=Vie,yse=Xie,eO=Gie,bse=(e,t,n)=>{const r=new Map,o={platform:dse,...n},a={...o.platform,_c:r};return Wie(e,t,{...o,platform:a})};var s1=typeof document<"u"?S.useLayoutEffect:S.useEffect;function yw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!yw(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!yw(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Vz(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tO(e,t){const n=Vz(e);return Math.round(t*n)/n}function nO(e){const t=S.useRef(e);return s1(()=>{t.current=e}),t}function vse(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=S.useState(r);yw(f,r)||h(r);const[m,p]=S.useState(null),[b,v]=S.useState(null),g=S.useCallback(I=>{I!==x.current&&(x.current=I,p(I))},[]),w=S.useCallback(I=>{I!==E.current&&(E.current=I,v(I))},[]),_=a||m,C=i||b,x=S.useRef(null),E=S.useRef(null),T=S.useRef(u),k=c!=null,D=nO(c),R=nO(o),F=S.useCallback(()=>{if(!x.current||!E.current)return;const I={placement:t,strategy:n,middleware:f};R.current&&(I.platform=R.current),bse(x.current,E.current,I).then(N=>{const M={...N,isPositioned:!0};B.current&&!yw(T.current,M)&&(T.current=M,Fs.flushSync(()=>{d(M)}))})},[f,t,n,R]);s1(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(I=>({...I,isPositioned:!1})))},[l]);const B=S.useRef(!1);s1(()=>(B.current=!0,()=>{B.current=!1}),[]),s1(()=>{if(_&&(x.current=_),C&&(E.current=C),_&&C){if(D.current)return D.current(_,C,F);F()}},[_,C,F,D,k]);const j=S.useMemo(()=>({reference:x,floating:E,setReference:g,setFloating:w}),[g,w]),P=S.useMemo(()=>({reference:_,floating:C}),[_,C]),O=S.useMemo(()=>{const I={position:n,left:0,top:0};if(!P.floating)return I;const N=tO(P.floating,u.x),M=tO(P.floating,u.y);return s?{...I,transform:"translate("+N+"px, "+M+"px)",...Vz(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:M}},[n,s,P.floating,u.x,u.y]);return S.useMemo(()=>({...u,update:F,refs:j,elements:P,floatingStyles:O}),[u,F,j,P,O])}const wse=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?eO({element:r.current,padding:o}).fn(n):{}:r?eO({element:r,padding:o}).fn(n):{}}}},hd=(e,t)=>({...mse(e),options:[e,t]}),Ese=(e,t)=>({...pse(e),options:[e,t]}),_se=(e,t)=>({...gse(e),options:[e,t]}),S_=(e,t)=>({...yse(e),options:[e,t]}),xse=(e,t)=>({...wse(e),options:[e,t]}),Kz={...sU},Cse=Kz.useInsertionEffect,Sse=Cse||(e=>e());function Pc(e){const t=S.useRef(()=>{});return Sse(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+Tse++;function Ase(){const[e,t]=S.useState(()=>rO?oO():void 0);return qo(()=>{e==null&&t(oO())},[]),S.useEffect(()=>{rO=!0},[]),e}const Dse=Kz.useId,T_=Dse||Ase,kse=S.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:a}},width:i=14,height:s=7,tipRadius:c=0,strokeWidth:l=0,staticOffset:u,stroke:d,d:f,style:{transform:h,...m}={},...p}=t,b=T_(),[v,g]=S.useState(!1);if(qo(()=>{if(!o)return;Ko(o).direction==="rtl"&&g(!0)},[o]),!o)return null;const w=l*2,_=w/2,C=i/2*(c/-8+1),x=s/2*c/4,[E,T]=r.split("-"),k=!!f,D=E==="top"||E==="bottom",R=u&&T==="end"?"bottom":"top";let F=u&&T==="end"?"right":"left";u&&v&&(F=T==="end"?"left":"right");const B=(a==null?void 0:a.x)!=null?u||a.x:"",j=(a==null?void 0:a.y)!=null?u||a.y:"",P=f||"M0,0"+(" H"+i)+(" L"+(i-C)+","+(s-x))+(" Q"+i/2+","+s+" "+C+","+(s-x))+" Z",O={top:k?"rotate(180deg)":"",left:k?"rotate(90deg)":"rotate(-90deg)",bottom:k?"":"rotate(180deg)",right:k?"rotate(-90deg)":"rotate(90deg)"}[E];return S.createElement("svg",bw({},p,{"aria-hidden":!0,ref:n,width:k?i:i+w,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[F]:B,[R]:j,[E]:D||k?"100%":"calc(100% - "+w/2+"px)",transform:""+O+(h??""),...m}}),w>0&&S.createElement("path",{clipPath:"url(#"+b+")",fill:"none",stroke:d,strokeWidth:w+(f?0:1),d:P}),S.createElement("path",{stroke:w&&!f?p.fill:"none",d:P}),S.createElement("clipPath",{id:b},S.createElement("rect",{x:-_,y:_*(k?-1:1),width:i+w,height:i})))});function jse(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Pse=S.createContext(null),Ise=S.createContext(null),Rk=()=>{var e;return((e=S.useContext(Pse))==null?void 0:e.id)||null},Nk=()=>S.useContext(Ise);function Ug(e){return"data-floating-ui-"+e}function gu(e){const t=S.useRef(e);return qo(()=>{t.current=e}),t}const aO=Ug("safe-polygon");function ES(e,t,n){return n&&!Q0(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function A_(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:a,elements:i}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,h=Nk(),m=Rk(),p=gu(l),b=gu(c),v=gu(n),g=S.useRef(),w=S.useRef(-1),_=S.useRef(),C=S.useRef(-1),x=S.useRef(!0),E=S.useRef(!1),T=S.useRef(()=>{}),k=S.useCallback(()=>{var P;const O=(P=o.current.openEvent)==null?void 0:P.type;return(O==null?void 0:O.includes("mouse"))&&O!=="mousedown"},[o]);S.useEffect(()=>{if(!s)return;function P(O){let{open:I}=O;I||(clearTimeout(w.current),clearTimeout(C.current),x.current=!0)}return a.on("openchange",P),()=>{a.off("openchange",P)}},[s,a]),S.useEffect(()=>{if(!s||!p.current||!n)return;function P(I){k()&&r(!1,I,"hover")}const O=Nc(i.floating).documentElement;return O.addEventListener("mouseleave",P),()=>{O.removeEventListener("mouseleave",P)}},[i.floating,n,r,s,p,k]);const D=S.useCallback(function(P,O,I){O===void 0&&(O=!0),I===void 0&&(I="hover");const N=ES(b.current,"close",g.current);N&&!_.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,P,I),N)):O&&(clearTimeout(w.current),r(!1,P,I))},[b,r]),R=Pc(()=>{T.current(),_.current=void 0}),F=Pc(()=>{if(E.current){const P=Nc(i.floating).body;P.style.pointerEvents="",P.removeAttribute(aO),E.current=!1}});S.useEffect(()=>{if(!s)return;function P(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function O(L){if(clearTimeout(w.current),x.current=!1,u&&!Q0(g.current)||d>0&&!ES(b.current,"open"))return;const X=ES(b.current,"open",g.current);X?w.current=window.setTimeout(()=>{v.current||r(!0,L,"hover")},X):r(!0,L,"hover")}function I(L){if(P())return;T.current();const X=Nc(i.floating);if(clearTimeout(C.current),p.current&&o.current.floatingContext){n||clearTimeout(w.current),_.current=p.current({...o.current.floatingContext,tree:h,x:L.clientX,y:L.clientY,onClose(){F(),R(),D(L,!0,"safe-polygon")}});const U=_.current;X.addEventListener("mousemove",U),T.current=()=>{X.removeEventListener("mousemove",U)};return}(g.current==="touch"?!ls(i.floating,L.relatedTarget):!0)&&D(L)}function N(L){P()||o.current.floatingContext&&(p.current==null||p.current({...o.current.floatingContext,tree:h,x:L.clientX,y:L.clientY,onClose(){F(),R(),D(L)}})(L))}if(Mt(i.domReference)){var M;const L=i.domReference;return n&&L.addEventListener("mouseleave",N),(M=i.floating)==null||M.addEventListener("mouseleave",N),f&&L.addEventListener("mousemove",O,{once:!0}),L.addEventListener("mouseenter",O),L.addEventListener("mouseleave",I),()=>{var X;n&&L.removeEventListener("mouseleave",N),(X=i.floating)==null||X.removeEventListener("mouseleave",N),f&&L.removeEventListener("mousemove",O),L.removeEventListener("mouseenter",O),L.removeEventListener("mouseleave",I)}}},[i,s,e,u,d,f,D,R,F,r,n,v,h,b,p,o]),qo(()=>{var P;if(s&&n&&(P=p.current)!=null&&P.__options.blockPointerEvents&&k()){const I=Nc(i.floating).body;I.setAttribute(aO,""),I.style.pointerEvents="none",E.current=!0;const N=i.floating;if(Mt(i.domReference)&&N){var O;const M=i.domReference,L=h==null||(O=h.nodesRef.current.find(X=>X.id===m))==null||(O=O.context)==null?void 0:O.elements.floating;return L&&(L.style.pointerEvents=""),M.style.pointerEvents="auto",N.style.pointerEvents="auto",()=>{M.style.pointerEvents="",N.style.pointerEvents=""}}}},[s,n,m,i,h,p,k]),qo(()=>{n||(g.current=void 0,R(),F())},[n,R,F]),S.useEffect(()=>()=>{R(),clearTimeout(w.current),clearTimeout(C.current),F()},[s,i.domReference,R,F]);const B=S.useMemo(()=>{function P(O){g.current=O.pointerType}return{onPointerDown:P,onPointerEnter:P,onMouseMove(O){const{nativeEvent:I}=O;function N(){!x.current&&!v.current&&r(!0,I,"hover")}u&&!Q0(g.current)||n||d===0||(clearTimeout(C.current),g.current==="touch"?N():C.current=window.setTimeout(N,d))}}},[u,r,n,v,d]),j=S.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(P){D(P.nativeEvent,!1)}}),[D]);return S.useMemo(()=>s?{reference:B,floating:j}:{},[s,B,j])}function c1(e,t){let n=e.filter(o=>{var a;return o.parentId===t&&((a=o.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(o=>{var a;return(a=r)==null?void 0:a.some(i=>{var s;return o.parentId===i.id&&((s=o.context)==null?void 0:s.open)})}),n=n.concat(r);return n}const Yz=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Qz(e,t){const n=$z(e,Yz());t==="prev"&&n.reverse();const r=n.indexOf(OA(Nc(e)));return n.slice(r+1)[0]}function Ose(){return Qz(document.body,"next")}function Rse(){return Qz(document.body,"prev")}function _S(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!ls(n,r)}function Nse(e){$z(e,Yz()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Bse(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Xz={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let Fse;function iO(e){e.key==="Tab"&&(e.target,clearTimeout(Fse))}const sO=S.forwardRef(function(t,n){const[r,o]=S.useState();qo(()=>(Oz()&&o("button"),document.addEventListener("keydown",iO),()=>{document.removeEventListener("keydown",iO)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Ug("focus-guard")]:"",style:Xz};return S.createElement("span",bw({},t,a))}),Jz=S.createContext(null),cO=Ug("portal");function Mse(e){e===void 0&&(e={});const{id:t,root:n}=e,r=T_(),o=Lse(),[a,i]=S.useState(null),s=S.useRef(null);return qo(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),qo(()=>{if(!r||s.current)return;const c=t?document.getElementById(t):null;if(!c)return;const l=document.createElement("div");l.id=r,l.setAttribute(cO,""),c.appendChild(l),s.current=l,i(l)},[t,r]),qo(()=>{if(!r||s.current)return;let c=n||(o==null?void 0:o.portalNode);c&&!Mt(c)&&(c=c.current),c=c||document.body;let l=null;t&&(l=document.createElement("div"),l.id=t,c.appendChild(l));const u=document.createElement("div");u.id=r,u.setAttribute(cO,""),c=l||c,c.appendChild(u),s.current=u,i(u)},[t,n,r,o]),a}function md(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,a=Mse({id:n,root:r}),[i,s]=S.useState(null),c=S.useRef(null),l=S.useRef(null),u=S.useRef(null),d=S.useRef(null),f=!!i&&!i.modal&&i.open&&o&&!!(r||a);return S.useEffect(()=>{if(!a||!o||i!=null&&i.modal)return;function h(m){a&&_S(m)&&(m.type==="focusin"?Bse:Nse)(a)}return a.addEventListener("focusin",h,!0),a.addEventListener("focusout",h,!0),()=>{a.removeEventListener("focusin",h,!0),a.removeEventListener("focusout",h,!0)}},[a,o,i==null?void 0:i.modal]),S.createElement(Jz.Provider,{value:S.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:l,beforeInsideRef:u,afterInsideRef:d,portalNode:a,setFocusManagerState:s}),[o,a])},f&&a&&S.createElement(sO,{"data-type":"outside",ref:c,onFocus:h=>{if(_S(h,a)){var m;(m=u.current)==null||m.focus()}else{const p=Rse()||(i==null?void 0:i.refs.domReference.current);p==null||p.focus()}}}),f&&a&&S.createElement("span",{"aria-owns":a.id,style:Xz}),a&&Fs.createPortal(t,a),f&&a&&S.createElement(sO,{"data-type":"outside",ref:l,onFocus:h=>{if(_S(h,a)){var m;(m=d.current)==null||m.focus()}else{const p=Ose()||(i==null?void 0:i.refs.domReference.current);p==null||p.focus(),i!=null&&i.closeOnFocusOut&&(i==null||i.onOpenChange(!1,h.nativeEvent))}}}))}const Lse=()=>S.useContext(Jz);function lO(e){return _o(e.target)&&e.target.tagName==="BUTTON"}function uO(e){return Rz(e)}function tm(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:a}}=e,{enabled:i=!0,event:s="click",toggle:c=!0,ignoreMouse:l=!1,keyboardHandlers:u=!0}=t,d=S.useRef(),f=S.useRef(!1),h=S.useMemo(()=>({onPointerDown(m){d.current=m.pointerType},onMouseDown(m){const p=d.current;m.button===0&&s!=="click"&&(Q0(p,!0)&&l||(n&&c&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?r(!1,m.nativeEvent,"click"):(m.preventDefault(),r(!0,m.nativeEvent,"click"))))},onClick(m){const p=d.current;if(s==="mousedown"&&d.current){d.current=void 0;return}Q0(p,!0)&&l||(n&&c&&(!o.current.openEvent||o.current.openEvent.type==="click")?r(!1,m.nativeEvent,"click"):r(!0,m.nativeEvent,"click"))},onKeyDown(m){d.current=void 0,!(m.defaultPrevented||!u||lO(m))&&(m.key===" "&&!uO(a)&&(m.preventDefault(),f.current=!0),m.key==="Enter"&&r(!(n&&c),m.nativeEvent,"click"))},onKeyUp(m){m.defaultPrevented||!u||lO(m)||uO(a)||m.key===" "&&f.current&&(f.current=!1,r(!(n&&c),m.nativeEvent,"click"))}}),[o,a,s,l,u,r,n,c]);return S.useMemo(()=>i?{reference:h}:{},[i,h])}const Use={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},$se={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},dO=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function pd(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:a}=e,{enabled:i=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:h,capture:m}=t,p=Nk(),b=Pc(typeof c=="function"?c:()=>!1),v=typeof c=="function"?b:c,g=S.useRef(!1),w=S.useRef(!1),{escapeKey:_,outsidePress:C}=dO(h),{escapeKey:x,outsidePress:E}=dO(m),T=Pc(j=>{var P;if(!n||!i||!s||j.key!=="Escape")return;const O=(P=a.current.floatingContext)==null?void 0:P.nodeId,I=p?c1(p.nodesRef.current,O):[];if(!_&&(j.stopPropagation(),I.length>0)){let N=!0;if(I.forEach(M=>{var L;if((L=M.context)!=null&&L.open&&!M.context.dataRef.current.__escapeKeyBubbles){N=!1;return}}),!N)return}r(!1,yie(j)?j.nativeEvent:j,"escape-key")}),k=Pc(j=>{var P;const O=()=>{var I;T(j),(I=su(j))==null||I.removeEventListener("keydown",O)};(P=su(j))==null||P.addEventListener("keydown",O)}),D=Pc(j=>{var P;const O=g.current;g.current=!1;const I=w.current;if(w.current=!1,l==="click"&&I||O||typeof v=="function"&&!v(j))return;const N=su(j),M="["+Ug("inert")+"]",L=Nc(o.floating).querySelectorAll(M);let X=Mt(N)?N:null;for(;X&&!el(X);){const Z=_s(X);if(el(Z)||!Mt(Z))break;X=Z}if(L.length&&Mt(N)&&!bie(N)&&!ls(N,o.floating)&&Array.from(L).every(Z=>!ls(X,Z)))return;if(_o(N)&&B){const Z=N.clientWidth>0&&N.scrollWidth>N.clientWidth,ae=N.clientHeight>0&&N.scrollHeight>N.clientHeight;let ne=ae&&j.offsetX>N.clientWidth;if(ae&&Ko(N).direction==="rtl"&&(ne=j.offsetX<=N.offsetWidth-N.clientWidth),ne||Z&&j.offsetY>N.clientHeight)return}const J=(P=a.current.floatingContext)==null?void 0:P.nodeId,U=p&&c1(p.nodesRef.current,J).some(Z=>{var ae;return vS(j,(ae=Z.context)==null?void 0:ae.elements.floating)});if(vS(j,o.floating)||vS(j,o.domReference)||U)return;const G=p?c1(p.nodesRef.current,J):[];if(G.length>0){let Z=!0;if(G.forEach(ae=>{var ne;if((ne=ae.context)!=null&&ne.open&&!ae.context.dataRef.current.__outsidePressBubbles){Z=!1;return}}),!Z)return}r(!1,j,"outside-press")}),R=Pc(j=>{var P;const O=()=>{var I;D(j),(I=su(j))==null||I.removeEventListener(l,O)};(P=su(j))==null||P.addEventListener(l,O)});S.useEffect(()=>{if(!n||!i)return;a.current.__escapeKeyBubbles=_,a.current.__outsidePressBubbles=C;function j(I){r(!1,I,"ancestor-scroll")}const P=Nc(o.floating);s&&P.addEventListener("keydown",x?k:T,x),v&&P.addEventListener(l,E?R:D,E);let O=[];return f&&(Mt(o.domReference)&&(O=Wc(o.domReference)),Mt(o.floating)&&(O=O.concat(Wc(o.floating))),!Mt(o.reference)&&o.reference&&o.reference.contextElement&&(O=O.concat(Wc(o.reference.contextElement)))),O=O.filter(I=>{var N;return I!==((N=P.defaultView)==null?void 0:N.visualViewport)}),O.forEach(I=>{I.addEventListener("scroll",j,{passive:!0})}),()=>{s&&P.removeEventListener("keydown",x?k:T,x),v&&P.removeEventListener(l,E?R:D,E),O.forEach(I=>{I.removeEventListener("scroll",j)})}},[a,o,s,v,l,n,r,f,i,_,C,T,x,k,D,E,R]),S.useEffect(()=>{g.current=!1},[v,l]);const F=S.useMemo(()=>({onKeyDown:T,[Use[d]]:j=>{u&&r(!1,j.nativeEvent,"reference-press")}}),[T,r,u,d]),B=S.useMemo(()=>({onKeyDown:T,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[$se[l]]:()=>{g.current=!0}}),[T,l]);return S.useMemo(()=>i?{reference:F,floating:B}:{},[i,F,B])}function zse(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=T_(),a=S.useRef({}),[i]=S.useState(()=>jse()),s=Rk()!=null,[c,l]=S.useState(r.reference),u=Pc((h,m,p)=>{a.current.openEvent=h?m:void 0,i.emit("openchange",{open:h,event:m,reason:p,nested:s}),n==null||n(h,m,p)}),d=S.useMemo(()=>({setPositionReference:l}),[]),f=S.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return S.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:i,floatingId:o,refs:d}),[t,u,f,i,o,d])}function gd(e){e===void 0&&(e={});const{nodeId:t}=e,n=zse({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=S.useState(null),[s,c]=S.useState(null),u=(o==null?void 0:o.reference)||a,d=S.useRef(null),f=Nk();qo(()=>{u&&(d.current=u)},[u]);const h=vse({...e,elements:{...o,...s&&{reference:s}}}),m=S.useCallback(w=>{const _=Mt(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;c(_),h.refs.setReference(_)},[h.refs]),p=S.useCallback(w=>{(Mt(w)||w===null)&&(d.current=w,i(w)),(Mt(h.refs.reference.current)||h.refs.reference.current===null||w!==null&&!Mt(w))&&h.refs.setReference(w)},[h.refs]),b=S.useMemo(()=>({...h.refs,setReference:p,setPositionReference:m,domReference:d}),[h.refs,p,m]),v=S.useMemo(()=>({...h.elements,domReference:u}),[h.elements,u]),g=S.useMemo(()=>({...h,...r,refs:b,elements:v,nodeId:t}),[h,b,v,t,r]);return qo(()=>{r.dataRef.current.floatingContext=g;const w=f==null?void 0:f.nodesRef.current.find(_=>_.id===t);w&&(w.context=g)}),S.useMemo(()=>({...h,context:g,refs:b,elements:v}),[h,b,v,g])}function Hse(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:a,elements:i}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=S.useRef(!1),u=S.useRef(),d=S.useRef(!0);S.useEffect(()=>{if(!s)return;const h=vo(i.domReference);function m(){!n&&_o(i.domReference)&&i.domReference===OA(Nc(i.domReference))&&(l.current=!0)}function p(){d.current=!0}return h.addEventListener("blur",m),h.addEventListener("keydown",p,!0),()=>{h.removeEventListener("blur",m),h.removeEventListener("keydown",p,!0)}},[i.domReference,n,s]),S.useEffect(()=>{if(!s)return;function h(m){let{reason:p}=m;(p==="reference-press"||p==="escape-key")&&(l.current=!0)}return o.on("openchange",h),()=>{o.off("openchange",h)}},[o,s]),S.useEffect(()=>()=>{clearTimeout(u.current)},[]);const f=S.useMemo(()=>({onPointerDown(h){mie(h.nativeEvent)||(d.current=!1)},onMouseLeave(){l.current=!1},onFocus(h){if(l.current)return;const m=su(h.nativeEvent);if(c&&Mt(m))try{if(Oz()&&pie())throw Error();if(!m.matches(":focus-visible"))return}catch{if(!d.current&&!Rz(m))return}r(!0,h.nativeEvent,"focus")},onBlur(h){l.current=!1;const m=h.relatedTarget,p=h.nativeEvent,b=Mt(m)&&m.hasAttribute(Ug("focus-guard"))&&m.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{var v;const g=OA(i.domReference?i.domReference.ownerDocument:document);!m&&g===i.domReference||ls((v=a.current.floatingContext)==null?void 0:v.refs.floating.current,g)||ls(i.domReference,g)||b||r(!1,p,"focus")})}}),[a,i.domReference,r,c]);return S.useMemo(()=>s?{reference:f}:{},[s,f])}const fO="active",hO="selected";function xS(e,t,n){const r=new Map,o=n==="item";let a=e;if(o&&e){const{[fO]:i,[hO]:s,...c}=e;a=c}return{...n==="floating"&&{tabIndex:-1},...a,...t.map(i=>{const s=i?i[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((i,s)=>(s&&Object.entries(s).forEach(c=>{let[l,u]=c;if(!(o&&[fO,hO].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof u=="function"){var d;(d=r.get(l))==null||d.push(u),i[l]=function(){for(var f,h=arguments.length,m=new Array(h),p=0;pb(...m)).find(b=>b!==void 0)}}}else i[l]=u}),i),{})}}function yd(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),o=S.useCallback(s=>xS(s,e,"reference"),t),a=S.useCallback(s=>xS(s,e,"floating"),n),i=S.useCallback(s=>xS(s,e,"item"),r);return S.useMemo(()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i}),[o,a,i])}const qse=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Wse(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:a=!0,role:i="dialog"}=t,s=(n=qse.get(i))!=null?n:i,c=T_(),u=Rk()!=null,d=S.useMemo(()=>s==="tooltip"||i==="label"?{["aria-"+(i==="label"?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?o:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:c},...s==="menu"&&u&&{role:"menuitem"},...i==="select"&&{"aria-autocomplete":"none"},...i==="combobox"&&{"aria-autocomplete":"list"}},[s,o,u,r,c,i]),f=S.useMemo(()=>{const m={id:o,...s&&{role:s}};return s==="tooltip"||i==="label"?m:{...m,...s==="menu"&&{"aria-labelledby":c}}},[s,o,c,i]),h=S.useCallback(m=>{let{active:p,selected:b}=m;const v={role:"option",...p&&{id:o+"-option"}};switch(i){case"select":return{...v,"aria-selected":p&&b};case"combobox":return{...v,...p&&{"aria-selected":!0}}}return{}},[o,i]);return S.useMemo(()=>a?{reference:d,floating:f,item:h}:{},[a,d,f,h])}const mO=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Kd(e,t){return typeof e=="function"?e(t):e}function Gse(e,t){const[n,r]=S.useState(e);return e&&!n&&r(!0),S.useEffect(()=>{if(!e&&n){const o=setTimeout(()=>r(!1),t);return()=>clearTimeout(o)}},[e,n,t]),n}function Vse(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,i=(typeof o=="number"?o:o.close)||0,[s,c]=S.useState("unmounted"),l=Gse(n,i);return!l&&s==="close"&&c("unmounted"),qo(()=>{if(r){if(n){c("initial");const u=requestAnimationFrame(()=>{c("open")});return()=>{cancelAnimationFrame(u)}}c("close")}},[n,r]),{isMounted:l,status:s}}function bd(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:o,common:a,duration:i=250}=t,s=e.placement,c=s.split("-")[0],l=S.useMemo(()=>({side:c,placement:s}),[c,s]),u=typeof i=="number",d=(u?i:i.open)||0,f=(u?i:i.close)||0,[h,m]=S.useState(()=>({...Kd(a,l),...Kd(n,l)})),{isMounted:p,status:b}=Vse(e,{duration:i}),v=gu(n),g=gu(r),w=gu(o),_=gu(a);return qo(()=>{const C=Kd(v.current,l),x=Kd(w.current,l),E=Kd(_.current,l),T=Kd(g.current,l)||Object.keys(C).reduce((k,D)=>(k[D]="",k),{});if(b==="initial"&&m(k=>({transitionProperty:k.transitionProperty,...E,...C})),b==="open"&&m({transitionProperty:Object.keys(T).map(mO).join(","),transitionDuration:d+"ms",...E,...T}),b==="close"){const k=x||C;m({transitionProperty:Object.keys(k).map(mO).join(","),transitionDuration:f+"ms",...E,...k})}},[f,w,v,g,_,d,b,l]),{isMounted:p,styles:h}}function pO(e,t){const[n,r]=e;let o=!1;const a=t.length;for(let i=0,s=a-1;i=r!=d>=r&&n<=(u-c)*(r-l)/(d-l)+c&&(o=!o)}return o}function Kse(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Zz(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,a=!1,i=null,s=null,c=performance.now();function l(d,f){const h=performance.now(),m=h-c;if(i===null||s===null||m===0)return i=d,s=f,c=h,null;const p=d-i,b=f-s,g=Math.sqrt(p*p+b*b)/m;return i=d,s=f,c=h,g}const u=d=>{let{x:f,y:h,placement:m,elements:p,onClose:b,nodeId:v,tree:g}=d;return function(_){function C(){clearTimeout(o),b()}if(clearTimeout(o),!p.domReference||!p.floating||m==null||f==null||h==null)return;const{clientX:x,clientY:E}=_,T=[x,E],k=su(_),D=_.type==="mouseleave",R=ls(p.floating,k),F=ls(p.domReference,k),B=p.domReference.getBoundingClientRect(),j=p.floating.getBoundingClientRect(),P=m.split("-")[0],O=f>j.right-j.width/2,I=h>j.bottom-j.height/2,N=Kse(T,B),M=j.width>B.width,L=j.height>B.height,X=(M?B:j).left,J=(M?B:j).right,U=(L?B:j).top,G=(L?B:j).bottom;if(R&&(a=!0,!D))return;if(F&&(a=!1),F&&!D){a=!0;return}if(D&&Mt(_.relatedTarget)&&ls(p.floating,_.relatedTarget)||g&&c1(g.nodesRef.current,v).some(ne=>{let{context:ie}=ne;return ie==null?void 0:ie.open}))return;if(P==="top"&&h>=B.bottom-1||P==="bottom"&&h<=B.top+1||P==="left"&&f>=B.right-1||P==="right"&&f<=B.left+1)return C();let Z=[];switch(P){case"top":Z=[[X,B.top+1],[X,j.bottom-1],[J,j.bottom-1],[J,B.top+1]];break;case"bottom":Z=[[X,j.top+1],[X,B.bottom-1],[J,B.bottom-1],[J,j.top+1]];break;case"left":Z=[[j.right-1,G],[j.right-1,U],[B.left+1,U],[B.left+1,G]];break;case"right":Z=[[B.right-1,G],[B.right-1,U],[j.left+1,U],[j.left+1,G]];break}function ae(ne){let[ie,te]=ne;switch(P){case"top":{const ee=[M?ie+t/2:O?ie+t*4:ie-t*4,te+t+1],re=[M?ie-t/2:O?ie+t*4:ie-t*4,te+t+1],z=[[j.left,O||M?j.bottom-t:j.top],[j.right,O?M?j.bottom-t:j.top:j.bottom-t]];return[ee,re,...z]}case"bottom":{const ee=[M?ie+t/2:O?ie+t*4:ie-t*4,te-t],re=[M?ie-t/2:O?ie+t*4:ie-t*4,te-t],z=[[j.left,O||M?j.top+t:j.bottom],[j.right,O?M?j.top+t:j.bottom:j.top+t]];return[ee,re,...z]}case"left":{const ee=[ie+t+1,L?te+t/2:I?te+t*4:te-t*4],re=[ie+t+1,L?te-t/2:I?te+t*4:te-t*4];return[...[[I||L?j.right-t:j.left,j.top],[I?L?j.right-t:j.left:j.right-t,j.bottom]],ee,re]}case"right":{const ee=[ie-t,L?te+t/2:I?te+t*4:te-t*4],re=[ie-t,L?te-t/2:I?te+t*4:te-t*4],z=[[I||L?j.left+t:j.right,j.top],[I?L?j.left+t:j.right:j.left+t,j.bottom]];return[ee,re,...z]}}}if(!pO([x,E],Z)){if(a&&!N)return C();if(!D&&r){const ne=l(_.clientX,_.clientY);if(ne!==null&&ne<.1)return C()}pO([x,E],ae([f,h]))?!a&&r&&(o=window.setTimeout(C,40)):C()}}};return u.__options={blockPointerEvents:n},u}function At({children:e,content:t,enabledSafePolygon:n,className:r,contentClassName:o,enabled:a=!0,status:i="default"}){const[s,c]=S.useState(!1),l=S.useRef(null),{refs:u,context:d,floatingStyles:f}=gd({open:s,onOpenChange:c,placement:"top",middleware:[hd(10),_se(),Ese(),xse({element:l})],whileElementsMounted:hse}),h=A_(d,{move:!1,handleClose:n?Zz():void 0}),m=Hse(d),p=pd(d),b=Wse(d,{role:"tooltip"}),{getReferenceProps:v,getFloatingProps:g}=yd([h,m,p,b]),{styles:w,isMounted:_}=bd(d,{initial:{transform:"scale(0.5)",opacity:0},open:{transform:"scale(1)",opacity:1},close:{transform:"scale(0.5)",opacity:0}});return a?y.jsxs(y.Fragment,{children:[y.jsx("div",{ref:u.setReference,...v(),className:r,children:e}),_&&y.jsx(md,{children:y.jsxs("div",{ref:u.setFloating,style:f,...g(),className:"z-30",children:[y.jsx(kse,{ref:l,style:w,context:d,fill:i==="warning"?"#FAAD14":"#0085FF"}),y.jsx("div",{style:w,className:`px-medium py-small flex items-center rounded-lg ${i==="warning"?"bg-app-orange":"bg-primary"} ${o}`,children:typeof t=="string"?y.jsx("span",{className:"text-xs font-semibold",children:t}):t})]})})]}):y.jsx("div",{className:r,children:e})}function Yse(){return y.jsxs("div",{className:"app-footer gap-medium px-medium flex w-full items-center justify-center lg:justify-between lg:px-5",children:[y.jsx("span",{className:"text-xs font-semibold text-white/50",children:`© ${new Date().getFullYear()} Helix Bridge`}),y.jsx("div",{className:"h-3 w-[1px] bg-white/30 lg:hidden"}),y.jsxs("div",{className:"flex items-center gap-5",children:[y.jsx(Qse,{}),y.jsx("div",{className:"hidden h-3 w-[1px] bg-white/30 lg:block"}),y.jsx(Xse,{})]})]})}function Qse(){const e=[{label:"Explorer",path:"/explorer"},{label:"XToken",path:"https://xtoken.box",external:!0},{label:"Docs",path:"https://docs.helixbridge.app",external:!0}],[t,n]=S.useState({label:"Saa",path:"ss",pc:!0,external:!0});return S.useEffect(()=>{window.location.hostname==="helixbridge.app"?n(r=>({...r,label:"Testnet",path:"https://testnet.helixbridge.app"})):window.location.hostname==="testnet.helixbridge.app"?n(r=>({...r,label:"Mainnet",path:"https://helixbridge.app"})):window.location.hostname==="helix-stg-mainnet.vercel.app"?n(r=>({...r,label:"Testnet",path:"https://helix-stg-testnet.vercel.app"})):window.location.hostname==="helix-stg-testnet.vercel.app"?n(r=>({...r,label:"Mainnet",path:"https://helix-stg-mainnet.vercel.app"})):window.location.hostname==="helix-dev-mainnet.vercel.app"?n(r=>({...r,label:"Testnet",path:"https://helix-dev-testnet.vercel.app"})):window.location.hostname==="helix-dev-testnet.vercel.app"?n(r=>({...r,label:"Mainnet",path:"https://helix-dev-mainnet.vercel.app"})):n(r=>({...r,label:"",path:""}))},[]),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[e.concat(t).filter(r=>r.path).map(r=>r.external?y.jsx("a",{href:r.path,target:"_blank",rel:"noopener noreferrer",className:`text-xs font-semibold text-white/50 transition hover:text-white hover:underline active:scale-95 ${r.pc?"hidden lg:inline":""}`,children:r.label},r.label):y.jsx(Su,{to:r.path,className:`text-xs font-semibold text-white/50 transition hover:text-white hover:underline active:scale-95 ${r.pc?"hidden lg:inline":""}`,children:r.label},r.label)),window.location.hostname==="helixbridge.app"&&y.jsx(At,{contentClassName:"w-72",content:"For a fully decentralized experience, you can use the IPFS deployed version.",children:y.jsx("a",{href:"https://helixbridge.eth.limo",target:"_blank",rel:"noopener noreferrer",className:"hidden text-xs font-semibold text-white/50 transition hover:text-white hover:underline active:scale-95 lg:inline",children:"IPFS mirror"})})]})}function Xse(){const e=[{link:"https://github.com/helix-bridge",icon:y.jsx("img",{width:16,height:16,alt:"Github",src:"images/social/github.svg"})},{link:"https://x.com/helixofficialx",icon:y.jsx("img",{width:16,height:16,alt:"X",src:"images/social/x.svg"})},{link:"https://discord.gg/6XyyNGugdE",icon:y.jsx("img",{width:20,height:20,alt:"Discord",src:"images/social/discord.svg"})},{link:"mailto:hello@helixbridge.app",icon:y.jsx("img",{width:16,height:16,alt:"Email",src:"images/social/email.svg"})}];return y.jsx("div",{className:"hidden items-center gap-5 lg:flex",children:e.map((t,n)=>y.jsx("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"opacity-60 transition hover:-translate-y-[2px] hover:opacity-100 active:translate-y-0",children:t.icon},n))})}const eH=S.createContext({}),$g=()=>S.useContext(eH),tH=S.createContext({}),nH=()=>S.useContext(tH),rH=S.createContext({}),Bk=()=>S.useContext(rH);function zg(e){const[t,n]=S.useState(e),r=S.useCallback(()=>n(!0),[]),o=S.useCallback(()=>n(!1),[]),a=S.useCallback(()=>n(i=>!i),[]);return{state:t,toggle:a,setTrue:r,setFalse:o,setState:n}}function zu(e,t=5,n=4){return e.length>16?`${e.slice(0,t)}...${e.slice(-1*n)}`:e}const Jse="modulepreload",Zse=function(e,t){return new URL(e,t).href},gO={},me=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(c=>{if(c=Zse(c,r),c in gO)return;gO[c]=!0;const l=c.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(!!r)for(let h=a.length-1;h>=0;h--){const m=a[h];if(m.href===c&&(!l||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${u}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":Jse,l||(f.as="script",f.crossOrigin=""),f.href=c,s&&f.setAttribute("nonce",s),document.head.appendChild(f),l)return new Promise((h,m)=>{f.addEventListener("load",h),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}return o.then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})},ece="0.9.8";let Mr=class FA extends Error{constructor(t,n={}){var i;const r=n.cause instanceof FA?n.cause.details:(i=n.cause)!=null&&i.message?n.cause.message:n.details,o=n.cause instanceof FA&&n.cause.docsPath||n.docsPath,a=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${ece}`].join(` -`);super(a),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 tce(e){return e}function _l(e,t){const n=e.exec(t);return n==null?void 0:n.groups}const oH=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,aH=/^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)?$/,iH=/^\(.+?\).*?$/,yO=/^tuple(?(\[(\d*)\])*)$/;function vw(e){let t=e.type;if(yO.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let o=0;o[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function rce(e){return sH.test(e)}function oce(e){return _l(sH,e)}const cH=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function ace(e){return cH.test(e)}function ice(e){return _l(cH,e)}const lH=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;function sce(e){return lH.test(e)}function cce(e){return _l(lH,e)}const uH=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;function Hg(e){return uH.test(e)}function lce(e){return _l(uH,e)}const dH=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;function uce(e){return dH.test(e)}function dce(e){return _l(dH,e)}const fce=/^fallback\(\)$/;function hce(e){return fce.test(e)}const mce=/^receive\(\) external payable$/;function pce(e){return mce.test(e)}const ww=new Set(["memory","indexed","storage","calldata"]),gce=new Set(["indexed"]),MA=new Set(["calldata","memory","storage"]);class fH extends Mr{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human.html#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class hH extends Mr{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 mH extends Mr{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 pH extends Mr{constructor({param:t}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(t,null,2)})`,docsPath:"/api/human.html#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}class gH extends Mr{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human.html#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class yH extends Mr{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class bH extends Mr{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 vH extends Mr{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 wH extends Mr{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 EH extends Mr{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 jf extends Mr{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class _H extends Mr{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class xH extends Mr{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 CH extends Mr{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 SH extends Mr{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 yce(e,t){return t?`${t}:${e}`:e}const CS=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 LA(e,t={}){if(sce(e)){const n=cce(e);if(!n)throw new jf({signature:e,type:"function"});const r=Mo(n.parameters),o=[],a=r.length;for(let s=0;s[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,vce=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,wce=/^u?int$/;function Va(e,t){var d,f;const n=yce(e,t==null?void 0:t.type);if(CS.has(n))return CS.get(n);const r=iH.test(e),o=_l(r?vce:bce,e);if(!o)throw new yH({param:e});if(o.name&&_ce(o.name))throw new bH({param:e,name:o.name});const a=o.name?{name:o.name}:{},i=o.modifier==="indexed"?{indexed:!0}:{},s=(t==null?void 0:t.structs)??{};let c,l={};if(r){c="tuple";const h=Mo(o.type),m=[],p=h.length;for(let b=0;b[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/;function AH(e,t,n=new Set){const r=[],o=e.length;for(let a=0;a{var o;return((o=e[t.name||n])==null?void 0:o.call(e,r))??t(e,r)}}function xs(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new qce(e.type);return`${e.name}(${k_(e.inputs,{includeName:t})})`}function k_(e,{includeName:t=!1}={}){return e?e.map(n=>jce(n,{includeName:t})).join(t?", ":","):""}function jce(e,{includeName:t}){return e.type.startsWith("tuple")?`(${k_(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function Ea(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Pn(e){return Ea(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const Pce="1.21.3",Ice=e=>e,j_=e=>e,Oce=()=>`viem@${Pce}`;let de=class UA extends Error{constructor(t,n={}){var a;super(),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:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:Oce()});const r=n.cause instanceof UA?n.cause.details:(a=n.cause)!=null&&a.message?n.cause.message:n.details,o=n.cause instanceof UA&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(` -`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return DH(this,t)}};function DH(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e?DH(e.cause,t):t?null:e}class Rce extends de{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(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class bO extends de{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(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class Mk extends de{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(` -`),{metaMessages:[`Params: (${k_(n,{includeName:!0})})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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 P_ extends de{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class Nce extends de{constructor({expectedLength:t,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class Bce extends de{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${Pn(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class kH extends de{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class jH extends de{constructor(t,{docsPath:n}){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://openchain.xyz/signatures?query=${t}.`].join(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class Fce extends de{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class Mce extends de{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://openchain.xyz/signatures?query=${t}.`].join(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class vO extends de{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(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class Ew extends de{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(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class Lce extends de{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(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class Uce extends de{constructor(t,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${xs(t.abiItem)}\`, and`,`\`${n.type}\` in \`${xs(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:"AbiItemAmbiguityError"})}}class PH extends de{constructor({expectedSize:t,givenSize:n}){super(`Expected bytes${t}, got bytes${n}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class Hu extends de{constructor({abiItem:t,data:n,params:r,size:o}){super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join(` -`),{metaMessages:[`Params: (${k_(r,{includeName:!0})})`,`Data: ${n} (${o} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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 nm extends de{constructor({abiItem:t,param:n}){super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${xs(t,{includeName:!0})}".`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class $ce extends de{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class zce extends de{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class Hce extends de{constructor(t){super([`Value "${t}" is not a valid array.`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class qce extends de{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}class Wce extends de{constructor(t){super(`Type "${t}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}let Gce=class extends de{constructor(t){super(`Filter type "${t}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}},IH=class extends de{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:"SliceOffsetOutOfBoundsError"})}},OH=class extends de{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:"SizeExceedsPaddingSizeError"})}};function us(e,{dir:t,size:n=32}={}){return typeof e=="string"?Gc(e,{dir:t,size:n}):Vce(e,{dir:t,size:n})}function Gc(e,{dir:t,size:n=32}={}){if(n===null)return e;const r=e.replace("0x","");if(r.length>n*2)throw new OH({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function Vce(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new OH({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let o=0;ot)throw new Qce({givenSize:Pn(e),maxSize:t})}function wn(e,t={}){const{signed:n}=t;t.size&&xl(e,{size:t.size});const r=BigInt(e);if(!n)return r;const o=(e.length-2)/2,a=(1n<t.toString(16).padStart(2,"0"));function rt(e,t={}){return typeof e=="number"||typeof e=="bigint"?Xe(e,t):typeof e=="string"?I_(e,t):typeof e=="boolean"?Lk(e,t):qu(e,t)}function Lk(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(xl(n,{size:t.size}),us(n,{size:t.size})):n}function qu(e,t={}){let n="";for(let o=0;oa||o=Ki.zero&&e<=Ki.nine)return e-Ki.zero;if(e>=Ki.A&&e<=Ki.F)return e-(Ki.A-10);if(e>=Ki.a&&e<=Ki.f)return e-(Ki.a-10)}function qg(e,t={}){let n=e;t.size&&(xl(n,{size:t.size}),n=us(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const o=r.length/2,a=new Uint8Array(o);for(let i=0,s=0;i{const t=typeof e=="string"?e:Fk(e);return rle(t)},ole=e=>NH(e);function _w(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Uk(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function ale(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");_w(e.outputLen),_w(e.blockLen)}function ph(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 BH(e,t){Uk(e);const n=t.outputLen;if(e.length>EO&Yb)}:{h:Number(e>>EO&Yb)|0,l:Number(e&Yb)|0}}function sle(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;oe<>>32-n,lle=(e,t,n)=>t<>>32-n,ule=(e,t,n)=>t<>>64-n,dle=(e,t,n)=>e<>>64-n,SS=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const FH=e=>e instanceof Uint8Array,fle=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),TS=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),gi=(e,t)=>e<<32-t|e>>>t,hle=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!hle)throw new Error("Non little-endian hardware is not supported");function mle(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Wg(e){if(typeof e=="string"&&(e=mle(e)),!FH(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}function ple(...e){const t=new Uint8Array(e.reduce((r,o)=>r+o.length,0));let n=0;return e.forEach(r=>{if(!FH(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}class $k{clone(){return this._cloneInto()}}function O_(e){const t=r=>e().update(Wg(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function gle(e){const t=(r,o)=>e(o).update(Wg(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}function MH(e=32){if(SS&&typeof SS.getRandomValues=="function")return SS.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}const[LH,UH,$H]=[[],[],[]],yle=BigInt(0),fp=BigInt(1),ble=BigInt(2),vle=BigInt(7),wle=BigInt(256),Ele=BigInt(113);for(let e=0,t=fp,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],LH.push(2*(5*r+n)),UH.push((e+1)*(e+2)/2%64);let o=yle;for(let a=0;a<7;a++)t=(t<>vle)*Ele)%wle,t&ble&&(o^=fp<<(fp<n>32?ule(e,t,n):cle(e,t,n),xO=(e,t,n)=>n>32?dle(e,t,n):lle(e,t,n);function zH(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 s=(i+8)%10,c=(i+2)%10,l=n[c],u=n[c+1],d=_O(l,u,1)^n[s],f=xO(l,u,1)^n[s+1];for(let h=0;h<50;h+=10)e[i+h]^=d,e[i+h+1]^=f}let o=e[2],a=e[3];for(let i=0;i<24;i++){const s=UH[i],c=_O(o,a,s),l=xO(o,a,s),u=LH[i];o=e[u],a=e[u+1],e[u]=c,e[u+1]=l}for(let i=0;i<50;i+=10){for(let s=0;s<10;s++)n[s]=e[i+s];for(let s=0;s<10;s++)e[i+s]^=~n[(s+2)%10]&n[(s+4)%10]}e[0]^=_le[r],e[1]^=xle[r]}n.fill(0)}class Gg extends $k{constructor(t,n,r,o=!1,a=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,_w(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=fle(this.state)}keccak(){zH(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){ph(this);const{blockLen:n,state:r}=this;t=Wg(t);const o=t.length;for(let a=0;a=r&&this.keccak();const i=Math.min(r-this.posOut,a-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 _w(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(BH(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,this.state.fill(0)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:o,rounds:a,enableXOF:i}=this;return t||(t=new Gg(n,r,o,i,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=r,t.outputLen=o,t.enableXOF=i,t.destroyed=this.destroyed,t}}const Cl=(e,t,n)=>O_(()=>new Gg(t,e,n)),Cle=Cl(6,144,224/8),Sle=Cl(6,136,256/8),Tle=Cl(6,104,384/8),Ale=Cl(6,72,512/8),Dle=Cl(1,144,224/8),HH=Cl(1,136,256/8),kle=Cl(1,104,384/8),jle=Cl(1,72,512/8),qH=(e,t,n)=>gle((r={})=>new Gg(t,e,r.dkLen===void 0?n:r.dkLen,!0)),Ple=qH(31,168,128/8),Ile=qH(31,136,256/8),Ole=Object.freeze(Object.defineProperty({__proto__:null,Keccak:Gg,keccakP:zH,keccak_224:Dle,keccak_256:HH,keccak_384:kle,keccak_512:jle,sha3_224:Cle,sha3_256:Sle,sha3_384:Tle,sha3_512:Ale,shake128:Ple,shake256:Ile},Symbol.toStringTag,{value:"Module"}));function Or(e,t){const n=t||"hex",r=HH(Ea(e,{strict:!1})?rl(e):e);return n==="bytes"?r:rt(r)}const Rle=e=>Or(rl(e)),zk=e=>Rle(ole(e));let Wo=class extends de{constructor({address:t}){super(`Address "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}};const Nle=/^0x[a-fA-F0-9]{40}$/;function Hn(e){return Nle.test(e)}function Cs(e){return typeof e[0]=="string"?Sl(e):Ble(e)}function Ble(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 Sl(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function kn(e,t,n,{strict:r}={}){return Ea(e,{strict:!1})?Mle(e,t,n,{strict:r}):Fle(e,t,n,{strict:r})}function WH(e,t){if(typeof t=="number"&&t>0&&t>Pn(e)-1)throw new IH({offset:t,position:"start",size:Pn(e)})}function GH(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Pn(e)!==n-t)throw new IH({offset:n,position:"end",size:Pn(e)})}function Fle(e,t,n,{strict:r}={}){WH(e,t);const o=e.slice(t,n);return r&&GH(o,t,n),o}function Mle(e,t,n,{strict:r}={}){WH(e,t);const o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&GH(o,t,n),o}function Vg(e,t){if(e.length!==t.length)throw new kH({expectedLength:e.length,givenLength:t.length});const n=Lle({params:e,values:t}),r=qk(n);return r.length===0?"0x":r}function Lle({params:e,values:t}){const n=[];for(let r=0;r0?Cs([s,i]):s}}if(o)return{dynamic:!0,encoded:i}}return{dynamic:!1,encoded:Cs(a.map(({encoded:i})=>i))}}function zle(e,{param:t}){const[,n]=t.type.split("bytes"),r=Pn(e);if(!n){let o=e;return r%32!==0&&(o=Gc(o,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Cs([Gc(Xe(r,{size:32})),o])}}if(r!==parseInt(n))throw new Bce({expectedSize:parseInt(n),value:e});return{dynamic:!1,encoded:Gc(e,{dir:"right"})}}function Hle(e){return{dynamic:!1,encoded:Gc(Lk(e))}}function qle(e,{signed:t}){return{dynamic:!1,encoded:Xe(e,{size:32,signed:t})}}function Wle(e){const t=I_(e),n=Math.ceil(Pn(t)/32),r=[];for(let o=0;oo))}}function R_(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}const Vle=e=>Or(rl(e)),Wk=e=>kn(Vle(NH(e)),0,4);function Kg({abi:e,args:t=[],name:n}){const r=Ea(n,{strict:!1}),o=e.filter(i=>r?i.type==="function"?Wk(i)===n:i.type==="event"?zk(i)===n:!1:"name"in i&&i.name===n);if(o.length===0)return;if(o.length===1)return o[0];let a;for(const i of o){if(!("inputs"in i))continue;if(!t||t.length===0){if(!i.inputs||i.inputs.length===0)return i;continue}if(!i.inputs||i.inputs.length===0||i.inputs.length!==t.length)continue;if(t.every((c,l)=>{const u="inputs"in i&&i.inputs[l];return u?$A(c,u):!1})){if(a&&"inputs"in a&&a.inputs){const c=VH(i.inputs,a.inputs,t);if(c)throw new Uce({abiItem:i,type:c[0]},{abiItem:a,type:c[1]})}a=i}}return a||o[0]}function $A(e,t){const n=typeof e,r=t.type;switch(r){case"address":return Hn(e);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,a)=>$A(Object.values(e)[a],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=>$A(o,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function VH(e,t,n){for(const r in e){const o=e[r],a=t[r];if(o.type==="tuple"&&a.type==="tuple"&&"components"in o&&"components"in a)return VH(o.components,a.components,n[r]);const i=[o.type,a.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")||i.includes("address")&&i.includes("bytes")?Hn(n[r]):!1)return i}}function Yg({abi:e,eventName:t,args:n}){var s;let r=e[0];if(t&&(r=Kg({abi:e,args:n,name:t}),!r))throw new vO(t,{docsPath:"/docs/contract/encodeEventTopics"});if(r.type!=="event")throw new vO(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const o=xs(r),a=zk(o);let i=[];if(n&&"inputs"in r){const c=(s=r.inputs)==null?void 0:s.filter(u=>"indexed"in u&&u.indexed),l=Array.isArray(n)?n:Object.values(n).length>0?(c==null?void 0:c.map(u=>n[u.name]))??[]:[];l.length>0&&(i=(c==null?void 0:c.map((u,d)=>Array.isArray(l[d])?l[d].map((f,h)=>CO({param:u,value:l[d][h]})):l[d]?CO({param:u,value:l[d]}):null))??[])}return[a,...i]}function CO({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return Or(rl(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new Gce(e.type);return Vg([e],[t])}function N_(e,{method:t}){var r,o;const n={};return e.transport.type==="fallback"&&((o=(r=e.transport).onResponse)==null||o.call(r,({method:a,response:i,status:s,transport:c})=>{s==="success"&&t===a&&(n[i]=c.request)})),a=>n[a]||e.request}async function Gk(e,{address:t,abi:n,args:r,eventName:o,fromBlock:a,strict:i,toBlock:s}){const c=N_(e,{method:"eth_newFilter"}),l=o?Yg({abi:n,args:r,eventName:o}):void 0,u=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?Xe(a):a,toBlock:typeof s=="bigint"?Xe(s):s,topics:l}]});return{abi:n,args:r,eventName:o,id:u,request:c(u),strict:i,type:"event"}}function Ta(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}function oi({abi:e,args:t,functionName:n}){let r=e[0];if(n&&(r=Kg({abi:e,args:t,name:n}),!r))throw new Ew(n,{docsPath:"/docs/contract/encodeFunctionData"});if(r.type!=="function")throw new Ew(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const o=xs(r),a=Wk(o),i="inputs"in r&&r.inputs?Vg(r.inputs,t??[]):void 0;return Sl([a,i??"0x"])}const KH={1:"An `assert` condition failed.",17:"Arithmic 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."},Kle={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},Yle={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function Vk(e,t){const n=e.substring(2).toLowerCase(),r=Or(ds(n),"bytes"),o=n.split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&o[a]&&(o[a]=o[a].toUpperCase()),(r[a>>1]&15)>=8&&o[a+1]&&(o[a+1]=o[a+1].toUpperCase());return`0x${o.join("")}`}function Rr(e,t){if(!Hn(e))throw new Wo({address:e});return Vk(e)}function B_(e,t){if(t==="0x"&&e.length>0)throw new P_;if(Pn(t)&&Pn(t)<32)throw new Mk({data:t,params:e,size:Pn(t)});return Qle({data:t,params:e})}function Qle({data:e,params:t}){const n=[];let r=0;for(let o=0;o=Pn(e))throw new Mk({data:e,params:t,size:Pn(e)});const a=t[o],{consumed:i,value:s}=Yf({data:e,param:a,position:r});n.push(s),r+=i}return n}function Yf({data:e,param:t,position:n}){const r=R_(t.type);if(r){const[a,i]=r;return Jle(e,{length:a,param:{...t,type:i},position:n})}if(t.type==="tuple")return rue(e,{param:t,position:n});if(t.type==="string")return nue(e,{position:n});if(t.type.startsWith("bytes"))return eue(e,{param:t,position:n});const o=kn(e,n,n+32,{strict:!0});if(t.type.startsWith("uint")||t.type.startsWith("int"))return tue(o,{param:t});if(t.type==="address")return Xle(o);if(t.type==="bool")return Zle(o);throw new zce(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function Xle(e){return{consumed:32,value:Vk(kn(e,-20))}}function Jle(e,{param:t,length:n,position:r}){if(!n){const i=pr(kn(e,r,r+32,{strict:!0})),s=pr(kn(e,i,i+32,{strict:!0}));let c=0;const l=[];for(let u=0;u48?wn(e,{signed:n}):pr(e,{signed:n})}}function nue(e,{position:t}){const n=pr(kn(e,t,t+32,{strict:!0})),r=pr(kn(e,n,n+32,{strict:!0}));return r===0?{consumed:32,value:""}:{consumed:32,value:RH(Za(kn(e,n+32,n+32+r,{strict:!0})))}}function rue(e,{param:t,position:n}){const r=t.components.length===0||t.components.some(({name:i})=>!i),o=r?[]:{};let a=0;if(xw(t)){const i=pr(kn(e,n,n+32,{strict:!0}));for(let s=0;sa.type==="error"&&n===Wk(xs(a)));if(!o)throw new jH(n,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:o,args:"inputs"in o&&o.inputs&&o.inputs.length>0?B_(o.inputs,kn(t,4)):void 0,errorName:o.name}}const Qr=(e,t,n)=>JSON.stringify(e,(r,o)=>{const a=typeof o=="bigint"?o.toString():o;return typeof t=="function"?t(r,a):a},n);function YH({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,a)=>`${r&&o.name?`${o.name}: `:""}${typeof t[a]=="object"?Qr(t[a]):t[a]}`).join(", ")})`}const aue={gwei:9,wei:18},iue={ether:-9,wei:9},sue={ether:-18,gwei:-9};function Wu(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[o,a]=[n.slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),`${r?"-":""}${o||"0"}${a?`.${a}`:""}`}function Kk(e,t="wei"){return Wu(e,aue[t])}function wo(e,t="wei"){return Wu(e,iue[t])}function Qg(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(` -`)}let cue=class extends de{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}},lue=class extends de{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}},uue=class extends de{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Qg(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","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}},due=class extends de{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}},fue=class extends de{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var m;const h=Qg({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"&&`${Kk(f)} ${((m=o==null?void 0:o.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${wo(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${wo(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${wo(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",h].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=t}},QH=class extends de{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:o,index:a}){let i="Transaction";r&&a!==void 0&&(i=`Transaction at block time "${r}" at index "${a}"`),t&&a!==void 0&&(i=`Transaction at block hash "${t}" at index "${a}"`),n&&a!==void 0&&(i=`Transaction at block number "${n}" at index "${a}"`),o&&(i=`Transaction with hash "${o}"`),super(`${i} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}},XH=class extends de{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}},hue=class extends de{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}},JH=class extends de{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var p;const h=n?Ta(n):void 0,m=Qg({from:h==null?void 0:h.address,to:d,value:typeof f<"u"&&`${Kk(f)} ${((p=o==null?void 0:o.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${wo(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${wo(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${wo(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=t}},Yk=class extends de{constructor(t,{abi:n,args:r,contractAddress:o,docsPath:a,functionName:i,sender:s}){const c=Kg({abi:n,args:r,name:i}),l=c?YH({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,u=c?xs(c,{includeName:!0}):void 0,d=Qg({address:o&&Ice(o),function:u,args:l&&l!=="()"&&`${[...Array((i==null?void 0:i.length)??0).keys()].map(()=>" ").join("")}${l}`,sender:s});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Contract Call:",d].filter(Boolean)}),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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=o,this.functionName=i,this.sender=s}},zA=class extends de{constructor({abi:t,data:n,functionName:r,message:o}){let a,i,s,c;if(n&&n!=="0x")try{i=oue({abi:t,data:n});const{abiItem:u,errorName:d,args:f}=i;if(d==="Error")c=f[0];else if(d==="Panic"){const[h]=f;c=KH[h]}else{const h=u?xs(u,{includeName:!0}):void 0,m=u&&f?YH({abiItem:u,args:f,includeFunctionName:!1,includeName:!1}):void 0;s=[h?`Error: ${h}`:"",m&&m!=="()"?` ${[...Array((d==null?void 0:d.length)??0).keys()].map(()=>" ").join("")}${m}`:""]}}catch(u){a=u}else o&&(c=o);let l;a instanceof jH&&(l=a.signature,s=[`Unable to decode signature "${l}" 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://openchain.xyz/signatures?query=${l}.`]),super(c&&c!=="execution reverted"||l?[`The contract function "${r}" reverted with the following ${l?"signature":"reason"}:`,c||l].join(` -`):`The contract function "${r}" reverted.`,{cause:a,metaMessages:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{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=i,this.reason=c,this.signature=l}},mue=class extends de{constructor({functionName:t}){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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}},Qk=class extends de{constructor({data:t,message:n}){super(n||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}},g0=class extends de{constructor({body:t,details:n,headers:r,status:o,url:a}){super("HTTP request failed.",{details:n,metaMessages:[o&&`Status: ${o}`,`URL: ${j_(a)}`,t&&`Request body: ${Qr(t)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=r,this.status=o,this.url=a}},pue=class extends de{constructor({body:t,details:n,url:r}){super("WebSocket request failed.",{details:n,metaMessages:[`URL: ${j_(r)}`,`Request body: ${Qr(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}},Xk=class extends de{constructor({body:t,error:n,url:r}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${j_(r)}`,`Request body: ${Qr(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code}},HA=class extends de{constructor({body:t,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${j_(n)}`,`Request body: ${Qr(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}};const gue=-1;let Co=class extends de{constructor(t,{code:n,docsPath:r,metaMessages:o,shortMessage:a}){super(a,{cause:t,docsPath:r,metaMessages:o||(t==null?void 0:t.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=t.name,this.code=t instanceof Xk?t.code:n??gue}},rm=class extends Co{constructor(t,n){super(t,n),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}},qA=class ZH extends Co{constructor(t){super(t,{code:ZH.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}};Object.defineProperty(qA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});let WA=class eq extends Co{constructor(t){super(t,{code:eq.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}};Object.defineProperty(WA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});let GA=class tq extends Co{constructor(t){super(t,{code:tq.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}};Object.defineProperty(GA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});let VA=class nq extends Co{constructor(t){super(t,{code:nq.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}};Object.defineProperty(VA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});let Cw=class rq extends Co{constructor(t){super(t,{code:rq.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}};Object.defineProperty(Cw,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});let J0=class oq extends Co{constructor(t){super(t,{code:oq.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}};Object.defineProperty(J0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});let KA=class aq extends Co{constructor(t){super(t,{code:aq.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}};Object.defineProperty(KA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});let gh=class iq extends Co{constructor(t){super(t,{code:iq.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}};Object.defineProperty(gh,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});let YA=class sq extends Co{constructor(t){super(t,{code:sq.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}};Object.defineProperty(YA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});let QA=class cq extends Co{constructor(t){super(t,{code:cq.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}};Object.defineProperty(QA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});let XA=class lq extends Co{constructor(t){super(t,{code:lq.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}};Object.defineProperty(XA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});let JA=class uq extends Co{constructor(t){super(t,{code:uq.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}};Object.defineProperty(JA,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});let dr=class dq extends rm{constructor(t){super(t,{code:dq.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}};Object.defineProperty(dr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});let ZA=class fq extends rm{constructor(t){super(t,{code:fq.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}};Object.defineProperty(ZA,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});let e5=class hq extends rm{constructor(t){super(t,{code:hq.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}};Object.defineProperty(e5,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});let t5=class mq extends rm{constructor(t){super(t,{code:mq.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}};Object.defineProperty(t5,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});let n5=class pq extends rm{constructor(t){super(t,{code:pq.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}};Object.defineProperty(n5,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});let ol=class gq extends rm{constructor(t){super(t,{code:gq.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}};Object.defineProperty(ol,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});let yue=class extends Co{constructor(t){super(t,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}};const bue=3;function Z0(e,{abi:t,address:n,args:r,docsPath:o,functionName:a,sender:i}){const{code:s,data:c,message:l,shortMessage:u}=e instanceof Qk?e:e instanceof de?e.walk(f=>"data"in f)||e.walk():{},d=e instanceof P_?new mue({functionName:a}):[bue,Cw.code].includes(s)&&(c||l||u)?new zA({abi:t,data:typeof c=="object"?c.data:c,functionName:a,message:u??l}):e;return new Yk(d,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:a,sender:i})}let om=class extends de{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 WalletClient."].join(` -`),{docsPath:t,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}},vue=class extends de{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var m;const h=Qg({from:n==null?void 0:n.address,to:d,value:typeof f<"u"&&`${Kk(f)} ${((m=o==null?void 0:o.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${wo(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${wo(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${wo(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",h].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=t}},Pf=class extends de{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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}};Object.defineProperty(Pf,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Pf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});let Gu=class extends de{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${wo(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}};Object.defineProperty(Gu,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});let r5=class extends de{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${wo(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}};Object.defineProperty(r5,"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/});let o5=class extends de{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}};Object.defineProperty(o5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});let a5=class extends de{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(` -`),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}};Object.defineProperty(a5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});let i5=class extends de{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}};Object.defineProperty(i5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});let s5=class extends de{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` -`),{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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}};Object.defineProperty(s5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});let c5=class extends de{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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}};Object.defineProperty(c5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});let l5=class extends de{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}};Object.defineProperty(l5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});let u5=class extends de{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}};Object.defineProperty(u5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});let eg=class extends de{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${wo(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${wo(r)} gwei`:""}).`].join(` -`),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}};Object.defineProperty(eg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});let F_=class extends de{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}};function Jk(e,t){const n=(e.details||"").toLowerCase(),r=e.walk(o=>o.code===Pf.code);return r instanceof de?new Pf({cause:e,message:r.details}):Pf.nodeMessage.test(n)?new Pf({cause:e,message:e.details}):Gu.nodeMessage.test(n)?new Gu({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):r5.nodeMessage.test(n)?new r5({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):o5.nodeMessage.test(n)?new o5({cause:e,nonce:t==null?void 0:t.nonce}):a5.nodeMessage.test(n)?new a5({cause:e,nonce:t==null?void 0:t.nonce}):i5.nodeMessage.test(n)?new i5({cause:e,nonce:t==null?void 0:t.nonce}):s5.nodeMessage.test(n)?new s5({cause:e}):c5.nodeMessage.test(n)?new c5({cause:e,gas:t==null?void 0:t.gas}):l5.nodeMessage.test(n)?new l5({cause:e,gas:t==null?void 0:t.gas}):u5.nodeMessage.test(n)?new u5({cause:e}):eg.nodeMessage.test(n)?new eg({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new F_({cause:e})}function wue(e,{docsPath:t,...n}){const r=(()=>{const o=Jk(e,n);return o instanceof F_?e:o})();return new vue(r,{docsPath:t,...n})}function Zk(e,{format:t}){if(!t)return{};const n={};function r(a){const i=Object.keys(a);for(const s of i)s in e&&(n[s]=e[s]),a[s]&&typeof a[s]=="object"&&!Array.isArray(a[s])&&r(a[s])}const o=t(e||{});return r(o),n}function M_(e,t){return({exclude:n,format:r})=>({exclude:n,format:o=>{const a=t(o);if(n)for(const i of n)delete a[i];return{...a,...r(o)}},type:e})}const Eue={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function Xg(e){return{...e,gas:typeof e.gas<"u"?Xe(e.gas):void 0,gasPrice:typeof e.gasPrice<"u"?Xe(e.gasPrice):void 0,maxFeePerGas:typeof e.maxFeePerGas<"u"?Xe(e.maxFeePerGas):void 0,maxPriorityFeePerGas:typeof e.maxPriorityFeePerGas<"u"?Xe(e.maxPriorityFeePerGas):void 0,nonce:typeof e.nonce<"u"?Xe(e.nonce):void 0,type:typeof e.type<"u"?Eue[e.type]:void 0,value:typeof e.value<"u"?Xe(e.value):void 0}}const _ue=M_("transactionRequest",Xg);function Jg(e){const{account:t,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:o,to:a}=e,i=t?Ta(t):void 0;if(i&&!Hn(i.address))throw new Wo({address:i.address});if(a&&!Hn(a))throw new Wo({address:a});if(typeof n<"u"&&(typeof r<"u"||typeof o<"u"))throw new cue;if(r&&r>2n**256n-1n)throw new Gu({maxFeePerGas:r});if(o&&r&&o>r)throw new eg({maxFeePerGas:r,maxPriorityFeePerGas:o})}let xue=class extends de{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}},ej=class extends de{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}},Cue=class extends de{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${wo(t)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}},yq=class extends de{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.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}};const bq={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function L_(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?pr(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?pr(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?bq[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 t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof t.v=="bigint"){if(t.v===0n||t.v===27n)return 0;if(t.v===1n||t.v===28n)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),t.type==="legacy"&&(delete t.accessList,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),t.type==="eip2930"&&(delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t}const vq=M_("transaction",L_);function tj(e){var n;const t=(n=e.transactions)==null?void 0:n.map(r=>typeof r=="string"?r:L_(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):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:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const wq=M_("block",tj);async function al(e,{blockHash:t,blockNumber:n,blockTag:r,includeTransactions:o}={}){var u,d,f;const a=r??"latest",i=o??!1,s=n!==void 0?Xe(n):void 0;let c=null;if(t?c=await e.request({method:"eth_getBlockByHash",params:[t,i]}):c=await e.request({method:"eth_getBlockByNumber",params:[s||a,i]}),!c)throw new yq({blockHash:t,blockNumber:n});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.block)==null?void 0:f.format)||tj)(c)}async function nj(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function Sue(e,t){return Eq(e,t)}async function Eq(e,t){var a,i,s;const{block:n,chain:r=e.chain,request:o}=t||{};if(typeof((a=r==null?void 0:r.fees)==null?void 0:a.defaultPriorityFee)=="function"){const c=n||await Fe(e,al,"getBlock")({});return r.fees.defaultPriorityFee({block:c,client:e,request:o})}if(typeof((i=r==null?void 0:r.fees)==null?void 0:i.defaultPriorityFee)<"u")return(s=r==null?void 0:r.fees)==null?void 0:s.defaultPriorityFee;try{const c=await e.request({method:"eth_maxPriorityFeePerGas"});return wn(c)}catch{const[c,l]=await Promise.all([n?Promise.resolve(n):Fe(e,al,"getBlock")({}),Fe(e,nj,"getGasPrice")({})]);if(typeof c.baseFeePerGas!="bigint")throw new ej;const u=l-c.baseFeePerGas;return u<0n?0n:u}}async function Tue(e,t){return d5(e,t)}async function d5(e,t){var f,h;const{block:n,chain:r=e.chain,request:o,type:a="eip1559"}=t||{},i=await(async()=>{var m,p;return typeof((m=r==null?void 0:r.fees)==null?void 0:m.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:e,request:o}):((p=r==null?void 0:r.fees)==null?void 0:p.baseFeeMultiplier)??1.2})();if(i<1)throw new xue;const c=10**(((f=i.toString().split(".")[1])==null?void 0:f.length)??0),l=m=>m*BigInt(Math.ceil(i*c))/BigInt(c),u=n||await Fe(e,al,"getBlock")({});if(typeof((h=r==null?void 0:r.fees)==null?void 0:h.estimateFeesPerGas)=="function")return r.fees.estimateFeesPerGas({block:n,client:e,multiply:l,request:o,type:a});if(a==="eip1559"){if(typeof u.baseFeePerGas!="bigint")throw new ej;const m=o!=null&&o.maxPriorityFeePerGas?o.maxPriorityFeePerGas:await Eq(e,{block:u,chain:r,request:o}),p=l(u.baseFeePerGas);return{maxFeePerGas:(o==null?void 0:o.maxFeePerGas)??p+m,maxPriorityFeePerGas:m}}return{gasPrice:(o==null?void 0:o.gasPrice)??l(await Fe(e,nj,"getGasPrice")({}))}}async function _q(e,{address:t,blockTag:n="latest",blockNumber:r}){const o=await e.request({method:"eth_getTransactionCount",params:[t,r?Xe(r):n]});return pr(o)}function xq(e){if(e.type)return e.type;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 uue({transaction:e})}async function U_(e,t){const{account:n=e.account,chain:r,gas:o,nonce:a,type:i}=t;if(!n)throw new om;const s=Ta(n),c=await Fe(e,al,"getBlock")({blockTag:"latest"}),l={...t,from:s.address};if(typeof a>"u"&&(l.nonce=await Fe(e,_q,"getTransactionCount")({address:s.address,blockTag:"pending"})),typeof i>"u")try{l.type=xq(l)}catch{l.type=typeof c.baseFeePerGas=="bigint"?"eip1559":"legacy"}if(l.type==="eip1559"){const{maxFeePerGas:u,maxPriorityFeePerGas:d}=await d5(e,{block:c,chain:r,request:l});if(typeof t.maxPriorityFeePerGas>"u"&&t.maxFeePerGas&&t.maxFeePerGas"u"&&(l.gas=await Fe(e,rj,"estimateGas")({...l,account:{address:s.address,type:"json-rpc"}})),Jg(l),l}async function rj(e,t){var o,a,i;const n=t.account??e.account;if(!n)throw new om({docsPath:"/docs/actions/public/estimateGas"});const r=Ta(n);try{const{accessList:s,blockNumber:c,blockTag:l,data:u,gas:d,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:p,to:b,value:v,...g}=r.type==="local"?await U_(e,t):t,_=(c?Xe(c):void 0)||l;Jg(t);const C=(i=(a=(o=e.chain)==null?void 0:o.formatters)==null?void 0:a.transactionRequest)==null?void 0:i.format,E=(C||Xg)({...Zk(g,{format:C}),from:r.address,accessList:s,data:u,gas:d,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:p,to:b,value:v}),T=await e.request({method:"eth_estimateGas",params:_?[E,_]:[E]});return BigInt(T)}catch(s){throw wue(s,{...t,account:r,chain:e.chain})}}async function Cq(e,{abi:t,address:n,args:r,functionName:o,...a}){const i=oi({abi:t,args:r,functionName:o});try{return await Fe(e,rj,"estimateGas")({data:i,to:n,...a})}catch(s){const c=a.account?Ta(a.account):void 0;throw Z0(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:c==null?void 0:c.address})}}const SO="/docs/contract/decodeEventLog";function Zg({abi:e,data:t,strict:n,topics:r}){const o=n??!0,[a,...i]=r;if(!a)throw new Fce({docsPath:SO});const s=e.find(m=>m.type==="event"&&a===zk(xs(m)));if(!(s&&"name"in s)||s.type!=="event")throw new Mce(a,{docsPath:SO});const{name:c,inputs:l}=s,u=l==null?void 0:l.some(m=>!("name"in m&&m.name));let d=u?[]:{};const f=l.filter(m=>"indexed"in m&&m.indexed);for(let m=0;m!("indexed"in m&&m.indexed));if(h.length>0){if(t&&t!=="0x")try{const m=B_(h,t);if(m)if(u)d=[...d,...m];else for(let p=0;p0?d:void 0}}function Aue({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(B_([e],t)||[])[0]}function _a(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,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}:{}}}async function oj(e,{address:t,blockHash:n,fromBlock:r,toBlock:o,event:a,events:i,args:s,strict:c}={}){const l=c??!1,u=i??(a?[a]:void 0);let d=[];u&&(d=[u.flatMap(h=>Yg({abi:[h],eventName:h.name,args:s}))],a&&(d=d[0]));let f;return 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"?Xe(r):r,toBlock:typeof o=="bigint"?Xe(o):o}]}),f.map(h=>{var m;try{const{eventName:p,args:b}=u?Zg({abi:u,data:h.data,topics:h.topics,strict:l}):{eventName:void 0,args:void 0};return _a(h,{args:b,eventName:p})}catch(p){let b,v;if(p instanceof Hu||p instanceof nm){if(l)return;b=p.abiItem.name,v=(m=p.abiItem.inputs)==null?void 0:m.some(g=>!("name"in g&&g.name))}return _a(h,{args:v?[]:{},eventName:b})}}).filter(Boolean)}async function aj(e,{abi:t,address:n,args:r,blockHash:o,eventName:a,fromBlock:i,toBlock:s,strict:c}){const l=a?Kg({abi:t,name:a}):void 0,u=l?void 0:t.filter(d=>d.type==="event");return Fe(e,oj,"getLogs")({address:n,args:r,blockHash:o,event:l,events:u,fromBlock:i,toBlock:s,strict:c})}const AS="/docs/contract/decodeFunctionResult";function am({abi:e,args:t,functionName:n,data:r}){let o=e[0];if(n&&(o=Kg({abi:e,args:t,name:n}),!o))throw new Ew(n,{docsPath:AS});if(o.type!=="function")throw new Ew(void 0,{docsPath:AS});if(!o.outputs)throw new Lce(o.name,{docsPath:AS});const a=B_(o.outputs,r);if(a&&a.length>1)return a;if(a&&a.length===1)return a[0]}const f5=[{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"}],Sq=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],Tq=[...Sq,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],Due=[...Sq,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],TO=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],AO=[{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"}]}],kue=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}],jue="0x82ad56cb";let h5=class extends de{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.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}},Pue=class extends de{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}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}},Iue=class extends de{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(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}},Aq=class extends de{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}},$_=class extends de{constructor({chainId:t}){super(`Chain ID "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}};function im({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 h5({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new h5({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}function Oue(e,{docsPath:t,...n}){const r=(()=>{const o=Jk(e,n);return o instanceof F_?e:o})();return new JH(r,{docsPath:t,...n})}const DS=new Map;function ij({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){const a=async()=>{const u=c();i();const d=u.map(({args:f})=>f);d.length!==0&&e(d).then(f=>{var h;o&&Array.isArray(f)&&f.sort(o);for(let m=0;m{var h;for(let m=0;mDS.delete(t),s=()=>c().map(({args:u})=>u),c=()=>DS.get(t)||[],l=u=>DS.set(t,[...c(),u]);return{flush:i,async schedule(u){const d={},f=new Promise((p,b)=>{d.resolve=p,d.reject=b});return(n==null?void 0:n([...s(),u]))&&a(),c().length>0?(l({args:u,pendingPromise:d}),f):(l({args:u,pendingPromise:d}),setTimeout(a,r),f)}}}async function z_(e,t){var v,g,w,_;const{account:n=e.account,batch:r=!!((v=e.batch)!=null&&v.multicall),blockNumber:o,blockTag:a="latest",accessList:i,data:s,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:h,value:m,...p}=t,b=n?Ta(n):void 0;try{Jg(t);const x=(o?Xe(o):void 0)||a,E=(_=(w=(g=e.chain)==null?void 0:g.formatters)==null?void 0:w.transactionRequest)==null?void 0:_.format,k=(E||Xg)({...Zk(p,{format:E}),from:b==null?void 0:b.address,accessList:i,data:s,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:h,value:m});if(r&&Rue({request:k}))try{return await Nue(e,{...k,blockNumber:o,blockTag:a})}catch(R){if(!(R instanceof Aq)&&!(R instanceof h5))throw R}const D=await e.request({method:"eth_call",params:x?[k,x]:[k]});return D==="0x"?{data:void 0}:{data:D}}catch(C){const x=Bue(C),{offchainLookup:E,offchainLookupSignature:T}=await me(async()=>{const{offchainLookup:k,offchainLookupSignature:D}=await import("./ccip-CIUSMbP3.js");return{offchainLookup:k,offchainLookupSignature:D}},[],import.meta.url);if((x==null?void 0:x.slice(0,10))===T&&h)return{data:await E(e,{data:x,to:h})};throw Oue(C,{...t,account:b,chain:e.chain})}}function Rue({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith(jue)||!n||Object.values(r).filter(o=>typeof o<"u").length>0)}async function Nue(e,t){var p;const{batchSize:n=1024,wait:r=0}=typeof((p=e.batch)==null?void 0:p.multicall)=="object"?e.batch.multicall:{},{blockNumber:o,blockTag:a="latest",data:i,multicallAddress:s,to:c}=t;let l=s;if(!l){if(!e.chain)throw new Aq;l=im({blockNumber:o,chain:e.chain,contract:"multicall3"})}const d=(o?Xe(o):void 0)||a,{schedule:f}=ij({id:`${e.uid}.${d}`,wait:r,shouldSplitBatch(b){return b.reduce((g,{data:w})=>g+(w.length-2),0)>n*2},fn:async b=>{const v=b.map(_=>({allowFailure:!0,callData:_.data,target:_.to})),g=oi({abi:f5,args:[v],functionName:"aggregate3"}),w=await e.request({method:"eth_call",params:[{data:g,to:l},d]});return am({abi:f5,args:[v],functionName:"aggregate3",data:w||"0x"})}}),[{returnData:h,success:m}]=await f({data:i,to:c});if(!m)throw new Qk({data:h});return h==="0x"?{data:void 0}:{data:h}}function Bue(e){if(!(e instanceof de))return;const t=e.walk();return typeof t.data=="object"?t.data.data:t.data}async function Ss(e,{abi:t,address:n,args:r,functionName:o,...a}){const i=oi({abi:t,args:r,functionName:o});try{const{data:s}=await Fe(e,z_,"call")({data:i,to:n,...a});return am({abi:t,args:r,functionName:o,data:s||"0x"})}catch(s){throw Z0(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/readContract",functionName:o})}}async function Dq(e,{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}){const s=i.account?Ta(i.account):void 0,c=oi({abi:t,args:r,functionName:a});try{const{data:l}=await Fe(e,z_,"call")({batch:!1,data:`${c}${o?o.replace("0x",""):""}`,to:n,...i});return{result:am({abi:t,args:r,functionName:a,data:l||"0x"}),request:{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}}}catch(l){throw Z0(l,{abi:t,address:n,args:r,docsPath:"/docs/contract/simulateContract",functionName:a,sender:s==null?void 0:s.address})}}const kS=new Map,DO=new Map;let Fue=0;function sm(e,t,n){const r=++Fue,o=()=>kS.get(e)||[],a=()=>{const u=o();kS.set(e,u.filter(d=>d.id!==r))},i=()=>{const u=DO.get(e);o().length===1&&u&&u(),a()},s=o();if(kS.set(e,[...s,{id:r,fns:t}]),s&&s.length>0)return i;const c={};for(const u in t)c[u]=(...d)=>{var h,m;const f=o();if(f.length!==0)for(const p of f)(m=(h=p.fns)[u])==null||m.call(h,...d)};const l=n(c);return typeof l=="function"&&DO.set(e,l),i}async function Sw(e){return new Promise(t=>setTimeout(t,e))}function ey(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let o=!0;const a=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:a}));const c=await(n==null?void 0:n(s))??r;await Sw(c);const l=async()=>{o&&(await e({unpoll:a}),await Sw(r),l())};l()})(),a}const Mue=new Map,Lue=new Map;function Uue(e){const t=(o,a)=>({clear:()=>a.delete(o),get:()=>a.get(o),set:i=>a.set(o,i)}),n=t(e,Mue),r=t(e,Lue);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function $ue(e,{cacheKey:t,cacheTime:n=1/0}){const r=Uue(t),o=r.response.get();if(o&&n>0&&new Date().getTime()-o.created.getTime()`blockNumber.${e}`;async function ty(e,{cacheTime:t=e.cacheTime,maxAge:n}={}){const r=await $ue(()=>e.request({method:"eth_blockNumber"}),{cacheKey:zue(e.uid),cacheTime:n??t});return BigInt(r)}async function H_(e,{filter:t}){const n="strict"in t&&t.strict;return(await t.request({method:"eth_getFilterChanges",params:[t.id]})).map(o=>{var a;if(typeof o=="string")return o;try{const{eventName:i,args:s}="abi"in t&&t.abi?Zg({abi:t.abi,data:o.data,topics:o.topics,strict:n}):{eventName:void 0,args:void 0};return _a(o,{args:s,eventName:i})}catch(i){let s,c;if(i instanceof Hu||i instanceof nm){if("strict"in t&&t.strict)return;s=i.abiItem.name,c=(a=i.abiItem.inputs)==null?void 0:a.some(l=>!("name"in l&&l.name))}return _a(o,{args:c?[]:{},eventName:s})}}).filter(Boolean)}async function q_(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}function kq(e,{abi:t,address:n,args:r,batch:o=!0,eventName:a,onError:i,onLogs:s,poll:c,pollingInterval:l=e.pollingInterval,strict:u}){return(typeof c<"u"?c:e.transport.type!=="webSocket")?(()=>{const m=Qr(["watchContractEvent",n,r,o,e.uid,a,l]),p=u??!1;return sm(m,{onLogs:s,onError:i},b=>{let v,g,w=!1;const _=ey(async()=>{var C;if(!w){try{g=await Fe(e,Gk,"createContractEventFilter")({abi:t,address:n,args:r,eventName:a,strict:p})}catch{}w=!0;return}try{let x;if(g)x=await Fe(e,H_,"getFilterChanges")({filter:g});else{const E=await Fe(e,ty,"getBlockNumber")({});v&&v!==E?x=await Fe(e,aj,"getContractEvents")({abi:t,address:n,args:r,eventName:a,fromBlock:v+1n,toBlock:E,strict:p}):x=[],v=E}if(x.length===0)return;if(o)b.onLogs(x);else for(const E of x)b.onLogs([E])}catch(x){g&&x instanceof J0&&(w=!1),(C=b.onError)==null||C.call(b,x)}},{emitOnBegin:!0,interval:l});return async()=>{g&&await Fe(e,q_,"uninstallFilter")({filter:g}),_()}})})():(()=>{let m=!0,p=()=>m=!1;return(async()=>{try{const b=a?Yg({abi:t,eventName:a,args:r}):[],{unsubscribe:v}=await e.transport.subscribe({params:["logs",{address:n,topics:b}],onData(g){var _;if(!m)return;const w=g.result;try{const{eventName:C,args:x}=Zg({abi:t,data:w.data,topics:w.topics,strict:u}),E=_a(w,{args:x,eventName:C});s([E])}catch(C){let x,E;if(C instanceof Hu||C instanceof nm){if(u)return;x=C.abiItem.name,E=(_=C.abiItem.inputs)==null?void 0:_.some(k=>!("name"in k&&k.name))}const T=_a(w,{args:E?[]:{},eventName:x});s([T])}},onError(g){i==null||i(g)}});p=v,m||p()}catch(b){i==null||i(b)}})(),p})()}function jq({chain:e,currentChainId:t}){if(!e)throw new Iue;if(t!==e.id)throw new Pue({chain:e,currentChainId:t})}function Hue(e,{docsPath:t,...n}){const r=(()=>{const o=Jk(e,n);return o instanceof F_?e:o})();return new fue(r,{docsPath:t,...n})}async function tg(e){const t=await e.request({method:"eth_chainId"});return pr(t)}async function sj(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]})}async function cj(e,t){var p,b,v,g;const{account:n=e.account,chain:r=e.chain,accessList:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,...h}=t;if(!n)throw new om({docsPath:"/docs/actions/wallet/sendTransaction"});const m=Ta(n);try{Jg(t);let w;if(r!==null&&(w=await Fe(e,tg,"getChainId")({}),jq({currentChainId:w,chain:r})),m.type==="local"){const E=await Fe(e,U_,"prepareTransactionRequest")({account:m,accessList:o,chain:r,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,...h});w||(w=await Fe(e,tg,"getChainId")({}));const T=(p=r==null?void 0:r.serializers)==null?void 0:p.transaction,k=await m.signTransaction({...E,chainId:w},{serializer:T});return await Fe(e,sj,"sendRawTransaction")({serializedTransaction:k})}const _=(g=(v=(b=e.chain)==null?void 0:b.formatters)==null?void 0:v.transactionRequest)==null?void 0:g.format,x=(_||Xg)({...Zk(h,{format:_}),accessList:o,data:a,from:m.address,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f});return await e.request({method:"eth_sendTransaction",params:[x]})}catch(w){throw Hue(w,{...t,account:m,chain:t.chain||void 0})}}async function Pq(e,{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}){const s=oi({abi:t,args:r,functionName:a});return await Fe(e,cj,"sendTransaction")({data:`${s}${o?o.replace("0x",""):""}`,to:n,...i})}function que({abi:e,address:t,publicClient:n,walletClient:r}){const o=n!=null,a=r!=null,i={};let s=!1,c=!1,l=!1;for(const u of e)if(u.type==="function"?u.stateMutability==="view"||u.stateMutability==="pure"?s=!0:c=!0:u.type==="event"&&(l=!0),s&&c&&l)break;return o&&(s&&(i.read=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=Qb(f);return Fe(n,Ss,"readContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),c&&(i.simulate=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=Qb(f);return Fe(n,Dq,"simulateContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),l&&(i.createEventFilter=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=jS(f,h);return Fe(n,Gk,"createContractEventFilter")({abi:e,address:t,eventName:d,args:m,...p})}}}),i.getEvents=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=jS(f,h);return Fe(n,aj,"getContractEvents")({abi:e,address:t,eventName:d,args:m,...p})}}}),i.watchEvent=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=jS(f,h);return Fe(n,kq,"watchContractEvent")({abi:e,address:t,eventName:d,args:m,...p})}}}))),a&&c&&(i.write=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=Qb(f);return Fe(r,Pq,"writeContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),(o||a)&&c&&(i.estimateGas=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=Qb(f);return Fe(n??r,Cq,"estimateContractGas")({abi:e,address:t,functionName:d,args:h,...m,account:m.account??r.account})}}})),i.address=t,i.abi=e,i}function Qb(e){const t=e.length&&Array.isArray(e[0]),n=t?e[0]:[],r=(t?e[1]:e[0])??{};return{args:n,options:r}}function jS(e,t){let n=!1;Array.isArray(e[0])?n=!0:e.length===1?n=t.inputs.some(a=>a.indexed):e.length===2&&(n=!0);const r=n?e[0]:void 0,o=(n?e[1]:e[0])??{};return{args:r,options:o}}async function Wue(e,{chain:t}){const{id:n,name:r,nativeCurrency:o,rpcUrls:a,blockExplorers:i}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:Xe(n),chainName:r,nativeCurrency:o,rpcUrls:a.default.http,blockExplorerUrls:i?Object.values(i).map(({url:s})=>s):void 0}]})}const m5=256;let Xb=m5,Jb;function Gue(e=11){if(!Jb||Xb+e>m5*2){Jb="",Xb=0;for(let t=0;t{const v=b(p);for(const w in h)delete v[w];const g={...p,...v};return Object.assign(g,{extend:m(g)})}}return Object.assign(h,{extend:m(h)})}function p5(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((o,a)=>{const i=async({count:s=0}={})=>{const c=async({error:l})=>{const u=typeof t=="function"?t({count:s,error:l}):t;u&&await Sw(u),i({count:s+1})};try{const l=await e();o(l)}catch(l){if(s"code"in e?e.code!==-1&&e.code!==-32004&&e.code!==-32005&&e.code!==-32042&&e.code!==-32603:e instanceof g0&&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:!1;function Vue(e,{retryDelay:t=150,retryCount:n=3}={}){return async r=>p5(async()=>{try{return await e(r)}catch(o){const a=o;switch(a.code){case qA.code:throw new qA(a);case WA.code:throw new WA(a);case GA.code:throw new GA(a);case VA.code:throw new VA(a);case Cw.code:throw new Cw(a);case J0.code:throw new J0(a);case KA.code:throw new KA(a);case gh.code:throw new gh(a);case YA.code:throw new YA(a);case QA.code:throw new QA(a);case XA.code:throw new XA(a);case JA.code:throw new JA(a);case dr.code:throw new dr(a);case ZA.code:throw new ZA(a);case e5.code:throw new e5(a);case t5.code:throw new t5(a);case n5.code:throw new n5(a);case ol.code:throw new ol(a);case 5e3:throw new dr(a);default:throw o instanceof de?o:new yue(a)}}},{delay:({count:o,error:a})=>{var i;if(a&&a instanceof g0){const s=(i=a==null?void 0:a.headers)==null?void 0:i.get("Retry-After");if(s!=null&&s.match(/\d/))return parseInt(s)*1e3}return~~(1<!Oq(o)})}function W_({key:e,name:t,request:n,retryCount:r=3,retryDelay:o=150,timeout:a,type:i},s){return{config:{key:e,name:t,request:n,retryCount:r,retryDelay:o,timeout:a,type:i},request:Vue(n,{retryCount:r,retryDelay:o}),value:s}}function ny(e,t={}){const{key:n="custom",name:r="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>W_({key:n,name:r,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})}function kO(e,t={}){const{key:n="fallback",name:r="Fallback",rank:o=!1,retryCount:a,retryDelay:i}=t;return({chain:s,pollingInterval:c=4e3,timeout:l})=>{let u=e,d=()=>{};const f=W_({key:n,name:r,async request({method:h,params:m}){const p=async(b=0)=>{const v=u[b]({chain:s,retryCount:0,timeout:l});try{const g=await v.request({method:h,params:m});return d({method:h,params:m,response:g,transport:v,status:"success"}),g}catch(g){if(d({error:g,method:h,params:m,transport:v,status:"error"}),Oq(g)||b===u.length-1)throw g;return p(b+1)}};return p()},retryCount:a,retryDelay:i,type:"fallback"},{onResponse:h=>d=h,transports:u.map(h=>h({chain:s,retryCount:0}))});if(o){const h=typeof o=="object"?o:{};Kue({chain:s,interval:h.interval??c,onTransports:m=>u=m,sampleCount:h.sampleCount,timeout:h.timeout,transports:u,weights:h.weights})}return f}}function Kue({chain:e,interval:t=4e3,onTransports:n,sampleCount:r=10,timeout:o=1e3,transports:a,weights:i={}}){const{stability:s=.7,latency:c=.3}=i,l=[],u=async()=>{const d=await Promise.all(a.map(async m=>{const p=m({chain:e,retryCount:0,timeout:o}),b=Date.now();let v,g;try{await p.request({method:"net_listening"}),g=1}catch{g=0}finally{v=Date.now()}return{latency:v-b,success:g}}));l.push(d),l.length>r&&l.shift();const f=Math.max(...l.map(m=>Math.max(...m.map(({latency:p})=>p)))),h=a.map((m,p)=>{const b=l.map(C=>C[p].latency),g=1-b.reduce((C,x)=>C+x,0)/b.length/f,w=l.map(C=>C[p].success),_=w.reduce((C,x)=>C+x,0)/w.length;return _===0?[0,p]:[c*g+s*_,p]}).sort((m,p)=>p[0]-m[0]);n(h.map(([,m])=>a[m])),await Sw(t),u()};u()}let Rq=class extends de{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}};function Yue(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const g5=Yue(),Que=Object.freeze(Object.defineProperty({__proto__:null,WebSocket:g5},Symbol.toStringTag,{value:"Module"}));function Nq(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:r}){return new Promise((o,a)=>{(async()=>{let i;try{const s=new AbortController;n>0&&(i=setTimeout(()=>{r?s.abort():a(t)},n)),o(await e({signal:s==null?void 0:s.signal}))}catch(s){s.name==="AbortError"&&a(t),a(s)}finally{clearTimeout(i)}})()})}let y5=0;async function Xue(e,{body:t,fetchOptions:n={},timeout:r=1e4}){var s;const{headers:o,method:a,signal:i}=n;try{const c=await Nq(async({signal:u})=>await fetch(e,{...n,body:Array.isArray(t)?Qr(t.map(f=>({jsonrpc:"2.0",id:f.id??y5++,...f}))):Qr({jsonrpc:"2.0",id:t.id??y5++,...t}),headers:{...o,"Content-Type":"application/json"},method:a||"POST",signal:i||(r>0?u:void 0)}),{errorInstance:new HA({body:t,url:e}),timeout:r,signal:!0});let l;if((s=c.headers.get("Content-Type"))!=null&&s.startsWith("application/json")?l=await c.json():l=await c.text(),!c.ok)throw new g0({body:t,details:Qr(l.error)||c.statusText,headers:c.headers,status:c.status,url:e});return l}catch(c){throw c instanceof g0||c instanceof HA?c:new g0({body:t,details:c.message,url:e})}}const PS=new Map;async function IS(e){let t=PS.get(e);if(t)return t;const{schedule:n}=ij({id:e,fn:async()=>{const a=new g5(e),i=new Map,s=new Map,c=({data:u})=>{const d=JSON.parse(u),f=d.method==="eth_subscription",h=f?d.params.subscription:d.id,m=f?s:i,p=m.get(h);p&&p({data:u}),f||m.delete(h)},l=()=>{PS.delete(e),a.removeEventListener("close",l),a.removeEventListener("message",c)};return a.addEventListener("close",l),a.addEventListener("message",c),a.readyState===g5.CONNECTING&&await new Promise((u,d)=>{a&&(a.onopen=u,a.onerror=d)}),t=Object.assign(a,{requests:i,subscriptions:s}),PS.set(e,t),[t]}}),[r,[o]]=await n();return o}function Jue(e,{body:t,onResponse:n}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new pue({body:t,url:e.url,details:"Socket is closed."});const r=y5++,o=({data:a})=>{var s;const i=JSON.parse(a);typeof i.id=="number"&&r!==i.id||(n==null||n(i),t.method==="eth_subscribe"&&typeof i.result=="string"&&e.subscriptions.set(i.result,o),t.method==="eth_unsubscribe"&&e.subscriptions.delete((s=t.params)==null?void 0:s[0]))};return e.requests.set(r,o),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:r})),e}async function Zue(e,{body:t,timeout:n=1e4}){return Nq(()=>new Promise(r=>Qf.webSocket(e,{body:t,onResponse:r})),{errorInstance:new HA({body:t,url:e.url}),timeout:n})}const Qf={http:Xue,webSocket:Jue,webSocketAsync:Zue};function yh(e,t={}){const{batch:n,fetchOptions:r,key:o="http",name:a="HTTP JSON-RPC",retryDelay:i}=t;return({chain:s,retryCount:c,timeout:l})=>{const{batchSize:u=1e3,wait:d=0}=typeof n=="object"?n:{},f=t.retryCount??c,h=l??t.timeout??1e4,m=e||(s==null?void 0:s.rpcUrls.default.http[0]);if(!m)throw new Rq;return W_({key:o,name:a,async request({method:p,params:b}){const v={method:p,params:b},{schedule:g}=ij({id:`${e}`,wait:d,shouldSplitBatch(x){return x.length>u},fn:x=>Qf.http(m,{body:x,fetchOptions:r,timeout:h}),sort:(x,E)=>x.id-E.id}),w=async x=>n?g(x):[await Qf.http(m,{body:x,fetchOptions:r,timeout:h})],[{error:_,result:C}]=await w(v);if(_)throw new Xk({body:v,error:_,url:m});return C},retryCount:f,retryDelay:i,timeout:h,type:"http"},{fetchOptions:r,url:e})}}function lj(e,t){var r,o,a;if(!(e instanceof de))return!1;const n=e.walk(i=>i instanceof zA);return n instanceof zA?!!(((r=n.data)==null?void 0:r.errorName)==="ResolverNotFound"||((o=n.data)==null?void 0:o.errorName)==="ResolverWildcardNotSupported"||(a=n.reason)!=null&&a.includes("Wildcard on non-extended resolvers is not supported")||t==="reverse"&&n.reason===KH[50]):!1}function Bq(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return Ea(t)?t:null}function l1(e){let t=new Uint8Array(32).fill(0);if(!e)return qu(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const o=Bq(n[r]),a=o?rl(o):Or(ds(n[r]),"bytes");t=Or(Cs([t,a]),"bytes")}return qu(t)}function ede(e){return`[${e.slice(2)}]`}function tde(e){const t=new Uint8Array(32).fill(0);return e?Bq(e)||Or(ds(e)):qu(t)}function G_(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const n=new Uint8Array(ds(t).byteLength+2);let r=0;const o=t.split(".");for(let a=0;a255&&(i=ds(ede(tde(o[a])))),n[r]=i.length,n.set(i,r+1),r+=i.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}async function nde(e,{blockNumber:t,blockTag:n,coinType:r,name:o,universalResolverAddress:a}){let i=a;if(!i){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=im({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s=oi({abi:AO,functionName:"addr",...r!=null?{args:[l1(o),BigInt(r)]}:{args:[l1(o)]}}),c=await Fe(e,Ss,"readContract")({address:i,abi:Tq,functionName:"resolve",args:[rt(G_(o)),s],blockNumber:t,blockTag:n});if(c[0]==="0x")return null;const l=am({abi:AO,args:r!=null?[l1(o),BigInt(r)]:void 0,functionName:"addr",data:c[0]});return l==="0x"||Za(l)==="0x00"?null:l}catch(s){if(lj(s,"resolve"))return null;throw s}}let rde=class extends de{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)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}},hp=class extends de{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}},uj=class extends de{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.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}},ode=class extends de{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}};const ade=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,ide=/^(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,})(\/(?[\w\-.]+))?(?\/.*)?$/,sde=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,cde=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function lde(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"||!globalThis.hasOwnProperty("Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}function jO(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function Fq({uri:e,gatewayUrls:t}){const n=sde.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=jO(t==null?void 0:t.ipfs,"https://ipfs.io"),o=jO(t==null?void 0:t.arweave,"https://arweave.net"),a=e.match(ade),{protocol:i,subpath:s,target:c,subtarget:l=""}=(a==null?void 0:a.groups)||{},u=i==="ipns:/"||s==="ipns/",d=i==="ipfs:/"||s==="ipfs/"||ide.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(cde,"");if(f.startsWith("o.json());return await dj({gatewayUrls:e,uri:Mq(n)})}catch{throw new uj({uri:t})}}async function dj({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=Fq({uri:t,gatewayUrls:e});if(r||await lde(n))return n;throw new uj({uri:t})}function dde(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,o]=t.split("/"),[a,i]=n.split(":"),[s,c]=r.split(":");if(!a||a.toLowerCase()!=="eip155")throw new hp({reason:"Only EIP-155 supported"});if(!i)throw new hp({reason:"Chain ID not found"});if(!c)throw new hp({reason:"Contract address not found"});if(!o)throw new hp({reason:"Token ID not found"});if(!s)throw new hp({reason:"ERC namespace not found"});return{chainID:parseInt(i),namespace:s.toLowerCase(),contractAddress:c,tokenID:o}}async function fde(e,{nft:t}){if(t.namespace==="erc721")return Ss(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 Ss(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 ode({namespace:t.namespace})}async function hde(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?mde(e,{gatewayUrls:t,record:n}):dj({uri:n,gatewayUrls:t})}async function mde(e,{gatewayUrls:t,record:n}){const r=dde(n),o=await fde(e,{nft:r}),{uri:a,isOnChain:i,isEncoded:s}=Fq({uri:o,gatewayUrls:t});if(i&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const l=s?atob(a.replace("data:application/json;base64,","")):a,u=JSON.parse(l);return dj({uri:Mq(u),gatewayUrls:t})}let c=r.tokenID;return r.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),ude({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,c)})}async function Lq(e,{blockNumber:t,blockTag:n,name:r,key:o,universalResolverAddress:a}){let i=a;if(!i){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=im({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s=await Fe(e,Ss,"readContract")({address:i,abi:Tq,functionName:"resolve",args:[rt(G_(r)),oi({abi:TO,functionName:"text",args:[l1(r),o]})],blockNumber:t,blockTag:n});if(s[0]==="0x")return null;const c=am({abi:TO,functionName:"text",data:s[0]});return c===""?null:c}catch(s){if(lj(s,"resolve"))return null;throw s}}async function pde(e,{blockNumber:t,blockTag:n,gatewayUrls:r,name:o,universalResolverAddress:a}){const i=await Fe(e,Lq,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:o,universalResolverAddress:a});if(!i)return null;try{return await hde(e,{record:i,gatewayUrls:r})}catch{return null}}async function gde(e,{address:t,blockNumber:n,blockTag:r,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=im({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}const i=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const[s,c]=await Fe(e,Ss,"readContract")({address:a,abi:Due,functionName:"reverse",args:[rt(G_(i))],blockNumber:n,blockTag:r});return t.toLowerCase()!==c.toLowerCase()?null:s}catch(s){if(lj(s,"reverse"))return null;throw s}}async function yde(e,{blockNumber:t,blockTag:n,name:r,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=im({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}const[i]=await Fe(e,Ss,"readContract")({address:a,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[rt(G_(r))],blockNumber:t,blockTag:n});return i}async function bde(e){const t=N_(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}async function Uq(e,{address:t,args:n,event:r,events:o,fromBlock:a,strict:i,toBlock:s}={}){const c=o??(r?[r]:void 0),l=N_(e,{method:"eth_newFilter"});let u=[];c&&(u=[c.flatMap(f=>Yg({abi:[f],eventName:f.name,args:n}))],r&&(u=u[0]));const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?Xe(a):a,toBlock:typeof s=="bigint"?Xe(s):s,...u.length?{topics:u}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:a,id:d,request:l(d),strict:i,toBlock:s,type:"event"}}async function $q(e){const t=N_(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}async function vde(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n?Xe(n):void 0,a=await e.request({method:"eth_getBalance",params:[t,o||r]});return BigInt(a)}async function wde(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){const o=n!==void 0?Xe(n):void 0;let a;return t?a=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):a=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[o||r]}),pr(a)}async function Ede(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n!==void 0?Xe(n):void 0,a=await e.request({method:"eth_getCode",params:[t,o||r]});if(a!=="0x")return a}function _de(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 xde(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:o}){const a=n?Xe(n):void 0,i=await e.request({method:"eth_feeHistory",params:[Xe(t),a||r,o]});return _de(i)}async function Cde(e,{filter:t}){const n=t.strict??!1;return(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(o=>{var a;try{const{eventName:i,args:s}="abi"in t&&t.abi?Zg({abi:t.abi,data:o.data,topics:o.topics,strict:n}):{eventName:void 0,args:void 0};return _a(o,{args:s,eventName:i})}catch(i){let s,c;if(i instanceof Hu||i instanceof nm){if("strict"in t&&t.strict)return;s=i.abiItem.name,c=(a=i.abiItem.inputs)==null?void 0:a.some(l=>!("name"in l&&l.name))}return _a(o,{args:c?[]:{},eventName:s})}}).filter(Boolean)}function Er(e,t={}){const{fees:n=e.fees,formatters:r=e.formatters,serializers:o=e.serializers}=t;return{...e,fees:n,formatters:r,serializers:o}}const Sde=/^(.*)\[([0-9]*)\]$/,zq=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Hq=/^(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 Tde({domain:e,message:t,primaryType:n,types:r}){const o=typeof e>"u"?{}:e,a={EIP712Domain:Yq({domain:o}),...r};Kq({domain:o,message:t,primaryType:n,types:a});const i=["0x1901"];return o&&i.push(Ade({domain:o,types:a})),n!=="EIP712Domain"&&i.push(qq({data:t,primaryType:n,types:a})),Or(Cs(i))}function Ade({domain:e,types:t}){return qq({data:e,primaryType:"EIP712Domain",types:t})}function qq({data:e,primaryType:t,types:n}){const r=Wq({data:e,primaryType:t,types:n});return Or(r)}function Wq({data:e,primaryType:t,types:n}){const r=[{type:"bytes32"}],o=[Dde({primaryType:t,types:n})];for(const a of n[t]){const[i,s]=Vq({types:n,name:a.name,type:a.type,value:e[a.name]});r.push(i),o.push(s)}return Vg(r,o)}function Dde({primaryType:e,types:t}){const n=rt(kde({primaryType:e,types:t}));return Or(n)}function kde({primaryType:e,types:t}){let n="";const r=Gq({primaryType:e,types:t});r.delete(e);const o=[e,...Array.from(r).sort()];for(const a of o)n+=`${a}(${t[a].map(({name:i,type:s})=>`${s} ${i}`).join(",")})`;return n}function Gq({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 a of t[o])Gq({primaryType:a.type,types:t},n);return n}function Vq({types:e,name:t,type:n,value:r}){if(e[n]!==void 0)return[{type:"bytes32"},Or(Wq({data:r,primaryType:n,types:e}))];if(n==="bytes")return r=`0x${(r.length%2?"0":"")+r.slice(2)}`,[{type:"bytes32"},Or(r)];if(n==="string")return[{type:"bytes32"},Or(rt(r))];if(n.lastIndexOf("]")===n.length-1){const o=n.slice(0,n.lastIndexOf("[")),a=r.map(i=>Vq({name:t,type:o,types:e,value:i}));return[{type:"bytes32"},Or(Vg(a.map(([i])=>i),a.map(([,i])=>i)))]}return[{type:n},r]}function Kq({domain:e,message:t,primaryType:n,types:r}){const o=r,a=(i,s)=>{for(const c of i){const{name:l,type:u}=c,d=u,f=s[l],h=d.match(Hq);if(h&&(typeof f=="number"||typeof f=="bigint")){const[b,v,g]=h;Xe(f,{signed:v==="int",size:parseInt(g)/8})}if(d==="address"&&typeof f=="string"&&!Hn(f))throw new Wo({address:f});const m=d.match(zq);if(m){const[b,v]=m;if(v&&Pn(f)!==parseInt(v))throw new PH({expectedSize:parseInt(v),givenSize:Pn(f)})}const p=o[d];p&&a(p,f)}};if(o.EIP712Domain&&e&&a(o.EIP712Domain,e),n!=="EIP712Domain"){const i=o[n];a(i,t)}}function Yq({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"&&{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)}const OS="/docs/contract/encodeDeployData";function Qq({abi:e,args:t,bytecode:n}){if(!t||t.length===0)return n;const r=e.find(a=>"type"in a&&a.type==="constructor");if(!r)throw new Rce({docsPath:OS});if(!("inputs"in r))throw new bO({docsPath:OS});if(!r.inputs||r.inputs.length===0)throw new bO({docsPath:OS});const o=Vg(r.inputs,t);return Sl([n,o])}function jde(e,t){if(e.length!==t.length)throw new kH({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;rthis.bytes.length-1)throw new Pde({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new PO({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},incrementPosition(e){if(e<0)throw new PO({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(){const e=this.inspectByte();return this.position++,e},readBytes(e){const t=this.inspectBytes(e);return this.position+=e,t},readUint8(){const e=this.inspectUint8();return this.position+=1,e},readUint16(){const e=this.inspectUint16();return this.position+=2,e},readUint24(){const e=this.inspectUint24();return this.position+=3,e},readUint32(){const e=this.inspectUint32();return this.position+=4,e},setPosition(e){this.assertPosition(e),this.position=e}};function Ode(e){const t=Object.create(Ide);return t.bytes=e,t.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),t}function V_(e,t="hex"){const n=Jq(e),r=Ode(new Uint8Array(n.length));return n.encode(r),t==="hex"?qu(r.bytes):r.bytes}function Jq(e){return Array.isArray(e)?Rde(e.map(t=>Jq(t))):Nde(e)}function Rde(e){const t=e.reduce((o,a)=>o+a.length,0),n=Zq(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:a}of e)a(o)}}}function Nde(e){const t=typeof e=="string"?qg(e):e,n=Zq(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 Zq(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 de("Length is too large.")}const Bde={"0x0":"reverted","0x1":"success"};function eW(e){return{...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(t=>_a(t)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?pr(e.transactionIndex):null,status:e.status?Bde[e.status]:null,type:e.type?bq[e.type]||e.type:null}}const tW=M_("transactionReceipt",eW);function fj(e){return Ea(e)&&Pn(e)===32}function Fde(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),a=BigInt(4294967295),i=Number(n>>o&a),s=Number(n&a),c=r?4:0,l=r?0:4;e.setUint32(t+c,i,r),e.setUint32(t+l,s,r)}class nW extends $k{constructor(t,n,r,o){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=TS(this.buffer)}update(t){ph(this);const{view:n,buffer:r,blockLen:o}=this;t=Wg(t);const a=t.length;for(let i=0;io-i&&(this.process(r,0),i=0);for(let d=i;du.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;de&t^~e&n,Lde=(e,t,n)=>e&t^e&n^t&n,Ude=new Uint32Array([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]),ic=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),sc=new Uint32Array(64);class rW extends nW{constructor(){super(64,32,8,!1),this.A=ic[0]|0,this.B=ic[1]|0,this.C=ic[2]|0,this.D=ic[3]|0,this.E=ic[4]|0,this.F=ic[5]|0,this.G=ic[6]|0,this.H=ic[7]|0}get(){const{A:t,B:n,C:r,D:o,E:a,F:i,G:s,H:c}=this;return[t,n,r,o,a,i,s,c]}set(t,n,r,o,a,i,s,c){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=a|0,this.F=i|0,this.G=s|0,this.H=c|0}process(t,n){for(let d=0;d<16;d++,n+=4)sc[d]=t.getUint32(n,!1);for(let d=16;d<64;d++){const f=sc[d-15],h=sc[d-2],m=gi(f,7)^gi(f,18)^f>>>3,p=gi(h,17)^gi(h,19)^h>>>10;sc[d]=p+sc[d-7]+m+sc[d-16]|0}let{A:r,B:o,C:a,D:i,E:s,F:c,G:l,H:u}=this;for(let d=0;d<64;d++){const f=gi(s,6)^gi(s,11)^gi(s,25),h=u+f+Mde(s,c,l)+Ude[d]+sc[d]|0,p=(gi(r,2)^gi(r,13)^gi(r,22))+Lde(r,o,a)|0;u=l,l=c,c=s,s=i+h|0,i=a,a=o,o=r,r=h+p|0}r=r+this.A|0,o=o+this.B|0,a=a+this.C|0,i=i+this.D|0,s=s+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(r,o,a,i,s,c,l,u)}roundClean(){sc.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class $de extends rW{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const ng=O_(()=>new rW),zde=O_(()=>new $de),Hde=Object.freeze(Object.defineProperty({__proto__:null,sha224:zde,sha256:ng},Symbol.toStringTag,{value:"Module"})),qde=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),oW=Uint8Array.from({length:16},(e,t)=>t),Wde=oW.map(e=>(9*e+5)%16);let hj=[oW],mj=[Wde];for(let e=0;e<4;e++)for(let t of[hj,mj])t.push(t[e].map(n=>qde[n]));const aW=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>new Uint8Array(e)),Gde=hj.map((e,t)=>e.map(n=>aW[t][n])),Vde=mj.map((e,t)=>e.map(n=>aW[t][n])),Kde=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Yde=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),Zb=(e,t)=>e<>>32-t;function IO(e,t,n,r){return e===0?t^n^r:e===1?t&n|~t&r:e===2?(t|~n)^r:e===3?t&r|n&~r:t^(n|~r)}const ev=new Uint32Array(16);class iW extends nW{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:t,h1:n,h2:r,h3:o,h4:a}=this;return[t,n,r,o,a]}set(t,n,r,o,a){this.h0=t|0,this.h1=n|0,this.h2=r|0,this.h3=o|0,this.h4=a|0}process(t,n){for(let h=0;h<16;h++,n+=4)ev[h]=t.getUint32(n,!0);let r=this.h0|0,o=r,a=this.h1|0,i=a,s=this.h2|0,c=s,l=this.h3|0,u=l,d=this.h4|0,f=d;for(let h=0;h<5;h++){const m=4-h,p=Kde[h],b=Yde[h],v=hj[h],g=mj[h],w=Gde[h],_=Vde[h];for(let C=0;C<16;C++){const x=Zb(r+IO(h,a,s,l)+ev[v[C]]+p,w[C])+d|0;r=d,d=l,l=Zb(s,10)|0,s=a,a=x}for(let C=0;C<16;C++){const x=Zb(o+IO(m,i,c,u)+ev[g[C]]+b,_[C])+f|0;o=f,f=u,u=Zb(c,10)|0,c=i,i=x}}this.set(this.h1+s+u|0,this.h2+l+f|0,this.h3+d+o|0,this.h4+r+i|0,this.h0+a+c|0)}roundClean(){ev.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const Qde=O_(()=>new iW),Xde=Object.freeze(Object.defineProperty({__proto__:null,RIPEMD160:iW,ripemd160:Qde},Symbol.toStringTag,{value:"Module"})),Jde=`Ethereum Signed Message: -`;function Zde(e,t){const n=typeof e=="string"?ds(e):e.raw instanceof Uint8Array?e.raw:rl(e.raw),r=ds(`${Jde}${n.length}`);return Or(Cs([r,n]),t)}function efe(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=e;if(t<=0)throw new $_({chainId:t});if(a&&!Hn(a))throw new Wo({address:a});if(r)throw new de("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(o&&o>2n**256n-1n)throw new Gu({maxFeePerGas:o});if(n&&o&&n>o)throw new eg({maxFeePerGas:o,maxPriorityFeePerGas:n})}function tfe(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=e;if(t<=0)throw new $_({chainId:t});if(a&&!Hn(a))throw new Wo({address:a});if(n||o)throw new de("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>2n**256n-1n)throw new Gu({maxFeePerGas:r})}function nfe(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a,accessList:i}=e;if(a&&!Hn(a))throw new Wo({address:a});if(typeof t<"u"&&t<=0)throw new $_({chainId:t});if(n||o)throw new de("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>2n**256n-1n)throw new Gu({maxFeePerGas:r});if(i)throw new de("`accessList` is not a valid Legacy Transaction attribute.")}function sW(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n{if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);const d=27n+(t.v===27n?0n:1n);if(t.v!==d)throw new lue({v:t.v});return d})();l=[...l,rt(u),t.r,t.s]}else n>0&&(l=[...l,rt(n),"0x","0x"]);return V_(l)}function pj(e,t){let[n,r="0"]=e.split(".");const o=n.startsWith("-");if(o&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),t===0)Math.round(+`.${r}`)===1&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>t){const[a,i,s]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],c=Math.round(+`${i}.${s}`);c>9?r=`${BigInt(a)+BigInt(1)}0`.padStart(a.length+1,"0"):r=`${a}${c}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${o?"-":""}${n}${r}`)}function sfe(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function cfe(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?pr(e.nonce):void 0,storageProof:e.storageProof?sfe(e.storageProof):void 0}}async function lfe(e,{address:t,blockNumber:n,blockTag:r,storageKeys:o}){const a=r??"latest",i=n!==void 0?Xe(n):void 0,s=await e.request({method:"eth_getProof",params:[t,o,i||a]});return cfe(s)}async function ufe(e,{address:t,blockNumber:n,blockTag:r="latest",slot:o}){const a=n!==void 0?Xe(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,o,a||r]})}async function gj(e,{blockHash:t,blockNumber:n,blockTag:r,hash:o,index:a}){var u,d,f;const i=r||"latest",s=n!==void 0?Xe(n):void 0;let c=null;if(o?c=await e.request({method:"eth_getTransactionByHash",params:[o]}):t?c=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,Xe(a)]}):(s||i)&&(c=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[s||i,Xe(a)]})),!c)throw new QH({blockHash:t,blockNumber:n,blockTag:i,hash:o,index:a});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.transaction)==null?void 0:f.format)||L_)(c)}async function dfe(e,{hash:t,transactionReceipt:n}){const[r,o]=await Promise.all([Fe(e,ty,"getBlockNumber")({}),t?Fe(e,gj,"getBlockNumber")({hash:t}):void 0]),a=(n==null?void 0:n.blockNumber)||(o==null?void 0:o.blockNumber);return a?r-a+1n:0n}async function b5(e,{hash:t}){var o,a,i;const n=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!n)throw new XH({hash:t});return(((i=(a=(o=e.chain)==null?void 0:o.formatters)==null?void 0:a.transactionReceipt)==null?void 0:i.format)||eW)(n)}async function ffe(e,t){var p;const{allowFailure:n=!0,batchSize:r,blockNumber:o,blockTag:a,contracts:i,multicallAddress:s}=t,c=r??(typeof((p=e.batch)==null?void 0:p.multicall)=="object"&&e.batch.multicall.batchSize||1024);let l=s;if(!l){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");l=im({blockNumber:o,chain:e.chain,contract:"multicall3"})}const u=[[]];let d=0,f=0;for(let b=0;b0&&f>c&&u[d].length>0&&(d++,f=(C.length-2)/2,u[d]=[]),u[d]=[...u[d],{allowFailure:!0,callData:C,target:g}]}catch(C){const x=Z0(C,{abi:v,address:g,args:w,docsPath:"/docs/contract/multicall",functionName:_});if(!n)throw x;u[d]=[...u[d],{allowFailure:!0,callData:"0x",target:g}]}}const h=await Promise.allSettled(u.map(b=>Fe(e,Ss,"readContract")({abi:f5,address:l,args:[b],blockNumber:o,blockTag:a,functionName:"aggregate3"}))),m=[];for(let b=0;be instanceof Uint8Array,pfe=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function bh(e){if(!Y_(e))throw new Error("Uint8Array expected");let t="";for(let n=0;nr+o.length,0));let n=0;return e.forEach(r=>{if(!Y_(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}function uW(e,t){if(e.length!==t.length)return!1;for(let n=0;ncW;e>>=K_,t+=1);return t}function bfe(e,t){return e>>BigInt(t)&K_}const vfe=(e,t,n)=>e|(n?K_:cW)<(mfe<new Uint8Array(e),OO=e=>Uint8Array.from(e);function dW(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=RS(e),o=RS(e),a=0;const i=()=>{r.fill(1),o.fill(0),a=0},s=(...d)=>n(o,r,...d),c=(d=RS())=>{o=s(OO([0]),d),r=s(),d.length!==0&&(o=s(OO([1]),d),r=s())},l=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const f=[];for(;d{i(),c(d);let h;for(;!(h=f(l()));)c();return i(),h}}const wfe={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"||e instanceof Uint8Array,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 cm(e,t,n={}){const r=(o,a,i)=>{const s=wfe[a];if(typeof s!="function")throw new Error(`Invalid validator "${a}", expected function`);const c=e[o];if(!(i&&c===void 0)&&!s(c,e))throw new Error(`Invalid param ${String(o)}=${c} (${typeof c}), expected ${a}`)};for(const[o,a]of Object.entries(t))r(o,a,!1);for(const[o,a]of Object.entries(n))r(o,a,!0);return e}const fW=Object.freeze(Object.defineProperty({__proto__:null,bitGet:bfe,bitLen:yfe,bitMask:wj,bitSet:vfe,bytesToHex:bh,bytesToNumberBE:Xr,bytesToNumberLE:bj,concatBytes:Fo,createHmacDrbg:dW,ensureBytes:Dr,equalBytes:uW,hexToBytes:vh,hexToNumber:yj,numberToBytesBE:il,numberToBytesLE:vj,numberToHexUnpadded:lW,numberToVarBytesBE:gfe,utf8ToBytes:Q_,validateObject:cm},Symbol.toStringTag,{value:"Module"}));function Efe(e,t){const n=Ea(e)?rl(e):e,r=Ea(t)?rl(t):t;return uW(n,r)}async function hW(e,{address:t,hash:n,signature:r,...o}){const a=Ea(r)?r:rt(r);try{const{data:i}=await Fe(e,z_,"call")({data:Qq({abi:kue,args:[t,n,a],bytecode:hfe}),...o});return Efe(i??"0x0","0x1")}catch(i){if(i instanceof JH)return!1;throw i}}async function _fe(e,{address:t,message:n,signature:r,...o}){const a=Zde(n);return hW(e,{address:t,hash:a,signature:r,...o})}async function xfe(e,{address:t,signature:n,message:r,primaryType:o,types:a,domain:i,...s}){const c=Tde({message:r,primaryType:o,types:a,domain:i});return hW(e,{address:t,hash:c,signature:n,...s})}function mW(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:o,poll:a,pollingInterval:i=e.pollingInterval}){const s=typeof a<"u"?a:e.transport.type!=="webSocket";let c;return s?(()=>{const d=Qr(["watchBlockNumber",e.uid,t,n,i]);return sm(d,{onBlockNumber:r,onError:o},f=>ey(async()=>{var h;try{const m=await Fe(e,ty,"getBlockNumber")({cacheTime:0});if(c){if(m===c)return;if(m-c>1&&n)for(let p=c+1n;pc)&&(f.onBlockNumber(m,c),c=m)}catch(m){(h=f.onError)==null||h.call(f,m)}},{emitOnBegin:t,interval:i}))})():(()=>{let d=!0,f=()=>d=!1;return(async()=>{try{const{unsubscribe:h}=await e.transport.subscribe({params:["newHeads"],onData(m){var b;if(!d)return;const p=wn((b=m.result)==null?void 0:b.number);r(p,c),c=p},onError(m){o==null||o(m)}});f=h,d||f()}catch(h){o==null||o(h)}})(),f})()}async function Cfe(e,{confirmations:t=1,hash:n,onReplaced:r,pollingInterval:o=e.pollingInterval,timeout:a}){const i=Qr(["waitForTransactionReceipt",e.uid,n]);let s,c,l,u=!1;return new Promise((d,f)=>{a&&setTimeout(()=>f(new hue({hash:n})),a);const h=sm(i,{onReplaced:r,resolve:d,reject:f},m=>{const p=Fe(e,mW,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:o,async onBlockNumber(b){if(u)return;let v=b;const g=w=>{p(),w(),h()};try{if(l){if(t>1&&(!l.blockNumber||v-l.blockNumber+1nm.resolve(l));return}if(s||(u=!0,await p5(async()=>{s=await Fe(e,gj,"getTransaction")({hash:n}),s.blockNumber&&(v=s.blockNumber)},{delay:({count:w})=>~~(1<1&&(!l.blockNumber||v-l.blockNumber+1nm.resolve(l))}catch(w){if(s&&(w instanceof QH||w instanceof XH))try{c=s,u=!0;const _=await p5(()=>Fe(e,al,"getBlock")({blockNumber:v,includeTransactions:!0}),{delay:({count:E})=>~~(1<E instanceof yq});u=!1;const C=_.transactions.find(({from:E,nonce:T})=>E===c.from&&T===c.nonce);if(!C||(l=await Fe(e,b5,"getTransactionReceipt")({hash:C.hash}),t>1&&(!l.blockNumber||v-l.blockNumber+1n{var E;(E=m.onReplaced)==null||E.call(m,{reason:x,replacedTransaction:c,transaction:C,transactionReceipt:l}),m.resolve(l)})}catch(_){g(()=>m.reject(_))}else g(()=>m.reject(w))}}})})})}function Sfe(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:o,onError:a,includeTransactions:i,poll:s,pollingInterval:c=e.pollingInterval}){const l=typeof s<"u"?s:e.transport.type!=="webSocket",u=i??!1;let d;return l?(()=>{const m=Qr(["watchBlocks",e.uid,n,r,u,c]);return sm(m,{onBlock:o,onError:a},p=>ey(async()=>{var b;try{const v=await Fe(e,al,"getBlock")({blockTag:t,includeTransactions:u});if(v.number&&(d!=null&&d.number)){if(v.number===d.number)return;if(v.number-d.number>1&&n)for(let g=(d==null?void 0:d.number)+1n;gd.number)&&(p.onBlock(v,d),d=v)}catch(v){(b=p.onError)==null||b.call(p,v)}},{emitOnBegin:r,interval:c}))})():(()=>{let m=!0,p=()=>m=!1;return(async()=>{try{const{unsubscribe:b}=await e.transport.subscribe({params:["newHeads"],onData(v){var _,C,x;if(!m)return;const w=(((x=(C=(_=e.chain)==null?void 0:_.formatters)==null?void 0:C.block)==null?void 0:x.format)||tj)(v.result);o(w,d),d=w},onError(v){a==null||a(v)}});p=b,m||p()}catch(b){a==null||a(b)}})(),p})()}function Tfe(e,{address:t,args:n,batch:r=!0,event:o,events:a,onError:i,onLogs:s,poll:c,pollingInterval:l=e.pollingInterval,strict:u}){const d=typeof c<"u"?c:e.transport.type!=="webSocket",f=u??!1;return d?(()=>{const p=Qr(["watchEvent",t,n,r,e.uid,o,l]);return sm(p,{onLogs:s,onError:i},b=>{let v,g,w=!1;const _=ey(async()=>{var C;if(!w){try{g=await Fe(e,Uq,"createEventFilter")({address:t,args:n,event:o,events:a,strict:f})}catch{}w=!0;return}try{let x;if(g)x=await Fe(e,H_,"getFilterChanges")({filter:g});else{const E=await Fe(e,ty,"getBlockNumber")({});v&&v!==E?x=await Fe(e,oj,"getLogs")({address:t,args:n,event:o,events:a,fromBlock:v+1n,toBlock:E}):x=[],v=E}if(x.length===0)return;if(r)b.onLogs(x);else for(const E of x)b.onLogs([E])}catch(x){g&&x instanceof J0&&(w=!1),(C=b.onError)==null||C.call(b,x)}},{emitOnBegin:!0,interval:l});return async()=>{g&&await Fe(e,q_,"uninstallFilter")({filter:g}),_()}})})():(()=>{let p=!0,b=()=>p=!1;return(async()=>{try{const v=a??(o?[o]:void 0);let g=[];v&&(g=[v.flatMap(_=>Yg({abi:[_],eventName:_.name,args:n}))],o&&(g=g[0]));const{unsubscribe:w}=await e.transport.subscribe({params:["logs",{address:t,topics:g}],onData(_){var x;if(!p)return;const C=_.result;try{const{eventName:E,args:T}=Zg({abi:v,data:C.data,topics:C.topics,strict:f}),k=_a(C,{args:T,eventName:E});s([k])}catch(E){let T,k;if(E instanceof Hu||E instanceof nm){if(u)return;T=E.abiItem.name,k=(x=E.abiItem.inputs)==null?void 0:x.some(R=>!("name"in R&&R.name))}const D=_a(C,{args:k?[]:{},eventName:T});s([D])}},onError(_){i==null||i(_)}});b=w,p||b()}catch(v){i==null||i(v)}})(),b})()}function Afe(e,{batch:t=!0,onError:n,onTransactions:r,poll:o,pollingInterval:a=e.pollingInterval}){return(typeof o<"u"?o:e.transport.type!=="webSocket")?(()=>{const l=Qr(["watchPendingTransactions",e.uid,t,a]);return sm(l,{onTransactions:r,onError:n},u=>{let d;const f=ey(async()=>{var h;try{if(!d)try{d=await Fe(e,$q,"createPendingTransactionFilter")({});return}catch(p){throw f(),p}const m=await Fe(e,H_,"getFilterChanges")({filter:d});if(m.length===0)return;if(t)u.onTransactions(m);else for(const p of m)u.onTransactions([p])}catch(m){(h=u.onError)==null||h.call(u,m)}},{emitOnBegin:!0,interval:a});return async()=>{d&&await Fe(e,q_,"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})()}function Dfe(e){return{call:t=>z_(e,t),createBlockFilter:()=>bde(e),createContractEventFilter:t=>Gk(e,t),createEventFilter:t=>Uq(e,t),createPendingTransactionFilter:()=>$q(e),estimateContractGas:t=>Cq(e,t),estimateGas:t=>rj(e,t),getBalance:t=>vde(e,t),getBlock:t=>al(e,t),getBlockNumber:t=>ty(e,t),getBlockTransactionCount:t=>wde(e,t),getBytecode:t=>Ede(e,t),getChainId:()=>tg(e),getContractEvents:t=>aj(e,t),getEnsAddress:t=>nde(e,t),getEnsAvatar:t=>pde(e,t),getEnsName:t=>gde(e,t),getEnsResolver:t=>yde(e,t),getEnsText:t=>Lq(e,t),getFeeHistory:t=>xde(e,t),estimateFeesPerGas:t=>Tue(e,t),getFilterChanges:t=>H_(e,t),getFilterLogs:t=>Cde(e,t),getGasPrice:()=>nj(e),getLogs:t=>oj(e,t),getProof:t=>lfe(e,t),estimateMaxPriorityFeePerGas:t=>Sue(e,t),getStorageAt:t=>ufe(e,t),getTransaction:t=>gj(e,t),getTransactionConfirmations:t=>dfe(e,t),getTransactionCount:t=>_q(e,t),getTransactionReceipt:t=>b5(e,t),multicall:t=>ffe(e,t),prepareTransactionRequest:t=>U_(e,t),readContract:t=>Ss(e,t),sendRawTransaction:t=>sj(e,t),simulateContract:t=>Dq(e,t),verifyMessage:t=>_fe(e,t),verifyTypedData:t=>xfe(e,t),uninstallFilter:t=>q_(e,t),waitForTransactionReceipt:t=>Cfe(e,t),watchBlocks:t=>Sfe(e,t),watchBlockNumber:t=>mW(e,t),watchContractEvent:t=>kq(e,t),watchEvent:t=>Tfe(e,t),watchPendingTransactions:t=>Afe(e,t)}}function Vu(e){const{key:t="public",name:n="Public Client"}=e;return Iq({...e,key:t,name:n,type:"publicClient"}).extend(Dfe)}function kfe(e,{abi:t,args:n,bytecode:r,...o}){const a=Qq({abi:t,args:n,bytecode:r});return cj(e,{...o,data:a})}async function jfe(e){var n;return((n=e.account)==null?void 0:n.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"})).map(r=>Vk(r))}async function Pfe(e){return await e.request({method:"wallet_getPermissions"})}async function Ife(e){return(await e.request({method:"eth_requestAccounts"})).map(n=>Rr(n))}async function Ofe(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}async function Rfe(e,{account:t=e.account,message:n}){if(!t)throw new om({docsPath:"/docs/actions/wallet/signMessage"});const r=Ta(t);if(r.type==="local")return r.signMessage({message:n});const o=typeof n=="string"?I_(n):n.raw instanceof Uint8Array?rt(n.raw):n.raw;return e.request({method:"personal_sign",params:[o,r.address]})}async function Nfe(e,t){var l,u,d,f;const{account:n=e.account,chain:r=e.chain,...o}=t;if(!n)throw new om({docsPath:"/docs/actions/wallet/signTransaction"});const a=Ta(n);Jg({account:a,...t});const i=await Fe(e,tg,"getChainId")({});r!==null&&jq({currentChainId:i,chain:r});const s=(r==null?void 0:r.formatters)||((l=e.chain)==null?void 0:l.formatters),c=((u=s==null?void 0:s.transactionRequest)==null?void 0:u.format)||Xg;return a.type==="local"?a.signTransaction({...o,chainId:i},{serializer:(f=(d=e.chain)==null?void 0:d.serializers)==null?void 0:f.transaction}):await e.request({method:"eth_signTransaction",params:[{...c(o),chainId:Xe(i),from:a.address}]})}async function Bfe(e,{account:t=e.account,domain:n,message:r,primaryType:o,types:a}){if(!t)throw new om({docsPath:"/docs/actions/wallet/signTypedData"});const i=Ta(t),s={EIP712Domain:Yq({domain:n}),...a};if(Kq({domain:n,message:r,primaryType:o,types:s}),i.type==="local")return i.signTypedData({domain:n,primaryType:o,types:s,message:r});const c=Qr({domain:n??{},primaryType:o,types:s,message:r},(l,u)=>Ea(u)?u.toLowerCase():u);return e.request({method:"eth_signTypedData_v4",params:[i.address,c]})}async function Ffe(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:Xe(t)}]})}async function Mfe(e,t){return await e.request({method:"wallet_watchAsset",params:t})}function Lfe(e){return{addChain:t=>Wue(e,t),deployContract:t=>kfe(e,t),getAddresses:()=>jfe(e),getChainId:()=>tg(e),getPermissions:()=>Pfe(e),prepareTransactionRequest:t=>U_(e,t),requestAddresses:()=>Ife(e),requestPermissions:t=>Ofe(e,t),sendRawTransaction:t=>sj(e,t),sendTransaction:t=>cj(e,t),signMessage:t=>Rfe(e,t),signTransaction:t=>Nfe(e,t),signTypedData:t=>Bfe(e,t),switchChain:t=>Ffe(e,t),watchAsset:t=>Mfe(e,t),writeContract:t=>Pq(e,t)}}function ry(e){const{key:t="wallet",name:n="Wallet Client",transport:r}=e;return Iq({...e,key:t,name:n,transport:a=>r({...a,retryCount:0}),type:"walletClient"}).extend(Lfe)}function Ufe(e,t={}){const{key:n="webSocket",name:r="WebSocket JSON-RPC",retryDelay:o}=t;return({chain:a,retryCount:i,timeout:s})=>{var d;const c=t.retryCount??i,l=s??t.timeout??1e4,u=e||((d=a==null?void 0:a.rpcUrls.default.webSocket)==null?void 0:d[0]);if(!u)throw new Rq;return W_({key:n,name:r,async request({method:f,params:h}){const m={method:f,params:h},p=await IS(u),{error:b,result:v}=await Qf.webSocketAsync(p,{body:m,timeout:l});if(b)throw new Xk({body:m,error:b,url:u});return v},retryCount:c,retryDelay:o,timeout:l,type:"webSocket"},{getSocket(){return IS(u)},async subscribe({params:f,onData:h,onError:m}){const p=await IS(u),{result:b}=await new Promise((v,g)=>Qf.webSocket(p,{body:{method:"eth_subscribe",params:f},onResponse(w){if(w.error){g(w.error),m==null||m(w.error);return}if(typeof w.id=="number"){v(w);return}w.method==="eth_subscription"&&h(w.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(v=>Qf.webSocket(p,{body:{method:"eth_unsubscribe",params:[b]},onResponse:v}))}}}})}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const er=BigInt(0),_n=BigInt(1),cu=BigInt(2),$fe=BigInt(3),v5=BigInt(4),RO=BigInt(5),NO=BigInt(8);BigInt(9);BigInt(16);function Xn(e,t){const n=e%t;return n>=er?n:t+n}function zfe(e,t,n){if(n<=er||t 0");if(n===_n)return er;let r=_n;for(;t>er;)t&_n&&(r=r*e%n),e=e*e%n,t>>=_n;return r}function oa(e,t,n){let r=e;for(;t-- >er;)r*=r,r%=n;return r}function w5(e,t){if(e===er||t<=er)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=Xn(e,t),r=t,o=er,a=_n;for(;n!==er;){const s=r/n,c=r%n,l=o-a*s;r=n,n=c,o=a,a=l}if(r!==_n)throw new Error("invert: does not exist");return Xn(o,t)}function Hfe(e){const t=(e-_n)/cu;let n,r,o;for(n=e-_n,r=0;n%cu===er;n/=cu,r++);for(o=cu;o(r[o]="function",r),t);return cm(e,n)}function Gfe(e,t,n){if(n 0");if(n===er)return e.ONE;if(n===_n)return t;let r=e.ONE,o=t;for(;n>er;)n&_n&&(r=e.mul(r,o)),o=e.sqr(o),n>>=_n;return r}function Vfe(e,t){const n=new Array(t.length),r=t.reduce((a,i,s)=>e.is0(i)?a:(n[s]=a,e.mul(a,i)),e.ONE),o=e.inv(r);return t.reduceRight((a,i,s)=>e.is0(i)?a:(n[s]=e.mul(a,n[s]),e.mul(a,i)),o),n}function gW(e,t){const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Kfe(e,t,n=!1,r={}){if(e<=er)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:o,nByteLength:a}=gW(e,t);if(a>2048)throw new Error("Field lengths over 2048 bytes are not supported");const i=qfe(e),s=Object.freeze({ORDER:e,BITS:o,BYTES:a,MASK:wj(o),ZERO:er,ONE:_n,create:c=>Xn(c,e),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return er<=c&&cc===er,isOdd:c=>(c&_n)===_n,neg:c=>Xn(-c,e),eql:(c,l)=>c===l,sqr:c=>Xn(c*c,e),add:(c,l)=>Xn(c+l,e),sub:(c,l)=>Xn(c-l,e),mul:(c,l)=>Xn(c*l,e),pow:(c,l)=>Gfe(s,c,l),div:(c,l)=>Xn(c*w5(l,e),e),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>w5(c,e),sqrt:r.sqrt||(c=>i(s,c)),invertBatch:c=>Vfe(s,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>n?vj(c,a):il(c,a),fromBytes:c=>{if(c.length!==a)throw new Error(`Fp.fromBytes: expected ${a}, got ${c.length}`);return n?bj(c):Xr(c)}});return Object.freeze(s)}function yW(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 bW(e){const t=yW(e);return t+Math.ceil(t/2)}function Yfe(e,t,n=!1){const r=e.length,o=yW(t),a=bW(t);if(r<16||r1024)throw new Error(`expected ${a}-1024 bytes of input, got ${r}`);const i=n?Xr(e):bj(e),s=Xn(i,t-_n)+_n;return n?vj(s,o):il(s,o)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Qfe=BigInt(0),NS=BigInt(1);function Xfe(e,t){const n=(o,a)=>{const i=a.negate();return o?i:a},r=o=>{const a=Math.ceil(t/o)+1,i=2**(o-1);return{windows:a,windowSize:i}};return{constTimeNegate:n,unsafeLadder(o,a){let i=e.ZERO,s=o;for(;a>Qfe;)a&NS&&(i=i.add(s)),s=s.double(),a>>=NS;return i},precomputeWindow(o,a){const{windows:i,windowSize:s}=r(a),c=[];let l=o,u=l;for(let d=0;d>=h,b>c&&(b-=f,i+=NS);const v=p,g=p+Math.abs(b)-1,w=m%2!==0,_=b<0;b===0?u=u.add(n(w,a[v])):l=l.add(n(_,a[g]))}return{p:l,f:u}},wNAFCached(o,a,i,s){const c=o._WINDOW_SIZE||1;let l=a.get(o);return l||(l=this.precomputeWindow(o,c),c!==1&&a.set(o,s(l))),this.wNAF(c,l,i)}}}function vW(e){return pW(e.Fp),cm(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...gW(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Jfe(e){const t=vW(e);cm(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:o}=t;if(n){if(!r.eql(o,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}const{bytesToNumberBE:Zfe,hexToBytes:ehe}=fW,yu={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(e){const{Err:t}=yu;if(e.length<2||e[0]!==2)throw new t("Invalid signature integer tag");const n=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)throw new t("Invalid signature integer: wrong length");if(r[0]&128)throw new t("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:Zfe(r),l:e.subarray(n+2)}},toSig(e){const{Err:t}=yu,n=typeof e=="string"?ehe(e):e;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||n[0]!=48)throw new t("Invalid signature tag");if(n[1]!==r-2)throw new t("Invalid signature: incorrect length");const{d:o,l:a}=yu._parseInt(n.subarray(2)),{d:i,l:s}=yu._parseInt(a);if(s.length)throw new t("Invalid signature: left bytes after parsing");return{r:o,s:i}},hexFromSig(e){const t=l=>Number.parseInt(l[0],16)&8?"00"+l:l,n=l=>{const u=l.toString(16);return u.length&1?`0${u}`:u},r=t(n(e.s)),o=t(n(e.r)),a=r.length/2,i=o.length/2,s=n(a),c=n(i);return`30${n(i+a+4)}02${c}${o}02${s}${r}`}},Ka=BigInt(0),dn=BigInt(1),cc=BigInt(2),Tw=BigInt(3),BO=BigInt(4);function the(e){const t=Jfe(e),{Fp:n}=t,r=t.toBytes||((m,p,b)=>{const v=p.toAffine();return Fo(Uint8Array.from([4]),n.toBytes(v.x),n.toBytes(v.y))}),o=t.fromBytes||(m=>{const p=m.subarray(1),b=n.fromBytes(p.subarray(0,n.BYTES)),v=n.fromBytes(p.subarray(n.BYTES,2*n.BYTES));return{x:b,y:v}});function a(m){const{a:p,b}=t,v=n.sqr(m),g=n.mul(v,m);return n.add(n.add(g,n.mul(m,p)),b)}if(!n.eql(n.sqr(t.Gy),a(t.Gx)))throw new Error("bad generator point: equation left != right");function i(m){return typeof m=="bigint"&&Kan.eql(w,n.ZERO);return g(b)&&g(v)?d.ZERO:new d(b,v,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(p){const b=n.invertBatch(p.map(v=>v.pz));return p.map((v,g)=>v.toAffine(b[g])).map(d.fromAffine)}static fromHex(p){const b=d.fromAffine(o(Dr("pointHex",p)));return b.assertValidity(),b}static fromPrivateKey(p){return d.BASE.multiply(c(p))}_setWindowSize(p){this._WINDOW_SIZE=p,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:p,y:b}=this.toAffine();if(!n.isValid(p)||!n.isValid(b))throw new Error("bad point: x or y not FE");const v=n.sqr(b),g=a(p);if(!n.eql(v,g))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:p}=this.toAffine();if(n.isOdd)return!n.isOdd(p);throw new Error("Field doesn't support isOdd")}equals(p){u(p);const{px:b,py:v,pz:g}=this,{px:w,py:_,pz:C}=p,x=n.eql(n.mul(b,C),n.mul(w,g)),E=n.eql(n.mul(v,C),n.mul(_,g));return x&&E}negate(){return new d(this.px,n.neg(this.py),this.pz)}double(){const{a:p,b}=t,v=n.mul(b,Tw),{px:g,py:w,pz:_}=this;let C=n.ZERO,x=n.ZERO,E=n.ZERO,T=n.mul(g,g),k=n.mul(w,w),D=n.mul(_,_),R=n.mul(g,w);return R=n.add(R,R),E=n.mul(g,_),E=n.add(E,E),C=n.mul(p,E),x=n.mul(v,D),x=n.add(C,x),C=n.sub(k,x),x=n.add(k,x),x=n.mul(C,x),C=n.mul(R,C),E=n.mul(v,E),D=n.mul(p,D),R=n.sub(T,D),R=n.mul(p,R),R=n.add(R,E),E=n.add(T,T),T=n.add(E,T),T=n.add(T,D),T=n.mul(T,R),x=n.add(x,T),D=n.mul(w,_),D=n.add(D,D),T=n.mul(D,R),C=n.sub(C,T),E=n.mul(D,k),E=n.add(E,E),E=n.add(E,E),new d(C,x,E)}add(p){u(p);const{px:b,py:v,pz:g}=this,{px:w,py:_,pz:C}=p;let x=n.ZERO,E=n.ZERO,T=n.ZERO;const k=t.a,D=n.mul(t.b,Tw);let R=n.mul(b,w),F=n.mul(v,_),B=n.mul(g,C),j=n.add(b,v),P=n.add(w,_);j=n.mul(j,P),P=n.add(R,F),j=n.sub(j,P),P=n.add(b,g);let O=n.add(w,C);return P=n.mul(P,O),O=n.add(R,B),P=n.sub(P,O),O=n.add(v,g),x=n.add(_,C),O=n.mul(O,x),x=n.add(F,B),O=n.sub(O,x),T=n.mul(k,P),x=n.mul(D,B),T=n.add(x,T),x=n.sub(F,T),T=n.add(F,T),E=n.mul(x,T),F=n.add(R,R),F=n.add(F,R),B=n.mul(k,B),P=n.mul(D,P),F=n.add(F,B),B=n.sub(R,B),B=n.mul(k,B),P=n.add(P,B),R=n.mul(F,P),E=n.add(E,R),R=n.mul(O,P),x=n.mul(j,x),x=n.sub(x,R),R=n.mul(j,F),T=n.mul(O,T),T=n.add(T,R),new d(x,E,T)}subtract(p){return this.add(p.negate())}is0(){return this.equals(d.ZERO)}wNAF(p){return h.wNAFCached(this,l,p,b=>{const v=n.invertBatch(b.map(g=>g.pz));return b.map((g,w)=>g.toAffine(v[w])).map(d.fromAffine)})}multiplyUnsafe(p){const b=d.ZERO;if(p===Ka)return b;if(s(p),p===dn)return this;const{endo:v}=t;if(!v)return h.unsafeLadder(this,p);let{k1neg:g,k1:w,k2neg:_,k2:C}=v.splitScalar(p),x=b,E=b,T=this;for(;w>Ka||C>Ka;)w&dn&&(x=x.add(T)),C&dn&&(E=E.add(T)),T=T.double(),w>>=dn,C>>=dn;return g&&(x=x.negate()),_&&(E=E.negate()),E=new d(n.mul(E.px,v.beta),E.py,E.pz),x.add(E)}multiply(p){s(p);let b=p,v,g;const{endo:w}=t;if(w){const{k1neg:_,k1:C,k2neg:x,k2:E}=w.splitScalar(b);let{p:T,f:k}=this.wNAF(C),{p:D,f:R}=this.wNAF(E);T=h.constTimeNegate(_,T),D=h.constTimeNegate(x,D),D=new d(n.mul(D.px,w.beta),D.py,D.pz),v=T.add(D),g=k.add(R)}else{const{p:_,f:C}=this.wNAF(b);v=_,g=C}return d.normalizeZ([v,g])[0]}multiplyAndAddUnsafe(p,b,v){const g=d.BASE,w=(C,x)=>x===Ka||x===dn||!C.equals(g)?C.multiplyUnsafe(x):C.multiply(x),_=w(this,b).add(w(p,v));return _.is0()?void 0:_}toAffine(p){const{px:b,py:v,pz:g}=this,w=this.is0();p==null&&(p=w?n.ONE:n.inv(g));const _=n.mul(b,p),C=n.mul(v,p),x=n.mul(g,p);if(w)return{x:n.ZERO,y:n.ZERO};if(!n.eql(x,n.ONE))throw new Error("invZ was invalid");return{x:_,y:C}}isTorsionFree(){const{h:p,isTorsionFree:b}=t;if(p===dn)return!0;if(b)return b(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:p,clearCofactor:b}=t;return p===dn?this:b?b(d,this):this.multiplyUnsafe(t.h)}toRawBytes(p=!0){return this.assertValidity(),r(d,this,p)}toHex(p=!0){return bh(this.toRawBytes(p))}}d.BASE=new d(t.Gx,t.Gy,n.ONE),d.ZERO=new d(n.ZERO,n.ONE,n.ZERO);const f=t.nBitLength,h=Xfe(d,t.endo?Math.ceil(f/2):f);return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:c,weierstrassEquation:a,isWithinCurveOrder:i}}function nhe(e){const t=vW(e);return cm(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function rhe(e){const t=nhe(e),{Fp:n,n:r}=t,o=n.BYTES+1,a=2*n.BYTES+1;function i(P){return Kabh(il(P,t.nByteLength));function m(P){const O=r>>dn;return P>O}function p(P){return m(P)?s(-P):P}const b=(P,O,I)=>Xr(P.slice(O,I));class v{constructor(O,I,N){this.r=O,this.s=I,this.recovery=N,this.assertValidity()}static fromCompact(O){const I=t.nByteLength;return O=Dr("compactSignature",O,I*2),new v(b(O,0,I),b(O,I,2*I))}static fromDER(O){const{r:I,s:N}=yu.toSig(Dr("DER",O));return new v(I,N)}assertValidity(){if(!f(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!f(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(O){return new v(this.r,this.s,O)}recoverPublicKey(O){const{r:I,s:N,recovery:M}=this,L=E(Dr("msgHash",O));if(M==null||![0,1,2,3].includes(M))throw new Error("recovery id invalid");const X=M===2||M===3?I+t.n:I;if(X>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const J=M&1?"03":"02",U=l.fromHex(J+h(X)),G=c(X),Z=s(-L*G),ae=s(N*G),ne=l.BASE.multiplyAndAddUnsafe(U,Z,ae);if(!ne)throw new Error("point at infinify");return ne.assertValidity(),ne}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new v(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return vh(this.toDERHex())}toDERHex(){return yu.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return vh(this.toCompactHex())}toCompactHex(){return h(this.r)+h(this.s)}}const g={isValidPrivateKey(P){try{return u(P),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const P=bW(t.n);return Yfe(t.randomBytes(P),t.n)},precompute(P=8,O=l.BASE){return O._setWindowSize(P),O.multiply(BigInt(3)),O}};function w(P,O=!0){return l.fromPrivateKey(P).toRawBytes(O)}function _(P){const O=P instanceof Uint8Array,I=typeof P=="string",N=(O||I)&&P.length;return O?N===o||N===a:I?N===2*o||N===2*a:P instanceof l}function C(P,O,I=!0){if(_(P))throw new Error("first arg must be private key");if(!_(O))throw new Error("second arg must be public key");return l.fromHex(O).multiply(u(P)).toRawBytes(I)}const x=t.bits2int||function(P){const O=Xr(P),I=P.length*8-t.nBitLength;return I>0?O>>BigInt(I):O},E=t.bits2int_modN||function(P){return s(x(P))},T=wj(t.nBitLength);function k(P){if(typeof P!="bigint")throw new Error("bigint expected");if(!(Ka<=P&&Pte in I))throw new Error("sign() legacy options not supported");const{hash:N,randomBytes:M}=t;let{lowS:L,prehash:X,extraEntropy:J}=I;L==null&&(L=!0),P=Dr("msgHash",P),X&&(P=Dr("prehashed msgHash",N(P)));const U=E(P),G=u(O),Z=[k(G),k(U)];if(J!=null){const te=J===!0?M(n.BYTES):J;Z.push(Dr("extraEntropy",te))}const ae=Fo(...Z),ne=U;function ie(te){const ee=x(te);if(!f(ee))return;const re=c(ee),z=l.BASE.multiply(ee).toAffine(),fe=s(z.x);if(fe===Ka)return;const ve=s(re*s(ne+fe*G));if(ve===Ka)return;let Ue=(z.x===fe?0:2)|Number(z.y&dn),ke=ve;return L&&m(ve)&&(ke=p(ve),Ue^=1),new v(fe,ke,Ue)}return{seed:ae,k2sig:ie}}const R={lowS:t.lowS,prehash:!1},F={lowS:t.lowS,prehash:!1};function B(P,O,I=R){const{seed:N,k2sig:M}=D(P,O,I),L=t;return dW(L.hash.outputLen,L.nByteLength,L.hmac)(N,M)}l.BASE._setWindowSize(8);function j(P,O,I,N=F){var z;const M=P;if(O=Dr("msgHash",O),I=Dr("publicKey",I),"strict"in N)throw new Error("options.strict was renamed to lowS");const{lowS:L,prehash:X}=N;let J,U;try{if(typeof M=="string"||M instanceof Uint8Array)try{J=v.fromDER(M)}catch(fe){if(!(fe instanceof yu.Err))throw fe;J=v.fromCompact(M)}else if(typeof M=="object"&&typeof M.r=="bigint"&&typeof M.s=="bigint"){const{r:fe,s:ve}=M;J=new v(fe,ve)}else throw new Error("PARSE");U=l.fromHex(I)}catch(fe){if(fe.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(L&&J.hasHighS())return!1;X&&(O=t.hash(O));const{r:G,s:Z}=J,ae=E(O),ne=c(Z),ie=s(ae*ne),te=s(G*ne),ee=(z=l.BASE.multiplyAndAddUnsafe(U,ie,te))==null?void 0:z.toAffine();return ee?s(ee.x)===G:!1}return{CURVE:t,getPublicKey:w,getSharedSecret:C,sign:B,verify:j,ProjectivePoint:l,Signature:v,utils:g}}function ohe(e,t){const n=e.ORDER;let r=Ka;for(let m=n-dn;m%cc===Ka;m/=cc)r+=dn;const o=r,a=cc<{let b=d,v=e.pow(p,l),g=e.sqr(v);g=e.mul(g,p);let w=e.mul(m,g);w=e.pow(w,c),w=e.mul(w,v),v=e.mul(w,p),g=e.mul(w,m);let _=e.mul(g,v);w=e.pow(_,u);let C=e.eql(w,e.ONE);v=e.mul(g,f),w=e.mul(_,b),g=e.cmov(v,g,C),_=e.cmov(w,_,C);for(let x=o;x>dn;x--){let E=x-cc;E=cc<{let g=e.sqr(v);const w=e.mul(b,v);g=e.mul(g,w);let _=e.pow(g,m);_=e.mul(_,w);const C=e.mul(_,p),x=e.mul(e.sqr(_),v),E=e.eql(x,b);let T=e.cmov(C,_,E);return{isValid:E,value:T}}}return h}function ahe(e,t){if(pW(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=ohe(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let o,a,i,s,c,l,u,d;o=e.sqr(r),o=e.mul(o,t.Z),a=e.sqr(o),a=e.add(a,o),i=e.add(a,e.ONE),i=e.mul(i,t.B),s=e.cmov(t.Z,e.neg(a),!e.eql(a,e.ZERO)),s=e.mul(s,t.A),a=e.sqr(i),l=e.sqr(s),c=e.mul(l,t.A),a=e.add(a,c),a=e.mul(a,i),l=e.mul(l,s),c=e.mul(l,t.B),a=e.add(a,c),u=e.mul(o,i);const{isValid:f,value:h}=n(a,l);d=e.mul(o,r),d=e.mul(d,h),u=e.cmov(u,i,f),d=e.cmov(d,h,f);const m=e.isOdd(r)===e.isOdd(d);return d=e.cmov(e.neg(d),d,m),u=e.div(u,s),{x:u,y:d}}}function ihe(e){if(e instanceof Uint8Array)return e;if(typeof e=="string")return Q_(e);throw new Error("DST must be Uint8Array or string")}const she=Xr;function wc(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=e&255,e>>>=8;return new Uint8Array(n)}function che(e,t){const n=new Uint8Array(e.length);for(let r=0;r255&&(t=r(Fo(Q_("H2C-OVERSIZE-DST-"),t)));const{outputLen:o,blockLen:a}=r,i=Math.ceil(n/o);if(i>255)throw new Error("Invalid xmd length");const s=Fo(t,wc(t.length,1)),c=wc(0,a),l=wc(n,2),u=new Array(i),d=r(Fo(c,e,l,wc(0,1),s));u[0]=r(Fo(d,wc(1,1),s));for(let h=1;h<=i;h++){const m=[che(d,u[h-1]),wc(h+1,1),s];u[h]=r(Fo(...m))}return Fo(...u).slice(0,n)}function uhe(e,t,n,r,o){if(rg(e),rg(t),Ej(n),t.length>255){const a=Math.ceil(2*r/8);t=o.create({dkLen:a}).update(Q_("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:n}).update(e).update(wc(n,2)).update(t).update(wc(t.length,1)).digest()}function FO(e,t,n){cm(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:r,k:o,m:a,hash:i,expand:s,DST:c}=n;rg(e),Ej(t);const l=ihe(c),u=r.toString(2).length,d=Math.ceil((u+o)/8),f=t*a*d;let h;if(s==="xmd")h=lhe(e,l,f,i);else if(s==="xof")h=uhe(e,l,f,o,i);else if(s==="_internal_pass")h=e;else throw new Error('expand must be "xmd" or "xof"');const m=new Array(t);for(let p=0;pArray.from(r).reverse());return(r,o)=>{const[a,i,s,c]=n.map(l=>l.reduce((u,d)=>e.add(e.mul(u,r),d)));return r=e.div(a,i),o=e.mul(o,e.div(s,c)),{x:r,y:o}}}function fhe(e,t,n){if(typeof t!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(r,o){const a=FO(r,2,{...n,DST:n.DST,...o}),i=e.fromAffine(t(a[0])),s=e.fromAffine(t(a[1])),c=i.add(s).clearCofactor();return c.assertValidity(),c},encodeToCurve(r,o){const a=FO(r,1,{...n,DST:n.encodeDST,...o}),i=e.fromAffine(t(a[0])).clearCofactor();return i.assertValidity(),i}}}let wW=class extends $k{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,ale(t);const r=Wg(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,a=new Uint8Array(o);a.set(r.length>o?t.create().update(r).digest():r);for(let i=0;inew wW(e,t).update(n).digest();EW.create=(e,t)=>new wW(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function hhe(e){return{hash:e,hmac:(t,...n)=>EW(e,t,ple(...n)),randomBytes:MH}}function mhe(e,t){const n=r=>rhe({...e,...hhe(r)});return Object.freeze({...n(t),create:n})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const X_=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Aw=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_W=BigInt(1),Dw=BigInt(2),MO=(e,t)=>(e+t/Dw)/t;function xW(e){const t=X_,n=BigInt(3),r=BigInt(6),o=BigInt(11),a=BigInt(22),i=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=oa(u,n,t)*u%t,f=oa(d,n,t)*u%t,h=oa(f,Dw,t)*l%t,m=oa(h,o,t)*h%t,p=oa(m,a,t)*m%t,b=oa(p,s,t)*p%t,v=oa(b,c,t)*b%t,g=oa(v,s,t)*p%t,w=oa(g,n,t)*u%t,_=oa(w,i,t)*m%t,C=oa(_,r,t)*l%t,x=oa(C,Dw,t);if(!sl.eql(sl.sqr(x),e))throw new Error("Cannot find square root");return x}const sl=Kfe(X_,void 0,void 0,{sqrt:xW}),oy=mhe({a:BigInt(0),b:BigInt(7),Fp:sl,n:Aw,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=Aw,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-_W*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=n,i=BigInt("0x100000000000000000000000000000000"),s=MO(a*e,t),c=MO(-r*e,t);let l=Xn(e-s*n-c*o,t),u=Xn(-s*r-c*a,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}}}},ng),J_=BigInt(0),CW=e=>typeof e=="bigint"&&J_typeof e=="bigint"&&J_o.charCodeAt(0)));n=Fo(r,r),LO[e]=n}return ng(Fo(n,...t))}const _j=e=>e.toRawBytes(!0).slice(1),E5=e=>il(e,32),BS=e=>Xn(e,X_),og=e=>Xn(e,Aw),xj=oy.ProjectivePoint,ghe=(e,t,n)=>xj.BASE.multiplyAndAddUnsafe(e,t,n);function _5(e){let t=oy.utils.normPrivateKeyToScalar(e),n=xj.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:og(-t),bytes:_j(n)}}function SW(e){if(!CW(e))throw new Error("bad x: need 0 < x < p");const t=BS(e*e),n=BS(t*e+BigInt(7));let r=xW(n);r%Dw!==J_&&(r=BS(-r));const o=new xj(e,r,_W);return o.assertValidity(),o}function TW(...e){return og(Xr(kw("BIP0340/challenge",...e)))}function yhe(e){return _5(e).bytes}function bhe(e,t,n=MH(32)){const r=Dr("message",e),{bytes:o,scalar:a}=_5(t),i=Dr("auxRand",n,32),s=E5(a^Xr(kw("BIP0340/aux",i))),c=kw("BIP0340/nonce",s,o,r),l=og(Xr(c));if(l===J_)throw new Error("sign failed: k is zero");const{bytes:u,scalar:d}=_5(l),f=TW(u,o,r),h=new Uint8Array(64);if(h.set(u,0),h.set(E5(og(d+f*a)),32),!AW(h,r,o))throw new Error("sign: Invalid signature produced");return h}function AW(e,t,n){const r=Dr("signature",e,64),o=Dr("message",t),a=Dr("publicKey",n,32);try{const i=SW(Xr(a)),s=Xr(r.subarray(0,32));if(!CW(s))return!1;const c=Xr(r.subarray(32,64));if(!phe(c))return!1;const l=TW(E5(s),_j(i),o),u=ghe(i,c,og(-l));return!(!u||!u.hasEvenY()||u.toAffine().x!==s)}catch{return!1}}const vhe={getPublicKey:yhe,sign:bhe,verify:AW,utils:{randomPrivateKey:oy.utils.randomPrivateKey,lift_x:SW,pointToBytes:_j,numberToBytesBE:il,bytesToNumberBE:Xr,taggedHash:kw,mod:Xn}},whe=dhe(sl,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(t=>BigInt(t)))),Ehe=ahe(sl,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:sl.create(BigInt("-11"))}),DW=fhe(oy.ProjectivePoint,e=>{const{x:t,y:n}=Ehe(sl.create(e[0]));return whe(t,n)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:sl.ORDER,m:1,k:128,expand:"xmd",hash:ng}),_he=DW.hashToCurve,xhe=DW.encodeToCurve,Che=Object.freeze(Object.defineProperty({__proto__:null,encodeToCurve:xhe,hashToCurve:_he,schnorr:vhe,secp256k1:oy},Symbol.toStringTag,{value:"Module"}));function ut(e,t=18,n){const r=(n==null?void 0:n.precision)??4,o=(n==null?void 0:n.keepZero)??!1,[a,i]=Wu(e,t).split("."),s=a.replace(/(?=(?!^)(\d{3})+$)/g,",");let c=(+`0.${i||0}`).toFixed(r);return o||(c=Number(c).toString()),`${s}${c.slice(1)}`}function She(e){const[t,n]=e.toString().split("."),r=t.replace(/(?=(?!^)(\d{3})+$)/g,",");return n?`${r}.${n}`:r}async function UO(e,t,n){let r=0n;return t.type==="native"?r=await n.getBalance({address:e}):r=await n.readContract({address:t.address,abi:(await me(async()=>{const{default:o}=await Promise.resolve().then(()=>aD);return{default:o}},void 0,import.meta.url)).default,functionName:"balanceOf",args:[e]}),{value:r,token:t}}var jt={},wt={},$O={};Object.defineProperty(wt,"__esModule",{value:!0});wt.HelixChainConf=wt.ChainRpc=wt.PickRPCStrategy=void 0;var Io;(function(e){e[e.Custom=0]="Custom",e[e.First=1]="First",e[e.Best=2]="Best",e[e.Random=3]="Random",e[e.PrivateFirst=4]="PrivateFirst",e[e.PublicFirst=5]="PublicFirst"})(Io||(wt.PickRPCStrategy=Io={}));class Z_{constructor(t){Ve(this,"options");this.options=t}static fromOptions(t){return t.map(n=>new Z_(n))}get provider(){return this.options.provider}get endpoint(){return this.options.endpoint}readEnv(t){return process&&$O?$O[t]??"":""}rpc(t){const{provider:n,endpoint:r}=this.options;if(!r)return;if(!n)return r.indexOf("$")>=-1?void 0:r;const o=n.toLowerCase();let a,i;switch(o){case"public":break;case"ankr":a="$ANKR_KEY",i=(t==null?void 0:t.ankrKey)??(t==null?void 0:t.key)??this.readEnv("ANKR_KEY");break;case"alchemy":a="$ALCHEMY_KEY",i=(t==null?void 0:t.alchemyKey)??(t==null?void 0:t.key)??this.readEnv("ALCHEMY_KEY");break;case"infura":a="$INFURA_KEY",i=(t==null?void 0:t.infuraKey)??(t==null?void 0:t.key)??this.readEnv("INFURA_KEY");break;case"blast":a="$BLAST_KEY",i=(t==null?void 0:t.blastKey)??(t==null?void 0:t.key)??this.readEnv("BLAST_KEY");break;default:return}return a&&i?r.replace(a,i):o==="public"?r:void 0}}wt.ChainRpc=Z_;class Cj{constructor(t){Ve(this,"_data");this._data=t}get _network(){return this._data._network}get testnet(){return this._network==="testnets"}get nativeCurrency(){return this.tokens.find(t=>t.type==="native")}get id(){return this._data.id}get lzid(){return this._data.lzid}get code(){return this._data.code}get name(){return this._data.name}get indexers(){return this._data.indexers}get rpcs(){return this.availableRpcs()}get additional(){return this._data.additional}get contract(){return this._data.contract}get protocol(){return this._data.protocol}get messagers(){return this._data.messagers}get tokens(){return this._data.tokens}get couples(){return this._data.couples}get rpc(){return this.pickRpcSync()}get(t){return this._data[t]}availableRpcs(t){const n=[];for(const r of this._data.rpcs){const o=r.rpc(t);o&&n.push(o)}return n}pickRpcSync(t){switch((t==null?void 0:t.strategy)??Io.PrivateFirst){case Io.Custom:return t!=null&&t.picker?t.picker(this.rpcs):this.rpcs[0];case Io.Random:{const r=this.rpcs.length;return this.rpcs[Math.floor(Math.random()*r)]}case Io.PrivateFirst:{const o=this._data.rpcs.filter(i=>i.provider!=="PUBLIC").map(i=>i.rpc(t==null?void 0:t.auth)).find(i=>i),a={...t,strategy:Io.First};return o||this.pickRpcSync(a)}case Io.PublicFirst:{const o=this._data.rpcs.filter(i=>i.provider==="PUBLIC").map(i=>i.rpc(t==null?void 0:t.auth)).find(i=>i),a={...t,strategy:Io.First};return o||this.pickRpcSync(a)}case Io.Best:case Io.First:default:return this.rpcs[0]}}async pickRpc(t){const n=(t==null?void 0:t.strategy)??Io.PrivateFirst;return n===Io.Custom?t!=null&&t.picker?await t.picker(this.rpcs):this.rpcs[0]:this.pickRpcSync({strategy:n})}indexer(t){return this.indexers.find(n=>n.type===t)}keys(){return Object.keys(this._data)}token(t){for(const n of this.tokens)if(n.alias.find(r=>Do(r,t)))return n}messager(t){const n=t.toUpperCase();for(const r of this.messagers)if(r.name.toUpperCase()===n)return r}categories(){return this.couples.map(n=>n.category).reduce((n,r)=>(n.includes(r)||n.push(r),n),[])}filterCouples(t){return t?this.couples.filter(n=>!(t.category&&!Do(n.category,t.category)||t.messager&&!(Do(n.messager.name,t.messager)||Do(n.messager.address,t.messager))||t.protocol&&!(Do(n.protocol.name,t.protocol)||Do(n.protocol.address,t.protocol))||t.chain&&!(Do(n.chain.id.toString(),t.chain)||Do(n.chain.code,t.chain)||Do(n.chain.name,t.chain))||t.symbolFrom&&!Do(n.symbol.from,t.symbolFrom)||t.symbolTo&&!Do(n.symbol.to,t.symbolTo)||t.symbol&&!(Do(n.symbol.from,t.symbol)&&Do(n.symbol.to,t.symbol)))):this.couples}toJSON(){return{_network:this._network,id:this.id,lzid:this.lzid,contract:this.contract,additional:this.additional,code:this.code,name:this.name,rpcs:this.rpcs,indexers:this.indexers,protocol:this.protocol,messagers:this.messagers,tokens:this.tokens,couples:this.couples}}static fromJson(t){return new Cj({_network:t._network,id:BigInt(t.id),lzid:t.lzid?BigInt(t.lzid):void 0,contract:t.contract,additional:t.additional,code:t.code,name:t.name,rpcs:Z_.fromOptions(t.rpcs),indexers:t.indexers,protocol:t.protocol,messagers:t.messagers,tokens:t.tokens,couples:t.couples})}}wt.HelixChainConf=Cj;function Do(e,t){return!e||!t?!1:e.toLowerCase()===t.toLowerCase()}var ex={},tx={};Object.defineProperty(tx,"__esModule",{value:!0});tx.arbitrumChain=void 0;const The=wt;tx.arbitrumChain=The.HelixChainConf.fromJson({id:"42161",lzid:"110",code:"arbitrum",name:"Arbitrum",rpcs:[{provider:"PUBLIC",endpoint:"https://arb1.arbitrum.io/rpc"},{provider:"ALCHEMY",endpoint:"https://arb-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://arbitrum-mainnet.infura.io/v3/$INFURA_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/arbitrum/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://arbitrum-one.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23",lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},{name:"eth2arb-receive",address:"0xc95D939Da72ECe8Bd794d42EaEd28974CDb0ADa2"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-arbitrum/v2.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"RING",address:"0x9e523234D36973f9e38642886197D023C88e307e",decimals:18,type:"erc20",alias:["RING"],name:"RING",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png"},{symbol:"WBTC",address:"0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",decimals:8,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"},{symbol:"DAI",address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",decimals:18,type:"erc20",alias:["DAI"],name:"DAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/dai.png"},{symbol:"LINK",address:"0xf97f4df75117a78c1A5a0DBb814Af92458539FB4",decimals:18,type:"erc20",alias:["LINK"],name:"LINK",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/link.png"}],couples:[{chain:{id:"81457",code:"blast",name:"Blast"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"3776",code:"astar-zkevm",name:"Astar zkEVM"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"48900",code:"zircuit",name:"Zircuit"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"ETH"},{chain:{id:"1",code:"ethereum",name:"Ethereum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-opposite",address:"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23"},fee:"100000000000000000000",messager:{name:"eth2arb-receive",address:"0xc95D939Da72ECe8Bd794d42EaEd28974CDb0ADa2"},category:"RING"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"RING",to:"Ring"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"RING"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"RING",to:"Ring"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"RING"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"10000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"324",code:"zksync",name:"zksync"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"1284",code:"moonbeam",name:"Moonbeam"},symbol:{from:"USDT",to:"xcUSDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"BTC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"BTC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"BTC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"BTC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"DAI"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"DAI"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"DAI"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"DAI",to:"xDAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"DAI"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"LINK"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"LINK"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x509354A4ebf98aCC7a65d2264694A65a2938cac9"},category:"LINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var nx={};Object.defineProperty(nx,"__esModule",{value:!0});nx.astarZkevmChain=void 0;const Ahe=wt;nx.astarZkevmChain=Ahe.HelixChainConf.fromJson({id:"3776",lzid:"257",code:"astar-zkevm",name:"Astar zkEVM",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.startale.com/astar-zkevm"}],contract:{"proxy-admin":"0x7684389eAa307e25Af38A31873E31Cc3B513EE01","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-astar-zkevm/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var rx={};Object.defineProperty(rx,"__esModule",{value:!0});rx.avalancheChain=void 0;const Dhe=wt;rx.avalancheChain=Dhe.HelixChainConf.fromJson({id:"43114",lzid:"106",code:"avalanche",name:"Avalanche",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/avalanche"},{provider:"ALCHEMY",endpoint:"https://avax-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://avalanche-mainnet.infura.io/v3/$INFURA_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/avalanche/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://ava-mainnet.blastapi.io/$BLAST_KEY/ext/bc/C/rpc"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"AVAX",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["AVAX"],name:"AVAX",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/avax.png"},{symbol:"USDT",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"WBTC",address:"0x152b9d0FdC40C096757F570A51E494bd4b943E50",decimals:8,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"},{symbol:"DAI",address:"0xd586E7F844cEa2F87f50152665BCbc2C279D8d70",decimals:18,type:"erc20",alias:["DAI"],name:"DAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/dai.png"},{symbol:"LINK",address:"0x5947BB275c521040051D82396192181b413227A3",decimals:18,type:"erc20",alias:["LINK"],name:"LINK",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/link.png"}],couples:[{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"DAI",to:"xDAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var ox={};Object.defineProperty(ox,"__esModule",{value:!0});ox.baseChain=void 0;const khe=wt;ox.baseChain=khe.HelixChainConf.fromJson({id:"8453",lzid:"184",code:"base",name:"base",rpcs:[{provider:"PUBLIC",endpoint:"https://mainnet.base.org"},{provider:"ALCHEMY",endpoint:"https://base-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/base/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://base-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDC",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var ax={};Object.defineProperty(ax,"__esModule",{value:!0});ax.blastChain=void 0;const jhe=wt;ax.blastChain=jhe.HelixChainConf.fromJson({id:"81457",lzid:"243",code:"blast",name:"Blast",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/blast"},{provider:"PUBLIC",endpoint:"https://rpc.blast.io"},{provider:"ALCHEMY",endpoint:"https://blast-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/blast/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://blastl2-mainnet.blastapi.io/$BLAST_KEY"}],contract:{"proxy-admin":"0x7684389eAa307e25Af38A31873E31Cc3B513EE01","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xB180D7DcB5CC161C862aD60442FA37527546cAFC"},messagers:[{name:"msgline",address:"0x98982b1685a63596834a05C1288dA7fbF27d684E"},{name:"layerzero",address:"0x8A87497488073307E1a17e8A12475a94Afcb413f"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-blast/v1.0.0"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xB180D7DcB5CC161C862aD60442FA37527546cAFC"},fee:"10000000000000",messager:{name:"layerzero",address:"0x8A87497488073307E1a17e8A12475a94Afcb413f"},category:"ETH"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var ix={};Object.defineProperty(ix,"__esModule",{value:!0});ix.bscChain=void 0;const Phe=wt;ix.bscChain=Phe.HelixChainConf.fromJson({id:"56",lzid:"102",code:"bsc",name:"bsc",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/bsc"},{provider:"PUBLIC",endpoint:"https://binance.llamarpc.com"},{provider:"PUBLIC",endpoint:"https://bsc-rpc.publicnode.com"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/bsc/$ANKR_KEY"},{provider:"ALCHEMY",endpoint:"https://bnb-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"BLAST",endpoint:"https://bsc-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-bsc/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"BNB",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/bnb.svg",alias:["BNB"],name:"BNB"},{symbol:"USDT",address:"0x55d398326f99059fF775485246999027B3197955",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"WBTC",address:"0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",decimals:18,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDT"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"BTC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"BTC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"BTC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000",messager:{name:"layerzero",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae"},category:"BTC"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var sx={};Object.defineProperty(sx,"__esModule",{value:!0});sx.crabDvmChain=void 0;const Ihe=wt;sx.crabDvmChain=Ihe.HelixChainConf.fromJson({id:"44",code:"crab-dvm",name:"Crab",rpcs:[{provider:"PUBLIC",endpoint:"https://crab-rpc.dcdao.box"},{provider:"PUBLIC",endpoint:"https://crab-rpc.darwinia.network"}],messagers:[{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],tokens:[{symbol:"CRAB",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["CRAB"],name:"CRAB",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/crab.png"},{symbol:"xWRING",alias:["RING","xWRING"],address:"0x273131F7CB50ac002BDd08cA721988731F7e1092",decimals:18,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png",name:"xWRING"}],couples:[{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"CRAB",to:"xWCRAB"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},hidden:!0,category:"CRAB"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"xWRING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"10000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING",hidden:!0}],_network:"mainnets",protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23",lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},indexers:[]});var cx={};Object.defineProperty(cx,"__esModule",{value:!0});cx.darwiniaDvmChain=void 0;const Ohe=wt;cx.darwiniaDvmChain=Ohe.HelixChainConf.fromJson({id:"46",code:"darwinia-dvm",name:"Darwinia",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.darwinia.network"}],indexers:[{type:"thegraph",endpoint:"https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/darwinia"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],messagers:[{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],tokens:[{symbol:"RING",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["RING"],name:"RING",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png"},{symbol:"xWCRAB",alias:["CRAB","xWCRAB"],address:"0x656567Eb75b765FC320783cc6EDd86bD854b2305",decimals:18,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/crab.png",name:"xWCRAB"},{symbol:"ahPINK",alias:["PINK","ahPINK"],address:"0x0000000000000000000000000000000000000404",decimals:10,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/pink.png",name:"ahPINK"},{symbol:"ahUSDT",alias:["USDT","ahUSDT"],address:"0x0000000000000000000000000000000000000403",decimals:6,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png",name:"ahUSDT"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"1",code:"ethereum",name:"Ethereum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-opposite",address:"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"44",code:"crab-dvm",name:"Crab"},symbol:{from:"RING",to:"xWRING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},hidden:!0,category:"RING"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"RING",to:"Ring"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"44",code:"crab-dvm",name:"Crab"},symbol:{from:"xWCRAB",to:"CRAB"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"CRAB",hidden:!0},{chain:{id:"1284",code:"moonbeam",name:"Moonbeam"},symbol:{from:"ahUSDT",to:"xcUSDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"USDT"},{chain:{id:"1284",code:"moonbeam",name:"Moonbeam"},symbol:{from:"ahPINK",to:"xcPINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"PINK"}],_network:"mainnets",protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23",lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var lx={};Object.defineProperty(lx,"__esModule",{value:!0});lx.ethereumChain=void 0;const Rhe=wt;lx.ethereumChain=Rhe.HelixChainConf.fromJson({id:"1",lzid:"101",code:"ethereum",name:"Ethereum",rpcs:[{provider:"PUBLIC",endpoint:"https://eth.llamarpc.com"},{provider:"ALCHEMY",endpoint:"https://eth-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://mainnet.infura.io/v3/$INFURA_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/eth/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://eth-mainnet.blastapi.io/$BLAST_KEY"}],messagers:[{name:"eth2arb-send",address:"0x78a6831Da2293fbEFd0d8aFB4D1f7CBB751e0119"},{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"RING",address:"0x9469D013805bFfB7D3DEBe5E7839237e535ec483",decimals:18,type:"erc20",alias:["RING"],name:"RING",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"eth2arb-send",address:"0x78a6831Da2293fbEFd0d8aFB4D1f7CBB751e0119"},category:"RING"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"RING",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"}],_network:"mainnets",protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":"0x48d769d5C7ff75703cDd1543A1a2ed9bC9044A23",lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},indexers:[]});var ux={};Object.defineProperty(ux,"__esModule",{value:!0});ux.gnosisChain=void 0;const Nhe=wt;ux.gnosisChain=Nhe.HelixChainConf.fromJson({id:"100",lzid:"145",code:"gnosis",name:"Gnosis",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.gnosischain.com"},{provider:"PUBLIC",endpoint:"https://gnosis-rpc.publicnode.com"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/gnosis/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://gnosis-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-gnosis/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"xDAI",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["xDAI"],name:"xDAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/xdai.png"},{symbol:"USDT",address:"0x4ECaBa5870353805a9F068101A40E0f32ed605C6",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDT"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"xDAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"DAI"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"xDAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"DAI"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"xDAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"DAI"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"xDAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283"},category:"DAI"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var dx={};Object.defineProperty(dx,"__esModule",{value:!0});dx.lineaChain=void 0;const Bhe=wt;dx.lineaChain=Bhe.HelixChainConf.fromJson({id:"59144",lzid:"183",code:"linea",name:"Linea",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.linea.build"},{provider:"PUBLIC",endpoint:"https://linea.drpc.org"},{provider:"PUBLIC",endpoint:"https://linea.decubate.com"},{provider:"PUBLIC",endpoint:"https://1rpc.io/linea"},{provider:"ALCHEMY",endpoint:"https://linea-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://linea-mainnet.infura.io/v3/$INFURA_KEY"},{provider:"BLAST",endpoint:"https://linea-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/linea"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0xA219439258ca9da29E9Cc4cE5596924745e12B93",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var fx={};Object.defineProperty(fx,"__esModule",{value:!0});fx.mantleChain=void 0;const Fhe=wt;fx.mantleChain=Fhe.HelixChainConf.fromJson({id:"5000",lzid:"181",code:"mantle",name:"Mantle",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/mantle"},{provider:"PUBLIC",endpoint:"https://rpc.mantle.xyz"},{provider:"PUBLIC",endpoint:"https://mantle-rpc.publicnode.com"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/mantle/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://mantle-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/mantle"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"MNT",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["MNT"],name:"MNT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/mnt.png"},{symbol:"USDT",address:"0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"324",code:"zksync",name:"zksync"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var hx={};Object.defineProperty(hx,"__esModule",{value:!0});hx.moonbeamChain=void 0;const Mhe=wt;hx.moonbeamChain=Mhe.HelixChainConf.fromJson({id:"1284",lzid:"126",code:"moonbeam",name:"Moonbeam",rpcs:[{provider:"PUBLIC",endpoint:"https://moonbeam-rpc.dwellir.com"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/moonbeam/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://moonbeam.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-moonbeam/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"GLMR",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",alias:["GLMR"],name:"GLMR"},{symbol:"xcUSDT",alias:["USDT","xcUSDT"],address:"0xFFFFFFfFea09FB06d082fd1275CD48b191cbCD1d",decimals:6,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png",name:"xcUSDT"},{symbol:"xcPINK",alias:["PINK","xcPINK"],address:"0xffffffff30478fafbe935e466da114e14fb3563d",decimals:10,type:"erc20",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/pink.png",name:"xcPINK"}],couples:[{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"xcUSDT",to:"ahUSDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"xcUSDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"xcPINK",to:"ahPINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"PINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var mx={};Object.defineProperty(mx,"__esModule",{value:!0});mx.opChain=void 0;const Lhe=wt;mx.opChain=Lhe.HelixChainConf.fromJson({id:"10",lzid:"111",code:"op",name:"Op",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/optimism"},{provider:"PUBLIC",endpoint:"https://mainnet.optimism.io"},{provider:"PUBLIC",endpoint:"https://optimism-rpc.publicnode.com"},{provider:"ALCHEMY",endpoint:"https://opt-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/optimism/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://optimism-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-op/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"WBTC",address:"0x68f180fcCe6836688e9084f035309E29Bf0A2095",decimals:8,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"},{symbol:"DAI",address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",decimals:18,type:"erc20",alias:["DAI"],name:"DAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/dai.png"},{symbol:"LINK",address:"0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6",decimals:18,type:"erc20",alias:["LINK"],name:"LINK",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/link.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDT"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"BTC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"DAI",to:"xDAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"DAI"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"LINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var px={};Object.defineProperty(px,"__esModule",{value:!0});px.polygonChain=void 0;const Uhe=wt;px.polygonChain=Uhe.HelixChainConf.fromJson({id:"137",lzid:"109",code:"polygon",name:"Polygon",rpcs:[{provider:"PUBLIC",endpoint:"https://polygon-rpc.com"},{provider:"PUBLIC",endpoint:"https://polygon-bor-rpc.publicnode.com"},{provider:"ALCHEMY",endpoint:"https://polygon-mainnet.g.alchemy.com/v2/$ALCHEMY_KEY"},{provider:"INFURA",endpoint:"https://polygon-mainnet.infura.io/v3/$INFURA_KEY"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/polygon/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://polygon-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-polygon/v1.0.0"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"MATIC",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/matic.svg",alias:["MATIC"],name:"MATIC"},{symbol:"Ring",address:"0x9C1C23E60B72Bc88a043bf64aFdb16A02540Ae8f",decimals:18,type:"erc20",alias:["Ring"],name:"Ring",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/ring.png"},{symbol:"USDT",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"},{symbol:"WBTC",address:"0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",decimals:8,type:"erc20",alias:["WBTC"],name:"WBTC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/wbtc.png"},{symbol:"DAI",address:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",decimals:18,type:"erc20",alias:["DAI"],name:"DAI",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/dai.png"},{symbol:"LINK",address:"0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39",decimals:18,type:"erc20",alias:["LINK"],name:"LINK",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/link.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"Ring",to:"RING"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"RING"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"Ring",to:"RING"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"RING"},{chain:{id:"46",code:"darwinia-dvm",name:"Darwinia"},symbol:{from:"Ring",to:"RING"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"30000000000000000000",messager:{name:"msgline",address:"0x65Be094765731F394bc6d9DF53bDF3376F1Fc8B0"},category:"RING"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDT"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"BTC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"BTC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"BTC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"WBTC",to:"WBTC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"BTC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"DAI"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"DAI"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"DAI",to:"DAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"DAI"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"DAI",to:"xDAI"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"DAI"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"LINK"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"LINK"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"LINK",to:"LINK"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"1000000000000000",messager:{name:"layerzero",address:"0x463D1730a8527CA58d48EF70C7460B9920346567"},category:"LINK"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var gx={};Object.defineProperty(gx,"__esModule",{value:!0});gx.scrollChain=void 0;const $he=wt;gx.scrollChain=$he.HelixChainConf.fromJson({id:"534352",lzid:"214",code:"scroll",name:"Scroll",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.ankr.com/scroll"},{provider:"PUBLIC",endpoint:"https://rpc.scroll.io"},{provider:"PUBLIC",endpoint:"https://scroll-mainnet.public.blastapi.io"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/scroll/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://scroll-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337","lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"}],indexers:[{type:"thegraph",endpoint:"https://api.studio.thegraph.com/query/59403/lnv3-scroll/v1.0.1"},{type:"hyperindex",endpoint:"https://indexer.bigdevenergy.link/e5a45aa/v1/graphql"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"ETH"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"ETH"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"ETH"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"324",code:"zksync",name:"zksync"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"59144",code:"linea",name:"Linea"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"8453",code:"base",name:"base"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"100",code:"gnosis",name:"Gnosis"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"56",code:"bsc",name:"bsc"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"137",code:"polygon",name:"Polygon"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"10",code:"op",name:"Op"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"},{chain:{id:"43114",code:"avalanche",name:"Avalanche"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"100000",messager:{name:"layerzero",address:"0x463d1730a8527ca58d48ef70c7460b9920346567"},category:"USDC"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var yx={};Object.defineProperty(yx,"__esModule",{value:!0});yx.zircuitChain=void 0;const zhe=wt;yx.zircuitChain=zhe.HelixChainConf.fromJson({id:"48900",lzid:"303",code:"zircuit",name:"Zircuit",rpcs:[{provider:"PUBLIC",endpoint:"https://zircuit1-mainnet.p2pify.com"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},messagers:[{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"}],indexers:[{type:"thegraph",endpoint:"https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/zircuit"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xbA5D580B18b6436411562981e02c8A9aA1776D10"},fee:"10000000000000",messager:{name:"layerzero",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1"},category:"ETH"}],_network:"mainnets",additional:{dao:"0xD0a0899c5dc2FEb253D57Ab0b7c6d1b1Fcbbf824",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0x601dE3B81c7cE04BecE3b29e5cEe4F3251d250dB","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"}});var bx={};Object.defineProperty(bx,"__esModule",{value:!0});bx.zksyncChain=void 0;const Hhe=wt;bx.zksyncChain=Hhe.HelixChainConf.fromJson({id:"324",lzid:"165",code:"zksync",name:"zksync",rpcs:[{provider:"PUBLIC",endpoint:"https://mainnet.era.zksync.io"},{provider:"ANKR",endpoint:"https://rpc.ankr.com/zksync_era/$ANKR_KEY"},{provider:"BLAST",endpoint:"https://zksync-mainnet.blastapi.io/$BLAST_KEY"}],protocol:{"lnv2-default":"0x767Bc046c989f5e63683fB530f939DD34b91ceAC","lnv2-opposite":null,lnv3:null},additional:{dao:"0x38b9145b6F4f363C42C83F62Ee09df0Ade6F8Dec",operator:"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},contract:{"proxy-admin":"0xA0d8a3C04580a8503ed3Ff30deBb22B83EE615F4","protocol-fee-receiver":"0x88a39B052d477CfdE47600a7C9950a441Ce61cb4"},messagers:[{name:"layerzero",address:"0x96892F3EaD26515592Da38432cFABad991BBd69d"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x493257fD37EDB34451f62EDf8D2a0C418852bA4C",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC.e",address:"0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4",decimals:6,type:"erc20",alias:["USDC.e"],name:"USDC.e",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.e.png"}],couples:[{chain:{id:"42161",code:"arbitrum",name:"Arbitrum"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x767Bc046c989f5e63683fB530f939DD34b91ceAC"},fee:"100000",messager:{name:"layerzero",address:"0x96892F3EaD26515592Da38432cFABad991BBd69d"},category:"USDT"},{chain:{id:"5000",code:"mantle",name:"Mantle"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x767Bc046c989f5e63683fB530f939DD34b91ceAC"},fee:"100000",messager:{name:"layerzero",address:"0x96892F3EaD26515592Da38432cFABad991BBd69d"},category:"USDT"},{chain:{id:"534352",code:"scroll",name:"Scroll"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x767Bc046c989f5e63683fB530f939DD34b91ceAC"},fee:"100000",messager:{name:"layerzero",address:"0x96892F3EaD26515592Da38432cFABad991BBd69d"},category:"USDT"}],_network:"mainnets",indexers:[]});var vx={};Object.defineProperty(vx,"__esModule",{value:!0});vx.arbitrumSepoliaChain=void 0;const qhe=wt;vx.arbitrumSepoliaChain=qhe.HelixChainConf.fromJson({id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://public.stackup.sh/api/v1/node/arbitrum-sepolia"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x3b8Bb7348D4F581e67E2498574F73e4B9Fc51855",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x8A87497488073307E1a17e8A12475a94Afcb413f",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"2710",code:"morph",name:"morph"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"167009",code:"taiko-hekla",name:"taiko-hekla"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",category:"USDC",messager:{name:"layerzero"}},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",category:"USDC"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"2710",code:"morph",name:"morph"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"80084",code:"bera",name:"bera"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"167009",code:"taiko-hekla",name:"taiko-hekla"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",category:"USDC",messager:{name:"layerzero"}},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"48899",code:"zircuit-sepolia",name:"Zircuit sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"1000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"2710",code:"morph",name:"morph"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"167009",code:"taiko-hekla",name:"taiko-hekla"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"2710",code:"morph",name:"morph"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"80084",code:"bera",name:"bera"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"167009",code:"taiko-hekla",name:"taiko-hekla"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"48899",code:"zircuit-sepolia",name:"Zircuit sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"1000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"2710",code:"morph",name:"morph"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"}],_network:"testnets",protocol:{"lnv2-default":"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739","lnv2-opposite":"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f",lnv3:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},messagers:[],indexers:[]});var wx={};Object.defineProperty(wx,"__esModule",{value:!0});wx.baseSepoliaChain=void 0;const Whe=wt;wx.baseSepoliaChain=Whe.HelixChainConf.fromJson({id:"84532",code:"base-sepolia",name:"base-sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://sepolia.base.org"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0x29D148A9e87C763292a33A55B9dBcAf44A194102"},tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x463D1730a8527CA58d48EF70C7460B9920346567",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x29D148A9e87C763292a33A55B9dBcAf44A194102"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x29D148A9e87C763292a33A55B9dBcAf44A194102"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"}],_network:"testnets",messagers:[],indexers:[]});var Ex={};Object.defineProperty(Ex,"__esModule",{value:!0});Ex.beraChain=void 0;const Ghe=wt;Ex.beraChain=Ghe.HelixChainConf.fromJson({id:"80084",code:"bera",name:"bera",rpcs:[{provider:"PUBLIC",endpoint:"https://bartio.rpc.berachain.com"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},tokens:[{symbol:"BERA",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/bera.svg",alias:["BERA"],name:"BERA"},{symbol:"USDT",address:"0x1E58fE2262301bdC13D9F691D01808045B4D3d0B",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x4F20B4631dB09A699477550cc83503E5925E3654",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x5fc7BC9F21e5dAd364756CC92c43C1E553580107"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"}],_network:"testnets",messagers:[],indexers:[]});var _x={};Object.defineProperty(_x,"__esModule",{value:!0});_x.morphChain=void 0;const Vhe=wt;_x.morphChain=Vhe.HelixChainConf.fromJson({id:"2710",code:"morph",name:"morph",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc-testnet.morphl2.io"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x463D1730a8527CA58d48EF70C7460B9920346567",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},fee:"100000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},fee:"100000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},fee:"100000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:null},fee:"100000",messager:{name:"layerzero"},category:"ETH"}],_network:"testnets",messagers:[],indexers:[]});var xx={};Object.defineProperty(xx,"__esModule",{value:!0});xx.sepoliaChain=void 0;const Khe=wt;xx.sepoliaChain=Khe.HelixChainConf.fromJson({id:"11155111",code:"sepolia",name:"Sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://ethereum-sepolia-rpc.publicnode.com"}],tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x876A4f6eCF13EEb101F9E75FCeF58f19Ff383eEB",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x0ac58Df0cc3542beC4cDa71B16D06C3cCc39f405",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"84532",code:"base-sepolia",name:"base-sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"84532",code:"base-sepolia",name:"base-sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-opposite",address:"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"300",code:"zksync-sepolia",name:"zksync-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"84532",code:"base-sepolia",name:"base-sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"}],_network:"testnets",protocol:{"lnv2-default":"0x8429D7Dfd91D6F970ba89fFC005e67D15f1E4739","lnv2-opposite":"0xbA96d83E2A04c4E50F2D6D7eCA03D70bA2426e5f",lnv3:"0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa"},messagers:[],indexers:[]});var Cx={};Object.defineProperty(Cx,"__esModule",{value:!0});Cx.taikoHeklaChain=void 0;const Yhe=wt;Cx.taikoHeklaChain=Yhe.HelixChainConf.fromJson({id:"167009",code:"taiko-hekla",name:"taiko-hekla",rpcs:[{provider:"PUBLIC",endpoint:"https://rpc.hekla.taiko.xyz"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x463D1730a8527CA58d48EF70C7460B9920346567",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x89AF830781A2C1d3580Db930bea11094F55AfEae",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xD476650e03a45E70202b0bcAfa04E1513920f83a"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"}],_network:"testnets",messagers:[],indexers:[]});var Sx={};Object.defineProperty(Sx,"__esModule",{value:!0});Sx.zircuitSepoliaChain=void 0;const Qhe=wt;Sx.zircuitSepoliaChain=Qhe.HelixChainConf.fromJson({id:"48899",code:"zircuit-sepolia",name:"Zircuit sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://zircuit1-testnet.p2pify.com/"}],protocol:{"lnv2-default":null,"lnv2-opposite":null,lnv3:"0x369642b7b9cf4eAc16b07797F77e1C0907Ea62c1"},tokens:[{symbol:"USDT",address:"0x9C80EdD342b5D179c3a87946fC1F0963BfcaAa09",decimals:18,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x8A87497488073307E1a17e8A12475a94Afcb413f",decimals:18,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0x369642b7b9cf4eAc16b07797F77e1C0907Ea62c1"},fee:"1000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0x369642b7b9cf4eAc16b07797F77e1C0907Ea62c1"},fee:"1000000000000000",messager:{name:"layerzero"},category:"USDC"}],_network:"testnets",messagers:[],indexers:[]});var Tx={};Object.defineProperty(Tx,"__esModule",{value:!0});Tx.zksyncSepoliaChain=void 0;const Xhe=wt;Tx.zksyncSepoliaChain=Xhe.HelixChainConf.fromJson({id:"300",code:"zksync-sepolia",name:"zksync-sepolia",rpcs:[{provider:"PUBLIC",endpoint:"https://zksync-sepolia.drpc.org"}],protocol:{"lnv2-default":"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37","lnv2-opposite":null,lnv3:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},tokens:[{symbol:"ETH",address:"0x0000000000000000000000000000000000000000",decimals:18,type:"native",alias:["ETH"],name:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png"},{symbol:"USDT",address:"0x3350f1ef046e21E052dCbA60Fc575919CCaFEdeb",decimals:6,type:"erc20",alias:["USDT"],name:"USDT",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdt.png"},{symbol:"USDC",address:"0x253adBFE99Fcd096B9b5502753F96CF78D42eaD0",decimals:6,type:"erc20",alias:["USDC"],name:"USDC",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/usdc.png"}],couples:[{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDC",to:"USDC"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDC"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"USDT",to:"USDT"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"USDT"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"11155111",code:"sepolia",name:"Sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv2-default",address:"0xBe23e871318E49C747CB909AC65aCCFAEAac3a37"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"},{chain:{id:"421614",code:"arbitrum-sepolia",name:"Arbitrum sepolia"},symbol:{from:"ETH",to:"ETH"},protocol:{name:"lnv3",address:"0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2"},fee:"100000000000000000",messager:{name:"layerzero"},category:"ETH"}],_network:"testnets",messagers:[],indexers:[]});Object.defineProperty(ex,"__esModule",{value:!0});ex.HelixChain=void 0;const Jhe=tx,Zhe=nx,eme=rx,tme=ox,nme=ax,rme=ix,ome=sx,ame=cx,ime=lx,sme=ux,cme=dx,lme=fx,ume=hx,dme=mx,fme=px,hme=gx,mme=yx,pme=bx,gme=vx,yme=wx,bme=Ex,vme=_x,wme=xx,Eme=Cx,_me=Sx,xme=Tx,Be=class Be{static codes(){return["arbitrum","astar-zkevm","avalanche","base","blast","bsc","crab-dvm","darwinia-dvm","ethereum","gnosis","linea","mantle","moonbeam","op","polygon","scroll","zircuit","zksync","arbitrum-sepolia","base-sepolia","bera","morph","sepolia","taiko-hekla","zircuit-sepolia","zksync-sepolia"]}static chains(t){const n=[Be.arbitrum,Be.astarZkevm,Be.avalanche,Be.base,Be.blast,Be.bsc,Be.crabDvm,Be.darwiniaDvm,Be.ethereum,Be.gnosis,Be.linea,Be.mantle,Be.moonbeam,Be.op,Be.polygon,Be.scroll,Be.zircuit,Be.zksync,Be.arbitrumSepolia,Be.baseSepolia,Be.bera,Be.morph,Be.sepolia,Be.taikoHekla,Be.zircuitSepolia,Be.zksyncSepolia],r=t==null?void 0:t.network;return r?n.filter(o=>o._network===r):n}static get(t){const n=t.toString().toUpperCase();return Be.chains().find(r=>r.code.toUpperCase()===n||r.id.toString()===n)}};Ve(Be,"arbitrum",Jhe.arbitrumChain),Ve(Be,"astarZkevm",Zhe.astarZkevmChain),Ve(Be,"avalanche",eme.avalancheChain),Ve(Be,"base",tme.baseChain),Ve(Be,"blast",nme.blastChain),Ve(Be,"bsc",rme.bscChain),Ve(Be,"crabDvm",ome.crabDvmChain),Ve(Be,"darwiniaDvm",ame.darwiniaDvmChain),Ve(Be,"ethereum",ime.ethereumChain),Ve(Be,"gnosis",sme.gnosisChain),Ve(Be,"linea",cme.lineaChain),Ve(Be,"mantle",lme.mantleChain),Ve(Be,"moonbeam",ume.moonbeamChain),Ve(Be,"op",dme.opChain),Ve(Be,"polygon",fme.polygonChain),Ve(Be,"scroll",hme.scrollChain),Ve(Be,"zircuit",mme.zircuitChain),Ve(Be,"zksync",pme.zksyncChain),Ve(Be,"arbitrumSepolia",gme.arbitrumSepoliaChain),Ve(Be,"baseSepolia",yme.baseSepoliaChain),Ve(Be,"bera",bme.beraChain),Ve(Be,"morph",vme.morphChain),Ve(Be,"sepolia",wme.sepoliaChain),Ve(Be,"taikoHekla",Eme.taikoHeklaChain),Ve(Be,"zircuitSepolia",_me.zircuitSepoliaChain),Ve(Be,"zksyncSepolia",xme.zksyncSepoliaChain);let x5=Be;ex.HelixChain=x5;(function(e){var t=We&&We.__createBinding||(Object.create?function(r,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(r,i,s)}:function(r,o,a,i){i===void 0&&(i=a),r[i]=o[a]}),n=We&&We.__exportStar||function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(wt,e),n(ex,e)})(jt);const Ax=1e3,Cme=0,Sme=.25*Ax,Tme=100*Ax,ho=2;var C5=function(e,t){return C5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},C5(e,t)};function or(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");C5(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var K=function(){return K=Object.assign||function(t){for(var n,r=1,o=arguments.length;r=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function jW(e,t){return function(n,r){t(n,r,e)}}function Ame(e,t,n,r,o,a){function i(v){if(v!==void 0&&typeof v!="function")throw new TypeError("Function expected");return v}for(var s=r.kind,c=s==="getter"?"get":s==="setter"?"set":"value",l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,h=n.length-1;h>=0;h--){var m={};for(var p in r)m[p]=p==="access"?{}:r[p];for(var p in r.access)m.access[p]=r.access[p];m.addInitializer=function(v){if(f)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(v||null))};var b=(0,n[h])(s==="accessor"?{get:u.get,set:u.set}:u[c],m);if(s==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(d=i(b.get))&&(u.get=d),(d=i(b.set))&&(u.set=d),(d=i(b.init))&&o.unshift(d)}else(d=i(b))&&(s==="field"?o.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function Dme(e,t,n){for(var r=arguments.length>2,o=0;o0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function cl(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function OW(){for(var e=[],t=0;t1||c(h,p)})},m&&(o[h]=m(o[h])))}function c(h,m){try{l(r[h](m))}catch(p){f(a[0][3],p)}}function l(h){h.value instanceof fs?Promise.resolve(h.value.v).then(u,d):f(a[0][2],h)}function u(h){c("next",h)}function d(h){c("throw",h)}function f(h,m){h(m),a.shift(),a.length&&c(a[0][0],a[0][1])}}function NW(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,a){t[o]=e[o]?function(i){return(n=!n)?{value:fs(e[o](i)),done:!1}:a?a(i):i}:a}}function Tj(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ku=="function"?Ku(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(i){return new Promise(function(s,c){i=e[a](i),o(s,c,i.done,i.value)})}}function o(a,i,s,c){Promise.resolve(c).then(function(l){a({value:l,done:s})},i)}}function BW(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Pme=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function FW(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Dx(t,e,n);return Pme(t,e),t}function MW(e){return e&&e.__esModule?e:{default:e}}function LW(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)}function UW(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function $W(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function zW(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var Ime=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function HW(e){function t(r){e.error=e.hasError?new Ime(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}const Ome={__extends:or,__assign:K,__rest:Jr,__decorate:kW,__param:jW,__metadata:PW,__awaiter:qa,__generator:la,__createBinding:Dx,__exportStar:IW,__values:Ku,__read:cl,__spread:OW,__spreadArrays:RW,__spreadArray:vn,__await:fs,__asyncGenerator:Sj,__asyncDelegator:NW,__asyncValues:Tj,__makeTemplateObject:BW,__importStar:FW,__importDefault:MW,__classPrivateFieldGet:LW,__classPrivateFieldSet:UW,__classPrivateFieldIn:$W,__addDisposableResource:zW,__disposeResources:HW},zYe=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:zW,get __assign(){return K},__asyncDelegator:NW,__asyncGenerator:Sj,__asyncValues:Tj,__await:fs,__awaiter:qa,__classPrivateFieldGet:LW,__classPrivateFieldIn:$W,__classPrivateFieldSet:UW,__createBinding:Dx,__decorate:kW,__disposeResources:HW,__esDecorate:Ame,__exportStar:IW,__extends:or,__generator:la,__importDefault:MW,__importStar:FW,__makeTemplateObject:BW,__metadata:PW,__param:jW,__propKey:kme,__read:cl,__rest:Jr,__runInitializers:Dme,__setFunctionName:jme,__spread:OW,__spreadArray:vn,__spreadArrays:RW,__values:Ku,default:Ome},Symbol.toStringTag,{value:"Module"}));var FS="Invariant Violation",zO=Object.setPrototypeOf,Rme=zO===void 0?function(e,t){return e.__proto__=t,e}:zO,qW=function(e){or(t,e);function t(n){n===void 0&&(n=FS);var r=e.call(this,typeof n=="number"?FS+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=FS,Rme(r,t.prototype),r}return t}(Error);function lu(e,t){if(!e)throw new qW(t)}var WW=["debug","log","warn","error","silent"],Nme=WW.indexOf("log");function tv(e){return function(){if(WW.indexOf(e)>=Nme){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=tv("debug"),e.log=tv("log"),e.warn=tv("warn"),e.error=tv("error")})(lu||(lu={}));var Aj="3.11.1";function Wa(e){try{return e()}catch{}}const S5=Wa(function(){return globalThis})||Wa(function(){return window})||Wa(function(){return self})||Wa(function(){return global})||Wa(function(){return Wa.constructor("return this")()});var HO=new Map;function T5(e){var t=HO.get(e)||1;return HO.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function GW(e,t){t===void 0&&(t=0);var n=T5("stringifyForDisplay");return JSON.stringify(e,function(r,o){return o===void 0?n:o},t).split(JSON.stringify(n)).join("")}function nv(e){return function(t){for(var n=[],r=1;r"}}function Dj(e,t){if(t===void 0&&(t=[]),!!e)return S5[qO]&&S5[qO](e,t.map(VW))}function kj(e,t){if(t===void 0&&(t=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Aj,message:e,args:t.map(VW)})))}function u1(e,t){if(!!!e)throw new Error(t)}function Bme(e){return typeof e=="object"&&e!==null}function Fme(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const Mme=/\r\n|[\n\r]/g;function A5(e,t){let n=0,r=1;for(const o of e.body.matchAll(Mme)){if(typeof o.index=="number"||Fme(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function Lme(e){return KW(e.source,A5(e.source,e.start))}function KW(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,a=e.locationOffset.line-1,i=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${i}:${c} -`,u=r.split(/\r\n|[\n\r]/g),d=u[o];if(d.length>120){const f=Math.floor(c/80),h=c%80,m=[];for(let p=0;p["|",p]),["|","^".padStart(h)],["|",m[f+1]]])}return l+WO([[`${i-1} |`,u[o-1]],[`${i} |`,d],["|","^".padStart(c)],[`${i+1} |`,u[o+1]]])}function WO(e){const t=e.filter(([r,o])=>o!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,o])=>r.padStart(n)+(o?" "+o:"")).join(` -`)}function Ume(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class jj extends Error{constructor(t,...n){var r,o,a;const{nodes:i,source:s,positions:c,path:l,originalError:u,extensions:d}=Ume(n);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=u??void 0,this.nodes=GO(Array.isArray(i)?i:i?[i]:void 0);const f=GO((r=this.nodes)===null||r===void 0?void 0:r.map(m=>m.loc).filter(m=>m!=null));this.source=s??(f==null||(o=f[0])===null||o===void 0?void 0:o.source),this.positions=c??(f==null?void 0:f.map(m=>m.start)),this.locations=c&&s?c.map(m=>A5(s,m)):f==null?void 0:f.map(m=>A5(m.source,m.start));const h=Bme(u==null?void 0:u.extensions)?u==null?void 0:u.extensions:void 0;this.extensions=(a=d??h)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,jj):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=` - -`+Lme(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=` - -`+KW(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function GO(e){return e===void 0||e.length===0?void 0:e}function Jn(e,t,n){return new jj(`Syntax Error: ${n}`,{source:e,positions:[t]})}class $me{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class YW{constructor(t,n,r,o,a,i){this.kind=t,this.start=n,this.end=r,this.line=o,this.column=a,this.value=i,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const QW={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},zme=new Set(Object.keys(QW));function VO(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&zme.has(t)}var If;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(If||(If={}));var D5;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(D5||(D5={}));var Ce;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Ce||(Ce={}));function k5(e){return e===9||e===32}function ag(e){return e>=48&&e<=57}function XW(e){return e>=97&&e<=122||e>=65&&e<=90}function JW(e){return XW(e)||e===95}function Hme(e){return XW(e)||ag(e)||e===95}function qme(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let i=0;is===0?i:i.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,o+1)}function Wme(e){let t=0;for(;t1&&r.slice(1).every(h=>h.length===0||k5(h.charCodeAt(0))),i=n.endsWith('\\"""'),s=e.endsWith('"')&&!i,c=e.endsWith("\\"),l=s||c,u=!o||e.length>70||l||a||i;let d="";const f=o&&k5(e.charCodeAt(0));return(u&&!f||a)&&(d+=` -`),d+=n,(u||l)&&(d+=` -`),'"""'+d+'"""'}var le;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(le||(le={}));class Vme{constructor(t){const n=new YW(le.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==le.EOF)do if(t.next)t=t.next;else{const n=Yme(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===le.COMMENT);return t}}function Kme(e){return e===le.BANG||e===le.DOLLAR||e===le.AMP||e===le.PAREN_L||e===le.PAREN_R||e===le.SPREAD||e===le.COLON||e===le.EQUALS||e===le.AT||e===le.BRACKET_L||e===le.BRACKET_R||e===le.BRACE_L||e===le.PIPE||e===le.BRACE_R}function lm(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function kx(e,t){return ZW(e.charCodeAt(t))&&eG(e.charCodeAt(t+1))}function ZW(e){return e>=55296&&e<=56319}function eG(e){return e>=56320&&e<=57343}function Yu(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return le.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Sn(e,t,n,r,o){const a=e.line,i=1+n-e.lineStart;return new YW(t,n,r,a,i,o)}function Yme(e,t){const n=e.source.body,r=n.length;let o=t;for(;o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function tpe(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` -`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Jn(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function npe(e,t){const n=e.source.body,r=n.length;let o=e.lineStart,a=t+3,i=a,s="";const c=[];for(;atG?"["+lpe(e)+"]":"{ "+n.map(([o,a])=>o+": "+jx(a,t)).join(", ")+" }"}function cpe(e,t){if(e.length===0)return"[]";if(t.length>tG)return"[Array]";const n=Math.min(ope,e.length),r=e.length-n,o=[];for(let a=0;a1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}function lpe(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const upe=globalThis.process&&!0,dpe=upe?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;const o=n.prototype[Symbol.toStringTag],a=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(o===a){const i=Pj(t);throw new Error(`Cannot use ${o} "${i}" from another module or realm. - -Ensure that there is only one instance of "graphql" in the node_modules -directory. If different versions of "graphql" are the dependencies of other -relied on modules, use "resolutions" to ensure only one version is installed. - -https://yarnpkg.com/en/docs/selective-version-resolutions - -Duplicate "graphql" modules cannot be used at the same time since different -versions may have different capabilities and behavior. The data from one -version used in the function from another could produce confusing and -spurious results.`)}}return!1};class nG{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||u1(!1,`Body must be a string. Received: ${Pj(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||u1(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||u1(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function fpe(e){return dpe(e,nG)}function hpe(e,t){return new mpe(e,t).parseDocument()}class mpe{constructor(t,n={}){const r=fpe(t)?t:new nG(t);this._lexer=new Vme(r),this._options=n,this._tokenCounter=0}parseName(){const t=this.expectToken(le.NAME);return this.node(t,{kind:Ce.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Ce.DOCUMENT,definitions:this.many(le.SOF,this.parseDefinition,le.EOF)})}parseDefinition(){if(this.peek(le.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===le.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw Jn(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(le.BRACE_L))return this.node(t,{kind:Ce.OPERATION_DEFINITION,operation:If.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(le.NAME)&&(r=this.parseName()),this.node(t,{kind:Ce.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(le.NAME);switch(t.value){case"query":return If.QUERY;case"mutation":return If.MUTATION;case"subscription":return If.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(le.PAREN_L,this.parseVariableDefinition,le.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Ce.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(le.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(le.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(le.DOLLAR),this.node(t,{kind:Ce.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Ce.SELECTION_SET,selections:this.many(le.BRACE_L,this.parseSelection,le.BRACE_R)})}parseSelection(){return this.peek(le.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,o;return this.expectOptionalToken(le.COLON)?(r=n,o=this.parseName()):o=n,this.node(t,{kind:Ce.FIELD,alias:r,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(le.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(le.PAREN_L,n,le.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:Ce.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(le.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(le.NAME)?this.node(t,{kind:Ce.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Ce.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:Ce.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Ce.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case le.BRACKET_L:return this.parseList(t);case le.BRACE_L:return this.parseObject(t);case le.INT:return this.advanceLexer(),this.node(n,{kind:Ce.INT,value:n.value});case le.FLOAT:return this.advanceLexer(),this.node(n,{kind:Ce.FLOAT,value:n.value});case le.STRING:case le.BLOCK_STRING:return this.parseStringLiteral();case le.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:Ce.BOOLEAN,value:!0});case"false":return this.node(n,{kind:Ce.BOOLEAN,value:!1});case"null":return this.node(n,{kind:Ce.NULL});default:return this.node(n,{kind:Ce.ENUM,value:n.value})}case le.DOLLAR:if(t)if(this.expectToken(le.DOLLAR),this._lexer.token.kind===le.NAME){const r=this._lexer.token.value;throw Jn(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:Ce.STRING,value:t.value,block:t.kind===le.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:Ce.LIST,values:this.any(le.BRACKET_L,n,le.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:Ce.OBJECT,fields:this.any(le.BRACE_L,n,le.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:Ce.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(le.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(le.AT),this.node(n,{kind:Ce.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(le.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(le.BRACKET_R),n=this.node(t,{kind:Ce.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(le.BANG)?this.node(t,{kind:Ce.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Ce.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(le.STRING)||this.peek(le.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),o=this.many(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);return this.node(t,{kind:Ce.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(le.COLON);const r=this.parseNamedType();return this.node(t,{kind:Ce.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:Ce.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(t,{kind:Ce.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:a,fields:i})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(le.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseFieldDefinition,le.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),o=this.parseArgumentDefs();this.expectToken(le.COLON);const a=this.parseTypeReference(),i=this.parseConstDirectives();return this.node(t,{kind:Ce.FIELD_DEFINITION,description:n,name:r,arguments:o,type:a,directives:i})}parseArgumentDefs(){return this.optionalMany(le.PAREN_L,this.parseInputValueDef,le.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(le.COLON);const o=this.parseTypeReference();let a;this.expectOptionalToken(le.EQUALS)&&(a=this.parseConstValueLiteral());const i=this.parseConstDirectives();return this.node(t,{kind:Ce.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:a,directives:i})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(t,{kind:Ce.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:a,fields:i})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),o=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:Ce.UNION_TYPE_DEFINITION,description:n,name:r,directives:o,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(le.EQUALS)?this.delimitedMany(le.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),o=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:Ce.ENUM_TYPE_DEFINITION,description:n,name:r,directives:o,values:a})}parseEnumValuesDefinition(){return this.optionalMany(le.BRACE_L,this.parseEnumValueDefinition,le.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:Ce.ENUM_VALUE_DEFINITION,description:n,name:r,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Jn(this._lexer.source,this._lexer.token.start,`${rv(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),o=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:Ce.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:o,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseInputValueDef,le.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===le.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Ce.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:Ce.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:Ce.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:a})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:Ce.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:a})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Ce.UNION_TYPE_EXTENSION,name:n,directives:r,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Ce.ENUM_TYPE_EXTENSION,name:n,directives:r,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Ce.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:o})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(le.AT);const r=this.parseName(),o=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const i=this.parseDirectiveLocations();return this.node(t,{kind:Ce.DIRECTIVE_DEFINITION,description:n,name:r,arguments:o,repeatable:a,locations:i})}parseDirectiveLocations(){return this.delimitedMany(le.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(D5,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new $me(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Jn(this._lexer.source,n.start,`Expected ${rG(t)}, found ${rv(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===le.NAME&&n.value===t)this.advanceLexer();else throw Jn(this._lexer.source,n.start,`Expected "${t}", found ${rv(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===le.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return Jn(this._lexer.source,n.start,`Unexpected ${rv(n)}.`)}any(t,n,r){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(r);)o.push(n.call(this));return o}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}return[]}many(t,n,r){this.expectToken(t);const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==le.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Jn(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function rv(e){const t=e.value;return rG(e.kind)+(t!=null?` "${t}"`:"")}function rG(e){return Kme(e)?`"${e}"`:e}function ppe(e){return`"${e.replace(gpe,ype)}"`}const gpe=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ype(e){return bpe[e.charCodeAt(0)]}const bpe=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Ij=Object.freeze({});function Ts(e,t,n=QW){const r=new Map;for(const v of Object.values(Ce))r.set(v,vpe(t,v));let o,a=Array.isArray(e),i=[e],s=-1,c=[],l=e,u,d;const f=[],h=[];do{s++;const v=s===i.length,g=v&&c.length!==0;if(v){if(u=h.length===0?void 0:f[f.length-1],l=d,d=h.pop(),g)if(a){l=l.slice();let _=0;for(const[C,x]of c){const E=C-_;x===null?(l.splice(E,1),_++):l[E]=x}}else{l=Object.defineProperties({},Object.getOwnPropertyDescriptors(l));for(const[_,C]of c)l[_]=C}s=o.index,i=o.keys,c=o.edits,a=o.inArray,o=o.prev}else if(d){if(u=a?s:i[s],l=d[u],l==null)continue;f.push(u)}let w;if(!Array.isArray(l)){var m,p;VO(l)||u1(!1,`Invalid AST Node: ${Pj(l)}.`);const _=v?(m=r.get(l.kind))===null||m===void 0?void 0:m.leave:(p=r.get(l.kind))===null||p===void 0?void 0:p.enter;if(w=_==null?void 0:_.call(t,l,u,d,f,h),w===Ij)break;if(w===!1){if(!v){f.pop();continue}}else if(w!==void 0&&(c.push([u,w]),!v))if(VO(w))l=w;else{f.pop();continue}}if(w===void 0&&g&&c.push([u,l]),v)f.pop();else{var b;o={inArray:a,index:s,keys:i,edits:c,prev:o},a=Array.isArray(l),i=a?l:(b=n[l.kind])!==null&&b!==void 0?b:[],s=-1,c=[],d&&h.push(d),d=l}}while(o!==void 0);return c.length!==0?c[c.length-1][1]:e}function vpe(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function wpe(e){return Ts(e,_pe)}const Epe=80,_pe={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Se(e.definitions,` - -`)},OperationDefinition:{leave(e){const t=mt("(",Se(e.variableDefinitions,", "),")"),n=Se([e.operation,Se([e.name,t]),Se(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+mt(" = ",n)+mt(" ",Se(r," "))},SelectionSet:{leave:({selections:e})=>Ra(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){const a=mt("",e,": ")+t;let i=a+mt("(",Se(n,", "),")");return i.length>Epe&&(i=a+mt(`( -`,d1(Se(n,` -`)),` -)`)),Se([i,Se(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+mt(" ",Se(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Se(["...",mt("on ",e),Se(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${mt("(",Se(n,", "),")")} on ${t} ${mt("",Se(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Gme(e):ppe(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Se(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Se(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+mt("(",Se(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>mt("",e,` -`)+Se(["schema",Se(t," "),Ra(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>mt("",e,` -`)+Se(["scalar",t,Se(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>mt("",e,` -`)+Se(["type",t,mt("implements ",Se(n," & ")),Se(r," "),Ra(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>mt("",e,` -`)+t+(YO(n)?mt(`( -`,d1(Se(n,` -`)),` -)`):mt("(",Se(n,", "),")"))+": "+r+mt(" ",Se(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>mt("",e,` -`)+Se([t+": "+n,mt("= ",r),Se(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>mt("",e,` -`)+Se(["interface",t,mt("implements ",Se(n," & ")),Se(r," "),Ra(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>mt("",e,` -`)+Se(["union",t,Se(n," "),mt("= ",Se(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>mt("",e,` -`)+Se(["enum",t,Se(n," "),Ra(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>mt("",e,` -`)+Se([t,Se(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>mt("",e,` -`)+Se(["input",t,Se(n," "),Ra(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>mt("",e,` -`)+"directive @"+t+(YO(n)?mt(`( -`,d1(Se(n,` -`)),` -)`):mt("(",Se(n,", "),")"))+(r?" repeatable":"")+" on "+Se(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Se(["extend schema",Se(e," "),Ra(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Se(["extend scalar",e,Se(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Se(["extend type",e,mt("implements ",Se(t," & ")),Se(n," "),Ra(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Se(["extend interface",e,mt("implements ",Se(t," & ")),Se(n," "),Ra(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Se(["extend union",e,Se(t," "),mt("= ",Se(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Se(["extend enum",e,Se(t," "),Ra(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Se(["extend input",e,Se(t," "),Ra(n)]," ")}};function Se(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function Ra(e){return mt(`{ -`,d1(Se(e,` -`)),` -}`)}function mt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function d1(e){return mt(" ",e.replace(/\n/g,` - `))}function YO(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!==null&&t!==void 0?t:!1}function QO(e){return e.kind===Ce.FIELD||e.kind===Ce.FRAGMENT_SPREAD||e.kind===Ce.INLINE_FRAGMENT}function ay(e,t){var n=e.directives;return!n||!n.length?!0:Spe(n).every(function(r){var o=r.directive,a=r.ifArgument,i=!1;return a.value.kind==="Variable"?(i=t&&t[a.value.name.value],Pe(i!==void 0,69,o.name.value)):i=a.value.value,o.name.value==="skip"?!i:i})}function ig(e,t,n){var r=new Set(e),o=r.size;return Ts(t,{Directive:function(a){if(r.delete(a.name.value)&&(!n||!r.size))return Ij}}),n?!r.size:r.sizeObject.create(null),{forEach:Ape,slice:XO}=Array.prototype,{hasOwnProperty:Dpe}=Object.prototype;let um=class oG{constructor(t=!0,n=Tpe){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return Ape.call(t,r=>n=n.getChildTrie(r)),Dpe.call(n,"data")?n.data:n.data=this.makeData(XO.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let r=0,o=t.length;n&&r=0})||!1,Ipe=(jpe||aG)&&!Ppe;function yn(e){return e!==null&&typeof e=="object"}function Ope(e,t){var n=t,r=[];e.definitions.forEach(function(a){if(a.kind==="OperationDefinition")throw no(73,a.operation,a.name?" named '".concat(a.name.value,"'"):"");a.kind==="FragmentDefinition"&&r.push(a)}),typeof n>"u"&&(Pe(r.length===1,74,r.length),n=r[0].name.value);var o=K(K({},e),{definitions:vn([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)});return o}function Ix(e){e===void 0&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function Ox(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var n=e.name.value;if(typeof t=="function")return t(n);var r=t&&t[n];return Pe(r,75,n),r||null}default:return null}}function Rpe(){}class j5{constructor(t=1/0,n=Rpe){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:o}=n;o&&(o.older=r),r&&(r.newer=o),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=o)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1}}function P5(){}const Npe=P5,Bpe=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},Fpe=typeof WeakMap<"u"?WeakMap:Map,Mpe=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:P5,unregister:P5}},Lpe=10024;class jw{constructor(t=1/0,n=Npe){this.max=t,this.dispose=n,this.map=new Fpe,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let o=0;o0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Mpe(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:o}=n;o&&(o.older=r),r&&(r.newer=o),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=o)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;const n=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,n),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),n&&this.map.delete(n)}delete(t){const n=this.map.get(t);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var LS=new WeakSet;function sG(e){e.size<=(e.max||-1)||LS.has(e)||(LS.add(e),setTimeout(function(){e.clean(),LS.delete(e)},100))}var Rj=function(e,t){var n=new jw(e,t);return n.set=function(r,o){var a=jw.prototype.set.call(this,r,o);return sG(this),a},n},Upe=function(e,t){var n=new j5(e,t);return n.set=function(r,o){var a=j5.prototype.set.call(this,r,o);return sG(this),a},n},$pe=Symbol.for("apollo.cacheSize"),Fi=K({},S5[$pe]),tu={};function Nj(e,t){tu[e]=t}var zpe=globalThis.__DEV__!==!1?Gpe:void 0,Hpe=globalThis.__DEV__!==!1?Vpe:void 0,qpe=globalThis.__DEV__!==!1?cG:void 0;function Wpe(){var e={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],r=t[1];return[n,Fi[n]||r]}))}function Gpe(){var e,t,n,r,o;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:Wpe(),sizes:K({print:(e=tu.print)===null||e===void 0?void 0:e.call(tu),parser:(t=tu.parser)===null||t===void 0?void 0:t.call(tu),canonicalStringify:(n=tu.canonicalStringify)===null||n===void 0?void 0:n.call(tu),links:O5(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:uG(this.queryManager.documentTransform)}},(o=(r=this.cache).getMemoryInternals)===null||o===void 0?void 0:o.call(r))}}function cG(){return{cache:{fragmentQueryDocuments:Ec(this.getFragmentDoc)}}}function Vpe(){var e=this.config.fragments;return K(K({},cG.apply(this)),{addTypenameDocumentTransform:uG(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Ec(this.storeReader.executeSelectionSet),executeSubSelectedArray:Ec(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Ec(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Ec(e==null?void 0:e.findFragmentSpreads),lookup:Ec(e==null?void 0:e.lookup),transform:Ec(e==null?void 0:e.transform)}})}function Kpe(e){return!!e&&"dirtyKey"in e}function Ec(e){return Kpe(e)?e.size:void 0}function lG(e){return e!=null}function uG(e){return I5(e).map(function(t){return{cache:t}})}function I5(e){return e?vn(vn([Ec(e==null?void 0:e.performWork)],I5(e==null?void 0:e.left),!0),I5(e==null?void 0:e.right),!0).filter(lG):[]}function O5(e){var t;return e?vn(vn([(t=e==null?void 0:e.getMemoryInternals)===null||t===void 0?void 0:t.call(e)],O5(e==null?void 0:e.left),!0),O5(e==null?void 0:e.right),!0).filter(lG):[]}var Vc=Object.assign(function(t){return JSON.stringify(t,Ype)},{reset:function(){Of=new Upe(Fi.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&Nj("canonicalStringify",function(){return Of.size});var Of;Vc.reset();function Ype(e,t){if(t&&typeof t=="object"){var n=Object.getPrototypeOf(t);if(n===Object.prototype||n===null){var r=Object.keys(t);if(r.every(Qpe))return t;var o=JSON.stringify(r),a=Of.get(o);if(!a){r.sort();var i=JSON.stringify(r);a=Of.get(i)||r,Of.set(o,a),Of.set(i,a)}var s=Object.create(n);return a.forEach(function(c){s[c]=t[c]}),s}}return t}function Qpe(e,t,n){return t===0||n[t-1]<=e}function Xf(e){return{__ref:String(e)}}function kt(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function Xpe(e){return yn(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function Jpe(e){return e.kind==="StringValue"}function Zpe(e){return e.kind==="BooleanValue"}function e0e(e){return e.kind==="IntValue"}function t0e(e){return e.kind==="FloatValue"}function n0e(e){return e.kind==="Variable"}function r0e(e){return e.kind==="ObjectValue"}function o0e(e){return e.kind==="ListValue"}function a0e(e){return e.kind==="EnumValue"}function i0e(e){return e.kind==="NullValue"}function wh(e,t,n,r){if(e0e(n)||t0e(n))e[t.value]=Number(n.value);else if(Zpe(n)||Jpe(n))e[t.value]=n.value;else if(r0e(n)){var o={};n.fields.map(function(i){return wh(o,i.name,i.value,r)}),e[t.value]=o}else if(n0e(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(o0e(n))e[t.value]=n.values.map(function(i){var s={};return wh(s,t,i,r),s[t.value]});else if(a0e(n))e[t.value]=n.value;else if(i0e(n))e[t.value]=null;else throw no(84,t.value,n.kind)}function s0e(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(o){n[o.name.value]={},o.arguments&&o.arguments.forEach(function(a){var i=a.name,s=a.value;return wh(n[o.name.value],i,s,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(o){var a=o.name,i=o.value;return wh(r,a,i,t)})),dG(e.name.value,r,n)}var c0e=["connection","include","skip","client","rest","export","nonreactive"],mp=Vc,dG=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o={};return r.forEach(function(s){o[s]=t[s]}),"".concat(n.connection.key,"(").concat(mp(o),")")}else return n.connection.key;var a=e;if(t){var i=mp(t);a+="(".concat(i,")")}return n&&Object.keys(n).forEach(function(s){c0e.indexOf(s)===-1&&(n[s]&&Object.keys(n[s]).length?a+="@".concat(s,"(").concat(mp(n[s]),")"):a+="@".concat(s))}),a},{setStringify:function(e){var t=mp;return mp=e,t}});function Rx(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){var o=r.name,a=r.value;return wh(n,o,a,t)}),n}return null}function ll(e){return e.alias?e.alias.value:e.name.value}function R5(e,t,n){for(var r,o=0,a=t.selections;oObject.create(null),{forEach:f0e,slice:h0e}=Array.prototype,{hasOwnProperty:m0e}=Object.prototype;class Fj{constructor(t=!0,n=d0e){this.weakness=t,this.makeData=n}lookup(...t){return this.lookupArray(t)}lookupArray(t){let n=this;return f0e.call(t,r=>n=n.getChildTrie(r)),m0e.call(n,"data")?n.data:n.data=this.makeData(h0e.call(t))}peek(...t){return this.peekArray(t)}peekArray(t){let n=this;for(let r=0,o=t.length;n&&rclass{constructor(){this.id=["slot",p0e++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=ir;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===ZO)break;return t!==ir&&(ir.slots[this.id]=n),!0}return ir&&(ir.slots[this.id]=ZO),!1}getValue(){if(this.hasValue())return ir.slots[this.id]}withValue(t,n,r,o){const a={__proto__:null,[this.id]:t},i=ir;ir={parent:i,slots:a};try{return n.apply(o,r)}finally{ir=i}}static bind(t){const n=ir;return function(){const r=ir;try{return ir=n,t.apply(this,arguments)}finally{ir=r}}}static noContext(t,n,r){if(ir){const o=ir;try{return ir=null,t.apply(r,n)}finally{ir=o}}else return t.apply(r,n)}};function eR(e){try{return e()}catch{}}const US="@wry/context:Slot",y0e=eR(()=>globalThis)||eR(()=>global)||Object.create(null),tR=y0e,hG=tR[US]||Array[US]||function(e){try{Object.defineProperty(tR,US,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(g0e()),Bx=new hG,{hasOwnProperty:b0e}=Object.prototype,Mj=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function Lj(e){const{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}const sg=[],v0e=100;function Eh(e,t){if(!e)throw new Error(t||"assertion failure")}function mG(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function pG(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function gG(e){return e.slice(0)}class Fx{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Fx.count}peek(){if(this.value.length===1&&!dl(this))return nR(this),this.value[0]}recompute(t){return Eh(!this.recomputing,"already recomputing"),nR(this),dl(this)?w0e(this,t):pG(this.value)}setDirty(){this.dirty||(this.dirty=!0,yG(this),Lj(this))}dispose(){this.setDirty(),_G(this),Uj(this,(t,n)=>{t.setDirty(),xG(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=sg.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(Mj(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),sg.push(this.deps),this.deps=null)}}Fx.count=0;function nR(e){const t=Bx.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),dl(e)?vG(t,e):wG(t,e),t}function w0e(e,t){return _G(e),Bx.withValue(e,E0e,[e,t]),x0e(e,t)&&_0e(e),pG(e.value)}function E0e(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&e.value.length===1&&(r=gG(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!mG(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(o){e.value[1]=o}e.recomputing=!1}function dl(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function _0e(e){e.dirty=!1,!dl(e)&&bG(e)}function yG(e){Uj(e,vG)}function bG(e){Uj(e,wG)}function Uj(e,t){const n=e.parents.size;if(n){const r=Mj(e.parents);for(let o=0;o0&&e.childValues.forEach((t,n)=>{xG(e,n)}),e.forgetDeps(),Eh(e.dirtyChildren===null)}function xG(e,t){t.parents.delete(e),e.childValues.delete(t),EG(e,t)}function x0e(e,t){if(typeof e.subscribe=="function")try{Lj(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}const C0e={setDirty:!0,dispose:!0,forget:!0};function CG(e){const t=new Map;function n(r){const o=Bx.getValue();if(o){let a=t.get(r);a||t.set(r,a=new Set),o.dependOn(a)}}return n.dirty=function(o,a){const i=t.get(o);if(i){const s=a&&b0e.call(C0e,a)?a:"setDirty";Mj(i).forEach(c=>c[s]()),t.delete(o),Lj(i)}},n}let rR;function S0e(...e){return(rR||(rR=new Fj(typeof WeakMap=="function"))).lookupArray(e)}const $S=new Set;function cg(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=S0e,normalizeResult:o,subscribe:a,cache:i=j5}=Object.create(null)){const s=typeof i=="function"?new i(t,f=>f.dispose()):i,c=function(){const f=r.apply(null,n?n.apply(null,arguments):arguments);if(f===void 0)return e.apply(null,arguments);let h=s.get(f);h||(s.set(f,h=new Fx(e)),h.normalizeResult=o,h.subscribe=a,h.forget=()=>s.delete(f));const m=h.recompute(Array.prototype.slice.call(arguments));return s.set(f,h),$S.add(s),Bx.hasValue()||($S.forEach(p=>p.clean()),$S.clear()),m};Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:o,subscribe:a,cache:s});function l(f){const h=f&&s.get(f);h&&h.setDirty()}c.dirtyKey=l,c.dirty=function(){l(r.apply(null,arguments))};function u(f){const h=f&&s.get(f);if(h)return h.peek()}c.peekKey=u,c.peek=function(){return u(r.apply(null,arguments))};function d(f){return f?s.delete(f):!1}return c.forgetKey=d,c.forget=function(){return d(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function T0e(e){return e}var SG=function(){function e(t,n){n===void 0&&(n=Object.create(null)),this.resultCache=iG?new WeakSet:new Set,this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(T0e,{cache:!1})},e.split=function(t,n,r){return r===void 0&&(r=e.identity()),Object.assign(new e(function(o){var a=t(o)?n:r;return a.transformDocument(o)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new um(dm);this.performWork=cg(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var o=t.getCacheKey(r);if(o)return Pe(Array.isArray(o),68),n.lookupArray(o)},max:Fi["documentTransform.cache"],cache:jw})}},e.prototype.performWork=function(t){return iy(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var n=this.performWork(t);return this.resultCache.add(n),n},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(r){return t.transformDocument(n.transformDocument(r))},{cache:!1}),{left:this,right:t})},e}(),y0,Mx=Object.assign(function(e){var t=y0.get(e);return t||(t=wpe(e),y0.set(e,t)),t},{reset:function(){y0=new Rj(Fi.print||2e3)}});Mx.reset();globalThis.__DEV__!==!1&&Nj("print",function(){return y0?y0.size:0});var bn=Array.isArray;function xa(e){return Array.isArray(e)&&e.length>0}var oR={kind:Ce.FIELD,name:{kind:Ce.NAME,value:"__typename"}};function TG(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===Ce.FRAGMENT_SPREAD&&TG(t[n.name.value],t)})}function A0e(e){return TG(sy(e)||u0e(e),Ix(Nx(e)))?null:e}function D0e(e){var t=new Map,n=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&n.set(r.test,r))}),function(r){var o=t.get(r.name.value);return!o&&n.size&&n.forEach(function(a,i){i(r)&&(o=a)}),o}}function aR(e){var t=new Map;return function(r){r===void 0&&(r=e);var o=t.get(r);return o||t.set(r,o={variables:new Set,fragmentSpreads:new Set}),o}}function AG(e,t){iy(t);for(var n=aR(""),r=aR(""),o=function(v){for(var g=0,w=void 0;g=0;--i)t.definitions[i].kind===Ce.OPERATION_DEFINITION&&++a;var s=D0e(e),c=function(v){return xa(v)&&v.map(s).some(function(g){return g&&g.remove})},l=new Map,u=!1,d={enter:function(v){if(c(v.directives))return u=!0,null}},f=Ts(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(v,g,w,_,C){var x=o(C);x&&x.variables.add(v.name.value)}},FragmentSpread:{enter:function(v,g,w,_,C){if(c(v.directives))return u=!0,null;var x=o(C);x&&x.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter:function(v,g,w,_){l.set(JSON.stringify(_),v)},leave:function(v,g,w,_){var C=l.get(JSON.stringify(_));if(v===C)return v;if(a>0&&v.selectionSet.selections.every(function(x){return x.kind===Ce.FIELD&&x.name.value==="__typename"}))return r(v.name.value).removed=!0,u=!0,null}},Directive:{leave:function(v){if(s(v))return u=!0,null}}});if(!u)return t;var h=function(v){return v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(function(g){h(r(g)).transitiveVars.forEach(function(w){v.transitiveVars.add(w)})})),v},m=new Set;f.definitions.forEach(function(v){v.kind===Ce.OPERATION_DEFINITION?h(n(v.name&&v.name.value)).fragmentSpreads.forEach(function(g){m.add(g)}):v.kind===Ce.FRAGMENT_DEFINITION&&a===0&&!r(v.name.value).removed&&m.add(v.name.value)}),m.forEach(function(v){h(r(v)).fragmentSpreads.forEach(function(g){m.add(g)})});var p=function(v){return!!(!m.has(v)||r(v).removed)},b={enter:function(v){if(p(v.name.value))return null}};return A0e(Ts(f,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(v){if(v.variableDefinitions){var g=h(n(v.name&&v.name.value)).transitiveVars;if(g.size1)for(var r=new fl,o=1;o=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O0e(e,t){if(e){if(typeof e=="string")return sR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sR(e,t)}}function sR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,s=!1,c=arguments[1],l=c;return new a(function(u){return o.subscribe({next:function(d){var f=!s;if(s=!0,!f||i)try{l=r(l,d)}catch(h){return u.error(h)}else l=d},error:function(d){u.error(d)},complete:function(){if(!s&&!i)return u.error(new TypeError("Cannot reduce an empty sequence"));u.next(l),u.complete()}})})},t.concat=function(){for(var r=this,o=arguments.length,a=new Array(o),i=0;i=0&&s.splice(f,1),l()}});s.push(d)},error:function(u){i.error(u)},complete:function(){l()}});function l(){c.closed&&s.length===0&&i.complete()}return function(){s.forEach(function(u){return u.unsubscribe()}),c.unsubscribe()}})},t[B5]=function(){return this},e.from=function(r){var o=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var a=Pw(r,B5);if(a){var i=a.call(r);if(Object(i)!==i)throw new TypeError(i+" is not an object");return N0e(i)&&i.constructor===o?i:new o(function(s){return i.subscribe(s)})}if(qj("iterator")&&(a=Pw(r,R0e),a))return new o(function(s){f1(function(){if(!s.closed){for(var c=I0e(a.call(r)),l;!(l=c()).done;){var u=l.value;if(s.next(u),s.closed)return}s.complete()}})});if(Array.isArray(r))return new o(function(s){f1(function(){if(!s.closed){for(var c=0;c=0;--s){var c=i[s],l=!isNaN(+c),u=l?[]:{};u[c]=a,a=u}n=r.merge(n,a)}),n}function h1(e){var t=L5(e);return xa(t)}function L5(e){var t=xa(e.errors)?e.errors.slice(0):[];return Jf(e)&&xa(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function Qu(){for(var e=[],t=0;t-1;){if(b=void 0,E=[s.slice(0,p),s.slice(p+i.length)],b=E[0],s=E[1],v=b.indexOf(`\r -\r -`),g=uge(b.slice(0,v)),w=g["content-type"],w&&w.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(_=b.slice(v),_){if(C=BG(e,_),Object.keys(C).length>1||"data"in C||"incremental"in C||"errors"in C||"payload"in C)if(W0e(C)){if(x={},"payload"in C){if(Object.keys(C).length===1&&C.payload===null)return[2];x=K({},C.payload)}"errors"in C&&(x=K(K({},x),{extensions:K(K({},"extensions"in x?x.extensions:null),(T={},T[Gj]=C.errors,T))})),t(x)}else t(C);else if(Object.keys(C).length===1&&"hasNext"in C&&!C.hasNext)return[2]}p=s.indexOf(i)}return[3,1];case 3:return[2]}})})}function uge(e){var t={};return e.split(` -`).forEach(function(n){var r=n.indexOf(":");if(r>-1){var o=n.slice(0,r).trim().toLowerCase(),a=n.slice(r+1).trim();t[o]=a}}),t}function BG(e,t){if(e.status>=300){var n=function(){try{return JSON.parse(t)}catch{return t}};NG(e,n(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(o){var r=o;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function dge(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function fge(e){return function(t){return t.text().then(function(n){return BG(t,n)}).then(function(n){return!Array.isArray(n)&&!mR.call(n,"data")&&!mR.call(n,"errors")&&NG(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}var $5=function(e,t){var n;try{n=JSON.stringify(e)}catch(o){var r=no(39,t,o.message);throw r.parseError=o,r}return n},hge={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},mge={accept:"*/*","content-type":"application/json"},pge={method:"POST"},gge={http:hge,headers:mge,options:pge},yge=function(e,t){return t(e)};function bge(e,t){for(var n=[],r=2;r"u")throw no(37)},Ege=function(e,t){var n=e.getContext(),r=n.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function _ge(e,t){var n=[],r=function(d,f){n.push("".concat(d,"=").concat(encodeURIComponent(f)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var o=void 0;try{o=$5(t.variables,"Variables map")}catch(d){return{parseError:d}}r("variables",o)}if(t.extensions){var a=void 0;try{a=$5(t.extensions,"Extensions map")}catch(d){return{parseError:d}}r("extensions",a)}var i="",s=e,c=e.indexOf("#");c!==-1&&(i=e.substr(c),s=e.substr(0,c));var l=s.indexOf("?")===-1?"?":"&",u=s+l+n.join("&")+i;return{newURI:u}}var pR=Wa(function(){return fetch}),xge=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?"/graphql":t,r=e.fetch,o=e.print,a=o===void 0?yge:o,i=e.includeExtensions,s=e.preserveHeaderCase,c=e.useGETForQueries,l=e.includeUnusedVariables,u=l===void 0?!1:l,d=Jr(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&wge(r||pR);var f={http:{includeExtensions:i,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new ly(function(h){var m=Ege(h,n),p=h.getContext(),b={};if(p.clientAwareness){var v=p.clientAwareness,g=v.name,w=v.version;g&&(b["apollographql-client-name"]=g),w&&(b["apollographql-client-version"]=w)}var _=K(K({},b),p.headers),C={http:p.http,options:p.fetchOptions,credentials:p.credentials,headers:_};if(ig(["client"],h.query)){var x=DG(h.query);if(!x)return qS(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));h.query=x}var E=bge(h,a,gge,f,C),T=E.options,k=E.body;k.variables&&!u&&(k.variables=Y0e(k.variables,h.query));var D;!T.signal&&typeof AbortController<"u"&&(D=new AbortController,T.signal=D.signal);var R=function(M){return M.kind==="OperationDefinition"&&M.operation==="mutation"},F=function(M){return M.kind==="OperationDefinition"&&M.operation==="subscription"},B=F(cy(h.query)),j=ig(["defer"],h.query);if(c&&!h.query.definitions.some(R)&&(T.method="GET"),j||B){T.headers=T.headers||{};var P="multipart/mixed;";B&&j&&globalThis.__DEV__!==!1&&Pe.warn(38),B?P+="boundary=graphql;subscriptionSpec=1.0,application/json":j&&(P+="deferSpec=20220824,application/json"),T.headers.accept=P}if(T.method==="GET"){var O=_ge(m,k),I=O.newURI,N=O.parseError;if(N)return qS(N);m=I}else try{T.body=$5(k,"Payload")}catch(M){return qS(M)}return new Gt(function(M){var L=r||Wa(function(){return fetch})||pR,X=M.next.bind(M);return L(m,T).then(function(J){var U;h.setContext({response:J});var G=(U=J.headers)===null||U===void 0?void 0:U.get("content-type");return G!==null&&/^multipart\/mixed/i.test(G)?lge(J,X):fge(h)(J).then(X)}).then(function(){D=void 0,M.complete()}).catch(function(J){D=void 0,dge(J,M)}),function(){D&&D.abort()}})})},Cge=function(e){or(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,xge(n).request)||this;return r.options=n,r}return t}(ly);const{toString:gR,hasOwnProperty:Sge}=Object.prototype,yR=Function.prototype.toString,z5=new Map;function Rt(e,t){try{return H5(e,t)}finally{z5.clear()}}function H5(e,t){if(e===t)return!0;const n=gR.call(e),r=gR.call(t);if(n!==r)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(vR(e,t))return!0;const o=bR(e),a=bR(t),i=o.length;if(i!==a.length)return!1;for(let s=0;s=0&&e.indexOf(t,n)===n}function vR(e,t){let n=z5.get(e);if(n){if(n.has(t))return!0}else z5.set(e,n=new Set);return n.add(t),!1}function FG(e,t,n,r){var o=t.data,a=Jr(t,["data"]),i=n.data,s=Jr(n,["data"]);return Rt(a,s)&&p1(cy(e).selectionSet,o,i,{fragmentMap:Ix(Nx(e)),variables:r})}function p1(e,t,n,r){if(t===n)return!0;var o=new Set;return e.selections.every(function(a){if(o.has(a)||(o.add(a),!ay(a,r.variables))||wR(a))return!0;if(ul(a)){var i=ll(a),s=t&&t[i],c=n&&n[i],l=a.selectionSet;if(!l)return Rt(s,c);var u=Array.isArray(s),d=Array.isArray(c);if(u!==d)return!1;if(u&&d){var f=s.length;if(c.length!==f)return!1;for(var h=0;h=0;--c)s.missing=(i={},i[s.path[c]]=s.missing,i)}else s.missing=s.path;return s.__proto__=t.prototype,s}return t}(Error),Kn=Object.prototype.hasOwnProperty;function yp(e){return e==null}function UG(e,t){var n=e.__typename,r=e.id,o=e._id;if(typeof n=="string"&&(t&&(t.keyObject=yp(r)?yp(o)?void 0:{_id:o}:{id:r}),yp(r)&&!yp(o)&&(r=o),!yp(r)))return"".concat(n,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var $G={dataIdFromObject:UG,addTypename:!0,resultCaching:!0,canonizeResults:!1};function jge(e){return Qu($G,e)}function zG(e){var t=e.canonizeResults;return t===void 0?$G.canonizeResults:t}function Pge(e,t){return kt(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var HG=/^[_a-z][_0-9a-z]*/i;function hl(e){var t=e.match(HG);return t?t[0]:e}function q5(e,t,n){return yn(t)?bn(t)?t.every(function(r){return q5(e,r,n)}):e.selections.every(function(r){if(ul(r)&&ay(r,n)){var o=ll(r);return Kn.call(t,o)&&(!r.selectionSet||q5(r.selectionSet,t[o],n))}return!0}):!1}function Rf(e){return yn(e)&&!kt(e)&&!bn(e)}function Ige(){return new fl}function qG(e,t){var n=Ix(Nx(e));return{fragmentMap:n,lookupFragment:function(r){var o=n[r];return!o&&t&&(o=t.lookup(r)),o||null}}}var g1=Object.create(null),WS=function(){return g1},ER=Object.create(null),ug=function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(o,a){return lg(kt(o)?r.get(o.__ref,a):o&&o[a])},this.canRead=function(o){return kt(o)?r.has(o.__ref):typeof o=="object"},this.toReference=function(o,a){if(typeof o=="string")return Xf(o);if(kt(o))return o;var i=r.policies.identify(o)[0];if(i){var s=Xf(i);return a&&r.merge(i,o),s}}}return e.prototype.toObject=function(){return K({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,n){if(this.group.depend(t,n),Kn.call(this.data,t)){var r=this.data[t];if(r&&Kn.call(r,n))return r[n]}if(n==="__typename"&&Kn.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof gc)return this.parent.get(t,n)},e.prototype.lookup=function(t,n){if(n&&this.group.depend(t,"__exists"),Kn.call(this.data,t))return this.data[t];if(this instanceof gc)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,n){var r=this,o;kt(t)&&(t=t.__ref),kt(n)&&(n=n.__ref);var a=typeof t=="string"?this.lookup(o=t):t,i=typeof n=="string"?this.lookup(o=n):n;if(i){Pe(typeof o=="string",1);var s=new fl(Rge).merge(a,i);if(this.data[o]=s,s!==a&&(delete this.refs[o],this.group.caching)){var c=Object.create(null);a||(c.__exists=1),Object.keys(i).forEach(function(l){if(!a||a[l]!==s[l]){c[l]=1;var u=hl(l);u!==l&&!r.policies.hasKeyArgs(s.__typename,u)&&(c[u]=1),s[l]===void 0&&!(r instanceof gc)&&delete s[l]}}),c.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[o]===s.__typename&&delete c.__typename,Object.keys(c).forEach(function(l){return r.group.dirty(o,l)})}}},e.prototype.modify=function(t,n){var r=this,o=this.lookup(t);if(o){var a=Object.create(null),i=!1,s=!0,c={DELETE:g1,INVALIDATE:ER,isReference:kt,toReference:this.toReference,canRead:this.canRead,readField:function(l,u){return r.policies.readField(typeof l=="string"?{fieldName:l,from:u||Xf(t)}:l,{store:r})}};if(Object.keys(o).forEach(function(l){var u=hl(l),d=o[l];if(d!==void 0){var f=typeof n=="function"?n:n[l]||n[u];if(f){var h=f===WS?g1:f(lg(d),K(K({},c),{fieldName:u,storeFieldName:l,storage:r.getStorage(t,l)}));if(h===ER)r.group.dirty(t,l);else if(h===g1&&(h=void 0),h!==d&&(a[l]=h,i=!0,d=h,globalThis.__DEV__!==!1)){var m=function(C){if(r.lookup(C.__ref)===void 0)return globalThis.__DEV__!==!1&&Pe.warn(2,C),!0};if(kt(h))m(h);else if(Array.isArray(h))for(var p=!1,b=void 0,v=0,g=h;v0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof gc?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(i){Kn.call(r,i)&&(Object.keys(t.findChildRefIds(i)).forEach(n.add,n),delete r[i])});var o=Object.keys(r);if(o.length){for(var a=this;a instanceof gc;)a=a.parent;o.forEach(function(i){return a.delete(i)})}return o},e.prototype.findChildRefIds=function(t){if(!Kn.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var o=new Set([r]);o.forEach(function(a){kt(a)&&(n[a.__ref]=!0),yn(a)&&Object.keys(a).forEach(function(i){var s=a[i];yn(s)&&o.add(s)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),WG=function(){function e(t,n){n===void 0&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?CG():null,this.keyMaker=new um(dm)},e.prototype.depend=function(t,n){if(this.d){this.d(GS(t,n));var r=hl(n);r!==n&&this.d(GS(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(GS(t,n),n==="__exists"?"forget":"setDirty")},e}();function GS(e,t){return t+"#"+e}function _R(e,t){v0(e)&&e.group.depend(t,"__exists")}(function(e){var t=function(n){or(r,n);function r(o){var a=o.policies,i=o.resultCaching,s=i===void 0?!0:i,c=o.seed,l=n.call(this,a,new WG(s))||this;return l.stump=new Oge(l),l.storageTrie=new um(dm),c&&l.replace(c),l}return r.prototype.addLayer=function(o,a){return this.stump.addLayer(o,a)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(e);e.Root=t})(ug||(ug={}));var gc=function(e){or(t,e);function t(n,r,o,a){var i=e.call(this,r.policies,a)||this;return i.id=n,i.parent=r,i.replay=o,i.group=a,o(i),i}return t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,o=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(a){var i=r.data[a],s=o.lookup(a);s?i?i!==s&&Object.keys(i).forEach(function(c){Rt(i[c],s[c])||r.group.dirty(a,c)}):(r.group.dirty(a,"__exists"),Object.keys(s).forEach(function(c){r.group.dirty(a,c)})):r.delete(a)}),o):o===this.parent?this:o.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return K(K({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return Kn.call(this.data,n)?K(K({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t}(ug),Oge=function(e){or(t,e);function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new WG(n.group.caching,n.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(n,r){return this.parent.merge(n,r)},t}(gc);function Rge(e,t,n){var r=e[n],o=t[n];return Rt(r,o)?r:o}function v0(e){return!!(e instanceof ug&&e.group.caching)}function Nge(e){return yn(e)?bn(e)?e.slice(0):K({__proto__:Object.getPrototypeOf(e)},e):e}var xR=function(){function e(){this.known=new(iG?WeakSet:Set),this.pool=new um(dm),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return yn(t)&&this.known.has(t)},e.prototype.pass=function(t){if(yn(t)){var n=Nge(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(yn(t)){var r=this.passes.get(t);if(r)return r;var o=Object.getPrototypeOf(t);switch(o){case Array.prototype:{if(this.known.has(t))return t;var a=t.map(this.admit,this),i=this.pool.lookupArray(a);return i.array||(this.known.add(i.array=a),globalThis.__DEV__!==!1&&Object.freeze(a)),i.array}case null:case Object.prototype:{if(this.known.has(t))return t;var s=Object.getPrototypeOf(t),c=[s],l=this.sortedKeys(t);c.push(l.json);var u=c.length;l.sorted.forEach(function(h){c.push(n.admit(t[h]))});var i=this.pool.lookupArray(c);if(!i.object){var d=i.object=Object.create(s);this.known.add(d),l.sorted.forEach(function(h,m){d[h]=c[u+m]}),globalThis.__DEV__!==!1&&Object.freeze(d)}return i.object}}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var o=JSON.stringify(n);(r.keys=this.keysByJSON.get(o))||this.keysByJSON.set(o,r.keys={sorted:n,json:o})}return r.keys},e}();function CR(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Bge=function(){function e(t){var n=this;this.knownResults=new(dm?WeakMap:Map),this.config=Qu(t,{addTypename:t.addTypename!==!1,canonizeResults:zG(t)}),this.canon=t.canon||new xR,this.executeSelectionSet=cg(function(r){var o,a=r.context.canonizeResults,i=CR(r);i[3]=!a;var s=(o=n.executeSelectionSet).peek.apply(o,i);return s?a?K(K({},s),{result:n.canon.admit(s.result)}):s:(_R(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||Fi["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:CR,makeCacheKey:function(r,o,a,i){if(v0(a.store))return a.store.makeCacheKey(r,kt(o)?o.__ref:o,a.varString,i)}}),this.executeSubSelectedArray=cg(function(r){return _R(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||Fi["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var o=r.field,a=r.array,i=r.context;if(v0(i.store))return i.store.makeCacheKey(o,a,i.varString)}})}return e.prototype.resetCanon=function(){this.canon=new xR},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,o=t.rootId,a=o===void 0?"ROOT_QUERY":o,i=t.variables,s=t.returnPartialData,c=s===void 0?!0:s,l=t.canonizeResults,u=l===void 0?this.config.canonizeResults:l,d=this.config.cache.policies;i=K(K({},Bj(fG(r))),i);var f=Xf(a),h=this.executeSelectionSet({selectionSet:cy(r).selectionSet,objectOrReference:f,enclosingRef:f,context:K({store:n,query:r,policies:d,variables:i,varString:Vc(i),canonizeResults:u},qG(r,this.config.fragments))}),m;if(h.missing&&(m=[new LG(Fge(h.missing),h.missing,r,i)],!c))throw m[0];return{result:h.result,complete:!m,missing:m}},e.prototype.isFresh=function(t,n,r,o){if(v0(o.store)&&this.knownResults.get(t)===r){var a=this.executeSelectionSet.peek(r,n,o,this.canon.isKnown(t));if(a&&t===a.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,o=t.objectOrReference,a=t.enclosingRef,i=t.context;if(kt(o)&&!i.policies.rootTypenamesById[o.__ref]&&!i.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var s=i.variables,c=i.policies,l=i.store,u=l.getFieldValue(o,"__typename"),d=[],f,h=new fl;this.config.addTypename&&typeof u=="string"&&!c.rootIdsByTypename[u]&&d.push({__typename:u});function m(w,_){var C;return w.missing&&(f=h.merge(f,(C={},C[_]=w.missing,C))),w.result}var p=new Set(r.selections);p.forEach(function(w){var _,C;if(ay(w,s))if(ul(w)){var x=c.readField({fieldName:w.name.value,field:w,variables:i.variables,from:o},i),E=ll(w);x===void 0?$j.added(w)||(f=h.merge(f,(_={},_[E]="Can't find field '".concat(w.name.value,"' on ").concat(kt(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),_))):bn(x)?x.length>0&&(x=m(n.executeSubSelectedArray({field:w,array:x,enclosingRef:a,context:i}),E)):w.selectionSet?x!=null&&(x=m(n.executeSelectionSet({selectionSet:w.selectionSet,objectOrReference:x,enclosingRef:kt(x)?x:a,context:i}),E)):i.canonizeResults&&(x=n.canon.pass(x)),x!==void 0&&d.push((C={},C[E]=x,C))}else{var T=Ox(w,i.lookupFragment);if(!T&&w.kind===Ce.FRAGMENT_SPREAD)throw no(9,w.name.value);T&&c.fragmentMatches(T,u)&&T.selectionSet.selections.forEach(p.add,p)}});var b=Lx(d),v={result:b,missing:f},g=i.canonizeResults?this.canon.admit(v):lg(v);return g.result&&this.knownResults.set(g.result,r),g},e.prototype.execSubSelectedArrayImpl=function(t){var n=this,r=t.field,o=t.array,a=t.enclosingRef,i=t.context,s,c=new fl;function l(u,d){var f;return u.missing&&(s=c.merge(s,(f={},f[d]=u.missing,f))),u.result}return r.selectionSet&&(o=o.filter(i.store.canRead)),o=o.map(function(u,d){return u===null?null:bn(u)?l(n.executeSubSelectedArray({field:r,array:u,enclosingRef:a,context:i}),d):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:u,enclosingRef:kt(u)?u:a,context:i}),d):(globalThis.__DEV__!==!1&&Mge(i.store,r,u),u)}),{result:i.canonizeResults?this.canon.admit(o):o,missing:s}},e}();function Fge(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function Mge(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(o){yn(o)&&(Pe(!kt(o),10,Pge(e,o),t.name.value),Object.values(o).forEach(r.add,r))})}}var Vj=new hG,SR=new WeakMap;function w0(e){var t=SR.get(e);return t||SR.set(e,t={vars:new Set,dep:CG()}),t}function TR(e){w0(e).vars.forEach(function(t){return t.forgetCache(e)})}function Lge(e){w0(e).vars.forEach(function(t){return t.attachCache(e)})}function Uge(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(c){w0(c).dep.dirty(r),$ge(c)});var i=Array.from(n);n.clear(),i.forEach(function(c){return c(e)})}}else{var s=Vj.getValue();s&&(o(s),w0(s).dep(r))}return e};r.onNextChange=function(a){return n.add(a),function(){n.delete(a)}};var o=r.attachCache=function(a){return t.add(a),w0(a).vars.add(r),r};return r.forgetCache=function(a){return t.delete(a)},r}function $ge(e){e.broadcastWatches&&e.broadcastWatches()}var AR=Object.create(null);function Kj(e){var t=JSON.stringify(e);return AR[t]||(AR[t]=Object.create(null))}function DR(e){var t=Kj(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var o=function(i,s){return r.readField(s,i)},a=r.keyObject=Yj(e,function(i){var s=Zf(r.storeObject,i,o);return s===void 0&&n!==r.storeObject&&Kn.call(n,i[0])&&(s=Zf(n,i,VG)),Pe(s!==void 0,4,i.join("."),n),s});return"".concat(r.typename,":").concat(JSON.stringify(a))})}function kR(e){var t=Kj(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var o=r.field,a=r.variables,i=r.fieldName,s=Yj(e,function(l){var u=l[0],d=u.charAt(0);if(d==="@"){if(o&&xa(o.directives)){var f=u.slice(1),h=o.directives.find(function(v){return v.name.value===f}),m=h&&Rx(h,a);return m&&Zf(m,l.slice(1))}return}if(d==="$"){var p=u.slice(1);if(a&&Kn.call(a,p)){var b=l.slice(0);return b[0]=p,Zf(a,b)}return}if(n)return Zf(n,l)}),c=JSON.stringify(s);return(n||c!=="{}")&&(i+=":"+c),i})}function Yj(e,t){var n=new fl;return GG(e).reduce(function(r,o){var a,i=t(o);if(i!==void 0){for(var s=o.length-1;s>=0;--s)i=(a={},a[o[s]]=i,a);r=n.merge(r,i)}return r},Object.create(null))}function GG(e){var t=Kj(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(o,a){bn(o)?(GG(o).forEach(function(i){return n.push(r.concat(i))}),r.length=0):(r.push(o),bn(e[a+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function VG(e,t){return e[t]}function Zf(e,t,n){return n=n||VG,KG(t.reduce(function r(o,a){return bn(o)?o.map(function(i){return r(i,a)}):o&&n(o,a)},e))}function KG(e){return yn(e)?bn(e)?e.map(KG):Yj(Object.keys(e).sort(),function(t){return Zf(e,t)}):e}function W5(e){return e.args!==void 0?e.args:e.field?Rx(e.field,e.variables):null}var zge=function(){},jR=function(e,t){return t.fieldName},PR=function(e,t,n){var r=n.mergeObjects;return r(e,t)},IR=function(e,t){return t},Hge=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=K({dataIdFromObject:UG},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,o=this,a=n&&(n.typename||((r=n.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i=n&&n.storeObject||t,s=K(K({},n),{typename:a,storeObject:i,readField:n&&n.readField||function(){var f=Qj(arguments,i);return o.readField(f,{store:o.cache.data,variables:f.variables})}}),c,l=a&&this.getTypePolicy(a),u=l&&l.keyFn||this.config.dataIdFromObject;u;){var d=u(K(K({},t),i),s);if(bn(d))u=DR(d);else{c=d;break}}return c=c?String(c):void 0,s.keyObject?[c,s.keyObject]:[c]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var o=t[r],a=o.queryType,i=o.mutationType,s=o.subscriptionType,c=Jr(o,["queryType","mutationType","subscriptionType"]);a&&n.setRootTypename("Query",r),i&&n.setRootTypename("Mutation",r),s&&n.setRootTypename("Subscription",r),Kn.call(n.toBeAdded,r)?n.toBeAdded[r].push(c):n.toBeAdded[r]=[c]})},e.prototype.updateTypePolicy=function(t,n){var r=this,o=this.getTypePolicy(t),a=n.keyFields,i=n.fields;function s(c,l){c.merge=typeof l=="function"?l:l===!0?PR:l===!1?IR:c.merge}s(o,n.merge),o.keyFn=a===!1?zge:bn(a)?DR(a):typeof a=="function"?a:o.keyFn,i&&Object.keys(i).forEach(function(c){var l=r.getFieldPolicy(t,c,!0),u=i[c];if(typeof u=="function")l.read=u;else{var d=u.keyArgs,f=u.read,h=u.merge;l.keyFn=d===!1?jR:bn(d)?kR(d):typeof d=="function"?d:l.keyFn,typeof f=="function"&&(l.read=f),s(l,h)}l.read&&l.merge&&(l.keyFn=l.keyFn||jR)})},e.prototype.setRootTypename=function(t,n){n===void 0&&(n=t);var r="ROOT_"+t.toUpperCase(),o=this.rootTypenamesById[r];n!==o&&(Pe(!o||o===t,5,t),o&&delete this.rootIdsByTypename[o],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(o){n.getSupertypeSet(o,!0).add(r);var a=o.match(HG);(!a||a[0]!==o)&&n.fuzzySubtypes.set(o,new RegExp(o))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!Kn.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var o=this.supertypeMap.get(t);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(i,s){if(i.test(t)){var c=n.supertypeMap.get(s);c&&c.forEach(function(l){return o.add(l)})}})),o&&o.size&&o.forEach(function(i){var s=n.getTypePolicy(i),c=s.fields,l=Jr(s,["fields"]);Object.assign(r,l),Object.assign(r.fields,c)})}var a=this.toBeAdded[t];return a&&a.length&&a.splice(0).forEach(function(i){n.updateTypePolicy(t,i)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var o=this.getTypePolicy(t).fields;return o[n]||r&&(o[n]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,o){var a=this;if(!t.typeCondition)return!0;if(!n)return!1;var i=t.typeCondition.name.value;if(n===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i))for(var s=this.getSupertypeSet(n,!0),c=[s],l=function(m){var p=a.getSupertypeSet(m,!1);p&&p.size&&c.indexOf(p)<0&&c.push(p)},u=!!(r&&this.fuzzySubtypes.size),d=!1,f=0;f1?o:t}:(i=K({},r),Kn.call(i,"from")||(i.from=t)),globalThis.__DEV__!==!1&&i.from===void 0&&globalThis.__DEV__!==!1&&Pe.warn(7,GW(Array.from(e))),i.variables===void 0&&(i.variables=n),i}function YG(e){return function(n,r){if(bn(n)||bn(r))throw no(8);if(yn(n)&&yn(r)){var o=e.getFieldValue(n,"__typename"),a=e.getFieldValue(r,"__typename"),i=o&&a&&o!==a;if(i)return r;if(kt(n)&&Rf(r))return e.merge(n.__ref,r),n;if(Rf(n)&&kt(r))return e.merge(n,r.__ref),r;if(Rf(n)&&Rf(r))return K(K({},n),r)}return r}}function VS(e,t,n){var r="".concat(t).concat(n),o=e.flavors.get(r);return o||e.flavors.set(r,o=e.clientOnly===t&&e.deferred===n?e:K(K({},e),{clientOnly:t,deferred:n})),o}var qge=function(){function e(t,n,r){this.cache=t,this.reader=n,this.fragments=r}return e.prototype.writeToStore=function(t,n){var r=this,o=n.query,a=n.result,i=n.dataId,s=n.variables,c=n.overwrite,l=sy(o),u=Ige();s=K(K({},Bj(l)),s);var d=K(K({store:t,written:Object.create(null),merge:function(h,m){return u.merge(h,m)},variables:s,varString:Vc(s)},qG(o,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:a||Object.create(null),dataId:i,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:d});if(!kt(f))throw no(11,a);return d.incomingById.forEach(function(h,m){var p=h.storeObject,b=h.mergeTree,v=h.fieldNodeSet,g=Xf(m);if(b&&b.map.size){var w=r.applyMerges(b,g,p,d);if(kt(w))return;p=w}if(globalThis.__DEV__!==!1&&!d.overwrite){var _=Object.create(null);v.forEach(function(E){E.selectionSet&&(_[E.name.value]=!0)});var C=function(E){return _[hl(E)]===!0},x=function(E){var T=b&&b.map.get(E);return!!(T&&T.info&&T.info.merge)};Object.keys(p).forEach(function(E){C(E)&&!x(E)&&Wge(g,p,E,d.store)})}t.merge(m,p)}),t.retain(f.__ref),f},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,o=t.result,a=t.selectionSet,i=t.context,s=t.mergeTree,c=this.cache.policies,l=Object.create(null),u=r&&c.rootTypenamesById[r]||R5(o,a,i.fragmentMap)||r&&i.store.get(r,"__typename");typeof u=="string"&&(l.__typename=u);var d=function(){var w=Qj(arguments,l,i.variables);if(kt(w.from)){var _=i.incomingById.get(w.from.__ref);if(_){var C=c.readField(K(K({},w),{from:_.storeObject}),i);if(C!==void 0)return C}}return c.readField(w,i)},f=new Set;this.flattenFields(a,o,i,u).forEach(function(w,_){var C,x=ll(_),E=o[x];if(f.add(_),E!==void 0){var T=c.getStoreFieldName({typename:u,fieldName:_.name.value,field:_,variables:w.variables}),k=RR(s,T),D=n.processFieldValue(E,_,_.selectionSet?VS(w,!1,!1):w,k),R=void 0;_.selectionSet&&(kt(D)||Rf(D))&&(R=d("__typename",D));var F=c.getMergeFunction(u,_.name.value,R);F?k.info={field:_,typename:u,merge:F}:NR(s,T),l=w.merge(l,(C={},C[T]=D,C))}else globalThis.__DEV__!==!1&&!w.clientOnly&&!w.deferred&&!$j.added(_)&&!c.getReadFunction(u,_.name.value)&&globalThis.__DEV__!==!1&&Pe.error(12,ll(_),o)});try{var h=c.identify(o,{typename:u,selectionSet:a,fragmentMap:i.fragmentMap,storeObject:l,readField:d}),m=h[0],p=h[1];r=r||m,p&&(l=i.merge(l,p))}catch(w){if(!r)throw w}if(typeof r=="string"){var b=Xf(r),v=i.written[r]||(i.written[r]=[]);if(v.indexOf(a)>=0||(v.push(a),this.reader&&this.reader.isFresh(o,b,a,i)))return b;var g=i.incomingById.get(r);return g?(g.storeObject=i.merge(g.storeObject,l),g.mergeTree=G5(g.mergeTree,s),f.forEach(function(w){return g.fieldNodeSet.add(w)})):i.incomingById.set(r,{storeObject:l,mergeTree:Iw(s)?void 0:s,fieldNodeSet:f}),b}return l},e.prototype.processFieldValue=function(t,n,r,o){var a=this;return!n.selectionSet||t===null?globalThis.__DEV__!==!1?IG(t):t:bn(t)?t.map(function(i,s){var c=a.processFieldValue(i,n,r,RR(o,s));return NR(o,s),c}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:o})},e.prototype.flattenFields=function(t,n,r,o){o===void 0&&(o=R5(n,t,r.fragmentMap));var a=new Map,i=this.cache.policies,s=new um(!1);return function c(l,u){var d=s.lookup(l,u.clientOnly,u.deferred);d.visited||(d.visited=!0,l.selections.forEach(function(f){if(ay(f,r.variables)){var h=u.clientOnly,m=u.deferred;if(!(h&&m)&&xa(f.directives)&&f.directives.forEach(function(v){var g=v.name.value;if(g==="client"&&(h=!0),g==="defer"){var w=Rx(v,r.variables);(!w||w.if!==!1)&&(m=!0)}}),ul(f)){var p=a.get(f);p&&(h=h&&p.clientOnly,m=m&&p.deferred),a.set(f,VS(r,h,m))}else{var b=Ox(f,r.lookupFragment);if(!b&&f.kind===Ce.FRAGMENT_SPREAD)throw no(13,f.name.value);b&&i.fragmentMatches(b,o,n,r.variables)&&c(b.selectionSet,VS(r,h,m))}}}))}(t,r),a},e.prototype.applyMerges=function(t,n,r,o,a){var i,s=this;if(t.map.size&&!kt(r)){var c=!bn(r)&&(kt(n)||Rf(n))?n:void 0,l=r;c&&!a&&(a=[kt(c)?c.__ref:c]);var u,d=function(f,h){return bn(f)?typeof h=="number"?f[h]:void 0:o.store.getFieldValue(f,String(h))};t.map.forEach(function(f,h){var m=d(c,h),p=d(l,h);if(p!==void 0){a&&a.push(h);var b=s.applyMerges(f,m,p,o,a);b!==p&&(u=u||new Map,u.set(h,b)),a&&Pe(a.pop()===h)}}),u&&(r=bn(l)?l.slice(0):K({},l),u.forEach(function(f,h){r[h]=f}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,o,a&&(i=o.store).getStorage.apply(i,a)):r},e}(),QG=[];function RR(e,t){var n=e.map;return n.has(t)||n.set(t,QG.pop()||{map:new Map}),n.get(t)}function G5(e,t){if(e===t||!t||Iw(t))return e;if(!e||Iw(e))return t;var n=e.info&&t.info?K(K({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,o=r?new Map:e.map.size?e.map:t.map,a={info:n,map:o};if(r){var i=new Set(t.map.keys());e.map.forEach(function(s,c){a.map.set(c,G5(s,t.map.get(c))),i.delete(c)}),i.forEach(function(s){a.map.set(s,G5(t.map.get(s),e.map.get(s)))})}return a}function Iw(e){return!e||!(e.info||e.map.size)}function NR(e,t){var n=e.map,r=n.get(t);r&&Iw(r)&&(QG.push(r),n.delete(t))}var BR=new Set;function Wge(e,t,n,r){var o=function(d){var f=r.getFieldValue(d,n);return typeof f=="object"&&f},a=o(e);if(a){var i=o(t);if(i&&!kt(a)&&!Rt(a,i)&&!Object.keys(a).every(function(d){return r.getFieldValue(i,d)!==void 0})){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=hl(n),l="".concat(s,".").concat(c);if(!BR.has(l)){BR.add(l);var u=[];!bn(a)&&!bn(i)&&[a,i].forEach(function(d){var f=r.getFieldValue(d,"__typename");typeof f=="string"&&!u.includes(f)&&u.push(f)}),globalThis.__DEV__!==!1&&Pe.warn(14,c,s,u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"",l,K({},a),K({},i))}}}}var XG=function(e){or(t,e);function t(n){n===void 0&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new SG($j),r.assumeImmutableResults=!0,r.makeVar=Uge,r.txCount=0,r.config=jge(n),r.addTypename=!!r.config.addTypename,r.policies=new Hge({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var n=this.data=new ug.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,o=this.storeReader,a=this.config.fragments;this.storeWriter=new qge(this,this.storeReader=new Bge({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:zG(this.config),canon:n?void 0:o&&o.canon,fragments:a}),a),this.maybeBroadcastWatch=cg(function(i,s){return r.broadcastWatch(i,s)},{max:this.config.resultCacheMaxSize||Fi["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(i){var s=i.optimistic?r.optimisticData:r.data;if(v0(s)){var c=i.optimistic,l=i.id,u=i.variables;return s.makeCacheKey(i.query,i.callback,Vc({optimistic:c,id:l,variables:u}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(i){return i.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,o=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(K(K({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:o})).result||null}catch(a){if(a instanceof LG)return null;throw a}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(n){if(Kn.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(K(K({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||Lge(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&TR(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){var r;Vc.reset(),Mx.reset(),this.addTypenameTransform.resetCache(),(r=this.config.fragments)===null||r===void 0||r.resetCaches();var o=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),o},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(kt(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){globalThis.__DEV__!==!1&&Pe.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(Kn.call(n,"id"))return!1;n=K(K({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),Vc.reset(),n&&n.discardWatches?(this.watches.forEach(function(o){return r.maybeBroadcastWatch.forget(o)}),this.watches.clear(),TR(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var r=this,o=n.update,a=n.optimistic,i=a===void 0?!0:a,s=n.removeOptimistic,c=n.onWatchUpdated,l,u=function(f){var h=r,m=h.data,p=h.optimisticData;++r.txCount,f&&(r.data=r.optimisticData=f);try{return l=o(r)}finally{--r.txCount,r.data=m,r.optimisticData=p}},d=new Set;return c&&!this.txCount&&this.broadcastWatches(K(K({},n),{onWatchUpdated:function(f){return d.add(f),!1}})),typeof i=="string"?this.optimisticData=this.optimisticData.addLayer(i,u):i===!1?u(this.data):u(),typeof s=="string"&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&d.size?(this.broadcastWatches(K(K({},n),{onWatchUpdated:function(f,h){var m=c.call(this,f,h);return m!==!1&&d.delete(f),m}})),d.size&&d.forEach(function(f){return r.maybeBroadcastWatch.dirty(f)})):this.broadcastWatches(n),l},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||r!==null})},t.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},t.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(o){return r.maybeBroadcastWatch(o,n)})},t.prototype.addFragmentsToDocument=function(n){var r=this.config.fragments;return r?r.transform(n):n},t.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},t.prototype.broadcastWatch=function(n,r){var o=n.lastDiff,a=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(a.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,a,o)===!1)||(!o||!Rt(o.result,a.result))&&n.callback(n.lastDiff=a,o)},t}(MG);globalThis.__DEV__!==!1&&(XG.prototype.getMemoryInternals=Hpe);var dt;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(dt||(dt={}));function dg(e){return e?e<7:!1}var FR=Object.assign,Gge=Object.hasOwnProperty,V5=function(e){or(t,e);function t(n){var r=n.queryManager,o=n.queryInfo,a=n.options,i=e.call(this,function(b){try{var v=b._subscription._observer;v&&!v.error&&(v.error=Vge)}catch{}var g=!i.observers.size;i.observers.add(b);var w=i.last;return w&&w.error?b.error&&b.error(w.error):w&&w.result&&b.next&&b.next(w.result),g&&i.reobserve().catch(function(){}),function(){i.observers.delete(b)&&!i.observers.size&&i.tearDownQuery()}})||this;i.observers=new Set,i.subscriptions=new Set,i.queryInfo=o,i.queryManager=r,i.waitForOwnResult=KS(a.fetchPolicy),i.isTornDown=!1,i.subscribeToMore=i.subscribeToMore.bind(i);var s=r.defaultOptions.watchQuery,c=s===void 0?{}:s,l=c.fetchPolicy,u=l===void 0?"cache-first":l,d=a.fetchPolicy,f=d===void 0?u:d,h=a.initialFetchPolicy,m=h===void 0?f==="standby"?u:f:h;i.options=K(K({},a),{initialFetchPolicy:m,fetchPolicy:f}),i.queryId=o.queryId||r.generateQueryId();var p=sy(i.query);return i.queryName=p&&p.name&&p.name.value,i}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var n=this;return new Promise(function(r,o){var a={next:function(s){r(s),n.observers.delete(a),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){i.unsubscribe()},0)},error:o},i=n.subscribe(a)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(n){n===void 0&&(n=!0);var r=this.getLastResult(!0),o=this.queryInfo.networkStatus||r&&r.networkStatus||dt.ready,a=K(K({},r),{loading:dg(o),networkStatus:o}),i=this.options.fetchPolicy,s=i===void 0?"cache-first":i;if(!(KS(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(a.data=c.result),Rt(a.data,{})&&(a.data=void 0),c.complete?(delete a.partial,c.complete&&a.networkStatus===dt.loading&&(s==="cache-first"||s==="cache-only")&&(a.networkStatus=dt.ready,a.loading=!1)):a.partial=!0,globalThis.__DEV__!==!1&&!c.complete&&!this.options.partialRefetch&&!a.loading&&!a.data&&!a.error&&ZG(c.missing)}return n&&this.updateLastResult(a),a},t.prototype.isDifferentFromLastResult=function(n,r){if(!this.last)return!0;var o=this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!FG(this.query,this.last.result,n,this.variables):!Rt(this.last.result,n);return o||r&&!Rt(this.last.variables,r)},t.prototype.getLast=function(n,r){var o=this.last;if(o&&o[n]&&(!r||Rt(o.variables,this.variables)))return o[n]},t.prototype.getLastResult=function(n){return this.getLast("result",n)},t.prototype.getLastError=function(n){return this.getLast("error",n)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(n){var r,o={pollInterval:0},a=this.options.fetchPolicy;if(a==="cache-and-network"?o.fetchPolicy=a:a==="no-cache"?o.fetchPolicy="no-cache":o.fetchPolicy="network-only",globalThis.__DEV__!==!1&&n&&Gge.call(n,"variables")){var i=fG(this.query),s=i.variableDefinitions;(!s||!s.some(function(c){return c.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&Pe.warn(20,n,((r=i.name)===null||r===void 0?void 0:r.value)||i)}return n&&!Rt(this.options.variables,n)&&(o.variables=this.options.variables=K(K({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(o,dt.refetch)},t.prototype.fetchMore=function(n){var r=this,o=K(K({},n.query?n:K(K(K(K({},this.options),{query:this.options.query}),n),{variables:K(K({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"});o.query=this.transformDocument(o.query);var a=this.queryManager.generateQueryId();this.lastQuery=n.query?this.transformDocument(this.options.query):o.query;var i=this.queryInfo,s=i.networkStatus;i.networkStatus=dt.fetchMore,o.notifyOnNetworkStatusChange&&this.observe();var c=new Set;return this.queryManager.fetchQuery(a,o,dt.fetchMore).then(function(l){return r.queryManager.removeQuery(a),i.networkStatus===dt.fetchMore&&(i.networkStatus=s),r.queryManager.cache.batch({update:function(u){var d=n.updateQuery;d?u.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(f){return d(f,{fetchMoreResult:l.data,variables:o.variables})}):u.writeQuery({query:o.query,variables:o.variables,data:l.data})},onWatchUpdated:function(u){c.add(u.query)}}),l}).finally(function(){c.has(r.query)||JG(r)})},t.prototype.subscribeToMore=function(n){var r=this,o=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(a){var i=n.updateQuery;i&&r.updateQuery(function(s,c){var l=c.variables;return i(s,{subscriptionData:a,variables:l})})},error:function(a){if(n.onError){n.onError(a);return}globalThis.__DEV__!==!1&&Pe.error(21,a)}});return this.subscriptions.add(o),function(){r.subscriptions.delete(o)&&o.unsubscribe()}},t.prototype.setOptions=function(n){return this.reobserve(n)},t.prototype.silentSetOptions=function(n){var r=Qu(this.options,n||{});FR(this.options,r)},t.prototype.setVariables=function(n){return Rt(this.variables,n)?this.observers.size?this.result():Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},dt.setVariables):Promise.resolve())},t.prototype.updateQuery=function(n){var r=this.queryManager,o=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,a=n(o,{variables:this.variables});a&&(r.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(n,r){if(r.nextFetchPolicy){var o=r.fetchPolicy,a=o===void 0?"cache-first":o,i=r.initialFetchPolicy,s=i===void 0?a:i;a==="standby"||(typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(a,{reason:n,options:r,observable:this,initialFetchPolicy:s}):n==="variables-changed"?r.fetchPolicy=s:r.fetchPolicy=r.nextFetchPolicy)}return r.fetchPolicy},t.prototype.fetch=function(n,r,o){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,n,r,o)},t.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var r=this,o=r.pollingInfo,a=r.options.pollInterval;if(!a||!this.hasObservers()){o&&(clearTimeout(o.timeout),delete this.pollingInfo);return}if(!(o&&o.interval===a)){Pe(a,22);var i=o||(this.pollingInfo={});i.interval=a;var s=function(){var l,u;n.pollingInfo&&(!dg(n.queryInfo.networkStatus)&&!(!((u=(l=n.options).skipPollAttempt)===null||u===void 0)&&u.call(l))?n.reobserve({fetchPolicy:n.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},dt.poll).then(c,c):c())},c=function(){var l=n.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(s,l.interval))};c()}}},t.prototype.updateLastResult=function(n,r){r===void 0&&(r=this.variables);var o=this.getLastError();return o&&this.last&&!Rt(r,this.last.variables)&&(o=void 0),this.last=K({result:this.queryManager.assumeImmutableResults?n:IG(n),variables:r},o?{error:o}:null)},t.prototype.reobserveAsConcast=function(n,r){var o=this;this.isTornDown=!1;var a=r===dt.refetch||r===dt.fetchMore||r===dt.poll,i=this.options.variables,s=this.options.fetchPolicy,c=Qu(this.options,n||{}),l=a?c:FR(this.options,c),u=this.transformDocument(l.query);this.lastQuery=u,a||(this.updatePolling(),n&&n.variables&&!Rt(n.variables,i)&&l.fetchPolicy!=="standby"&&(l.fetchPolicy===s||typeof l.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",l),r===void 0&&(r=dt.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=KS(l.fetchPolicy));var d=function(){o.concast===m&&(o.waitForOwnResult=!1)},f=l.variables&&K({},l.variables),h=this.fetch(l,r,u),m=h.concast,p=h.fromLink,b={next:function(v){Rt(o.variables,f)&&(d(),o.reportResult(v,f))},error:function(v){Rt(o.variables,f)&&(d(),o.reportError(v,f))}};return!a&&(p||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=m,this.observer=b),m.addObserver(b),m},t.prototype.reobserve=function(n,r){return this.reobserveAsConcast(n,r).promise},t.prototype.resubscribeAfterError=function(){for(var n=[],r=0;r0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(n){return this.queryManager.transform(n)},t}(Gt);OG(V5);function JG(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(o,a){return this.nextFetchPolicy=r,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(o,a):n}}):e.reobserve()}function Vge(e){globalThis.__DEV__!==!1&&Pe.error(23,e.message,e.stack)}function ZG(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&Pe.debug(24,e)}function KS(e){return e==="network-only"||e==="no-cache"||e==="standby"}var Nf=new(dm?WeakMap:Map);function YS(e,t){var n=e[t];typeof n=="function"&&(e[t]=function(){return Nf.set(e,(Nf.get(e)+1)%1e15),n.apply(this,arguments)})}function MR(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var QS=function(){function e(t,n){n===void 0&&(n=t.generateQueryId()),this.queryId=n,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=t.cache;Nf.has(r)||(Nf.set(r,0),YS(r,"evict"),YS(r,"modify"),YS(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||dt.loading;return this.variables&&this.networkStatus!==dt.loading&&!Rt(this.variables,t.variables)&&(n=dt.setVariables),Rt(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){MR(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&Rt(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy==="no-cache")return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var n=this,r,o=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&(!((r=this.observableQuery)===null||r===void 0)&&r.getLastError())||(this.updateLastDiff(t),!this.dirty&&!Rt(o&&o.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0))))},e.prototype.setObservableQuery=function(t){var n=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){var r=n.getDiff();r.fromOptimisticTransaction?t.observe():JG(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;MR(this),this.shouldNotify()&&this.listeners.forEach(function(n){return n(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(dg(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if(t!=="cache-only"&&t!=="cache-and-network")return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(t){var n=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var o=K(K({},this.getDiffOptions(t)),{watcher:this,callback:function(a){return n.setDiff(a)}});(!this.lastWatch||!Rt(o,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=o))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===Nf.get(this.cache)&&Rt(n,r.variables)&&Rt(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,o){var a=this,i=new fl,s=xa(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&xa(t.incremental)){var c=RG(this.getDiff().result,t);t.data=c}else if("hasNext"in t&&t.hasNext){var l=this.getDiff();t.data=i.merge(l.result,t.data)}this.graphQLErrors=s,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):o!==0&&(K5(t,r.errorPolicy)?this.cache.performTransaction(function(u){if(a.shouldWrite(t,r.variables))u.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:o===1}),a.lastWrite={result:t,variables:r.variables,dmCount:Nf.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){t.data=a.lastDiff.diff.result;return}var d=a.getDiffOptions(r.variables),f=u.diff(d);!a.stopped&&Rt(a.variables,r.variables)&&a.updateWatch(r.variables),a.updateLastDiff(f,d),f.complete&&(t.data=f.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=dt.ready},e.prototype.markError=function(t){return this.networkStatus=dt.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function K5(e,t){t===void 0&&(t="none");var n=t==="ignore"||t==="all",r=!h1(e);return!r&&n&&e.data&&(r=!0),r}var Kge=Object.prototype.hasOwnProperty,LR=Object.create(null),Yge=function(){function e(t){var n=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Rj(Fi["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new um(!1);var r=new SG(function(a){return n.cache.transformDocument(a)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults;var o=t.documentTransform;this.documentTransform=o?r.concat(o).concat(r):r,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(no(25))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return qa(this,arguments,void 0,function(n){var r,o,a,i,s,c,l,u=n.mutation,d=n.variables,f=n.optimisticResponse,h=n.updateQueries,m=n.refetchQueries,p=m===void 0?[]:m,b=n.awaitRefetchQueries,v=b===void 0?!1:b,g=n.update,w=n.onQueryUpdated,_=n.fetchPolicy,C=_===void 0?((c=this.defaultOptions.mutate)===null||c===void 0?void 0:c.fetchPolicy)||"network-only":_,x=n.errorPolicy,E=x===void 0?((l=this.defaultOptions.mutate)===null||l===void 0?void 0:l.errorPolicy)||"none":x,T=n.keepRootFields,k=n.context;return la(this,function(D){switch(D.label){case 0:return Pe(u,26),Pe(C==="network-only"||C==="no-cache",27),r=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),o=this.getDocumentInfo(u).hasClientExports,d=this.getVariables(u,d),o?[4,this.localState.addExportedVariables(u,d,k)]:[3,2];case 1:d=D.sent(),D.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[r]={mutation:u,variables:d,loading:!0,error:null}),i=f&&this.markMutationOptimistic(f,{mutationId:r,document:u,variables:d,fetchPolicy:C,errorPolicy:E,context:k,updateQueries:h,update:g,keepRootFields:T}),this.broadcastQueries(),s=this,[2,new Promise(function(R,F){return HS(s.getObservableFromLink(u,K(K({},k),{optimisticResponse:i?f:void 0}),d,{},!1),function(B){if(h1(B)&&E==="none")throw new _c({graphQLErrors:L5(B)});a&&(a.loading=!1,a.error=null);var j=K({},B);return typeof p=="function"&&(p=p(j)),E==="ignore"&&h1(j)&&delete j.errors,s.markMutationResult({mutationId:r,result:j,document:u,variables:d,fetchPolicy:C,errorPolicy:E,context:k,update:g,updateQueries:h,awaitRefetchQueries:v,refetchQueries:p,removeOptimistic:i?r:void 0,onQueryUpdated:w,keepRootFields:T})}).subscribe({next:function(B){s.broadcastQueries(),(!("hasNext"in B)||B.hasNext===!1)&&R(B)},error:function(B){a&&(a.loading=!1,a.error=B),i&&s.cache.removeOptimistic(r),s.broadcastQueries(),F(B instanceof _c?B:new _c({networkError:B}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;n===void 0&&(n=this.cache);var o=t.result,a=[],i=t.fetchPolicy==="no-cache";if(!i&&K5(o,t.errorPolicy)){if(Jf(o)||a.push({result:o.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),Jf(o)&&xa(o.incremental)){var s=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),c=void 0;s.result&&(c=RG(s.result,o)),typeof c<"u"&&(o.data=c,a.push({result:c,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var l=t.updateQueries;l&&this.queries.forEach(function(d,f){var h=d.observableQuery,m=h&&h.queryName;if(!(!m||!Kge.call(l,m))){var p=l[m],b=r.queries.get(f),v=b.document,g=b.variables,w=n.diff({query:v,variables:g,returnPartialData:!0,optimistic:!1}),_=w.result,C=w.complete;if(C&&_){var x=p(_,{mutationResult:o,queryName:v&&N5(v)||void 0,queryVariables:g});x&&a.push({result:x,dataId:"ROOT_QUERY",query:v,variables:g})}}})}if(a.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(d){i||a.forEach(function(p){return d.write(p)});var f=t.update,h=!q0e(o)||Jf(o)&&!o.hasNext;if(f){if(!i){var m=d.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});m.complete&&(o=K(K({},o),{data:m.result}),"incremental"in o&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}h&&f(d,o,{context:t.context,variables:t.variables})}!i&&!t.keepRootFields&&h&&d.modify({id:"ROOT_MUTATION",fields:function(p,b){var v=b.fieldName,g=b.DELETE;return v==="__typename"?p:g}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(d){return u.push(d)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(u).then(function(){return o})}return Promise.resolve(o)},e.prototype.markMutationOptimistic=function(t,n){var r=this,o=typeof t=="function"?t(n.variables,{IGNORE:LR}):t;return o===LR?!1:(this.cache.recordOptimisticTransaction(function(a){try{r.markMutationResult(K(K({},n),{result:{data:o}}),a)}catch(i){globalThis.__DEV__!==!1&&Pe.error(i)}},n.mutationId),!0)},e.prototype.fetchQuery=function(t,n,r){return this.fetchConcastWithInfo(t,n,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var r={hasClientExports:xpe(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:ig(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:AG([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:Bj(sy(t)),asQuery:K(K({},t),{definitions:t.definitions.map(function(o){return o.kind==="OperationDefinition"&&o.operation!=="query"?K(K({},o),{operation:"query"}):o})})};n.set(t,r)}return n.get(t)},e.prototype.getVariables=function(t,n){return K(K({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);t=K(K({},t),{variables:this.getVariables(n,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new QS(this),o=new V5({queryManager:this,queryInfo:r,options:t});return o.lastQuery=n,this.queries.set(o.queryId,r),r.init({document:n,observableQuery:o,variables:o.variables}),o},e.prototype.query=function(t,n){var r=this;return n===void 0&&(n=this.generateQueryId()),Pe(t.query,28),Pe(t.query.kind==="Document",29),Pe(!t.returnPartialData,30),Pe(!t.pollInterval,31),this.fetchQuery(n,K(K({},t),{query:this.transform(t.query)})).finally(function(){return r.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(no(32)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=dt.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;t===void 0&&(t="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(t)&&t.forEach(function(i){typeof i=="string"?o.set(i,!1):Xpe(i)?o.set(n.transform(i),!1):yn(i)&&i.query&&a.add(i)}),this.queries.forEach(function(i,s){var c=i.observableQuery,l=i.document;if(c){if(t==="all"){r.set(s,c);return}var u=c.queryName,d=c.options.fetchPolicy;if(d==="standby"||t==="active"&&!c.hasObservers())return;(t==="active"||u&&o.has(u)||l&&o.has(l))&&(r.set(s,c),u&&o.set(u,!0),l&&o.set(l,!0))}}),a.size&&a.forEach(function(i){var s=T5("legacyOneTimeQuery"),c=n.getQuery(s).init({document:i.query,variables:i.variables}),l=new V5({queryManager:n,queryInfo:c,options:K(K({},i),{fetchPolicy:"network-only"})});Pe(l.queryId===s),c.setObservableQuery(l),r.set(s,l)}),globalThis.__DEV__!==!1&&o.size&&o.forEach(function(i,s){i||globalThis.__DEV__!==!1&&Pe.warn(typeof s=="string"?33:34,s)}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(o,a){var i=o.options.fetchPolicy;o.resetLastResults(),(t||i!=="standby"&&i!=="cache-only")&&r.push(o.refetch()),n.getQuery(a).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,o=t.fetchPolicy,a=t.errorPolicy,i=a===void 0?"none":a,s=t.variables,c=t.context,l=c===void 0?{}:c,u=t.extensions,d=u===void 0?{}:u;r=this.transform(r),s=this.getVariables(r,s);var f=function(m){return n.getObservableFromLink(r,l,m,d).map(function(p){o!=="no-cache"&&(K5(p,i)&&n.cache.write({query:r,result:p.data,dataId:"ROOT_SUBSCRIPTION",variables:m}),n.broadcastQueries());var b=h1(p),v=ige(p);if(b||v){var g={};if(b&&(g.graphQLErrors=p.errors),v&&(g.protocolErrors=p.extensions[Gj]),i==="none"||v)throw new _c(g)}return i==="ignore"&&delete p.errors,p})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,s,l).then(f);return new Gt(function(m){var p=null;return h.then(function(b){return p=b.subscribe(m)},m.error),function(){return p&&p.unsubscribe()}})}return f(s)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,o,a){var i=this,s;a===void 0&&(a=(s=n==null?void 0:n.queryDeduplication)!==null&&s!==void 0?s:this.queryDeduplication);var c,l=this.getDocumentInfo(t),u=l.serverQuery,d=l.clientQuery;if(u){var f=this,h=f.inFlightLinkObservables,m=f.link,p={query:u,variables:r,operationName:N5(u)||void 0,context:this.prepareContext(K(K({},n),{forceFetch:!a})),extensions:o};if(n=p.context,a){var b=Mx(u),v=Vc(r),g=h.lookup(b,v);if(c=g.observable,!c){var w=new lf([U5(m,p)]);c=g.observable=w,w.beforeNext(function(){h.remove(b,v)})}}else c=new lf([U5(m,p)])}else c=new lf([Gt.of({data:{}})]),n=this.prepareContext(n);return d&&(c=HS(c,function(_){return i.localState.runResolvers({document:d,remoteResult:_,context:n,variables:r})})),c},e.prototype.getResultsFromLink=function(t,n,r){var o=t.lastRequestId=this.generateRequestId(),a=this.cache.transformForLink(r.query);return HS(this.getObservableFromLink(a,r.context,r.variables),function(i){var s=L5(i),c=s.length>0;if(o>=t.lastRequestId){if(c&&r.errorPolicy==="none")throw t.markError(new _c({graphQLErrors:s}));t.markResult(i,a,r,n),t.markReady()}var l={data:i.data,loading:!1,networkStatus:dt.ready};return c&&r.errorPolicy!=="ignore"&&(l.errors=s,l.networkStatus=dt.error),l},function(i){var s=sge(i)?i:new _c({networkError:i});throw o>=t.lastRequestId&&t.markError(s),s})},e.prototype.fetchConcastWithInfo=function(t,n,r,o){var a=this;r===void 0&&(r=dt.loading),o===void 0&&(o=n.query);var i=this.getVariables(o,n.variables),s=this.getQuery(t),c=this.defaultOptions.watchQuery,l=n.fetchPolicy,u=l===void 0?c&&c.fetchPolicy||"cache-first":l,d=n.errorPolicy,f=d===void 0?c&&c.errorPolicy||"none":d,h=n.returnPartialData,m=h===void 0?!1:h,p=n.notifyOnNetworkStatusChange,b=p===void 0?!1:p,v=n.context,g=v===void 0?{}:v,w=Object.assign({},n,{query:o,variables:i,fetchPolicy:u,errorPolicy:f,returnPartialData:m,notifyOnNetworkStatusChange:b,context:g}),_=function(k){w.variables=k;var D=a.fetchQueryByPolicy(s,w,r);return w.fetchPolicy!=="standby"&&D.sources.length>0&&s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",n),D},C=function(){return a.fetchCancelFns.delete(t)};this.fetchCancelFns.set(t,function(k){C(),setTimeout(function(){return x.cancel(k)})});var x,E;if(this.getDocumentInfo(w.query).hasClientExports)x=new lf(this.localState.addExportedVariables(w.query,w.variables,w.context).then(_).then(function(k){return k.sources})),E=!0;else{var T=_(w.variables);E=T.fromLink,x=new lf(T.sources)}return x.promise.then(C,C),{concast:x,fromLink:E}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,o=t.include,a=t.optimistic,i=a===void 0?!1:a,s=t.removeOptimistic,c=s===void 0?i?T5("refetchQueries"):void 0:s,l=t.onQueryUpdated,u=new Map;o&&this.getObservableQueries(o).forEach(function(f,h){u.set(h,{oq:f,lastDiff:n.getQuery(h).getDiff()})});var d=new Map;return r&&this.cache.batch({update:r,optimistic:i&&c||!1,removeOptimistic:c,onWatchUpdated:function(f,h,m){var p=f.watcher instanceof QS&&f.watcher.observableQuery;if(p){if(l){u.delete(p.queryId);var b=l(p,h,m);return b===!0&&(b=p.refetch()),b!==!1&&d.set(p,b),b}l!==null&&u.set(p.queryId,{oq:p,lastDiff:m,diff:h})}}}),u.size&&u.forEach(function(f,h){var m=f.oq,p=f.lastDiff,b=f.diff,v;if(l){if(!b){var g=m.queryInfo;g.reset(),b=g.getDiff()}v=l(m,b,p)}(!l||v===!0)&&(v=m.refetch()),v!==!1&&d.set(m,v),h.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(h)}),c&&this.cache.removeOptimistic(c),d},e.prototype.fetchQueryByPolicy=function(t,n,r){var o=this,a=n.query,i=n.variables,s=n.fetchPolicy,c=n.refetchWritePolicy,l=n.errorPolicy,u=n.returnPartialData,d=n.context,f=n.notifyOnNetworkStatusChange,h=t.networkStatus;t.init({document:a,variables:i,networkStatus:r});var m=function(){return t.getDiff()},p=function(_,C){C===void 0&&(C=t.networkStatus||dt.loading);var x=_.result;globalThis.__DEV__!==!1&&!u&&!Rt(x,{})&&ZG(_.missing);var E=function(T){return Gt.of(K({data:T,loading:dg(C),networkStatus:C},_.complete?null:{partial:!0}))};return x&&o.getDocumentInfo(a).hasForcedResolvers?o.localState.runResolvers({document:a,remoteResult:{data:x},context:d,variables:i,onlyRunForcedResolvers:!0}).then(function(T){return E(T.data||void 0)}):l==="none"&&C===dt.refetch&&Array.isArray(_.missing)?E(void 0):E(x)},b=s==="no-cache"?0:r===dt.refetch&&c!=="merge"?1:2,v=function(){return o.getResultsFromLink(t,b,{query:a,variables:i,context:d,fetchPolicy:s,errorPolicy:l})},g=f&&typeof h=="number"&&h!==r&&dg(r);switch(s){default:case"cache-first":{var w=m();return w.complete?{fromLink:!1,sources:[p(w,t.markReady())]}:u||g?{fromLink:!0,sources:[p(w),v()]}:{fromLink:!0,sources:[v()]}}case"cache-and-network":{var w=m();return w.complete||u||g?{fromLink:!0,sources:[p(w),v()]}:{fromLink:!0,sources:[v()]}}case"cache-only":return{fromLink:!1,sources:[p(m(),t.markReady())]};case"network-only":return g?{fromLink:!0,sources:[p(m()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return g?{fromLink:!0,sources:[p(t.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new QS(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var n=this.localState.prepareContext(t);return K(K(K({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},e}(),Qge=function(){function e(t){var n=t.cache,r=t.client,o=t.resolvers,a=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),o&&this.addResolvers(o),a&&this.setFragmentMatcher(a)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=iR(n.resolvers,r)}):this.resolvers=iR(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return qa(this,arguments,void 0,function(n){var r=n.document,o=n.remoteResult,a=n.context,i=n.variables,s=n.onlyRunForcedResolvers,c=s===void 0?!1:s;return la(this,function(l){return r?[2,this.resolveDocument(r,o.data,a,i,this.fragmentMatcher,c).then(function(u){return K(K({},o),{data:u.result})})]:[2,o]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return ig(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return DG(t)},e.prototype.prepareContext=function(t){var n=this.cache;return K(K({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t){return qa(this,arguments,void 0,function(n,r,o){return r===void 0&&(r={}),o===void 0&&(o={}),la(this,function(a){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,r)||{},this.prepareContext(o),r).then(function(i){return K(K({},r),i.exportedVariables)})]:[2,K({},r)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return Ts(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(n=r.arguments.some(function(o){return o.name.value==="always"&&o.value.kind==="BooleanValue"&&o.value.value===!0}),n))return Ij}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:k0e(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n){return qa(this,arguments,void 0,function(r,o,a,i,s,c){var l,u,d,f,h,m,p,b,v,g,w;return a===void 0&&(a={}),i===void 0&&(i={}),s===void 0&&(s=function(){return!0}),c===void 0&&(c=!1),la(this,function(_){return l=cy(r),u=Nx(r),d=Ix(u),f=this.collectSelectionsToResolve(l,d),h=l.operation,m=h?h.charAt(0).toUpperCase()+h.slice(1):"Query",p=this,b=p.cache,v=p.client,g={fragmentMap:d,context:K(K({},a),{cache:b,client:v}),variables:i,fragmentMatcher:s,defaultOperationType:m,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:c},w=!1,[2,this.resolveSelectionSet(l.selectionSet,w,o,g).then(function(C){return{result:C,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,o){return qa(this,void 0,void 0,function(){var a,i,s,c,l,u=this;return la(this,function(d){return a=o.fragmentMap,i=o.context,s=o.variables,c=[r],l=function(f){return qa(u,void 0,void 0,function(){var h,m;return la(this,function(p){return!n&&!o.selectionsToResolve.has(f)?[2]:ay(f,s)?ul(f)?[2,this.resolveField(f,n,r,o).then(function(b){var v;typeof b<"u"&&c.push((v={},v[ll(f)]=b,v))})]:(l0e(f)?h=f:(h=a[f.name.value],Pe(h,18,f.name.value)),h&&h.typeCondition&&(m=h.typeCondition.name.value,o.fragmentMatcher(r,m,i))?[2,this.resolveSelectionSet(h.selectionSet,n,r,o).then(function(b){c.push(b)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(l)).then(function(){return Lx(c)})]})})},e.prototype.resolveField=function(t,n,r,o){return qa(this,void 0,void 0,function(){var a,i,s,c,l,u,d,f,h,m=this;return la(this,function(p){return r?(a=o.variables,i=t.name.value,s=ll(t),c=i!==s,l=r[s]||r[i],u=Promise.resolve(l),(!o.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(d=r.__typename||o.defaultOperationType,f=this.resolvers&&this.resolvers[d],f&&(h=f[c?i:s],h&&(u=Promise.resolve(Vj.withValue(this.cache,h,[r,Rx(t,a),o.context,{field:t,fragmentMap:o.fragmentMap}]))))),[2,u.then(function(b){var v,g;if(b===void 0&&(b=l),t.directives&&t.directives.forEach(function(_){_.name.value==="export"&&_.arguments&&_.arguments.forEach(function(C){C.name.value==="as"&&C.value.kind==="StringValue"&&(o.exportedVariables[C.value.value]=b)})}),!t.selectionSet||b==null)return b;var w=(g=(v=t.directives)===null||v===void 0?void 0:v.some(function(_){return _.name.value==="client"}))!==null&&g!==void 0?g:!1;if(Array.isArray(b))return m.resolveSubSelectedArray(t,n||w,b,o);if(t.selectionSet)return m.resolveSelectionSet(t.selectionSet,n||w,b,o)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,o){var a=this;return Promise.all(r.map(function(i){if(i===null)return null;if(Array.isArray(i))return a.resolveSubSelectedArray(t,n,i,o);if(t.selectionSet)return a.resolveSelectionSet(t.selectionSet,n,i,o)}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(i){return!Array.isArray(i)},o=this.selectionsToResolveCache;function a(i){if(!o.has(i)){var s=new Set;o.set(i,s),Ts(i,{Directive:function(c,l,u,d,f){c.name.value==="client"&&f.forEach(function(h){r(h)&&QO(h)&&s.add(h)})},FragmentSpread:function(c,l,u,d,f){var h=n[c.name.value];Pe(h,19,c.name.value);var m=a(h);m.size>0&&(f.forEach(function(p){r(p)&&QO(p)&&s.add(p)}),s.add(c),m.forEach(function(p){s.add(p)}))}})}return o.get(i)}return a(t)},e}(),UR=!1,eV=function(){function e(t){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw no(15);var r=t.uri,o=t.credentials,a=t.headers,i=t.cache,s=t.documentTransform,c=t.ssrMode,l=c===void 0?!1:c,u=t.ssrForceFetchDelay,d=u===void 0?0:u,f=t.connectToDevTools,h=t.queryDeduplication,m=h===void 0?!0:h,p=t.defaultOptions,b=t.defaultContext,v=t.assumeImmutableResults,g=v===void 0?i.assumeImmutableResults:v,w=t.resolvers,_=t.typeDefs,C=t.fragmentMatcher,x=t.name,E=t.version,T=t.devtools,k=t.link;k||(k=r?new Cge({uri:r,credentials:o,headers:a}):ly.empty()),this.link=k,this.cache=i,this.disableNetworkFetches=l||d>0,this.queryDeduplication=m,this.defaultOptions=p||Object.create(null),this.typeDefs=_,this.devtoolsConfig=K(K({},T),{enabled:(T==null?void 0:T.enabled)||f}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),d&&setTimeout(function(){return n.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Aj,this.localState=new Qge({cache:i,client:this,resolvers:w,fragmentMatcher:C}),this.queryManager=new Yge({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:b,documentTransform:s,queryDeduplication:m,ssrMode:l,clientAwareness:{name:x,version:E},localState:this.localState,assumeImmutableResults:g,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this,!UR&&globalThis.__DEV__!==!1&&(UR=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,o=r&&r.userAgent,a=void 0;typeof o=="string"&&(o.indexOf("Chrome/")>-1?a="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":o.indexOf("Firefox/")>-1&&(a="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),a&&globalThis.__DEV__!==!1&&Pe.log("Download the Apollo DevTools for a better development experience: %s",a)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=m1(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=K(K({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=m1(this.defaultOptions.query,t)),Pe(t.fetchPolicy!=="cache-and-network",16),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=K(K({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=m1(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!1),this.cache.readQuery(t,n)},e.prototype.watchFragment=function(t){return this.cache.watchFragment(t)},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return U5(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],o=[];n.forEach(function(i,s){r.push(s),o.push(i)});var a=Promise.all(o);return a.queries=r,a.results=o,a.catch(function(i){globalThis.__DEV__!==!1&&Pe.debug(17,i)}),a},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();globalThis.__DEV__!==!1&&(eV.prototype.getMemoryInternals=zpe);var y1=new Map,Y5=new Map,tV=!0,Ow=!1;function nV(e){return e.replace(/[\s,]+/g," ").trim()}function Xge(e){return nV(e.source.body.substring(e.start,e.end))}function Jge(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var o=r.name.value,a=Xge(r.loc),i=Y5.get(o);i&&!i.has(a)?tV&&console.warn("Warning: fragment with name "+o+` already exists. -graphql-tag enforces all fragment names across your application to be unique; read more about -this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):i||Y5.set(o,i=new Set),i.add(a),t.has(a)||(t.add(a),n.push(r))}else n.push(r)}),K(K({},e),{definitions:n})}function Zge(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(o){var a=r[o];a&&typeof a=="object"&&t.add(a)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function eye(e){var t=nV(e);if(!y1.has(t)){var n=hpe(e,{experimentalFragmentVariables:Ow,allowLegacyFragmentVariables:Ow});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");y1.set(t,Zge(Jge(n)))}return y1.get(t)}function br(e){for(var t=[],n=1;n{var d;return u.symbol===((d=t.sourceToken)==null?void 0:d.symbol)}))==null?void 0:s.cross.find(u=>{var d,f;return u.bridge.category===t.category&&u.target.network===((d=t.targetChain)==null?void 0:d.network)&&u.target.symbol===((f=t.targetToken)==null?void 0:f.symbol)}),this.sourceChain=t.sourceChain,this.targetChain=t.targetChain,this.sourceToken=t.sourceToken,this.targetToken=t.targetToken,this.sourceNativeToken=(c=t.sourceChain)==null?void 0:c.tokens.find(({type:u})=>u==="native"),this.targetNativeToken=(l=t.targetChain)==null?void 0:l.tokens.find(({type:u})=>u==="native"),this.walletClient=t.walletClient,this.publicClient=t.publicClient,t.sourceChain&&t.targetChain&&(this.sourcePublicClient=Vu({chain:t.sourceChain,transport:yh()}),this.targetPublicClient=Vu({chain:t.targetChain,transport:yh()}));const n=jt.HelixChain.chains().find(u=>{var d;return u.code===((d=t.sourceChain)==null?void 0:d.network)}),r=n==null?void 0:n.couples.find(u=>{var d,f,h;return u.chain.code===((d=t.targetChain)==null?void 0:d.network)&&u.symbol.from===((f=t.sourceToken)==null?void 0:f.symbol)&&u.symbol.to===((h=t.targetToken)==null?void 0:h.symbol)&&u.protocol.name===t.protocol}),o=n!=null&&n.protocol&&(r!=null&&r.protocol)?n.protocol[r.protocol.name]:void 0,a=r==null?void 0:r.protocol.address;o&&a&&(this.contract={sourceAddress:o,targetAddress:a})}async getSigner(){if(this.walletClient)return(await this.walletClient.getAddresses()).at(0)}async validateNetwork(t){var r;const n=t==="source"?this.sourceChain:this.targetChain;if((n==null?void 0:n.id)!==await((r=this.publicClient)==null?void 0:r.getChainId()))throw new Error("Wrong network")}isLnBridge(){return!1}getLogo(){return this.logo}getName(){return this.name}getCategory(){return this.category}getContract(){return this.contract}getSourceToken(){return this.sourceToken}getTargetToken(){return this.targetToken}getSourceChain(){return this.sourceChain}getTargetChain(){return this.targetChain}getCrossInfo(){return this.crossInfo}getEstimateTime(){return this.estimateTime}formatEstimateTime(){return`${this.estimateTime.min}~${this.estimateTime.max} Minutes`}getTxGasLimit(){var t,n;return((t=this.sourceChain)==null?void 0:t.network)==="arbitrum"||((n=this.sourceChain)==null?void 0:n.network)==="arbitrum-sepolia"?3000000n:void 0}async getFee(t){}async getDailyLimit(){}async getSourceBalance(t){if(this.sourceToken&&this.sourcePublicClient)return UO(t,this.sourceToken,this.sourcePublicClient)}async getTargetBalance(t){if(this.targetToken&&this.targetPublicClient)return UO(t,this.targetToken,this.targetPublicClient)}async getAllowance(t,n,r,o){if(r.type==="erc20")return{value:await o.readContract({address:r.address,abi:(await me(async()=>{const{default:i}=await Promise.resolve().then(()=>aD);return{default:i}},void 0,import.meta.url)).default,functionName:"allowance",args:[t,n]}),token:r}}async getSourceAllowance(t){if(this.contract&&this.sourceToken&&this.sourcePublicClient)return this.getAllowance(t,this.contract.sourceAddress,this.sourceToken,this.sourcePublicClient)}async getTargetAllowance(t){if(this.contract&&this.targetToken&&this.targetPublicClient)return this.getAllowance(t,this.contract.targetAddress,this.targetToken,this.targetPublicClient)}async approve(t,n,r,o){if(this.publicClient&&this.walletClient){const{request:a}=await this.publicClient.simulateContract({address:o.address,abi:(await me(async()=>{const{default:s}=await Promise.resolve().then(()=>aD);return{default:s}},void 0,import.meta.url)).default,functionName:"approve",args:[r,t],account:n}),i=await this.walletClient.writeContract(a);return this.publicClient.waitForTransactionReceipt({hash:i,confirmations:ho})}}async sourceApprove(t,n){if(await this.validateNetwork("source"),this.sourceToken&&this.contract)return this.approve(t,n,this.contract.sourceAddress,this.sourceToken)}async targetApprove(t,n){if(await this.validateNetwork("target"),this.targetToken&&this.contract)return this.approve(t,n,this.contract.targetAddress,this.targetToken)}async transfer(t,n,r,o){return await this.validateNetwork("source"),this._transfer(t,n,r,o)}async estimateTransferGas(t,n,r,o){return this._transfer(t,n,r,{...o,askEstimateGas:!0})}async estimateTransferGasFee(t,n,r,o){const a=await this.estimateTransferGas(t,n,r,o);if(a&&this.sourcePublicClient){const{maxFeePerGas:i}=await this.sourcePublicClient.estimateFeesPerGas();return i?i*a:void 0}}}class Jj extends Nye{constructor(t){super(t),this.logo={horizontal:"helix-horizontal.svg",symbol:"helix-symbol.svg"},this.name="Helix LnBridge(v2)",this.estimateTime={min:1,max:2}}isLnBridge(){return!0}async getFee(t){if(t!=null&&t.relayer&&this.contract&&this.targetChain&&this.sourceToken&&this.targetToken&&this.sourcePublicClient)return{value:await this.sourcePublicClient.readContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnv2-default-DTrLX-WA.js");return{default:r}},[],import.meta.url)).default,functionName:"totalFee",args:[BigInt(this.targetChain.id),t.relayer,this.sourceToken.address,this.targetToken.address,t.transferAmount??0n]}),token:this.sourceToken}}async _getLayerzeroFee(t,n,r){const[o]=await r.readContract({address:t,abi:(await me(async()=>{const{default:a}=await import("./lnaccess-controller-BNSJ7_eO.js");return{default:a}},[],import.meta.url)).default,functionName:"fee",args:[BigInt(n.id),qu(Uint8Array.from([123]),{size:750})]});return o}async _getMsglineFeeAndParams(t,n,r,o,a,i,s,c){var f,h,m,p;const l=(h=(f=jt.HelixChain.chains().find(b=>b.id.toString()===r.id.toString()))==null?void 0:f.messager("msgline"))==null?void 0:h.address,u=(p=(m=jt.HelixChain.chains().find(b=>b.id.toString()===r.id.toString()))==null?void 0:m.couples.find(b=>b.chain.code===o.network&&b.symbol.from===(s==null?void 0:s.symbol)&&b.symbol.to===(c==null?void 0:c.symbol)&&b.protocol.name===this.protocol))==null?void 0:p.messager,d=(u==null?void 0:u.name)==="msgline"?u.address:void 0;if(n&&l&&d&&a&&i){const b=oi({abi:(await me(async()=>{const{default:v}=await import("./msgline-messager-gody91Yq.js");return{default:v}},[],import.meta.url)).default,functionName:"receiveMessage",args:[BigInt(r.id),a,i,t]});return Kye(r.id,o.id,l,d,n,b)}}async _getLayerzeroWithdrawFee(){if(this.contract&&this.targetChain&&this.sourceNativeToken&&this.sourcePublicClient){const[t]=await this.sourcePublicClient.readContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnv2-default-DTrLX-WA.js");return{default:r}},[],import.meta.url)).default,functionName:"messagers",args:[BigInt(this.targetChain.id)]}),n=await this._getLayerzeroFee(t,this.targetChain,this.sourcePublicClient);return typeof n=="bigint"?{value:n,token:this.sourceNativeToken,params:void 0}:void 0}}async _getMsglineWithdrawFeeAndParams(t){if(this.sourceChain&&this.targetChain&&this.sourceToken&&this.targetToken&&this.contract&&this.sourceNativeToken&&t.transferId&&t.withdrawNonce&&t.relayer&&t.sender){const n=oi({abi:(await me(async()=>{const{default:o}=await import("./lnv2-default-DTrLX-WA.js");return{default:o}},[],import.meta.url)).default,functionName:"withdraw",args:[BigInt(this.sourceChain.id),t.transferId,BigInt(t.withdrawNonce),t.relayer,this.sourceToken.address,this.targetToken.address,t.amount]}),r=await this._getMsglineFeeAndParams(n,t.sender,this.sourceChain,this.targetChain,this.contract.sourceAddress,this.contract.targetAddress,this.sourceToken,this.targetToken);return r?{value:r.fee,token:this.sourceNativeToken,params:r.extParams}:void 0}}async getWithdrawFeeParams(t){if(t.messageChannel==="layerzero")return this._getLayerzeroWithdrawFee();if(t.messageChannel==="msgline")return this._getMsglineWithdrawFeeAndParams(t)}async _transfer(t,n,r,o){}}class dV extends Jj{constructor(t){super(t)}async _transfer(t,n,r,o){const a=await this.getSigner(),i=o==null?void 0:o.relayer,s=o==null?void 0:o.transferId;if(a&&i&&s&&this.contract&&this.sourcePublicClient&&this.targetChain&&this.sourceToken&&this.targetToken){const c=(o==null?void 0:o.askEstimateGas)??!1,l=(o==null?void 0:o.totalFee)??0n,u={remoteChainId:BigInt(this.targetChain.id),provider:i,sourceToken:this.sourceToken.address,targetToken:this.targetToken.address,transferId:s,totalFee:l,withdrawNonce:(o==null?void 0:o.withdrawNonce)||0n},d={address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:f}=await import("./lnv2-default-DTrLX-WA.js");return{default:f}},[],import.meta.url)).default,functionName:"transferAndLockMargin",args:[u,r,n],value:this.sourceToken.type==="native"?r+l:void 0,gas:this.getTxGasLimit(),account:a};if(c)return this.sourcePublicClient.estimateContractGas(d);if(this.walletClient){const f=await this.walletClient.writeContract(d);return this.sourcePublicClient.waitForTransactionReceipt({hash:f,confirmations:ho})}}}async depositMargin(t){if(await this.validateNetwork("target"),this.contract&&this.sourceChain&&this.sourceToken&&this.targetToken&&this.publicClient&&this.walletClient){const n=await this.walletClient.writeContract({address:this.contract.targetAddress,abi:(await me(async()=>{const{default:r}=await import("./lnv2-default-DTrLX-WA.js");return{default:r}},[],import.meta.url)).default,functionName:"depositProviderMargin",args:[BigInt(this.sourceChain.id),this.sourceToken.address,this.targetToken.address,t],value:this.targetToken.type==="native"?t:void 0,gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:n,confirmations:ho})}}async setFeeAndRate(t,n){if(await this.validateNetwork("source"),this.contract&&this.targetChain&&this.sourceToken&&this.targetToken&&this.publicClient&&this.walletClient){const r=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:o}=await import("./lnv2-default-DTrLX-WA.js");return{default:o}},[],import.meta.url)).default,functionName:"setProviderFee",args:[BigInt(this.targetChain.id),this.sourceToken.address,this.targetToken.address,t,n],gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:r,confirmations:ho})}}async withdrawMargin(t,n,r){if(await this.validateNetwork("source"),this.contract&&this.sourceToken&&this.targetToken&&this.targetChain&&this.publicClient&&this.walletClient){const o=BigInt(this.targetChain.id),a=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:i}=await import("./lnv2-default-DTrLX-WA.js");return{default:i}},[],import.meta.url)).default,functionName:"requestWithdrawMargin",args:[o,this.sourceToken.address,this.targetToken.address,n,t],gas:this.getTxGasLimit(),value:r});return this.publicClient.waitForTransactionReceipt({hash:a,confirmations:ho})}}}class fV extends Jj{constructor(t){super(t)}async _transfer(t,n,r,o){const a=await this.getSigner(),i=o==null?void 0:o.relayer,s=o==null?void 0:o.transferId;if(a&&i&&s&&this.contract&&this.sourcePublicClient&&this.sourceToken&&this.targetToken&&this.targetChain){const c=(o==null?void 0:o.askEstimateGas)??!1,l=(o==null?void 0:o.totalFee)??0n,u={remoteChainId:BigInt(this.targetChain.id),provider:i,sourceToken:this.sourceToken.address,targetToken:this.targetToken.address,transferId:s,totalFee:l,depositedMargin:(o==null?void 0:o.depositedMargin)||0n},d={address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:f}=await import("./lnv2-opposite-C16bOlDZ.js");return{default:f}},[],import.meta.url)).default,functionName:"transferAndLockMargin",args:[u,r,n],value:this.sourceToken.type==="native"?r+l:void 0,gas:this.getTxGasLimit(),account:a};if(c)return this.sourcePublicClient.estimateContractGas(d);if(this.walletClient){const f=await this.walletClient.writeContract(d);return this.sourcePublicClient.waitForTransactionReceipt({hash:f,confirmations:ho})}}}async updateFeeAndMargin(t,n,r){if(await this.validateNetwork("source"),this.contract&&this.targetChain&&this.sourceToken&&this.targetToken&&this.publicClient&&this.walletClient){const o=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:a}=await import("./lnv2-opposite-C16bOlDZ.js");return{default:a}},[],import.meta.url)).default,functionName:"updateProviderFeeAndMargin",args:[BigInt(this.targetChain.id),this.sourceToken.address,this.targetToken.address,t,n,r],value:this.sourceToken.type==="native"?t:void 0,gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:o,confirmations:ho})}}}class Zj extends Jj{constructor(t){super(t),this.name="Helix LnBridge(v3)"}async _transfer(t,n,r,o){const a=await this.getSigner(),i=o==null?void 0:o.relayer;if(a&&i&&this.contract&&this.sourcePublicClient&&this.targetChain&&this.sourceToken&&this.targetToken){const s=(o==null?void 0:o.askEstimateGas)??!1,c=(o==null?void 0:o.totalFee)??0n,l={address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:u}=await import("./lnbridge-v3-Cee8iMxl.js");return{default:u}},[],import.meta.url)).default,functionName:"lockAndRemoteRelease",args:[{remoteChainId:BigInt(this.targetChain.id),provider:i,sourceToken:this.sourceToken.address,targetToken:this.targetToken.address,totalFee:c,amount:r,receiver:n,timestamp:BigInt(Math.floor(Date.now()/1e3))}],value:this.sourceToken.type==="native"?r+c:void 0,gas:this.getTxGasLimit(),account:a};if(s)return this.sourcePublicClient.estimateContractGas(l);if(this.walletClient){const u=await this.walletClient.writeContract(l);return this.sourcePublicClient.waitForTransactionReceipt({hash:u,confirmations:ho})}}}async getFee(t){const n=t==null?void 0:t.relayer;if(n&&this.sourcePublicClient&&this.contract&&this.targetChain&&this.sourceToken&&this.targetToken)return{value:await this.sourcePublicClient.readContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnbridge-v3-Cee8iMxl.js");return{default:r}},[],import.meta.url)).default,functionName:"totalFee",args:[BigInt(this.targetChain.id),n,this.sourceToken.address,this.targetToken.address,t.transferAmount??0n]}),token:this.sourceToken}}async getPenaltyReserves(t){if(t&&this.contract&&this.sourceToken&&this.sourcePublicClient)return{value:await this.sourcePublicClient.readContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnbridge-v3-Cee8iMxl.js");return{default:r}},[],import.meta.url)).default,functionName:"penaltyReserves",args:[Or(jde(["address","address"],[this.sourceToken.address,t]))]}),token:this.sourceToken}}async registerLnProvider(t,n,r){if(await this.validateNetwork("source"),this.contract&&this.publicClient&&this.walletClient&&this.targetChain&&this.sourceToken&&this.targetToken){const o=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:a}=await import("./lnbridge-v3-Cee8iMxl.js");return{default:a}},[],import.meta.url)).default,functionName:"registerLnProvider",args:[BigInt(this.targetChain.id),this.sourceToken.address,this.targetToken.address,t,n,r],gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:o,confirmations:ho})}}async depositPenaltyReserve(t){if(await this.validateNetwork("source"),this.contract&&this.publicClient&&this.walletClient&&this.sourceToken){const n=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnbridge-v3-Cee8iMxl.js");return{default:r}},[],import.meta.url)).default,functionName:"depositPenaltyReserve",args:[this.sourceToken.address,t],value:this.sourceToken.type==="native"?t:void 0,gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:n,confirmations:ho})}}async withdrawPenaltyReserve(t){if(await this.validateNetwork("source"),this.contract&&this.sourceToken&&this.publicClient&&this.walletClient){const n=await this.walletClient.writeContract({address:this.contract.sourceAddress,abi:(await me(async()=>{const{default:r}=await import("./lnbridge-v3-Cee8iMxl.js");return{default:r}},[],import.meta.url)).default,functionName:"withdrawPenaltyReserve",args:[this.sourceToken.address,t]});return this.publicClient.waitForTransactionReceipt({hash:n,confirmations:ho})}}async getWithdrawLiquidityFeeAndParams(t,n,r){if(r==="layerzero"){if(this.contract&&this.sourceChain&&this.targetNativeToken&&this.targetPublicClient){const[o]=await this.targetPublicClient.readContract({address:this.contract.targetAddress,abi:(await me(async()=>{const{default:i}=await import("./lnbridge-v3-Cee8iMxl.js");return{default:i}},[],import.meta.url)).default,functionName:"messagers",args:[BigInt(this.sourceChain.id)]}),a=await this._getLayerzeroFee(o,this.sourceChain,this.targetPublicClient);return typeof a=="bigint"?{value:a,token:this.targetNativeToken,params:void 0}:void 0}}else if(r==="msgline"&&this.targetNativeToken&&this.sourceChain&&this.targetChain&&this.contract){const o=oi({abi:(await me(async()=>{const{default:i}=await import("./lnbridge-v3-Cee8iMxl.js");return{default:i}},[],import.meta.url)).default,functionName:"withdrawLiquidity",args:[n,BigInt(this.targetChain.id),t]}),a=await this._getMsglineFeeAndParams(o,t,this.targetChain,this.sourceChain,this.contract.targetAddress,this.contract.sourceAddress,this.targetToken,this.sourceToken);return a?{value:a.fee,token:this.targetNativeToken,params:a.extParams}:void 0}}async requestWithdrawLiquidity(t,n,r,o){if(await this.validateNetwork("target"),this.contract&&this.sourceChain&&this.publicClient&&this.walletClient){const a=BigInt(this.sourceChain.id),i=await this.walletClient.writeContract({address:this.contract.targetAddress,abi:(await me(async()=>{const{default:s}=await import("./lnbridge-v3-Cee8iMxl.js");return{default:s}},[],import.meta.url)).default,functionName:"requestWithdrawLiquidity",args:[a,n,t,o],value:r,gas:this.getTxGasLimit()});return this.publicClient.waitForTransactionReceipt({hash:i,confirmations:ho})}}}function fm(e){switch(e.category){case"lnv3":return new Zj({...e,category:"lnbridge",protocol:"lnv3"});case"lnv2-default":return new dV({...e,category:"lnbridge",protocol:"lnv2-default"});case"lnv2-opposite":return new fV({...e,category:"lnbridge",protocol:"lnv2-opposite"});default:return}}function Bye(e,t){return!!(e!=null&&e.cross.some(n=>n.target.network===(t==null?void 0:t.network)&&n.bridge.category==="lnbridge"&&n.bridge.lnv2Type==="default"))}function Fye(e,t){return!!(e!=null&&e.cross.some(n=>n.target.network===(t==null?void 0:t.network)&&n.bridge.category==="lnbridge"&&n.bridge.lnv2Type==="opposite"))}const hV=Er({id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),mV=Er({id:421614,name:"Arbitrum Sepolia",network:"arbitrum-sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-sepolia.g.alchemy.com/v2"],webSocket:["wss://arb-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]},public:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"},default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0}),pV=Er({id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),e4={block:wq({format(e){var n;return{transactions:(n=e.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const o=L_(r);return o.typeHex==="0x7e"&&(o.isSystemTx=r.isSystemTx,o.mint=r.mint?wn(r.mint):void 0,o.sourceHash=r.sourceHash,o.type="deposit"),o}),stateRoot:e.stateRoot}}}),transaction:vq({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?wn(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:tW({format(e){return{l1GasPrice:e.l1GasPrice?wn(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?wn(e.l1GasUsed):null,l1Fee:e.l1Fee?wn(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})},gV=Er({id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-mainnet.g.alchemy.com/v2"],webSocket:["wss://base-mainnet.g.alchemy.com/v2"]},infura:{http:["https://base-mainnet.infura.io/v3"],webSocket:["wss://base-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{blockscout:{name:"Basescout",url:"https://base.blockscout.com"},default:{name:"Basescan",url:"https://basescan.org"},etherscan:{name:"Basescan",url:"https://basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022}}},{formatters:e4}),yV=Er({id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-sepolia.g.alchemy.com/v2"],webSocket:["wss://base-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"},default:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"}},testnet:!0,sourceId:11155111},{formatters:e4}),bV=Er({id:56,name:"BNB Smart Chain",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),Mye=Er({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),vV=Er({id:100,name:"Gnosis",network:"gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]},public:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{etherscan:{name:"Gnosisscan",url:"https://gnosisscan.io"},default:{name:"Gnosis Chain Explorer",url:"https://blockscout.com/xdai/mainnet"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}}),wV=Er({id:59144,name:"Linea Mainnet",network:"linea-mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-mainnet.infura.io/v3"],webSocket:["wss://linea-mainnet.infura.io/ws/v3"]},default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.linea.build"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42}},testnet:!1}),Ux=Er({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),EV=Er({id:5e3,name:"Mantle",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]},public:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"},default:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}}),_V=Er({id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},{formatters:e4}),xV=Er({id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),CV=Er({id:534352,name:"Scroll",network:"scroll",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]},public:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com"},blockscout:{name:"Blockscout",url:"https://blockscout.scroll.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1}),SV=Er({id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x21B000Fd62a880b2125A61e36a284BB757b76025",blockCreated:3914906}},testnet:!0}),t4={block:wq({format(e){var n;const t=(n=e.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const o=t4.transaction.format(r);return o.typeHex==="0x71"?o.type="eip712":o.typeHex==="0xff"&&(o.type="priority"),o});return{l1BatchNumber:e.l1BatchNumber?wn(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?wn(e.l1BatchTimestamp):null,transactions:t}}}),transaction:vq({format(e){const t={};return e.type==="0x71"?t.type="eip712":e.type==="0xff"&&(t.type="priority"),{...t,l1BatchNumber:e.l1BatchNumber?wn(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?wn(e.l1BatchTxIndex):null}}}),transactionReceipt:tW({format(e){return{l1BatchNumber:e.l1BatchNumber?wn(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?wn(e.l1BatchTxIndex):null,logs:e.logs.map(t=>({..._a(t),l1BatchNumber:t.l1BatchNumber?wn(t.l1BatchNumber):null,transactionLogIndex:pr(t.transactionLogIndex),logType:t.logType})),l2ToL1Logs:e.l2ToL1Logs.map(t=>({blockNumber:wn(t.blockHash),blockHash:t.blockHash,l1BatchNumber:wn(t.l1BatchNumber),transactionIndex:wn(t.transactionIndex),shardId:wn(t.shardId),isService:t.isService,sender:t.sender,key:t.key,value:t.value,transactionHash:t.transactionHash,logIndex:wn(t.logIndex)}))}}}),transactionRequest:_ue({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format(e){return e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:rt(e.gasPerPubdata)}:{},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from(qg(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps}:{},...e.customSignature?{customSignature:e.customSignature}:{}},type:e.type==="eip712"?"0x71":"0xff"}:{}}})},Lye=(e,t)=>$ye(e)?Uye(e):rfe(e,t),TV={transaction:Lye};function Uye(e){const{chainId:t,gas:n,nonce:r,to:o,from:a,value:i,maxFeePerGas:s,maxPriorityFeePerGas:c,customSignature:l,factoryDeps:u,paymaster:d,paymasterInput:f,gasPerPubdata:h,data:m}=e;zye(e);const p=[r?rt(r):"0x",c?rt(c):"0x",s?rt(s):"0x",n?rt(n):"0x",o??"0x",i?rt(i):"0x",m??"0x",rt(t),rt(""),rt(""),rt(t),a??"0x",h?rt(h):"0x",u??[],l??"0x",d&&f?[d,f]:[]];return Sl(["0x71",V_(p)])}function $ye(e){return"customSignature"in e||"paymaster"in e||"paymasterInput"in e||"gasPerPubdata"in e||"factoryDeps"in e}function zye(e){const{chainId:t,to:n,from:r,paymaster:o,paymasterInput:a}=e;if(t<=0)throw new $_({chainId:t});if(n&&!Hn(n))throw new Wo({address:n});if(r&&!Hn(r))throw new Wo({address:r});if(o&&!Hn(o))throw new Wo({address:o});if(o&&!a)throw new de("`paymasterInput` must be provided when `paymaster` is defined");if(!o&&a)throw new de("`paymaster` must be provided when `paymasterInput` is defined")}const AV=Er({id:324,name:"zkSync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]},public:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}}},{serializers:TV,formatters:t4}),DV=Er({id:300,name:"zkSync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]},public:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://sepolia.explorer.zksync.io/"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},{serializers:TV,formatters:t4}),Rw=jt.HelixChain.arbitrum,kV=Rw.tokens.map(e=>{var a;const t=Rw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Rw.couples.length&&!Rw.tokens.some(e=>e.type==="native")&&kV.push({...hV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const jV={...hV,network:"arbitrum",name:"Arbitrum One",logo:"arbitrum.png",tokens:kV},Nw=jt.HelixChain.arbitrumSepolia,PV=Nw.tokens.map(e=>{var a;const t=Nw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Nw.couples.length&&!Nw.tokens.some(e=>e.type==="native")&&PV.push({...mV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const IV={...mV,network:"arbitrum-sepolia",name:"Arbitrum Sepolia",logo:"arbitrum.png",tokens:PV},Bw=jt.HelixChain.base,OV=Bw.tokens.map(e=>{var a;const t=Bw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Bw.couples.length&&!Bw.tokens.some(e=>e.type==="native")&&OV.push({...gV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const RV={...gV,network:"base",name:"Base",logo:"base.png",tokens:OV},Fw=jt.HelixChain.bsc,NV=Fw.tokens.map(e=>{var a;const t=Fw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Fw.couples.length&&!Fw.tokens.some(e=>e.type==="native")&&NV.push({...bV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const BV={...bV,network:"bsc",name:"BSC",logo:"bsc.png",tokens:NV};var ct=(e=>(e[e.DARWINIA=46]="DARWINIA",e[e.CRAB=44]="CRAB",e[e.PANGOLIN=43]="PANGOLIN",e[e.ETHEREUM=1]="ETHEREUM",e[e.SEPOLIA=11155111]="SEPOLIA",e[e.ARBITRUM=42161]="ARBITRUM",e[e.ARBITRUM_SEPOLIA=421614]="ARBITRUM_SEPOLIA",e[e.ZKSYNC=324]="ZKSYNC",e[e.ZKSYNC_SEPOLIA=300]="ZKSYNC_SEPOLIA",e[e.POLYGON=137]="POLYGON",e[e.LINEA=59144]="LINEA",e[e.MANTLE=5e3]="MANTLE",e[e.BASE=8453]="BASE",e[e.BASE_SEPOLIA=84532]="BASE_SEPOLIA",e[e.SCROLL=534352]="SCROLL",e[e.BSC=56]="BSC",e[e.OPTIMISM=10]="OPTIMISM",e[e.GNOSIS=100]="GNOSIS",e[e.BLAST=81457]="BLAST",e[e.BERA=80084]="BERA",e[e.TAIKO_HEKLA=167009]="TAIKO_HEKLA",e[e.ASTAR_ZKEVM=3776]="ASTAR_ZKEVM",e[e.MORPH=2710]="MORPH",e[e.MOONBEAM=1284]="MOONBEAM",e[e.AVALANCHE=43114]="AVALANCHE",e[e.ZIRCUIT=48900]="ZIRCUIT",e[e.ZIRCUIT_SEPOLIA=48899]="ZIRCUIT_SEPOLIA",e))(ct||{});const Mw=jt.HelixChain.crabDvm,FV=Mw.tokens.map(e=>{var a;const t=Mw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Mw.couples.length&&!Mw.tokens.some(e=>e.type==="native")&&FV.push({name:"CRAB",symbol:"CRAB",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const MV={id:ct.CRAB,network:"crab-dvm",name:"Crab",nativeCurrency:{name:"CRAB",symbol:"CRAB",decimals:18},rpcUrls:{default:{http:["https://crab-rpc.darwinia.network"],webSocket:["wss://crab-rpc.darwinia.network"]},public:{http:["https://crab-rpc.darwinia.network"],webSocket:["wss://crab-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Subscan",url:"https://crab.subscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:599936}},logo:"crab.png",tokens:FV},Lw=jt.HelixChain.darwiniaDvm,LV=Lw.tokens.map(e=>{var a;const t=Lw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Lw.couples.length&&!Lw.tokens.some(e=>e.type==="native")&&LV.push({name:"RING",symbol:"RING",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const UV={id:ct.DARWINIA,network:"darwinia-dvm",name:"Darwinia",nativeCurrency:{name:"RING",symbol:"RING",decimals:18},rpcUrls:{default:{http:["https://rpc.darwinia.network"],webSocket:["wss://rpc.darwinia.network"]},public:{http:["https://rpc.darwinia.network"],webSocket:["wss://rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.darwinia.network/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:251739}},logo:"darwinia.png",tokens:LV},Uw=jt.HelixChain.ethereum,$V=Uw.tokens.map(e=>{var a;const t=Uw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Uw.couples.length&&!Uw.tokens.some(e=>e.type==="native")&&$V.push({...Ux.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const zV={...Ux,network:"ethereum",name:"Ethereum",logo:"ethereum.png",tokens:$V},$w=jt.HelixChain.sepolia,HV=$w.tokens.map(e=>{var a;const t=$w.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});$w.couples.length&&!$w.tokens.some(e=>e.type==="native")&&HV.push({...SV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const qV={...SV,network:"sepolia",name:"Sepolia",logo:"sepolia.png",tokens:HV},zw=jt.HelixChain.linea,WV=zw.tokens.map(e=>{var a;const t=zw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});zw.couples.length&&!zw.tokens.some(e=>e.type==="native")&&WV.push({...wV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const GV={...wV,network:"linea",name:"Linea",logo:"linea.png",tokens:WV},Hw=jt.HelixChain.mantle,VV=Hw.tokens.map(e=>{var a;const t=Hw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Hw.couples.length&&!Hw.tokens.some(e=>e.type==="native")&&VV.push({...EV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const KV={...EV,network:"mantle",name:"Mantle",logo:"mantle.png",tokens:VV},qw=jt.HelixChain.op,YV=qw.tokens.map(e=>{var a;const t=qw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});qw.couples.length&&!qw.tokens.some(e=>e.type==="native")&&YV.push({..._V.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const QV={..._V,network:"op",name:"OP Mainnet",logo:"optimism.png",tokens:YV},Ww=jt.HelixChain.polygon,XV=Ww.tokens.map(e=>{var a;const t=Ww.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Ww.couples.length&&!Ww.tokens.some(e=>e.type==="native")&&XV.push({...xV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const JV={...xV,network:"polygon",name:"Polygon PoS",logo:"polygon.png",tokens:XV},Gw=jt.HelixChain.scroll,ZV=Gw.tokens.map(e=>{var a;const t=Gw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Gw.couples.length&&!Gw.tokens.some(e=>e.type==="native")&&ZV.push({...CV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const eK={...CV,network:"scroll",name:"Scroll",logo:"scroll.png",tokens:ZV},Vw=jt.HelixChain.zksync,tK=Vw.tokens.map(e=>{var a;const t=Vw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Vw.couples.length&&!Vw.tokens.some(e=>e.type==="native")&&tK.push({...AV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const nK={...AV,network:"zksync",name:"zkSync era",logo:"zksync.png",tokens:tK},Kw=jt.HelixChain.zksyncSepolia,rK=Kw.tokens.map(e=>{var a;const t=Kw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Kw.couples.length&&!Kw.tokens.some(e=>e.type==="native")&&rK.push({...DV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const oK={...DV,network:"zksync-sepolia",name:"zkSync Sepolia Testnet",logo:"zksync.png",tokens:rK},Yw=jt.HelixChain.gnosis,aK=Yw.tokens.map(e=>{var a;const t=Yw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Yw.couples.length&&!Yw.tokens.some(e=>e.type==="native")&&aK.push({...vV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const iK={...vV,network:"gnosis",name:"Gnosis Chain",blockExplorers:{default:{name:"Gnosisscan",url:"https://gnosisscan.io"}},logo:"gnosis.png",tokens:aK};var xn=(e=>(e[e.PENDING=0]="PENDING",e[e.PENDING_TO_REFUND=1]="PENDING_TO_REFUND",e[e.PENDING_TO_CLAIM=2]="PENDING_TO_CLAIM",e[e.SUCCESS=3]="SUCCESS",e[e.REFUNDED=4]="REFUNDED",e[e.PENDING_TO_CONFIRM_REFUND=5]="PENDING_TO_CONFIRM_REFUND",e[e.FAILED=6]="FAILED",e))(xn||{}),Mn=(e=>(e.ADDRESS="address",e.PAGE="page",e.TAB="tab",e.BRIDGE="bridge",e.SOURCE_CHAIN="source_chain",e.TARGET_CHAIN="target_chain",e.SOURCE_TOKEN="source_token",e.TARGET_TOKEN="target_token",e.TOKEN_CATEGORY="token_category",e))(Mn||{});const Qw=jt.HelixChain.blast,sK=Qw.tokens.map(e=>{var a;const t=Qw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Qw.couples.length&&!Qw.tokens.some(e=>e.type==="native")&&sK.push({decimals:18,name:"Ether",symbol:"ETH",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const cK={id:ct.BLAST,network:"blast",name:"Blast",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.blast.io"]},public:{http:["https://rpc.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://blastscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:212929}},logo:"blast.png",tokens:sK},Xw=jt.HelixChain.bera,lK=Xw.tokens.map(e=>{var a;const t=Xw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Xw.couples.length&&!Xw.tokens.some(e=>e.type==="native")&&lK.push({name:"BERA",symbol:"BERA",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const uK={id:ct.BERA,network:"bera",name:"Berachain Bartio",nativeCurrency:{name:"BERA",symbol:"BERA",decimals:18},rpcUrls:{default:{http:["https://bartio.rpc.berachain.com/"]},public:{http:["https://bartio.rpc.berachain.com/"]}},blockExplorers:{default:{name:"Bartio",url:"https://bartio.beratrail.io"}},testnet:!0,logo:"bera.png",tokens:lK},Jw=jt.HelixChain.astarZkevm,dK=Jw.tokens.map(e=>{var a;const t=Jw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Jw.couples.length&&!Jw.tokens.some(e=>e.type==="native")&&dK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const fK={id:ct.ASTAR_ZKEVM,network:"astar-zkevm",name:"Astar zkEVM",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.astar-zkevm.gelato.digital"],webSocket:[]},public:{http:["https://rpc.astar-zkevm.gelato.digital"],webSocket:[]}},blockExplorers:{default:{name:"Blockscout",url:"https://astar-zkevm.explorer.startale.com/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:183817}},logo:"astar.png",tokens:dK},Zw=jt.HelixChain.moonbeam,hK=Zw.tokens.map(e=>{var a;const t=Zw.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});Zw.couples.length&&!Zw.tokens.some(e=>e.type==="native")&&hK.push({name:"GLMR",symbol:"GLMR",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const mK={id:ct.MOONBEAM,network:"moonbeam",name:"Moonbeam",nativeCurrency:{name:"GLMR",symbol:"GLMR",decimals:18},rpcUrls:{default:{http:["https://rpc.api.moonbeam.network"]},public:{http:["https://rpc.api.moonbeam.network"]}},blockExplorers:{default:{name:"Subscan",url:"https://moonbeam.subscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},logo:"moonbeam.png",tokens:hK},eE=jt.HelixChain.baseSepolia,pK=eE.tokens.map(e=>{var a;const t=eE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});eE.couples.length&&!eE.tokens.some(e=>e.type==="native")&&pK.push({...yV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const gK={...yV,network:"base-sepolia",name:"Base Sepolia",logo:"base.png",tokens:pK},tE=jt.HelixChain.avalanche,yK=tE.tokens.map(e=>{var a;const t=tE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});tE.couples.length&&!tE.tokens.some(e=>e.type==="native")&&yK.push({...pV.nativeCurrency,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const bK={...pV,network:"avalanche",logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/chains/avax.png",tokens:yK},nE=jt.HelixChain.taikoHekla,vK=nE.tokens.map(e=>{var a;const t=nE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});nE.couples.length&&!nE.tokens.some(e=>e.type==="native")&&vK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const wK={id:ct.TAIKO_HEKLA,network:"taiko-hekla",name:"Taiko Hekla",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hekla.taiko.xyz"]},public:{http:["https://rpc.hekla.taiko.xyz"]}},blockExplorers:{default:{name:"Taikoscan",url:"https://hekla.taikoscan.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:59757}},testnet:!0,logo:"taiko.png",tokens:vK},rE=jt.HelixChain.zircuit,EK=rE.tokens.map(e=>{var a;const t=rE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});rE.couples.length&&!rE.tokens.some(e=>e.type==="native")&&EK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const _K={id:ct.ZIRCUIT,network:"zircuit",name:"Zircuit",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zircuit1-mainnet.p2pify.com"]},public:{http:["https://zircuit1-mainnet.p2pify.com"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},logo:"zircuit.png",tokens:EK},oE=jt.HelixChain.zircuitSepolia,xK=oE.tokens.map(e=>{var a;const t=oE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});oE.couples.length&&!oE.tokens.some(e=>e.type==="native")&&xK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const CK={id:ct.ZIRCUIT_SEPOLIA,network:"zircuit-sepolia",name:"Zircuit Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zircuit1.p2pify.com"]},public:{http:["https://zircuit1.p2pify.com"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.testnet.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6040287}},testnet:!0,logo:"zircuit.png",tokens:xK};function Hye(){return!1}const aE=jt.HelixChain.morph,SK=aE.tokens.map(e=>{var a;const t=aE.filterCouples({symbolFrom:e.symbol}),n=((a=t.at(0))==null?void 0:a.category)??"Others",r=new Set;for(const i of t)r.add(`${i.chain.code}:${i.symbol.from}:${i.symbol.to}`);const o=[...r].map(i=>{const[s,c,l]=i.split(":"),u=t.find(d=>d.chain.code===s&&d.symbol.from===c&&d.symbol.to===l&&(d.protocol.name==="lnv2-default"||d.protocol.name==="lnv2-opposite"));return{target:{network:s,symbol:l},bridge:{category:"lnbridge",lnv2Type:(u==null?void 0:u.protocol.name)==="lnv2-opposite"?"opposite":"default",disableV2:!u}}});return{...e,name:e.symbol,address:e.address,category:n,cross:o}});aE.couples.length&&!aE.tokens.some(e=>e.type==="native")&&SK.push({name:"ETH",symbol:"ETH",decimals:18,logo:"https://raw.githubusercontent.com/helix-bridge/helix-ui/main/packages/assets/images/tokens/eth.png",address:"0x0000000000000000000000000000000000000000",category:"ETH",type:"native",cross:[],alias:[]});const TK={id:ct.MORPH,network:"morph",name:"Morph Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.morphl2.io"],webSocket:[]},public:{http:["https://rpc-testnet.morphl2.io"],webSocket:[]}},blockExplorers:{default:{name:"Morph",url:"https://explorer-testnet.morphl2.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:969768}},testnet:!0,logo:"morph.png",tokens:SK};function st(e){switch(e){case ct.DARWINIA:case"darwinia-dvm":return UV;case ct.CRAB:case"crab-dvm":return MV;case ct.ETHEREUM:case"ethereum":return zV;case ct.ARBITRUM:case"arbitrum":return jV;case ct.ARBITRUM_SEPOLIA:case"arbitrum-sepolia":return IV;case ct.ZKSYNC:case"zksync":return nK;case ct.ZKSYNC_SEPOLIA:case"zksync-sepolia":return oK;case ct.LINEA:case"linea":return GV;case ct.MANTLE:case"mantle":return KV;case ct.POLYGON:case"polygon":return JV;case ct.SCROLL:case"scroll":return eK;case ct.BASE:case"base":return RV;case ct.BSC:case"bsc":return BV;case ct.OPTIMISM:case"op":return QV;case ct.GNOSIS:case"gnosis":return iK;case ct.SEPOLIA:case"sepolia":return qV;case ct.BLAST:case"blast":return cK;case ct.BERA:case"bera":return uK;case ct.TAIKO_HEKLA:case"taiko-hekla":return wK;case ct.ASTAR_ZKEVM:case"astar-zkevm":return fK;case ct.MORPH:case"morph":return TK;case ct.MOONBEAM:case"moonbeam":return mK;case ct.BASE_SEPOLIA:case"base-sepolia":return gK;case ct.AVALANCHE:case"avalanche":return bK;case ct.ZIRCUIT:case"zircuit":return _K;case ct.ZIRCUIT_SEPOLIA:case"zircuit-sepolia":return CK;default:return}}function hm(e){return[jV,IV,MV,UV,zV,qV,GV,KV,nK,oK,JV,eK,RV,BV,QV,iK,cK,uK,wK,fK,TK,mK,gK,bK,_K,CK].sort((n,r)=>n.name.localeCompare(r.name)).filter(n=>!n.hidden&&!n.testnet)}let VR,E0,iE,sE,X5=[],AK=[],v1=[],DK=[],av={},w1={},uu={},uf={},cE=[],lE=[],J5=[],Z5=[],Jp={},E1={},Zp={},_1={};hm().forEach(e=>{let t=[];e.tokens.forEach(n=>{n.cross.forEach(r=>{var i,s,c,l,u,d,f,h,m;const o=st(r.target.network),a=o==null?void 0:o.tokens.find(p=>p.symbol===r.target.symbol);!r.hidden&&o&&a&&(t=t.filter(p=>p.symbol!==n.symbol).concat(n),VR=VR??r.bridge.category,iE=iE??o,av={...av,[e.network]:{...av[e.network],[o.network]:(((i=av[e.network])==null?void 0:i[o.network])||[]).filter(p=>p.symbol!==n.symbol).concat(n)}},w1={...w1,[e.network]:(w1[e.network]||[]).filter(p=>p.id!=o.id).concat(o)},uu={...uu,[e.network]:{...uu[e.network],[o.network]:{...(s=uu[e.network])==null?void 0:s[o.network],[n.symbol]:(((l=(c=uu[e.network])==null?void 0:c[o.network])==null?void 0:l[n.symbol])||[]).filter(p=>p.symbol!==a.symbol).concat(a)}}},uf={...uf,[e.network]:{...uf[e.network],[o.network]:{...(u=uf[e.network])==null?void 0:u[o.network],[n.symbol]:(((f=(d=uf[e.network])==null?void 0:d[o.network])==null?void 0:f[n.symbol])||[]).filter(p=>p!==r.bridge.category).concat(r.bridge.category)}}},r.bridge.category==="lnbridge"&&(cE=cE.filter(p=>p.id!==e.id).concat(e),lE=lE.filter(p=>p.id!==o.id).concat(o),Jp={...Jp,[e.network]:{...Jp[e.network],[o.network]:(((h=Jp[e.network])==null?void 0:h[o.network])||[]).filter(p=>p.symbol!==n.symbol).concat(n)}},E1={...E1,[e.network]:(E1[e.network]||[]).filter(p=>p.id!==o.id).concat(o)},r.bridge.disableV2||(J5=J5.filter(p=>p.id!=e.id).concat(e),Z5=Z5.filter(p=>p.id!==o.id).concat(o),Zp={...Zp,[e.network]:{...Zp[e.network],[o.network]:(((m=Zp[e.network])==null?void 0:m[o.network])||[]).filter(p=>p.symbol!==n.symbol).concat(n)}},_1={..._1,[e.network]:(_1[e.network]||[]).filter(p=>p.id!==o.id).concat(o)})))})}),t.length&&(E0=E0??e,sE=sE??t[0],X5=X5.concat(e),v1=v1.length?v1:t)});var YL,QL;E0&&(AK=w1[E0.network]||[],iE&&sE&&(DK=((QL=(YL=uu[E0.network])==null?void 0:YL[iE.network])==null?void 0:QL[sE.symbol])||[]));function dy(e,t){return e.name.localeCompare(t.name)}function $x(e,t){return e.type==="native"?1:e.symbol.localeCompare(t.symbol)}X5.sort(dy);AK.sort(dy);v1.sort($x);DK.sort($x);cE.sort(dy);lE.sort(dy);function qye(e,t,n){var r,o;return e&&t&&n?((o=(r=uf[e.network])==null?void 0:r[t.network])==null?void 0:o[n.symbol])||[]:[]}function kK(e,t,n,r=[]){var o,a;if(e&&t&&n){const i=(((a=(o=uu[e.network])==null?void 0:o[t.network])==null?void 0:a[n.symbol])||[]).sort($x);return i.length?i:r}return r}function n4(e){return{defaultSourceChains:e?J5:cE,defaultTargetChains:e?Z5:lE}}function uE(e,t,n=[],r){var o;if(e&&t){const i=(((o=(r?Zp:Jp)[e.network])==null?void 0:o[t.network])||[]).sort($x);return i.length?i:n}return n}function r4(e,t=[],n){if(e){const o=((n?_1:E1)[e.network]||[]).sort(dy);return o.length?o:t}return t}function Wye(e){switch(e){case xn.PENDING:return"Pending";case xn.PENDING_TO_CONFIRM_REFUND:return"Refunding";case xn.PENDING_TO_REFUND:return"Pending to Refund";case xn.PENDING_TO_CLAIM:return"Pending to Claim";case xn.REFUNDED:return"Refunded";case xn.SUCCESS:return"Finished";default:return"Unknown"}}function vr(e){var t;return(t=e==null?void 0:e.startsWith)!=null&&t.call(e,"http")?e:`images/token/${e||"unknown.svg"}`}function Rn(e){var t;return(t=e==null?void 0:e.startsWith)!=null&&t.call(e,"http")?e:`images/network/${e||"unknown.png"}`}function Gye(e){var t;return(t=e==null?void 0:e.startsWith)!=null&&t.call(e,"http")?e:`images/bridge/${e}`}function Vye(e){return Math.round(Number(e)*Ax)}function ml(e){return Number((e/Ax).toFixed(3))}function o4(e,t){const n=Cme,r=t?Tme:Sme;return n<=e&&e<=r}async function Kye(e,t,n,r,o,a){const s=await fetch(`https://api.msgport.xyz/ormp/fee?from_chain_id=${e}&to_chain_id=${t}&payload=${a}&from_address=${n}&to_address=${r}&refund_address=${o}`),c=await s.json();if(s.ok&&c.code===0){const l=BigInt(c.data.fee),u=c.data.params;return{fee:l,extParams:u}}}function jK(e){return e.map(t=>{const n=t.split("-").slice(-1).at(0);if(!n||!Ea(n))throw new Error(`Failed to extract transfer id, id: ${t}`);return n})}function Yye(e){let t,n,r;if(e){const o=e.split("/");fj(e)?t=e:o.length===2&&(r=Number(o[0]),n=Number(o[1]))}return{hash:t,total:n,completed:r}}const Qye=()=>{const e=document.createElement("div");return e.className="fixed top-medium right-medium lg:top-5 lg:right-5 flex flex-col overflow-hidden z-40",document.body.appendChild(e),e},Xye=(e,t,n)=>{const r=document.createElement("div");r.className=`rounded-xl shadow-lg border-white/5 border lg:border-none bg-secondary p-medium lg:p-5 flex items-center gap-medium mb-medium animate-notification-enter relative w-[82vw] lg:w-96 ${e.className}`;const o=uz(r);return o.render(y.jsxs(y.Fragment,{children:[y.jsx("img",{alt:t,width:20,height:20,src:`images/notification/${t}.svg`,className:"shrink-0 self-start lg:hidden"}),y.jsx("img",{alt:t,width:24,height:24,src:`images/notification/${t}.svg`,className:"hidden shrink-0 self-start lg:inline"}),y.jsxs("div",{className:"gap-small flex flex-col",children:[e.title&&y.jsx("div",{className:"break-all text-base font-medium text-white",children:e.title}),e.description&&y.jsx("div",{className:"break-all text-sm font-medium text-white",children:e.description})]}),e.closeable&&y.jsx("button",{onClick:n,className:"absolute right-1 top-1 rounded-full bg-transparent p-[2px] transition-transform hover:scale-105 hover:bg-white/10 active:scale-95 lg:right-2 lg:top-2",children:y.jsx("img",{alt:"Close",width:16,height:16,src:"images/close-white.svg"})})]})),{domNode:r,root:o}},Jye=4500;let JS=0,Wl=null;const iv=(e,t)=>{Wl||(Wl=Qye());const{domNode:n,root:r}=Xye(e,t,()=>{n.classList.add("animate-notification-leave")}),o=document.createElement("div");o.appendChild(n),Wl.appendChild(o),JS+=1;let a=!1,i=!1;n.addEventListener("mouseenter",()=>{i=!0}),n.addEventListener("mouseleave",()=>{i=!1,a&&setTimeout(()=>{n.classList.add("animate-notification-leave")},400)}),n.addEventListener("animationend",c=>{c.stopPropagation(),n.classList.contains("animate-notification-enter")?n.classList.remove("animate-notification-enter"):(o.style.height=`${n.offsetHeight}px`,r.unmount(),n.remove(),e.onClose&&e.onClose(),o.classList.add("animate-notification-fadeout"))}),o.addEventListener("animationend",()=>{o.remove(),JS-=1,JS===0&&(Wl==null||Wl.remove(),Wl=null)});const s=()=>{n.classList.add("animate-notification-leave")};return e.duration!==0&&setTimeout(()=>{a=!0,i||n.classList.add("animate-notification-leave")},e.duration&&e.duration>1e3?e.duration:Jye),s},ms={error:e=>iv(e,"error"),warn:e=>iv(e,"warn"),info:e=>iv(e,"info"),success:e=>iv(e,"success")};function KR({href:e,children:t}){return y.jsx("a",{target:"_blank",rel:"noopener",className:"text-primary break-all hover:underline",href:e,children:t})}function Gr(e,t,n){var i;const r=(i=t==null?void 0:t.blockExplorers)==null?void 0:i.default.url,o=e==null?void 0:e.transactionHash,a=new URL(`tx/${o}`,r).href;(e==null?void 0:e.status)==="success"&&o?ms.success({title:`${n??"Transaction"} successful`,description:y.jsx(KR,{href:a,children:o})}):(e==null?void 0:e.status)==="reverted"&&r&&ms.error({title:`${n??"Transaction"} failed`,description:y.jsx(KR,{href:a,children:o})})}function an(e){return ms.error({title:"Oops an error occurred",description:e.message})}function fr(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Xu(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const PK=6048e5,Zye=864e5,YR=6e4,QR=525600,XR=43200,JR=1440;let ebe={};function fy(){return ebe}function fg(e,t){var s,c,l,u;const n=fy(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,o=fr(e),a=o.getDay(),i=(a=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function ZR(e){const t=fr(e);return t.setHours(0,0,0,0),t}function fE(e){const t=fr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function tbe(e,t){const n=ZR(e),r=ZR(t),o=+n-fE(n),a=+r-fE(r);return Math.round((o-a)/Zye)}function nbe(e){const t=IK(e),n=Xu(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),dE(n)}function rbe(e,t){const n=fr(e),r=fr(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function obe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function abe(e){if(!obe(e)&&typeof e!="number")return!1;const t=fr(e);return!isNaN(Number(t))}function ibe(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function sbe(e){const t=fr(e),n=Xu(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const cbe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},lbe=(e,t,n)=>{let r;const o=cbe[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ZS(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ube={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},dbe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fbe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hbe={date:ZS({formats:ube,defaultWidth:"full"}),time:ZS({formats:dbe,defaultWidth:"full"}),dateTime:ZS({formats:fbe,defaultWidth:"full"})},mbe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pbe=(e,t,n,r)=>mbe[e];function vp(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const gbe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ybe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bbe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},vbe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},wbe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ebe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},_be=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},xbe={ordinalNumber:_be,era:vp({values:gbe,defaultWidth:"wide"}),quarter:vp({values:ybe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:vp({values:bbe,defaultWidth:"wide"}),day:vp({values:vbe,defaultWidth:"wide"}),dayPeriod:vp({values:wbe,defaultWidth:"wide",formattingValues:Ebe,defaultFormattingWidth:"wide"})};function wp(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Sbe(s,d=>d.test(i)):Cbe(s,d=>d.test(i));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(i.length);return{value:l,rest:u}}}function Cbe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Sbe(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const Abe=/^(\d+)(th|st|nd|rd)?/i,Dbe=/\d+/i,kbe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},jbe={any:[/^b/i,/^(a|c)/i]},Pbe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ibe={any:[/1/i,/2/i,/3/i,/4/i]},Obe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Rbe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Nbe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Bbe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Fbe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Mbe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Lbe={ordinalNumber:Tbe({matchPattern:Abe,parsePattern:Dbe,valueCallback:e=>parseInt(e,10)}),era:wp({matchPatterns:kbe,defaultMatchWidth:"wide",parsePatterns:jbe,defaultParseWidth:"any"}),quarter:wp({matchPatterns:Pbe,defaultMatchWidth:"wide",parsePatterns:Ibe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:wp({matchPatterns:Obe,defaultMatchWidth:"wide",parsePatterns:Rbe,defaultParseWidth:"any"}),day:wp({matchPatterns:Nbe,defaultMatchWidth:"wide",parsePatterns:Bbe,defaultParseWidth:"any"}),dayPeriod:wp({matchPatterns:Fbe,defaultMatchWidth:"any",parsePatterns:Mbe,defaultParseWidth:"any"})},OK={code:"en-US",formatDistance:lbe,formatLong:hbe,formatRelative:pbe,localize:xbe,match:Lbe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ube(e){const t=fr(e);return tbe(t,sbe(t))+1}function $be(e){const t=fr(e),n=+dE(t)-+nbe(t);return Math.round(n/PK)+1}function RK(e,t){var u,d,f,h;const n=fr(e),r=n.getFullYear(),o=fy(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((h=(f=o.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=Xu(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=fg(i,t),c=Xu(e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const l=fg(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function zbe(e,t){var s,c,l,u;const n=fy(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??1,o=RK(e,t),a=Xu(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),fg(a,t)}function Hbe(e,t){const n=fr(e),r=+fg(n,t)-+zbe(n,t);return Math.round(r/PK)+1}function It(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const lc={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return It(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):It(n+1,2)},d(e,t){return It(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return It(e.getHours()%12||12,t.length)},H(e,t){return It(e.getHours(),t.length)},m(e,t){return It(e.getMinutes(),t.length)},s(e,t){return It(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return It(o,t.length)}},Yd={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},eN={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return lc.y(e,t)},Y:function(e,t,n,r){const o=RK(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return It(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):It(a,t.length)},R:function(e,t){const n=IK(e);return It(n,t.length)},u:function(e,t){const n=e.getFullYear();return It(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return It(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return It(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return lc.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return It(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Hbe(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):It(o,t.length)},I:function(e,t,n){const r=$be(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):It(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):lc.d(e,t)},D:function(e,t,n){const r=Ube(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):It(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return It(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return It(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return It(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Yd.noon:r===0?o=Yd.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Yd.evening:r>=12?o=Yd.afternoon:r>=4?o=Yd.morning:o=Yd.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return lc.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):lc.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):It(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):It(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):lc.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):lc.s(e,t)},S:function(e,t){return lc.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return nN(r);case"XXXX":case"XX":return nu(r);case"XXXXX":case"XXX":default:return nu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return nN(r);case"xxxx":case"xx":return nu(r);case"xxxxx":case"xxx":default:return nu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+tN(r,":");case"OOOO":default:return"GMT"+nu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+tN(r,":");case"zzzz":default:return"GMT"+nu(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return It(r,t.length)},T:function(e,t,n){const r=e.getTime();return It(r,t.length)}};function tN(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+It(a,2)}function nN(e,t){return e%60===0?(e>0?"-":"+")+It(Math.abs(e)/60,2):nu(e,t)}function nu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=It(Math.trunc(r/60),2),a=It(r%60,2);return n+o+t+a}const rN=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},NK=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},qbe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return rN(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",rN(r,t)).replace("{{time}}",NK(o,t))},Wbe={p:NK,P:qbe},Gbe=/^D+$/,Vbe=/^Y+$/,Kbe=["D","DD","YY","YYYY"];function Ybe(e){return Gbe.test(e)}function Qbe(e){return Vbe.test(e)}function Xbe(e,t,n){const r=Jbe(e,t,n);if(console.warn(r),Kbe.includes(e))throw new RangeError(r)}function Jbe(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Zbe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eve=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tve=/^'([^]*?)'?$/,nve=/''/g,rve=/[a-zA-Z]/;function ove(e,t,n){var u,d,f,h,m,p,b,v;const r=fy(),o=(n==null?void 0:n.locale)??r.locale??OK,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((p=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((v=(b=r.locale)==null?void 0:b.options)==null?void 0:v.weekStartsOn)??0,s=fr(e);if(!abe(s))throw new RangeError("Invalid time value");let c=t.match(eve).map(g=>{const w=g[0];if(w==="p"||w==="P"){const _=Wbe[w];return _(g,o.formatLong)}return g}).join("").match(Zbe).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const w=g[0];if(w==="'")return{isToken:!1,value:ave(g)};if(eN[w])return{isToken:!0,value:g};if(w.match(rve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:g}});o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const l={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return c.map(g=>{if(!g.isToken)return g.value;const w=g.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Qbe(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ybe(w))&&Xbe(w,t,String(e));const _=eN[w[0]];return _(s,w,o.localize,l)}).join("")}function ave(e){const t=e.match(tve);return t?t[1].replace(nve,"'"):e}function BK(e,t,n){const r=fy(),o=(n==null?void 0:n.locale)??r.locale??OK,a=rbe(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a});let s,c;a>0?(s=fr(t),c=fr(e)):(s=fr(e),c=fr(t));const l=ibe((n==null?void 0:n.roundingMethod)??"round"),u=c.getTime()-s.getTime(),d=u/YR,f=fE(c)-fE(s),h=(u-f)/YR,m=n==null?void 0:n.unit;let p;if(m?p=m:d<1?p="second":d<60?p="minute":d=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function sve(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function cve(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function lve(e,t){const n=hve(t);return"formatToParts"in n?dve(n,e):fve(n,e)}const uve={year:0,month:1,day:2,hour:3,minute:4,second:5};function dve(e,t){try{const n=e.formatToParts(t),r=[];for(let o=0;o=0?a:1e3+a,r-o}function gve(e,t,n){let o=e.getTime()-t;const a=eD(new Date(o),n);if(t===a)return t;o-=a-t;const i=eD(new Date(o),n);return a===i?a:Math.max(a,i)}function iN(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const sN={};function yve(e){if(sN[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),sN[e]=!0,!0}catch{return!1}}const bve=60*1e3,vve={X:function(e,t,n){const r=n3(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return cN(r);case"XXXX":case"XX":return df(r);case"XXXXX":case"XXX":default:return df(r,":")}},x:function(e,t,n){const r=n3(n.timeZone,e);switch(t){case"x":return cN(r);case"xxxx":case"xx":return df(r);case"xxxxx":case"xxx":default:return df(r,":")}},O:function(e,t,n){const r=n3(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+wve(r,":");case"OOOO":default:return"GMT"+df(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return oN("short",e,n);case"zzzz":default:return oN("long",e,n)}}};function n3(e,t){const n=e?a4(e,t,!0)/bve:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function hE(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length0?"-":"+",r=Math.abs(e),o=hE(Math.floor(r/60),2),a=hE(Math.floor(r%60),2);return n+o+t+a}function cN(e,t){return e%60===0?(e>0?"-":"+")+hE(Math.abs(e)/60,2):df(e,t)}function wve(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+hE(a,2)}function lN(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const Eve=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r3=36e5,uN=6e4,_ve=2,Vr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Eve};function MK(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?_ve:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=xve(e),{year:o,restDateString:a}=Cve(r.date,n),i=Sve(a,o);if(i===null||isNaN(i.getTime()))return new Date(NaN);if(i){const s=i.getTime();let c=0,l;if(r.time&&(c=Tve(r.time),c===null||isNaN(c)))return new Date(NaN);if(r.timeZone||t.timeZone){if(l=a4(r.timeZone||t.timeZone,new Date(s+c)),isNaN(l))return new Date(NaN)}else l=lN(new Date(s+c)),l=lN(new Date(s+c+l));return new Date(s+c+l)}else return new Date(NaN)}function xve(e){const t={};let n=Vr.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=Vr.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const o=Vr.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function Cve(e,t){if(e){const n=Vr.YYY[t],r=Vr.YYYYY[t];let o=Vr.YYYY.exec(e)||r.exec(e);if(o){const a=o[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(o=Vr.YY.exec(e)||n.exec(e),o){const a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}}return{year:null}}function Sve(e,t){if(t===null)return null;let n,r,o;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let a=Vr.MM.exec(e);if(a)return n=new Date(0),r=parseInt(a[1],10)-1,fN(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(a=Vr.DDD.exec(e),a){n=new Date(0);const i=parseInt(a[1],10);return kve(t,i)?(n.setUTCFullYear(t,0,i),n):new Date(NaN)}if(a=Vr.MMDD.exec(e),a){n=new Date(0),r=parseInt(a[1],10)-1;const i=parseInt(a[2],10);return fN(t,r,i)?(n.setUTCFullYear(t,r,i),n):new Date(NaN)}if(a=Vr.Www.exec(e),a)return o=parseInt(a[1],10)-1,hN(o)?dN(t,o):new Date(NaN);if(a=Vr.WwwD.exec(e),a){o=parseInt(a[1],10)-1;const i=parseInt(a[2],10)-1;return hN(o,i)?dN(t,o,i):new Date(NaN)}return null}function Tve(e){let t,n,r=Vr.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),o3(t)?t%24*r3:NaN;if(r=Vr.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),o3(t,n)?t%24*r3+n*uN:NaN;if(r=Vr.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const o=parseFloat(r[3].replace(",","."));return o3(t,n,o)?t%24*r3+n*uN+o*1e3:NaN}return null}function dN(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}const Ave=[31,28,31,30,31,30,31,31,30,31,30,31],Dve=[31,29,31,30,31,30,31,31,30,31,30,31];function LK(e){return e%400===0||e%4===0&&e%100!==0}function fN(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=LK(e);if(r&&n>Dve[t]||!r&&n>Ave[t])return!1}return!0}function kve(e,t){if(t<1)return!1;const n=LK(e);return!(n&&t>366||!n&&t>365)}function hN(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function o3(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const jve=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Pve(e,t,n={}){t=String(t);const r=t.match(jve);if(r){const o=MK(n.originalDate||e,n);t=r.reduce(function(a,i){if(i[0]==="'")return a;const s=a.indexOf(i),c=a[s-1]==="'",l=a.replace(i,"'"+vve[i[0]](o,i,n)+"'");return c?l.substring(0,s-1)+l.substring(s+1):l},t)}return ove(e,t,n)}function Ive(e,t,n){e=MK(e,n);const r=a4(t,e,!0),o=new Date(e.getTime()-r),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}function mN(e,t,n,r){return r={...r,timeZone:t,originalDate:e},Pve(Ive(e,t,{timeZone:r.timeZone}),n,r)}function Ove(e){return`${BK(e,Date.now(),{addSuffix:!0})}`}function hy(e,t){return t!=null&&t.compact?mN(e,"Africa/Abidjan","yyyy-MM-dd hh:mm:ss"):`${mN(e,"Africa/Abidjan","MMM-dd-yyyy hh:mm:ss aa")} +UTC`}function Rve(e){const o=Math.floor(e/36e5),a=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3);return`0${o}`.slice(-2)+":"+`0${a}`.slice(-2)+":"+`0${i}`.slice(-2)}const Nve={CRAB:{logo:"crab.png",category:"CRAB",symbol:"CRAB"},ETH:{logo:"eth.png",category:"ETH",symbol:"ETH"},RING:{logo:"ring.png",category:"RING",symbol:"RING"},USDC:{logo:"usdc.png",category:"USDC",symbol:"USDC"},USDT:{logo:"usdt.png",category:"USDT",symbol:"USDT"},PINK:{logo:"pink.png",category:"PINK",symbol:"PINK"},LINK:{logo:"link.png",category:"LINK",symbol:"LINK"},DAI:{logo:"dai.png",category:"DAI",symbol:"DAI"},BTC:{logo:"btc.png",category:"BTC",symbol:"BTC"}},UK=["USDC","USDT","ETH","BTC","DAI","LINK","RING","CRAB","PINK"],$K=new Set,tD=new Map;hm().filter(({hidden:e})=>!e).forEach(e=>{e.tokens.filter(({category:t})=>UK.some(n=>n===t)).forEach(t=>{t.cross.filter(({hidden:n,bridge:r})=>!n&&r.category==="lnbridge").forEach(n=>{const r=st(n.target.network);(r==null?void 0:r.tokens.find(({symbol:a})=>a===n.target.symbol))&&($K.add(t.category),tD.set(t.category,(tD.get(t.category)||[]).filter(({id:a})=>a!==e.id).concat(e)))})})});function Bve(){return UK.filter(e=>$K.has(e)||!0).map(e=>Nve[e])}function a3(e){return tD.get(e)||[]}function ff(e,t){return e.tokens.filter(({category:n,cross:r})=>n===t&&r.filter(({hidden:o,bridge:a})=>!o&&a.category==="lnbridge").length)}function Ep(e){return e.cross.filter(({hidden:t,bridge:n})=>!t&&n.category==="lnbridge").map(({target:t})=>st(t.network)).filter(t=>t)}function yc(e,t){return t.tokens.filter(({symbol:n})=>e.cross.some(r=>!r.hidden&&r.target.symbol===n&&r.target.network===t.network&&r.bridge.category==="lnbridge"))}function In(e){return typeof e=="function"}function Fve(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var i3=Fve(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription: -`+n.map(function(r,o){return o+1+") "+r.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=n}});function nD(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var zx=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,a;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Ku(i),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(p){t={error:p}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}else i.remove(this);var u=this.initialTeardown;if(In(u))try{u()}catch(p){a=p instanceof i3?p.errors:[p]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=Ku(d),h=f.next();!h.done;h=f.next()){var m=h.value;try{pN(m)}catch(p){a=a??[],p instanceof i3?a=vn(vn([],cl(a)),cl(p.errors)):a.push(p)}}}catch(p){r={error:p}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}if(a)throw new i3(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)pN(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&nD(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&nD(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();zx.EMPTY;function zK(e){return e instanceof zx||e&&"closed"in e&&In(e.remove)&&In(e.add)&&In(e.unsubscribe)}function pN(e){In(e)?e():e.unsubscribe()}var HK={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},qK={setTimeout:function(e,t){for(var n=[],r=2;r{try{e.setItem(t,r(s));return}catch(c){return c}};return{persistClient:P1e(s=>{let c=s,l=i(c),u=0;for(;l&&c;)u++,c=a==null?void 0:a({persistedClient:c,error:l,errorCount:u}),c&&(l=i(c))},n),restoreClient:()=>{const s=e.getItem(t);if(s)return o(s)},removeClient:()=>{e.removeItem(t)}}}return{persistClient:vN,restoreClient:()=>{},removeClient:vN}}function P1e(e,t=100){let n=null,r;return function(...o){r=o,n===null&&(n=setTimeout(()=>{e(...r),n=null},t))}}function vN(){}class mm{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const mg=typeof window>"u"||"Deno"in window;function ia(){}function I1e(e,t){return typeof e=="function"?e(t):e}function iD(e){return typeof e=="number"&&e>=0&&e!==1/0}function fY(e,t){return Math.max(e+(t||0)-Date.now(),0)}function cv(e,t,n){return my(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function hY(e,t,n){return my(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function xc(e,t,n){return my(e)?[{...t,queryKey:e},n]:[e||{},t]}function wN(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(my(i)){if(r){if(t.queryHash!==u4(i,t.options))return!1}else if(!mE(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||a&&!a(t))}function EN(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:a}=e;if(my(a)){if(!t.options.mutationKey)return!1;if(n){if(vu(t.options.mutationKey)!==vu(a))return!1}else if(!mE(t.options.mutationKey,a))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function u4(e,t){return((t==null?void 0:t.queryKeyHashFn)||vu)(e)}function vu(e){return JSON.stringify(e,(t,n)=>sD(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function mE(e,t){return mY(e,t)}function mY(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!mY(e[n],t[n])):!1}function pY(e,t){if(e===t)return e;const n=_N(e)&&_N(t);if(n||sD(e)&&sD(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),a=o.length,i=n?[]:{};let s=0;for(let c=0;c"u")return!0;const n=t.prototype;return!(!xN(n)||!n.hasOwnProperty("isPrototypeOf"))}function xN(e){return Object.prototype.toString.call(e)==="[object Object]"}function my(e){return Array.isArray(e)}function gY(e){return new Promise(t=>{setTimeout(t,e)})}function CN(e){gY(0).then(e)}function O1e(){if(typeof AbortController=="function")return new AbortController}function cD(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?pY(e,t):t}class R1e extends mm{constructor(){super(),this.setup=t=>{if(!mg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const gE=new R1e,SN=["online","offline"];class N1e extends mm{constructor(){super(),this.setup=t=>{if(!mg&&window.addEventListener){const n=()=>t();return SN.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{SN.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const yE=new N1e;function B1e(e){return Math.min(1e3*2**e,3e4)}function Wx(e){return(e??"online")==="online"?yE.isOnline():!0}class yY{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function x1(e){return e instanceof yY}function bY(e){let t=!1,n=0,r=!1,o,a,i;const s=new Promise((b,v)=>{a=b,i=v}),c=b=>{r||(h(new yY(b)),e.abort==null||e.abort())},l=()=>{t=!0},u=()=>{t=!1},d=()=>!gE.isFocused()||e.networkMode!=="always"&&!yE.isOnline(),f=b=>{r||(r=!0,e.onSuccess==null||e.onSuccess(b),o==null||o(),a(b))},h=b=>{r||(r=!0,e.onError==null||e.onError(b),o==null||o(),i(b))},m=()=>new Promise(b=>{o=v=>{const g=r||!d();return g&&b(v),g},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),p=()=>{if(r)return;let b;try{b=e.fn()}catch(v){b=Promise.reject(v)}Promise.resolve(b).then(f).catch(v=>{var g,w;if(r)return;const _=(g=e.retry)!=null?g:3,C=(w=e.retryDelay)!=null?w:B1e,x=typeof C=="function"?C(n,v):C,E=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,v);if(t||!E){h(v);return}n++,e.onFail==null||e.onFail(n,v),gY(x).then(()=>{if(d())return m()}).then(()=>{t?h(v):p()})})};return Wx(e.networkMode)?p():m().then(p),{promise:s,cancel:c,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:l,continueRetry:u}}const d4=console;function F1e(){let e=[],t=0,n=u=>{u()},r=u=>{u()};const o=u=>{let d;t++;try{d=u()}finally{t--,t||s()}return d},a=u=>{t?e.push(u):CN(()=>{n(u)})},i=u=>(...d)=>{a(()=>{u(...d)})},s=()=>{const u=e;e=[],u.length&&CN(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:o,batchCalls:i,schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u}}}const gn=F1e();class vY{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),iD(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(mg?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class M1e extends vY{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||d4,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||L1e(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=cD(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(ia).catch(ia):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!fY(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const i=O1e(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};c(s);const l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),u={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};if(c(u),(r=this.options.behavior)==null||r.onFetch(u),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=u.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=u.fetchOptions)==null?void 0:d.meta})}const f=h=>{if(x1(h)&&h.silent||this.dispatch({type:"error",error:h}),!x1(h)){var m,p,b,v;(m=(p=this.cache.config).onError)==null||m.call(p,h,this),(b=(v=this.cache.config).onSettled)==null||b.call(v,this.state.data,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=bY({fn:u.fetchFn,abort:i==null?void 0:i.abort.bind(i),onSuccess:h=>{var m,p,b,v;if(typeof h>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(h),(m=(p=this.cache.config).onSuccess)==null||m.call(p,h,this),(b=(v=this.cache.config).onSettled)==null||b.call(v,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(h,m)=>{this.dispatch({type:"failed",failureCount:h,error:m})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,a;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:Wx(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return x1(i)&&i.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),gn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function L1e(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class U1e extends mm{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const a=n.queryKey,i=(o=n.queryHash)!=null?o:u4(a,n);let s=this.get(i);return s||(s=new M1e({cache:this,logger:t.getLogger(),queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){gn.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=xc(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>wN(r,o))}findAll(t,n){const[r]=xc(t,n);return Object.keys(r).length>0?this.queries.filter(o=>wN(r,o)):this.queries}notify(t){gn.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){gn.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){gn.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class $1e extends vY{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||d4,this.observers=[],this.state=t.state||wY(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var E;return this.retryer=bY({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(T,k)=>{this.dispatch({type:"failed",failureCount:T,error:k})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(E=this.options.retry)!=null?E:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,a,i,s,c,l,u;if(!n){var d,f,h,m;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(f=this.mutationCache.config).onMutate)==null?void 0:d.call(f,this.state.variables,this));const T=await((h=(m=this.options).onMutate)==null?void 0:h.call(m,this.state.variables));T!==this.state.context&&this.dispatch({type:"loading",context:T,variables:this.state.variables})}const E=await t();return await((r=(o=this.mutationCache.config).onSuccess)==null?void 0:r.call(o,E,this.state.variables,this.state.context,this)),await((a=(i=this.options).onSuccess)==null?void 0:a.call(i,E,this.state.variables,this.state.context)),await((s=(c=this.mutationCache.config).onSettled)==null?void 0:s.call(c,E,null,this.state.variables,this.state.context,this)),await((l=(u=this.options).onSettled)==null?void 0:l.call(u,E,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:E}),E}catch(E){try{var p,b,v,g,w,_,C,x;throw await((p=(b=this.mutationCache.config).onError)==null?void 0:p.call(b,E,this.state.variables,this.state.context,this)),await((v=(g=this.options).onError)==null?void 0:v.call(g,E,this.state.variables,this.state.context)),await((w=(_=this.mutationCache.config).onSettled)==null?void 0:w.call(_,void 0,E,this.state.variables,this.state.context,this)),await((C=(x=this.options).onSettled)==null?void 0:C.call(x,void 0,E,this.state.variables,this.state.context)),E}finally{this.dispatch({type:"error",error:E})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Wx(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),gn.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function wY(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class z1e extends mm{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new $1e({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){gn.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>EN(t,n))}findAll(t){return this.mutations.filter(n=>EN(t,n))}notify(t){gn.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return gn.batch(()=>n.reduce((r,o)=>r.then(()=>o.continue().catch(ia)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function H1e(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,a,i;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,c=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,l=c==null?void 0:c.pageParam,u=(c==null?void 0:c.direction)==="forward",d=(c==null?void 0:c.direction)==="backward",f=((a=e.state.data)==null?void 0:a.pages)||[],h=((i=e.state.data)==null?void 0:i.pageParams)||[];let m=h,p=!1;const b=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>{var E;if((E=e.signal)!=null&&E.aborted)p=!0;else{var T;(T=e.signal)==null||T.addEventListener("abort",()=>{p=!0})}return e.signal}})},v=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),g=(x,E,T,k)=>(m=k?[E,...m]:[...m,E],k?[T,...x]:[...x,T]),w=(x,E,T,k)=>{if(p)return Promise.reject("Cancelled");if(typeof T>"u"&&!E&&x.length)return Promise.resolve(x);const D={queryKey:e.queryKey,pageParam:T,meta:e.options.meta};b(D);const R=v(D);return Promise.resolve(R).then(B=>g(x,T,B,k))};let _;if(!f.length)_=w([]);else if(u){const x=typeof l<"u",E=x?l:TN(e.options,f);_=w(f,x,E)}else if(d){const x=typeof l<"u",E=x?l:q1e(e.options,f);_=w(f,x,E,!0)}else{m=[];const x=typeof e.options.getNextPageParam>"u";_=(s&&f[0]?s(f[0],0,f):!0)?w([],x,h[0]):Promise.resolve(g([],h[0],f[0]));for(let T=1;T{if(s&&f[T]?s(f[T],T,f):!0){const R=x?h[T]:TN(e.options,k);return w(k,x,R)}return Promise.resolve(g(k,h[T],f[T]))})}return _.then(x=>({pages:x,pageParams:m}))}}}}function TN(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function q1e(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class W1e{constructor(t={}){this.queryCache=t.queryCache||new U1e,this.mutationCache=t.mutationCache||new z1e,this.logger=t.logger||d4,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=gE.subscribe(()=>{gE.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=yE.subscribe(()=>{yE.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=xc(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const o=cv(t,n,r),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),a=o==null?void 0:o.state.data,i=I1e(n,a);if(typeof i>"u")return;const s=cv(t),c=this.defaultQueryOptions(s);return this.queryCache.build(this,c).setData(i,{...r,manual:!0})}setQueriesData(t,n,r){return gn.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=xc(t,n),o=this.queryCache;gn.batch(()=>{o.findAll(r).forEach(a=>{o.remove(a)})})}resetQueries(t,n,r){const[o,a]=xc(t,n,r),i=this.queryCache,s={type:"active",...o};return gn.batch(()=>(i.findAll(o).forEach(c=>{c.reset()}),this.refetchQueries(s,a)))}cancelQueries(t,n,r){const[o,a={}]=xc(t,n,r);typeof a.revert>"u"&&(a.revert=!0);const i=gn.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(a)));return Promise.all(i).then(ia).catch(ia)}invalidateQueries(t,n,r){const[o,a]=xc(t,n,r);return gn.batch(()=>{var i,s;if(this.queryCache.findAll(o).forEach(l=>{l.invalidate()}),o.refetchType==="none")return Promise.resolve();const c={...o,type:(i=(s=o.refetchType)!=null?s:o.type)!=null?i:"active"};return this.refetchQueries(c,a)})}refetchQueries(t,n,r){const[o,a]=xc(t,n,r),i=gn.batch(()=>this.queryCache.findAll(o).filter(c=>!c.isDisabled()).map(c=>{var l;return c.fetch(void 0,{...a,cancelRefetch:(l=a==null?void 0:a.cancelRefetch)!=null?l:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(i).then(ia);return a!=null&&a.throwOnError||(s=s.catch(ia)),s}fetchQuery(t,n,r){const o=cv(t,n,r),a=this.defaultQueryOptions(o);typeof a.retry>"u"&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(ia).catch(ia)}fetchInfiniteQuery(t,n,r){const o=cv(t,n,r);return o.behavior=H1e(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(ia).catch(ia)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>vu(t)===vu(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>mE(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>vu(t)===vu(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>mE(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=u4(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class G1e extends mm{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),AN(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lD(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lD(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),pE(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const a=this.hasListeners();a&&DN(this.currentQuery,o,this.options,r)&&this.executeFetch(),this.updateResult(n),a&&(this.currentQuery!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const i=this.computeRefetchInterval();a&&(this.currentQuery!==o||this.options.enabled!==r.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return K1e(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ia)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),mg||this.currentResult.isStale||!iD(this.options.staleTime))return;const n=fY(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(mg||this.options.enabled===!1||!iD(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||gE.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,o=this.options,a=this.currentResult,i=this.currentResultState,s=this.currentResultOptions,c=t!==r,l=c?t.state:this.currentQueryInitialState,u=c?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:f,error:h,errorUpdatedAt:m,fetchStatus:p,status:b}=d,v=!1,g=!1,w;if(n._optimisticResults){const T=this.hasListeners(),k=!T&&AN(t,n),D=T&&DN(t,r,n,o);(k||D)&&(p=Wx(t.options.networkMode)?"fetching":"paused",f||(b="loading")),n._optimisticResults==="isRestoring"&&(p="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&u!=null&&u.isSuccess&&b!=="error")w=u.data,f=u.dataUpdatedAt,b=u.status,v=!0;else if(n.select&&typeof d.data<"u")if(a&&d.data===(i==null?void 0:i.data)&&n.select===this.selectFn)w=this.selectResult;else try{this.selectFn=n.select,w=n.select(d.data),w=cD(a==null?void 0:a.data,w,n),this.selectResult=w,this.selectError=null}catch(T){this.selectError=T}else w=d.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&b==="loading"){let T;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))T=a.data;else if(T=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof T<"u")try{T=n.select(T),this.selectError=null}catch(k){this.selectError=k}typeof T<"u"&&(b="success",w=cD(a==null?void 0:a.data,T,n),g=!0)}this.selectError&&(h=this.selectError,w=this.selectResult,m=Date.now(),b="error");const _=p==="fetching",C=b==="loading",x=b==="error";return{status:b,fetchStatus:p,isLoading:C,isSuccess:b==="success",isError:x,isInitialLoading:C&&_,data:w,dataUpdatedAt:f,error:h,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:_,isRefetching:_&&!C,isLoadingError:x&&d.dataUpdatedAt===0,isPaused:p==="paused",isPlaceholderData:g,isPreviousData:v,isRefetchError:x&&d.dataUpdatedAt!==0,isStale:f4(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,pE(r,n))return;this.currentResult=r;const o={cache:!0},a=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!this.trackedProps.size)return!0;const c=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&c.add("error"),Object.keys(this.currentResult).some(l=>{const u=l;return this.currentResult[u]!==n[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&a()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!x1(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){gn.batch(()=>{if(t.onSuccess){var n,r,o,a;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(o=(a=this.options).onSettled)==null||o.call(a,this.currentResult.data,null)}else if(t.onError){var i,s,c,l;(i=(s=this.options).onError)==null||i.call(s,this.currentResult.error),(c=(l=this.options).onSettled)==null||c.call(l,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function V1e(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function AN(e,t){return V1e(e,t)||e.state.dataUpdatedAt>0&&lD(e,t,t.refetchOnMount)}function lD(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&f4(e,t)}return!1}function DN(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&f4(e,n)}function f4(e,t){return e.isStaleByTime(t.staleTime)}function K1e(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!pE(e.getCurrentResult(),t)}let Y1e=class extends mm{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),pE(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:wY(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){gn.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,o,a;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(o=(a=this.mutateOptions).onSettled)==null||o.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var i,s,c,l;(i=(s=this.mutateOptions).onError)==null||i.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(c=(l=this.mutateOptions).onSettled)==null||c.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)})})}};function Q1e(e){return{mutationKey:e.options.mutationKey,state:e.state}}function X1e(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}function J1e(e){return e.state.isPaused}function Z1e(e){return e.state.status==="success"}function ewe(e,t={}){const n=[],r=[];if(t.dehydrateMutations!==!1){const o=t.shouldDehydrateMutation||J1e;e.getMutationCache().getAll().forEach(a=>{o(a)&&n.push(Q1e(a))})}if(t.dehydrateQueries!==!1){const o=t.shouldDehydrateQuery||Z1e;e.getQueryCache().getAll().forEach(a=>{o(a)&&r.push(X1e(a))})}return{mutations:n,queries:r}}function twe(e,t,n){if(typeof t!="object"||t===null)return;const r=e.getMutationCache(),o=e.getQueryCache(),a=t.mutations||[],i=t.queries||[];a.forEach(s=>{var c;r.build(e,{...n==null||(c=n.defaultOptions)==null?void 0:c.mutations,mutationKey:s.mutationKey},s.state)}),i.forEach(({queryKey:s,state:c,queryHash:l})=>{var u;const d=o.get(l);if(d){if(d.state.dataUpdatedAt"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?lwe:cwe;_Y.useSyncExternalStore=xh.useSyncExternalStore!==void 0?xh.useSyncExternalStore:uwe;EY.exports=_Y;var h4=EY.exports;const dwe=h4.useSyncExternalStore,kN=S.createContext(void 0),xY=S.createContext(!1);function CY(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=kN),window.ReactQueryClientContext):kN)}const m4=({context:e}={})=>{const t=S.useContext(CY(e,S.useContext(xY)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},fwe=({client:e,children:t,context:n,contextSharing:r=!1})=>{S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=CY(n,r);return S.createElement(xY.Provider,{value:!n&&r},S.createElement(o.Provider,{value:e},t))},SY=S.createContext(!1),hwe=()=>S.useContext(SY);SY.Provider;function mwe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const pwe=S.createContext(mwe()),gwe=()=>S.useContext(pwe);function ywe(e,t){return typeof e=="function"?e(...t):!!e}function bwe(e,t,n){const r=hY(e,t,n),o=m4({context:r.context}),[a]=S.useState(()=>new Y1e(o,r));S.useEffect(()=>{a.setOptions(r)},[a,r]);const i=dwe(S.useCallback(c=>a.subscribe(gn.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s=S.useCallback((c,l)=>{a.mutate(c,l).catch(vwe)},[a]);if(i.error&&ywe(a.options.useErrorBoundary,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}function vwe(){}const wwe=["added","removed","updated"];function jN(e){return wwe.includes(e)}async function Ewe({queryClient:e,persister:t,maxAge:n=1e3*60*60*24,buster:r="",hydrateOptions:o}){try{const a=await t.restoreClient();if(a)if(a.timestamp){const i=Date.now()-a.timestamp>n,s=a.buster!==r;i||s?t.removeClient():twe(e,a.clientState,o)}else t.removeClient()}catch{t.removeClient()}}async function PN({queryClient:e,persister:t,buster:n="",dehydrateOptions:r}){const o={buster:n,timestamp:Date.now(),clientState:ewe(e,r)};await t.persistClient(o)}function _we(e){const t=e.queryClient.getQueryCache().subscribe(r=>{jN(r.type)&&PN(e)}),n=e.queryClient.getMutationCache().subscribe(r=>{jN(r.type)&&PN(e)});return()=>{t(),n()}}function xwe(e){let t=!1,n;const r=()=>{t=!0,n==null||n()},o=Ewe(e).then(()=>{t||(n=_we(e))});return[r,o]}var TY=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured for connector "${t}".`),this.name="ChainNotConfiguredForConnectorError"}},ua=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}};function Ju(e){return typeof e=="string"?Number.parseInt(e,e.trim().substring(0,2)==="0x"?16:10):typeof e=="bigint"?Number(e):e}var AY={exports:{}};(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 a(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),m=n?n+l:l;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],h]:c._events[m].push(h):(c._events[m]=h,c._eventsCount++),c}function i(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function s(){this._events=new r,this._eventsCount=0}s.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},s.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,m=new Array(h);f{if(!t.has(e))throw TypeError("Cannot "+n)},ft=(e,t,n)=>(p4(e,t,"read from private field"),n?n.call(e):t.get(e)),Fn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},As=(e,t,n,r)=>(p4(e,t,"write to private field"),t.set(e,n),n),Bn=(e,t,n)=>(p4(e,t,"access private method"),n),py=class extends Swe{constructor({chains:e=[Ux,Mye],options:t}){super(),this.chains=e,this.options=t}getBlockExplorerUrls(e){const{default:t,...n}=e.blockExplorers??{};if(t)return[t.url,...Object.values(n).map(r=>r.url)]}isChainUnsupported(e){return!this.chains.some(t=>t.id===e)}setStorage(e){this.storage=e}};function Twe(e){var n;if(!e)return"Injected";const t=r=>{if(r.isApexWallet)return"Apex Wallet";if(r.isAvalanche)return"Core Wallet";if(r.isBackpack)return"Backpack";if(r.isBifrost)return"Bifrost Wallet";if(r.isBitKeep)return"BitKeep";if(r.isBitski)return"Bitski";if(r.isBlockWallet)return"BlockWallet";if(r.isBraveWallet)return"Brave Wallet";if(r.isCoin98)return"Coin98 Wallet";if(r.isCoinbaseWallet)return"Coinbase Wallet";if(r.isDawn)return"Dawn Wallet";if(r.isDefiant)return"Defiant";if(r.isDesig)return"Desig Wallet";if(r.isEnkrypt)return"Enkrypt";if(r.isExodus)return"Exodus";if(r.isFordefi)return"Fordefi";if(r.isFrame)return"Frame";if(r.isFrontier)return"Frontier Wallet";if(r.isGamestop)return"GameStop Wallet";if(r.isHaqqWallet)return"HAQQ Wallet";if(r.isHyperPay)return"HyperPay Wallet";if(r.isImToken)return"ImToken";if(r.isHaloWallet)return"Halo Wallet";if(r.isKuCoinWallet)return"KuCoin Wallet";if(r.isMathWallet)return"MathWallet";if(r.isNovaWallet)return"Nova Wallet";if(r.isOkxWallet||r.isOKExWallet)return"OKX Wallet";if(r.isOktoWallet)return"Okto Wallet";if(r.isOneInchIOSWallet||r.isOneInchAndroidWallet)return"1inch Wallet";if(r.isOneKey)return"OneKey Wallet";if(r.isOpera)return"Opera";if(r.isPhantom)return"Phantom";if(r.isPortal)return"Ripio Portal";if(r.isRabby)return"Rabby Wallet";if(r.isRainbow)return"Rainbow";if(r.isSafePal)return"SafePal Wallet";if(r.isStatus)return"Status";if(r.isSubWallet)return"SubWallet";if(r.isTalisman)return"Talisman";if(r.isTally)return"Taho";if(r.isTokenPocket)return"TokenPocket";if(r.isTokenary)return"Tokenary";if(r.isTrust||r.isTrustWallet)return"Trust Wallet";if(r.isTTWallet)return"TTWallet";if(r.isXDEFI)return"XDEFI Wallet";if(r.isZeal)return"Zeal";if(r.isZerion)return"Zerion";if(r.isMetaMask)return"MetaMask"};if((n=e.providers)!=null&&n.length){const r=new Set;let o=1;for(const i of e.providers){let s=t(i);s||(s=`Unknown Wallet #${o}`,o+=1),r.add(s)}const a=[...r];return a.length?a:a[0]??"Injected"}return t(e)??"Injected"}var C1,Ds=class extends py{constructor({chains:e,options:t}={}){const n={shimDisconnect:!0,getProvider(){if(typeof window>"u")return;const o=window.ethereum;return o!=null&&o.providers&&o.providers.length>0?o.providers[0]:o},...t};super({chains:e,options:n}),this.id="injected",Fn(this,C1,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=o=>{o.length===0?this.emit("disconnect"):this.emit("change",{account:Rr(o[0])})},this.onChainChanged=o=>{const a=Ju(o),i=this.isChainUnsupported(a);this.emit("change",{chain:{id:a,unsupported:i}})},this.onDisconnect=async o=>{var a;o.code===1013&&await this.getProvider()&&await this.getAccount()||(this.emit("disconnect"),this.options.shimDisconnect&&((a=this.storage)==null||a.removeItem(this.shimDisconnectKey)))};const r=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(r){const o=Twe(r);n.name?this.name=n.name(o):typeof o=="string"?this.name=o:this.name=o[0]}else this.name="Injected";this.ready=!!r}async connect({chainId:e}={}){var t;try{const n=await this.getProvider();if(!n)throw new ua;n.on&&(n.on("accountsChanged",this.onAccountsChanged),n.on("chainChanged",this.onChainChanged),n.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const r=await n.request({method:"eth_requestAccounts"}),o=Rr(r[0]);let a=await this.getChainId(),i=this.isChainUnsupported(a);return e&&a!==e&&(a=(await this.switchChain(e)).id,i=this.isChainUnsupported(a)),this.options.shimDisconnect&&((t=this.storage)==null||t.setItem(this.shimDisconnectKey,!0)),{account:o,chain:{id:a,unsupported:i}}}catch(n){throw this.isUserRejectedRequestError(n)?new dr(n):n.code===-32002?new gh(n):n}}async disconnect(){var t;const e=await this.getProvider();e!=null&&e.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((t=this.storage)==null||t.removeItem(this.shimDisconnectKey)))}async getAccount(){const e=await this.getProvider();if(!e)throw new ua;const t=await e.request({method:"eth_accounts"});return Rr(t[0])}async getChainId(){const e=await this.getProvider();if(!e)throw new ua;return e.request({method:"eth_chainId"}).then(Ju)}async getProvider(){const e=this.options.getProvider();return e&&As(this,C1,e),ft(this,C1)}async getWalletClient({chainId:e}={}){const[t,n]=await Promise.all([this.getProvider(),this.getAccount()]),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){var e;try{if(this.options.shimDisconnect&&!((e=this.storage)!=null&&e.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new ua;return!!await this.getAccount()}catch{return!1}}async switchChain(e){var r,o,a;const t=await this.getProvider();if(!t)throw new ua;const n=Xe(e);try{return await Promise.all([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(i=>this.on("change",({chain:s})=>{(s==null?void 0:s.id)===e&&i()}))]),this.chains.find(i=>i.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(i){const s=this.chains.find(c=>c.id===e);if(!s)throw new TY({chainId:e,connectorId:this.id});if(i.code===4902||((o=(r=i==null?void 0:i.data)==null?void 0:r.originalError)==null?void 0:o.code)===4902)try{if(await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:[((a=s.rpcUrls.public)==null?void 0:a.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(s)}]}),await this.getChainId()!==e)throw new dr(new Error("User rejected switch after adding network."));return s}catch(c){throw new dr(c)}throw this.isUserRejectedRequestError(i)?new dr(i):new ol(i)}}async watchAsset({address:e,decimals:t=18,image:n,symbol:r}){const o=await this.getProvider();if(!o)throw new ua;return o.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:n,symbol:r}}})}isUserRejectedRequestError(e){return e.code===4001}};C1=new WeakMap;var g4=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},l3=(e,t,n)=>(g4(e,t,"read from private field"),t.get(e)),u3=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},lv=(e,t,n,r)=>(g4(e,t,"write to private field"),t.set(e,n),n),Awe=(e,t,n)=>(g4(e,t,"access private method"),n),Dwe={VITE_WALLET_CONNECT_ID:"2719448e2ce94fdd269a3c8587123bcc",VITE_GRAPHQL_ENDPOINT:"https://apollo.helixbridge.app/graphql",VITE_NETWORK_TYPE:"mainnet",BASE_URL:"./",MODE:"mainnet",DEV:!1,PROD:!0,SSR:!1};const kwe=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(i,s,c)=>{let l=i;if(s){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 m=d;s(d=h,m)}},c!=null&&c.fireImmediately&&s(d,d)}return o(l)},e(t,n,r)},jwe=kwe;function Pwe(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var a;const i=c=>c===null?null:JSON.parse(c,void 0),s=(a=n.getItem(o))!=null?a:null;return s instanceof Promise?s.then(i):i(s)},setItem:(o,a)=>n.setItem(o,JSON.stringify(a,void 0)),removeItem:o=>n.removeItem(o)}}const pg=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return pg(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return pg(r)(n)}}}},Iwe=(e,t)=>(n,r,o)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:b=>b,version:0,merge:(b,v)=>({...v,...b}),...t},i=!1;const s=new Set,c=new Set;let l;try{l=a.getStorage()}catch{}if(!l)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...b)},r,o);const u=pg(a.serialize),d=()=>{const b=a.partialize({...r()});let v;const g=u({state:b,version:a.version}).then(w=>l.setItem(a.name,w)).catch(w=>{v=w});if(v)throw v;return g},f=o.setState;o.setState=(b,v)=>{f(b,v),d()};const h=e((...b)=>{n(...b),d()},r,o);let m;const p=()=>{var b;if(!l)return;i=!1,s.forEach(g=>g(r()));const v=((b=a.onRehydrateStorage)==null?void 0:b.call(a,r()))||void 0;return pg(l.getItem.bind(l))(a.name).then(g=>{if(g)return a.deserialize(g)}).then(g=>{if(g)if(typeof g.version=="number"&&g.version!==a.version){if(a.migrate)return a.migrate(g.state,g.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return g.state}).then(g=>{var w;return m=a.merge(g,(w=r())!=null?w:h),n(m,!0),d()}).then(()=>{v==null||v(m,void 0),i=!0,c.forEach(g=>g(m))}).catch(g=>{v==null||v(void 0,g)})};return o.persist={setOptions:b=>{a={...a,...b},b.getStorage&&(l=b.getStorage())},clearStorage:()=>{l==null||l.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>p(),hasHydrated:()=>i,onHydrate:b=>(s.add(b),()=>{s.delete(b)}),onFinishHydration:b=>(c.add(b),()=>{c.delete(b)})},p(),m||h},Owe=(e,t)=>(n,r,o)=>{let a={storage:Pwe(()=>localStorage),partialize:p=>p,version:0,merge:(p,b)=>({...b,...p}),...t},i=!1;const s=new Set,c=new Set;let l=a.storage;if(!l)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...p)},r,o);const u=()=>{const p=a.partialize({...r()});return l.setItem(a.name,{state:p,version:a.version})},d=o.setState;o.setState=(p,b)=>{d(p,b),u()};const f=e((...p)=>{n(...p),u()},r,o);o.getInitialState=()=>f;let h;const m=()=>{var p,b;if(!l)return;i=!1,s.forEach(g=>{var w;return g((w=r())!=null?w:f)});const v=((b=a.onRehydrateStorage)==null?void 0:b.call(a,(p=r())!=null?p:f))||void 0;return pg(l.getItem.bind(l))(a.name).then(g=>{if(g)if(typeof g.version=="number"&&g.version!==a.version){if(a.migrate)return a.migrate(g.state,g.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return g.state}).then(g=>{var w;return h=a.merge(g,(w=r())!=null?w:f),n(h,!0),u()}).then(()=>{v==null||v(h,void 0),h=r(),i=!0,c.forEach(g=>g(h))}).catch(g=>{v==null||v(void 0,g)})};return o.persist={setOptions:p=>{a={...a,...p},p.storage&&(l=p.storage)},clearStorage:()=>{l==null||l.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>i,onHydrate:p=>(s.add(p),()=>{s.delete(p)}),onFinishHydration:p=>(c.add(p),()=>{c.delete(p)})},a.skipHydration||m(),h||f},Rwe=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Dwe?"mainnet":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Iwe(e,t)):Owe(e,t),Nwe=Rwe;var Bwe={VITE_WALLET_CONNECT_ID:"2719448e2ce94fdd269a3c8587123bcc",VITE_GRAPHQL_ENDPOINT:"https://apollo.helixbridge.app/graphql",VITE_NETWORK_TYPE:"mainnet",BASE_URL:"./",MODE:"mainnet",DEV:!1,PROD:!0,SSR:!1};const IN=e=>{let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const h=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(m=>m(t,h))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(Bwe?"mainnet":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},l=t=e(r,o,c);return c},Fwe=e=>e?IN(e):IN;function y4(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function Mwe(e,t,{batch:n={multicall:{wait:32}},pollingInterval:r=4e3,rank:o,retryCount:a,retryDelay:i,stallTimeout:s}={}){if(!e.length)throw new Error("must have at least one chain");let c=[];const l={},u={};for(const d of e){let f=!1;for(const h of t){const m=h(d);m&&(f=!0,c.some(({id:p})=>p===d.id)||(c=[...c,m.chain]),l[d.id]=[...l[d.id]||[],...m.rpcUrls.http],m.rpcUrls.webSocket&&(u[d.id]=[...u[d.id]||[],...m.rpcUrls.webSocket]))}if(!f)throw new Error([`Could not find valid provider configuration for chain "${d.name}". -`,"You may need to add `jsonRpcProvider` to `configureChains` with the chain's RPC URLs.","Read more: https://wagmi.sh/core/providers/jsonRpc"].join(` -`))}return{chains:c,publicClient:({chainId:d})=>{const f=c.find(p=>p.id===d)??e[0],h=l[f.id];if(!h||!h[0])throw new Error(`No providers configured for chain "${f.id}"`);const m=Vu({batch:n,chain:f,transport:kO(h.map(p=>yh(p,{timeout:s})),{rank:o,retryCount:a,retryDelay:i}),pollingInterval:r});return Object.assign(m,{chains:c})},webSocketPublicClient:({chainId:d})=>{const f=c.find(p=>p.id===d)??e[0],h=u[f.id];if(!h||!h[0])return;const m=Vu({batch:n,chain:f,transport:kO(h.map(p=>Ufe(p,{timeout:s})),{rank:o,retryCount:a,retryDelay:i}),pollingInterval:r});return Object.assign(m,{chains:c})}}}var Lwe=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured${t?` for connector "${t}"`:""}.`),this.name="ChainNotConfigured"}},Uwe=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},$we=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},zwe=class extends Error{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}};function uD(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(!uD(e[r],t[r]))return!1;return!0}if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(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.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(a&&!uD(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}var dD=(e,{find:t,replace:n})=>e&&t(e)?n(e):typeof e!="object"?e:Array.isArray(e)?e.map(r=>dD(r,{find:t,replace:n})):e instanceof Object?Object.entries(e).reduce((r,[o,a])=>({...r,[o]:dD(a,{find:t,replace:n})}),{}):e;function Hwe(e){const t=JSON.parse(e);return dD(t,{find:r=>typeof r=="string"&&r.startsWith("#bigint."),replace:r=>BigInt(r.replace("#bigint.",""))})}function ON(e){return typeof e=="number"?e:e==="wei"?0:Math.abs(sue[e])}function RN(e,t){return e.slice(0,t).join(".")||"."}function NN(e,t){const{length:n}=e;for(let r=0;r{const i=typeof a=="bigint"?`#bigint.${a.toString()}`:a;return(t==null?void 0:t(o,i))||i},r),n??void 0)}var DY={getItem:e=>"",setItem:(e,t)=>null,removeItem:e=>null};function kY({deserialize:e=Hwe,key:t="wagmi",serialize:n=Wwe,storage:r}){return{...r,getItem:(o,a=null)=>{const i=r.getItem(`${t}.${o}`);try{return i?e(i):a}catch(s){return console.warn(s),a}},setItem:(o,a)=>{if(a===null)r.removeItem(`${t}.${o}`);else try{r.setItem(`${t}.${o}`,n(a))}catch(i){console.error(i)}},removeItem:o=>r.removeItem(`${t}.${o}`)}}var BN="store",hf,e0,fD,jY,Gwe=class{constructor({autoConnect:e=!1,connectors:t=[new Ds],publicClient:n,storage:r=kY({storage:typeof window<"u"?window.localStorage:DY}),logger:o={warn:console.warn},webSocketPublicClient:a}){var l,u;u3(this,fD),this.publicClients=new Map,this.webSocketPublicClients=new Map,u3(this,hf,void 0),u3(this,e0,void 0),this.args={autoConnect:e,connectors:t,logger:o,publicClient:n,storage:r,webSocketPublicClient:a};let i="disconnected",s;if(e)try{const d=r.getItem(BN),f=(l=d==null?void 0:d.state)==null?void 0:l.data;i=f!=null&&f.account?"reconnecting":"connecting",s=(u=f==null?void 0:f.chain)==null?void 0:u.id}catch{}const c=typeof t=="function"?t():t;c.forEach(d=>d.setStorage(r)),this.store=Fwe(jwe(Nwe(()=>({connectors:c,publicClient:this.getPublicClient({chainId:s}),status:i,webSocketPublicClient:this.getWebSocketPublicClient({chainId:s})}),{name:BN,storage:r,partialize:d=>{var f,h;return{...e&&{data:{account:(f=d==null?void 0:d.data)==null?void 0:f.account,chain:(h=d==null?void 0:d.data)==null?void 0:h.chain}},chains:d==null?void 0:d.chains}},version:2}))),this.storage=r,lv(this,e0,r==null?void 0:r.getItem("wallet")),Awe(this,fD,jY).call(this),e&&typeof window<"u"&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){var e,t;return(t=(e=this.data)==null?void 0:e.chain)==null?void 0:t.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(e){const t=typeof e=="function"?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState(e=>({...e,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){var e,t;this.connector&&await((t=(e=this.connector).disconnect)==null?void 0:t.call(e)),lv(this,hf,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(l3(this,hf))return;lv(this,hf,!0),this.setState(n=>{var r;return{...n,status:(r=n.data)!=null&&r.account?"reconnecting":"connecting"}});const e=l3(this,e0)?[...this.connectors].sort(n=>n.id===l3(this,e0)?-1:1):this.connectors;let t=!1;for(const n of e){if(!n.ready||!n.isAuthorized||!await n.isAuthorized())continue;const o=await n.connect();this.setState(a=>({...a,connector:n,chains:n==null?void 0:n.chains,data:o,status:"connected"})),t=!0;break}return t||this.setState(n=>({...n,data:void 0,status:"disconnected"})),lv(this,hf,!1),this.data}setConnectors(e){this.args={...this.args,connectors:e};const t=typeof e=="function"?e():e;t.forEach(n=>n.setStorage(this.args.storage)),this.setState(n=>({...n,connectors:t}))}getPublicClient({chainId:e}={}){let t=this.publicClients.get(-1);if(t&&(t==null?void 0:t.chain.id)===e||(t=this.publicClients.get(e??-1),t))return t;const{publicClient:n}=this.args;return t=typeof n=="function"?n({chainId:e}):n,this.publicClients.set(e??-1,t),t}setPublicClient(e){var n,r;const t=(r=(n=this.data)==null?void 0:n.chain)==null?void 0:r.id;this.args={...this.args,publicClient:e},this.publicClients.clear(),this.setState(o=>({...o,publicClient:this.getPublicClient({chainId:t})}))}getWebSocketPublicClient({chainId:e}={}){let t=this.webSocketPublicClients.get(-1);if(t&&(t==null?void 0:t.chain.id)===e||(t=this.webSocketPublicClients.get(e??-1),t))return t;const{webSocketPublicClient:n}=this.args;return t=typeof n=="function"?n({chainId:e}):n,t&&this.webSocketPublicClients.set(e??-1,t),t}setWebSocketPublicClient(e){var n,r;const t=(r=(n=this.data)==null?void 0:n.chain)==null?void 0:r.id;this.args={...this.args,webSocketPublicClient:e},this.webSocketPublicClients.clear(),this.setState(o=>({...o,webSocketPublicClient:this.getWebSocketPublicClient({chainId:t})}))}setLastUsedConnector(e=null){var t;(t=this.storage)==null||t.setItem("wallet",e)}};hf=new WeakMap;e0=new WeakMap;fD=new WeakSet;jY=function(){const e=s=>{this.setState(c=>({...c,data:{...c.data,...s}}))},t=()=>{this.clearState()},n=s=>{this.setState(c=>({...c,error:s}))};this.store.subscribe(({connector:s})=>s,(s,c)=>{var l,u,d,f,h,m;(l=c==null?void 0:c.off)==null||l.call(c,"change",e),(u=c==null?void 0:c.off)==null||u.call(c,"disconnect",t),(d=c==null?void 0:c.off)==null||d.call(c,"error",n),s&&((f=s.on)==null||f.call(s,"change",e),(h=s.on)==null||h.call(s,"disconnect",t),(m=s.on)==null||m.call(s,"error",n))});const{publicClient:r,webSocketPublicClient:o}=this.args;(typeof r=="function"||typeof o=="function")&&this.store.subscribe(({data:s})=>{var c;return(c=s==null?void 0:s.chain)==null?void 0:c.id},s=>{this.setState(c=>({...c,publicClient:this.getPublicClient({chainId:s}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:s})}))})};var hD;function Vwe(e){const t=new Gwe(e);return hD=t,t}function ro(){if(!hD)throw new Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return hD}async function Kwe({chainId:e,connector:t}){const n=ro(),r=n.connector;if(r&&t.id===r.id)throw new Uwe;try{n.setState(a=>({...a,status:"connecting"}));const o=await t.connect({chainId:e});return n.setLastUsedConnector(t.id),n.setState(a=>({...a,connector:t,chains:t==null?void 0:t.chains,data:o,status:"connected"})),n.storage.setItem("connected",!0),{...o,connector:t}}catch(o){throw n.setState(a=>({...a,status:a.connector?"connected":"disconnected"})),o}}async function Ywe(){const e=ro();e.connector&&await e.connector.disconnect(),e.clearState(),e.storage.removeItem("connected")}var Qwe=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],Xwe=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function Mi({chainId:e}={}){const t=ro();return e&&t.getPublicClient({chainId:e})||t.publicClient}async function b4({chainId:e}={}){var r,o;return await((o=(r=ro().connector)==null?void 0:r.getWalletClient)==null?void 0:o.call(r,{chainId:e}))||null}function mD({chainId:e}={}){const t=ro();return e&&t.getWebSocketPublicClient({chainId:e})||t.webSocketPublicClient}function Jwe(e,t){const n=ro(),r=async()=>t(Mi(e));return n.subscribe(({publicClient:a})=>a,r)}function Zwe({chainId:e},t){const n=ro(),r=async({chainId:a})=>{if(e&&a&&e!==a)return;const i=await b4({chainId:e});return ro().connector?t(i):t(null)};return n.subscribe(({data:a,connector:i})=>{var s;return{account:a==null?void 0:a.account,chainId:(s=a==null?void 0:a.chain)==null?void 0:s.id,connector:i}},r,{equalityFn:y4})}function eEe(e,t){const n=ro(),r=async()=>t(mD(e));return n.subscribe(({webSocketPublicClient:a})=>a,r)}async function tEe({chainId:e,contracts:t,blockNumber:n,blockTag:r,...o}){const a=Mi({chainId:e});if(!a.chains)throw new $we;if(e&&a.chain.id!==e)throw new Lwe({chainId:e});return a.multicall({allowFailure:o.allowFailure??!0,blockNumber:n,blockTag:r,contracts:t})}async function nEe({address:e,account:t,chainId:n,abi:r,args:o,functionName:a,blockNumber:i,blockTag:s}){return Mi({chainId:n}).readContract({abi:r,address:e,account:t,functionName:a,args:o,blockNumber:i,blockTag:s})}async function rEe({contracts:e,blockNumber:t,blockTag:n,...r}){const{allowFailure:o=!0}=r;try{const a=Mi(),i=e.reduce((u,d,f)=>{const h=d.chainId??a.chain.id;return{...u,[h]:[...u[h]||[],{contract:d,index:f}]}},{}),s=()=>Object.entries(i).map(([u,d])=>tEe({allowFailure:o,chainId:parseInt(u),contracts:d.map(({contract:f})=>f),blockNumber:t,blockTag:n})),c=(await Promise.all(s())).flat(),l=Object.values(i).flatMap(u=>u.map(({index:d})=>d));return c.reduce((u,d,f)=>(u&&(u[l[f]]=d),u),[])}catch(a){if(a instanceof Yk)throw a;const i=()=>e.map(s=>nEe({...s,blockNumber:t,blockTag:n}));return o?(await Promise.allSettled(i())).map(s=>s.status==="fulfilled"?{result:s.value,status:"success"}:{error:s.reason,result:void 0,status:"failure"}):await Promise.all(i())}}async function oEe({address:e,chainId:t,formatUnits:n,token:r}){const o=ro(),a=Mi({chainId:t});if(r){const l=async({abi:u})=>{const d={abi:u,address:r,chainId:t},[f,h,m]=await rEe({allowFailure:!1,contracts:[{...d,functionName:"balanceOf",args:[e]},{...d,functionName:"decimals"},{...d,functionName:"symbol"}]});return{decimals:h,formatted:Wu(f??"0",ON(n??h)),symbol:m,value:f}};try{return await l({abi:Qwe})}catch(u){if(u instanceof Yk){const{symbol:d,...f}=await l({abi:Xwe});return{symbol:RH(Za(d,{dir:"right"})),...f}}throw u}}const i=[...o.publicClient.chains||[],...o.chains??[]],s=await a.getBalance({address:e}),c=i.find(l=>l.id===a.chain.id);return{decimals:(c==null?void 0:c.nativeCurrency.decimals)??18,formatted:Wu(s??"0",ON(n??18)),symbol:(c==null?void 0:c.nativeCurrency.symbol)??"ETH",value:s}}function PY(){const{data:e,connector:t,status:n}=ro();switch(n){case"connected":return{address:e==null?void 0:e.account,connector:t,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:n};case"reconnecting":return{address:e==null?void 0:e.account,connector:t,isConnected:!!(e!=null&&e.account),isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:n};case"connecting":return{address:e==null?void 0:e.account,connector:t,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:n};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:n}}}function IY(){var o,a,i,s;const e=ro(),t=(a=(o=e.data)==null?void 0:o.chain)==null?void 0:a.id,n=e.chains??[],r=[...((i=e.publicClient)==null?void 0:i.chains)||[],...n].find(c=>c.id===t)??{id:t,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:t?{...r,...(s=e.data)==null?void 0:s.chain,id:t}:void 0,chains:n}}async function aEe(e){const t=await b4();if(!t)throw new ua;return await t.signMessage({message:e.message})}async function iEe({chainId:e}){const{connector:t}=ro();if(!t)throw new ua;if(!t.switchChain)throw new zwe({connector:t});return t.switchChain(e)}function sEe(e,{selector:t=n=>n}={}){const n=ro(),r=()=>e(PY());return n.subscribe(({data:a,connector:i,status:s})=>t({address:a==null?void 0:a.account,connector:i,status:s}),r,{equalityFn:y4})}function cEe(e,{selector:t=n=>n}={}){const n=ro(),r=()=>e(IY());return n.subscribe(({data:a,chains:i})=>{var s;return t({chainId:(s=a==null?void 0:a.chain)==null?void 0:s.id,chains:i})},r,{equalityFn:y4})}async function lEe({name:e,chainId:t}){const{normalize:n}=await me(async()=>{const{normalize:a}=await import("./index-DcvEgmdm.js");return{normalize:a}},[],import.meta.url);return await Mi({chainId:t}).getEnsAvatar({name:n(e)})}async function uEe({address:e,chainId:t}){return Mi({chainId:t}).getEnsName({address:Rr(e)})}async function dEe({chainId:e}={}){return await Mi({chainId:e}).getBlockNumber()}var OY={exports:{}},RY={};/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Gx=S,fEe=h4;function hEe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mEe=typeof Object.is=="function"?Object.is:hEe,pEe=fEe.useSyncExternalStore,gEe=Gx.useRef,yEe=Gx.useEffect,bEe=Gx.useMemo,vEe=Gx.useDebugValue;RY.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a=gEe(null);if(a.current===null){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=bEe(function(){function c(h){if(!l){if(l=!0,u=h,h=r(h),o!==void 0&&i.hasValue){var m=i.value;if(o(m,h))return d=m}return d=h}if(m=d,mEe(u,h))return m;var p=r(h);return o!==void 0&&o(m,p)?m:(u=h,d=p)}var l=!1,u,d,f=n===void 0?null:n;return[function(){return c(t())},f===null?void 0:function(){return c(f())}]},[t,n,r,o]);var s=pEe(e,a[0],a[1]);return yEe(function(){i.hasValue=!0,i.value=s},[s]),vEe(s),s};OY.exports=RY;var v4=OY.exports;function wEe({queryClient:e=new W1e({defaultOptions:{queries:{cacheTime:1e3*60*60*24,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:t=kY({storage:typeof window<"u"&&window.localStorage?window.localStorage:DY}),persister:n=typeof window<"u"?j1e({key:"cache",storage:t,serialize:o=>o,deserialize:o=>o}):void 0,...r}){const o=Vwe({...r,storage:t});return n&&xwe({queryClient:e,persister:n,dehydrateOptions:{shouldDehydrateQuery:a=>a.cacheTime!==0&&a.queryKey[0].persist!==!1}}),Object.assign(o,{queryClient:e})}var NY=S.createContext(void 0),Vx=S.createContext(void 0);function EEe({children:e,config:t}){return S.createElement(NY.Provider,{children:S.createElement(fwe,{children:e,client:t.queryClient,context:Vx}),value:t})}function Kx(){const e=S.useContext(NY);if(!e)throw new Error(["`useConfig` must be used within `WagmiConfig`.\n","Read more: https://wagmi.sh/react/WagmiConfig"].join(` -`));return e}var _Ee=h4.useSyncExternalStore;function xEe(e){return Array.isArray(e)}function CEe(e){if(!FN(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!FN(n)||!n.hasOwnProperty("isPrototypeOf"))}function FN(e){return Object.prototype.toString.call(e)==="[object Object]"}function SEe(e,t,n){return xEe(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function TEe(e){return JSON.stringify(e,(t,n)=>CEe(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):typeof n=="bigint"?n.toString():n)}function AEe(e,t){return typeof e=="function"?e(...t):!!e}function DEe(e,t){const n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(t.trackedProps.add(r),e[r])})}),n}function kEe(e,t){const n=m4({context:e.context}),r=hwe(),o=gwe(),a=n.defaultQueryOptions({...e,queryKeyHashFn:TEe});a._optimisticResults=r?"isRestoring":"optimistic",a.onError&&(a.onError=gn.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=gn.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=gn.batchCalls(a.onSettled)),a.suspense&&typeof a.staleTime!="number"&&(a.staleTime=1e3),(a.suspense||a.useErrorBoundary)&&(o.isReset()||(a.retryOnMount=!1));const[i]=S.useState(()=>new t(n,a)),s=i.getOptimisticResult(a);if(_Ee(S.useCallback(d=>r?()=>{}:i.subscribe(gn.batchCalls(d)),[i,r]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),S.useEffect(()=>{o.clearReset()},[o]),S.useEffect(()=>{i.setOptions(a,{listeners:!1})},[a,i]),a.suspense&&s.isLoading&&s.isFetching&&!r)throw i.fetchOptimistic(a).then(({data:d})=>{var f,h;(f=a.onSuccess)==null||f.call(a,d),(h=a.onSettled)==null||h.call(a,d,null)}).catch(d=>{var f,h;o.clearReset(),(f=a.onError)==null||f.call(a,d),(h=a.onSettled)==null||h.call(a,void 0,d)});if(s.isError&&!o.isReset()&&!s.isFetching&&AEe(a.useErrorBoundary,[s.error,i.getCurrentQuery()]))throw s.error;const c=s.status==="loading"&&s.fetchStatus==="idle"?"idle":s.status,l=c==="idle",u=c==="loading"&&s.fetchStatus==="fetching";return{...s,defaultedOptions:a,isIdle:l,isLoading:u,observer:i,status:c}}function Yx(e,t,n){const r=hY(e,t,n);return bwe({context:Vx,...r})}function gy(e,t,n){const r=SEe(e,t,n),o=kEe({context:Vx,...r},G1e),a={data:o.data,error:o.error,fetchStatus:o.fetchStatus,isError:o.isError,isFetched:o.isFetched,isFetchedAfterMount:o.isFetchedAfterMount,isFetching:o.isFetching,isIdle:o.isIdle,isLoading:o.isLoading,isRefetching:o.isRefetching,isSuccess:o.isSuccess,refetch:o.refetch,status:o.status,internal:{dataUpdatedAt:o.dataUpdatedAt,errorUpdatedAt:o.errorUpdatedAt,failureCount:o.failureCount,isFetchedAfterMount:o.isFetchedAfterMount,isLoadingError:o.isLoadingError,isPaused:o.isPaused,isPlaceholderData:o.isPlaceholderData,isPreviousData:o.isPreviousData,isRefetchError:o.isRefetchError,isStale:o.isStale,remove:o.remove}};return o.defaultedOptions.notifyOnChangeProps?a:DEe(a,o.observer)}var w4=()=>m4({context:Vx});function zs({chainId:e}={}){return v4.useSyncExternalStoreWithSelector(t=>Jwe({chainId:e},t),()=>Mi({chainId:e}),()=>Mi({chainId:e}),t=>t,(t,n)=>t.uid===n.uid)}function d3({chainId:e}){return[{entity:"walletClient",chainId:e,persist:!1}]}function jEe({queryKey:[{chainId:e}]}){return b4({chainId:e})}function yy({chainId:e,suspense:t,onError:n,onSettled:r,onSuccess:o}={}){const{connector:a}=tn(),i=by({chainId:e}),s=gy(d3({chainId:i}),jEe,{cacheTime:0,enabled:!!a,staleTime:1/0,suspense:t,onError:n,onSettled:r,onSuccess:o}),c=w4();return S.useEffect(()=>Zwe({chainId:i},u=>{u?c.invalidateQueries(d3({chainId:i})):c.removeQueries(d3({chainId:i}))}),[c,i]),s}function PEe({chainId:e}={}){return v4.useSyncExternalStoreWithSelector(t=>eEe({chainId:e},t),()=>mD({chainId:e}),()=>mD({chainId:e}),t=>t,(t,n)=>(t==null?void 0:t.uid)===(n==null?void 0:n.uid))}function by({chainId:e}={}){return zs({chainId:e}).chain.id}function IEe(){const[,e]=S.useReducer(t=>t+1,0);return e}function MN({chainId:e,scopeKey:t}){return[{entity:"blockNumber",chainId:e,scopeKey:t}]}function OEe({queryKey:[{chainId:e}]}){return dEe({chainId:e})}function REe({cacheTime:e=0,chainId:t,enabled:n=!0,scopeKey:r,staleTime:o,suspense:a,watch:i=!1,onBlock:s,onError:c,onSettled:l,onSuccess:u}={}){const d=by({chainId:t}),f=zs({chainId:d}),h=PEe({chainId:d}),m=w4();return S.useEffect(()=>!n||!i&&!s?void 0:(h??f).watchBlockNumber({onBlockNumber:v=>{i&&m.setQueryData(MN({chainId:d,scopeKey:r}),v),s&&s(v)},emitOnBegin:!0}),[d,r,s,f,m,i,h,n]),gy(MN({scopeKey:r,chainId:d}),OEe,{cacheTime:e,enabled:n,staleTime:o,suspense:a,onError:c,onSettled:l,onSuccess:u})}function NEe({chainId:e,enabled:t,queryKey:n}){const r=w4(),o=S.useCallback(()=>r.invalidateQueries({queryKey:n},{cancelRefetch:!1}),[r,n]);REe({chainId:e,enabled:t,onBlock:t?o:void 0,scopeKey:t?void 0:"idle"})}var f3=e=>typeof e=="object"&&!Array.isArray(e);function BY(e,t,n=t,r=uD){const o=S.useRef([]),a=v4.useSyncExternalStoreWithSelector(e,t,n,i=>i,(i,s)=>{if(f3(i)&&f3(s)&&o.current.length){for(const c of o.current)if(!r(i[c],s[c]))return!1;return!0}return r(i,s)});if(f3(a)){const i={...a};return Object.defineProperties(i,Object.entries(i).reduce((s,[c,l])=>({...s,[c]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(c)||o.current.push(c),l)}}),{})),i}return a}function tn({onConnect:e,onDisconnect:t}={}){const n=Kx(),r=S.useCallback(s=>sEe(s),[n]),o=BY(r,PY),a=S.useRef(),i=a.current;return S.useEffect(()=>{(i==null?void 0:i.status)!=="connected"&&o.status==="connected"&&(e==null||e({address:o.address,connector:o.connector,isReconnected:(i==null?void 0:i.status)==="reconnecting"||(i==null?void 0:i.status)===void 0})),(i==null?void 0:i.status)==="connected"&&o.status==="disconnected"&&(t==null||t()),a.current=o},[e,t,i,o]),o}function BEe({address:e,chainId:t,formatUnits:n,scopeKey:r,token:o}){return[{entity:"balance",address:e,chainId:t,formatUnits:n,scopeKey:r,token:o}]}function FEe({queryKey:[{address:e,chainId:t,formatUnits:n,token:r}]}){if(!e)throw new Error("address is required");return oEe({address:e,chainId:t,formatUnits:n,token:r})}function FY({address:e,cacheTime:t,chainId:n,enabled:r=!0,formatUnits:o,scopeKey:a,staleTime:i,suspense:s,token:c,watch:l,onError:u,onSettled:d,onSuccess:f}={}){const h=by({chainId:n}),m=S.useMemo(()=>BEe({address:e,chainId:h,formatUnits:o,scopeKey:a,token:c}),[e,h,o,a,c]),p=gy(m,FEe,{cacheTime:t,enabled:!!(r&&e),staleTime:i,suspense:s,onError:u,onSettled:d,onSuccess:f});return NEe({chainId:h,enabled:!!(r&&l&&e),queryKey:m}),p}var MEe=e=>[{entity:"connect",...e}],LEe=e=>{const{connector:t,chainId:n}=e;if(!t)throw new Error("connector is required");return Kwe({connector:t,chainId:n})};function UEe({chainId:e,connector:t,onError:n,onMutate:r,onSettled:o,onSuccess:a}={}){const i=Kx(),{data:s,error:c,isError:l,isIdle:u,isLoading:d,isSuccess:f,mutate:h,mutateAsync:m,reset:p,status:b,variables:v}=Yx(MEe({connector:t,chainId:e}),LEe,{onError:n,onMutate:r,onSettled:o,onSuccess:a}),g=S.useCallback(_=>h({chainId:(_==null?void 0:_.chainId)??e,connector:(_==null?void 0:_.connector)??t}),[e,t,h]),w=S.useCallback(_=>m({chainId:(_==null?void 0:_.chainId)??e,connector:(_==null?void 0:_.connector)??t}),[e,t,m]);return{connect:g,connectAsync:w,connectors:i.connectors,data:s,error:c,isError:l,isIdle:u,isLoading:d,isSuccess:f,pendingConnector:v==null?void 0:v.connector,reset:p,status:b,variables:v}}var $Ee=[{entity:"disconnect"}],zEe=()=>Ywe();function Qx({onError:e,onMutate:t,onSettled:n,onSuccess:r}={}){const{error:o,isError:a,isIdle:i,isLoading:s,isSuccess:c,mutate:l,mutateAsync:u,reset:d,status:f}=Yx($Ee,zEe,{...e?{onError(h,m,p){e(h,p)}}:{},onMutate:t,...n?{onSettled(h,m,p,b){n(m,b)}}:{},...r?{onSuccess(h,m,p){r(p)}}:{}});return{disconnect:l,disconnectAsync:u,error:o,isError:a,isIdle:i,isLoading:s,isSuccess:c,reset:d,status:f}}function So(){const e=Kx(),t=S.useCallback(n=>cEe(n),[e]);return BY(t,IY)}var HEe=e=>[{entity:"signMessage",...e}],qEe=e=>{const{message:t}=e;if(!t)throw new Error("message is required");return aEe({message:t})};function WEe({message:e,onError:t,onMutate:n,onSettled:r,onSuccess:o}={}){const{data:a,error:i,isError:s,isIdle:c,isLoading:l,isSuccess:u,mutate:d,mutateAsync:f,reset:h,status:m,variables:p}=Yx(HEe({message:e}),qEe,{onError:t,onMutate:n,onSettled:r,onSuccess:o}),b=S.useCallback(g=>d(g||{message:e}),[e,d]),v=S.useCallback(g=>f(g||{message:e}),[e,f]);return{data:a,error:i,isError:s,isIdle:c,isLoading:l,isSuccess:u,reset:h,signMessage:b,signMessageAsync:v,status:m,variables:p}}var GEe=e=>[{entity:"switchNetwork",...e}],VEe=e=>{const{chainId:t}=e;if(!t)throw new Error("chainId is required");return iEe({chainId:t})};function Tl({chainId:e,throwForSwitchChainNotSupported:t,onError:n,onMutate:r,onSettled:o,onSuccess:a}={}){var T;const i=Kx(),s=IEe(),{data:c,error:l,isError:u,isIdle:d,isLoading:f,isSuccess:h,mutate:m,mutateAsync:p,reset:b,status:v,variables:g}=Yx(GEe({chainId:e}),VEe,{onError:n,onMutate:r,onSettled:o,onSuccess:a}),w=S.useCallback(k=>m({chainId:k??e}),[e,m]),_=S.useCallback(k=>p({chainId:k??e}),[e,p]);S.useEffect(()=>i.subscribe(({chains:D,connector:R})=>({chains:D,connector:R}),s),[i,s]);let C,x;const E=!!((T=i.connector)!=null&&T.switchChain);return(t||E)&&(C=w,x=_),{chains:i.chains??[],data:c,error:l,isError:u,isIdle:d,isLoading:f,isSuccess:h,pendingChainId:g==null?void 0:g.chainId,reset:b,status:v,switchNetwork:C,switchNetworkAsync:x,variables:g}}function KEe({name:e,chainId:t,scopeKey:n}){return[{entity:"ensAvatar",name:e,chainId:t,scopeKey:n}]}function YEe({queryKey:[{name:e,chainId:t}]}){if(!e)throw new Error("name is required");return lEe({name:e,chainId:t})}function QEe({cacheTime:e,chainId:t,enabled:n=!0,name:r,scopeKey:o,staleTime:a=1e3*60*60*24,suspense:i,onError:s,onSettled:c,onSuccess:l}={}){const u=by({chainId:t});return gy(KEe({name:r,chainId:u,scopeKey:o}),YEe,{cacheTime:e,enabled:!!(n&&r&&u),staleTime:a,suspense:i,onError:s,onSettled:c,onSuccess:l})}function XEe({address:e,chainId:t,scopeKey:n}){return[{entity:"ensName",address:e,chainId:t,scopeKey:n}]}function JEe({queryKey:[{address:e,chainId:t}]}){if(!e)throw new Error("address is required");return uEe({address:e,chainId:t})}function MY({address:e,cacheTime:t,chainId:n,enabled:r=!0,scopeKey:o,staleTime:a=1e3*60*60*24,suspense:i,onError:s,onSettled:c,onSuccess:l}={}){const u=by({chainId:n});return gy(XEe({address:e,chainId:u,scopeKey:o}),JEe,{cacheTime:t,enabled:!!(r&&e&&u),staleTime:a,suspense:i,onError:s,onSettled:c,onSuccess:l})}const ZEe=hm().filter(e=>e.id!==ct.BERA);function e_e(){const[e,t]=S.useState([]),[n,r]=S.useState(!1),{address:o}=tn(),a=S.useRef(e),i=S.useCallback(()=>{if(o){const s=ZEe.map(c=>{const l=Vu({chain:c,batch:{multicall:!0},transport:yh()}),u=c.tokens.map(d=>d.type==="native"?l.getBalance({address:o}):que({address:d.address,abi:eh,publicClient:l}).read.balanceOf([o]));return u.length?qx(u).pipe(l4(d=>d.map((f,h)=>({chain:c,token:c.tokens[h],balance:f})))):p1e([])});return a.current=[],r(!0),k1e(s,3).pipe(uY()).subscribe({next:c=>{a.current=c.reduce((l,u)=>l.concat(u).sort((d,f)=>d.token.symbol.localeCompare(f.token.symbol)),a.current)},error:c=>{console.error(c),a.current=[],r(!1)},complete:()=>{r(!1)}})}else a.current=[],t([]),r(!1)},[o]);return S.useEffect(()=>{const s=i();return()=>{s==null||s.unsubscribe()}},[i]),S.useEffect(()=>{n||t(a.current)},[n]),{loadingBalanceAll:n,balanceAll:e,updateBalanceAll:i}}function LY(e,t,n,r,o=10){const a=S.useRef(0);S.useEffect(()=>{a.current=0},[e,t,n,r]);const{loading:i,data:s,refetch:c,fetchMore:l}=$s(Dye,{variables:{page:0,row:o,relayer:e,recvTokenAddress:t,fromChain:n,toChain:r},skip:!e||!t||!n||!r}),u=S.useCallback(()=>{c({page:0}),a.current=0},[c]),d=S.useCallback(()=>{a.current=a.current+1,l({variables:{page:a.current}})},[l]);return{loading:i,total:(s==null?void 0:s.historyRecords.total)??0,data:(s==null?void 0:s.historyRecords.records)??[],refetch:u,fetchMore:d}}function t_e(e,t,n){const[r,o]=S.useState(),[a,i]=S.useState(!1),{bridgeInstance:s}=Bk();return S.useEffect(()=>{let c;return e.length&&t&&n?(i(!0),c=Yo(s.getWithdrawLiquidityFeeAndParams(t,jK(e.map(({id:l})=>l)),n)).subscribe({next:l=>{i(!1),o(l)},error:l=>{console.error(l),i(!1),o(void 0)}})):(i(!1),o(void 0)),()=>{c==null||c.unsubscribe()}},[e,t,n,s]),{feeAndParams:r,loading:a}}hm();function n_e(e,t,n,r){const[o,a]=S.useState(0n),[i,s]=S.useState(!1),[c,l]=S.useState(!1),{data:u}=yy(),d=zs(),f=S.useCallback(()=>{const m=BigInt(Number.MAX_SAFE_INTEGER)**BigInt(t.decimals);if(t.type==="native")a(m);else if(n&&r){s(!0);const p=Vu({chain:e,transport:yh()});return Yo(p.readContract({address:t.address,abi:eh,functionName:"allowance",args:[n,r]})).subscribe({next:b=>{s(!1),a(b)},error:b=>{console.error(b),s(!1),a(0n)}})}else a(0n)},[e,n,r,t.address,t.decimals,t.type]),h=S.useCallback(async m=>{if(n&&r&&u){l(!0);try{const p=await u.writeContract({address:t.address,abi:eh,functionName:"approve",args:[r,m]}),b=await d.waitForTransactionReceipt({hash:p,confirmations:ho});return b.status==="success"&&a(await d.readContract({address:t.address,abi:eh,functionName:"allowance",args:[n,r]})),l(!1),b}catch(p){console.error(p),an(p),l(!1)}}},[n,r,t.address,d,u]);return S.useEffect(()=>{const m=f();return()=>{m==null||m.unsubscribe()}},[f]),{loading:i,busy:c,allowance:o,refresh:f,approve:h}}function r_e(e,t,n){const[r,o]=S.useState(!1),[a,i]=S.useState(0n),s=S.useCallback(()=>{if(n){const c=Vu({transport:yh(),chain:e});return o(!0),Yo(t.type==="native"?c.getBalance({address:n}):c.readContract({address:t.address,abi:eh,functionName:"balanceOf",args:[n]})).subscribe({next:l=>{o(!1),i(l)},error:l=>{console.error(l),o(!1),i(0n)}})}else o(!1),i(0n)},[e,t.address,t.type,n]);return S.useEffect(()=>{const c=s();return()=>{c==null||c.unsubscribe()}},[s]),{loading:r,balance:a,refresh:s}}function o_e(e,t,n,r){const{loading:o,data:a,refetch:i}=$s(Tye,{variables:{amount:e.toString(),decimals:t.decimals,token:t.address,fromChain:n.network,toChain:r.network},fetchPolicy:"cache-and-network"});return{loading:o,data:a,refetch:i}}const UY=S.createContext({});function a_e(){return S.useContext(UY)}function i_e(e,t,n,r,o){var l;const[a,i]=S.useState(),[s,c]=S.useState(!1);return S.useEffect(()=>{var f;const u=(f=o==null?void 0:o.sortedLnBridgeRelayInfos)==null?void 0:f.records.at(0);c(!0);const d=Yo((e==null?void 0:e.getFee({sender:t,recipient:n,transferAmount:r,relayer:u==null?void 0:u.relayer,baseFee:u!=null&&u.baseFee?BigInt(u.baseFee):void 0,protocolFee:u!=null&&u.protocolFee?BigInt(u.protocolFee):void 0,liquidityFeeRate:u!=null&&u.liquidityFeeRate?BigInt(u.liquidityFeeRate):void 0}))||Promise.resolve(void 0)).subscribe({next:h=>{c(!1),i(h)},error:h=>{console.error(h),c(!1),i(null)}});return()=>{d.unsubscribe()}},[e,r,t,n,(l=o==null?void 0:o.sortedLnBridgeRelayInfos)==null?void 0:l.records]),{loading:s,fee:a}}function s_e(e){const[t,n]=S.useState(!1),[r,o]=S.useState();return S.useEffect(()=>{n(!0);const a=Yo((e==null?void 0:e.getDailyLimit())||Promise.resolve(void 0)).subscribe({next:i=>{n(!1),o(i)},error:i=>{console.error(i),n(!1),o(null)}});return()=>{a.unsubscribe()}},[e]),{loading:t,dailyLimit:r}}function LN(e){const{loading:t,data:n}=$s(kye,{variables:{tokenKey:e.toUpperCase()},fetchPolicy:"cache-and-network"});return S.useMemo(()=>({loading:t,data:(n==null?void 0:n.queryLnBridgeSupportedChains)||[]}),[t,n==null?void 0:n.queryLnBridgeSupportedChains])}function c_e(e,t,n,r){const{loading:o,data:a}=$s(jye,{variables:{fromChain:e.network,toChain:t.network,token:n.address,balance:r.toString()},fetchPolicy:"no-cache"}),[i,s]=S.useState(BigInt(Number.MAX_SAFE_INTEGER)**BigInt(n.decimals));return S.useEffect(()=>{o||s(c=>BigInt((a==null?void 0:a.queryMaxTransfer)??c))},[o,a==null?void 0:a.queryMaxTransfer]),{loadingMaxTransfer:o,maxTransfer:i}}function l_e(e,t){const n=tn(),{loading:r,data:o,refetch:a}=$s(Pye,{variables:{bridges:["lnv2-opposite","lnv2-default","lnv3"],sender:n.address,row:10,page:e},fetchPolicy:"cache-and-network",pollInterval:t?3e3:0,skip:!t});return{loading:r,data:(o==null?void 0:o.historyRecords.records)??[],total:(o==null?void 0:o.historyRecords.total)??0,refetch:a}}function u_e(e){const{loading:t,data:n}=$s(Iye,{variables:{txHash:e??""},fetchPolicy:"cache-and-network",pollInterval:e?4500:0,skip:!e});return{loading:t,data:n==null?void 0:n.historyRecordByTxHash}}function d_e(e,t,n=10){const{loading:r,data:o,networkStatus:a,refetch:i}=$s(Oye,{variables:{sender:e,bridges:["lnv3","lnv2-default","lnv2-opposite"],page:t,row:n},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"});return{loading:r,data:(o==null?void 0:o.historyRecords.records)??[],total:(o==null?void 0:o.historyRecords.total)??0,networkStatus:a,refetch:i}}const f_e={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function $Y(e){const[t,n]=S.useState(!1);return S.useEffect(()=>{const r=window.matchMedia(`(min-width: ${f_e[e]})`);n(r.matches);const o=a=>{n(a.matches)};return r.addEventListener("change",o,!1),()=>{r.addEventListener("change",o,!1)}},[e]),t}function zY(e,t,n,r,o,a){const{loading:i,data:s,refetch:c}=$s(Rye,{variables:{relayer:typeof r=="string"?r.toLowerCase()||void 0:"",fromChain:o==null?void 0:o.network,toChain:a==null?void 0:a.network,version:e,page:t,row:n},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"});return{loading:i,data:(s==null?void 0:s.queryLnBridgeRelayInfos.records)??[],total:(s==null?void 0:s.queryLnBridgeRelayInfos.total)??0,refetch:c}}function pD(){return pD=Object.assign?Object.assign.bind():function(e){for(var t=1;tt??e,[t,e]),o=st(r==null?void 0:r.fromChain),a=st(r==null?void 0:r.toChain),i=o==null?void 0:o.tokens.find(({symbol:s})=>{var c;return s.toUpperCase()===((c=r==null?void 0:r.sendToken)==null?void 0:c.toUpperCase())});return y.jsxs("div",{className:"relative overflow-x-auto pb-2",children:[y.jsx(qs,{loading:n,color:"white",className:"backdrop-blur-[2px]"}),y.jsxs("div",{className:"w-[39.5rem] px-5",children:[y.jsxs("div",{className:"flex flex-col gap-3 text-sm font-normal",children:[y.jsx(zN,{label:"Timestamp",value:r!=null&&r.startTime?hy(r.startTime*1e3):void 0}),y.jsx(zN,{label:"Value",value:r!=null&&r.sendAmount&&i?`${ut(BigInt(r.sendAmount),i.decimals,{precision:8})} ${i.symbol}`:void 0})]}),y.jsxs("div",{className:"mt-8 flex justify-between rounded-3xl bg-white/5 px-14 py-10",children:[y.jsx(HN,{chain:o,tx:r==null?void 0:r.requestTxHash,completed:!!(r!=null&&r.requestTxHash)}),y.jsx(x_e,{data:r}),y.jsx(HN,{chain:a,completed:(r==null?void 0:r.result)===xn.SUCCESS,tx:fj((r==null?void 0:r.confirmedBlocks)??"")?r==null?void 0:r.confirmedBlocks:r==null?void 0:r.responseTxHash})]}),r&&y.jsx("div",{className:"mt-2 inline-flex w-full justify-end pr-2",children:y.jsx(Su,{className:"hover:text-primary text-sm font-light text-white underline transition-colors",target:"_blank",to:`/tx/${r.id}`,rel:"noopener noreferrer",children:"More"})})]})]})}function zN({label:e,value:t}){return y.jsxs("div",{className:"inline-block",children:[y.jsx("span",{className:"inline-block w-24 font-medium",children:e}),y.jsx("span",{className:"text-white/90",children:t})]})}function HN({completed:e,chain:t,tx:n}){var r;return y.jsxs("div",{className:"flex flex-col items-center gap-6",children:[y.jsx("span",{className:"text-sm font-bold text-white",children:(t==null?void 0:t.name)??"-"}),y.jsx("div",{className:"border-primary/25 flex h-28 w-28 items-center justify-center rounded-full border",children:t?y.jsx("img",{alt:t.name,width:64,height:64,src:Rn(t.logo),className:"rounded-full"}):"-"}),y.jsxs("div",{className:"inline-flex min-h-7 min-w-36 items-center justify-center gap-1",children:[e?y.jsx(w_e,{width:18,height:18}):y.jsx(E_e,{width:25,height:25}),t&&n?y.jsxs("a",{target:"_blank",rel:"noopener noreferrer",href:new URL(`tx/${n}`,(r=t.blockExplorers)==null?void 0:r.default.url).href,className:"hover:text-primary text-sm font-normal text-white underline transition-colors",children:["Tx: ",zu(n)]}):y.jsx("span",{className:"ellipsis ml-2",children:"."})]})]})}function x_e({data:e}){const{hash:t,total:n=0,completed:r=0}=Yye(e==null?void 0:e.confirmedBlocks);return y.jsx("div",{className:"flex flex-col items-center justify-center gap-2",children:(e==null?void 0:e.result)===xn.SUCCESS?y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"72",height:"72",viewBox:"0 0 72 72",fill:"none",children:[y.jsx("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M35.5 17V36L2 55V36L35.5 17ZM69 17V36L35.5 55V36L69 17Z",fill:"#FFFFFF"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 17L35.5 36V55L2 36V17ZM35.5 17L69 36V55L35.5 36V17Z",fill:"#FFFFFF"})]}):y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"scale-[0.7]",children:y.jsx("span",{className:"tx-in-progress"})}),y.jsxs("span",{className:"text-sm font-normal italic text-white",children:[" ",n+r?`${r} / ${n}`:t?"Finishing":""," "]})]})})}function C_e({className:e,total:t,currentPage:n,pageSize:r=10,onChange:o=()=>{}}){const a=Math.ceil(t/r);return a>1&&y.jsxs("div",{className:`${e} gap-small flex items-center justify-end`,children:[y.jsx(Fa,{page:"previous",disabled:n===0,onClick:()=>o(n-1)}),S_e(a,n,o),y.jsx(Fa,{page:"next",disabled:n+1===a,onClick:()=>o(n+1)})]})}function Fa({page:e,disabled:t,currentPage:n,onClick:r}){return y.jsx("button",{className:`rounded-small inline-flex h-8 w-8 items-center justify-center border text-sm font-medium text-white transition disabled:scale-100 disabled:cursor-not-allowed disabled:border-transparent disabled:opacity-60 ${e==="more"||e===n?"hover:cursor-default":"hover:border-primary active:scale-95"} ${e===n?"border-primary bg-primary":"bg-component border-transparent"}`,onClick:r,disabled:t,children:e==="more"?y.jsx("span",{children:"..."}):e==="previous"?y.jsx("img",{alt:"Previous",width:16,height:16,src:"images/pagination/previous-page.svg"}):e==="next"?y.jsx("img",{alt:"Next",width:16,height:16,src:"images/pagination/next-page.svg"}):y.jsx("span",{children:e+1})})}function S_e(e,t,n){const r=new Array(e).fill(0).map((o,a)=>a);return t<3||e-48?y.jsxs(y.Fragment,{children:[r.slice(0,4).map(o=>y.jsx(Fa,{page:o,currentPage:t,onClick:()=>n(o)},o)),y.jsx(Fa,{page:"more"}),r.slice(-4).map(o=>y.jsx(Fa,{page:o,currentPage:t,onClick:()=>n(o)},o))]}):r.slice(0,e).map(o=>y.jsx(Fa,{page:o,currentPage:t,onClick:()=>n(o)},o)):y.jsxs(y.Fragment,{children:[y.jsx(Fa,{page:0,currentPage:t,onClick:()=>n(0)}),y.jsx(Fa,{page:"more"}),r.slice(t-1,t+2).map(o=>y.jsx(Fa,{page:o,currentPage:t,onClick:()=>n(o)},o)),y.jsx(Fa,{page:"more"}),y.jsx(Fa,{page:e-1,currentPage:t,onClick:()=>n(e-1)})]})}function T_e({onPageChange:e,onRowClick:t,totalRecords:n,currentPage:r,pageSize:o,dataSource:a,loading:i,columns:s}){const c=S.useMemo(()=>s.reduce((l,u)=>{const d=typeof u.width=="string"?u.width:typeof u.width=="number"?`${u.width}px`:"1fr";return l==="auto"?l=d:l=`${l} ${d}`,l},"auto"),[s]);return y.jsxs("div",{className:"space-y-3",children:[y.jsx("div",{className:"w-full overflow-x-auto pb-1",children:y.jsxs("div",{className:"w-[39.5rem]",children:[y.jsx("div",{className:"grid items-center gap-x-2 rounded-xl bg-white/10 px-3 py-2 text-sm font-semibold text-white",style:{gridTemplateColumns:c},children:s.map(({key:l,title:u})=>typeof u=="string"?y.jsx("h5",{children:u},l):y.jsx(S.Fragment,{children:u},l))}),y.jsxs("div",{className:"relative mt-1",children:[y.jsx(qs,{loading:i,className:`rounded-xl ${a!=null&&a.length?"bg-black/10 backdrop-blur-[2px]":""}`,color:"white"}),a!=null&&a.length?y.jsx("div",{className:"space-y-1 rounded-b-xl",children:a.map(l=>y.jsx("div",{className:`${t?"transition-colors hover:cursor-pointer hover:bg-white/5":""} grid items-center gap-x-2 rounded-xl px-3 py-2 text-sm font-normal text-white`,style:{gridTemplateColumns:c},onClick:()=>t&&t(l),children:s.map(({key:u,dataIndex:d,render:f})=>y.jsx(S.Fragment,{children:f?f(l):y.jsx("span",{children:`${l[d]}`})},u))},l.id))}):y.jsx("div",{className:"flex h-48 flex-col items-center justify-center gap-4",children:i?null:y.jsxs(y.Fragment,{children:[y.jsx("img",{width:50,height:63,alt:"No data",src:"images/no-data.svg"}),y.jsx("span",{className:"text-sm font-medium text-slate-400",children:"No data"})]})})]})]})}),n!==void 0&&r!==void 0&&y.jsx("div",{className:"overflow-x-auto pb-1",children:y.jsx(C_e,{total:n,pageSize:o,currentPage:r,onChange:e})})]})}const A_e=[{title:"",key:"status",width:"10%",render:e=>y.jsx("div",{className:"pl-[20%]",children:e.result===xn.SUCCESS?y.jsx(k_e,{}):y.jsx(j_e,{})})},{title:"Time",key:"time",width:"35%",render:e=>y.jsx("span",{children:hy(e.startTime*1e3,{compact:!0})})},{title:"Value",key:"value",render:e=>{var n;const t=(n=st(e.fromChain))==null?void 0:n.tokens.find(({symbol:r})=>r.toUpperCase()===e.sendToken.toUpperCase());return y.jsx("span",{className:"truncate",children:t?`${ut(BigInt(e.sendAmount),t.decimals)} ${t.symbol}`:"-"})}},{title:y.jsx("span",{className:"text-center",children:"From"}),key:"from",width:"15%",render:e=>{const t=st(e.fromChain);return y.jsx("div",{className:"flex justify-center",children:t?y.jsx("img",{alt:t.name,width:20,height:20,src:Rn(t.logo),className:"rounded-full"}):y.jsx("span",{children:"-"})})}},{title:y.jsx("span",{className:"text-center",children:"To"}),key:"to",width:"15%",render:e=>{const t=st(e.toChain);return y.jsx("div",{className:"flex justify-center",children:t?y.jsx("img",{alt:t.name,width:20,height:20,src:Rn(t.logo),className:"rounded-full"}):y.jsx("span",{children:"-"})})}}];function D_e({onPageChange:e,onRowClick:t,dataSource:n,currentPage:r,totalRecords:o,loading:a}){return y.jsx(T_e,{dataSource:n,totalRecords:o,currentPage:r,pageSize:10,columns:A_e,loading:a,onPageChange:e,onRowClick:t})}function k_e(){return y.jsx("svg",{viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",children:y.jsx("path",{d:"M364.032 896a46.144 46.144 0 0 1-35.712-15.424L15.36 559.936c-20.48-20.608-18.752-53.184 0-73.792 20.352-20.544 52.672-18.816 73.088 0l275.584 284.672 573.248-584.704a51.072 51.072 0 0 1 73.088 0 52.032 52.032 0 0 1 0 73.728l-610.624 620.736a48.768 48.768 0 0 1-35.712 15.424z",fill:"#1afa29"})})}function j_e(){return y.jsxs("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[y.jsx("path",{d:"M554.656 170.656h-85.344v362.656l273.056 183.456 51.2-68.256-238.944-157.856z",fill:"#00B2FF"}),y.jsx("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0z m0 938.656c-234.656 0-426.656-192-426.656-426.656S277.344 85.344 512 85.344s426.656 192 426.656 426.656-192 426.656-426.656 426.656z",fill:"#00B2FF"})]})}function P_e({children:e,isDetail:t,isOpen:n,onBack:r,onClose:o}){const a=S.useRef(null);return S.useEffect(()=>()=>{document.body.style.overflow="auto"},[]),Fs.createPortal(y.jsx(Al,{in:n,timeout:300,nodeRef:a,classNames:"modal-fade",unmountOnExit:!0,onEnter:()=>{document.body.style.overflow="hidden"},onExited:()=>{document.body.style.overflow="auto"},children:y.jsx("div",{className:"bg-background/80 p-medium fixed left-0 top-0 z-[21] flex h-screen w-screen items-center justify-center overflow-auto backdrop-blur-sm",onClick:i=>i.stopPropagation(),ref:a,children:y.jsxs("div",{className:"bg-secondary p-medium relative h-[36rem] w-full rounded-3xl lg:w-[42rem] lg:p-5",children:[y.jsx("button",{className:"right-medium top-medium absolute rounded-full bg-transparent p-[4px] transition hover:scale-105 hover:bg-white/10 active:scale-95",onClick:o,children:y.jsx("img",{width:20,height:20,alt:"Close modal",src:"images/close-white.svg"})}),y.jsx("div",{className:"flex h-6 items-center pl-1 lg:pl-0",children:t?y.jsx("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",className:"text-white/60 transition-[transform,color] hover:scale-105 hover:cursor-pointer hover:text-white active:scale-95",onClick:r,children:y.jsx("path",{d:"M402.746 146.746l-320 320c-24.994 24.992-24.994 65.516 0 90.508l320 320c24.994 24.992 65.516 24.992 90.51 0 24.996-24.992 24.996-65.516 0-90.508L282.508 576 896 576c35.346 0 64-28.652 64-64 0-35.346-28.654-64-64-64L282.508 448l210.746-210.746C505.75 224.758 512 208.378 512 192s-6.248-32.758-18.744-45.254C468.26 121.752 427.74 121.752 402.746 146.746z",fill:"currentColor"})}):y.jsx("h3",{className:"font-bold text-white",children:"History"})}),y.jsx("div",{className:"mt-5",children:e})]})})}),document.body)}function WY({children:e,className:t}){const[n,r]=S.useState(0),{isHistoryOpen:o,historyDetails:a,setIsHistoryOpen:i,setHistoryDetails:s}=$g(),{loading:c,data:l,total:u,refetch:d}=l_e(n,o);S.useEffect(()=>{o?d():(r(0),s(null))},[o,d,s]);const f=S.useRef(null),h=S.useRef(null),m=a?h:f,p=tn(),b=S.useCallback(v=>s(v),[s]);return p.address?y.jsxs(y.Fragment,{children:[y.jsx("button",{className:`${t}`,onClick:v=>{v.stopPropagation(),i(!0)},children:e??y.jsx("span",{children:"History"})}),y.jsx(P_e,{isOpen:o,isDetail:!!a,onClose:()=>i(!1),onBack:()=>s(null),children:y.jsx(vy,{children:y.jsx(Al,{classNames:a?"history-detail-fade":"history-table-fade",timeout:100,nodeRef:m,unmountOnExit:!0,children:y.jsx("div",{ref:m,children:a?y.jsx(__e,{data:a}):y.jsx(D_e,{onPageChange:r,onRowClick:b,currentPage:n,totalRecords:u,dataSource:l,loading:c})})},a?"detail":"history")})})]}):null}function I_e({label:e,children:t,placement:n,hoverable:r,sameWidth:o,labelClassName:a,childClassName:i}){const{state:s,setState:c,setFalse:l}=zg(!1),{refs:u,context:d,floatingStyles:f}=gd({open:s,onOpenChange:c,middleware:[hd(6),o?S_({apply({rects:_,elements:C}){Object.assign(C.floating.style,{width:`${_.reference.width}px`})}}):void 0],placement:n}),{styles:h,isMounted:m}=bd(d,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),p=A_(d,{enabled:!!r}),b=tm(d),v=pd(d),{getReferenceProps:g,getFloatingProps:w}=yd([p,b,v]);return y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:`${a}`,ref:u.setReference,...g(),children:[e,y.jsx("img",{style:{transform:s?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 transition-transform",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})]}),m&&y.jsx(md,{children:y.jsx("div",{style:f,ref:u.setFloating,...w(),className:"z-20",children:y.jsx("div",{className:`${i}`,style:h,onClick:l,children:t})})})]})}var qN='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',O_e={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${qN}`,system:qN},_p={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"}},R_e={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},GY=({borderRadius:e="large",fontStack:t="rounded",overlayBlur:n="none"})=>({blurs:{modalOverlay:R_e[n].modalOverlay},fonts:{body:O_e[t]},radii:{actionButton:_p[e].actionButton,connectButton:_p[e].connectButton,menuButton:_p[e].connectButton,modal:_p[e].modal,modalMobile:_p[e].modalMobile}}),S1="#1A1B1F",VY={blue:{accentColor:"#3898FF",accentColorForeground:"#FFF"},green:{accentColor:"#4BD166",accentColorForeground:S1},orange:{accentColor:"#FF983D",accentColorForeground:S1},pink:{accentColor:"#FF7AB8",accentColorForeground:S1},purple:{accentColor:"#7A70FF",accentColorForeground:"#FFF"},red:{accentColor:"#FF6257",accentColorForeground:"#FFF"}},WN=VY.blue,KY=({accentColor:e=WN.accentColor,accentColorForeground:t=WN.accentColorForeground,...n}={})=>({...GY(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:S1,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)"}});KY.accentColors=VY;var YY={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"}},GN=YY.blue,QY=({accentColor:e=GN.accentColor,accentColorForeground:t=GN.accentColorForeground,...n}={})=>({...GY(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)"}});QY.accentColors=YY;var yD=`{ - "connect_wallet": { - "label": "Connect Wallet", - "wrong_network": { - "label": "Wrong network" - } - }, - - "intro": { - "title": "What is a Wallet?", - "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.", - "digital_asset": { - "title": "A Home for your Digital Assets", - "description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs." - }, - "login": { - "title": "A New Way to Log In", - "description": "Instead of creating new accounts and passwords on every website, just connect your wallet." - }, - "get": { - "label": "Get a Wallet" - }, - "learn_more": { - "label": "Learn More" - } - }, - - "sign_in": { - "label": "Verify your account", - "description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.", - "message": { - "send": "Sign message", - "preparing": "Preparing message...", - "cancel": "Cancel", - "preparing_error": "Error preparing message, please retry!" - }, - "signature": { - "waiting": "Waiting for signature...", - "verifying": "Verifying signature...", - "signing_error": "Error signing message, please retry!", - "verifying_error": "Error verifying signature, please retry!", - "oops_error": "Oops, something went wrong!" - } - }, - - "connect": { - "label": "Connect", - "title": "Connect a Wallet", - "new_to_ethereum": { - "description": "New to Ethereum wallets?", - "learn_more": { - "label": "Learn More" - } - }, - "learn_more": { - "label": "Learn more" - }, - "recent": "Recent", - "status": { - "opening": "Opening %{wallet}...", - "connecting": "Connecting", - "connect_mobile": "Continue in %{wallet}", - "not_installed": "%{wallet} is not installed", - "not_available": "%{wallet} is not available", - "confirm": "Confirm connection in the extension", - "confirm_mobile": "Accept connection request in the wallet" - }, - "secondary_action": { - "get": { - "description": "Don't have %{wallet}?", - "label": "GET" - }, - "install": { - "label": "INSTALL" - }, - "retry": { - "label": "RETRY" - } - }, - "walletconnect": { - "description": { - "full": "Need the official WalletConnect modal?", - "compact": "Need the WalletConnect modal?" - }, - "open": { - "label": "OPEN" - } - } - }, - - "connect_scan": { - "title": "Scan with %{wallet}", - "fallback_title": "Scan with your phone" - }, - - "connector_group": { - "recommended": "Recommended", - "other": "Other", - "popular": "Popular", - "more": "More", - "others": "Others" - }, - - "get": { - "title": "Get a Wallet", - "action": { - "label": "GET" - }, - "mobile": { - "description": "Mobile Wallet" - }, - "extension": { - "description": "Browser Extension" - }, - "mobile_and_extension": { - "description": "Mobile Wallet and Extension" - }, - "mobile_and_desktop": { - "description": "Mobile and Desktop Wallet" - }, - "looking_for": { - "title": "Not what you're looking for?", - "mobile": { - "description": "Select a wallet on the main screen to get started with a different wallet provider." - }, - "desktop": { - "compact_description": "Select a wallet on the main screen to get started with a different wallet provider.", - "wide_description": "Select a wallet on the left to get started with a different wallet provider." - } - } - }, - - "get_options": { - "title": "Get started with %{wallet}", - "short_title": "Get %{wallet}", - "mobile": { - "title": "%{wallet} for Mobile", - "description": "Use the mobile wallet to explore the world of Ethereum.", - "download": { - "label": "Get the app" - } - }, - "extension": { - "title": "%{wallet} for %{browser}", - "description": "Access your wallet right from your favorite web browser.", - "download": { - "label": "Add to %{browser}" - } - }, - "desktop": { - "title": "%{wallet} for %{platform}", - "description": "Access your wallet natively from your powerful desktop.", - "download": { - "label": "Add to %{platform}" - } - } - }, - - "get_mobile": { - "title": "Install %{wallet}", - "description": "Scan with your phone to download on iOS or Android", - "continue": { - "label": "Continue" - } - }, - - "get_instructions": { - "mobile": { - "connect": { - "label": "Connect" - }, - "learn_more": { - "label": "Learn More" - } - }, - "extension": { - "refresh": { - "label": "Refresh" - }, - "learn_more": { - "label": "Learn More" - } - }, - "desktop": { - "connect": { - "label": "Connect" - }, - "learn_more": { - "label": "Learn More" - } - } - }, - - "chains": { - "title": "Switch Networks", - "wrong_network": "Wrong network detected, switch or disconnect to continue.", - "confirm": "Confirm in Wallet", - "switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.", - "switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.", - "disconnect": "Disconnect", - "connected": "Connected" - }, - - "profile": { - "disconnect": { - "label": "Disconnect" - }, - "copy_address": { - "label": "Copy Address", - "copied": "Copied!" - }, - "explorer": { - "label": "View more on explorer" - }, - "transactions": { - "description": "%{appName} transactions will appear here...", - "description_fallback": "Your transactions will appear here...", - "recent": { - "title": "Recent Transactions" - }, - "clear": { - "label": "Clear All" - } - } - }, - - "wallet_connectors": { - "argent": { - "qr_code": { - "step1": { - "description": "Put Argent on your home screen for faster access to your wallet.", - "title": "Open the Argent app" - }, - "step2": { - "description": "Create a wallet and username, or import an existing wallet.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the Scan QR button" - } - } - }, - - "bifrost": { - "qr_code": { - "step1": { - "description": "We recommend putting Bifrost Wallet on your home screen for quicker access.", - "title": "Open the Bifrost Wallet app" - }, - "step2": { - "description": "Create or import a wallet using your recovery phrase.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - } - }, - - "bitget": { - "qr_code": { - "step1": { - "description": "We recommend putting Bitget Wallet on your home screen for quicker access.", - "title": "Open the Bitget Wallet app" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - }, - - "extension": { - "step1": { - "description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.", - "title": "Install the Bitget Wallet extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "bitski": { - "extension": { - "step1": { - "description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.", - "title": "Install the Bitski extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "coin98": { - "qr_code": { - "step1": { - "description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.", - "title": "Open the Coin98 Wallet app" - }, - "step2": { - "description": "You can easily backup your wallet using our backup feature on your phone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the WalletConnect button" - } - }, - - "extension": { - "step1": { - "description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.", - "title": "Install the Coin98 Wallet extension" - }, - "step2": { - "description": "Create a new wallet or import an existing one.", - "title": "Create or Import a wallet" - }, - "step3": { - "description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "coinbase": { - "qr_code": { - "step1": { - "description": "We recommend putting Coinbase Wallet on your home screen for quicker access.", - "title": "Open the Coinbase Wallet app" - }, - "step2": { - "description": "You can easily backup your wallet using the cloud backup feature.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - }, - - "extension": { - "step1": { - "description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.", - "title": "Install the Coinbase Wallet extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "core": { - "qr_code": { - "step1": { - "description": "We recommend putting Core on your home screen for faster access to your wallet.", - "title": "Open the Core app" - }, - "step2": { - "description": "You can easily backup your wallet using our backup feature on your phone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the WalletConnect button" - } - }, - - "extension": { - "step1": { - "description": "We recommend pinning Core to your taskbar for quicker access to your wallet.", - "title": "Install the Core extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "fox": { - "qr_code": { - "step1": { - "description": "We recommend putting FoxWallet on your home screen for quicker access.", - "title": "Open the FoxWallet app" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - } - }, - - "frontier": { - "qr_code": { - "step1": { - "description": "We recommend putting Frontier Wallet on your home screen for quicker access.", - "title": "Open the Frontier Wallet app" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "After you scan, a connection prompt will appear for you to connect your wallet.", - "title": "Tap the scan button" - } - }, - - "extension": { - "step1": { - "description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.", - "title": "Install the Frontier Wallet extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "im_token": { - "qr_code": { - "step1": { - "title": "Open the imToken app", - "description": "Put imToken app on your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap Scanner Icon in top right corner", - "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." - } - } - }, - - "metamask": { - "qr_code": { - "step1": { - "title": "Open the MetaMask app", - "description": "We recommend putting MetaMask on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - }, - - "extension": { - "step1": { - "title": "Install the MetaMask extension", - "description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "okx": { - "qr_code": { - "step1": { - "title": "Open the OKX Wallet app", - "description": "We recommend putting OKX Wallet on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - }, - - "extension": { - "step1": { - "title": "Install the OKX Wallet extension", - "description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "omni": { - "qr_code": { - "step1": { - "title": "Open the Omni app", - "description": "Add Omni to your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap the QR icon and scan", - "description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect." - } - } - }, - - "token_pocket": { - "qr_code": { - "step1": { - "title": "Open the TokenPocket app", - "description": "We recommend putting TokenPocket on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - }, - - "extension": { - "step1": { - "title": "Install the TokenPocket extension", - "description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "trust": { - "qr_code": { - "step1": { - "title": "Open the Trust Wallet app", - "description": "Put Trust Wallet on your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap WalletConnect in Settings", - "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." - } - }, - - "extension": { - "step1": { - "title": "Install the Trust Wallet extension", - "description": "Click at the top right of your browser and pin Trust Wallet for easy access." - }, - "step2": { - "title": "Create or Import a wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "uniswap": { - "qr_code": { - "step1": { - "title": "Open the Uniswap app", - "description": "Add Uniswap Wallet to your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap the QR icon and scan", - "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect." - } - } - }, - - "zerion": { - "qr_code": { - "step1": { - "title": "Open the Zerion app", - "description": "We recommend putting Zerion on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - }, - - "extension": { - "step1": { - "title": "Install the Zerion extension", - "description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "rainbow": { - "qr_code": { - "step1": { - "title": "Open the Rainbow app", - "description": "We recommend putting Rainbow on your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "You can easily backup your wallet using our backup feature on your phone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - } - }, - - "enkrypt": { - "extension": { - "step1": { - "description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.", - "title": "Install the Enkrypt Wallet extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "frame": { - "extension": { - "step1": { - "description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.", - "title": "Install Frame & the companion extension" - }, - "step2": { - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", - "title": "Create or Import a Wallet" - }, - "step3": { - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", - "title": "Refresh your browser" - } - } - }, - - "one_key": { - "extension": { - "step1": { - "title": "Install the OneKey Wallet extension", - "description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "phantom": { - "extension": { - "step1": { - "title": "Install the Phantom extension", - "description": "We recommend pinning Phantom to your taskbar for easier access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "rabby": { - "extension": { - "step1": { - "title": "Install the Rabby extension", - "description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "safeheron": { - "extension": { - "step1": { - "title": "Install the Core extension", - "description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "taho": { - "extension": { - "step1": { - "title": "Install the Taho extension", - "description": "We recommend pinning Taho to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "talisman": { - "extension": { - "step1": { - "title": "Install the Talisman extension", - "description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import an Ethereum Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "xdefi": { - "extension": { - "step1": { - "title": "Install the XDEFI Wallet extension", - "description": "We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "zeal": { - "extension": { - "step1": { - "title": "Install the Zeal extension", - "description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "safepal": { - "extension": { - "step1": { - "title": "Install the SafePal Wallet extension", - "description": "Click at the top right of your browser and pin SafePal Wallet for easy access." - }, - "step2": { - "title": "Create or Import a wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension." - } - }, - "qr_code": { - "step1": { - "title": "Open the SafePal Wallet app", - "description": "Put SafePal Wallet on your home screen for faster access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Create a new wallet or import an existing one." - }, - "step3": { - "title": "Tap WalletConnect in Settings", - "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." - } - } - }, - - "desig": { - "extension": { - "step1": { - "title": "Install the Desig extension", - "description": "We recommend pinning Desig to your taskbar for easier access to your wallet." - }, - "step2": { - "title": "Create a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - } - }, - - "subwallet": { - "extension": { - "step1": { - "title": "Install the SubWallet extension", - "description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - }, - "qr_code": { - "step1": { - "title": "Open the SubWallet app", - "description": "We recommend putting SubWallet on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - } - }, - - "clv": { - "extension": { - "step1": { - "title": "Install the CLV Wallet extension", - "description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Refresh your browser", - "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." - } - }, - "qr_code": { - "step1": { - "title": "Open the CLV Wallet app", - "description": "We recommend putting CLV Wallet on your home screen for quicker access." - }, - "step2": { - "title": "Create or Import a Wallet", - "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." - }, - "step3": { - "title": "Tap the scan button", - "description": "After you scan, a connection prompt will appear for you to connect your wallet." - } - } - }, - - "okto": { - "qr_code": { - "step1": { - "title": "Open the Okto app", - "description": "Add Okto to your home screen for quick access" - }, - "step2": { - "title": "Create an MPC Wallet", - "description": "Create an account and generate a wallet" - }, - "step3": { - "title": "Tap WalletConnect in Settings", - "description": "Tap the Scan QR icon at the top right and confirm the prompt to connect." - } - } - }, - - "ledger": { - "desktop": { - "step1": { - "title": "Open the Ledger Live app", - "description": "We recommend putting Ledger Live on your home screen for quicker access." - }, - "step2": { - "title": "Set up your Ledger", - "description": "Set up a new Ledger or connect to an existing one." - }, - "step3": { - "title": "Connect", - "description": "A connection prompt will appear for you to connect your wallet." - } - }, - "qr_code": { - "step1": { - "title": "Open the Ledger Live app", - "description": "We recommend putting Ledger Live on your home screen for quicker access." - }, - "step2": { - "title": "Set up your Ledger", - "description": "You can either sync with the desktop app or connect your Ledger." - }, - "step3": { - "title": "Scan the code", - "description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet." - } - } - } - } -} -`;function N_e(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e}var XY=N_e;function JY(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 a in t.responsiveArray)r[a]!=null&&(o[t.responsiveArray[a]]=r[a]);return o}return r}return XY(n,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function B_e(e){var{conditions:t}=e;if(!t)throw new Error("Styles have no conditions");var n=JY(e);function r(o,a){if(typeof o=="string"||typeof o=="number"||typeof o=="boolean"){if(!t.defaultCondition)throw new Error("No default condition");return a(o,t.defaultCondition)}var i=Array.isArray(o)?n(o):o,s={};for(var c in i)i[c]!=null&&(s[c]=a(i[c],c));return s}return XY(r,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}function F_e(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M_e(e){var t=F_e(e,"string");return typeof t=="symbol"?t:String(t)}function L_e(e,t,n){return t=M_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VN(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 m3(e){for(var t=1;tfunction(){for(var t=arguments.length,n=new Array(t),r=0;rc.styles)),a=Object.keys(o),i=a.filter(c=>"mappings"in o[c]),s=c=>{var l=[],u={},d=m3({},c),f=!1;for(var h of i){var m=c[h];if(m!=null){var p=o[h];f=!0;for(var b of p.mappings)u[b]=m,d[b]==null&&delete d[b]}}var v=f?m3(m3({},u),d):c,g=function(){var x=v[w],E=o[w];try{if(E.mappings)return"continue";if(typeof x=="string"||typeof x=="number")l.push(E.values[x].defaultClass);else if(Array.isArray(x))for(var T=0;Te,z_e=function(){return U_e($_e)(...arguments)};function ZY(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t"u")return oxe;var t=axe(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},sxe=rQ(),th="data-scroll-locked",cxe=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(H_e,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(s,"px ").concat(r,`; - } - body[`).concat(th,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(a,`px; - padding-right: `).concat(i,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(s,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(T1,` { - right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(A1,` { - margin-right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(T1," .").concat(T1,` { - right: 0 `).concat(r,`; - } - - .`).concat(A1," .").concat(A1,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(th,`] { - `).concat(q_e,": ").concat(s,`px; - } -`)},YN=function(){var e=parseInt(document.body.getAttribute(th)||"0",10);return isFinite(e)?e:0},lxe=function(){S.useEffect(function(){return document.body.setAttribute(th,(YN()+1).toString()),function(){var e=YN()-1;e<=0?document.body.removeAttribute(th):document.body.setAttribute(th,e.toString())}},[])},uxe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;lxe();var a=S.useMemo(function(){return ixe(o)},[o]);return S.createElement(sxe,{styles:cxe(a,!t,o,n?"":"!important")})},bD=!1;if(typeof window<"u")try{var fv=Object.defineProperty({},"passive",{get:function(){return bD=!0,!0}});window.addEventListener("test",fv,fv),window.removeEventListener("test",fv,fv)}catch{bD=!1}var Xd=bD?{passive:!1}:!1,dxe=function(e){return e.tagName==="TEXTAREA"},oQ=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!dxe(e)&&n[t]==="visible")},fxe=function(e){return oQ(e,"overflowY")},hxe=function(e){return oQ(e,"overflowX")},QN=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=aQ(e,r);if(o){var a=iQ(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},mxe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},pxe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},aQ=function(e,t){return e==="v"?fxe(t):hxe(t)},iQ=function(e,t){return e==="v"?mxe(t):pxe(t)},gxe=function(e,t){return e==="h"&&t==="rtl"?-1:1},yxe=function(e,t,n,r,o){var a=gxe(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,c=t.contains(s),l=!1,u=i>0,d=0,f=0;do{var h=iQ(e,s),m=h[0],p=h[1],b=h[2],v=p-b-a*m;(m||v)&&aQ(e,s)&&(d+=v,f+=m),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(Math.abs(d)<1||!o)||!u&&(Math.abs(f)<1||!o))&&(l=!0),l},hv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},XN=function(e){return[e.deltaX,e.deltaY]},JN=function(e){return e&&"current"in e?e.current:e},bxe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vxe=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},wxe=0,Jd=[];function Exe(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(wxe++)[0],a=S.useState(rQ)[0],i=S.useRef(e);S.useEffect(function(){i.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=vn([e.lockRef.current],(e.shards||[]).map(JN),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(p,b){if("touches"in p&&p.touches.length===2)return!i.current.allowPinchZoom;var v=hv(p),g=n.current,w="deltaX"in p?p.deltaX:g[0]-v[0],_="deltaY"in p?p.deltaY:g[1]-v[1],C,x=p.target,E=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in p&&E==="h"&&x.type==="range")return!1;var T=QN(E,x);if(!T)return!0;if(T?C=E:(C=E==="v"?"h":"v",T=QN(E,x)),!T)return!1;if(!r.current&&"changedTouches"in p&&(w||_)&&(r.current=C),!C)return!0;var k=r.current||C;return yxe(k,b,p,k==="h"?w:_,!0)},[]),c=S.useCallback(function(p){var b=p;if(!(!Jd.length||Jd[Jd.length-1]!==a)){var v="deltaY"in b?XN(b):hv(b),g=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&bxe(C.delta,v)})[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var w=(i.current.shards||[]).map(JN).filter(Boolean).filter(function(C){return C.contains(b.target)}),_=w.length>0?s(b,w[0]):!i.current.noIsolation;_&&b.cancelable&&b.preventDefault()}}},[]),l=S.useCallback(function(p,b,v,g){var w={name:p,delta:b,target:v,should:g,shadowParent:_xe(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),u=S.useCallback(function(p){n.current=hv(p),r.current=void 0},[]),d=S.useCallback(function(p){l(p.type,XN(p),p.target,s(p,e.lockRef.current))},[]),f=S.useCallback(function(p){l(p.type,hv(p),p.target,s(p,e.lockRef.current))},[]);S.useEffect(function(){return Jd.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Xd),document.addEventListener("touchmove",c,Xd),document.addEventListener("touchstart",u,Xd),function(){Jd=Jd.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,Xd),document.removeEventListener("touchmove",c,Xd),document.removeEventListener("touchstart",u,Xd)}},[]);var h=e.removeScrollBar,m=e.inert;return S.createElement(S.Fragment,null,m?S.createElement(a,{styles:vxe(o)}):null,h?S.createElement(uxe,{gapMode:e.gapMode}):null)}function _xe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xxe=X_e(nQ,Exe);var sQ=S.forwardRef(function(e,t){return S.createElement(Xx,K({},e,{ref:t,sideCar:xxe}))});sQ.classNames=Xx.classNames;function ZN(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function Cxe(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 cQ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r={};for(var o in e){var a=e[o],i=[...n,o];typeof a=="string"||typeof a=="number"||a==null?r[o]=t(a,i):typeof a=="object"&&!Array.isArray(a)?r[o]=cQ(a,t,i):console.warn('Skipping invalid key "'.concat(i.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(a)?"Array":typeof a,'"'))}return r}function e9(e,t){var n={};if(typeof t=="object"){var r=e;cQ(t,(s,c)=>{if(s!=null){var l=Cxe(r,c);n[ZN(l)]=String(s)}})}else{var o=e;for(var a in o){var i=o[a];i!=null&&(n[ZN(a)]=i)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(c=>"".concat(c,":").concat(this[c])).join(";")},writable:!1}),n}var vD={exports:{}};(function(e,t){(function(n,r){var o="1.0.38",a="",i="?",s="function",c="undefined",l="object",u="string",d="major",f="model",h="name",m="type",p="vendor",b="version",v="architecture",g="console",w="mobile",_="tablet",C="smarttv",x="wearable",E="embedded",T=500,k="Amazon",D="Apple",R="ASUS",F="BlackBerry",B="Browser",j="Chrome",P="Edge",O="Firefox",I="Google",N="Huawei",M="LG",L="Microsoft",X="Motorola",J="Opera",U="Samsung",G="Sharp",Z="Sony",ae="Xiaomi",ne="Zebra",ie="Facebook",te="Chromium OS",ee="Mac OS",re=function(Q,ce){var pe={};for(var De in Q)ce[De]&&ce[De].length%2===0?pe[De]=ce[De].concat(Q[De]):pe[De]=Q[De];return pe},z=function(Q){for(var ce={},pe=0;pe0?Oe.length===2?typeof Oe[1]==s?this[Oe[0]]=Oe[1].call(this,at):this[Oe[0]]=Oe[1]:Oe.length===3?typeof Oe[1]===s&&!(Oe[1].exec&&Oe[1].test)?this[Oe[0]]=at?Oe[1].call(this,at,Oe[2]):r:this[Oe[0]]=at?at.replace(Oe[1],Oe[2]):r:Oe.length===4&&(this[Oe[0]]=at?Oe[3].call(this,at.replace(Oe[1],Oe[2])):r):this[Oe]=at||r;pe+=2}},Te=function(Q,ce){for(var pe in ce)if(typeof ce[pe]===l&&ce[pe].length>0){for(var De=0;De2&&(_e[f]="iPad",_e[m]=_),_e},this.getEngine=function(){var _e={};return _e[h]=r,_e[b]=r,Qe.call(_e,De,Je.engine),_e},this.getOS=function(){var _e={};return _e[h]=r,_e[b]=r,Qe.call(_e,De,Je.os),Oe&&!_e[h]&&Ie&&Ie.platform&&Ie.platform!="Unknown"&&(_e[h]=Ie.platform.replace(/chrome os/i,te).replace(/macos/i,ee)),_e},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 De},this.setUA=function(_e){return De=typeof _e===u&&_e.length>T?ke(_e,T):_e,this},this.setUA(De),this};ge.VERSION=o,ge.BROWSER=z([h,b,d]),ge.CPU=z([v]),ge.DEVICE=z([f,p,m,g,w,C,_,x,E]),ge.ENGINE=ge.OS=z([h,b]),e.exports&&(t=e.exports=ge),t.UAParser=ge;var Y=typeof n!==c&&(n.jQuery||n.Zepto);if(Y&&!Y.ua){var W=new ge;Y.ua=W.getResult(),Y.ua.get=function(){return W.getUA()},Y.ua.set=function(Q){W.setUA(Q);var ce=W.getResult();for(var pe in ce)Y.ua[pe]=ce[pe]}}})(typeof window=="object"?window:We)})(vD,vD.exports);var Sxe=vD.exports,wy={},Txe=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},lQ={},Jo={};let x4;const Axe=[0,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];Jo.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Jo.getSymbolTotalCodewords=function(t){return Axe[t]};Jo.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Jo.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');x4=t};Jo.isKanjiModeEnabled=function(){return typeof x4<"u"};Jo.toSJIS=function(t){return x4(t)};var Jx={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,o){if(e.isValid(r))return r;try{return t(r)}catch{return o}}})(Jx);function uQ(){this.buffer=[],this.length=0}uQ.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Dxe=uQ;function Ey(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Ey.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)};Ey.prototype.get=function(e,t){return this.data[e*this.size+t]};Ey.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Ey.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var kxe=Ey,dQ={};(function(e){const t=Jo.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const o=Math.floor(r/7)+2,a=t(r),i=a===145?26:Math.ceil((a-13)/(2*o-2))*2,s=[a-7];for(let c=1;c=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const a=o.size;let i=0,s=0,c=0,l=null,u=null;for(let d=0;d=5&&(i+=t.N1+(s-5)),l=h,s=1),h=o.get(f,d),h===u?c++:(c>=5&&(i+=t.N1+(c-5)),u=h,c=1)}s>=5&&(i+=t.N1+(s-5)),c>=5&&(i+=t.N1+(c-5))}return i},e.getPenaltyN2=function(o){const a=o.size;let i=0;for(let s=0;s=10&&(s===1488||s===93)&&i++,c=c<<1&2047|o.get(u,l),u>=10&&(c===1488||c===93)&&i++}return i*t.N3},e.getPenaltyN4=function(o){let a=0;const i=o.data.length;for(let c=0;c=0;){const i=a[0];for(let c=0;c0){const a=new Uint8Array(this.degree);return a.set(r,o),a}return r};var Pxe=C4,gQ={},Dl={},S4={};S4.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var $i={};const yQ="[0-9]+",Ixe="[A-Z $%*+\\-./:]+";let yg="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";yg=yg.replace(/u/g,"\\u");const Oxe="(?:(?![A-Z0-9 $%*+\\-./:]|"+yg+`)(?:.|[\r -]))+`;$i.KANJI=new RegExp(yg,"g");$i.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");$i.BYTE=new RegExp(Oxe,"g");$i.NUMERIC=new RegExp(yQ,"g");$i.ALPHANUMERIC=new RegExp(Ixe,"g");const Rxe=new RegExp("^"+yg+"$"),Nxe=new RegExp("^"+yQ+"$"),Bxe=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");$i.testKanji=function(t){return Rxe.test(t)};$i.testNumeric=function(t){return Nxe.test(t)};$i.testAlphanumeric=function(t){return Bxe.test(t)};(function(e){const t=S4,n=$i;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,i){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?a.ccBits[0]:i<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return n.testNumeric(a)?e.NUMERIC:n.testAlphanumeric(a)?e.ALPHANUMERIC:n.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(a,i){if(e.isValid(a))return a;try{return r(a)}catch{return i}}})(Dl);(function(e){const t=Jo,n=Zx,r=Jx,o=Dl,a=S4,i=7973,s=t.getBCHDigit(i);function c(f,h,m){for(let p=1;p<=40;p++)if(h<=e.getCapacity(p,m,f))return p}function l(f,h){return o.getCharCountIndicator(f,h)+4}function u(f,h){let m=0;return f.forEach(function(p){const b=l(p.mode,h);m+=b+p.getBitsLength()}),m}function d(f,h){for(let m=1;m<=40;m++)if(u(f,m)<=e.getCapacity(m,h,o.MIXED))return m}e.from=function(h,m){return a.isValid(h)?parseInt(h,10):m},e.getCapacity=function(h,m,p){if(!a.isValid(h))throw new Error("Invalid QR Code version");typeof p>"u"&&(p=o.BYTE);const b=t.getSymbolTotalCodewords(h),v=n.getTotalCodewordsCount(h,m),g=(b-v)*8;if(p===o.MIXED)return g;const w=g-l(p,h);switch(p){case o.NUMERIC:return Math.floor(w/10*3);case o.ALPHANUMERIC:return Math.floor(w/11*2);case o.KANJI:return Math.floor(w/13);case o.BYTE:default:return Math.floor(w/8)}},e.getBestVersionForData=function(h,m){let p;const b=r.from(m,r.M);if(Array.isArray(h)){if(h.length>1)return d(h,b);if(h.length===0)return 1;p=h[0]}else p=h;return c(p.mode,p.getLength(),b)},e.getEncodedBits=function(h){if(!a.isValid(h)||h<7)throw new Error("Invalid QR Code version");let m=h<<12;for(;t.getBCHDigit(m)-s>=0;)m^=i<=0;)o^=vQ<0&&(r=this.data.substr(n),o=parseInt(r,10),t.put(o,a*3+1))};var Lxe=Th;const Uxe=Dl,b3=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Ah(e){this.mode=Uxe.ALPHANUMERIC,this.data=e}Ah.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Ah.prototype.getLength=function(){return this.data.length};Ah.prototype.getBitsLength=function(){return Ah.getBitsLength(this.data.length)};Ah.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=b3.indexOf(this.data[n])*45;r+=b3.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(b3.indexOf(this.data[n]),6)};var $xe=Ah,zxe=function(t){for(var n=[],r=t.length,o=0;o=55296&&a<=56319&&r>o+1){var i=t.charCodeAt(o+1);i>=56320&&i<=57343&&(a=(a-55296)*1024+i-56320+65536,o+=1)}if(a<128){n.push(a);continue}if(a<2048){n.push(a>>6|192),n.push(a&63|128);continue}if(a<55296||a>=57344&&a<65536){n.push(a>>12|224),n.push(a>>6&63|128),n.push(a&63|128);continue}if(a>=65536&&a<=1114111){n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(a&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const Hxe=zxe,qxe=Dl;function Dh(e){this.mode=qxe.BYTE,typeof e=="string"&&(e=Hxe(e)),this.data=new Uint8Array(e)}Dh.getBitsLength=function(t){return t*8};Dh.prototype.getLength=function(){return this.data.length};Dh.prototype.getBitsLength=function(){return Dh.getBitsLength(this.data.length)};Dh.prototype.write=function(e){for(let t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` -Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var Kxe=kh,EQ={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,o){var a={},i={};i[r]=0;var s=t.PriorityQueue.make();s.push(r,0);for(var c,l,u,d,f,h,m,p,b;!s.empty();){c=s.pop(),l=c.value,d=c.cost,f=n[l]||{};for(u in f)f.hasOwnProperty(u)&&(h=f[u],m=d+h,p=i[u],b=typeof i[u]>"u",(b||p>m)&&(i[u]=m,s.push(u,m),a[u]=l))}if(typeof o<"u"&&typeof i[o]>"u"){var v=["Could not find a path from ",r," to ",o,"."].join("");throw new Error(v)}return a},extract_shortest_path_from_predecessor_list:function(n,r){for(var o=[],a=r;a;)o.push(a),n[a],a=n[a];return o.reverse(),o},find_path:function(n,r,o){var a=t.single_source_shortest_paths(n,r,o);return t.extract_shortest_path_from_predecessor_list(a,o)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,o={},a;n=n||{};for(a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);return o.queue=[],o.sorter=n.sorter||r.default_sorter,o},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var o={value:n,cost:r};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(EQ);var Yxe=EQ.exports;(function(e){const t=Dl,n=Lxe,r=$xe,o=Wxe,a=Kxe,i=$i,s=Jo,c=Yxe;function l(v){return unescape(encodeURIComponent(v)).length}function u(v,g,w){const _=[];let C;for(;(C=v.exec(w))!==null;)_.push({data:C[0],index:C.index,mode:g,length:C[0].length});return _}function d(v){const g=u(i.NUMERIC,t.NUMERIC,v),w=u(i.ALPHANUMERIC,t.ALPHANUMERIC,v);let _,C;return s.isKanjiModeEnabled()?(_=u(i.BYTE,t.BYTE,v),C=u(i.KANJI,t.KANJI,v)):(_=u(i.BYTE_KANJI,t.BYTE,v),C=[]),g.concat(w,_,C).sort(function(E,T){return E.index-T.index}).map(function(E){return{data:E.data,mode:E.mode,length:E.length}})}function f(v,g){switch(g){case t.NUMERIC:return n.getBitsLength(v);case t.ALPHANUMERIC:return r.getBitsLength(v);case t.KANJI:return a.getBitsLength(v);case t.BYTE:return o.getBitsLength(v)}}function h(v){return v.reduce(function(g,w){const _=g.length-1>=0?g[g.length-1]:null;return _&&_.mode===w.mode?(g[g.length-1].data+=w.data,g):(g.push(w),g)},[])}function m(v){const g=[];for(let w=0;w=0&&s<=6&&(c===0||c===6)||c>=0&&c<=6&&(s===0||s===6)||s>=2&&s<=4&&c>=2&&c<=4?e.set(a+s,i+c,!0,!0):e.set(a+s,i+c,!1,!0))}}function o2e(e){const t=e.size;for(let n=8;n>s&1)===1,e.set(o,a,i,!0),e.set(a,o,i,!0)}function E3(e,t,n){const r=e.size,o=t2e.getEncodedBits(t,n);let a,i;for(a=0;a<15;a++)i=(o>>a&1)===1,a<6?e.set(a,8,i,!0):a<8?e.set(a+1,8,i,!0):e.set(r-15+a,8,i,!0),a<8?e.set(8,r-a-1,i,!0):a<9?e.set(8,15-a-1+1,i,!0):e.set(8,15-a-1,i,!0);e.set(r-8,8,1,!0)}function s2e(e,t){const n=e.size;let r=-1,o=n-1,a=7,i=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let c=0;c<2;c++)if(!e.isReserved(o,s-c)){let l=!1;i>>a&1)===1),e.set(o,s-c,l),a--,a===-1&&(i++,a=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}function c2e(e,t,n){const r=new Qxe;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),n2e.getCharCountIndicator(c.mode,e)),c.write(r)});const o=t2.getSymbolTotalCodewords(e),a=_D.getTotalCodewordsCount(e,t),i=(o-a)*8;for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const s=(i-r.getLengthInBits())/8;for(let c=0;c=7&&i2e(c,t),s2e(c,i),isNaN(r)&&(r=ED.getBestMask(c,E3.bind(null,c,n))),ED.applyMask(r,c),E3(c,n,r),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}lQ.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let r=v3.M,o,a;return typeof n<"u"&&(r=v3.from(n.errorCorrectionLevel,v3.M),o=wE.from(n.version),a=ED.from(n.maskPattern),n.toSJISFunc&&t2.setToSJISFunction(n.toSJISFunc)),u2e(t,o,r,a)};var _Q={},T4={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");const o=parseInt(r.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const o=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,a=r.width&&r.width>=21?r.width:void 0,i=r.scale||4;return{width:a,scale:a?4:i,margin:o,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,o){return o.width&&o.width>=r+o.margin*2?o.width/(r+o.margin*2):o.scale},e.getImageWidth=function(r,o){const a=e.getScale(r,o);return Math.floor((r+o.margin*2)*a)},e.qrToImageData=function(r,o,a){const i=o.modules.size,s=o.modules.data,c=e.getScale(i,a),l=Math.floor((i+a.margin*2)*c),u=a.margin*c,d=[a.color.light,a.color.dark];for(let f=0;f=u&&h>=u&&f"u"&&(!i||!i.getContext)&&(c=i,i=void 0),i||(l=r()),c=t.getOptions(c);const u=t.getImageWidth(a.modules.size,c),d=l.getContext("2d"),f=d.createImageData(u,u);return t.qrToImageData(f.data,a,c),n(d,l,u),d.putImageData(f,0,0),l},e.renderToDataURL=function(a,i,s){let c=s;typeof c>"u"&&(!i||!i.getContext)&&(c=i,i=void 0),c||(c={});const l=e.render(a,i,c),u=c.type||"image/png",d=c.rendererOpts||{};return l.toDataURL(u,d.quality)}})(_Q);var xQ={};const d2e=T4;function r9(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function _3(e,t,n){let r=e+t;return typeof n<"u"&&(r+=" "+n),r}function f2e(e,t,n){let r="",o=0,a=!1,i=0;for(let s=0;s0&&c>0&&e[s-1]||(r+=a?_3("M",c+n,.5+l+n):_3("m",o,0),o=0,a=!1),c+1':"",l="',u='viewBox="0 0 '+s+" "+s+'"',f=''+c+l+` -`;return typeof r=="function"&&r(null,f),f};const h2e=Txe,xD=lQ,CQ=_Q,m2e=xQ;function A4(e,t,n,r,o){const a=[].slice.call(arguments,1),i=a.length,s=typeof a[i-1]=="function";if(!s&&!h2e())throw new Error("Callback required as last argument");if(s){if(i<2)throw new Error("Too few arguments provided");i===2?(o=n,n=t,t=r=void 0):i===3&&(t.getContext&&typeof o>"u"?(o=r,r=void 0):(o=r,r=n,n=t,t=void 0))}else{if(i<1)throw new Error("Too few arguments provided");return i===1?(n=t,t=r=void 0):i===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(c,l){try{const u=xD.create(n,r);c(e(u,t,r))}catch(u){l(u)}})}try{const c=xD.create(n,r);o(null,e(c,t,r))}catch(c){o(c)}}wy.create=xD.create;wy.toCanvas=A4.bind(null,CQ.render);wy.toDataURL=A4.bind(null,CQ.renderToDataURL);wy.toString=A4.bind(null,function(e,t,n){return m2e.render(e,n)});var D4={},n2={},ot={},SQ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){var l=s>>>16&65535,u=s&65535,d=c>>>16&65535,f=c&65535;return u*f+(l*f+u*d<<16>>>0)|0}e.mul=Math.imul||t;function n(s,c){return s+c|0}e.add=n;function r(s,c){return s-c|0}e.sub=r;function o(s,c){return s<>>32-c}e.rotl=o;function a(s,c){return s<<32-c|s>>>c}e.rotr=a;function i(s){return typeof s=="number"&&isFinite(s)&&Math.floor(s)===s}e.isInteger=Number.isInteger||i,e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(s){return e.isInteger(s)&&s>=-e.MAX_SAFE_INTEGER&&s<=e.MAX_SAFE_INTEGER}})(SQ);Object.defineProperty(ot,"__esModule",{value:!0});var TQ=SQ;function p2e(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}ot.readInt16BE=p2e;function g2e(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}ot.readUint16BE=g2e;function y2e(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}ot.readInt16LE=y2e;function b2e(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}ot.readUint16LE=b2e;function AQ(e,t,n){return t===void 0&&(t=new Uint8Array(2)),n===void 0&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}ot.writeUint16BE=AQ;ot.writeInt16BE=AQ;function DQ(e,t,n){return t===void 0&&(t=new Uint8Array(2)),n===void 0&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}ot.writeUint16LE=DQ;ot.writeInt16LE=DQ;function CD(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}ot.readInt32BE=CD;function SD(e,t){return t===void 0&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}ot.readUint32BE=SD;function TD(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}ot.readInt32LE=TD;function AD(e,t){return t===void 0&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}ot.readUint32LE=AD;function EE(e,t,n){return t===void 0&&(t=new Uint8Array(4)),n===void 0&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}ot.writeUint32BE=EE;ot.writeInt32BE=EE;function _E(e,t,n){return t===void 0&&(t=new Uint8Array(4)),n===void 0&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}ot.writeUint32LE=_E;ot.writeInt32LE=_E;function v2e(e,t){t===void 0&&(t=0);var n=CD(e,t),r=CD(e,t+4);return n*4294967296+r-(r>>31)*4294967296}ot.readInt64BE=v2e;function w2e(e,t){t===void 0&&(t=0);var n=SD(e,t),r=SD(e,t+4);return n*4294967296+r}ot.readUint64BE=w2e;function E2e(e,t){t===void 0&&(t=0);var n=TD(e,t),r=TD(e,t+4);return r*4294967296+n-(n>>31)*4294967296}ot.readInt64LE=E2e;function _2e(e,t){t===void 0&&(t=0);var n=AD(e,t),r=AD(e,t+4);return r*4294967296+n}ot.readUint64LE=_2e;function kQ(e,t,n){return t===void 0&&(t=new Uint8Array(8)),n===void 0&&(n=0),EE(e/4294967296>>>0,t,n),EE(e>>>0,t,n+4),t}ot.writeUint64BE=kQ;ot.writeInt64BE=kQ;function jQ(e,t,n){return t===void 0&&(t=new Uint8Array(8)),n===void 0&&(n=0),_E(e>>>0,t,n),_E(e/4294967296>>>0,t,n+4),t}ot.writeUint64LE=jQ;ot.writeInt64LE=jQ;function x2e(e,t,n){if(n===void 0&&(n=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,o=1,a=e/8+n-1;a>=n;a--)r+=t[a]*o,o*=256;return r}ot.readUintBE=x2e;function C2e(e,t,n){if(n===void 0&&(n=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,o=1,a=n;a=r;a--)n[a]=t/o&255,o*=256;return n}ot.writeUintBE=S2e;function T2e(e,t,n,r){if(n===void 0&&(n=new Uint8Array(e/8)),r===void 0&&(r=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!TQ.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var o=1,a=r;a>>16|P<<16,R=R+P|0,E^=R,E=E>>>20|E<<12,_=_+T|0,O^=_,O=O>>>16|O<<16,F=F+O|0,T^=F,T=T>>>20|T<<12,C=C+k|0,I^=C,I=I>>>16|I<<16,B=B+I|0,k^=B,k=k>>>20|k<<12,x=x+D|0,N^=x,N=N>>>16|N<<16,j=j+N|0,D^=j,D=D>>>20|D<<12,C=C+k|0,I^=C,I=I>>>24|I<<8,B=B+I|0,k^=B,k=k>>>25|k<<7,x=x+D|0,N^=x,N=N>>>24|N<<8,j=j+N|0,D^=j,D=D>>>25|D<<7,_=_+T|0,O^=_,O=O>>>24|O<<8,F=F+O|0,T^=F,T=T>>>25|T<<7,w=w+E|0,P^=w,P=P>>>24|P<<8,R=R+P|0,E^=R,E=E>>>25|E<<7,w=w+T|0,N^=w,N=N>>>16|N<<16,B=B+N|0,T^=B,T=T>>>20|T<<12,_=_+k|0,P^=_,P=P>>>16|P<<16,j=j+P|0,k^=j,k=k>>>20|k<<12,C=C+D|0,O^=C,O=O>>>16|O<<16,R=R+O|0,D^=R,D=D>>>20|D<<12,x=x+E|0,I^=x,I=I>>>16|I<<16,F=F+I|0,E^=F,E=E>>>20|E<<12,C=C+D|0,O^=C,O=O>>>24|O<<8,R=R+O|0,D^=R,D=D>>>25|D<<7,x=x+E|0,I^=x,I=I>>>24|I<<8,F=F+I|0,E^=F,E=E>>>25|E<<7,_=_+k|0,P^=_,P=P>>>24|P<<8,j=j+P|0,k^=j,k=k>>>25|k<<7,w=w+T|0,N^=w,N=N>>>24|N<<8,B=B+N|0,T^=B,T=T>>>25|T<<7;Ar.writeUint32LE(w+r|0,e,0),Ar.writeUint32LE(_+o|0,e,4),Ar.writeUint32LE(C+a|0,e,8),Ar.writeUint32LE(x+i|0,e,12),Ar.writeUint32LE(E+s|0,e,16),Ar.writeUint32LE(T+c|0,e,20),Ar.writeUint32LE(k+l|0,e,24),Ar.writeUint32LE(D+u|0,e,28),Ar.writeUint32LE(R+d|0,e,32),Ar.writeUint32LE(F+f|0,e,36),Ar.writeUint32LE(B+h|0,e,40),Ar.writeUint32LE(j+m|0,e,44),Ar.writeUint32LE(P+p|0,e,48),Ar.writeUint32LE(O+b|0,e,52),Ar.writeUint32LE(I+v|0,e,56),Ar.writeUint32LE(N+g|0,e,60)}function PQ(e,t,n,r,o){if(o===void 0&&(o=0),e.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(r.length>>=8,t++;if(r>0)throw new Error("ChaCha: counter overflow")}var IQ={},kl={};Object.defineProperty(kl,"__esModule",{value:!0});function U2e(e,t,n){return~(e-1)&t|e-1&n}kl.select=U2e;function $2e(e,t){return(e|0)-(t|0)-1>>>31&1}kl.lessOrEqual=$2e;function OQ(e,t){if(e.length!==t.length)return 0;for(var n=0,r=0;r>>8}kl.compare=OQ;function z2e(e,t){return e.length===0||t.length===0?!1:OQ(e,t)!==0}kl.equal=z2e;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=kl,n=si;e.DIGEST_LENGTH=16;var r=function(){function i(s){this.digestLength=e.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var c=s[0]|s[1]<<8;this._r[0]=c&8191;var l=s[2]|s[3]<<8;this._r[1]=(c>>>13|l<<3)&8191;var u=s[4]|s[5]<<8;this._r[2]=(l>>>10|u<<6)&7939;var d=s[6]|s[7]<<8;this._r[3]=(u>>>7|d<<9)&8191;var f=s[8]|s[9]<<8;this._r[4]=(d>>>4|f<<12)&255,this._r[5]=f>>>1&8190;var h=s[10]|s[11]<<8;this._r[6]=(f>>>14|h<<2)&8191;var m=s[12]|s[13]<<8;this._r[7]=(h>>>11|m<<5)&8065;var p=s[14]|s[15]<<8;this._r[8]=(m>>>8|p<<8)&8191,this._r[9]=p>>>5&127,this._pad[0]=s[16]|s[17]<<8,this._pad[1]=s[18]|s[19]<<8,this._pad[2]=s[20]|s[21]<<8,this._pad[3]=s[22]|s[23]<<8,this._pad[4]=s[24]|s[25]<<8,this._pad[5]=s[26]|s[27]<<8,this._pad[6]=s[28]|s[29]<<8,this._pad[7]=s[30]|s[31]<<8}return i.prototype._blocks=function(s,c,l){for(var u=this._fin?0:2048,d=this._h[0],f=this._h[1],h=this._h[2],m=this._h[3],p=this._h[4],b=this._h[5],v=this._h[6],g=this._h[7],w=this._h[8],_=this._h[9],C=this._r[0],x=this._r[1],E=this._r[2],T=this._r[3],k=this._r[4],D=this._r[5],R=this._r[6],F=this._r[7],B=this._r[8],j=this._r[9];l>=16;){var P=s[c+0]|s[c+1]<<8;d+=P&8191;var O=s[c+2]|s[c+3]<<8;f+=(P>>>13|O<<3)&8191;var I=s[c+4]|s[c+5]<<8;h+=(O>>>10|I<<6)&8191;var N=s[c+6]|s[c+7]<<8;m+=(I>>>7|N<<9)&8191;var M=s[c+8]|s[c+9]<<8;p+=(N>>>4|M<<12)&8191,b+=M>>>1&8191;var L=s[c+10]|s[c+11]<<8;v+=(M>>>14|L<<2)&8191;var X=s[c+12]|s[c+13]<<8;g+=(L>>>11|X<<5)&8191;var J=s[c+14]|s[c+15]<<8;w+=(X>>>8|J<<8)&8191,_+=J>>>5|u;var U=0,G=U;G+=d*C,G+=f*(5*j),G+=h*(5*B),G+=m*(5*F),G+=p*(5*R),U=G>>>13,G&=8191,G+=b*(5*D),G+=v*(5*k),G+=g*(5*T),G+=w*(5*E),G+=_*(5*x),U+=G>>>13,G&=8191;var Z=U;Z+=d*x,Z+=f*C,Z+=h*(5*j),Z+=m*(5*B),Z+=p*(5*F),U=Z>>>13,Z&=8191,Z+=b*(5*R),Z+=v*(5*D),Z+=g*(5*k),Z+=w*(5*T),Z+=_*(5*E),U+=Z>>>13,Z&=8191;var ae=U;ae+=d*E,ae+=f*x,ae+=h*C,ae+=m*(5*j),ae+=p*(5*B),U=ae>>>13,ae&=8191,ae+=b*(5*F),ae+=v*(5*R),ae+=g*(5*D),ae+=w*(5*k),ae+=_*(5*T),U+=ae>>>13,ae&=8191;var ne=U;ne+=d*T,ne+=f*E,ne+=h*x,ne+=m*C,ne+=p*(5*j),U=ne>>>13,ne&=8191,ne+=b*(5*B),ne+=v*(5*F),ne+=g*(5*R),ne+=w*(5*D),ne+=_*(5*k),U+=ne>>>13,ne&=8191;var ie=U;ie+=d*k,ie+=f*T,ie+=h*E,ie+=m*x,ie+=p*C,U=ie>>>13,ie&=8191,ie+=b*(5*j),ie+=v*(5*B),ie+=g*(5*F),ie+=w*(5*R),ie+=_*(5*D),U+=ie>>>13,ie&=8191;var te=U;te+=d*D,te+=f*k,te+=h*T,te+=m*E,te+=p*x,U=te>>>13,te&=8191,te+=b*C,te+=v*(5*j),te+=g*(5*B),te+=w*(5*F),te+=_*(5*R),U+=te>>>13,te&=8191;var ee=U;ee+=d*R,ee+=f*D,ee+=h*k,ee+=m*T,ee+=p*E,U=ee>>>13,ee&=8191,ee+=b*x,ee+=v*C,ee+=g*(5*j),ee+=w*(5*B),ee+=_*(5*F),U+=ee>>>13,ee&=8191;var re=U;re+=d*F,re+=f*R,re+=h*D,re+=m*k,re+=p*T,U=re>>>13,re&=8191,re+=b*E,re+=v*x,re+=g*C,re+=w*(5*j),re+=_*(5*B),U+=re>>>13,re&=8191;var z=U;z+=d*B,z+=f*F,z+=h*R,z+=m*D,z+=p*k,U=z>>>13,z&=8191,z+=b*T,z+=v*E,z+=g*x,z+=w*C,z+=_*(5*j),U+=z>>>13,z&=8191;var fe=U;fe+=d*j,fe+=f*B,fe+=h*F,fe+=m*R,fe+=p*D,U=fe>>>13,fe&=8191,fe+=b*k,fe+=v*T,fe+=g*E,fe+=w*x,fe+=_*C,U+=fe>>>13,fe&=8191,U=(U<<2)+U|0,U=U+G|0,G=U&8191,U=U>>>13,Z+=U,d=G,f=Z,h=ae,m=ne,p=ie,b=te,v=ee,g=re,w=z,_=fe,c+=16,l-=16}this._h[0]=d,this._h[1]=f,this._h[2]=h,this._h[3]=m,this._h[4]=p,this._h[5]=b,this._h[6]=v,this._h[7]=g,this._h[8]=w,this._h[9]=_},i.prototype.finish=function(s,c){c===void 0&&(c=0);var l=new Uint16Array(10),u,d,f,h;if(this._leftover){for(h=this._leftover,this._buffer[h++]=1;h<16;h++)this._buffer[h]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(u=this._h[1]>>>13,this._h[1]&=8191,h=2;h<10;h++)this._h[h]+=u,u=this._h[h]>>>13,this._h[h]&=8191;for(this._h[0]+=u*5,u=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=u,u=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=u,l[0]=this._h[0]+5,u=l[0]>>>13,l[0]&=8191,h=1;h<10;h++)l[h]=this._h[h]+u,u=l[h]>>>13,l[h]&=8191;for(l[9]-=8192,d=(u^1)-1,h=0;h<10;h++)l[h]&=d;for(d=~d,h=0;h<10;h++)this._h[h]=this._h[h]&d|l[h];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,f=this._h[0]+this._pad[0],this._h[0]=f&65535,h=1;h<8;h++)f=(this._h[h]+this._pad[h]|0)+(f>>>16)|0,this._h[h]=f&65535;return s[c+0]=this._h[0]>>>0,s[c+1]=this._h[0]>>>8,s[c+2]=this._h[1]>>>0,s[c+3]=this._h[1]>>>8,s[c+4]=this._h[2]>>>0,s[c+5]=this._h[2]>>>8,s[c+6]=this._h[3]>>>0,s[c+7]=this._h[3]>>>8,s[c+8]=this._h[4]>>>0,s[c+9]=this._h[4]>>>8,s[c+10]=this._h[5]>>>0,s[c+11]=this._h[5]>>>8,s[c+12]=this._h[6]>>>0,s[c+13]=this._h[6]>>>8,s[c+14]=this._h[7]>>>0,s[c+15]=this._h[7]>>>8,this._finished=!0,this},i.prototype.update=function(s){var c=0,l=s.length,u;if(this._leftover){u=16-this._leftover,u>l&&(u=l);for(var d=0;d=16&&(u=l-l%16,this._blocks(s,c,u),c+=u,l-=u),l){for(var d=0;d16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var h=new Uint8Array(16);h.set(l,h.length-l.length);var m=new Uint8Array(32);t.stream(this._key,h,m,4);var p=u.length+this.tagLength,b;if(f){if(f.length!==p)throw new Error("ChaCha20Poly1305: incorrect destination length");b=f}else b=new Uint8Array(p);return t.streamXOR(this._key,h,u,b,4),this._authenticate(b.subarray(b.length-this.tagLength,b.length),m,b.subarray(0,b.length-this.tagLength),d),r.wipe(h),b},c.prototype.open=function(l,u,d,f){if(l.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(u.length0&&h.update(i.subarray(f.length%16))),h.update(d),d.length%16>0&&h.update(i.subarray(d.length%16));var m=new Uint8Array(8);f&&o.writeUint64LE(f.length,m),h.update(m),o.writeUint64LE(d.length,m),h.update(m);for(var p=h.digest(),b=0;bthis.blockSize?this._inner.update(n).finish(r).clean():r.set(n);for(var o=0;o1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(t){for(var n=new Uint8Array(t),r=0;r256)throw new Error("randomString charset is too long");let f="";const h=u.length,m=256-256%h;for(;l>0;){const p=o(Math.ceil(l*256/m),d);for(let b=0;b0;b++){const v=p[b];v0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=c[u++],l--;this._bufferLength===this.blockSize&&(a(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(l>=this.blockSize&&(u=a(this._temp,this._state,c,u,l),l%=this.blockSize);l>0;)this._buffer[this._bufferLength++]=c[u++],l--;return this},s.prototype.finish=function(c){if(!this._finished){var l=this._bytesHashed,u=this._bufferLength,d=l/536870912|0,f=l<<3,h=l%64<56?64:128;this._buffer[u]=128;for(var m=u+1;m0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},s.prototype.restoreState=function(c){return this._state.set(c.state),this._bufferLength=c.bufferLength,c.buffer&&this._buffer.set(c.buffer),this._bytesHashed=c.bytesHashed,this._finished=!1,this},s.prototype.cleanSavedState=function(c){n.wipe(c.state),c.buffer&&n.wipe(c.buffer),c.bufferLength=0,c.bytesHashed=0},s}();e.SHA256=r;var o=new Int32Array([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]);function a(s,c,l,u,d){for(;d>=64;){for(var f=c[0],h=c[1],m=c[2],p=c[3],b=c[4],v=c[5],g=c[6],w=c[7],_=0;_<16;_++){var C=u+_*4;s[_]=t.readUint32BE(l,C)}for(var _=16;_<64;_++){var x=s[_-2],E=(x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10;x=s[_-15];var T=(x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3;s[_]=(E+s[_-7]|0)+(T+s[_-16]|0)}for(var _=0;_<64;_++){var E=(((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&v^~b&g)|0)+(w+(o[_]+s[_]|0)|0)|0,T=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&h^f&m^h&m)|0;w=g,g=v,v=b,b=p+E|0,p=m,m=h,h=f,f=E+T|0}c[0]+=f,c[1]+=h,c[2]+=m,c[3]+=p,c[4]+=b,c[5]+=v,c[6]+=g,c[7]+=w,u+=64,d-=64}return u}function i(s){var c=new r;c.update(s);var l=c.digest();return c.clean(),l}e.hash=i})(s2);var j4={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sharedKey=e.generateKeyPair=e.generateKeyPairFromSeed=e.scalarMultBase=e.scalarMult=e.SHARED_KEY_LENGTH=e.SECRET_KEY_LENGTH=e.PUBLIC_KEY_LENGTH=void 0;const t=r2,n=si;e.PUBLIC_KEY_LENGTH=32,e.SECRET_KEY_LENGTH=32,e.SHARED_KEY_LENGTH=32;function r(_){const C=new Float64Array(16);if(_)for(let x=0;x<_.length;x++)C[x]=_[x];return C}const o=new Uint8Array(32);o[0]=9;const a=r([56129,1]);function i(_){let C=1;for(let x=0;x<16;x++){let E=_[x]+C+65535;C=Math.floor(E/65536),_[x]=E-C*65536}_[0]+=C-1+37*(C-1)}function s(_,C,x){const E=~(x-1);for(let T=0;T<16;T++){const k=E&(_[T]^C[T]);_[T]^=k,C[T]^=k}}function c(_,C){const x=r(),E=r();for(let T=0;T<16;T++)E[T]=C[T];i(E),i(E),i(E);for(let T=0;T<2;T++){x[0]=E[0]-65517;for(let D=1;D<15;D++)x[D]=E[D]-65535-(x[D-1]>>16&1),x[D-1]&=65535;x[15]=E[15]-32767-(x[14]>>16&1);const k=x[15]>>16&1;x[14]&=65535,s(E,x,1-k)}for(let T=0;T<16;T++)_[2*T]=E[T]&255,_[2*T+1]=E[T]>>8}function l(_,C){for(let x=0;x<16;x++)_[x]=C[2*x]+(C[2*x+1]<<8);_[15]&=32767}function u(_,C,x){for(let E=0;E<16;E++)_[E]=C[E]+x[E]}function d(_,C,x){for(let E=0;E<16;E++)_[E]=C[E]-x[E]}function f(_,C,x){let E,T,k=0,D=0,R=0,F=0,B=0,j=0,P=0,O=0,I=0,N=0,M=0,L=0,X=0,J=0,U=0,G=0,Z=0,ae=0,ne=0,ie=0,te=0,ee=0,re=0,z=0,fe=0,ve=0,Ue=0,ke=0,Qe=0,Te=0,Ee=0,he=x[0],Me=x[1],ge=x[2],Y=x[3],W=x[4],Q=x[5],ce=x[6],pe=x[7],De=x[8],Ie=x[9],Je=x[10],Oe=x[11],_e=x[12],at=x[13],Ft=x[14],Lt=x[15];E=C[0],k+=E*he,D+=E*Me,R+=E*ge,F+=E*Y,B+=E*W,j+=E*Q,P+=E*ce,O+=E*pe,I+=E*De,N+=E*Ie,M+=E*Je,L+=E*Oe,X+=E*_e,J+=E*at,U+=E*Ft,G+=E*Lt,E=C[1],D+=E*he,R+=E*Me,F+=E*ge,B+=E*Y,j+=E*W,P+=E*Q,O+=E*ce,I+=E*pe,N+=E*De,M+=E*Ie,L+=E*Je,X+=E*Oe,J+=E*_e,U+=E*at,G+=E*Ft,Z+=E*Lt,E=C[2],R+=E*he,F+=E*Me,B+=E*ge,j+=E*Y,P+=E*W,O+=E*Q,I+=E*ce,N+=E*pe,M+=E*De,L+=E*Ie,X+=E*Je,J+=E*Oe,U+=E*_e,G+=E*at,Z+=E*Ft,ae+=E*Lt,E=C[3],F+=E*he,B+=E*Me,j+=E*ge,P+=E*Y,O+=E*W,I+=E*Q,N+=E*ce,M+=E*pe,L+=E*De,X+=E*Ie,J+=E*Je,U+=E*Oe,G+=E*_e,Z+=E*at,ae+=E*Ft,ne+=E*Lt,E=C[4],B+=E*he,j+=E*Me,P+=E*ge,O+=E*Y,I+=E*W,N+=E*Q,M+=E*ce,L+=E*pe,X+=E*De,J+=E*Ie,U+=E*Je,G+=E*Oe,Z+=E*_e,ae+=E*at,ne+=E*Ft,ie+=E*Lt,E=C[5],j+=E*he,P+=E*Me,O+=E*ge,I+=E*Y,N+=E*W,M+=E*Q,L+=E*ce,X+=E*pe,J+=E*De,U+=E*Ie,G+=E*Je,Z+=E*Oe,ae+=E*_e,ne+=E*at,ie+=E*Ft,te+=E*Lt,E=C[6],P+=E*he,O+=E*Me,I+=E*ge,N+=E*Y,M+=E*W,L+=E*Q,X+=E*ce,J+=E*pe,U+=E*De,G+=E*Ie,Z+=E*Je,ae+=E*Oe,ne+=E*_e,ie+=E*at,te+=E*Ft,ee+=E*Lt,E=C[7],O+=E*he,I+=E*Me,N+=E*ge,M+=E*Y,L+=E*W,X+=E*Q,J+=E*ce,U+=E*pe,G+=E*De,Z+=E*Ie,ae+=E*Je,ne+=E*Oe,ie+=E*_e,te+=E*at,ee+=E*Ft,re+=E*Lt,E=C[8],I+=E*he,N+=E*Me,M+=E*ge,L+=E*Y,X+=E*W,J+=E*Q,U+=E*ce,G+=E*pe,Z+=E*De,ae+=E*Ie,ne+=E*Je,ie+=E*Oe,te+=E*_e,ee+=E*at,re+=E*Ft,z+=E*Lt,E=C[9],N+=E*he,M+=E*Me,L+=E*ge,X+=E*Y,J+=E*W,U+=E*Q,G+=E*ce,Z+=E*pe,ae+=E*De,ne+=E*Ie,ie+=E*Je,te+=E*Oe,ee+=E*_e,re+=E*at,z+=E*Ft,fe+=E*Lt,E=C[10],M+=E*he,L+=E*Me,X+=E*ge,J+=E*Y,U+=E*W,G+=E*Q,Z+=E*ce,ae+=E*pe,ne+=E*De,ie+=E*Ie,te+=E*Je,ee+=E*Oe,re+=E*_e,z+=E*at,fe+=E*Ft,ve+=E*Lt,E=C[11],L+=E*he,X+=E*Me,J+=E*ge,U+=E*Y,G+=E*W,Z+=E*Q,ae+=E*ce,ne+=E*pe,ie+=E*De,te+=E*Ie,ee+=E*Je,re+=E*Oe,z+=E*_e,fe+=E*at,ve+=E*Ft,Ue+=E*Lt,E=C[12],X+=E*he,J+=E*Me,U+=E*ge,G+=E*Y,Z+=E*W,ae+=E*Q,ne+=E*ce,ie+=E*pe,te+=E*De,ee+=E*Ie,re+=E*Je,z+=E*Oe,fe+=E*_e,ve+=E*at,Ue+=E*Ft,ke+=E*Lt,E=C[13],J+=E*he,U+=E*Me,G+=E*ge,Z+=E*Y,ae+=E*W,ne+=E*Q,ie+=E*ce,te+=E*pe,ee+=E*De,re+=E*Ie,z+=E*Je,fe+=E*Oe,ve+=E*_e,Ue+=E*at,ke+=E*Ft,Qe+=E*Lt,E=C[14],U+=E*he,G+=E*Me,Z+=E*ge,ae+=E*Y,ne+=E*W,ie+=E*Q,te+=E*ce,ee+=E*pe,re+=E*De,z+=E*Ie,fe+=E*Je,ve+=E*Oe,Ue+=E*_e,ke+=E*at,Qe+=E*Ft,Te+=E*Lt,E=C[15],G+=E*he,Z+=E*Me,ae+=E*ge,ne+=E*Y,ie+=E*W,te+=E*Q,ee+=E*ce,re+=E*pe,z+=E*De,fe+=E*Ie,ve+=E*Je,Ue+=E*Oe,ke+=E*_e,Qe+=E*at,Te+=E*Ft,Ee+=E*Lt,k+=38*Z,D+=38*ae,R+=38*ne,F+=38*ie,B+=38*te,j+=38*ee,P+=38*re,O+=38*z,I+=38*fe,N+=38*ve,M+=38*Ue,L+=38*ke,X+=38*Qe,J+=38*Te,U+=38*Ee,T=1,E=k+T+65535,T=Math.floor(E/65536),k=E-T*65536,E=D+T+65535,T=Math.floor(E/65536),D=E-T*65536,E=R+T+65535,T=Math.floor(E/65536),R=E-T*65536,E=F+T+65535,T=Math.floor(E/65536),F=E-T*65536,E=B+T+65535,T=Math.floor(E/65536),B=E-T*65536,E=j+T+65535,T=Math.floor(E/65536),j=E-T*65536,E=P+T+65535,T=Math.floor(E/65536),P=E-T*65536,E=O+T+65535,T=Math.floor(E/65536),O=E-T*65536,E=I+T+65535,T=Math.floor(E/65536),I=E-T*65536,E=N+T+65535,T=Math.floor(E/65536),N=E-T*65536,E=M+T+65535,T=Math.floor(E/65536),M=E-T*65536,E=L+T+65535,T=Math.floor(E/65536),L=E-T*65536,E=X+T+65535,T=Math.floor(E/65536),X=E-T*65536,E=J+T+65535,T=Math.floor(E/65536),J=E-T*65536,E=U+T+65535,T=Math.floor(E/65536),U=E-T*65536,E=G+T+65535,T=Math.floor(E/65536),G=E-T*65536,k+=T-1+37*(T-1),T=1,E=k+T+65535,T=Math.floor(E/65536),k=E-T*65536,E=D+T+65535,T=Math.floor(E/65536),D=E-T*65536,E=R+T+65535,T=Math.floor(E/65536),R=E-T*65536,E=F+T+65535,T=Math.floor(E/65536),F=E-T*65536,E=B+T+65535,T=Math.floor(E/65536),B=E-T*65536,E=j+T+65535,T=Math.floor(E/65536),j=E-T*65536,E=P+T+65535,T=Math.floor(E/65536),P=E-T*65536,E=O+T+65535,T=Math.floor(E/65536),O=E-T*65536,E=I+T+65535,T=Math.floor(E/65536),I=E-T*65536,E=N+T+65535,T=Math.floor(E/65536),N=E-T*65536,E=M+T+65535,T=Math.floor(E/65536),M=E-T*65536,E=L+T+65535,T=Math.floor(E/65536),L=E-T*65536,E=X+T+65535,T=Math.floor(E/65536),X=E-T*65536,E=J+T+65535,T=Math.floor(E/65536),J=E-T*65536,E=U+T+65535,T=Math.floor(E/65536),U=E-T*65536,E=G+T+65535,T=Math.floor(E/65536),G=E-T*65536,k+=T-1+37*(T-1),_[0]=k,_[1]=D,_[2]=R,_[3]=F,_[4]=B,_[5]=j,_[6]=P,_[7]=O,_[8]=I,_[9]=N,_[10]=M,_[11]=L,_[12]=X,_[13]=J,_[14]=U,_[15]=G}function h(_,C){f(_,C,C)}function m(_,C){const x=r();for(let E=0;E<16;E++)x[E]=C[E];for(let E=253;E>=0;E--)h(x,x),E!==2&&E!==4&&f(x,x,C);for(let E=0;E<16;E++)_[E]=x[E]}function p(_,C){const x=new Uint8Array(32),E=new Float64Array(80),T=r(),k=r(),D=r(),R=r(),F=r(),B=r();for(let I=0;I<31;I++)x[I]=_[I];x[31]=_[31]&127|64,x[0]&=248,l(E,C);for(let I=0;I<16;I++)k[I]=E[I];T[0]=R[0]=1;for(let I=254;I>=0;--I){const N=x[I>>>3]>>>(I&7)&1;s(T,k,N),s(D,R,N),u(F,T,D),d(T,T,D),u(D,k,R),d(k,k,R),h(R,F),h(B,T),f(T,D,T),f(D,k,F),u(F,T,D),d(T,T,D),h(k,T),d(D,R,B),f(T,D,a),u(T,T,R),f(D,D,T),f(T,R,B),f(R,k,E),h(k,F),s(T,k,N),s(D,R,N)}for(let I=0;I<16;I++)E[I+16]=T[I],E[I+32]=D[I],E[I+48]=k[I],E[I+64]=R[I];const j=E.subarray(32),P=E.subarray(16);m(j,j),f(P,P,j);const O=new Uint8Array(32);return c(O,P),O}e.scalarMult=p;function b(_){return p(_,o)}e.scalarMultBase=b;function v(_){if(_.length!==e.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${e.SECRET_KEY_LENGTH} bytes`);const C=new Uint8Array(_);return{publicKey:b(C),secretKey:C}}e.generateKeyPairFromSeed=v;function g(_){const C=(0,t.randomBytes)(32,_),x=v(C);return(0,n.wipe)(C),x}e.generateKeyPair=g;function w(_,C,x=!1){if(_.length!==e.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(C.length!==e.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const E=p(_,C);if(x){let T=0;for(let k=0;ko+a.length,0));const n=BQ(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return P4(n)}function aCe(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,_=new Uint8Array(w);v!==g;){for(var C=m[v],x=0,E=w-1;(C!==0||x>>0,_[E]=C%s>>>0,C=C/s>>>0;if(C!==0)throw new Error("Non-zero carry");b=x,v++}for(var T=w-b;T!==w&&_[T]===0;)T++;for(var k=c.repeat(p);T>>0,w=new Uint8Array(g);m[p];){var _=n[m.charCodeAt(p)];if(_===255)return;for(var C=0,x=g-1;(_!==0||C>>0,w[x]=_%256>>>0,_=_/256>>>0;if(_!==0)throw new Error("Non-zero carry");v=C,p++}if(m[p]!==" "){for(var E=g-v;E!==g&&w[E]===0;)E++;for(var T=new Uint8Array(b+(g-E)),k=b;E!==g;)T[k++]=w[E++];return T}}}function h(m){var p=f(m);if(p)return p;throw new Error(`Non-${t} character`)}return{encode:d,decodeUnsafe:f,decode:h}}var iCe=aCe,sCe=iCe;const cCe=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},lCe=e=>new TextEncoder().encode(e),uCe=e=>new TextDecoder().decode(e);class dCe{constructor(t,n,r){this.name=t,this.prefix=n,this.baseEncode=r}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class fCe{constructor(t,n,r){if(this.name=t,this.prefix=n,n.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=n.codePointAt(0),this.baseDecode=r}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return FQ(this,t)}}class hCe{constructor(t){this.decoders=t}or(t){return FQ(this,t)}decode(t){const n=t[0],r=this.decoders[n];if(r)return r.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const FQ=(e,t)=>new hCe({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class mCe{constructor(t,n,r,o){this.name=t,this.prefix=n,this.baseEncode=r,this.baseDecode=o,this.encoder=new dCe(t,n,r),this.decoder=new fCe(t,n,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const c2=({name:e,prefix:t,encode:n,decode:r})=>new mCe(e,t,n,r),xy=({prefix:e,name:t,alphabet:n})=>{const{encode:r,decode:o}=sCe(n,t);return c2({prefix:e,name:t,encode:r,decode:a=>cCe(o(a))})},pCe=(e,t,n,r)=>{const o={};for(let u=0;u=8&&(s-=8,i[l++]=255&c>>s)}if(s>=n||255&c<<8-s)throw new SyntaxError("Unexpected end of data");return i},gCe=(e,t,n)=>{const r=t[t.length-1]==="=",o=(1<n;)i-=n,a+=t[o&s>>i];if(i&&(a+=t[o&s<c2({prefix:t,name:e,encode(o){return gCe(o,r,n)},decode(o){return pCe(o,r,n,e)}}),yCe=c2({prefix:"\0",name:"identity",encode:e=>uCe(e),decode:e=>lCe(e)}),bCe=Object.freeze(Object.defineProperty({__proto__:null,identity:yCe},Symbol.toStringTag,{value:"Module"})),vCe=_r({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),wCe=Object.freeze(Object.defineProperty({__proto__:null,base2:vCe},Symbol.toStringTag,{value:"Module"})),ECe=_r({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),_Ce=Object.freeze(Object.defineProperty({__proto__:null,base8:ECe},Symbol.toStringTag,{value:"Module"})),xCe=xy({prefix:"9",name:"base10",alphabet:"0123456789"}),CCe=Object.freeze(Object.defineProperty({__proto__:null,base10:xCe},Symbol.toStringTag,{value:"Module"})),SCe=_r({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),TCe=_r({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),ACe=Object.freeze(Object.defineProperty({__proto__:null,base16:SCe,base16upper:TCe},Symbol.toStringTag,{value:"Module"})),DCe=_r({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),kCe=_r({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),jCe=_r({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),PCe=_r({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),ICe=_r({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),OCe=_r({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),RCe=_r({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),NCe=_r({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),BCe=_r({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),FCe=Object.freeze(Object.defineProperty({__proto__:null,base32:DCe,base32hex:ICe,base32hexpad:RCe,base32hexpadupper:NCe,base32hexupper:OCe,base32pad:jCe,base32padupper:PCe,base32upper:kCe,base32z:BCe},Symbol.toStringTag,{value:"Module"})),MCe=xy({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),LCe=xy({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),UCe=Object.freeze(Object.defineProperty({__proto__:null,base36:MCe,base36upper:LCe},Symbol.toStringTag,{value:"Module"})),$Ce=xy({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),zCe=xy({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),HCe=Object.freeze(Object.defineProperty({__proto__:null,base58btc:$Ce,base58flickr:zCe},Symbol.toStringTag,{value:"Module"})),qCe=_r({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),WCe=_r({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),GCe=_r({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),VCe=_r({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),KCe=Object.freeze(Object.defineProperty({__proto__:null,base64:qCe,base64pad:WCe,base64url:GCe,base64urlpad:VCe},Symbol.toStringTag,{value:"Module"})),MQ=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),YCe=MQ.reduce((e,t,n)=>(e[n]=t,e),[]),QCe=MQ.reduce((e,t,n)=>(e[t.codePointAt(0)]=n,e),[]);function XCe(e){return e.reduce((t,n)=>(t+=YCe[n],t),"")}function JCe(e){const t=[];for(const n of e){const r=QCe[n.codePointAt(0)];if(r===void 0)throw new Error(`Non-base256emoji character: ${n}`);t.push(r)}return new Uint8Array(t)}const ZCe=c2({prefix:"🚀",name:"base256emoji",encode:XCe,decode:JCe}),e6e=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:ZCe},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const c9={...bCe,...wCe,..._Ce,...CCe,...ACe,...FCe,...UCe,...HCe,...KCe,...e6e};function LQ(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const l9=LQ("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),x3=LQ("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=BQ(e.length);for(let n=0;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new a6e:typeof navigator<"u"?h9(navigator.userAgent):f6e()}function u6e(e){return e!==""&&c6e.reduce(function(t,n){var r=n[0],o=n[1];if(t)return t;var a=o.exec(e);return!!a&&[r,a]},!1)}function h9(e){var t=u6e(e);if(!t)return null;var n=t[0],r=t[1];if(n==="searchbot")return new o6e;var o=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);o?o.length=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function y6e(e,t){return function(n,r){t(n,r,e)}}function b6e(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function v6e(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function s(u){try{l(r.next(u))}catch(d){i(d)}}function c(u){try{l(r.throw(u))}catch(d){i(d)}}function l(u){u.done?a(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})}function w6e(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $Q(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function x6e(){for(var e=[],t=0;t1||s(f,h)})})}function s(f,h){try{c(r[f](h))}catch(m){d(a[0][3],m)}}function c(f){f.value instanceof bg?Promise.resolve(f.value.v).then(l,u):d(a[0][2],f)}function l(f){s("next",f)}function u(f){s("throw",f)}function d(f,h){f(h),a.shift(),a.length&&s(a[0][0],a[0][1])}}function T6e(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,a){t[o]=e[o]?function(i){return(n=!n)?{value:bg(e[o](i)),done:o==="return"}:a?a(i):i}:a}}function A6e(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof PD=="function"?PD(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(i){return new Promise(function(s,c){i=e[a](i),o(s,c,i.done,i.value)})}}function o(a,i,s,c){Promise.resolve(c).then(function(l){a({value:l,done:s})},i)}}function D6e(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function k6e(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function j6e(e){return e&&e.__esModule?e:{default:e}}function P6e(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I6e(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}const O6e=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return jD},__asyncDelegator:T6e,__asyncGenerator:S6e,__asyncValues:A6e,__await:bg,__awaiter:v6e,__classPrivateFieldGet:P6e,__classPrivateFieldSet:I6e,__createBinding:E6e,__decorate:g6e,__exportStar:_6e,__extends:m6e,__generator:w6e,__importDefault:j6e,__importStar:k6e,__makeTemplateObject:D6e,__metadata:b6e,__param:y6e,__read:$Q,__rest:p6e,__spread:x6e,__spreadArrays:C6e,__values:PD},Symbol.toStringTag,{value:"Module"})),l2=Ns(O6e);var C3={},xp={},m9;function R6e(){if(m9)return xp;m9=1,Object.defineProperty(xp,"__esModule",{value:!0}),xp.delay=void 0;function e(t){return new Promise(n=>{setTimeout(()=>{n(!0)},t)})}return xp.delay=e,xp}var Gl={},S3={},Vl={},p9;function N6e(){return p9||(p9=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.ONE_THOUSAND=Vl.ONE_HUNDRED=void 0,Vl.ONE_HUNDRED=100,Vl.ONE_THOUSAND=1e3),Vl}var T3={},g9;function B6e(){return g9||(g9=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_YEAR=e.FOUR_WEEKS=e.THREE_WEEKS=e.TWO_WEEKS=e.ONE_WEEK=e.THIRTY_DAYS=e.SEVEN_DAYS=e.FIVE_DAYS=e.THREE_DAYS=e.ONE_DAY=e.TWENTY_FOUR_HOURS=e.TWELVE_HOURS=e.SIX_HOURS=e.THREE_HOURS=e.ONE_HOUR=e.SIXTY_MINUTES=e.THIRTY_MINUTES=e.TEN_MINUTES=e.FIVE_MINUTES=e.ONE_MINUTE=e.SIXTY_SECONDS=e.THIRTY_SECONDS=e.TEN_SECONDS=e.FIVE_SECONDS=e.ONE_SECOND=void 0,e.ONE_SECOND=1,e.FIVE_SECONDS=5,e.TEN_SECONDS=10,e.THIRTY_SECONDS=30,e.SIXTY_SECONDS=60,e.ONE_MINUTE=e.SIXTY_SECONDS,e.FIVE_MINUTES=e.ONE_MINUTE*5,e.TEN_MINUTES=e.ONE_MINUTE*10,e.THIRTY_MINUTES=e.ONE_MINUTE*30,e.SIXTY_MINUTES=e.ONE_MINUTE*60,e.ONE_HOUR=e.SIXTY_MINUTES,e.THREE_HOURS=e.ONE_HOUR*3,e.SIX_HOURS=e.ONE_HOUR*6,e.TWELVE_HOURS=e.ONE_HOUR*12,e.TWENTY_FOUR_HOURS=e.ONE_HOUR*24,e.ONE_DAY=e.TWENTY_FOUR_HOURS,e.THREE_DAYS=e.ONE_DAY*3,e.FIVE_DAYS=e.ONE_DAY*5,e.SEVEN_DAYS=e.ONE_DAY*7,e.THIRTY_DAYS=e.ONE_DAY*30,e.ONE_WEEK=e.SEVEN_DAYS,e.TWO_WEEKS=e.ONE_WEEK*2,e.THREE_WEEKS=e.ONE_WEEK*3,e.FOUR_WEEKS=e.ONE_WEEK*4,e.ONE_YEAR=e.ONE_DAY*365}(T3)),T3}var y9;function zQ(){return y9||(y9=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=l2;t.__exportStar(N6e(),e),t.__exportStar(B6e(),e)}(S3)),S3}var b9;function F6e(){if(b9)return Gl;b9=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.fromMiliseconds=Gl.toMiliseconds=void 0;const e=zQ();function t(r){return r*e.ONE_THOUSAND}Gl.toMiliseconds=t;function n(r){return Math.floor(r/e.ONE_THOUSAND)}return Gl.fromMiliseconds=n,Gl}var v9;function M6e(){return v9||(v9=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=l2;t.__exportStar(R6e(),e),t.__exportStar(F6e(),e)}(C3)),C3}var Zd={},w9;function L6e(){if(w9)return Zd;w9=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.Watch=void 0;class e{constructor(){this.timestamps=new Map}start(n){if(this.timestamps.has(n))throw new Error(`Watch already started for label: ${n}`);this.timestamps.set(n,{started:Date.now()})}stop(n){const r=this.get(n);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${n}`);const o=Date.now()-r.started;this.timestamps.set(n,{started:r.started,elapsed:o})}get(n){const r=this.timestamps.get(n);if(typeof r>"u")throw new Error(`No timestamp found for label: ${n}`);return r}elapsed(n){const r=this.get(n);return r.elapsed||Date.now()-r.started}}return Zd.Watch=e,Zd.default=e,Zd}var A3={},Cp={},E9;function U6e(){if(E9)return Cp;E9=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.IWatch=void 0;class e{}return Cp.IWatch=e,Cp}var _9;function $6e(){return _9||(_9=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),l2.__exportStar(U6e(),e)}(A3)),A3}(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=l2;t.__exportStar(M6e(),e),t.__exportStar(L6e(),e),t.__exportStar($6e(),e),t.__exportStar(zQ(),e)})(Au);var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});var z6e=Wt.getLocalStorage=aSe=Wt.getLocalStorageOrThrow=rSe=Wt.getCrypto=tSe=Wt.getCryptoOrThrow=HQ=Wt.getLocation=J6e=Wt.getLocationOrThrow=O4=Wt.getNavigator=Y6e=Wt.getNavigatorOrThrow=I4=Wt.getDocument=G6e=Wt.getDocumentOrThrow=q6e=Wt.getFromWindowOrThrow=H6e=Wt.getFromWindow=void 0;function wd(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}var H6e=Wt.getFromWindow=wd;function pm(e){const t=wd(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}var q6e=Wt.getFromWindowOrThrow=pm;function W6e(){return pm("document")}var G6e=Wt.getDocumentOrThrow=W6e;function V6e(){return wd("document")}var I4=Wt.getDocument=V6e;function K6e(){return pm("navigator")}var Y6e=Wt.getNavigatorOrThrow=K6e;function Q6e(){return wd("navigator")}var O4=Wt.getNavigator=Q6e;function X6e(){return pm("location")}var J6e=Wt.getLocationOrThrow=X6e;function Z6e(){return wd("location")}var HQ=Wt.getLocation=Z6e;function eSe(){return pm("crypto")}var tSe=Wt.getCryptoOrThrow=eSe;function nSe(){return wd("crypto")}var rSe=Wt.getCrypto=nSe;function oSe(){return pm("localStorage")}var aSe=Wt.getLocalStorageOrThrow=oSe;function iSe(){return wd("localStorage")}z6e=Wt.getLocalStorage=iSe;var R4={};Object.defineProperty(R4,"__esModule",{value:!0});var qQ=R4.getWindowMetadata=void 0;const x9=Wt;function sSe(){let e,t;try{e=x9.getDocumentOrThrow(),t=x9.getLocationOrThrow()}catch{return null}function n(){const d=e.getElementsByTagName("link"),f=[];for(let h=0;h-1){const b=m.getAttribute("href");if(b)if(b.toLowerCase().indexOf("https:")===-1&&b.toLowerCase().indexOf("http:")===-1&&b.indexOf("//")!==0){let v=t.protocol+"//"+t.host;if(b.indexOf("/")===0)v+=b;else{const g=t.pathname.split("/");g.pop();const w=g.join("/");v+=w+"/"+b}f.push(v)}else if(b.indexOf("//")===0){const v=t.protocol+b;f.push(v)}else f.push(b)}}return f}function r(...d){const f=e.getElementsByTagName("meta");for(let h=0;hm.getAttribute(b)).filter(b=>b?d.includes(b):!1);if(p.length&&p){const b=m.getAttribute("content");if(b)return b}}return""}function o(){let d=r("name","og:site_name","og:title","twitter:title");return d||(d=e.title),d}function a(){return r("description","og:description","twitter:description","keywords")}const i=o(),s=a(),c=t.origin,l=n();return{description:s,url:c,icons:l,name:i}}qQ=R4.getWindowMetadata=sSe;var vg={},cSe=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),WQ="%[a-f0-9]{2}",C9=new RegExp("("+WQ+")|([^%]+?)","gi"),S9=new RegExp("("+WQ+")+","gi");function ID(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],ID(n),ID(r))}function lSe(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(C9)||[],n=1;n{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]},hSe=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),a=0;ag==null,i=Symbol("encodeFragmentIdentifier");function s(g){switch(g.arrayFormat){case"index":return w=>(_,C)=>{const x=_.length;return C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?_:C===null?[..._,[u(w,g),"[",x,"]"].join("")]:[..._,[u(w,g),"[",u(x,g),"]=",u(C,g)].join("")]};case"bracket":return w=>(_,C)=>C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?_:C===null?[..._,[u(w,g),"[]"].join("")]:[..._,[u(w,g),"[]=",u(C,g)].join("")];case"colon-list-separator":return w=>(_,C)=>C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?_:C===null?[..._,[u(w,g),":list="].join("")]:[..._,[u(w,g),":list=",u(C,g)].join("")];case"comma":case"separator":case"bracket-separator":{const w=g.arrayFormat==="bracket-separator"?"[]=":"=";return _=>(C,x)=>x===void 0||g.skipNull&&x===null||g.skipEmptyString&&x===""?C:(x=x===null?"":x,C.length===0?[[u(_,g),w,u(x,g)].join("")]:[[C,u(x,g)].join(g.arrayFormatSeparator)])}default:return w=>(_,C)=>C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?_:C===null?[..._,u(w,g)]:[..._,[u(w,g),"=",u(C,g)].join("")]}}function c(g){let w;switch(g.arrayFormat){case"index":return(_,C,x)=>{if(w=/\[(\d*)\]$/.exec(_),_=_.replace(/\[\d*\]$/,""),!w){x[_]=C;return}x[_]===void 0&&(x[_]={}),x[_][w[1]]=C};case"bracket":return(_,C,x)=>{if(w=/(\[\])$/.exec(_),_=_.replace(/\[\]$/,""),!w){x[_]=C;return}if(x[_]===void 0){x[_]=[C];return}x[_]=[].concat(x[_],C)};case"colon-list-separator":return(_,C,x)=>{if(w=/(:list)$/.exec(_),_=_.replace(/:list$/,""),!w){x[_]=C;return}if(x[_]===void 0){x[_]=[C];return}x[_]=[].concat(x[_],C)};case"comma":case"separator":return(_,C,x)=>{const E=typeof C=="string"&&C.includes(g.arrayFormatSeparator),T=typeof C=="string"&&!E&&d(C,g).includes(g.arrayFormatSeparator);C=T?d(C,g):C;const k=E||T?C.split(g.arrayFormatSeparator).map(D=>d(D,g)):C===null?C:d(C,g);x[_]=k};case"bracket-separator":return(_,C,x)=>{const E=/(\[\])$/.test(_);if(_=_.replace(/\[\]$/,""),!E){x[_]=C&&d(C,g);return}const T=C===null?[]:C.split(g.arrayFormatSeparator).map(k=>d(k,g));if(x[_]===void 0){x[_]=T;return}x[_]=[].concat(x[_],T)};default:return(_,C,x)=>{if(x[_]===void 0){x[_]=C;return}x[_]=[].concat(x[_],C)}}}function l(g){if(typeof g!="string"||g.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(g,w){return w.encode?w.strict?t(g):encodeURIComponent(g):g}function d(g,w){return w.decode?n(g):g}function f(g){return Array.isArray(g)?g.sort():typeof g=="object"?f(Object.keys(g)).sort((w,_)=>Number(w)-Number(_)).map(w=>g[w]):g}function h(g){const w=g.indexOf("#");return w!==-1&&(g=g.slice(0,w)),g}function m(g){let w="";const _=g.indexOf("#");return _!==-1&&(w=g.slice(_)),w}function p(g){g=h(g);const w=g.indexOf("?");return w===-1?"":g.slice(w+1)}function b(g,w){return w.parseNumbers&&!Number.isNaN(Number(g))&&typeof g=="string"&&g.trim()!==""?g=Number(g):w.parseBooleans&&g!==null&&(g.toLowerCase()==="true"||g.toLowerCase()==="false")&&(g=g.toLowerCase()==="true"),g}function v(g,w){w=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},w),l(w.arrayFormatSeparator);const _=c(w),C=Object.create(null);if(typeof g!="string"||(g=g.trim().replace(/^[?#&]/,""),!g))return C;for(const x of g.split("&")){if(x==="")continue;let[E,T]=r(w.decode?x.replace(/\+/g," "):x,"=");T=T===void 0?null:["comma","separator","bracket-separator"].includes(w.arrayFormat)?T:d(T,w),_(d(E,w),T,C)}for(const x of Object.keys(C)){const E=C[x];if(typeof E=="object"&&E!==null)for(const T of Object.keys(E))E[T]=b(E[T],w);else C[x]=b(E,w)}return w.sort===!1?C:(w.sort===!0?Object.keys(C).sort():Object.keys(C).sort(w.sort)).reduce((x,E)=>{const T=C[E];return T&&typeof T=="object"&&!Array.isArray(T)?x[E]=f(T):x[E]=T,x},Object.create(null))}e.extract=p,e.parse=v,e.stringify=(g,w)=>{if(!g)return"";w=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},w),l(w.arrayFormatSeparator);const _=T=>w.skipNull&&a(g[T])||w.skipEmptyString&&g[T]==="",C=s(w),x={};for(const T of Object.keys(g))_(T)||(x[T]=g[T]);const E=Object.keys(x);return w.sort!==!1&&E.sort(w.sort),E.map(T=>{const k=g[T];return k===void 0?"":k===null?u(T,w):Array.isArray(k)?k.length===0&&w.arrayFormat==="bracket-separator"?u(T,w)+"[]":k.reduce(C(T),[]).join("&"):u(T,w)+"="+u(k,w)}).filter(T=>T.length>0).join("&")},e.parseUrl=(g,w)=>{w=Object.assign({decode:!0},w);const[_,C]=r(g,"#");return Object.assign({url:_.split("?")[0]||"",query:v(p(g),w)},w&&w.parseFragmentIdentifier&&C?{fragmentIdentifier:d(C,w)}:{})},e.stringifyUrl=(g,w)=>{w=Object.assign({encode:!0,strict:!0,[i]:!0},w);const _=h(g.url).split("?")[0]||"",C=e.extract(g.url),x=e.parse(C,{sort:!1}),E=Object.assign(x,g.query);let T=e.stringify(E,w);T&&(T=`?${T}`);let k=m(g.url);return g.fragmentIdentifier&&(k=`#${w[i]?u(g.fragmentIdentifier,w):g.fragmentIdentifier}`),`${_}${T}${k}`},e.pick=(g,w,_)=>{_=Object.assign({parseFragmentIdentifier:!0,[i]:!1},_);const{url:C,query:x,fragmentIdentifier:E}=e.parseUrl(g,_);return e.stringifyUrl({url:C,query:o(x,w),fragmentIdentifier:E},_)},e.exclude=(g,w,_)=>{const C=Array.isArray(w)?x=>!w.includes(x):(x,E)=>!w(x,E);return e.pick(g,C,_)}})(vg);const mSe={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}},pSe=":";function WYe(e){const[t,n]=e.split(pSe);return{namespace:t,reference:n}}function GYe(e,t=[]){const n=[];return Object.keys(e).forEach(r=>{if(t.length&&!t.includes(r))return;const o=e[r];n.push(...o.accounts)}),n}function GQ(e,t){return e.includes(":")?[e]:t.chains||[]}const VQ="base10",Eo="base16",OD="base64pad",N4="utf8",KQ=0,Cy=1,gSe=0,T9=1,RD=12,B4=32;function VYe(){const e=j4.generateKeyPair();return{privateKey:ai(e.secretKey,Eo),publicKey:ai(e.publicKey,Eo)}}function KYe(){const e=r2.randomBytes(B4);return ai(e,Eo)}function YYe(e,t){const n=j4.sharedKey(Ya(e,Eo),Ya(t,Eo),!0),r=new K2e(s2.SHA256,n).expand(B4);return ai(r,Eo)}function QYe(e){const t=s2.hash(Ya(e,Eo));return ai(t,Eo)}function XYe(e){const t=s2.hash(Ya(e,N4));return ai(t,Eo)}function ySe(e){return Ya(`${e}`,VQ)}function u2(e){return Number(ai(e,VQ))}function JYe(e){const t=ySe(typeof e.type<"u"?e.type:KQ);if(u2(t)===Cy&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const n=typeof e.senderPublicKey<"u"?Ya(e.senderPublicKey,Eo):void 0,r=typeof e.iv<"u"?Ya(e.iv,Eo):r2.randomBytes(RD),o=new D4.ChaCha20Poly1305(Ya(e.symKey,Eo)).seal(r,Ya(e.message,N4));return bSe({type:t,sealed:o,iv:r,senderPublicKey:n})}function ZYe(e){const t=new D4.ChaCha20Poly1305(Ya(e.symKey,Eo)),{sealed:n,iv:r}=YQ(e.encoded),o=t.open(r,n);if(o===null)throw new Error("Failed to decrypt");return ai(o,N4)}function bSe(e){if(u2(e.type)===Cy){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return ai(s9([e.type,e.senderPublicKey,e.iv,e.sealed]),OD)}return ai(s9([e.type,e.iv,e.sealed]),OD)}function YQ(e){const t=Ya(e,OD),n=t.slice(gSe,T9),r=T9;if(u2(n)===Cy){const s=r+B4,c=s+RD,l=t.slice(r,s),u=t.slice(s,c),d=t.slice(c);return{type:n,sealed:d,iv:u,senderPublicKey:l}}const o=r+RD,a=t.slice(r,o),i=t.slice(o);return{type:n,sealed:i,iv:a}}function eQe(e,t){const n=YQ(e);return vSe({type:u2(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?ai(n.senderPublicKey,Eo):void 0,receiverPublicKey:t==null?void 0:t.receiverPublicKey})}function vSe(e){const t=(e==null?void 0:e.type)||KQ;if(t===Cy){if(typeof(e==null?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(e==null?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:e==null?void 0:e.senderPublicKey,receiverPublicKey:e==null?void 0:e.receiverPublicKey}}function tQe(e){return e.type===Cy&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}var wSe=Object.defineProperty,A9=Object.getOwnPropertySymbols,ESe=Object.prototype.hasOwnProperty,_Se=Object.prototype.propertyIsEnumerable,D9=(e,t,n)=>t in e?wSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k9=(e,t)=>{for(var n in t||(t={}))ESe.call(t,n)&&D9(e,n,t[n]);if(A9)for(var n of A9(t))_Se.call(t,n)&&D9(e,n,t[n]);return e};const xSe="ReactNative",zo={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},CSe="js";function QQ(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function Sy(){return!I4()&&!!O4()&&navigator.product===xSe}function d2(){return!QQ()&&!!O4()&&!!I4()}function Ty(){return Sy()?zo.reactNative:QQ()?zo.node:d2()?zo.browser:zo.unknown}function nQe(){var e;try{return Sy()&&typeof global<"u"&&typeof(global==null?void 0:global.Application)<"u"?(e=global.Application)==null?void 0:e.applicationId:void 0}catch{return}}function SSe(e,t){let n=vg.parse(e);return n=k9(k9({},n),t),e=vg.stringify(n),e}function rQe(){return qQ()||{name:"",description:"",url:"",icons:[""]}}function TSe(){if(Ty()===zo.reactNative&&typeof global<"u"&&typeof(global==null?void 0:global.Platform)<"u"){const{OS:n,Version:r}=global.Platform;return[n,r].join("-")}const e=l6e();if(e===null)return"unknown";const t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return e.type==="browser"?[t,e.name,e.version].join("-"):[t,e.version].join("-")}function ASe(){var e;const t=Ty();return t===zo.browser?[t,((e=HQ())==null?void 0:e.host)||"unknown"].join(":"):t}function DSe(e,t,n){const r=TSe(),o=ASe();return[[e,t].join("-"),[CSe,n].join("-"),r,o].join("/")}function oQe({protocol:e,version:t,relayUrl:n,sdkVersion:r,auth:o,projectId:a,useOnCloseEvent:i,bundleId:s}){const c=n.split("?"),l=DSe(e,t,r),u={auth:o,ua:l,projectId:a,useOnCloseEvent:i||void 0,origin:s||void 0},d=SSe(c[1]||"",u);return c[0]+"?"+d}function wu(e,t){return e.filter(n=>t.includes(n)).length===e.length}function aQe(e){return Object.fromEntries(e.entries())}function iQe(e){return new Map(Object.entries(e))}function sQe(e=Au.FIVE_MINUTES,t){const n=Au.toMiliseconds(e||Au.FIVE_MINUTES);let r,o,a;return{resolve:i=>{a&&r&&(clearTimeout(a),r(i))},reject:i=>{a&&o&&(clearTimeout(a),o(i))},done:()=>new Promise((i,s)=>{a=setTimeout(()=>{s(new Error(t))},n),r=i,o=s})}}function cQe(e,t,n){return new Promise(async(r,o)=>{const a=setTimeout(()=>o(new Error(n)),t);try{const i=await e;r(i)}catch(i){o(i)}clearTimeout(a)})}function XQ(e,t){if(typeof t=="string"&&t.startsWith(`${e}:`))return t;if(e.toLowerCase()==="topic"){if(typeof t!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}else if(e.toLowerCase()==="id"){if(typeof t!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${e}`)}function lQe(e){return XQ("topic",e)}function uQe(e){return XQ("id",e)}function dQe(e){const[t,n]=e.split(":"),r={id:void 0,topic:void 0};if(t==="topic"&&typeof n=="string")r.topic=n;else if(t==="id"&&Number.isInteger(Number(n)))r.id=Number(n);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${n}`);return r}function fQe(e,t){return Au.fromMiliseconds(Date.now()+Au.toMiliseconds(e))}function hQe(e){return Date.now()>=Au.toMiliseconds(e)}function mQe(e,t){return`${e}${t?`:${t}`:""}`}function D3(e=[],t=[]){return[...new Set([...e,...t])]}async function pQe({id:e,topic:t,wcDeepLink:n}){try{if(!n)return;const r=typeof n=="string"?JSON.parse(n):n;let o=r==null?void 0:r.href;if(typeof o!="string")return;o.endsWith("/")&&(o=o.slice(0,-1));const a=`${o}/wc?requestId=${e}&sessionTopic=${t}`,i=Ty();i===zo.browser?a.startsWith("https://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,"_self","noreferrer noopener"):i===zo.reactNative&&typeof(global==null?void 0:global.Linking)<"u"&&await global.Linking.openURL(a)}catch(r){console.error(r)}}async function gQe(e,t){try{return await e.getItem(t)||(d2()?localStorage.getItem(t):void 0)}catch(n){console.error(n)}}const kSe="irn";function yQe(e){return(e==null?void 0:e.relay)||{protocol:kSe}}function bQe(e){const t=mSe[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var jSe=Object.defineProperty,j9=Object.getOwnPropertySymbols,PSe=Object.prototype.hasOwnProperty,ISe=Object.prototype.propertyIsEnumerable,P9=(e,t,n)=>t in e?jSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,OSe=(e,t)=>{for(var n in t||(t={}))PSe.call(t,n)&&P9(e,n,t[n]);if(j9)for(var n of j9(t))ISe.call(t,n)&&P9(e,n,t[n]);return e};function RSe(e,t="-"){const n={},r="relay"+t;return Object.keys(e).forEach(o=>{if(o.startsWith(r)){const a=o.replace(r,""),i=e[o];n[a]=i}}),n}function vQe(e){e=e.includes("wc://")?e.replace("wc://",""):e,e=e.includes("wc:")?e.replace("wc:",""):e;const t=e.indexOf(":"),n=e.indexOf("?")!==-1?e.indexOf("?"):void 0,r=e.substring(0,t),o=e.substring(t+1,n).split("@"),a=typeof n<"u"?e.substring(n):"",i=vg.parse(a);return{protocol:r,topic:NSe(o[0]),version:parseInt(o[1],10),symKey:i.symKey,relay:RSe(i)}}function NSe(e){return e.startsWith("//")?e.substring(2):e}function BSe(e,t="-"){const n="relay",r={};return Object.keys(e).forEach(o=>{const a=n+t+o;e[o]&&(r[a]=e[o])}),r}function wQe(e){return`${e.protocol}:${e.topic}@${e.version}?`+vg.stringify(OSe({symKey:e.symKey},BSe(e.relay)))}var FSe=Object.defineProperty,MSe=Object.defineProperties,LSe=Object.getOwnPropertyDescriptors,I9=Object.getOwnPropertySymbols,USe=Object.prototype.hasOwnProperty,$Se=Object.prototype.propertyIsEnumerable,O9=(e,t,n)=>t in e?FSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zSe=(e,t)=>{for(var n in t||(t={}))USe.call(t,n)&&O9(e,n,t[n]);if(I9)for(var n of I9(t))$Se.call(t,n)&&O9(e,n,t[n]);return e},HSe=(e,t)=>MSe(e,LSe(t));function gm(e){const t=[];return e.forEach(n=>{const[r,o]=n.split(":");t.push(`${r}:${o}`)}),t}function qSe(e){const t=[];return Object.values(e).forEach(n=>{t.push(...gm(n.accounts))}),t}function WSe(e,t){const n=[];return Object.values(e).forEach(r=>{gm(r.accounts).includes(t)&&n.push(...r.methods)}),n}function GSe(e,t){const n=[];return Object.values(e).forEach(r=>{gm(r.accounts).includes(t)&&n.push(...r.events)}),n}function EQe(e,t){const n=n3e(e,t);if(n)throw new Error(n.message);const r={};for(const[o,a]of Object.entries(e))r[o]={methods:a.methods,events:a.events,chains:a.accounts.map(i=>`${i.split(":")[0]}:${i.split(":")[1]}`)};return r}function JQ(e){return e.includes(":")}function VSe(e){return JQ(e)?e.split(":")[0]:e}function ZQ(e){var t,n,r;const o={};if(!F4(e))return o;for(const[a,i]of Object.entries(e)){const s=JQ(a)?[a]:i.chains,c=i.methods||[],l=i.events||[],u=VSe(a);o[u]=HSe(zSe({},o[u]),{chains:D3(s,(t=o[u])==null?void 0:t.chains),methods:D3(c,(n=o[u])==null?void 0:n.methods),events:D3(l,(r=o[u])==null?void 0:r.events)})}return o}const KSe={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},YSe={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Ic(e,t){const{message:n,code:r}=YSe[e];return{message:t?`${n} ${t}`:n,code:r}}function jh(e,t){const{message:n,code:r}=KSe[e];return{message:t?`${n} ${t}`:n,code:r}}function f2(e,t){return!!Array.isArray(e)}function F4(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function nh(e){return typeof e>"u"}function Da(e,t){return t&&nh(e)?!0:typeof e=="string"&&!!e.trim().length}function M4(e,t){return typeof e=="number"&&!isNaN(e)}function _Qe(e,t){const{requiredNamespaces:n}=t,r=Object.keys(e.namespaces),o=Object.keys(n);let a=!0;return wu(o,r)?(r.forEach(i=>{const{accounts:s,methods:c,events:l}=e.namespaces[i],u=gm(s),d=n[i];(!wu(GQ(i,d),u)||!wu(d.methods,c)||!wu(d.events,l))&&(a=!1)}),a):!1}function xE(e){return Da(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function QSe(e){if(Da(e,!1)&&e.includes(":")){const t=e.split(":");if(t.length===3){const n=t[0]+":"+t[1];return!!t[2]&&xE(n)}}return!1}function xQe(e){if(Da(e,!1))try{return typeof new URL(e)<"u"}catch{return!1}return!1}function CQe(e){var t;return(t=e==null?void 0:e.proposer)==null?void 0:t.publicKey}function SQe(e){return e==null?void 0:e.topic}function TQe(e,t){let n=null;return Da(e==null?void 0:e.publicKey,!1)||(n=Ic("MISSING_OR_INVALID",`${t} controller public key should be a string`)),n}function R9(e){let t=!0;return f2(e)?e.length&&(t=e.every(n=>Da(n,!1))):t=!1,t}function XSe(e,t,n){let r=null;return f2(t)&&t.length?t.forEach(o=>{r||xE(o)||(r=jh("UNSUPPORTED_CHAINS",`${n}, chain ${o} should be a string and conform to "namespace:chainId" format`))}):xE(e)||(r=jh("UNSUPPORTED_CHAINS",`${n}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),r}function JSe(e,t,n){let r=null;return Object.entries(e).forEach(([o,a])=>{if(r)return;const i=XSe(o,GQ(o,a),`${t} ${n}`);i&&(r=i)}),r}function ZSe(e,t){let n=null;return f2(e)?e.forEach(r=>{n||QSe(r)||(n=jh("UNSUPPORTED_ACCOUNTS",`${t}, account ${r} should be a string and conform to "namespace:chainId:address" format`))}):n=jh("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),n}function e3e(e,t){let n=null;return Object.values(e).forEach(r=>{if(n)return;const o=ZSe(r==null?void 0:r.accounts,`${t} namespace`);o&&(n=o)}),n}function t3e(e,t){let n=null;return R9(e==null?void 0:e.methods)?R9(e==null?void 0:e.events)||(n=jh("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):n=jh("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),n}function eX(e,t){let n=null;return Object.values(e).forEach(r=>{if(n)return;const o=t3e(r,`${t}, namespace`);o&&(n=o)}),n}function AQe(e,t,n){let r=null;if(e&&F4(e)){const o=eX(e,t);o&&(r=o);const a=JSe(e,t,n);a&&(r=a)}else r=Ic("MISSING_OR_INVALID",`${t}, ${n} should be an object with data`);return r}function n3e(e,t){let n=null;if(e&&F4(e)){const r=eX(e,t);r&&(n=r);const o=e3e(e,t);o&&(n=o)}else n=Ic("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return n}function r3e(e){return Da(e.protocol,!0)}function DQe(e,t){let n=!1;return e?e&&f2(e)&&e.length&&e.forEach(r=>{n=r3e(r)}):n=!0,n}function kQe(e){return typeof e=="number"}function jQe(e){return typeof e<"u"&&typeof e!==null}function PQe(e){return!(!e||typeof e!="object"||!e.code||!M4(e.code)||!e.message||!Da(e.message,!1))}function IQe(e){return!(nh(e)||!Da(e.method,!1))}function OQe(e){return!(nh(e)||nh(e.result)&&nh(e.error)||!M4(e.id)||!Da(e.jsonrpc,!1))}function RQe(e){return!(nh(e)||!Da(e.name,!1))}function NQe(e,t){return!(!xE(t)||!qSe(e).includes(t))}function BQe(e,t,n){return Da(n,!1)?WSe(e,t).includes(n):!1}function FQe(e,t,n){return Da(n,!1)?GSe(e,t).includes(n):!1}function MQe(e,t,n){let r=null;const o=o3e(e),a=a3e(t),i=Object.keys(o),s=Object.keys(a),c=N9(Object.keys(e)),l=N9(Object.keys(t)),u=c.filter(d=>!l.includes(d));return u.length&&(r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces keys don't satisfy requiredNamespaces. - Required: ${u.toString()} - Received: ${Object.keys(t).toString()}`)),wu(i,s)||(r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces chains don't satisfy required namespaces. - Required: ${i.toString()} - Approved: ${s.toString()}`)),Object.keys(t).forEach(d=>{if(!d.includes(":")||r)return;const f=gm(t[d].accounts);f.includes(d)||(r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces accounts don't satisfy namespace accounts for ${d} - Required: ${d} - Approved: ${f.toString()}`))}),i.forEach(d=>{r||(wu(o[d].methods,a[d].methods)?wu(o[d].events,a[d].events)||(r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces events don't satisfy namespace events for ${d}`)):r=Ic("NON_CONFORMING_NAMESPACES",`${n} namespaces methods don't satisfy namespace methods for ${d}`))}),r}function o3e(e){const t={};return Object.keys(e).forEach(n=>{var r;n.includes(":")?t[n]=e[n]:(r=e[n].chains)==null||r.forEach(o=>{t[o]={methods:e[n].methods,events:e[n].events}})}),t}function N9(e){return[...new Set(e.map(t=>t.includes(":")?t.split(":")[0]:t))]}function a3e(e){const t={};return Object.keys(e).forEach(n=>{if(n.includes(":"))t[n]=e[n];else{const r=gm(e[n].accounts);r==null||r.forEach(o=>{t[o]={accounts:e[n].accounts.filter(a=>a.includes(`${o}:`)),methods:e[n].methods,events:e[n].events}})}}),t}function LQe(e,t){return M4(e)&&e<=t.max&&e>=t.min}function UQe(){const e=Ty();return new Promise(t=>{switch(e){case zo.browser:t(i3e());break;case zo.reactNative:t(s3e());break;case zo.node:t(c3e());break;default:t(!0)}})}function i3e(){return d2()&&(navigator==null?void 0:navigator.onLine)}async function s3e(){if(Sy()&&typeof global<"u"&&global!=null&&global.NetInfo){const e=await(global==null?void 0:global.NetInfo.fetch());return e==null?void 0:e.isConnected}return!0}function c3e(){return!0}function $Qe(e){switch(Ty()){case zo.browser:l3e(e);break;case zo.reactNative:u3e(e);break}}function l3e(e){!Sy()&&d2()&&(window.addEventListener("online",()=>e(!0)),window.addEventListener("offline",()=>e(!1)))}function u3e(e){Sy()&&typeof global<"u"&&global!=null&&global.NetInfo&&(global==null||global.NetInfo.addEventListener(t=>e(t==null?void 0:t.isConnected)))}const k3={};class zQe{static get(t){return k3[t]}static set(t,n){k3[t]=n}static delete(t){delete k3[t]}}var tX="eip155",d3e="store",nX="requestedChains",ND="wallet_addEthereumChain",on,x0,D1,BD,L4,rX,k1,FD,MD,oX,CE,U4,mf,n0,SE,$4,TE,z4,AE,H4,q4=class extends py{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),Fn(this,D1),Fn(this,L4),Fn(this,k1),Fn(this,MD),Fn(this,CE),Fn(this,mf),Fn(this,SE),Fn(this,TE),Fn(this,AE),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,Fn(this,on,void 0),Fn(this,x0,void 0),this.onAccountsChanged=t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Rr(t[0])})},this.onChainChanged=t=>{const n=Number(t),r=this.isChainUnsupported(n);this.emit("change",{chain:{id:n,unsupported:r}})},this.onDisconnect=()=>{Bn(this,mf,n0).call(this,[]),this.emit("disconnect")},this.onDisplayUri=t=>{this.emit("message",{type:"display_uri",data:t})},this.onConnect=()=>{this.emit("connect",{})},Bn(this,D1,BD).call(this)}async connect({chainId:e,pairingTopic:t}={}){var n,r,o,a,i;try{let s=e;if(!s){const m=(n=this.storage)==null?void 0:n.getItem(d3e),p=(a=(o=(r=m==null?void 0:m.state)==null?void 0:r.data)==null?void 0:o.chain)==null?void 0:a.id;p&&!this.isChainUnsupported(p)?s=p:s=(i=this.chains[0])==null?void 0:i.id}if(!s)throw new Error("No chains found on connector.");const c=await this.getProvider();Bn(this,MD,oX).call(this);const l=Bn(this,k1,FD).call(this);if(c.session&&l&&await c.disconnect(),!c.session||l){const m=this.chains.filter(p=>p.id!==s).map(p=>p.id);this.emit("message",{type:"connecting"}),await c.connect({pairingTopic:t,optionalChains:[s,...m]}),Bn(this,mf,n0).call(this,this.chains.map(({id:p})=>p))}const u=await c.enable(),d=Rr(u[0]),f=await this.getChainId(),h=this.isChainUnsupported(f);return{account:d,chain:{id:f,unsupported:h}}}catch(s){throw/user rejected/i.test(s==null?void 0:s.message)?new dr(s):s}}async disconnect(){const e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{Bn(this,CE,U4).call(this),Bn(this,mf,n0).call(this,[])}}async getAccount(){const{accounts:e}=await this.getProvider();return Rr(e[0])}async getChainId(){const{chainId:e}=await this.getProvider();return e}async getProvider({chainId:e}={}){return ft(this,on)||await Bn(this,D1,BD).call(this),e&&await this.switchChain(e),ft(this,on)}async getWalletClient({chainId:e}={}){const[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){try{const[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=Bn(this,k1,FD).call(this);if(!e)return!1;if(n&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){var n,r;const t=this.chains.find(o=>o.id===e);if(!t)throw new ol(new Error("chain not found on connector."));try{const o=await this.getProvider(),a=Bn(this,TE,z4).call(this),i=Bn(this,AE,H4).call(this);if(!a.includes(e)&&i.includes(ND)){await o.request({method:ND,params:[{chainId:Xe(t.id),blockExplorerUrls:[(r=(n=t.blockExplorers)==null?void 0:n.default)==null?void 0:r.url],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpcUrls.default.http]}]});const c=Bn(this,SE,$4).call(this);c.push(e),Bn(this,mf,n0).call(this,c)}return await o.request({method:"wallet_switchEthereumChain",params:[{chainId:Xe(e)}]}),t}catch(o){const a=typeof o=="string"?o:o==null?void 0:o.message;throw/user rejected request/i.test(a)?new dr(o):new ol(o)}}};on=new WeakMap;x0=new WeakMap;D1=new WeakSet;BD=async function(){return!ft(this,x0)&&typeof window<"u"&&As(this,x0,Bn(this,L4,rX).call(this)),ft(this,x0)};L4=new WeakSet;rX=async function(){const{EthereumProvider:e}=await me(async()=>{const{EthereumProvider:n}=await import("./index.es-C4tnSl6V.js");return{EthereumProvider:n}},__vite__mapDeps([0,1]),import.meta.url),t=this.chains.map(({id:n})=>n);if(t.length){const{projectId:n,showQrModal:r=!0,qrModalOptions:o,metadata:a,relayUrl:i}=this.options;As(this,on,await e.init({showQrModal:r,qrModalOptions:o,projectId:n,optionalChains:t,rpcMap:Object.fromEntries(this.chains.map(s=>[s.id,s.rpcUrls.default.http[0]])),metadata:a,relayUrl:i}))}};k1=new WeakSet;FD=function(){if(Bn(this,AE,H4).call(this).includes(ND)||!this.options.isNewChainsStale)return!1;const t=Bn(this,SE,$4).call(this),n=this.chains.map(({id:o})=>o),r=Bn(this,TE,z4).call(this);return r.length&&!r.some(o=>n.includes(o))?!1:!n.every(o=>t.includes(o))};MD=new WeakSet;oX=function(){ft(this,on)&&(Bn(this,CE,U4).call(this),ft(this,on).on("accountsChanged",this.onAccountsChanged),ft(this,on).on("chainChanged",this.onChainChanged),ft(this,on).on("disconnect",this.onDisconnect),ft(this,on).on("session_delete",this.onDisconnect),ft(this,on).on("display_uri",this.onDisplayUri),ft(this,on).on("connect",this.onConnect))};CE=new WeakSet;U4=function(){ft(this,on)&&(ft(this,on).removeListener("accountsChanged",this.onAccountsChanged),ft(this,on).removeListener("chainChanged",this.onChainChanged),ft(this,on).removeListener("disconnect",this.onDisconnect),ft(this,on).removeListener("session_delete",this.onDisconnect),ft(this,on).removeListener("display_uri",this.onDisplayUri),ft(this,on).removeListener("connect",this.onConnect))};mf=new WeakSet;n0=function(e){var t;(t=this.storage)==null||t.setItem(nX,e)};SE=new WeakSet;$4=function(){var e;return((e=this.storage)==null?void 0:e.getItem(nX))??[]};TE=new WeakSet;z4=function(){var r,o,a;if(!ft(this,on))return[];const e=(r=ft(this,on).session)==null?void 0:r.namespaces;return e?((a=(o=ZQ(e)[tX])==null?void 0:o.chains)==null?void 0:a.map(i=>parseInt(i.split(":")[1]||"")))??[]:[]};AE=new WeakSet;H4=function(){var r,o;if(!ft(this,on))return[];const e=(r=ft(this,on).session)==null?void 0:r.namespaces;return e?((o=ZQ(e)[tX])==null?void 0:o.methods)??[]:[]};var r0,pf,f3e=class extends py{constructor({chains:e,options:t}){super({chains:e,options:{reloadOnDisconnect:!1,...t}}),this.id="coinbaseWallet",this.name="Coinbase Wallet",this.ready=!0,Fn(this,r0,void 0),Fn(this,pf,void 0),this.onAccountsChanged=n=>{n.length===0?this.emit("disconnect"):this.emit("change",{account:Rr(n[0])})},this.onChainChanged=n=>{const r=Ju(n),o=this.isChainUnsupported(r);this.emit("change",{chain:{id:r,unsupported:o}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:e}={}){try{const t=await this.getProvider();t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});const n=await t.enable(),r=Rr(n[0]);let o=await this.getChainId(),a=this.isChainUnsupported(o);return e&&o!==e&&(o=(await this.switchChain(e)).id,a=this.isChainUnsupported(o)),{account:r,chain:{id:o,unsupported:a}}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new dr(t):t}}async disconnect(){if(!ft(this,pf))return;const e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){const t=await(await this.getProvider()).request({method:"eth_accounts"});return Rr(t[0])}async getChainId(){const e=await this.getProvider();return Ju(e.chainId)}async getProvider(){var e;if(!ft(this,pf)){let t=(await me(async()=>{const{default:i}=await import("./index-Cd-8U-EF.js").then(s=>s.i);return{default:i}},__vite__mapDeps([2,3]),import.meta.url)).default;typeof t!="function"&&typeof t.default=="function"&&(t=t.default),As(this,r0,new t(this.options));const n=(e=ft(this,r0).walletExtension)==null?void 0:e.getChainId(),r=this.chains.find(i=>this.options.chainId?i.id===this.options.chainId:i.id===n)||this.chains[0],o=this.options.chainId||(r==null?void 0:r.id),a=this.options.jsonRpcUrl||(r==null?void 0:r.rpcUrls.default.http[0]);As(this,pf,ft(this,r0).makeWeb3Provider(a,o))}return ft(this,pf)}async getWalletClient({chainId:e}={}){const[t,n]=await Promise.all([this.getProvider(),this.getAccount()]),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){var r;const t=await this.getProvider(),n=Xe(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(o=>o.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(o){const a=this.chains.find(i=>i.id===e);if(!a)throw new TY({chainId:e,connectorId:this.id});if(o.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:a.name,nativeCurrency:a.nativeCurrency,rpcUrls:[((r=a.rpcUrls.public)==null?void 0:r.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(a)}]}),a}catch(i){throw new dr(i)}throw new ol(o)}}async watchAsset({address:e,decimals:t=18,image:n,symbol:r}){return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:n,symbol:r}}})}};r0=new WeakMap;pf=new WeakMap;var j1,h3e=class extends Ds{constructor({chains:e,options:t}={}){const n={name:"MetaMask",shimDisconnect:!0,getProvider(){function r(a){if(a!=null&&a.isMetaMask&&!(a.isBraveWallet&&!a._events&&!a._state)&&!a.isApexWallet&&!a.isAvalanche&&!a.isBitKeep&&!a.isBlockWallet&&!a.isCoin98&&!a.isFordefi&&!a.isMathWallet&&!(a.isOkxWallet||a.isOKExWallet)&&!(a.isOneInchIOSWallet||a.isOneInchAndroidWallet)&&!a.isOpera&&!a.isPortal&&!a.isRabby&&!a.isDefiant&&!a.isTokenPocket&&!a.isTokenary&&!a.isZeal&&!a.isZerion)return a}if(typeof window>"u")return;const o=window.ethereum;return o!=null&&o.providers?o.providers.find(r):r(o)},...t};super({chains:e,options:n}),this.id="metaMask",this.shimDisconnectKey=`${this.id}.shimDisconnect`,Fn(this,j1,void 0),As(this,j1,n.UNSTABLE_shimOnConnectSelectAccount)}async connect({chainId:e}={}){var t,n,r,o;try{const a=await this.getProvider();if(!a)throw new ua;a.on&&(a.on("accountsChanged",this.onAccountsChanged),a.on("chainChanged",this.onChainChanged),a.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let i=null;if(ft(this,j1)&&((t=this.options)!=null&&t.shimDisconnect)&&!((n=this.storage)!=null&&n.getItem(this.shimDisconnectKey))&&(i=await this.getAccount().catch(()=>null),!!i))try{await a.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}),i=await this.getAccount()}catch(u){if(this.isUserRejectedRequestError(u))throw new dr(u);if(u.code===new gh(u).code)throw u}if(!i){const l=await a.request({method:"eth_requestAccounts"});i=Rr(l[0])}let s=await this.getChainId(),c=this.isChainUnsupported(s);return e&&s!==e&&(s=(await this.switchChain(e)).id,c=this.isChainUnsupported(s)),(r=this.options)!=null&&r.shimDisconnect&&((o=this.storage)==null||o.setItem(this.shimDisconnectKey,!0)),{account:i,chain:{id:s,unsupported:c},provider:a}}catch(a){throw this.isUserRejectedRequestError(a)?new dr(a):a.code===-32002?new gh(a):a}}};j1=new WeakMap;var m3e=/(imtoken|metamask|rainbow|trust wallet|uniswap wallet|ledger)/i,ou,LD,aX,iX=class extends py{constructor(){super(...arguments),Fn(this,LD),this.id="walletConnectLegacy",this.name="WalletConnectLegacy",this.ready=!0,Fn(this,ou,void 0),this.onAccountsChanged=e=>{e.length===0?this.emit("disconnect"):this.emit("change",{account:Rr(e[0])})},this.onChainChanged=e=>{const t=Ju(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:e}={}){var t,n,r,o,a,i;try{let s=e;if(!s){const m=(t=this.storage)==null?void 0:t.getItem("store"),p=(o=(r=(n=m==null?void 0:m.state)==null?void 0:n.data)==null?void 0:r.chain)==null?void 0:o.id;p&&!this.isChainUnsupported(p)&&(s=p)}const c=await this.getProvider({chainId:s,create:!0});c.on("accountsChanged",this.onAccountsChanged),c.on("chainChanged",this.onChainChanged),c.on("disconnect",this.onDisconnect),setTimeout(()=>this.emit("message",{type:"connecting"}),0);const l=await c.enable(),u=Rr(l[0]),d=await this.getChainId(),f=this.isChainUnsupported(d),h=((i=(a=c.connector)==null?void 0:a.peerMeta)==null?void 0:i.name)??"";return m3e.test(h)&&(this.switchChain=Bn(this,LD,aX)),{account:u,chain:{id:d,unsupported:f}}}catch(s){throw/user closed modal/i.test(s.message)?new dr(s):s}}async disconnect(){const e=await this.getProvider();await e.disconnect(),e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),typeof localStorage<"u"&&localStorage.removeItem("walletconnect")}async getAccount(){const t=(await this.getProvider()).accounts;return Rr(t[0])}async getChainId(){const e=await this.getProvider();return Ju(e.chainId)}async getProvider({chainId:e,create:t}={}){var n,r;if(!ft(this,ou)||e||t){const o=(n=this.options)!=null&&n.infuraId?{}:this.chains.reduce((i,s)=>({...i,[s.id]:s.rpcUrls.default.http[0]}),{}),a=(await me(async()=>{const{default:i}=await import("./index-CtWpA4AQ.js");return{default:i}},__vite__mapDeps([4,1,3]),import.meta.url)).default;As(this,ou,new a({...this.options,chainId:e,rpc:{...o,...(r=this.options)==null?void 0:r.rpc}})),ft(this,ou).http=await ft(this,ou).setHttpProvider(e)}return ft(this,ou)}async getWalletClient({chainId:e}={}){const[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}};ou=new WeakMap;LD=new WeakSet;aX=async function(e){const t=await this.getProvider(),n=Xe(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(r=>this.on("change",({chain:o})=>{(o==null?void 0:o.id)===e&&r(e)}))]),this.chains.find(r=>r.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(r){const o=typeof r=="string"?r:r==null?void 0:r.message;throw/user rejected request/i.test(o)?new dr(r):new ol(r)}};var sX={},h2={},W4={exports:{}},rh=typeof Reflect=="object"?Reflect:null,B9=rh&&typeof rh.apply=="function"?rh.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},P1;rh&&typeof rh.ownKeys=="function"?P1=rh.ownKeys:Object.getOwnPropertySymbols?P1=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:P1=function(t){return Object.getOwnPropertyNames(t)};function p3e(e){console&&console.warn&&console.warn(e)}var cX=Number.isNaN||function(t){return t!==t};function Nt(){Nt.init.call(this)}W4.exports=Nt;W4.exports.once=v3e;Nt.EventEmitter=Nt;Nt.prototype._events=void 0;Nt.prototype._eventsCount=0;Nt.prototype._maxListeners=void 0;var F9=10;function m2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Nt,"defaultMaxListeners",{enumerable:!0,get:function(){return F9},set:function(e){if(typeof e!="number"||e<0||cX(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");F9=e}});Nt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Nt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||cX(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function lX(e){return e._maxListeners===void 0?Nt.defaultMaxListeners:e._maxListeners}Nt.prototype.getMaxListeners=function(){return lX(this)};Nt.prototype.emit=function(t){for(var n=[],r=1;r0&&(i=n[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var c=a[t];if(c===void 0)return!1;if(typeof c=="function")B9(c,this,n);else for(var l=c.length,u=mX(c,l),r=0;r0&&i.length>o&&!i.warned){i.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=i.length,p3e(s)}return e}Nt.prototype.addListener=function(t,n){return uX(this,t,n,!1)};Nt.prototype.on=Nt.prototype.addListener;Nt.prototype.prependListener=function(t,n){return uX(this,t,n,!0)};function g3e(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function dX(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=g3e.bind(r);return o.listener=n,r.wrapFn=o,o}Nt.prototype.once=function(t,n){return m2(n),this.on(t,dX(this,t,n)),this};Nt.prototype.prependOnceListener=function(t,n){return m2(n),this.prependListener(t,dX(this,t,n)),this};Nt.prototype.removeListener=function(t,n){var r,o,a,i,s;if(m2(n),o=this._events,o===void 0)return this;if(r=o[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(a=-1,i=r.length-1;i>=0;i--)if(r[i]===n||r[i].listener===n){s=r[i].listener,a=i;break}if(a<0)return this;a===0?r.shift():y3e(r,a),r.length===1&&(o[t]=r[0]),o.removeListener!==void 0&&this.emit("removeListener",t,s||n)}return this};Nt.prototype.off=Nt.prototype.removeListener;Nt.prototype.removeAllListeners=function(t){var n,r,o;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var a=Object.keys(r),i;for(o=0;o=0;o--)this.removeListener(t,n[o]);return this};function fX(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?b3e(o):mX(o,o.length)}Nt.prototype.listeners=function(t){return fX(this,t,!0)};Nt.prototype.rawListeners=function(t){return fX(this,t,!1)};Nt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):hX.call(e,t)};Nt.prototype.listenerCount=hX;function hX(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Nt.prototype.eventNames=function(){return this._eventsCount>0?P1(this._events):[]};function mX(e,t){for(var n=new Array(t),r=0;r(c&&(c.hash=r[0]),c));case"eth_getTransactionReceipt":{let c=r[0];try{c=(await this.sdk.txs.getBySafeTxHash(c)).txHash||c}catch{}return this.sdk.eth.getTransactionReceipt([c]).then(l=>(l&&(l.transactionHash=r[0]),l))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(r[0]);case"eth_call":return this.sdk.eth.call([r[0],r[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([r[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(r[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([r[0]]);default:throw Error(`"${t.method}" not implemented`)}}send(t,n){t||n("Undefined request"),this.request(t).then(r=>n(null,{jsonrpc:"2.0",id:t.id,result:r})).catch(r=>n(r,null))}}h2.SafeAppProvider=x3e;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAppProvider=void 0;var t=h2;Object.defineProperty(e,"SafeAppProvider",{enumerable:!0,get:function(){return t.SafeAppProvider}})})(sX);var yX={},DE={},bX={},Ay={},Dy={};const C3e="@safe-global/safe-apps-sdk",S3e="8.1.0",T3e="SDK developed to integrate third-party apps with Safe app.",A3e="dist/src/index.js",D3e="dist/src/index.d.ts",k3e=["dist/**/*","src/**/*","CHANGELOG.md","README.md"],j3e=!1,P3e=["Safe","sdk","apps"],I3e={test:"jest","format-dist":`sed -i '' 's/"files":/"_files":/' dist/package.json`,build:"yarn rimraf dist && tsc && yarn format-dist"},O3e="Safe (https://safe.global)",R3e="MIT",N3e={"@safe-global/safe-gateway-typescript-sdk":"^3.5.3",viem:"^1.0.0"},B3e={type:"git",url:"git+https://github.com/safe-global/safe-apps-sdk.git"},F3e={url:"https://github.com/safe-global/safe-apps-sdk/issues"},M3e="https://github.com/safe-global/safe-apps-sdk#readme",L3e={access:"public"},U3e={name:C3e,version:S3e,description:T3e,main:A3e,typings:D3e,_files:k3e,sideEffects:j3e,keywords:P3e,scripts:I3e,author:O3e,license:R3e,dependencies:N3e,repository:B3e,bugs:F3e,homepage:M3e,publishConfig:L3e};var $3e=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dy,"__esModule",{value:!0});Dy.getSDKVersion=void 0;const z3e=$3e(U3e),H3e=()=>z3e.default.version.split("-")[0];Dy.getSDKVersion=H3e;var g2={};Object.defineProperty(g2,"__esModule",{value:!0});g2.generateRequestId=void 0;const q3e=e=>e.toString(16).padStart(2,"0"),W3e=e=>{const t=new Uint8Array(e/2);return window.crypto.getRandomValues(t),Array.from(t,q3e).join("")},G3e=()=>typeof window<"u"?W3e(10):new Date().getTime().toString(36);g2.generateRequestId=G3e;Object.defineProperty(Ay,"__esModule",{value:!0});Ay.MessageFormatter=void 0;const V3e=Dy,K3e=g2;class y2{}Ay.MessageFormatter=y2;y2.makeRequest=(e,t)=>({id:(0,K3e.generateRequestId)(),method:e,params:t,env:{sdkVersion:(0,V3e.getSDKVersion)()}});y2.makeResponse=(e,t,n)=>({id:e,success:!0,version:n,data:t});y2.makeErrorResponse=(e,t,n)=>({id:e,success:!1,error:t,version:n});var Ed={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RestrictedMethods=e.Methods=void 0,function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"}(e.Methods||(e.Methods={})),function(t){t.requestAddressBook="requestAddressBook"}(e.RestrictedMethods||(e.RestrictedMethods={}))})(Ed);(function(e){var t=We&&We.__createBinding||(Object.create?function(a,i,s,c){c===void 0&&(c=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(a,c,l)}:function(a,i,s,c){c===void 0&&(c=s),a[c]=i[s]}),n=We&&We.__exportStar||function(a,i){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,a,s)};Object.defineProperty(e,"__esModule",{value:!0});const r=Ay;class o{constructor(i=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:c,data:l,source:u})=>{const d=!l,f=!this.isServer&&u===window.parent,m=(typeof l.version<"u"&&parseInt(l.version.split(".")[0]))>=1;let p=!0;return Array.isArray(this.allowedOrigins)&&(p=this.allowedOrigins.find(b=>b.test(c))!==void 0),!d&&f&&m&&p},this.logIncomingMessage=c=>{console.info(`Safe Apps SDK v1: A message was received from origin ${c.origin}. `,c.data)},this.onParentMessage=c=>{this.isValidMessage(c)&&(this.debugMode&&this.logIncomingMessage(c),this.handleIncomingMessage(c.data))},this.handleIncomingMessage=c=>{const{id:l}=c,u=this.callbacks.get(l);u&&(u(c),this.callbacks.delete(l))},this.send=(c,l)=>{const u=r.MessageFormatter.makeRequest(c,l);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(u,"*"),new Promise((d,f)=>{this.callbacks.set(u.id,h=>{if(!h.success){f(new Error(h.error));return}d(h)})})},this.allowedOrigins=i,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Ed,e)})(bX);var b2={},v2={},w2={};Object.defineProperty(w2,"__esModule",{value:!0});w2.isObjectEIP712TypedData=void 0;const Y3e=e=>typeof e=="object"&&e!=null&&"domain"in e&&"types"in e&&"message"in e;w2.isObjectEIP712TypedData=Y3e;var vX={};Object.defineProperty(vX,"__esModule",{value:!0});var wX={},EX={},Di={},ki={},G4=We&&We.__awaiter||function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function s(u){try{l(r.next(u))}catch(d){i(d)}}function c(u){try{l(r.throw(u))}catch(d){i(d)}}function l(u){u.done?a(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(ki,"__esModule",{value:!0});ki.getData=ki.fetchData=ki.stringifyQuery=ki.insertParams=void 0;const Q3e=e=>typeof e=="object"&&e!==null&&"code"in e&&"message"in e;function X3e(e,t,n){return e.replace(new RegExp(`\\{${t}\\}`,"g"),n)}function J3e(e,t){return t?Object.keys(t).reduce((n,r)=>X3e(n,r,String(t[r])),e):e}ki.insertParams=J3e;function Z3e(e){if(!e)return"";const t=new URLSearchParams;Object.keys(e).forEach(r=>{e[r]!=null&&t.append(r,String(e[r]))});const n=t.toString();return n?`?${n}`:""}ki.stringifyQuery=Z3e;function _X(e){return G4(this,void 0,void 0,function*(){let t;try{t=yield e.json()}catch{t={}}if(!e.ok){const n=Q3e(t)?`CGW error - ${t.code}: ${t.message}`:`CGW error - status ${e.statusText}`;throw new Error(n)}return t})}function eTe(e,t,n,r,o){return G4(this,void 0,void 0,function*(){const a=Object.assign({"Content-Type":"application/json"},r),i={method:t??"POST",headers:a};o&&(i.credentials=o),n!=null&&(i.body=typeof n=="string"?n:JSON.stringify(n));const s=yield fetch(e,i);return _X(s)})}ki.fetchData=eTe;function tTe(e,t,n){return G4(this,void 0,void 0,function*(){const r={method:"GET"};t&&(r.headers=Object.assign(Object.assign({},t),{"Content-Type":"application/json"})),n&&(r.credentials=n);const o=yield fetch(e,r);return _X(o)})}ki.getData=tTe;Object.defineProperty(Di,"__esModule",{value:!0});Di.getEndpoint=Di.deleteEndpoint=Di.putEndpoint=Di.postEndpoint=void 0;const Zu=ki;function E2(e,t,n,r){const o=(0,Zu.insertParams)(t,n),a=(0,Zu.stringifyQuery)(r);return`${e}${o}${a}`}function nTe(e,t,n){const r=E2(e,t,n==null?void 0:n.path,n==null?void 0:n.query);return(0,Zu.fetchData)(r,"POST",n==null?void 0:n.body,n==null?void 0:n.headers,n==null?void 0:n.credentials)}Di.postEndpoint=nTe;function rTe(e,t,n){const r=E2(e,t,n==null?void 0:n.path,n==null?void 0:n.query);return(0,Zu.fetchData)(r,"PUT",n==null?void 0:n.body,n==null?void 0:n.headers,n==null?void 0:n.credentials)}Di.putEndpoint=rTe;function oTe(e,t,n){const r=E2(e,t,n==null?void 0:n.path,n==null?void 0:n.query);return(0,Zu.fetchData)(r,"DELETE",n==null?void 0:n.body,n==null?void 0:n.headers,n==null?void 0:n.credentials)}Di.deleteEndpoint=oTe;function aTe(e,t,n,r){if(r)return(0,Zu.getData)(r,void 0,n==null?void 0:n.credentials);const o=E2(e,t,n==null?void 0:n.path,n==null?void 0:n.query);return(0,Zu.getData)(o,n==null?void 0:n.headers,n==null?void 0:n.credentials)}Di.getEndpoint=aTe;var _2={};Object.defineProperty(_2,"__esModule",{value:!0});_2.DEFAULT_BASE_URL=void 0;_2.DEFAULT_BASE_URL="https://safe-client.safe.global";var xX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationVersionState=void 0,function(t){t.UP_TO_DATE="UP_TO_DATE",t.OUTDATED="OUTDATED",t.UNKNOWN="UNKNOWN"}(e.ImplementationVersionState||(e.ImplementationVersionState={}))})(xX);var CX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAppSocialPlatforms=e.SafeAppFeatures=e.SafeAppAccessPolicyTypes=void 0,function(t){t.NoRestrictions="NO_RESTRICTIONS",t.DomainAllowlist="DOMAIN_ALLOWLIST"}(e.SafeAppAccessPolicyTypes||(e.SafeAppAccessPolicyTypes={})),function(t){t.BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS"}(e.SafeAppFeatures||(e.SafeAppFeatures={})),function(t){t.TWITTER="TWITTER",t.GITHUB="GITHUB",t.DISCORD="DISCORD"}(e.SafeAppSocialPlatforms||(e.SafeAppSocialPlatforms={}))})(CX);var SX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LabelValue=e.StartTimeValue=e.DurationType=e.DetailedExecutionInfoType=e.TransactionListItemType=e.ConflictType=e.TransactionInfoType=e.SettingsInfoType=e.TransactionTokenType=e.TransferDirection=e.TransactionStatus=e.Operation=void 0,function(t){t[t.CALL=0]="CALL",t[t.DELEGATE=1]="DELEGATE"}(e.Operation||(e.Operation={})),function(t){t.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",t.AWAITING_EXECUTION="AWAITING_EXECUTION",t.CANCELLED="CANCELLED",t.FAILED="FAILED",t.SUCCESS="SUCCESS"}(e.TransactionStatus||(e.TransactionStatus={})),function(t){t.INCOMING="INCOMING",t.OUTGOING="OUTGOING",t.UNKNOWN="UNKNOWN"}(e.TransferDirection||(e.TransferDirection={})),function(t){t.ERC20="ERC20",t.ERC721="ERC721",t.NATIVE_COIN="NATIVE_COIN"}(e.TransactionTokenType||(e.TransactionTokenType={})),function(t){t.SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",t.ADD_OWNER="ADD_OWNER",t.REMOVE_OWNER="REMOVE_OWNER",t.SWAP_OWNER="SWAP_OWNER",t.CHANGE_THRESHOLD="CHANGE_THRESHOLD",t.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",t.ENABLE_MODULE="ENABLE_MODULE",t.DISABLE_MODULE="DISABLE_MODULE",t.SET_GUARD="SET_GUARD",t.DELETE_GUARD="DELETE_GUARD"}(e.SettingsInfoType||(e.SettingsInfoType={})),function(t){t.TRANSFER="Transfer",t.SETTINGS_CHANGE="SettingsChange",t.CUSTOM="Custom",t.CREATION="Creation",t.SWAP_ORDER="SwapOrder",t.TWAP_ORDER="TwapOrder",t.SWAP_TRANSFER="SwapTransfer"}(e.TransactionInfoType||(e.TransactionInfoType={})),function(t){t.NONE="None",t.HAS_NEXT="HasNext",t.END="End"}(e.ConflictType||(e.ConflictType={})),function(t){t.TRANSACTION="TRANSACTION",t.LABEL="LABEL",t.CONFLICT_HEADER="CONFLICT_HEADER",t.DATE_LABEL="DATE_LABEL"}(e.TransactionListItemType||(e.TransactionListItemType={})),function(t){t.MULTISIG="MULTISIG",t.MODULE="MODULE"}(e.DetailedExecutionInfoType||(e.DetailedExecutionInfoType={})),function(t){t.AUTO="AUTO",t.LIMIT_DURATION="LIMIT_DURATION"}(e.DurationType||(e.DurationType={})),function(t){t.AT_MINING_TIME="AT_MINING_TIME",t.AT_EPOCH="AT_EPOCH"}(e.StartTimeValue||(e.StartTimeValue={})),function(t){t.Queued="Queued",t.Next="Next"}(e.LabelValue||(e.LabelValue={}))})(SX);var TX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FEATURES=e.GAS_PRICE_TYPE=e.RPC_AUTHENTICATION=void 0,function(t){t.API_KEY_PATH="API_KEY_PATH",t.NO_AUTHENTICATION="NO_AUTHENTICATION",t.UNKNOWN="UNKNOWN"}(e.RPC_AUTHENTICATION||(e.RPC_AUTHENTICATION={})),function(t){t.ORACLE="ORACLE",t.FIXED="FIXED",t.FIXED_1559="FIXED1559",t.UNKNOWN="UNKNOWN"}(e.GAS_PRICE_TYPE||(e.GAS_PRICE_TYPE={})),function(t){t.ERC721="ERC721",t.SAFE_APPS="SAFE_APPS",t.CONTRACT_INTERACTION="CONTRACT_INTERACTION",t.DOMAIN_LOOKUP="DOMAIN_LOOKUP",t.SPENDING_LIMIT="SPENDING_LIMIT",t.EIP1559="EIP1559",t.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",t.TX_SIMULATION="TX_SIMULATION",t.EIP1271="EIP1271"}(e.FEATURES||(e.FEATURES={}))})(TX);var AX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TokenType=void 0,function(t){t.ERC20="ERC20",t.ERC721="ERC721",t.NATIVE_TOKEN="NATIVE_TOKEN"}(e.TokenType||(e.TokenType={}))})(AX);var DX={};Object.defineProperty(DX,"__esModule",{value:!0});var kX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfirmationViewTypes=void 0,function(t){t.COW_SWAP_ORDER="COW_SWAP_ORDER",t.COW_SWAP_TWAP_ORDER="COW_SWAP_TWAP_ORDER"}(e.ConfirmationViewTypes||(e.ConfirmationViewTypes={}))})(kX);var jX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeMessageStatus=e.SafeMessageListItemType=void 0,function(t){t.DATE_LABEL="DATE_LABEL",t.MESSAGE="MESSAGE"}(e.SafeMessageListItemType||(e.SafeMessageListItemType={})),function(t){t.NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",t.CONFIRMED="CONFIRMED"}(e.SafeMessageStatus||(e.SafeMessageStatus={}))})(jX);var PX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeviceType=void 0,function(t){t.ANDROID="ANDROID",t.IOS="IOS",t.WEB="WEB"}(e.DeviceType||(e.DeviceType={}))})(PX);var IX={};Object.defineProperty(IX,"__esModule",{value:!0});(function(e){var t=We&&We.__createBinding||(Object.create?function(Y,W,Q,ce){ce===void 0&&(ce=Q);var pe=Object.getOwnPropertyDescriptor(W,Q);(!pe||("get"in pe?!W.__esModule:pe.writable||pe.configurable))&&(pe={enumerable:!0,get:function(){return W[Q]}}),Object.defineProperty(Y,ce,pe)}:function(Y,W,Q,ce){ce===void 0&&(ce=Q),Y[ce]=W[Q]}),n=We&&We.__exportStar||function(Y,W){for(var Q in Y)Q!=="default"&&!Object.prototype.hasOwnProperty.call(W,Q)&&t(W,Y,Q)};Object.defineProperty(e,"__esModule",{value:!0}),e.deleteAccount=e.getAccount=e.createAccount=e.verifyAuth=e.getAuthNonce=e.getContract=e.getSafeOverviews=e.unsubscribeAll=e.unsubscribeSingle=e.registerRecoveryModule=e.deleteRegisteredEmail=e.getRegisteredEmail=e.verifyEmail=e.resendEmailVerificationCode=e.changeEmail=e.registerEmail=e.unregisterDevice=e.unregisterSafe=e.registerDevice=e.getDelegates=e.confirmSafeMessage=e.proposeSafeMessage=e.getSafeMessage=e.getSafeMessages=e.getDecodedData=e.getMasterCopies=e.getSafeApps=e.getChainConfig=e.getChainsConfig=e.getConfirmationView=e.proposeTransaction=e.getNonces=e.postSafeGasEstimation=e.deleteTransaction=e.getTransactionDetails=e.getTransactionQueue=e.getTransactionHistory=e.getCollectiblesPage=e.getCollectibles=e.getAllOwnedSafes=e.getOwnedSafes=e.getFiatCurrencies=e.getBalances=e.getMultisigTransactions=e.getModuleTransactions=e.getIncomingTransfers=e.getSafeInfo=e.getRelayCount=e.relayTransaction=e.setBaseUrl=void 0,e.putAccountDataSettings=e.getAccountDataSettings=e.getAccountDataTypes=void 0;const r=Di,o=_2;n(xX,e),n(CX,e),n(SX,e),n(TX,e),n(AX,e),n(DX,e),n(kX,e),n(jX,e),n(PX,e),n(IX,e);let a=o.DEFAULT_BASE_URL;const i=Y=>{a=Y};e.setBaseUrl=i;function s(Y,W){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/relay",{path:{chainId:Y},body:W})}e.relayTransaction=s;function c(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/relay/{address}",{path:{chainId:Y,address:W}})}e.getRelayCount=c;function l(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:Y,address:W}})}e.getSafeInfo=l;function u(Y,W,Q,ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:Y,address:W},query:Q},ce)}e.getIncomingTransfers=u;function d(Y,W,Q,ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:Y,address:W},query:Q},ce)}e.getModuleTransactions=d;function f(Y,W,Q,ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:Y,address:W},query:Q},ce)}e.getMultisigTransactions=f;function h(Y,W,Q="usd",ce={}){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:Y,address:W,currency:Q},query:ce})}e.getBalances=h;function m(){return(0,r.getEndpoint)(a,"/v1/balances/supported-fiat-codes")}e.getFiatCurrencies=m;function p(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:Y,address:W}})}e.getOwnedSafes=p;function b(Y){return(0,r.getEndpoint)(a,"/v1/owners/{address}/safes",{path:{address:Y}})}e.getAllOwnedSafes=b;function v(Y,W,Q={}){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:Y,address:W},query:Q})}e.getCollectibles=v;function g(Y,W,Q={},ce){return(0,r.getEndpoint)(a,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:Y,address:W},query:Q},ce)}e.getCollectiblesPage=g;function w(Y,W,Q={},ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:Y,safe_address:W},query:Q},ce)}e.getTransactionHistory=w;function _(Y,W,Q={},ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:Y,safe_address:W},query:Q},ce)}e.getTransactionQueue=_;function C(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:Y,transactionId:W}})}e.getTransactionDetails=C;function x(Y,W,Q){return(0,r.deleteEndpoint)(a,"/v1/chains/{chainId}/transactions/{safeTxHash}",{path:{chainId:Y,safeTxHash:W},body:{signature:Q}})}e.deleteTransaction=x;function E(Y,W,Q){return(0,r.postEndpoint)(a,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:Y,safe_address:W},body:Q})}e.postSafeGasEstimation=E;function T(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/nonces",{path:{chainId:Y,safe_address:W}})}e.getNonces=T;function k(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:Y,safe_address:W},body:Q})}e.proposeTransaction=k;function D(Y,W,Q,ce){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/views/transaction-confirmation",{path:{chainId:Y,safe_address:W},body:{data:Q,to:ce}})}e.getConfirmationView=D;function R(Y){return(0,r.getEndpoint)(a,"/v1/chains",{query:Y})}e.getChainsConfig=R;function F(Y){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}",{path:{chainId:Y}})}e.getChainConfig=F;function B(Y,W={}){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safe-apps",{path:{chainId:Y},query:W})}e.getSafeApps=B;function j(Y){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:Y}})}e.getMasterCopies=j;function P(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/data-decoder",{path:{chainId:Y},body:{data:W,to:Q}})}e.getDecodedData=P;function O(Y,W,Q){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:Y,safe_address:W},query:{}},Q)}e.getSafeMessages=O;function I(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:Y,message_hash:W}})}e.getSafeMessage=I;function N(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:Y,safe_address:W},body:Q})}e.proposeSafeMessage=N;function M(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:Y,message_hash:W},body:Q})}e.confirmSafeMessage=M;function L(Y,W={}){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/delegates",{path:{chainId:Y},query:W})}e.getDelegates=L;function X(Y){return(0,r.postEndpoint)(a,"/v1/register/notifications",{body:Y})}e.registerDevice=X;function J(Y,W,Q){return(0,r.deleteEndpoint)(a,"/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}",{path:{chainId:Y,safe_address:W,uuid:Q}})}e.unregisterSafe=J;function U(Y,W){return(0,r.deleteEndpoint)(a,"/v1/chains/{chainId}/notifications/devices/{uuid}",{path:{chainId:Y,uuid:W}})}e.unregisterDevice=U;function G(Y,W,Q,ce){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails",{path:{chainId:Y,safe_address:W},body:Q,headers:ce})}e.registerEmail=G;function Z(Y,W,Q,ce,pe){return(0,r.putEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:Y,safe_address:W,signer:Q},body:ce,headers:pe})}e.changeEmail=Z;function ae(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify-resend",{path:{chainId:Y,safe_address:W,signer:Q},body:""})}e.resendEmailVerificationCode=ae;function ne(Y,W,Q,ce){return(0,r.putEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify",{path:{chainId:Y,safe_address:W,signer:Q},body:ce})}e.verifyEmail=ne;function ie(Y,W,Q,ce){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:Y,safe_address:W,signer:Q},headers:ce})}e.getRegisteredEmail=ie;function te(Y,W,Q,ce){return(0,r.deleteEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:Y,safe_address:W,signer:Q},headers:ce})}e.deleteRegisteredEmail=te;function ee(Y,W,Q){return(0,r.postEndpoint)(a,"/v1/chains/{chainId}/safes/{safe_address}/recovery",{path:{chainId:Y,safe_address:W},body:Q})}e.registerRecoveryModule=ee;function re(Y){return(0,r.deleteEndpoint)(a,"/v1/subscriptions",{query:Y})}e.unsubscribeSingle=re;function z(Y){return(0,r.deleteEndpoint)(a,"/v1/subscriptions/all",{query:Y})}e.unsubscribeAll=z;function fe(Y,W){return(0,r.getEndpoint)(a,"/v1/safes",{query:Object.assign(Object.assign({},W),{safes:Y.join(",")})})}e.getSafeOverviews=fe;function ve(Y,W){return(0,r.getEndpoint)(a,"/v1/chains/{chainId}/contracts/{contractAddress}",{path:{chainId:Y,contractAddress:W}})}e.getContract=ve;function Ue(){return(0,r.getEndpoint)(a,"/v1/auth/nonce",{credentials:"include"})}e.getAuthNonce=Ue;function ke(Y){return(0,r.postEndpoint)(a,"/v1/auth/verify",{body:Y,credentials:"include"})}e.verifyAuth=ke;function Qe(Y){return(0,r.postEndpoint)(a,"/v1/accounts",{body:Y,credentials:"include"})}e.createAccount=Qe;function Te(Y){return(0,r.getEndpoint)(a,"/v1/accounts/{address}",{path:{address:Y},credentials:"include"})}e.getAccount=Te;function Ee(Y){return(0,r.deleteEndpoint)(a,"/v1/accounts/{address}",{path:{address:Y},credentials:"include"})}e.deleteAccount=Ee;function he(){return(0,r.getEndpoint)(a,"/v1/accounts/data-types")}e.getAccountDataTypes=he;function Me(Y){return(0,r.getEndpoint)(a,"/v1/accounts/{address}/data-settings",{path:{address:Y},credentials:"include"})}e.getAccountDataSettings=Me;function ge(Y,W){return(0,r.putEndpoint)(a,"/v1/accounts/{address}/data-settings",{path:{address:Y},body:W,credentials:"include"})}e.putAccountDataSettings=ge})(EX);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var t=EX;Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return t.Operation}}),Object.defineProperty(e,"TokenType",{enumerable:!0,get:function(){return t.TokenType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return t.TransactionStatus}}),Object.defineProperty(e,"TransferDirection",{enumerable:!0,get:function(){return t.TransferDirection}})})(wX);var OX={};Object.defineProperty(OX,"__esModule",{value:!0});(function(e){var t=We&&We.__createBinding||(Object.create?function(r,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(r,i,s)}:function(r,o,a,i){i===void 0&&(i=a),r[i]=o[a]}),n=We&&We.__exportStar||function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(w2,e),n(vX,e),n(wX,e),n(OX,e)})(v2);Object.defineProperty(b2,"__esModule",{value:!0});b2.TXs=void 0;const yv=Ed,iTe=v2;class sTe{constructor(t){this.communicator=t}async getBySafeTxHash(t){if(!t)throw new Error("Invalid safeTxHash");return(await this.communicator.send(yv.Methods.getTxBySafeTxHash,{safeTxHash:t})).data}async signMessage(t){const n={message:t};return(await this.communicator.send(yv.Methods.signMessage,n)).data}async signTypedMessage(t){if(!(0,iTe.isObjectEIP712TypedData)(t))throw new Error("Invalid typed data");return(await this.communicator.send(yv.Methods.signTypedMessage,{typedData:t})).data}async send({txs:t,params:n}){if(!t||!t.length)throw new Error("No transactions were passed");const r={txs:t,params:n};return(await this.communicator.send(yv.Methods.sendTransactions,r)).data}}b2.TXs=sTe;var x2={},ky={};Object.defineProperty(ky,"__esModule",{value:!0});ky.RPC_CALLS=void 0;ky.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"};Object.defineProperty(x2,"__esModule",{value:!0});x2.Eth=void 0;const ko=ky,cTe=Ed,Yi={defaultBlockParam:(e="latest")=>e,returnFullTxObjectParam:(e=!1)=>e,blockNumberToHex:e=>Number.isInteger(e)?`0x${e.toString(16)}`:e};class lTe{constructor(t){this.communicator=t,this.call=this.buildRequest({call:ko.RPC_CALLS.eth_call,formatters:[null,Yi.defaultBlockParam]}),this.getBalance=this.buildRequest({call:ko.RPC_CALLS.eth_getBalance,formatters:[null,Yi.defaultBlockParam]}),this.getCode=this.buildRequest({call:ko.RPC_CALLS.eth_getCode,formatters:[null,Yi.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:ko.RPC_CALLS.eth_getStorageAt,formatters:[null,Yi.blockNumberToHex,Yi.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:ko.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:ko.RPC_CALLS.eth_getBlockByHash,formatters:[null,Yi.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:ko.RPC_CALLS.eth_getBlockByNumber,formatters:[Yi.blockNumberToHex,Yi.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:ko.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:ko.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:ko.RPC_CALLS.eth_getTransactionCount,formatters:[null,Yi.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:ko.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=n=>this.buildRequest({call:ko.RPC_CALLS.eth_estimateGas})([n]),this.setSafeSettings=this.buildRequest({call:ko.RPC_CALLS.safe_setSettings})}buildRequest(t){const{call:n,formatters:r}=t;return async o=>{r&&Array.isArray(o)&&r.forEach((s,c)=>{s&&(o[c]=s(o[c]))});const a={call:n,params:o||[]};return(await this.communicator.send(cTe.Methods.rpcCall,a)).data}}}x2.Eth=lTe;var C2={},j3={};const V4=Ns(kce);var Kc={},Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getAction=void 0;function uTe(e,t,n){return r=>{var o;return((o=e[t.name||n])==null?void 0:o.call(e,r))??t(e,r)}}Bt.getAction=uTe;var ym={},Ws={},Ne={},Kl={},M9;function Gs(){if(M9)return Kl;M9=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.formatAbiParams=Kl.formatAbiItem=void 0;const e=Jt();function t(o,{includeName:a=!1}={}){if(o.type!=="function"&&o.type!=="event"&&o.type!=="error")throw new e.InvalidDefinitionTypeError(o.type);return`${o.name}(${n(o.inputs,{includeName:a})})`}Kl.formatAbiItem=t;function n(o,{includeName:a=!1}={}){return o?o.map(i=>r(i,{includeName:a})).join(a?", ":","):""}Kl.formatAbiParams=n;function r(o,{includeName:a}){return o.type.startsWith("tuple")?`(${n(o.components,{includeName:a})})${o.type.slice(5)}`:o.type+(a&&o.name?` ${o.name}`:"")}return Kl}var ka={},qn={};Object.defineProperty(qn,"__esModule",{value:!0});qn.isHex=void 0;function dTe(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}qn.isHex=dTe;Object.defineProperty(ka,"__esModule",{value:!0});ka.size=void 0;const fTe=qn;function hTe(e){return(0,fTe.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}ka.size=hTe;var xt={},ei={},S2={};Object.defineProperty(S2,"__esModule",{value:!0});S2.version=void 0;S2.version="1.21.3";Object.defineProperty(ei,"__esModule",{value:!0});ei.getVersion=ei.getUrl=ei.getContractAddress=void 0;const mTe=S2,pTe=e=>e;ei.getContractAddress=pTe;const gTe=e=>e;ei.getUrl=gTe;const yTe=()=>`viem@${mTe.version}`;ei.getVersion=yTe;Object.defineProperty(xt,"__esModule",{value:!0});xt.BaseError=void 0;const bTe=ei;class kE extends Error{constructor(t,n={}){var a;super(),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:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,bTe.getVersion)()});const r=n.cause instanceof kE?n.cause.details:(a=n.cause)!=null&&a.message?n.cause.message:n.details,o=n.cause instanceof kE&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(` -`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return RX(this,t)}}xt.BaseError=kE;function RX(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e?RX(e.cause,t):t?null:e}var L9;function Jt(){if(L9)return Ne;L9=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.UnsupportedPackedAbiType=Ne.InvalidDefinitionTypeError=Ne.InvalidArrayError=Ne.InvalidAbiDecodingTypeError=Ne.InvalidAbiEncodingTypeError=Ne.DecodeLogTopicsMismatch=Ne.DecodeLogDataMismatch=Ne.BytesSizeMismatchError=Ne.AbiItemAmbiguityError=Ne.AbiFunctionSignatureNotFoundError=Ne.AbiFunctionOutputsNotFoundError=Ne.AbiFunctionNotFoundError=Ne.AbiEventNotFoundError=Ne.AbiEventSignatureNotFoundError=Ne.AbiEventSignatureEmptyTopicsError=Ne.AbiErrorSignatureNotFoundError=Ne.AbiErrorNotFoundError=Ne.AbiErrorInputsNotFoundError=Ne.AbiEncodingLengthMismatchError=Ne.AbiEncodingBytesSizeMismatchError=Ne.AbiEncodingArrayLengthMismatchError=Ne.AbiDecodingZeroDataError=Ne.AbiDecodingDataSizeTooSmallError=Ne.AbiDecodingDataSizeInvalidError=Ne.AbiConstructorParamsNotFoundError=Ne.AbiConstructorNotFoundError=void 0;const e=Gs(),t=ka,n=xt;class r extends n.BaseError{constructor({docsPath:j}){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(` -`),{docsPath:j}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}Ne.AbiConstructorNotFoundError=r;class o extends n.BaseError{constructor({docsPath:j}){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(` -`),{docsPath:j}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}Ne.AbiConstructorParamsNotFoundError=o;class a extends n.BaseError{constructor({data:j,size:P}){super([`Data size of ${P} bytes is invalid.`,"Size must be in increments of 32 bytes (size % 32 === 0)."].join(` -`),{metaMessages:[`Data: ${j} (${P} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeInvalidError"})}}Ne.AbiDecodingDataSizeInvalidError=a;class i extends n.BaseError{constructor({data:j,params:P,size:O}){super([`Data size of ${O} bytes is too small for given parameters.`].join(` -`),{metaMessages:[`Params: (${(0,e.formatAbiParams)(P,{includeName:!0})})`,`Data: ${j} (${O} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=j,this.params=P,this.size=O}}Ne.AbiDecodingDataSizeTooSmallError=i;class s extends n.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}Ne.AbiDecodingZeroDataError=s;class c extends n.BaseError{constructor({expectedLength:j,givenLength:P,type:O}){super([`ABI encoding array length mismatch for type ${O}.`,`Expected length: ${j}`,`Given length: ${P}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}Ne.AbiEncodingArrayLengthMismatchError=c;class l extends n.BaseError{constructor({expectedSize:j,value:P}){super(`Size of bytes "${P}" (bytes${(0,t.size)(P)}) does not match expected size (bytes${j}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}Ne.AbiEncodingBytesSizeMismatchError=l;class u extends n.BaseError{constructor({expectedLength:j,givenLength:P}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${j}`,`Given length (values): ${P}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}Ne.AbiEncodingLengthMismatchError=u;class d extends n.BaseError{constructor(j,{docsPath:P}){super([`Arguments (\`args\`) were provided to "${j}", but "${j}" 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(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorInputsNotFoundError"})}}Ne.AbiErrorInputsNotFoundError=d;class f extends n.BaseError{constructor(j,{docsPath:P}={}){super([`Error ${j?`"${j}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorNotFoundError"})}}Ne.AbiErrorNotFoundError=f;class h extends n.BaseError{constructor(j,{docsPath:P}){super([`Encoded error signature "${j}" 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://openchain.xyz/signatures?query=${j}.`].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=j}}Ne.AbiErrorSignatureNotFoundError=h;class m extends n.BaseError{constructor({docsPath:j}){super("Cannot extract event signature from empty topics.",{docsPath:j}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}Ne.AbiEventSignatureEmptyTopicsError=m;class p extends n.BaseError{constructor(j,{docsPath:P}){super([`Encoded event signature "${j}" 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://openchain.xyz/signatures?query=${j}.`].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}Ne.AbiEventSignatureNotFoundError=p;class b extends n.BaseError{constructor(j,{docsPath:P}={}){super([`Event ${j?`"${j}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}Ne.AbiEventNotFoundError=b;class v extends n.BaseError{constructor(j,{docsPath:P}={}){super([`Function ${j?`"${j}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}Ne.AbiFunctionNotFoundError=v;class g extends n.BaseError{constructor(j,{docsPath:P}){super([`Function "${j}" 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(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}Ne.AbiFunctionOutputsNotFoundError=g;class w extends n.BaseError{constructor(j,{docsPath:P}){super([`Encoded function signature "${j}" 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://openchain.xyz/signatures?query=${j}.`].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionSignatureNotFoundError"})}}Ne.AbiFunctionSignatureNotFoundError=w;class _ extends n.BaseError{constructor(j,P){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${j.type}\` in \`${(0,e.formatAbiItem)(j.abiItem)}\`, and`,`\`${P.type}\` in \`${(0,e.formatAbiItem)(P.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:"AbiItemAmbiguityError"})}}Ne.AbiItemAmbiguityError=_;class C extends n.BaseError{constructor({expectedSize:j,givenSize:P}){super(`Expected bytes${j}, got bytes${P}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}Ne.BytesSizeMismatchError=C;class x extends n.BaseError{constructor({abiItem:j,data:P,params:O,size:I}){super([`Data size of ${I} bytes is too small for non-indexed event parameters.`].join(` -`),{metaMessages:[`Params: (${(0,e.formatAbiParams)(O,{includeName:!0})})`,`Data: ${P} (${I} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=j,this.data=P,this.params=O,this.size=I}}Ne.DecodeLogDataMismatch=x;class E extends n.BaseError{constructor({abiItem:j,param:P}){super([`Expected a topic for indexed event parameter${P.name?` "${P.name}"`:""} on event "${(0,e.formatAbiItem)(j,{includeName:!0})}".`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=j}}Ne.DecodeLogTopicsMismatch=E;class T extends n.BaseError{constructor(j,{docsPath:P}){super([`Type "${j}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}Ne.InvalidAbiEncodingTypeError=T;class k extends n.BaseError{constructor(j,{docsPath:P}){super([`Type "${j}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}Ne.InvalidAbiDecodingTypeError=k;class D extends n.BaseError{constructor(j){super([`Value "${j}" is not a valid array.`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}Ne.InvalidArrayError=D;class R extends n.BaseError{constructor(j){super([`"${j}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}Ne.InvalidDefinitionTypeError=R;class F extends n.BaseError{constructor(j){super(`Type "${j}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}return Ne.UnsupportedPackedAbiType=F,Ne}var jy={};Object.defineProperty(jy,"__esModule",{value:!0});jy.FilterTypeNotSupportedError=void 0;const vTe=xt;class wTe extends vTe.BaseError{constructor(t){super(`Filter type "${t}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}jy.FilterTypeNotSupportedError=wTe;var jo={},Zr={},pl={};Object.defineProperty(pl,"__esModule",{value:!0});pl.SizeExceedsPaddingSizeError=pl.SliceOffsetOutOfBoundsError=void 0;const NX=xt;class ETe extends NX.BaseError{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:"SliceOffsetOutOfBoundsError"})}}pl.SliceOffsetOutOfBoundsError=ETe;class _Te extends NX.BaseError{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:"SizeExceedsPaddingSizeError"})}}pl.SizeExceedsPaddingSizeError=_Te;Object.defineProperty(Zr,"__esModule",{value:!0});Zr.padBytes=Zr.padHex=Zr.pad=void 0;const BX=pl;function xTe(e,{dir:t,size:n=32}={}){return typeof e=="string"?FX(e,{dir:t,size:n}):MX(e,{dir:t,size:n})}Zr.pad=xTe;function FX(e,{dir:t,size:n=32}={}){if(n===null)return e;const r=e.replace("0x","");if(r.length>n*2)throw new BX.SizeExceedsPaddingSizeError({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}Zr.padHex=FX;function MX(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new BX.SizeExceedsPaddingSizeError({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let o=0;od)throw new e.SizeOverflowError({givenSize:(0,t.size)(u),maxSize:d})}zr.assertSize=o;function a(u,d){const f=typeof d=="string"?{to:d}:d,h=f.to;return h==="number"?c(u,f):h==="bigint"?i(u,f):h==="string"?l(u,f):h==="boolean"?s(u,f):(0,r.hexToBytes)(u,f)}zr.fromHex=a;function i(u,d={}){const{signed:f}=d;d.size&&o(u,{size:d.size});const h=BigInt(u);if(!f)return h;const m=(u.length-2)/2,p=(1n<d.toString(16).padStart(2,"0"));function o(u,d={}){return typeof u=="number"||typeof u=="bigint"?s(u,d):typeof u=="string"?l(u,d):typeof u=="boolean"?a(u,d):i(u,d)}Po.toHex=o;function a(u,d={}){const f=`0x${Number(u)}`;return typeof d.size=="number"?((0,n.assertSize)(f,{size:d.size}),(0,t.pad)(f,{size:d.size})):f}Po.boolToHex=a;function i(u,d={}){let f="";for(let m=0;mp||m=c.zero&&h<=c.nine)return h-c.zero;if(h>=c.A&&h<=c.F)return h-(c.A-10);if(h>=c.a&&h<=c.f)return h-(c.a-10)}function u(h,m={}){let p=h;m.size&&((0,r.assertSize)(p,{size:m.size}),p=(0,n.pad)(p,{dir:"right",size:m.size}));let b=p.slice(2);b.length%2&&(b=`0${b}`);const v=b.length/2,g=new Uint8Array(v);for(let w=0,_=0;w{const t=typeof e=="string"?e:(0,NTe.formatAbiItem)(e);return(0,BTe.normalizeSignature)(t)};bm.getFunctionSignature=FTe;Object.defineProperty(Py,"__esModule",{value:!0});Py.getEventSignature=void 0;const MTe=bm,LTe=e=>(0,MTe.getFunctionSignature)(e);Py.getEventSignature=LTe;var co={};const UTe=Ns(Ole);Object.defineProperty(co,"__esModule",{value:!0});co.keccak256=void 0;const $Te=UTe,zTe=qn,HTe=Gn(),qTe=$e();function WTe(e,t){const n=t||"hex",r=(0,$Te.keccak_256)((0,zTe.isHex)(e,{strict:!1})?(0,HTe.toBytes)(e):e);return n==="bytes"?r:(0,qTe.toHex)(r)}co.keccak256=WTe;Object.defineProperty(Pl,"__esModule",{value:!0});Pl.getEventSelector=void 0;const GTe=Gn(),VTe=Py,KTe=co,YTe=e=>(0,KTe.keccak256)((0,GTe.toBytes)(e)),QTe=e=>YTe((0,VTe.getEventSignature)(e));Pl.getEventSelector=QTe;var oo={},Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});Zo.InvalidAddressError=void 0;const XTe=xt;class JTe extends XTe.BaseError{constructor({address:t}){super(`Address "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}Zo.InvalidAddressError=JTe;var lo={};Object.defineProperty(lo,"__esModule",{value:!0});lo.isAddress=void 0;const ZTe=/^0x[a-fA-F0-9]{40}$/;function eAe(e){return ZTe.test(e)}lo.isAddress=eAe;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.concatHex=On.concatBytes=On.concat=void 0;function tAe(e){return typeof e[0]=="string"?UX(e):LX(e)}On.concat=tAe;function LX(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}On.concatBytes=LX;function UX(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}On.concatHex=UX;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.sliceHex=Nr.sliceBytes=Nr.slice=void 0;const $X=pl,nAe=qn,jE=ka;function rAe(e,t,n,{strict:r}={}){return(0,nAe.isHex)(e,{strict:!1})?WX(e,t,n,{strict:r}):qX(e,t,n,{strict:r})}Nr.slice=rAe;function zX(e,t){if(typeof t=="number"&&t>0&&t>(0,jE.size)(e)-1)throw new $X.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:(0,jE.size)(e)})}function HX(e,t,n){if(typeof t=="number"&&typeof n=="number"&&(0,jE.size)(e)!==n-t)throw new $X.SliceOffsetOutOfBoundsError({offset:n,position:"end",size:(0,jE.size)(e)})}function qX(e,t,n,{strict:r}={}){zX(e,t);const o=e.slice(t,n);return r&&HX(o,t,n),o}Nr.sliceBytes=qX;function WX(e,t,n,{strict:r}={}){zX(e,t);const o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&HX(o,t,n),o}Nr.sliceHex=WX;Object.defineProperty(oo,"__esModule",{value:!0});oo.getArrayComponents=oo.encodeAbiParameters=void 0;const wg=Jt(),oAe=Zo,aAe=lo,Ph=On,Du=Zr,Eg=ka,iAe=Nr,ed=$e();function sAe(e,t){if(e.length!==t.length)throw new wg.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});const n=cAe({params:e,values:t}),r=Y4(n);return r.length===0?"0x":r}oo.encodeAbiParameters=sAe;function cAe({params:e,values:t}){const n=[];for(let r=0;r0?(0,Ph.concat)([s,i]):s}}if(o)return{dynamic:!0,encoded:i}}return{dynamic:!1,encoded:(0,Ph.concat)(a.map(({encoded:i})=>i))}}function dAe(e,{param:t}){const[,n]=t.type.split("bytes"),r=(0,Eg.size)(e);if(!n){let o=e;return r%32!==0&&(o=(0,Du.padHex)(o,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:(0,Ph.concat)([(0,Du.padHex)((0,ed.numberToHex)(r,{size:32})),o])}}if(r!==parseInt(n))throw new wg.AbiEncodingBytesSizeMismatchError({expectedSize:parseInt(n),value:e});return{dynamic:!1,encoded:(0,Du.padHex)(e,{dir:"right"})}}function fAe(e){return{dynamic:!1,encoded:(0,Du.padHex)((0,ed.boolToHex)(e))}}function hAe(e,{signed:t}){return{dynamic:!1,encoded:(0,ed.numberToHex)(e,{size:32,signed:t})}}function mAe(e){const t=(0,ed.stringToHex)(e),n=Math.ceil((0,Eg.size)(t)/32),r=[];for(let o=0;oo))}}function GX(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}oo.getArrayComponents=GX;var Br={},zi={};Object.defineProperty(zi,"__esModule",{value:!0});zi.getFunctionSelector=void 0;const gAe=Nr,yAe=Gn(),bAe=bm,vAe=co,wAe=e=>(0,vAe.keccak256)((0,yAe.toBytes)(e)),EAe=e=>(0,gAe.slice)(wAe((0,bAe.getFunctionSignature)(e)),0,4);zi.getFunctionSelector=EAe;Object.defineProperty(Br,"__esModule",{value:!0});Br.getAmbiguousTypes=Br.isArgOfType=Br.getAbiItem=void 0;const _Ae=Jt(),xAe=qn,CAe=Pl,SAe=zi,UD=lo;function TAe({abi:e,args:t=[],name:n}){const r=(0,xAe.isHex)(n,{strict:!1}),o=e.filter(i=>r?i.type==="function"?(0,SAe.getFunctionSelector)(i)===n:i.type==="event"?(0,CAe.getEventSelector)(i)===n:!1:"name"in i&&i.name===n);if(o.length===0)return;if(o.length===1)return o[0];let a;for(const i of o){if(!("inputs"in i))continue;if(!t||t.length===0){if(!i.inputs||i.inputs.length===0)return i;continue}if(!i.inputs||i.inputs.length===0||i.inputs.length!==t.length)continue;if(t.every((c,l)=>{const u="inputs"in i&&i.inputs[l];return u?PE(c,u):!1})){if(a&&"inputs"in a&&a.inputs){const c=Q4(i.inputs,a.inputs,t);if(c)throw new _Ae.AbiItemAmbiguityError({abiItem:i,type:c[0]},{abiItem:a,type:c[1]})}a=i}}return a||o[0]}Br.getAbiItem=TAe;function PE(e,t){const n=typeof e,r=t.type;switch(r){case"address":return(0,UD.isAddress)(e);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,a)=>PE(Object.values(e)[a],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=>PE(o,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}Br.isArgOfType=PE;function Q4(e,t,n){for(const r in e){const o=e[r],a=t[r];if(o.type==="tuple"&&a.type==="tuple"&&"components"in o&&"components"in a)return Q4(o.components,a.components,n[r]);const i=[o.type,a.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")||i.includes("address")&&i.includes("bytes")?(0,UD.isAddress)(n[r]):!1)return i}}Br.getAmbiguousTypes=Q4;Object.defineProperty(Ws,"__esModule",{value:!0});Ws.encodeEventTopics=void 0;const H9=Jt(),AAe=jy,DAe=Gn(),kAe=Pl,jAe=co,PAe=oo,IAe=Gs(),OAe=Br;function RAe({abi:e,eventName:t,args:n}){var s;let r=e[0];if(t&&(r=(0,OAe.getAbiItem)({abi:e,args:n,name:t}),!r))throw new H9.AbiEventNotFoundError(t,{docsPath:"/docs/contract/encodeEventTopics"});if(r.type!=="event")throw new H9.AbiEventNotFoundError(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const o=(0,IAe.formatAbiItem)(r),a=(0,kAe.getEventSelector)(o);let i=[];if(n&&"inputs"in r){const c=(s=r.inputs)==null?void 0:s.filter(u=>"indexed"in u&&u.indexed),l=Array.isArray(n)?n:Object.values(n).length>0?(c==null?void 0:c.map(u=>n[u.name]))??[]:[];l.length>0&&(i=(c==null?void 0:c.map((u,d)=>Array.isArray(l[d])?l[d].map((f,h)=>q9({param:u,value:l[d][h]})):l[d]?q9({param:u,value:l[d]}):null))??[])}return[a,...i]}Ws.encodeEventTopics=RAe;function q9({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return(0,jAe.keccak256)((0,DAe.toBytes)(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new AAe.FilterTypeNotSupportedError(e.type);return(0,PAe.encodeAbiParameters)([e],[t])}var _d={};Object.defineProperty(_d,"__esModule",{value:!0});_d.createFilterRequestScope=void 0;function NAe(e,{method:t}){var r,o;const n={};return e.transport.type==="fallback"&&((o=(r=e.transport).onResponse)==null||o.call(r,({method:a,response:i,status:s,transport:c})=>{s==="success"&&t===a&&(n[i]=c.request)})),a=>n[a]||e.request}_d.createFilterRequestScope=NAe;Object.defineProperty(ym,"__esModule",{value:!0});ym.createContractEventFilter=void 0;const BAe=Ws,W9=$e(),FAe=_d;async function MAe(e,{address:t,abi:n,args:r,eventName:o,fromBlock:a,strict:i,toBlock:s}){const c=(0,FAe.createFilterRequestScope)(e,{method:"eth_newFilter"}),l=o?(0,BAe.encodeEventTopics)({abi:n,args:r,eventName:o}):void 0,u=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?(0,W9.numberToHex)(a):a,toBlock:typeof s=="bigint"?(0,W9.numberToHex)(s):s,topics:l}]});return{abi:n,args:r,eventName:o,id:u,request:c(u),strict:i,type:"event"}}ym.createContractEventFilter=MAe;var Iy={},Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.parseAccount=void 0;function LAe(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}Lr.parseAccount=LAe;var ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.encodeFunctionData=void 0;const G9=Jt(),UAe=On,$Ae=zi,zAe=oo,HAe=Gs(),qAe=Br;function WAe({abi:e,args:t,functionName:n}){let r=e[0];if(n&&(r=(0,qAe.getAbiItem)({abi:e,args:t,name:n}),!r))throw new G9.AbiFunctionNotFoundError(n,{docsPath:"/docs/contract/encodeFunctionData"});if(r.type!=="function")throw new G9.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const o=(0,HAe.formatAbiItem)(r),a=(0,$Ae.getFunctionSelector)(o),i="inputs"in r&&r.inputs?(0,zAe.encodeAbiParameters)(r.inputs,t??[]):void 0;return(0,UAe.concatHex)([a,i??"0x"])}ea.encodeFunctionData=WAe;var Vs={},Zn={},Ri={};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.solidityPanic=Ri.solidityError=Ri.panicReasons=void 0;Ri.panicReasons={1:"An `assert` condition failed.",17:"Arithmic 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."};Ri.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"};Ri.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};var xd={},Hi={},xo={};Object.defineProperty(xo,"__esModule",{value:!0});xo.getAddress=xo.checksumAddress=void 0;const GAe=Zo,VAe=Gn(),KAe=co,YAe=lo;function VX(e,t){const n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,KAe.keccak256)((0,VAe.stringToBytes)(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&o[a]&&(o[a]=o[a].toUpperCase()),(r[a>>1]&15)>=8&&o[a+1]&&(o[a+1]=o[a+1].toUpperCase());return`0x${o.join("")}`}xo.checksumAddress=VX;function QAe(e,t){if(!(0,YAe.isAddress)(e))throw new GAe.InvalidAddressError({address:e});return VX(e,t)}xo.getAddress=QAe;Object.defineProperty(Hi,"__esModule",{value:!0});Hi.decodeAbiParameters=void 0;const IE=Jt(),XAe=xo,C0=ka,jr=Nr,JAe=ci,ga=Wn(),X4=oo;function ZAe(e,t){if(t==="0x"&&e.length>0)throw new IE.AbiDecodingZeroDataError;if((0,C0.size)(t)&&(0,C0.size)(t)<32)throw new IE.AbiDecodingDataSizeTooSmallError({data:t,params:e,size:(0,C0.size)(t)});return e5e({data:t,params:e})}Hi.decodeAbiParameters=ZAe;function e5e({data:e,params:t}){const n=[];let r=0;for(let o=0;o=(0,C0.size)(e))throw new IE.AbiDecodingDataSizeTooSmallError({data:e,params:t,size:(0,C0.size)(e)});const a=t[o],{consumed:i,value:s}=oh({data:e,param:a,position:r});n.push(s),r+=i}return n}function oh({data:e,param:t,position:n}){const r=(0,X4.getArrayComponents)(t.type);if(r){const[a,i]=r;return n5e(e,{length:a,param:{...t,type:i},position:n})}if(t.type==="tuple")return s5e(e,{param:t,position:n});if(t.type==="string")return i5e(e,{position:n});if(t.type.startsWith("bytes"))return o5e(e,{param:t,position:n});const o=(0,jr.slice)(e,n,n+32,{strict:!0});if(t.type.startsWith("uint")||t.type.startsWith("int"))return a5e(o,{param:t});if(t.type==="address")return t5e(o);if(t.type==="bool")return r5e(o);throw new IE.InvalidAbiDecodingTypeError(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function t5e(e){return{consumed:32,value:(0,XAe.checksumAddress)((0,jr.slice)(e,-20))}}function n5e(e,{param:t,length:n,position:r}){if(!n){const i=(0,ga.hexToNumber)((0,jr.slice)(e,r,r+32,{strict:!0})),s=(0,ga.hexToNumber)((0,jr.slice)(e,i,i+32,{strict:!0}));let c=0;const l=[];for(let u=0;u48?(0,ga.hexToBigInt)(e,{signed:n}):(0,ga.hexToNumber)(e,{signed:n})}}function i5e(e,{position:t}){const n=(0,ga.hexToNumber)((0,jr.slice)(e,t,t+32,{strict:!0})),r=(0,ga.hexToNumber)((0,jr.slice)(e,n,n+32,{strict:!0}));return r===0?{consumed:32,value:""}:{consumed:32,value:(0,ga.hexToString)((0,JAe.trim)((0,jr.slice)(e,n+32,n+32+r,{strict:!0})))}}function s5e(e,{param:t,position:n}){const r=t.components.length===0||t.components.some(({name:i})=>!i),o=r?[]:{};let a=0;if(OE(t)){const i=(0,ga.hexToNumber)((0,jr.slice)(e,n,n+32,{strict:!0}));for(let s=0;sa.type==="error"&&n===(0,c5e.getFunctionSelector)((0,u5e.formatAbiItem)(a)));if(!o)throw new K9.AbiErrorSignatureNotFoundError(n,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:o,args:"inputs"in o&&o.inputs&&o.inputs.length>0?(0,l5e.decodeAbiParameters)(o.inputs,(0,Y9.slice)(t,4)):void 0,errorName:o.name}}xd.decodeErrorResult=d5e;var Oy={},xr={};Object.defineProperty(xr,"__esModule",{value:!0});xr.stringify=void 0;const f5e=(e,t,n)=>JSON.stringify(e,(r,o)=>{const a=typeof o=="bigint"?o.toString():o;return typeof t=="function"?t(r,a):a},n);xr.stringify=f5e;Object.defineProperty(Oy,"__esModule",{value:!0});Oy.formatAbiItemWithArgs=void 0;const h5e=xr;function m5e({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,a)=>`${r&&o.name?`${o.name}: `:""}${typeof t[a]=="object"?(0,h5e.stringify)(t[a]):t[a]}`).join(", ")})`}Oy.formatAbiItemWithArgs=m5e;var Il={},ya={};Object.defineProperty(ya,"__esModule",{value:!0});ya.weiUnits=ya.gweiUnits=ya.etherUnits=void 0;ya.etherUnits={gwei:9,wei:18};ya.gweiUnits={ether:-9,wei:9};ya.weiUnits={ether:-18,gwei:-9};var Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});Cd.formatUnits=void 0;function p5e(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[o,a]=[n.slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),`${r?"-":""}${o||"0"}${a?`.${a}`:""}`}Cd.formatUnits=p5e;Object.defineProperty(Il,"__esModule",{value:!0});Il.formatEther=void 0;const g5e=ya,y5e=Cd;function b5e(e,t="wei"){return(0,y5e.formatUnits)(e,g5e.etherUnits[t])}Il.formatEther=b5e;var qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.formatGwei=void 0;const v5e=ya,w5e=Cd;function E5e(e,t="wei"){return(0,w5e.formatUnits)(e,v5e.gweiUnits[t])}qi.formatGwei=E5e;var pt={};Object.defineProperty(pt,"__esModule",{value:!0});pt.WaitForTransactionReceiptTimeoutError=pt.TransactionReceiptNotFoundError=pt.TransactionNotFoundError=pt.TransactionExecutionError=pt.InvalidStorageKeySizeError=pt.InvalidSerializedTransactionError=pt.InvalidSerializedTransactionTypeError=pt.InvalidSerializableTransactionError=pt.InvalidLegacyVError=pt.FeeConflictError=pt.prettyPrint=void 0;const _5e=Il,P3=qi,Wi=xt;function J4(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(` -`)}pt.prettyPrint=J4;class x5e extends Wi.BaseError{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}pt.FeeConflictError=x5e;class C5e extends Wi.BaseError{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}pt.InvalidLegacyVError=C5e;class S5e extends Wi.BaseError{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",J4(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","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}pt.InvalidSerializableTransactionError=S5e;class T5e extends Wi.BaseError{constructor({serializedType:t}){super(`Serialized transaction type "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=t}}pt.InvalidSerializedTransactionTypeError=T5e;class A5e extends Wi.BaseError{constructor({attributes:t,serializedTransaction:n,type:r}){const o=Object.entries(t).map(([a,i])=>typeof i>"u"?a:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${n}"`,o.length>0?`Missing Attributes: ${o.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=n,this.type=r}}pt.InvalidSerializedTransactionError=A5e;class D5e extends Wi.BaseError{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}pt.InvalidStorageKeySizeError=D5e;class k5e extends Wi.BaseError{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var m;const h=J4({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"&&`${(0,_5e.formatEther)(f)} ${((m=o==null?void 0:o.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${(0,P3.formatGwei)(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${(0,P3.formatGwei)(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${(0,P3.formatGwei)(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",h].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=t}}pt.TransactionExecutionError=k5e;class j5e extends Wi.BaseError{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:o,index:a}){let i="Transaction";r&&a!==void 0&&(i=`Transaction at block time "${r}" at index "${a}"`),t&&a!==void 0&&(i=`Transaction at block hash "${t}" at index "${a}"`),n&&a!==void 0&&(i=`Transaction at block number "${n}" at index "${a}"`),o&&(i=`Transaction with hash "${o}"`),super(`${i} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}pt.TransactionNotFoundError=j5e;class P5e extends Wi.BaseError{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}pt.TransactionReceiptNotFoundError=P5e;class I5e extends Wi.BaseError{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}pt.WaitForTransactionReceiptTimeoutError=I5e;Object.defineProperty(Zn,"__esModule",{value:!0});Zn.RawContractError=Zn.ContractFunctionZeroDataError=Zn.ContractFunctionRevertedError=Zn.ContractFunctionExecutionError=Zn.CallExecutionError=void 0;const O5e=Lr,R5e=Ri,N5e=xd,KX=Gs(),YX=Oy,B5e=Br,F5e=Il,I3=qi,M5e=Jt(),Ry=xt,QX=pt,L5e=ei;class U5e extends Ry.BaseError{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var p;const h=n?(0,O5e.parseAccount)(n):void 0,m=(0,QX.prettyPrint)({from:h==null?void 0:h.address,to:d,value:typeof f<"u"&&`${(0,F5e.formatEther)(f)} ${((p=o==null?void 0:o.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${(0,I3.formatGwei)(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${(0,I3.formatGwei)(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${(0,I3.formatGwei)(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=t}}Zn.CallExecutionError=U5e;class $5e extends Ry.BaseError{constructor(t,{abi:n,args:r,contractAddress:o,docsPath:a,functionName:i,sender:s}){const c=(0,B5e.getAbiItem)({abi:n,args:r,name:i}),l=c?(0,YX.formatAbiItemWithArgs)({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,u=c?(0,KX.formatAbiItem)(c,{includeName:!0}):void 0,d=(0,QX.prettyPrint)({address:o&&(0,L5e.getContractAddress)(o),function:u,args:l&&l!=="()"&&`${[...Array((i==null?void 0:i.length)??0).keys()].map(()=>" ").join("")}${l}`,sender:s});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Contract Call:",d].filter(Boolean)}),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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=o,this.functionName=i,this.sender=s}}Zn.ContractFunctionExecutionError=$5e;class z5e extends Ry.BaseError{constructor({abi:t,data:n,functionName:r,message:o}){let a,i,s,c;if(n&&n!=="0x")try{i=(0,N5e.decodeErrorResult)({abi:t,data:n});const{abiItem:u,errorName:d,args:f}=i;if(d==="Error")c=f[0];else if(d==="Panic"){const[h]=f;c=R5e.panicReasons[h]}else{const h=u?(0,KX.formatAbiItem)(u,{includeName:!0}):void 0,m=u&&f?(0,YX.formatAbiItemWithArgs)({abiItem:u,args:f,includeFunctionName:!1,includeName:!1}):void 0;s=[h?`Error: ${h}`:"",m&&m!=="()"?` ${[...Array((d==null?void 0:d.length)??0).keys()].map(()=>" ").join("")}${m}`:""]}}catch(u){a=u}else o&&(c=o);let l;a instanceof M5e.AbiErrorSignatureNotFoundError&&(l=a.signature,s=[`Unable to decode signature "${l}" 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://openchain.xyz/signatures?query=${l}.`]),super(c&&c!=="execution reverted"||l?[`The contract function "${r}" reverted with the following ${l?"signature":"reason"}:`,c||l].join(` -`):`The contract function "${r}" reverted.`,{cause:a,metaMessages:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{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=i,this.reason=c,this.signature=l}}Zn.ContractFunctionRevertedError=z5e;class H5e extends Ry.BaseError{constructor({functionName:t}){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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}Zn.ContractFunctionZeroDataError=H5e;class q5e extends Ry.BaseError{constructor({data:t,message:n}){super(n||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}Zn.RawContractError=q5e;var qe={},hr={};Object.defineProperty(hr,"__esModule",{value:!0});hr.TimeoutError=hr.RpcRequestError=hr.WebSocketRequestError=hr.HttpRequestError=void 0;const A2=xr,D2=xt,k2=ei;class W5e extends D2.BaseError{constructor({body:t,details:n,headers:r,status:o,url:a}){super("HTTP request failed.",{details:n,metaMessages:[o&&`Status: ${o}`,`URL: ${(0,k2.getUrl)(a)}`,t&&`Request body: ${(0,A2.stringify)(t)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=r,this.status=o,this.url=a}}hr.HttpRequestError=W5e;class G5e extends D2.BaseError{constructor({body:t,details:n,url:r}){super("WebSocket request failed.",{details:n,metaMessages:[`URL: ${(0,k2.getUrl)(r)}`,`Request body: ${(0,A2.stringify)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}hr.WebSocketRequestError=G5e;class V5e extends D2.BaseError{constructor({body:t,error:n,url:r}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${(0,k2.getUrl)(r)}`,`Request body: ${(0,A2.stringify)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code}}hr.RpcRequestError=V5e;class K5e extends D2.BaseError{constructor({body:t,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,k2.getUrl)(n)}`,`Request body: ${(0,A2.stringify)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}hr.TimeoutError=K5e;Object.defineProperty(qe,"__esModule",{value:!0});qe.UnknownRpcError=qe.SwitchChainError=qe.ChainDisconnectedError=qe.ProviderDisconnectedError=qe.UnsupportedProviderMethodError=qe.UnauthorizedProviderError=qe.UserRejectedRequestError=qe.JsonRpcVersionUnsupportedError=qe.LimitExceededRpcError=qe.MethodNotSupportedRpcError=qe.TransactionRejectedRpcError=qe.ResourceUnavailableRpcError=qe.ResourceNotFoundRpcError=qe.InvalidInputRpcError=qe.InternalRpcError=qe.InvalidParamsRpcError=qe.MethodNotFoundRpcError=qe.InvalidRequestRpcError=qe.ParseRpcError=qe.ProviderRpcError=qe.RpcError=void 0;const Y5e=xt,Q5e=hr,X5e=-1;class uo extends Y5e.BaseError{constructor(t,{code:n,docsPath:r,metaMessages:o,shortMessage:a}){super(a,{cause:t,docsPath:r,metaMessages:o||(t==null?void 0:t.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=t.name,this.code=t instanceof Q5e.RpcRequestError?t.code:n??X5e}}qe.RpcError=uo;class Sd extends uo{constructor(t,n){super(t,n),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}}qe.ProviderRpcError=Sd;class j2 extends uo{constructor(t){super(t,{code:j2.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(j2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});qe.ParseRpcError=j2;class P2 extends uo{constructor(t){super(t,{code:P2.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(P2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});qe.InvalidRequestRpcError=P2;class I2 extends uo{constructor(t){super(t,{code:I2.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(I2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});qe.MethodNotFoundRpcError=I2;class O2 extends uo{constructor(t){super(t,{code:O2.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(O2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});qe.InvalidParamsRpcError=O2;class R2 extends uo{constructor(t){super(t,{code:R2.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(R2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});qe.InternalRpcError=R2;class N2 extends uo{constructor(t){super(t,{code:N2.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(N2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});qe.InvalidInputRpcError=N2;class B2 extends uo{constructor(t){super(t,{code:B2.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(B2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});qe.ResourceNotFoundRpcError=B2;class F2 extends uo{constructor(t){super(t,{code:F2.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(F2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});qe.ResourceUnavailableRpcError=F2;class M2 extends uo{constructor(t){super(t,{code:M2.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(M2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});qe.TransactionRejectedRpcError=M2;class L2 extends uo{constructor(t){super(t,{code:L2.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(L2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});qe.MethodNotSupportedRpcError=L2;class U2 extends uo{constructor(t){super(t,{code:U2.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(U2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});qe.LimitExceededRpcError=U2;class $2 extends uo{constructor(t){super(t,{code:$2.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty($2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});qe.JsonRpcVersionUnsupportedError=$2;class z2 extends Sd{constructor(t){super(t,{code:z2.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(z2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});qe.UserRejectedRequestError=z2;class H2 extends Sd{constructor(t){super(t,{code:H2.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(H2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});qe.UnauthorizedProviderError=H2;class q2 extends Sd{constructor(t){super(t,{code:q2.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(q2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});qe.UnsupportedProviderMethodError=q2;class W2 extends Sd{constructor(t){super(t,{code:W2.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(W2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});qe.ProviderDisconnectedError=W2;class G2 extends Sd{constructor(t){super(t,{code:G2.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(G2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});qe.ChainDisconnectedError=G2;class V2 extends Sd{constructor(t){super(t,{code:V2.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(V2,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});qe.SwitchChainError=V2;class J5e extends uo{constructor(t){super(t,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}qe.UnknownRpcError=J5e;Object.defineProperty(Vs,"__esModule",{value:!0});Vs.getContractError=void 0;const Z5e=Jt(),eDe=xt,bv=Zn,tDe=qe,nDe=3;function rDe(e,{abi:t,address:n,args:r,docsPath:o,functionName:a,sender:i}){const{code:s,data:c,message:l,shortMessage:u}=e instanceof bv.RawContractError?e:e instanceof eDe.BaseError?e.walk(f=>"data"in f)||e.walk():{},d=e instanceof Z5e.AbiDecodingZeroDataError?new bv.ContractFunctionZeroDataError({functionName:a}):[nDe,tDe.InternalRpcError.code].includes(s)&&(c||l||u)?new bv.ContractFunctionRevertedError({abi:t,data:typeof c=="object"?c.data:c,functionName:a,message:u??l}):e;return new bv.ContractFunctionExecutionError(d,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:a,sender:i})}Vs.getContractError=rDe;var Sp={},Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});Ks.AccountNotFoundError=void 0;const oDe=xt;class aDe extends oDe.BaseError{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 WalletClient."].join(` -`),{docsPath:t,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}Ks.AccountNotFoundError=aDe;var Ny={},By={};Object.defineProperty(By,"__esModule",{value:!0});By.EstimateGasExecutionError=void 0;const iDe=Il,O3=qi,sDe=xt,cDe=pt;class lDe extends sDe.BaseError{constructor(t,{account:n,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var m;const h=(0,cDe.prettyPrint)({from:n==null?void 0:n.address,to:d,value:typeof f<"u"&&`${(0,iDe.formatEther)(f)} ${((m=o==null?void 0:o.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:a,gas:i,gasPrice:typeof s<"u"&&`${(0,O3.formatGwei)(s)} gwei`,maxFeePerGas:typeof c<"u"&&`${(0,O3.formatGwei)(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${(0,O3.formatGwei)(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",h].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=t}}By.EstimateGasExecutionError=lDe;var St={};Object.defineProperty(St,"__esModule",{value:!0});St.UnknownNodeError=St.TipAboveFeeCapError=St.TransactionTypeNotSupportedError=St.IntrinsicGasTooLowError=St.IntrinsicGasTooHighError=St.InsufficientFundsError=St.NonceMaxValueError=St.NonceTooLowError=St.NonceTooHighError=St.FeeCapTooLowError=St.FeeCapTooHighError=St.ExecutionRevertedError=void 0;const RE=qi,ja=xt;class Z4 extends ja.BaseError{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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(Z4,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Z4,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});St.ExecutionRevertedError=Z4;class XX extends ja.BaseError{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${(0,RE.formatGwei)(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(XX,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});St.FeeCapTooHighError=XX;class JX extends ja.BaseError{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${(0,RE.formatGwei)(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(JX,"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/});St.FeeCapTooLowError=JX;class ZX extends ja.BaseError{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(ZX,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});St.NonceTooHighError=ZX;class eJ extends ja.BaseError{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(` -`),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(eJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});St.NonceTooLowError=eJ;class tJ extends ja.BaseError{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(tJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});St.NonceMaxValueError=tJ;class nJ extends ja.BaseError{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` -`),{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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(nJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});St.InsufficientFundsError=nJ;class rJ extends ja.BaseError{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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(rJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});St.IntrinsicGasTooHighError=rJ;class oJ extends ja.BaseError{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(oJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});St.IntrinsicGasTooLowError=oJ;class aJ extends ja.BaseError{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(aJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});St.TransactionTypeNotSupportedError=aJ;class iJ extends ja.BaseError{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${(0,RE.formatGwei)(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,RE.formatGwei)(r)} gwei`:""}).`].join(` -`),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(iJ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});St.TipAboveFeeCapError=iJ;class uDe extends ja.BaseError{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}St.UnknownNodeError=uDe;var ks={};Object.defineProperty(ks,"__esModule",{value:!0});ks.getNodeError=ks.containsNodeError=void 0;const dDe=xt,Ht=St,fDe=hr,Q9=qe;function hDe(e){return e instanceof Q9.TransactionRejectedRpcError||e instanceof Q9.InvalidInputRpcError||e instanceof fDe.RpcRequestError&&e.code===Ht.ExecutionRevertedError.code}ks.containsNodeError=hDe;function mDe(e,t){const n=(e.details||"").toLowerCase(),r=e.walk(o=>o.code===Ht.ExecutionRevertedError.code);return r instanceof dDe.BaseError?new Ht.ExecutionRevertedError({cause:e,message:r.details}):Ht.ExecutionRevertedError.nodeMessage.test(n)?new Ht.ExecutionRevertedError({cause:e,message:e.details}):Ht.FeeCapTooHighError.nodeMessage.test(n)?new Ht.FeeCapTooHighError({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Ht.FeeCapTooLowError.nodeMessage.test(n)?new Ht.FeeCapTooLowError({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Ht.NonceTooHighError.nodeMessage.test(n)?new Ht.NonceTooHighError({cause:e,nonce:t==null?void 0:t.nonce}):Ht.NonceTooLowError.nodeMessage.test(n)?new Ht.NonceTooLowError({cause:e,nonce:t==null?void 0:t.nonce}):Ht.NonceMaxValueError.nodeMessage.test(n)?new Ht.NonceMaxValueError({cause:e,nonce:t==null?void 0:t.nonce}):Ht.InsufficientFundsError.nodeMessage.test(n)?new Ht.InsufficientFundsError({cause:e}):Ht.IntrinsicGasTooHighError.nodeMessage.test(n)?new Ht.IntrinsicGasTooHighError({cause:e,gas:t==null?void 0:t.gas}):Ht.IntrinsicGasTooLowError.nodeMessage.test(n)?new Ht.IntrinsicGasTooLowError({cause:e,gas:t==null?void 0:t.gas}):Ht.TransactionTypeNotSupportedError.nodeMessage.test(n)?new Ht.TransactionTypeNotSupportedError({cause:e}):Ht.TipAboveFeeCapError.nodeMessage.test(n)?new Ht.TipAboveFeeCapError({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new Ht.UnknownNodeError({cause:e})}ks.getNodeError=mDe;Object.defineProperty(Ny,"__esModule",{value:!0});Ny.getEstimateGasError=void 0;const pDe=By,gDe=St,yDe=ks;function bDe(e,{docsPath:t,...n}){const r=(()=>{const o=(0,yDe.getNodeError)(e,n);return o instanceof gDe.UnknownNodeError?e:o})();return new pDe.EstimateGasExecutionError(r,{docsPath:t,...n})}Ny.getEstimateGasError=bDe;var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});Ol.extract=void 0;function vDe(e,{format:t}){if(!t)return{};const n={};function r(a){const i=Object.keys(a);for(const s of i)s in e&&(n[s]=e[s]),a[s]&&typeof a[s]=="object"&&!Array.isArray(a[s])&&r(a[s])}const o=t(e||{});return r(o),n}Ol.extract=vDe;var Rl={},Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});Nl.defineFormatter=void 0;function wDe(e,t){return({exclude:n,format:r})=>({exclude:n,format:o=>{const a=t(o);if(n)for(const i of n)delete a[i];return{...a,...r(o)}},type:e})}Nl.defineFormatter=wDe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defineTransactionRequest=e.formatTransactionRequest=e.rpcTransactionType=void 0;const t=$e(),n=Nl;e.rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function r(o){return{...o,gas:typeof o.gas<"u"?(0,t.numberToHex)(o.gas):void 0,gasPrice:typeof o.gasPrice<"u"?(0,t.numberToHex)(o.gasPrice):void 0,maxFeePerGas:typeof o.maxFeePerGas<"u"?(0,t.numberToHex)(o.maxFeePerGas):void 0,maxPriorityFeePerGas:typeof o.maxPriorityFeePerGas<"u"?(0,t.numberToHex)(o.maxPriorityFeePerGas):void 0,nonce:typeof o.nonce<"u"?(0,t.numberToHex)(o.nonce):void 0,type:typeof o.type<"u"?e.rpcTransactionType[o.type]:void 0,value:typeof o.value<"u"?(0,t.numberToHex)(o.value):void 0}}e.formatTransactionRequest=r,e.defineTransactionRequest=(0,n.defineFormatter)("transactionRequest",r)})(Rl);var Gi={};Object.defineProperty(Gi,"__esModule",{value:!0});Gi.assertRequest=void 0;const EDe=Lr,X9=Zo,J9=St,_De=pt,Z9=lo;function xDe(e){const{account:t,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:o,to:a}=e,i=t?(0,EDe.parseAccount)(t):void 0;if(i&&!(0,Z9.isAddress)(i.address))throw new X9.InvalidAddressError({address:i.address});if(a&&!(0,Z9.isAddress)(a))throw new X9.InvalidAddressError({address:a});if(typeof n<"u"&&(typeof r<"u"||typeof o<"u"))throw new _De.FeeConflictError;if(r&&r>2n**256n-1n)throw new J9.FeeCapTooHighError({maxFeePerGas:r});if(o&&r&&o>r)throw new J9.TipAboveFeeCapError({maxFeePerGas:r,maxPriorityFeePerGas:o})}Gi.assertRequest=xDe;var Tp={},td={},ti={};Object.defineProperty(ti,"__esModule",{value:!0});ti.MaxFeePerGasTooLowError=ti.Eip1559FeesNotSupportedError=ti.BaseFeeScalarError=void 0;const CDe=qi,eP=xt;class SDe extends eP.BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}ti.BaseFeeScalarError=SDe;class TDe extends eP.BaseError{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}ti.Eip1559FeesNotSupportedError=TDe;class ADe extends eP.BaseError{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,CDe.formatGwei)(t)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}ti.MaxFeePerGasTooLowError=ADe;var nd={},Ys={},vm={};Object.defineProperty(vm,"__esModule",{value:!0});vm.BlockNotFoundError=void 0;const DDe=xt;class kDe extends DDe.BaseError{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.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}vm.BlockNotFoundError=kDe;var js={},wm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defineTransaction=e.formatTransaction=e.transactionType=void 0;const t=Wn(),n=Nl;e.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function r(o){const a={...o,blockHash:o.blockHash?o.blockHash:null,blockNumber:o.blockNumber?BigInt(o.blockNumber):null,chainId:o.chainId?(0,t.hexToNumber)(o.chainId):void 0,gas:o.gas?BigInt(o.gas):void 0,gasPrice:o.gasPrice?BigInt(o.gasPrice):void 0,maxFeePerGas:o.maxFeePerGas?BigInt(o.maxFeePerGas):void 0,maxPriorityFeePerGas:o.maxPriorityFeePerGas?BigInt(o.maxPriorityFeePerGas):void 0,nonce:o.nonce?(0,t.hexToNumber)(o.nonce):void 0,to:o.to?o.to:null,transactionIndex:o.transactionIndex?Number(o.transactionIndex):null,type:o.type?e.transactionType[o.type]:void 0,typeHex:o.type?o.type:void 0,value:o.value?BigInt(o.value):void 0,v:o.v?BigInt(o.v):void 0};return a.yParity=(()=>{if(o.yParity)return Number(o.yParity);if(typeof a.v=="bigint"){if(a.v===0n||a.v===27n)return 0;if(a.v===1n||a.v===28n)return 1;if(a.v>=35n)return a.v%2n===0n?1:0}})(),a.type==="legacy"&&(delete a.accessList,delete a.maxFeePerGas,delete a.maxPriorityFeePerGas,delete a.yParity),a.type==="eip2930"&&(delete a.maxFeePerGas,delete a.maxPriorityFeePerGas),a}e.formatTransaction=r,e.defineTransaction=(0,n.defineFormatter)("transaction",r)})(wm);Object.defineProperty(js,"__esModule",{value:!0});js.defineBlock=js.formatBlock=void 0;const jDe=Nl,PDe=wm;function sJ(e){var n;const t=(n=e.transactions)==null?void 0:n.map(r=>typeof r=="string"?r:(0,PDe.formatTransaction)(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):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:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}js.formatBlock=sJ;js.defineBlock=(0,jDe.defineFormatter)("block",sJ);Object.defineProperty(Ys,"__esModule",{value:!0});Ys.getBlock=void 0;const IDe=vm,ODe=$e(),RDe=js;async function NDe(e,{blockHash:t,blockNumber:n,blockTag:r,includeTransactions:o}={}){var u,d,f;const a=r??"latest",i=o??!1,s=n!==void 0?(0,ODe.numberToHex)(n):void 0;let c=null;if(t?c=await e.request({method:"eth_getBlockByHash",params:[t,i]}):c=await e.request({method:"eth_getBlockByNumber",params:[s||a,i]}),!c)throw new IDe.BlockNotFoundError({blockHash:t,blockNumber:n});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.block)==null?void 0:f.format)||RDe.formatBlock)(c)}Ys.getBlock=NDe;var Em={};Object.defineProperty(Em,"__esModule",{value:!0});Em.getGasPrice=void 0;async function BDe(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}Em.getGasPrice=BDe;Object.defineProperty(nd,"__esModule",{value:!0});nd.internal_estimateMaxPriorityFeePerGas=nd.estimateMaxPriorityFeePerGas=void 0;const FDe=ti,MDe=Wn(),R3=Bt,eB=Ys,LDe=Em;async function UDe(e,t){return cJ(e,t)}nd.estimateMaxPriorityFeePerGas=UDe;async function cJ(e,t){var a,i,s;const{block:n,chain:r=e.chain,request:o}=t||{};if(typeof((a=r==null?void 0:r.fees)==null?void 0:a.defaultPriorityFee)=="function"){const c=n||await(0,R3.getAction)(e,eB.getBlock,"getBlock")({});return r.fees.defaultPriorityFee({block:c,client:e,request:o})}if(typeof((i=r==null?void 0:r.fees)==null?void 0:i.defaultPriorityFee)<"u")return(s=r==null?void 0:r.fees)==null?void 0:s.defaultPriorityFee;try{const c=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,MDe.hexToBigInt)(c)}catch{const[c,l]=await Promise.all([n?Promise.resolve(n):(0,R3.getAction)(e,eB.getBlock,"getBlock")({}),(0,R3.getAction)(e,LDe.getGasPrice,"getGasPrice")({})]);if(typeof c.baseFeePerGas!="bigint")throw new FDe.Eip1559FeesNotSupportedError;const u=l-c.baseFeePerGas;return u<0n?0n:u}}nd.internal_estimateMaxPriorityFeePerGas=cJ;Object.defineProperty(td,"__esModule",{value:!0});td.internal_estimateFeesPerGas=td.estimateFeesPerGas=void 0;const tB=ti,nB=Bt,$De=nd,zDe=Ys,HDe=Em;async function qDe(e,t){return lJ(e,t)}td.estimateFeesPerGas=qDe;async function lJ(e,t){var f,h;const{block:n,chain:r=e.chain,request:o,type:a="eip1559"}=t||{},i=await(async()=>{var m,p;return typeof((m=r==null?void 0:r.fees)==null?void 0:m.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:e,request:o}):((p=r==null?void 0:r.fees)==null?void 0:p.baseFeeMultiplier)??1.2})();if(i<1)throw new tB.BaseFeeScalarError;const c=10**(((f=i.toString().split(".")[1])==null?void 0:f.length)??0),l=m=>m*BigInt(Math.ceil(i*c))/BigInt(c),u=n||await(0,nB.getAction)(e,zDe.getBlock,"getBlock")({});if(typeof((h=r==null?void 0:r.fees)==null?void 0:h.estimateFeesPerGas)=="function")return r.fees.estimateFeesPerGas({block:n,client:e,multiply:l,request:o,type:a});if(a==="eip1559"){if(typeof u.baseFeePerGas!="bigint")throw new tB.Eip1559FeesNotSupportedError;const m=o!=null&&o.maxPriorityFeePerGas?o.maxPriorityFeePerGas:await(0,$De.internal_estimateMaxPriorityFeePerGas)(e,{block:u,chain:r,request:o}),p=l(u.baseFeePerGas);return{maxFeePerGas:(o==null?void 0:o.maxFeePerGas)??p+m,maxPriorityFeePerGas:m}}return{gasPrice:(o==null?void 0:o.gasPrice)??l(await(0,nB.getAction)(e,HDe.getGasPrice,"getGasPrice")({}))}}td.internal_estimateFeesPerGas=lJ;var Fy={};Object.defineProperty(Fy,"__esModule",{value:!0});Fy.getTransactionCount=void 0;const WDe=Wn(),GDe=$e();async function VDe(e,{address:t,blockTag:n="latest",blockNumber:r}){const o=await e.request({method:"eth_getTransactionCount",params:[t,r?(0,GDe.numberToHex)(r):n]});return(0,WDe.hexToNumber)(o)}Fy.getTransactionCount=VDe;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});Td.getTransactionType=void 0;const KDe=pt;function YDe(e){if(e.type)return e.type;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 KDe.InvalidSerializableTransactionError({transaction:e})}Td.getTransactionType=YDe;var rB;function My(){if(rB)return Tp;rB=1,Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.prepareTransactionRequest=void 0;const e=Lr,t=td,n=tP(),r=Ys,o=Fy,a=Ks,i=ti,s=Bt,c=Gi,l=Td;async function u(d,f){const{account:h=d.account,chain:m,gas:p,nonce:b,type:v}=f;if(!h)throw new a.AccountNotFoundError;const g=(0,e.parseAccount)(h),w=await(0,s.getAction)(d,r.getBlock,"getBlock")({blockTag:"latest"}),_={...f,from:g.address};if(typeof b>"u"&&(_.nonce=await(0,s.getAction)(d,o.getTransactionCount,"getTransactionCount")({address:g.address,blockTag:"pending"})),typeof v>"u")try{_.type=(0,l.getTransactionType)(_)}catch{_.type=typeof w.baseFeePerGas=="bigint"?"eip1559":"legacy"}if(_.type==="eip1559"){const{maxFeePerGas:C,maxPriorityFeePerGas:x}=await(0,t.internal_estimateFeesPerGas)(d,{block:w,chain:m,request:_});if(typeof f.maxPriorityFeePerGas>"u"&&f.maxFeePerGas&&f.maxFeePerGas"u"&&(_.gas=await(0,s.getAction)(d,n.estimateGas,"estimateGas")({..._,account:{address:g.address,type:"json-rpc"}})),(0,c.assertRequest)(_),_}return Tp.prepareTransactionRequest=u,Tp}var oB;function tP(){if(oB)return Sp;oB=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.estimateGas=void 0;const e=Lr,t=Ks,n=$e(),r=Ny,o=Ol,a=Rl,i=Gi,s=My();async function c(l,u){var h,m,p;const d=u.account??l.account;if(!d)throw new t.AccountNotFoundError({docsPath:"/docs/actions/public/estimateGas"});const f=(0,e.parseAccount)(d);try{const{accessList:b,blockNumber:v,blockTag:g,data:w,gas:_,gasPrice:C,maxFeePerGas:x,maxPriorityFeePerGas:E,nonce:T,to:k,value:D,...R}=f.type==="local"?await(0,s.prepareTransactionRequest)(l,u):u,B=(v?(0,n.numberToHex)(v):void 0)||g;(0,i.assertRequest)(u);const j=(p=(m=(h=l.chain)==null?void 0:h.formatters)==null?void 0:m.transactionRequest)==null?void 0:p.format,O=(j||a.formatTransactionRequest)({...(0,o.extract)(R,{format:j}),from:f.address,accessList:b,data:w,gas:_,gasPrice:C,maxFeePerGas:x,maxPriorityFeePerGas:E,nonce:T,to:k,value:D}),I=await l.request({method:"eth_estimateGas",params:B?[O,B]:[O]});return BigInt(I)}catch(b){throw(0,r.getEstimateGasError)(b,{...u,account:f,chain:l.chain})}}return Sp.estimateGas=c,Sp}Object.defineProperty(Iy,"__esModule",{value:!0});Iy.estimateContractGas=void 0;const QDe=Lr,XDe=ea,JDe=Vs,ZDe=Bt,e8e=tP();async function t8e(e,{abi:t,address:n,args:r,functionName:o,...a}){const i=(0,XDe.encodeFunctionData)({abi:t,args:r,functionName:o});try{return await(0,ZDe.getAction)(e,e8e.estimateGas,"estimateGas")({data:i,to:n,...a})}catch(s){const c=a.account?(0,QDe.parseAccount)(a.account):void 0;throw(0,JDe.getContractError)(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:c==null?void 0:c.address})}}Iy.estimateContractGas=t8e;var _m={},xm={},Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.decodeEventLog=void 0;const ef=Jt(),n8e=Pl,uJ=Hi,r8e=Gs(),aB="/docs/contract/decodeEventLog";function o8e({abi:e,data:t,strict:n,topics:r}){const o=n??!0,[a,...i]=r;if(!a)throw new ef.AbiEventSignatureEmptyTopicsError({docsPath:aB});const s=e.find(m=>m.type==="event"&&a===(0,n8e.getEventSelector)((0,r8e.formatAbiItem)(m)));if(!(s&&"name"in s)||s.type!=="event")throw new ef.AbiEventSignatureNotFoundError(a,{docsPath:aB});const{name:c,inputs:l}=s,u=l==null?void 0:l.some(m=>!("name"in m&&m.name));let d=u?[]:{};const f=l.filter(m=>"indexed"in m&&m.indexed);for(let m=0;m!("indexed"in m&&m.indexed));if(h.length>0){if(t&&t!=="0x")try{const m=(0,uJ.decodeAbiParameters)(h,t);if(m)if(u)d=[...d,...m];else for(let p=0;p0?d:void 0}}Qs.decodeEventLog=o8e;function a8e({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,uJ.decodeAbiParameters)([e],t)||[])[0]}var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.formatLog=void 0;function i8e(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,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}:{}}}Vi.formatLog=i8e;Object.defineProperty(xm,"__esModule",{value:!0});xm.getLogs=void 0;const iB=Jt(),s8e=Qs,c8e=Ws,sB=$e(),cB=Vi;async function l8e(e,{address:t,blockHash:n,fromBlock:r,toBlock:o,event:a,events:i,args:s,strict:c}={}){const l=c??!1,u=i??(a?[a]:void 0);let d=[];u&&(d=[u.flatMap(h=>(0,c8e.encodeEventTopics)({abi:[h],eventName:h.name,args:s}))],a&&(d=d[0]));let f;return 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"?(0,sB.numberToHex)(r):r,toBlock:typeof o=="bigint"?(0,sB.numberToHex)(o):o}]}),f.map(h=>{var m;try{const{eventName:p,args:b}=u?(0,s8e.decodeEventLog)({abi:u,data:h.data,topics:h.topics,strict:l}):{eventName:void 0,args:void 0};return(0,cB.formatLog)(h,{args:b,eventName:p})}catch(p){let b,v;if(p instanceof iB.DecodeLogDataMismatch||p instanceof iB.DecodeLogTopicsMismatch){if(l)return;b=p.abiItem.name,v=(m=p.abiItem.inputs)==null?void 0:m.some(g=>!("name"in g&&g.name))}return(0,cB.formatLog)(h,{args:v?[]:{},eventName:b})}}).filter(Boolean)}xm.getLogs=l8e;Object.defineProperty(_m,"__esModule",{value:!0});_m.getContractEvents=void 0;const u8e=Br,d8e=Bt,f8e=xm;async function h8e(e,{abi:t,address:n,args:r,blockHash:o,eventName:a,fromBlock:i,toBlock:s,strict:c}){const l=a?(0,u8e.getAbiItem)({abi:t,name:a}):void 0,u=l?void 0:t.filter(d=>d.type==="event");return(0,d8e.getAction)(e,f8e.getLogs,"getLogs")({address:n,args:r,blockHash:o,event:l,events:u,fromBlock:i,toBlock:s,strict:c})}_m.getContractEvents=h8e;var li={},ui={};Object.defineProperty(ui,"__esModule",{value:!0});ui.decodeFunctionResult=void 0;const N3=Jt(),m8e=Hi,p8e=Br,B3="/docs/contract/decodeFunctionResult";function g8e({abi:e,args:t,functionName:n,data:r}){let o=e[0];if(n&&(o=(0,p8e.getAbiItem)({abi:e,args:t,name:n}),!o))throw new N3.AbiFunctionNotFoundError(n,{docsPath:B3});if(o.type!=="function")throw new N3.AbiFunctionNotFoundError(void 0,{docsPath:B3});if(!o.outputs)throw new N3.AbiFunctionOutputsNotFoundError(o.name,{docsPath:B3});const a=(0,m8e.decodeAbiParameters)(o.outputs,r);if(a&&a.length>1)return a;if(a&&a.length===1)return a[0]}ui.decodeFunctionResult=g8e;var Yl={},mn={};Object.defineProperty(mn,"__esModule",{value:!0});mn.universalSignatureValidatorAbi=mn.smartAccountAbi=mn.addressResolverAbi=mn.textResolverAbi=mn.universalResolverReverseAbi=mn.universalResolverResolveAbi=mn.multicall3Abi=void 0;mn.multicall3Abi=[{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"}];const dJ=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}];mn.universalResolverResolveAbi=[...dJ,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}];mn.universalResolverReverseAbi=[...dJ,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}];mn.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}];mn.addressResolverAbi=[{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"}]}];mn.smartAccountAbi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}];mn.universalSignatureValidatorAbi=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}];var K2={};Object.defineProperty(K2,"__esModule",{value:!0});K2.aggregate3Signature=void 0;K2.aggregate3Signature="0x82ad56cb";var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.InvalidChainIdError=Pr.ClientChainNotConfiguredError=Pr.ChainNotFoundError=Pr.ChainMismatchError=Pr.ChainDoesNotSupportContract=void 0;const Ly=xt;class y8e extends Ly.BaseError{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.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}Pr.ChainDoesNotSupportContract=y8e;class b8e extends Ly.BaseError{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}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}Pr.ChainMismatchError=b8e;class v8e extends Ly.BaseError{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(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}Pr.ChainNotFoundError=v8e;class w8e extends Ly.BaseError{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}Pr.ClientChainNotConfiguredError=w8e;class E8e extends Ly.BaseError{constructor({chainId:t}){super(`Chain ID "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}Pr.InvalidChainIdError=E8e;var di={};Object.defineProperty(di,"__esModule",{value:!0});di.getChainContractAddress=void 0;const lB=Pr;function _8e({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 lB.ChainDoesNotSupportContract({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new lB.ChainDoesNotSupportContract({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}di.getChainContractAddress=_8e;var Uy={};Object.defineProperty(Uy,"__esModule",{value:!0});Uy.getCallError=void 0;const x8e=Zn,C8e=St,S8e=ks;function T8e(e,{docsPath:t,...n}){const r=(()=>{const o=(0,S8e.getNodeError)(e,n);return o instanceof C8e.UnknownNodeError?e:o})();return new x8e.CallExecutionError(r,{docsPath:t,...n})}Uy.getCallError=T8e;var Cm={};Object.defineProperty(Cm,"__esModule",{value:!0});Cm.createBatchScheduler=void 0;const F3=new Map;function A8e({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){const a=async()=>{const u=c();i();const d=u.map(({args:f})=>f);d.length!==0&&e(d).then(f=>{var h;o&&Array.isArray(f)&&f.sort(o);for(let m=0;m{var h;for(let m=0;mF3.delete(t),s=()=>c().map(({args:u})=>u),c=()=>F3.get(t)||[],l=u=>F3.set(t,[...c(),u]);return{flush:i,async schedule(u){const d={},f=new Promise((p,b)=>{d.resolve=p,d.reject=b});return(n==null?void 0:n([...s(),u]))&&a(),c().length>0?(l({args:u,pendingPromise:d}),f):(l({args:u,pendingPromise:d}),setTimeout(a,r),f)}}}Cm.createBatchScheduler=A8e;var M3={},Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});Yc.OffchainLookupSenderMismatchError=Yc.OffchainLookupResponseMalformedError=Yc.OffchainLookupError=void 0;const D8e=xr,nP=xt,fJ=ei;class k8e extends nP.BaseError{constructor({callbackSelector:t,cause:n,data:r,extraData:o,sender:a,urls:i}){var s;super(n.shortMessage||"An error occurred while fetching for an offchain result.",{cause:n,metaMessages:[...n.metaMessages||[],(s=n.metaMessages)!=null&&s.length?"":[],"Offchain Gateway Call:",i&&[" Gateway URL(s):",...i.map(c=>` ${(0,fJ.getUrl)(c)}`)],` Sender: ${a}`,` Data: ${r}`,` Callback selector: ${t}`,` Extra data: ${o}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}Yc.OffchainLookupError=k8e;class j8e extends nP.BaseError{constructor({result:t,url:n}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,fJ.getUrl)(n)}`,`Response: ${(0,D8e.stringify)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}Yc.OffchainLookupResponseMalformedError=j8e;class P8e extends nP.BaseError{constructor({sender:t,to:n}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${n}`,`OffchainLookup sender address: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}Yc.OffchainLookupSenderMismatchError=P8e;var Bl={};Object.defineProperty(Bl,"__esModule",{value:!0});Bl.isAddressEqual=void 0;const uB=Zo,dB=lo;function I8e(e,t){if(!(0,dB.isAddress)(e))throw new uB.InvalidAddressError({address:e});if(!(0,dB.isAddress)(t))throw new uB.InvalidAddressError({address:t});return e.toLowerCase()===t.toLowerCase()}Bl.isAddressEqual=I8e;var fB;function rP(){return fB||(fB=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ccipFetch=e.offchainLookup=e.offchainLookupAbiItem=e.offchainLookupSignature=void 0;const t=$y(),n=Yc,r=hr,o=xd,a=oo,i=Bl,s=On,c=qn,l=xr;e.offchainLookupSignature="0x556f1830",e.offchainLookupAbiItem={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function u(f,{blockNumber:h,blockTag:m,data:p,to:b}){const{args:v}=(0,o.decodeErrorResult)({data:p,abi:[e.offchainLookupAbiItem]}),[g,w,_,C,x]=v;try{if(!(0,i.isAddressEqual)(b,g))throw new n.OffchainLookupSenderMismatchError({sender:g,to:b});const E=await d({data:_,sender:g,urls:w}),{data:T}=await(0,t.call)(f,{blockNumber:h,blockTag:m,data:(0,s.concat)([C,(0,a.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[E,x])]),to:b});return T}catch(E){throw new n.OffchainLookupError({callbackSelector:C,cause:E,data:p,extraData:x,sender:g,urls:w})}}e.offchainLookup=u;async function d({data:f,sender:h,urls:m}){var b;let p=new Error("An unknown error occurred.");for(let v=0;vrP());if((Z==null?void 0:Z.slice(0,10))===ne&&O)return{data:await ae(w,{data:Z,to:O})};throw(0,u.getCallError)(G,{..._,account:M,chain:w.chain})}}Yl.call=p;function b({request:w}){const{data:_,to:C,...x}=w;return!(!_||_.startsWith(n.aggregate3Signature)||!C||Object.values(x).filter(E=>typeof E<"u").length>0)}async function v(w,_){var N;const{batchSize:C=1024,wait:x=0}=typeof((N=w.batch)==null?void 0:N.multicall)=="object"?w.batch.multicall:{},{blockNumber:E,blockTag:T="latest",data:k,multicallAddress:D,to:R}=_;let F=D;if(!F){if(!w.chain)throw new o.ClientChainNotConfiguredError;F=(0,c.getChainContractAddress)({blockNumber:E,chain:w.chain,contract:"multicall3"})}const j=(E?(0,l.numberToHex)(E):void 0)||T,{schedule:P}=(0,h.createBatchScheduler)({id:`${w.uid}.${j}`,wait:x,shouldSplitBatch(M){return M.reduce((X,{data:J})=>X+(J.length-2),0)>C*2},fn:async M=>{const L=M.map(U=>({allowFailure:!0,callData:U.data,target:U.to})),X=(0,s.encodeFunctionData)({abi:t.multicall3Abi,args:[L],functionName:"aggregate3"}),J=await w.request({method:"eth_call",params:[{data:X,to:F},j]});return(0,i.decodeFunctionResult)({abi:t.multicall3Abi,args:[L],functionName:"aggregate3",data:J||"0x"})}}),[{returnData:O,success:I}]=await P({data:k,to:R});if(!I)throw new a.RawContractError({data:O});return O==="0x"?{data:void 0}:{data:O}}function g(w){if(!(w instanceof r.BaseError))return;const _=w.walk();return typeof _.data=="object"?_.data.data:_.data}return Yl.getRevertErrorData=g,Yl}Object.defineProperty(li,"__esModule",{value:!0});li.readContract=void 0;const O8e=ui,R8e=ea,N8e=Vs,B8e=Bt,F8e=$y();async function M8e(e,{abi:t,address:n,args:r,functionName:o,...a}){const i=(0,R8e.encodeFunctionData)({abi:t,args:r,functionName:o});try{const{data:s}=await(0,B8e.getAction)(e,F8e.call,"call")({data:i,to:n,...a});return(0,O8e.decodeFunctionResult)({abi:t,args:r,functionName:o,data:s||"0x"})}catch(s){throw(0,N8e.getContractError)(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/readContract",functionName:o})}}li.readContract=M8e;var zy={};Object.defineProperty(zy,"__esModule",{value:!0});zy.simulateContract=void 0;const L8e=Lr,U8e=ui,$8e=ea,z8e=Vs,H8e=Bt,q8e=$y();async function W8e(e,{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}){const s=i.account?(0,L8e.parseAccount)(i.account):void 0,c=(0,$8e.encodeFunctionData)({abi:t,args:r,functionName:a});try{const{data:l}=await(0,H8e.getAction)(e,q8e.call,"call")({batch:!1,data:`${c}${o?o.replace("0x",""):""}`,to:n,...i});return{result:(0,U8e.decodeFunctionResult)({abi:t,args:r,functionName:a,data:l||"0x"}),request:{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}}}catch(l){throw(0,z8e.getContractError)(l,{abi:t,address:n,args:r,docsPath:"/docs/contract/simulateContract",functionName:a,sender:s==null?void 0:s.address})}}zy.simulateContract=W8e;var Hy={},Ad={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.observe=e.cleanupCache=e.listenersCache=void 0,e.listenersCache=new Map,e.cleanupCache=new Map;let t=0;function n(r,o,a){const i=++t,s=()=>e.listenersCache.get(r)||[],c=()=>{const h=s();e.listenersCache.set(r,h.filter(m=>m.id!==i))},l=()=>{const h=e.cleanupCache.get(r);s().length===1&&h&&h(),c()},u=s();if(e.listenersCache.set(r,[...u,{id:i,fns:o}]),u&&u.length>0)return l;const d={};for(const h in o)d[h]=(...m)=>{var b,v;const p=s();if(p.length!==0)for(const g of p)(v=(b=g.fns)[h])==null||v.call(b,...m)};const f=a(d);return typeof f=="function"&&e.cleanupCache.set(r,f),l}e.observe=n})(Ad);var Fl={},Sm={};Object.defineProperty(Sm,"__esModule",{value:!0});Sm.wait=void 0;async function G8e(e){return new Promise(t=>setTimeout(t,e))}Sm.wait=G8e;Object.defineProperty(Fl,"__esModule",{value:!0});Fl.poll=void 0;const mB=Sm;function V8e(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let o=!0;const a=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:a}));const c=await(n==null?void 0:n(s))??r;await(0,mB.wait)(c);const l=async()=>{o&&(await e({unpoll:a}),await(0,mB.wait)(r),l())};l()})(),a}Fl.poll=V8e;var Li={},hJ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.withCache=e.getCache=e.responseCache=e.promiseCache=void 0,e.promiseCache=new Map,e.responseCache=new Map;function t(r){const o=(s,c)=>({clear:()=>c.delete(s),get:()=>c.get(s),set:l=>c.set(s,l)}),a=o(r,e.promiseCache),i=o(r,e.responseCache);return{clear:()=>{a.clear(),i.clear()},promise:a,response:i}}e.getCache=t;async function n(r,{cacheKey:o,cacheTime:a=1/0}){const i=t(o),s=i.response.get();if(s&&a>0&&new Date().getTime()-s.created.getTime()`blockNumber.${e}`;function K8e(e){return(0,mJ.getCache)(pJ(e))}Li.getBlockNumberCache=K8e;async function Y8e(e,{cacheTime:t=e.cacheTime,maxAge:n}={}){const r=await(0,mJ.withCache)(()=>e.request({method:"eth_blockNumber"}),{cacheKey:pJ(e.uid),cacheTime:n??t});return BigInt(r)}Li.getBlockNumber=Y8e;var Dd={};Object.defineProperty(Dd,"__esModule",{value:!0});Dd.getFilterChanges=void 0;const pB=Jt(),Q8e=Qs,gB=Vi;async function X8e(e,{filter:t}){const n="strict"in t&&t.strict;return(await t.request({method:"eth_getFilterChanges",params:[t.id]})).map(o=>{var a;if(typeof o=="string")return o;try{const{eventName:i,args:s}="abi"in t&&t.abi?(0,Q8e.decodeEventLog)({abi:t.abi,data:o.data,topics:o.topics,strict:n}):{eventName:void 0,args:void 0};return(0,gB.formatLog)(o,{args:s,eventName:i})}catch(i){let s,c;if(i instanceof pB.DecodeLogDataMismatch||i instanceof pB.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;s=i.abiItem.name,c=(a=i.abiItem.inputs)==null?void 0:a.some(l=>!("name"in l&&l.name))}return(0,gB.formatLog)(o,{args:c?[]:{},eventName:s})}}).filter(Boolean)}Dd.getFilterChanges=X8e;var kd={};Object.defineProperty(kd,"__esModule",{value:!0});kd.uninstallFilter=void 0;async function J8e(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}kd.uninstallFilter=J8e;Object.defineProperty(Hy,"__esModule",{value:!0});Hy.watchContractEvent=void 0;const Z8e=Ad,eke=Fl,tke=xr,yB=Jt(),nke=qe,rke=Qs,oke=Ws,bB=Vi,Ap=Bt,ake=ym,ike=Li,ske=_m,cke=Dd,lke=kd;function uke(e,{abi:t,address:n,args:r,batch:o=!0,eventName:a,onError:i,onLogs:s,poll:c,pollingInterval:l=e.pollingInterval,strict:u}){return(typeof c<"u"?c:e.transport.type!=="webSocket")?(()=>{const m=(0,tke.stringify)(["watchContractEvent",n,r,o,e.uid,a,l]),p=u??!1;return(0,Z8e.observe)(m,{onLogs:s,onError:i},b=>{let v,g,w=!1;const _=(0,eke.poll)(async()=>{var C;if(!w){try{g=await(0,Ap.getAction)(e,ake.createContractEventFilter,"createContractEventFilter")({abi:t,address:n,args:r,eventName:a,strict:p})}catch{}w=!0;return}try{let x;if(g)x=await(0,Ap.getAction)(e,cke.getFilterChanges,"getFilterChanges")({filter:g});else{const E=await(0,Ap.getAction)(e,ike.getBlockNumber,"getBlockNumber")({});v&&v!==E?x=await(0,Ap.getAction)(e,ske.getContractEvents,"getContractEvents")({abi:t,address:n,args:r,eventName:a,fromBlock:v+1n,toBlock:E,strict:p}):x=[],v=E}if(x.length===0)return;if(o)b.onLogs(x);else for(const E of x)b.onLogs([E])}catch(x){g&&x instanceof nke.InvalidInputRpcError&&(w=!1),(C=b.onError)==null||C.call(b,x)}},{emitOnBegin:!0,interval:l});return async()=>{g&&await(0,Ap.getAction)(e,lke.uninstallFilter,"uninstallFilter")({filter:g}),_()}})})():(()=>{let m=!0,p=()=>m=!1;return(async()=>{try{const b=a?(0,oke.encodeEventTopics)({abi:t,eventName:a,args:r}):[],{unsubscribe:v}=await e.transport.subscribe({params:["logs",{address:n,topics:b}],onData(g){var _;if(!m)return;const w=g.result;try{const{eventName:C,args:x}=(0,rke.decodeEventLog)({abi:t,data:w.data,topics:w.topics,strict:u}),E=(0,bB.formatLog)(w,{args:x,eventName:C});s([E])}catch(C){let x,E;if(C instanceof yB.DecodeLogDataMismatch||C instanceof yB.DecodeLogTopicsMismatch){if(u)return;x=C.abiItem.name,E=(_=C.abiItem.inputs)==null?void 0:_.some(k=>!("name"in k&&k.name))}const T=(0,bB.formatLog)(w,{args:E?[]:{},eventName:x});s([T])}},onError(g){i==null||i(g)}});p=v,m||p()}catch(b){i==null||i(b)}})(),p})()}Hy.watchContractEvent=uke;var qy={},Tm={},jd={};Object.defineProperty(jd,"__esModule",{value:!0});jd.assertCurrentChain=void 0;const vB=Pr;function dke({chain:e,currentChainId:t}){if(!e)throw new vB.ChainNotFoundError;if(t!==e.id)throw new vB.ChainMismatchError({chain:e,currentChainId:t})}jd.assertCurrentChain=dke;var Wy={};Object.defineProperty(Wy,"__esModule",{value:!0});Wy.getTransactionError=void 0;const fke=St,hke=pt,mke=ks;function pke(e,{docsPath:t,...n}){const r=(()=>{const o=(0,mke.getNodeError)(e,n);return o instanceof fke.UnknownNodeError?e:o})();return new hke.TransactionExecutionError(r,{docsPath:t,...n})}Wy.getTransactionError=pke;var Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});Pd.getChainId=void 0;const gke=Wn();async function yke(e){const t=await e.request({method:"eth_chainId"});return(0,gke.hexToNumber)(t)}Pd.getChainId=yke;var Am={};Object.defineProperty(Am,"__esModule",{value:!0});Am.sendRawTransaction=void 0;async function bke(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]})}Am.sendRawTransaction=bke;Object.defineProperty(Tm,"__esModule",{value:!0});Tm.sendTransaction=void 0;const vke=Lr,wke=Ks,Eke=jd,_ke=Wy,xke=Ol,Cke=Rl,vv=Bt,Ske=Gi,wB=Pd,Tke=My(),Ake=Am;async function Dke(e,t){var p,b,v,g;const{account:n=e.account,chain:r=e.chain,accessList:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,...h}=t;if(!n)throw new wke.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});const m=(0,vke.parseAccount)(n);try{(0,Ske.assertRequest)(t);let w;if(r!==null&&(w=await(0,vv.getAction)(e,wB.getChainId,"getChainId")({}),(0,Eke.assertCurrentChain)({currentChainId:w,chain:r})),m.type==="local"){const E=await(0,vv.getAction)(e,Tke.prepareTransactionRequest,"prepareTransactionRequest")({account:m,accessList:o,chain:r,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,...h});w||(w=await(0,vv.getAction)(e,wB.getChainId,"getChainId")({}));const T=(p=r==null?void 0:r.serializers)==null?void 0:p.transaction,k=await m.signTransaction({...E,chainId:w},{serializer:T});return await(0,vv.getAction)(e,Ake.sendRawTransaction,"sendRawTransaction")({serializedTransaction:k})}const _=(g=(v=(b=e.chain)==null?void 0:b.formatters)==null?void 0:v.transactionRequest)==null?void 0:g.format,x=(_||Cke.formatTransactionRequest)({...(0,xke.extract)(h,{format:_}),accessList:o,data:a,from:m.address,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f});return await e.request({method:"eth_sendTransaction",params:[x]})}catch(w){throw(0,_ke.getTransactionError)(w,{...t,account:m,chain:t.chain||void 0})}}Tm.sendTransaction=Dke;Object.defineProperty(qy,"__esModule",{value:!0});qy.writeContract=void 0;const kke=ea,jke=Bt,Pke=Tm;async function Ike(e,{abi:t,address:n,args:r,dataSuffix:o,functionName:a,...i}){const s=(0,kke.encodeFunctionData)({abi:t,args:r,functionName:a});return await(0,jke.getAction)(e,Pke.sendTransaction,"sendTransaction")({data:`${s}${o?o.replace("0x",""):""}`,to:n,...i})}qy.writeContract=Ike;Object.defineProperty(Kc,"__esModule",{value:!0});Kc.getEventParameters=Kc.getFunctionParameters=Kc.getContract=void 0;const Ql=Bt,Oke=ym,Rke=Iy,Nke=_m,Bke=li,Fke=zy,Mke=Hy,Lke=qy;function Uke({abi:e,address:t,publicClient:n,walletClient:r}){const o=n!=null,a=r!=null,i={};let s=!1,c=!1,l=!1;for(const u of e)if(u.type==="function"?u.stateMutability==="view"||u.stateMutability==="pure"?s=!0:c=!0:u.type==="event"&&(l=!0),s&&c&&l)break;return o&&(s&&(i.read=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=o0(f);return(0,Ql.getAction)(n,Bke.readContract,"readContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),c&&(i.simulate=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=o0(f);return(0,Ql.getAction)(n,Fke.simulateContract,"simulateContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),l&&(i.createEventFilter=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=I1(f,h);return(0,Ql.getAction)(n,Oke.createContractEventFilter,"createContractEventFilter")({abi:e,address:t,eventName:d,args:m,...p})}}}),i.getEvents=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=I1(f,h);return(0,Ql.getAction)(n,Nke.getContractEvents,"getContractEvents")({abi:e,address:t,eventName:d,args:m,...p})}}}),i.watchEvent=new Proxy({},{get(u,d){return(...f)=>{const h=e.find(b=>b.type==="event"&&b.name===d),{args:m,options:p}=I1(f,h);return(0,Ql.getAction)(n,Mke.watchContractEvent,"watchContractEvent")({abi:e,address:t,eventName:d,args:m,...p})}}}))),a&&c&&(i.write=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=o0(f);return(0,Ql.getAction)(r,Lke.writeContract,"writeContract")({abi:e,address:t,functionName:d,args:h,...m})}}})),(o||a)&&c&&(i.estimateGas=new Proxy({},{get(u,d){return(...f)=>{const{args:h,options:m}=o0(f),p=n??r;return(0,Ql.getAction)(p,Rke.estimateContractGas,"estimateContractGas")({abi:e,address:t,functionName:d,args:h,...m,account:m.account??r.account})}}})),i.address=t,i.abi=e,i}Kc.getContract=Uke;function o0(e){const t=e.length&&Array.isArray(e[0]),n=t?e[0]:[],r=(t?e[1]:e[0])??{};return{args:n,options:r}}Kc.getFunctionParameters=o0;function I1(e,t){let n=!1;Array.isArray(e[0])?n=!0:e.length===1?n=t.inputs.some(a=>a.indexed):e.length===2&&(n=!0);const r=n?e[0]:void 0,o=(n?e[1]:e[0])??{};return{args:r,options:o}}Kc.getEventParameters=I1;var Id={},gJ={},Dm={};Object.defineProperty(Dm,"__esModule",{value:!0});Dm.publicKeyToAddress=void 0;const $ke=xo,zke=co;function Hke(e){const t=(0,zke.keccak256)(`0x${e.substring(4)}`).substring(26);return(0,$ke.checksumAddress)(`0x${t}`)}Dm.publicKeyToAddress=Hke;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.publicKeyToAddress=e.parseAccount=void 0;var t=Lr;Object.defineProperty(e,"parseAccount",{enumerable:!0,get:function(){return t.parseAccount}});var n=Dm;Object.defineProperty(e,"publicKeyToAddress",{enumerable:!0,get:function(){return n.publicKeyToAddress}})})(gJ);var Y2={};Object.defineProperty(Y2,"__esModule",{value:!0});Y2.uid=void 0;const $D=256;let wv=$D,Ev;function qke(e=11){if(!Ev||wv+e>$D*2){Ev="",wv=0;for(let t=0;t<$D;t++)Ev+=(256+Math.random()*256|0).toString(16).substring(1)}return Ev.substring(wv,wv+++e)}Y2.uid=qke;Object.defineProperty(Id,"__esModule",{value:!0});Id.createClient=void 0;const Wke=gJ,Gke=Y2;function Vke(e){const{batch:t,cacheTime:n=e.pollingInterval??4e3,key:r="base",name:o="Base Client",pollingInterval:a=4e3,type:i="base"}=e,s=e.chain,c=e.account?(0,Wke.parseAccount)(e.account):void 0,{config:l,request:u,value:d}=e.transport({chain:s,pollingInterval:a}),f={...l,...d},h={account:c,batch:t,cacheTime:n,chain:s,key:r,name:o,pollingInterval:a,request:u,transport:f,type:i,uid:(0,Gke.uid)()};function m(p){return b=>{const v=b(p);for(const w in h)delete v[w];const g={...p,...v};return Object.assign(g,{extend:m(g)})}}return Object.assign(h,{extend:m(h)})}Id.createClient=Vke;var Q2={},Ml={},X2={},Gy={};Object.defineProperty(Gy,"__esModule",{value:!0});Gy.withRetry=void 0;const Kke=Sm;function Yke(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((o,a)=>{const i=async({count:s=0}={})=>{const c=async({error:l})=>{const u=typeof t=="function"?t({count:s,error:l}):t;u&&await(0,Kke.wait)(u),i({count:s+1})};try{const l=await e();o(l)}catch(l){if(s"code"in s?s.code!==-1&&s.code!==-32004&&s.code!==-32005&&s.code!==-32042&&s.code!==-32603:s instanceof n.HttpRequestError&&s.status?s.status!==403&&s.status!==408&&s.status!==413&&s.status!==429&&s.status!==500&&s.status!==502&&s.status!==503&&s.status!==504:!1;e.isDeterministicError=a;function i(s,{retryDelay:c=150,retryCount:l=3}={}){return async u=>(0,o.withRetry)(async()=>{try{return await s(u)}catch(d){const f=d;switch(f.code){case r.ParseRpcError.code:throw new r.ParseRpcError(f);case r.InvalidRequestRpcError.code:throw new r.InvalidRequestRpcError(f);case r.MethodNotFoundRpcError.code:throw new r.MethodNotFoundRpcError(f);case r.InvalidParamsRpcError.code:throw new r.InvalidParamsRpcError(f);case r.InternalRpcError.code:throw new r.InternalRpcError(f);case r.InvalidInputRpcError.code:throw new r.InvalidInputRpcError(f);case r.ResourceNotFoundRpcError.code:throw new r.ResourceNotFoundRpcError(f);case r.ResourceUnavailableRpcError.code:throw new r.ResourceUnavailableRpcError(f);case r.TransactionRejectedRpcError.code:throw new r.TransactionRejectedRpcError(f);case r.MethodNotSupportedRpcError.code:throw new r.MethodNotSupportedRpcError(f);case r.LimitExceededRpcError.code:throw new r.LimitExceededRpcError(f);case r.JsonRpcVersionUnsupportedError.code:throw new r.JsonRpcVersionUnsupportedError(f);case r.UserRejectedRequestError.code:throw new r.UserRejectedRequestError(f);case r.UnauthorizedProviderError.code:throw new r.UnauthorizedProviderError(f);case r.UnsupportedProviderMethodError.code:throw new r.UnsupportedProviderMethodError(f);case r.ProviderDisconnectedError.code:throw new r.ProviderDisconnectedError(f);case r.ChainDisconnectedError.code:throw new r.ChainDisconnectedError(f);case r.SwitchChainError.code:throw new r.SwitchChainError(f);case 5e3:throw new r.UserRejectedRequestError(f);default:throw d instanceof t.BaseError?d:new r.UnknownRpcError(f)}}},{delay:({count:d,error:f})=>{var h;if(f&&f instanceof n.HttpRequestError){const m=(h=f==null?void 0:f.headers)==null?void 0:h.get("Retry-After");if(m!=null&&m.match(/\d/))return parseInt(m)*1e3}return~~(1<!(0,e.isDeterministicError)(d)})}e.buildRequest=i})(X2);Object.defineProperty(Ml,"__esModule",{value:!0});Ml.createTransport=void 0;const Qke=X2;function Xke({key:e,name:t,request:n,retryCount:r=3,retryDelay:o=150,timeout:a,type:i},s){return{config:{key:e,name:t,request:n,retryCount:r,retryDelay:o,timeout:a,type:i},request:(0,Qke.buildRequest)(n,{retryCount:r,retryDelay:o}),value:s}}Ml.createTransport=Xke;Object.defineProperty(Q2,"__esModule",{value:!0});Q2.custom=void 0;const Jke=Ml;function Zke(e,t={}){const{key:n="custom",name:r="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>(0,Jke.createTransport)({key:n,name:r,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})}Q2.custom=Zke;var Ih={};Object.defineProperty(Ih,"__esModule",{value:!0});Ih.rankTransports=Ih.fallback=void 0;const eje=X2,tje=Sm,nje=Ml;function rje(e,t={}){const{key:n="fallback",name:r="Fallback",rank:o=!1,retryCount:a,retryDelay:i}=t;return({chain:s,pollingInterval:c=4e3,timeout:l})=>{let u=e,d=()=>{};const f=(0,nje.createTransport)({key:n,name:r,async request({method:h,params:m}){const p=async(b=0)=>{const v=u[b]({chain:s,retryCount:0,timeout:l});try{const g=await v.request({method:h,params:m});return d({method:h,params:m,response:g,transport:v,status:"success"}),g}catch(g){if(d({error:g,method:h,params:m,transport:v,status:"error"}),(0,eje.isDeterministicError)(g)||b===u.length-1)throw g;return p(b+1)}};return p()},retryCount:a,retryDelay:i,type:"fallback"},{onResponse:h=>d=h,transports:u.map(h=>h({chain:s,retryCount:0}))});if(o){const h=typeof o=="object"?o:{};yJ({chain:s,interval:h.interval??c,onTransports:m=>u=m,sampleCount:h.sampleCount,timeout:h.timeout,transports:u,weights:h.weights})}return f}}Ih.fallback=rje;function yJ({chain:e,interval:t=4e3,onTransports:n,sampleCount:r=10,timeout:o=1e3,transports:a,weights:i={}}){const{stability:s=.7,latency:c=.3}=i,l=[],u=async()=>{const d=await Promise.all(a.map(async m=>{const p=m({chain:e,retryCount:0,timeout:o}),b=Date.now();let v,g;try{await p.request({method:"net_listening"}),g=1}catch{g=0}finally{v=Date.now()}return{latency:v-b,success:g}}));l.push(d),l.length>r&&l.shift();const f=Math.max(...l.map(m=>Math.max(...m.map(({latency:p})=>p)))),h=a.map((m,p)=>{const b=l.map(C=>C[p].latency),g=1-b.reduce((C,x)=>C+x,0)/b.length/f,w=l.map(C=>C[p].success),_=w.reduce((C,x)=>C+x,0)/w.length;return _===0?[0,p]:[c*g+s*_,p]}).sort((m,p)=>p[0]-m[0]);n(h.map(([,m])=>a[m])),await(0,tje.wait)(t),u()};u()}Ih.rankTransports=yJ;var J2={},km={};Object.defineProperty(km,"__esModule",{value:!0});km.UrlRequiredError=void 0;const oje=xt;class aje extends oje.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}km.UrlRequiredError=aje;var Z2={};const ije=Ns(Que);var eC={};Object.defineProperty(eC,"__esModule",{value:!0});eC.withTimeout=void 0;function sje(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:r}){return new Promise((o,a)=>{(async()=>{let i;try{const s=new AbortController;n>0&&(i=setTimeout(()=>{r?s.abort():a(t)},n)),o(await e({signal:s==null?void 0:s.signal}))}catch(s){s.name==="AbortError"&&a(t),a(s)}finally{clearTimeout(i)}})()})}eC.withTimeout=sje;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.rpc=e.getSocket=e.socketsCache=void 0;const t=ije,n=hr,r=Cm,o=eC,a=xr;let i=0;async function s(d,{body:f,fetchOptions:h={},timeout:m=1e4}){var g;const{headers:p,method:b,signal:v}=h;try{const w=await(0,o.withTimeout)(async({signal:C})=>await fetch(d,{...h,body:Array.isArray(f)?(0,a.stringify)(f.map(E=>({jsonrpc:"2.0",id:E.id??i++,...E}))):(0,a.stringify)({jsonrpc:"2.0",id:f.id??i++,...f}),headers:{...p,"Content-Type":"application/json"},method:b||"POST",signal:v||(m>0?C:void 0)}),{errorInstance:new n.TimeoutError({body:f,url:d}),timeout:m,signal:!0});let _;if((g=w.headers.get("Content-Type"))!=null&&g.startsWith("application/json")?_=await w.json():_=await w.text(),!w.ok)throw new n.HttpRequestError({body:f,details:(0,a.stringify)(_.error)||w.statusText,headers:w.headers,status:w.status,url:d});return _}catch(w){throw w instanceof n.HttpRequestError||w instanceof n.TimeoutError?w:new n.HttpRequestError({body:f,details:w.message,url:d})}}e.socketsCache=new Map;async function c(d){let f=e.socketsCache.get(d);if(f)return f;const{schedule:h}=(0,r.createBatchScheduler)({id:d,fn:async()=>{const b=new t.WebSocket(d),v=new Map,g=new Map,w=({data:C})=>{const x=JSON.parse(C),E=x.method==="eth_subscription",T=E?x.params.subscription:x.id,k=E?g:v,D=k.get(T);D&&D({data:C}),E||k.delete(T)},_=()=>{e.socketsCache.delete(d),b.removeEventListener("close",_),b.removeEventListener("message",w)};return b.addEventListener("close",_),b.addEventListener("message",w),b.readyState===t.WebSocket.CONNECTING&&await new Promise((C,x)=>{b&&(b.onopen=C,b.onerror=x)}),f=Object.assign(b,{requests:v,subscriptions:g}),e.socketsCache.set(d,f),[f]}}),[m,[p]]=await h();return p}e.getSocket=c;function l(d,{body:f,onResponse:h}){if(d.readyState===d.CLOSED||d.readyState===d.CLOSING)throw new n.WebSocketRequestError({body:f,url:d.url,details:"Socket is closed."});const m=i++,p=({data:b})=>{var g;const v=JSON.parse(b);typeof v.id=="number"&&m!==v.id||(h==null||h(v),f.method==="eth_subscribe"&&typeof v.result=="string"&&d.subscriptions.set(v.result,p),f.method==="eth_unsubscribe"&&d.subscriptions.delete((g=f.params)==null?void 0:g[0]))};return d.requests.set(m,p),d.send(JSON.stringify({jsonrpc:"2.0",...f,id:m})),d}async function u(d,{body:f,timeout:h=1e4}){return(0,o.withTimeout)(()=>new Promise(m=>e.rpc.webSocket(d,{body:f,onResponse:m})),{errorInstance:new n.TimeoutError({body:f,url:d.url}),timeout:h})}e.rpc={http:s,webSocket:l,webSocketAsync:u}})(Z2);Object.defineProperty(J2,"__esModule",{value:!0});J2.http=void 0;const cje=hr,lje=km,uje=Cm,EB=Z2,dje=Ml;function fje(e,t={}){const{batch:n,fetchOptions:r,key:o="http",name:a="HTTP JSON-RPC",retryDelay:i}=t;return({chain:s,retryCount:c,timeout:l})=>{const{batchSize:u=1e3,wait:d=0}=typeof n=="object"?n:{},f=t.retryCount??c,h=l??t.timeout??1e4,m=e||(s==null?void 0:s.rpcUrls.default.http[0]);if(!m)throw new lje.UrlRequiredError;return(0,dje.createTransport)({key:o,name:a,async request({method:p,params:b}){const v={method:p,params:b},{schedule:g}=(0,uje.createBatchScheduler)({id:`${e}`,wait:d,shouldSplitBatch(x){return x.length>u},fn:x=>EB.rpc.http(m,{body:x,fetchOptions:r,timeout:h}),sort:(x,E)=>x.id-E.id}),w=async x=>n?g(x):[await EB.rpc.http(m,{body:x,fetchOptions:r,timeout:h})],[{error:_,result:C}]=await w(v);if(_)throw new cje.RpcRequestError({body:v,error:_,url:m});return C},retryCount:f,retryDelay:i,timeout:h,type:"http"},{fetchOptions:r,url:e})}}J2.http=fje;var Dp={},kp={},tC={},jm={};Object.defineProperty(jm,"__esModule",{value:!0});jm.isNullUniversalResolverError=void 0;const hje=Ri,mje=xt,_B=Zn;function pje(e,t){var r,o,a;if(!(e instanceof mje.BaseError))return!1;const n=e.walk(i=>i instanceof _B.ContractFunctionRevertedError);return n instanceof _B.ContractFunctionRevertedError?!!(((r=n.data)==null?void 0:r.errorName)==="ResolverNotFound"||((o=n.data)==null?void 0:o.errorName)==="ResolverWildcardNotSupported"||(a=n.reason)!=null&&a.includes("Wildcard on non-extended resolvers is not supported")||t==="reverse"&&n.reason===hje.panicReasons[50]):!1}jm.isNullUniversalResolverError=pje;var Pm={},Vy={};Object.defineProperty(Vy,"__esModule",{value:!0});Vy.encodedLabelToLabelhash=void 0;const gje=qn;function yje(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return(0,gje.isHex)(t)?t:null}Vy.encodedLabelToLabelhash=yje;Object.defineProperty(Pm,"__esModule",{value:!0});Pm.namehash=void 0;const bje=On,xB=Gn(),CB=$e(),SB=co,vje=Vy;function wje(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,CB.bytesToHex)(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const o=(0,vje.encodedLabelToLabelhash)(n[r]),a=o?(0,xB.toBytes)(o):(0,SB.keccak256)((0,xB.stringToBytes)(n[r]),"bytes");t=(0,SB.keccak256)((0,bje.concat)([t,a]),"bytes")}return(0,CB.bytesToHex)(t)}Pm.namehash=wje;var Od={},nC={};Object.defineProperty(nC,"__esModule",{value:!0});nC.encodeLabelhash=void 0;function Eje(e){return`[${e.slice(2)}]`}nC.encodeLabelhash=Eje;var Ky={};Object.defineProperty(Ky,"__esModule",{value:!0});Ky.labelhash=void 0;const _je=Gn(),xje=$e(),Cje=co,Sje=Vy;function Tje(e){const t=new Uint8Array(32).fill(0);return e?(0,Sje.encodedLabelToLabelhash)(e)||(0,Cje.keccak256)((0,_je.stringToBytes)(e)):(0,xje.bytesToHex)(t)}Ky.labelhash=Tje;Object.defineProperty(Od,"__esModule",{value:!0});Od.packetToBytes=void 0;const L3=Gn(),Aje=nC,Dje=Ky;function kje(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const n=new Uint8Array((0,L3.stringToBytes)(t).byteLength+2);let r=0;const o=t.split(".");for(let a=0;a255&&(i=(0,L3.stringToBytes)((0,Aje.encodeLabelhash)((0,Dje.labelhash)(o[a])))),n[r]=i.length,n.set(i,r+1),r+=i.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}Od.packetToBytes=kje;Object.defineProperty(tC,"__esModule",{value:!0});tC.getEnsAddress=void 0;const U3=mn,jje=ui,Pje=ea,Ije=di,Oje=ci,Rje=$e(),Nje=jm,$3=Pm,Bje=Od,Fje=Bt,Mje=li;async function Lje(e,{blockNumber:t,blockTag:n,coinType:r,name:o,universalResolverAddress:a}){let i=a;if(!i){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=(0,Ije.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s=(0,Pje.encodeFunctionData)({abi:U3.addressResolverAbi,functionName:"addr",...r!=null?{args:[(0,$3.namehash)(o),BigInt(r)]}:{args:[(0,$3.namehash)(o)]}}),c=await(0,Fje.getAction)(e,Mje.readContract,"readContract")({address:i,abi:U3.universalResolverResolveAbi,functionName:"resolve",args:[(0,Rje.toHex)((0,Bje.packetToBytes)(o)),s],blockNumber:t,blockTag:n});if(c[0]==="0x")return null;const l=(0,jje.decodeFunctionResult)({abi:U3.addressResolverAbi,args:r!=null?[(0,$3.namehash)(o),BigInt(r)]:void 0,functionName:"addr",data:c[0]});return l==="0x"||(0,Oje.trim)(l)==="0x00"?null:l}catch(s){if((0,Nje.isNullUniversalResolverError)(s,"resolve"))return null;throw s}}tC.getEnsAddress=Lje;var rC={},oC={},Qn={},Qa={};Object.defineProperty(Qa,"__esModule",{value:!0});Qa.EnsAvatarUnsupportedNamespaceError=Qa.EnsAvatarUriResolutionError=Qa.EnsAvatarInvalidNftUriError=Qa.EnsAvatarInvalidMetadataError=void 0;const aC=xt;class Uje extends aC.BaseError{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)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}Qa.EnsAvatarInvalidMetadataError=Uje;class $je extends aC.BaseError{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}Qa.EnsAvatarInvalidNftUriError=$je;class zje extends aC.BaseError{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.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}Qa.EnsAvatarUriResolutionError=zje;class Hje extends aC.BaseError{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}Qa.EnsAvatarUnsupportedNamespaceError=Hje;Object.defineProperty(Qn,"__esModule",{value:!0});Qn.getNftTokenUri=Qn.parseNftUri=Qn.parseAvatarUri=Qn.getMetadataAvatarUri=Qn.getJsonImage=Qn.resolveAvatarUri=Qn.getGateway=Qn.isImageUri=void 0;const TB=li,Si=Qa,qje=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,Wje=/^(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,})(\/(?[\w\-.]+))?(?\/.*)?$/,Gje=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,Vje=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function bJ(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"||!globalThis.hasOwnProperty("Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}Qn.isImageUri=bJ;function zD(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}Qn.getGateway=zD;function vJ({uri:e,gatewayUrls:t}){const n=Gje.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=zD(t==null?void 0:t.ipfs,"https://ipfs.io"),o=zD(t==null?void 0:t.arweave,"https://arweave.net"),a=e.match(qje),{protocol:i,subpath:s,target:c,subtarget:l=""}=(a==null?void 0:a.groups)||{},u=i==="ipns:/"||s==="ipns/",d=i==="ipfs:/"||s==="ipfs/"||Wje.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(Vje,"");if(f.startsWith("o.json());return await EJ({gatewayUrls:e,uri:wJ(n)})}catch{throw new Si.EnsAvatarUriResolutionError({uri:t})}}Qn.getMetadataAvatarUri=Kje;async function EJ({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=vJ({uri:t,gatewayUrls:e});if(r||await bJ(n))return n;throw new Si.EnsAvatarUriResolutionError({uri:t})}Qn.parseAvatarUri=EJ;function Yje(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,o]=t.split("/"),[a,i]=n.split(":"),[s,c]=r.split(":");if(!a||a.toLowerCase()!=="eip155")throw new Si.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!i)throw new Si.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!c)throw new Si.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!o)throw new Si.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!s)throw new Si.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:parseInt(i),namespace:s.toLowerCase(),contractAddress:c,tokenID:o}}Qn.parseNftUri=Yje;async function Qje(e,{nft:t}){if(t.namespace==="erc721")return(0,TB.readContract)(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(0,TB.readContract)(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 Si.EnsAvatarUnsupportedNamespaceError({namespace:t.namespace})}Qn.getNftTokenUri=Qje;Object.defineProperty(oC,"__esModule",{value:!0});oC.parseAvatarRecord=void 0;const au=Qn;async function Xje(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?Jje(e,{gatewayUrls:t,record:n}):(0,au.parseAvatarUri)({uri:n,gatewayUrls:t})}oC.parseAvatarRecord=Xje;async function Jje(e,{gatewayUrls:t,record:n}){const r=(0,au.parseNftUri)(n),o=await(0,au.getNftTokenUri)(e,{nft:r}),{uri:a,isOnChain:i,isEncoded:s}=(0,au.resolveAvatarUri)({uri:o,gatewayUrls:t});if(i&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const l=s?atob(a.replace("data:application/json;base64,","")):a,u=JSON.parse(l);return(0,au.parseAvatarUri)({uri:(0,au.getJsonImage)(u),gatewayUrls:t})}let c=r.tokenID;return r.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),(0,au.getMetadataAvatarUri)({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,c)})}var Yy={};Object.defineProperty(Yy,"__esModule",{value:!0});Yy.getEnsText=void 0;const z3=mn,Zje=ui,e4e=ea,t4e=di,n4e=$e(),r4e=jm,o4e=Pm,a4e=Od,i4e=Bt,s4e=li;async function c4e(e,{blockNumber:t,blockTag:n,name:r,key:o,universalResolverAddress:a}){let i=a;if(!i){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=(0,t4e.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s=await(0,i4e.getAction)(e,s4e.readContract,"readContract")({address:i,abi:z3.universalResolverResolveAbi,functionName:"resolve",args:[(0,n4e.toHex)((0,a4e.packetToBytes)(r)),(0,e4e.encodeFunctionData)({abi:z3.textResolverAbi,functionName:"text",args:[(0,o4e.namehash)(r),o]})],blockNumber:t,blockTag:n});if(s[0]==="0x")return null;const c=(0,Zje.decodeFunctionResult)({abi:z3.textResolverAbi,functionName:"text",data:s[0]});return c===""?null:c}catch(s){if((0,r4e.isNullUniversalResolverError)(s,"resolve"))return null;throw s}}Yy.getEnsText=c4e;Object.defineProperty(rC,"__esModule",{value:!0});rC.getEnsAvatar=void 0;const l4e=oC,u4e=Bt,d4e=Yy;async function f4e(e,{blockNumber:t,blockTag:n,gatewayUrls:r,name:o,universalResolverAddress:a}){const i=await(0,u4e.getAction)(e,d4e.getEnsText,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:o,universalResolverAddress:a});if(!i)return null;try{return await(0,l4e.parseAvatarRecord)(e,{record:i,gatewayUrls:r})}catch{return null}}rC.getEnsAvatar=f4e;var iC={};Object.defineProperty(iC,"__esModule",{value:!0});iC.getEnsName=void 0;const h4e=mn,m4e=di,p4e=$e(),g4e=jm,y4e=Od,b4e=Bt,v4e=li;async function w4e(e,{address:t,blockNumber:n,blockTag:r,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=(0,m4e.getChainContractAddress)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}const i=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const[s,c]=await(0,b4e.getAction)(e,v4e.readContract,"readContract")({address:a,abi:h4e.universalResolverReverseAbi,functionName:"reverse",args:[(0,p4e.toHex)((0,y4e.packetToBytes)(i))],blockNumber:n,blockTag:r});return t.toLowerCase()!==c.toLowerCase()?null:s}catch(s){if((0,g4e.isNullUniversalResolverError)(s,"reverse"))return null;throw s}}iC.getEnsName=w4e;var sC={};Object.defineProperty(sC,"__esModule",{value:!0});sC.getEnsResolver=void 0;const E4e=di,_4e=$e(),x4e=Od,C4e=Bt,S4e=li;async function T4e(e,{blockNumber:t,blockTag:n,name:r,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=(0,E4e.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}const[i]=await(0,C4e.getAction)(e,S4e.readContract,"readContract")({address:a,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,_4e.toHex)((0,x4e.packetToBytes)(r))],blockNumber:t,blockTag:n});return i}sC.getEnsResolver=T4e;var cC={};Object.defineProperty(cC,"__esModule",{value:!0});cC.createBlockFilter=void 0;const A4e=_d;async function D4e(e){const t=(0,A4e.createFilterRequestScope)(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}cC.createBlockFilter=D4e;var Qy={};Object.defineProperty(Qy,"__esModule",{value:!0});Qy.createEventFilter=void 0;const k4e=Ws,AB=$e(),j4e=_d;async function P4e(e,{address:t,args:n,event:r,events:o,fromBlock:a,strict:i,toBlock:s}={}){const c=o??(r?[r]:void 0),l=(0,j4e.createFilterRequestScope)(e,{method:"eth_newFilter"});let u=[];c&&(u=[c.flatMap(f=>(0,k4e.encodeEventTopics)({abi:[f],eventName:f.name,args:n}))],r&&(u=u[0]));const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?(0,AB.numberToHex)(a):a,toBlock:typeof s=="bigint"?(0,AB.numberToHex)(s):s,...u.length?{topics:u}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:a,id:d,request:l(d),strict:i,toBlock:s,type:"event"}}Qy.createEventFilter=P4e;var Xy={};Object.defineProperty(Xy,"__esModule",{value:!0});Xy.createPendingTransactionFilter=void 0;const I4e=_d;async function O4e(e){const t=(0,I4e.createFilterRequestScope)(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}Xy.createPendingTransactionFilter=O4e;var lC={};Object.defineProperty(lC,"__esModule",{value:!0});lC.getBalance=void 0;const R4e=$e();async function N4e(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n?(0,R4e.numberToHex)(n):void 0,a=await e.request({method:"eth_getBalance",params:[t,o||r]});return BigInt(a)}lC.getBalance=N4e;var uC={};Object.defineProperty(uC,"__esModule",{value:!0});uC.getBlockTransactionCount=void 0;const B4e=Wn(),F4e=$e();async function M4e(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){const o=n!==void 0?(0,F4e.numberToHex)(n):void 0;let a;return t?a=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):a=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[o||r]}),(0,B4e.hexToNumber)(a)}uC.getBlockTransactionCount=M4e;var dC={};Object.defineProperty(dC,"__esModule",{value:!0});dC.getBytecode=void 0;const L4e=$e();async function U4e(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n!==void 0?(0,L4e.numberToHex)(n):void 0,a=await e.request({method:"eth_getCode",params:[t,o||r]});if(a!=="0x")return a}dC.getBytecode=U4e;var fC={},hC={};Object.defineProperty(hC,"__esModule",{value:!0});hC.formatFeeHistory=void 0;function $4e(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)))}}hC.formatFeeHistory=$4e;Object.defineProperty(fC,"__esModule",{value:!0});fC.getFeeHistory=void 0;const DB=$e(),z4e=hC;async function H4e(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:o}){const a=n?(0,DB.numberToHex)(n):void 0,i=await e.request({method:"eth_feeHistory",params:[(0,DB.numberToHex)(t),a||r,o]});return(0,z4e.formatFeeHistory)(i)}fC.getFeeHistory=H4e;var mC={};Object.defineProperty(mC,"__esModule",{value:!0});mC.getFilterLogs=void 0;const kB=Jt(),q4e=Qs,jB=Vi;async function W4e(e,{filter:t}){const n=t.strict??!1;return(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(o=>{var a;try{const{eventName:i,args:s}="abi"in t&&t.abi?(0,q4e.decodeEventLog)({abi:t.abi,data:o.data,topics:o.topics,strict:n}):{eventName:void 0,args:void 0};return(0,jB.formatLog)(o,{args:s,eventName:i})}catch(i){let s,c;if(i instanceof kB.DecodeLogDataMismatch||i instanceof kB.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;s=i.abiItem.name,c=(a=i.abiItem.inputs)==null?void 0:a.some(l=>!("name"in l&&l.name))}return(0,jB.formatLog)(o,{args:c?[]:{},eventName:s})}}).filter(Boolean)}mC.getFilterLogs=W4e;var jp={},Pp={},H3={},Jy={};Object.defineProperty(Jy,"__esModule",{value:!0});Jy.defineChain=void 0;function G4e(e,t={}){const{fees:n=e.fees,formatters:r=e.formatters,serializers:o=e.serializers}=t;return{...e,fees:n,formatters:r,serializers:o}}Jy.defineChain=G4e;var Zy={};Object.defineProperty(Zy,"__esModule",{value:!0});Zy.extractChain=void 0;function V4e({chains:e,id:t}){return e.find(n=>n.id===t)}Zy.extractChain=V4e;var Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.integerRegex=Ni.bytesRegex=Ni.arrayRegex=void 0;Ni.arrayRegex=/^(.*)\[([0-9]*)\]$/;Ni.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;Ni.integerRegex=/^(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)?$/;var Qi={},Xl={},PB;function eb(){if(PB)return Xl;PB=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.hashDomain=Xl.hashTypedData=void 0;const e=oo,t=On,n=$e(),r=co,o=pC();function a({domain:h,message:m,primaryType:p,types:b}){const v=typeof h>"u"?{}:h,g={EIP712Domain:(0,o.getTypesForEIP712Domain)({domain:v}),...b};(0,o.validateTypedData)({domain:v,message:m,primaryType:p,types:g});const w=["0x1901"];return v&&w.push(i({domain:v,types:g})),p!=="EIP712Domain"&&w.push(s({data:m,primaryType:p,types:g})),(0,r.keccak256)((0,t.concat)(w))}Xl.hashTypedData=a;function i({domain:h,types:m}){return s({data:h,primaryType:"EIP712Domain",types:m})}Xl.hashDomain=i;function s({data:h,primaryType:m,types:p}){const b=c({data:h,primaryType:m,types:p});return(0,r.keccak256)(b)}function c({data:h,primaryType:m,types:p}){const b=[{type:"bytes32"}],v=[l({primaryType:m,types:p})];for(const g of p[m]){const[w,_]=f({types:p,name:g.name,type:g.type,value:h[g.name]});b.push(w),v.push(_)}return(0,e.encodeAbiParameters)(b,v)}function l({primaryType:h,types:m}){const p=(0,n.toHex)(u({primaryType:h,types:m}));return(0,r.keccak256)(p)}function u({primaryType:h,types:m}){let p="";const b=d({primaryType:h,types:m});b.delete(h);const v=[h,...Array.from(b).sort()];for(const g of v)p+=`${g}(${m[g].map(({name:w,type:_})=>`${_} ${w}`).join(",")})`;return p}function d({primaryType:h,types:m},p=new Set){const b=h.match(/^\w*/u),v=b==null?void 0:b[0];if(p.has(v)||m[v]===void 0)return p;p.add(v);for(const g of m[v])d({primaryType:g.type,types:m},p);return p}function f({types:h,name:m,type:p,value:b}){if(h[p]!==void 0)return[{type:"bytes32"},(0,r.keccak256)(c({data:b,primaryType:p,types:h}))];if(p==="bytes")return b=`0x${(b.length%2?"0":"")+b.slice(2)}`,[{type:"bytes32"},(0,r.keccak256)(b)];if(p==="string")return[{type:"bytes32"},(0,r.keccak256)((0,n.toHex)(b))];if(p.lastIndexOf("]")===p.length-1){const v=p.slice(0,p.lastIndexOf("[")),g=b.map(w=>f({name:m,type:v,types:h,value:w}));return[{type:"bytes32"},(0,r.keccak256)((0,e.encodeAbiParameters)(g.map(([w])=>w),g.map(([,w])=>w)))]}return[{type:p},b]}return Xl}var IB;function pC(){if(IB)return Qi;IB=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.domainSeparator=Qi.getTypesForEIP712Domain=Qi.validateTypedData=void 0;const e=Jt(),t=Zo,n=lo,r=ka,o=$e(),a=Ni,i=eb();function s({domain:u,message:d,primaryType:f,types:h}){const m=h,p=(b,v)=>{for(const g of b){const{name:w,type:_}=g,C=_,x=v[w],E=C.match(a.integerRegex);if(E&&(typeof x=="number"||typeof x=="bigint")){const[D,R,F]=E;(0,o.numberToHex)(x,{signed:R==="int",size:parseInt(F)/8})}if(C==="address"&&typeof x=="string"&&!(0,n.isAddress)(x))throw new t.InvalidAddressError({address:x});const T=C.match(a.bytesRegex);if(T){const[D,R]=T;if(R&&(0,r.size)(x)!==parseInt(R))throw new e.BytesSizeMismatchError({expectedSize:parseInt(R),givenSize:(0,r.size)(x)})}const k=m[C];k&&p(k,x)}};if(m.EIP712Domain&&u&&p(m.EIP712Domain,u),f!=="EIP712Domain"){const b=m[f];p(b,d)}}Qi.validateTypedData=s;function c({domain:u}){return[typeof(u==null?void 0:u.name)=="string"&&{name:"name",type:"string"},(u==null?void 0:u.version)&&{name:"version",type:"string"},typeof(u==null?void 0:u.chainId)=="number"&&{name:"chainId",type:"uint256"},(u==null?void 0:u.verifyingContract)&&{name:"verifyingContract",type:"address"},(u==null?void 0:u.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}Qi.getTypesForEIP712Domain=c;function l({domain:u}){return(0,i.hashDomain)({domain:u,types:{EIP712Domain:c({domain:u})}})}return Qi.domainSeparator=l,Qi}var tb={};Object.defineProperty(tb,"__esModule",{value:!0});tb.decodeFunctionData=void 0;const K4e=Jt(),OB=Nr,Y4e=zi,Q4e=Hi,X4e=Gs();function J4e({abi:e,data:t}){const n=(0,OB.slice)(t,0,4),r=e.find(o=>o.type==="function"&&n===(0,Y4e.getFunctionSelector)((0,X4e.formatAbiItem)(o)));if(!r)throw new K4e.AbiFunctionSignatureNotFoundError(n,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:r.name,args:"inputs"in r&&r.inputs&&r.inputs.length>0?(0,Q4e.decodeAbiParameters)(r.inputs,(0,OB.slice)(t,4)):void 0}}tb.decodeFunctionData=J4e;var Im={};Object.defineProperty(Im,"__esModule",{value:!0});Im.encodeDeployData=void 0;const q3=Jt(),Z4e=On,ePe=oo,W3="/docs/contract/encodeDeployData";function tPe({abi:e,args:t,bytecode:n}){if(!t||t.length===0)return n;const r=e.find(a=>"type"in a&&a.type==="constructor");if(!r)throw new q3.AbiConstructorNotFoundError({docsPath:W3});if(!("inputs"in r))throw new q3.AbiConstructorParamsNotFoundError({docsPath:W3});if(!r.inputs||r.inputs.length===0)throw new q3.AbiConstructorParamsNotFoundError({docsPath:W3});const o=(0,ePe.encodeAbiParameters)(r.inputs,t);return(0,Z4e.concatHex)([n,o])}Im.encodeDeployData=tPe;var nb={};Object.defineProperty(nb,"__esModule",{value:!0});nb.encodeErrorResult=void 0;const G3=Jt(),nPe=On,rPe=zi,oPe=oo,aPe=Gs(),iPe=Br,V3="/docs/contract/encodeErrorResult";function sPe({abi:e,errorName:t,args:n}){let r=e[0];if(t&&(r=(0,iPe.getAbiItem)({abi:e,args:n,name:t}),!r))throw new G3.AbiErrorNotFoundError(t,{docsPath:V3});if(r.type!=="error")throw new G3.AbiErrorNotFoundError(void 0,{docsPath:V3});const o=(0,aPe.formatAbiItem)(r),a=(0,rPe.getFunctionSelector)(o);let i="0x";if(n&&n.length>0){if(!r.inputs)throw new G3.AbiErrorInputsNotFoundError(r.name,{docsPath:V3});i=(0,oPe.encodeAbiParameters)(r.inputs,n)}return(0,nPe.concatHex)([a,i])}nb.encodeErrorResult=sPe;var rb={};Object.defineProperty(rb,"__esModule",{value:!0});rb.encodeFunctionResult=void 0;const K3=Jt(),cPe=oo,lPe=Br,uPe="/docs/contract/encodeFunctionResult";function dPe({abi:e,functionName:t,result:n}){let r=e[0];if(t&&(r=(0,lPe.getAbiItem)({abi:e,name:t}),!r))throw new K3.AbiFunctionNotFoundError(t,{docsPath:"/docs/contract/encodeFunctionResult"});if(r.type!=="function")throw new K3.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionResult"});if(!r.outputs)throw new K3.AbiFunctionOutputsNotFoundError(r.name,{docsPath:uPe});let o=Array.isArray(n)?n:[n];return r.outputs.length===0&&!o[0]&&(o=[]),(0,cPe.encodeAbiParameters)(r.outputs,o)}rb.encodeFunctionResult=dPe;var ob={};Object.defineProperty(ob,"__esModule",{value:!0});ob.encodePacked=void 0;const HD=Jt(),fPe=Zo,hPe=lo,_J=On,Y3=Zr,Q3=$e(),X3=Ni;function mPe(e,t){if(e.length!==t.length)throw new HD.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;rthis.bytes.length-1)throw new J3.PositionOutOfBoundsError({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new J3.NegativeOffsetError({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},incrementPosition(e){if(e<0)throw new J3.NegativeOffsetError({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(){const e=this.inspectByte();return this.position++,e},readBytes(e){const t=this.inspectBytes(e);return this.position+=e,t},readUint8(){const e=this.inspectUint8();return this.position+=1,e},readUint16(){const e=this.inspectUint16();return this.position+=2,e},readUint24(){const e=this.inspectUint24();return this.position+=3,e},readUint32(){const e=this.inspectUint32();return this.position+=4,e},setPosition(e){this.assertPosition(e),this.position=e}};function vPe(e){const t=Object.create(bPe);return t.bytes=e,t.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),t}ab.createCursor=vPe;var RB;function gC(){if(RB)return Ji;RB=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.hexToRlp=Ji.bytesToRlp=Ji.toRlp=void 0;const e=LJ(),t=ab,n=Gn(),r=$e();function o(d,f="hex"){const h=s(d),m=(0,t.createCursor)(new Uint8Array(h.length));return h.encode(m),f==="hex"?(0,r.bytesToHex)(m.bytes):m.bytes}Ji.toRlp=o;function a(d,f="bytes"){return o(d,f)}Ji.bytesToRlp=a;function i(d,f="hex"){return o(d,f)}Ji.hexToRlp=i;function s(d){return Array.isArray(d)?c(d.map(f=>s(f))):l(d)}function c(d){const f=d.reduce((p,b)=>p+b.length,0),h=u(f);return{length:f<=55?1+f:1+h+f,encode(p){f<=55?p.pushByte(192+f):(p.pushByte(247+h),h===1?p.pushUint8(f):h===2?p.pushUint16(f):h===3?p.pushUint24(f):p.pushUint32(f));for(const{encode:b}of d)b(p)}}}function l(d){const f=typeof d=="string"?(0,n.hexToBytes)(d):d,h=u(f.length);return{length:f.length===1&&f[0]<128?1:f.length<=55?1+f.length:1+h+f.length,encode(p){f.length===1&&f[0]<128?p.pushBytes(f):f.length<=55?(p.pushByte(128+f.length),p.pushBytes(f)):(p.pushByte(183+h),h===1?p.pushUint8(f.length):h===2?p.pushUint16(f.length):h===3?p.pushUint24(f.length):p.pushUint32(f.length),p.pushBytes(f))}}}function u(d){if(d<2**8)return 1;if(d<2**16)return 2;if(d<2**24)return 3;if(d<2**32)return 4;throw new e.BaseError("Length is too large.")}return Ji}var NB;function SJ(){if(NB)return Xi;NB=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.getCreate2Address=Xi.getCreateAddress=Xi.getContractAddress=void 0;const e=On,t=Om,n=Zr,r=Nr,o=Gn(),a=gC(),i=co,s=xo;function c(d){return d.opcode==="CREATE2"?u(d):l(d)}Xi.getContractAddress=c;function l(d){const f=(0,o.toBytes)((0,s.getAddress)(d.from));let h=(0,o.toBytes)(d.nonce);return h[0]===0&&(h=new Uint8Array([])),(0,s.getAddress)(`0x${(0,i.keccak256)((0,a.toRlp)([f,h],"bytes")).slice(26)}`)}Xi.getCreateAddress=l;function u(d){const f=(0,o.toBytes)((0,s.getAddress)(d.from)),h=(0,n.pad)((0,t.isBytes)(d.salt)?d.salt:(0,o.toBytes)(d.salt),{size:32}),m="bytecodeHash"in d?(0,t.isBytes)(d.bytecodeHash)?d.bytecodeHash:(0,o.toBytes)(d.bytecodeHash):(0,i.keccak256)(d.bytecode,"bytes");return(0,s.getAddress)((0,r.slice)((0,i.keccak256)((0,e.concat)([(0,o.toBytes)("0xff"),f,h,m])),12))}return Xi.getCreate2Address=u,Xi}var ji={};Object.defineProperty(ji,"__esModule",{value:!0});ji.extractFunctionType=ji.extractFunctionParams=ji.extractFunctionName=ji.extractFunctionParts=void 0;const wPe=/((function|event)\s)?(.*)(\((.*)\))/;function yC(e){const t=e.match(wPe),n=(t==null?void 0:t[2])||void 0,r=t==null?void 0:t[3],o=(t==null?void 0:t[5])||void 0;return{type:n,name:r,params:o}}ji.extractFunctionParts=yC;function EPe(e){return yC(e).name}ji.extractFunctionName=EPe;function _Pe(e){const t=yC(e).params,n=t==null?void 0:t.split(",").map(r=>r.trim().split(" "));return n==null?void 0:n.map(r=>({type:r[0],name:r[1]==="indexed"?r[2]:r[1],...r[1]==="indexed"?{indexed:!0}:{}}))}ji.extractFunctionParams=_Pe;function xPe(e){return yC(e).type}ji.extractFunctionType=xPe;var gl={};Object.defineProperty(gl,"__esModule",{value:!0});gl.defineTransactionReceipt=gl.formatTransactionReceipt=void 0;const CPe=Wn(),SPe=Nl,TPe=Vi,APe=wm,DPe={"0x0":"reverted","0x1":"success"};function TJ(e){return{...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(t=>(0,TPe.formatLog)(t)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,CPe.hexToNumber)(e.transactionIndex):null,status:e.status?DPe[e.status]:null,type:e.type?APe.transactionType[e.type]||e.type:null}}gl.formatTransactionReceipt=TJ;gl.defineTransactionReceipt=(0,SPe.defineFormatter)("transactionReceipt",TJ);var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.bytesToString=Lo.bytesToNumber=Lo.bytesToBool=Lo.bytesToBigInt=Lo.fromBytes=void 0;const kPe=hn,AJ=ci,Rh=Wn(),oP=$e();function jPe(e,t){const n=typeof t=="string"?{to:t}:t,r=n.to;return r==="number"?jJ(e,n):r==="bigint"?DJ(e,n):r==="boolean"?kJ(e,n):r==="string"?PJ(e,n):(0,oP.bytesToHex)(e,n)}Lo.fromBytes=jPe;function DJ(e,t={}){typeof t.size<"u"&&(0,Rh.assertSize)(e,{size:t.size});const n=(0,oP.bytesToHex)(e,t);return(0,Rh.hexToBigInt)(n)}Lo.bytesToBigInt=DJ;function kJ(e,t={}){let n=e;if(typeof t.size<"u"&&((0,Rh.assertSize)(n,{size:t.size}),n=(0,AJ.trim)(n)),n.length>1||n[0]>1)throw new kPe.InvalidBytesBooleanError(n);return!!n[0]}Lo.bytesToBool=kJ;function jJ(e,t={}){typeof t.size<"u"&&(0,Rh.assertSize)(e,{size:t.size});const n=(0,oP.bytesToHex)(e,t);return(0,Rh.hexToNumber)(n)}Lo.bytesToNumber=jJ;function PJ(e,t={}){let n=e;return typeof t.size<"u"&&((0,Rh.assertSize)(n,{size:t.size}),n=(0,AJ.trim)(n,{dir:"right"})),new TextDecoder().decode(n)}Lo.bytesToString=PJ;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});Bi.rlpToHex=Bi.rlpToBytes=Bi.fromRlp=void 0;const PPe=xt,IPe=hn,OPe=ab,RPe=Gn(),BB=$e();function aP(e,t="hex"){const n=(()=>{if(typeof e=="string"){if(e.length>3&&e.length%2!==0)throw new IPe.InvalidHexValueError(e);return(0,RPe.hexToBytes)(e)}return e})(),r=(0,OPe.createCursor)(n);return IJ(r,t)}Bi.fromRlp=aP;function NPe(e,t="bytes"){return aP(e,t)}Bi.rlpToBytes=NPe;function BPe(e,t="hex"){return aP(e,t)}Bi.rlpToHex=BPe;function IJ(e,t="hex"){if(e.bytes.length===0)return t==="hex"?(0,BB.bytesToHex)(e.bytes):e.bytes;const n=e.readByte();if(n<128&&e.decrementPosition(1),n<192){const o=FB(e,n,128),a=e.readBytes(o);return t==="hex"?(0,BB.bytesToHex)(a):a}const r=FB(e,n,192);return FPe(e,r,t)}function FB(e,t,n){if(n===128&&t<128)return 1;if(t<=n+55)return t-n;if(t===n+55+1)return e.readUint8();if(t===n+55+2)return e.readUint16();if(t===n+55+3)return e.readUint24();if(t===n+55+4)return e.readUint32();throw new PPe.BaseError("Invalid RLP prefix")}function FPe(e,t,n){const r=e.position,o=[];for(;e.position-rcb);return`0x${a.Signature.fromCompact(n.substring(2,130)).addRecoveryBit(o-27).recoverPublicKey(r.substring(2)).toHex(!1)}`}Nm.recoverPublicKey=e7e;Object.defineProperty(Rd,"__esModule",{value:!0});Rd.recoverAddress=void 0;const t7e=Dm,n7e=Nm;async function r7e({hash:e,signature:t}){return(0,t7e.publicKeyToAddress)(await(0,n7e.recoverPublicKey)({hash:e,signature:t}))}Rd.recoverAddress=r7e;var Bm={},Fm={},lb={};Object.defineProperty(lb,"__esModule",{value:!0});lb.presignMessagePrefix=void 0;lb.presignMessagePrefix=`Ethereum Signed Message: -`;Object.defineProperty(Fm,"__esModule",{value:!0});Fm.hashMessage=void 0;const o7e=lb,a7e=On,Z3=Gn(),i7e=co;function s7e(e,t){const n=typeof e=="string"?(0,Z3.stringToBytes)(e):e.raw instanceof Uint8Array?e.raw:(0,Z3.toBytes)(e.raw),r=(0,Z3.stringToBytes)(`${o7e.presignMessagePrefix}${n.length}`);return(0,i7e.keccak256)((0,a7e.concat)([r,n]),t)}Fm.hashMessage=s7e;Object.defineProperty(Bm,"__esModule",{value:!0});Bm.recoverMessageAddress=void 0;const c7e=Fm,l7e=Rd;async function u7e({message:e,signature:t}){return(0,l7e.recoverAddress)({hash:(0,c7e.hashMessage)(e),signature:t})}Bm.recoverMessageAddress=u7e;var Mm={};Object.defineProperty(Mm,"__esModule",{value:!0});Mm.recoverTypedDataAddress=void 0;const d7e=eb(),f7e=Rd;async function h7e({domain:e,message:t,primaryType:n,signature:r,types:o}){return(0,f7e.recoverAddress)({hash:(0,d7e.hashTypedData)({domain:e,message:t,primaryType:n,types:o}),signature:r})}Mm.recoverTypedDataAddress=h7e;var ub={};Object.defineProperty(ub,"__esModule",{value:!0});ub.verifyMessage=void 0;const m7e=xo,p7e=Bl,g7e=Bm;async function y7e({address:e,message:t,signature:n}){return(0,p7e.isAddressEqual)((0,m7e.getAddress)(e),await(0,g7e.recoverMessageAddress)({message:t,signature:n}))}ub.verifyMessage=y7e;var db={};Object.defineProperty(db,"__esModule",{value:!0});db.verifyTypedData=void 0;const b7e=xo,v7e=Bl,w7e=Mm;async function E7e({address:e,domain:t,message:n,primaryType:r,signature:o,types:a}){return(0,v7e.isAddressEqual)((0,b7e.getAddress)(e),await(0,w7e.recoverTypedDataAddress)({domain:t,message:n,primaryType:r,signature:o,types:a}))}db.verifyTypedData=E7e;var Lm={};Object.defineProperty(Lm,"__esModule",{value:!0});Lm.getSerializedTransactionType=void 0;const _7e=pt,x7e=Nr,C7e=Wn();function S7e(e){const t=(0,x7e.sliceHex)(e,0,1);if(t==="0x02")return"eip1559";if(t==="0x01")return"eip2930";if(t!=="0x"&&(0,C7e.hexToNumber)(t)>=192)return"legacy";throw new _7e.InvalidSerializedTransactionTypeError({serializedType:t})}Lm.getSerializedTransactionType=S7e;var ni={};Object.defineProperty(ni,"__esModule",{value:!0});ni.assertTransactionLegacy=ni.assertTransactionEIP2930=ni.assertTransactionEIP1559=void 0;const iP=Zo,NE=xt,sP=Pr,BE=St,cP=lo;function T7e(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=e;if(t<=0)throw new sP.InvalidChainIdError({chainId:t});if(a&&!(0,cP.isAddress)(a))throw new iP.InvalidAddressError({address:a});if(r)throw new NE.BaseError("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(o&&o>2n**256n-1n)throw new BE.FeeCapTooHighError({maxFeePerGas:o});if(n&&o&&n>o)throw new BE.TipAboveFeeCapError({maxFeePerGas:o,maxPriorityFeePerGas:n})}ni.assertTransactionEIP1559=T7e;function A7e(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a}=e;if(t<=0)throw new sP.InvalidChainIdError({chainId:t});if(a&&!(0,cP.isAddress)(a))throw new iP.InvalidAddressError({address:a});if(n||o)throw new NE.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>2n**256n-1n)throw new BE.FeeCapTooHighError({maxFeePerGas:r})}ni.assertTransactionEIP2930=A7e;function D7e(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:a,accessList:i}=e;if(a&&!(0,cP.isAddress)(a))throw new iP.InvalidAddressError({address:a});if(typeof t<"u"&&t<=0)throw new sP.InvalidChainIdError({chainId:t});if(n||o)throw new NE.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>2n**256n-1n)throw new BE.FeeCapTooHighError({maxFeePerGas:r});if(i)throw new NE.BaseError("`accessList` is not a valid Legacy Transaction attribute.")}ni.assertTransactionLegacy=D7e;var ps={};Object.defineProperty(ps,"__esModule",{value:!0});ps.parseAccessList=ps.toTransactionArray=ps.parseTransaction=void 0;const k7e=Zo,FE=pt,j7e=lo,An=qn,UB=Zr,P7e=ci,ur=Wn(),OJ=Bi,I7e=Rm,lP=ni,O7e=Lm;function R7e(e){const t=(0,O7e.getSerializedTransactionType)(e);return t==="eip1559"?N7e(e):t==="eip2930"?B7e(e):F7e(e)}ps.parseTransaction=R7e;function N7e(e){const t=uP(e),[n,r,o,a,i,s,c,l,u,d,f,h]=t;if(!(t.length===9||t.length===12))throw new FE.InvalidSerializedTransactionError({attributes:{chainId:n,nonce:r,maxPriorityFeePerGas:o,maxFeePerGas:a,gas:i,to:s,value:c,data:l,accessList:u,...t.length>9?{v:d,r:f,s:h}:{}},serializedTransaction:e,type:"eip1559"});const m={chainId:(0,ur.hexToNumber)(n),type:"eip1559"};return(0,An.isHex)(s)&&s!=="0x"&&(m.to=s),(0,An.isHex)(i)&&i!=="0x"&&(m.gas=(0,ur.hexToBigInt)(i)),(0,An.isHex)(l)&&l!=="0x"&&(m.data=l),(0,An.isHex)(r)&&r!=="0x"&&(m.nonce=(0,ur.hexToNumber)(r)),(0,An.isHex)(c)&&c!=="0x"&&(m.value=(0,ur.hexToBigInt)(c)),(0,An.isHex)(a)&&a!=="0x"&&(m.maxFeePerGas=(0,ur.hexToBigInt)(a)),(0,An.isHex)(o)&&o!=="0x"&&(m.maxPriorityFeePerGas=(0,ur.hexToBigInt)(o)),u.length!==0&&u!=="0x"&&(m.accessList=dP(u)),(0,lP.assertTransactionEIP1559)(m),{...t.length===12?RJ(t):void 0,...m}}function B7e(e){const t=uP(e),[n,r,o,a,i,s,c,l,u,d,f]=t;if(!(t.length===8||t.length===11))throw new FE.InvalidSerializedTransactionError({attributes:{chainId:n,nonce:r,gasPrice:o,gas:a,to:i,value:s,data:c,accessList:l,...t.length>8?{v:u,r:d,s:f}:{}},serializedTransaction:e,type:"eip2930"});const h={chainId:(0,ur.hexToNumber)(n),type:"eip2930"};return(0,An.isHex)(i)&&i!=="0x"&&(h.to=i),(0,An.isHex)(a)&&a!=="0x"&&(h.gas=(0,ur.hexToBigInt)(a)),(0,An.isHex)(c)&&c!=="0x"&&(h.data=c),(0,An.isHex)(r)&&r!=="0x"&&(h.nonce=(0,ur.hexToNumber)(r)),(0,An.isHex)(s)&&s!=="0x"&&(h.value=(0,ur.hexToBigInt)(s)),(0,An.isHex)(o)&&o!=="0x"&&(h.gasPrice=(0,ur.hexToBigInt)(o)),l.length!==0&&l!=="0x"&&(h.accessList=dP(l)),(0,lP.assertTransactionEIP2930)(h),{...t.length===11?RJ(t):void 0,...h}}function F7e(e){const t=(0,OJ.fromRlp)(e,"hex"),[n,r,o,a,i,s,c,l,u]=t;if(!(t.length===6||t.length===9))throw new FE.InvalidSerializedTransactionError({attributes:{nonce:n,gasPrice:r,gas:o,to:a,value:i,data:s,...t.length>6?{v:c,r:l,s:u}:{}},serializedTransaction:e,type:"legacy"});const d={type:"legacy"};if((0,An.isHex)(a)&&a!=="0x"&&(d.to=a),(0,An.isHex)(o)&&o!=="0x"&&(d.gas=(0,ur.hexToBigInt)(o)),(0,An.isHex)(s)&&s!=="0x"&&(d.data=s),(0,An.isHex)(n)&&n!=="0x"&&(d.nonce=(0,ur.hexToNumber)(n)),(0,An.isHex)(i)&&i!=="0x"&&(d.value=(0,ur.hexToBigInt)(i)),(0,An.isHex)(r)&&r!=="0x"&&(d.gasPrice=(0,ur.hexToBigInt)(r)),(0,lP.assertTransactionLegacy)(d),t.length===6)return d;const f=(0,An.isHex)(c)&&c!=="0x"?(0,ur.hexToBigInt)(c):0n;if(u==="0x"&&l==="0x")return f>0&&(d.chainId=Number(f)),d;const h=f,m=Number((h-35n)/2n);if(m>0)d.chainId=m;else if(h!==27n&&h!==28n)throw new FE.InvalidLegacyVError({v:h});return d.v=h,d.s=u,d.r=l,d}function uP(e){return(0,OJ.fromRlp)(`0x${e.slice(4)}`,"hex")}ps.toTransactionArray=uP;function dP(e){const t=[];for(let n=0;n(0,I7e.isHash)(a)?a:(0,P7e.trim)(a))})}return t}ps.parseAccessList=dP;function RJ(e){const t=e.slice(-3),n=t[0]==="0x"||(0,ur.hexToBigInt)(t[0])===0n?27n:28n;return{r:(0,UB.padHex)(t[1],{size:32}),s:(0,UB.padHex)(t[2],{size:32}),v:n,yParity:n===27n?0:1}}var Ip={},Um={};Object.defineProperty(Um,"__esModule",{value:!0});Um.serializeAccessList=void 0;const M7e=Zo,L7e=pt,U7e=lo;function $7e(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n{if(m>0)return BigInt(m*2)+BigInt(35n+h.v-27n);if(h.v>=35n)return(h.v-35n)/2n>0?h.v:27n+(h.v===35n?0n:1n);const E=27n+(h.v===27n?0n:1n);if(h.v!==E)throw new e.InvalidLegacyVError({v:h.v});return E})();C=[...C,(0,r.toHex)(x),h.r,h.s]}else m>0&&(C=[...C,(0,r.toHex)(m),"0x","0x"]);return(0,o.toRlp)(C)}return Ip}var Nd={};Object.defineProperty(Nd,"__esModule",{value:!0});Nd.parseUnits=void 0;function z7e(e,t){let[n,r="0"]=e.split(".");const o=n.startsWith("-");if(o&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),t===0)Math.round(+`.${r}`)===1&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>t){const[a,i,s]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],c=Math.round(+`${i}.${s}`);c>9?r=`${BigInt(a)+BigInt(1)}0`.padStart(a.length+1,"0"):r=`${a}${c}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${o?"-":""}${n}${r}`)}Nd.parseUnits=z7e;var fb={};Object.defineProperty(fb,"__esModule",{value:!0});fb.parseEther=void 0;const H7e=ya,q7e=Nd;function W7e(e,t="wei"){return(0,q7e.parseUnits)(e,H7e.etherUnits[t])}fb.parseEther=W7e;var hb={};Object.defineProperty(hb,"__esModule",{value:!0});hb.parseGwei=void 0;const G7e=ya,V7e=Nd;function K7e(e,t="wei"){return(0,V7e.parseUnits)(e,G7e.gweiUnits[t])}hb.parseGwei=K7e;var zB;function $m(){return zB||(zB=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.concat=e.extractFunctionParts=e.extractFunctionType=e.extractFunctionParams=e.extractFunctionName=e.isAddressEqual=e.isAddress=e.getAddress=e.getCreate2Address=e.getCreateAddress=e.getContractAddress=e.publicKeyToAddress=e.parseAccount=e.formatAbiParams=e.formatAbiItem=e.formatAbiItemWithArgs=e.encodePacked=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.getAbiItem=e.encodeFunctionResult=e.encodeFunctionData=e.encodeEventTopics=e.encodeErrorResult=e.encodeDeployData=e.encodeAbiParameters=e.decodeFunctionResult=e.decodeFunctionData=e.decodeEventLog=e.decodeErrorResult=e.decodeAbiParameters=e.validateTypedData=e.stringify=e.rpc=e.getSocket=e.integerRegex=e.bytesRegex=e.arrayRegex=e.getChainContractAddress=e.extractChain=e.defineChain=e.assertCurrentChain=e.offchainLookupSignature=e.offchainLookupAbiItem=e.offchainLookup=e.ccipFetch=e.buildRequest=e.isDeterministicError=void 0,e.getEstimateGasError=e.getContractError=e.getCallError=e.getNodeError=e.containsNodeError=e.fromRlp=e.hexToString=e.hexToNumber=e.hexToBigInt=e.hexToBool=e.fromHex=e.fromBytes=e.bytesToString=e.bytesToNumber=e.bytesToBool=e.bytesToBigint=e.bytesToBigInt=e.stringToHex=e.numberToHex=e.toHex=e.bytesToHex=e.boolToHex=e.stringToBytes=e.numberToBytes=e.hexToBytes=e.toBytes=e.boolToBytes=e.toRlp=e.extract=e.formatTransactionRequest=e.defineTransactionRequest=e.defineTransactionReceipt=e.formatLog=e.transactionType=e.formatTransaction=e.defineTransaction=e.formatBlock=e.defineBlock=e.trim=e.sliceHex=e.sliceBytes=e.slice=e.size=e.padHex=e.padBytes=e.pad=e.isHex=e.isBytes=e.concatHex=e.concatBytes=void 0,e.parseGwei=e.parseEther=e.parseUnits=e.formatUnits=e.formatGwei=e.formatEther=e.serializeAccessList=e.serializeTransaction=e.prepareTransactionRequest=e.parseTransaction=e.assertTransactionLegacy=e.assertTransactionEIP2930=e.assertTransactionEIP1559=e.assertRequest=e.getTransactionType=e.getSerializedTransactionType=e.hashMessage=e.verifyTypedData=e.verifyMessage=e.recoverTypedDataAddress=e.recoverPublicKey=e.recoverMessageAddress=e.recoverAddress=e.hashTypedData=e.ripemd160=e.sha256=e.keccak256=e.isHash=e.getFunctionSelector=e.getEventSelector=e.defineFormatter=e.getTransactionError=void 0;var t=X2;Object.defineProperty(e,"isDeterministicError",{enumerable:!0,get:function(){return t.isDeterministicError}}),Object.defineProperty(e,"buildRequest",{enumerable:!0,get:function(){return t.buildRequest}});var n=rP();Object.defineProperty(e,"ccipFetch",{enumerable:!0,get:function(){return n.ccipFetch}}),Object.defineProperty(e,"offchainLookup",{enumerable:!0,get:function(){return n.offchainLookup}}),Object.defineProperty(e,"offchainLookupAbiItem",{enumerable:!0,get:function(){return n.offchainLookupAbiItem}}),Object.defineProperty(e,"offchainLookupSignature",{enumerable:!0,get:function(){return n.offchainLookupSignature}});var r=jd;Object.defineProperty(e,"assertCurrentChain",{enumerable:!0,get:function(){return r.assertCurrentChain}});var o=Jy;Object.defineProperty(e,"defineChain",{enumerable:!0,get:function(){return o.defineChain}});var a=Zy;Object.defineProperty(e,"extractChain",{enumerable:!0,get:function(){return a.extractChain}});var i=di;Object.defineProperty(e,"getChainContractAddress",{enumerable:!0,get:function(){return i.getChainContractAddress}});var s=Ni;Object.defineProperty(e,"arrayRegex",{enumerable:!0,get:function(){return s.arrayRegex}}),Object.defineProperty(e,"bytesRegex",{enumerable:!0,get:function(){return s.bytesRegex}}),Object.defineProperty(e,"integerRegex",{enumerable:!0,get:function(){return s.integerRegex}});var c=Z2;Object.defineProperty(e,"getSocket",{enumerable:!0,get:function(){return c.getSocket}}),Object.defineProperty(e,"rpc",{enumerable:!0,get:function(){return c.rpc}});var l=xr;Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}});var u=pC();Object.defineProperty(e,"validateTypedData",{enumerable:!0,get:function(){return u.validateTypedData}});var d=Hi;Object.defineProperty(e,"decodeAbiParameters",{enumerable:!0,get:function(){return d.decodeAbiParameters}});var f=xd;Object.defineProperty(e,"decodeErrorResult",{enumerable:!0,get:function(){return f.decodeErrorResult}});var h=Qs;Object.defineProperty(e,"decodeEventLog",{enumerable:!0,get:function(){return h.decodeEventLog}});var m=tb;Object.defineProperty(e,"decodeFunctionData",{enumerable:!0,get:function(){return m.decodeFunctionData}});var p=ui;Object.defineProperty(e,"decodeFunctionResult",{enumerable:!0,get:function(){return p.decodeFunctionResult}});var b=oo;Object.defineProperty(e,"encodeAbiParameters",{enumerable:!0,get:function(){return b.encodeAbiParameters}});var v=Im;Object.defineProperty(e,"encodeDeployData",{enumerable:!0,get:function(){return v.encodeDeployData}});var g=nb;Object.defineProperty(e,"encodeErrorResult",{enumerable:!0,get:function(){return g.encodeErrorResult}});var w=Ws;Object.defineProperty(e,"encodeEventTopics",{enumerable:!0,get:function(){return w.encodeEventTopics}});var _=ea;Object.defineProperty(e,"encodeFunctionData",{enumerable:!0,get:function(){return _.encodeFunctionData}});var C=rb;Object.defineProperty(e,"encodeFunctionResult",{enumerable:!0,get:function(){return C.encodeFunctionResult}});var x=Br;Object.defineProperty(e,"getAbiItem",{enumerable:!0,get:function(){return x.getAbiItem}});var E=V4;Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return E.parseAbi}}),Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return E.parseAbiItem}}),Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return E.parseAbiParameter}}),Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return E.parseAbiParameters}});var T=ob;Object.defineProperty(e,"encodePacked",{enumerable:!0,get:function(){return T.encodePacked}});var k=Oy;Object.defineProperty(e,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return k.formatAbiItemWithArgs}});var D=Gs();Object.defineProperty(e,"formatAbiItem",{enumerable:!0,get:function(){return D.formatAbiItem}}),Object.defineProperty(e,"formatAbiParams",{enumerable:!0,get:function(){return D.formatAbiParams}});var R=Lr;Object.defineProperty(e,"parseAccount",{enumerable:!0,get:function(){return R.parseAccount}});var F=Dm;Object.defineProperty(e,"publicKeyToAddress",{enumerable:!0,get:function(){return F.publicKeyToAddress}});var B=SJ();Object.defineProperty(e,"getContractAddress",{enumerable:!0,get:function(){return B.getContractAddress}}),Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return B.getCreateAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return B.getCreate2Address}});var j=xo;Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return j.getAddress}});var P=lo;Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return P.isAddress}});var O=Bl;Object.defineProperty(e,"isAddressEqual",{enumerable:!0,get:function(){return O.isAddressEqual}});var I=ji;Object.defineProperty(e,"extractFunctionName",{enumerable:!0,get:function(){return I.extractFunctionName}}),Object.defineProperty(e,"extractFunctionParams",{enumerable:!0,get:function(){return I.extractFunctionParams}}),Object.defineProperty(e,"extractFunctionType",{enumerable:!0,get:function(){return I.extractFunctionType}}),Object.defineProperty(e,"extractFunctionParts",{enumerable:!0,get:function(){return I.extractFunctionParts}});var N=On;Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return N.concat}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return N.concatBytes}}),Object.defineProperty(e,"concatHex",{enumerable:!0,get:function(){return N.concatHex}});var M=Om;Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return M.isBytes}});var L=qn;Object.defineProperty(e,"isHex",{enumerable:!0,get:function(){return L.isHex}});var X=Zr;Object.defineProperty(e,"pad",{enumerable:!0,get:function(){return X.pad}}),Object.defineProperty(e,"padBytes",{enumerable:!0,get:function(){return X.padBytes}}),Object.defineProperty(e,"padHex",{enumerable:!0,get:function(){return X.padHex}});var J=ka;Object.defineProperty(e,"size",{enumerable:!0,get:function(){return J.size}});var U=Nr;Object.defineProperty(e,"slice",{enumerable:!0,get:function(){return U.slice}}),Object.defineProperty(e,"sliceBytes",{enumerable:!0,get:function(){return U.sliceBytes}}),Object.defineProperty(e,"sliceHex",{enumerable:!0,get:function(){return U.sliceHex}});var G=ci;Object.defineProperty(e,"trim",{enumerable:!0,get:function(){return G.trim}});var Z=js;Object.defineProperty(e,"defineBlock",{enumerable:!0,get:function(){return Z.defineBlock}}),Object.defineProperty(e,"formatBlock",{enumerable:!0,get:function(){return Z.formatBlock}});var ae=wm;Object.defineProperty(e,"defineTransaction",{enumerable:!0,get:function(){return ae.defineTransaction}}),Object.defineProperty(e,"formatTransaction",{enumerable:!0,get:function(){return ae.formatTransaction}}),Object.defineProperty(e,"transactionType",{enumerable:!0,get:function(){return ae.transactionType}});var ne=Vi;Object.defineProperty(e,"formatLog",{enumerable:!0,get:function(){return ne.formatLog}});var ie=gl;Object.defineProperty(e,"defineTransactionReceipt",{enumerable:!0,get:function(){return ie.defineTransactionReceipt}});var te=Rl;Object.defineProperty(e,"defineTransactionRequest",{enumerable:!0,get:function(){return te.defineTransactionRequest}}),Object.defineProperty(e,"formatTransactionRequest",{enumerable:!0,get:function(){return te.formatTransactionRequest}});var ee=Ol;Object.defineProperty(e,"extract",{enumerable:!0,get:function(){return ee.extract}});var re=gC();Object.defineProperty(e,"toRlp",{enumerable:!0,get:function(){return re.toRlp}});var z=Gn();Object.defineProperty(e,"boolToBytes",{enumerable:!0,get:function(){return z.boolToBytes}}),Object.defineProperty(e,"toBytes",{enumerable:!0,get:function(){return z.toBytes}}),Object.defineProperty(e,"hexToBytes",{enumerable:!0,get:function(){return z.hexToBytes}}),Object.defineProperty(e,"numberToBytes",{enumerable:!0,get:function(){return z.numberToBytes}}),Object.defineProperty(e,"stringToBytes",{enumerable:!0,get:function(){return z.stringToBytes}});var fe=$e();Object.defineProperty(e,"boolToHex",{enumerable:!0,get:function(){return fe.boolToHex}}),Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return fe.bytesToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return fe.toHex}}),Object.defineProperty(e,"numberToHex",{enumerable:!0,get:function(){return fe.numberToHex}}),Object.defineProperty(e,"stringToHex",{enumerable:!0,get:function(){return fe.stringToHex}});var ve=Lo;Object.defineProperty(e,"bytesToBigInt",{enumerable:!0,get:function(){return ve.bytesToBigInt}}),Object.defineProperty(e,"bytesToBigint",{enumerable:!0,get:function(){return ve.bytesToBigInt}}),Object.defineProperty(e,"bytesToBool",{enumerable:!0,get:function(){return ve.bytesToBool}}),Object.defineProperty(e,"bytesToNumber",{enumerable:!0,get:function(){return ve.bytesToNumber}}),Object.defineProperty(e,"bytesToString",{enumerable:!0,get:function(){return ve.bytesToString}}),Object.defineProperty(e,"fromBytes",{enumerable:!0,get:function(){return ve.fromBytes}});var Ue=Wn();Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return Ue.fromHex}}),Object.defineProperty(e,"hexToBool",{enumerable:!0,get:function(){return Ue.hexToBool}}),Object.defineProperty(e,"hexToBigInt",{enumerable:!0,get:function(){return Ue.hexToBigInt}}),Object.defineProperty(e,"hexToNumber",{enumerable:!0,get:function(){return Ue.hexToNumber}}),Object.defineProperty(e,"hexToString",{enumerable:!0,get:function(){return Ue.hexToString}});var ke=Bi;Object.defineProperty(e,"fromRlp",{enumerable:!0,get:function(){return ke.fromRlp}});var Qe=ks;Object.defineProperty(e,"containsNodeError",{enumerable:!0,get:function(){return Qe.containsNodeError}}),Object.defineProperty(e,"getNodeError",{enumerable:!0,get:function(){return Qe.getNodeError}});var Te=Uy;Object.defineProperty(e,"getCallError",{enumerable:!0,get:function(){return Te.getCallError}});var Ee=Vs;Object.defineProperty(e,"getContractError",{enumerable:!0,get:function(){return Ee.getContractError}});var he=Ny;Object.defineProperty(e,"getEstimateGasError",{enumerable:!0,get:function(){return he.getEstimateGasError}});var Me=Wy;Object.defineProperty(e,"getTransactionError",{enumerable:!0,get:function(){return Me.getTransactionError}});var ge=Nl;Object.defineProperty(e,"defineFormatter",{enumerable:!0,get:function(){return ge.defineFormatter}});var Y=Pl;Object.defineProperty(e,"getEventSelector",{enumerable:!0,get:function(){return Y.getEventSelector}});var W=zi;Object.defineProperty(e,"getFunctionSelector",{enumerable:!0,get:function(){return W.getFunctionSelector}});var Q=Rm;Object.defineProperty(e,"isHash",{enumerable:!0,get:function(){return Q.isHash}});var ce=co;Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return ce.keccak256}});var pe=ib;Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return pe.sha256}});var De=sb;Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return De.ripemd160}});var Ie=eb();Object.defineProperty(e,"hashTypedData",{enumerable:!0,get:function(){return Ie.hashTypedData}});var Je=Rd;Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return Je.recoverAddress}});var Oe=Bm;Object.defineProperty(e,"recoverMessageAddress",{enumerable:!0,get:function(){return Oe.recoverMessageAddress}});var _e=Nm;Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return _e.recoverPublicKey}});var at=Mm;Object.defineProperty(e,"recoverTypedDataAddress",{enumerable:!0,get:function(){return at.recoverTypedDataAddress}});var Ft=ub;Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return Ft.verifyMessage}});var Lt=db;Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return Lt.verifyTypedData}});var Js=Fm;Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return Js.hashMessage}});var Jm=Lm;Object.defineProperty(e,"getSerializedTransactionType",{enumerable:!0,get:function(){return Jm.getSerializedTransactionType}});var $d=Td;Object.defineProperty(e,"getTransactionType",{enumerable:!0,get:function(){return $d.getTransactionType}});var Zs=Gi;Object.defineProperty(e,"assertRequest",{enumerable:!0,get:function(){return Zs.assertRequest}});var fi=ni;Object.defineProperty(e,"assertTransactionEIP1559",{enumerable:!0,get:function(){return fi.assertTransactionEIP1559}}),Object.defineProperty(e,"assertTransactionEIP2930",{enumerable:!0,get:function(){return fi.assertTransactionEIP2930}}),Object.defineProperty(e,"assertTransactionLegacy",{enumerable:!0,get:function(){return fi.assertTransactionLegacy}});var Ia=ps;Object.defineProperty(e,"parseTransaction",{enumerable:!0,get:function(){return Ia.parseTransaction}});var ta=My();Object.defineProperty(e,"prepareTransactionRequest",{enumerable:!0,get:function(){return ta.prepareTransactionRequest}});var na=NJ();Object.defineProperty(e,"serializeTransaction",{enumerable:!0,get:function(){return na.serializeTransaction}});var ec=Um;Object.defineProperty(e,"serializeAccessList",{enumerable:!0,get:function(){return ec.serializeAccessList}});var tc=Il;Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return tc.formatEther}});var Zm=qi;Object.defineProperty(e,"formatGwei",{enumerable:!0,get:function(){return Zm.formatGwei}});var zd=Cd;Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return zd.formatUnits}});var Hl=Nd;Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return Hl.parseUnits}});var nc=fb;Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return nc.parseEther}});var ep=hb;Object.defineProperty(e,"parseGwei",{enumerable:!0,get:function(){return ep.parseGwei}})}(H3)),H3}var HB;function Y7e(){if(HB)return Pp;HB=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.formatProof=void 0;const e=$m();function t(r){return r.map(o=>({...o,value:BigInt(o.value)}))}function n(r){return{...r,balance:r.balance?BigInt(r.balance):void 0,nonce:r.nonce?(0,e.hexToNumber)(r.nonce):void 0,storageProof:r.storageProof?t(r.storageProof):void 0}}return Pp.formatProof=n,Pp}var qB;function Q7e(){if(qB)return jp;qB=1,Object.defineProperty(jp,"__esModule",{value:!0}),jp.getProof=void 0;const e=$e(),t=Y7e();async function n(r,{address:o,blockNumber:a,blockTag:i,storageKeys:s}){const c=i??"latest",l=a!==void 0?(0,e.numberToHex)(a):void 0,u=await r.request({method:"eth_getProof",params:[o,s,l||c]});return(0,t.formatProof)(u)}return jp.getProof=n,jp}var bC={};Object.defineProperty(bC,"__esModule",{value:!0});bC.getStorageAt=void 0;const X7e=$e();async function J7e(e,{address:t,blockNumber:n,blockTag:r="latest",slot:o}){const a=n!==void 0?(0,X7e.numberToHex)(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,o,a||r]})}bC.getStorageAt=J7e;var zm={};Object.defineProperty(zm,"__esModule",{value:!0});zm.getTransaction=void 0;const Z7e=pt,eT=$e(),eIe=wm;async function tIe(e,{blockHash:t,blockNumber:n,blockTag:r,hash:o,index:a}){var u,d,f;const i=r||"latest",s=n!==void 0?(0,eT.numberToHex)(n):void 0;let c=null;if(o?c=await e.request({method:"eth_getTransactionByHash",params:[o]}):t?c=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,eT.numberToHex)(a)]}):(s||i)&&(c=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[s||i,(0,eT.numberToHex)(a)]})),!c)throw new Z7e.TransactionNotFoundError({blockHash:t,blockNumber:n,blockTag:i,hash:o,index:a});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.transaction)==null?void 0:f.format)||eIe.formatTransaction)(c)}zm.getTransaction=tIe;var vC={};Object.defineProperty(vC,"__esModule",{value:!0});vC.getTransactionConfirmations=void 0;const WB=Bt,nIe=Li,rIe=zm;async function oIe(e,{hash:t,transactionReceipt:n}){const[r,o]=await Promise.all([(0,WB.getAction)(e,nIe.getBlockNumber,"getBlockNumber")({}),t?(0,WB.getAction)(e,rIe.getTransaction,"getBlockNumber")({hash:t}):void 0]),a=(n==null?void 0:n.blockNumber)||(o==null?void 0:o.blockNumber);return a?r-a+1n:0n}vC.getTransactionConfirmations=oIe;var mb={};Object.defineProperty(mb,"__esModule",{value:!0});mb.getTransactionReceipt=void 0;const aIe=pt,iIe=gl;async function sIe(e,{hash:t}){var o,a,i;const n=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!n)throw new aIe.TransactionReceiptNotFoundError({hash:t});return(((i=(a=(o=e.chain)==null?void 0:o.formatters)==null?void 0:a.transactionReceipt)==null?void 0:i.format)||iIe.formatTransactionReceipt)(n)}mb.getTransactionReceipt=sIe;var wC={};Object.defineProperty(wC,"__esModule",{value:!0});wC.multicall=void 0;const cIe=mn,lIe=Jt(),uIe=xt,dIe=Zn,fIe=ui,hIe=ea,mIe=di,GB=Vs,pIe=Bt,gIe=li;async function yIe(e,t){var p;const{allowFailure:n=!0,batchSize:r,blockNumber:o,blockTag:a,contracts:i,multicallAddress:s}=t,c=r??(typeof((p=e.batch)==null?void 0:p.multicall)=="object"&&e.batch.multicall.batchSize||1024);let l=s;if(!l){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");l=(0,mIe.getChainContractAddress)({blockNumber:o,chain:e.chain,contract:"multicall3"})}const u=[[]];let d=0,f=0;for(let b=0;b0&&f>c&&u[d].length>0&&(d++,f=(C.length-2)/2,u[d]=[]),u[d]=[...u[d],{allowFailure:!0,callData:C,target:g}]}catch(C){const x=(0,GB.getContractError)(C,{abi:v,address:g,args:w,docsPath:"/docs/contract/multicall",functionName:_});if(!n)throw x;u[d]=[...u[d],{allowFailure:!0,callData:"0x",target:g}]}}const h=await Promise.allSettled(u.map(b=>(0,pIe.getAction)(e,gIe.readContract,"readContract")({abi:cIe.multicall3Abi,address:l,args:[b],blockNumber:o,blockTag:a,functionName:"aggregate3"}))),m=[];for(let b=0;b{const d=(0,AIe.stringify)(["watchBlockNumber",e.uid,t,n,i]);return(0,SIe.observe)(d,{onBlockNumber:r,onError:o},f=>(0,TIe.poll)(async()=>{var h;try{const m=await(0,CIe.getAction)(e,DIe.getBlockNumber,"getBlockNumber")({cacheTime:0});if(c){if(m===c)return;if(m-c>1&&n)for(let p=c+1n;pc)&&(f.onBlockNumber(m,c),c=m)}catch(m){(h=f.onError)==null||h.call(f,m)}},{emitOnBegin:t,interval:i}))})():(()=>{let d=!0,f=()=>d=!1;return(async()=>{try{const{unsubscribe:h}=await e.transport.subscribe({params:["newHeads"],onData(m){var b;if(!d)return;const p=(0,xIe.hexToBigInt)((b=m.result)==null?void 0:b.number);r(p,c),c=p},onError(m){o==null||o(m)}});f=h,d||f()}catch(h){o==null||o(h)}})(),f})()}pb.watchBlockNumber=kIe;Object.defineProperty(xC,"__esModule",{value:!0});xC.waitForTransactionReceipt=void 0;const jIe=vm,tT=pt,Bp=Bt,PIe=Ad,JB=Gy,IIe=xr,OIe=Ys,RIe=zm,ZB=mb,NIe=pb;async function BIe(e,{confirmations:t=1,hash:n,onReplaced:r,pollingInterval:o=e.pollingInterval,timeout:a}){const i=(0,IIe.stringify)(["waitForTransactionReceipt",e.uid,n]);let s,c,l,u=!1;return new Promise((d,f)=>{a&&setTimeout(()=>f(new tT.WaitForTransactionReceiptTimeoutError({hash:n})),a);const h=(0,PIe.observe)(i,{onReplaced:r,resolve:d,reject:f},m=>{const p=(0,Bp.getAction)(e,NIe.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:o,async onBlockNumber(b){if(u)return;let v=b;const g=w=>{p(),w(),h()};try{if(l){if(t>1&&(!l.blockNumber||v-l.blockNumber+1nm.resolve(l));return}if(s||(u=!0,await(0,JB.withRetry)(async()=>{s=await(0,Bp.getAction)(e,RIe.getTransaction,"getTransaction")({hash:n}),s.blockNumber&&(v=s.blockNumber)},{delay:({count:w})=>~~(1<1&&(!l.blockNumber||v-l.blockNumber+1nm.resolve(l))}catch(w){if(s&&(w instanceof tT.TransactionNotFoundError||w instanceof tT.TransactionReceiptNotFoundError))try{c=s,u=!0;const _=await(0,JB.withRetry)(()=>(0,Bp.getAction)(e,OIe.getBlock,"getBlock")({blockNumber:v,includeTransactions:!0}),{delay:({count:E})=>~~(1<E instanceof jIe.BlockNotFoundError});u=!1;const C=_.transactions.find(({from:E,nonce:T})=>E===c.from&&T===c.nonce);if(!C||(l=await(0,Bp.getAction)(e,ZB.getTransactionReceipt,"getTransactionReceipt")({hash:C.hash}),t>1&&(!l.blockNumber||v-l.blockNumber+1n{var E;(E=m.onReplaced)==null||E.call(m,{reason:x,replacedTransaction:c,transaction:C,transactionReceipt:l}),m.resolve(l)})}catch(_){g(()=>m.reject(_))}else g(()=>m.reject(w))}}})})})}xC.waitForTransactionReceipt=BIe;var CC={};Object.defineProperty(CC,"__esModule",{value:!0});CC.watchBlocks=void 0;const FIe=js,eF=Bt,MIe=Ad,LIe=Fl,UIe=xr,tF=Ys;function $Ie(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:o,onError:a,includeTransactions:i,poll:s,pollingInterval:c=e.pollingInterval}){const l=typeof s<"u"?s:e.transport.type!=="webSocket",u=i??!1;let d;return l?(()=>{const m=(0,UIe.stringify)(["watchBlocks",e.uid,n,r,u,c]);return(0,MIe.observe)(m,{onBlock:o,onError:a},p=>(0,LIe.poll)(async()=>{var b;try{const v=await(0,eF.getAction)(e,tF.getBlock,"getBlock")({blockTag:t,includeTransactions:u});if(v.number&&(d!=null&&d.number)){if(v.number===d.number)return;if(v.number-d.number>1&&n)for(let g=(d==null?void 0:d.number)+1n;gd.number)&&(p.onBlock(v,d),d=v)}catch(v){(b=p.onError)==null||b.call(p,v)}},{emitOnBegin:r,interval:c}))})():(()=>{let m=!0,p=()=>m=!1;return(async()=>{try{const{unsubscribe:b}=await e.transport.subscribe({params:["newHeads"],onData(v){var _,C,x;if(!m)return;const w=(((x=(C=(_=e.chain)==null?void 0:_.formatters)==null?void 0:C.block)==null?void 0:x.format)||FIe.formatBlock)(v.result);o(w,d),d=w},onError(v){a==null||a(v)}});p=b,m||p()}catch(b){a==null||a(b)}})(),p})()}CC.watchBlocks=$Ie;var Fp={},nF;function zIe(){if(nF)return Fp;nF=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.watchEvent=void 0;const e=Ad,t=Fl,n=xr,r=Jt(),o=qe,a=Bt,i=$m(),s=Qy,c=Li,l=Dd,u=xm,d=kd;function f(h,{address:m,args:p,batch:b=!0,event:v,events:g,onError:w,onLogs:_,poll:C,pollingInterval:x=h.pollingInterval,strict:E}){const T=typeof C<"u"?C:h.transport.type!=="webSocket",k=E??!1;return T?(()=>{const F=(0,n.stringify)(["watchEvent",m,p,b,h.uid,v,x]);return(0,e.observe)(F,{onLogs:_,onError:w},B=>{let j,P,O=!1;const I=(0,t.poll)(async()=>{var N;if(!O){try{P=await(0,a.getAction)(h,s.createEventFilter,"createEventFilter")({address:m,args:p,event:v,events:g,strict:k})}catch{}O=!0;return}try{let M;if(P)M=await(0,a.getAction)(h,l.getFilterChanges,"getFilterChanges")({filter:P});else{const L=await(0,a.getAction)(h,c.getBlockNumber,"getBlockNumber")({});j&&j!==L?M=await(0,a.getAction)(h,u.getLogs,"getLogs")({address:m,args:p,event:v,events:g,fromBlock:j+1n,toBlock:L}):M=[],j=L}if(M.length===0)return;if(b)B.onLogs(M);else for(const L of M)B.onLogs([L])}catch(M){P&&M instanceof o.InvalidInputRpcError&&(O=!1),(N=B.onError)==null||N.call(B,M)}},{emitOnBegin:!0,interval:x});return async()=>{P&&await(0,a.getAction)(h,d.uninstallFilter,"uninstallFilter")({filter:P}),I()}})})():(()=>{let F=!0,B=()=>F=!1;return(async()=>{try{const j=g??(v?[v]:void 0);let P=[];j&&(P=[j.flatMap(I=>(0,i.encodeEventTopics)({abi:[I],eventName:I.name,args:p}))],v&&(P=P[0]));const{unsubscribe:O}=await h.transport.subscribe({params:["logs",{address:m,topics:P}],onData(I){var M;if(!F)return;const N=I.result;try{const{eventName:L,args:X}=(0,i.decodeEventLog)({abi:j,data:N.data,topics:N.topics,strict:k}),J=(0,i.formatLog)(N,{args:X,eventName:L});_([J])}catch(L){let X,J;if(L instanceof r.DecodeLogDataMismatch||L instanceof r.DecodeLogTopicsMismatch){if(E)return;X=L.abiItem.name,J=(M=L.abiItem.inputs)==null?void 0:M.some(G=>!("name"in G&&G.name))}const U=(0,i.formatLog)(N,{args:J?[]:{},eventName:X});_([U])}},onError(I){w==null||w(I)}});B=O,F||B()}catch(j){w==null||w(j)}})(),B})()}return Fp.watchEvent=f,Fp}var SC={};Object.defineProperty(SC,"__esModule",{value:!0});SC.watchPendingTransactions=void 0;const nT=Bt,HIe=Ad,qIe=Fl,WIe=xr,GIe=Xy,VIe=Dd,KIe=kd;function YIe(e,{batch:t=!0,onError:n,onTransactions:r,poll:o,pollingInterval:a=e.pollingInterval}){return(typeof o<"u"?o:e.transport.type!=="webSocket")?(()=>{const l=(0,WIe.stringify)(["watchPendingTransactions",e.uid,t,a]);return(0,HIe.observe)(l,{onTransactions:r,onError:n},u=>{let d;const f=(0,qIe.poll)(async()=>{var h;try{if(!d)try{d=await(0,nT.getAction)(e,GIe.createPendingTransactionFilter,"createPendingTransactionFilter")({});return}catch(p){throw f(),p}const m=await(0,nT.getAction)(e,VIe.getFilterChanges,"getFilterChanges")({filter:d});if(m.length===0)return;if(t)u.onTransactions(m);else for(const p of m)u.onTransactions([p])}catch(m){(h=u.onError)==null||h.call(u,m)}},{emitOnBegin:!0,interval:a});return async()=>{d&&await(0,nT.getAction)(e,KIe.uninstallFilter,"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})()}SC.watchPendingTransactions=YIe;var rF;function FJ(){if(rF)return kp;rF=1,Object.defineProperty(kp,"__esModule",{value:!0}),kp.publicActions=void 0;const e=tC,t=rC,n=iC,r=sC,o=Yy,a=$y(),i=cC,s=ym,c=Qy,l=Xy,u=Iy,d=td,f=tP(),h=nd,m=lC,p=Ys,b=Li,v=uC,g=dC,w=Pd,_=_m,C=fC,x=Dd,E=mC,T=Em,k=xm,D=Q7e(),R=bC,F=zm,B=vC,j=Fy,P=mb,O=wC,I=li,N=zy,M=kd,L=EIe(),X=_Ie(),J=xC,U=pb,G=CC,Z=Hy,ae=zIe(),ne=SC,ie=My(),te=Am;function ee(re){return{call:z=>(0,a.call)(re,z),createBlockFilter:()=>(0,i.createBlockFilter)(re),createContractEventFilter:z=>(0,s.createContractEventFilter)(re,z),createEventFilter:z=>(0,c.createEventFilter)(re,z),createPendingTransactionFilter:()=>(0,l.createPendingTransactionFilter)(re),estimateContractGas:z=>(0,u.estimateContractGas)(re,z),estimateGas:z=>(0,f.estimateGas)(re,z),getBalance:z=>(0,m.getBalance)(re,z),getBlock:z=>(0,p.getBlock)(re,z),getBlockNumber:z=>(0,b.getBlockNumber)(re,z),getBlockTransactionCount:z=>(0,v.getBlockTransactionCount)(re,z),getBytecode:z=>(0,g.getBytecode)(re,z),getChainId:()=>(0,w.getChainId)(re),getContractEvents:z=>(0,_.getContractEvents)(re,z),getEnsAddress:z=>(0,e.getEnsAddress)(re,z),getEnsAvatar:z=>(0,t.getEnsAvatar)(re,z),getEnsName:z=>(0,n.getEnsName)(re,z),getEnsResolver:z=>(0,r.getEnsResolver)(re,z),getEnsText:z=>(0,o.getEnsText)(re,z),getFeeHistory:z=>(0,C.getFeeHistory)(re,z),estimateFeesPerGas:z=>(0,d.estimateFeesPerGas)(re,z),getFilterChanges:z=>(0,x.getFilterChanges)(re,z),getFilterLogs:z=>(0,E.getFilterLogs)(re,z),getGasPrice:()=>(0,T.getGasPrice)(re),getLogs:z=>(0,k.getLogs)(re,z),getProof:z=>(0,D.getProof)(re,z),estimateMaxPriorityFeePerGas:z=>(0,h.estimateMaxPriorityFeePerGas)(re,z),getStorageAt:z=>(0,R.getStorageAt)(re,z),getTransaction:z=>(0,F.getTransaction)(re,z),getTransactionConfirmations:z=>(0,B.getTransactionConfirmations)(re,z),getTransactionCount:z=>(0,j.getTransactionCount)(re,z),getTransactionReceipt:z=>(0,P.getTransactionReceipt)(re,z),multicall:z=>(0,O.multicall)(re,z),prepareTransactionRequest:z=>(0,ie.prepareTransactionRequest)(re,z),readContract:z=>(0,I.readContract)(re,z),sendRawTransaction:z=>(0,te.sendRawTransaction)(re,z),simulateContract:z=>(0,N.simulateContract)(re,z),verifyMessage:z=>(0,L.verifyMessage)(re,z),verifyTypedData:z=>(0,X.verifyTypedData)(re,z),uninstallFilter:z=>(0,M.uninstallFilter)(re,z),waitForTransactionReceipt:z=>(0,J.waitForTransactionReceipt)(re,z),watchBlocks:z=>(0,G.watchBlocks)(re,z),watchBlockNumber:z=>(0,U.watchBlockNumber)(re,z),watchContractEvent:z=>(0,Z.watchContractEvent)(re,z),watchEvent:z=>(0,ae.watchEvent)(re,z),watchPendingTransactions:z=>(0,ne.watchPendingTransactions)(re,z)}}return kp.publicActions=ee,kp}var oF;function QIe(){if(oF)return Dp;oF=1,Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.createPublicClient=void 0;const e=Id,t=FJ();function n(r){const{key:o="public",name:a="Public Client"}=r;return(0,e.createClient)({...r,key:o,name:a,type:"publicClient"}).extend(t.publicActions)}return Dp.createPublicClient=n,Dp}var TC={},gb={},AC={};Object.defineProperty(AC,"__esModule",{value:!0});AC.dropTransaction=void 0;async function XIe(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}AC.dropTransaction=XIe;var DC={};Object.defineProperty(DC,"__esModule",{value:!0});DC.dumpState=void 0;async function JIe(e){return e.request({method:`${e.mode}_dumpState`})}DC.dumpState=JIe;var kC={};Object.defineProperty(kC,"__esModule",{value:!0});kC.getAutomine=void 0;async function ZIe(e){return e.mode==="ganache"?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}kC.getAutomine=ZIe;var jC={};Object.defineProperty(jC,"__esModule",{value:!0});jC.getTxpoolContent=void 0;async function eOe(e){return await e.request({method:"txpool_content"})}jC.getTxpoolContent=eOe;var PC={};Object.defineProperty(PC,"__esModule",{value:!0});PC.getTxpoolStatus=void 0;const aF=Wn();async function tOe(e){const{pending:t,queued:n}=await e.request({method:"txpool_status"});return{pending:(0,aF.hexToNumber)(t),queued:(0,aF.hexToNumber)(n)}}PC.getTxpoolStatus=tOe;var IC={};Object.defineProperty(IC,"__esModule",{value:!0});IC.impersonateAccount=void 0;async function nOe(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}IC.impersonateAccount=nOe;var OC={};Object.defineProperty(OC,"__esModule",{value:!0});OC.increaseTime=void 0;const rOe=$e();async function oOe(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[(0,rOe.numberToHex)(t)]})}OC.increaseTime=oOe;var RC={};Object.defineProperty(RC,"__esModule",{value:!0});RC.inspectTxpool=void 0;async function aOe(e){return await e.request({method:"txpool_inspect"})}RC.inspectTxpool=aOe;var NC={};Object.defineProperty(NC,"__esModule",{value:!0});NC.loadState=void 0;async function iOe(e,{state:t}){await e.request({method:`${e.mode}_loadState`,params:[t]})}NC.loadState=iOe;var BC={};Object.defineProperty(BC,"__esModule",{value:!0});BC.mine=void 0;const rT=$e();async function sOe(e,{blocks:t,interval:n}){e.mode==="ganache"?await e.request({method:"evm_mine",params:[{blocks:(0,rT.numberToHex)(t)}]}):await e.request({method:`${e.mode}_mine`,params:[(0,rT.numberToHex)(t),(0,rT.numberToHex)(n||0)]})}BC.mine=sOe;var FC={};Object.defineProperty(FC,"__esModule",{value:!0});FC.removeBlockTimestampInterval=void 0;async function cOe(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}FC.removeBlockTimestampInterval=cOe;var MC={};Object.defineProperty(MC,"__esModule",{value:!0});MC.reset=void 0;async function lOe(e,{blockNumber:t,jsonRpcUrl:n}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:n}}]})}MC.reset=lOe;var LC={};Object.defineProperty(LC,"__esModule",{value:!0});LC.revert=void 0;async function uOe(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}LC.revert=uOe;var UC={};Object.defineProperty(UC,"__esModule",{value:!0});UC.sendUnsignedTransaction=void 0;const dOe=Ol,fOe=Rl;async function hOe(e,t){var v,g,w;const{accessList:n,data:r,from:o,gas:a,gasPrice:i,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,to:u,value:d,...f}=t,h=(w=(g=(v=e.chain)==null?void 0:v.formatters)==null?void 0:g.transactionRequest)==null?void 0:w.format,p=(h||fOe.formatTransactionRequest)({...(0,dOe.extract)(f,{format:h}),accessList:n,data:r,from:o,gas:a,gasPrice:i,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,to:u,value:d});return await e.request({method:"eth_sendUnsignedTransaction",params:[p]})}UC.sendUnsignedTransaction=hOe;var $C={};Object.defineProperty($C,"__esModule",{value:!0});$C.setAutomine=void 0;async function mOe(e,t){e.mode==="ganache"?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}$C.setAutomine=mOe;var zC={};Object.defineProperty(zC,"__esModule",{value:!0});zC.setBalance=void 0;const iF=$e();async function pOe(e,{address:t,value:n}){e.mode==="ganache"?await e.request({method:"evm_setAccountBalance",params:[t,(0,iF.numberToHex)(n)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,(0,iF.numberToHex)(n)]})}zC.setBalance=pOe;var HC={};Object.defineProperty(HC,"__esModule",{value:!0});HC.setBlockGasLimit=void 0;const gOe=$e();async function yOe(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[(0,gOe.numberToHex)(t)]})}HC.setBlockGasLimit=yOe;var qC={};Object.defineProperty(qC,"__esModule",{value:!0});qC.setBlockTimestampInterval=void 0;async function bOe(e,{interval:t}){const n=e.mode==="hardhat"?t*1e3:t;await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[n]})}qC.setBlockTimestampInterval=bOe;var WC={};Object.defineProperty(WC,"__esModule",{value:!0});WC.setCode=void 0;async function vOe(e,{address:t,bytecode:n}){await e.request({method:`${e.mode}_setCode`,params:[t,n]})}WC.setCode=vOe;var GC={};Object.defineProperty(GC,"__esModule",{value:!0});GC.setCoinbase=void 0;async function wOe(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}GC.setCoinbase=wOe;var VC={};Object.defineProperty(VC,"__esModule",{value:!0});VC.setIntervalMining=void 0;async function EOe(e,{interval:t}){const n=e.mode==="hardhat"?t*1e3:t;await e.request({method:"evm_setIntervalMining",params:[n]})}VC.setIntervalMining=EOe;var KC={};Object.defineProperty(KC,"__esModule",{value:!0});KC.setLoggingEnabled=void 0;async function _Oe(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}KC.setLoggingEnabled=_Oe;var YC={};Object.defineProperty(YC,"__esModule",{value:!0});YC.setMinGasPrice=void 0;const xOe=$e();async function COe(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[(0,xOe.numberToHex)(t)]})}YC.setMinGasPrice=COe;var QC={};Object.defineProperty(QC,"__esModule",{value:!0});QC.setNextBlockBaseFeePerGas=void 0;const SOe=$e();async function TOe(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[(0,SOe.numberToHex)(t)]})}QC.setNextBlockBaseFeePerGas=TOe;var XC={};Object.defineProperty(XC,"__esModule",{value:!0});XC.setNextBlockTimestamp=void 0;const AOe=$e();async function DOe(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[(0,AOe.numberToHex)(t)]})}XC.setNextBlockTimestamp=DOe;var JC={};Object.defineProperty(JC,"__esModule",{value:!0});JC.setNonce=void 0;const kOe=$e();async function jOe(e,{address:t,nonce:n}){await e.request({method:`${e.mode}_setNonce`,params:[t,(0,kOe.numberToHex)(n)]})}JC.setNonce=jOe;var ZC={};Object.defineProperty(ZC,"__esModule",{value:!0});ZC.setRpcUrl=void 0;async function POe(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}ZC.setRpcUrl=POe;var e6={};Object.defineProperty(e6,"__esModule",{value:!0});e6.setStorageAt=void 0;const IOe=$e();async function OOe(e,{address:t,index:n,value:r}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,typeof n=="number"?(0,IOe.numberToHex)(n):n,r]})}e6.setStorageAt=OOe;var t6={};Object.defineProperty(t6,"__esModule",{value:!0});t6.snapshot=void 0;async function ROe(e){return await e.request({method:"evm_snapshot"})}t6.snapshot=ROe;var n6={};Object.defineProperty(n6,"__esModule",{value:!0});n6.stopImpersonatingAccount=void 0;async function NOe(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}n6.stopImpersonatingAccount=NOe;Object.defineProperty(gb,"__esModule",{value:!0});gb.testActions=void 0;const BOe=AC,FOe=DC,MOe=kC,LOe=jC,UOe=PC,$Oe=IC,zOe=OC,HOe=RC,qOe=NC,WOe=BC,GOe=FC,VOe=MC,KOe=LC,YOe=UC,QOe=$C,XOe=zC,JOe=HC,ZOe=qC,eRe=WC,tRe=GC,nRe=VC,rRe=KC,oRe=YC,aRe=QC,iRe=XC,sRe=JC,cRe=ZC,lRe=e6,uRe=t6,dRe=n6;function fRe({mode:e}){return t=>{const n=t.extend(()=>({mode:e}));return{dropTransaction:r=>(0,BOe.dropTransaction)(n,r),dumpState:()=>(0,FOe.dumpState)(n),getAutomine:()=>(0,MOe.getAutomine)(n),getTxpoolContent:()=>(0,LOe.getTxpoolContent)(n),getTxpoolStatus:()=>(0,UOe.getTxpoolStatus)(n),impersonateAccount:r=>(0,$Oe.impersonateAccount)(n,r),increaseTime:r=>(0,zOe.increaseTime)(n,r),inspectTxpool:()=>(0,HOe.inspectTxpool)(n),loadState:r=>(0,qOe.loadState)(n,r),mine:r=>(0,WOe.mine)(n,r),removeBlockTimestampInterval:()=>(0,GOe.removeBlockTimestampInterval)(n),reset:r=>(0,VOe.reset)(n,r),revert:r=>(0,KOe.revert)(n,r),sendUnsignedTransaction:r=>(0,YOe.sendUnsignedTransaction)(n,r),setAutomine:r=>(0,QOe.setAutomine)(n,r),setBalance:r=>(0,XOe.setBalance)(n,r),setBlockGasLimit:r=>(0,JOe.setBlockGasLimit)(n,r),setBlockTimestampInterval:r=>(0,ZOe.setBlockTimestampInterval)(n,r),setCode:r=>(0,eRe.setCode)(n,r),setCoinbase:r=>(0,tRe.setCoinbase)(n,r),setIntervalMining:r=>(0,nRe.setIntervalMining)(n,r),setLoggingEnabled:r=>(0,rRe.setLoggingEnabled)(n,r),setMinGasPrice:r=>(0,oRe.setMinGasPrice)(n,r),setNextBlockBaseFeePerGas:r=>(0,aRe.setNextBlockBaseFeePerGas)(n,r),setNextBlockTimestamp:r=>(0,iRe.setNextBlockTimestamp)(n,r),setNonce:r=>(0,sRe.setNonce)(n,r),setRpcUrl:r=>(0,cRe.setRpcUrl)(n,r),setStorageAt:r=>(0,lRe.setStorageAt)(n,r),snapshot:()=>(0,uRe.snapshot)(n),stopImpersonatingAccount:r=>(0,dRe.stopImpersonatingAccount)(n,r)}}}gb.testActions=fRe;Object.defineProperty(TC,"__esModule",{value:!0});TC.createTestClient=void 0;const hRe=Id,mRe=gb;function pRe(e){const{key:t="test",name:n="Test Client",mode:r}=e;return(0,hRe.createClient)({...e,key:t,name:n,type:"testClient"}).extend(a=>({mode:r,...(0,mRe.testActions)({mode:r})(a)}))}TC.createTestClient=pRe;var Mp={},r6={};Object.defineProperty(r6,"__esModule",{value:!0});r6.addChain=void 0;const gRe=$e();async function yRe(e,{chain:t}){const{id:n,name:r,nativeCurrency:o,rpcUrls:a,blockExplorers:i}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,gRe.numberToHex)(n),chainName:r,nativeCurrency:o,rpcUrls:a.default.http,blockExplorerUrls:i?Object.values(i).map(({url:s})=>s):void 0}]})}r6.addChain=yRe;var o6={};Object.defineProperty(o6,"__esModule",{value:!0});o6.deployContract=void 0;const bRe=Im,vRe=Tm;function wRe(e,{abi:t,args:n,bytecode:r,...o}){const a=(0,bRe.encodeDeployData)({abi:t,args:n,bytecode:r});return(0,vRe.sendTransaction)(e,{...o,data:a})}o6.deployContract=wRe;var a6={};Object.defineProperty(a6,"__esModule",{value:!0});a6.getAddresses=void 0;const ERe=xo;async function _Re(e){var n;return((n=e.account)==null?void 0:n.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"})).map(r=>(0,ERe.checksumAddress)(r))}a6.getAddresses=_Re;var i6={};Object.defineProperty(i6,"__esModule",{value:!0});i6.getPermissions=void 0;async function xRe(e){return await e.request({method:"wallet_getPermissions"})}i6.getPermissions=xRe;var s6={};Object.defineProperty(s6,"__esModule",{value:!0});s6.requestAddresses=void 0;const CRe=xo;async function SRe(e){return(await e.request({method:"eth_requestAccounts"})).map(n=>(0,CRe.getAddress)(n))}s6.requestAddresses=SRe;var c6={};Object.defineProperty(c6,"__esModule",{value:!0});c6.requestPermissions=void 0;async function TRe(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}c6.requestPermissions=TRe;var l6={};Object.defineProperty(l6,"__esModule",{value:!0});l6.signMessage=void 0;const ARe=Lr,DRe=Ks,sF=$e();async function kRe(e,{account:t=e.account,message:n}){if(!t)throw new DRe.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const r=(0,ARe.parseAccount)(t);if(r.type==="local")return r.signMessage({message:n});const o=typeof n=="string"?(0,sF.stringToHex)(n):n.raw instanceof Uint8Array?(0,sF.toHex)(n.raw):n.raw;return e.request({method:"personal_sign",params:[o,r.address]})}l6.signMessage=kRe;var Lp={},cF;function jRe(){if(cF)return Lp;cF=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.signTransaction=void 0;const e=Lr,t=Ks,n=jd,r=Rl,o=Bt,a=$m(),i=Gi,s=Pd;async function c(l,u){var g,w,_,C;const{account:d=l.account,chain:f=l.chain,...h}=u;if(!d)throw new t.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const m=(0,e.parseAccount)(d);(0,i.assertRequest)({account:m,...u});const p=await(0,o.getAction)(l,s.getChainId,"getChainId")({});f!==null&&(0,n.assertCurrentChain)({currentChainId:p,chain:f});const b=(f==null?void 0:f.formatters)||((g=l.chain)==null?void 0:g.formatters),v=((w=b==null?void 0:b.transactionRequest)==null?void 0:w.format)||r.formatTransactionRequest;return m.type==="local"?m.signTransaction({...h,chainId:p},{serializer:(C=(_=l.chain)==null?void 0:_.serializers)==null?void 0:C.transaction}):await l.request({method:"eth_signTransaction",params:[{...v(h),chainId:(0,a.numberToHex)(p),from:m.address}]})}return Lp.signTransaction=c,Lp}var u6={};Object.defineProperty(u6,"__esModule",{value:!0});u6.signTypedData=void 0;const PRe=Lr,IRe=Ks,ORe=qn,RRe=xr,lF=pC();async function NRe(e,{account:t=e.account,domain:n,message:r,primaryType:o,types:a}){if(!t)throw new IRe.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const i=(0,PRe.parseAccount)(t),s={EIP712Domain:(0,lF.getTypesForEIP712Domain)({domain:n}),...a};if((0,lF.validateTypedData)({domain:n,message:r,primaryType:o,types:s}),i.type==="local")return i.signTypedData({domain:n,primaryType:o,types:s,message:r});const c=(0,RRe.stringify)({domain:n??{},primaryType:o,types:s,message:r},(l,u)=>(0,ORe.isHex)(u)?u.toLowerCase():u);return e.request({method:"eth_signTypedData_v4",params:[i.address,c]})}u6.signTypedData=NRe;var d6={};Object.defineProperty(d6,"__esModule",{value:!0});d6.switchChain=void 0;const BRe=$e();async function FRe(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,BRe.numberToHex)(t)}]})}d6.switchChain=FRe;var f6={};Object.defineProperty(f6,"__esModule",{value:!0});f6.watchAsset=void 0;async function MRe(e,t){return await e.request({method:"wallet_watchAsset",params:t})}f6.watchAsset=MRe;var uF;function MJ(){if(uF)return Mp;uF=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.walletActions=void 0;const e=Pd,t=r6,n=o6,r=a6,o=i6,a=My(),i=s6,s=c6,c=Am,l=Tm,u=l6,d=jRe(),f=u6,h=d6,m=f6,p=qy;function b(v){return{addChain:g=>(0,t.addChain)(v,g),deployContract:g=>(0,n.deployContract)(v,g),getAddresses:()=>(0,r.getAddresses)(v),getChainId:()=>(0,e.getChainId)(v),getPermissions:()=>(0,o.getPermissions)(v),prepareTransactionRequest:g=>(0,a.prepareTransactionRequest)(v,g),requestAddresses:()=>(0,i.requestAddresses)(v),requestPermissions:g=>(0,s.requestPermissions)(v,g),sendRawTransaction:g=>(0,c.sendRawTransaction)(v,g),sendTransaction:g=>(0,l.sendTransaction)(v,g),signMessage:g=>(0,u.signMessage)(v,g),signTransaction:g=>(0,d.signTransaction)(v,g),signTypedData:g=>(0,f.signTypedData)(v,g),switchChain:g=>(0,h.switchChain)(v,g),watchAsset:g=>(0,m.watchAsset)(v,g),writeContract:g=>(0,p.writeContract)(v,g)}}return Mp.walletActions=b,Mp}var Up={},dF;function LRe(){if(dF)return Up;dF=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.createWalletClient=void 0;const e=Id,t=MJ();function n(r){const{key:o="wallet",name:a="Wallet Client",transport:i}=r;return(0,e.createClient)({...r,key:o,name:a,transport:c=>i({...c,retryCount:0}),type:"walletClient"}).extend(t.walletActions)}return Up.createWalletClient=n,Up}var h6={};Object.defineProperty(h6,"__esModule",{value:!0});h6.webSocket=void 0;const URe=hr,$Re=km,tf=Z2,zRe=Ml;function HRe(e,t={}){const{key:n="webSocket",name:r="WebSocket JSON-RPC",retryDelay:o}=t;return({chain:a,retryCount:i,timeout:s})=>{var d;const c=t.retryCount??i,l=s??t.timeout??1e4,u=e||((d=a==null?void 0:a.rpcUrls.default.webSocket)==null?void 0:d[0]);if(!u)throw new $Re.UrlRequiredError;return(0,zRe.createTransport)({key:n,name:r,async request({method:f,params:h}){const m={method:f,params:h},p=await(0,tf.getSocket)(u),{error:b,result:v}=await tf.rpc.webSocketAsync(p,{body:m,timeout:l});if(b)throw new URe.RpcRequestError({body:m,error:b,url:u});return v},retryCount:c,retryDelay:o,timeout:l,type:"webSocket"},{getSocket(){return(0,tf.getSocket)(u)},async subscribe({params:f,onData:h,onError:m}){const p=await(0,tf.getSocket)(u),{result:b}=await new Promise((v,g)=>tf.rpc.webSocket(p,{body:{method:"eth_subscribe",params:f},onResponse(w){if(w.error){g(w.error),m==null||m(w.error);return}if(typeof w.id=="number"){v(w);return}w.method==="eth_subscription"&&h(w.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(v=>tf.rpc.webSocket(p,{body:{method:"eth_unsubscribe",params:[b]},onResponse:v}))}}}})}}h6.webSocket=HRe;var m6={};Object.defineProperty(m6,"__esModule",{value:!0});m6.zeroAddress=void 0;m6.zeroAddress="0x0000000000000000000000000000000000000000";var q={};Object.defineProperty(q,"__esModule",{value:!0});q.minInt144=q.minInt136=q.minInt128=q.minInt120=q.minInt112=q.minInt104=q.minInt96=q.minInt88=q.minInt80=q.minInt72=q.minInt64=q.minInt56=q.minInt48=q.minInt40=q.minInt32=q.minInt24=q.minInt16=q.minInt8=q.maxInt256=q.maxInt248=q.maxInt240=q.maxInt232=q.maxInt224=q.maxInt216=q.maxInt208=q.maxInt200=q.maxInt192=q.maxInt184=q.maxInt176=q.maxInt168=q.maxInt160=q.maxInt152=q.maxInt144=q.maxInt136=q.maxInt128=q.maxInt120=q.maxInt112=q.maxInt104=q.maxInt96=q.maxInt88=q.maxInt80=q.maxInt72=q.maxInt64=q.maxInt56=q.maxInt48=q.maxInt40=q.maxInt32=q.maxInt24=q.maxInt16=q.maxInt8=void 0;q.maxUint256=q.maxUint248=q.maxUint240=q.maxUint232=q.maxUint224=q.maxUint216=q.maxUint208=q.maxUint200=q.maxUint192=q.maxUint184=q.maxUint176=q.maxUint168=q.maxUint160=q.maxUint152=q.maxUint144=q.maxUint136=q.maxUint128=q.maxUint120=q.maxUint112=q.maxUint104=q.maxUint96=q.maxUint88=q.maxUint80=q.maxUint72=q.maxUint64=q.maxUint56=q.maxUint48=q.maxUint40=q.maxUint32=q.maxUint24=q.maxUint16=q.maxUint8=q.minInt256=q.minInt248=q.minInt240=q.minInt232=q.minInt224=q.minInt216=q.minInt208=q.minInt200=q.minInt192=q.minInt184=q.minInt176=q.minInt168=q.minInt160=q.minInt152=void 0;q.maxInt8=2n**(8n-1n)-1n;q.maxInt16=2n**(16n-1n)-1n;q.maxInt24=2n**(24n-1n)-1n;q.maxInt32=2n**(32n-1n)-1n;q.maxInt40=2n**(40n-1n)-1n;q.maxInt48=2n**(48n-1n)-1n;q.maxInt56=2n**(56n-1n)-1n;q.maxInt64=2n**(64n-1n)-1n;q.maxInt72=2n**(72n-1n)-1n;q.maxInt80=2n**(80n-1n)-1n;q.maxInt88=2n**(88n-1n)-1n;q.maxInt96=2n**(96n-1n)-1n;q.maxInt104=2n**(104n-1n)-1n;q.maxInt112=2n**(112n-1n)-1n;q.maxInt120=2n**(120n-1n)-1n;q.maxInt128=2n**(128n-1n)-1n;q.maxInt136=2n**(136n-1n)-1n;q.maxInt144=2n**(144n-1n)-1n;q.maxInt152=2n**(152n-1n)-1n;q.maxInt160=2n**(160n-1n)-1n;q.maxInt168=2n**(168n-1n)-1n;q.maxInt176=2n**(176n-1n)-1n;q.maxInt184=2n**(184n-1n)-1n;q.maxInt192=2n**(192n-1n)-1n;q.maxInt200=2n**(200n-1n)-1n;q.maxInt208=2n**(208n-1n)-1n;q.maxInt216=2n**(216n-1n)-1n;q.maxInt224=2n**(224n-1n)-1n;q.maxInt232=2n**(232n-1n)-1n;q.maxInt240=2n**(240n-1n)-1n;q.maxInt248=2n**(248n-1n)-1n;q.maxInt256=2n**(256n-1n)-1n;q.minInt8=-(2n**(8n-1n));q.minInt16=-(2n**(16n-1n));q.minInt24=-(2n**(24n-1n));q.minInt32=-(2n**(32n-1n));q.minInt40=-(2n**(40n-1n));q.minInt48=-(2n**(48n-1n));q.minInt56=-(2n**(56n-1n));q.minInt64=-(2n**(64n-1n));q.minInt72=-(2n**(72n-1n));q.minInt80=-(2n**(80n-1n));q.minInt88=-(2n**(88n-1n));q.minInt96=-(2n**(96n-1n));q.minInt104=-(2n**(104n-1n));q.minInt112=-(2n**(112n-1n));q.minInt120=-(2n**(120n-1n));q.minInt128=-(2n**(128n-1n));q.minInt136=-(2n**(136n-1n));q.minInt144=-(2n**(144n-1n));q.minInt152=-(2n**(152n-1n));q.minInt160=-(2n**(160n-1n));q.minInt168=-(2n**(168n-1n));q.minInt176=-(2n**(176n-1n));q.minInt184=-(2n**(184n-1n));q.minInt192=-(2n**(192n-1n));q.minInt200=-(2n**(200n-1n));q.minInt208=-(2n**(208n-1n));q.minInt216=-(2n**(216n-1n));q.minInt224=-(2n**(224n-1n));q.minInt232=-(2n**(232n-1n));q.minInt240=-(2n**(240n-1n));q.minInt248=-(2n**(248n-1n));q.minInt256=-(2n**(256n-1n));q.maxUint8=2n**8n-1n;q.maxUint16=2n**16n-1n;q.maxUint24=2n**24n-1n;q.maxUint32=2n**32n-1n;q.maxUint40=2n**40n-1n;q.maxUint48=2n**48n-1n;q.maxUint56=2n**56n-1n;q.maxUint64=2n**64n-1n;q.maxUint72=2n**72n-1n;q.maxUint80=2n**80n-1n;q.maxUint88=2n**88n-1n;q.maxUint96=2n**96n-1n;q.maxUint104=2n**104n-1n;q.maxUint112=2n**112n-1n;q.maxUint120=2n**120n-1n;q.maxUint128=2n**128n-1n;q.maxUint136=2n**136n-1n;q.maxUint144=2n**144n-1n;q.maxUint152=2n**152n-1n;q.maxUint160=2n**160n-1n;q.maxUint168=2n**168n-1n;q.maxUint176=2n**176n-1n;q.maxUint184=2n**184n-1n;q.maxUint192=2n**192n-1n;q.maxUint200=2n**200n-1n;q.maxUint208=2n**208n-1n;q.maxUint216=2n**216n-1n;q.maxUint224=2n**224n-1n;q.maxUint232=2n**232n-1n;q.maxUint240=2n**240n-1n;q.maxUint248=2n**248n-1n;q.maxUint256=2n**256n-1n;var p6={};Object.defineProperty(p6,"__esModule",{value:!0});p6.zeroHash=void 0;p6.zeroHash="0x0000000000000000000000000000000000000000000000000000000000000000";var g6={};Object.defineProperty(g6,"__esModule",{value:!0});g6.decodeDeployData=void 0;const oT=Jt(),qRe=Hi,aT="/docs/contract/decodeDeployData";function WRe({abi:e,bytecode:t,data:n}){if(n===t)return{bytecode:t};const r=e.find(a=>"type"in a&&a.type==="constructor");if(!r)throw new oT.AbiConstructorNotFoundError({docsPath:aT});if(!("inputs"in r))throw new oT.AbiConstructorParamsNotFoundError({docsPath:aT});if(!r.inputs||r.inputs.length===0)throw new oT.AbiConstructorParamsNotFoundError({docsPath:aT});return{args:(0,qRe.decodeAbiParameters)(r.inputs,`0x${n.replace(t,"")}`),bytecode:t}}g6.decodeDeployData=WRe;var y6={};Object.defineProperty(y6,"__esModule",{value:!0});y6.compactSignatureToSignature=void 0;const GRe=Gn(),VRe=$e();function KRe({r:e,yParityAndS:t}){const n=(0,GRe.hexToBytes)(t),r=n[0]&128?28n:27n,o=n;return r===28n&&(o[0]&=127),{r:e,s:(0,VRe.bytesToHex)(o),v:r}}y6.compactSignatureToSignature=KRe;var b6={};Object.defineProperty(b6,"__esModule",{value:!0});b6.hexToCompactSignature=void 0;const YRe=cb,fF=$e();function QRe(e){const{r:t,s:n}=YRe.secp256k1.Signature.fromCompact(e.slice(2,130));return{r:(0,fF.numberToHex)(t,{size:32}),yParityAndS:(0,fF.numberToHex)(n,{size:32})}}b6.hexToCompactSignature=QRe;var v6={};Object.defineProperty(v6,"__esModule",{value:!0});v6.hexToSignature=void 0;const XRe=cb,hF=$e();function JRe(e){const{r:t,s:n}=XRe.secp256k1.Signature.fromCompact(e.slice(2,130)),r=BigInt(`0x${e.slice(130)}`);return{r:(0,hF.numberToHex)(t,{size:32}),s:(0,hF.numberToHex)(n,{size:32}),v:r}}v6.hexToSignature=JRe;var $p={},mF;function ZRe(){if(mF)return $p;mF=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.signatureToCompactSignature=void 0;const e=$m();function t(n){const{r,s:o,v:a}=n,i=a-27n;let s=o;if(i===1n){const c=(0,e.hexToBytes)(o);c[0]|=128,s=(0,e.bytesToHex)(c)}return{r,yParityAndS:s}}return $p.signatureToCompactSignature=t,$p}var w6={};Object.defineProperty(w6,"__esModule",{value:!0});w6.compactSignatureToHex=void 0;const eNe=cb,pF=Wn();function tNe({r:e,yParityAndS:t}){return`0x${new eNe.secp256k1.Signature((0,pF.hexToBigInt)(e),(0,pF.hexToBigInt)(t)).toCompactHex()}`}w6.compactSignatureToHex=tNe;var E6={};Object.defineProperty(E6,"__esModule",{value:!0});E6.signatureToHex=void 0;const nNe=cb,gF=Wn(),rNe=$e();function oNe({r:e,s:t,v:n}){return`0x${new nNe.secp256k1.Signature((0,gF.hexToBigInt)(e),(0,gF.hexToBigInt)(t)).toCompactHex()}${(0,rNe.toHex)(n).slice(2)}`}E6.signatureToHex=oNe;var yF;function LJ(){return yF||(yF=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.maxInt112=e.maxInt104=e.maxInt96=e.maxInt88=e.maxInt80=e.maxInt72=e.maxInt64=e.maxInt56=e.maxInt48=e.maxInt40=e.maxInt32=e.maxInt24=e.maxInt16=e.maxInt8=e.weiUnits=e.gweiUnits=e.etherUnits=e.zeroAddress=e.multicall3Abi=e.webSocket=e.createWalletClient=e.createTransport=e.walletActions=e.testActions=e.publicActions=e.createTestClient=e.createPublicClient=e.http=e.fallback=e.custom=e.createClient=e.getContract=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.UnknownSignatureError=e.UnknownTypeError=e.SolidityProtectedKeywordError=e.InvalidStructSignatureError=e.InvalidSignatureError=e.InvalidParenthesisError=e.InvalidParameterError=e.InvalidModifierError=e.InvalidFunctionModifierError=e.InvalidAbiTypeParameterError=e.InvalidAbiItemError=e.InvalidAbiParametersError=e.InvalidAbiParameterError=e.CircularReferenceError=void 0,e.maxUint256=e.maxUint248=e.maxUint240=e.maxUint232=e.maxUint224=e.maxUint216=e.maxUint208=e.maxUint200=e.maxUint192=e.maxUint184=e.maxUint176=e.maxUint168=e.maxUint160=e.maxUint152=e.maxUint144=e.maxUint136=e.maxUint128=e.maxUint120=e.maxUint112=e.maxUint104=e.maxUint96=e.maxUint88=e.maxUint80=e.maxUint72=e.maxUint64=e.maxUint56=e.maxUint48=e.maxUint40=e.maxUint32=e.maxUint24=e.maxUint16=e.maxUint8=e.maxInt256=e.maxInt248=e.maxInt240=e.maxInt232=e.maxInt224=e.maxInt216=e.maxInt208=e.maxInt200=e.maxInt192=e.maxInt184=e.maxInt176=e.maxInt168=e.maxInt160=e.maxInt152=e.maxInt144=e.maxInt136=e.maxInt128=e.maxInt120=void 0,e.AbiFunctionOutputsNotFoundError=e.AbiFunctionNotFoundError=e.AbiEventSignatureNotFoundError=e.AbiEventSignatureEmptyTopicsError=e.AbiEventNotFoundError=e.AbiErrorSignatureNotFoundError=e.AbiErrorNotFoundError=e.AbiErrorInputsNotFoundError=e.AbiEncodingBytesSizeMismatchError=e.AbiEncodingLengthMismatchError=e.AbiEncodingArrayLengthMismatchError=e.AbiDecodingZeroDataError=e.AbiDecodingDataSizeTooSmallError=e.AbiDecodingDataSizeInvalidError=e.AbiConstructorParamsNotFoundError=e.AbiConstructorNotFoundError=e.presignMessagePrefix=e.zeroHash=e.minInt256=e.minInt248=e.minInt240=e.minInt232=e.minInt224=e.minInt216=e.minInt208=e.minInt200=e.minInt192=e.minInt184=e.minInt176=e.minInt168=e.minInt160=e.minInt152=e.minInt144=e.minInt136=e.minInt128=e.minInt120=e.minInt112=e.minInt104=e.minInt96=e.minInt88=e.minInt80=e.minInt72=e.minInt64=e.minInt56=e.minInt48=e.minInt40=e.minInt32=e.minInt24=e.minInt16=e.minInt8=void 0,e.InvalidHexBooleanError=e.IntegerOutOfRangeError=e.InvalidBytesBooleanError=e.DataLengthTooShortError=e.DataLengthTooLongError=e.InvalidChainIdError=e.ClientChainNotConfiguredError=e.ChainNotFoundError=e.ChainMismatchError=e.ChainDoesNotSupportContract=e.UserRejectedRequestError=e.UnsupportedProviderMethodError=e.UnknownRpcError=e.UnauthorizedProviderError=e.TransactionRejectedRpcError=e.SwitchChainError=e.RpcError=e.ResourceUnavailableRpcError=e.ResourceNotFoundRpcError=e.ProviderRpcError=e.ProviderDisconnectedError=e.ParseRpcError=e.MethodNotSupportedRpcError=e.MethodNotFoundRpcError=e.LimitExceededRpcError=e.JsonRpcVersionUnsupportedError=e.InvalidRequestRpcError=e.InvalidParamsRpcError=e.InvalidInputRpcError=e.InternalRpcError=e.ChainDisconnectedError=e.MaxFeePerGasTooLowError=e.Eip1559FeesNotSupportedError=e.BaseFeeScalarError=e.RawContractError=e.ContractFunctionZeroDataError=e.ContractFunctionRevertedError=e.ContractFunctionExecutionError=e.CallExecutionError=e.BlockNotFoundError=e.BaseError=e.UnsupportedPackedAbiType=e.InvalidDefinitionTypeError=e.InvalidArrayError=e.InvalidAbiEncodingTypeError=e.InvalidAbiDecodingTypeError=e.DecodeLogTopicsMismatch=e.DecodeLogDataMismatch=e.BytesSizeMismatchError=e.AbiFunctionSignatureNotFoundError=void 0,e.encodeAbiParameters=e.decodeFunctionResult=e.decodeFunctionData=e.decodeEventLog=e.decodeErrorResult=e.decodeDeployData=e.decodeAbiParameters=e.formatLog=e.formatBlock=e.defineBlock=e.namehash=e.labelhash=e.UrlRequiredError=e.SliceOffsetOutOfBoundsError=e.SizeExceedsPaddingSizeError=e.WaitForTransactionReceiptTimeoutError=e.TransactionReceiptNotFoundError=e.TransactionNotFoundError=e.TransactionExecutionError=e.InvalidStorageKeySizeError=e.InvalidSerializedTransactionTypeError=e.InvalidSerializedTransactionError=e.InvalidSerializableTransactionError=e.InvalidLegacyVError=e.FeeConflictError=e.InvalidAddressError=e.WebSocketRequestError=e.TimeoutError=e.RpcRequestError=e.HttpRequestError=e.FilterTypeNotSupportedError=e.UnknownNodeError=e.TransactionTypeNotSupportedError=e.TipAboveFeeCapError=e.NonceTooLowError=e.NonceTooHighError=e.NonceMaxValueError=e.IntrinsicGasTooLowError=e.IntrinsicGasTooHighError=e.InsufficientFundsError=e.FeeCapTooLowError=e.FeeCapTooHighError=e.ExecutionRevertedError=e.EstimateGasExecutionError=e.EnsAvatarUnsupportedNamespaceError=e.EnsAvatarInvalidNftUriError=e.EnsAvatarUriResolutionError=e.SizeOverflowError=e.OffsetOutOfBoundsError=e.InvalidHexValueError=void 0,e.toHex=e.stringToHex=e.numberToHex=e.bytesToHex=e.boolToHex=e.toBytes=e.stringToBytes=e.numberToBytes=e.hexToBytes=e.boolToBytes=e.assertTransactionLegacy=e.assertTransactionEIP2930=e.assertTransactionEIP1559=e.assertRequest=e.verifyTypedData=e.verifyMessage=e.toRlp=e.hexToRlp=e.bytesToRlp=e.signatureToHex=e.compactSignatureToHex=e.signatureToCompactSignature=e.recoverTypedDataAddress=e.recoverPublicKey=e.recoverMessageAddress=e.recoverAddress=e.hexToSignature=e.hexToCompactSignature=e.compactSignatureToSignature=e.hashTypedData=e.hashDomain=e.getTransactionType=e.getSerializedTransactionType=e.getCreateAddress=e.getCreate2Address=e.getContractAddress=e.getAbiItem=e.rpcTransactionType=e.formatTransactionRequest=e.defineTransactionRequest=e.formatTransactionReceipt=e.defineTransactionReceipt=e.transactionType=e.formatTransaction=e.defineTransaction=e.encodeFunctionResult=e.encodeFunctionData=e.encodeEventTopics=e.encodeErrorResult=e.encodeDeployData=void 0,e.parseUnits=e.parseTransaction=e.parseGwei=e.parseEther=e.padHex=e.padBytes=e.pad=e.ripemd160=e.sha256=e.keccak256=e.isHex=e.isHash=e.isBytes=e.isAddressEqual=e.isAddress=e.hashMessage=e.getFunctionSignature=e.getFunctionSelector=e.getEventSignature=e.getEventSelector=e.getContractError=e.getAddress=e.checksumAddress=e.fromRlp=e.hexToString=e.hexToNumber=e.hexToBool=e.hexToBigInt=e.fromHex=e.formatUnits=e.formatGwei=e.formatEther=e.encodePacked=e.getChainContractAddress=e.extractChain=e.defineChain=e.assertCurrentChain=e.concatHex=e.concatBytes=e.concat=e.offchainLookupSignature=e.offchainLookupAbiItem=e.offchainLookup=e.ccipFetch=e.fromBytes=e.bytesToString=e.bytesToNumber=e.bytesToBool=e.bytesToBigint=e.bytesToBigInt=void 0,e.getTypesForEIP712Domain=e.domainSeparator=e.validateTypedData=e.trim=e.stringify=e.sliceHex=e.sliceBytes=e.slice=e.size=e.serializeTransaction=e.serializeAccessList=void 0;var t=V4;Object.defineProperty(e,"CircularReferenceError",{enumerable:!0,get:function(){return t.CircularReferenceError}}),Object.defineProperty(e,"InvalidAbiParameterError",{enumerable:!0,get:function(){return t.InvalidAbiParameterError}}),Object.defineProperty(e,"InvalidAbiParametersError",{enumerable:!0,get:function(){return t.InvalidAbiParametersError}}),Object.defineProperty(e,"InvalidAbiItemError",{enumerable:!0,get:function(){return t.InvalidAbiItemError}}),Object.defineProperty(e,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return t.InvalidAbiTypeParameterError}}),Object.defineProperty(e,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return t.InvalidFunctionModifierError}}),Object.defineProperty(e,"InvalidModifierError",{enumerable:!0,get:function(){return t.InvalidModifierError}}),Object.defineProperty(e,"InvalidParameterError",{enumerable:!0,get:function(){return t.InvalidParameterError}}),Object.defineProperty(e,"InvalidParenthesisError",{enumerable:!0,get:function(){return t.InvalidParenthesisError}}),Object.defineProperty(e,"InvalidSignatureError",{enumerable:!0,get:function(){return t.InvalidSignatureError}}),Object.defineProperty(e,"InvalidStructSignatureError",{enumerable:!0,get:function(){return t.InvalidStructSignatureError}}),Object.defineProperty(e,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return t.SolidityProtectedKeywordError}}),Object.defineProperty(e,"UnknownTypeError",{enumerable:!0,get:function(){return t.UnknownTypeError}}),Object.defineProperty(e,"UnknownSignatureError",{enumerable:!0,get:function(){return t.UnknownSignatureError}}),Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return t.parseAbi}}),Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return t.parseAbiItem}}),Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return t.parseAbiParameter}}),Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return t.parseAbiParameters}});var n=Kc;Object.defineProperty(e,"getContract",{enumerable:!0,get:function(){return n.getContract}});var r=Id;Object.defineProperty(e,"createClient",{enumerable:!0,get:function(){return r.createClient}});var o=Q2;Object.defineProperty(e,"custom",{enumerable:!0,get:function(){return o.custom}});var a=Ih;Object.defineProperty(e,"fallback",{enumerable:!0,get:function(){return a.fallback}});var i=J2;Object.defineProperty(e,"http",{enumerable:!0,get:function(){return i.http}});var s=QIe();Object.defineProperty(e,"createPublicClient",{enumerable:!0,get:function(){return s.createPublicClient}});var c=TC;Object.defineProperty(e,"createTestClient",{enumerable:!0,get:function(){return c.createTestClient}});var l=FJ();Object.defineProperty(e,"publicActions",{enumerable:!0,get:function(){return l.publicActions}});var u=gb;Object.defineProperty(e,"testActions",{enumerable:!0,get:function(){return u.testActions}});var d=MJ();Object.defineProperty(e,"walletActions",{enumerable:!0,get:function(){return d.walletActions}});var f=Ml;Object.defineProperty(e,"createTransport",{enumerable:!0,get:function(){return f.createTransport}});var h=LRe();Object.defineProperty(e,"createWalletClient",{enumerable:!0,get:function(){return h.createWalletClient}});var m=h6;Object.defineProperty(e,"webSocket",{enumerable:!0,get:function(){return m.webSocket}});var p=mn;Object.defineProperty(e,"multicall3Abi",{enumerable:!0,get:function(){return p.multicall3Abi}});var b=m6;Object.defineProperty(e,"zeroAddress",{enumerable:!0,get:function(){return b.zeroAddress}});var v=ya;Object.defineProperty(e,"etherUnits",{enumerable:!0,get:function(){return v.etherUnits}}),Object.defineProperty(e,"gweiUnits",{enumerable:!0,get:function(){return v.gweiUnits}}),Object.defineProperty(e,"weiUnits",{enumerable:!0,get:function(){return v.weiUnits}});var g=q;Object.defineProperty(e,"maxInt8",{enumerable:!0,get:function(){return g.maxInt8}}),Object.defineProperty(e,"maxInt16",{enumerable:!0,get:function(){return g.maxInt16}}),Object.defineProperty(e,"maxInt24",{enumerable:!0,get:function(){return g.maxInt24}}),Object.defineProperty(e,"maxInt32",{enumerable:!0,get:function(){return g.maxInt32}}),Object.defineProperty(e,"maxInt40",{enumerable:!0,get:function(){return g.maxInt40}}),Object.defineProperty(e,"maxInt48",{enumerable:!0,get:function(){return g.maxInt48}}),Object.defineProperty(e,"maxInt56",{enumerable:!0,get:function(){return g.maxInt56}}),Object.defineProperty(e,"maxInt64",{enumerable:!0,get:function(){return g.maxInt64}}),Object.defineProperty(e,"maxInt72",{enumerable:!0,get:function(){return g.maxInt72}}),Object.defineProperty(e,"maxInt80",{enumerable:!0,get:function(){return g.maxInt80}}),Object.defineProperty(e,"maxInt88",{enumerable:!0,get:function(){return g.maxInt88}}),Object.defineProperty(e,"maxInt96",{enumerable:!0,get:function(){return g.maxInt96}}),Object.defineProperty(e,"maxInt104",{enumerable:!0,get:function(){return g.maxInt104}}),Object.defineProperty(e,"maxInt112",{enumerable:!0,get:function(){return g.maxInt112}}),Object.defineProperty(e,"maxInt120",{enumerable:!0,get:function(){return g.maxInt120}}),Object.defineProperty(e,"maxInt128",{enumerable:!0,get:function(){return g.maxInt128}}),Object.defineProperty(e,"maxInt136",{enumerable:!0,get:function(){return g.maxInt136}}),Object.defineProperty(e,"maxInt144",{enumerable:!0,get:function(){return g.maxInt144}}),Object.defineProperty(e,"maxInt152",{enumerable:!0,get:function(){return g.maxInt152}}),Object.defineProperty(e,"maxInt160",{enumerable:!0,get:function(){return g.maxInt160}}),Object.defineProperty(e,"maxInt168",{enumerable:!0,get:function(){return g.maxInt168}}),Object.defineProperty(e,"maxInt176",{enumerable:!0,get:function(){return g.maxInt176}}),Object.defineProperty(e,"maxInt184",{enumerable:!0,get:function(){return g.maxInt184}}),Object.defineProperty(e,"maxInt192",{enumerable:!0,get:function(){return g.maxInt192}}),Object.defineProperty(e,"maxInt200",{enumerable:!0,get:function(){return g.maxInt200}}),Object.defineProperty(e,"maxInt208",{enumerable:!0,get:function(){return g.maxInt208}}),Object.defineProperty(e,"maxInt216",{enumerable:!0,get:function(){return g.maxInt216}}),Object.defineProperty(e,"maxInt224",{enumerable:!0,get:function(){return g.maxInt224}}),Object.defineProperty(e,"maxInt232",{enumerable:!0,get:function(){return g.maxInt232}}),Object.defineProperty(e,"maxInt240",{enumerable:!0,get:function(){return g.maxInt240}}),Object.defineProperty(e,"maxInt248",{enumerable:!0,get:function(){return g.maxInt248}}),Object.defineProperty(e,"maxInt256",{enumerable:!0,get:function(){return g.maxInt256}}),Object.defineProperty(e,"maxUint8",{enumerable:!0,get:function(){return g.maxUint8}}),Object.defineProperty(e,"maxUint16",{enumerable:!0,get:function(){return g.maxUint16}}),Object.defineProperty(e,"maxUint24",{enumerable:!0,get:function(){return g.maxUint24}}),Object.defineProperty(e,"maxUint32",{enumerable:!0,get:function(){return g.maxUint32}}),Object.defineProperty(e,"maxUint40",{enumerable:!0,get:function(){return g.maxUint40}}),Object.defineProperty(e,"maxUint48",{enumerable:!0,get:function(){return g.maxUint48}}),Object.defineProperty(e,"maxUint56",{enumerable:!0,get:function(){return g.maxUint56}}),Object.defineProperty(e,"maxUint64",{enumerable:!0,get:function(){return g.maxUint64}}),Object.defineProperty(e,"maxUint72",{enumerable:!0,get:function(){return g.maxUint72}}),Object.defineProperty(e,"maxUint80",{enumerable:!0,get:function(){return g.maxUint80}}),Object.defineProperty(e,"maxUint88",{enumerable:!0,get:function(){return g.maxUint88}}),Object.defineProperty(e,"maxUint96",{enumerable:!0,get:function(){return g.maxUint96}}),Object.defineProperty(e,"maxUint104",{enumerable:!0,get:function(){return g.maxUint104}}),Object.defineProperty(e,"maxUint112",{enumerable:!0,get:function(){return g.maxUint112}}),Object.defineProperty(e,"maxUint120",{enumerable:!0,get:function(){return g.maxUint120}}),Object.defineProperty(e,"maxUint128",{enumerable:!0,get:function(){return g.maxUint128}}),Object.defineProperty(e,"maxUint136",{enumerable:!0,get:function(){return g.maxUint136}}),Object.defineProperty(e,"maxUint144",{enumerable:!0,get:function(){return g.maxUint144}}),Object.defineProperty(e,"maxUint152",{enumerable:!0,get:function(){return g.maxUint152}}),Object.defineProperty(e,"maxUint160",{enumerable:!0,get:function(){return g.maxUint160}}),Object.defineProperty(e,"maxUint168",{enumerable:!0,get:function(){return g.maxUint168}}),Object.defineProperty(e,"maxUint176",{enumerable:!0,get:function(){return g.maxUint176}}),Object.defineProperty(e,"maxUint184",{enumerable:!0,get:function(){return g.maxUint184}}),Object.defineProperty(e,"maxUint192",{enumerable:!0,get:function(){return g.maxUint192}}),Object.defineProperty(e,"maxUint200",{enumerable:!0,get:function(){return g.maxUint200}}),Object.defineProperty(e,"maxUint208",{enumerable:!0,get:function(){return g.maxUint208}}),Object.defineProperty(e,"maxUint216",{enumerable:!0,get:function(){return g.maxUint216}}),Object.defineProperty(e,"maxUint224",{enumerable:!0,get:function(){return g.maxUint224}}),Object.defineProperty(e,"maxUint232",{enumerable:!0,get:function(){return g.maxUint232}}),Object.defineProperty(e,"maxUint240",{enumerable:!0,get:function(){return g.maxUint240}}),Object.defineProperty(e,"maxUint248",{enumerable:!0,get:function(){return g.maxUint248}}),Object.defineProperty(e,"maxUint256",{enumerable:!0,get:function(){return g.maxUint256}}),Object.defineProperty(e,"minInt8",{enumerable:!0,get:function(){return g.minInt8}}),Object.defineProperty(e,"minInt16",{enumerable:!0,get:function(){return g.minInt16}}),Object.defineProperty(e,"minInt24",{enumerable:!0,get:function(){return g.minInt24}}),Object.defineProperty(e,"minInt32",{enumerable:!0,get:function(){return g.minInt32}}),Object.defineProperty(e,"minInt40",{enumerable:!0,get:function(){return g.minInt40}}),Object.defineProperty(e,"minInt48",{enumerable:!0,get:function(){return g.minInt48}}),Object.defineProperty(e,"minInt56",{enumerable:!0,get:function(){return g.minInt56}}),Object.defineProperty(e,"minInt64",{enumerable:!0,get:function(){return g.minInt64}}),Object.defineProperty(e,"minInt72",{enumerable:!0,get:function(){return g.minInt72}}),Object.defineProperty(e,"minInt80",{enumerable:!0,get:function(){return g.minInt80}}),Object.defineProperty(e,"minInt88",{enumerable:!0,get:function(){return g.minInt88}}),Object.defineProperty(e,"minInt96",{enumerable:!0,get:function(){return g.minInt96}}),Object.defineProperty(e,"minInt104",{enumerable:!0,get:function(){return g.minInt104}}),Object.defineProperty(e,"minInt112",{enumerable:!0,get:function(){return g.minInt112}}),Object.defineProperty(e,"minInt120",{enumerable:!0,get:function(){return g.minInt120}}),Object.defineProperty(e,"minInt128",{enumerable:!0,get:function(){return g.minInt128}}),Object.defineProperty(e,"minInt136",{enumerable:!0,get:function(){return g.minInt136}}),Object.defineProperty(e,"minInt144",{enumerable:!0,get:function(){return g.minInt144}}),Object.defineProperty(e,"minInt152",{enumerable:!0,get:function(){return g.minInt152}}),Object.defineProperty(e,"minInt160",{enumerable:!0,get:function(){return g.minInt160}}),Object.defineProperty(e,"minInt168",{enumerable:!0,get:function(){return g.minInt168}}),Object.defineProperty(e,"minInt176",{enumerable:!0,get:function(){return g.minInt176}}),Object.defineProperty(e,"minInt184",{enumerable:!0,get:function(){return g.minInt184}}),Object.defineProperty(e,"minInt192",{enumerable:!0,get:function(){return g.minInt192}}),Object.defineProperty(e,"minInt200",{enumerable:!0,get:function(){return g.minInt200}}),Object.defineProperty(e,"minInt208",{enumerable:!0,get:function(){return g.minInt208}}),Object.defineProperty(e,"minInt216",{enumerable:!0,get:function(){return g.minInt216}}),Object.defineProperty(e,"minInt224",{enumerable:!0,get:function(){return g.minInt224}}),Object.defineProperty(e,"minInt232",{enumerable:!0,get:function(){return g.minInt232}}),Object.defineProperty(e,"minInt240",{enumerable:!0,get:function(){return g.minInt240}}),Object.defineProperty(e,"minInt248",{enumerable:!0,get:function(){return g.minInt248}}),Object.defineProperty(e,"minInt256",{enumerable:!0,get:function(){return g.minInt256}});var w=p6;Object.defineProperty(e,"zeroHash",{enumerable:!0,get:function(){return w.zeroHash}});var _=lb;Object.defineProperty(e,"presignMessagePrefix",{enumerable:!0,get:function(){return _.presignMessagePrefix}});var C=Jt();Object.defineProperty(e,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return C.AbiConstructorNotFoundError}}),Object.defineProperty(e,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return C.AbiConstructorParamsNotFoundError}}),Object.defineProperty(e,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return C.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(e,"AbiDecodingDataSizeTooSmallError",{enumerable:!0,get:function(){return C.AbiDecodingDataSizeTooSmallError}}),Object.defineProperty(e,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return C.AbiDecodingZeroDataError}}),Object.defineProperty(e,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return C.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(e,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return C.AbiEncodingLengthMismatchError}}),Object.defineProperty(e,"AbiEncodingBytesSizeMismatchError",{enumerable:!0,get:function(){return C.AbiEncodingBytesSizeMismatchError}}),Object.defineProperty(e,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return C.AbiErrorInputsNotFoundError}}),Object.defineProperty(e,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return C.AbiErrorNotFoundError}}),Object.defineProperty(e,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return C.AbiErrorSignatureNotFoundError}}),Object.defineProperty(e,"AbiEventNotFoundError",{enumerable:!0,get:function(){return C.AbiEventNotFoundError}}),Object.defineProperty(e,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return C.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(e,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return C.AbiEventSignatureNotFoundError}}),Object.defineProperty(e,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return C.AbiFunctionNotFoundError}}),Object.defineProperty(e,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return C.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(e,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return C.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(e,"BytesSizeMismatchError",{enumerable:!0,get:function(){return C.BytesSizeMismatchError}}),Object.defineProperty(e,"DecodeLogDataMismatch",{enumerable:!0,get:function(){return C.DecodeLogDataMismatch}}),Object.defineProperty(e,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return C.DecodeLogTopicsMismatch}}),Object.defineProperty(e,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return C.InvalidAbiDecodingTypeError}}),Object.defineProperty(e,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return C.InvalidAbiEncodingTypeError}}),Object.defineProperty(e,"InvalidArrayError",{enumerable:!0,get:function(){return C.InvalidArrayError}}),Object.defineProperty(e,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return C.InvalidDefinitionTypeError}}),Object.defineProperty(e,"UnsupportedPackedAbiType",{enumerable:!0,get:function(){return C.UnsupportedPackedAbiType}});var x=xt;Object.defineProperty(e,"BaseError",{enumerable:!0,get:function(){return x.BaseError}});var E=vm;Object.defineProperty(e,"BlockNotFoundError",{enumerable:!0,get:function(){return E.BlockNotFoundError}});var T=Zn;Object.defineProperty(e,"CallExecutionError",{enumerable:!0,get:function(){return T.CallExecutionError}}),Object.defineProperty(e,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return T.ContractFunctionExecutionError}}),Object.defineProperty(e,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return T.ContractFunctionRevertedError}}),Object.defineProperty(e,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return T.ContractFunctionZeroDataError}}),Object.defineProperty(e,"RawContractError",{enumerable:!0,get:function(){return T.RawContractError}});var k=ti;Object.defineProperty(e,"BaseFeeScalarError",{enumerable:!0,get:function(){return k.BaseFeeScalarError}}),Object.defineProperty(e,"Eip1559FeesNotSupportedError",{enumerable:!0,get:function(){return k.Eip1559FeesNotSupportedError}}),Object.defineProperty(e,"MaxFeePerGasTooLowError",{enumerable:!0,get:function(){return k.MaxFeePerGasTooLowError}});var D=qe;Object.defineProperty(e,"ChainDisconnectedError",{enumerable:!0,get:function(){return D.ChainDisconnectedError}}),Object.defineProperty(e,"InternalRpcError",{enumerable:!0,get:function(){return D.InternalRpcError}}),Object.defineProperty(e,"InvalidInputRpcError",{enumerable:!0,get:function(){return D.InvalidInputRpcError}}),Object.defineProperty(e,"InvalidParamsRpcError",{enumerable:!0,get:function(){return D.InvalidParamsRpcError}}),Object.defineProperty(e,"InvalidRequestRpcError",{enumerable:!0,get:function(){return D.InvalidRequestRpcError}}),Object.defineProperty(e,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return D.JsonRpcVersionUnsupportedError}}),Object.defineProperty(e,"LimitExceededRpcError",{enumerable:!0,get:function(){return D.LimitExceededRpcError}}),Object.defineProperty(e,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return D.MethodNotFoundRpcError}}),Object.defineProperty(e,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return D.MethodNotSupportedRpcError}}),Object.defineProperty(e,"ParseRpcError",{enumerable:!0,get:function(){return D.ParseRpcError}}),Object.defineProperty(e,"ProviderDisconnectedError",{enumerable:!0,get:function(){return D.ProviderDisconnectedError}}),Object.defineProperty(e,"ProviderRpcError",{enumerable:!0,get:function(){return D.ProviderRpcError}}),Object.defineProperty(e,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return D.ResourceNotFoundRpcError}}),Object.defineProperty(e,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return D.ResourceUnavailableRpcError}}),Object.defineProperty(e,"RpcError",{enumerable:!0,get:function(){return D.RpcError}}),Object.defineProperty(e,"SwitchChainError",{enumerable:!0,get:function(){return D.SwitchChainError}}),Object.defineProperty(e,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return D.TransactionRejectedRpcError}}),Object.defineProperty(e,"UnauthorizedProviderError",{enumerable:!0,get:function(){return D.UnauthorizedProviderError}}),Object.defineProperty(e,"UnknownRpcError",{enumerable:!0,get:function(){return D.UnknownRpcError}}),Object.defineProperty(e,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return D.UnsupportedProviderMethodError}}),Object.defineProperty(e,"UserRejectedRequestError",{enumerable:!0,get:function(){return D.UserRejectedRequestError}});var R=Pr;Object.defineProperty(e,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return R.ChainDoesNotSupportContract}}),Object.defineProperty(e,"ChainMismatchError",{enumerable:!0,get:function(){return R.ChainMismatchError}}),Object.defineProperty(e,"ChainNotFoundError",{enumerable:!0,get:function(){return R.ChainNotFoundError}}),Object.defineProperty(e,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return R.ClientChainNotConfiguredError}}),Object.defineProperty(e,"InvalidChainIdError",{enumerable:!0,get:function(){return R.InvalidChainIdError}});var F=hn;Object.defineProperty(e,"DataLengthTooLongError",{enumerable:!0,get:function(){return F.DataLengthTooLongError}}),Object.defineProperty(e,"DataLengthTooShortError",{enumerable:!0,get:function(){return F.DataLengthTooShortError}}),Object.defineProperty(e,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return F.InvalidBytesBooleanError}}),Object.defineProperty(e,"IntegerOutOfRangeError",{enumerable:!0,get:function(){return F.IntegerOutOfRangeError}}),Object.defineProperty(e,"InvalidHexBooleanError",{enumerable:!0,get:function(){return F.InvalidHexBooleanError}}),Object.defineProperty(e,"InvalidHexValueError",{enumerable:!0,get:function(){return F.InvalidHexValueError}}),Object.defineProperty(e,"OffsetOutOfBoundsError",{enumerable:!0,get:function(){return F.OffsetOutOfBoundsError}}),Object.defineProperty(e,"SizeOverflowError",{enumerable:!0,get:function(){return F.SizeOverflowError}});var B=Qa;Object.defineProperty(e,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return B.EnsAvatarUriResolutionError}}),Object.defineProperty(e,"EnsAvatarInvalidNftUriError",{enumerable:!0,get:function(){return B.EnsAvatarInvalidNftUriError}}),Object.defineProperty(e,"EnsAvatarUnsupportedNamespaceError",{enumerable:!0,get:function(){return B.EnsAvatarUnsupportedNamespaceError}});var j=By;Object.defineProperty(e,"EstimateGasExecutionError",{enumerable:!0,get:function(){return j.EstimateGasExecutionError}});var P=St;Object.defineProperty(e,"ExecutionRevertedError",{enumerable:!0,get:function(){return P.ExecutionRevertedError}}),Object.defineProperty(e,"FeeCapTooHighError",{enumerable:!0,get:function(){return P.FeeCapTooHighError}}),Object.defineProperty(e,"FeeCapTooLowError",{enumerable:!0,get:function(){return P.FeeCapTooLowError}}),Object.defineProperty(e,"InsufficientFundsError",{enumerable:!0,get:function(){return P.InsufficientFundsError}}),Object.defineProperty(e,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return P.IntrinsicGasTooHighError}}),Object.defineProperty(e,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return P.IntrinsicGasTooLowError}}),Object.defineProperty(e,"NonceMaxValueError",{enumerable:!0,get:function(){return P.NonceMaxValueError}}),Object.defineProperty(e,"NonceTooHighError",{enumerable:!0,get:function(){return P.NonceTooHighError}}),Object.defineProperty(e,"NonceTooLowError",{enumerable:!0,get:function(){return P.NonceTooLowError}}),Object.defineProperty(e,"TipAboveFeeCapError",{enumerable:!0,get:function(){return P.TipAboveFeeCapError}}),Object.defineProperty(e,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return P.TransactionTypeNotSupportedError}}),Object.defineProperty(e,"UnknownNodeError",{enumerable:!0,get:function(){return P.UnknownNodeError}});var O=jy;Object.defineProperty(e,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return O.FilterTypeNotSupportedError}});var I=hr;Object.defineProperty(e,"HttpRequestError",{enumerable:!0,get:function(){return I.HttpRequestError}}),Object.defineProperty(e,"RpcRequestError",{enumerable:!0,get:function(){return I.RpcRequestError}}),Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return I.TimeoutError}}),Object.defineProperty(e,"WebSocketRequestError",{enumerable:!0,get:function(){return I.WebSocketRequestError}});var N=Zo;Object.defineProperty(e,"InvalidAddressError",{enumerable:!0,get:function(){return N.InvalidAddressError}});var M=pt;Object.defineProperty(e,"FeeConflictError",{enumerable:!0,get:function(){return M.FeeConflictError}}),Object.defineProperty(e,"InvalidLegacyVError",{enumerable:!0,get:function(){return M.InvalidLegacyVError}}),Object.defineProperty(e,"InvalidSerializableTransactionError",{enumerable:!0,get:function(){return M.InvalidSerializableTransactionError}}),Object.defineProperty(e,"InvalidSerializedTransactionError",{enumerable:!0,get:function(){return M.InvalidSerializedTransactionError}}),Object.defineProperty(e,"InvalidSerializedTransactionTypeError",{enumerable:!0,get:function(){return M.InvalidSerializedTransactionTypeError}}),Object.defineProperty(e,"InvalidStorageKeySizeError",{enumerable:!0,get:function(){return M.InvalidStorageKeySizeError}}),Object.defineProperty(e,"TransactionExecutionError",{enumerable:!0,get:function(){return M.TransactionExecutionError}}),Object.defineProperty(e,"TransactionNotFoundError",{enumerable:!0,get:function(){return M.TransactionNotFoundError}}),Object.defineProperty(e,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return M.TransactionReceiptNotFoundError}}),Object.defineProperty(e,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return M.WaitForTransactionReceiptTimeoutError}});var L=pl;Object.defineProperty(e,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return L.SizeExceedsPaddingSizeError}}),Object.defineProperty(e,"SliceOffsetOutOfBoundsError",{enumerable:!0,get:function(){return L.SliceOffsetOutOfBoundsError}});var X=km;Object.defineProperty(e,"UrlRequiredError",{enumerable:!0,get:function(){return X.UrlRequiredError}});var J=Ky;Object.defineProperty(e,"labelhash",{enumerable:!0,get:function(){return J.labelhash}});var U=Pm;Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return U.namehash}});var G=js;Object.defineProperty(e,"defineBlock",{enumerable:!0,get:function(){return G.defineBlock}}),Object.defineProperty(e,"formatBlock",{enumerable:!0,get:function(){return G.formatBlock}});var Z=Vi;Object.defineProperty(e,"formatLog",{enumerable:!0,get:function(){return Z.formatLog}});var ae=Hi;Object.defineProperty(e,"decodeAbiParameters",{enumerable:!0,get:function(){return ae.decodeAbiParameters}});var ne=g6;Object.defineProperty(e,"decodeDeployData",{enumerable:!0,get:function(){return ne.decodeDeployData}});var ie=xd;Object.defineProperty(e,"decodeErrorResult",{enumerable:!0,get:function(){return ie.decodeErrorResult}});var te=Qs;Object.defineProperty(e,"decodeEventLog",{enumerable:!0,get:function(){return te.decodeEventLog}});var ee=tb;Object.defineProperty(e,"decodeFunctionData",{enumerable:!0,get:function(){return ee.decodeFunctionData}});var re=ui;Object.defineProperty(e,"decodeFunctionResult",{enumerable:!0,get:function(){return re.decodeFunctionResult}});var z=oo;Object.defineProperty(e,"encodeAbiParameters",{enumerable:!0,get:function(){return z.encodeAbiParameters}});var fe=Im;Object.defineProperty(e,"encodeDeployData",{enumerable:!0,get:function(){return fe.encodeDeployData}});var ve=nb;Object.defineProperty(e,"encodeErrorResult",{enumerable:!0,get:function(){return ve.encodeErrorResult}});var Ue=Ws;Object.defineProperty(e,"encodeEventTopics",{enumerable:!0,get:function(){return Ue.encodeEventTopics}});var ke=ea;Object.defineProperty(e,"encodeFunctionData",{enumerable:!0,get:function(){return ke.encodeFunctionData}});var Qe=rb;Object.defineProperty(e,"encodeFunctionResult",{enumerable:!0,get:function(){return Qe.encodeFunctionResult}});var Te=wm;Object.defineProperty(e,"defineTransaction",{enumerable:!0,get:function(){return Te.defineTransaction}}),Object.defineProperty(e,"formatTransaction",{enumerable:!0,get:function(){return Te.formatTransaction}}),Object.defineProperty(e,"transactionType",{enumerable:!0,get:function(){return Te.transactionType}});var Ee=gl;Object.defineProperty(e,"defineTransactionReceipt",{enumerable:!0,get:function(){return Ee.defineTransactionReceipt}}),Object.defineProperty(e,"formatTransactionReceipt",{enumerable:!0,get:function(){return Ee.formatTransactionReceipt}});var he=Rl;Object.defineProperty(e,"defineTransactionRequest",{enumerable:!0,get:function(){return he.defineTransactionRequest}}),Object.defineProperty(e,"formatTransactionRequest",{enumerable:!0,get:function(){return he.formatTransactionRequest}}),Object.defineProperty(e,"rpcTransactionType",{enumerable:!0,get:function(){return he.rpcTransactionType}});var Me=Br;Object.defineProperty(e,"getAbiItem",{enumerable:!0,get:function(){return Me.getAbiItem}});var ge=SJ();Object.defineProperty(e,"getContractAddress",{enumerable:!0,get:function(){return ge.getContractAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return ge.getCreate2Address}}),Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return ge.getCreateAddress}});var Y=Lm;Object.defineProperty(e,"getSerializedTransactionType",{enumerable:!0,get:function(){return Y.getSerializedTransactionType}});var W=Td;Object.defineProperty(e,"getTransactionType",{enumerable:!0,get:function(){return W.getTransactionType}});var Q=eb();Object.defineProperty(e,"hashDomain",{enumerable:!0,get:function(){return Q.hashDomain}}),Object.defineProperty(e,"hashTypedData",{enumerable:!0,get:function(){return Q.hashTypedData}});var ce=y6;Object.defineProperty(e,"compactSignatureToSignature",{enumerable:!0,get:function(){return ce.compactSignatureToSignature}});var pe=b6;Object.defineProperty(e,"hexToCompactSignature",{enumerable:!0,get:function(){return pe.hexToCompactSignature}});var De=v6;Object.defineProperty(e,"hexToSignature",{enumerable:!0,get:function(){return De.hexToSignature}});var Ie=Rd;Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return Ie.recoverAddress}});var Je=Bm;Object.defineProperty(e,"recoverMessageAddress",{enumerable:!0,get:function(){return Je.recoverMessageAddress}});var Oe=Nm;Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return Oe.recoverPublicKey}});var _e=Mm;Object.defineProperty(e,"recoverTypedDataAddress",{enumerable:!0,get:function(){return _e.recoverTypedDataAddress}});var at=ZRe();Object.defineProperty(e,"signatureToCompactSignature",{enumerable:!0,get:function(){return at.signatureToCompactSignature}});var Ft=w6;Object.defineProperty(e,"compactSignatureToHex",{enumerable:!0,get:function(){return Ft.compactSignatureToHex}});var Lt=E6;Object.defineProperty(e,"signatureToHex",{enumerable:!0,get:function(){return Lt.signatureToHex}});var Js=gC();Object.defineProperty(e,"bytesToRlp",{enumerable:!0,get:function(){return Js.bytesToRlp}}),Object.defineProperty(e,"hexToRlp",{enumerable:!0,get:function(){return Js.hexToRlp}}),Object.defineProperty(e,"toRlp",{enumerable:!0,get:function(){return Js.toRlp}});var Jm=ub;Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return Jm.verifyMessage}});var $d=db;Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return $d.verifyTypedData}});var Zs=Gi;Object.defineProperty(e,"assertRequest",{enumerable:!0,get:function(){return Zs.assertRequest}});var fi=ni;Object.defineProperty(e,"assertTransactionEIP1559",{enumerable:!0,get:function(){return fi.assertTransactionEIP1559}}),Object.defineProperty(e,"assertTransactionEIP2930",{enumerable:!0,get:function(){return fi.assertTransactionEIP2930}}),Object.defineProperty(e,"assertTransactionLegacy",{enumerable:!0,get:function(){return fi.assertTransactionLegacy}});var Ia=Gn();Object.defineProperty(e,"boolToBytes",{enumerable:!0,get:function(){return Ia.boolToBytes}}),Object.defineProperty(e,"hexToBytes",{enumerable:!0,get:function(){return Ia.hexToBytes}}),Object.defineProperty(e,"numberToBytes",{enumerable:!0,get:function(){return Ia.numberToBytes}}),Object.defineProperty(e,"stringToBytes",{enumerable:!0,get:function(){return Ia.stringToBytes}}),Object.defineProperty(e,"toBytes",{enumerable:!0,get:function(){return Ia.toBytes}});var ta=$e();Object.defineProperty(e,"boolToHex",{enumerable:!0,get:function(){return ta.boolToHex}}),Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return ta.bytesToHex}}),Object.defineProperty(e,"numberToHex",{enumerable:!0,get:function(){return ta.numberToHex}}),Object.defineProperty(e,"stringToHex",{enumerable:!0,get:function(){return ta.stringToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return ta.toHex}});var na=Lo;Object.defineProperty(e,"bytesToBigInt",{enumerable:!0,get:function(){return na.bytesToBigInt}}),Object.defineProperty(e,"bytesToBigint",{enumerable:!0,get:function(){return na.bytesToBigInt}}),Object.defineProperty(e,"bytesToBool",{enumerable:!0,get:function(){return na.bytesToBool}}),Object.defineProperty(e,"bytesToNumber",{enumerable:!0,get:function(){return na.bytesToNumber}}),Object.defineProperty(e,"bytesToString",{enumerable:!0,get:function(){return na.bytesToString}}),Object.defineProperty(e,"fromBytes",{enumerable:!0,get:function(){return na.fromBytes}});var ec=rP();Object.defineProperty(e,"ccipFetch",{enumerable:!0,get:function(){return ec.ccipFetch}}),Object.defineProperty(e,"offchainLookup",{enumerable:!0,get:function(){return ec.offchainLookup}}),Object.defineProperty(e,"offchainLookupAbiItem",{enumerable:!0,get:function(){return ec.offchainLookupAbiItem}}),Object.defineProperty(e,"offchainLookupSignature",{enumerable:!0,get:function(){return ec.offchainLookupSignature}});var tc=On;Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return tc.concat}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return tc.concatBytes}}),Object.defineProperty(e,"concatHex",{enumerable:!0,get:function(){return tc.concatHex}});var Zm=jd;Object.defineProperty(e,"assertCurrentChain",{enumerable:!0,get:function(){return Zm.assertCurrentChain}});var zd=Jy;Object.defineProperty(e,"defineChain",{enumerable:!0,get:function(){return zd.defineChain}});var Hl=Zy;Object.defineProperty(e,"extractChain",{enumerable:!0,get:function(){return Hl.extractChain}});var nc=di;Object.defineProperty(e,"getChainContractAddress",{enumerable:!0,get:function(){return nc.getChainContractAddress}});var ep=ob;Object.defineProperty(e,"encodePacked",{enumerable:!0,get:function(){return ep.encodePacked}});var H6=Il;Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return H6.formatEther}});var H=qi;Object.defineProperty(e,"formatGwei",{enumerable:!0,get:function(){return H.formatGwei}});var V=Cd;Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return V.formatUnits}});var oe=Wn();Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return oe.fromHex}}),Object.defineProperty(e,"hexToBigInt",{enumerable:!0,get:function(){return oe.hexToBigInt}}),Object.defineProperty(e,"hexToBool",{enumerable:!0,get:function(){return oe.hexToBool}}),Object.defineProperty(e,"hexToNumber",{enumerable:!0,get:function(){return oe.hexToNumber}}),Object.defineProperty(e,"hexToString",{enumerable:!0,get:function(){return oe.hexToString}});var se=Bi;Object.defineProperty(e,"fromRlp",{enumerable:!0,get:function(){return se.fromRlp}});var we=xo;Object.defineProperty(e,"checksumAddress",{enumerable:!0,get:function(){return we.checksumAddress}}),Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return we.getAddress}});var je=Vs;Object.defineProperty(e,"getContractError",{enumerable:!0,get:function(){return je.getContractError}});var ze=Pl;Object.defineProperty(e,"getEventSelector",{enumerable:!0,get:function(){return ze.getEventSelector}});var be=Py;Object.defineProperty(e,"getEventSignature",{enumerable:!0,get:function(){return be.getEventSignature}});var Ze=zi;Object.defineProperty(e,"getFunctionSelector",{enumerable:!0,get:function(){return Ze.getFunctionSelector}});var Re=bm;Object.defineProperty(e,"getFunctionSignature",{enumerable:!0,get:function(){return Re.getFunctionSignature}});var Le=Fm;Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return Le.hashMessage}});var Dt=lo;Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return Dt.isAddress}});var Tt=Bl;Object.defineProperty(e,"isAddressEqual",{enumerable:!0,get:function(){return Tt.isAddressEqual}});var Pt=Om;Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return Pt.isBytes}});var Ct=Rm;Object.defineProperty(e,"isHash",{enumerable:!0,get:function(){return Ct.isHash}});var Nn=qn;Object.defineProperty(e,"isHex",{enumerable:!0,get:function(){return Nn.isHex}});var ln=co;Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return ln.keccak256}});var ql=ib;Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return ql.sha256}});var hi=sb;Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return hi.ripemd160}});var mi=Zr;Object.defineProperty(e,"pad",{enumerable:!0,get:function(){return mi.pad}}),Object.defineProperty(e,"padBytes",{enumerable:!0,get:function(){return mi.padBytes}}),Object.defineProperty(e,"padHex",{enumerable:!0,get:function(){return mi.padHex}});var rc=fb;Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return rc.parseEther}});var oc=hb;Object.defineProperty(e,"parseGwei",{enumerable:!0,get:function(){return oc.parseGwei}});var ra=ps;Object.defineProperty(e,"parseTransaction",{enumerable:!0,get:function(){return ra.parseTransaction}});var Hd=Nd;Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return Hd.parseUnits}});var qd=Um;Object.defineProperty(e,"serializeAccessList",{enumerable:!0,get:function(){return qd.serializeAccessList}});var Wd=NJ();Object.defineProperty(e,"serializeTransaction",{enumerable:!0,get:function(){return Wd.serializeTransaction}});var tt=ka;Object.defineProperty(e,"size",{enumerable:!0,get:function(){return tt.size}});var Ut=Nr;Object.defineProperty(e,"slice",{enumerable:!0,get:function(){return Ut.slice}}),Object.defineProperty(e,"sliceBytes",{enumerable:!0,get:function(){return Ut.sliceBytes}}),Object.defineProperty(e,"sliceHex",{enumerable:!0,get:function(){return Ut.sliceHex}});var $r=xr;Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return $r.stringify}});var $t=ci;Object.defineProperty(e,"trim",{enumerable:!0,get:function(){return $t.trim}});var Ao=pC();Object.defineProperty(e,"validateTypedData",{enumerable:!0,get:function(){return Ao.validateTypedData}}),Object.defineProperty(e,"domainSeparator",{enumerable:!0,get:function(){return Ao.domainSeparator}}),Object.defineProperty(e,"getTypesForEIP712Domain",{enumerable:!0,get:function(){return Ao.getTypesForEIP712Domain}})}(j3)),j3}var Nh={};Object.defineProperty(Nh,"__esModule",{value:!0});Nh.MAGIC_VALUE_BYTES=Nh.MAGIC_VALUE=void 0;const aNe="0x1626ba7e";Nh.MAGIC_VALUE=aNe;const iNe="0x20c13b0b";Nh.MAGIC_VALUE_BYTES=iNe;var fP={},yb={},rd={};Object.defineProperty(rd,"__esModule",{value:!0});rd.PermissionsError=rd.PERMISSIONS_REQUEST_REJECTED=void 0;rd.PERMISSIONS_REQUEST_REJECTED=4001;class hP extends Error{constructor(t,n,r){super(t),this.code=n,this.data=r,Object.setPrototypeOf(this,hP.prototype)}}rd.PermissionsError=hP;Object.defineProperty(yb,"__esModule",{value:!0});yb.Wallet=void 0;const iT=Ed,_v=rd;class sNe{constructor(t){this.communicator=t}async getPermissions(){return(await this.communicator.send(iT.Methods.wallet_getPermissions,void 0)).data}async requestPermissions(t){if(!this.isPermissionRequestValid(t))throw new _v.PermissionsError("Permissions request is invalid",_v.PERMISSIONS_REQUEST_REJECTED);try{return(await this.communicator.send(iT.Methods.wallet_requestPermissions,t)).data}catch{throw new _v.PermissionsError("Permissions rejected",_v.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(t){return t.every(n=>typeof n=="object"?Object.keys(n).every(r=>!!Object.values(iT.RestrictedMethods).includes(r)):!1)}}yb.Wallet=sNe;Object.defineProperty(fP,"__esModule",{value:!0});const cNe=yb,bF=rd,vF=(e,t)=>t.some(n=>n.parentCapability===e),lNe=()=>(e,t,n)=>{const r=n.value;return n.value=async function(){const o=new cNe.Wallet(this.communicator);let a=await o.getPermissions();if(vF(t,a)||(a=await o.requestPermissions([{[t]:{}}])),!vF(t,a))throw new bF.PermissionsError("Permissions rejected",bF.PERMISSIONS_REQUEST_REJECTED);return r.apply(this)},n};fP.default=lNe;var uNe=We&&We.__decorate||function(e,t,n,r){var o=arguments.length,a=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},dNe=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(C2,"__esModule",{value:!0});C2.Safe=void 0;const xv=LJ(),wF=Nh,uc=Ed,EF=ky,fNe=v2,hNe=dNe(fP);class UJ{constructor(t){this.communicator=t}async getChainInfo(){return(await this.communicator.send(uc.Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(uc.Methods.getSafeInfo,void 0)).data}async experimental_getBalances({currency:t="usd"}={}){return(await this.communicator.send(uc.Methods.getSafeBalances,{currency:t})).data}async check1271Signature(t,n="0x"){const r=await this.getInfo(),o=(0,xv.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[t,n]}),a={call:EF.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:o},"latest"]};try{return(await this.communicator.send(uc.Methods.rpcCall,a)).data.slice(0,10).toLowerCase()===wF.MAGIC_VALUE}catch{return!1}}async check1271SignatureBytes(t,n="0x"){const r=await this.getInfo(),o=(0,xv.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[t,n]}),a={call:EF.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:o},"latest"]};try{return(await this.communicator.send(uc.Methods.rpcCall,a)).data.slice(0,10).toLowerCase()===wF.MAGIC_VALUE_BYTES}catch{return!1}}calculateMessageHash(t){return(0,xv.hashMessage)(t)}calculateTypedMessageHash(t){const n=typeof t.domain.chainId=="object"?t.domain.chainId.toNumber():Number(t.domain.chainId);let r=t.primaryType;if(!r){const o=Object.values(t.types),a=Object.keys(t.types).filter(i=>o.every(s=>s.every(({type:c})=>c.replace("[","").replace("]","")!==i)));if(a.length===0||a.length>1)throw new Error("Please specify primaryType");r=a[0]}return(0,xv.hashTypedData)({message:t.message,domain:Object.assign(Object.assign({},t.domain),{chainId:n,verifyingContract:t.domain.verifyingContract,salt:t.domain.salt}),types:t.types,primaryType:r})}async getOffChainSignature(t){return(await this.communicator.send(uc.Methods.getOffChainSignature,t)).data}async isMessageSigned(t,n="0x"){let r;if(typeof t=="string"&&(r=async()=>{const o=this.calculateMessageHash(t);return await this.isMessageHashSigned(o,n)}),(0,fNe.isObjectEIP712TypedData)(t)&&(r=async()=>{const o=this.calculateTypedMessageHash(t);return await this.isMessageHashSigned(o,n)}),r)return await r();throw new Error("Invalid message type")}async isMessageHashSigned(t,n="0x"){const r=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const o of r)if(await o(t,n))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(uc.Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(uc.Methods.requestAddressBook,void 0)).data}}uNe([(0,hNe.default)()],UJ.prototype,"requestAddressBook",null);C2.Safe=UJ;var mNe=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(DE,"__esModule",{value:!0});const pNe=mNe(bX),gNe=b2,yNe=x2,bNe=C2,vNe=yb;let wNe=class{constructor(t={}){const{allowedDomains:n=null,debug:r=!1}=t;this.communicator=new pNe.default(n,r),this.eth=new yNe.Eth(this.communicator),this.txs=new gNe.TXs(this.communicator),this.safe=new bNe.Safe(this.communicator),this.wallet=new vNe.Wallet(this.communicator)}};DE.default=wNe;(function(e){var t=We&&We.__createBinding||(Object.create?function(i,s,c,l){l===void 0&&(l=c);var u=Object.getOwnPropertyDescriptor(s,c);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(i,l,u)}:function(i,s,c,l){l===void 0&&(l=c),i[l]=s[c]}),n=We&&We.__exportStar||function(i,s){for(var c in i)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&t(s,i,c)},r=We&&We.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.getSDKVersion=void 0;const o=r(DE);e.default=o.default,n(DE,e),n(v2,e),n(Ed,e),n(Ay,e);var a=Dy;Object.defineProperty(e,"getSDKVersion",{enumerable:!0,get:function(){return a.getSDKVersion}})})(yX);const Cv=cd(yX);var a0,i0,$J=class extends py{constructor({chains:e,options:t}){const n={shimDisconnect:!1,...t};super({chains:e,options:n}),this.id="safe",this.name="Safe",this.ready=!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,Fn(this,a0,void 0),Fn(this,i0,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`;let r=Cv;typeof Cv!="function"&&typeof Cv.default=="function"&&(r=Cv.default),As(this,i0,new r(n))}async connect(){var r;const e=await this.getProvider();if(!e)throw new ua;e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const t=await this.getAccount(),n=await this.getChainId();return this.options.shimDisconnect&&((r=this.storage)==null||r.setItem(this.shimDisconnectKey,!0)),{account:t,chain:{id:n,unsupported:this.isChainUnsupported(n)}}}async disconnect(){var t;const e=await this.getProvider();e!=null&&e.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((t=this.storage)==null||t.removeItem(this.shimDisconnectKey)))}async getAccount(){const e=await this.getProvider();if(!e)throw new ua;const t=await e.request({method:"eth_accounts"});return Rr(t[0])}async getChainId(){const e=await this.getProvider();if(!e)throw new ua;return Ju(e.chainId)}async getProvider(){if(!ft(this,a0)){const e=await ft(this,i0).safe.getInfo();if(!e)throw new Error("Could not load Safe information");As(this,a0,new sX.SafeAppProvider(e,ft(this,i0)))}return ft(this,a0)}async getWalletClient({chainId:e}={}){const t=await this.getProvider(),n=await this.getAccount(),r=this.chains.find(o=>o.id===e);if(!t)throw new Error("provider is required.");return ry({account:n,chain:r,transport:ny(t)})}async isAuthorized(){var e;try{return this.options.shimDisconnect&&!((e=this.storage)!=null&&e.getItem(this.shimDisconnectKey))?!1:!!await this.getAccount()}catch{return!1}}onAccountsChanged(e){}onChainChanged(e){}onDisconnect(){this.emit("disconnect")}};a0=new WeakMap;i0=new WeakMap;var ENe=768;B_e({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}});var _Ne=JY({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),qD=z_e({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"}}}}}),_F={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)"}},xNe={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},CNe="_12cbo8i3 ju367v8r",SNe={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function wr({active:e,hover:t}){return[CNe,t&&SNe[t],xNe[e]]}var zJ=S.createContext(null);function TNe(){var e;const{adapter:t}=(e=S.useContext(zJ))!=null?e:{};if(!t)throw new Error("No authentication adapter found");return t}function _6(){var e;const t=S.useContext(zJ);return(e=t==null?void 0:t.status)!=null?e:null}function HJ(){const e=_6(),{isConnected:t}=tn();return t?e&&(e==="loading"||e==="unauthenticated")?e:"connected":"disconnected"}function mP(){return typeof navigator<"u"&&/android/i.test(navigator.userAgent)}function ANe(){return typeof navigator<"u"&&/iPhone|iPod/.test(navigator.userAgent)}function DNe(){return typeof navigator<"u"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function Ll(){return ANe()||DNe()}function Cr(){return mP()||Ll()}var kNe="iekbcc0",jNe={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"},PNe=({reset:e,...t})=>{if(!e)return qD(t);const n=jNe[e],r=qD(t);return eQ(kNe,n,r)},$=S.forwardRef(({as:e="div",className:t,testId:n,...r},o)=>{const a={},i={};for(const c in r)qD.properties.has(c)?a[c]=r[c]:i[c]=r[c];const s=PNe({reset:typeof e=="string"?e:"div",...a});return S.createElement(e,{className:eQ(s,t),...i,"data-testid":n?`rk-${n.replace(/^rk-/,"")}`:void 0,ref:o})});$.displayName="Box";var qJ=new Map,sT=new Map;async function WJ(e){const t=sT.get(e);if(t)return t;const n=async()=>e().then(async o=>(qJ.set(e,o),o)),r=n().catch(o=>n().catch(a=>{sT.delete(e)}));return sT.set(e,r),r}async function Ui(...e){return await Promise.all(e.map(t=>typeof t=="function"?WJ(t):t))}function INe(){const[,e]=S.useReducer(t=>t+1,0);return e}function pP(e){const t=typeof e=="function"?qJ.get(e):void 0,n=INe();return S.useEffect(()=>{typeof e=="function"&&!t&&WJ(e).then(n)},[e,t,n]),typeof e=="function"?t:e}function nr({alt:e,background:t,borderColor:n,borderRadius:r,boxShadow:o,height:a,src:i,width:s,testId:c}){const l=Ll(),u=pP(i),d=u&&/^http/.test(u),[f,h]=S.useReducer(()=>!0,!1);return A.createElement($,{"aria-label":e,borderRadius:r,boxShadow:o,height:typeof a=="string"?a:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:t,height:typeof a=="number"?a:void 0,width:typeof s=="number"?s:void 0},width:typeof s=="string"?s:void 0,testId:c},A.createElement($,{...d?{"aria-hidden":!0,as:"img",onLoad:h,src:u}:{backgroundSize:"cover"},height:"full",position:"absolute",...l?{WebkitUserSelect:"none"}:{},style:{touchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...d?{opacity:f?1:0}:{backgroundImage:u?`url(${u})`:void 0,backgroundRepeat:"no-repeat",opacity:u?1:0}},width:"full"}),n?A.createElement($,{...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 ONe="_1luule42",RNe="_1luule43",NNe=e=>S.useMemo(()=>`${e}_${Math.round(Math.random()*1e9)}`,[e]),_g=({height:e=21,width:t=21})=>{const n=NNe("spinner");return A.createElement("svg",{className:ONe,fill:"none",height:e,viewBox:"0 0 21 21",width:t,xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Loading"),A.createElement("clipPath",{id:n},A.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"})),A.createElement("foreignObject",{clipPath:`url(#${n})`,height:"21",width:"21",x:"0",y:"0"},A.createElement("div",{className:RNe})))},yt=["#FC5C54","#FFD95A","#E95D72","#6A87C8","#5FD0F3","#75C06B","#FFDD86","#5FC6D4","#FF949A","#FF8024","#9BA1A4","#EC66FF","#FF8CBC","#FF9A23","#C5DADB","#A8CE63","#71ABFF","#FFE279","#B6B1B6","#FF6780","#A575FF","#4D82FF","#FFB35A"],xF=[{color:yt[0],emoji:"🌶"},{color:yt[1],emoji:"🤑"},{color:yt[2],emoji:"🐙"},{color:yt[3],emoji:"🫐"},{color:yt[4],emoji:"🐳"},{color:yt[0],emoji:"🤶"},{color:yt[5],emoji:"🌲"},{color:yt[6],emoji:"🌞"},{color:yt[7],emoji:"🐒"},{color:yt[8],emoji:"🐵"},{color:yt[9],emoji:"🦊"},{color:yt[10],emoji:"🐼"},{color:yt[11],emoji:"🦄"},{color:yt[12],emoji:"🐷"},{color:yt[13],emoji:"🐧"},{color:yt[8],emoji:"🦩"},{color:yt[14],emoji:"👽"},{color:yt[0],emoji:"🎈"},{color:yt[8],emoji:"🍉"},{color:yt[1],emoji:"🎉"},{color:yt[15],emoji:"🐲"},{color:yt[16],emoji:"🌎"},{color:yt[17],emoji:"🍊"},{color:yt[18],emoji:"🐭"},{color:yt[19],emoji:"🍣"},{color:yt[1],emoji:"🐥"},{color:yt[20],emoji:"👾"},{color:yt[15],emoji:"🥦"},{color:yt[0],emoji:"👹"},{color:yt[17],emoji:"🙀"},{color:yt[4],emoji:"⛱"},{color:yt[21],emoji:"⛵️"},{color:yt[17],emoji:"🥳"},{color:yt[8],emoji:"🤯"},{color:yt[22],emoji:"🤠"}];function BNe(e){let t=0;if(e.length===0)return t;for(let n=0;n{const[r,o]=S.useState(!1);S.useEffect(()=>{if(t){const s=new Image;s.src=t,s.onload=()=>o(!0)}},[t]);const{color:a,emoji:i}=S.useMemo(()=>FNe(e),[e]);return t?r?A.createElement($,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${t})`,backgroundPosition:"center",height:n,width:n}}):A.createElement($,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:n,width:n}},A.createElement(_g,null)):A.createElement($,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!t&&{backgroundColor:a},height:n,width:n}},i)},GJ=MNe,VJ=S.createContext(GJ);function LNe({address:e,imageUrl:t,loading:n,size:r}){const o=S.useContext(VJ);return A.createElement($,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${r}px`,width:`${r}px`},userSelect:"none"},A.createElement($,{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"},A.createElement(o,{address:e,ensImage:t,size:r})),n&&A.createElement($,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},A.createElement(_g,{height:"100%",width:"100%"})))}var CF={defaultLocale:"en",locale:"en"},UNe=class{constructor(e){this.listeners=new Set,this.defaultLocale=CF.defaultLocale,this.enableFallback=!1,this.locale=CF.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,a)=>{for(const i of Object.keys(o)){const s=`${a}.${i}`,c=o[i];typeof c=="object"&&c!==null?r(c,s):n[s]=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){const n=`${this.locale}.${e}`,r=this.translations[n];if(!r){if(this.enableFallback){const o=`${this.defaultLocale}.${e}`,a=this.translations[o];if(a)return this.translateWithReplacements(a,t)}return this.missingMessage(e)}return this.translateWithReplacements(r,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)}}},ha=new UNe({en:JSON.parse(yD),"en-US":JSON.parse(yD)});ha.defaultLocale="en-US";ha.locale="en-US";ha.enableFallback=!0;var $Ne=async e=>{switch(e){case"ar":case"ar-AR":return(await me(async()=>{const{default:t}=await import("./ar_AR-PQJDYWVZ-APfsCj9O.js");return{default:t}},[],import.meta.url)).default;case"en":case"en-US":return(await me(async()=>{const{default:t}=await Promise.resolve().then(()=>KL);return{default:t}},void 0,import.meta.url)).default;case"es":case"es-419":return(await me(async()=>{const{default:t}=await import("./es_419-GLICGTYE-DAMYsXQt.js");return{default:t}},[],import.meta.url)).default;case"fr":case"fr-FR":return(await me(async()=>{const{default:t}=await import("./fr_FR-UC7Z4T6O-B67bog61.js");return{default:t}},[],import.meta.url)).default;case"hi":case"hi-IN":return(await me(async()=>{const{default:t}=await import("./hi_IN-RGKVTIVE-Do-3nNHB.js");return{default:t}},[],import.meta.url)).default;case"id":case"id-ID":return(await me(async()=>{const{default:t}=await import("./id_ID-3SKVJ2RK-DLkFahck.js");return{default:t}},[],import.meta.url)).default;case"ja":case"ja-JP":return(await me(async()=>{const{default:t}=await import("./ja_JP-GYCPH6AT-B2ynLT17.js");return{default:t}},[],import.meta.url)).default;case"ko":case"ko-KR":return(await me(async()=>{const{default:t}=await import("./ko_KR-V2HAEAHG-MSD6VZVz.js");return{default:t}},[],import.meta.url)).default;case"pt":case"pt-BR":return(await me(async()=>{const{default:t}=await import("./pt_BR-JDDVMLRA-aYSlgkhd.js");return{default:t}},[],import.meta.url)).default;case"ru":case"ru-RU":return(await me(async()=>{const{default:t}=await import("./ru_RU-3W6WVVOI-CElW9r3c.js");return{default:t}},[],import.meta.url)).default;case"th":case"th-TH":return(await me(async()=>{const{default:t}=await import("./th_TH-UWDENI2F-isfr4Uax.js");return{default:t}},[],import.meta.url)).default;case"tr":case"tr-TR":return(await me(async()=>{const{default:t}=await import("./tr_TR-NAI3OICG-BccpdJoF.js");return{default:t}},[],import.meta.url)).default;case"ua":case"uk-UA":return(await me(async()=>{const{default:t}=await import("./uk_UA-H7BFRWP5-BxO6MaLd.js");return{default:t}},[],import.meta.url)).default;case"zh":case"zh-CN":return(await me(async()=>{const{default:t}=await import("./zh_CN-BO5MSGV2-D6N76dxU.js");return{default:t}},[],import.meta.url)).default;default:return(await me(async()=>{const{default:t}=await Promise.resolve().then(()=>KL);return{default:t}},void 0,import.meta.url)).default}};async function SF(e){if(ha.isLocaleCached(e)){ha.updateLocale(e);return}const n=await $Ne(e);ha.setTranslations(e,JSON.parse(n))}var zNe=()=>{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}},ar=S.createContext({i18n:ha}),HNe=({children:e,locale:t})=>{const[n,r]=S.useState(0),o=S.useMemo(()=>zNe(),[]);S.useEffect(()=>ha.onChange(()=>{r(s=>s+1)}),[]),S.useEffect(()=>{t&&t!==ha.locale?SF(t):!t&&o&&o!==ha.locale&&SF(o)},[t,o]);const a=S.useMemo(()=>({t:(s,c)=>ha.t(s,c),i18n:ha}),[n]);return A.createElement(ar.Provider,{value:a},e)};function gP(e){return e!=null}var cT={iconBackground:"#96bedc",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./arbitrum-LYDBJZP3-BMNNBURC.js");return{default:e}},[],import.meta.url)).default},TF={iconBackground:"#e84141",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./avalanche-TFPKP544-BAW5xZLs.js");return{default:e}},[],import.meta.url)).default},lT={iconBackground:"#0052ff",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./base-3MIUIYGA-BacvpD6v.js");return{default:e}},[],import.meta.url)).default},AF={iconBackground:"#ebac0e",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./bsc-S2GSW6VX-Bz0b4JEm.js");return{default:e}},[],import.meta.url)).default},DF={iconBackground:"#002D74",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./cronos-DQKKIEX7-D-xN-IeE.js");return{default:e}},[],import.meta.url)).default},dc={iconBackground:"#484c50",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./ethereum-4FY57XJF-BF1-Gkmk.js");return{default:e}},[],import.meta.url)).default},qNe={iconBackground:"#f9f7ec",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./hardhat-ARRFHFKB-BsaKr6xa.js");return{default:e}},[],import.meta.url)).default},Sv={iconBackground:"#ff5a57",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./optimism-UUP5Y7TB-BI-bx6R2.js");return{default:e}},[],import.meta.url)).default},kF={iconBackground:"#9f71ec",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./polygon-Z4QITDL7-DuMBfvk7.js");return{default:e}},[],import.meta.url)).default},jF={iconBackground:"#f9f7ec",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./xdc-5UHQ25DW-DoSn3ve8.js");return{default:e}},[],import.meta.url)).default},PF={iconBackground:"#f9f7ec",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./zkSync-XRUC4ZHO-CS2pRbzJ.js");return{default:e}},[],import.meta.url)).default},uT={iconBackground:"#000000",iconUrl:async()=>(await me(async()=>{const{default:e}=await import("./zora-KVO7WIOK-CYiMysry.js");return{default:e}},[],import.meta.url)).default},WNe={arbitrum:{chainId:42161,name:"Arbitrum",...cT},arbitrumGoerli:{chainId:421613,...cT},arbitrumSepolia:{chainId:421614,...cT},avalanche:{chainId:43114,...TF},avalancheFuji:{chainId:43113,...TF},base:{chainId:8453,name:"Base",...lT},baseGoerli:{chainId:84531,...lT},baseSepolia:{chainId:84532,...lT},bsc:{chainId:56,name:"BSC",...AF},bscTestnet:{chainId:97,...AF},cronos:{chainId:25,...DF},cronosTestnet:{chainId:338,...DF},goerli:{chainId:5,...dc},hardhat:{chainId:31337,...qNe},holesky:{chainId:17e3,...dc},kovan:{chainId:42,...dc},localhost:{chainId:1337,...dc},mainnet:{chainId:1,name:"Ethereum",...dc},optimism:{chainId:10,name:"Optimism",...Sv},optimismGoerli:{chainId:420,...Sv},optimismKovan:{chainId:69,...Sv},optimismSepolia:{chainId:11155420,...Sv},polygon:{chainId:137,name:"Polygon",...kF},polygonMumbai:{chainId:80001,...kF},rinkeby:{chainId:4,...dc},ropsten:{chainId:3,...dc},sepolia:{chainId:11155111,...dc},xdc:{chainId:50,name:"XinFin",...jF},xdcTestnet:{chainId:51,...jF},zkSync:{chainId:324,name:"zkSync",...PF},zkSyncTestnet:{chainId:280,...PF},zora:{chainId:7777777,name:"Zora",...uT},zoraSepolia:{chainId:999999999,...uT},zoraTestnet:{chainId:999,...uT}},GNe=Object.fromEntries(Object.values(WNe).filter(gP).map(({chainId:e,...t})=>[e,t])),VNe=e=>e.map(t=>{var n,r,o,a;const i=(n=GNe[t.id])!=null?n:{};return{...t,name:(r=i.name)!=null?r:t.name,iconUrl:(o=t.iconUrl)!=null?o:i.iconUrl,iconBackground:(a=t.iconBackground)!=null?a:i.iconBackground}}),yP=S.createContext({chains:[]});function KNe({chains:e,children:t,initialChain:n}){return A.createElement(yP.Provider,{value:S.useMemo(()=>({chains:VNe(e),initialChainId:typeof n=="number"?n:n==null?void 0:n.id}),[e,n])},t)}var x6=()=>S.useContext(yP).chains,YNe=()=>S.useContext(yP).initialChainId,QNe=()=>{const e=x6();return S.useMemo(()=>{const t={};for(const n of e)t[n.id]=n;return t},[e])},KJ=S.createContext({showBalance:void 0,setShowBalance:()=>{}});function XNe({children:e}){const[t,n]=S.useState();return A.createElement(KJ.Provider,{value:{showBalance:t,setShowBalance:n}},e)}var JNe=()=>S.useContext(KJ);function ZNe(){const[e,t]=S.useState(!1);return S.useEffect(()=>(t(!0),()=>{t(!1)}),[]),S.useCallback(()=>e,[e])}function YJ(){const e=Ux.id,t=zs(),n=Array.isArray(t.chains)?t.chains:[],r=n==null?void 0:n.some(o=>(o==null?void 0:o.id)===e);return{chainId:e,enabled:r}}function QJ(e){const{chainId:t,enabled:n}=YJ(),{data:r}=QEe({chainId:t,enabled:n,name:e});return r}function XJ(e){const{chainId:t,enabled:n}=YJ(),{data:r}=MY({address:e,chainId:t,enabled:n});return r}function bP(){var e;const{chain:t}=So();return(e=t==null?void 0:t.id)!=null?e:null}var JJ="rk-transactions";function e9e(e){try{const t=e?JSON.parse(e):{};return typeof t=="object"?t:{}}catch{return{}}}function IF(){return e9e(typeof localStorage<"u"?localStorage.getItem(JJ):null)}var t9e=/^0x([A-Fa-f0-9]{64})$/;function n9e(e){const t=[];return t9e.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 r9e({provider:e}){let t=IF(),n=e;const r=new Set,o=new Map;function a(p){n=p}function i(p,b){var v,g;return(g=(v=t[p])==null?void 0:v[b])!=null?g:[]}function s(p,b,v){const g=n9e(v);if(g.length>0)throw new Error(["Unable to add transaction",...g].join(` -`));d(p,b,w=>[{...v,status:"pending"},...w.filter(({hash:_})=>_!==v.hash)])}function c(p,b){d(p,b,()=>[])}function l(p,b,v,g){d(p,b,w=>w.map(_=>_.hash===v?{..._,status:g}:_))}async function u(p,b){await Promise.all(i(p,b).filter(v=>v.status==="pending").map(async v=>{const{confirmations:g,hash:w}=v,_=o.get(w);if(_)return await _;const C=n.waitForTransactionReceipt({confirmations:g,hash:w,timeout:3e5}).then(({status:x})=>{o.delete(w),x!==void 0&&l(p,b,w,x===0||x==="reverted"?"failed":"confirmed")}).catch(()=>{l(p,b,w,"failed")});return o.set(w,C),await C}))}function d(p,b,v){var g,w;t=IF(),t[p]=(g=t[p])!=null?g:{};let _=0;const C=10,x=v((w=t[p][b])!=null?w:[]).filter(({status:E})=>E==="pending"?!0:_++<=C);t[p][b]=x.length>0?x:void 0,f(),h(),u(p,b)}function f(){localStorage.setItem(JJ,JSON.stringify(t))}function h(){for(const p of r)p()}function m(p){return r.add(p),()=>{r.delete(p)}}return{addTransaction:s,clearTransactions:c,getTransactions:i,onChange:m,setProvider:a,waitForPendingTransactions:u}}var dT,ZJ=S.createContext(null);function o9e({children:e}){const t=zs(),{address:n}=tn(),r=bP(),[o]=S.useState(()=>dT??(dT=r9e({provider:t})));return S.useEffect(()=>{o.setProvider(t)},[o,t]),S.useEffect(()=>{n&&r&&o.waitForPendingTransactions(n,r)},[o,n,r]),A.createElement(ZJ.Provider,{value:o},e)}function eZ(){const e=S.useContext(ZJ);if(!e)throw new Error("Transaction hooks must be used within RainbowKitProvider");return e}function tZ(){const e=eZ(),{address:t}=tn(),n=bP(),[r,o]=S.useState(()=>e&&t&&n?e.getTransactions(t,n):[]);return S.useEffect(()=>{if(e&&t&&n)return o(e.getTransactions(t,n)),e.onChange(()=>{o(e.getTransactions(t,n))})},[e,t,n]),r}var OF=e=>typeof e=="function"?e():e;function a9e(e,{extends:t}={}){const n={...e9(_F,OF(e))};if(!t)return n;const r=e9(_F,OF(t));return Object.fromEntries(Object.entries(n).filter(([a,i])=>i!==r[a]))}function RF(e,t={}){return Object.entries(a9e(e,t)).map(([n,r])=>`${n}:${r.replace(/[:;{}]/g,"")};`).join("")}var nZ={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},Hm=S.createContext(nZ),rZ=S.createContext(!1);function i9e(e,t){let n;return()=>{n&&clearTimeout(n),n=setTimeout(()=>{n=null,e()},t)}}var oZ=()=>{const[e,t]=S.useState({height:void 0,width:void 0});return S.useEffect(()=>{const n=i9e(()=>{t({height:window.innerHeight,width:window.innerWidth})},500);return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),e},bb=S.createContext({connector:null,setConnector:()=>{}});function s9e({children:e}){const[t,n]=S.useState(null);return A.createElement(bb.Provider,{value:S.useMemo(()=>({connector:t,setConnector:n}),[t])},e)}var vb={COMPACT:"compact",WIDE:"wide"},C6=S.createContext(vb.WIDE);function c9e({children:e,modalSize:t}){const{width:n}=oZ(),r=n&&n{u9e({version:"1.3.7"})},[]);S.useEffect(()=>{e()},[e])}function f9e(e){const t=[];for(const n of e)t.push(...n);return t}function h9e(e,t){const n={};for(const r of e){const o=t(r);o&&(n[o]=r)}return n}function wP(){return typeof navigator<"u"&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function m9e(){return typeof document<"u"&&getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")!==""}function EP(){var e;if(typeof navigator>"u")return"Browser";const t=navigator.userAgent.toLowerCase();return(e=navigator.brave)!=null&&e.isBrave?"Brave":t.indexOf("edg/")>-1?"Edge":t.indexOf("op")>-1?"Opera":m9e()?"Arc":t.indexOf("chrome")>-1?"Chrome":t.indexOf("firefox")>-1?"Firefox":wP()?"Safari":"Browser"}var p9e=Sxe.UAParser(),{os:_P}=p9e;function g9e(){return _P.name==="Windows"}function y9e(){return _P.name==="Mac OS"}function b9e(){return["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(_P.name)}function xP(){return g9e()?"Windows":y9e()?"macOS":b9e()?"Linux":"Desktop"}var v9e=e=>{var t,n,r,o,a,i,s,c,l,u,d,f;const h=EP();return(f={Arc:(t=e==null?void 0:e.downloadUrls)==null?void 0:t.chrome,Brave:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.chrome,Chrome:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.chrome,Edge:((o=e==null?void 0:e.downloadUrls)==null?void 0:o.edge)||((a=e==null?void 0:e.downloadUrls)==null?void 0:a.chrome),Firefox:(i=e==null?void 0:e.downloadUrls)==null?void 0:i.firefox,Opera:((s=e==null?void 0:e.downloadUrls)==null?void 0:s.opera)||((c=e==null?void 0:e.downloadUrls)==null?void 0:c.chrome),Safari:(l=e==null?void 0:e.downloadUrls)==null?void 0:l.safari,Browser:(u=e==null?void 0:e.downloadUrls)==null?void 0:u.browserExtension}[h])!=null?f:(d=e==null?void 0:e.downloadUrls)==null?void 0:d.browserExtension},w9e=e=>{var t,n,r,o;return(o=Ll()?(t=e==null?void 0:e.downloadUrls)==null?void 0:t.ios:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.android)!=null?o:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.mobile},E9e=e=>{var t,n,r,o,a,i;const s=xP();return(i={Windows:(t=e==null?void 0:e.downloadUrls)==null?void 0:t.windows,macOS:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.macos,Linux:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.linux,Desktop:(o=e==null?void 0:e.downloadUrls)==null?void 0:o.desktop}[s])!=null?i:(a=e==null?void 0:e.downloadUrls)==null?void 0:a.desktop},aZ="rk-recent";function _9e(e){try{const t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch{return[]}}function iZ(){return typeof localStorage<"u"?_9e(localStorage.getItem(aZ)):[]}function x9e(e){return[...new Set(e)]}function C9e(e){const t=x9e([e,...iZ()]);localStorage.setItem(aZ,JSON.stringify(t))}function S6(){var e;const t=x6(),n=YNe(),{connectAsync:r,connectors:o}=UEe(),a=o;async function i(m,p){var b,v,g;const w=await p.getChainId(),_=await r({chainId:(g=n??((b=t.find(({id:C})=>C===w))==null?void 0:b.id))!=null?g:(v=t[0])==null?void 0:v.id,connector:p});return _&&C9e(m),_}async function s(m,p){try{return await i(m,p)}catch(b){if(!(b.name==="UserRejectedRequestError"||b.message==="Connection request reset. Please try again."))throw b}}const c=f9e(a.map(m=>{var p;return(p=m._wallets)!=null?p:[]})).sort((m,p)=>m.index-p.index),l=h9e(c,m=>m.id),d=iZ().map(m=>l[m]).filter(gP).slice(0,3),f=[...d,...c.filter(m=>!d.includes(m))],h=[];for(const m of f){if(!m)continue;const p=d.includes(m);h.push({...m,connect:()=>m.connector.showQrModal?s(m.id,m.connector):i(m.id,m.connector),desktopDownloadUrl:E9e(m),extensionDownloadUrl:v9e(m),groupName:m.groupName,mobileDownloadUrl:w9e(m),onConnecting:b=>m.connector.on("message",({type:v})=>v==="connecting"?b():void 0),ready:((e=m.installed)!=null?e:!0)&&m.connector.ready,recent:p,showWalletConnectModal:m.walletConnectModalConnector?()=>s(m.id,m.walletConnectModalConnector):void 0})}return h}var sZ=async()=>(await me(async()=>{const{default:e}=await import("./assets-26YY4GVD-BJE_4jQP.js");return{default:e}},[],import.meta.url)).default,S9e=()=>Ui(sZ),T9e=()=>A.createElement(nr,{background:"#d0d5de",borderRadius:"10",height:"48",src:sZ,width:"48"}),cZ=async()=>(await me(async()=>{const{default:e}=await import("./login-ZSMM5UYL-DT0rm6wp.js");return{default:e}},[],import.meta.url)).default,A9e=()=>Ui(cZ),D9e=()=>A.createElement(nr,{background:"#d0d5de",borderRadius:"10",height:"48",src:cZ,width:"48"}),Ae=A.forwardRef(({as:e="div",children:t,className:n,color:r,display:o,font:a="body",id:i,size:s="16",style:c,tabIndex:l,textAlign:u="inherit",weight:d="regular",testId:f},h)=>A.createElement($,{as:e,className:n,color:r,display:o,fontFamily:a,fontSize:s,fontWeight:d,id:i,ref:h,style:c,tabIndex:l,textAlign:u,testId:f},t));Ae.displayName="Text";var k9e={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function eo({disabled:e=!1,href:t,label:n,onClick:r,rel:o="noreferrer noopener",size:a="medium",target:i="_blank",testId:s,type:c="primary"}){const l=c==="primary",u=a!=="large",d=Cr(),f=e?"actionButtonSecondaryBackground":l?"accentColor":u?"actionButtonSecondaryBackground":null,{fontSize:h,height:m,paddingX:p,paddingY:b}=k9e[a],v=!d||!u;return A.createElement($,{...t?e?{}:{as:"a",href:t,rel:o,target:i}:{as:"button",type:"button"},onClick:e?void 0:r,...v?{borderColor:d&&!u&&!l?"actionButtonBorderMobile":"actionButtonBorder",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!e&&wr({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:p,paddingY:b,style:{willChange:"transform"},testId:s,textAlign:"center",transition:"transform",...f?{background:f}:{},...m?{height:m}:{}},A.createElement(Ae,{color:e?"modalTextSecondary":l?"accentColorForeground":"accentColor",size:h,weight:"bold"},n))}var j9e=()=>Cr()?A.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"},A.createElement("title",null,"Close"),A.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"})):A.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Close"),A.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"})),od=({"aria-label":e="Close",onClose:t})=>{const n=Cr();return A.createElement($,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:wr({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"},A.createElement(j9e,null))},lZ=async()=>(await me(async()=>{const{default:e}=await import("./sign-FZVB2CS6-DXQn9z7A.js");return{default:e}},[],import.meta.url)).default;function P9e({onClose:e,onCloseModal:t}){const{i18n:n}=S.useContext(ar),[{status:r,...o},a]=A.useState({status:"idle"}),i=TNe(),s=S.useCallback(async()=>{try{const m=await i.getNonce();a(p=>({...p,nonce:m}))}catch{a(m=>({...m,errorMessage:n.t("sign_in.message.preparing_error"),status:"idle"}))}},[i,n.t]),c=S.useRef(!1);A.useEffect(()=>{c.current||(c.current=!0,s())},[s]);const l=Cr(),{address:u}=tn(),{chain:d}=So(),{signMessageAsync:f}=WEe(),h=async()=>{try{const m=d==null?void 0:d.id,{nonce:p}=o;if(!u||!m||!p)return;a(g=>({...g,errorMessage:void 0,status:"signing"}));const b=i.createMessage({address:u,chainId:m,nonce:p});let v;try{v=await f({message:i.getMessageBody({message:b})})}catch(g){return g instanceof dr?a(w=>({...w,status:"idle"})):a(w=>({...w,errorMessage:n.t("sign_in.signature.signing_error"),status:"idle"}))}a(g=>({...g,status:"verifying"}));try{if(await i.verify({message:b,signature:v})){t();return}throw new Error}catch{return a(g=>({...g,errorMessage:n.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{a({errorMessage:n.t("sign_in.signature.oops_error"),status:"idle"})}};return A.createElement($,{position:"relative"},A.createElement($,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},A.createElement(od,{onClose:e})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:l?"60px":"36px"}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"6":"4",style:{maxWidth:l?320:280}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"32":"16"},A.createElement(nr,{height:40,src:lZ,width:40}),A.createElement(Ae,{color:"modalText",size:l?"20":"18",textAlign:"center",weight:"heavy"},n.t("sign_in.label"))),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"16":"12"},A.createElement(Ae,{color:"modalTextSecondary",size:l?"16":"14",textAlign:"center"},n.t("sign_in.description")),r==="idle"&&o.errorMessage?A.createElement(Ae,{color:"error",size:l?"16":"14",textAlign:"center",weight:"bold"},o.errorMessage):null)),A.createElement($,{alignItems:l?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},A.createElement(eo,{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?A.createElement(eo,{label:"Cancel",onClick:e,size:"large",type:"secondary"}):A.createElement($,{as:"button",borderRadius:"full",className:wr({active:"shrink",hover:"grow"}),display:"block",onClick:e,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"closeButton",size:l?"16":"14",weight:"bold"},n.t("sign_in.message.cancel"))))))}function I9e(){const e=x6(),t=S6(),n=_6()==="unauthenticated",r=S.useCallback(()=>{Ui(...t.map(o=>o.iconUrl),...e.map(o=>o.iconUrl).filter(gP)),Cr()||(S9e(),A9e()),n&&Ui(lZ)},[t,e,n]);S.useEffect(()=>{r()},[r])}var uZ="WALLETCONNECT_DEEPLINK_CHOICE";function O9e({mobileUri:e,name:t}){localStorage.setItem(uZ,JSON.stringify({href:e.split("?")[0],name:t}))}function R9e(){localStorage.removeItem(uZ)}var dZ=S.createContext(void 0),WD="data-rk",fZ=e=>({[WD]:e||""}),N9e=e=>{if(e&&!/^[a-zA-Z0-9_]+$/.test(e))throw new Error(`Invalid ID: ${e}`);return e?`[${WD}="${e}"]`:`[${WD}]`},B9e=()=>{const e=S.useContext(dZ);return fZ(e)},F9e=QY();function M9e({appInfo:e,avatar:t,chains:n,children:r,coolMode:o=!1,id:a,initialChain:i,locale:s,modalSize:c=vb.WIDE,showRecentTransactions:l=!1,theme:u=F9e}){if(I9e(),d9e(),tn({onDisconnect:R9e}),typeof u=="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 d=N9e(a),f={...nZ,...e},h=t??GJ;return A.createElement(KNe,{chains:n,initialChain:i},A.createElement(s9e,null,A.createElement(HNe,{locale:s},A.createElement(rZ.Provider,{value:o},A.createElement(c9e,{modalSize:c},A.createElement(vP.Provider,{value:l},A.createElement(o9e,null,A.createElement(VJ.Provider,{value:h},A.createElement(Hm.Provider,{value:f},A.createElement(dZ.Provider,{value:a},A.createElement(XNe,null,A.createElement(XBe,null,u?A.createElement("div",{...fZ(a)},A.createElement("style",{dangerouslySetInnerHTML:{__html:[`${d}{${RF("lightMode"in u?u.lightMode:u)}}`,"darkMode"in u?`@media(prefers-color-scheme:dark){${d}{${RF(u.darkMode,{extends:u.lightMode})}}}`:null].join("")}}),r):r))))))))))))}var L9e="_9pm4ki5 ju367va ju367v15 ju367v8r",U9e="_9pm4ki3 ju367v9h ju367vb3 ju367va ju367v2q ju367v8q",NF=(e,t)=>{const n=e.querySelectorAll("button:not(:disabled), a[href]");n.length!==0&&n[t==="end"?n.length-1:0].focus()};function $9e(e){const t=S.useRef(null);return S.useEffect(()=>{const n=document.activeElement;return()=>{var r;(r=n.focus)==null||r.call(n)}},[]),S.useEffect(()=>{if(t.current){const n=t.current.querySelector("[data-auto-focus]");n?n.focus():t.current.focus()}},[]),A.createElement(A.Fragment,null,A.createElement("div",{onFocus:S.useCallback(()=>t.current&&NF(t.current,"end"),[]),tabIndex:0}),A.createElement("div",{ref:t,style:{outline:"none"},tabIndex:-1,...e}),A.createElement("div",{onFocus:S.useCallback(()=>t.current&&NF(t.current,"start"),[]),tabIndex:0}))}var z9e=e=>e.stopPropagation();function ME({children:e,onClose:t,open:n,titleId:r}){S.useEffect(()=>{const l=u=>n&&u.key==="Escape"&&t();return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[n,t]);const[o,a]=S.useState(!0);S.useEffect(()=>{a(getComputedStyle(window.document.body).overflow!=="hidden")},[]);const i=S.useCallback(()=>t(),[t]),s=B9e(),c=Cr();return A.createElement(A.Fragment,null,n?Fs.createPortal(A.createElement(sQ,{enabled:o},A.createElement($,{...s},A.createElement($,{...s,alignItems:c?"flex-end":"center","aria-labelledby":r,"aria-modal":!0,className:U9e,onClick:i,position:"fixed",role:"dialog"},A.createElement($9e,{className:L9e,onClick:z9e,role:"document"},e)))),document.body):null)}var H9e="_1ckjpok7",q9e="_1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",W9e="_1ckjpok4 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",G9e="_1ckjpok6 ju367vq",V9e="_1ckjpok3 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",K9e="_1ckjpok2 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r";function LE({bottomSheetOnMobile:e=!1,children:t,marginTop:n,padding:r="16",paddingBottom:o,wide:a=!1}){const i=Cr(),c=S.useContext(C6)===vb.COMPACT;return A.createElement($,{marginTop:n},A.createElement($,{className:[a?i?K9e:c?W9e:V9e:q9e,i?G9e:null,i&&e?H9e:null].join(" ")},A.createElement($,{padding:r,paddingBottom:o??r},t)))}var BF=["k","m","b","t"];function Tv(e,t=1){return e.toString().replace(new RegExp(`(.+\\.\\d{${t}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function hZ(e){if(e<1)return Tv(e,3);if(e<10**2)return Tv(e,2);if(e<10**4)return new Intl.NumberFormat().format(parseFloat(Tv(e,1)));const t=10**1;let n=String(e);for(let r=BF.length-1;r>=0;r--){const o=10**((r+1)*3);if(o<=e){e=e*t/o/t,n=Tv(e,1)+BF[r];break}}return n}function mZ(e){return e.length<8?e:`${e.substring(0,4)}…${e.substring(e.length-4)}`}function pZ(e){const t=e.split("."),n=t.pop();return t.join(".").length>24?`${t.join(".").substring(0,24)}...`:`${t.join(".")}.${n}`}var Y9e=()=>A.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Copied"),A.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"})),Q9e=()=>A.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Copy"),A.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"})),X9e=()=>A.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Disconnect"),A.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 J9e(){const e=eZ(),{address:t}=tn(),n=bP();return S.useCallback(()=>{if(!t||!n)throw new Error("No address or chain ID found");e.clearTransactions(t,n)},[e,t,n])}var gZ=e=>{var t,n;return(n=(t=e==null?void 0:e.blockExplorers)==null?void 0:t.default)==null?void 0:n.url},yZ=()=>A.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Link"),A.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"})),Z9e=()=>A.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Cancel"),A.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"})),eBe=()=>A.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Success"),A.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"})),tBe=e=>{switch(e){case"pending":return _g;case"confirmed":return eBe;case"failed":return Z9e;default:return _g}};function nBe({tx:e}){const t=Cr(),n=tBe(e.status),r=e.status==="failed"?"error":"accentColor",{chain:o}=So(),a=e.status==="confirmed"?"Confirmed":e.status==="failed"?"Failed":"Pending",i=gZ(o);return A.createElement(A.Fragment,null,A.createElement($,{...i?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:wr({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"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:t?"16":"14"},A.createElement($,{color:r},A.createElement(n,null)),A.createElement($,{display:"flex",flexDirection:"column",gap:t?"3":"1"},A.createElement($,null,A.createElement(Ae,{color:"modalText",font:"body",size:t?"16":"14",weight:"bold"},e==null?void 0:e.description)),A.createElement($,null,A.createElement(Ae,{color:e.status==="pending"?"modalTextSecondary":r,font:"body",size:"14",weight:t?"medium":"regular"},a)))),i&&A.createElement($,{alignItems:"center",color:"modalTextDim",display:"flex"},A.createElement(yZ,null))))}var rBe=3;function oBe({address:e}){const t=tZ(),n=J9e(),{chain:r}=So(),o=gZ(r),a=t.slice(0,rBe),i=a.length>0,s=Cr(),{appName:c}=S.useContext(Hm),{i18n:l}=S.useContext(ar);return A.createElement(A.Fragment,null,A.createElement($,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:s?"8":"18"},i&&A.createElement($,{paddingBottom:s?"4":"0",paddingTop:"8",paddingX:s?"12":"6"},A.createElement($,{display:"flex",justifyContent:"space-between"},A.createElement(Ae,{color:"modalTextSecondary",size:s?"16":"14",weight:"semibold"},l.t("profile.transactions.recent.title")),A.createElement($,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},A.createElement($,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:wr({active:"shrink"}),onClick:n,paddingX:s?"8":"12",paddingY:s?"4":"5",transition:"default",type:"button"},A.createElement(Ae,{color:"modalTextSecondary",size:s?"16":"14",weight:"semibold"},l.t("profile.transactions.clear.label")))))),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},i?a.map(u=>A.createElement(nBe,{key:u.hash,tx:u})):A.createElement(A.Fragment,null,A.createElement($,{padding:s?"12":"8"},A.createElement(Ae,{color:"modalTextDim",size:s?"16":"14",weight:s?"medium":"bold"},c?l.t("profile.transactions.description",{appName:c}):l.t("profile.transactions.description_fallback"))),s&&A.createElement($,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),o&&A.createElement($,{paddingBottom:"18",paddingX:s?"8":"18"},A.createElement($,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:wr({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",...s?{paddingLeft:"12"}:{}},A.createElement(Ae,{color:"modalText",font:"body",size:s?"16":"14",weight:s?"semibold":"bold"},l.t("profile.explorer.label")),A.createElement(yZ,null))))}function FF({action:e,icon:t,label:n,testId:r,url:o}){const a=Cr();return A.createElement($,{...o?{as:"a",href:o,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...a?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:wr({active:"shrinkSm",hover:a?void 0:"grow"}),display:"flex",onClick:e,padding:a?"6":"8",style:{willChange:"transform"},testId:r,transition:"default",width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},A.createElement($,{color:"modalText",height:"max"},t),A.createElement($,null,A.createElement(Ae,{color:"modalText",size:a?"12":"13",weight:"semibold"},n))))}function aBe({address:e,ensAvatar:t,ensName:n,onClose:r,onDisconnect:o}){const a=S.useContext(vP),{data:i}=FY({address:e}),[s,c]=S.useState(!1),l=S.useCallback(()=>{e&&(navigator.clipboard.writeText(e),c(!0))},[e]);if(S.useEffect(()=>{if(s){const b=setTimeout(()=>{c(!1)},1500);return()=>clearTimeout(b)}},[s]),!e)return null;const u=n?pZ(n):mZ(e),d=i==null?void 0:i.formatted,f=d?hZ(parseFloat(d)):void 0,h="rk_profile_title",m=Cr(),{i18n:p}=S.useContext(ar);return A.createElement(A.Fragment,null,A.createElement($,{display:"flex",flexDirection:"column"},A.createElement($,{background:"profileForeground",padding:"16"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:m?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},A.createElement($,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},A.createElement(od,{onClose:r}))," ",A.createElement($,{marginTop:m?"24":"0"},A.createElement(LNe,{address:e,imageUrl:t,size:m?82:74})),A.createElement($,{display:"flex",flexDirection:"column",gap:m?"4":"0",textAlign:"center"},A.createElement($,{textAlign:"center"},A.createElement(Ae,{as:"h1",color:"modalText",id:h,size:m?"20":"18",weight:"heavy"},u)),i&&A.createElement($,{textAlign:"center"},A.createElement(Ae,{as:"h1",color:"modalTextSecondary",id:h,size:m?"16":"14",weight:"semibold"},f," ",i.symbol)))),A.createElement($,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},A.createElement(FF,{action:l,icon:s?A.createElement(Y9e,null):A.createElement(Q9e,null),label:s?p.t("profile.copy_address.copied"):p.t("profile.copy_address.label")}),A.createElement(FF,{action:o,icon:A.createElement(X9e,null),label:p.t("profile.disconnect.label"),testId:"disconnect-button"}))),a&&A.createElement(A.Fragment,null,A.createElement($,{background:"generalBorder",height:"1",marginTop:"-1"}),A.createElement($,null,A.createElement(oBe,{address:e})))))}function iBe({onClose:e,open:t}){const{address:n}=tn(),r=XJ(n),o=QJ(r),{disconnect:a}=Qx();return n?A.createElement(A.Fragment,null,n&&A.createElement(ME,{onClose:e,open:t,titleId:"rk_account_modal_title"},A.createElement(LE,{bottomSheetOnMobile:!0,padding:"0"},A.createElement(aBe,{address:n,ensAvatar:o,ensName:r,onClose:e,onDisconnect:a})))):null}var sBe=({size:e})=>A.createElement("svg",{fill:"none",height:e,viewBox:"0 0 28 28",width:e,xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Disconnect"),A.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"})),cBe="v9horb0",GD=A.forwardRef(({children:e,currentlySelected:t=!1,onClick:n,testId:r,...o},a)=>{const i=Cr();return A.createElement($,{as:"button",borderRadius:"menuButton",disabled:t,display:"flex",onClick:n,ref:a,testId:r,type:"button"},A.createElement($,{borderRadius:"menuButton",className:[i?cBe:void 0,!t&&wr({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))});GD.displayName="MenuButton";var lBe="_18dqw9x0",uBe="_18dqw9x1";function dBe({onClose:e,open:t}){var n;const{chain:r}=So(),{chains:o,pendingChainId:a,reset:i,switchNetwork:s}=Tl({onSettled:()=>{i(),e()}}),{i18n:c}=S.useContext(ar),{disconnect:l}=Qx(),u="rk_chain_modal_title",d=Cr(),f=(n=r==null?void 0:r.unsupported)!=null?n:!1,h=d?"36":"28",{appName:m}=S.useContext(Hm),p=x6();return!r||!(r!=null&&r.id)?null:A.createElement(ME,{onClose:e,open:t,titleId:u},A.createElement(LE,{bottomSheetOnMobile:!0,paddingBottom:"0"},A.createElement($,{display:"flex",flexDirection:"column",gap:"14"},A.createElement($,{display:"flex",flexDirection:"row",justifyContent:"space-between"},d&&A.createElement($,{width:"30"}),A.createElement($,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},A.createElement(Ae,{as:"h1",color:"modalText",id:u,size:d?"20":"18",weight:"heavy"},c.t("chains.title"))),A.createElement(od,{onClose:e})),f&&A.createElement($,{marginX:"8",textAlign:d?"center":"left"},A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},c.t("chains.wrong_network"))),A.createElement($,{className:d?uBe:lBe,display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},s?p.map(({iconBackground:b,iconUrl:v,id:g,name:w},_)=>{const C=o.find(T=>T.id===g);if(!C)return null;const x=C.id===(r==null?void 0:r.id),E=!x&&C.id===a;return A.createElement(S.Fragment,{key:C.id},A.createElement(GD,{currentlySelected:x,onClick:x?void 0:()=>s(C.id),testId:`chain-option-${C.id}`},A.createElement($,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:h},v&&A.createElement($,{height:"full",marginRight:"8"},A.createElement(nr,{alt:w??C.name,background:b,borderRadius:"full",height:h,src:v,width:h,testId:`chain-option-${C.id}-icon`})),A.createElement("div",null,w??C.name)),x&&A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},A.createElement(Ae,{color:"accentColorForeground",size:"14",weight:"medium"},c.t("chains.connected")),A.createElement($,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),E&&A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},A.createElement(Ae,{color:"modalText",size:"14",weight:"medium"},c.t("chains.confirm")),A.createElement($,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),d&&_l(),testId:"chain-option-disconnect"},A.createElement($,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:h},A.createElement($,{alignItems:"center",color:"error",height:h,justifyContent:"center",marginRight:"8"},A.createElement(sBe,{size:Number(h)})),A.createElement("div",null,c.t("chains.disconnect")))))))))))}function fBe(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 hBe="rk-latest-id";function mBe(e){localStorage.setItem(hBe,e)}var CP=({children:e,href:t})=>A.createElement($,{as:"a",color:"accentColor",href:t,rel:"noreferrer",target:"_blank"},e),SP=({children:e})=>A.createElement(Ae,{color:"modalTextSecondary",size:"12",weight:"medium"},e);function MF({compactModeEnabled:e=!1,getWallet:t}){const{disclaimer:n,learnMoreUrl:r}=S.useContext(Hm),{i18n:o}=S.useContext(ar);return A.createElement(A.Fragment,null,A.createElement($,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},A.createElement($,{marginBottom:"10"},!e&&A.createElement(Ae,{color:"modalText",size:"18",weight:"heavy"},o.t("intro.title"))),A.createElement($,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},A.createElement($,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},A.createElement(T9e,null)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},o.t("intro.digital_asset.title")),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},o.t("intro.digital_asset.description")))),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},A.createElement($,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},A.createElement(D9e,null)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},o.t("intro.login.title")),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},o.t("intro.login.description"))))),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},A.createElement(eo,{label:o.t("intro.get.label"),onClick:t}),A.createElement($,{as:"a",className:wr({active:"shrink",hover:"grow"}),display:"block",href:r,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},o.t("intro.learn_more.label")))),n&&!e&&A.createElement($,{marginBottom:"8",marginTop:"12",textAlign:"center"},A.createElement(n,{Link:CP,Text:SP}))))}var bZ=()=>A.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Back"),A.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"})),pBe=()=>A.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},A.createElement("title",null,"Info"),A.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"})),gBe=({"aria-label":e="Info",onClick:t})=>{const n=Cr();return A.createElement($,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:wr({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"},A.createElement(pBe,null))},vZ=e=>{const t=S.useRef(null),n=S.useContext(rZ),r=pP(e);return S.useEffect(()=>{if(n&&t.current&&r)return bBe(t.current,r)},[n,r]),t},yBe=()=>{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},LF=0;function bBe(e,t){LF++;const n=[15,20,25,35,45],r=35;let o=[],a=!1,i=0,s=0;const c=yBe();function l(){const _=n[Math.floor(Math.random()*n.length)],C=Math.random()*10,x=Math.random()*25,E=Math.random()*360,T=Math.random()*35*(Math.random()<=.5?-1:1),k=s-_/2,D=i-_/2,R=Math.random()<=.5?-1:1,F=document.createElement("div");F.innerHTML=``,F.setAttribute("style",["position:absolute","will-change:transform",`top:${k}px`,`left:${D}px`,`transform:rotate(${E}deg)`].join(";")),c.appendChild(F),o.push({direction:R,element:F,left:D,size:_,speedHorz:C,speedUp:x,spinSpeed:T,spinVal:E,top:k})}function u(){for(const _ of o)_.left=_.left-_.speedHorz*_.direction,_.top=_.top-_.speedUp,_.speedUp=Math.min(_.size,_.speedUp-1),_.spinVal=_.spinVal+_.spinSpeed,_.top>=Math.max(window.innerHeight,document.body.clientHeight)+_.size&&(o=o.filter(C=>C!==_),_.element.remove()),_.element.setAttribute("style",["position:absolute","will-change:transform",`top:${_.top}px`,`left:${_.left}px`,`transform:rotate(${_.spinVal}deg)`].join(";"))}let d;function f(){a&&o.length{var C,x;"touches"in _?(i=(C=_.touches)==null?void 0:C[0].clientX,s=(x=_.touches)==null?void 0:x[0].clientY):(i=_.clientX,s=_.clientY)},g=_=>{v(_),a=!0},w=()=>{a=!1};return e.addEventListener(b,v,{passive:!1}),e.addEventListener(m,g),e.addEventListener(p,w),e.addEventListener("mouseleave",w),()=>{e.removeEventListener(b,v),e.removeEventListener(m,g),e.removeEventListener(p,w),e.removeEventListener("mouseleave",w);const _=setInterval(()=>{d&&o.length===0&&(cancelAnimationFrame(d),clearInterval(_),--LF===0&&c.remove())},500)}}var vBe="g5kl0l0",wZ=({as:e="button",currentlySelected:t=!1,iconBackground:n,iconUrl:r,name:o,onClick:a,ready:i,recent:s,testId:c,...l})=>{const u=vZ(r),[d,f]=S.useState(!1),{i18n:h}=S.useContext(ar);return A.createElement($,{display:"flex",flexDirection:"column",onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),ref:u},A.createElement($,{as:e,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:t?void 0:[vBe,wr({active:"shrink"})],disabled:t,onClick:a,padding:"5",style:{willChange:"transform"},testId:c,transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...l},A.createElement($,{color:t?"accentColorForeground":"modalText",disabled:!i,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},A.createElement(nr,{background:n,...d?{}:{borderColor:"actionButtonBorder"},borderRadius:"6",height:"28",src:r,width:"28"}),A.createElement($,null,A.createElement($,{style:{marginTop:s?-2:void 0}},o),s&&A.createElement(Ae,{color:t?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},h.t("connect.recent")))))))};wZ.displayName="ModalSelection";var fT=(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=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),a=parseInt(n.substring(4,6),16);return t>1&&t<=100&&(t=t/100),`rgba(${r},${o},${a},${t})`},wBe=e=>e?[fT(e,.2),fT(e,.14),fT(e,.1)]:null,EBe=e=>/^#([0-9a-f]{3}){1,2}$/i.test(e),EZ=async()=>(await me(async()=>{const{default:e}=await import("./connect-XNDTNVUH-Rkfb_zm3.js");return{default:e}},[],import.meta.url)).default,_Be=()=>Ui(EZ),xBe=()=>A.createElement(nr,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:EZ,width:"48"}),_Z=async()=>(await me(async()=>{const{default:e}=await import("./create-PAJXJDV3-CO2P7llu.js");return{default:e}},[],import.meta.url)).default,xZ=()=>Ui(_Z),CBe=()=>A.createElement(nr,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:_Z,width:"48"}),CZ=async()=>(await me(async()=>{const{default:e}=await import("./refresh-5KGGHTJP-CHhFOl-t.js");return{default:e}},[],import.meta.url)).default,SBe=()=>Ui(CZ),TBe=()=>A.createElement(nr,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:CZ,width:"48"}),SZ=async()=>(await me(async()=>{const{default:e}=await import("./scan-HZBLXLM4-DxZfTx07.js");return{default:e}},[],import.meta.url)).default,TZ=()=>Ui(SZ),ABe=()=>A.createElement(nr,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:SZ,width:"48"}),DBe="_1vwt0cg0",kBe="_1vwt0cg2 ju367v7a ju367v7v",jBe="_1vwt0cg3",PBe="_1vwt0cg4",IBe=(e,t)=>{const n=Array.prototype.slice.call(wy.create(e,{errorCorrectionLevel:t}).modules.data,0),r=Math.sqrt(n.length);return n.reduce((o,a,i)=>(i%r===0?o.push([a]):o[o.length-1].push(a))&&o,[])};function AZ({ecl:e="M",logoBackground:t,logoMargin:n=10,logoSize:r=50,logoUrl:o,size:a=200,uri:i}){const s="20",c=a-parseInt(s,10)*2,l=S.useMemo(()=>{const f=[],h=IBe(i,e),m=c/h.length;[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:w,y:_})=>{const C=(h.length-7)*m*w,x=(h.length-7)*m*_;for(let E=0;E<3;E++)f.push(A.createElement("rect",{fill:E%2!==0?"white":"black",height:m*(7-E*2),key:`${E}-${w}-${_}`,rx:(E-2)*-5+(E===0?2:0),ry:(E-2)*-5+(E===0?2:0),width:m*(7-E*2),x:C+m*E,y:x+m*E}))});const b=Math.floor((r+25)/m),v=h.length/2-b/2,g=h.length/2+b/2-1;return h.forEach((w,_)=>{w.forEach((C,x)=>{h[_][x]&&(_<7&&x<7||_>h.length-8&&x<7||_<7&&x>h.length-8||_>v&&_v&&x{switch(EP()){case"Arc":return(await me(async()=>{const{default:t}=await import("./Arc-QDJFTGH2-kQUVOusT.js");return{default:t}},[],import.meta.url)).default;case"Brave":return(await me(async()=>{const{default:t}=await import("./Brave-YATE5BIM-Crgwi_gE.js");return{default:t}},[],import.meta.url)).default;case"Chrome":return(await me(async()=>{const{default:t}=await import("./Chrome-LGF33C3S-CKyHgdNL.js");return{default:t}},[],import.meta.url)).default;case"Edge":return(await me(async()=>{const{default:t}=await import("./Edge-K2JEGI5S-_s-lgiRS.js");return{default:t}},[],import.meta.url)).default;case"Firefox":return(await me(async()=>{const{default:t}=await import("./Firefox-NP5SYEK5-7GCpd7vS.js");return{default:t}},[],import.meta.url)).default;case"Opera":return(await me(async()=>{const{default:t}=await import("./Opera-KV54PXPA-7mn5oIb-.js");return{default:t}},[],import.meta.url)).default;case"Safari":return(await me(async()=>{const{default:t}=await import("./Safari-2QIYKJ4P-DQKkg1Bn.js");return{default:t}},[],import.meta.url)).default;default:return(await me(async()=>{const{default:t}=await import("./Browser-HN7O5MN7-DHqH2OSI.js");return{default:t}},[],import.meta.url)).default}},OBe=()=>Ui(DZ),kZ=async()=>{switch(xP()){case"Windows":return(await me(async()=>{const{default:t}=await import("./Windows-R3CKAIUV-PWNRgNSo.js");return{default:t}},[],import.meta.url)).default;case"macOS":return(await me(async()=>{const{default:t}=await import("./Macos-2KTZ2XLP-pPa2wwwq.js");return{default:t}},[],import.meta.url)).default;case"Linux":return(await me(async()=>{const{default:t}=await import("./Linux-NS2LQPT4-BSWfZXoy.js");return{default:t}},[],import.meta.url)).default;default:return(await me(async()=>{const{default:t}=await import("./Linux-NS2LQPT4-BSWfZXoy.js");return{default:t}},[],import.meta.url)).default}},RBe=()=>Ui(kZ);function NBe({getWalletDownload:e,compactModeEnabled:t}){const r=S6().splice(0,5),{i18n:o}=S.useContext(ar);return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},r==null?void 0:r.filter(a=>{var i;return a.extensionDownloadUrl||a.desktopDownloadUrl||a.qrCode&&((i=a.downloadUrls)==null?void 0:i.qrCode)}).map(a=>{const{downloadUrls:i,iconBackground:s,iconUrl:c,id:l,name:u,qrCode:d}=a,f=(i==null?void 0:i.qrCode)&&d,h=!!a.extensionDownloadUrl,m=(i==null?void 0:i.qrCode)&&h,p=(i==null?void 0:i.qrCode)&&!!a.desktopDownloadUrl;return A.createElement($,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:a.id,width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},A.createElement(nr,{background:s,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:c,width:"48"}),A.createElement($,{display:"flex",flexDirection:"column",gap:"2"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},u),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},m?o.t("get.mobile_and_extension.description"):p?o.t("get.mobile_and_desktop.description"):f?o.t("get.mobile.description"):h?o.t("get.extension.description"):null))),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(eo,{label:o.t("get.action.label"),onClick:()=>e(l),type:"secondary"})))})),A.createElement($,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},o.t("get.looking_for.title")),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},t?o.t("get.looking_for.desktop.compact_description"):o.t("get.looking_for.desktop.wide_description"))))}var hT="44";function BBe({changeWalletStep:e,compactModeEnabled:t,connectionError:n,onClose:r,qrCodeUri:o,reconnect:a,wallet:i}){var s;const{downloadUrls:c,iconBackground:l,iconUrl:u,name:d,qrCode:f,ready:h,showWalletConnectModal:m}=i,p=(s=i.desktop)==null?void 0:s.getUri,b=wP(),{i18n:v}=S.useContext(ar),g=!!i.extensionDownloadUrl,w=(c==null?void 0:c.qrCode)&&g,_=(c==null?void 0:c.qrCode)&&!!i.desktopDownloadUrl,C=f&&o,x=m?{description:t?v.t("connect.walletconnect.description.compact"):v.t("connect.walletconnect.description.full"),label:v.t("connect.walletconnect.open.label"),onClick:()=>{r(),m()}}:C?{description:v.t("connect.secondary_action.get.description",{wallet:d}),label:v.t("connect.secondary_action.get.label"),onClick:()=>e(w||_?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:E}=oZ(),T=E&&E<768;return S.useEffect(()=>{OBe(),RBe()},[]),A.createElement($,{display:"flex",flexDirection:"column",height:"full",width:"full"},C?A.createElement($,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},A.createElement(AZ,{logoBackground:l,logoSize:t?60:72,logoUrl:u,size:t?318:T?Math.max(280,Math.min(E-308,382)):382,uri:o})):A.createElement($,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},A.createElement($,{borderRadius:"10",height:hT,overflow:"hidden"},A.createElement(nr,{height:hT,src:u,width:hT})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},A.createElement(Ae,{color:"modalText",size:"18",weight:"bold"},h?v.t("connect.status.opening",{wallet:d}):g?v.t("connect.status.not_installed",{wallet:d}):v.t("connect.status.not_available",{wallet:d})),!h&&g?A.createElement($,{paddingTop:"20"},A.createElement(eo,{href:i.extensionDownloadUrl,label:v.t("connect.secondary_action.install.label"),type:"secondary"})):null,h&&!C&&A.createElement(A.Fragment,null,A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},A.createElement(Ae,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},v.t("connect.status.confirm"))),A.createElement($,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},n?A.createElement(eo,{label:v.t("connect.secondary_action.retry.label"),onClick:p?async()=>{const k=await p();window.open(k,b?"_blank":"_self")}:()=>{a(i)}}):A.createElement($,{color:"modalTextSecondary"},A.createElement(_g,null))))))),A.createElement($,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},h&&x&&A.createElement(A.Fragment,null,A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},x.description),A.createElement(eo,{label:x.label,onClick:x.onClick,type:"secondary"}))))}var mT=({actionLabel:e,description:t,iconAccent:n,iconBackground:r,iconUrl:o,isCompact:a,onAction:i,title:s,url:c,variant:l})=>{const u=l==="browser",d=!u&&n&&wBe(n);return A.createElement($,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:a?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},A.createElement($,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),u&&A.createElement($,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},A.createElement($,{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)"}},A.createElement($,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},A.createElement(nr,{borderRadius:"full",height:"200",src:o,width:"200"})),A.createElement($,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},A.createElement(nr,{borderRadius:"full",height:"200",src:o,width:"200"})))),!u&&d&&A.createElement($,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},A.createElement($,{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}}),A.createElement($,{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}})),A.createElement($,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},A.createElement($,null,A.createElement(nr,{height:"60",src:o,width:"60",...r?{background:r,borderColor:"generalBorder",borderRadius:"10"}:null})),A.createElement($,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},s),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},t),A.createElement($,{marginTop:"14",width:"max"},A.createElement(eo,{href:c,label:e,onClick:i,size:"medium"})))))};function FBe({changeWalletStep:e,wallet:t}){const n=EP(),r=xP(),a=S.useContext(C6)==="compact",{desktop:i,desktopDownloadUrl:s,extension:c,extensionDownloadUrl:l,mobileDownloadUrl:u}=t,{i18n:d}=S.useContext(ar);return S.useEffect(()=>{xZ(),TZ(),SBe(),_Be()},[]),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},l&&A.createElement(mT,{actionLabel:d.t("get_options.extension.download.label",{browser:n}),description:d.t("get_options.extension.description"),iconUrl:DZ,isCompact:a,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"}),s&&A.createElement(mT,{actionLabel:d.t("get_options.desktop.download.label",{platform:r}),description:d.t("get_options.desktop.description"),iconUrl:kZ,isCompact:a,onAction:()=>e(i!=null&&i.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:d.t("get_options.desktop.title",{wallet:t.name,platform:r}),url:s,variant:"desktop"}),u&&A.createElement(mT,{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:a,onAction:()=>{e("DOWNLOAD")},title:d.t("get_options.mobile.title",{wallet:t.name}),variant:"app"})))}function MBe({changeWalletStep:e,wallet:t}){const{downloadUrls:n,qrCode:r}=t,{i18n:o}=S.useContext(ar);return S.useEffect(()=>{xZ(),TZ()},[]),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},A.createElement($,{style:{maxWidth:220,textAlign:"center"}},A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"semibold"},o.t("get_mobile.description"))),A.createElement($,{height:"full"},n!=null&&n.qrCode?A.createElement(AZ,{logoSize:0,size:268,uri:n.qrCode}):null),A.createElement($,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},A.createElement(eo,{label:o.t("get_mobile.continue.label"),onClick:()=>e(r!=null&&r.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var Bh={connect:()=>A.createElement(xBe,null),create:()=>A.createElement(CBe,null),install:e=>A.createElement(nr,{background:e.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:e.iconUrl,width:"48"}),refresh:()=>A.createElement(TBe,null),scan:()=>A.createElement(ABe,null)};function LBe({connectWallet:e,wallet:t}){var n,r,o,a;const{i18n:i}=S.useContext(ar);return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},A.createElement($,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(r=(n=t==null?void 0:t.qrCode)==null?void 0:n.instructions)==null?void 0:r.steps.map((s,c)=>{var l;return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:c},A.createElement($,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(l=Bh[s.step])==null?void 0:l.call(Bh,t)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},i.t(s.title)),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t(s.description))))})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},A.createElement(eo,{label:i.t("get_instructions.mobile.connect.label"),onClick:()=>e(t)}),A.createElement($,{as:"a",className:wr({active:"shrink",hover:"grow"}),display:"block",href:(a=(o=t==null?void 0:t.qrCode)==null?void 0:o.instructions)==null?void 0:a.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},i.t("get_instructions.mobile.learn_more.label")))))}function UBe({wallet:e}){var t,n,r,o;const{i18n:a}=S.useContext(ar);return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},A.createElement($,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(n=(t=e==null?void 0:e.extension)==null?void 0:t.instructions)==null?void 0:n.steps.map((i,s)=>{var c;return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:s},A.createElement($,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(c=Bh[i.step])==null?void 0:c.call(Bh,e)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},a.t(i.title)),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t(i.description))))})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},A.createElement(eo,{label:a.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),A.createElement($,{as:"a",className:wr({active:"shrink",hover:"grow"}),display:"block",href:(o=(r=e==null?void 0:e.extension)==null?void 0:r.instructions)==null?void 0:o.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},a.t("get_instructions.extension.learn_more.label")))))}function $Be({connectWallet:e,wallet:t}){var n,r,o,a;const{i18n:i}=S.useContext(ar);return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},A.createElement($,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(r=(n=t==null?void 0:t.desktop)==null?void 0:n.instructions)==null?void 0:r.steps.map((s,c)=>{var l;return A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:c},A.createElement($,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(l=Bh[s.step])==null?void 0:l.call(Bh,t)),A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},A.createElement(Ae,{color:"modalText",size:"14",weight:"bold"},i.t(s.title)),A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t(s.description))))})),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},A.createElement(eo,{label:i.t("get_instructions.desktop.connect.label"),onClick:()=>e(t)}),A.createElement($,{as:"a",className:wr({active:"shrink",hover:"grow"}),display:"block",href:(a=(o=t==null?void 0:t.desktop)==null?void 0:o.instructions)==null?void 0:a.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},i.t("get_instructions.desktop.learn_more.label")))))}function zBe({onClose:e}){const t="rk_connect_title",n=wP(),[r,o]=S.useState(),[a,i]=S.useState(),[s,c]=S.useState(),l=!!(a!=null&&a.qrCode)&&s,[u,d]=S.useState(!1),h=S.useContext(C6)===vb.COMPACT,{disclaimer:m}=S.useContext(Hm),{i18n:p}=S.useContext(ar),b=S.useRef(!1),{connector:v}=S.useContext(bb),g=S6().filter(L=>L.ready||!!L.extensionDownloadUrl).sort((L,X)=>L.groupIndex-X.groupIndex),w=fBe(g,L=>L.groupName),_=["Recommended","Other","Popular","More","Others"];S.useEffect(()=>{v&&!b.current&&(k("CONNECT"),x(v),b.current=!0)},[v]);const C=L=>{var X,J,U;if(d(!1),L.ready){(J=(X=L==null?void 0:L.connect)==null?void 0:X.call(L))==null||J.catch(()=>{d(!0)});const G=(U=L.desktop)==null?void 0:U.getUri;G&&setTimeout(async()=>{const Z=await G();window.open(Z,n?"_blank":"_self")},0)}},x=L=>{var X;if(mBe(L.id),C(L),o(L.id),L.ready){let J=!1;(X=L==null?void 0:L.onConnecting)==null||X.call(L,async()=>{var U,G;if(J)return;J=!0;const Z=g.find(te=>L.id===te.id),ae=await((U=Z==null?void 0:Z.qrCode)==null?void 0:U.getUri());c(ae),setTimeout(()=>{i(Z),k("CONNECT")},ae?0:50);const ne=await(Z==null?void 0:Z.connector.getProvider()),ie=(G=ne==null?void 0:ne.signer)==null?void 0:G.connection;if(ie!=null&&ie.on&&(ie!=null&&ie.off)){const te=()=>{ee(),x(L)},ee=()=>{ie.off("close",te),ie.off("open",ee)};ie.on("close",te),ie.on("open",ee)}})}else i(L),k(L!=null&&L.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT")},E=L=>{var X;o(L);const J=g.find(ae=>L===ae.id),U=(X=J==null?void 0:J.downloadUrls)==null?void 0:X.qrCode,G=!!(J!=null&&J.desktopDownloadUrl),Z=!!(J!=null&&J.extensionDownloadUrl);i(J),k(U&&(Z||G)?"DOWNLOAD_OPTIONS":U?"DOWNLOAD":G?"INSTRUCTIONS_DESKTOP":"INSTRUCTIONS_EXTENSION")},T=()=>{o(void 0),i(void 0),c(void 0)},k=(L,X=!1)=>{X&&L==="GET"&&D==="GET"?T():!X&&L==="GET"?R("GET"):!X&&L==="CONNECT"&&R("CONNECT"),B(L)},[D,R]=S.useState("NONE"),[F,B]=S.useState("NONE");let j=null,P=null,O=null,I;S.useEffect(()=>{d(!1)},[F,a]);const M=!!(!!(a!=null&&a.extensionDownloadUrl)&&(a!=null&&a.mobileDownloadUrl));switch(F){case"NONE":j=A.createElement(MF,{getWallet:()=>k("GET")});break;case"LEARN_COMPACT":j=A.createElement(MF,{compactModeEnabled:h,getWallet:()=>k("GET")}),P=p.t("intro.title"),O="NONE";break;case"GET":j=A.createElement(NBe,{getWalletDownload:E,compactModeEnabled:h}),P=p.t("get.title"),O=h?"LEARN_COMPACT":"NONE";break;case"CONNECT":j=a&&A.createElement(BBe,{changeWalletStep:k,compactModeEnabled:h,connectionError:u,onClose:e,qrCodeUri:s,reconnect:C,wallet:a}),P=l&&(a.name==="WalletConnect"?p.t("connect_scan.fallback_title"):p.t("connect_scan.title",{wallet:a.name})),O=h?v?null:"NONE":null,I=h?v?()=>{}:T:()=>{};break;case"DOWNLOAD_OPTIONS":j=a&&A.createElement(FBe,{changeWalletStep:k,wallet:a}),P=a&&p.t("get_options.short_title",{wallet:a.name}),O=v?"CONNECT":h?"NONE":null;break;case"DOWNLOAD":j=a&&A.createElement(MBe,{changeWalletStep:k,wallet:a}),P=a&&p.t("get_mobile.title",{wallet:a.name}),O=M?"DOWNLOAD_OPTIONS":D;break;case"INSTRUCTIONS_MOBILE":j=a&&A.createElement(LBe,{connectWallet:x,wallet:a}),P=a&&p.t("get_options.title",{wallet:h&&a.shortName||a.name}),O="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":j=a&&A.createElement(UBe,{wallet:a}),P=a&&p.t("get_options.title",{wallet:h&&a.shortName||a.name}),O="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":j=a&&A.createElement($Be,{connectWallet:x,wallet:a}),P=a&&p.t("get_options.title",{wallet:h&&a.shortName||a.name}),O="DOWNLOAD_OPTIONS";break}return A.createElement($,{display:"flex",flexDirection:"row",style:{maxHeight:h?468:504}},(h?F==="NONE":!0)&&A.createElement($,{className:h?PBe:jBe,display:"flex",flexDirection:"column",marginTop:"16"},A.createElement($,{display:"flex",justifyContent:"space-between"},h&&m&&A.createElement($,{marginLeft:"16",width:"28"},A.createElement(gBe,{onClick:()=>k("LEARN_COMPACT")})),h&&!m&&A.createElement($,{marginLeft:"16",width:"28"}),A.createElement($,{marginLeft:h?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},A.createElement(Ae,{as:"h1",color:"modalText",id:t,size:"18",weight:"heavy",testId:"connect-header-label"},p.t("connect.title"))),h&&A.createElement($,{marginRight:"16"},A.createElement(od,{onClose:e}))),A.createElement($,{className:kBe,paddingBottom:"18"},Object.entries(w).map(([L,X],J)=>X.length>0&&A.createElement(S.Fragment,{key:J},L?A.createElement($,{marginBottom:"8",marginTop:"16",marginX:"6"},A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"bold"},_.includes(L)?p.t(`connector_group.${L.toLowerCase()}`):L)):null,A.createElement($,{display:"flex",flexDirection:"column",gap:"4"},X.map(U=>A.createElement(wZ,{currentlySelected:U.id===r,iconBackground:U.iconBackground,iconUrl:U.iconUrl,key:U.id,name:U.name,onClick:()=>x(U),ready:U.ready,recent:U.recent,testId:`wallet-option-${U.id}`})))))),h&&A.createElement(A.Fragment,null,A.createElement($,{background:"generalBorder",height:"1",marginTop:"-1"}),m?A.createElement($,{paddingX:"24",paddingY:"16",textAlign:"center"},A.createElement(m,{Link:CP,Text:SP})):A.createElement($,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},A.createElement($,{paddingY:"4"},A.createElement(Ae,{color:"modalTextSecondary",size:"14",weight:"medium"},p.t("connect.new_to_ethereum.description"))),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},A.createElement($,{className:wr({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>k("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},A.createElement(Ae,{color:"accentColor",size:"14",weight:"bold"},p.t("connect.new_to_ethereum.learn_more.label"))))))),(h?F!=="NONE":!0)&&A.createElement(A.Fragment,null,!h&&A.createElement($,{background:"generalBorder",minWidth:"1",width:"1"}),A.createElement($,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},A.createElement($,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},A.createElement($,{width:"28"},O&&A.createElement($,{as:"button",className:wr({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{O&&k(O,!0),I==null||I()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},A.createElement(bZ,null))),A.createElement($,{display:"flex",justifyContent:"center",style:{flexGrow:1}},P&&A.createElement(Ae,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},P)),A.createElement(od,{onClose:e})),A.createElement($,{display:"flex",flexDirection:"column",style:{minHeight:h?396:432}},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},j)))))}var HBe="_1am14412",qBe="_1am14410",WBe="_1am14413",GBe=({wallet:e})=>A.createElement("svg",{className:WBe,viewBox:"0 0 86 86",width:"86",height:"86"},A.createElement("title",null,"Loading"),A.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:`${160/3} ${2*160/3}`,strokeDashoffset:160,className:HBe,style:{stroke:(e==null?void 0:e.iconAccent)||"#0D3887"}}));function jZ({onClose:e,wallet:t,connecting:n}){const{connect:r,connector:o,iconBackground:a,iconUrl:i,id:s,mobile:c,name:l,onConnecting:u,ready:d,shortName:f}=t,h=c==null?void 0:c.getUri,m=vZ(i),p=S.useRef(!1),{i18n:b}=S.useContext(ar),v=S.useCallback(async()=>{var g;s==="walletConnect"&&(e==null||e()),(g=r==null?void 0:r())==null||g.catch(()=>{});let w=!1;u==null||u(async()=>{if(!w&&(w=!0,h)){const _=await h();if((o.id==="walletConnect"||o.id==="walletConnectLegacy")&&O9e({mobileUri:_,name:l}),_.startsWith("http")){const C=document.createElement("a");C.href=_,C.target="_blank",C.rel="noreferrer noopener",C.click()}else window.location.href=_}})},[o,r,h,u,e,l,s]);return S.useEffect(()=>{n&&!p.current&&(v(),p.current=!0)},[n,v]),A.createElement($,{as:"button",color:d?"modalText":"modalTextSecondary",disabled:!d,fontFamily:"body",key:s,onClick:v,ref:m,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${s}`,type:"button",width:"full"},A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},A.createElement($,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},n?A.createElement(GBe,{wallet:t}):null,A.createElement(nr,{background:a,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:i,width:"60"})),n?null:A.createElement($,{display:"flex",flexDirection:"column",textAlign:"center"},A.createElement(Ae,{as:"h2",color:t.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},A.createElement($,{as:"span",position:"relative"},f??l,!t.ready&&" (unsupported)")),t.recent&&A.createElement(Ae,{color:"accentColor",size:"12",weight:"medium"},b.t("connect.recent")))))}function VBe({onClose:e}){var t;const n="rk_connect_title",r=S6(),{disclaimer:o,learnMoreUrl:a}=S.useContext(Hm);let i=null,s=null,c=!1,l=null;const[u,d]=S.useState("CONNECT"),{i18n:f}=S.useContext(ar),h=Ll();switch(u){case"CONNECT":{i=f.t("connect.title"),c=!0,s=A.createElement($,null,A.createElement($,{background:"profileForeground",className:qBe,display:"flex",paddingBottom:"20",paddingTop:"6"},A.createElement($,{display:"flex",style:{margin:"0 auto"}},r.filter(m=>m.ready).map(m=>A.createElement($,{key:m.id,paddingX:"20"},A.createElement($,{width:"60"},A.createElement(jZ,{onClose:e,wallet:m})))))),A.createElement($,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},A.createElement($,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},A.createElement(Ae,{color:"modalText",size:"16",weight:"bold"},f.t("intro.title")),A.createElement(Ae,{color:"modalTextSecondary",size:"16"},f.t("intro.description")))),A.createElement($,{paddingTop:"32",paddingX:"20"},A.createElement($,{display:"flex",gap:"14",justifyContent:"center"},A.createElement(eo,{label:f.t("intro.get.label"),onClick:()=>d("GET"),size:"large",type:"secondary"}),A.createElement(eo,{href:a,label:f.t("intro.learn_more.label"),size:"large",type:"secondary"}))),o&&A.createElement($,{marginTop:"28",marginX:"32",textAlign:"center"},A.createElement(o,{Link:CP,Text:SP})));break}case"GET":{i=f.t("get.title"),l="CONNECT";const m=(t=r==null?void 0:r.filter(p=>{var b,v,g;return((b=p.downloadUrls)==null?void 0:b.ios)||((v=p.downloadUrls)==null?void 0:v.android)||((g=p.downloadUrls)==null?void 0:g.mobile)}))==null?void 0:t.splice(0,3);s=A.createElement($,null,A.createElement($,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},m.map((p,b)=>{const{downloadUrls:v,iconBackground:g,iconUrl:w,name:_}=p;return!(v!=null&&v.ios)&&!(v!=null&&v.android)&&!(v!=null&&v.mobile)?null:A.createElement($,{display:"flex",gap:"16",key:p.id,paddingX:"20",width:"full"},A.createElement($,{style:{minHeight:48,minWidth:48}},A.createElement(nr,{background:g,borderColor:"generalBorder",borderRadius:"10",height:"48",src:w,width:"48"})),A.createElement($,{display:"flex",flexDirection:"column",width:"full"},A.createElement($,{alignItems:"center",display:"flex",height:"48"},A.createElement($,{width:"full"},A.createElement(Ae,{color:"modalText",size:"18",weight:"bold"},_)),A.createElement(eo,{href:(h?v==null?void 0:v.ios:v==null?void 0:v.android)||(v==null?void 0:v.mobile),label:f.t("get.action.label"),size:"small",type:"secondary"})),bd(l),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},A.createElement(bZ,null))),A.createElement($,{marginTop:"4",textAlign:"center",width:"full"},A.createElement(Ae,{as:"h1",color:"modalText",id:n,size:"20",weight:"bold"},i)),A.createElement($,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},A.createElement($,{style:{marginBottom:-20,marginTop:-20}},A.createElement(od,{onClose:e}))))),A.createElement($,{display:"flex",flexDirection:"column"},s))}var KBe=({onClose:e})=>{const{connector:t}=S.useContext(bb),{i18n:n}=S.useContext(ar),r=(t==null?void 0:t.name)||"";return A.createElement($,null,A.createElement($,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},A.createElement($,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},A.createElement(od,{onClose:e})),A.createElement($,{width:"60"},A.createElement(jZ,{onClose:e,wallet:t,connecting:!0})),A.createElement($,{marginTop:"20"},A.createElement(Ae,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},n.t("connect.status.connect_mobile",{wallet:r}))),A.createElement($,{maxWidth:"full",marginTop:"8"},A.createElement(Ae,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},n.t("connect.status.confirm_mobile",{wallet:r})))))};function YBe({onClose:e}){const{connector:t}=S.useContext(bb);return Cr()?t?A.createElement(KBe,{onClose:e}):A.createElement(VBe,{onClose:e}):A.createElement(zBe,{onClose:e})}function QBe({onClose:e,open:t}){const n="rk_connect_title",r=HJ(),{disconnect:o}=Qx(),{isConnecting:a}=tn(),i=A.useCallback(()=>{e(),o()},[e,o]),s=A.useCallback(()=>{a&&o(),e()},[e,o,a]);return r==="disconnected"?A.createElement(ME,{onClose:s,open:t,titleId:n},A.createElement(LE,{bottomSheetOnMobile:!0,padding:"0",wide:!0},A.createElement(YBe,{onClose:s}))):r==="unauthenticated"?A.createElement(ME,{onClose:i,open:t,titleId:n},A.createElement(LE,{bottomSheetOnMobile:!0,padding:"0"},A.createElement(P9e,{onClose:i,onCloseModal:e}))):null}function pT(){const[e,t]=S.useState(!1);return{closeModal:S.useCallback(()=>t(!1),[]),isModalOpen:e,openModal:S.useCallback(()=>t(!0),[])}}var wb=S.createContext({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1});function XBe({children:e}){const{closeModal:t,isModalOpen:n,openModal:r}=pT(),{closeModal:o,isModalOpen:a,openModal:i}=pT(),{closeModal:s,isModalOpen:c,openModal:l}=pT(),u=HJ(),{chain:d}=So(),f=!(d!=null&&d.unsupported);function h({keepConnectModalOpen:p=!1}={}){p||t(),o(),s()}const m=_6()==="unauthenticated";return tn({onConnect:()=>h({keepConnectModalOpen:m}),onDisconnect:()=>h()}),A.createElement(wb.Provider,{value:S.useMemo(()=>({accountModalOpen:a,chainModalOpen:c,connectModalOpen:n,openAccountModal:f&&u==="connected"?i:void 0,openChainModal:u==="connected"?l:void 0,openConnectModal:u==="disconnected"||u==="unauthenticated"?r:void 0}),[u,f,a,c,n,i,l,r])},e,A.createElement(QBe,{onClose:t,open:n}),A.createElement(iBe,{onClose:o,open:a}),A.createElement(dBe,{onClose:s,open:c}))}function JBe(){const{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}=S.useContext(wb);return{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}}function ZBe(){const{accountModalOpen:e,openAccountModal:t}=S.useContext(wb);return{accountModalOpen:e,openAccountModal:t}}function eFe(){const{chainModalOpen:e,openChainModal:t}=S.useContext(wb);return{chainModalOpen:e,openChainModal:t}}function Eb(){const{connectModalOpen:e,openConnectModal:t}=S.useContext(wb);return{connectModalOpen:e,openConnectModal:t}}var gT=()=>{};function tFe({children:e}){var t,n,r,o;const a=ZNe(),{address:i}=tn(),s=XJ(i),c=QJ(s),l=QNe(),u=(t=_6())!=null?t:void 0,{chain:d}=So(),f=d?l[d.id]:void 0,h=(n=f==null?void 0:f.name)!=null?n:void 0,m=(r=f==null?void 0:f.iconUrl)!=null?r:void 0,p=(o=f==null?void 0:f.iconBackground)!=null?o:void 0,b=pP(m),v=S.useContext(vP),g=tZ().some(({status:B})=>B==="pending")&&v,{showBalance:w}=JNe(),_=w?_Ne(w)[Cr()?"smallScreen":"largeScreen"]:!0,{data:C}=FY({address:_?i:void 0}),x=C?`${hZ(parseFloat(C.formatted))} ${C.symbol}`:void 0,{openConnectModal:E}=Eb(),{openChainModal:T}=eFe(),{openAccountModal:k}=ZBe(),{accountModalOpen:D,chainModalOpen:R,connectModalOpen:F}=JBe();return A.createElement(A.Fragment,null,e({account:i?{address:i,balanceDecimals:C==null?void 0:C.decimals,balanceFormatted:C==null?void 0:C.formatted,balanceSymbol:C==null?void 0:C.symbol,displayBalance:x,displayName:s?pZ(s):mZ(i),ensAvatar:c??void 0,ensName:s??void 0,hasPendingTransactions:g}:void 0,accountModalOpen:D,authenticationStatus:u,chain:d?{hasIcon:!!m,iconBackground:p,iconUrl:b,id:d.id,name:h??d.name,unsupported:d.unsupported}:void 0,chainModalOpen:R,connectModalOpen:F,mounted:a(),openAccountModal:k??gT,openChainModal:T??gT,openConnectModal:E??gT}))}tFe.displayName="ConnectButton.Custom";function nFe(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0))}function PZ(e){return"groupName"in e[0]?UF(e):UF([{groupName:"",wallets:e}])()}var UF=e=>()=>{let t=-1;const n=[],r=[],o=[],a=[];return e.forEach(({groupName:s,wallets:c},l)=>{c.forEach(u=>{if(t++,u!=null&&u.iconAccent&&!EBe(u==null?void 0:u.iconAccent))throw new Error(`Property \`iconAccent\` is not a hex value for wallet: ${u.name}`);const d={...u,groupIndex:l,groupName:s,index:t};typeof u.hidden=="function"?o.push(d):r.push(d)})}),[...r,...o].forEach(({createConnector:s,groupIndex:c,groupName:l,hidden:u,index:d,...f})=>{if(typeof u=="function"&&u({wallets:[...a.map(({connector:g,id:w,installed:_,name:C})=>({connector:g,id:w,installed:_,name:C}))]}))return;const{connector:h,...m}=nFe(s());let p;if(f.id==="walletConnect"&&m.qrCode&&!Cr()){const{chains:v,options:g}=h;p=new q4({chains:v,options:{...g,showQrModal:!0}}),n.push(p)}const b={connector:h,groupIndex:c,groupName:l,index:d,walletConnectModalConnector:p,...f,...m};a.push(b),n.includes(h)||(n.push(h),h._wallets=[]),h._wallets.push(b)}),n},rFe=({chains:e,...t})=>{var n;return{id:"brave",name:"Brave Wallet",iconUrl:async()=>(await me(async()=>{const{default:r}=await import("./braveWallet-BTBH4MDN-Dk8CDq00.js");return{default:r}},[],import.meta.url)).default,iconBackground:"#fff",installed:typeof window<"u"&&((n=window.ethereum)==null?void 0:n.isBraveWallet)===!0,downloadUrls:{},createConnector:()=>({connector:new Ds({chains:e,options:t})})}};function IZ(e){if(typeof window>"u"||typeof window.ethereum>"u")return;const t=window.ethereum.providers;return t?t.find(n=>n[e]):window.ethereum[e]?window.ethereum:void 0}function OZ(e){return!!IZ(e)}function oFe(e){if(typeof window>"u"||typeof window.ethereum>"u")return;const t=window.ethereum.providers,n=IZ(e);return n||(typeof t<"u"&&t.length>0?t[0]:window.ethereum)}function aFe({chains:e,flag:t,options:n}){return new Ds({chains:e,options:{getProvider:()=>oFe(t),...n}})}var iFe=({appName:e,chains:t,...n})=>{const r=OZ("isCoinbaseWallet");return{id:"coinbase",name:"Coinbase Wallet",shortName:"Coinbase",iconUrl:async()=>(await me(async()=>{const{default:o}=await import("./coinbaseWallet-2OUR5TUP-CpvNSmI2.js");return{default:o}},[],import.meta.url)).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:r||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},createConnector:()=>{const o=Ll(),a=new f3e({chains:t,options:{appName:e,headlessMode:!0,...n}});return{connector:a,...o?{}:{qrCode:{getUri:async()=>(await a.getProvider()).qrUrl,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"wallet_connectors.coinbase.qr_code.step1.description",step:"install",title:"wallet_connectors.coinbase.qr_code.step1.title"},{description:"wallet_connectors.coinbase.qr_code.step2.description",step:"create",title:"wallet_connectors.coinbase.qr_code.step2.title"},{description:"wallet_connectors.coinbase.qr_code.step3.description",step:"scan",title:"wallet_connectors.coinbase.qr_code.step3.title"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"wallet_connectors.coinbase.extension.step1.description",step:"install",title:"wallet_connectors.coinbase.extension.step1.title"},{description:"wallet_connectors.coinbase.extension.step2.description",step:"create",title:"wallet_connectors.coinbase.extension.step2.title"},{description:"wallet_connectors.coinbase.extension.step3.description",step:"refresh",title:"wallet_connectors.coinbase.extension.step3.title"}]}}}}}}},sFe=({chains:e,...t})=>({id:"injected",name:"Browser Wallet",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./injectedWallet-EUKDEAIU-CMyNXBNM.js");return{default:n}},[],import.meta.url)).default,iconBackground:"#fff",hidden:({wallets:n})=>n.some(r=>r.installed&&r.name===r.connector.name&&(r.connector instanceof Ds||r.id==="coinbase")),createConnector:()=>({connector:new Ds({chains:e,options:t})})});async function TP(e,t){const n=await e.getProvider();return t==="2"?new Promise(r=>n.once("display_uri",r)):n.connector.uri}var RZ=new Map;function cFe(e,t){const n=e==="1"?new iX(t):new q4(t);return RZ.set(JSON.stringify(t),n),n}function UE({chains:e,options:t={},projectId:n,version:r="2"}){const o="21fef48091f12692cad574a6f7753643";if(r==="2"){if(!n||n==="")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");(n==="YOUR_PROJECT_ID"||n===o)&&console.warn("Invalid projectId. Please create a unique WalletConnect Cloud projectId for your dApp https://www.rainbowkit.com/docs/installation#configure")}const a={chains:e,options:r==="1"?{qrcode:!1,...t}:{projectId:n==="YOUR_PROJECT_ID"?o:n,showQrModal:!1,...t}},i=JSON.stringify(a),s=RZ.get(i);return s??cFe(r,a)}function $F(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.isBlockWallet||e.isCoinbaseWallet||e.isDawn||e.isEnkrypt||e.isExodus||e.isFrame||e.isFrontier||e.isGamestop||e.isHyperPay||e.isImToken||e.isKuCoinWallet||e.isMathWallet||e.isOkxWallet||e.isOKExWallet||e.isOneInchIOSWallet||e.isOneInchAndroidWallet||e.isOpera||e.isPhantom||e.isPortal||e.isRabby||e.isRainbow||e.isStatus||e.isTalisman||e.isTally||e.isTokenPocket||e.isTokenary||e.isTrust||e.isTrustWallet||e.isXDEFI||e.isZeal||e.isZerion)}var lFe=({chains:e,projectId:t,walletConnectOptions:n,walletConnectVersion:r="2",...o})=>{var a,i;const s=typeof window<"u"&&((a=window.ethereum)==null?void 0:a.providers),c=typeof window<"u"&&typeof window.ethereum<"u"&&(((i=window.ethereum.providers)==null?void 0:i.some($F))||window.ethereum.isMetaMask),l=!c;return{id:"metaMask",name:"MetaMask",iconUrl:async()=>(await me(async()=>{const{default:u}=await import("./metaMaskWallet-ORHUNQRP-DhHH5FFG.js");return{default:u}},[],import.meta.url)).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:l?void 0:c,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"},createConnector:()=>{const u=l?UE({projectId:t,chains:e,version:r,options:n}):new h3e({chains:e,options:{getProvider:()=>Array.isArray(s)&&s.find($F)||(typeof window<"u"?window.ethereum:void 0),...o}}),d=async()=>{const f=await TP(u,r);return mP()?f:Ll()?`metamask://wc?uri=${encodeURIComponent(f)}`:`https://metamask.app.link/wc?uri=${encodeURIComponent(f)}`};return{connector:u,mobile:{getUri:l?d:void 0},qrCode:l?{getUri:d,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"}]}}}}}},uFe=({chains:e,projectId:t,walletConnectOptions:n,walletConnectVersion:r="2",...o})=>{const a=OZ("isRainbow"),i=!a;return{id:"rainbow",name:"Rainbow",iconUrl:async()=>(await me(async()=>{const{default:s}=await import("./rainbowWallet-GGU64QEI-Buwz1oV3.js");return{default:s}},[],import.meta.url)).default,iconBackground:"#0c2f78",installed:i?void 0:a,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"},createConnector:()=>{const s=i?UE({projectId:t,chains:e,version:r,options:n}):aFe({flag:"isRainbow",chains:e,options:o}),c=async()=>{const l=await TP(s,r);return mP()?l:Ll()?`rainbow://wc?uri=${encodeURIComponent(l)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(l)}&connector=rainbowkit`};return{connector:s,mobile:{getUri:i?c:void 0},qrCode:i?{getUri:c,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}}}},dFe=({chains:e,...t})=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./safeWallet-DFMLSLCR-7Jx5rkap.js");return{default:n}},[],import.meta.url)).default,installed:!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,downloadUrls:{},createConnector:()=>({connector:new $J({chains:e,options:t})})}),fFe=({chains:e,options:t,projectId:n,version:r="2"})=>({id:"walletConnect",name:"WalletConnect",iconUrl:async()=>(await me(async()=>{const{default:o}=await import("./walletConnectWallet-D6ZADJM7-BtZ74X7H.js");return{default:o}},[],import.meta.url)).default,iconBackground:"#3b99fc",createConnector:()=>{const o=Ll(),a=UE(r==="1"?{version:"1",chains:e,options:{qrcode:o,...t}}:{version:"2",chains:e,projectId:n,options:{showQrModal:o,...t}}),i=async()=>TP(a,r);return{connector:a,...o?{}:{mobile:{getUri:i},qrCode:{getUri:i}}}}}),hFe=({appName:e,chains:t,projectId:n})=>{const r=[{groupName:"Popular",wallets:[sFe({chains:t}),dFe({chains:t}),uFe({chains:t,projectId:n}),iFe({appName:e,chains:t}),lFe({chains:t,projectId:n}),fFe({chains:t,projectId:n}),rFe({chains:t})]}];return{connectors:PZ(r),wallets:r}};function mFe({width:e=32,height:t=32,fill:n="#52C41A"}){return y.jsx("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:e,height:t,className:"shrink-0",children:y.jsx("path",{d:"M864.554667 268.501333a42.666667 42.666667 0 0 1 0 60.330667L412.032 781.397333a42.453333 42.453333 0 0 1-22.613333 11.818667l-5.034667 0.597333H379.306667a42.496 42.496 0 0 1-27.648-12.416l-211.2-211.2a42.666667 42.666667 0 1 1 60.330666-60.330666l180.992 180.992 422.4-422.4a42.666667 42.666667 0 0 1 60.330667 0z",fill:n})})}function AP({text:e,copiedColor:t}){const[n,r]=S.useState(!1),o=S.useCallback(async a=>{a.stopPropagation();try{await navigator.clipboard.writeText(e),r(!0)}catch(i){console.error(i)}},[e]);return S.useEffect(()=>{let a;return n&&(a=dY(1e3,0).subscribe(()=>r(!1))),()=>a==null?void 0:a.unsubscribe()},[n]),n?y.jsx(mFe,{width:16,height:16,fill:t}):y.jsx("img",{width:16,height:16,alt:"Copy",src:"images/copy.svg",className:"shrink-0 transition hover:scale-105 hover:cursor-pointer hover:opacity-80 active:scale-105",onClick:o})}function Ca({address:e,copyable:t,className:n,forceShort:r,prefixLength:o,suffixLength:a,disableTooltip:i}){return y.jsxs("div",{className:"gap-small inline-flex items-center",children:[r?y.jsx(At,{enabledSafePolygon:!0,content:e,enabled:!i,children:y.jsx("span",{className:n,children:zu(e,o,a)})}):y.jsxs(y.Fragment,{children:[y.jsx(At,{enabledSafePolygon:!0,content:e,className:`lg:hidden ${n}`,enabled:!i,children:y.jsx("span",{children:zu(e,o,a)})}),y.jsx("span",{className:`hidden lg:inline ${n}`,children:e})]}),t?y.jsx(AP,{text:e}):null]})}var DP={},kP={},Xs=function(e){e==null&&(e=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};Xs.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};Xs.prototype.init_by_array=function(e,t){var n,r,o;for(this.init_seed(19650218),n=1,r=0,o=this.N>t?this.N:t;o;o--){var a=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((a&4294901760)>>>16)*1664525<<16)+(a&65535)*1664525)+e[r]+r,this.mt[n]>>>=0,n++,r++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),r>=t&&(r=0)}for(o=this.N-1;o;o--){var a=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((a&4294901760)>>>16)*1566083941<<16)+(a&65535)*1566083941)-n,this.mt[n]>>>=0,n++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648};Xs.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n>>1^t[e&1];for(;n>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};Xs.prototype.random_int31=function(){return this.random_int()>>>1};Xs.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};Xs.prototype.random=function(){return this.random_int()*(1/4294967296)};Xs.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};Xs.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var pFe=Xs,NZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HSLToHex=e.hexToHSL=e.colorRotate=void 0;var t=function(o,a){var i=(0,e.hexToHSL)(o),s=i.h;return s=(s+a)%360,s=s<0?360+s:s,i.h=s,(0,e.HSLToHex)(i)};e.colorRotate=t;var n=function(o){var a="0x"+o[1]+o[2],i="0x"+o[3]+o[4],s="0x"+o[5]+o[6],c=parseInt(a)/255,l=parseInt(i)/255,u=parseInt(s)/255,d=Math.min(c,l,u),f=Math.max(c,l,u),h=f-d,m=0,p=0,b=0;return h==0?m=0:f==c?m=(l-u)/h%6:f==l?m=(u-c)/h+2:m=(c-l)/h+4,m=Math.round(m*60),m<0&&(m+=360),b=(f+d)/2,p=h==0?0:h/(1-Math.abs(2*b-1)),p=+(p*100).toFixed(1),b=+(b*100).toFixed(1),{h:m,s:p,l:b}};e.hexToHSL=n;var r=function(o){var a=o.h,i=o.s,s=o.l;i/=100,s/=100;var c=(1-Math.abs(2*s-1))*i,l=c*(1-Math.abs(a/60%2-1)),u=s-c/2,d=0,f=0,h=0;0<=a&&a<60?(d=c,f=l,h=0):60<=a&&a<120?(d=l,f=c,h=0):120<=a&&a<180?(d=0,f=c,h=l):180<=a&&a<240?(d=0,f=l,h=c):240<=a&&a<300?(d=l,f=0,h=c):300<=a&&a<360&&(d=c,f=0,h=l);var m=Math.round((d+u)*255).toString(16),p=Math.round((f+u)*255).toString(16),b=Math.round((h+u)*255).toString(16);return m.length==1&&(m="0"+m),p.length==1&&(p="0"+p),b.length==1&&(b="0"+b),"#"+m+p+b};e.HSLToHex=r})(NZ);var jP={};Object.defineProperty(jP,"__esModule",{value:!0});jP.default=Object.freeze(["#01888c","#fc7500","#034f5d","#f73f01","#fc1960","#c7144c","#f3c100","#1598f2","#2465e1","#f19e02"]);var PP={},Bf=We&&We.__assign||function(){return Bf=Object.assign||function(e){for(var t,n=1,r=arguments.length;ni(),className:"user-dropdown-item",children:[y.jsx("img",{width:18,height:18,alt:"Disconnect",src:"images/disconnect.svg",className:"shrink-0"}),y.jsx(WF,{children:"Disconnect"})]})]}),y.jsx("div",{className:"mx-5 h-[1px] bg-white/10"}),y.jsxs("div",{className:"relative flex max-h-[40vh] min-h-[2.5rem] flex-col overflow-y-auto px-2 lg:max-h-[72vh]",children:[y.jsx(qs,{loading:o,color:"white",size:"small",className:"bg-white/5 backdrop-blur-[2px]"}),r.filter(({balance:c})=>00y.jsxs("button",{className:"gap-large lg:py-medium flex items-center rounded-xl px-3 py-2 transition-colors hover:bg-white/10 disabled:cursor-default",disabled:!0,children:[y.jsxs("div",{className:"relative",children:[y.jsx("img",{alt:"Token",width:32,height:32,src:vr(c.token.logo),className:"rounded-full"}),y.jsx("img",{alt:"Chain",width:20,height:20,src:Rn(c.chain.logo),className:"absolute -bottom-1 -right-1 rounded-full"})]}),y.jsxs("div",{className:"flex flex-col items-start",children:[y.jsxs("span",{className:"text-sm font-semibold text-white",children:[ut(c.balance,c.token.decimals)," ",c.token.symbol]}),y.jsx("span",{className:"text-xs font-medium text-white/50",children:c.chain.name})]})]},`${c.chain.network}-${c.token.symbol}`)):o?null:y.jsx("div",{className:"inline-flex h-10 items-center justify-center",children:y.jsx("span",{className:"text-sm font-medium text-slate-400",children:"No data"})})]})]}):y.jsx("button",{className:"bg-primary px-large hover:bg-primary/90 lg:py-small inline-flex rounded-xl py-2 transition-colors",onClick:s,children:y.jsx("span",{className:"text-sm font-bold text-white",children:"Connect Wallet"})})}function WF({children:e}){return y.jsx("span",{className:"text-sm font-medium",children:e})}const RFe=hm();function GF({placement:e}){const[t,n]=S.useState(!1),r=tn(),{refs:o,context:a,floatingStyles:i}=gd({placement:e,open:t,onOpenChange:n,middleware:[hd(6)]}),{styles:s,isMounted:c}=bd(a,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),l=tm(a),u=pd(a),{getReferenceProps:d,getFloatingProps:f}=yd([l,u]),{switchNetwork:h}=Tl(),{chain:m}=So(),p=S.useMemo(()=>st(m==null?void 0:m.id),[m==null?void 0:m.id]);return r.address?y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"gap-small lg:bg-secondary flex h-8 w-fit items-center justify-between rounded-xl bg-white/20 px-3 transition-colors hover:bg-white/20",ref:o.setReference,...d(),children:p?y.jsxs(y.Fragment,{children:[y.jsx("img",{alt:"Active chain",width:20,height:20,src:Rn(p.logo),className:"rounded-full"}),y.jsx("img",{style:{transform:t?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 transition-transform",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})]}):y.jsxs(y.Fragment,{children:[y.jsx("img",{alt:"Wrong chain",width:18,height:18,src:"images/warning.svg"}),y.jsx("span",{className:"text-sm font-bold text-orange-400",children:"Wrong Chain"})]})}),c&&y.jsx(md,{children:y.jsx("div",{style:i,ref:o.setFloating,...f(),className:"z-20",children:y.jsx("div",{style:s,className:"bg-background flex max-h-[18rem] flex-col overflow-y-auto rounded-xl border border-white/20 py-2",onClick:()=>n(!1),children:RFe.map(b=>y.jsxs("button",{className:"gap-medium px-large py-medium flex items-center transition-colors hover:bg-white/5 disabled:bg-white/10",disabled:b.id===(m==null?void 0:m.id),onClick:()=>h==null?void 0:h(b.id),children:[y.jsx("img",{alt:"Chain",width:22,height:22,src:Rn(b.logo),className:"rounded-full"}),y.jsx("span",{className:"text-sm font-bold text-white",children:b.name})]},b.id))})})})]}):null}function NFe({children:e,isOpen:t,maskClosable:n,onClose:r=()=>{}}){const o=S.useRef(null);return Fs.createPortal(y.jsx(Al,{in:t,timeout:300,nodeRef:o,classNames:"drawer-fade",unmountOnExit:!0,onEnter:()=>{document.body.style.overflow="hidden"},onExited:()=>{document.body.style.overflow="auto"},children:y.jsx("div",{ref:o,onClick:()=>n&&r(),className:"bg-app-bg/80 fixed left-0 top-0 z-20 h-screen w-screen backdrop-blur-sm",children:y.jsx("div",{className:"bg-secondary absolute right-0 top-0 h-screen w-3/4 overflow-y-auto",onClick:a=>a.stopPropagation(),children:y.jsxs("div",{className:"flex h-full w-full flex-col items-start",children:[y.jsxs("div",{className:"p-medium flex w-full items-center justify-between",children:[y.jsx(Su,{to:"/",onClick:r,children:y.jsx("img",{width:90,height:25,alt:"Logo",src:"images/logo.svg"})}),y.jsx("img",{width:24,height:24,alt:"Close",src:"images/close.svg",className:"transition-transform active:scale-95",onClick:r})]}),e]})})})}),document.body)}const VF=[{href:"/",label:"Transfer"},{href:"/relayer",label:"Relayer"}];function BFe(){const{state:e,setTrue:t,setFalse:n}=zg(!1),{pathname:r}=fd();return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:`app-header px-medium fixed left-0 top-0 z-10 flex w-full items-center justify-between border-b border-b-white/25 lg:border-b-transparent lg:px-5 ${r==="/"?"backdrop-blur lg:bg-transparent lg:backdrop-blur-none":"bg-background"}`,children:[y.jsxs("div",{className:"flex items-center gap-5",children:[y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx(Su,{to:"/",children:y.jsx("img",{width:90,height:25,alt:"Logo",src:"images/logo.svg"})}),Hye()]}),y.jsx("div",{className:"gap-medium hidden items-center lg:flex",children:VF.map(({href:o,label:a,external:i,soon:s,disabled:c})=>i?y.jsx("a",{rel:"noopener noreferrer",target:"_blank",href:o,className:"py-small rounded-full px-3 text-sm font-bold transition-colors hover:bg-white/[0.15]",children:a},a):s||c?y.jsx(At,{content:s?"Coming soon":"This feature is temporarily under maintenance",children:y.jsx("span",{className:"py-small rounded-full px-3 text-sm font-bold text-white/50",children:a})},a):y.jsx(Su,{to:o,className:`py-small relative rounded-full px-3 text-sm font-bold transition-colors hover:bg-white/[0.15] ${r===o?"text-primary after:bg-primary after:absolute after:-bottom-[2px] after:left-1/4 after:block after:h-[3px] after:w-1/2 after:rounded-full":"text-white"}`,children:a},a))})]}),y.jsxs("div",{className:"gap-medium hidden items-center lg:flex",children:[y.jsx(WY,{className:"bg-secondary px-large inline-flex h-8 items-center rounded-full text-sm font-bold text-white transition-colors hover:bg-white/20"}),y.jsx(qF,{prefixLength:14,suffixLength:10}),y.jsx(GF,{placement:"bottom-end"})]}),y.jsx("img",{width:24,height:24,alt:"Menu",src:"images/menu.svg",className:"inline transition-transform active:translate-y-1 lg:hidden",onClick:t})]}),y.jsx(NFe,{maskClosable:!0,isOpen:e,onClose:n,children:y.jsx("div",{className:"flex w-full items-start justify-center",style:{marginTop:"20%"},children:y.jsxs("div",{className:"flex w-max flex-col items-start gap-10",children:[y.jsx("div",{className:"gap-large flex flex-col",children:VF.map(({label:o,href:a,external:i,soon:s,disabled:c})=>i?y.jsx("a",{rel:"noopener noreferrer",target:"_blank",href:a,className:"text-sm font-bold",children:o},o):s||c?y.jsx(At,{content:s?"Coming soon":"This feature is temporarily under maintenance",children:y.jsx("span",{className:"text-sm font-bold text-white/50",children:o})},o):y.jsx(Su,{to:a,className:`relative text-sm font-bold ${r===a?"text-primary underline decoration-2 underline-offset-4":"text-white"}`,onClick:n,children:o},o))}),y.jsxs("div",{className:"gap-medium flex flex-col",children:[y.jsx(GF,{}),y.jsx(qF,{placement:"bottom",onComplete:n})]})]})})})]})}function FFe({children:e}){const[t,n]=S.useState(),[r,o]=S.useState(!1),[a,i]=S.useState(""),{balanceAll:s,loadingBalanceAll:c,updateBalanceAll:l}=e_e();return y.jsx(eH.Provider,{value:{balanceAll:s,recordsSearch:a,isHistoryOpen:r,historyDetails:t,loadingBalanceAll:c,updateBalanceAll:l,setRecordsSearch:i,setIsHistoryOpen:o,setHistoryDetails:n},children:e})}const MFe="https://apollo.helixbridge.app/graphql";function LFe({children:e}){const t=new eV({uri:MFe,cache:new XG({typePolicies:{Query:{fields:{historyRecords:{keyArgs:n=>n!=null&&n.needWithdrawLiquidity?["relayer","recvTokenAddress","fromChains","toChains","row"]:void 0,merge:(n,r,{args:o})=>{if(o!=null&&o.needWithdrawLiquidity){const a=((o==null?void 0:o.page)??0)*(o.row??0),i=n?n.records.slice(0):[];for(let s=0;sn.once("display_uri",r)):n.connector.uri}var BZ=new Map;function $Fe(e,t){const n=e==="1"?new iX(t):new q4(t);return BZ.set(JSON.stringify(t),n),n}function zFe({chains:e,options:t={},projectId:n,version:r="2"}){const o="21fef48091f12692cad574a6f7753643";if(r==="2"){if(!n||n==="")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");(n==="YOUR_PROJECT_ID"||n===o)&&console.warn("Invalid projectId. Please create a unique WalletConnect Cloud projectId for your dApp https://www.rainbowkit.com/docs/installation#configure")}const a={chains:e,options:r==="1"?{qrcode:!1,...t}:{projectId:n==="YOUR_PROJECT_ID"?o:n,showQrModal:!1,...t}},i=JSON.stringify(a),s=BZ.get(i);return s??$Fe(r,a)}var HFe=({chains:e,...t})=>({id:"talisman",name:"Talisman",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./talismanWallet-W5EQ26N7-COwK-IAC.js");return{default:n}},[],import.meta.url)).default,iconBackground:"#fff",installed:typeof window<"u"&&typeof window.talismanEth<"u"&&window.talismanEth.isTalisman===!0,downloadUrls:{chrome:"https://chrome.google.com/webstore/detail/talisman-polkadot-wallet/fijngjgcjhjmmpcmkeiomlglpeiijkld",firefox:"https://addons.mozilla.org/en-US/firefox/addon/talisman-wallet-extension/",browserExtension:"https://talisman.xyz/download"},createConnector:()=>({connector:new Ds({chains:e,options:{getProvider:()=>{if(!(typeof window>"u"))return window.talismanEth},...t}}),extension:{instructions:{learnMoreUrl:"https://talisman.xyz/",steps:[{description:"wallet_connectors.talisman.extension.step1.description",step:"install",title:"wallet_connectors.talisman.extension.step1.title"},{description:"wallet_connectors.talisman.extension.step2.description",step:"create",title:"wallet_connectors.talisman.extension.step2.title"},{description:"wallet_connectors.talisman.extension.step3.description",step:"refresh",title:"wallet_connectors.talisman.extension.step3.title"}]}}})}),qFe=({chains:e,...t})=>({id:"rabby",name:"Rabby Wallet",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./rabbyWallet-22VWIFCE-C-acKMUn.js");return{default:n}},[],import.meta.url)).default,iconBackground:"#8697FF",installed:typeof window<"u"&&typeof window.ethereum<"u"&&window.ethereum.isRabby===!0,downloadUrls:{chrome:"https://chrome.google.com/webstore/detail/rabby-wallet/acmacodkjbdgmoleebolmdjonilkdbch",browserExtension:"https://rabby.io"},createConnector:()=>({connector:new Ds({chains:e,options:t}),extension:{instructions:{learnMoreUrl:"https://rabby.io/",steps:[{description:"wallet_connectors.rabby.extension.step1.description",step:"install",title:"wallet_connectors.rabby.extension.step1.title"},{description:"wallet_connectors.rabby.extension.step2.description",step:"create",title:"wallet_connectors.rabby.extension.step2.title"},{description:"wallet_connectors.rabby.extension.step3.description",step:"refresh",title:"wallet_connectors.rabby.extension.step3.title"}]}}})}),WFe=({chains:e,...t})=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await me(async()=>{const{default:n}=await import("./safeWallet-DFMLSLCR-BD-GpskT.js");return{default:n}},[],import.meta.url)).default,installed:!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,downloadUrls:{},createConnector:()=>({connector:new $J({chains:e,options:t})})}),GFe=({chains:e,projectId:t,walletConnectOptions:n,walletConnectVersion:r="2",...o})=>{const i=!(typeof window<"u"&&typeof window.okxwallet<"u");return{id:"okx",name:"OKX Wallet",iconUrl:async()=>(await me(async()=>{const{default:s}=await import("./okxWallet-GKYMI2XW-CdXZL5HC.js");return{default:s}},[],import.meta.url)).default,iconAccent:"#000",iconBackground:"#000",downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.okinc.okex.gp",ios:"https://itunes.apple.com/app/id1327268470?mt=8",mobile:"https://okx.com/download",qrCode:"https://okx.com/download",chrome:"https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",edge:"https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",firefox:"https://addons.mozilla.org/firefox/addon/okexwallet/",browserExtension:"https://okx.com/download"},createConnector:()=>{const s=i?zFe({projectId:t,chains:e,version:r,options:n}):new Ds({chains:e,options:{getProvider:()=>window.okxwallet,...o}});return{connector:s,mobile:{getUri:i?async()=>{const c=await KF(s,r);return UFe()?c:`okex://main/wc?uri=${encodeURIComponent(c)}`}:void 0},qrCode:i?{getUri:async()=>KF(s,r),instructions:{learnMoreUrl:"https://okx.com/web3/",steps:[{description:"wallet_connectors.okx.qr_code.step1.description",step:"install",title:"wallet_connectors.okx.qr_code.step1.title"},{description:"wallet_connectors.okx.qr_code.step2.description",step:"create",title:"wallet_connectors.okx.qr_code.step2.title"},{description:"wallet_connectors.okx.qr_code.step3.description",step:"scan",title:"wallet_connectors.okx.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://okx.com/web3/",steps:[{description:"wallet_connectors.okx.extension.step1.description",step:"install",title:"wallet_connectors.okx.extension.step1.title"},{description:"wallet_connectors.okx.extension.step2.description",step:"create",title:"wallet_connectors.okx.extension.step2.title"},{description:"wallet_connectors.okx.extension.step3.description",step:"refresh",title:"wallet_connectors.okx.extension.step3.title"}]}}}}}};function VFe(){return function(e){return e.rpcUrls.public.http[0]?{chain:e,rpcUrls:e.rpcUrls.public}:null}}const FZ="2719448e2ce94fdd269a3c8587123bcc",MZ="Helix Bridge",{chains:Ff,publicClient:KFe}=Mwe(hm().map(({tokens:e,...t})=>t),[VFe()]),{wallets:YFe}=hFe({appName:MZ,projectId:FZ,chains:Ff}),QFe=PZ([...YFe,{groupName:"More",wallets:[GFe({chains:Ff,projectId:FZ}),qFe({chains:Ff}),HFe({chains:Ff}),WFe({chains:Ff})]}]),XFe=wEe({autoConnect:!0,connectors:QFe,publicClient:KFe});function JFe({children:e}){return y.jsx(EEe,{config:XFe,children:y.jsx(M9e,{theme:KY({borderRadius:"large",accentColor:"#0085FF"}),chains:Ff,appInfo:{appName:MZ},children:e})})}function ZFe(){return y.jsx(LFe,{children:y.jsx(JFe,{children:y.jsxs(FFe,{children:[y.jsx(BFe,{}),y.jsx(zae,{}),y.jsx(Yse,{})]})})})}function eMe({text:e,tips:t}){return y.jsxs("div",{className:"gap-small inline-flex items-center",children:[y.jsx("span",{className:"text-sm font-normal text-white/50",children:e}),t?y.jsx(At,{content:t,enabledSafePolygon:!0,children:y.jsx("img",{width:14,height:14,alt:"Info",src:"images/info.svg"})}):null]})}function LZ({width:e,height:t,className:n,onClick:r}){return y.jsx("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:e??"64",height:t??"64",className:n,onClick:r,children:y.jsx("path",{d:"M787.584 164.138667a85.333333 85.333333 0 0 1 1.493333 15.936v13.653333A128.042667 128.042667 0 0 1 896 320v88.021333c36.821333 9.493333 64 42.88 64 82.645334v149.333333a85.376 85.376 0 0 1-64 82.645333V810.666667a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V320a128 128 0 0 1 127.744-128v-1.429333L687.829333 96.213333a85.333333 85.333333 0 0 1 99.776 67.904zM768 256H192a64 64 0 0 0-63.893333 60.245333L128 320v490.666667a64 64 0 0 0 60.245333 63.893333L192 874.666667h576a64 64 0 0 0 63.893333-60.245334L832 810.666667v-85.333334h-181.333333a160 160 0 0 1 0-320H832v-85.333333a64 64 0 0 0-60.245333-63.893333L768 256z m106.666667 213.333333H650.666667a96 96 0 0 0-4.522667 191.893334L650.666667 661.333333H874.666667a21.333333 21.333333 0 0 0 21.184-18.837333L896 640v-149.333333a21.333333 21.333333 0 0 0-18.837333-21.184L874.666667 469.333333z m-224 64a32 32 0 1 1 0 64 32 32 0 0 1 0-64z m51.584-374.549333l-2.474667 0.341333-172.949333 32.853334h198.229333v-12.906667l-0.341333-2.986667a21.333333 21.333333 0 0 0-22.464-17.28z",fill:"#ffffff"})})}function tMe({value:e,options:t=[],onChange:n=()=>{}}){const[r,o]=S.useState(!1),{refs:a,context:i,floatingStyles:s}=gd({open:r,onOpenChange:o,middleware:[hd(6),S_({apply({rects:p,elements:b}){Object.assign(b.floating.style,{width:`${p.reference.width}px`})}})]}),{styles:c,isMounted:l}=bd(i,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),u=tm(i),d=pd(i),{getReferenceProps:f,getFloatingProps:h}=yd([u,d]),m=S.useCallback(p=>{if(p.target.value){const b=p.target.value,v=Hn(b)?void 0:"* Invalid address";n({input:b,alert:v,value:Hn(b)?b:void 0})}else n({input:"",value:void 0,alert:"* Require recipient"})},[n]);return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mx-medium gap-small px-medium group flex items-center justify-between rounded-[0.625rem] bg-[#1F282C] py-2 transition-colors focus-within:bg-white/10 hover:bg-white/10",ref:a.setReference,...f(),children:[y.jsxs("div",{className:"gap-small flex w-full items-center lg:gap-2",children:[y.jsx(LZ,{width:20,height:20,className:"opacity-50 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"}),y.jsx("input",{placeholder:"Recipient",value:(e==null?void 0:e.input)??"",className:"w-full bg-transparent text-sm font-medium text-white/50 transition-colors focus-visible:outline-none group-focus-within:text-white group-hover:text-white",onChange:m})]}),y.jsx("img",{style:{transform:r?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 opacity-50 transition-[transform,opacity] group-focus-within:opacity-100 group-hover:opacity-100",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})]}),l&&y.jsx(md,{children:y.jsx("div",{style:s,ref:a.setFloating,...h(),className:"z-20",children:y.jsx("div",{className:"rounded-xl border border-white/20 bg-[#00141D] py-2",style:c,onClick:()=>o(!1),children:t.length?t.map(p=>y.jsx(nMe,{address:p,onSelect:n},p)):y.jsx("div",{className:"py-small flex items-center justify-center",children:y.jsx("span",{className:"text-sm font-extrabold text-slate-400",children:"No data"})})})})})]})}function nMe({address:e,onSelect:t}){const{data:n}=MY({address:e});return y.jsx("button",{className:"py-small w-full truncate px-2 text-start transition-colors hover:bg-white/10",onClick:()=>t({input:e,value:e,alert:void 0}),children:y.jsx("span",{className:"text-sm font-semibold text-white",children:n??e})})}function xg({alert:e,children:t,titleText:n,titleTips:r,className:o,recipient:a,expandRecipient:i,recipientOptions:s,onExpandRecipient:c=()=>{},onRecipientChange:l=()=>{}}){return y.jsxs("div",{className:"gap-small flex flex-col transition-opacity",children:[y.jsxs("div",{className:`gap-medium rounded-large bg-app-bg py-medium flex flex-col transition-[outline] duration-200 ${o} ${e?"outline outline-1 outline-orange-500":"outline-none"}`,children:[n?y.jsxs("div",{className:"px-medium flex items-center justify-between",children:[y.jsx(eMe,{text:n,tips:r}),a?y.jsx(LZ,{className:"opacity-50 transition-[transform,opacity] hover:cursor-pointer hover:opacity-100 active:scale-95",width:20,height:20,onClick:c}):null]}):null,t,i&&y.jsx(tMe,{value:a,options:s,onChange:l})]}),e?y.jsx("span",{className:"text-xs font-normal text-orange-500",children:e}):null]})}function rMe({value:e,options:t,onChange:n}){const[r,o]=S.useState(-1),a=$Y("lg"),i=S.useMemo(()=>a?5:4,[a]);return y.jsxs("div",{className:"gap-medium px-medium flex items-center",children:[y.jsx(YF,{token:e,active:!0}),y.jsx("span",{className:"text-base font-bold text-white",children:e.symbol}),y.jsxs("div",{className:"gap-medium group ml-2 flex items-center",children:[t.filter(s=>s.symbol!==e.symbol).slice(0,i).map((s,c)=>y.jsx(YF,{index:c,token:s,hoveIndex:r,onClick:n,onHoverChange:o},s.symbol)),i+1s.symbol!==e.symbol).slice(i),onClick:n})]})]})}function YF({token:e,active:t,index:n=0,hoveIndex:r=-1,onClick:o=()=>{},onHoverChange:a=()=>{}}){return y.jsx("img",{width:t?32:36,height:t?32:36,alt:"Token image",src:vr(e.logo),className:`shrink-0 rounded-full transition-[transform,opacity] duration-200 ${t?"h-[2rem] w-[2rem] opacity-100":`${n<=r?"group-active:-translate-x-2":""} h-[2.25rem] w-[2.25rem] opacity-50 hover:cursor-pointer hover:opacity-80`}`,onClick:()=>{!t&&o(e)},onMouseEnter:()=>{!t&&a(n)},onMouseLeave:()=>{!t&&a(-1)}})}function oMe({options:e,onClick:t=()=>{}}){const[n,r]=S.useState(!1),{refs:o,context:a,floatingStyles:i}=gd({open:n,onOpenChange:r,middleware:[hd(4)]}),{styles:s,isMounted:c}=bd(a,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),l=A_(a,{handleClose:Zz()}),u=tm(a),d=pd(a),{getReferenceProps:f,getFloatingProps:h}=yd([l,u,d]);return y.jsxs(y.Fragment,{children:[y.jsx("img",{width:36,height:36,src:vr("more.svg"),alt:"More tokens",className:`transition-opacity duration-200 hover:cursor-pointer hover:opacity-80 ${n?"opacity-80":"opacity-50"}`,ref:o.setReference,...f()}),c&&y.jsx(md,{children:y.jsx("div",{style:i,ref:o.setFloating,...h(),className:"z-20",children:y.jsx("div",{className:"bg-app-bg flex flex-col gap-2 rounded-xl border border-white/20 px-3 py-2",style:s,onClick:()=>r(!1),children:e.map(m=>y.jsx("img",{width:36,height:36,src:vr(m.logo),className:"rounded-full opacity-60 transition-opacity duration-200 hover:cursor-pointer hover:opacity-80",onClick:()=>t(m)},m.symbol))})})})]})}function aMe({token:e,options:t,loading:n,onChange:r}){return y.jsxs("div",{className:"relative",children:[y.jsx(qs,{loading:n,className:"rounded-large backdrop-blur-[2px]",icon:!1}),y.jsx(xg,{titleText:"Token",children:y.jsx(rMe,{value:e,options:t,onChange:r})})]})}function RP({label:e,placeholder:t,disabled:n,children:r,hoverable:o,clearable:a,placement:i,sameWidth:s,offsetSize:c,labelClassName:l,childClassName:u,onClear:d=()=>{}}){const{state:f,setState:h,setFalse:m}=zg(!1),{refs:p,context:b,floatingStyles:v}=gd({open:f,onOpenChange:h,placement:i,middleware:[hd(c??4),s?S_({apply({rects:k,elements:D}){Object.assign(D.floating.style,{width:`${k.reference.width}px`})}}):void 0]}),{styles:g,isMounted:w}=bd(b,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),_=A_(b,{enabled:!!o}),C=tm(b),x=pd(b),{getReferenceProps:E,getFloatingProps:T}=yd([_,C,x]);return y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:`disabled:cursor-not-allowed disabled:opacity-60 ${l}`,ref:p.setReference,...E(),disabled:n,children:[e||t,y.jsxs("div",{className:"gap-small flex shrink-0 items-center transition-transform group-hover:-translate-x-2",children:[e&&a?y.jsx("div",{className:"relative h-[16px] w-[16px] shrink-0 rounded-full bg-transparent p-[2px] opacity-80 transition hover:scale-105 hover:bg-white/20 hover:opacity-100 active:scale-95",onClick:k=>{k.stopPropagation(),d()},children:y.jsx("img",{alt:"Close",src:"images/close.svg",className:"h-full w-full"})}):null,y.jsx("img",{style:{transform:f?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 transition-transform",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})]})]}),w&&y.jsx(md,{children:y.jsx("div",{style:v,ref:p.setFloating,...T(),className:"z-20",children:y.jsx("div",{className:`${u}`,style:g,onClick:m,children:r})})})]})}function iMe({children:e,label:t}){const[n,r]=S.useState(!1),{refs:o,context:a,floatingStyles:i}=gd({open:n,onOpenChange:r,placement:"bottom",middleware:[hd(6),S_({apply({rects:h,elements:m}){Object.assign(m.floating.style,{width:`${h.reference.width}px`})}})]}),{styles:s,isMounted:c}=bd(a,{initial:{transform:"translateY(-10px)",opacity:0},open:{transform:"translateY(0)",opacity:1},close:{transform:"translateY(-10px)",opacity:0}}),l=tm(a),u=pd(a),{getReferenceProps:d,getFloatingProps:f}=yd([l,u]);return y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:`gap-small mx-medium py-small group flex w-full items-center justify-between rounded-[0.625rem] transition-colors hover:bg-white/5 ${n?"bg-white/5":""}`,ref:o.setReference,...d(),children:[y.jsx("div",{className:`gap-medium flex items-center transition-transform group-hover:translate-x-2 ${n?"translate-x-2":""}`,children:t}),y.jsx("div",{className:`transition-transform group-hover:-translate-x-2 ${n?"-translate-x-2":""}`,children:y.jsx("img",{style:{transform:n?"rotateX(180deg)":"rotateX(0)"},className:"shrink-0 transition-transform",src:"images/caret-down.svg",alt:"Caret down",width:16,height:16})})]}),c&&y.jsx(md,{children:y.jsx("div",{style:i,ref:o.setFloating,...f(),className:"z-20",children:y.jsx("div",{className:"py-medium rounded-large flex flex-col gap-2 border border-white/20 bg-[#00141D]",onClick:()=>r(!1),style:s,children:e})})})]})}function QF({chain:e,token:t,chainOptions:n,tokenOptions:r,onChainChange:o,onTokenChange:a}){const[i,s]=S.useState("");return y.jsxs("div",{className:"flex items-center",children:[y.jsx(iMe,{label:y.jsxs(y.Fragment,{children:[y.jsx("img",{width:32,height:32,alt:"Chain",src:Rn(e.logo),className:"h-[2rem] w-[2rem] shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-base font-bold text-white",children:e.name})]}),children:n.length?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mx-medium px-medium flex items-center gap-1 rounded-xl bg-white/5 transition-colors focus-within:bg-white/10 focus-within:outline-none hover:bg-white/10",children:[y.jsx("img",{alt:"Search",width:24,height:24,src:"images/search.svg",className:"h-6 w-6 opacity-60"}),y.jsx("input",{className:"w-full bg-transparent py-2 text-base font-medium focus-visible:outline-none",placeholder:"Search ...",value:i,onClick:c=>{c.stopPropagation()},onChange:c=>{s(c.target.value)}})]}),y.jsx("div",{className:"mx-auto h-[1px] w-5 bg-white/50"}),y.jsx("div",{className:"app-scrollbar flex max-h-[17.2rem] flex-col overflow-y-auto",children:n.filter(({name:c})=>c.toLowerCase().includes(i.toLowerCase())).map(c=>y.jsx(sMe,{selected:e,option:c,token:t,onSelect:o},c.id))})]}):y.jsx("div",{className:"py-medium flex justify-center",children:y.jsx("span",{className:"text-sm font-bold text-slate-400",children:"No data"})})}),r.length>1?y.jsx(RP,{placeholder:y.jsx("span",{className:"text-sm font-bold text-slate-400",children:"Select a token"}),label:y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:26,height:26,alt:"Token",src:vr(t.logo),className:"h-[1.625rem] w-[1.625rem] shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-bold text-white",children:t.symbol})]}),labelClassName:"flex items-center justify-between gap-small px-small py-2 rounded-[0.625rem] bg-[#1F282C] w-[9.25rem] mr-medium transition-colors hover:bg-white/20",childClassName:"flex flex-col gap-small p-small rounded-[0.625rem] bg-[#00141D] border border-white/20",offsetSize:12,sameWidth:!0,children:r.map(c=>y.jsx(cMe,{selected:t,option:c,onSelect:a},c.symbol))}):null]})}function sMe({selected:e,option:t,token:n,onSelect:r=()=>{}}){const{balanceAll:o}=$g();return y.jsxs("button",{className:"gap-small py-medium flex items-center justify-between px-5 transition-colors hover:bg-white/5 disabled:bg-white/10",disabled:e.id===t.id,onClick:()=>{r(t)},children:[y.jsxs("div",{className:"gap-large flex items-center",children:[y.jsx("img",{width:30,height:30,alt:"Chain",src:Rn(t.logo),className:"h-[1.875rem] w-[1.875rem] shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-bold text-white",children:t.name})]}),o.filter(a=>a.chain.id===t.id&&a.token.category===n.category).slice(0,1).map(a=>y.jsx("span",{className:"truncate text-xs font-medium text-white/50",children:`${ut(a.balance,a.token.decimals,{precision:6})} ${a.token.symbol}`},`${a.chain.network}-${a.token.symbol}`))]})}function cMe({selected:e,option:t,onSelect:n=()=>{}}){return y.jsxs("button",{className:"gap-small p-small flex items-center rounded-[0.625rem] transition-colors hover:bg-white/5 disabled:bg-white/10",disabled:e.symbol===t.symbol,onClick:()=>{n(t)},children:[y.jsx("img",{width:24,height:24,alt:"Chain",src:vr(t.logo),className:"h-[1.5rem] w-[1.5rem] shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-bold text-white",children:t.name})]})}function lMe({disabled:e,onSwitch:t=()=>{}}){const[n,r]=S.useState(0);return y.jsx("div",{className:"relative h-[2px] lg:h-[4px]",children:y.jsx(At,{className:`absolute left-1/2 top-1/2 z-[9] -translate-x-1/2 -translate-y-1/2 rounded-lg bg-[#1F282C] transition-shadow hover:shadow-[0_0_8px_1px_rgba(255,255,255,.8)] ${e?"opacity-80 hover:cursor-not-allowed":"hover:cursor-pointer"}`,content:"This cross-chain is currently unavailable",enabled:e===!0,children:y.jsx("div",{className:"transition-transform duration-300",style:{transform:`rotateX(${180*n}deg)`},onClick:()=>{e||(r(o=>o+1),t())},children:y.jsx("img",{width:28,height:28,alt:"Switch",src:"images/switch.svg",className:`h-[1.75rem] w-[1.75rem] shrink-0 transition-opacity ${e?"opacity-80":""}`})})})})}function uMe({loading:e,recipient:t,disableSwitch:n,expandRecipient:r,recipientOptions:o,sourceChain:a,targetChain:i,sourceToken:s,targetToken:c,sourceChainOptions:l,targetChainOptions:u,sourceTokenOptions:d,targetTokenOptions:f,onSwitch:h,onExpandRecipient:m,onRecipientChange:p,onSourceChainChange:b,onTargetChainChange:v,onSourceTokenChange:g,onTargetTokenChange:w}){return y.jsxs("div",{className:"relative flex flex-col",children:[y.jsx(qs,{loading:e,className:"rounded-large backdrop-blur-[2px]",icon:!1}),y.jsx(xg,{titleText:"From",titleTips:y.jsx(XF,{token:s,chain:a}),children:y.jsx(QF,{chain:a,token:s,chainOptions:l,tokenOptions:d,onChainChange:b,onTokenChange:g})}),y.jsx(lMe,{disabled:n||e,onSwitch:h}),y.jsx(xg,{titleText:"To",titleTips:y.jsx(XF,{token:c,chain:i}),recipient:t,alert:t==null?void 0:t.alert,expandRecipient:r,recipientOptions:o,onExpandRecipient:m,onRecipientChange:p,children:y.jsx(QF,{chain:i,token:c,chainOptions:u,tokenOptions:f,onChainChange:v,onTokenChange:w})})]})}function XF({token:e,chain:t}){var r;const n=new URL(`/address/${e.address}`,(r=t.blockExplorers)==null?void 0:r.default.url);return y.jsxs("div",{className:"gap-small flex flex-col",children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{alt:"Token",width:18,height:18,src:vr(e.logo),className:"rounded-full"}),y.jsxs("span",{className:"text-sm font-extrabold text-white",children:[e.symbol,e.type==="native"?" (native token)":null]})]}),e.type==="native"?null:y.jsxs("div",{className:"inline-flex items-center gap-1",children:[y.jsx("a",{className:"text-sm font-semibold text-white hover:underline",rel:"noopener noreferrer",target:"_blank",href:n.href,children:zu(e.address,12,10)}),y.jsx(AP,{text:e.address,copiedColor:"#ffffff"})]})]})}const bT=[{inputs:[{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"uint8",name:"_decimals",type:"uint8"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"allowFaucet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"faucet",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxFaucetAllowed",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"allowed",type:"uint256"}],name:"setMaxFaucetAllowed",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],pn=S.forwardRef(function({kind:t,busy:n,disabled:r,className:o,children:a,...i},s){return y.jsxs("button",{className:`border-primary relative border transition disabled:cursor-not-allowed ${o} ${t==="primary"?"bg-primary text-white":"text-primary bg-transparent"} ${n?"":"hover:opacity-80 active:translate-y-1 disabled:translate-y-0 disabled:opacity-60"}`,disabled:r||n,ref:s,...i,children:[n&&y.jsx("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-10 flex items-center justify-center",children:y.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-[3px] border-b-white/50 border-l-white/50 border-r-white border-t-white"})}),y.jsx("div",{className:`${n?"invisible":"visible"}`,children:a})]})});function Bd({title:e,subTitle:t,isOpen:n,maskClosable:r,children:o,cancelText:a,okText:i,className:s,disabledCancel:c,disabledOk:l,busy:u,extra:d,forceFooterHidden:f,onClose:h=()=>{},onCancel:m,onOk:p}){const b=S.useRef(null);return S.useEffect(()=>()=>{document.body.style.overflow="auto"},[]),Fs.createPortal(y.jsx(Al,{in:n,timeout:300,nodeRef:b,classNames:"modal-fade",unmountOnExit:!0,appear:!0,onEnter:()=>{document.body.style.overflow="hidden"},onExited:()=>{document.body.style.overflow="auto"},children:y.jsx("div",{ref:b,onClick:()=>r&&h(),className:"bg-app-bg/80 p-medium fixed left-0 top-0 z-20 flex h-screen w-screen items-center justify-center backdrop-blur-sm",children:y.jsxs("div",{className:`p-medium relative flex flex-col gap-5 rounded-3xl bg-[#1F282C] lg:p-5 ${s}`,onClick:v=>v.stopPropagation(),children:[y.jsx("button",{onClick:h,className:"right-medium top-medium absolute rounded-full bg-transparent p-[4px] transition hover:scale-105 hover:bg-white/10 active:scale-95",children:y.jsx("img",{width:20,height:20,alt:"Close",src:"images/close-white.svg"})}),y.jsxs("div",{className:"gap-medium flex flex-col lg:gap-5",children:[y.jsx("h3",{className:"text-xl font-bold text-white",children:e}),t?typeof t=="string"?y.jsx("h5",{className:"text-base font-normal text-white",children:t}):t:null]}),y.jsx("div",{className:"h-[1px] bg-white/10"}),o,f?null:m||p?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"gap-small flex flex-col",children:[d,y.jsx("div",{className:"h-[1px] bg-white/10"})]}),y.jsxs("div",{className:"flex items-center justify-between gap-5",children:[m&&y.jsx(pn,{kind:"default",onClick:m,disabled:c,className:"h-10 flex-1 rounded-[1.25rem] text-sm font-bold",children:a||"Cancel"}),p&&y.jsx(pn,{kind:"primary",onClick:p,disabled:l,busy:u,className:"h-10 flex-1 rounded-[1.25rem] text-sm font-bold",children:i||"Ok"})]})]}):null]})})}),document.body)}function dMe({sourceChain:e,sourceToken:t,onSuccess:n=()=>{}}){const[r,o]=S.useState(!1),[a,i]=S.useState(!1),[s,c]=S.useState(!1),[l,u]=S.useState(0n),[d,f]=S.useState(0n),h=zs({chainId:e.id}),{data:m}=yy(),{switchNetwork:p}=Tl(),{address:b}=tn(),{chain:v}=So(),g=S.useCallback(async()=>{if((v==null?void 0:v.id)!==e.id)p==null||p(e.id);else if(b&&h&&m)try{c(!0);const w=await m.writeContract({address:t.address,abi:bT,functionName:"faucet",args:[1n<=l?l-1n:l]}),_=await h.waitForTransactionReceipt({hash:w,confirmations:ho});Gr(_,e),c(!1),_.status==="success"&&(u(0n),c(!1),o(!1),n())}catch(w){console.error(w),an(w),c(!1)}},[l,v,b,e,t,h,m,n,p]);return S.useEffect(()=>{let w;return b&&t.type==="erc20"&&h?(i(!0),w=qx([Yo(h.readContract({address:t.address,abi:bT,functionName:"allowFaucet",args:[b]})),Yo(h.readContract({address:t.address,abi:bT,functionName:"maxFaucetAllowed"}))]).subscribe({next:([_,C])=>{i(!1);const x=pj(C.toString(),t.decimals);u(x-_),f(x)},error:_=>{console.error(_),i(!1),u(0n),f(0n)}})):(u(0n),f(0n)),()=>{w==null||w.unsubscribe()}},[b,t,h]),y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"rounded-full bg-white/20 px-2 py-[2px] text-xs font-semibold text-white opacity-60 transition-opacity hover:opacity-100 active:scale-95",onClick:()=>o(!0),children:"Faucet"}),y.jsxs(Bd,{className:"w-full lg:w-[24rem]",title:"Faucet",okText:(v==null?void 0:v.id)===e.id?"Claim":"Switch Network",isOpen:r,disabledCancel:s,disabledOk:l<=1n,busy:s,onClose:()=>o(!1),onCancel:()=>o(!1),onOk:g,children:[y.jsx(JF,{text:"Max",tips:"The maximum you can claim",children:y.jsx(ZF,{loading:a,value:d,token:t})}),y.jsx(JF,{text:"Allow",tips:"Currently available for claiming",children:y.jsx(ZF,{loading:a,value:l,token:t})})]})]})}function JF({text:e,tips:t,children:n}){return y.jsxs("div",{className:"gap-small flex flex-col",children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:e}),t?y.jsx(At,{content:t,children:y.jsx("img",{width:16,height:16,alt:"Tips",src:"images/info.svg",className:"h-4 w-4 shrink-0"})}):null]}),n]})}function ZF({value:e,token:t,loading:n}){return y.jsxs("div",{className:"bg-background flex items-center justify-between rounded-xl px-4 py-3",children:[n?y.jsx(Sh,{size:"small",color:"white"}):y.jsx("span",{className:"text-base font-bold",children:ut(e,t.decimals,{precision:3,keepZero:!0})}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("img",{width:24,height:24,alt:"Token",className:"h-6 w-6 shrink-0 rounded-full",src:vr(t.logo)}),y.jsx("span",{className:"text-base font-bold",children:t.symbol})]})]})}function fMe({min:e,max:t,chain:n,sourceToken:r,targetToken:o,value:a,balance:i,loading:s,onRefresh:c,onChange:l=()=>{}}){const[u,d]=S.useState("text-[3rem] font-light"),f=S.useRef(null),h=S.useRef(null),m=S.useRef(r);S.useEffect(()=>{(r.decimals!==m.current.decimals||r.symbol!==m.current.symbol)&&(m.current=r,l({input:"",value:0n,valid:!0,alert:""}))},[r,l]);const p=S.useCallback(()=>{const{value:v,input:g}=eM(Wu(t??0n,r.decimals),r.decimals,tM(r,o));l({valid:!0,alert:"",value:v,input:g})},[r,o,t,l]),b=S.useCallback(v=>{const g=v.target.value;let w={value:0n,input:""},_=!0,C="";g?Number.isNaN(Number(g))||(w=eM(g,r.decimals,tM(r,o)),i{var _,C;const v=((_=f.current)==null?void 0:_.clientWidth)||1,w=(((C=h.current)==null?void 0:C.clientWidth)||0)/v*100;w<20?d("text-[3rem] font-light"):w<30?d("text-[2.25rem] font-light"):w<40?d("text-[1.875rem] font-normal"):w<50?d("text-[1.5rem] font-medium"):w<60?d("text-[1.25rem] font-semibold"):d("text-[1.25rem] font-bold")},[a.input]),y.jsxs("div",{className:"gap-medium px-medium flex flex-col",children:[y.jsx("input",{className:`${u} h-12 bg-transparent text-white transition-[font-size,font-weight,line-height] duration-300 focus-visible:outline-none`,ref:f,placeholder:"0",value:a.input,onChange:b}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs("span",{className:"text-sm font-normal text-white/50",children:["Balance: ",ut(i,r.decimals)]}),y.jsx("button",{className:`rounded-full bg-white/20 p-[3px] opacity-50 transition hover:opacity-100 active:scale-95 ${s?"animate-spin":""}`,onClick:c,children:y.jsx("img",{alt:"Refresh balance",width:14,height:14,src:"images/refresh.svg"})}),y.jsx("button",{className:"rounded-full bg-white/20 px-2 py-[2px] text-xs font-semibold text-white opacity-60 transition-[transform,opacity] hover:opacity-100 active:scale-95",onClick:p,children:"Max"}),n.testnet?y.jsx(dMe,{sourceChain:n,sourceToken:r,onSuccess:c}):null]}),y.jsx("span",{className:"invisible fixed left-0 top-0 -z-50",ref:h,children:a.input})]})}function eM(e,t,n){let r="",o=0n;const[a,i]=e.replace(/,/g,"").split(".").concat("-1");return a&&(r=i==="-1"?a:i?`${a}.${i.slice(0,n)}`:`${a}.`,o=pj(r,t)),{value:o,input:r}}function tM(e,t){return e.decimals{var d;return 0<(((d=t==null?void 0:t.sortedLnBridgeRelayInfos)==null?void 0:d.records.length)||0)},[(l=t==null?void 0:t.sortedLnBridgeRelayInfos)==null?void 0:l.records.length]),{loading:s,dailyLimit:c}=s_e(r);return y.jsx(xg,{children:y.jsx(mMe,{transferLimit:{loading:n,value:(u=t==null?void 0:t.sortedLnBridgeRelayInfos)!=null&&u.transferLimit?BigInt(t.sortedLnBridgeRelayInfos.transferLimit):void 0,token:e},estimatedTime:i?{loading:n,value:r==null?void 0:r.formatEstimateTime()}:void 0,transactionFee:{warning:o?void 0:"Liquidity is not enough",loading:a,value:o==null?void 0:o.value,token:o==null?void 0:o.token},dailyLimit:c?{loading:s,value:c.limit,token:c.token}:void 0})})}const zp=Bve();function gMe({children:e}){const[t,n]=S.useState(zp[0]),[r,o]=S.useState({input:"",value:0n,valid:!0,alert:""}),[a,i]=S.useState(a3(t.category)),[s,c]=S.useState(a[0]),[l,u]=S.useState(ff(s,t.category)[0]),[d,f]=S.useState(Ep(l)),[h,m]=S.useState(d[0]),[p,b]=S.useState(yc(l,h)[0]),v=S.useRef(t),g=S.useRef(s),w=S.useRef(l),_=S.useRef(h),C=S.useRef(p),x=S.useCallback(te=>{n(te),v.current=te},[]),E=S.useCallback(te=>{c(te),g.current=te},[]),T=S.useCallback(te=>{u(te),w.current=te},[]),k=S.useCallback(te=>{m(te),_.current=te},[]),D=S.useCallback(te=>{b(te),C.current=te},[]);S.useEffect(()=>{const te=new URLSearchParams(window.location.hash.split("?")[1]),ee=te.get(Mn.TOKEN_CATEGORY),re=zp.find(({category:W})=>W===ee)||zp[0],z=te.get(Mn.SOURCE_CHAIN),fe=a3(re.category),ve=fe.find(({network:W})=>W===z)||fe[0],Ue=te.get(Mn.SOURCE_TOKEN),ke=ff(ve,re.category),Qe=ke.find(({symbol:W})=>W===Ue)||ke[0],Te=te.get(Mn.TARGET_CHAIN),Ee=Ep(Qe),he=Ee.find(({network:W})=>W===Te)||Ee[0],Me=te.get(Mn.TARGET_CHAIN),ge=yc(Qe,he),Y=ge.find(({symbol:W})=>W===Me)||ge[0];g.current=ve,w.current=Qe,_.current=he,C.current=Y,x(re)},[x]);const[R]=Dz(),F=S.useRef(R);S.useEffect(()=>{F.current=R},[R]);const B=Mg(),j=S.useCallback((te=!1)=>{const ee=te?new URLSearchParams:new URLSearchParams(F.current.toString());ee.set(Mn.TOKEN_CATEGORY,v.current.category),te||(ee.set(Mn.SOURCE_CHAIN,g.current.network),ee.set(Mn.SOURCE_TOKEN,w.current.symbol),ee.set(Mn.TARGET_CHAIN,_.current.network),ee.set(Mn.TARGET_TOKEN,C.current.symbol)),B(`?${ee.toString()}`)},[B]),[P,O]=S.useState(zp),{loading:I,data:N}=LN("");S.useEffect(()=>{if(!I&&N.length){const te=N.map(({tokenKey:re})=>re),ee=zp.filter(re=>te.includes(re.category.toUpperCase()));ee.some(({category:re})=>re===v.current.category)||x(ee[0]),O(ee)}},[x,I,N]);const{loading:M,data:L}=LN(t.category),X=S.useRef(L);S.useEffect(()=>{X.current=L;const te=v.current,ee=a3(te.category).filter(Te=>{var Ee;return(Ee=L.at(0))==null?void 0:Ee.chains.some(({fromChain:he})=>Te.network===he)}),re=ee.find(({id:Te})=>Te===g.current.id)||ee.at(0)||g.current,z=ff(re,te.category),fe=z.find(({symbol:Te})=>Te===w.current.symbol)||z.at(0)||w.current,ve=Ep(fe).filter(Te=>{var Ee,he;return(he=(Ee=L.at(0))==null?void 0:Ee.chains.find(({fromChain:Me})=>re.network===Me))==null?void 0:he.toChains.includes(Te.network)}),Ue=ve.find(({id:Te})=>Te===_.current.id)||ve.at(0)||_.current,ke=yc(fe,Ue),Qe=ke.find(({symbol:Te})=>Te===C.current.symbol)||ke.at(0)||C.current;i(ee),f(ve),E(re),T(fe),k(Ue),D(Qe),j()},[L,j,E,T,k,D]);const J=S.useCallback(te=>{x(te),j(!0)},[j,x]),U=S.useCallback(te=>{const ee=ff(te,v.current.category),re=ee.find(({symbol:ke})=>ke===w.current.symbol)||ee[0],z=Ep(re).filter(ke=>{var Qe,Te;return(Te=(Qe=X.current.at(0))==null?void 0:Qe.chains.find(({fromChain:Ee})=>te.network===Ee))==null?void 0:Te.toChains.includes(ke.network)}),fe=z.find(({id:ke})=>ke===_.current.id)||z[0],ve=yc(re,fe),Ue=ve.find(({symbol:ke})=>ke===C.current.symbol)||ve[0];f(z),E(te),T(re),k(fe),D(Ue),j()},[j,E,T,k,D]),G=S.useCallback(te=>{const ee=Ep(te).filter(ve=>{var Ue,ke;return(ke=(Ue=X.current.at(0))==null?void 0:Ue.chains.find(({fromChain:Qe})=>g.current.network===Qe))==null?void 0:ke.toChains.includes(ve.network)}),re=ee.find(({id:ve})=>ve===_.current.id)||ee[0],z=yc(te,re),fe=z.find(({symbol:ve})=>ve===C.current.symbol)||z[0];f(ee),T(te),k(re),D(fe),j()},[j,T,k,D]),Z=S.useCallback(te=>{const ee=yc(w.current,te),re=ee.find(({symbol:z})=>z===C.current.symbol)||ee[0];k(te),D(re),j()},[j,k,D]),ae=S.useCallback(te=>{D(te),j()},[j,D]),ne=S.useCallback(()=>{const te=_.current,ee=g.current,re=ff(te,v.current.category),z=re.find(({symbol:Ue})=>Ue===w.current.symbol)||re[0],fe=yc(z,ee),ve=fe.find(({symbol:Ue})=>Ue===C.current.symbol)||fe[0];E(te),T(z),k(ee),D(ve),j()},[j,E,T,k,D]),ie=S.useCallback((te,ee)=>{var re,z;return!!((z=(re=X.current.at(0))==null?void 0:re.chains.find(({fromChain:fe})=>ee.network===fe))!=null&&z.toChains.includes(te.network))},[]);return y.jsx(UY.Provider,{value:{amount:r,token:t,sourceChain:s,sourceToken:l,targetChain:h,targetToken:p,sourceChainOptions:a,targetChainOptions:d,availableTokenOptions:P,loadingSupportedChains:M,loadingAvailableTokenOptions:I,setAmount:o,isSwitchAvailable:ie,handleTokenChange:J,handleSourceChainChange:U,handleSourceTokenChange:G,handleTargetChainChange:Z,handleTargetTokenChange:ae,handleSwitch:ne},children:e})}const nM="disclaimer";function yMe(){const{state:e,setState:t,setFalse:n}=zg(!1);return S.useEffect(()=>{t(!localStorage.getItem(nM))},[t]),y.jsxs(Bd,{title:"Disclaimer",className:"w-full lg:w-[30rem]",isOpen:e,onClose:n,children:[y.jsxs("div",{className:"gap-medium flex flex-col",children:[y.jsx(nf,{content:"By using Helix, I agree to the following:"}),y.jsx(nf,{content:"I understand that Helix is a bridge aggregator and is only responsible for routing the transfer to the selected bridge. Helix does not hold any funds in custody at any point."}),y.jsx(nf,{content:"I understand that the fees shown in a route are estimations and may vary."}),y.jsx(nf,{content:"I understand that the bridging time shown in a route is an estimation. Helix has no control over the bridging time. The bridge or protocol being used may sometimes take more time than the estimated time."}),y.jsx(nf,{content:"I understand that the app is in Beta and all risks associated with using it."}),y.jsx(nf,{content:"I am lawfully permitted to access this site and use Helix under the laws of the jurisdiction in which I reside and am located."})]}),y.jsx("div",{}),y.jsx(pn,{className:"rounded-medium px-large py-small mx-auto w-fit",kind:"primary",onClick:()=>{n(),localStorage.setItem(nM,"agree")},children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Agree and Continue"})})]})}function nf({content:e}){return y.jsx("p",{className:"text-sm font-medium text-white",children:e})}function bMe({sender:e,recipient:t,busy:n,fee:r,bridge:o,sourceChain:a,sourceToken:i,targetChain:s,targetToken:c,amount:l,isOpen:u,onClose:d,onConfirm:f}){return y.jsxs(Bd,{title:"Transfer Review",isOpen:u,className:"w-full lg:w-[26rem]",okText:"Confirm",disabledCancel:n,busy:n,onClose:d,onCancel:d,onOk:f,children:[y.jsxs("div",{className:"gap-small flex flex-col",children:[y.jsx(rM,{type:"source",address:e,chain:a,token:i,amount:l}),y.jsx("div",{className:"relative",children:y.jsx("div",{className:"absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center",children:y.jsx("img",{width:36,height:36,alt:"Transfer to",src:"images/transfer-to.svg",className:"shrink-0"})})}),y.jsx(rM,{type:"target",address:t,chain:s,token:c,amount:l})]}),y.jsxs("div",{className:"gap-medium flex flex-col",children:[y.jsx("span",{className:"text-sm font-bold text-white/50",children:"Information"}),y.jsx(vMe,{fee:r,bridge:o})]})]})}function rM({type:e,address:t,chain:n,token:r,amount:o}){return n&&r?y.jsxs("div",{className:"bg-background lg:p-large flex items-start justify-between gap-2 rounded-xl p-3 lg:rounded-2xl",children:[y.jsx("img",{width:36,height:36,alt:"Chain",src:Rn(n.logo),className:"shrink-0 rounded-full"}),y.jsxs("div",{className:"flex w-full flex-col gap-1 truncate",children:[y.jsxs("div",{className:"flex items-center justify-between gap-1",children:[y.jsx("span",{className:"max-w-[46%] truncate text-base font-semibold text-white",children:n.name}),y.jsxs("span",{className:`max-w-[46%] truncate text-sm font-extrabold ${e==="source"?"text-app-red":"text-app-green"}`,children:[e==="source"?"-":"+",She(o.input)]})]}),y.jsxs("div",{className:"flex items-center justify-between gap-1",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:t?zu(t,8,6):""}),y.jsx("span",{className:"text-sm font-extrabold text-white",children:r.symbol})]})]})]}):null}function vMe({fee:e,bridge:t}){return y.jsxs("div",{className:"gap-small bg-background lg:p-large flex flex-col rounded-xl p-3 lg:rounded-2xl",children:[y.jsx(oM,{label:"Estimated Arrival Time",value:t==null?void 0:t.formatEstimateTime()}),y.jsx(oM,{label:"Transaction Fee",value:e?`${ut(e.value,e.token.decimals,{precision:6})} ${e.token.symbol}`:null})]})}function oM({label:e,value:t}){return y.jsxs("div",{className:"gap-medium flex items-center justify-between text-sm font-bold italic text-white",children:[y.jsx("span",{children:e}),y.jsx("span",{className:"truncate",children:t})]})}function wMe(){var ge,Y,W;const{updateBalanceAll:e,setIsHistoryOpen:t,setHistoryDetails:n}=$g(),[r,o]=S.useState(!1),[a,i]=S.useState(!1),{amount:s,token:c,sourceChain:l,sourceToken:u,targetChain:d,targetToken:f,sourceChainOptions:h,targetChainOptions:m,availableTokenOptions:p,loadingSupportedChains:b,loadingAvailableTokenOptions:v,setAmount:g,isSwitchAvailable:w,handleTokenChange:_,handleSourceChainChange:C,handleSourceTokenChange:x,handleTargetChainChange:E,handleTargetTokenChange:T,handleSwitch:k}=a_e(),D=S.useDeferredValue(s),R=tn(),{chain:F}=So(),B=zs(),{data:j}=yy(),{switchNetwork:P}=Tl(),{openConnectModal:O}=Eb(),[I,N]=S.useState({input:R.address??"",value:R.address,alert:void 0}),[M,L]=S.useState(!1),X=S.useRef(!1);S.useEffect(()=>{X.current||(R.address?N({input:R.address,value:R.address,alert:void 0}):N({input:"",value:void 0,alert:void 0}))},[R.address]);const J=S.useCallback(Q=>{N(Q),X.current=!0},[]),U=S.useCallback(()=>L(Q=>!Q),[]),{balance:G,loading:Z,refresh:ae}=r_e(l,u,R.address),{maxTransfer:ne}=c_e(l,d,u,G),{data:ie,loading:te}=o_e(D.value,u,l,d),ee=S.useMemo(()=>{var ce,pe;const Q=(pe=(ce=ie==null?void 0:ie.sortedLnBridgeRelayInfos)==null?void 0:ce.records.at(0))==null?void 0:pe.bridge;return Q?fm({category:Q,walletClient:j,publicClient:B,sourceChain:l,sourceToken:u,targetChain:d,targetToken:f}):void 0},[(ge=ie==null?void 0:ie.sortedLnBridgeRelayInfos)==null?void 0:ge.records,j,B,l,u,d,f]),{loading:re,fee:z}=i_e(ee,R.address,R.address,D.value,ie),{allowance:fe,loading:ve,busy:Ue,approve:ke,refresh:Qe}=n_e(l,u,R.address,(Y=ee==null?void 0:ee.getContract())==null?void 0:Y.sourceAddress),[Te,Ee]=S.useMemo(()=>{let Q="Transfer",ce=!1;return F!=null&&F.id?F.id!==l.id?(Q="Switch Chain",ce=!1):fe<((z==null?void 0:z.token.type)==="native"?D.value:D.value+((z==null?void 0:z.value)??0n))?(Q="Approve",ce=!1):(Q="Transfer",ce=ve||(z==null?void 0:z.value)===void 0||!D.input||!D.valid||!I.value||!!I.alert):(Q="Connect Wallet",ce=!1),[Q,ce]},[fe,ve,F==null?void 0:F.id,D,l.id,z==null?void 0:z.value,z==null?void 0:z.token.type,I.alert,I.value]),he=S.useCallback(async()=>{if(Te==="Connect Wallet")O==null||O();else if(Te==="Switch Chain")P==null||P(l.id);else if(Te==="Approve"){const Q=await ke((z==null?void 0:z.token.type)==="native"?D.value:D.value+((z==null?void 0:z.value)??0n));Gr(Q,l,"Approval")}else Te==="Transfer"&&o(!0)},[Te,l,D.value,z==null?void 0:z.value,z==null?void 0:z.token.type,ke,O,P]),Me=S.useCallback(async()=>{var pe,De;const Q=ee==null?void 0:ee.getSourceChain(),ce=ee==null?void 0:ee.getTargetChain();if(ee&&R.address&&I.value){const Ie=(pe=ie==null?void 0:ie.sortedLnBridgeRelayInfos)==null?void 0:pe.records.at(0);try{i(!0);const Je=await ee.transfer(R.address,I.value,D.value,{relayer:Ie==null?void 0:Ie.relayer,transferId:Ie==null?void 0:Ie.lastTransferId,totalFee:z==null?void 0:z.value,withdrawNonce:BigInt((Ie==null?void 0:Ie.withdrawNonce)??0),depositedMargin:BigInt((Ie==null?void 0:Ie.margin)??0)});Gr(Je,Q,"Transfer"),i(!1),(Je==null?void 0:Je.status)==="success"&&(g({input:"",valid:!0,value:0n,alert:""}),n({requestTxHash:Je.transactionHash,fromChain:Q==null?void 0:Q.network,toChain:ce==null?void 0:ce.network,sendToken:(De=ee.getSourceToken())==null?void 0:De.symbol,sendAmount:D.value.toString()}),o(!1),t(!0),ae(),Qe(),e())}catch(Je){console.error(Je),an(Je),i(!1)}}},[(W=ie==null?void 0:ie.sortedLnBridgeRelayInfos)==null?void 0:W.records,R.address,I.value,ee,z==null?void 0:z.value,D.value,g,ae,Qe,e,t,n]);return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"gap-medium p-medium flex w-full flex-col rounded-2xl bg-[#1F282C] lg:w-[27.5rem] lg:gap-5 lg:rounded-[2rem] lg:p-5",children:[y.jsx(aMe,{token:c,options:p,loading:v,onChange:_}),y.jsx(uMe,{recipient:I,loading:b,expandRecipient:M,recipientOptions:R.address?[R.address]:[],sourceChain:l,targetChain:d,sourceToken:u,targetToken:f,sourceChainOptions:h,targetChainOptions:m,disableSwitch:!w(l,d),sourceTokenOptions:ff(l,c.category),targetTokenOptions:yc(u,d),onSourceChainChange:C,onSourceTokenChange:x,onTargetChainChange:E,onTargetTokenChange:T,onSwitch:k,onRecipientChange:J,onExpandRecipient:U}),y.jsx(hMe,{amount:s,loading:Z,balance:G,sourceToken:u,targetToken:f,chain:l,max:ne,onChange:g,onRefresh:ae}),y.jsx(pMe,{bridge:ee,sourceToken:u,relayData:ie,loadingRelayData:te,fee:z,loadingFee:re}),y.jsx(pn,{className:"inline-flex h-12 items-center justify-center rounded-full",kind:"primary",busy:Ue,disabled:Ee||!h.length,onClick:he,children:y.jsx("span",{className:"text-base font-bold text-white",children:Te})})]}),y.jsx(bMe,{sender:R.address,recipient:I.value,sourceChain:l,sourceToken:u,targetChain:d,targetToken:f,fee:z,bridge:ee,amount:D,busy:a,isOpen:r,onClose:()=>o(!1),onConfirm:Me}),y.jsx(yMe,{})]})}function EMe(){return y.jsx(gMe,{children:y.jsx(wMe,{})})}function _Me(){return y.jsxs("main",{className:"app-main relative overflow-hidden",children:[y.jsx("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[-1] flex items-center justify-center",children:y.jsx("div",{className:"bg-primary lg:bg-primary/40 h-[70vw] w-[70vw] rounded-full blur-[8rem] lg:h-[65vh] lg:w-[65vh]"})}),y.jsx("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-[2] overflow-y-auto",children:y.jsx("div",{className:"page-container flex min-h-full items-start justify-center lg:items-center lg:!pb-10",children:y.jsx(EMe,{})})})]})}function xMe({value:e,onChange:t}){return y.jsxs("div",{className:"bg-secondary relative flex items-center rounded-full p-1",children:[y.jsx("div",{className:"bg-primary absolute left-1 top-1 inline-flex h-6 w-12 items-center justify-center rounded-full transition-transform",style:{transform:e==="lnv3"?"translate(0, 0)":"translate(3rem, 0)"},children:y.jsx("span",{className:"text-sm font-bold uppercase text-white/90",children:e==="lnv3"?"v3":"v2"})}),y.jsx("span",{className:"inline-flex h-6 w-12 items-center justify-center text-sm font-normal text-white/50 transition-colors hover:cursor-pointer hover:text-white",onClick:()=>t("lnv3"),children:"V3"}),y.jsx("span",{className:"inline-flex h-6 w-12 items-center justify-center text-sm font-normal text-white/50 transition-colors hover:cursor-pointer hover:text-white",onClick:()=>t("lnv2"),children:"V2"})]})}function CMe({options:e,activeKey:t,className:n,onChange:r=()=>{}}){var c;const o=S.useRef(null),a=S.useRef(null),i=S.useRef(t),s=i.current===t?a:o;return i.current=t,y.jsxs("div",{className:"flex w-full flex-col items-center gap-5",children:[y.jsx("div",{className:`flex h-10 w-full ${n}`,children:e.filter(({hidden:l})=>!l).map(({key:l,label:u,disabled:d})=>y.jsx("div",{className:`border-primary flex flex-1 items-center justify-center border-y border-r transition-colors duration-100 first:rounded-l-full first:border-l last:rounded-r-full ${t===l?"bg-primary":"hover:bg-primary/50 bg-transparent"} ${d?"opacity-60":""}`,children:y.jsx(At,{enabled:!!d,content:"Coming soon",className:"h-full w-full",children:y.jsx("button",{onClick:()=>r(l),className:`h-full w-full ${t===l?"disabled:cursor-default":"disabled:cursor-not-allowed"}`,disabled:d||t===l,children:typeof u=="string"?y.jsx("span",{className:"text-sm font-medium lg:font-extrabold",children:u}):u})})},l))}),y.jsx(vy,{children:y.jsx(Al,{timeout:150,nodeRef:s,classNames:"tabs-fade",unmountOnExit:!0,children:y.jsx("div",{ref:s,className:"w-full",children:(c=e.find(({key:l})=>l===t))==null?void 0:c.children})},t)})]})}function SMe({total:e,current:t,size:n=10,onChange:r=()=>{}}){const o=Math.ceil(e/n);return o>1?y.jsxs("div",{className:"gap-small flex items-center justify-end",children:[y.jsx(Ma,{label:"previous",current:t,total:o,onClick:()=>r(t-1)}),TMe(t,o,r),y.jsx(Ma,{label:"next",current:t,total:o,onClick:()=>r(t+1)})]}):null}function Ma({label:e,current:t,total:n,onClick:r}){const{disabled:o,className:a}=S.useMemo(()=>{let i="inline-flex items-center justify-center h-8 min-w-[2rem] px-[2px] rounded-md border text-sm font-normal text-white bg-secondary transition-[opacity,color]",s=!1;return e==="next"&&t+1===n||e==="previous"&&t===0?(i+=" disabled:cursor-not-allowed disabled:opacity-50 border-white/30",s=!0):e===t?(i+=" bg-white/10 disabled:cursor-default border-transparent",s=!0):e==="more"?(i+=" opacity-50 disabled:cursor-default border-white/30",s=!0):i+=" opacity-50 hover:opacity-100 border-white/30",{disabled:s,className:i}},[e,t,n]);return y.jsx("button",{className:a,disabled:o,onClick:r,children:e==="more"?y.jsx("span",{children:"..."}):e==="previous"?y.jsx("img",{alt:"Previous page",width:16,height:16,src:"images/pagination/previous-page.svg"}):e==="next"?y.jsx("img",{alt:"Next page",width:16,height:16,src:"images/pagination/next-page.svg"}):y.jsx("span",{children:e+1})})}function TMe(e,t,n){const r=new Array(t).fill(0).map((o,a)=>a);return e<3||t-48?y.jsxs(y.Fragment,{children:[r.slice(0,4).map(o=>y.jsx(Ma,{label:o,current:e,total:t,onClick:()=>n(o)},o)),y.jsx(Ma,{label:"more",current:e,total:t}),r.slice(-4).map(o=>y.jsx(Ma,{label:o,current:e,total:t,onClick:()=>n(o)},o))]}):r.map(o=>y.jsx(Ma,{label:o,current:e,total:t,onClick:()=>n(o)},o)):y.jsxs(y.Fragment,{children:[y.jsx(Ma,{label:0,current:e,total:t,onClick:()=>n(0)}),y.jsx(Ma,{label:"more",current:e,total:t}),r.slice(e-1,e+2).map(o=>y.jsx(Ma,{label:o,current:e,total:t,onClick:()=>n(o)},o)),y.jsx(Ma,{label:"more",current:e,total:t}),y.jsx(Ma,{label:t-1,current:e,total:t,onClick:()=>n(t-1)})]})}function AMe({onPageChange:e,totalRecords:t,currentPage:n,dataSource:r,className:o,pageSize:a,loading:i,columns:s}){const c=S.useMemo(()=>s.reduce((l,u)=>{const d=typeof u.width=="string"?u.width:typeof u.width=="number"?`${u.width}px`:"1fr";return l==="auto"?l=d:l=`${l} ${d}`,l},"auto"),[s]);return y.jsxs("div",{className:"space-y-3",children:[y.jsx("div",{className:"w-full overflow-x-auto",children:y.jsxs("div",{className:`bg-secondary rounded-2xl p-2 lg:p-5 ${o}`,children:[y.jsx("div",{className:"bg-background py-large grid items-center gap-x-2 rounded-t-xl border-b border-b-white/10 px-3 text-sm font-normal text-white/50",style:{gridTemplateColumns:c},children:s.map(({key:l,title:u})=>typeof u=="string"?y.jsx("h5",{children:u},l):y.jsx(S.Fragment,{children:u},l))}),y.jsxs("div",{className:"relative",children:[y.jsx(qs,{loading:i,className:`rounded-b-xl ${r!=null&&r.length?"bg-black/5 backdrop-blur-[2px]":""}`,color:"white"}),r!=null&&r.length?y.jsx("div",{className:"rounded-b-xl",children:r.map(l=>y.jsx("div",{className:"bg-background grid items-center gap-x-2 px-3 py-2 text-sm font-normal text-white last:rounded-b-xl",style:{gridTemplateColumns:c},children:s.map(({key:u,dataIndex:d,render:f})=>y.jsx(S.Fragment,{children:f?f(l):y.jsx("span",{children:`${l[d]}`})},u))},l.id))}):y.jsx("div",{className:"flex h-48 flex-col items-center justify-center gap-4",children:i?null:y.jsxs(y.Fragment,{children:[y.jsx("img",{width:50,height:63,alt:"No data",src:"images/no-data.svg"}),y.jsx("span",{className:"text-sm font-normal text-slate-400",children:"No data"})]})})]})]})}),t!==void 0&&n!==void 0&&y.jsx("div",{className:"overflow-x-auto pb-1",children:y.jsx(SMe,{size:a,current:n,total:t,onChange:e})})]})}function DMe({record:e}){const[t,n]=S.useState();return S.useEffect(()=>{const r=st(e.fromChain),o=st(e.toChain),a=r==null?void 0:r.tokens.find(l=>{var u;return l.address.toLowerCase()===((u=e.sendToken)==null?void 0:u.toLowerCase())}),i=o==null?void 0:o.tokens.find(l=>{var u;return l.symbol===((u=a==null?void 0:a.cross.find(d=>(d.bridge.category===e.bridge||d.bridge.category==="lnbridge"&&e.bridge.startsWith("ln"))&&d.target.network===e.toChain))==null?void 0:u.target.symbol)}),s=new Zj({category:"lnbridge",sourceChain:r,targetChain:o,sourceToken:a,targetToken:i,protocol:"lnv3"}),c=Yo(s.getPenaltyReserves(e.relayer)).subscribe({next:n,error:l=>{console.error(l),n(null)}});return()=>{c.unsubscribe()}},[e]),t?y.jsx(At,{content:ut(t.value,t.token.decimals),className:"w-fit max-w-full truncate",children:ut(t.value,t.token.decimals)}):y.jsx("span",{children:"-"})}function kMe({record:e}){const{relayer:t,sourceChain:n,targetChain:r,sourceToken:o,targetToken:a}=S.useMemo(()=>{const s=st(e.fromChain),c=st(e.toChain),l=s==null?void 0:s.tokens.find(d=>{var f;return d.address.toLowerCase()===((f=e.sendToken)==null?void 0:f.toLowerCase())}),u=c==null?void 0:c.tokens.find(d=>{var f;return d.symbol===((f=l==null?void 0:l.cross.find(h=>(h.bridge.category===e.bridge||h.bridge.category==="lnbridge"&&e.bridge.startsWith("ln"))&&h.target.network===e.toChain))==null?void 0:f.target.symbol)});return{relayer:e.relayer,sourceChain:s,targetChain:c,sourceToken:l,targetToken:u}},[e]),{data:i}=LY(t,a==null?void 0:a.address,n==null?void 0:n.network,r==null?void 0:r.network,240);return o?y.jsx(jMe,{data:i,token:o}):y.jsx("span",{children:"-"})}function jMe({data:e,token:t}){const n=e.reduce((r,o)=>r+BigInt(o.sendAmount),0n);return y.jsx(At,{content:ut(n,t.decimals),className:"w-fit max-w-full truncate",children:ut(n,t.decimals)})}function PMe({record:e}){const[t,n]=S.useState();return S.useEffect(()=>{let r;const o=st(e.fromChain),a=st(e.toChain),i=o==null?void 0:o.tokens.find(l=>{var u;return l.address.toLowerCase()===((u=e.sendToken)==null?void 0:u.toLowerCase())}),s=a==null?void 0:a.tokens.find(l=>{var u;return l.symbol===((u=i==null?void 0:i.cross.find(d=>(d.bridge.category===e.bridge||d.bridge.category==="lnbridge"&&e.bridge.startsWith("ln"))&&d.target.network===e.toChain))==null?void 0:u.target.symbol)}),c=fm({category:e.bridge,sourceChain:o,targetChain:a,sourceToken:i,targetToken:s});return c?r=Yo(c.getTargetAllowance(e.relayer)).subscribe({next:n,error:l=>{console.error(l),n(null)}}):n(null),()=>{r==null||r.unsubscribe()}},[e]),t?y.jsx(At,{content:ut(t.value,t.token.decimals),className:"w-fit max-w-full truncate",children:ut(t.value,t.token.decimals)}):y.jsx("span",{children:"-"})}function IMe({record:e}){const[t,n]=S.useState();return S.useEffect(()=>{let r;const o=st(e.fromChain),a=st(e.toChain),i=o==null?void 0:o.tokens.find(l=>{var u;return l.address.toLowerCase()===((u=e.sendToken)==null?void 0:u.toLowerCase())}),s=a==null?void 0:a.tokens.find(l=>{var u;return l.symbol===((u=i==null?void 0:i.cross.find(d=>(d.bridge.category===e.bridge||d.bridge.category==="lnbridge"&&e.bridge.startsWith("ln"))&&d.target.network===e.toChain))==null?void 0:u.target.symbol)}),c=fm({category:e.bridge,sourceChain:o,targetChain:a,sourceToken:i,targetToken:s});return c?r=Yo(c.getTargetBalance(e.relayer)).subscribe({next:n,error:l=>{console.error(l),n(null)}}):n(null),()=>{r==null||r.unsubscribe()}},[e]),t?y.jsx(At,{content:ut(t.value,t.token.decimals),className:"w-fit max-w-full truncate",children:ut(t.value,t.token.decimals)}):y.jsx("span",{children:"-"})}function UZ({network:e}){const t=st(e);return t?y.jsx(At,{content:t.name,className:"mx-auto w-fit",children:y.jsx("img",{width:24,height:24,alt:t.name,src:Rn(t.logo),className:"rounded-full"})}):y.jsx("span",{children:"-"})}function To({title:e,tips:t,className:n}){return y.jsxs("div",{className:`gap-small flex items-center ${n}`,children:[y.jsx("span",{className:"truncate",children:e}),t?y.jsx(At,{content:t,className:"shrink-0",contentClassName:"max-w-[18rem]",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]})}function OMe({signers:e,heartbeatTimestamp:t}){const n=RMe(e),r=n.filter(([a,i])=>i),o=$Z(t);return n.length>0?y.jsx(At,{content:y.jsxs("div",{className:"flex flex-col items-start gap-2",children:[y.jsx("span",{className:"text-xs font-semibold",children:`Total: ${r.length} / ${n.length}`}),n.map(([a,i])=>y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:`h-[8px] w-[8px] rounded-full ${i?"bg-app-green":"bg-white/50"}`}),y.jsx("span",{className:"text-xs font-semibold",children:zu(a,10,8)})]},a))]}),className:"mx-auto w-fit",children:y.jsx("div",{className:`h-[8px] w-[8px] rounded-full ${r.length===n.length?"bg-app-green":r.length>0?"bg-app-orange":"bg-white/50"}`})}):y.jsx(At,{content:o?"Online":"Offline",className:"mx-auto w-fit",children:y.jsx("div",{className:`h-[8px] w-[8px] rounded-full ${o?"bg-app-green":"bg-white/50"}`})})}function $Z(e){return Date.now()-(e??0)*1e3<5*60*1e3}function RMe(e){return(e==null?void 0:e.split(",").reduce((t,n)=>{const[r,o]=n.split("-");return t.push([r,$Z(Number(o))]),t},[]))||[]}const Dv=({version:e,isDashboard:t})=>({key:"status",title:"",width:t&&e==="lnv3"?32:54,render:({heartbeatTimestamp:n,signers:r})=>y.jsx(OMe,{heartbeatTimestamp:n,signers:r})}),kv=({isDashboard:e})=>({key:"from",title:y.jsx(To,{title:"From",className:"justify-center"}),render:({fromChain:t})=>y.jsx(UZ,{network:t}),width:e?54:void 0}),jv=({isDashboard:e})=>({key:"to",title:y.jsx(To,{title:"To",className:"justify-center"}),render:({toChain:t})=>y.jsx(UZ,{network:t}),width:e?54:void 0}),Pv=({isDashboard:e})=>({key:"token",title:y.jsx(To,{title:"Token",className:"justify-center"}),render:({fromChain:t,sendToken:n})=>{var o;const r=(o=st(t))==null?void 0:o.tokens.find(a=>a.address.toLowerCase()===(n==null?void 0:n.toLowerCase()));return r?y.jsx(At,{content:r.symbol,className:"mx-auto w-fit",children:y.jsx("img",{width:24,height:24,alt:r.symbol,src:vr(r.logo),className:"rounded-full"})}):y.jsx("span",{children:"-"})},width:e?72:void 0}),Iv=e=>({key:"base fee",title:y.jsx(To,{title:"Base Fee",tips:"The fixed fee set by the relayer and charged in a transaction"}),render:({fromChain:t,sendToken:n,baseFee:r})=>{var a;const o=(a=st(t))==null?void 0:a.tokens.find(i=>i.address.toLowerCase()===(n==null?void 0:n.toLowerCase()));return o&&r?y.jsx("span",{className:"truncate",children:ut(BigInt(r),o.decimals,{precision:6})}):y.jsx("span",{children:"-"})}}),Ov=e=>({key:"liquidity fee rate",title:y.jsx(To,{title:"Liquidity Fee Rate",tips:"Liquidity Fee Rate: the percentage deducted by the relayer from the transfer amount in a transaction"}),render:({liquidityFeeRate:t})=>typeof t=="number"?y.jsx("span",{className:"truncate",children:`${ml(t)}%`}):y.jsx("span",{children:"-"}),width:118}),Rv=e=>({key:"profit",title:y.jsx(To,{title:"Profit"}),render:({fromChain:t,sendToken:n,profit:r})=>{var a;const o=(a=st(t))==null?void 0:a.tokens.find(i=>i.address.toLowerCase()===(n==null?void 0:n.toLowerCase()));return o&&r?y.jsx("span",{className:"truncate",children:ut(BigInt(r),o.decimals)}):y.jsx("span",{children:"-"})}}),aM=e=>({key:"margin",title:y.jsx(To,{title:"Margin"}),render:({margin:t,fromChain:n,sendToken:r})=>{var a;const o=(a=st(n))==null?void 0:a.tokens.find(i=>i.address.toLowerCase()===(r==null?void 0:r.toLowerCase()));return t&&o?y.jsx("span",{className:"truncate",children:ut(BigInt(t),o.decimals,{keepZero:!1})}):y.jsx("span",{children:"-"})}}),iM=e=>({key:"Transfer limit",title:y.jsx(To,{title:"Transfer Limit"}),render:({transferLimit:t,fromChain:n,sendToken:r})=>{var a;const o=(a=st(n))==null?void 0:a.tokens.find(i=>i.address.toLowerCase()===(r==null?void 0:r.toLowerCase()));return t&&o?y.jsx("span",{className:"truncate",children:ut(BigInt(t),o.decimals,{keepZero:!1})}):y.jsx("span",{children:"-"})}}),sM=e=>({key:"penalty",title:y.jsx(To,{title:"Penalty"}),render:t=>y.jsx(DMe,{record:t})}),NMe=e=>({key:"liquidity",title:y.jsx(To,{title:"Liquidity",tips:"Total withdrawable liquidity"}),render:t=>y.jsx(kMe,{record:t})}),cM=e=>({key:"allowance",title:y.jsx(To,{title:"Allowance",tips:"Allowance on target chain"}),render:t=>y.jsx(PMe,{record:t})}),lM=e=>({key:"balance",title:y.jsx(To,{title:"Balance",tips:"Balance on target chain"}),render:t=>y.jsx(IMe,{record:t})}),uM=({onClick:e=()=>{}})=>({key:"action",title:y.jsx(To,{title:"Action",className:"justify-center"}),render:t=>y.jsx("div",{className:"flex justify-center",children:y.jsx(pn,{className:"rounded-medium px-medium w-fit py-[2px]",onClick:()=>e(t),kind:"default",children:y.jsx("span",{children:"Manage"})})})}),dM=e=>({key:"relayer",title:y.jsx(To,{title:"Relayer"}),render:({relayer:t})=>y.jsx("div",{className:"truncate",children:y.jsx(Ca,{address:t,forceShort:!0,copyable:!0})})});function zZ({options:e,activeKey:t,onChange:n=()=>{}}){var s;const r=S.useRef(null),o=S.useRef(null),a=S.useRef(t),i=a.current===t?o:r;return a.current=t,y.jsxs("div",{className:"flex w-full flex-col items-center gap-5",children:[y.jsx("div",{className:"flex h-10 w-full",children:e.filter(({hidden:c})=>!c).map(({key:c,label:l,disabled:u})=>y.jsx("div",{className:`border-primary flex flex-1 items-center justify-center border-y border-r transition-colors duration-100 first:rounded-l-xl first:border-l last:rounded-r-xl ${t===c?"bg-primary":"hover:bg-primary/50 bg-transparent"} ${u?"opacity-60":""}`,children:y.jsx(At,{enabled:!!u,content:"Coming soon",className:"h-full w-full",children:y.jsx("button",{onClick:()=>n(c),className:`h-full w-full ${t===c?"disabled:cursor-default":"disabled:cursor-not-allowed"}`,disabled:u||t===c,children:typeof l=="string"?y.jsx("span",{className:"text-sm font-medium lg:font-extrabold",children:l}):l})})},c))}),y.jsx(vy,{children:y.jsx(Al,{timeout:150,nodeRef:i,classNames:"tabs-fade",unmountOnExit:!0,children:y.jsx("div",{ref:i,className:"w-full",children:(s=e.find(({key:c})=>c===t))==null?void 0:s.children})},t)})]})}const NP=S.forwardRef(function({className:t,...n},r){return y.jsx("input",{className:`focus-visible:outline-none disabled:cursor-not-allowed ${t}`,ref:r,...n})});function O1({text:e}){return y.jsx("div",{className:"absolute -bottom-[1.2rem] left-0 inline-flex w-full",children:y.jsx("span",{className:"text-app-red text-xs font-medium",children:e})})}function Ir({max:e,min:t,balance:n,disabled:r,placeholder:o,value:a,token:i,onChange:s=()=>{}}){const c=S.useRef(null),l=S.useRef(n),u=S.useRef(i),[d,f]=S.useState(),h=S.useMemo(()=>{if(i!=null&&i.decimals){if(e!==void 0)return`Max ${ut(e,i.decimals)}`;if(n!==void 0)return`Balance ${ut(n,i.decimals)}`}return o??"Enter an amount"},[n,e,o,i==null?void 0:i.decimals]),m=S.useCallback(p=>{const b=p.target.value;let v={value:0n,input:""},g=!0;b?i&&!Number.isNaN(Number(b))&&(v=BMe(b,i.decimals),typeof t=="bigint"&&v.value{n!==l.current&&(l.current=n,typeof n=="bigint"?n{var p;(i==null?void 0:i.decimals)!==((p=u.current)==null?void 0:p.decimals)&&(u.current=i,s({valid:!0,input:"",value:0n}))},[i,s]),y.jsxs("div",{className:`normal-input-wrap relative ${a.valid?"valid-input-wrap border-transparent":"invalid-input-wrap"} bg-app-bg px-medium rounded-xl`,children:[y.jsxs("div",{className:"gap-small flex h-10 items-center justify-between text-sm font-semibold text-white lg:h-11",children:[y.jsx(NP,{placeholder:h,className:"w-full rounded bg-transparent",onChange:m,ref:c,disabled:r,value:a.input}),i?y.jsx("span",{children:i.symbol}):null]}),d===1?y.jsx(O1,{text:"* Insufficient"}):d===3?y.jsx(O1,{text:`* Max: ${ut(e??0n,(i==null?void 0:i.decimals)??0,{precision:6})}`}):d===2?y.jsx(O1,{text:`* Min: ${ut(t??0n,(i==null?void 0:i.decimals)??0,{precision:6})}`}):null]})}function BMe(e,t){let n="",r=0n;const[o,a]=e.replace(/,/g,"").split(".").concat("-1");return o&&(n=a==="-1"?o:a?`${o}.${a.slice(0,t)}`:`${o}.`,r=pj(n,t)),{value:r,input:n}}function T6({isV3:e,placeholder:t,value:n,className:r,onChange:o=()=>{}}){const a=S.useCallback(i=>{const s=i.target.value;let c=!0,l=0;s?Number.isNaN(Number(s))||(l=Vye(s),c=o4(l,e),o({valid:c,value:l,input:s})):o({valid:c,value:l,input:s})},[e,o]);return y.jsxs("div",{className:`normal-input-wrap gap-small relative flex items-center justify-between ${r} ${n.valid?"valid-input-wrap border-transparent":"invalid-input-wrap"}`,children:[y.jsx(NP,{className:"w-full rounded bg-transparent",placeholder:t,onChange:a,value:n.input}),y.jsx("span",{className:"rounded bg-transparent",children:"%"}),n.valid?null:y.jsx(O1,{text:`* Please enter 0 ~ ${e?"100":"0.25"}`})]})}function FMe({loading:e,total:t,value:n,options:r,onChange:o=()=>{},onLoadMore:a=()=>{}}){return y.jsxs("div",{className:`bg-app-bg relative max-h-60 rounded-xl ${e?"overflow-y-hidden":"app-scrollbar overflow-y-auto"}`,children:[y.jsx(qs,{loading:e,className:"bg-black/30"}),y.jsx("div",{className:"flex flex-col py-2",children:r.length?r.map(i=>y.jsxs("div",{className:"gap-medium px-large flex items-center justify-between py-2",children:[y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("button",{className:`border-primary h-4 w-4 border transition-[transform,color] hover:scale-105 active:scale-95 ${n.some(({id:s})=>s===i.id)?"bg-primary":"bg-transparent"}`,onClick:()=>o(n.some(({id:s})=>s===i.id)?n.filter(({id:s})=>s!==i.id):n.concat({id:i.id}))}),y.jsx("a",{target:"_blank",href:`/tx/${i.id}`,className:"text-primary truncate text-base font-medium hover:underline",children:MMe(i.id)})]}),i.lastRequestWithdraw.length>1?y.jsx(At,{content:`Last request withdraw at ${hy(Number(i.lastRequestWithdraw)*1e3,{compact:!0})}`,children:y.jsx("img",{alt:"In progress",width:24,height:24,src:"images/notification/progress.svg",className:"animate-spin rounded-full",style:{animationDuration:"3s"}})}):null]},i.id)):y.jsx("div",{className:"py-small flex items-center justify-center",children:y.jsx("span",{className:"text-sm font-semibold text-slate-400",children:"No data"})})}),t>r.length?y.jsx("button",{onClick:a,className:"rounded-b-medium hover:bg-primary w-full border-t border-t-white/10 py-2 text-sm font-semibold text-white transition-[transform,color] active:translate-y-1",children:"Load More"}):null]})}function MMe(e){return`${e.slice(0,14)}...${e.slice(-8)}`}const Na={input:"",valid:!0,value:0n},fM={input:"",valid:!0,value:0};function wT(e,t){return{valid:!0,value:e??0n,input:e?Wu(e,t.decimals):""}}function LMe({relayerInfo:e,isOpen:t,onClose:n,onSuccess:r}){const{sourceChain:o,targetChain:a,sourceToken:i,targetToken:s,sourceBalance:c,targetBalance:l,sourceAllowance:u,penaltyReserve:d,isGettingPenaltyReserves:f,setSourceChain:h,setTargetChain:m,setSourceToken:p,registerLnProvider:b,depositPenaltyReserve:v,withdrawPenaltyReserve:g,withdrawLiquidity:w,sourceApprove:_,targetApprove:C}=Bk(),[x,E]=S.useState(Na),[T,k]=S.useState(Na),[D,R]=S.useState(Na),[F,B]=S.useState(Na),[j,P]=S.useState(Na),[O,I]=S.useState(fM),[N,M]=S.useState("update"),[L,X]=S.useState(!1),{switchNetwork:J}=Tl(),{chain:U}=So(),{loading:G,total:Z,data:ae,refetch:ne,fetchMore:ie}=LY(e==null?void 0:e.relayer,s==null?void 0:s.address,e==null?void 0:e.fromChain,e==null?void 0:e.toChain),[te,ee]=S.useState([]),{feeAndParams:re,loading:z}=t_e(te,e==null?void 0:e.relayer,e==null?void 0:e.messageChannel),{okText:fe,okDisabled:ve}=S.useMemo(()=>{let Ee="Confirm",he=!1;return N==="allowance"?(U==null?void 0:U.id)!==(a==null?void 0:a.id)?Ee="Switch Network":!j.input||!j.valid?(Ee="Approve",he=!0):Ee="Approve":N==="withdraw liquidity"?(U==null?void 0:U.id)!==(a==null?void 0:a.id)?Ee="Switch Network":(!te.length||z||!re)&&(he=!0):(U==null?void 0:U.id)!==(o==null?void 0:o.id)?Ee="Switch Network":N==="deposit"?!x.input||!x.valid?he=!0:(i==null?void 0:i.type)!=="native"&&x.value>((u==null?void 0:u.value)??0n)&&(Ee="Approve"):N==="update"?(!T.input||!T.valid||!F.input||!F.valid||!O.input||!O.valid)&&(he=!0):N==="withdraw penalty reserve"&&(d===void 0||f||!D.input||!D.valid)&&(he=!0),{okText:Ee,okDisabled:he}},[N,F,U==null?void 0:U.id,O,x,u==null?void 0:u.value,o==null?void 0:o.id,a==null?void 0:a.id,i==null?void 0:i.type,T,D,d,f,te.length,z,re,j]),{baseFee:Ue,feeRate:ke,transferLimit:Qe}=S.useMemo(()=>{const Ee=BigInt((e==null?void 0:e.baseFee)??0),he=Number((e==null?void 0:e.liquidityFeeRate)??0),Me=BigInt((e==null?void 0:e.transferLimit)??0);return{baseFee:Ee,feeRate:he,transferLimit:Me}},[e]),Te=S.useCallback(async()=>{let Ee;X(!0);try{N==="allowance"?(U==null?void 0:U.id)!==(a==null?void 0:a.id)?J==null||J(a==null?void 0:a.id):Ee=await C(j.value):N==="withdraw liquidity"?(U==null?void 0:U.id)!==(a==null?void 0:a.id)?J==null||J(a==null?void 0:a.id):(Ee=await w(te,(re==null?void 0:re.value)??0n,re==null?void 0:re.params),(Ee==null?void 0:Ee.status)==="success"&&ne()):(U==null?void 0:U.id)!==(o==null?void 0:o.id)?J==null||J(o==null?void 0:o.id):N==="update"?Ee=await b(F.value,O.value,T.value):N==="deposit"?fe==="Approve"?Ee=await _(x.value):Ee=await v(x.value):N==="withdraw penalty reserve"&&(Ee=await g(D.value))}catch(he){console.error(he),an(he)}finally{(Ee==null?void 0:Ee.status)==="success"&&(n(),r())}X(!1)},[U==null?void 0:U.id,o==null?void 0:o.id,a==null?void 0:a.id,N,fe,F,O,x,T,D,te,re,j,v,n,r,b,J,g,w,ne,_,C]);return S.useEffect(()=>{E(Na),k(Na),R(Na),B(Na),P(Na),I(fM),ee([]);const Ee=st(e==null?void 0:e.fromChain),he=st(e==null?void 0:e.toChain),Me=Ee==null?void 0:Ee.tokens.find(ge=>{var Y;return ge.address.toLowerCase()===((Y=e==null?void 0:e.sendToken)==null?void 0:Y.toLowerCase())});h(Ee),m(he),p(Me),M("update")},[e,h,m,p]),S.useEffect(()=>{i&&(E(Na),k(wT(Qe,i)),R(wT(d,i)),B(wT(Ue,i)),I({valid:!0,value:ke,input:ml(ke).toString()}))},[N,i,Qe,d,Ue,ke]),y.jsx(Bd,{title:"Manage Relayer",className:"w-full lg:w-[32rem]",okText:fe,isOpen:t,onClose:n,onOk:Te,busy:L,disabledCancel:L,disabledOk:ve,onCancel:n,children:y.jsx(zZ,{options:[{key:"update",label:y.jsx("span",{className:"text-sm font-bold",children:"Update"}),children:y.jsxs("div",{className:"flex flex-col gap-5",children:[y.jsx(fc,{text:"Base Fee",children:y.jsx(Ir,{token:i,value:F,onChange:B})}),y.jsx(fc,{text:"Liquidity Fee Rate",children:y.jsx(T6,{isV3:!0,className:"bg-app-bg px-medium h-10 rounded-xl text-sm font-semibold text-white lg:h-11",value:O,placeholder:ke===void 0?void 0:`${ml(ke)}%`,onChange:I})}),y.jsx(fc,{text:"Trasfer Limit",children:y.jsx(Ir,{token:i,value:T,onChange:k})})]})},{key:"deposit",label:y.jsx("span",{className:"text-sm font-bold",children:"Deposit"}),children:y.jsx(fc,{text:"More Penalty Reserves",children:y.jsx(Ir,{balance:c==null?void 0:c.value,token:c==null?void 0:c.token,value:x,onChange:E})})},{key:"withdraw penalty reserve",label:y.jsx("span",{className:"text-sm font-bold",children:"Penalty"}),children:y.jsx("div",{className:"flex flex-col gap-5",children:y.jsx(fc,{text:"Withdraw Penalty Reserves",children:y.jsxs("div",{className:"relative",children:[f&&y.jsx("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-10 flex items-center pl-2",children:y.jsx(Sh,{size:"small",color:"white"})}),y.jsx(Ir,{balance:d,token:i,value:D,onChange:R})]})})})},{key:"withdraw liquidity",label:y.jsx("span",{className:"text-sm font-bold",children:"Liquidity"}),children:y.jsxs("div",{className:"flex flex-col gap-5",children:[y.jsx(fc,{text:"Withdrawable Liquidity",children:y.jsx(FMe,{loading:G,total:Z,value:te,options:ae,onChange:ee,onLoadMore:ie})}),te.length?y.jsx(fc,{text:"Withdraw Fee",tips:"This value is calculated and does not require input",children:y.jsx("div",{className:`bg-app-bg p-medium relative flex h-10 items-center justify-between rounded-xl border lg:h-11 ${re||z?"border-transparent":"border-app-red"}`,children:z?y.jsx(Sh,{size:"small",color:"white"}):re?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-sm font-semibold text-white",children:ut(re.value,re.token.decimals,{precision:6})}),y.jsx("span",{className:"text-sm font-semibold text-white",children:re.token.symbol})]}):y.jsx("span",{className:"text-app-red absolute -bottom-5 left-0 text-xs font-medium",children:"* Failed to get fee, withdraw is temporarily unavailable"})})}):null]})},{key:"allowance",label:y.jsx("span",{className:"text-sm font-bold",children:"Allowance"}),children:y.jsx("div",{className:"flex flex-col gap-5",children:y.jsx(fc,{text:"Approve Amount",children:y.jsx(Ir,{balance:l==null?void 0:l.value,token:l==null?void 0:l.token,value:j,onChange:P})})}),hidden:(s==null?void 0:s.type)==="native"}],activeKey:N,onChange:M})})}function fc({text:e,children:t,height:n,tips:r}){return y.jsxs("div",{className:"gap-medium flex flex-col",style:{height:n},children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:e}),r?y.jsx(At,{content:r,children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]}),t]})}function UMe({relayerInfo:e,isOpen:t,onClose:n,onSuccess:r}){const{defaultBridge:o,oppositeBridge:a,bridgeCategory:i,sourceAllowance:s,targetAllowance:c,sourceBalance:l,targetBalance:u,sourceChain:d,targetChain:f,sourceToken:h,targetToken:m,margin:p,baseFee:b,feeRate:v,withdrawAmount:g,setMargin:w,setBaseFee:_,setFeeRate:C,setSourceChain:x,setTargetChain:E,setSourceToken:T,setBridgeCategory:k,setFeeAndRate:D,setWithdrawAmount:R,depositMargin:F,updateFeeAndMargin:B,withdrawMargin:j,sourceApprove:P,targetApprove:O,isLnBridgeExist:I}=nH(),[N,M]=S.useState("update"),[L,X]=S.useState(),[J,U]=S.useState(!1),[G,Z]=S.useState(!1),[ae,ne]=S.useState(),[ie,te]=S.useState({input:"",valid:!0,value:0n}),[ee,re]=S.useState({input:"",valid:!0,value:0n}),[z,fe]=S.useState({input:"",valid:!0,value:0n}),[ve,Ue]=S.useState({input:"",valid:!0,value:0}),ke=S.useDeferredValue(g),{switchNetwork:Qe}=Tl(),{chain:Te}=So(),{address:Ee}=tn(),he=uy(),{okText:Me,disableOk:ge,switchChainId:Y}=S.useMemo(()=>{let W="Confirm",Q,ce=!1;return N==="allowance"?(Te==null?void 0:Te.id)!==(f==null?void 0:f.id)?(W="Switch Network",Q=f==null?void 0:f.id):!ie.input||!ie.valid?ce=!0:W="Approve":N==="deposit"?(i==="lnv2-default"?(Te==null?void 0:Te.id)!==(f==null?void 0:f.id)?(W="Switch Network",Q=f==null?void 0:f.id):(m==null?void 0:m.type)!=="native"&&ee.value>((c==null?void 0:c.value)||0n)&&(W="Approve"):i==="lnv2-opposite"&&((Te==null?void 0:Te.id)!==(d==null?void 0:d.id)?(W="Switch Network",Q=d==null?void 0:d.id):(h==null?void 0:h.type)!=="native"&&ee.value>((s==null?void 0:s.value)||0n)&&(W="Approve")),ce=!(ee.value&&ee.valid)&&W==="Confirm"):(Te==null?void 0:Te.id)!==(d==null?void 0:d.id)&&(W="Switch Network",Q=d==null?void 0:d.id),N==="update"?ce=!(z.input&&z.valid&&ve.input&&ve.valid)&&W==="Confirm":N==="withdraw"&&(ce=!(g.value&&g.valid&&(ae!=null&&ae.value))&&W==="Confirm"),{okText:W,disableOk:ce,switchChainId:Q}},[Te,N,ae,z,ve,ee,g,i,d,f,h,m,s,c,ie]);return S.useEffect(()=>{const W=e==null?void 0:e.bridge,Q=st(e==null?void 0:e.fromChain),ce=st(e==null?void 0:e.toChain),pe=Q==null?void 0:Q.tokens.find(De=>{var Ie;return De.address.toLowerCase()===((Ie=e==null?void 0:e.sendToken)==null?void 0:Ie.toLowerCase())});e!=null&&e.baseFee&&_(BigInt(e.baseFee)),e!=null&&e.liquidityFeeRate&&C(Number(e.liquidityFeeRate)),e!=null&&e.margin&&w(BigInt(e.margin)),k(W),x(Q),E(ce),T(pe),te({input:"",valid:!0,value:0n}),re({input:"",valid:!0,value:0n}),R({input:"",valid:!0,value:0n}),fe({input:"",valid:!0,value:0n}),Ue({input:"",valid:!0,value:0}),M("update")},[e,_,C,w,k,x,E,T,R]),S.useEffect(()=>{let W;if(N==="withdraw"&&(o||a)&&((e==null?void 0:e.messageChannel)==="layerzero"||(e==null?void 0:e.messageChannel)==="msgline")){Z(!0);const Q={amount:ke.value,sender:Ee,relayer:e.relayer,transferId:e.lastTransferId,withdrawNonce:e.withdrawNonce,messageChannel:e.messageChannel};W=Yo(o?o.getWithdrawFeeParams(Q):a?a.getWithdrawFeeParams(Q):Promise.resolve(void 0)).subscribe({next:ne,error:ce=>{console.error(ce),ne(void 0),Z(!1)},complete:()=>Z(!1)})}else ne(void 0);return()=>W==null?void 0:W.unsubscribe()},[o,a,e,Ee,N,ke]),y.jsx(Bd,{title:"Manage Relayer",className:"w-full lg:w-[32rem]",okText:Me,isOpen:t,onClose:n,onOk:async()=>{let W;if(Ee&&d&&f&&h&&m){U(!0);try{Me==="Switch Network"?Qe==null||Qe(Y):N==="allowance"?i==="lnv2-default"&&o?W=await O(Ee,ie.value,o,f):i==="lnv2-opposite"&&a&&(W=await O(Ee,ie.value,a,f)):Me==="Approve"?i==="lnv2-default"&&o?await O(Ee,ee.value,o,f):i==="lnv2-opposite"&&a&&await P(Ee,ee.value,a,d):N==="update"?i==="lnv2-default"&&o?W=await D(z.value,ve.value,o,d):i==="lnv2-opposite"&&a&&(W=await B(Ee,p??0n,z.value,ve.value,a,d)):N==="deposit"?i==="lnv2-default"&&o?await I(he,d,f,h,m)?W=await F(Ee,ee.value,o,f):ms.warn({title:"Deposit failed",description:"The bridge does not exist."}):i==="lnv2-opposite"&&a&&(await I(he,d,f,h,m)?W=await B(Ee,ee.value,b??0n,v??0,a,d):ms.warn({title:"Deposit failed",description:"The bridge does not exist."})):N==="withdraw"&&i==="lnv2-default"&&o&&(W=await j((ae==null?void 0:ae.params)??Ee,g.value,(ae==null?void 0:ae.value)??0n,o,d))}catch(Q){console.error(Q),an(Q)}finally{U(!1),(W==null?void 0:W.status)==="success"&&(r(),n())}}},busy:J,disabledCancel:J,disabledOk:ge||N==="withdraw"&&Me==="Confirm"&&G,extra:N==="withdraw"?y.jsx("div",{className:"h-6 self-end",children:y.jsx("span",{className:"text-sm font-medium text-white/50",children:(e==null?void 0:e.messageChannel)==="layerzero"?"Powered by LayerZero & Helix":"Powered by Msgport & Helix"})}):y.jsx("div",{className:"h-6"}),onCancel:n,children:y.jsx(zZ,{options:[{key:"update",label:y.jsx("span",{className:"text-sm font-bold",children:"Update"}),children:y.jsxs("div",{className:"flex flex-col gap-5",style:{height:L},children:[y.jsx(rf,{label:"Base Fee",children:y.jsx(Ir,{token:h,value:z,onChange:fe})}),y.jsx(rf,{label:"Liquidity Fee Rate",children:y.jsx(T6,{value:ve,className:"bg-app-bg px-medium h-10 rounded-xl text-sm font-semibold text-white lg:h-11",placeholder:v===void 0?void 0:`${ml(v)}%`,onChange:Ue})})]})},{key:"deposit",label:y.jsx("span",{className:"text-sm font-bold",children:"Deposit"}),children:y.jsx(rf,{label:"More Margin",height:L,children:y.jsx(Ir,{balance:i==="lnv2-default"?u==null?void 0:u.value:i==="lnv2-opposite"?l==null?void 0:l.value:void 0,token:i==="lnv2-default"?u==null?void 0:u.token:i==="lnv2-opposite"?l==null?void 0:l.token:void 0,value:ee,onChange:re})})},{key:"withdraw",label:y.jsxs("div",{className:"gap-small flex items-center justify-center",children:[y.jsx("span",{className:"text-sm font-bold",children:"Withdraw"}),y.jsx(At,{content:"A cross-chain message is required to perform a `withdraw margin` operation",contentClassName:"w-72",className:"w-fit",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})})]}),children:y.jsxs("div",{className:"flex flex-col gap-5",ref:W=>X(Q=>(W==null?void 0:W.clientHeight)||Q),children:[y.jsx(rf,{label:"Withdraw Amount",children:y.jsx(Ir,{balance:p,token:h,value:g,onChange:R})}),y.jsx(rf,{label:"Withdraw Fee",tips:"This value is calculated and does not require input",children:y.jsx("div",{className:`bg-app-bg px-medium relative flex h-10 items-center justify-between rounded-xl border lg:h-11 ${ae||G?"border-transparent":"border-app-red"}`,children:G?y.jsx(Sh,{size:"small",color:"white"}):ae?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-sm font-semibold text-white",children:ut(ae.value,ae.token.decimals,{precision:6})}),y.jsx("span",{className:"text-sm font-semibold text-white",children:ae.token.symbol})]}):y.jsx("span",{className:"text-app-red absolute -bottom-5 left-0 text-xs font-medium",children:"* Failed to get fee, withdraw is temporarily unavailable"})})})]}),disabled:!((e==null?void 0:e.messageChannel)==="layerzero"||(e==null?void 0:e.messageChannel)==="msgline")},{key:"allowance",label:y.jsx("span",{className:"text-sm font-bold",children:"Allowance"}),children:y.jsx("div",{className:"flex flex-col gap-5",children:y.jsx(rf,{label:"Approve More",height:L,children:y.jsx(Ir,{balance:u==null?void 0:u.value,token:u==null?void 0:u.token,value:ie,onChange:te})})}),hidden:(m==null?void 0:m.type)==="native"}],activeKey:N,onChange:M})})}function rf({label:e,children:t,height:n,tips:r}){return y.jsxs("div",{className:"gap-medium flex flex-col",style:{height:n},children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:e}),r?y.jsx(At,{content:r,children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]}),t]})}function HZ({onPageChange:e,onRefetch:t,totalRecords:n,isDashboard:r,currentPage:o,dataSource:a,pageSize:i,version:s,loading:c}){const[l,u]=S.useState(),d=S.useMemo(()=>r?s==="lnv3"?[Dv({version:s,isDashboard:r}),kv({version:s,isDashboard:r}),jv({version:s,isDashboard:r}),Pv({version:s,isDashboard:r}),Iv(),Ov(),Rv(),iM(),sM(),NMe(),cM(),lM(),uM({onClick:u})]:[Dv({version:s,isDashboard:r}),kv({version:s,isDashboard:r}),jv({version:s,isDashboard:r}),Pv({version:s,isDashboard:r}),Iv(),Ov(),Rv(),aM(),cM(),lM(),uM({onClick:u})]:s==="lnv3"?[Dv({version:s,isDashboard:r}),dM(),kv({version:s,isDashboard:r}),jv({version:s,isDashboard:r}),Pv({version:s,isDashboard:r}),Iv(),Ov(),Rv(),iM(),sM()]:[Dv({version:s,isDashboard:r}),dM(),kv({version:s,isDashboard:r}),jv({version:s,isDashboard:r}),Pv({version:s,isDashboard:r}),Iv(),Ov(),Rv(),aM()],[s,r]),f=S.useCallback(()=>u(void 0),[]);return y.jsxs(y.Fragment,{children:[y.jsx(AMe,{onPageChange:e,totalRecords:n,currentPage:o,dataSource:a,pageSize:i,columns:d,loading:c,className:s==="lnv3"?"min-w-[68rem]":"min-w-[60rem]"}),r&&(s==="lnv3"?y.jsx(LMe,{relayerInfo:l,isOpen:!!l,onClose:f,onSuccess:t}):y.jsx(UMe,{relayerInfo:l,isOpen:!!l,onClose:f,onSuccess:t}))]})}function qZ({placeholder:e,className:t,value:n,onClear:r,onChange:o=()=>{}}){return y.jsxs("div",{className:`normal-input-wrap valid-input-wrap gap-small rounded-medium px-medium focus-within:border-primary flex items-center justify-between border-white/20 py-2 ${t}`,children:[y.jsx(NP,{placeholder:e,type:"text",value:n,onChange:a=>o(a.target.value),className:"rounded-small w-full bg-transparent text-sm font-medium text-white"}),n?y.jsx("button",{className:"relative h-[20px] w-[20px] shrink-0 rounded-full bg-transparent p-[2px] transition hover:scale-105 hover:bg-white/20 active:scale-95",onClick:r,children:y.jsx("img",{alt:"Close",src:"images/close.svg",className:"h-full w-full"})}):y.jsx("img",{width:20,height:20,alt:"Search",src:"images/search.svg",className:"shrink-0"})]})}function A6({enabled:e,enabledAfterClick:t,onClick:n,onRefresh:r}){const o=S.useRef(null),a=S.useRef(null);return S.useEffect(()=>{var i,s,c,l,u;e?(i=o.current)!=null&&i.classList.contains("refresh-countdown")||(s=o.current)==null||s.classList.add("refresh-countdown"):((l=(c=o.current)==null?void 0:c.getAnimations().at(0))==null||l.cancel(),(u=o.current)==null||u.classList.remove("refresh-countdown"))},[e]),y.jsx("button",{className:"rounded-full bg-transparent transition hover:scale-105 hover:bg-white/10 active:scale-95",onClick:()=>{var i,s,c,l;(s=(i=o.current)==null?void 0:i.getAnimations().at(0))==null||s.cancel(),(c=o.current)==null||c.classList.remove("refresh-countdown"),t&&setTimeout(()=>{var u;(u=o.current)==null||u.classList.add("refresh-countdown")},300),(l=a.current)==null||l.dispatchEvent(new Event("click")),n&&n()},children:y.jsxs("svg",{ref:a,id:"countdown_refresh",xmlns:"http://www.w3.org/2000/svg",viewBox:"-6 -6 36 36",width:"36",height:"36",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[y.jsx("path",{stroke:"none",fill:"none",className:"fill-white/30",d:"M16.2751 7.78995C13.932 5.44681 10.133 5.44681 7.78986 7.78995C7.02853 8.55128 6.51457 9.4663 6.24798 10.4351C6.24473 10.4499 6.24114 10.4646 6.23719 10.4793C6.17635 10.7064 6.12938 10.9339 6.09577 11.161C5.83159 12.9457 6.39255 14.7026 7.52624 15.9944C7.61054 16.0901 7.69842 16.1838 7.78986 16.2752C8.08307 16.5685 8.39909 16.825 8.7322 17.0448C9.25533 17.3892 9.84172 17.6568 10.4798 17.8278C10.7386 17.8971 10.9979 17.9484 11.2565 17.9825C12.9537 18.2061 14.6187 17.6866 15.8747 16.6415C16.0123 16.5265 16.1459 16.4044 16.2751 16.2752C16.2848 16.2655 16.2947 16.2561 16.3047 16.2469C17.0123 15.531 17.5491 14.627 17.8283 13.5851C17.9712 13.0517 18.5196 12.7351 19.053 12.878C19.5865 13.021 19.9031 13.5693 19.7602 14.1028C19.3141 15.7676 18.3745 17.1684 17.1409 18.1899C16.1883 18.9822 15.0949 19.5189 13.9515 19.8002C11.8607 20.3147 9.6028 19.9749 7.7328 18.7809C7.06855 18.3579 6.47841 17.8432 5.97519 17.2589C5.12341 16.2738 4.55173 15.1302 4.26015 13.9324C4.01698 12.9416 3.96104 11.8931 4.12168 10.8379C4.36697 9.20484 5.1183 7.63309 6.37564 6.37574C9.49984 3.25154 14.5652 3.25154 17.6894 6.37574L18.2332 6.91959L18.2337 5.49951C18.2338 5.05769 18.5921 4.69964 19.034 4.69979C19.4758 4.69995 19.8338 5.05825 19.8337 5.50007L19.8325 9.03277L19.8322 9.8325L19.0325 9.83249L18.9401 9.83249C18.8146 9.85665 18.6854 9.85665 18.5599 9.83248L15.5005 9.83245C15.0587 9.83245 14.7005 9.47427 14.7005 9.03244C14.7005 8.59062 15.0587 8.23245 15.5005 8.23245L16.7176 8.23246L16.2751 7.78995Z"}),y.jsxs("defs",{children:[y.jsx("path",{id:"refresh",stroke:"none",fill:"none",d:"M16.2751 7.78995C13.932 5.44681 10.133 5.44681 7.78986 7.78995C7.02853 8.55128 6.51457 9.4663 6.24798 10.4351C6.24473 10.4499 6.24114 10.4646 6.23719 10.4793C6.17635 10.7064 6.12938 10.9339 6.09577 11.161C5.83159 12.9457 6.39255 14.7026 7.52624 15.9944C7.61054 16.0901 7.69842 16.1838 7.78986 16.2752C8.08307 16.5685 8.39909 16.825 8.7322 17.0448C9.25533 17.3892 9.84172 17.6568 10.4798 17.8278C10.7386 17.8971 10.9979 17.9484 11.2565 17.9825C12.9537 18.2061 14.6187 17.6866 15.8747 16.6415C16.0123 16.5265 16.1459 16.4044 16.2751 16.2752C16.2848 16.2655 16.2947 16.2561 16.3047 16.2469C17.0123 15.531 17.5491 14.627 17.8283 13.5851C17.9712 13.0517 18.5196 12.7351 19.053 12.878C19.5865 13.021 19.9031 13.5693 19.7602 14.1028C19.3141 15.7676 18.3745 17.1684 17.1409 18.1899C16.1883 18.9822 15.0949 19.5189 13.9515 19.8002C11.8607 20.3147 9.6028 19.9749 7.7328 18.7809C7.06855 18.3579 6.47841 17.8432 5.97519 17.2589C5.12341 16.2738 4.55173 15.1302 4.26015 13.9324C4.01698 12.9416 3.96104 11.8931 4.12168 10.8379C4.36697 9.20484 5.1183 7.63309 6.37564 6.37574C9.49984 3.25154 14.5652 3.25154 17.6894 6.37574L18.2332 6.91959L18.2337 5.49951C18.2338 5.05769 18.5921 4.69964 19.034 4.69979C19.4758 4.69995 19.8338 5.05825 19.8337 5.50007L19.8325 9.03277L19.8322 9.8325L19.0325 9.83249L18.9401 9.83249C18.8146 9.85665 18.6854 9.85665 18.5599 9.83248L15.5005 9.83245C15.0587 9.83245 14.7005 9.47427 14.7005 9.03244C14.7005 8.59062 15.0587 8.23245 15.5005 8.23245L16.7176 8.23246L16.2751 7.78995Z"}),y.jsx("clipPath",{id:"refresh-clip",children:y.jsx("use",{xlinkHref:"#refresh"})})]}),y.jsx("g",{clipPath:"url(#refresh-clip)",children:y.jsx("circle",{ref:o,cx:"12",cy:"12",r:"5",transform:"rotate(365,12,12)",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeDasharray:"30",strokeDashoffset:"0",onAnimationIteration:()=>{r&&r()}})}),y.jsx("use",{xlinkHref:"#refresh"}),y.jsx("animateTransform",{id:"transform_0",attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 0 0",to:"-10 0 0",dur:"0.07s",begin:"countdown_refresh.click;",repeatCount:"1"}),y.jsx("animateTransform",{id:"transform_1",attributeName:"transform",attributeType:"XML",type:"rotate",from:"-45 0 0",to:"390 0 0",dur:"0.6s",begin:"transform_0.end",repeatCount:"1"}),y.jsx("animateTransform",{id:"transform_2",attributeName:"transform",attributeType:"XML",type:"rotate",from:"390 0 0",to:"360 0 0",dur:"0.15s",begin:"transform_1.end",repeatCount:"1"})]})})}function Fh({value:e,placeholder:t,className:n,options:r=[],onChange:o=()=>{}}){return y.jsx(RP,{sameWidth:!0,clearable:!0,label:e?y.jsxs("div",{className:"gap-medium flex items-center truncate",children:[y.jsx("img",{alt:"Chain",width:22,height:22,src:Rn(e.logo),className:"hidden shrink-0 rounded-full lg:inline"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:e.name})]}):void 0,placeholder:y.jsx("span",{className:"truncate text-sm font-semibold text-slate-400",children:t}),labelClassName:`gap-small flex items-center justify-between ${n}`,childClassName:"bg-app-bg flex flex-col rounded-xl max-h-64 overflow-y-auto border border-white/20 py-small",onClear:()=>o(void 0),children:r.length?r.map(a=>y.jsxs("button",{disabled:(e==null?void 0:e.id)===a.id,onClick:()=>o(a),className:"gap-medium px-large py-medium flex items-center text-start transition-colors hover:bg-white/5 disabled:bg-white/10",children:[y.jsx("img",{width:22,height:22,alt:a.name,src:Rn(a.logo),className:"rounded-full"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:a.name})]},a.id)):y.jsx("div",{className:"inline-flex justify-center p-2",children:y.jsx("span",{className:"text-sm font-semibold text-slate-400",children:"No data"})})})}const hM=10,{defaultSourceChains:$Me,defaultTargetChains:zMe}=n4();function HMe({version:e}){const[t,n]=S.useState(),[r,o]=S.useState(),[a,i]=S.useState(0),[s,c]=S.useState(""),l=S.useDeferredValue(s),{loading:u,data:d,total:f,refetch:h}=zY(e,a,hM,l,t,r),m=S.useCallback(b=>{c(b),i(0)},[]),p=S.useCallback(()=>{c(""),i(0)},[]);return S.useEffect(()=>i(0),[e]),y.jsxs("div",{className:"space-y-5",children:[y.jsxs("div",{className:"gap-medium flex flex-col items-start justify-between lg:flex-row lg:items-center",children:[y.jsx(qZ,{value:s,onClear:p,onChange:m,placeholder:"Search by address",className:"w-full lg:w-[21.5rem]"}),y.jsxs("div",{className:"gap-small flex items-center lg:gap-5",children:[y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("span",{className:"hidden text-sm font-semibold text-white lg:inline",children:"From"}),y.jsx(Fh,{className:"rounded-medium px-medium h-9 w-40 border border-white/20 lg:w-44",placeholder:"Source chain",options:$Me,onChange:b=>{n(b),o(void 0),i(0)},value:t})]}),y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("span",{className:"hidden text-sm font-semibold text-white lg:inline",children:"To"}),y.jsx(Fh,{className:"rounded-medium px-medium h-9 w-40 border border-white/20 lg:w-44",placeholder:"Target chain",options:r4(t,zMe),onChange:b=>{o(b),i(0)},value:r})]}),y.jsx(A6,{onClick:h})]})]}),y.jsx(HZ,{onPageChange:i,onRefetch:h,currentPage:a,totalRecords:f,pageSize:hM,dataSource:d,version:e,loading:u})]})}function mM({children:e}){const[t,n]=S.useState(void 0),[r,o]=S.useState(void 0),[a,i]=S.useState(void 0),[s,c]=S.useState(void 0),[l,u]=S.useState(void 0),[d,f]=S.useState(void 0),[h,m]=S.useState(void 0),[p,b]=S.useState(void 0),[v,g]=S.useState(!1),{data:w}=yy(),_=zs(),{address:C}=tn(),x=S.useMemo(()=>kK(t,r,a).at(0),[t,r,a]),E=S.useMemo(()=>new Zj({category:"lnbridge",sourceChain:t,targetChain:r,sourceToken:a,targetToken:x,publicClient:_,walletClient:w,protocol:"lnv3"}),[t,r,a,x,w,_]),T=S.useCallback(async O=>{const{data:I}=await O.query({query:uV,variables:{fromChainId:t==null?void 0:t.id,toChainId:r==null?void 0:r.id,fromToken:a==null?void 0:a.address,toToken:x==null?void 0:x.address,version:"lnv3"},fetchPolicy:"no-cache"});return I.checkLnBridgeExist?!0:(ms.warn({title:"Transaction failed",description:"The bridge does not exist."}),!1)},[t,r,a,x]),k=S.useCallback(async O=>{if(C)try{const I=await E.sourceApprove(O,C);return Gr(I,E.getSourceChain(),"Approval"),u(await E.getSourceAllowance(C)),I}catch(I){console.error(I),an(I)}},[C,E]),D=S.useCallback(async O=>{if(C)try{const I=await E.targetApprove(O,C);return Gr(I,E.getTargetChain(),"Approval"),f(await E.getTargetAllowance(C)),I}catch(I){console.error(I),an(I)}},[C,E]),R=S.useCallback(async()=>{try{g(!0);const O=await E.getPenaltyReserves(C);g(!1),c(O==null?void 0:O.value)}catch(O){console.error(O),g(!1)}},[C,E]),F=S.useCallback(async O=>{try{const I=await E.depositPenaltyReserve(O);return Gr(I,E.getSourceChain(),"Deposite"),(I==null?void 0:I.status)==="success"&&(await R(),C&&m(await E.getSourceBalance(C))),I}catch(I){console.error(I),an(I)}},[C,E,R]),B=S.useCallback(async(O,I,N)=>{try{const M=await E.registerLnProvider(O,I,N);return Gr(M,E.getSourceChain(),"Register"),M}catch(M){console.error(M),an(M)}},[E]),j=S.useCallback(async O=>{try{const I=await E.withdrawPenaltyReserve(O);return Gr(I,E.getSourceChain(),"Withdraw"),(I==null?void 0:I.status)==="success"&&(await R(),C&&m(await E.getSourceBalance(C))),I}catch(I){console.error(I),an(I)}},[E,C,R]),P=S.useCallback(async(O,I,N)=>{if(C)try{const M=await E.requestWithdrawLiquidity(C,jK(O.map(({id:L})=>L)),I,N??C);return Gr(M,E.getTargetChain(),"Withdraw"),M}catch(M){console.error(M),an(M)}},[E,C]);return S.useEffect(()=>{let O;return C&&E?(g(!0),O=qx([E.getSourceAllowance(C),E.getTargetAllowance(C),E.getSourceBalance(C),E.getTargetBalance(C),E.getPenaltyReserves(C)]).subscribe({next:([I,N,M,L,X])=>{g(!1),u(I),f(N),m(M),b(L),c(X==null?void 0:X.value)},error:I=>{console.error(I),g(!1),u(void 0),f(void 0),m(void 0),b(void 0),c(void 0)}})):(u(void 0),f(void 0),m(void 0),b(void 0),c(void 0)),()=>{O==null||O.unsubscribe()}},[C,E]),y.jsx(rH.Provider,{value:{bridgeInstance:E,sourceChain:t,targetChain:r,sourceToken:a,targetToken:x,penaltyReserve:s,sourceAllowance:l,targetAllowance:d,sourceBalance:h,targetBalance:p,isGettingPenaltyReserves:v,setSourceChain:n,setTargetChain:o,setSourceToken:i,isLnBridgeExist:T,sourceApprove:k,targetApprove:D,depositPenaltyReserve:F,registerLnProvider:B,withdrawPenaltyReserve:j,withdrawLiquidity:P},children:e})}function ah({step:e,title:t}){return y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("div",{className:"bg-primary inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-xl font-bold text-white",children:e})}),y.jsx("h5",{className:"text-lg font-bold text-white",children:t})]})}function WZ({options:e,disabled:t,value:n,placeholder:r,onChange:o=()=>{}}){return y.jsx(RP,{clearable:!0,sameWidth:!0,labelClassName:"gap-small flex items-center justify-between rounded-xl bg-app-bg h-11 px-medium",childClassName:"bg-app-bg py-medium flex flex-col rounded-xl border border-white/20 max-h-52 overflow-y-auto app-scrollbar",label:n?y.jsxs("div",{className:"gap-medium flex items-center truncate",children:[y.jsx("img",{alt:"Chain",width:22,height:22,src:vr(n.logo),className:"hidden shrink-0 rounded-full lg:inline"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:n.symbol})]}):void 0,placeholder:y.jsx("span",{className:"text-sm font-semibold text-slate-400",children:r}),disabled:t,onClear:()=>o(void 0),children:e.length?e.map(a=>y.jsxs("button",{onClick:()=>{o(a)},className:"gap-medium px-large py-small flex items-center transition hover:bg-white/5",children:[y.jsx("img",{width:26,height:26,alt:"Token",src:vr(a.logo),className:"rounded-full"}),y.jsxs("div",{className:"flex flex-col items-start",children:[y.jsx("span",{className:"text-sm font-semibold text-white",children:a.symbol}),a.type==="native"?y.jsx("span",{className:"text-xs font-medium text-white/50",children:"native token"}):y.jsx(Ca,{address:a.address,copyable:!0,className:"text-xs font-medium text-white/50"})]})]},a.symbol)):y.jsx("div",{className:"inline-flex justify-center p-2",children:y.jsx("span",{className:"text-sm font-semibold text-slate-400",children:"No data"})})})}function lr({property:e,address:t,bridge:n,chain:r,token:o,balance:a,percent:i,className:s}){return y.jsxs("div",{className:`gap-small flex-col items-start ${s??"flex"}`,children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:e}),!!t&&y.jsx(Ca,{address:t,forceShort:!0,className:"text-sm font-semibold text-white"}),!!n&&y.jsx("span",{className:"text-sm font-semibold text-white",children:n==="lnv3"?"LnBridgeV3":n==="lnv2-opposite"?"Opposite":"Default"}),!!r&&y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:18,height:18,alt:"Chain",src:Rn(r.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:r.name})]}),o&&a?y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:ut(a,o.decimals)}):null,!!o&&!a&&y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:18,height:18,alt:"Token",src:vr(o.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{className:"truncate text-sm font-semibold text-white",children:o.symbol})]}),!!i&&y.jsxs("span",{className:"text-sm font-semibold text-white",children:[i,"%"]})]})}const{defaultSourceChains:qMe,defaultTargetChains:WMe}=n4(),of={input:"",valid:!0,value:0n},pM={input:"",valid:!0,value:0};function GMe({onManage:e=()=>{}}){const{sourceChain:t,targetChain:n,sourceToken:r,targetToken:o,sourceBalance:a,targetBalance:i,sourceAllowance:s,targetAllowance:c,setSourceChain:l,setTargetChain:u,setSourceToken:d,sourceApprove:f,targetApprove:h,depositPenaltyReserve:m,registerLnProvider:p,isLnBridgeExist:b}=Bk(),[v,g]=S.useState(of),[w,_]=S.useState(of),[C,x]=S.useState(of),[E,T]=S.useState(pM),[k,D]=S.useState(0),[R,F]=S.useState(!1),[B,j]=S.useState(!1),[P,O]=S.useState(!1),[I,N]=S.useState(!1),{state:M,setTrue:L,setFalse:X}=zg(!1),J=uy(),{address:U}=tn(),{chain:G}=So(),{switchNetwork:Z}=Tl(),{openConnectModal:ae}=Eb(),ne=S.useCallback(async()=>{try{if(O(!0),(t==null?void 0:t.id)!==(G==null?void 0:G.id))Z==null||Z(t==null?void 0:t.id);else if(await b(J)){const ee=await p(C.value,E.value,w.value);j((ee==null?void 0:ee.status)==="success")}}catch(ee){console.error(ee),an(ee)}finally{O(!1)}},[G,J,t,C,E,w,b,p,Z]),ie=S.useCallback(async()=>{try{if(F(!0),(t==null?void 0:t.id)!==(G==null?void 0:G.id))Z==null||Z(t==null?void 0:t.id);else if(await b(J))if((r==null?void 0:r.type)!=="native"&&v.value>((s==null?void 0:s.value)||0n))await f(v.value);else{const ee=await m(v.value);(ee==null?void 0:ee.status)==="success"&&(o!=null&&o.type&&(o==null?void 0:o.type)!=="native"?D(4):L())}}catch(ee){console.error(ee),an(ee)}finally{F(!1)}},[G,J,t,r,o,s,v,m,f,b,Z,L]),te=S.useCallback(async()=>{try{N(!0),(G==null?void 0:G.id)!==(n==null?void 0:n.id)?Z==null||Z(n==null?void 0:n.id):await h((i==null?void 0:i.value)||0n)}catch(ee){console.error(ee),an(ee)}finally{N(!1)}},[G,n,i,h,Z]);return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mx-auto flex w-full flex-col gap-5 lg:w-[40rem]",children:[y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:1,title:"Select Chain and Token"}),y.jsx(mc,{}),k===0&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(hc,{text:"From",className:"flex-1",children:y.jsx(Fh,{className:"bg-app-bg px-medium h-10 rounded-xl lg:h-11",options:qMe,placeholder:"Source chain",value:t,onChange:ee=>{l(ee),u(void 0),d(void 0)}})}),y.jsx(hc,{text:"To",className:"flex-1",children:y.jsx(Fh,{className:"bg-app-bg px-medium h-10 rounded-xl lg:h-11",options:r4(t,WMe),placeholder:"Target chain",value:n,onChange:ee=>{u(ee),d(void 0)}})})]}),y.jsx(hc,{text:"Token",children:y.jsx(WZ,{disabled:!uE(t,n).length,options:uE(t,n),placeholder:"Select a token",value:r,onChange:d})}),y.jsx(mc,{}),y.jsx(pn,{onClick:()=>{U?D(2):ae==null||ae()},kind:"primary",className:"inline-flex h-11 items-center justify-center rounded-full",disabled:!r,children:y.jsx("span",{className:"text-sm font-semibold text-white",children:U?"Next":"Connect Wallet"})})]}),1<=k&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"gap-small flex items-center justify-between",children:[y.jsx(lr,{property:"Address",address:U,className:"hidden lg:flex"}),y.jsx(lr,{property:"Bridge Type",bridge:"lnv3",className:"hidden lg:flex"}),y.jsx(lr,{property:"From",chain:t}),y.jsx(lr,{property:"To",chain:n}),y.jsx(lr,{property:"Token",token:r})]}),y.jsx(mc,{}),y.jsx(pn,{kind:"default",onClick:()=>{D(0),l(void 0),u(void 0),d(void 0),g(of),_(of),x(of),T(pM),j(!1)},className:"inline-flex h-11 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Reset"})})]})]}),y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:2,title:"Deposit Penalty Reserve and Set Fee"}),k===2&&y.jsxs(y.Fragment,{children:[y.jsx(mc,{}),y.jsx(hc,{text:"Base Fee",tips:"The fixed fee set by the relayer and charged in a transaction",children:y.jsx(Ir,{token:r,value:C,onChange:x})}),y.jsx(hc,{text:"Liquidity Fee Rate",tips:"The percentage deducted by the relayer from the transfer amount in a transaction",children:y.jsx(T6,{isV3:!0,placeholder:"Enter 0 ~ 100",className:"bg-app-bg px-medium h-10 rounded-xl text-sm font-semibold text-white lg:h-11",value:E,onChange:T})}),y.jsx(hc,{text:"Transfer Limit",children:y.jsx(Ir,{token:r,value:w,onChange:_})}),y.jsx(mc,{}),y.jsx(pn,{kind:B?"default":"primary",disabled:B||(t==null?void 0:t.id)===(G==null?void 0:G.id)&&!(C.input&&C.valid&&E.input&&E.valid&&w.input&&w.valid&&o4(E.value,!0)),busy:P,className:"inline-flex h-11 items-center justify-center rounded-full",onClick:ne,children:y.jsx("span",{className:"text-sm font-semibold text-white",children:(t==null?void 0:t.id)!==(G==null?void 0:G.id)?"Switch Network":"Register"})}),y.jsx(hc,{text:"Deposit Penalty Reserve",children:y.jsx(Ir,{balance:a==null?void 0:a.value,token:a==null?void 0:a.token,value:v,onChange:g})}),y.jsx(pn,{kind:B?"primary":"default",className:"inline-flex h-11 items-center justify-center rounded-full",disabled:!B||(t==null?void 0:t.id)===(G==null?void 0:G.id)&&!(v.input&&v.valid),busy:R,onClick:ie,children:y.jsx("span",{className:"text-sm font-semibold text-white",children:B&&(t==null?void 0:t.id)!==(G==null?void 0:G.id)?"Switch Network":(r==null?void 0:r.type)!=="native"&&v.value>((s==null?void 0:s.value)||0n)?"Approve":"Deposit"})})]}),3<=k&&y.jsxs(y.Fragment,{children:[y.jsx(mc,{}),y.jsxs("div",{className:"gap-small flex items-center justify-between",children:[y.jsx(lr,{property:"Transfer Limit",token:r,balance:w.value}),y.jsx(lr,{property:"Penalty Reserve",token:r,balance:v.value}),y.jsx(lr,{property:"Base Fee",token:r,balance:C.value}),y.jsx(lr,{property:"Liquidity Fee Rate",percent:ml(E.value)})]})]})]}),o!=null&&o.type&&o.type!=="native"?y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:3,title:"Authorize Token on Target Chain and Run Relayer"}),k===4&&y.jsxs(y.Fragment,{children:[y.jsx(VMe,{content:"Authorize token on target chain and run relayer to start relaying messages and earn rewards. Please note this step authorizes tokens for the relayer to send to users' target chain address based on transactions. Ensure you authorize enough tokens for multiple transactions as needed."}),y.jsx(mc,{}),y.jsx(hc,{text:"Current Allowance",children:y.jsx(Ir,{token:c==null?void 0:c.token,disabled:!0,value:{value:(c==null?void 0:c.value)??0n,input:ut((c==null?void 0:c.value)??0n,(c==null?void 0:c.token.decimals)??0),valid:!0},placeholder:"-"})}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(pn,{kind:"default",onClick:L,className:"inline-flex h-11 flex-1 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Skip"})}),y.jsx(pn,{kind:"primary",onClick:te,className:"inline-flex h-11 flex-1 items-center justify-center rounded-full",busy:I,disabled:(r==null?void 0:r.type)==="native",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:(G==null?void 0:G.id)===(n==null?void 0:n.id)?"Approve More":"Switch Network"})})]})]})]}):null]}),y.jsxs(Bd,{title:"One More Step!",subTitle:y.jsxs("div",{className:"flex flex-wrap items-center text-sm font-semibold text-white",children:["Now ",y.jsx(gM,{style:"link"})," to start relaying messages and earn rewards."]}),isOpen:M,onClose:X,children:[y.jsxs("div",{className:"gap-x-small grid items-center gap-y-5 text-sm font-semibold text-white",style:{gridTemplateColumns:"130px auto"},children:[y.jsx("span",{className:"text-white/50",children:"Address"}),U?y.jsx(Ca,{address:U}):null,y.jsx("span",{className:"text-white/50",children:"Bridge Type"}),y.jsx("span",{children:"LnBridgeV3"}),y.jsx("span",{className:"text-white/50",children:"From"}),y.jsx(yM,{chain:t}),y.jsx("span",{className:"text-white/50",children:"To"}),y.jsx(yM,{chain:n}),y.jsx("span",{className:"text-white/50",children:"Token"}),y.jsx(KMe,{token:r}),y.jsx("span",{className:"text-white/50",children:"Penalty Reserve"}),y.jsx(ET,{amount:v.value,token:r}),y.jsx("span",{className:"text-white/50",children:"Transfer Limit"}),y.jsx(ET,{amount:w.value,token:r}),y.jsx("span",{className:"text-white/50",children:"Base Fee"}),y.jsx(ET,{amount:C.value,token:r}),y.jsx("span",{className:"text-white/50",children:"Liquidity Fee Rate"}),y.jsxs("span",{children:[ml(E.value),"%"]})]}),y.jsx(mc,{}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(pn,{kind:"default",onClick:e,className:"inline-flex h-10 flex-1 items-center justify-center rounded-full lg:h-11",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Manage"})}),y.jsx(gM,{style:"button"})]})]})]})}function gM({style:e,onClick:t=()=>{}}){return y.jsx("a",{href:"https://github.com/helix-bridge/relayer/tree/main",className:`inline-flex items-center justify-center ${e==="button"?"bg-primary h-10 flex-1 items-center justify-center rounded-full text-sm font-semibold text-white transition-opacity hover:opacity-80 lg:h-11":"text-primary text-sm font-semibold hover:underline"}`,rel:"noopener",target:"_blank",onClick:t,children:e==="button"?"Run relayer":"run a relayer"})}function hc({children:e,text:t,tips:n,className:r}){return y.jsxs("div",{className:`gap-medium flex flex-col ${r}`,children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:t}),n?y.jsx(At,{content:n,className:"w-fit",contentClassName:"max-w-[20rem]",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]}),e]})}function VMe({content:e}){return y.jsx("span",{className:"text-sm font-medium text-white/50",children:e})}function yM({chain:e}){return e?y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:22,height:22,alt:"Chain",src:Rn(e.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{children:e.name})]}):""}function KMe({token:e}){return e?y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:22,height:22,alt:"Chain",src:vr(e.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{children:e.symbol})]}):""}function ET({token:e,amount:t}){return y.jsx("span",{children:e?`${ut(t,e.decimals,{precision:6})} ${e.symbol}`:""})}function mc(){return y.jsx("div",{className:"h-[1px] bg-white/10"})}function bM({children:e}){const[t,n]=S.useState(),[r,o]=S.useState(),[a,i]=S.useState(),[s,c]=S.useState(),[l,u]=S.useState(),[d,f]=S.useState(),[h,m]=S.useState(),[p,b]=S.useState(),[v,g]=S.useState(),[w,_]=S.useState(),[C,x]=S.useState(),[E,T]=S.useState({input:"",valid:!0,value:0n}),{data:k}=yy(),D=zs(),{address:R}=tn(),F=S.useMemo(()=>kK(p,v,w).at(0),[p,v,w]),{defaultBridge:B,oppositeBridge:j,bridgeInstance:P}=S.useMemo(()=>{let U,G;const Z={sourceChain:p,targetChain:v,sourceToken:w,targetToken:F,walletClient:k,publicClient:D};return Bye(w,v)?U=new dV({category:"lnv2-default",...Z,protocol:"lnv2-default"}):Fye(w,v)&&(G=new fV({category:"lnv2-opposite",...Z,protocol:"lnv2-opposite"})),{defaultBridge:U,oppositeBridge:G,bridgeInstance:U??G}},[p,v,w,F,k,D]),O=S.useCallback(async(U,G,Z,ae,ne)=>{const{data:ie}=await U.query({query:uV,variables:{fromChainId:G.id,toChainId:Z.id,fromToken:ae.address,toToken:ne.address,version:"lnv2"},fetchPolicy:"no-cache"});return ie.checkLnBridgeExist?!0:(console.warn("[isLnBridgeExist]",G.id,Z.id,ae.address,ne.address),!1)},[]),I=S.useCallback(async(U,G,Z,ae)=>{try{const ne=await Z.sourceApprove(G,U);return Gr(ne,ae,"Approval"),c(await Z.getSourceAllowance(U)),ne}catch(ne){console.error(ne),an(ne)}},[]),N=S.useCallback(async(U,G,Z,ae)=>{try{const ne=await Z.targetApprove(G,U);return Gr(ne,ae,"Approval"),u(await Z.getTargetAllowance(U)),ne}catch(ne){console.error(ne),an(ne)}},[]),M=S.useCallback(async(U,G,Z,ae)=>{try{const ne=await Z.depositMargin(G);Gr(ne,ae,"Deposite");const ie=await Z.getTargetAllowance(U),te=await Z.getTargetBalance(U);return u(ie),m(te),ne}catch(ne){console.error(ne),an(ne)}},[]),L=S.useCallback(async(U,G,Z,ae)=>{try{const ne=await Z.setFeeAndRate(U,G);return Gr(ne,ae),ne}catch(ne){console.error(ne),an(ne)}},[]),X=S.useCallback(async(U,G,Z,ae,ne,ie)=>{try{const te=await ne.updateFeeAndMargin(G,Z,ae);Gr(te,ie);const ee=await ne.getSourceAllowance(U),re=await ne.getSourceBalance(U);return c(ee),f(re),te}catch(te){console.error(te),an(te)}},[]),J=S.useCallback(async(U,G,Z,ae,ne)=>{try{const ie=await ae.withdrawMargin(U,G,Z);return Gr(ie,ne,"Withdraw"),ie}catch(ie){console.error(ie),an(ie)}},[]);return S.useEffect(()=>{let U;return R&&P?U=qx([P.getSourceAllowance(R),P.getTargetAllowance(R),P.getSourceBalance(R),P.getTargetBalance(R)]).subscribe({next:([G,Z,ae,ne])=>{c(G),u(Z),f(ae),m(ne)},error:G=>{console.error(G),c(void 0),u(void 0),f(void 0),m(void 0)}}):(c(void 0),u(void 0),f(void 0),m(void 0)),()=>U==null?void 0:U.unsubscribe()},[R,P]),y.jsx(tH.Provider,{value:{margin:t,baseFee:r,feeRate:a,sourceAllowance:s,targetAllowance:l,sourceBalance:d,targetBalance:h,sourceChain:p,targetChain:v,sourceToken:w,targetToken:F,bridgeCategory:C,defaultBridge:B,oppositeBridge:j,withdrawAmount:E,setMargin:n,setBaseFee:o,setFeeRate:i,setSourceAllowance:c,setTargetAllowance:u,setSourceBalance:f,setTargetBalance:m,setSourceChain:b,setTargetChain:g,setSourceToken:_,setBridgeCategory:x,setWithdrawAmount:T,sourceApprove:I,targetApprove:N,depositMargin:M,updateFeeAndMargin:X,setFeeAndRate:L,withdrawMargin:J,isLnBridgeExist:O},children:e})}const{defaultSourceChains:YMe,defaultTargetChains:QMe}=n4(!0);function XMe({onManage:e=()=>{}}){const{sourceChain:t,targetChain:n,sourceToken:r,targetToken:o,sourceAllowance:a,sourceBalance:i,targetAllowance:s,targetBalance:c,defaultBridge:l,oppositeBridge:u,setBridgeCategory:d,setSourceChain:f,setTargetChain:h,setSourceToken:m,setFeeAndRate:p,sourceApprove:b,targetApprove:v,depositMargin:g,updateFeeAndMargin:w,isLnBridgeExist:_}=nH(),[C,x]=S.useState(!1),[E,T]=S.useState(!1),[k,D]=S.useState(!1),[R,F]=S.useState(!1),[B,j]=S.useState(0),[P,O]=S.useState({input:"",valid:!0,value:0n}),[I,N]=S.useState({input:"",valid:!0,value:0n}),[M,L]=S.useState({input:"",valid:!0,value:0}),X=uy(),{address:J}=tn(),{chain:U}=So(),{switchNetwork:G}=Tl(),{openConnectModal:Z}=Eb(),ae=S.useCallback(async(ne,ie,te,ee,re)=>{var fe;const{data:z}=await X.query({query:Aye,variables:{fromChain:ie.network,toChain:te.network,bridge:re,relayer:ne.toLowerCase(),page:0,row:2},fetchPolicy:"no-cache"});return(fe=z.queryLnBridgeRelayInfos)!=null&&fe.records.some(({sendToken:ve})=>(ve==null?void 0:ve.toLowerCase())===ee.address.toLowerCase())?(ms.warn({title:"Transaction failed",description:"You have registered a relayer that supports this cross-chain."}),!0):!1},[X]);return S.useEffect(()=>{d(qye(t,n,r).at(0))},[t,n,r,d]),y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mx-auto flex w-full flex-col gap-5 lg:w-[40rem]",children:[y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:1,title:"Select Chain and Token"}),B===0&&y.jsxs(y.Fragment,{children:[y.jsx(_T,{content:"Different source chains and target chains correspond to different bridge types. In different bridge types, the relayer is required to set margin on different chains. When the bridge type is 'default', the relayer needs to set margin on the target chain. If the bridge type is 'opposite', the relayer must set margin on the source chain."}),y.jsx(bi,{}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(Jl,{label:"From",className:"flex-1",children:y.jsx(Fh,{className:"bg-app-bg px-medium h-10 rounded-xl lg:h-11",options:YMe,placeholder:"Source chain",value:t,onChange:ne=>{f(ne),h(void 0),m(void 0)}})}),y.jsx(Jl,{label:"To",className:"flex-1",children:y.jsx(Fh,{className:"bg-app-bg px-medium h-10 rounded-xl lg:h-11",options:r4(t,QMe,!0),placeholder:"Target chain",value:n,onChange:ne=>{h(ne),m(void 0)}})})]}),y.jsx(Jl,{label:"Token",children:y.jsx(WZ,{disabled:!uE(t,n,[],!0).length,options:uE(t,n,[],!0),placeholder:"Select a token",value:r,onChange:m})}),y.jsx(bi,{}),y.jsx(pn,{onClick:()=>{J?j(2):Z==null||Z()},kind:"primary",className:"inline-flex h-11 items-center justify-center rounded-full",disabled:!r,children:y.jsx("span",{className:"text-sm font-semibold text-white",children:J?"Next":"Connect Wallet"})})]}),1<=B&&y.jsxs(y.Fragment,{children:[y.jsx(bi,{}),y.jsxs("div",{className:"gap-small flex items-center justify-between",children:[y.jsx(lr,{property:"Address",address:J,className:"hidden lg:flex"}),y.jsx(lr,{property:"Bridge Type",bridge:u?"lnv2-opposite":"lnv2-default",className:"hidden lg:flex"}),y.jsx(lr,{property:"From",chain:t}),y.jsx(lr,{property:"To",chain:n}),y.jsx(lr,{property:"Token",token:r})]}),y.jsx(bi,{}),y.jsx(pn,{kind:"default",onClick:()=>{j(0),f(void 0),h(void 0),m(void 0),O({input:"",valid:!0,value:0n}),N({input:"",valid:!0,value:0n}),L({input:"",valid:!0,value:0}),F(!1)},className:"inline-flex h-11 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Reset"})})]})]}),y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:2,title:"Deposit Margin and Set Fee"}),B===2&&y.jsxs(y.Fragment,{children:[y.jsx(_T,{content:"When a relayer engages in misconduct, their margin will be used for compensation. The fee charged by the relayer in the source chain from user transactions is baseFee + transferAmount * liquidityFeeRate."}),y.jsx(bi,{}),y.jsx(Jl,{label:"Deposit Margin",children:y.jsx(Ir,{balance:l?c==null?void 0:c.value:i==null?void 0:i.value,token:l?c==null?void 0:c.token:i==null?void 0:i.token,value:P,disabled:R,onChange:O})}),l?y.jsxs(y.Fragment,{children:[y.jsx(pn,{kind:R?"default":"primary",className:"inline-flex h-11 items-center justify-center rounded-full",disabled:R||(n==null?void 0:n.id)===(U==null?void 0:U.id)&&P.value===0n,busy:C,onClick:async()=>{if(J&&l&&t&&n&&r&&o){x(!0);try{if(n.id!==(U==null?void 0:U.id))G==null||G(n.id);else if((o==null?void 0:o.type)!=="native"&&P.value>((s==null?void 0:s.value)||0n))await v(J,P.value,l,n);else if(await _(X,t,n,r,o)){if(!await ae(J,t,n,r,"lnv2-default")){const ne=await g(J,P.value,l,n);(ne==null?void 0:ne.status)==="success"&&F(!0)}}else ms.warn({title:"Deposit failed",description:"The bridge does not exist."})}catch(ne){console.error(ne),an(ne)}finally{x(!1)}}},children:y.jsx("span",{className:"text-sm font-semibold text-white",children:!R&&(n==null?void 0:n.id)!==(U==null?void 0:U.id)?"Switch Network":!R&&(o==null?void 0:o.type)!=="native"&&P.value>((s==null?void 0:s.value)||0n)?"Approve":"Deposit"})}),y.jsx(bi,{})]}):null,y.jsx(Jl,{label:"Base Fee",tips:"The fixed fee set by the relayer and charged in a transaction",children:y.jsx(Ir,{token:r,value:I,onChange:N})}),y.jsx(Jl,{label:"Liquidity Fee Rate",tips:"The percentage deducted by the relayer from the transfer amount in a transaction",children:y.jsx(T6,{placeholder:"Enter 0 ~ 0.25",className:"bg-app-bg px-medium h-10 rounded-xl text-sm font-semibold text-white lg:h-11",value:M,onChange:L})}),y.jsx(bi,{}),y.jsx(pn,{kind:R?"primary":"default",disabled:(t==null?void 0:t.id)===(U==null?void 0:U.id)&&!(P.input&&I.input&&M.input&&o4(M.value)),busy:E,className:"inline-flex h-11 items-center justify-center rounded-full",onClick:async()=>{let ne;if(J&&t&&n&&r&&o){T(!0);try{t.id!==(U==null?void 0:U.id)?G==null||G(t.id):u&&(r==null?void 0:r.type)!=="native"&&P.value>((a==null?void 0:a.value)||0n)?await b(J,P.value,u,t):l?ne=await p(I.value,M.value,l,t):u&&await _(X,t,n,r,o)?await ae(J,t,n,r,"lnv2-opposite")||(ne=await w(J,P.value,I.value,M.value,u,t)):ms.warn({title:"Deposit failed",description:"The bridge does not exist."})}catch(ie){console.error(ie),an(ie)}finally{T(!1),(ne==null?void 0:ne.status)==="success"&&(o.type&&o.type!=="native"?j(4):D(!0))}}},children:y.jsx("span",{className:"text-sm font-semibold text-white",children:l?(t==null?void 0:t.id)!==(U==null?void 0:U.id)?"Switch Network":"Register":u?(t==null?void 0:t.id)!==(U==null?void 0:U.id)?"Switch Network":(r==null?void 0:r.type)!=="native"&&P.value>((a==null?void 0:a.value)||0n)?"Approve":"Register":"Register"})})]}),3<=B&&y.jsxs(y.Fragment,{children:[y.jsx(bi,{}),y.jsxs("div",{className:"gap-small flex items-center justify-between",children:[y.jsx(lr,{property:"Margin",token:l?o:u?r:void 0,balance:P.value}),y.jsx(lr,{property:"Base Fee",token:r,balance:I.value}),y.jsx(lr,{property:"Liquidity Fee Rate",percent:ml(M.value)})]})]})]}),o!=null&&o.type&&o.type!=="native"?y.jsxs("div",{className:"flex flex-col gap-5 rounded-3xl bg-[#1F282C] p-5 lg:p-8",children:[y.jsx(ah,{step:3,title:"Authorize Token on Target Chain and Run Relayer"}),B===4&&y.jsxs(y.Fragment,{children:[y.jsx(_T,{content:"Authorize token on target chain and run relayer to start relaying messages and earn rewards. Please note this step authorizes tokens for the relayer to send to users' target chain address based on transactions. Ensure you authorize enough tokens for multiple transactions as needed."}),y.jsx(bi,{}),y.jsx(Jl,{label:"Current Allowance",children:y.jsx(Ir,{token:o,disabled:!0,value:{value:(s==null?void 0:s.value)??0n,input:ut((s==null?void 0:s.value)??0n,(s==null?void 0:s.token.decimals)??0),valid:!0},placeholder:"-"})}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(pn,{kind:"default",onClick:()=>D(!0),className:"inline-flex h-11 flex-1 items-center justify-center rounded-full",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:"Skip"})}),y.jsx(pn,{kind:"primary",onClick:async()=>{if(J&&n){T(!0);try{(U==null?void 0:U.id)!==n.id?G==null||G(n.id):l?await v(J,(c==null?void 0:c.value)||0n,l,n):u&&await v(J,(c==null?void 0:c.value)||0n,u,n)}catch(ne){console.error(ne),an(ne)}finally{T(!1)}}},className:"inline-flex h-11 flex-1 items-center justify-center rounded-full",busy:E,disabled:(r==null?void 0:r.type)==="native",children:y.jsx("span",{className:"text-sm font-semibold text-white",children:(U==null?void 0:U.id)===(n==null?void 0:n.id)?"Approve More":"Switch Network"})})]})]})]}):null]}),y.jsxs(Bd,{title:"One More Step!",subTitle:y.jsxs("div",{className:"flex flex-wrap items-center text-sm font-semibold text-white",children:["Now ",y.jsx(vM,{style:"link"})," to start relaying messages and earn rewards."]}),isOpen:k,onClose:()=>D(!1),children:[y.jsxs("div",{className:"gap-x-small grid items-center gap-y-5 text-sm font-semibold text-white",style:{gridTemplateColumns:"130px auto"},children:[y.jsx("span",{className:"text-white/50",children:"Address"}),J?y.jsx(Ca,{address:J}):null,y.jsx("span",{className:"text-white/50",children:"Bridge Type"}),y.jsx("span",{children:l?"Default":u?"Opposite":"-"}),y.jsx("span",{className:"text-white/50",children:"From"}),y.jsx(wM,{chain:t}),y.jsx("span",{className:"text-white/50",children:"To"}),y.jsx(wM,{chain:n}),y.jsx("span",{className:"text-white/50",children:"Token"}),y.jsx(JMe,{token:r}),y.jsx("span",{className:"text-white/50",children:"Margin"}),y.jsx(ZMe,{margin:P.value,token:l?o:r}),y.jsx("span",{className:"text-white/50",children:"Base Fee"}),y.jsx(eLe,{fee:I.value,token:r}),y.jsx("span",{className:"text-white/50",children:"Liquidity Fee Rate"}),y.jsxs("span",{children:[ml(M.value),"%"]})]}),y.jsx(bi,{}),y.jsxs("div",{className:"gap-medium flex items-center lg:gap-5",children:[y.jsx(pn,{kind:"default",onClick:e,className:"inline-flex h-10 flex-1 items-center justify-center rounded-full lg:h-11",children:y.jsx("span",{className:"text-sm font-semibold",children:"Manage"})}),y.jsx(vM,{style:"button"})]})]})]})}function vM({style:e,onClick:t=()=>{}}){return y.jsx("a",{href:"https://github.com/helix-bridge/relayer/tree/main",className:`inline-flex items-center justify-center ${e==="button"?"border-radius bg-primary h-10 flex-1 items-center justify-center rounded-full text-sm font-semibold text-white transition-opacity hover:opacity-80 lg:h-11":"text-primary text-sm font-semibold hover:underline"}`,rel:"noopener",target:"_blank",onClick:t,children:e==="button"?"Run relayer":"run a relayer"})}function Jl({children:e,label:t,tips:n,className:r}){return y.jsxs("div",{className:`gap-medium flex flex-col ${r}`,children:[y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("span",{className:"text-sm font-semibold text-white/50",children:t}),n?y.jsx(At,{content:n,className:"w-fit",contentClassName:"max-w-[18rem]",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]}),e]})}function _T({content:e}){return y.jsx("span",{className:"text-sm font-medium text-white/50",children:e})}function wM({chain:e}){return e?y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:22,height:22,alt:"Chain",src:Rn(e.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{children:e.name})]}):""}function JMe({token:e}){return e?y.jsxs("div",{className:"gap-small flex items-center",children:[y.jsx("img",{width:22,height:22,alt:"Chain",src:vr(e.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{children:e.symbol})]}):""}function ZMe({token:e,margin:t}){return y.jsx("span",{children:e?`${ut(t,e.decimals)} ${e.symbol}`:""})}function eLe({fee:e,token:t}){return y.jsx("span",{children:t?`${ut(e,t.decimals)} ${t.symbol}`:""})}function bi(){return y.jsx("div",{className:"h-[1px] bg-white/10"})}const EM=10;function _M({version:e}){const t=tn(),[n,r]=S.useState(0),{loading:o,data:a,total:i,refetch:s}=zY(e,n,EM,t.address);return S.useEffect(()=>r(0),[e]),y.jsxs("div",{className:"space-y-medium",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-base font-semibold text-white",children:"Relayers"}),y.jsx(A6,{onClick:s})]}),y.jsx(HZ,{onPageChange:r,onRefetch:s,currentPage:n,totalRecords:i,pageSize:EM,dataSource:a,version:e,loading:o,isDashboard:!0})]})}function tLe(){const[e,t]=S.useState("manage"),[n,r]=S.useState("lnv3"),o=S.useCallback(()=>t("manage"),[]);return y.jsxs("div",{className:"flex flex-col items-center gap-5",children:[y.jsx("div",{className:"flex w-full justify-end lg:w-[40rem]",children:y.jsx(xMe,{value:n,onChange:r})}),y.jsx(CMe,{options:[{key:"manage",label:"Manage",children:n==="lnv3"?y.jsx(mM,{children:y.jsx(_M,{version:n})}):y.jsx(bM,{children:y.jsx(_M,{version:n})})},{key:"register",label:"Register",children:n==="lnv3"?y.jsx(mM,{children:y.jsx(GMe,{onManage:o})}):y.jsx(bM,{children:y.jsx(XMe,{onManage:o})})},{key:"overview",label:"Overview",children:y.jsx(HMe,{version:n})}],className:"lg:w-[40rem]",activeKey:e,onChange:t})]})}function BP({children:e}){return y.jsx("main",{className:"app-main",children:y.jsx("div",{className:"page-container",children:e})})}function nLe(){return y.jsx(BP,{children:y.jsx(tLe,{})})}function rLe(){return y.jsx(y.Fragment,{children:y.jsx("main",{className:"app-main flex items-center justify-center",children:y.jsxs("div",{className:"gap-medium flex w-fit flex-col items-start",children:[y.jsx("h2",{className:"text-base font-medium text-white",children:"Not Found !"}),y.jsx("p",{className:"text-sm font-normal text-white",children:"Could not find requested resource"}),y.jsx(Su,{to:"/",className:"text-primary text-sm font-normal hover:underline",children:"Return Home"})]})})})}function oLe(){const e=Az();return y.jsxs("main",{className:"app-main flex flex-col items-center justify-center gap-5",children:[y.jsx("h1",{className:"font-bold",children:"Oops!"}),y.jsx("p",{children:"Sorry, an unexpected error has occurred."}),y.jsx("p",{children:y.jsx("i",{className:"text-sm",children:e.statusText||e.message})})]})}function aLe({total:e,current:t,size:n=10,onChange:r=()=>{}}){const o=Math.ceil(e/n);return o>1?y.jsxs("div",{className:"gap-small flex items-center justify-end",children:[y.jsx(La,{label:"previous",current:t,total:o,onClick:()=>r(t-1)}),iLe(t,o,r),y.jsx(La,{label:"next",current:t,total:o,onClick:()=>r(t+1)})]}):null}function La({label:e,current:t,total:n,onClick:r}){const{disabled:o,className:a}=S.useMemo(()=>{let i="inline-flex items-center justify-center h-8 min-w-[2rem] px-[2px] rounded-md border text-sm font-normal text-white bg-secondary transition-[opacity,color]",s=!1;return e==="next"&&t+1===n||e==="previous"&&t===0?(i+=" disabled:cursor-not-allowed disabled:opacity-50 border-white/30",s=!0):e===t?(i+=" bg-white/10 disabled:cursor-default border-transparent",s=!0):e==="more"?(i+=" opacity-50 disabled:cursor-default border-white/30",s=!0):i+=" opacity-50 hover:opacity-100 border-white/30",{disabled:s,className:i}},[e,t,n]);return y.jsx("button",{className:a,disabled:o,onClick:r,children:e==="more"?y.jsx("span",{children:"..."}):e==="previous"?y.jsx("img",{alt:"Previous page",width:16,height:16,src:"images/pagination/previous-page.svg"}):e==="next"?y.jsx("img",{alt:"Next page",width:16,height:16,src:"images/pagination/next-page.svg"}):y.jsx("span",{children:e+1})})}function iLe(e,t,n){const r=new Array(t).fill(0).map((o,a)=>a);return e<3||t-48?y.jsxs(y.Fragment,{children:[r.slice(0,4).map(o=>y.jsx(La,{label:o,current:e,total:t,onClick:()=>n(o)},o)),y.jsx(La,{label:"more",current:e,total:t}),r.slice(-4).map(o=>y.jsx(La,{label:o,current:e,total:t,onClick:()=>n(o)},o))]}):r.map(o=>y.jsx(La,{label:o,current:e,total:t,onClick:()=>n(o)},o)):y.jsxs(y.Fragment,{children:[y.jsx(La,{label:0,current:e,total:t,onClick:()=>n(0)}),y.jsx(La,{label:"more",current:e,total:t}),r.slice(e-1,e+2).map(o=>y.jsx(La,{label:o,current:e,total:t,onClick:()=>n(o)},o)),y.jsx(La,{label:"more",current:e,total:t}),y.jsx(La,{label:t-1,current:e,total:t,onClick:()=>n(t-1)})]})}function sLe({onPageChange:e,onRowClick:t,totalRecords:n,currentPage:r,pageSize:o,dataSource:a,loading:i,columns:s}){const c=S.useMemo(()=>s.reduce((l,u)=>{const d=typeof u.width=="string"?u.width:typeof u.width=="number"?`${u.width}px`:"1fr";return l==="auto"?l=d:l=`${l} ${d}`,l},"auto"),[s]);return y.jsxs("div",{className:"space-y-3",children:[y.jsx("div",{className:"w-full overflow-x-auto",children:y.jsxs("div",{className:"bg-secondary min-w-[62rem] rounded-2xl p-2 lg:p-5",children:[y.jsx("div",{className:"bg-background py-large grid items-center gap-x-2 rounded-t-xl border-b border-b-white/10 px-3 text-sm font-normal text-white/50",style:{gridTemplateColumns:c},children:s.map(({key:l,title:u})=>typeof u=="string"?y.jsx("h5",{children:u},l):y.jsx(S.Fragment,{children:u},l))}),y.jsxs("div",{className:"relative",children:[y.jsx(qs,{loading:i,className:`rounded-b-xl ${a!=null&&a.length?"bg-black/5 backdrop-blur-[2px]":""}`,color:"white"}),a!=null&&a.length?y.jsx("div",{className:"rounded-b-xl",children:a.map(l=>y.jsx("div",{className:`${t?"hover:bg-background/50 transition-colors hover:cursor-pointer":""} bg-background grid items-center gap-x-2 px-3 py-2 text-sm font-normal text-white last:rounded-b-xl`,style:{gridTemplateColumns:c},onClick:()=>t&&t(l),children:s.map(({key:u,dataIndex:d,render:f})=>y.jsx(S.Fragment,{children:f?f(l):y.jsx("span",{children:`${l[d]}`})},u))},l.key))}):y.jsx("div",{className:"flex h-48 flex-col items-center justify-center gap-4",children:i?null:y.jsxs(y.Fragment,{children:[y.jsx("img",{width:50,height:63,alt:"No data",src:"images/no-data.svg"}),y.jsx("span",{className:"text-sm font-normal text-slate-400",children:"No data"})]})})]})]})}),n!==void 0&&r!==void 0&&y.jsx("div",{className:"overflow-x-auto pb-1",children:y.jsx(aLe,{size:o,current:r,total:n,onChange:e})})]})}function cLe(e=!1){return[{title:"From",key:"from",width:e?void 0:"10%",render:t=>{const n=st(t.fromChain);return n?y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("img",{alt:n.name,width:32,height:32,src:Rn(n.logo),className:"rounded-full"}),y.jsx("span",{className:"hidden truncate lg:inline",children:n.name})]}):y.jsx("span",{children:"-"})}},{title:"To",key:"to",width:e?void 0:"10%",render:t=>{const n=st(t.toChain);return n?y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("img",{alt:n.name,width:32,height:32,src:Rn(n.logo),className:"rounded-full"}),y.jsx("span",{className:"hidden truncate lg:inline",children:n.name})]}):y.jsx("span",{children:"-"})}},{title:"Sender",key:"sender",render:t=>t.sender?y.jsx(Ca,{address:t.sender,copyable:!0,forceShort:!0}):y.jsx("span",{children:"-"})},{title:"Recipient",key:"recipient",render:t=>t.recipient?y.jsx(Ca,{address:t.recipient,copyable:!0,forceShort:!0}):y.jsx("span",{children:"-"})},{title:"Amount",key:"amount",render:t=>{var r;const n=(r=st(t.fromChain))==null?void 0:r.tokens.find(({symbol:o})=>o.toUpperCase()===t.sendToken.toUpperCase());return n?y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("img",{width:32,height:32,alt:n.symbol,src:vr(n.logo),className:"hidden rounded-full lg:block"}),y.jsx("span",{className:"truncate",children:`${ut(BigInt(t.sendAmount),n.decimals)} ${n.symbol}`})]}):y.jsx("span",{children:"-"})}},{title:y.jsx("span",{className:"text-end",children:"Status"}),key:"status",width:e?"13%":"15%",render:({result:t,startTime:n,confirmedBlocks:r})=>y.jsxs("div",{className:"flex flex-col items-end truncate",children:[y.jsx("span",{className:"truncate",children:hy(n*1e3,{compact:!0})}),y.jsx("span",{className:`truncate text-xs font-semibold ${t===xn.SUCCESS?"text-app-green":t===xn.REFUNDED?"text-app-orange":t===xn.PENDING?"text-primary":"text-white/50"}`,children:t===xn.PENDING?r?fj(r)?"Confirming":`Pending ${r}`:"Pending":Wye(t)})]})}]}function lLe({onPageChange:e,onRowClick:t,dataSource:n,currentPage:r,totalRecords:o,pageSize:a,loading:i}){const s=$Y("lg");return y.jsx(sLe,{dataSource:n.map(({id:c,...l})=>({key:c,id:c,...l})),totalRecords:o,currentPage:r,pageSize:a,columns:cLe(s),loading:i,onPageChange:e,onRowClick:t})}const xM=10;function uLe(){const{recordsSearch:e,setRecordsSearch:t}=$g(),n=S.useDeferredValue(e),[,r]=Dz(),o=Mg(),[a,i]=S.useState(0),[s,c]=S.useState(!1),{data:l,total:u,networkStatus:d,refetch:f}=d_e(n.toLowerCase(),a,xM);return S.useEffect(()=>{t(new URLSearchParams(window.location.hash.split("?")[1]).get(Mn.ADDRESS)||"")},[t]),S.useEffect(()=>{const h=Number(new URLSearchParams(window.location.hash.split("?")[1]).get(Mn.PAGE));!Number.isNaN(h)&&h>0&&i(h-1)},[]),y.jsxs("div",{className:"space-y-5",children:[y.jsxs("div",{className:"flex items-center justify-between gap-5",children:[y.jsx(qZ,{placeholder:"Search by address",className:"hover:border-primary w-full lg:w-[26.5rem]",value:e,onChange:h=>{t(h),i(0),r(m=>(m.delete(Mn.PAGE),Hn(h)?m.set(Mn.ADDRESS,h):m.delete(Mn.ADDRESS),m))},onClear:()=>{t(""),i(0),r(h=>(h.delete(Mn.ADDRESS),h.delete(Mn.PAGE),h))}}),y.jsx(A6,{onClick:()=>{c(!0),setTimeout(()=>f(),0)},onRefresh:()=>{c(!1),setTimeout(()=>f(),0)},enabled:d===dt.ready,enabledAfterClick:!0})]}),y.jsx(lLe,{dataSource:l,totalRecords:u,currentPage:a,pageSize:xM,loading:d===dt.loading||d===dt.setVariables||d===dt.refetch&&s,onPageChange:h=>{i(h),r(m=>(m.set(Mn.PAGE,(h+1).toString()),m))},onRowClick:({id:h})=>o(`/tx/${h}`,{state:{source:"explorer"}})})]})}function dLe(){return y.jsx(BP,{children:y.jsx(uLe,{})})}function fLe({width:e,height:t,type:n,bridge:r}){return r?y.jsx(At,{content:r.getName(),className:"w-fit",children:y.jsx("img",{width:e,height:t,alt:"Bridge",src:Gye(n==="symbol"?r.getLogo().symbol:r.getLogo().horizontal),className:"shrink-0 rounded-full"})}):null}function hLe({record:e}){const t=st(e==null?void 0:e.fromChain),n=st(e==null?void 0:e.toChain),r=e?fm({category:e.bridge}):void 0;return y.jsxs("div",{className:"gap-large flex items-center",children:[y.jsx(CM,{logo:Rn(t==null?void 0:t.logo),name:(t==null?void 0:t.name)||"Unknown"}),y.jsx(SM,{}),y.jsx(fLe,{width:132,height:32,type:"horizontal",bridge:r}),y.jsx(SM,{}),y.jsx(CM,{logo:Rn(n==null?void 0:n.logo),name:(n==null?void 0:n.name)||"Unknown"})]})}function CM({logo:e,name:t}){return y.jsx(At,{content:t,className:"shrink-0",children:y.jsx("img",{width:32,height:32,alt:t,src:e,className:"rounded-full"})})}function SM(){return y.jsx("img",{width:9,height:12,alt:"Caret right",src:"images/caret-right.svg",className:"shrink-0"})}function mLe({result:e}){const{icon:t,text:n,color:r}=S.useMemo(()=>{let o="unknown.svg",a="Unknown",i="#0085FF";return e===xn.PENDING||e===xn.PENDING_TO_REFUND||e===xn.PENDING_TO_CLAIM?(o="pending.svg",a="Pending",i="#0085FF"):e===xn.REFUNDED?(o="refunded.svg",a="Refunded",i="#FAAD14"):e===xn.SUCCESS?(o="success.svg",a="Success",i="#52C41A"):e===xn.PENDING_TO_CONFIRM_REFUND&&(o="pending.svg",a="Refunding",i="#0085FF"),{icon:o,text:a,color:i}},[e]);return y.jsxs("div",{className:"gap-small pl-small pr-medium flex items-center rounded-3xl py-[3px]",style:{backgroundColor:r},children:[y.jsx("img",{width:t==="unknown.svg"?16:20,height:t==="unknown.svg"?16:20,alt:"Result",src:`images/status/${t}`}),y.jsx("span",{className:"text-sm font-medium",children:n})]})}function pLe({record:e}){const[t,n]=S.useState(0),[r,o]=S.useState(!1);return S.useEffect(()=>{const a=D1e(1e3).subscribe(()=>n(i=>i>0?i-1e3:0));return()=>a.unsubscribe()},[]),S.useEffect(()=>{var a;if(e!=null&&e.bridge){const i=e?e.startTime*1e3:Date.now(),s=((((a=fm({category:e.bridge}))==null?void 0:a.getEstimateTime().min)||0)+10)*60*1e3;n(s),o(Date.now()-i>s)}else n(0),o(!1)},[e]),y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx(mLe,{result:e==null?void 0:e.result}),(e==null?void 0:e.result)===xn.PENDING&&y.jsx("div",{className:"inline text-sm font-medium text-white/50",children:r?y.jsxs("span",{children:["It seems to be taking longer than usual."," ",y.jsx("a",{href:`mailto:hello@helixbridge.app?subject=${encodeURIComponent("Transfer time out")}&body=${encodeURIComponent(location.href)}`,rel:"noreferrer",target:"_blank",className:"text-primary hover:underline",children:"Contact us"})," ","for support."]}):`Estimated to wait ${Rve(t)}`})]})}function TM({chain:e,txHash:t}){const n=st(e);return t?y.jsxs("div",{className:"gap-medium flex items-center",children:[n!=null&&n.blockExplorers?y.jsx("a",{className:"text-primary text-sm font-medium transition hover:underline",href:new URL(`tx/${t}`,n.blockExplorers.default.url).href,rel:"noopener noreferrer",target:"_blank",children:t}):y.jsx("span",{className:"text-sm font-medium text-white",children:t}),y.jsx(AP,{text:t})]}):y.jsx("span",{className:"text-sm font-medium text-white",children:"Waiting for the transaction..."})}function gLe({record:e}){return y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx("img",{width:16,height:16,alt:"Confirm time",src:"images/time.svg",className:"shrink-0"}),y.jsx("span",{className:"text-sm font-medium text-white",children:e?`${Ove(e.startTime*1e3)} (${hy(e.startTime*1e3)})`:null}),!!(e!=null&&e.startTime&&(e!=null&&e.endTime))&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"h-3 w-[1px] bg-white/50"}),y.jsx("img",{width:16,height:16,alt:"Confirm time",src:"images/clock.svg",className:"shrink-0"}),y.jsxs("span",{className:"text-sm font-medium text-white/50",children:["Confirmed within ",BK(e.startTime*1e3,e.endTime*1e3)]})]})]})}function yLe({record:e,bridge:t}){const n=t==null?void 0:t.getContract();return e&&n?y.jsxs("div",{className:"flex flex-col items-start justify-between",children:[y.jsx(AM,{chain:e.fromChain,from:e.sender,to:n.sourceAddress,symbol:e.sendToken,amount:BigInt(e.sendAmount||0)}),y.jsx(AM,{chain:e.toChain,from:n.targetAddress,to:e.recipient,symbol:e.recvToken,amount:BigInt(e.recvAmount||0)})]}):null}function AM({chain:e,from:t,to:n,symbol:r,amount:o}){const a=st(e),i=a==null?void 0:a.tokens.find(s=>s.symbol.toUpperCase()===r.toUpperCase());return i&&a?y.jsxs("div",{className:"gap-medium flex items-center",children:[y.jsx(At,{content:a.name,className:"shrink-0",children:y.jsx("img",{width:16,height:16,alt:"Chain logo",src:Rn(a.logo),className:"shrink-0 rounded-full"})}),y.jsx(xT,{text:"From"}),y.jsx(DM,{address:t}),y.jsx(xT,{text:"To"}),y.jsx(DM,{address:n}),y.jsx(xT,{text:"For"}),y.jsx("img",{width:16,height:16,alt:"Token icon",src:vr(i.logo),className:"shrink-0 rounded-full"}),y.jsxs("span",{className:"text-sm font-medium text-white",children:[ut(o,i.decimals,{keepZero:!1,precision:4})," ",r]})]}):null}function DM({address:e}){return y.jsx("div",{className:"inline-block w-24 truncate",children:y.jsx(Ca,{address:e,forceShort:!0,className:"text-primary text-sm font-medium"})})}function xT({text:e}){return y.jsx("span",{className:"text-sm font-medium text-white",children:e})}function bLe({record:e}){var n;const t=(n=st(e==null?void 0:e.toChain))==null?void 0:n.tokens.find(({symbol:r,address:o})=>{var a;return r===(e==null?void 0:e.recvToken)||(e==null?void 0:e.recvTokenAddress)&&o.toLowerCase()===((a=e.recvTokenAddress)==null?void 0:a.toLowerCase())});return t?y.jsxs("div",{className:"gap-medium flex items-center",children:[t.type!=="native"&&y.jsx(Ca,{address:t.address,copyable:!0,className:"text-primary text-sm font-medium"}),y.jsx("img",{width:20,height:20,alt:"Token",src:vr(t.logo),className:"shrink-0 rounded-full"}),y.jsx("span",{className:"text-sm font-medium text-white",children:t.symbol}),window.ethereum&&t.type!=="native"?y.jsx(pn,{className:"rounded-medium px-medium py-[1px]",onClick:async()=>{try{await window.ethereum.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t.address,symbol:t.symbol,decimals:t.decimals,image:""}}})}catch(r){console.error(r)}},children:y.jsx("span",{className:"text-sm font-medium text-white",children:"Add to MetaMask"})}):null]}):null}function vLe({record:e}){var n;const t=(n=st(e==null?void 0:e.fromChain))==null?void 0:n.tokens.find(({symbol:r})=>r.toUpperCase()===(e==null?void 0:e.sendToken.toUpperCase()));return y.jsx("span",{className:"text-sm font-medium text-white",children:t&&(e!=null&&e.sendAmount)?`${ut(BigInt(e.sendAmount),t.decimals,{keepZero:!1,precision:4})} ${t.symbol}`:null})}function wLe({record:e}){var n;const t=(n=st(e==null?void 0:e.fromChain))==null?void 0:n.tokens.find(({symbol:r})=>r.toUpperCase()===(e==null?void 0:e.feeToken.toUpperCase()));return y.jsx("span",{className:"text-sm font-medium text-white",children:t&&(e!=null&&e.fee)?`${ut(BigInt(e.fee),t.decimals,{keepZero:!1,precision:4})} ${t.symbol}`:null})}function ELe({text:e,tips:t}){return y.jsxs("div",{className:"gap-small flex w-52 items-center justify-start",children:[y.jsx("span",{className:"text-sm font-extrabold",children:e}),t?y.jsx(At,{content:t,className:"shrink-0",contentClassName:"max-w-[15rem] lg:max-w-xs",children:y.jsx("img",{width:16,height:16,alt:"Info",src:"images/info.svg"})}):null]})}function _Le({width:e=20,height:t=20,fill:n="#ffffff",className:r,onClick:o}){return y.jsx("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:e,height:t,className:r,onClick:o,children:y.jsx("path",{d:"M232.727273 0h558.545454a232.727273 232.727273 0 0 1 232.727273 232.727273v558.545454a232.727273 232.727273 0 0 1-232.727273 232.727273H232.727273a232.727273 232.727273 0 0 1-232.727273-232.727273V232.727273a232.727273 232.727273 0 0 1 232.727273-232.727273z m438.178909 711.819636L471.086545 512l199.819637-199.819636L605.090909 246.365091 339.456 512 605.090909 777.634909l65.815273-65.815273z",fill:n})})}function xLe(e){var i,s,c,l,u,d,f;const{loading:t,data:n,refetch:r}=$s(Sye,{variables:{id:e.id},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"}),o=Mg(),a=S.useMemo(()=>{var g,w,_;const h=(g=n==null?void 0:n.historyRecordById)==null?void 0:g.bridge,m=st((w=n==null?void 0:n.historyRecordById)==null?void 0:w.fromChain),p=st((_=n==null?void 0:n.historyRecordById)==null?void 0:_.toChain),b=m==null?void 0:m.tokens.find(C=>{var x;return C.symbol.toUpperCase()===((x=n==null?void 0:n.historyRecordById)==null?void 0:x.sendToken.toUpperCase())}),v=p==null?void 0:p.tokens.find(C=>{var x;return C.symbol.toUpperCase()===((x=n==null?void 0:n.historyRecordById)==null?void 0:x.recvToken.toUpperCase())});if(h)return fm({category:h,sourceChain:m,targetChain:p,sourceToken:b,targetToken:v})},[n==null?void 0:n.historyRecordById]);return y.jsxs("div",{className:"container mx-auto",children:[y.jsxs("div",{className:"flex items-center justify-between gap-5",children:[y.jsxs("div",{className:"flex items-center gap-2 lg:gap-3",children:[e.source==="explorer"&&y.jsx(_Le,{className:"opacity-100 transition-[transform,opacity] hover:scale-105 hover:cursor-pointer hover:opacity-100 lg:opacity-50",onClick:()=>o(-1)}),y.jsx("h3",{className:"text-base font-bold text-white",children:"Transaction Details"})]}),y.jsx(A6,{onClick:r})]}),y.jsx("div",{className:"app-scrollbar mt-5 overflow-x-auto",children:y.jsxs("div",{className:"gap-medium rounded-large bg-secondary py-medium relative flex min-w-max flex-col px-7",children:[y.jsx(qs,{loading:t,className:"rounded-large backdrop-blur-[2px]"}),y.jsx(aa,{label:"Transfer Route",children:y.jsx(hLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(Nv,{}),y.jsx(aa,{label:"Status",tips:"The status of the cross-chain transaction: Success, Pending, or Refunded.",children:y.jsx(pLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(aa,{label:"Source Tx Hash",tips:"Unique character string (TxID) assigned to every verified transaction on the Source Chain.",children:y.jsx(TM,{chain:(i=n==null?void 0:n.historyRecordById)==null?void 0:i.fromChain,txHash:(s=n==null?void 0:n.historyRecordById)==null?void 0:s.requestTxHash})}),y.jsx(aa,{label:"Target Tx Hash",tips:"Unique character string (TxID) assigned to every verified transaction on the Target Chain.",children:y.jsx(TM,{chain:(c=n==null?void 0:n.historyRecordById)==null?void 0:c.toChain,txHash:(l=n==null?void 0:n.historyRecordById)==null?void 0:l.responseTxHash})}),y.jsx(aa,{label:"Timestamp",tips:"The date and time at which a transaction is mined. And the time period elapsed for the completion of the cross-chain.",children:y.jsx(gLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(Nv,{}),y.jsx(aa,{label:"Sender",tips:"Address (external or contract) sending the transaction.",children:(u=n==null?void 0:n.historyRecordById)!=null&&u.sender?y.jsx(Ca,{address:n.historyRecordById.sender,className:"text-primary text-sm font-medium",copyable:!0}):null}),y.jsx(aa,{label:"Receiver",tips:"Address (external or contract) receiving the transaction.",children:(d=n==null?void 0:n.historyRecordById)!=null&&d.recipient?y.jsx(Ca,{address:n.historyRecordById.recipient,className:"text-primary text-sm font-medium",copyable:!0}):null}),y.jsx(aa,{label:"Token Transfer",tips:"List of tokens transferred in this cross-chain transaction.",children:y.jsx(yLe,{record:n==null?void 0:n.historyRecordById,bridge:a})}),y.jsx(aa,{label:"Token To Receive",children:y.jsx(bLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(Nv,{}),y.jsx(aa,{label:"Value",tips:"The amount to be transferred to the recipient with the cross-chain transaction.",children:y.jsx(vLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(aa,{label:"Transaction Fee",tips:"Amount paid for processing the cross-chain transaction.",children:y.jsx(wLe,{record:n==null?void 0:n.historyRecordById})}),y.jsx(Nv,{}),y.jsx(aa,{label:"Nonce",tips:"A unique number of cross-chain transaction in Bridge.",children:(f=n==null?void 0:n.historyRecordById)!=null&&f.nonce?y.jsx("span",{className:"text-sm font-medium text-white",children:n.historyRecordById.nonce}):null})]})})]})}function aa({label:e,tips:t,children:n}){return y.jsxs("div",{className:"gap-small lg:gap-medium flex flex-col items-start lg:h-11 lg:flex-row lg:items-center",children:[y.jsx(ELe,{text:e,tips:t}),y.jsx("div",{className:"pl-5 lg:pl-0",children:n})]})}function Nv(){return y.jsx("div",{className:"h-[1px] w-full bg-white/10"})}function CLe(){var n;const e=jae(),t=fd();return y.jsx(BP,{children:y.jsx(xLe,{id:e.id??"",source:(n=t.state)==null?void 0:n.source})})}const SLe=Xae([{element:y.jsx(ZFe,{}),children:[{path:"/",element:y.jsx(_Me,{})},{path:"/relayer",element:y.jsx(nLe,{})},{path:"/explorer",element:y.jsx(dLe,{})},{path:"/tx/:id",element:y.jsx(CLe,{})},{path:"*",element:y.jsx(rLe,{})}],errorElement:y.jsx(oLe,{})}]);function TLe(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:a,onRegisterError:i}=e;let s,c,l;const u=async(f=!0)=>{await c,await(l==null?void 0:l())};async function d(){if("serviceWorker"in navigator){if(s=await me(async()=>{const{Workbox:f}=await import("./workbox-window.prod.es5-rX37VysU.js");return{Workbox:f}},[],import.meta.url).then(({Workbox:f})=>new f("./sw.js",{scope:"./",type:"classic"})).catch(f=>{i==null||i(f)}),!s)return;l=async()=>{await(s==null?void 0:s.messageSkipWaiting())};{let f=!1;const h=()=>{f=!0,s==null||s.addEventListener("controlling",m=>{m.isUpdate&&window.location.reload()}),n==null||n()};s.addEventListener("installed",m=>{typeof m.isUpdate>"u"?typeof m.isExternal<"u"?m.isExternal?h():!f&&(r==null||r()):m.isExternal?window.location.reload():!f&&(r==null||r()):m.isUpdate||r==null||r()}),s.addEventListener("waiting",h),s.addEventListener("externalwaiting",h)}s.register({immediate:t}).then(f=>{a?a("./sw.js",f):o==null||o(f)}).catch(f=>{i==null||i(f)})}}return c=d(),u}function ALe(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:a,onRegisterError:i}=e,[s,c]=S.useState(!1),[l,u]=S.useState(!1),[d]=S.useState(()=>TLe({immediate:t,onOfflineReady(){u(!0),r==null||r()},onNeedRefresh(){c(!0),n==null||n()},onRegistered:o,onRegisteredSW:a,onRegisterError:i}));return{needRefresh:[s,c],offlineReady:[l,u],updateServiceWorker:d}}const DLe=window.matchMedia("(display-mode: standalone)").matches,kLe=!1;function jLe(){const{needRefresh:[e,t],updateServiceWorker:n}=ALe({onRegisteredSW(o,a){}});function r(){t(!1)}return y.jsx("div",{role:"alert","aria-labelledby":"toast-message",children:e&&DLe&&kLe&&y.jsxs("div",{className:"bg-background fixed bottom-0 right-0 z-10 m-4 flex flex-col gap-y-3 rounded-xl border border-white/20 p-3 text-left",children:[y.jsx("span",{id:"toast-message",className:"text-sm font-bold text-white",children:"New content available, click on reload button to update."}),y.jsxs("div",{className:"flex items-center justify-end gap-x-3",children:[y.jsx(pn,{className:"rounded-lg px-3 py-[0.125rem] text-sm font-bold",onClick:()=>r(),children:"Close"}),y.jsx(pn,{className:"rounded-lg px-3 py-[0.125rem] text-sm font-bold",onClick:()=>n(!0),kind:"primary",children:"Reload"})]})]})})}const GZ=Object.prototype.toString;function FP(e){switch(GZ.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ps(e,Error)}}function qm(e,t){return GZ.call(e)===`[object ${t}]`}function VZ(e){return qm(e,"ErrorEvent")}function kM(e){return qm(e,"DOMError")}function PLe(e){return qm(e,"DOMException")}function gs(e){return qm(e,"String")}function MP(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function LP(e){return e===null||MP(e)||typeof e!="object"&&typeof e!="function"}function Mh(e){return qm(e,"Object")}function D6(e){return typeof Event<"u"&&Ps(e,Event)}function ILe(e){return typeof Element<"u"&&Ps(e,Element)}function OLe(e){return qm(e,"RegExp")}function k6(e){return!!(e&&e.then&&typeof e.then=="function")}function RLe(e){return Mh(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ps(e,t){try{return e instanceof t}catch{return!1}}function KZ(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function ih(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function jM(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rNLe(e,r,n))}function BLe(e,t,n=250,r,o,a,i){if(!a.exception||!a.exception.values||!i||!Ps(i.originalException,Error))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=FLe(VD(e,t,o,i.originalException,r,a.exception.values,s,0),n))}function VD(e,t,n,r,o,a,i,s){if(a.length>=n+1)return a;let c=[...a];if(Ps(r[o],Error)){PM(i,s);const l=e(t,r[o]),u=c.length;IM(l,o,u,s),c=VD(e,t,n,r[o],o,[l,...c],l,u)}return Array.isArray(r.errors)&&r.errors.forEach((l,u)=>{if(Ps(l,Error)){PM(i,s);const d=e(t,l),f=c.length;IM(d,`errors[${u}]`,f,s),c=VD(e,t,n,l,o,[d,...c],d,f)}}),c}function PM(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function IM(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function FLe(e,t){return e.map(n=>(n.value&&(n.value=ih(n.value,t)),n))}const ku="8.30.0",bt=globalThis;function j6(e,t,n){const r=bt,o=r.__SENTRY__=r.__SENTRY__||{},a=o[ku]=o[ku]||{};return a[e]||(a[e]=t())}const sh=bt,MLe=80;function Is(e,t={}){if(!e)return"";try{let n=e;const r=5,o=[];let a=0,i=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||MLe;for(;n&&a++1&&i+o.length*c+l.length>=d));)o.push(l),i+=l.length,n=n.parentNode;return o.reverse().join(s)}catch{return""}}function LLe(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(sh.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(o&&o.length)o.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&gs(i)){const s=i.split(/\s+/);for(const c of s)r.push(`.${c}`)}}const a=["aria-label","type","name","title","alt"];for(const i of a){const s=n.getAttribute(i);s&&r.push(`[${i}="${s}"]`)}return r.join("")}function YZ(){try{return sh.document.location.href}catch{return""}}function ULe(e){return sh.document&&sh.document.querySelector?sh.document.querySelector(e):null}function QZ(e){if(!sh.HTMLElement)return null;let t=e;const n=5;for(let r=0;r"u"||__SENTRY_DEBUG__,$Le="Sentry Logger ",KD=["debug","info","warn","error","log","assert","trace"],zE={};function Gm(e){if(!("console"in bt))return e();const t=bt.console,n={},r=Object.keys(zE);r.forEach(o=>{const a=zE[o];n[o]=t[o],t[o]=a});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function zLe(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Wm?KD.forEach(n=>{t[n]=(...r)=>{e&&Gm(()=>{bt.console[n](`${$Le}[${n}]:`,...r)})}}):KD.forEach(n=>{t[n]=()=>{}}),t}const ye=j6("logger",zLe),HLe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function qLe(e){return e==="http"||e==="https"}function _b(e,t=!1){const{host:n,path:r,pass:o,port:a,projectId:i,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&o?`:${o}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${i}`}function WLe(e){const t=HLe.exec(e);if(!t){Gm(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",a="",i="",s=""]=t.slice(1);let c="",l=s;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const d=l.match(/^\d+/);d&&(l=d[0])}return XZ({host:a,pass:o,path:c,projectId:l,port:i,protocol:n,publicKey:r})}function XZ(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function GLe(e){if(!Wm)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(ye.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?qLe(r)?t&&isNaN(parseInt(t,10))?(ye.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ye.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(ye.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function VLe(e){const t=typeof e=="string"?WLe(e):XZ(e);if(!(!t||!GLe(t)))return t}class Ti extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function po(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&JZ(o,r),e[t]=o}function Sa(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Wm&&ye.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function JZ(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Sa(e,"__sentry_original__",t)}catch{}}function UP(e){return e.__sentry_original__}function KLe(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function ZZ(e){if(FP(e))return{message:e.message,name:e.name,stack:e.stack,...RM(e)};if(D6(e)){const t={type:e.type,target:OM(e.target),currentTarget:OM(e.currentTarget),...RM(e)};return typeof CustomEvent<"u"&&Ps(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function OM(e){try{return ILe(e)?Is(e):Object.prototype.toString.call(e)}catch{return""}}function RM(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function YLe(e,t=40){const n=Object.keys(ZZ(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return ih(r,t);for(let o=n.length;o>0;o--){const a=n.slice(0,o).join(", ");if(!(a.length>t))return o===n.length?a:ih(a,t)}return""}function zn(e){return YD(e,new Map)}function YD(e,t){if(QLe(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.keys(e))typeof e[o]<"u"&&(r[o]=YD(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(YD(o,t))}),r}return e}function QLe(e){if(!Mh(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const eee=50,ad="?",NM=/\(error: (.*)\)/,BM=/captureMessage|captureException/;function tee(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const a=[],i=n.split(` -`);for(let s=r;s1024)continue;const l=NM.test(c)?c.replace(NM,"$1"):c;if(!l.match(/\S*Error: /)){for(const u of t){const d=u(l);if(d){a.push(d);break}}if(a.length>=eee+o)break}}return JLe(a.slice(o))}}function XLe(e){return Array.isArray(e)?tee(...e):e}function JLe(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Bv(t).function||"")&&t.pop(),t.reverse(),BM.test(Bv(t).function||"")&&(t.pop(),BM.test(Bv(t).function||"")&&t.pop()),t.slice(0,eee).map(n=>({...n,filename:n.filename||Bv(t).filename,function:n.function||ad}))}function Bv(e){return e[e.length-1]||{}}const CT="";function Os(e){try{return!e||typeof e!="function"?CT:e.name||CT}catch{return CT}}function FM(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const R1={},MM={};function Ul(e,t){R1[e]=R1[e]||[],R1[e].push(t)}function $l(e,t){MM[e]||(t(),MM[e]=!0)}function ba(e,t){const n=e&&R1[e];if(n)for(const r of n)try{r(t)}catch(o){Wm&&ye.error(`Error while triggering instrumentation handler. -Type: ${e} -Name: ${Os(r)} -Error:`,o)}}function ZLe(e){const t="console";Ul(t,e),$l(t,eUe)}function eUe(){"console"in bt&&KD.forEach(function(e){e in bt.console&&po(bt.console,e,function(t){return zE[e]=t,function(...n){ba("console",{args:n,level:e});const o=zE[e];o&&o.apply(bt.console,n)}})})}const QD=bt;function nee(){if(!("fetch"in QD))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function XD(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function tUe(){if(typeof EdgeRuntime=="string")return!0;if(!nee())return!1;if(XD(QD.fetch))return!0;let e=!1;const t=QD.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=XD(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Wm&&ye.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const ree=1e3;function xb(){return Date.now()/ree}function nUe(){const{performance:e}=bt;if(!e||!e.now)return xb;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/ree}const to=nUe(),ao=(()=>{const{performance:e}=bt;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=oaee(void 0,t))}function rUe(e){const t="fetch-body-resolved";Ul(t,e),$l(t,()=>aee(aUe))}function aee(e,t=!1){t&&!tUe()||po(bt,"fetch",function(n){return function(...r){const{method:o,url:a}=iUe(r),i={args:r,fetchData:{method:o,url:a},startTimestamp:to()*1e3};e||ba("fetch",{...i});const s=new Error().stack;return n.apply(bt,r).then(async c=>(e?e(c):ba("fetch",{...i,endTimestamp:to()*1e3,response:c}),c),c=>{throw ba("fetch",{...i,endTimestamp:to()*1e3,error:c}),FP(c)&&c.stack===void 0&&(c.stack=s,Sa(c,"framesToPop",1)),c})}})}async function oUe(e,t){if(e&&e.body&&e.body.getReader){const n=e.body.getReader();async function r({done:o}){if(o)return Promise.resolve();try{const a=await Promise.race([n.read(),new Promise(i=>{setTimeout(()=>{i({done:!0})},5e3)})]);await r(a)}catch{}}return n.read().then(r).then(t).catch(()=>{})}}async function aUe(e){let t;try{t=e.clone()}catch{return}await oUe(t,()=>{ba("fetch-body-resolved",{endTimestamp:to()*1e3,response:e})})}function JD(e,t){return!!e&&typeof e=="object"&&!!e[t]}function LM(e){return typeof e=="string"?e:e?JD(e,"url")?e.url:e.toString?e.toString():"":""}function iUe(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:LM(n),method:JD(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:LM(t),method:JD(t,"method")?String(t.method).toUpperCase():"GET"}}let Fv=null;function iee(e){const t="error";Ul(t,e),$l(t,sUe)}function sUe(){Fv=bt.onerror,bt.onerror=function(e,t,n,r,o){return ba("error",{column:r,error:o,line:n,msg:e,url:t}),Fv&&!Fv.__SENTRY_LOADER__?Fv.apply(this,arguments):!1},bt.onerror.__SENTRY_INSTRUMENTED__=!0}let Mv=null;function see(e){const t="unhandledrejection";Ul(t,e),$l(t,cUe)}function cUe(){Mv=bt.onunhandledrejection,bt.onunhandledrejection=function(e){return ba("unhandledrejection",e),Mv&&!Mv.__SENTRY_LOADER__?Mv.apply(this,arguments):!0},bt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function lUe(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function uUe(){return"npm"}function dUe(){return!lUe()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function UM(){return typeof window<"u"&&(!dUe()||fUe())}function fUe(){return bt.process!==void 0&&bt.process.type==="renderer"}function hUe(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let a=0;aMath.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function cee(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Cc(e){const{message:t,event_id:n}=e;if(t)return t;const r=cee(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function ZD(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],a=o[0]=o[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Cg(e,t){const n=cee(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const a={...o&&o.data,...t.data};n.mechanism.data=a}}function $M(e){if(e&&e.__sentry_captured__)return!0;try{Sa(e,"__sentry_captured__",!0)}catch{}return!1}function lee(e){return Array.isArray(e)?e:[e]}function _i(e,t=100,n=1/0){try{return e8("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function uee(e,t=3,n=100*1024){const r=_i(e,t);return yUe(r)>n?uee(e,t-1,n):r}function e8(e,t,n=1/0,r=1/0,o=hUe()){const[a,i]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;const s=mUe(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace("object ","");if(a(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return e8("",h,c-1,r,o)}catch{}const u=Array.isArray(t)?[]:{};let d=0;const f=ZZ(t);for(const h in f){if(!Object.prototype.hasOwnProperty.call(f,h))continue;if(d>=r){u[h]="[MaxProperties ~]";break}const m=f[h];u[h]=e8(h,m,c-1,r,o),d++}return i(t),u}function mUe(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(KZ(t))return"[VueViewModel]";if(RLe(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Os(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=pUe(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function pUe(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function gUe(e){return~-encodeURI(e).split(/%..|./).length}function yUe(e){return gUe(JSON.stringify(e))}var ts;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(ts||(ts={}));function Rs(e){return new fa(t=>{t(e)})}function HE(e){return new fa((t,n)=>{n(e)})}class fa{constructor(t){fa.prototype.__init.call(this),fa.prototype.__init2.call(this),fa.prototype.__init3.call(this),fa.prototype.__init4.call(this),this._state=ts.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new fa((r,o)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(i){o(i)}},a=>{if(!n)o(a);else try{r(n(a))}catch(i){o(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new fa((n,r)=>{let o,a;return this.then(i=>{a=!1,o=i,t&&t()},i=>{a=!0,o=i,t&&t()}).then(()=>{if(a){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(ts.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(ts.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===ts.PENDING){if(k6(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===ts.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===ts.RESOLVED&&n[1](this._value),this._state===ts.REJECTED&&n[2](this._value),n[0]=!0)})}}}function bUe(e){const t=[];function n(){return e===void 0||t.lengthr(s)).then(null,()=>r(s).then(null,()=>{})),s}function a(i){return new fa((s,c)=>{let l=t.length;if(!l)return s(!0);const u=setTimeout(()=>{i&&i>0&&s(!1)},i);t.forEach(d=>{Rs(d).then(()=>{--l||(clearTimeout(u),s(!0))},c)})})}return{$:t,add:o,drain:a}}function ju(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const vUe=["fatal","error","warning","log","info","debug"];function wUe(e){return e==="warn"?"warning":vUe.includes(e)?e:"log"}const t8="baggage",dee="sentry-",EUe=/^sentry-/,_Ue=8192;function fee(e){const t=xUe(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,a])=>{if(o.match(EUe)){const i=o.slice(dee.length);r[i]=a}return r},{});if(Object.keys(n).length>0)return n}function hee(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${dee}${r}`]=o),n),{});return CUe(t)}function xUe(e){if(!(!e||!gs(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=zM(n);return Object.entries(r).forEach(([o,a])=>{t[o]=a}),t},{}):zM(e)}function zM(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function CUe(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=o===0?a:`${t},${a}`;return i.length>_Ue?(Wm&&ye.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}const SUe=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function TUe(e){if(!e)return;const t=e.match(SUe);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function AUe(e,t){const n=TUe(e),r=fee(t),{traceId:o,parentSpanId:a,parentSampled:i}=n||{};return n?{traceId:o||en(),parentSpanId:a||en().substring(16),spanId:en().substring(16),sampled:i,dsc:r||{}}:{traceId:o||en(),spanId:en().substring(16)}}function $P(e=en(),t=en().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Fd(e,t=[]){return[e,t]}function DUe(e,t){const[n,r]=e;return[n,[...r,t]]}function HM(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function n8(e){return bt.__SENTRY__&&bt.__SENTRY__.encodePolyfill?bt.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function kUe(e){const[t,n]=e;let r=JSON.stringify(t);function o(a){typeof r=="string"?r=typeof a=="string"?r+a:[n8(r),a]:r.push(typeof a=="string"?n8(a):a)}for(const a of n){const[i,s]=a;if(o(` -${JSON.stringify(i)} -`),typeof s=="string"||s instanceof Uint8Array)o(s);else{let c;try{c=JSON.stringify(s)}catch{c=JSON.stringify(_i(s))}o(c)}}return typeof r=="string"?r:jUe(r)}function jUe(e){const t=e.reduce((o,a)=>o+a.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function PUe(e){return[{type:"span"},e]}function IUe(e){const t=typeof e.data=="string"?n8(e.data):e.data;return[zn({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const OUe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function qM(e){return OUe[e]}function zP(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function mee(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:_b(r)},...o&&{trace:zn({...o})}}}function RUe(e,t,n){const r=[{type:"client_report"},{timestamp:xb(),discarded_events:e}];return Fd(t?{dsn:t}:{},[r])}const NUe=60*1e3;function BUe(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?NUe:r-t}function FUe(e,t){return e[t]||e.all||0}function pee(e,t,n=Date.now()){return FUe(e,t)>n}function gee(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},a=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(a)for(const s of a.trim().split(",")){const[c,l,,,u]=s.split(":",5),d=parseInt(c,10),f=(isNaN(d)?60:d)*1e3;if(!l)o.all=r+f;else for(const h of l.split(";"))h==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(o[h]=r+f):o[h]=r+f}else i?o.all=r+BUe(i,r):t===429&&(o.all=r+60*1e3);return o}function MUe(e,t){return e??t()}function Uo(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}function qE(){return{traceId:en(),spanId:en().substring(16)}}const Lv=bt;function LUe(){const e=Lv.chrome,t=e&&e.app&&e.app.runtime,n="history"in Lv&&!!Lv.history.pushState&&!!Lv.history.replaceState;return!t&&n}const nt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Vm(){return HP(bt),bt}function HP(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ku,t[ku]=t[ku]||{}}function UUe(e){const t=to(),n={sid:en(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>zUe(n)};return e&&Lh(n,e),n}function Lh(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||to(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:en()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function $Ue(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Lh(e,n)}function zUe(e){return zn({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const r8="_sentrySpan";function Sg(e,t){t?Sa(e,r8,t):delete e[r8]}function WE(e){return e[r8]}const HUe=100;class qP{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=qE()}clone(){const t=new qP;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Sg(t,WE(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Lh(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,o]=n instanceof id?[n.getScopeData(),n.getRequestSession()]:Mh(n)?[t,t.requestSession]:[],{tags:a,extra:i,user:s,contexts:c,level:l,fingerprint:u=[],propagationContext:d}=r||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},s&&Object.keys(s).length&&(this._user=s),l&&(this._level=l),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Sg(this,void 0),this._attachments=[],this._propagationContext=qE(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:HUe;if(r<=0)return this;const o={timestamp:xb(),...t},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:WE(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:en();if(!this._client)return ye.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r&&r.event_id?r.event_id:en();if(!this._client)return ye.warn("No client configured on scope - will not capture message!"),o;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:o},this),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:en();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(ye.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const id=qP;function qUe(){return j6("defaultCurrentScope",()=>new id)}function WUe(){return j6("defaultIsolationScope",()=>new id)}class GUe{constructor(t,n){let r;t?r=t:r=new id;let o;n?o=n:o=new id,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return k6(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Uh(){const e=Vm(),t=HP(e);return t.stack=t.stack||new GUe(qUe(),WUe())}function VUe(e){return Uh().withScope(e)}function KUe(e,t){const n=Uh();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function WM(e){return Uh().withScope(()=>e(Uh().getIsolationScope()))}function YUe(){return{withIsolationScope:WM,withScope:VUe,withSetScope:KUe,withSetIsolationScope:(e,t)=>WM(t),getCurrentScope:()=>Uh().getScope(),getIsolationScope:()=>Uh().getIsolationScope()}}function Cb(e){const t=HP(e);return t.acs?t.acs:YUe()}function Xt(){const e=Vm();return Cb(e).getCurrentScope()}function Pa(){const e=Vm();return Cb(e).getIsolationScope()}function QUe(){return j6("globalScope",()=>new id)}function WP(...e){const t=Vm(),n=Cb(t);if(e.length===2){const[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function gt(){return Xt().getClient()}const XUe="_sentryMetrics";function o8(e){const t=e[XUe];if(!t)return;const n={};for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(zn(o));return n}const is="sentry.source",yee="sentry.sample_rate",sd="sentry.op",rr="sentry.origin",a8="sentry.idle_span_finish_reason",P6="sentry.measurement_unit",I6="sentry.measurement_value",JUe="sentry.profile_id",GP="sentry.exclusive_time",ZUe=0,bee=1,Vn=2;function e$e(e){if(e<400&&e>=100)return{code:bee};if(e>=400&&e<500)switch(e){case 401:return{code:Vn,message:"unauthenticated"};case 403:return{code:Vn,message:"permission_denied"};case 404:return{code:Vn,message:"not_found"};case 409:return{code:Vn,message:"already_exists"};case 413:return{code:Vn,message:"failed_precondition"};case 429:return{code:Vn,message:"resource_exhausted"};case 499:return{code:Vn,message:"cancelled"};default:return{code:Vn,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Vn,message:"unimplemented"};case 503:return{code:Vn,message:"unavailable"};case 504:return{code:Vn,message:"deadline_exceeded"};default:return{code:Vn,message:"internal_error"}}return{code:Vn,message:"unknown_error"}}function vee(e,t){e.setAttribute("http.response.status_code",t);const n=e$e(t);n.message!=="unknown_error"&&e.setStatus(n)}const wee=0,Eee=1;function t$e(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:a,status:i,origin:s}=_t(e);return zn({parent_span_id:a,span_id:t,trace_id:n,data:r,op:o,status:i,origin:s})}function n$e(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=_t(e);return zn({parent_span_id:r,span_id:t,trace_id:n})}function _ee(e){const{traceId:t,spanId:n}=e.spanContext(),r=Md(e);return $P(t,n,r)}function Pu(e){return typeof e=="number"?GM(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?GM(e.getTime()):to()}function GM(e){return e>9999999999?e/1e3:e}function _t(e){if(o$e(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(r$e(e)){const{attributes:r,startTime:o,name:a,endTime:i,parentSpanId:s,status:c}=e;return zn({span_id:t,trace_id:n,data:r,description:a,parent_span_id:s,start_timestamp:Pu(o),timestamp:Pu(i)||void 0,status:xee(c),op:r[sd],origin:r[rr],_metrics_summary:o8(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function r$e(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function o$e(e){return typeof e.getSpanJSON=="function"}function Md(e){const{traceFlags:t}=e.spanContext();return t===Eee}function xee(e){if(!(!e||e.code===ZUe))return e.code===bee?"ok":e.message||"unknown_error"}const Iu="_sentryChildSpans",i8="_sentryRootSpan";function Cee(e,t){const n=e[i8]||e;Sa(t,i8,n),e[Iu]?e[Iu].add(t):Sa(e,Iu,new Set([t]))}function a$e(e,t){e[Iu]&&e[Iu].delete(t)}function N1(e){const t=new Set;function n(r){if(!t.has(r)&&Md(r)){t.add(r);const o=r[Iu]?Array.from(r[Iu]):[];for(const a of o)n(a)}}return n(e),Array.from(t)}function gr(e){return e[i8]||e}function Ur(){const e=Vm(),t=Cb(e);return t.getActiveSpan?t.getActiveSpan():WE(Xt())}let VM=!1;function i$e(){VM||(VM=!0,iee(s8),see(s8))}function s8(){const e=Ur(),t=e&&gr(e);if(t){const n="internal_error";nt&&ye.log(`[Tracing] Root span: ${n} -> Global error occured`),t.setStatus({code:Vn,message:n})}}s8.tag="sentry_tracingErrorCallback";const See="_sentryScope",Tee="_sentryIsolationScope";function s$e(e,t,n){e&&(Sa(e,Tee,n),Sa(e,See,t))}function KM(e){return{scope:e[See],isolationScope:e[Tee]}}function yl(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=gt(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class Km{constructor(t={}){this._traceId=t.traceId||en(),this._spanId=t.spanId||en().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:wee}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}const VP="production",Aee="_frozenDsc";function YM(e,t){Sa(e,Aee,t)}function O6(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=zn({environment:n.environment||VP,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Ld(e){const t=gt();if(!t)return{};const n=O6(_t(e).trace_id||"",t),r=gr(e),o=r[Aee];if(o)return o;const a=r.spanContext().traceState,i=a&&a.get("sentry.dsc"),s=i&&fee(i);if(s)return s;const c=_t(r),l=c.data||{},u=l[yee];u!=null&&(n.sample_rate=`${u}`);const d=l[is],f=c.description;return d!=="url"&&f&&(n.transaction=f),n.sampled=String(Md(r)),t.emit("createDsc",n,r),n}function c$e(e){if(!nt)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=_t(e),{spanId:o}=e.spanContext(),a=Md(e),i=gr(e),s=i===e,c=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&l.push(`parent ID: ${r}`),!s){const{op:u,description:d}=_t(i);l.push(`root ID: ${i.spanContext().spanId}`),u&&l.push(`root op: ${u}`),d&&l.push(`root description: ${d}`)}ye.log(`${c} - ${l.join(` - `)}`)}function l$e(e){if(!nt)return;const{description:t="< unknown name >",op:n="< unknown op >"}=_t(e),{spanId:r}=e.spanContext(),a=gr(e)===e,i=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${t}" with ID ${r}`;ye.log(i)}function GE(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){nt&&ye.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function u$e(e,t){if(!yl(e))return[!1];let n;typeof e.tracesSampler=="function"?n=e.tracesSampler(t):t.parentSampled!==void 0?n=t.parentSampled:typeof e.tracesSampleRate<"u"?n=e.tracesSampleRate:n=1;const r=GE(n);return r===void 0?(nt&&ye.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()s(_t(u)):u=>_t(u),l=[];for(const u of e){const d=c(u);d&&l.push(PUe(d))}return Fd(i,l)}function p$e(e,t,n,r=Ur()){const o=r&&gr(r);o&&o.addEvent(e,{[I6]:t,[P6]:n})}function QM(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},o=r[P6],a=r[I6];typeof o=="string"&&typeof a=="number"&&(t[n.name]={value:a,unit:o})}),t}const XM=1e3;class KP{constructor(t={}){this._traceId=t.traceId||en(),this._spanId=t.spanId||en().substring(16),this._startTime=t.startTimestamp||to(),this._attributes={},this.setAttributes({[rr]:"manual",[sd]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Eee:wee}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Pu(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this}end(t){this._endTime||(this._endTime=Pu(t),l$e(this),this._onSpanEnded())}getSpanJSON(){return zn({data:this._attributes,description:this._name,op:this._attributes[sd],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:xee(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[rr],_metrics_summary:o8(this),profile_id:this._attributes[JUe],exclusive_time:this._attributes[GP],measurements:QM(this._events),is_segment:this._isStandaloneSpan&&gr(this)===this||void 0,segment_id:this._isStandaloneSpan?gr(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){nt&&ye.log("[Tracing] Adding an event to span:",t);const o=JM(n)?n:r||to(),a=JM(n)?{}:n||{},i={name:t,time:Pu(o),attributes:a};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=gt();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===gr(this)))return;if(this._isStandaloneSpan){this._sampled?y$e(m$e([this],t)):(nt&&ye.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(KM(this).scope||Xt()).captureEvent(r)}_convertSpanToTransaction(){if(!ZM(_t(this)))return;this._name||(nt&&ye.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:t,isolationScope:n}=KM(this),o=(t||Xt()).getClient()||gt();if(this._sampled!==!0){nt&&ye.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),o&&o.recordDroppedEvent("sample_rate","transaction");return}const i=N1(this).filter(d=>d!==this&&!g$e(d)).map(d=>_t(d)).filter(ZM),s=this._attributes[is],c={contexts:{trace:t$e(this)},spans:i.length>XM?i.sort((d,f)=>d.start_timestamp-f.start_timestamp).slice(0,XM):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...zn({dynamicSamplingContext:Ld(this)})},_metrics_summary:o8(this),...s&&{transaction_info:{source:s}}},l=QM(this._events);return l&&Object.keys(l).length&&(nt&&ye.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),c.measurements=l),c}}function JM(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function ZM(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function g$e(e){return e instanceof KP&&e.isStandaloneSpan()}function y$e(e){const t=gt();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}const r=t.getTransport();r&&r.send(e).then(null,o=>{nt&&ye.error("Error while sending span:",o)})}const Dee="__SENTRY_SUPPRESS_TRACING__";function zl(e){const t=jee();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=v$e(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?i=>WP(e.scope,i):o!==void 0?i=>kee(o,i):i=>i())(()=>{const i=Xt(),s=E$e(i);return e.onlyIfParent&&!s?new Km:b$e({parentSpan:s,spanArguments:n,forceTransaction:r,scope:i})})}function kee(e,t){const n=jee();return n.withActiveSpan?n.withActiveSpan(e,t):WP(r=>(Sg(r,e||void 0),t(r)))}function b$e({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!yl())return new Km;const o=Pa();let a;if(e&&!n)a=w$e(e,r,t),Cee(e,a);else if(e){const i=Ld(e),{traceId:s,spanId:c}=e.spanContext(),l=Md(e);a=eL({traceId:s,parentSpanId:c,...t},r,l),YM(a,i)}else{const{traceId:i,dsc:s,parentSpanId:c,sampled:l}={...o.getPropagationContext(),...r.getPropagationContext()};a=eL({traceId:i,parentSpanId:c,...t},r,l),s&&YM(a,s)}return c$e(a),s$e(a,r,o),a}function v$e(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Pu(e.startTime),delete r.startTime,r}return n}function jee(){const e=Vm();return Cb(e)}function eL(e,t,n){const r=gt(),o=r&&r.getOptions()||{},{name:a="",attributes:i}=e,[s,c]=t.getScopeData().sdkProcessingMetadata[Dee]?[!1]:u$e(o,{name:a,parentSampled:n,attributes:i,transactionContext:{name:a,parentSampled:n}}),l=new KP({...e,attributes:{[is]:"custom",...e.attributes},sampled:s});return c!==void 0&&l.setAttribute(yee,c),r&&r.emit("spanStart",l),l}function w$e(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[Dee]?!1:Md(e),i=a?new KP({...n,parentSpanId:r,traceId:o,sampled:a}):new Km({traceId:o});Cee(e,i);const s=gt();return s&&(s.emit("spanStart",i),n.endTimestamp&&s.emit("spanEnd",i)),i}function E$e(e){const t=WE(e);if(!t)return;const n=gt();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?gr(t):t}const B1={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},_$e="heartbeatFailed",x$e="idleTimeout",C$e="finalTimeout",S$e="externalFinish";function Pee(e,t={}){const n=new Map;let r=!1,o,a=S$e,i=!t.disableAutoFinish;const s=[],{idleTimeout:c=B1.idleTimeout,finalTimeout:l=B1.finalTimeout,childSpanTimeout:u=B1.childSpanTimeout,beforeSpanEnd:d}=t,f=gt();if(!f||!yl())return new Km;const h=Xt(),m=Ur(),p=T$e(e);p.end=new Proxy(p.end,{apply(x,E,T){d&&d(p);const[k,...D]=T,R=k||to(),F=Pu(R),B=N1(p).filter(N=>N!==p);if(!B.length)return C(F),Reflect.apply(x,E,[F,...D]);const j=B.map(N=>_t(N).timestamp).filter(N=>!!N),P=j.length?Math.max(...j):void 0,O=_t(p).start_timestamp,I=Math.min(O?O+l/1e3:1/0,Math.max(O||-1/0,Math.min(F,P||1/0)));return C(I),Reflect.apply(x,E,[I,...D])}});function b(){o&&(clearTimeout(o),o=void 0)}function v(x){b(),o=setTimeout(()=>{!r&&n.size===0&&i&&(a=x$e,p.end(x))},c)}function g(x){o=setTimeout(()=>{!r&&i&&(a=_$e,p.end(x))},u)}function w(x){b(),n.set(x,!0);const E=to();g(E+u/1e3)}function _(x){if(n.has(x)&&n.delete(x),n.size===0){const E=to();v(E+c/1e3)}}function C(x){r=!0,n.clear(),s.forEach(F=>F()),Sg(h,m);const E=_t(p),{start_timestamp:T}=E;if(!T)return;(E.data||{})[a8]||p.setAttribute(a8,a),ye.log(`[Tracing] Idle span "${E.op}" finished`);const D=N1(p).filter(F=>F!==p);let R=0;D.forEach(F=>{F.isRecording()&&(F.setStatus({code:Vn,message:"cancelled"}),F.end(x),nt&&ye.log("[Tracing] Cancelling span since span ended early",JSON.stringify(F,void 0,2)));const B=_t(F),{timestamp:j=0,start_timestamp:P=0}=B,O=P<=x,I=(l+c)/1e3,N=j-P<=I;if(nt){const M=JSON.stringify(F,void 0,2);O?N||ye.log("[Tracing] Discarding span since it finished after idle span final timeout",M):ye.log("[Tracing] Discarding span since it happened after idle span was finished",M)}(!N||!O)&&(a$e(p,F),R++)}),R>0&&p.setAttribute("sentry.idle_span_discarded_spans",R)}return s.push(f.on("spanStart",x=>{if(r||x===p||_t(x).timestamp)return;N1(p).includes(x)&&w(x.spanContext().spanId)})),s.push(f.on("spanEnd",x=>{r||_(x.spanContext().spanId)})),s.push(f.on("idleSpanEnableAutoFinish",x=>{x===p&&(i=!0,v(),n.size&&g())})),t.disableAutoFinish||v(),setTimeout(()=>{r||(p.setStatus({code:Vn,message:"deadline_exceeded"}),a=C$e,p.end())},l),p}function T$e(e){const t=zl(e);return Sg(Xt(),t),nt&&ye.log("[Tracing] Started span is an idle span"),t}function c8(e,t,n,r=0){return new fa((o,a)=>{const i=e[r];if(t===null||typeof i!="function")o(t);else{const s=i({...t},n);nt&&i.id&&s===null&&ye.log(`Event processor "${i.id}" dropped event`),k6(s)?s.then(c=>c8(e,c,n,r+1).then(o)).then(null,a):c8(e,s,n,r+1).then(o).then(null,a)}})}function A$e(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:a}=t;D$e(e,t),r&&P$e(e,r),I$e(e,n),k$e(e,o),j$e(e,a)}function tL(e,t){const{extra:n,tags:r,user:o,contexts:a,level:i,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:f,transactionName:h,span:m}=t;Hp(e,"extra",n),Hp(e,"tags",r),Hp(e,"user",o),Hp(e,"contexts",a),Hp(e,"sdkProcessingMetadata",s),i&&(e.level=i),h&&(e.transactionName=h),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function Hp(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function D$e(e,t){const{extra:n,tags:r,user:o,contexts:a,level:i,transactionName:s}=t,c=zn(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=zn(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=zn(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=zn(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),i&&(e.level=i),s&&e.type!=="transaction"&&(e.transaction=s)}function k$e(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function j$e(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function P$e(e,t){e.contexts={trace:n$e(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ld(t),...e.sdkProcessingMetadata};const n=gr(t),r=_t(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function I$e(e,t){e.fingerprint=e.fingerprint?lee(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Iee(e,t,n,r,o,a){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||en(),timestamp:t.timestamp||xb()},l=n.integrations||e.integrations.map(b=>b.name);O$e(c,e),B$e(c,l),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&R$e(c,e.stackParser);const u=M$e(r,n.captureContext);n.mechanism&&Cg(c,n.mechanism);const d=o?o.getEventProcessors():[],f=QUe().getScopeData();if(a){const b=a.getScopeData();tL(f,b)}if(u){const b=u.getScopeData();tL(f,b)}const h=[...n.attachments||[],...f.attachments];h.length&&(n.attachments=h),A$e(c,f);const m=[...d,...f.eventProcessors];return c8(m,c,n).then(b=>(b&&N$e(b),typeof i=="number"&&i>0?F$e(b,i,s):b))}function O$e(e,t){const{environment:n,release:r,dist:o,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:VP),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=ih(e.message,a));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=ih(i.value,a));const s=e.request;s&&s.url&&(s.url=ih(s.url,a))}const nL=new WeakMap;function R$e(e,t){const n=bt._sentryDebugIds;if(!n)return;let r;const o=nL.get(t);o?r=o:(r=new Map,nL.set(t,r));const a=Object.entries(n).reduce((i,[s,c])=>{let l;const u=r.get(s);u?l=u:(l=t(s),r.set(s,l));for(let d=l.length-1;d>=0;d--){const f=l[d];if(f.filename){i[f.filename]=c;break}}return i},{});try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=a[s.filename])})})}catch{}}function N$e(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function B$e(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function F$e(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:_i(o.data,t,n)}}))},...e.user&&{user:_i(e.user,t,n)},...e.contexts&&{contexts:_i(e.contexts,t,n)},...e.extra&&{extra:_i(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=_i(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:_i(o.data,t,n)}}))),r}function M$e(e,t){if(!t)return e;const n=e?e.clone():new id;return n.update(t),n}function YP(e,t){return Xt().captureException(e,void 0)}function Oee(e,t){return Xt().captureEvent(e,t)}function Ree(e,t){Pa().setContext(e,t)}function L$e(e){Pa().addEventProcessor(e)}function rL(e){const t=gt(),n=Pa(),r=Xt(),{release:o,environment:a=VP}=t&&t.getOptions()||{},{userAgent:i}=bt.navigator||{},s=UUe({release:o,environment:a,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&Lh(c,{status:"exited"}),Nee(),n.setSession(s),r.setSession(s),s}function Nee(){const e=Pa(),t=Xt(),n=t.getSession()||e.getSession();n&&$Ue(n),Bee(),e.setSession(),t.setSession()}function Bee(){const e=Pa(),t=Xt(),n=gt(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function oL(e=!1){if(e){Nee();return}Bee()}const U$e="7";function $$e(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function z$e(e){return`${$$e(e)}${e.projectId}/envelope/`}function H$e(e,t){return KLe({sentry_key:e.publicKey,sentry_version:U$e,...t&&{sentry_client:`${t.name}/${t.version}`}})}function q$e(e,t,n){return t||`${z$e(e)}?${H$e(e,n)}`}const aL=[];function W$e(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function G$e(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=lee(n(t)):r=t;const o=W$e(r),a=o.findIndex(i=>i.name==="Debug");if(a>-1){const[i]=o.splice(a,1);o.push(i)}return o}function V$e(e,t){const n={};return t.forEach(r=>{r&&Fee(e,r,n)}),n}function iL(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Fee(e,t,n){if(n[t.name]){nt&&ye.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,aL.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),aL.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,a)=>r(o,a,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((a,i)=>r(a,i,e),{id:t.name});e.addEventProcessor(o)}nt&&ye.log(`Integration installed: ${t.name}`)}const sL="Not capturing exception because it's already been captured.";class K$e{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=VLe(t.dsn):nt&&ye.warn("No DSN provided, client will not send events."),this._dsn){const n=q$e(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const o=en();if($M(t))return nt&&ye.log(sL),o;const a={event_id:o,...n};return this._process(this.eventFromException(t,a).then(i=>this._captureEvent(i,a,r))),a.event_id}captureMessage(t,n,r,o){const a={event_id:en(),...r},i=MP(t)?t:String(t),s=LP(t)?this.eventFromMessage(i,n,a):this.eventFromException(t,a);return this._process(s.then(c=>this._captureEvent(c,a,o))),a.event_id}captureEvent(t,n,r){const o=en();if(n&&n.originalException&&$M(n.originalException))return nt&&ye.log(sL),o;const a={event_id:o,...n},s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,a,s||r)),a.event_id}captureSession(t){typeof t.release!="string"?nt&&ye.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Lh(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):Rs(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Fee(this,t,this._integrations),n||iL(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=h$e(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=DUe(r,IUe(a));const o=this.sendEnvelope(r);o&&o.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=f$e(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=typeof r=="number"?r:1,a=`${t}:${n}`;nt&&ye.log(`Recording outcome: "${a}"${o>1?` (${o} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+o}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(nt&&ye.error("Error while sending event:",n),n)):(nt&&ye.error("Transport disabled"),Rs({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=V$e(this,t),iL(this,t)}_updateSessionFromEvent(t,n){let r=!1,o=!1;const a=n.exception&&n.exception.values;if(a){o=!0;for(const c of a){const l=c.mechanism;if(l&&l.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(Lh(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new fa(n=>{let r=0;const o=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=o,t&&r>=t&&(clearInterval(a),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o=Pa()){const a=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Iee(a,t,n,r,this,o).then(s=>{if(s===null)return s;const c={...o.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(s.contexts&&s.contexts.trace)&&c){const{traceId:u,spanId:d,parentSpanId:f,dsc:h}=c;s.contexts={trace:zn({trace_id:u,span_id:d,parent_span_id:f}),...s.contexts};const m=h||O6(u,this);s.sdkProcessingMetadata={dynamicSamplingContext:m,...s.sdkProcessingMetadata}}return s})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(nt){const a=o;a.logLevel==="log"?ye.log(a.message):ye.warn(a)}})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:a}=o,i=Lee(t),s=Mee(t),c=t.type||"error",l=`before send for type \`${c}\``,u=typeof a>"u"?void 0:GE(a);if(s&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",t),HE(new Ti(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=c==="replay_event"?"replay":c,h=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,h).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",d,t),new Ti("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return m;const b=Q$e(this,o,m,n);return Y$e(b,l)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",d,t),i){const g=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",g)}throw new Ti(`${l} returned \`null\`, will not send event.`,"log")}const p=r&&r.getSession();if(!i&&p&&this._updateSessionFromEvent(p,m),i){const v=m.sdkProcessingMetadata&&m.sdkProcessingMetadata.spanCountBeforeProcessing||0,g=m.spans?m.spans.length:0,w=v-g;w>0&&this.recordDroppedEvent("before_send","span",w)}const b=m.transaction_info;if(i&&b&&m.transaction!==t.transaction){const v="custom";m.transaction_info={...b,source:v}}return this.sendEvent(m,n),m}).then(null,m=>{throw m instanceof Ti?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),new Ti(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${m}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,a]=n.split(":");return{reason:o,category:a,quantity:r}})}_flushOutcomes(){nt&&ye.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){nt&&ye.log("No outcomes to send");return}if(!this._dsn){nt&&ye.log("No dsn provided, will not send outcomes");return}nt&&ye.log("Sending outcomes:",t);const n=RUe(t,this._options.tunnel&&_b(this._dsn));this.sendEnvelope(n)}}function Y$e(e,t){const n=`${t} must return \`null\` or a valid event.`;if(k6(e))return e.then(r=>{if(!Mh(r)&&r!==null)throw new Ti(n);return r},r=>{throw new Ti(`${t} rejected with ${r}`)});if(!Mh(e)&&e!==null)throw new Ti(n);return e}function Q$e(e,t,n,r){const{beforeSend:o,beforeSendTransaction:a,beforeSendSpan:i}=t;if(Mee(n)&&o)return o(n,r);if(Lee(n)){if(n.spans&&i){const s=[];for(const c of n.spans){const l=i(c);l?s.push(l):e.recordDroppedEvent("before_send","span")}n.spans=s}if(a){if(n.spans){const s=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:s}}return a(n,r)}}return n}function Mee(e){return e.type===void 0}function Lee(e){return e.type==="transaction"}function X$e(e,t){t.debug===!0&&(nt?ye.enable():Gm(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Xt().update(t.initialScope);const r=new e(t);return J$e(r),r.init(),r}function J$e(e){Xt().setClient(e)}const Z$e=64;function eze(e,t,n=bUe(e.bufferSize||Z$e)){let r={};const o=i=>n.drain(i);function a(i){const s=[];if(HM(i,(d,f)=>{const h=qM(f);if(pee(r,h)){const m=cL(d,f);e.recordDroppedEvent("ratelimit_backoff",h,m)}else s.push(d)}),s.length===0)return Rs({});const c=Fd(i[0],s),l=d=>{HM(c,(f,h)=>{const m=cL(f,h);e.recordDroppedEvent(d,qM(h),m)})},u=()=>t({body:kUe(c)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&nt&&ye.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=gee(r,d),d),d=>{throw l("network_error"),d});return n.add(u).then(d=>d,d=>{if(d instanceof Ti)return nt&&ye.error("Skipped sending event because buffer is full."),l("queue_overflow"),Rs({});throw d})}return{send:a,flush:o}}function cL(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function tze(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return rze(e,n)||nze(e,r)}function nze(e,t){return t?lL(e)===lL(t):!1}function rze(e,t){return t?e.includes(t.host):!1}function lL(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Uee(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:ku})),version:ku}),e._metadata=o}const oze=100;function bl(e,t){const n=gt(),r=Pa();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=oze}=n.getOptions();if(a<=0)return;const s={timestamp:xb(),...e},c=o?Gm(()=>o(s,t)):s;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,a))}let uL;const aze="FunctionToString",dL=new WeakMap,ize=()=>({name:aze,setupOnce(){uL=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=UP(this),n=dL.has(gt())&&t!==void 0?t:this;return uL.apply(n,e)}}catch{}},setup(e){dL.set(e,!0)}}),sze=ize,cze=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],lze="InboundFilters",uze=(e={})=>({name:lze,processEvent(t,n,r){const o=r.getOptions(),a=fze(e,o);return hze(t,a)?null:t}}),dze=uze;function fze(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:cze],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function hze(e,t){return t.ignoreInternal&&vze(e)?(nt&&ye.warn(`Event dropped due to being internal Sentry Error. -Event: ${Cc(e)}`),!0):mze(e,t.ignoreErrors)?(nt&&ye.warn(`Event dropped due to being matched by \`ignoreErrors\` option. -Event: ${Cc(e)}`),!0):Eze(e)?(nt&&ye.warn(`Event dropped due to not having an error message, error type or stacktrace. -Event: ${Cc(e)}`),!0):pze(e,t.ignoreTransactions)?(nt&&ye.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${Cc(e)}`),!0):gze(e,t.denyUrls)?(nt&&ye.warn(`Event dropped due to being matched by \`denyUrls\` option. -Event: ${Cc(e)}. -Url: ${VE(e)}`),!0):yze(e,t.allowUrls)?!1:(nt&&ye.warn(`Event dropped due to not being matched by \`allowUrls\` option. -Event: ${Cc(e)}. -Url: ${VE(e)}`),!0)}function mze(e,t){return e.type||!t||!t.length?!1:bze(e).some(n=>Qc(n,t))}function pze(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Qc(n,t):!1}function gze(e,t){if(!t||!t.length)return!1;const n=VE(e);return n?Qc(n,t):!1}function yze(e,t){if(!t||!t.length)return!0;const n=VE(e);return n?Qc(n,t):!0}function bze(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function vze(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function wze(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function VE(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?wze(t):null}catch{return nt&&ye.error(`Cannot extract url for event ${Cc(e)}`),null}}function Eze(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}const _ze="Dedupe",xze=()=>{let e;return{name:_ze,processEvent(t){if(t.type)return t;try{if(Sze(t,e))return nt&&ye.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Cze=xze;function Sze(e,t){return t?!!(Tze(e,t)||Aze(e,t)):!1}function Tze(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!zee(e,t)||!$ee(e,t))}function Aze(e,t){const n=fL(t),r=fL(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!zee(e,t)||!$ee(e,t))}function $ee(e,t){let n=FM(e),r=FM(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o0?m.join(","):void 0}}else return{"sentry-trace":u,baggage:d}}function jze(e){try{return new URL(e).href}catch{return}}function Pze(e,t){if(t.response){vee(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Vn,message:"internal_error"});e.end()}const et=bt;let l8=0;function Hee(){return l8>0}function Ize(){l8++,setTimeout(()=>{l8--})}function $h(e,t={},n){if(typeof e!="function")return e;try{const o=e.__sentry_wrapped__;if(o)return o;if(UP(e))return e}catch{return e}const r=function(){const o=Array.prototype.slice.call(arguments);try{const a=o.map(i=>$h(i,t));return e.apply(this,a)}catch(a){throw Ize(),WP(i=>{i.addEventProcessor(s=>(t.mechanism&&(ZD(s,void 0),Cg(s,t.mechanism)),s.extra={...s.extra,arguments:o},s)),YP(a)}),a}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}JZ(r,e),Sa(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const ii=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function QP(e,t){const n=XP(e,t),r={type:t&&t.name,value:Fze(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Oze(e,t,n,r){const o=gt(),a=o&&o.getOptions().normalizeDepth,i=zze(t),s={__serialized__:uee(t,a)};if(i)return{exception:{values:[QP(e,i)]},extra:s};const c={exception:{values:[{type:D6(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Uze(t,{isUnhandledRejection:r})}]},extra:s};if(n){const l=XP(e,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function ST(e,t){return{exception:{values:[QP(e,t)]}}}function XP(e,t){const n=t.stacktrace||t.stack||"",r=Nze(t),o=Bze(t);try{return e(n,r,o)}catch{}return[]}const Rze=/Minified React error #\d+;/i;function Nze(e){return e&&Rze.test(e.message)?1:0}function Bze(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Fze(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Mze(e,t,n,r){const o=n&&n.syntheticException||void 0,a=JP(e,t,o,r);return Cg(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),Rs(a)}function Lze(e,t,n="info",r,o){const a=r&&r.syntheticException||void 0,i=u8(e,t,a,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),Rs(i)}function JP(e,t,n,r,o){let a;if(VZ(t)&&t.error)return ST(e,t.error);if(kM(t)||PLe(t)){const i=t;if("stack"in t)a=ST(e,t);else{const s=i.name||(kM(i)?"DOMError":"DOMException"),c=i.message?`${s}: ${i.message}`:s;a=u8(e,c,n,r),ZD(a,c)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return FP(t)?ST(e,t):Mh(t)||D6(t)?(a=Oze(e,t,n,o),Cg(a,{synthetic:!0}),a):(a=u8(e,t,n,r),ZD(a,`${t}`),Cg(a,{synthetic:!0}),a)}function u8(e,t,n,r){const o={};if(r&&n){const a=XP(e,n);a.length&&(o.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(MP(t)){const{__sentry_template_string__:a,__sentry_template_values__:i}=t;return o.logentry={message:a,params:i},o}return o.message=t,o}function Uze(e,{isUnhandledRejection:t}){const n=YLe(e),r=t?"promise rejection":"exception";return VZ(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:D6(e)?`Event \`${$ze(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function $ze(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function zze(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function Hze(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:_b(r)}},a=qze(e);return Fd(o,[a])}function qze(e){return[{type:"user_report"},e]}class Wze extends K$e{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=et.SENTRY_SDK_SOURCE||uUe();Uee(n,"browser",["browser"],r),super(n),n.sendClientReports&&et.document&&et.document.addEventListener("visibilitychange",()=>{et.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Mze(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Lze(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){ii&&ye.warn("SDK not enabled, will not capture user feedback.");return}const n=Hze(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const Go=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Gze=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Ym=(e,t,n,r)=>{let o,a;return i=>{t.value>=0&&(i||r)&&(a=t.value-(o||0),(a||o===void 0)&&(o=t.value,t.delta=a,t.rating=Gze(t.value,n),e(t)))}},Ke=bt,Vze=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Sb=()=>Ke.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],R6=()=>{const e=Sb();return e&&e.activationStart||0},Qm=(e,t)=>{const n=Sb();let r="navigate";return n&&(Ke.document&&Ke.document.prerendering||R6()>0?r="prerender":Ke.document&&Ke.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Vze(),navigationType:r}},Ud=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Tb=e=>{const t=n=>{(n.type==="pagehide"||Ke.document&&Ke.document.visibilityState==="hidden")&&e(n)};Ke.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ZP=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};let Tg=-1;const Kze=()=>{Tg=Ke.document.visibilityState==="hidden"&&!Ke.document.prerendering?0:1/0},KE=e=>{Ke.document.visibilityState==="hidden"&&Tg>-1&&(Tg=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("visibilitychange",KE,!0),removeEventListener("prerenderingchange",KE,!0))},Yze=()=>{addEventListener("visibilitychange",KE,!0),addEventListener("prerenderingchange",KE,!0)},N6=()=>(Ke.document&&Tg<0&&(Kze(),Yze()),{get firstHiddenTime(){return Tg}}),Ab=e=>{Ke.document&&Ke.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Qze=[1800,3e3],Xze=(e,t={})=>{Ab(()=>{const n=N6(),r=Qm("FCP");let o;const i=Ud("paint",s=>{s.forEach(c=>{c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime{Xze(ZP(()=>{const n=Qm("CLS",0);let r,o=0,a=[];const i=c=>{c.forEach(l=>{if(!l.hadRecentInput){const u=a[0],d=a[a.length-1];o&&u&&d&&l.startTime-d.startTime<1e3&&l.startTime-u.startTime<5e3?(o+=l.value,a.push(l)):(o=l.value,a=[l])}}),o>n.value&&(n.value=o,n.entries=a,r())},s=Ud("layout-shift",i);s&&(r=Ym(e,n,Jze,t.reportAllChanges),Tb(()=>{i(s.takeRecords()),r(!0)}),setTimeout(r,0))}))},eHe=[100,300],tHe=(e,t={})=>{Ab(()=>{const n=N6(),r=Qm("FID");let o;const a=c=>{c.startTime{c.forEach(a)},s=Ud("first-input",i);o=Ym(e,r,eHe,t.reportAllChanges),s&&Tb(ZP(()=>{i(s.takeRecords()),s.disconnect()}))})};let qee=0,TT=1/0,Uv=0;const nHe=e=>{e.forEach(t=>{t.interactionId&&(TT=Math.min(TT,t.interactionId),Uv=Math.max(Uv,t.interactionId),qee=Uv?(Uv-TT)/7+1:0)})};let d8;const rHe=()=>d8?qee:performance.interactionCount||0,oHe=()=>{"interactionCount"in performance||d8||(d8=Ud("event",nHe,{type:"event",buffered:!0,durationThreshold:0}))},aHe=[200,500],iHe=0,Wee=()=>rHe()-iHe,hL=10,rs=[],AT={},mL=e=>{const t=rs[rs.length-1],n=AT[e.interactionId];if(n||rs.lengtht.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};AT[r.id]=r,rs.push(r)}rs.sort((r,o)=>o.latency-r.latency),rs.splice(hL).forEach(r=>{delete AT[r.id]})}},sHe=()=>{const e=Math.min(rs.length-1,Math.floor(Wee()/50));return rs[e]},cHe=(e,t={})=>{Ab(()=>{oHe();const n=Qm("INP");let r;const o=i=>{i.forEach(c=>{c.interactionId&&mL(c),c.entryType==="first-input"&&!rs.some(u=>u.entries.some(d=>c.duration===d.duration&&c.startTime===d.startTime))&&mL(c)});const s=sHe();s&&s.latency!==n.value&&(n.value=s.latency,n.entries=s.entries,r())},a=Ud("event",o,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:40});r=Ym(e,n,aHe,t.reportAllChanges),a&&("PerformanceEventTiming"in Ke&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),Tb(()=>{o(a.takeRecords()),n.value<0&&Wee()>0&&(n.value=0,n.entries=[]),r(!0)}))})},lHe=[2500,4e3],pL={},uHe=(e,t={})=>{Ab(()=>{const n=N6(),r=Qm("LCP");let o;const a=s=>{const c=s[s.length-1];c&&c.startTime{pL[r.id]||(a(i.takeRecords()),i.disconnect(),pL[r.id]=!0,o(!0))});["keydown","click"].forEach(c=>{Ke.document&&addEventListener(c,()=>setTimeout(s,0),!0)}),Tb(s)}})},dHe=[800,1800],f8=e=>{Ke.document&&Ke.document.prerendering?Ab(()=>f8(e)):Ke.document&&Ke.document.readyState!=="complete"?addEventListener("load",()=>f8(e),!0):setTimeout(e,0)},fHe=(e,t={})=>{const n=Qm("TTFB"),r=Ym(e,n,dHe,t.reportAllChanges);f8(()=>{const o=Sb();if(o){const a=o.responseStart;if(a<=0||a>performance.now())return;n.value=Math.max(a-R6(),0),n.entries=[o],r(!0)}})},S0={},YE={};let Gee,Vee,Kee,Yee,Qee;function e7(e,t=!1){return Db("cls",e,mHe,Gee,t)}function Xee(e,t=!1){return Db("lcp",e,gHe,Kee,t)}function Jee(e){return Db("fid",e,pHe,Vee)}function hHe(e){return Db("ttfb",e,yHe,Yee)}function Zee(e){return Db("inp",e,bHe,Qee)}function zh(e,t){return ete(e,t),YE[e]||(vHe(e),YE[e]=!0),tte(e,t)}function Xm(e,t){const n=S0[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(o){Go&&ye.error(`Error while triggering instrumentation handler. -Type: ${e} -Name: ${Os(r)} -Error:`,o)}}function mHe(){return Zze(e=>{Xm("cls",{metric:e}),Gee=e},{reportAllChanges:!0})}function pHe(){return tHe(e=>{Xm("fid",{metric:e}),Vee=e})}function gHe(){return uHe(e=>{Xm("lcp",{metric:e}),Kee=e},{reportAllChanges:!0})}function yHe(){return fHe(e=>{Xm("ttfb",{metric:e}),Yee=e})}function bHe(){return cHe(e=>{Xm("inp",{metric:e}),Qee=e})}function Db(e,t,n,r,o=!1){ete(e,t);let a;return YE[e]||(a=n(),YE[e]=!0),r&&t({metric:r}),tte(e,t,o?a:void 0)}function vHe(e){const t={};e==="event"&&(t.durationThreshold=0),Ud(e,n=>{Xm(e,{entries:n})},t)}function ete(e,t){S0[e]=S0[e]||[],S0[e].push(t)}function tte(e,t,n){return()=>{n&&n();const r=S0[e];if(!r)return;const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function wHe(e){return"duration"in e}function DT(e){return typeof e=="number"&&isFinite(e)}function Hh(e,t,n,{...r}){const o=_t(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),kee(e,()=>{const a=zl({startTime:t,...r});return a&&a.end(n),a})}function nte(e){const t=gt();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:a}=e,{release:i,environment:s}=t.getOptions(),c=t.getIntegrationByName("Replay"),l=c&&c.getReplayId(),u=Xt(),d=u.getUser(),f=d!==void 0?d.email||d.id||d.ip_address:void 0;let h;try{h=u.getScopeData().contexts.profile.profile_id}catch{}const m={release:i,environment:s,user:f||void 0,profile_id:h||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":Ke.navigator&&Ke.navigator.userAgent,...o};return zl({name:n,attributes:m,startTime:a,experimental:{standalone:!0}})}function t7(){return Ke&&Ke.addEventListener&&Ke.performance}function Cn(e){return e/1e3}function EHe(){let e=0,t,n;if(!xHe())return;let r=!1;function o(){r||(r=!0,n&&_He(e,t,n),a())}const a=e7(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(e=i.value,t=s)},!0);Tb(()=>{o()}),setTimeout(()=>{const i=gt(),s=Uo([i,"optionalAccess",d=>d.on,"call",d=>d("startNavigationSpan",()=>{o(),s&&s()})]),c=Ur(),l=c&&gr(c),u=l&&_t(l);u&&u.op==="pageload"&&(n=l.spanContext().spanId)},0)}function _He(e,t,n){Go&&ye.log(`Sending CLS span (${e})`);const r=Cn((ao||0)+(Uo([t,"optionalAccess",c=>c.startTime])||0)),o=Xt().getScopeData().transactionName,a=t?Is(Uo([t,"access",c=>c.sources,"access",c=>c[0],"optionalAccess",c=>c.node])):"Layout shift",i=zn({[rr]:"auto.http.browser.cls",[sd]:"ui.webvital.cls",[GP]:Uo([t,"optionalAccess",c=>c.duration])||0,"sentry.pageload.span_id":n}),s=nte({name:a,transaction:o,attributes:i,startTime:r});Uo([s,"optionalAccess",c=>c.addEvent,"call",c=>c("cls",{[P6]:"",[I6]:e})]),Uo([s,"optionalAccess",c=>c.end,"call",c=>c(r)])}function xHe(){try{return Uo([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch{return!1}}const CHe=2147483647;let gL=0,cr={},Ei,T0;function SHe({recordClsStandaloneSpans:e}){const t=t7();if(t&&ao){t.mark&&Ke.performance.mark("sentry-tracing-init");const n=PHe(),r=jHe(),o=IHe(),a=e?EHe():kHe();return()=>{n(),r(),o(),a&&a()}}return()=>{}}function THe(){zh("longtask",({entries:e})=>{if(Ur())for(const t of e){const n=Cn(ao+t.startTime),r=Cn(t.duration),o=zl({name:"Main UI thread blocked",op:"ui.long-task",startTime:n,attributes:{[rr]:"auto.ui.browser.metrics"}});o&&o.end(n+r)}})}function AHe(){new PerformanceObserver(t=>{if(Ur())for(const n of t.getEntries()){if(!n.scripts[0])continue;const r=Cn(ao+n.startTime),o=Cn(n.duration),a={[rr]:"auto.ui.browser.metrics"},i=n.scripts[0],{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=i;a["browser.script.invoker"]=s,a["browser.script.invoker_type"]=c,l&&(a["code.filepath"]=l),u&&(a["code.function"]=u),d!==-1&&(a["browser.script.source_char_position"]=d);const f=zl({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:r,attributes:a});f&&f.end(r+o)}}).observe({type:"long-animation-frame",buffered:!0})}function DHe(){zh("event",({entries:e})=>{if(Ur()){for(const t of e)if(t.name==="click"){const n=Cn(ao+t.startTime),r=Cn(t.duration),o={name:Is(t.target),op:`ui.interaction.${t.name}`,startTime:n,attributes:{[rr]:"auto.ui.browser.metrics"}},a=QZ(t.target);a&&(o.attributes["ui.component_name"]=a);const i=zl(o);i&&i.end(n+r)}}})}function kHe(){return e7(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Go&&ye.log(`[Measurements] Adding CLS ${e.value}`),cr.cls={value:e.value,unit:""},T0=t)},!0)}function jHe(){return Xee(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Go&&ye.log("[Measurements] Adding LCP"),cr.lcp={value:e.value,unit:"millisecond"},Ei=t)},!0)}function PHe(){return Jee(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Cn(ao),r=Cn(t.startTime);Go&&ye.log("[Measurements] Adding FID"),cr.fid={value:e.value,unit:"millisecond"},cr["mark.fid"]={value:n+r,unit:"second"}})}function IHe(){return hHe(({metric:e})=>{e.entries[e.entries.length-1]&&(Go&&ye.log("[Measurements] Adding TTFB"),cr.ttfb={value:e.value,unit:"millisecond"})})}function OHe(e,t){const n=t7();if(!n||!Ke.performance.getEntries||!ao)return;Go&&ye.log("[Tracing] Adding & adjusting spans using Performance API");const r=Cn(ao),o=n.getEntries(),{op:a,start_timestamp:i}=_t(e);if(o.slice(gL).forEach(s=>{const c=Cn(s.startTime),l=Cn(Math.max(0,s.duration));if(!(a==="navigation"&&i&&r+c{p$e(c,l.value,l.unit)}),e.setAttribute("performance.timeOrigin",r),LHe(e)}Ei=void 0,T0=void 0,cr={}}function RHe(e,t,n,r,o){const a=Sb(),i=Cn(a?a.requestStart:0),s=o+Math.max(n,i),c=o+n,l=c+r,u={[rr]:"auto.resource.browser.metrics"};return s!==c&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=s),Hh(e,s,l,{name:t.name,op:t.entryType,attributes:u}),s}function NHe(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{$v(e,t,r,n)}),$v(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),$v(e,t,"fetch",n,"cache","domainLookupStart"),$v(e,t,"domainLookup",n,"DNS"),BHe(e,t,n)}function $v(e,t,n,r,o,a){const i=a?t[a]:t[`${n}End`],s=t[`${n}Start`];!s||!i||Hh(e,r+Cn(s),r+Cn(i),{op:"browser",name:o||n,attributes:{[rr]:"auto.ui.browser.metrics"}})}function BHe(e,t,n){const r=n+Cn(t.requestStart),o=n+Cn(t.responseEnd),a=n+Cn(t.responseStart);t.responseEnd&&(Hh(e,r,o,{op:"browser",name:"request",attributes:{[rr]:"auto.ui.browser.metrics"}}),Hh(e,a,o,{op:"browser",name:"response",attributes:{[rr]:"auto.ui.browser.metrics"}}))}function FHe(e,t,n,r,o,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const i=ju(n),s={[rr]:"auto.resource.browser.metrics"};kT(s,t,"transferSize","http.response_transfer_size"),kT(s,t,"encodedBodySize","http.response_content_length"),kT(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus),i.protocol&&(s["url.scheme"]=i.protocol.split(":").pop()),i.host&&(s["server.address"]=i.host),s["url.same_origin"]=n.includes(Ke.location.origin);const c=a+r,l=c+o;Hh(e,c,l,{name:n.replace(Ke.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:s})}function MHe(e){const t=Ke.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),DT(n.rtt)&&(cr["connection.rtt"]={value:n.rtt,unit:"millisecond"})),DT(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),DT(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function LHe(e){Ei&&(Go&&ye.log("[Measurements] Adding LCP Data"),Ei.element&&e.setAttribute("lcp.element",Is(Ei.element)),Ei.id&&e.setAttribute("lcp.id",Ei.id),Ei.url&&e.setAttribute("lcp.url",Ei.url.trim().slice(0,200)),e.setAttribute("lcp.size",Ei.size)),T0&&T0.sources&&(Go&&ye.log("[Measurements] Adding CLS Data"),T0.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,Is(t.node))))}function kT(e,t,n,r){const o=t[n];o!=null&&o{const r=Ke[n]&&Ke[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(po(r,"addEventListener",function(o){return function(a,i,s){if(a==="click"||a=="keypress")try{const c=this,l=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},u=l[a]=l[a]||{refCount:0};if(!u.handler){const d=bL(e);u.handler=d,o.call(this,a,d,s)}u.refCount++}catch{}return o.call(this,a,i,s)}}),po(r,"removeEventListener",function(o){return function(a,i,s){if(a==="click"||a=="keypress")try{const c=this,l=c.__sentry_instrumentation_handlers__||{},u=l[a];u&&(u.refCount--,u.refCount<=0&&(o.call(this,a,u.handler,s),u.handler=void 0,delete l[a]),Object.keys(l).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,a,i,s)}}))})}function HHe(e){if(e.type!==h8)return!1;try{if(!e.target||e.target._sentryId!==m8)return!1}catch{}return!0}function qHe(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function bL(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=WHe(n);if(qHe(n.type,r))return;Sa(n,"_sentryCaptured",!0),r&&!r._sentryId&&Sa(r,"_sentryId",en());const o=n.type==="keypress"?"input":n.type;HHe(n)||(e({event:n,name:o,global:t}),h8=n.type,m8=r?r._sentryId:void 0),clearTimeout(yL),yL=Ke.setTimeout(()=>{m8=void 0,h8=void 0},$He)}}function WHe(e){try{return e.target}catch{return null}}let zv;function B6(e){const t="history";Ul(t,e),$l(t,GHe)}function GHe(){if(!LUe())return;const e=Ke.onpopstate;Ke.onpopstate=function(...n){const r=Ke.location.href,o=zv;if(zv=r,ba("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const o=r.length>2?r[2]:void 0;if(o){const a=zv,i=String(o);zv=i,ba("history",{from:a,to:i})}return n.apply(this,r)}}po(Ke.history,"pushState",t),po(Ke.history,"replaceState",t)}const F1={};function ote(e){const t=F1[e];if(t)return t;let n=Ke[e];if(XD(n))return F1[e]=n.bind(Ke);const r=Ke.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const a=o.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(o)}catch(o){Go&&ye.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(F1[e]=n.bind(Ke))}function vL(e){F1[e]=void 0}function qh(...e){return ote("setTimeout")(...e)}const Eu="__sentry_xhr_v3__";function ate(e){const t="xhr";Ul(t,e),$l(t,VHe)}function VHe(){if(!Ke.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const o=to()*1e3,a=gs(r[0])?r[0].toUpperCase():void 0,i=KHe(r[1]);if(!a||!i)return t.apply(n,r);n[Eu]={method:a,url:i,request_headers:{}},a==="POST"&&i.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const s=()=>{const c=n[Eu];if(c&&n.readyState===4){try{c.status_code=n.status}catch{}const l={endTimestamp:to()*1e3,startTimestamp:o,xhr:n};ba("xhr",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(c,l,u){return s(),c.apply(l,u)}}):n.addEventListener("readystatechange",s),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(c,l,u){const[d,f]=u,h=l[Eu];return h&&gs(d)&&gs(f)&&(h.request_headers[d.toLowerCase()]=f),c.apply(l,u)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const o=n[Eu];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const a={startTimestamp:to()*1e3,xhr:n};return ba("xhr",a),t.apply(n,r)}})}function KHe(e){if(gs(e))return e;try{return e.toString()}catch{}}const jT=[],M1=new Map;function YHe(){if(t7()&&ao){const t=QHe();return()=>{t()}}return()=>{}}const wL={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function QHe(){return Zee(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(m=>m.duration===e.value&&wL[m.name]);if(!t)return;const{interactionId:n}=t,r=wL[t.name],o=Cn(ao+t.startTime),a=Cn(e.value),i=Ur(),s=i?gr(i):void 0,l=(n!=null?M1.get(n):void 0)||s,u=l?_t(l).description:Xt().getScopeData().transactionName,d=Is(t.target),f=zn({[rr]:"auto.http.browser.inp",[sd]:`ui.interaction.${r}`,[GP]:t.duration}),h=nte({name:d,transaction:u,attributes:f,startTime:o});Uo([h,"optionalAccess",m=>m.addEvent,"call",m=>m("inp",{[P6]:"millisecond",[I6]:e.value})]),Uo([h,"optionalAccess",m=>m.end,"call",m=>m(o+a)])})}function XHe(e){const t=({entries:n})=>{const r=Ur(),o=r&&gr(r);n.forEach(a=>{if(!wHe(a)||!o)return;const i=a.interactionId;if(i!=null&&!M1.has(i)){if(jT.length>10){const s=jT.shift();M1.delete(s)}jT.push(i),M1.set(i,o)}})};zh("event",t),zh("first-input",t)}function JHe(e,t=ote("fetch")){let n=0,r=0;function o(a){const i=a.body.length;n+=i,r++;const s={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return vL("fetch"),HE("No fetch implementation available");try{return t(e.url,s).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return vL("fetch"),n-=i,r--,HE(c)}}return eze(e,o)}const ZHe=30,eqe=50;function p8(e,t,n,r){const o={filename:e,function:t===""?ad:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const tqe=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,nqe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rqe=/\((\S*)(?::(\d+))(?::(\d+))\)/,oqe=e=>{const t=tqe.exec(e);if(t){const[,r,o,a]=t;return p8(r,ad,+o,+a)}const n=nqe.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=rqe.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[o,a]=ite(n[1]||ad,n[2]);return p8(a,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},aqe=[ZHe,oqe],iqe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,sqe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,cqe=e=>{const t=iqe.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=sqe.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],o=t[1]||ad;return[o,r]=ite(o,r),p8(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},lqe=[eqe,cqe],uqe=[aqe,lqe],dqe=tee(...uqe),ite=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:ad,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Hv=1024,fqe="Breadcrumbs",hqe=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:fqe,setup(n){t.console&&ZLe(yqe(n)),t.dom&&rte(gqe(n,t.dom)),t.xhr&&ate(bqe(n)),t.fetch&&oee(vqe(n)),t.history&&B6(wqe(n)),t.sentry&&n.on("beforeSendEvent",pqe(n))}}},mqe=hqe;function pqe(e){return function(n){gt()===e&&bl({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Cc(n)},{event:n})}}function gqe(e,t){return function(r){if(gt()!==e)return;let o,a,i=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>Hv&&(ii&&ye.warn(`\`dom.maxStringLength\` cannot exceed ${Hv}, but a value of ${s} was configured. Sentry will use ${Hv} instead.`),s=Hv),typeof i=="string"&&(i=[i]);try{const l=r.event,u=Eqe(l)?l.target:l;o=Is(u,{keyAttrs:i,maxStringLength:s}),a=QZ(u)}catch{o=""}if(o.length===0)return;const c={category:`ui.${r.name}`,message:o};a&&(c.data={"ui.component_name":a}),bl(c,{event:r.event,name:r.name,global:r.global})}}function yqe(e){return function(n){if(gt()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:wUe(n.level),message:jM(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${jM(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;bl(r,{input:n.args,level:n.level})}}function bqe(e){return function(n){if(gt()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,a=n.xhr[Eu];if(!r||!o||!a)return;const{method:i,url:s,status_code:c,body:l}=a,u={method:i,url:s,status_code:c},d={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:o};bl({category:"xhr",data:u,type:"http"},d)}}function vqe(e){return function(n){if(gt()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};bl({category:"fetch",data:a,level:"error",type:"http"},i)}else{const a=n.response,i={...n.fetchData,status_code:a&&a.status},s={input:n.args,response:a,startTimestamp:r,endTimestamp:o};bl({category:"fetch",data:i,type:"http"},s)}}}function wqe(e){return function(n){if(gt()!==e)return;let r=n.from,o=n.to;const a=ju(et.location.href);let i=r?ju(r):void 0;const s=ju(o);(!i||!i.path)&&(i=a),a.protocol===s.protocol&&a.host===s.host&&(o=s.relative),a.protocol===i.protocol&&a.host===i.host&&(r=i.relative),bl({category:"navigation",data:{from:r,to:o}})}}function Eqe(e){return!!e&&!!e.target}const _qe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],xqe="BrowserApiErrors",Cqe=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:xqe,setupOnce(){t.setTimeout&&po(et,"setTimeout",EL),t.setInterval&&po(et,"setInterval",EL),t.requestAnimationFrame&&po(et,"requestAnimationFrame",Tqe),t.XMLHttpRequest&&"XMLHttpRequest"in et&&po(XMLHttpRequest.prototype,"send",Aqe);const n=t.eventTarget;n&&(Array.isArray(n)?n:_qe).forEach(Dqe)}}},Sqe=Cqe;function EL(e){return function(...t){const n=t[0];return t[0]=$h(n,{mechanism:{data:{function:Os(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Tqe(e){return function(t){return e.apply(this,[$h(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Os(e)},handled:!1,type:"instrument"}})])}}function Aqe(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&po(n,o,function(a){const i={mechanism:{data:{function:o,handler:Os(a)},handled:!1,type:"instrument"}},s=UP(a);return s&&(i.mechanism.data.handler=Os(s)),$h(a,i)})}),e.apply(this,t)}}function Dqe(e){const t=et,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(po(n,"addEventListener",function(r){return function(o,a,i){try{typeof a.handleEvent=="function"&&(a.handleEvent=$h(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Os(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,$h(a,{mechanism:{data:{function:"addEventListener",handler:Os(a),target:e},handled:!1,type:"instrument"}}),i])}}),po(n,"removeEventListener",function(r){return function(o,a,i){const s=a;try{const c=s&&s.__sentry_wrapped__;c&&r.call(this,o,c,i)}catch{}return r.call(this,o,s,i)}}))}const kqe="GlobalHandlers",jqe=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:kqe,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Iqe(n),_L("onerror")),t.onunhandledrejection&&(Oqe(n),_L("onunhandledrejection"))}}},Pqe=jqe;function Iqe(e){iee(t=>{const{stackParser:n,attachStacktrace:r}=ste();if(gt()!==e||Hee())return;const{msg:o,url:a,line:i,column:s,error:c}=t,l=Bqe(JP(n,c||o,void 0,r,!1),a,i,s);l.level="error",Oee(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Oqe(e){see(t=>{const{stackParser:n,attachStacktrace:r}=ste();if(gt()!==e||Hee())return;const o=Rqe(t),a=LP(o)?Nqe(o):JP(n,o,void 0,r,!0);a.level="error",Oee(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Rqe(e){if(LP(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Nqe(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Bqe(e,t,n,r){const o=e.exception=e.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{},s=i.stacktrace=i.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=gs(t)&&t.length>0?t:YZ();return c.length===0&&c.push({colno:l,filename:d,function:ad,in_app:!0,lineno:u}),e}function _L(e){ii&&ye.log(`Global Handler attached: ${e}`)}function ste(){const e=gt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Fqe=()=>({name:"HttpContext",preprocessEvent(e){if(!et.navigator&&!et.location&&!et.document)return;const t=e.request&&e.request.url||et.location&&et.location.href,{referrer:n}=et.document||{},{userAgent:r}=et.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:o};e.request=a}}),Mqe="cause",Lqe=5,Uqe="LinkedErrors",$qe=(e={})=>{const t=e.limit||Lqe,n=e.key||Mqe;return{name:Uqe,preprocessEvent(r,o,a){const i=a.getOptions();BLe(QP,i.stackParser,i.maxValueLength,n,t,r,o)}}},zqe=$qe;function Hqe(e){return[dze(),sze(),Sqe(),mqe(),Pqe(),zqe(),Cze(),Fqe()]}function qqe(e={}){const t={defaultIntegrations:Hqe(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:et.SENTRY_RELEASE&&et.SENTRY_RELEASE.id?et.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function Wqe(){const e=typeof et.window<"u"&&et;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,o=et.location&&et.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&et===et.top&&a.some(c=>o.startsWith(`${c}//`)),s=typeof e.nw<"u";return!!r&&!i&&!s}function Gqe(e={}){const t=qqe(e);if(Wqe()){Gm(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}ii&&(nee()||ye.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:XLe(t.stackParser||dqe),integrations:G$e(t),transport:t.transport||JHe},r=X$e(Wze,n);return t.autoSessionTracking&&Vqe(),r}function Vqe(){if(typeof et.document>"u"){ii&&ye.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}rL({ignoreDuration:!0}),oL(),B6(({from:e,to:t})=>{e!==void 0&&e!==t&&(rL({ignoreDuration:!0}),oL())})}const qt=bt,n7="sentryReplaySession",Kqe="replay_event",r7="Unable to send Replay",Yqe=3e5,Qqe=9e5,Xqe=5e3,Jqe=5500,Zqe=6e4,eWe=5e3,tWe=3,xL=15e4,qv=5e3,nWe=3e3,rWe=300,o7=2e7,oWe=4999,aWe=15e3,CL=36e5;function g8(e,t){return e??t()}function Ag(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}var Un;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Un||(Un={}));function iWe(e){return e.nodeType===e.ELEMENT_NODE}function A0(e){const t=Ag([e,"optionalAccess",n=>n.host]);return Ag([t,"optionalAccess",n=>n.shadowRoot])===e}function D0(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function sWe(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function cWe(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function QE(e){try{const t=e.rules||e.cssRules;return t?sWe(Array.from(t,cte).join("")):null}catch{return null}}function cte(e){let t;if(uWe(e))try{t=QE(e.styleSheet)||cWe(e)}catch{}else if(dWe(e)&&e.selectorText.includes(":"))return lWe(e.cssText);return t||e.cssText}function lWe(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function uWe(e){return"styleSheet"in e}function dWe(e){return"selectorText"in e}class lte{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=Ag([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return g8(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function fWe(){return new lte}function F6({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Dg({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Wh(e){return e.toLowerCase()}function y8(e){return e.toUpperCase()}const SL="__rrweb_original__";function hWe(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;rc!==0))return!1}return!0}function a7(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Wh(t):null}function XE(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function ute(e,t){let n;try{n=new URL(e,g8(t,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,o=n.pathname.match(r);return g8(Ag([o,"optionalAccess",a=>a[1]]),()=>null)}const TL={};function dte(e){const t=TL[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(o)}catch{}return TL[e]=r.bind(window)}function b8(...e){return dte("setTimeout")(...e)}function fte(...e){return dte("clearTimeout")(...e)}let mWe=1;const pWe=new RegExp("[^a-z0-9-_:]"),kg=-2;function i7(){return mWe++}function gWe(e){if(e instanceof HTMLFormElement)return"form";const t=Wh(e.tagName);return pWe.test(t)?"div":t}function yWe(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let af,AL;const bWe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,vWe=/^(?:[a-z+]+:)?\/\//i,wWe=/^www\..*/i,EWe=/^(data:)([^,]*),(.*)/i;function JE(e,t){return(e||"").replace(bWe,(n,r,o,a,i,s)=>{const c=o||i||s,l=r||a||"";if(!c)return n;if(vWe.test(c)||wWe.test(c))return`url(${l}${c}${l})`;if(EWe.test(c))return`url(${l}${c}${l})`;if(c[0]==="/")return`url(${l}${yWe(t)+c}${l})`;const u=t.split("/"),d=c.split("/");u.pop();for(const f of d)f!=="."&&(f===".."?u.pop():u.push(f));return`url(${l}${u.join("/")}${l})`})}const _We=/^[^ \t\n\r\u000c]+/,xWe=/^[, \t\n\r\u000c]+/;function CWe(e,t){if(t.trim()==="")return t;let n=0;function r(a){let i;const s=a.exec(t.substring(n));return s?(i=s[0],n+=i.length,i):""}const o=[];for(;r(xWe),!(n>=t.length);){let a=r(_We);if(a.slice(-1)===",")a=Mf(e,a.substring(0,a.length-1)),o.push(a);else{let i="";a=Mf(e,a);let s=!1;for(;;){const c=t.charAt(n);if(c===""){o.push((a+i).trim());break}else if(s)c===")"&&(s=!1);else if(c===","){n+=1,o.push((a+i).trim());break}else c==="("&&(s=!0);i+=c,n+=1}}}return o.join(", ")}function Mf(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function SWe(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function s7(){const e=document.createElement("a");return e.href="",e.href}function hte(e,t,n,r,o,a){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?Mf(e,r):n==="srcset"?CWe(e,r):n==="style"?JE(r,s7()):t==="object"&&n==="data"?Mf(e,r):typeof a=="function"?a(n,r,o):r)}function mte(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function TWe(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const a=e.classList[o];if(t.test(a))return!0}if(n)return e.matches(n)}catch{}return!1}function AWe(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function _u(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:_u(e.parentNode,t,n,r+1)}function Lf(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(AWe(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Gh(e,t,n,r,o,a){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){const l=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(l))return!0}let s=-1,c=-1;if(a){if(c=_u(i,Lf(r,o)),c<0)return!0;s=_u(i,Lf(t,n),c>=0?c:1/0)}else{if(s=_u(i,Lf(t,n)),s<0)return!1;c=_u(i,Lf(r,o),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function DWe(e,t,n){const r=e.contentWindow;if(!r)return;let o=!1,a;try{a=r.document.readyState}catch{return}if(a!=="complete"){const s=b8(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{fte(s),o=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return b8(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function kWe(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const a=b8(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{fte(a),r=!0,t()})}function jWe(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:m={},maskTextFn:p,maskInputFn:b,dataURLOptions:v={},inlineImages:g,recordCanvas:w,keepIframeSrcFn:_,newlyAddedElement:C=!1}=t,x=PWe(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Un.Document,childNodes:[],compatMode:e.compatMode}:{type:Un.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Un.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return OWe(e,{doc:n,blockClass:o,blockSelector:a,unblockSelector:i,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:m,maskInputFn:b,dataURLOptions:v,inlineImages:g,recordCanvas:w,keepIframeSrcFn:_,newlyAddedElement:C,rootId:x,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return IWe(e,{maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:p,maskInputOptions:m,maskInputFn:b,rootId:x});case e.CDATA_SECTION_NODE:return{type:Un.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:Un.Comment,textContent:e.textContent||"",rootId:x};default:return!1}}function PWe(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function IWe(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:a,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const h=d==="STYLE"?!0:void 0,m=d==="SCRIPT"?!0:void 0,p=d==="TEXTAREA"?!0:void 0;if(h&&f){try{e.nextSibling||e.previousSibling||Ag([e,"access",v=>v.parentNode,"access",v=>v.sheet,"optionalAccess",v=>v.cssRules])&&(f=QE(e.parentNode.sheet))}catch(v){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`,e)}f=JE(f,s7())}m&&(f="SCRIPT_PLACEHOLDER");const b=Gh(e,r,a,o,i,n);if(!h&&!m&&!p&&f&&b&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,"*")),p&&f&&(c.textarea||b)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const v=F6({type:null,tagName:d,maskInputOptions:c});f=Dg({isMasked:Gh(e,r,a,o,i,v),element:e,value:f,maskInputFn:l})}return{type:Un.Text,textContent:f||"",isStyle:h,rootId:u}}function OWe(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:a,inlineStylesheet:i,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1,rootId:p,maskAllText:b,maskTextClass:v,unmaskTextClass:g,maskTextSelector:w,unmaskTextSelector:_}=t,C=TWe(e,r,o,a),x=gWe(e);let E={};const T=e.attributes.length;for(let D=0;DF.href===e.href);let R=null;D&&(R=QE(D)),R&&(delete E.rel,delete E.href,E._cssText=JE(R,D.href))}if(x==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const D=QE(e.sheet);D&&(E._cssText=JE(D,s7()))}if(x==="input"||x==="textarea"||x==="select"||x==="option"){const D=e,R=a7(D),F=XE(D,y8(x),R),B=D.checked;if(R!=="submit"&&R!=="button"&&F){const j=Gh(D,v,w,g,_,F6({type:R,tagName:y8(x),maskInputOptions:s}));E.value=Dg({isMasked:j,element:D,value:F,maskInputFn:l})}B&&(E.checked=B)}if(x==="option"&&(e.selected&&!s.select?E.selected=!0:delete E.selected),x==="canvas"&&f){if(e.__context==="2d")hWe(e)||(E.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const D=e.toDataURL(u.type,u.quality),R=document.createElement("canvas");R.width=e.width,R.height=e.height;const F=R.toDataURL(u.type,u.quality);D!==F&&(E.rr_dataURL=D)}}if(x==="img"&&d){af||(af=n.createElement("canvas"),AL=af.getContext("2d"));const D=e,R=D.crossOrigin;D.crossOrigin="anonymous";const F=()=>{D.removeEventListener("load",F);try{af.width=D.naturalWidth,af.height=D.naturalHeight,AL.drawImage(D,0,0),E.rr_dataURL=af.toDataURL(u.type,u.quality)}catch(B){console.warn(`Cannot inline img src=${D.currentSrc}! Error: ${B}`)}R?E.crossOrigin=R:D.removeAttribute("crossorigin")};D.complete&&D.naturalWidth!==0?F():D.addEventListener("load",F)}if((x==="audio"||x==="video")&&(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop)),C){const{width:D,height:R}=e.getBoundingClientRect();E={class:E.class,rr_width:`${D}px`,rr_height:`${R}px`}}x==="iframe"&&!h(E.src)&&(!C&&!e.contentDocument&&(E.rr_src=E.src),delete E.src);let k;try{customElements.get(x)&&(k=!0)}catch{}return{type:Un.Element,tagName:x,attributes:E,childNodes:[],isSVG:SWe(e)||void 0,needBlock:C,rootId:p,isCustom:k}}function zt(e){return e==null?"":e.toLowerCase()}function RWe(e,t){if(t.comment&&e.type===Un.Comment)return!0;if(e.type===Un.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&ute(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(zt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||zt(e.attributes.name)==="application-name"||zt(e.attributes.rel)==="icon"||zt(e.attributes.rel)==="apple-touch-icon"||zt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&zt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(zt(e.attributes.property).match(/^(og|twitter|fb):/)||zt(e.attributes.name).match(/^(og|twitter):/)||zt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(zt(e.attributes.name)==="robots"||zt(e.attributes.name)==="googlebot"||zt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(zt(e.attributes.name)==="author"||zt(e.attributes.name)==="generator"||zt(e.attributes.name)==="framework"||zt(e.attributes.name)==="publisher"||zt(e.attributes.name)==="progid"||zt(e.attributes.property).match(/^article:/)||zt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(zt(e.attributes.name)==="google-site-verification"||zt(e.attributes.name)==="yandex-verification"||zt(e.attributes.name)==="csrf-token"||zt(e.attributes.name)==="p:domain_verify"||zt(e.attributes.name)==="verify-v1"||zt(e.attributes.name)==="verification"||zt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Uf(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:m={},maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w={},inlineImages:_=!1,recordCanvas:C=!1,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:T=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:D=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:F=!1}=t;let{preserveWhiteSpace:B=!0}=t;const j=jWe(e,{doc:n,mirror:r,blockClass:o,blockSelector:a,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,dataURLOptions:w,inlineImages:_,recordCanvas:C,keepIframeSrcFn:R,newlyAddedElement:F});if(!j)return console.warn(e,"not serialized"),null;let P;r.hasNode(e)?P=r.getId(e):RWe(j,g)||!B&&j.type===Un.Text&&!j.isStyle&&!j.textContent.replace(/^\s+|\s+$/gm,"").length?P=kg:P=i7();const O=Object.assign(j,{id:P});if(r.add(e,O),P===kg)return null;x&&x(e);let I=!f;if(O.type===Un.Element){I=I&&!O.needBlock,delete O.needBlock;const N=e.shadowRoot;N&&D0(N)&&(O.isShadowHost=!0)}if((O.type===Un.Document||O.type===Un.Element)&&I){g.headWhitespace&&O.type===Un.Element&&O.tagName==="head"&&(B=!1);const N={doc:n,mirror:r,blockClass:o,blockSelector:a,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:_,recordCanvas:C,preserveWhiteSpace:B,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:k,stylesheetLoadTimeout:D,keepIframeSrcFn:R};for(const M of Array.from(e.childNodes)){const L=Uf(M,N);L&&O.childNodes.push(L)}if(iWe(e)&&e.shadowRoot)for(const M of Array.from(e.shadowRoot.childNodes)){const L=Uf(M,N);L&&(D0(e.shadowRoot)&&(L.isShadow=!0),O.childNodes.push(L))}}return e.parentNode&&A0(e.parentNode)&&D0(e.parentNode)&&(O.isShadow=!0),O.type===Un.Element&&O.tagName==="iframe"&&DWe(e,()=>{const N=e.contentDocument;if(N&&E){const M=Uf(N,{doc:N,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:_,recordCanvas:C,preserveWhiteSpace:B,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:k,stylesheetLoadTimeout:D,keepIframeSrcFn:R});M&&E(e,M)}},T),O.type===Un.Element&&O.tagName==="link"&&typeof O.attributes.rel=="string"&&(O.attributes.rel==="stylesheet"||O.attributes.rel==="preload"&&typeof O.attributes.href=="string"&&ute(O.attributes.href)==="css")&&kWe(e,()=>{if(k){const N=Uf(e,{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:_,recordCanvas:C,preserveWhiteSpace:B,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:k,stylesheetLoadTimeout:D,keepIframeSrcFn:R});N&&k(e,N)}},D),O}function NWe(e,t){const{mirror:n=new lte,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:a=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:h=!1,maskAllInputs:m=!1,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOM:g=!1,dataURLOptions:w,preserveWhiteSpace:_,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:T,stylesheetLoadTimeout:k,keepIframeSrcFn:D=()=>!1}=t||{};return Uf(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,maskAllText:i,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:p,maskTextFn:b,maskInputFn:v,slimDOMOptions:g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:g==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:g===!1?{}:g,dataURLOptions:w,inlineImages:f,recordCanvas:h,preserveWhiteSpace:_,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:T,stylesheetLoadTimeout:k,keepIframeSrcFn:D,newlyAddedElement:!1})}function Sc(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}function Kr(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const gf=`Please stop import mirror directly. Instead of that,\r -now you can use replayer.getMirror() to access the mirror instance of a replayer,\r -or you can use record.mirror to access the mirror instance during recording.`;let DL={map:{},getId(){return console.error(gf),-1},getNode(){return console.error(gf),null},removeNodeFromMap(){console.error(gf)},has(){return console.error(gf),!1},reset(){console.error(gf)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(DL=new Proxy(DL,{get(e,t,n){return t==="map"&&console.error(gf),Reflect.get(e,t,n)}}));function jg(e,t,n={}){let r=null,o=0;return function(...a){const i=Date.now();!o&&n.leading===!1&&(o=i);const s=t-(i-o),c=this;s<=0||s>t?(r&&(zWe(r),r=null),o=i,e.apply(c,a)):!r&&n.trailing!==!1&&(r=M6(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function pte(e,t,n,r,o=window){const a=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(i){M6(()=>{n.set.call(this,i)},0),a&&a.set&&a.set.call(this,i)}}),()=>pte(e,t,a||{},!0)}function c7(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}let ZE=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ZE=()=>new Date().getTime());function gte(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Sc([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Sc([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Sc([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Sc([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Sc([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Sc([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function yte(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function bte(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function vte(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function No(e,t,n,r,o){if(!e)return!1;const a=vte(e);if(!a)return!1;const i=Lf(t,n);if(!o){const l=r&&a.matches(r);return i(a)&&!l}const s=_u(a,i);let c=-1;return s<0?!1:(r&&(c=_u(a,Lf(null,r))),s>-1&&c<0?!0:s{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Ete(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function _te(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function w8(e){return!!Sc([e,"optionalAccess",t=>t.shadowRoot])}class MWe{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return MUe(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function xte(e){let t=null;return Sc([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function LWe(e){let t=e,n;for(;n=xte(t);)t=n;return t}function UWe(e){const t=e.ownerDocument;if(!t)return!1;const n=LWe(e);return t.contains(n)}function Cte(e){const t=e.ownerDocument;return t?t.contains(e)||UWe(e):!1}const kL={};function l7(e){const t=kL[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(o)}catch{}return kL[e]=r.bind(window)}function $We(...e){return l7("requestAnimationFrame")(...e)}function M6(...e){return l7("setTimeout")(...e)}function zWe(...e){return l7("clearTimeout")(...e)}var it=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(it||{}),Ye=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Ye||{}),Hr=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Hr||{}),Zi=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Zi||{});function HWe(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}function jL(e){return"__ln"in e}class qWe{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;ro.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&jL(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&jL(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const PL=(e,t)=>`${e}@${t}`;class WWe{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new qWe,o=c=>{let l=c,u=kg;for(;u===kg;)l=l&&l.nextSibling,u=l&&this.mirror.getId(l);return u},a=c=>{if(!c.parentNode||!Cte(c))return;const l=A0(c.parentNode)?this.mirror.getId(xte(c)):this.mirror.getId(c.parentNode),u=o(c);if(l===-1||u===-1)return r.addNode(c);const d=Uf(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{Ete(f,this.mirror)&&!No(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),_te(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),w8(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,h)=>{No(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,h),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,h)=>{this.stylesheetManager.attachLinkElement(f,h)}});d&&(t.push({parentId:l,nextId:u,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)IL(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||a(c);for(const c of this.addedSet)!OL(this.droppedSet,c)&&!IL(this.removes,c,this.mirror)||OL(this.movedSet,c)?a(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const l=this.mirror.getId(i.value.parentNode),u=o(i.value);l!==-1&&u!==-1&&(c=i)}if(!c){let l=r.tail;for(;l;){const u=l;if(l=l.previous,u){const d=this.mirror.getId(u.value.parentNode);if(o(u.value)===-1)continue;if(d!==-1){c=u;break}else{const h=u.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const m=h.parentNode.host;if(this.mirror.getId(m)!==-1){c=u;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),a(c.value)}const s={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:l}=c;if(typeof l.style=="string"){const u=JSON.stringify(c.styleDiff),d=JSON.stringify(c._unchangedStyles);u.length!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!s.texts.length&&!s.attributes.length&&!s.removes.length&&!s.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=t=>{if(!PT(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!No(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Gh(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,vte(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){const i=a7(n),s=n.tagName;o=XE(n,s,i);const c=F6({maskInputOptions:this.maskInputOptions,tagName:s,type:i}),l=Gh(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=Dg({isMasked:l,element:n,value:o,maskInputFn:this.maskInputFn})}if(No(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let a=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!n.contentDocument)r="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!mte(n.tagName,r)&&(a.attributes[r]=hte(this.doc,Wh(n.tagName),Wh(r),o,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const s of Array.from(n.style)){const c=n.style.getPropertyValue(s),l=n.style.getPropertyPriority(s);c!==i.style.getPropertyValue(s)||l!==i.style.getPropertyPriority(s)?l===""?a.styleDiff[s]=c:a.styleDiff[s]=[c,l]:a._unchangedStyles[s]=[c,l]}for(const s of Array.from(i.style))n.style.getPropertyValue(s)===""&&(a.styleDiff[s]=!1)}break}case"childList":{if(No(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),o=A0(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);No(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||PT(n,this.mirror)||!BWe(n,this.mirror)||(this.addedSet.has(n)?(E8(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||wte(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[PL(r,o)]?E8(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:A0(t.target)&&D0(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(PT(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[PL(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);No(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),w8(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function E8(e,t){e.delete(t),t.childNodes.forEach(n=>E8(e,n))}function IL(e,t,n){return e.length===0?!1:Ste(e,t,n)}function Ste(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return e.some(a=>a.id===o)?!0:Ste(e,r,n)}function OL(e,t){return e.size===0?!1:Tte(e,t)}function Tte(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Tte(e,n):!1}let k0;function GWe(e){k0=e}function VWe(){k0=void 0}const vt=e=>k0?(...n)=>{try{return e(...n)}catch(r){if(k0&&k0(r)===!0)return()=>{};throw r}}:e;function Ga(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}const $f=[];function kb(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Ate(e,t){const n=new WWe;$f.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=Ga([window,"optionalAccess",i=>i.Zone,"optionalAccess",i=>i.__symbol__,"optionalCall",i=>i("MutationObserver")]);o&&window[o]&&(r=window[o]);const a=new r(vt(i=>{e.onMutation&&e.onMutation(i)===!1||n.processMutations.bind(n)(i)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function KWe({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],s;const c=jg(vt(d=>{const f=Date.now()-s;e(i.map(h=>(h.timeOffset-=f,h)),d),i=[],s=null}),a),l=vt(jg(vt(d=>{const f=kb(d),{clientX:h,clientY:m}=v8(d)?d.changedTouches[0]:d;s||(s=ZE()),i.push({x:h,y:m,id:r.getId(f),timeOffset:ZE()-s}),c(typeof DragEvent<"u"&&d instanceof DragEvent?Ye.Drag:d instanceof MouseEvent?Ye.MouseMove:Ye.TouchMove)}),o,{trailing:!1})),u=[Kr("mousemove",l,n),Kr("touchmove",l,n),Kr("drag",l,n)];return vt(()=>{u.forEach(d=>d())})}function YWe({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,sampling:i}){if(i.mouseInteraction===!1)return()=>{};const s=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,c=[];let l=null;const u=d=>f=>{const h=kb(f);if(No(h,r,o,a,!0))return;let m=null,p=d;if("pointerType"in f){switch(f.pointerType){case"mouse":m=Zi.Mouse;break;case"touch":m=Zi.Touch;break;case"pen":m=Zi.Pen;break}m===Zi.Touch?Hr[d]===Hr.MouseDown?p="TouchStart":Hr[d]===Hr.MouseUp&&(p="TouchEnd"):Zi.Pen}else v8(f)&&(m=Zi.Touch);m!==null?(l=m,(p.startsWith("Touch")&&m===Zi.Touch||p.startsWith("Mouse")&&m===Zi.Mouse)&&(m=null)):Hr[d]===Hr.Click&&(m=l,l=null);const b=v8(f)?f.changedTouches[0]:f;if(!b)return;const v=n.getId(h),{clientX:g,clientY:w}=b;vt(e)({type:Hr[p],id:v,x:g,y:w,...m!==null&&{pointerType:m}})};return Object.keys(Hr).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&s[d]!==!1).forEach(d=>{let f=Wh(d);const h=u(d);if(window.PointerEvent)switch(Hr[d]){case Hr.MouseDown:case Hr.MouseUp:f=f.replace("mouse","pointer");break;case Hr.TouchStart:case Hr.TouchEnd:return}c.push(Kr(f,h,t))}),vt(()=>{c.forEach(d=>d())})}function Dte({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,sampling:i}){const s=vt(jg(vt(c=>{const l=kb(c);if(!l||No(l,r,o,a,!0))return;const u=n.getId(l);if(l===t&&t.defaultView){const d=gte(t.defaultView);e({id:u,x:d.left,y:d.top})}else e({id:u,x:l.scrollLeft,y:l.scrollTop})}),i.scroll||100));return Kr("scroll",s,t)}function QWe({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=vt(jg(vt(()=>{const a=yte(),i=bte();(n!==a||r!==i)&&(e({width:Number(i),height:Number(a)}),n=a,r=i)}),200));return Kr("resize",o,t)}const XWe=["INPUT","TEXTAREA","SELECT"],RL=new WeakMap;function JWe({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,ignoreClass:i,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:m,unmaskTextSelector:p}){function b(E){let T=kb(E);const k=E.isTrusted,D=T&&y8(T.tagName);if(D==="OPTION"&&(T=T.parentElement),!T||!D||XWe.indexOf(D)<0||No(T,r,o,a,!0))return;const R=T;if(R.classList.contains(i)||s&&R.matches(s))return;const F=a7(T);let B=XE(R,D,F),j=!1;const P=F6({maskInputOptions:c,tagName:D,type:F}),O=Gh(T,f,m,h,p,P);(F==="radio"||F==="checkbox")&&(j=T.checked),B=Dg({isMasked:O,element:T,value:B,maskInputFn:l}),v(T,d?{text:B,isChecked:j,userTriggered:k}:{text:B,isChecked:j});const I=T.name;F==="radio"&&I&&j&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(N=>{if(N!==T){const M=Dg({isMasked:O,element:N,value:XE(N,D,F),maskInputFn:l});v(N,d?{text:M,isChecked:!j,userTriggered:!1}:{text:M,isChecked:!j})}})}function v(E,T){const k=RL.get(E);if(!k||k.text!==T.text||k.isChecked!==T.isChecked){RL.set(E,T);const D=n.getId(E);vt(e)({...T,id:D})}}const w=(u.input==="last"?["change"]:["input","change"]).map(E=>Kr(E,vt(b),t)),_=t.defaultView;if(!_)return()=>{w.forEach(E=>E())};const C=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),x=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return C&&C.set&&w.push(...x.map(E=>pte(E[0],E[1],{set(){vt(b)({target:this,isTrusted:!1})}},!1,_))),vt(()=>{w.forEach(E=>E())})}function e_(e){const t=[];function n(r,o){if(Wv("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Wv("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Wv("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Wv("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(i)}return o}return n(e,t)}function Tc(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function ZWe({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:vt((u,d,f)=>{const[h,m]=f,{id:p,styleId:b}=Tc(d,t,n.styleMirror);return(p&&p!==-1||b&&b!==-1)&&e({id:p,styleId:b,adds:[{rule:h,index:m}]}),u.apply(d,f)})});const a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:vt((u,d,f)=>{const[h]=f,{id:m,styleId:p}=Tc(d,t,n.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,removes:[{index:h}]}),u.apply(d,f)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:vt((u,d,f)=>{const[h]=f,{id:m,styleId:p}=Tc(d,t,n.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,replace:h}),u.apply(d,f)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:vt((u,d,f)=>{const[h]=f,{id:m,styleId:p}=Tc(d,t,n.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,replaceSync:h}),u.apply(d,f)})}));const c={};Gv("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Gv("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Gv("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Gv("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([u,d])=>{l[u]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(l[u].insertRule,{apply:vt((f,h,m)=>{const[p,b]=m,{id:v,styleId:g}=Tc(h.parentStyleSheet,t,n.styleMirror);return(v&&v!==-1||g&&g!==-1)&&e({id:v,styleId:g,adds:[{rule:p,index:[...e_(h),b||0]}]}),f.apply(h,m)})}),d.prototype.deleteRule=new Proxy(l[u].deleteRule,{apply:vt((f,h,m)=>{const[p]=m,{id:b,styleId:v}=Tc(h.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||v&&v!==-1)&&e({id:b,styleId:v,removes:[{index:[...e_(h),p]}]}),f.apply(h,m)})})}),vt(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=a,i&&(r.CSSStyleSheet.prototype.replace=i),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([u,d])=>{d.prototype.insertRule=l[u].insertRule,d.prototype.deleteRule=l[u].deleteRule})})}function kte({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const o=n.nodeName==="#document"?Ga([n,"access",i=>i.defaultView,"optionalAccess",i=>i.Document]):Ga([n,"access",i=>i.ownerDocument,"optionalAccess",i=>i.defaultView,"optionalAccess",i=>i.ShadowRoot]),a=Ga([o,"optionalAccess",i=>i.prototype])?Object.getOwnPropertyDescriptor(Ga([o,"optionalAccess",i=>i.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return Ga([a,"access",i=>i.get,"optionalAccess",i=>i.call,"call",i=>i(this)])},set(i){const s=Ga([a,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,i)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(i,r)}catch{}return s}}),vt(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function eGe({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:vt((s,c,l)=>{const[u,d,f]=l;if(n.has(u))return a.apply(c,[u,d,f]);const{id:h,styleId:m}=Tc(Ga([c,"access",p=>p.parentRule,"optionalAccess",p=>p.parentStyleSheet]),t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,set:{property:u,value:d,priority:f},index:e_(c.parentRule)}),s.apply(c,l)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:vt((s,c,l)=>{const[u]=l;if(n.has(u))return i.apply(c,[u]);const{id:d,styleId:f}=Tc(Ga([c,"access",h=>h.parentRule,"optionalAccess",h=>h.parentStyleSheet]),t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:u},index:e_(c.parentRule)}),s.apply(c,l)})}),vt(()=>{o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=i})}function tGe({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:a,doc:i}){const s=vt(l=>jg(vt(u=>{const d=kb(u);if(!d||No(d,t,n,r,!0))return;const{currentTime:f,volume:h,muted:m,playbackRate:p}=d;e({type:l,id:o.getId(d),currentTime:f,volume:h,muted:m,playbackRate:p})}),a.media||500)),c=[Kr("play",s(0),i),Kr("pause",s(1),i),Kr("seeked",s(2),i),Kr("volumechange",s(3),i),Kr("ratechange",s(4),i)];return vt(()=>{c.forEach(l=>l())})}function nGe({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,a=n.FontFace;n.FontFace=function(c,l,u){const d=new a(c,l,u);return o.set(d,{family:c,buffer:typeof l!="string",descriptors:u,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),d};const i=c7(t.fonts,"add",function(s){return function(c){return M6(vt(()=>{const l=o.get(c);l&&(e(l),o.delete(c))}),0),s.apply(this,[c])}});return r.push(()=>{n.FontFace=a}),r.push(i),vt(()=>{r.forEach(s=>s())})}function rGe(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,selectionCb:i}=e;let s=!0;const c=vt(()=>{const l=t.getSelection();if(!l||s&&Ga([l,"optionalAccess",f=>f.isCollapsed]))return;s=l.isCollapsed||!1;const u=[],d=l.rangeCount||0;for(let f=0;f{}:c7(n.customElements,"define",function(o){return function(a,i,s){try{t({define:{name:a}})}catch{}return o.apply(this,[a,i,s])}})}function aGe(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Ate(e,e.doc));const o=KWe(e),a=YWe(e),i=Dte(e),s=QWe(e,{win:n}),c=JWe(e),l=tGe(e);let u=()=>{},d=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(u=ZWe(e,{win:n}),d=kte(e,e.doc),f=eGe(e,{win:n}),e.collectFonts&&(h=nGe(e)));const m=rGe(e),p=oGe(e),b=[];for(const v of e.plugins)b.push(v.observer(v.callback,n,v.options));return vt(()=>{$f.forEach(v=>v.reset()),Ga([r,"optionalAccess",v=>v.disconnect,"call",v=>v()]),o(),a(),i(),s(),c(),l(),u(),d(),f(),h(),m(),p(),b.forEach(v=>v())})}function Wv(e){return typeof window[e]<"u"}function Gv(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class _8{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){const a=r||this.getIdToRemoteIdMap(t),i=o||this.getRemoteIdToIdMap(t);let s=a.get(n);return s||(s=this.generateIdFn(),a.set(n,s),i.set(s,n)),s}getIds(t,n){const r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(a=>this.getId(t,a,r,o))}getRemoteId(t,n,r){const o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const a=o.get(n);return a||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function NL(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}class iGe{constructor(){this.crossOriginIframeMirror=new _8(i7),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class sGe{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new _8(i7),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new _8(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),NL([this,"access",r=>r.loadListener,"optionalCall",r=>r(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const a=this.transformCrossOriginEvent(o,n.data.event);a&&this.wrappedEmit(a,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case it.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:it.IncrementalSnapshot,data:{source:Ye.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case it.Meta:case it.Load:case it.DomContentLoaded:return!1;case it.Plugin:return n;case it.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case it.IncrementalSnapshot:switch(n.data.source){case Ye.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(r.node,o)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Ye.Drag:case Ye.TouchMove:case Ye.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Ye.ViewportResize:return!1;case Ye.MediaInteraction:case Ye.MouseInteraction:case Ye.Scroll:case Ye.CanvasMutation:case Ye.Input:return this.replaceIds(n.data,t,["id"]),n;case Ye.StyleSheetRule:case Ye.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Ye.Font:return n;case Ye.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case Ye.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),NL([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(o=>{this.replaceStyleIds(o,t,["styleId"])})]),n}}return!1}replace(t,n,r,o){for(const a of o)!Array.isArray(n[a])&&typeof n[a]!="number"||(Array.isArray(n[a])?n[a]=t.getIds(r,n[a]):n[a]=t.getId(r,n[a]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Un.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class cGe{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class lGe{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!D0(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Ate({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Dte({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),M6(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(kte({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(c7(t.prototype,"attachShadow",function(o){return function(a){const i=o.call(this,a);return this.shadowRoot&&Cte(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class BL{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class uGe{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new MWe,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},o=[];for(const a of t){let i;this.styleMirror.has(a)?i=this.styleMirror.getId(a):(i=this.styleMirror.add(a),o.push({styleId:i,rules:Array.from(a.rules||CSSRule,(s,c)=>({rule:cte(s),index:c}))})),r.styleIds.push(i)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class dGe{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){$We(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let un,t_;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Uo([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Ba=fWe();function ys(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:a=null,unblockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:p,maskInputOptions:b,slimDOMOptions:v,maskAttributeFn:g,maskInputFn:w,maskTextFn:_,maxCanvasSize:C=null,packFn:x,sampling:E={},dataURLOptions:T={},mousemoveWait:k,recordDOM:D=!0,recordCanvas:R=!1,recordCrossOriginIframes:F=!1,recordAfter:B=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:P=!1,inlineImages:O=!1,plugins:I,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:M=new Set([]),errorHandler:L,onMutation:X,getCanvasManager:J}=e;GWe(L);const U=F?window.parent===window:!0;let G=!1;if(!U)try{window.parent.document&&(G=!1)}catch{G=!0}if(U&&!t)throw new Error("emit function is required");k!==void 0&&E.mousemove===void 0&&(E.mousemove=k),Ba.reset();const Z=p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:b!==void 0?b:{},ae=v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:v==="all",headMetaDescKeywords:v==="all"}:v||{};FWe();let ne,ie=0;const te=he=>{for(const Me of I||[])Me.eventProcessor&&(he=Me.eventProcessor(he));return x&&!G&&(he=x(he)),he};un=(he,Me)=>{const ge=he;if(ge.timestamp=ZE(),Uo([$f,"access",Y=>Y[0],"optionalAccess",Y=>Y.isFrozen,"call",Y=>Y()])&&ge.type!==it.FullSnapshot&&!(ge.type===it.IncrementalSnapshot&&ge.data.source===Ye.Mutation)&&$f.forEach(Y=>Y.unfreeze()),U)Uo([t,"optionalCall",Y=>Y(te(ge),Me)]);else if(G){const Y={type:"rrweb",event:te(ge),origin:window.location.origin,isCheckout:Me};window.parent.postMessage(Y,"*")}if(ge.type===it.FullSnapshot)ne=ge,ie=0;else if(ge.type===it.IncrementalSnapshot){if(ge.data.source===Ye.Mutation&&ge.data.isAttachIframe)return;ie++;const Y=r&&ie>=r,W=n&&ne&&ge.timestamp-ne.timestamp>n;(Y||W)&&Ee(!0)}};const ee=he=>{un({type:it.IncrementalSnapshot,data:{source:Ye.Mutation,...he}})},re=he=>un({type:it.IncrementalSnapshot,data:{source:Ye.Scroll,...he}}),z=he=>un({type:it.IncrementalSnapshot,data:{source:Ye.CanvasMutation,...he}}),fe=he=>un({type:it.IncrementalSnapshot,data:{source:Ye.AdoptedStyleSheet,...he}}),ve=new uGe({mutationCb:ee,adoptedStyleSheetCb:fe}),Ue=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new iGe:new sGe({mirror:Ba,mutationCb:ee,stylesheetManager:ve,recordCrossOriginIframes:F,wrappedEmit:un});for(const he of I||[])he.getMirror&&he.getMirror({nodeMirror:Ba,crossOriginIframeMirror:Ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ue.crossOriginIframeStyleMirror});const ke=new dGe,Qe=hGe(J,{mirror:Ba,win:window,mutationCb:he=>un({type:it.IncrementalSnapshot,data:{source:Ye.CanvasMutation,...he}}),recordCanvas:R,blockClass:o,blockSelector:a,unblockSelector:i,maxCanvasSize:C,sampling:E.canvas,dataURLOptions:T,errorHandler:L}),Te=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new cGe:new lGe({mutationCb:ee,scrollCb:re,bypassOptions:{onMutation:X,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:Z,dataURLOptions:T,maskAttributeFn:g,maskTextFn:_,maskInputFn:w,recordCanvas:R,inlineImages:O,sampling:E,slimDOMOptions:ae,iframeManager:Ue,stylesheetManager:ve,canvasManager:Qe,keepIframeSrcFn:N,processedNodeManager:ke},mirror:Ba}),Ee=(he=!1)=>{if(!D)return;un({type:it.Meta,data:{href:window.location.href,width:bte(),height:yte()}},he),ve.reset(),Te.init(),$f.forEach(ge=>ge.lock());const Me=NWe(document,{mirror:Ba,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:Z,maskAttributeFn:g,maskInputFn:w,maskTextFn:_,slimDOM:ae,dataURLOptions:T,recordCanvas:R,inlineImages:O,onSerialize:ge=>{Ete(ge,Ba)&&Ue.addIframe(ge),_te(ge,Ba)&&ve.trackLinkElement(ge),w8(ge)&&Te.addShadowRoot(ge.shadowRoot,document)},onIframeLoad:(ge,Y)=>{Ue.attachIframe(ge,Y),ge.contentWindow&&Qe.addWindow(ge.contentWindow),Te.observeAttachShadow(ge)},onStylesheetLoad:(ge,Y)=>{ve.attachLinkElement(ge,Y)},keepIframeSrcFn:N});if(!Me)return console.warn("Failed to snapshot the document");un({type:it.FullSnapshot,data:{node:Me,initialOffset:gte(window)}}),$f.forEach(ge=>ge.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ve.adoptStyleSheets(document.adoptedStyleSheets,Ba.getId(document))};t_=Ee;try{const he=[],Me=Y=>vt(aGe)({onMutation:X,mutationCb:ee,mousemoveCb:(W,Q)=>un({type:it.IncrementalSnapshot,data:{source:Q,positions:W}}),mouseInteractionCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.MouseInteraction,...W}}),scrollCb:re,viewportResizeCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.ViewportResize,...W}}),inputCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.Input,...W}}),mediaInteractionCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.MediaInteraction,...W}}),styleSheetRuleCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.StyleSheetRule,...W}}),styleDeclarationCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.StyleDeclaration,...W}}),canvasMutationCb:z,fontCb:W=>un({type:it.IncrementalSnapshot,data:{source:Ye.Font,...W}}),selectionCb:W=>{un({type:it.IncrementalSnapshot,data:{source:Ye.Selection,...W}})},customElementCb:W=>{un({type:it.IncrementalSnapshot,data:{source:Ye.CustomElement,...W}})},blockClass:o,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:Z,inlineStylesheet:m,sampling:E,recordDOM:D,recordCanvas:R,inlineImages:O,userTriggeredOnInput:j,collectFonts:P,doc:Y,maskAttributeFn:g,maskInputFn:w,maskTextFn:_,keepIframeSrcFn:N,blockSelector:a,unblockSelector:i,slimDOMOptions:ae,dataURLOptions:T,mirror:Ba,iframeManager:Ue,stylesheetManager:ve,shadowDomManager:Te,processedNodeManager:ke,canvasManager:Qe,ignoreCSSAttributes:M,plugins:Uo([I,"optionalAccess",W=>W.filter,"call",W=>W(Q=>Q.observer),"optionalAccess",W=>W.map,"call",W=>W(Q=>({observer:Q.observer,options:Q.options,callback:ce=>un({type:it.Plugin,data:{plugin:Q.name,payload:ce}})}))])||[]},{});Ue.addLoadListener(Y=>{try{he.push(Me(Y.contentDocument))}catch(W){console.warn(W)}});const ge=()=>{Ee(),he.push(Me(document))};return document.readyState==="interactive"||document.readyState==="complete"?ge():(he.push(Kr("DOMContentLoaded",()=>{un({type:it.DomContentLoaded,data:{}}),B==="DOMContentLoaded"&&ge()})),he.push(Kr("load",()=>{un({type:it.Load,data:{}}),B==="load"&&ge()},window))),()=>{he.forEach(Y=>Y()),ke.destroy(),t_=void 0,VWe()}}catch(he){console.warn(he)}}function fGe(e){if(!t_)throw new Error("please take full snapshot after start recording");t_(e)}ys.mirror=Ba;ys.takeFullSnapshot=fGe;function hGe(e,t){try{return e?e(t):new BL}catch{return console.warn("Unable to initialize CanvasManager"),new BL}}const He=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,FL=["info","warn","error","log"],L1="[Replay] ";function IT(e,t="info"){bl({category:"console",data:{logger:"replay"},level:t,message:`${L1}${e}`},{level:t})}function mGe(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return He?(FL.forEach(r=>{n[r]=(...o)=>{ye[r](L1,...o),t&&IT(o[0])}}),n.exception=(r,...o)=>{n.error&&n.error(...o),ye.error(L1,r),e?YP(r):t&&IT(r)},n.infoTick=(...r)=>{ye.info(L1,...r),t&&setTimeout(()=>IT(r[0]),0)}):FL.forEach(r=>{n[r]=()=>{}}),n}const Ge=mGe(),pGe=3,gGe=5;function u7(e){return e>9999999999?e:e*1e3}function OT(e){return e>9999999999?e/1e3:e}function jb(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:it.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:_i(t,10,1e3)}}),t.category==="console")))}const yGe="button,a";function jte(e){return e.closest(yGe)||e}function Pte(e){const t=Ite(e);return!t||!(t instanceof Element)?t:jte(t)}function Ite(e){return bGe(e)?e.target:e}function bGe(e){return typeof e=="object"&&!!e&&"target"in e}let Ac;function vGe(e){return Ac||(Ac=[],wGe()),Ac.push(e),()=>{const t=Ac?Ac.indexOf(e):-1;t>-1&&Ac.splice(t,1)}}function wGe(){po(qt,"open",function(e){return function(...t){if(Ac)try{Ac.forEach(n=>n())}catch{}return e.apply(qt,t)}})}const EGe=new Set([Ye.Mutation,Ye.StyleSheetRule,Ye.StyleDeclaration,Ye.AdoptedStyleSheet,Ye.CanvasMutation,Ye.Selection,Ye.MediaInteraction]);function _Ge(e,t,n){e.handleClick(t,n)}class xGe{constructor(t,n,r=jb){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=vGe(()=>{this._lastMutation=ML()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(SGe(n,this._ignoreSelector)||!TGe(t))return;const r={timestamp:OT(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=OT(t)}registerScroll(t=Date.now()){this._lastScroll=OT(t)}registerClick(t){const n=jte(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=ML();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!r&&!o,{clickCount:i,clickBreadcrumb:s}=t;if(a){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,l=c1){const c={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:qt.location.href,route:n.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=qh(()=>this._checkClicks(),1e3)}}const CGe=["A","BUTTON","INPUT"];function SGe(e,t){return!!(!CGe.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function TGe(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function ML(){return Date.now()/1e3}function AGe(e,t){try{if(!DGe(t))return;const{source:n}=t.data;if(EGe.has(n)&&e.registerMutation(t.timestamp),n===Ye.Scroll&&e.registerScroll(t.timestamp),kGe(t)){const{type:r,id:o}=t.data,a=ys.mirror.getNode(o);a instanceof HTMLElement&&r===Hr.Click&&e.registerClick(a)}}catch{}}function DGe(e){return e.type===pGe}function kGe(e){return e.data.source===Ye.MouseInteraction}function Pi(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var n_;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(n_||(n_={}));const jGe=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function PGe(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(jGe.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const IGe=e=>t=>{if(!e.isEnabled())return;const n=OGe(t);if(!n)return;const r=t.name==="click",o=r?t.event:void 0;r&&e.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&_Ge(e.clickDetector,n,Pte(t.event)),jb(e,n)};function Ote(e,t){const n=ys.mirror.getId(e),r=n&&ys.mirror.getNode(n),o=r&&ys.mirror.getMeta(r),a=o&&NGe(o)?o:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(i=>i.type===n_.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:PGe(a.attributes)}}:{}}}function OGe(e){const{target:t,message:n}=RGe(e);return Pi({category:`ui.${e.name}`,...Ote(t,n)})}function RGe(e){const t=e.name==="click";let n,r=null;try{r=t?Pte(e.event):Ite(e.event),n=Is(r,{maxStringLength:200})||""}catch{n=""}return{target:r,message:n}}function NGe(e){return e.type===n_.Element}function BGe(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=FGe(t);n&&jb(e,n)}function FGe(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:a,target:i}=e;if(!i||MGe(i)||!a)return null;const s=t||r||o,c=a.length===1;if(!s&&c)return null;const l=Is(i,{maxStringLength:200})||"",u=Ote(i,l);return Pi({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:a}})}function MGe(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const LGe={resource:qGe,paint:zGe,navigation:HGe};function Vv(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function UGe(e){return e.map($Ge).filter(Boolean)}function $Ge(e){const t=LGe[e.entryType];return t?t(e):null}function Vh(e){return((ao||qt.performance.timeOrigin)+e)/1e3}function zGe(e){const{duration:t,entryType:n,name:r,startTime:o}=e,a=Vh(o);return{type:n,name:r,start:a,end:a+t,data:void 0}}function HGe(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:a,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:h,transferSize:m,type:p}=e;return o===0?null:{type:`${t}.${p}`,start:Vh(h),end:Vh(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}function qGe(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:a,decodedBodySize:i,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Vh(a),end:Vh(o),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:s}}}function WGe(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return L6(e,"largest-contentful-paint",n)}function GGe(e){return e.sources!==void 0}function VGe(e){const t=[],n=[];for(const r of e.entries)if(GGe(r)){const o=[];for(const a of r.sources)if(a.node){n.push(a.node);const i=ys.mirror.getId(a.node);i&&o.push(i)}t.push({value:r.value,nodeIds:o.length?o:void 0})}return L6(e,"cumulative-layout-shift",n,t)}function KGe(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return L6(e,"first-input-delay",n)}function YGe(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return L6(e,"interaction-to-next-paint",n)}function L6(e,t,n,r){const o=e.value,a=e.rating,i=Vh(o);return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:a,nodeIds:n?n.map(s=>ys.mirror.getId(s)):void 0,attributions:r}}}function QGe(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(o=>{r.push(zh(o,n))}),r.push(Xee(Vv(WGe,e)),e7(Vv(VGe,e)),Jee(Vv(KGe,e)),Zee(Vv(YGe,e))),()=>{r.forEach(o=>o())}}const XGe='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function JGe(){const e=new Blob([XGe]);return URL.createObjectURL(e)}class d7 extends Error{constructor(){super(`Event buffer exceeded maximum size of ${o7}.`)}}class Rte{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>o7)throw new d7;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?u7(t):null}}class ZGe{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){He&&Ge.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((o,a)=>{const i=({data:s})=>{const c=s;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",i),!c.success){He&&Ge.error("Error in compression worker: ",c.response),a(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class eVe{constructor(t){this._worker=new ZGe(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=u7(t.timestamp);(!this._earliestTimestamp||no7?Promise.reject(new d7):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{He&&Ge.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class tVe{constructor(t){this._fallback=new Rte,this._compression=new eVe(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){He&&Ge.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,r=[];for(const o of t)r.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(o){He&&Ge.exception(o,"Failed to add events when switching buffers.")}}}function nVe({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=rVe(t);if(n)return n}return He&&Ge.info("Using simple buffer"),new Rte}function rVe(e){try{const t=e||oVe();if(!t)return;He&&Ge.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new tVe(n)}catch(t){He&&Ge.exception(t,"Failed to create compression worker")}}function oVe(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?JGe():""}function f7(){try{return"sessionStorage"in qt&&!!qt.sessionStorage}catch{return!1}}function aVe(e){iVe(),e.session=void 0}function iVe(){if(f7())try{qt.sessionStorage.removeItem(n7)}catch{}}function Nte(e){return e===void 0?!1:Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(He&&Ge.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function dVe(e,t){try{if(typeof t=="function"&&lVe(e))return t(e)}catch(n){return He&&Ge.exception(n,"An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function p7(e){return!e.type}function C8(e){return e.type==="transaction"}function fVe(e){return e.type==="replay_event"}function UL(e){return e.type==="feedback"}function hVe(e){return(t,n)=>{if(!e.isEnabled()||!p7(t)&&!C8(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(C8(t)){mVe(e,t);return}pVe(e,t)}}}function mVe(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function pVe(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||qh(()=>{e.sendBufferedReplayOrFlush()})}function gVe(e){return t=>{!e.isEnabled()||!p7(t)||yVe(e,t)}}function yVe(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=Pi({category:"replay.hydrate-error",data:{url:YZ()}});jb(e,r)}}function bVe(e){const t=gt();t&&t.on("beforeAddBreadcrumb",n=>vVe(e,n))}function vVe(e,t){if(!e.isEnabled()||!$te(t))return;const n=wVe(t);n&&jb(e,n)}function wVe(e){return!$te(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?EVe(e):Pi(e)}function EVe(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Pi(e);let n=!1;const r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>qv?(n=!0,`${o.slice(0,qv)}…`):o;if(typeof o=="object")try{const a=_i(o,7);return JSON.stringify(a).length>qv?(n=!0,`${JSON.stringify(a,null,2).slice(0,qv)}…`):a}catch{}return o});return Pi({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function $te(e){return!!e.category}function _Ve(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function xVe(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:it.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function CVe(e,t){return e.recordingMode!=="buffer"||t.message===r7||!t.exception||t.type?!1:Nte(e.getOptions().errorSampleRate)}function SVe(e){return Object.assign((t,n)=>e.isEnabled()?fVe(t)?(delete t.breadcrumbs,t):!p7(t)&&!C8(t)&&!UL(t)||!e.checkAndHandleExpiredSession()?t:UL(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),xVe(e,t),t):_Ve(t,n)&&!e.getOptions()._experiments.captureExceptions?(He&&Ge.log("Ignoring error from rrweb internals",t),null):((CVe(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):t,{id:"Replay"})}function U6(e,t){return t.map(({type:n,start:r,end:o,name:a,data:i})=>{const s=e.throttledAddEvent({type:it.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:r,endTimestamp:o,data:i}}});return typeof s=="string"?Promise.resolve(null):s})}function TVe(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function AVe(e){return t=>{if(!e.isEnabled())return;const n=TVe(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(U6(e,[n]),!1)))}}function DVe(e,t){return He&&e.getOptions()._experiments.traceInternals?!1:tze(t,gt())}function zte(e,t){e.isEnabled()&&t!==null&&(DVe(e,t.name)||e.addUpdate(()=>(U6(e,[t]),!0)))}function $6(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Gte(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Hte(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function qte(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Gte(e)];if(!e)return[void 0]}catch(t){return He&&Ge.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return He&&Ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function r_(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Wte(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:a,statusCode:i,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:zn({method:a,statusCode:i,request:s,response:c})}}function Pg(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Xc(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:a}=kVe(n);return r.body=o,a&&a.length>0&&(r._meta={warnings:a}),r}function S8(e,t){return Object.entries(e).reduce((n,[r,o])=>{const a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=o),n},{})}function Gte(e){return new URLSearchParams(e).toString()}function kVe(e){if(!e||typeof e!="string")return{body:e};const t=e.length>xL,n=jVe(e);if(t){const r=e.slice(0,xL);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function jVe(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function o_(e,t){const n=PVe(e);return Qc(n,t)}function PVe(e,t=qt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(qt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function IVe(e,t,n){try{const r=await RVe(e,t,n),o=Wte("resource.fetch",r);zte(n.replay,o)}catch(r){He&&Ge.exception(r,"Failed to capture fetch breadcrumb")}}function OVe(e,t){const{input:n,response:r}=t,o=n?Vte(n):void 0,a=$6(o),i=r?Hte(r.headers.get("content-length")):void 0;a!==void 0&&(e.data.request_body_size=a),i!==void 0&&(e.data.response_body_size=i)}async function RVe(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:a=r}=t,{url:i,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=o_(i,n.networkDetailAllowUrls)&&!o_(i,n.networkDetailDenyUrls),f=d?NVe(n,t.input,l):Pg(l),h=await BVe(d,n,t.response,u);return{startTimestamp:o,endTimestamp:a,url:i,method:s,statusCode:c,request:f,response:h}}function NVe({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?LVe(n,t):{};if(!e)return Xc(o,r,void 0);const a=Vte(n),[i,s]=qte(a),c=Xc(o,r,i);return s?r_(c,s):c}async function BVe(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&o!==void 0)return Pg(o);const a=r?Kte(r.headers,n):{};if(!r||!t&&o!==void 0)return Xc(a,o,void 0);const[i,s]=await MVe(r),c=FVe(i,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:a});return s?r_(c,s):c}function FVe(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const a=e&&e.length&&n===void 0?$6(e):n;return r?t?Xc(o,a,e):Xc(o,a,void 0):Pg(a)}catch(a){return He&&Ge.exception(a,"Failed to serialize response body"),Xc(o,n,void 0)}}async function MVe(e){const t=UVe(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await $Ve(t)]}catch(n){return He&&Ge.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function Vte(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function Kte(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function LVe(e,t){return e.length===1&&typeof e[0]!="string"?$L(e[0],t):e.length===2?$L(e[1],t):{}}function $L(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Kte(n,t):Array.isArray(n)?{}:S8(n,t):{}}function UVe(e){try{return e.clone()}catch(t){He&&Ge.exception(t,"Failed to clone response body")}}function $Ve(e){return new Promise((t,n)=>{const r=qh(()=>n(new Error("Timeout while trying to read response body")),500);zVe(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function zVe(e){return await e.text()}async function HVe(e,t,n){try{const r=WVe(e,t,n),o=Wte("resource.xhr",r);zte(n.replay,o)}catch(r){He&&Ge.exception(r,"Failed to capture xhr breadcrumb")}}function qVe(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=$6(r),a=n.getResponseHeader("content-length")?Hte(n.getResponseHeader("content-length")):YVe(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),a!==void 0&&(e.data.response_body_size=a)}function WVe(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:a=r,input:i,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!s||!o_(c,n.networkDetailAllowUrls)||o_(c,n.networkDetailDenyUrls)){const x=Pg(d),E=Pg(f);return{startTimestamp:o,endTimestamp:a,url:c,method:l,statusCode:u,request:x,response:E}}const h=s[Eu],m=h?S8(h.request_headers,n.networkRequestHeaders):{},p=S8(GVe(s),n.networkResponseHeaders),[b,v]=n.networkCaptureBodies?qte(i):[void 0],[g,w]=n.networkCaptureBodies?VVe(s):[void 0],_=Xc(m,d,b),C=Xc(p,f,g);return{startTimestamp:o,endTimestamp:a,url:c,method:l,statusCode:u,request:v?r_(_,v):_,response:w?r_(C,w):C}}function GVe(e){const t=e.getAllResponseHeaders();return t?t.split(`\r -`).reduce((n,r)=>{const[o,a]=r.split(": ");return a&&(n[o.toLowerCase()]=a),n},{}):{}}function VVe(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return KVe(e.response,e.responseType)}catch(n){t.push(n)}return He&&Ge.warn("Failed to get xhr response body",...t),[void 0]}function KVe(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return He&&Ge.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return He&&Ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function YVe(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return $6(n)}catch{return}}function QVe(e){const t=gt();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:i}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(c,l)=>XVe(s,c,l))}catch{}}function XVe(e,t,n){if(t.data)try{JVe(t)&&eKe(n)&&(qVe(t,n),HVe(t,n,e)),ZVe(t)&&tKe(n)&&(OVe(t,n),IVe(t,n,e))}catch(r){He&&Ge.exception(r,"Error when enriching network breadcrumb")}}function JVe(e){return e.category==="xhr"}function ZVe(e){return e.category==="fetch"}function eKe(e){return e&&e.xhr}function tKe(e){return e&&e.response}function nKe(e){const t=gt();rte(IGe(e)),B6(AVe(e)),bVe(e),QVe(e);const n=SVe(e);L$e(n),t&&(t.on("beforeSendEvent",gVe(e)),t.on("afterSendEvent",hVe(e)),t.on("createDsc",r=>{const o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=o)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",(r,o)=>{const a=e.getSessionId();o&&o.includeReplay&&e.isEnabled()&&a&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=a)}))}async function rKe(e){try{return Promise.all(U6(e,[oKe(qt.performance.memory)]))}catch{return[]}}function oKe(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function aKe(e,t,n){let r,o,a;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return c(),r=e(),r}function c(){o!==void 0&&clearTimeout(o),a!==void 0&&clearTimeout(a),o=a=void 0}function l(){return o!==void 0||a!==void 0?s():r}function u(){return o&&clearTimeout(o),o=qh(s,t),i&&a===void 0&&(a=qh(s,i)),r}return u.cancel=c,u.flush=l,u}function iKe(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){He&&Ge.warn("Received replay event after session expired.");return}const o=r||!t;t=!0,e.clickDetector&&AGe(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!m7(e,n,o))return!0;if(!o)return!1;if(cKe(e,o),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){const a=e.eventBuffer.getEarliestTimestamp();a&&(He&&Ge.info(`Updating session start time to earliest event in buffer to ${new Date(a)}`),e.session.started=a,e.getOptions().stickySession&&h7(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function sKe(e){const t=e.getOptions();return{type:it.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function cKe(e,t){!t||!e.session||e.session.segmentId!==0||m7(e,sKe(e),!1)}function lKe(e,t,n,r){return Fd(mee(e,zP(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function uKe({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} -`;if(typeof e=="string")n=`${r}${e}`;else{const a=new TextEncoder().encode(r);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function dKe({client:e,scope:t,replayId:n,event:r}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a={event_id:n,integrations:o};e.emit("preprocessEvent",r,a);const i=await Iee(e.getOptions(),r,a,t,e,Pa());if(!i)return null;i.platform=i.platform||"javascript";const s=e.getSdkMetadata(),{name:c,version:l}=s&&s.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:l||"0.0.0"},i}async function fKe({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:a}){const i=uKe({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=gt(),f=Xt(),h=d&&d.getTransport(),m=d&&d.getDsn();if(!d||!h||!m||!a.sampled)return Rs({});const p={type:Kqe,replay_start_timestamp:u/1e3,timestamp:o/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled},b=await dKe({scope:f,client:d,replayId:t,event:p});if(!b)return d.recordDroppedEvent("event_processor","replay",p),He&&Ge.info("An event processor returned `null`, will not send event."),Rs({});delete b.sdkProcessingMetadata;const v=lKe(b,i,m,d.getOptions().tunnel);let g;try{g=await h.send(v)}catch(_){const C=new Error(r7);try{C.cause=_}catch{}throw C}if(typeof g.statusCode=="number"&&(g.statusCode<200||g.statusCode>=300))throw new Yte(g.statusCode);const w=gee({},g);if(pee(w,"replay"))throw new Qte(w);return g}class Yte extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Qte extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Xte(e,t={count:0,interval:eWe}){const{recordingData:n,options:r}=e;if(n.length)try{return await fKe(e),!0}catch(o){if(o instanceof Yte||o instanceof Qte)throw o;if(Ree("Replays",{_retryCount:t.count}),He&&r._experiments&&r._experiments.captureExceptions&&YP(o),t.count>=tWe){const a=new Error(`${r7} - max retries exceeded`);try{a.cause=o}catch{}throw a}return t.interval*=++t.count,new Promise((a,i)=>{qh(async()=>{try{await Xte(e,t),a(!0)}catch(s){i(s)}},t.interval)})}}const Jte="__THROTTLED",hKe="__SKIPPED";function mKe(e,t,n){const r=new Map,o=s=>{const c=s-n;r.forEach((l,u)=>{u[...r.values()].reduce((s,c)=>s+c,0);let i=!1;return(...s)=>{const c=Math.floor(Date.now()/1e3);if(o(c),a()>=t){const u=i;return i=!0,u?hKe:Jte}i=!1;const l=r.get(c)||0;return r.set(c,l+1),e(...s)}}class Dc{constructor({options:t,recordingOptions:n}){Dc.prototype.__init.call(this),Dc.prototype.__init2.call(this),Dc.prototype.__init3.call(this),Dc.prototype.__init4.call(this),Dc.prototype.__init5.call(this),Dc.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Yqe,sessionIdleExpire:Qqe},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=aKe(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=mKe((i,s)=>uVe(this,i,s),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),a=r?{threshold:Math.min(nWe,r),timeout:r,scrollTimeout:rWe,ignoreSelector:o?o.join(","):""}:void 0;if(a&&(this.clickDetector=new xGe(this,a)),He){const i=t._experiments;Ge.setConfig({captureExceptions:!!i.captureExceptions,traceInternals:!!i.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){He&&Ge.exception(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,o=n<=0&&r<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){He&&Ge.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",He&&Ge.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){He&&Ge.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){He&&Ge.info("Buffering is in progress, call `flush()` to save the replay");return}He&&Ge.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=RT({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){He&&Ge.info("Buffering is in progress, call `flush()` to save the replay");return}He&&Ge.infoTick("Starting replay in buffer mode");const t=RT({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=ys({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:Zqe},emit:iKe(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{He&&Ge.info(`Stopping Replay${n?` triggered by ${n}`:""}`),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,aVe(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),He&&Ge.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),He&&Ge.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();He&&Ge.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&x8(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${qt.location.pathname}${qt.location.hash}${qt.location.search}`,n=`${qt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===Jte){const o=Pi({category:"replay.throttled"});this.addUpdate(()=>!m7(this,{type:gGe,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Ur(),n=t&&gr(t),o=(n&&_t(n).data||{})[is];if(!(!n||!o||!["route","custom"].includes(o)))return _t(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=nVe({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=RT({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Mte(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{qt.document.addEventListener("visibilitychange",this._handleVisibilityChange),qt.addEventListener("blur",this._handleWindowBlur),qt.addEventListener("focus",this._handleWindowFocus),qt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(nKe(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=QGe(this)}_removeListeners(){try{qt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),qt.removeEventListener("blur",this._handleWindowBlur),qt.removeEventListener("focus",this._handleWindowFocus),qt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{qt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Pi({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Pi({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{BGe(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Fte(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){He&&Ge.info("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:it.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=UGe(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(U6(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&rthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await Xte({replayId:t,recordingData:a,segmentId:o,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=gt();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){He&&Ge.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const a=othis._options.maxReplayDuration+5e3;if(a||i){He&&Ge.info(`Session duration (${Math.floor(o/1e3)}s) is too ${a?"short":"long"}, not sending replay.`),a&&this._debouncedFlush();return}const s=this.eventBuffer;if(s&&this.session.segmentId===0&&!s.hasCheckout&&He&&Ge.info("Flushing initial segment without checkout."),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(c){He&&Ge.error(c)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&h7(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>o||a){const i=Pi({category:"replay.mutations",data:{count:n,limit:a}});this._createCustomBreadcrumb(i)}return a?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function qp(e,t){return[...e,...t].join(",")}function pKe({mask:e,unmask:t,block:n,unblock:r,ignore:o}){const a=['base[href="/"]'],i=qp(e,[".sentry-mask","[data-sentry-mask]"]),s=qp(t,[]);return{maskTextSelector:i,unmaskTextSelector:s,blockSelector:qp(n,[".sentry-block","[data-sentry-block]",...a]),unblockSelector:qp(r,[]),ignoreSelector:qp(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function gKe({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:a}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?a:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}const zL='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',yKe=["content-length","content-type","accept"];let HL=!1;const bKe=e=>new z6(e);class z6{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=Xqe,flushMaxDelay:n=Jqe,minReplayDuration:r=oWe,maxReplayDuration:o=CL,stickySession:a=!0,useCompression:i=!0,workerUrl:s,_experiments:c={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:f=750,mutationLimit:h=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:b=[],networkDetailDenyUrls:v=[],networkCaptureBodies:g=!0,networkRequestHeaders:w=[],networkResponseHeaders:_=[],mask:C=[],maskAttributes:x=["title","placeholder"],unmask:E=[],block:T=[],unblock:k=[],ignore:D=[],maskFn:R,beforeAddRecordingEvent:F,beforeErrorSampling:B}={}){this.name=z6.id;const j=pKe({mask:C,unmask:E,block:T,unblock:k,ignore:D});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:R,maskInputFn:R,maskAttributeFn:(P,O,I)=>gKe({maskAttributes:x,maskAllText:l,privacyOptions:j,key:P,value:O,el:I}),...j,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:P=>{try{P.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,aWe),maxReplayDuration:Math.min(o,CL),stickySession:a,useCompression:i,workerUrl:s,blockAllMedia:d,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:f,mutationLimit:h,slowClickTimeout:m,slowClickIgnoreSelectors:p,networkDetailAllowUrls:b,networkDetailDenyUrls:v,networkCaptureBodies:g,networkRequestHeaders:qL(w),networkResponseHeaders:qL(_),beforeAddRecordingEvent:F,beforeErrorSampling:B,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${zL}`:zL),this._isInitialized&&UM())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return HL}set _isInitialized(t){HL=t}afterAllSetup(t){!UM()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=vKe(this._initialOptions,t);this._replay=new Dc({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}z6.__initStatic();function vKe(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...zn(e)},o=GE(n.replaysSessionSampleRate),a=GE(n.replaysOnErrorSampleRate);return o==null&&a==null&&Gm(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(r.sessionSampleRate=o),a!=null&&(r.errorSampleRate=a),r}function qL(e){return[...yKe,...e.map(t=>t.toLowerCase())]}const WL=new WeakMap,NT=new Map,T8={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function wKe(e,t){const{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:o,enableHTTPTimings:a,tracePropagationTargets:i}={traceFetch:T8.traceFetch,traceXHR:T8.traceXHR,...t},s=typeof o=="function"?o:u=>!0,c=u=>CKe(u,i),l={};n&&(e.addEventProcessor(u=>(u.type==="transaction"&&u.spans&&u.spans.forEach(d=>{if(d.op==="http.client"){const f=NT.get(d.span_id);f&&(d.timestamp=f/1e3,NT.delete(d.span_id))}}),u)),rUe(u=>{if(u.response){const d=WL.get(u.response);d&&u.endTimestamp&&NT.set(d,u.endTimestamp)}}),oee(u=>{const d=Dze(u,s,c,l);if(u.response&&u.fetchData.__span&&WL.set(u.response,u.fetchData.__span),d){const f=Zte(u.fetchData.url),h=f?ju(f).host:void 0;d.setAttributes({"http.url":f,"server.address":h})}a&&d&&GL(d)})),r&&ate(u=>{const d=SKe(u,s,c,l);a&&d&&GL(d)})}function EKe(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function GL(e){const{url:t}=_t(e).data||{};if(!t||typeof t!="string")return;const n=zh("resource",({entries:r})=>{r.forEach(o=>{EKe(o)&&o.name.endsWith(t)&&(xKe(o).forEach(i=>e.setAttribute(...i)),setTimeout(n))})})}function _Ke(e){let t="unknown",n="unknown",r="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function vi(e=0){return((ao||performance.timeOrigin)+e)/1e3}function xKe(e){const{name:t,version:n}=_Ke(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),ao?[...r,["http.request.redirect_start",vi(e.redirectStart)],["http.request.fetch_start",vi(e.fetchStart)],["http.request.domain_lookup_start",vi(e.domainLookupStart)],["http.request.domain_lookup_end",vi(e.domainLookupEnd)],["http.request.connect_start",vi(e.connectStart)],["http.request.secure_connection_start",vi(e.secureConnectionStart)],["http.request.connection_end",vi(e.connectEnd)],["http.request.request_start",vi(e.requestStart)],["http.request.response_start",vi(e.responseStart)],["http.request.response_end",vi(e.responseEnd)]]:r}function CKe(e,t){const n=et.location&&et.location.href;if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const a=r.origin===o;return t?Qc(r.toString(),t)||a&&Qc(r.pathname,t):a}else{const r=!!e.match(/^\/(?!\/)/);return t?Qc(e,t):r}}function SKe(e,t,n,r){const o=e.xhr,a=o&&o[Eu];if(!o||o.__sentry_own_request__||!a)return;const i=yl()&&t(a.url);if(e.endTimestamp&&i){const f=o.__sentry_xhr_span_id__;if(!f)return;const h=r[f];h&&a.status_code!==void 0&&(vee(h,a.status_code),h.end(),delete r[f]);return}const s=Zte(a.url),c=s?ju(s).host:void 0,l=!!Ur(),u=i&&l?zl({name:`${a.method} ${a.url}`,attributes:{type:"xhr","http.method":a.method,"http.url":s,url:a.url,"server.address":c,[rr]:"auto.http.browser",[sd]:"http.client"}}):new Km;o.__sentry_xhr_span_id__=u.spanContext().spanId,r[o.__sentry_xhr_span_id__]=u;const d=gt();return o.setRequestHeader&&n(a.url)&&d&&TKe(o,d,yl()&&l?u:void 0),u}function TKe(e,t,n){const r=Xt(),o=Pa(),{traceId:a,spanId:i,sampled:s,dsc:c}={...o.getPropagationContext(),...r.getPropagationContext()},l=n&&yl()?_ee(n):$P(a,i,s),u=hee(c||(n?Ld(n):O6(a,t)));AKe(e,l,u)}function AKe(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(t8,n)}catch{}}function Zte(e){try{return new URL(e,et.location.origin).href}catch{return}}function DKe(){et&&et.document?et.document.addEventListener("visibilitychange",()=>{const e=Ur();if(!e)return;const t=gr(e);if(et.document.hidden&&t){const n="cancelled",{op:r,status:o}=_t(t);ii&&ye.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:Vn,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ii&&ye.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const kKe="BrowserTracing",jKe={...B1,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...T8},PKe=(e={})=>{i$e();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:o,enableStandaloneClsSpans:a},beforeStartSpan:i,idleTimeout:s,finalTimeout:c,childSpanTimeout:l,markBackgroundSpan:u,traceFetch:d,traceXHR:f,shouldCreateSpanForRequest:h,enableHTTPTimings:m,instrumentPageLoad:p,instrumentNavigation:b}={...jKe,...e},v=SHe({recordClsStandaloneSpans:a||!1});t&&YHe(),r&&bt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?AHe():n&&THe(),o&&DHe();const g={name:void 0,source:void 0};function w(_,C){const x=C.op==="pageload",E=i?i(C):C,T=E.attributes||{};C.name!==E.name&&(T[is]="custom",E.attributes=T),g.name=E.name,g.source=T[is];const k=Pee(E,{idleTimeout:s,finalTimeout:c,childSpanTimeout:l,disableAutoFinish:x,beforeSpanEnd:R=>{v(),OHe(R,{recordClsOnPageloadSpan:!a})}});function D(){["interactive","complete"].includes(et.document.readyState)&&_.emit("idleSpanEnableAutoFinish",k)}return x&&et.document&&(et.document.addEventListener("readystatechange",()=>{D()}),D()),k}return{name:kKe,afterAllSetup(_){let C,x=et.location&&et.location.href;_.on("startNavigationSpan",E=>{gt()===_&&(C&&!_t(C).timestamp&&(ii&&ye.log(`[Tracing] Finishing current root span with op: ${_t(C).op}`),C.end()),C=w(_,{op:"navigation",...E}))}),_.on("startPageLoadSpan",(E,T={})=>{if(gt()!==_)return;C&&!_t(C).timestamp&&(ii&&ye.log(`[Tracing] Finishing current root span with op: ${_t(C).op}`),C.end());const k=T.sentryTrace||VL("sentry-trace"),D=T.baggage||VL("baggage"),R=AUe(k,D);Xt().setPropagationContext(R),C=w(_,{op:"pageload",...E})}),_.on("spanEnd",E=>{const T=_t(E).op;if(E!==gr(E)||T!=="navigation"&&T!=="pageload")return;const k=Xt(),D=k.getPropagationContext();k.setPropagationContext({...D,sampled:D.sampled!==void 0?D.sampled:Md(E),dsc:D.dsc||Ld(E)})}),et.location&&(p&&IKe(_,{name:et.location.pathname,startTime:ao?ao/1e3:void 0,attributes:{[is]:"url",[rr]:"auto.pageload.browser"}}),b&&B6(({to:E,from:T})=>{if(T===void 0&&x&&x.indexOf(E)!==-1){x=void 0;return}T!==E&&(x=void 0,OKe(_,{name:et.location.pathname,attributes:{[is]:"url",[rr]:"auto.navigation.browser"}}))})),u&&DKe(),o&&RKe(s,c,l,g),t&&XHe(),wKe(_,{traceFetch:d,traceXHR:f,tracePropagationTargets:_.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:h,enableHTTPTimings:m})}}};function IKe(e,t,n){e.emit("startPageLoadSpan",t,n),Xt().setTransactionName(t.name);const r=Ur();return(r&&_t(r).op)==="pageload"?r:void 0}function OKe(e,t){Pa().setPropagationContext(qE()),Xt().setPropagationContext(qE()),e.emit("startNavigationSpan",t),Xt().setTransactionName(t.name);const n=Ur();return(n&&_t(n).op)==="navigation"?n:void 0}function VL(e){const t=ULe(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function RKe(e,t,n,r){let o;const a=()=>{const i="ui.action.click",s=Ur(),c=s&&gr(s);if(c){const l=_t(c).op;if(["navigation","pageload"].includes(l)){ii&&ye.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(a8,"interactionInterrupted"),o.end(),o=void 0),!r.name){ii&&ye.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}o=Pee({name:r.name,op:i,attributes:{[is]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};et.document&&addEventListener("click",a,{once:!1,capture:!0})}function NKe(e){const t={...e};return Uee(t,"react"),Ree("react",{version:S.version}),Gqe(t)}NKe({dsn:"https://a66eef9c0aaa54aab451554089b9bebd@o4507939319906304.ingest.us.sentry.io/4507939325411328",integrations:[PKe(),bKe()],tracesSampleRate:1,tracePropagationTargets:["localhost",/^https:\/\/yourserver\.io\/api/],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1});BT.createRoot(document.getElementById("root")).render(y.jsxs(A.StrictMode,{children:[y.jsx(iie,{router:SLe}),y.jsx(jLe,{})]}));const KL=Object.freeze(Object.defineProperty({__proto__:null,default:yD},Symbol.toStringTag,{value:"Module"}));export{u2 as $,s9 as A,de as B,nh as C,VYe as D,KYe as E,YYe as F,vSe as G,g0 as H,Wo as I,tQe as J,QYe as K,JYe as L,SQe as M,Ic as N,eQe as O,ZYe as P,YQ as Q,Eo as R,nQe as S,cQe as T,UQe as U,CQe as V,$Qe as W,oQe as X,HQe as Y,Cy as Z,me as _,pde as a,fSe as a$,fQe as a0,wQe as a1,vQe as a2,sQe as a3,mQe as a4,jh as a5,hQe as a6,jQe as a7,xQe as a8,Da as a9,NQe as aA,IQe as aB,BQe as aC,LQe as aD,OQe as aE,RQe as aF,FQe as aG,kQe as aH,VSe as aI,JQ as aJ,D3 as aK,WYe as aL,GYe as aM,HQ as aN,z6e as aO,O4 as aP,H6e as aQ,q6e as aR,G6e as aS,I4 as aT,Y6e as aU,J6e as aV,tSe as aW,rSe as aX,aSe as aY,l6e as aZ,qQ as a_,dQe as aa,lQe as ab,uQe as ac,Sy as ad,d2 as ae,QQ as af,aQe as ag,iQe as ah,XYe as ai,yQe as aj,bQe as ak,f2 as al,rQe as am,F4 as an,EQe as ao,gQe as ap,pQe as aq,_Qe as ar,zQe as as,DQe as at,AQe as au,n3e as av,MQe as aw,PQe as ax,r3e as ay,TQe as az,gde as b,hSe as b0,cSe as b1,dSe as b2,wy as b3,Z2e as b4,zYe as b5,yde as c,Lq as d,j_ as e,oue as f,nde as g,z_ as h,Hn as i,Cs as j,Vg as k,tde as l,Ea as m,l1 as n,We as o,cd as p,gX as q,l2 as r,Qr as s,Ns as t,Au as u,ot as v,si as w,r2 as x,Ya as y,ai as z}; -//# sourceMappingURL=index-Cl-fQh5M.js.map diff --git a/apps/web/public/assets/index-Cnb0ezsQ.js b/apps/web/public/assets/index-Cnb0ezsQ.js deleted file mode 100644 index 4a142ab5..00000000 --- a/apps/web/public/assets/index-Cnb0ezsQ.js +++ /dev/null @@ -1,48 +0,0 @@ -import{n as fe,s as Ke,T as k,t as P,a as g,o as Y,R as Dr,p as H,y as ae}from"./index-Dy-WAr9t.js";import{b3 as Ur}from"./index-Bl6Lkf65.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="65c96809-9004-426d-8ae7-9fcf9dfa63d1",t._sentryDebugIdIdentifier="sentry-dbid-65c96809-9004-426d-8ae7-9fcf9dfa63d1")}catch{}})();/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Qe=window,jt=Qe.ShadowRoot&&(Qe.ShadyCSS===void 0||Qe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ht=Symbol(),Vt=new WeakMap;let br=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Ht)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(jt&&e===void 0){const i=r!==void 0&&r.length===1;i&&(e=Vt.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Vt.set(r,e))}return e}toString(){return this.cssText}};const jr=t=>new br(typeof t=="string"?t:t+"",void 0,Ht),C=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((i,o,n)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[n+1],t[0]);return new br(r,t,Ht)},Hr=(t,e)=>{jt?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const i=document.createElement("style"),o=Qe.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,t.appendChild(i)})},Ft=jt?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const i of e.cssRules)r+=i.cssText;return jr(r)})(t):t;/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */var rt;const Ye=window,qt=Ye.trustedTypes,Br=qt?qt.emptyScript:"",Kt=Ye.reactiveElementPolyfillSupport,Lt={toAttribute(t,e){switch(e){case Boolean:t=t?Br:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},yr=(t,e)=>e!==t&&(e==e||t==t),ot={attribute:!0,type:String,converter:Lt,reflect:!1,hasChanged:yr},Pt="finalized";let ue=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,i)=>{const o=this._$Ep(i,r);o!==void 0&&(this._$Ev.set(o,i),e.push(o))}),e}static createProperty(e,r=ot){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const i=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,r);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,r,i){return{get(){return this[r]},set(o){const n=this[e];this[r]=o,this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||ot}static finalize(){if(this.hasOwnProperty(Pt))return!1;this[Pt]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const o of i)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)r.unshift(Ft(o))}else e!==void 0&&r.push(Ft(e));return r}static _$Ep(e,r){const i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Hr(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostConnected)===null||i===void 0?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)})}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r,i=ot){var o;const n=this.constructor._$Ep(e,i);if(n!==void 0&&i.reflect===!0){const a=(((o=i.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?i.converter:Lt).toAttribute(r,i.type);this._$El=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$El=null}}_$AK(e,r){var i;const o=this.constructor,n=o._$Ev.get(e);if(n!==void 0&&this._$El!==n){const a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?a.converter:Lt;this._$El=n,this[n]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,i){let o=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||yr)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,n)=>this[n]=o),this._$Ei=void 0);let r=!1;const i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var n;return(n=o.hostUpdate)===null||n===void 0?void 0:n.call(o)}),this.update(i)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(i)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var o;return(o=i.hostUpdated)===null||o===void 0?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};ue[Pt]=!0,ue.elementProperties=new Map,ue.elementStyles=[],ue.shadowRootOptions={mode:"open"},Kt==null||Kt({ReactiveElement:ue}),((rt=Ye.reactiveElementVersions)!==null&&rt!==void 0?rt:Ye.reactiveElementVersions=[]).push("1.6.3");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */var it;const Ge=window,be=Ge.trustedTypes,Qt=be?be.createPolicy("lit-html",{createHTML:t=>t}):void 0,Wt="$lit$",Q=`lit$${(Math.random()+"").slice(9)}$`,xr="?"+Q,Zr=`<${xr}>`,se=document,Se=()=>se.createComment(""),Le=t=>t===null||typeof t!="object"&&typeof t!="function",$r=Array.isArray,zr=t=>$r(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",nt=`[ -\f\r]`,Ce=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yt=/-->/g,Gt=/>/g,ee=RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Xt=/'/g,Jt=/"/g,Cr=/^(?:script|style|textarea|title)$/i,_r=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),l=_r(1),E=_r(2),le=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),er=new WeakMap,ie=se.createTreeWalker(se,129,null,!1);function Ar(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Qt!==void 0?Qt.createHTML(e):e}const Vr=(t,e)=>{const r=t.length-1,i=[];let o,n=e===2?"":"",a=Ce;for(let s=0;s"?(a=o??Ce,$=-1):x[1]===void 0?$=-2:($=a.lastIndex-x[2].length,d=x[1],a=x[3]===void 0?ee:x[3]==='"'?Jt:Xt):a===Jt||a===Xt?a=ee:a===Yt||a===Gt?a=Ce:(a=ee,o=void 0);const A=a===ee&&t[s+1].startsWith("/>")?" ":"";n+=a===Ce?c+Zr:$>=0?(i.push(d),c.slice(0,$)+Wt+c.slice($)+Q+A):c+Q+($===-2?(i.push(void 0),s):A)}return[Ar(t,n+(t[r]||"")+(e===2?"":"")),i]};class Pe{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[d,x]=Vr(e,r);if(this.el=Pe.createElement(d,i),ie.currentNode=this.el.content,r===2){const $=this.el.content,m=$.firstChild;m.remove(),$.append(...m.childNodes)}for(;(o=ie.nextNode())!==null&&c.length0){o.textContent=be?be.emptyScript:"";for(let A=0;A2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=M}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,o){const n=this.strings;let a=!1;if(n===void 0)e=ye(this,e,r,0),a=!Le(e)||e!==this._$AH&&e!==le,a&&(this._$AH=e);else{const s=e;let c,d;for(e=n[0],c=0;c{var i,o;const n=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:e;let a=n._$litPart$;if(a===void 0){const s=(o=r==null?void 0:r.renderBefore)!==null&&o!==void 0?o:null;n._$litPart$=a=new Ne(e.insertBefore(Se(),s),s,void 0,r??{})}return a._$AI(t),a};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */var at,st;class w extends ue{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const i=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Xr(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return le}}w.finalized=!0,w._$litElement$=!0,(at=globalThis.litElementHydrateSupport)===null||at===void 0||at.call(globalThis,{LitElement:w});const rr=globalThis.litElementPolyfillSupport;rr==null||rr({LitElement:w});((st=globalThis.litElementVersions)!==null&&st!==void 0?st:globalThis.litElementVersions=[]).push("3.3.3");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const y=t=>e=>typeof e=="function"?((r,i)=>(customElements.define(r,i),i))(t,e):((r,i)=>{const{kind:o,elements:n}=i;return{kind:o,elements:n,finisher(a){customElements.define(r,a)}}})(t,e);/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Jr=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}},eo=(t,e,r)=>{e.constructor.createProperty(r,t)};function p(t){return(e,r)=>r!==void 0?eo(t,e,r):Jr(t,e)}/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function W(t){return p({...t,state:!0})}/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */var lt;((lt=window.HTMLSlotElement)===null||lt===void 0?void 0:lt.prototype.assignedElements)!=null;/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const to={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ro=t=>(...e)=>({_$litDirective$:t,values:e});class oo{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}/** - * @license - * Copyright 2018 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Z=ro(class extends oo{constructor(t){var e;if(super(t),t.type!==to.ATTRIBUTE||t.name!=="class"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,i;if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in e)e[n]&&!(!((r=this.nt)===null||r===void 0)&&r.has(n))&&this.it.add(n);return this.render(e)}const o=t.element.classList;this.it.forEach(n=>{n in e||(o.remove(n),this.it.delete(n))});for(const n in e){const a=!!e[n];a===this.it.has(n)||!((i=this.nt)===null||i===void 0)&&i.has(n)||(a?(o.add(n),this.it.add(n)):(o.remove(n),this.it.delete(n)))}return le}});function io(t,e){t.indexOf(e)===-1&&t.push(e)}const Er=(t,e,r)=>Math.min(Math.max(r,t),e),D={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Xe=t=>typeof t=="number",we=t=>Array.isArray(t)&&!Xe(t[0]),no=(t,e,r)=>{const i=e-t;return((r-t)%i+i)%i+t};function ao(t,e){return we(t)?t[no(0,t.length,e)]:t}const kr=(t,e,r)=>-r*t+r*e+t,Or=()=>{},G=t=>t,Bt=(t,e,r)=>e-t===0?1:(r-t)/(e-t);function Ir(t,e){const r=t[t.length-1];for(let i=1;i<=e;i++){const o=Bt(0,e,i);t.push(kr(r,1,o))}}function so(t){const e=[0];return Ir(e,t-1),e}function lo(t,e=so(t.length),r=G){const i=t.length,o=i-e.length;return o>0&&Ir(e,o),n=>{let a=0;for(;aArray.isArray(t)&&Xe(t[0]),Nt=t=>typeof t=="object"&&!!t.createAnimation,xe=t=>typeof t=="function",co=t=>typeof t=="string",Re={ms:t=>t*1e3,s:t=>t/1e3},Mr=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,ho=1e-7,mo=12;function po(t,e,r,i,o){let n,a,s=0;do a=e+(r-e)/2,n=Mr(a,i,o)-t,n>0?r=a:e=a;while(Math.abs(n)>ho&&++spo(n,0,1,t,r);return n=>n===0||n===1?n:Mr(o(n),e,i)}const uo=(t,e="end")=>r=>{r=e==="end"?Math.min(r,.999):Math.max(r,.001);const i=r*t,o=e==="end"?Math.floor(i):Math.ceil(i);return Er(0,1,o/t)},go={ease:Me(.25,.1,.25,1),"ease-in":Me(.42,0,1,1),"ease-in-out":Me(.42,0,.58,1),"ease-out":Me(0,0,.58,1)},wo=/\((.*?)\)/;function or(t){if(xe(t))return t;if(Tr(t))return Me(...t);const e=go[t];if(e)return e;if(t.startsWith("steps")){const r=wo.exec(t);if(r){const i=r[1].split(",");return uo(parseFloat(i[0]),i[1].trim())}}return G}class Rr{constructor(e,r=[0,1],{easing:i,duration:o=D.duration,delay:n=D.delay,endDelay:a=D.endDelay,repeat:s=D.repeat,offset:c,direction:d="normal",autoplay:x=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=G,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((m,A)=>{this.resolve=m,this.reject=A}),i=i||D.easing,Nt(i)){const m=i.createAnimation(r);i=m.easing,r=m.keyframes||r,o=m.duration||o}this.repeat=s,this.easing=we(i)?G:or(i),this.updateDuration(o);const $=lo(r,c,we(i)?i.map(or):G);this.tick=m=>{var A;n=n;let f=0;this.pauseTime!==void 0?f=this.pauseTime:f=(m-this.startTime)*this.rate,this.t=f,f/=1e3,f=Math.max(f-n,0),this.playState==="finished"&&this.pauseTime===void 0&&(f=this.totalDuration);const u=f/this.duration;let I=Math.floor(u),b=u%1;!b&&u>=1&&(b=1),b===1&&I--;const R=I%2;(d==="reverse"||d==="alternate"&&R||d==="alternate-reverse"&&!R)&&(b=1-b);const S=f>=this.totalDuration?1:Math.min(b,1),N=$(this.easing(S));e(N),this.pauseTime===void 0&&(this.playState==="finished"||f>=this.totalDuration+a)?(this.playState="finished",(A=this.resolve)===null||A===void 0||A.call(this,N)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},x&&this.play()}play(){const e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}class vo{setAnimation(e){this.animation=e,e==null||e.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const ct=new WeakMap;function Sr(t){return ct.has(t)||ct.set(t,{transforms:[],values:new Map}),ct.get(t)}function fo(t,e){return t.has(e)||t.set(e,new vo),t.get(e)}const bo=["","X","Y","Z"],yo=["translate","scale","rotate","skew"],Je={x:"translateX",y:"translateY",z:"translateZ"},ir={syntax:"",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},xo={translate:{syntax:"",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:ir,scale:{syntax:"",initialValue:1,toDefaultUnit:G},skew:ir},We=new Map,Zt=t=>`--motion-${t}`,et=["x","y","z"];yo.forEach(t=>{bo.forEach(e=>{et.push(t+e),We.set(Zt(t+e),xo[t])})});const $o=(t,e)=>et.indexOf(t)-et.indexOf(e),Co=new Set(et),Lr=t=>Co.has(t),_o=(t,e)=>{Je[e]&&(e=Je[e]);const{transforms:r}=Sr(t);io(r,e),t.style.transform=Ao(r)},Ao=t=>t.sort($o).reduce(Eo,"").trim(),Eo=(t,e)=>`${t} ${e}(var(${Zt(e)}))`,Dt=t=>t.startsWith("--"),nr=new Set;function ko(t){if(!nr.has(t)){nr.add(t);try{const{syntax:e,initialValue:r}=We.has(t)?We.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:r})}catch{}}}const dt=(t,e)=>document.createElement("div").animate(t,e),ar={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{dt({opacity:[1]})}catch{return!1}return!0},finished:()=>!!dt({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{dt({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},ht={},ge={};for(const t in ar)ge[t]=()=>(ht[t]===void 0&&(ht[t]=ar[t]()),ht[t]);const Oo=.015,Io=(t,e)=>{let r="";const i=Math.round(e/Oo);for(let o=0;oxe(t)?ge.linearEasing()?`linear(${Io(t,e)})`:D.easing:Tr(t)?To(t):t,To=([t,e,r,i])=>`cubic-bezier(${t}, ${e}, ${r}, ${i})`;function Mo(t,e){for(let r=0;rArray.isArray(t)?t:[t];function Ut(t){return Je[t]&&(t=Je[t]),Lr(t)?Zt(t):t}const je={get:(t,e)=>{e=Ut(e);let r=Dt(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!r&&r!==0){const i=We.get(e);i&&(r=i.initialValue)}return r},set:(t,e,r)=>{e=Ut(e),Dt(e)?t.style.setProperty(e,r):t.style[e]=r}};function Pr(t,e=!0){if(!(!t||t.playState==="finished"))try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch{}}function So(t,e){var r;let i=(e==null?void 0:e.toDefaultUnit)||G;const o=t[t.length-1];if(co(o)){const n=((r=o.match(/(-?[\d.]+)([a-z%]*)/))===null||r===void 0?void 0:r[2])||"";n&&(i=a=>a+n)}return i}function Lo(){return window.__MOTION_DEV_TOOLS_RECORD}function Po(t,e,r,i={},o){const n=Lo(),a=i.record!==!1&&n;let s,{duration:c=D.duration,delay:d=D.delay,endDelay:x=D.endDelay,repeat:$=D.repeat,easing:m=D.easing,persist:A=!1,direction:f,offset:u,allowWebkitAcceleration:I=!1,autoplay:b=!0}=i;const R=Sr(t),S=Lr(e);let N=ge.waapi();S&&_o(t,e);const U=Ut(e),De=fo(R.values,U),z=We.get(U);return Pr(De.animation,!(Nt(m)&&De.generator)&&i.record!==!1),()=>{const Ue=()=>{var O,$e;return($e=(O=je.get(t,U))!==null&&O!==void 0?O:z==null?void 0:z.initialValue)!==null&&$e!==void 0?$e:0};let T=Mo(Ro(r),Ue);const zt=So(T,z);if(Nt(m)){const O=m.createAnimation(T,e!=="opacity",Ue,U,De);m=O.easing,T=O.keyframes||T,c=O.duration||c}if(Dt(U)&&(ge.cssRegisterProperty()?ko(U):N=!1),S&&!ge.linearEasing()&&(xe(m)||we(m)&&m.some(xe))&&(N=!1),N){z&&(T=T.map(J=>Xe(J)?z.toDefaultUnit(J):J)),T.length===1&&(!ge.partialKeyframes()||a)&&T.unshift(Ue());const O={delay:Re.ms(d),duration:Re.ms(c),endDelay:Re.ms(x),easing:we(m)?void 0:sr(m,c),direction:f,iterations:$+1,fill:"both"};s=t.animate({[U]:T,offset:u,easing:we(m)?m.map(J=>sr(J,c)):void 0},O),s.finished||(s.finished=new Promise((J,Nr)=>{s.onfinish=J,s.oncancel=Nr}));const $e=T[T.length-1];s.finished.then(()=>{A||(je.set(t,U,$e),s.cancel())}).catch(Or),I||(s.playbackRate=1.000001)}else if(o&&S)T=T.map(O=>typeof O=="string"?parseFloat(O):O),T.length===1&&T.unshift(parseFloat(Ue())),s=new o(O=>{je.set(t,U,zt?zt(O):O)},T,Object.assign(Object.assign({},i),{duration:c,easing:m}));else{const O=T[T.length-1];je.set(t,U,z&&Xe(O)?z.toDefaultUnit(O):O)}return a&&n(t,e,T,{duration:c,delay:d,easing:m,repeat:$,offset:u},"motion-one"),De.setAnimation(s),s&&!b&&s.pause(),s}}const Wo=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function No(t,e){return typeof t=="string"?t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}const Do=t=>t(),Wr=(t,e,r=D.duration)=>new Proxy({animations:t.map(Do).filter(Boolean),duration:r,options:e},jo),Uo=t=>t.animations[0],jo={get:(t,e)=>{const r=Uo(t);switch(e){case"duration":return t.duration;case"currentTime":return Re.s((r==null?void 0:r[e])||0);case"playbackRate":case"playState":return r==null?void 0:r[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(Ho)).catch(Or)),t.finished;case"stop":return()=>{t.animations.forEach(i=>Pr(i))};case"forEachNative":return i=>{t.animations.forEach(o=>i(o,t))};default:return typeof(r==null?void 0:r[e])>"u"?void 0:()=>t.animations.forEach(i=>i[e]())}},set:(t,e,r)=>{switch(e){case"currentTime":r=Re.ms(r);case"playbackRate":for(let i=0;it.finished;function Bo(t,e,r){return xe(t)?t(e,r):t}function Zo(t){return function(r,i,o={}){r=No(r);const n=r.length,a=[];for(let s=0;s{const r=new Rr(t,[0,1],e);return r.finished.catch(()=>{}),r}],e,e.duration)}function ne(t,e,r){return(xe(t)?Vo:zo)(t,e,r)}/** - * @license - * Copyright 2018 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const L=t=>t??M;var Fo=Object.defineProperty,lr=Object.getOwnPropertySymbols,qo=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable,cr=(t,e,r)=>e in t?Fo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mt=(t,e)=>{for(var r in e||(e={}))qo.call(e,r)&&cr(t,r,e[r]);if(lr)for(var r of lr(e))Ko.call(e,r)&&cr(t,r,e[r]);return t};function Qo(){var t;const e=(t=fe.state.themeMode)!=null?t:"dark",r={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[e];return{"--wcm-color-fg-1":r.foreground[1],"--wcm-color-fg-2":r.foreground[2],"--wcm-color-fg-3":r.foreground[3],"--wcm-color-bg-1":r.background[1],"--wcm-color-bg-2":r.background[2],"--wcm-color-bg-3":r.background[3],"--wcm-color-overlay":r.overlay}}function dr(){return{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}}const v={getPreset(t){return dr()[t]},setTheme(){const t=document.querySelector(":root"),{themeVariables:e}=fe.state;if(t){const r=mt(mt(mt({},Qo()),dr()),e);Object.entries(r).forEach(([i,o])=>t.style.setProperty(i,o))}},globalCss:C`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},Yo=C`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var Go=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,ce=(t,e,r,i)=>{for(var o=i>1?void 0:i?Xo(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Go(e,r,o),o};let V=class extends w{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const t={"wcm-icon-left":this.iconLeft!==void 0,"wcm-icon-right":this.iconRight!==void 0,"wcm-ghost":this.variant==="ghost","wcm-outline":this.variant==="outline"};let e="inverse";return this.variant==="ghost"&&(e="secondary"),this.variant==="outline"&&(e="accent"),l``}};V.styles=[v.globalCss,Yo],ce([p({type:Boolean})],V.prototype,"disabled",2),ce([p()],V.prototype,"iconLeft",2),ce([p()],V.prototype,"iconRight",2),ce([p()],V.prototype,"onClick",2),ce([p()],V.prototype,"variant",2),V=ce([y("wcm-button")],V);const Jo=C`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,pt=(t,e,r,i)=>{for(var o=i>1?void 0:i?ti(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&ei(e,r,o),o};let _e=class extends w{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const t={"wcm-secondary":this.variant==="secondary"};return l``}};_e.styles=[v.globalCss,Jo],pt([p({type:Boolean})],_e.prototype,"disabled",2),pt([p()],_e.prototype,"variant",2),_e=pt([y("wcm-button-big")],_e);const ri=C`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var oi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let ut=class extends w{render(){return l`
`}};ut.styles=[v.globalCss,ri],ut=oi([y("wcm-info-footer")],ut);const _={CROSS_ICON:E``,WALLET_CONNECT_LOGO:E``,WALLET_CONNECT_ICON:E``,WALLET_CONNECT_ICON_COLORED:E``,BACK_ICON:E``,COPY_ICON:E``,RETRY_ICON:E``,DESKTOP_ICON:E``,MOBILE_ICON:E``,ARROW_DOWN_ICON:E``,ARROW_UP_RIGHT_ICON:E``,ARROW_RIGHT_ICON:E``,QRCODE_ICON:E``,SCAN_ICON:E``,CHECKMARK_ICON:E``,SEARCH_ICON:E``,WALLET_PLACEHOLDER:E``,GLOBE_ICON:E``},ii=C`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var ni=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let gt=class extends w{render(){return l`
${_.WALLET_CONNECT_LOGO}
`}};gt.styles=[v.globalCss,ii],gt=ni([y("wcm-modal-backcard")],gt);const ai=C`main{padding:20px;padding-top:0;width:100%}`;var si=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let wt=class extends w{render(){return l`
`}};wt.styles=[v.globalCss,ai],wt=si([y("wcm-modal-content")],wt);const li=C`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var ci=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let vt=class extends w{render(){return l`
`}};vt.styles=[v.globalCss,li],vt=ci([y("wcm-modal-footer")],vt);const di=C`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var hi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,Ae=(t,e,r,i)=>{for(var o=i>1?void 0:i?mi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&hi(e,r,o),o};let te=class extends w{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return l``}actionBtnTemplate(){return l``}render(){const t={"wcm-border":this.border},e=k.state.history.length>1,r=this.title?l`${this.title}`:l``;return l`
${e?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}
`}};te.styles=[v.globalCss,di],Ae([p()],te.prototype,"title",2),Ae([p()],te.prototype,"onAction",2),Ae([p()],te.prototype,"actionIcon",2),Ae([p({type:Boolean})],te.prototype,"border",2),te=Ae([y("wcm-modal-header")],te);const h={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(t,e){const r=t.renderRoot.querySelector(e);if(!r)throw new Error(`${e} not found`);return r},getWalletIcon({id:t,image_id:e}){const{walletImages:r}=ae.state;return r!=null&&r[t]?r[t]:e?P.getWalletImageUrl(e):""},getWalletName(t,e=!1){return e&&t.length>8?`${t.substring(0,8)}..`:t},isMobileAnimation(){return window.innerWidth<=h.MOBILE_BREAKPOINT},async preloadImage(t){const e=new Promise((r,i)=>{const o=new Image;o.onload=r,o.onerror=i,o.crossOrigin="anonymous",o.src=t});return Promise.race([e,g.wait(3e3)])},getErrorMessage(t){return t instanceof Error?t.message:"Unknown Error"},debounce(t,e=500){let r;return(...i)=>{function o(){t(...i)}r&&clearTimeout(r),r=setTimeout(o,e)}},handleMobileLinking(t){const{walletConnectUri:e}=H.state,{mobile:r,name:i}=t,o=r==null?void 0:r.native,n=r==null?void 0:r.universal;h.setRecentWallet(t);function a(s){let c="";o?c=g.formatUniversalUrl(o,s,i):n&&(c=g.formatNativeUrl(n,s,i)),g.openHref(c,"_self")}e&&a(e)},handleAndroidLinking(){const{walletConnectUri:t}=H.state;t&&(g.setWalletConnectAndroidDeepLink(t),g.openHref(t,"_self"))},async handleUriCopy(){const{walletConnectUri:t}=H.state;if(t)try{await navigator.clipboard.writeText(t),Y.openToast("Link copied","success")}catch{Y.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:t}=ae.state,e=Object.values(t??{});return Object.values(e)},truncate(t,e=8){return t.length<=e?t:`${t.substring(0,4)}...${t.substring(t.length-4)}`},setRecentWallet(t){try{localStorage.setItem(h.WCM_RECENT_WALLET_DATA,JSON.stringify(t))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const t=localStorage.getItem(h.WCM_RECENT_WALLET_DATA);return t?JSON.parse(t):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes(t,e){return t.toUpperCase().includes(e.toUpperCase())},openWalletExplorerUrl(){g.openHref(h.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:t,mobile:e}=g.getWalletRouterData(),r=!!(t!=null&&t.native),i=!!(t!=null&&t.universal),o=!!(e!=null&&e.native)||!!(e!=null&&e.universal);return{isDesktop:r,isMobile:o,isWeb:i}},goToConnectingView(t){k.setData({Wallet:t});const e=g.isMobile(),{isDesktop:r,isWeb:i,isMobile:o}=h.getCachedRouterWalletPlatforms();e?o?k.push("MobileConnecting"):i?k.push("WebConnecting"):k.push("InstallWallet"):r?k.push("DesktopConnecting"):i?k.push("WebConnecting"):o?k.push("MobileQrcodeConnecting"):k.push("InstallWallet")}},pi=C`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var ui=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,ft=(t,e,r,i)=>{for(var o=i>1?void 0:i?gi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&ui(e,r,o),o};let Ee=class extends w{constructor(){super(),this.view=k.state.view,this.prevView=k.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=k.subscribe(t=>{this.view!==t.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([t])=>{const e=`${t.contentRect.height}px`;this.oldHeight!=="0px"&&ne(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),this.oldHeight=e}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var t,e;(t=this.unsubscribe)==null||t.call(this),(e=this.resizeObserver)==null||e.disconnect()}get routerEl(){return h.getShadowRootElement(this,".wcm-router")}get contentEl(){return h.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return l``;case"DesktopConnecting":return l``;case"MobileConnecting":return l``;case"WebConnecting":return l``;case"MobileQrcodeConnecting":return l``;case"WalletExplorer":return l``;case"Qrcode":return l``;case"InstallWallet":return l``;default:return l`
Not Found
`}}async onChangeRoute(){await ne(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=k.state.view,ne(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return l`
${this.viewTemplate()}
`}};Ee.styles=[v.globalCss,pi],ft([W()],Ee.prototype,"view",2),ft([W()],Ee.prototype,"prevView",2),Ee=ft([y("wcm-modal-router")],Ee);const wi=C`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var vi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,hr=(t,e,r,i)=>{for(var o=i>1?void 0:i?fi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&vi(e,r,o),o};let He=class extends w{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=Y.subscribe(t=>{t.open?(this.open=!0,this.timeout=setTimeout(()=>Y.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var t;(t=this.unsubscribe)==null||t.call(this),clearTimeout(this.timeout),Y.closeToast()}render(){const{message:t,variant:e}=Y.state,r={"wcm-success":e==="success","wcm-error":e==="error"};return this.open?l`
${e==="success"?_.CHECKMARK_ICON:null} ${e==="error"?_.CROSS_ICON:null}${t}
`:null}};He.styles=[v.globalCss,wi],hr([W()],He.prototype,"open",2),He=hr([y("wcm-modal-toast")],He);const bi=.1,mr=2.5,B=7;function bt(t,e,r){return t===e?!1:(t-e<0?e-t:t-e)<=r+bi}function yi(t,e){const r=Array.prototype.slice.call(Ur.create(t,{errorCorrectionLevel:e}).modules.data,0),i=Math.sqrt(r.length);return r.reduce((o,n,a)=>(a%i===0?o.push([n]):o[o.length-1].push(n))&&o,[])}const xi={generate(t,e,r){const i="#141414",o="#ffffff",n=[],a=yi(t,"Q"),s=e/a.length,c=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];c.forEach(({x:f,y:u})=>{const I=(a.length-B)*s*f,b=(a.length-B)*s*u,R=.45;for(let S=0;S`)}});const d=Math.floor((r+25)/s),x=a.length/2-d/2,$=a.length/2+d/2-1,m=[];a.forEach((f,u)=>{f.forEach((I,b)=>{if(a[u][b]&&!(ua.length-(B+1)&&ba.length-(B+1))&&!(u>x&&u<$&&b>x&&b<$)){const R=u*s+s/2,S=b*s+s/2;m.push([R,S])}})});const A={};return m.forEach(([f,u])=>{A[f]?A[f].push(u):A[f]=[u]}),Object.entries(A).map(([f,u])=>{const I=u.filter(b=>u.every(R=>!bt(b,R,s)));return[Number(f),I]}).forEach(([f,u])=>{u.forEach(I=>{n.push(E``)})}),Object.entries(A).filter(([f,u])=>u.length>1).map(([f,u])=>{const I=u.filter(b=>u.some(R=>bt(b,R,s)));return[Number(f),I]}).map(([f,u])=>{u.sort((b,R)=>bS.some(N=>bt(b,N,s)));R?R.push(b):I.push([b])}return[f,I.map(b=>[b[0],b[b.length-1]])]}).forEach(([f,u])=>{u.forEach(([I,b])=>{n.push(E``)})}),n}},$i=C`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var Ci=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,de=(t,e,r,i)=>{for(var o=i>1?void 0:i?_i(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Ci(e,r,o),o};let F=class extends w{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const t=fe.state.themeMode==="light"?this.size:this.size-36;return E`${xi.generate(this.uri,t,t/4)}`}render(){const t={"wcm-dark":fe.state.themeMode==="dark"};return l`
${this.walletId||this.imageUrl?l``:_.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};F.styles=[v.globalCss,$i],de([p()],F.prototype,"uri",2),de([p({type:Number})],F.prototype,"size",2),de([p()],F.prototype,"imageId",2),de([p()],F.prototype,"walletId",2),de([p()],F.prototype,"imageUrl",2),F=de([y("wcm-qrcode")],F);const Ai=C`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var Ei=Object.defineProperty,ki=Object.getOwnPropertyDescriptor,pr=(t,e,r,i)=>{for(var o=i>1?void 0:i?ki(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Ei(e,r,o),o};let Be=class extends w{constructor(){super(...arguments),this.onChange=()=>null}render(){return l` ${_.SEARCH_ICON}`}};Be.styles=[v.globalCss,Ai],pr([p()],Be.prototype,"onChange",2),Be=pr([y("wcm-search-input")],Be);const Oi=C`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;var Ii=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let yt=class extends w{render(){return l``}};yt.styles=[v.globalCss,Oi],yt=Ii([y("wcm-spinner")],yt);const Ti=C`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var Mi=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,xt=(t,e,r,i)=>{for(var o=i>1?void 0:i?Ri(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Mi(e,r,o),o};let ke=class extends w{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const t={"wcm-big-bold":this.variant==="big-bold","wcm-medium-regular":this.variant==="medium-regular","wcm-small-regular":this.variant==="small-regular","wcm-small-thin":this.variant==="small-thin","wcm-xsmall-regular":this.variant==="xsmall-regular","wcm-xsmall-bold":this.variant==="xsmall-bold","wcm-color-primary":this.color==="primary","wcm-color-secondary":this.color==="secondary","wcm-color-tertiary":this.color==="tertiary","wcm-color-inverse":this.color==="inverse","wcm-color-accnt":this.color==="accent","wcm-color-error":this.color==="error"};return l``}};ke.styles=[v.globalCss,Ti],xt([p()],ke.prototype,"variant",2),xt([p()],ke.prototype,"color",2),ke=xt([y("wcm-text")],ke);const Si=C`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var Li=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,q=(t,e,r,i)=>{for(var o=i>1?void 0:i?Pi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Li(e,r,o),o};let j=class extends w{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?l`RECENT`:this.installed?l`INSTALLED`:null}handleClick(){Dr.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var t;return l``}};j.styles=[v.globalCss,Si],q([p()],j.prototype,"onClick",2),q([p()],j.prototype,"name",2),q([p()],j.prototype,"walletId",2),q([p()],j.prototype,"label",2),q([p()],j.prototype,"imageId",2),q([p({type:Boolean})],j.prototype,"installed",2),q([p({type:Boolean})],j.prototype,"recent",2),j=q([y("wcm-wallet-button")],j);const Wi=C`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Ni=Object.defineProperty,Di=Object.getOwnPropertyDescriptor,Ze=(t,e,r,i)=>{for(var o=i>1?void 0:i?Di(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Ni(e,r,o),o};let he=class extends w{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var t;const e=(t=this.imageUrl)!=null&&t.length?this.imageUrl:h.getWalletIcon({id:this.walletId,image_id:this.imageId});return l`${e.length?l`
${this.id}
`:_.WALLET_PLACEHOLDER}`}};he.styles=[v.globalCss,Wi],Ze([p()],he.prototype,"walletId",2),Ze([p()],he.prototype,"imageId",2),Ze([p()],he.prototype,"imageUrl",2),he=Ze([y("wcm-wallet-image")],he);var Ui=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,ur=(t,e,r,i)=>{for(var o=i>1?void 0:i?ji(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Ui(e,r,o),o};let $t=class extends w{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(t){try{t!=null&&t.length&&await Promise.all(t.map(async e=>h.preloadImage(e)))}catch{console.info("Unsuccessful attempt at preloading some images",t)}}async preloadListings(){if(ae.state.enableExplorer){await P.getRecomendedWallets(),H.setIsDataLoaded(!0);const{recomendedWallets:t}=P.state,e=t.map(r=>h.getWalletIcon(r));await this.loadImages(e)}else H.setIsDataLoaded(!0)}async preloadCustomImages(){const t=h.getCustomImageUrls();await this.loadImages(t)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(t){console.error(t),Y.openToast("Failed preloading","error")}}};ur([W()],$t.prototype,"preload",2),$t=ur([y("wcm-explorer-context")],$t);var Hi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let gr=class extends w{constructor(){super(),this.unsubscribeTheme=void 0,v.setTheme(),this.unsubscribeTheme=fe.subscribe(v.setTheme)}disconnectedCallback(){var t;(t=this.unsubscribeTheme)==null||t.call(this)}};gr=Hi([y("wcm-theme-context")],gr);const Bi=C`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Zi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Ct=class extends w{onGoToQrcode(){k.push("Qrcode")}render(){const{recomendedWallets:t}=P.state,e=[...t,...t],r=g.RECOMMENDED_WALLET_AMOUNT*2;return l`
${_.MOBILE_ICON}WalletConnect
${[...Array(r)].map((i,o)=>{const n=e[o%e.length];return n?l``:_.WALLET_PLACEHOLDER})}
Select Wallet
Choose WalletConnect to see supported apps on your device`}};Ct.styles=[v.globalCss,Bi],Ct=Zi([y("wcm-android-wallet-selection")],Ct);const zi=C`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var Vi=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,me=(t,e,r,i)=>{for(var o=i>1?void 0:i?Fi(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&Vi(e,r,o),o};let K=class extends w{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var t,e;const r=(e=(t=fe.state.themeVariables)==null?void 0:t["--wcm-wallet-icon-large-border-radius"])!=null?e:v.getPreset("--wcm-wallet-icon-large-border-radius");let i=0;r.includes("%")?i=88/100*parseInt(r,10):i=parseInt(r,10),i*=1.17;const o=317-i*1.57,n=425-i*1.8;return l``}render(){const t={"wcm-error":this.isError,"wcm-stale":this.isStale};return l`
${this.svgLoaderTemplate()}
${this.isError?"Connection declined":this.label}`}};K.styles=[v.globalCss,zi],me([p()],K.prototype,"walletId",2),me([p()],K.prototype,"imageId",2),me([p({type:Boolean})],K.prototype,"isError",2),me([p({type:Boolean})],K.prototype,"isStale",2),me([p()],K.prototype,"label",2),K=me([y("wcm-connector-waiting")],K);const ve={manualWallets(){var t,e;const{mobileWallets:r,desktopWallets:i}=ae.state,o=(t=ve.recentWallet())==null?void 0:t.id,n=g.isMobile()?r:i,a=n==null?void 0:n.filter(s=>o!==s.id);return(e=g.isMobile()?a==null?void 0:a.map(({id:s,name:c,links:d})=>({id:s,name:c,mobile:d,links:d})):a==null?void 0:a.map(({id:s,name:c,links:d})=>({id:s,name:c,desktop:d,links:d})))!=null?e:[]},recentWallet(){return h.getRecentWallet()},recomendedWallets(t=!1){var e;const r=t||(e=ve.recentWallet())==null?void 0:e.id,{recomendedWallets:i}=P.state;return i.filter(o=>r!==o.id)}},X={onConnecting(t){h.goToConnectingView(t)},manualWalletsTemplate(){return ve.manualWallets().map(t=>l``)},recomendedWalletsTemplate(t=!1){return ve.recomendedWallets(t).map(e=>l``)},recentWalletTemplate(){const t=ve.recentWallet();if(t)return l``}},qi=C`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;var Ki=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let _t=class extends w{render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=ae.state,r=t!=="ALL"&&e,i=X.manualWalletsTemplate(),o=X.recomendedWalletsTemplate();let n=[X.recentWalletTemplate(),...i,...o];n=n.filter(Boolean);const a=n.length>4||r;let s=[];a?s=n.slice(0,3):s=n;const c=!!s.length;return l`
${_.MOBILE_ICON}Mobile
${_.SCAN_ICON}Scan with your wallet
${c?l`
${_.DESKTOP_ICON}Desktop
${s} ${a?l``:null}
`:null}`}};_t.styles=[v.globalCss,qi],_t=Ki([y("wcm-desktop-wallet-selection")],_t);const Qi=C`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var Yi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let At=class extends w{render(){const{termsOfServiceUrl:t,privacyPolicyUrl:e}=ae.state;return t??e?l`
By connecting your wallet to this app, you agree to the app's ${t?l`Terms of Service`:null} ${t&&e?"and":null} ${e?l`Privacy Policy`:null}
`:null}};At.styles=[v.globalCss,Qi],At=Yi([y("wcm-legal-notice")],At);const Gi=C`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var Xi=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Et=class extends w{onQrcode(){k.push("Qrcode")}render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=ae.state,r=t!=="ALL"&&e,i=X.manualWalletsTemplate(),o=X.recomendedWalletsTemplate();let n=[X.recentWalletTemplate(),...i,...o];n=n.filter(Boolean);const a=n.length>8||r;let s=[];a?s=n.slice(0,7):s=n;const c=!!s.length;return l`${c?l`
${s} ${a?l``:null}
`:null}`}};Et.styles=[v.globalCss,Gi],Et=Xi([y("wcm-mobile-wallet-selection")],Et);const Ji=C`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var en=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,kt=(t,e,r,i)=>{for(var o=i>1?void 0:i?tn(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&en(e,r,o),o};let Oe=class extends w{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=Ke.subscribe(t=>{t.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var t;(t=this.unsubscribeModal)==null||t.call(this)}get overlayEl(){return h.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return h.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(t){if(document.querySelector("body"))if(t){const e=document.getElementById("wcm-styles");e==null||e.remove()}else document.head.insertAdjacentHTML("beforeend",'')}onCloseModal(t){t.target===t.currentTarget&&Ke.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{const t=h.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]},e=.1,r=.2;await Promise.all([ne(this.overlayEl,{opacity:[0,1]},{delay:e,duration:r}).finished,ne(this.containerEl,t,{delay:e,duration:r}).finished]),this.active=!0},0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const t=h.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]},e=.2;await Promise.all([ne(this.overlayEl,{opacity:[1,0]},{duration:e}).finished,ne(this.containerEl,t,{duration:e}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",t=>{var e;t.key==="Escape"?Ke.close():t.key==="Tab"&&((e=t.target)!=null&&e.tagName.includes("wcm-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var t;(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){const t={"wcm-overlay":!0,"wcm-active":this.active};return l`
${this.open?l`
`:null}
`}};Oe.styles=[v.globalCss,Ji],kt([W()],Oe.prototype,"open",2),kt([W()],Oe.prototype,"active",2),Oe=kt([y("wcm-modal")],Oe);const rn=C`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var on=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,Ie=(t,e,r,i)=>{for(var o=i>1?void 0:i?nn(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&on(e,r,o),o};let re=class extends w{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){g.isMobile()?k.replace("MobileConnecting"):k.replace("MobileQrcodeConnecting")}onDesktop(){k.replace("DesktopConnecting")}onWeb(){k.replace("WebConnecting")}render(){return l`
${this.isRetry?l``:null} ${this.isMobile?l`Mobile`:null} ${this.isDesktop?l`Desktop`:null} ${this.isWeb?l`Web`:null}
`}};re.styles=[v.globalCss,rn],Ie([p({type:Boolean})],re.prototype,"isMobile",2),Ie([p({type:Boolean})],re.prototype,"isDesktop",2),Ie([p({type:Boolean})],re.prototype,"isWeb",2),Ie([p({type:Boolean})],re.prototype,"isRetry",2),re=Ie([y("wcm-platform-selection")],re);const an=C`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var sn=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Ot=class extends w{onClick(){k.push("WalletExplorer")}render(){const{recomendedWallets:t}=P.state,e=ve.manualWallets(),r=[...t,...e].reverse().slice(0,4);return l``}};Ot.styles=[v.globalCss,an],Ot=sn([y("wcm-view-all-wallets-button")],Ot);const ln=C`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var cn=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,ze=(t,e,r,i)=>{for(var o=i>1?void 0:i?dn(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&cn(e,r,o),o};let pe=class extends w{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout(()=>{const{walletConnectUri:t}=H.state;this.uri=t},0)}get overlayEl(){return h.getShadowRootElement(this,".wcm-qr-container")}render(){return l`
${this.uri?l``:l``}
`}};pe.styles=[v.globalCss,ln],ze([p()],pe.prototype,"walletId",2),ze([p()],pe.prototype,"imageId",2),ze([W()],pe.prototype,"uri",2),pe=ze([y("wcm-walletconnect-qr")],pe);var hn=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let It=class extends w{viewTemplate(){return g.isAndroid()?l``:g.isMobile()?l``:l``}render(){return l`${this.viewTemplate()}`}};It.styles=[v.globalCss],It=hn([y("wcm-connect-wallet-view")],It);const mn=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var pn=Object.defineProperty,un=Object.getOwnPropertyDescriptor,wr=(t,e,r,i)=>{for(var o=i>1?void 0:i?un(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&pn(e,r,o),o};let Ve=class extends w{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(t){const{desktop:e,name:r}=g.getWalletRouterData(),i=e==null?void 0:e.native;if(i){const o=g.formatNativeUrl(i,t,r);g.openHref(o,"_self")}}openDesktopApp(){const{walletConnectUri:t}=H.state,e=g.getWalletRouterData();h.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=g.getWalletRouterData(),{isMobile:i,isWeb:o}=h.getCachedRouterWalletPlatforms();return l`${`Connection can continue loading if ${t} is not installed on your device`}Retry`}};Ve.styles=[v.globalCss,mn],wr([W()],Ve.prototype,"isError",2),Ve=wr([y("wcm-desktop-connecting-view")],Ve);const gn=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;var wn=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Tt=class extends w{onInstall(t){t&&g.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,homepage:i}=g.getWalletRouterData();return l`${`Download ${t} to continue. If multiple browser extensions are installed, disable non ${t} ones and try again`}Download`}};Tt.styles=[v.globalCss,gn],Tt=wn([y("wcm-install-wallet-view")],Tt);const vn=C`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var fn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,vr=(t,e,r,i)=>{for(var o=i>1?void 0:i?bn(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&fn(e,r,o),o};let Fe=class extends w{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(t,e=!1){const{mobile:r,name:i}=g.getWalletRouterData(),o=r==null?void 0:r.native,n=r==null?void 0:r.universal;if(o&&!e){const a=g.formatNativeUrl(o,t,i);g.openHref(a,"_self")}else if(n){const a=g.formatUniversalUrl(n,t,i);g.openHref(a,"_self")}}openMobileApp(t=!1){const{walletConnectUri:e}=H.state,r=g.getWalletRouterData();h.setRecentWallet(r),e&&this.onFormatAndRedirect(e,t)}onGoToAppStore(t){t&&g.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,app:i,mobile:o}=g.getWalletRouterData(),{isWeb:n}=h.getCachedRouterWalletPlatforms(),a=i==null?void 0:i.ios,s=o==null?void 0:o.universal;return l`Retry${s?l`Still doesn't work? Try this alternate link`:null}
${`Get ${t}`}
App Store
`}};Fe.styles=[v.globalCss,vn],vr([W()],Fe.prototype,"isError",2),Fe=vr([y("wcm-mobile-connecting-view")],Fe);const yn=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var xn=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Mt=class extends w{render(){const{name:t,id:e,image_id:r}=g.getWalletRouterData(),{isDesktop:i,isWeb:o}=h.getCachedRouterWalletPlatforms();return l`${`Scan this QR Code with your phone's camera or inside ${t} app`}`}};Mt.styles=[v.globalCss,yn],Mt=xn([y("wcm-mobile-qr-connecting-view")],Mt);var $n=(t,e,r,i)=>{for(var o=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=a(o)||o);return o};let Rt=class extends w{render(){return l``}};Rt.styles=[v.globalCss],Rt=$n([y("wcm-qrcode-view")],Rt);const Cn=C`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var _n=Object.defineProperty,An=Object.getOwnPropertyDescriptor,Te=(t,e,r,i)=>{for(var o=i>1?void 0:i?An(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&_n(e,r,o),o};const St=40;let oe=class extends w{constructor(){super(...arguments),this.loading=!P.state.wallets.listings.length,this.firstFetch=!P.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=h.debounce(t=>{t.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=t,P.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),P.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var t;(t=this.intersectionObserver)==null||t.disconnect()}get placeholderEl(){return h.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([t])=>{t.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:t,search:e}=P.state,{listings:r,total:i}=this.search?e:t;return i<=St||r.length>=i}async fetchWallets(){var t;const{wallets:e,search:r}=P.state,{listings:i,total:o,page:n}=this.search?r:e;if(!this.endReached&&(this.firstFetch||o>St&&i.lengthh.getWalletIcon(d));await Promise.all([...c.map(async d=>h.preloadImage(d)),g.wait(300)]),this.endReached=this.isLastPage()}catch(a){console.error(a),Y.openToast(h.getErrorMessage(a),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(t){g.isAndroid()?h.handleMobileLinking(t):h.goToConnectingView(t)}onSearchChange(t){const{value:e}=t.target;this.searchDebounce(e)}render(){const{wallets:t,search:e}=P.state,{listings:r}=this.search?e:t,i=this.loading&&!r.length,o=this.search.length>=3;let n=X.manualWalletsTemplate(),a=X.recomendedWalletsTemplate(!0);o&&(n=n.filter(({values:d})=>h.caseSafeIncludes(d[0],this.search)),a=a.filter(({values:d})=>h.caseSafeIncludes(d[0],this.search)));const s=!this.loading&&!r.length&&!a.length,c={"wcm-loading":i,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":s};return l`
${i?null:n} ${i?null:a} ${i?null:r.map(d=>l`${d?l``:null}`)}
${s?l`No results found`:null} ${!s&&this.loading?l``:null}
`}};oe.styles=[v.globalCss,Cn],Te([W()],oe.prototype,"loading",2),Te([W()],oe.prototype,"firstFetch",2),Te([W()],oe.prototype,"search",2),Te([W()],oe.prototype,"endReached",2),oe=Te([y("wcm-wallet-explorer-view")],oe);const En=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var kn=Object.defineProperty,On=Object.getOwnPropertyDescriptor,fr=(t,e,r,i)=>{for(var o=i>1?void 0:i?On(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&kn(e,r,o),o};let qe=class extends w{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(t){const{desktop:e,name:r}=g.getWalletRouterData(),i=e==null?void 0:e.universal;if(i){const o=g.formatUniversalUrl(i,t,r);g.openHref(o,"_blank")}}openWebWallet(){const{walletConnectUri:t}=H.state,e=g.getWalletRouterData();h.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=g.getWalletRouterData(),{isMobile:i,isDesktop:o}=h.getCachedRouterWalletPlatforms(),n=g.isMobile();return l`${`${t} web app has opened in a new tab. Go there, accept the connection, and come back`}Retry`}};qe.styles=[v.globalCss,En],fr([W()],qe.prototype,"isError",2),qe=fr([y("wcm-web-connecting-view")],qe);export{Oe as WcmModal,F as WcmQrCode}; -//# sourceMappingURL=index-Cnb0ezsQ.js.map diff --git a/apps/web/public/assets/index-CtWpA4AQ.js b/apps/web/public/assets/index-CtWpA4AQ.js deleted file mode 100644 index 560b62fd..00000000 --- a/apps/web/public/assets/index-CtWpA4AQ.js +++ /dev/null @@ -1,516 +0,0 @@ -import{q as Fn,p as me,aN as Hn,aO as zn,aP as Qn,aQ as Jn,aR as Vn,aS as Gn,aT as Yn,aU as Kn,aV as Zn,aW as Xn,aX as er,aY as tr,aZ as nr,a_ as rr,a$ as or,b0 as ir,b1 as sr,b2 as ar,t as ht,b3 as cr,Y as ft}from"./index-Cl-fQh5M.js";import{r as lr,f as ur,g as dr,i as hr,b as fr,a as _r,s as pr,m as gr,d as Q,o as mr,h as Ke,n as wr}from"./index.es-83zPAjH-.js";import{b as A,l as S,_ as x,k as $,H as O,B as Z,D as yr,q as we,x as ye,P as be,y as te,g as ve,F as Ee,a as J,T as Se,p as Ce,A as ke,h as ne,E as br,G as _t,m as pt,c as vr}from"./hooks.module-D456YPrV.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7602d111-41c1-4856-9a03-2a14149c8230",t._sentryDebugIdIdentifier="sentry-dbid-7602d111-41c1-4856-9a03-2a14149c8230")}catch{}})();class Ze extends lr{constructor(e){super(e),this.events=new Fn.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async request(e,n){return this.requestStrict(ur(e.method,e.params||[],e.id||dr().toString()),n)}async requestStrict(e,n){return new Promise(async(r,o)=>{if(!this.connection.connected)try{await this.open()}catch(i){o(i)}this.events.on(`${e.id}`,i=>{hr(i)?o(i.error):r(i.result)});try{await this.connection.send(e,n)}catch(i){o(i)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),fr(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}const le="Session currently connected",q="Session currently disconnected",Er="Session Rejected",Sr="Missing JSON RPC response",Cr='JSON-RPC success response must include "result" field',kr='JSON-RPC error response must include "error" field',xr='JSON RPC request must have valid "method" value',Ir='JSON RPC request must have valid "id" value',Rr="Missing one of the required parameters: bridge / uri / session",Xe="JSON RPC response format is invalid",Tr="URI format is invalid",Or="QRCode Modal not provided",et="User close QRCode Modal",Nr=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],Mr=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],xe=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...Mr],he="WALLETCONNECT_DEEPLINK_CHOICE",Lr={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"};var gt=Ie;Ie.strict=mt;Ie.loose=wt;var qr=Object.prototype.toString,Ar={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function Ie(t){return mt(t)||wt(t)}function mt(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function wt(t){return Ar[qr.call(t)]}const Ur=me(gt);var Dr=gt.strict,Pr=function(e){if(Dr(e)){var n=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(n=n.slice(e.byteOffset,e.byteOffset+e.byteLength)),n}else return Buffer.from(e)};const $r=me(Pr),Re="hex",Te="utf8",jr="binary",Br="buffer",Wr="array",Fr="typed-array",Hr="array-buffer",re="0";function j(t){return new Uint8Array(t)}function Oe(t,e=!1){const n=t.toString(Re);return e?V(n):n}function Ne(t){return t.toString(Te)}function yt(t){return t.readUIntBE(0,t.length)}function W(t){return $r(t)}function N(t,e=!1){return Oe(W(t),e)}function bt(t){return Ne(W(t))}function vt(t){return yt(W(t))}function Me(t){return Buffer.from(B(t),Re)}function M(t){return j(Me(t))}function zr(t){return Ne(Me(t))}function Qr(t){return vt(M(t))}function Le(t){return Buffer.from(t,Te)}function Et(t){return j(Le(t))}function Jr(t,e=!1){return Oe(Le(t),e)}function Vr(t){const e=parseInt(t,10);return fo(ho(e),"Number can only safely store up to 53 bits"),e}function Gr(t){return Xr(qe(t))}function Yr(t){return Ae(qe(t))}function Kr(t,e){return eo(qe(t),e)}function Zr(t){return`${t}`}function qe(t){const e=(t>>>0).toString(2);return De(e)}function Xr(t){return W(Ae(t))}function Ae(t){return new Uint8Array(so(t).map(e=>parseInt(e,2)))}function eo(t,e){return N(Ae(t),e)}function to(t){return!(typeof t!="string"||!new RegExp(/^[01]+$/).test(t)||t.length%8!==0)}function St(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}function oe(t){return Buffer.isBuffer(t)}function Ue(t){return Ur.strict(t)&&!oe(t)}function Ct(t){return!Ue(t)&&!oe(t)&&typeof t.byteLength<"u"}function no(t){return oe(t)?Br:Ue(t)?Fr:Ct(t)?Hr:Array.isArray(t)?Wr:typeof t}function ro(t){return to(t)?jr:St(t)?Re:Te}function oo(...t){return Buffer.concat(t)}function kt(...t){let e=[];return t.forEach(n=>e=e.concat(Array.from(n))),new Uint8Array([...e])}function io(t,e=8){const n=t%e;return n?(t-n)/e*e+e:t}function so(t,e=8){const n=De(t).match(new RegExp(`.{${e}}`,"gi"));return Array.from(n||[])}function De(t,e=8,n=re){return ao(t,io(t.length,e),n)}function ao(t,e,n=re){return _o(t,e,!0,n)}function B(t){return t.replace(/^0x/,"")}function V(t){return t.startsWith("0x")?t:`0x${t}`}function co(t){return t=B(t),t=De(t,2),t&&(t=V(t)),t}function lo(t){const e=t.startsWith("0x");return t=B(t),t=t.startsWith(re)?t.substring(1):t,e?V(t):t}function uo(t){return typeof t>"u"}function ho(t){return!uo(t)}function fo(t,e){if(!t)throw new Error(e)}function _o(t,e,n,r=re){const o=e-t.length;let i=t;return o>0&&(i=r.repeat(o)+t),i}function X(t){return W(new Uint8Array(t))}function po(t){return bt(new Uint8Array(t))}function xt(t,e){return N(new Uint8Array(t),!e)}function go(t){return vt(new Uint8Array(t))}function mo(...t){return M(t.map(e=>N(new Uint8Array(e))).join("")).buffer}function It(t){return j(t).buffer}function wo(t){return Ne(t)}function yo(t,e){return Oe(t,!e)}function bo(t){return yt(t)}function vo(...t){return oo(...t)}function Eo(t){return Et(t).buffer}function So(t){return Le(t)}function Co(t,e){return Jr(t,!e)}function ko(t){return Vr(t)}function xo(t){return Me(t)}function Rt(t){return M(t).buffer}function Io(t){return zr(t)}function Ro(t){return Qr(t)}function To(t){return Gr(t)}function Oo(t){return Yr(t).buffer}function No(t){return Zr(t)}function Tt(t,e){return Kr(Number(t),!e)}const Mo=Jn,Lo=Vn,qo=Gn,Ao=Yn,Uo=Kn,Ot=Qn,Do=Zn,Nt=Hn,Po=Xn,$o=er,jo=tr,ie=zn;function se(t){return nr(t)}function ae(){const t=se();return t&&t.os?t.os:void 0}function Mt(){const t=ae();return t?t.toLowerCase().includes("android"):!1}function Lt(){const t=ae();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function qt(){return ae()?Mt()||Lt():!1}function At(){const t=se();return t&&t.name?t.name.toLowerCase()==="node":!1}function Ut(){return!At()&&!!Ot()}const Dt=_r,Pt=pr;function Pe(t,e){const n=Pt(e),r=ie();r&&r.setItem(t,n)}function $e(t){let e=null,n=null;const r=ie();return r&&(n=r.getItem(t)),e=n&&Dt(n),e}function je(t){const e=ie();e&&e.removeItem(t)}function fe(){return rr()}function Bo(t){return co(t)}function Wo(t){return V(t)}function Fo(t){return B(t)}function Ho(t){return lo(V(t))}const $t=gr;function K(){return((e,n)=>{for(n=e="";e++<36;n+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return n})()}function zo(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function jt(t,e){let n;const r=Lr[t];return r&&(n=`https://${r}.infura.io/v3/${e}`),n}function Bt(t,e){let n;const r=jt(t,e.infuraId);return e.custom&&e.custom[t]?n=e.custom[t]:r&&(n=r),n}function Qo(t,e){const n=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${n}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function Jo(t){const e=t.href.split("?")[0];Pe(he,Object.assign(Object.assign({},t),{href:e}))}function Wt(t,e){return t.filter(n=>n.name.toLowerCase().includes(e.toLowerCase()))[0]}function Vo(t,e){let n=t;return e&&(n=e.map(r=>Wt(t,r)).filter(Boolean)),n}function Go(t,e){return async(...r)=>new Promise((o,i)=>{const d=(f,p)=>{(f===null||typeof f>"u")&&i(f),o(p)};t.apply(e,[...r,d])})}function Ft(t){const e=t.message||"Failed or Rejected Request";let n=-32e3;if(t&&!t.code)switch(e){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3;break}const r={code:n,message:e};return t.data&&(r.data=t.data),r}const Ht="https://registry.walletconnect.com";function Yo(){return Ht+"/api/v2/wallets"}function Ko(){return Ht+"/api/v2/dapps"}function zt(t,e="mobile"){var n;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(n=t.image_url.sm)!==null&&n!==void 0?n:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function Zo(t,e="mobile"){return Object.values(t).filter(n=>!!n[e].universal||!!n[e].native).map(n=>zt(n,e))}var Be={};(function(t){const e=sr,n=ar,r=or,o=ir,i=s=>s==null;function d(s){switch(s.arrayFormat){case"index":return a=>(u,c)=>{const h=u.length;return c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[",h,"]"].join("")]:[...u,[g(a,s),"[",g(h,s),"]=",g(c,s)].join("")]};case"bracket":return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[]"].join("")]:[...u,[g(a,s),"[]=",g(c,s)].join("")];case"comma":case"separator":return a=>(u,c)=>c==null||c.length===0?u:u.length===0?[[g(a,s),"=",g(c,s)].join("")]:[[u,g(c,s)].join(s.arrayFormatSeparator)];default:return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,g(a,s)]:[...u,[g(a,s),"=",g(c,s)].join("")]}}function f(s){let a;switch(s.arrayFormat){case"index":return(u,c,h)=>{if(a=/\[(\d*)\]$/.exec(u),u=u.replace(/\[\d*\]$/,""),!a){h[u]=c;return}h[u]===void 0&&(h[u]={}),h[u][a[1]]=c};case"bracket":return(u,c,h)=>{if(a=/(\[\])$/.exec(u),u=u.replace(/\[\]$/,""),!a){h[u]=c;return}if(h[u]===void 0){h[u]=[c];return}h[u]=[].concat(h[u],c)};case"comma":case"separator":return(u,c,h)=>{const m=typeof c=="string"&&c.includes(s.arrayFormatSeparator),_=typeof c=="string"&&!m&&w(c,s).includes(s.arrayFormatSeparator);c=_?w(c,s):c;const v=m||_?c.split(s.arrayFormatSeparator).map(T=>w(T,s)):c===null?c:w(c,s);h[u]=v};default:return(u,c,h)=>{if(h[u]===void 0){h[u]=c;return}h[u]=[].concat(h[u],c)}}}function p(s){if(typeof s!="string"||s.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function g(s,a){return a.encode?a.strict?e(s):encodeURIComponent(s):s}function w(s,a){return a.decode?n(s):s}function y(s){return Array.isArray(s)?s.sort():typeof s=="object"?y(Object.keys(s)).sort((a,u)=>Number(a)-Number(u)).map(a=>s[a]):s}function b(s){const a=s.indexOf("#");return a!==-1&&(s=s.slice(0,a)),s}function C(s){let a="";const u=s.indexOf("#");return u!==-1&&(a=s.slice(u)),a}function k(s){s=b(s);const a=s.indexOf("?");return a===-1?"":s.slice(a+1)}function I(s,a){return a.parseNumbers&&!Number.isNaN(Number(s))&&typeof s=="string"&&s.trim()!==""?s=Number(s):a.parseBooleans&&s!==null&&(s.toLowerCase()==="true"||s.toLowerCase()==="false")&&(s=s.toLowerCase()==="true"),s}function R(s,a){a=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},a),p(a.arrayFormatSeparator);const u=f(a),c=Object.create(null);if(typeof s!="string"||(s=s.trim().replace(/^[?#&]/,""),!s))return c;for(const h of s.split("&")){if(h==="")continue;let[m,_]=r(a.decode?h.replace(/\+/g," "):h,"=");_=_===void 0?null:["comma","separator"].includes(a.arrayFormat)?_:w(_,a),u(w(m,a),_,c)}for(const h of Object.keys(c)){const m=c[h];if(typeof m=="object"&&m!==null)for(const _ of Object.keys(m))m[_]=I(m[_],a);else c[h]=I(m,a)}return a.sort===!1?c:(a.sort===!0?Object.keys(c).sort():Object.keys(c).sort(a.sort)).reduce((h,m)=>{const _=c[m];return _&&typeof _=="object"&&!Array.isArray(_)?h[m]=y(_):h[m]=_,h},Object.create(null))}t.extract=k,t.parse=R,t.stringify=(s,a)=>{if(!s)return"";a=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},a),p(a.arrayFormatSeparator);const u=_=>a.skipNull&&i(s[_])||a.skipEmptyString&&s[_]==="",c=d(a),h={};for(const _ of Object.keys(s))u(_)||(h[_]=s[_]);const m=Object.keys(h);return a.sort!==!1&&m.sort(a.sort),m.map(_=>{const v=s[_];return v===void 0?"":v===null?g(_,a):Array.isArray(v)?v.reduce(c(_),[]).join("&"):g(_,a)+"="+g(v,a)}).filter(_=>_.length>0).join("&")},t.parseUrl=(s,a)=>{a=Object.assign({decode:!0},a);const[u,c]=r(s,"#");return Object.assign({url:u.split("?")[0]||"",query:R(k(s),a)},a&&a.parseFragmentIdentifier&&c?{fragmentIdentifier:w(c,a)}:{})},t.stringifyUrl=(s,a)=>{a=Object.assign({encode:!0,strict:!0},a);const u=b(s.url).split("?")[0]||"",c=t.extract(s.url),h=t.parse(c,{sort:!1}),m=Object.assign(h,s.query);let _=t.stringify(m,a);_&&(_=`?${_}`);let v=C(s.url);return s.fragmentIdentifier&&(v=`#${g(s.fragmentIdentifier,a)}`),`${u}${_}${v}`},t.pick=(s,a,u)=>{u=Object.assign({parseFragmentIdentifier:!0},u);const{url:c,query:h,fragmentIdentifier:m}=t.parseUrl(s,u);return t.stringifyUrl({url:c,query:o(h,a),fragmentIdentifier:m},u)},t.exclude=(s,a,u)=>{const c=Array.isArray(a)?h=>!a.includes(h):(h,m)=>!a(h,m);return t.pick(s,c,u)}})(Be);function Qt(t){const e=t.indexOf("?")!==-1?t.indexOf("?"):void 0;return typeof e<"u"?t.substr(e):""}function Jt(t,e){let n=We(t);return n=Object.assign(Object.assign({},n),e),t=Vt(n),t}function We(t){return Be.parse(t)}function Vt(t){return Be.stringify(t)}function Gt(t){return typeof t.bridge<"u"}function Yt(t){const e=t.indexOf(":"),n=t.indexOf("?")!==-1?t.indexOf("?"):void 0,r=t.substring(0,e),o=t.substring(e+1,n);function i(y){const C=y.split("@");return{handshakeTopic:C[0],version:parseInt(C[1],10)}}const d=i(o),f=typeof n<"u"?t.substr(n):"";function p(y){const b=We(y);return{key:b.key||"",bridge:b.bridge||""}}const g=p(f);return Object.assign(Object.assign({protocol:r},d),g)}function Xo(t){return t===""||typeof t=="string"&&t.trim()===""}function ei(t){return!(t&&t.length)}function ti(t){return oe(t)}function ni(t){return Ue(t)}function ri(t){return Ct(t)}function oi(t){return no(t)}function ii(t){return ro(t)}function si(t,e){return St(t,e)}function ai(t){return typeof t.params=="object"}function Kt(t){return typeof t.method<"u"}function D(t){return typeof t.result<"u"}function z(t){return typeof t.error<"u"}function _e(t){return typeof t.event<"u"}function Zt(t){return Nr.includes(t)||t.startsWith("wc_")}function Xt(t){return t.method.startsWith("wc_")?!0:!xe.includes(t.method)}const ci=Object.freeze(Object.defineProperty({__proto__:null,addHexPrefix:Wo,appendToQueryString:Jt,concatArrayBuffers:mo,concatBuffers:vo,convertArrayBufferToBuffer:X,convertArrayBufferToHex:xt,convertArrayBufferToNumber:go,convertArrayBufferToUtf8:po,convertBufferToArrayBuffer:It,convertBufferToHex:yo,convertBufferToNumber:bo,convertBufferToUtf8:wo,convertHexToArrayBuffer:Rt,convertHexToBuffer:xo,convertHexToNumber:Ro,convertHexToUtf8:Io,convertNumberToArrayBuffer:Oo,convertNumberToBuffer:To,convertNumberToHex:Tt,convertNumberToUtf8:No,convertUtf8ToArrayBuffer:Eo,convertUtf8ToBuffer:So,convertUtf8ToHex:Co,convertUtf8ToNumber:ko,detectEnv:se,detectOS:ae,formatIOSMobile:Qo,formatMobileRegistry:Zo,formatMobileRegistryEntry:zt,formatQueryString:Vt,formatRpcError:Ft,getClientMeta:fe,getCrypto:$o,getCryptoOrThrow:Po,getDappRegistryUrl:Ko,getDocument:Ao,getDocumentOrThrow:qo,getEncoding:ii,getFromWindow:Mo,getFromWindowOrThrow:Lo,getInfuraRpcUrl:jt,getLocal:$e,getLocalStorage:ie,getLocalStorageOrThrow:jo,getLocation:Nt,getLocationOrThrow:Do,getMobileLinkRegistry:Vo,getMobileRegistryEntry:Wt,getNavigator:Ot,getNavigatorOrThrow:Uo,getQueryString:Qt,getRpcUrl:Bt,getType:oi,getWalletRegistryUrl:Yo,isAndroid:Mt,isArrayBuffer:ri,isBrowser:Ut,isBuffer:ti,isEmptyArray:ei,isEmptyString:Xo,isHexString:si,isIOS:Lt,isInternalEvent:_e,isJsonRpcRequest:Kt,isJsonRpcResponseError:z,isJsonRpcResponseSuccess:D,isJsonRpcSubscription:ai,isMobile:qt,isNode:At,isReservedEvent:Zt,isSilentPayload:Xt,isTypedArray:ni,isWalletConnectSession:Gt,logDeprecationWarning:zo,parseQueryString:We,parseWalletConnectUri:Yt,payloadId:$t,promisify:Go,removeHexLeadingZeros:Ho,removeHexPrefix:Fo,removeLocal:je,safeJsonParse:Dt,safeJsonStringify:Pt,sanitizeHex:Bo,saveMobileLinkInfo:Jo,setLocal:Pe,uuid:K},Symbol.toStringTag,{value:"Module"}));class li{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,n){this._eventEmitters.push({event:e,callback:n})}trigger(e){let n=[];e&&(n=this._eventEmitters.filter(r=>r.event===e)),n.forEach(r=>{r.callback()})}}const ui=typeof global.WebSocket<"u"?global.WebSocket:require("ws");class di{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new li,!e.url||typeof e.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return this.readyState===0}set connected(e){}get connected(){return this.readyState===1}set closing(e){}get closing(){return this.readyState===2}set closed(e){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(e,n,r){if(!n||typeof n!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:n,type:"pub",payload:e,silent:!!r})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,n){this._events.push({event:e,callback:n})}_socketCreate(){if(this._nextSocket)return;const e=hi(this._url,this._protocol,this._version);if(this._nextSocket=new ui(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=n=>this._socketReceive(n),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=n=>this._socketError(n),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){const n=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(n):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let n;try{n=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:n.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){const r=this._events.filter(o=>o.event==="message");r&&r.length&&r.forEach(o=>o.callback(n))}}_socketError(e){const n=this._events.filter(r=>r.event==="error");n&&n.length&&n.forEach(r=>r.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(n=>this._queue.push({topic:n,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(n=>this._socketSend(n)),this._queue=[]}}function hi(t,e,n){var r,o;const d=(t.startsWith("https")?t.replace("https","wss"):t.startsWith("http")?t.replace("http","ws"):t).split("?"),f=Ut()?{protocol:e,version:n,env:"browser",host:((r=Nt())===null||r===void 0?void 0:r.host)||""}:{protocol:e,version:n,env:((o=se())===null||o===void 0?void 0:o.name)||""},p=Jt(Qt(d[1]||""),f);return d[0]+"?"+p}class fi{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(n=>n.event!==e)}trigger(e){let n=[],r;Kt(e)?r=e.method:D(e)||z(e)?r=`response:${e.id}`:_e(e)?r=e.event:r="",r&&(n=this._eventEmitters.filter(o=>o.event===r)),(!n||!n.length)&&!Zt(r)&&!_e(r)&&(n=this._eventEmitters.filter(o=>o.event==="call_request")),n.forEach(o=>{if(z(e)){const i=new Error(e.error.message);o.callback(i,null)}else o.callback(null,e)})}}class _i{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null;const n=$e(this.storageId);return n&&Gt(n)&&(e=n),e}setSession(e){return Pe(this.storageId,e),e}removeSession(){je(this.storageId)}}const pi="walletconnect.org",gi="abcdefghijklmnopqrstuvwxyz0123456789",en=gi.split("").map(t=>`https://${t}.bridge.walletconnect.org`);function mi(t){let e=t.indexOf("//")>-1?t.split("/")[2]:t.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function wi(t){return mi(t).split(".").slice(-2).join(".")}function yi(){return Math.floor(Math.random()*en.length)}function bi(){return en[yi()]}function vi(t){return wi(t)===pi}function Ei(t){return vi(t)?bi():t}class Si{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new fi,this._clientMeta=fe()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new _i(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...xe,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(Rr);e.connectorOpts.bridge&&(this.bridge=Ei(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);const n=e.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new di({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;const n=Rt(e);this._key=n}get key(){return this._key?xt(this._key,!0):""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=K()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=fe()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;const{handshakeTopic:n,bridge:r,key:o}=this._parseUri(e);this.handshakeTopic=n,this.bridge=r,this.key=o}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,n){const r={event:e,callback:n};this._eventManager.subscribe(r)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();const n=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=n.id,this.handshakeTopic=K(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(et)});const r=()=>{this.killSession()};try{const o=await this._sendCallRequest(n);return o&&r(),o}catch(o){throw r(),o}}async connect(e){if(!this._qrcodeModal)throw new Error(Or);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(n,r)=>{this.on("modal_closed",()=>r(new Error(et))),this.on("connect",(o,i)=>{if(o)return r(o);n(i.params[0])})}))}async createSession(e){if(this._connected)throw new Error(le);if(this.pending)return;this._key=await this._generateKey();const n=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=n.id,this.handshakeTopic=K(),this._sendSessionRequest(n,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(le);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},r={id:this.handshakeId,jsonrpc:"2.0",result:n};this._sendResponse(r),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(le);const n=e&&e.message?e.message:Er,r=this._formatResponse({id:this.handshakeId,error:{message:n}});this._sendResponse(r),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(q);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},r=this._formatRequest({method:"wc_sessionUpdate",params:[n]});this._sendSessionRequest(r,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){const n=e?e.message:"Session Disconnected",r={approved:!1,chainId:null,networkId:null,accounts:null},o=this._formatRequest({method:"wc_sessionUpdate",params:[r]});await this._sendRequest(o),this._handleSessionDisconnect(n)}async sendTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_sendTransaction",params:[n]});return await this._sendCallRequest(r)}async signTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_signTransaction",params:[n]});return await this._sendCallRequest(r)}async signMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(n)}async signPersonalMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(n)}async signTypedData(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(n)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");const n=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(n)}unsafeSend(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),new Promise((r,o)=>{this._subscribeToResponse(e.id,(i,d)=>{if(i){o(i);return}if(!d)throw new Error(Sr);r(d)})})}async sendCustomRequest(e,n){if(!this._connected)throw new Error(q);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return Tt(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params;break;case"personal_sign":e.params;break}const r=this._formatRequest(e);return await this._sendCallRequest(r,n)}approveRequest(e){if(D(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(Cr)}rejectRequest(e){if(z(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(kr)}transportClose(){this._transport.close()}async _sendRequest(e,n){const r=this._formatRequest(e),o=await this._encrypt(r),i=typeof(n==null?void 0:n.topic)<"u"?n.topic:this.peerId,d=JSON.stringify(o),f=typeof(n==null?void 0:n.forcePushNotification)<"u"?!n.forcePushNotification:Xt(r);this._transport.send(d,i,f)}async _sendResponse(e){const n=await this._encrypt(e),r=this.peerId,o=JSON.stringify(n);this._transport.send(o,r,!0)}async _sendSessionRequest(e,n,r){this._sendRequest(e,r),this._subscribeToSessionResponse(e.id,n)}_sendCallRequest(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(xr);return{id:typeof e.id>"u"?$t():e.id,jsonrpc:"2.0",method:e.method,params:typeof e.params>"u"?[]:e.params}}_formatResponse(e){if(typeof e.id>"u")throw new Error(Ir);const n={id:e.id,jsonrpc:"2.0"};if(z(e)){const r=Ft(e.error);return Object.assign(Object.assign(Object.assign({},n),e),{error:r})}else if(D(e))return Object.assign(Object.assign({},n),e);throw new Error(Xe)}_handleSessionDisconnect(e){const n=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),je(he)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,n){n?n.approved?(this._connected?(n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),n.peerId&&!this.peerId&&(this.peerId=n.peerId),n.peerMeta&&!this.peerMeta&&(this.peerMeta=n.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let r;try{r=JSON.parse(e.payload)}catch{return}const o=await this._decrypt(r);o&&this._eventManager.trigger(o)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,n){this.on(`response:${e}`,n)}_subscribeToSessionResponse(e,n){this._subscribeToResponse(e,(r,o)=>{if(r){this._handleSessionResponse(r.message);return}D(o)?this._handleSessionResponse(n,o.result):o.error&&o.error.message?this._handleSessionResponse(o.error.message):this._handleSessionResponse(n)})}_subscribeToCallResponse(e){return new Promise((n,r)=>{this._subscribeToResponse(e,(o,i)=>{if(o){r(o);return}D(i)?n(i.result):i.error&&i.error.message?r(i.error):r(new Error(Xe))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,n)=>{const{request:r}=n.params[0];if(qt()&&this._signingMethods.includes(r.method)){const o=$e(he);o&&(window.location.href=o.href)}}),this.on("wc_sessionRequest",(e,n)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=n.id,this.peerId=n.params[0].peerId,this.peerMeta=n.params[0].peerMeta;const r=Object.assign(Object.assign({},n),{method:"session_request"});this._eventManager.trigger(r)}),this.on("wc_sessionUpdate",(e,n)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",n.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){const e=this.protocol,n=this.handshakeTopic,r=this.version,o=encodeURIComponent(this.bridge),i=this.key;return`${e}:${n}@${r}?bridge=${o}&key=${i}`}_parseUri(e){const n=Yt(e);if(n.protocol===this.protocol){if(!n.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const r=n.handshakeTopic;if(!n.bridge)throw Error("Invalid or missing bridge url parameter value");const o=decodeURIComponent(n.bridge);if(!n.key)throw Error("Invalid or missing key parameter value");const i=n.key;return{handshakeTopic:r,bridge:o,key:i}}else throw new Error(Tr)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.encrypt(e,n):null}async _decrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.decrypt(e,n):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||typeof e.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||typeof e.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||typeof e.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");const n={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(r,o)=>{if(r)throw r;if(e.peerMeta){const i=o.params[0].peerMeta.name;n.peerName=i}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}}function Ci(t){return Q.getBrowerCrypto().getRandomValues(new Uint8Array(t))}const tn=256,nn=tn,ki=tn,L="AES-CBC",xi=`SHA-${nn}`,pe="HMAC",Ii="encrypt",Ri="decrypt",Ti="sign",Oi="verify";function Ni(t){return t===L?{length:nn,name:L}:{hash:{name:xi},name:pe}}function Mi(t){return t===L?[Ii,Ri]:[Ti,Oi]}async function Fe(t,e=L){return Q.getSubtleCrypto().importKey("raw",t,Ni(e),!0,Mi(e))}async function Li(t,e,n){const r=Q.getSubtleCrypto(),o=await Fe(e,L),i=await r.encrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function qi(t,e,n){const r=Q.getSubtleCrypto(),o=await Fe(e,L),i=await r.decrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function Ai(t,e){const n=Q.getSubtleCrypto(),r=await Fe(t,pe),o=await n.sign({length:ki,name:pe},r,e);return new Uint8Array(o)}function Ui(t,e,n){return Li(t,e,n)}function Di(t,e,n){return qi(t,e,n)}async function rn(t,e){return await Ai(t,e)}async function on(t){const e=(t||256)/8,n=Ci(e);return It(W(n))}async function sn(t,e){const n=M(t.data),r=M(t.iv),o=M(t.hmac),i=N(o,!1),d=kt(n,r),f=await rn(e,d),p=N(f,!1);return B(i)===B(p)}async function Pi(t,e,n){const r=j(X(e)),o=n||await on(128),i=j(X(o)),d=N(i,!1),f=JSON.stringify(t),p=Et(f),g=await Ui(i,r,p),w=N(g,!1),y=kt(g,i),b=await rn(r,y),C=N(b,!1);return{data:w,hmac:C,iv:d}}async function $i(t,e){const n=j(X(e));if(!n)throw new Error("Missing key: required for decryption");if(!await sn(t,n))return null;const o=M(t.data),i=M(t.iv),d=await Di(i,n,o),f=bt(d);let p;try{p=JSON.parse(f)}catch{return null}return p}const ji=Object.freeze(Object.defineProperty({__proto__:null,decrypt:$i,encrypt:Pi,generateKey:on,verifyHmac:sn},Symbol.toStringTag,{value:"Module"}));class Bi extends Si{constructor(e,n){super({cryptoLib:ji,connectorOpts:e,pushServerOpts:n})}}const Wi=ht(ci);var Fi=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=tt[e.format]||tt.default;window.clipboardData.setData(y,t)}else w.clipboardData.clearData(),w.clipboardData.setData(e.format,t);e.onCopy&&(w.preventDefault(),e.onCopy(w.clipboardData))}),document.body.appendChild(f),i.selectNodeContents(f),d.addRange(i);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");p=!0}catch(w){n&&console.error("unable to copy using execCommand: ",w),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),p=!0}catch(y){n&&console.error("unable to copy using clipboardData: ",y),n&&console.error("falling back to prompt"),r=Qi("message"in e?e.message:zi),window.prompt(r,t)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(i):d.removeAllRanges()),f&&document.body.removeChild(f),o()}return p}var Vi=Ji;function an(t,e){for(var n in e)t[n]=e[n];return t}function ge(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function ee(t,e){this.props=t,this.context=e}function cn(t,e){function n(o){var i=this.props.ref,d=i==o.ref;return!d&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!d:ge(this.props,o)}function r(o){return this.shouldComponentUpdate=n,x(t,o)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ee.prototype=new A).isPureReactComponent=!0,ee.prototype.shouldComponentUpdate=function(t,e){return ge(this.props,t)||ge(this.state,e)};var nt=S.__b;S.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),nt&&nt(t)};var Gi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ln(t){function e(n){var r=an({},n);return delete r.ref,t(r,n.ref||null)}return e.$$typeof=Gi,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var rt=function(t,e){return t==null?null:O(O(t).map(e))},un={map:rt,forEach:rt,count:function(t){return t?O(t).length:0},only:function(t){var e=O(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:O},Yi=S.__e;S.__e=function(t,e,n,r){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e)}Yi(t,e,n,r)};var ot=S.unmount;function dn(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=an({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return dn(r,e,n)})),t}function hn(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return hn(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function H(){this.__u=0,this.t=null,this.__b=null}function fn(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function _n(t){var e,n,r;function o(i){if(e||(e=t()).then(function(d){n=d.default||d},function(d){r=d}),r)throw r;if(!n)throw e;return x(n,i)}return o.displayName="Lazy",o.__f=!0,o}function P(){this.u=null,this.o=null}S.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),ot&&ot(t)},(H.prototype=new A).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=fn(r.__v),i=!1,d=function(){i||(i=!0,n.__R=null,o?o(f):f())};n.__R=d;var f=function(){if(!--r.__u){if(r.state.__a){var p=r.state.__a;r.__v.__k[0]=hn(p,p.__c.__P,p.__c.__O)}var g;for(r.setState({__a:r.__b=null});g=r.t.pop();)g.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(d,d)},H.prototype.componentWillUnmount=function(){this.t=[]},H.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=dn(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__a&&x($,null,t.fallback);return o&&(o.__u&=-33),[x($,null,e.__a?null:t.children),o]};var it=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(r)}}),Z(x(Ki,{context:e.context},t.__v),e.l)}function pn(t,e){var n=x(Zi,{__v:t,i:e});return n.containerInfo=e,n}(P.prototype=new A).__a=function(t){var e=this,n=fn(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),it(e,t,r)):o()};n?n(i):i()}},P.prototype.render=function(t){this.u=null,this.o=new Map;var e=O(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},P.prototype.componentDidUpdate=P.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){it(t,n,e)})};var gn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Xi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,es=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ts=/[A-Z0-9]/g,ns=typeof document<"u",rs=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function mn(t,e,n){return e.__k==null&&(e.textContent=""),Z(t,e),typeof n=="function"&&n(),t?t.__c:null}function wn(t,e,n){return yr(t,e),typeof n=="function"&&n(),t?t.__c:null}A.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(A.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var st=S.event;function os(){}function is(){return this.cancelBubble}function ss(){return this.defaultPrevented}S.event=function(t){return st&&(t=st(t)),t.persist=os,t.isPropagationStopped=is,t.isDefaultPrevented=ss,t.nativeEvent=t};var He,as={enumerable:!1,configurable:!0,get:function(){return this.class}},at=S.vnode;S.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,r=e.type,o={};for(var i in n){var d=n[i];if(!(i==="value"&&"defaultValue"in n&&d==null||ns&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var f=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&d===!0?d="":f==="translate"&&d==="no"?d=!1:f==="ondoubleclick"?i="ondblclick":f!=="onchange"||r!=="input"&&r!=="textarea"||rs(n.type)?f==="onfocus"?i="onfocusin":f==="onblur"?i="onfocusout":es.test(i)?i=f:r.indexOf("-")===-1&&Xi.test(i)?i=i.replace(ts,"-$&").toLowerCase():d===null&&(d=void 0):f=i="oninput",f==="oninput"&&o[i=f]&&(i="oninputCapture"),o[i]=d}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.value.indexOf(p.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.multiple?o.defaultValue.indexOf(p.props.value)!=-1:o.defaultValue==p.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",as)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),e.props=o}(t),t.$$typeof=gn,at&&at(t)};var ct=S.__r;S.__r=function(t){ct&&ct(t),He=t.__c};var lt=S.diffed;S.diffed=function(t){lt&<(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value),He=null};var yn={ReactCurrentDispatcher:{current:{readContext:function(t){return He.__n[t.__c].props.value},useCallback:we,useContext:ye,useDebugValue:be,useDeferredValue:Qe,useEffect:te,useId:ve,useImperativeHandle:Ee,useInsertionEffect:Ve,useLayoutEffect:J,useMemo:Se,useReducer:Ce,useRef:ke,useState:ne,useSyncExternalStore:Ge,useTransition:Je}}},cs="17.0.2";function bn(t){return x.bind(null,t)}function G(t){return!!t&&t.$$typeof===gn}function vn(t){return G(t)&&t.type===$}function En(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Sn(t){return G(t)?br.apply(null,arguments):t}function Cn(t){return!!t.__k&&(Z(null,t),!0)}function kn(t){return t&&(t.base||t.nodeType===1&&t)||null}var xn=function(t,e){return t(e)},In=function(t,e){return t(e)},Rn=$;function ze(t){t()}function Qe(t){return t}function Je(){return[!1,ze]}var Ve=J,Tn=G;function Ge(t,e){var n=e(),r=ne({h:{__:n,v:e}}),o=r[0].h,i=r[1];return J(function(){o.__=n,o.v=e,ue(o)&&i({h:o})},[t,n,e]),te(function(){return ue(o)&&i({h:o}),t(function(){ue(o)&&i({h:o})})},[t]),n}function ue(t){var e,n,r=t.v,o=t.__;try{var i=r();return!((e=o)===(n=i)&&(e!==0||1/e==1/n)||e!=e&&n!=n)}catch{return!0}}var ls={useState:ne,useId:ve,useReducer:Ce,useEffect:te,useLayoutEffect:J,useInsertionEffect:Ve,useTransition:Je,useDeferredValue:Qe,useSyncExternalStore:Ge,startTransition:ze,useRef:ke,useImperativeHandle:Ee,useMemo:Se,useCallback:we,useContext:ye,useDebugValue:be,version:"17.0.2",Children:un,render:mn,hydrate:wn,unmountComponentAtNode:Cn,createPortal:pn,createElement:x,createContext:_t,createFactory:bn,cloneElement:Sn,createRef:pt,Fragment:$,isValidElement:G,isElement:Tn,isFragment:vn,isMemo:En,findDOMNode:kn,Component:A,PureComponent:ee,memo:cn,forwardRef:ln,flushSync:In,unstable_batchedUpdates:xn,StrictMode:Rn,Suspense:H,SuspenseList:P,lazy:_n,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:yn};const us=Object.freeze(Object.defineProperty({__proto__:null,Children:un,Component:A,Fragment:$,PureComponent:ee,StrictMode:Rn,Suspense:H,SuspenseList:P,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:yn,cloneElement:Sn,createContext:_t,createElement:x,createFactory:bn,createPortal:pn,createRef:pt,default:ls,findDOMNode:kn,flushSync:In,forwardRef:ln,hydrate:wn,isElement:Tn,isFragment:vn,isMemo:En,isValidElement:G,lazy:_n,memo:cn,render:mn,startTransition:ze,unmountComponentAtNode:Cn,unstable_batchedUpdates:xn,useCallback:we,useContext:ye,useDebugValue:be,useDeferredValue:Qe,useEffect:te,useErrorBoundary:vr,useId:ve,useImperativeHandle:Ee,useInsertionEffect:Ve,useLayoutEffect:J,useMemo:Se,useReducer:Ce,useRef:ke,useState:ne,useSyncExternalStore:Ge,useTransition:Je,version:cs},Symbol.toStringTag,{value:"Module"})),ds=ht(us);function On(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var E=Wi,Nn=On(cr),hs=On(Vi),l=ds;function fs(t){Nn.toString(t,{type:"terminal"}).then(console.log)}var _s=`:root { - --animation-duration: 300ms; -} - -@keyframes fadeIn { - from { - opacity: 0; - } - to { - opacity: 1; - } -} - -@keyframes fadeOut { - from { - opacity: 1; - } - to { - opacity: 0; - } -} - -.animated { - animation-duration: var(--animation-duration); - animation-fill-mode: both; -} - -.fadeIn { - animation-name: fadeIn; -} - -.fadeOut { - animation-name: fadeOut; -} - -#walletconnect-wrapper { - -webkit-user-select: none; - align-items: center; - display: flex; - height: 100%; - justify-content: center; - left: 0; - pointer-events: none; - position: fixed; - top: 0; - user-select: none; - width: 100%; - z-index: 99999999999999; -} - -.walletconnect-modal__headerLogo { - height: 21px; -} - -.walletconnect-modal__header p { - color: #ffffff; - font-size: 20px; - font-weight: 600; - margin: 0; - align-items: flex-start; - display: flex; - flex: 1; - margin-left: 5px; -} - -.walletconnect-modal__close__wrapper { - position: absolute; - top: 0px; - right: 0px; - z-index: 10000; - background: white; - border-radius: 26px; - padding: 6px; - box-sizing: border-box; - width: 26px; - height: 26px; - cursor: pointer; -} - -.walletconnect-modal__close__icon { - position: relative; - top: 7px; - right: 0; - display: flex; - align-items: center; - justify-content: center; - transform: rotate(45deg); -} - -.walletconnect-modal__close__line1 { - position: absolute; - width: 100%; - border: 1px solid rgb(48, 52, 59); -} - -.walletconnect-modal__close__line2 { - position: absolute; - width: 100%; - border: 1px solid rgb(48, 52, 59); - transform: rotate(90deg); -} - -.walletconnect-qrcode__base { - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); - background: rgba(37, 41, 46, 0.95); - height: 100%; - left: 0; - pointer-events: auto; - position: fixed; - top: 0; - transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); - width: 100%; - will-change: opacity; - padding: 40px; - box-sizing: border-box; -} - -.walletconnect-qrcode__text { - color: rgba(60, 66, 82, 0.6); - font-size: 16px; - font-weight: 600; - letter-spacing: 0; - line-height: 1.1875em; - margin: 10px 0 20px 0; - text-align: center; - width: 100%; -} - -@media only screen and (max-width: 768px) { - .walletconnect-qrcode__text { - font-size: 4vw; - } -} - -@media only screen and (max-width: 320px) { - .walletconnect-qrcode__text { - font-size: 14px; - } -} - -.walletconnect-qrcode__image { - width: calc(100% - 30px); - box-sizing: border-box; - cursor: none; - margin: 0 auto; -} - -.walletconnect-qrcode__notification { - position: absolute; - bottom: 0; - left: 0; - right: 0; - font-size: 16px; - padding: 16px 20px; - border-radius: 16px; - text-align: center; - transition: all 0.1s ease-in-out; - background: white; - color: black; - margin-bottom: -60px; - opacity: 0; -} - -.walletconnect-qrcode__notification.notification__show { - opacity: 1; -} - -@media only screen and (max-width: 768px) { - .walletconnect-modal__header { - height: 130px; - } - .walletconnect-modal__base { - overflow: auto; - } -} - -@media only screen and (min-device-width: 415px) and (max-width: 768px) { - #content { - max-width: 768px; - box-sizing: border-box; - } -} - -@media only screen and (min-width: 375px) and (max-width: 415px) { - #content { - max-width: 414px; - box-sizing: border-box; - } -} - -@media only screen and (min-width: 320px) and (max-width: 375px) { - #content { - max-width: 375px; - box-sizing: border-box; - } -} - -@media only screen and (max-width: 320px) { - #content { - max-width: 320px; - box-sizing: border-box; - } -} - -.walletconnect-modal__base { - -webkit-font-smoothing: antialiased; - background: #ffffff; - border-radius: 24px; - box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4); - font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font, - -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; - margin-top: 41px; - padding: 24px 24px 22px; - pointer-events: auto; - position: relative; - text-align: center; - transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); - will-change: transform; - overflow: visible; - transform: translateY(-50%); - top: 50%; - max-width: 500px; - margin: auto; -} - -@media only screen and (max-width: 320px) { - .walletconnect-modal__base { - padding: 24px 12px; - } -} - -.walletconnect-modal__base .hidden { - transform: translateY(150%); - transition: 0.125s cubic-bezier(0.4, 0, 1, 1); -} - -.walletconnect-modal__header { - align-items: center; - display: flex; - height: 26px; - left: 0; - justify-content: space-between; - position: absolute; - top: -42px; - width: 100%; -} - -.walletconnect-modal__base .wc-logo { - align-items: center; - display: flex; - height: 26px; - margin-top: 15px; - padding-bottom: 15px; - pointer-events: auto; -} - -.walletconnect-modal__base .wc-logo div { - background-color: #3399ff; - height: 21px; - margin-right: 5px; - mask-image: url("images/wc-logo.svg") center no-repeat; - width: 32px; -} - -.walletconnect-modal__base .wc-logo p { - color: #ffffff; - font-size: 20px; - font-weight: 600; - margin: 0; -} - -.walletconnect-modal__base h2 { - color: rgba(60, 66, 82, 0.6); - font-size: 16px; - font-weight: 600; - letter-spacing: 0; - line-height: 1.1875em; - margin: 0 0 19px 0; - text-align: center; - width: 100%; -} - -.walletconnect-modal__base__row { - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); - align-items: center; - border-radius: 20px; - cursor: pointer; - display: flex; - height: 56px; - justify-content: space-between; - padding: 0 15px; - position: relative; - margin: 0px 0px 8px; - text-align: left; - transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94); - will-change: transform; - text-decoration: none; -} - -.walletconnect-modal__base__row:hover { - background: rgba(60, 66, 82, 0.06); -} - -.walletconnect-modal__base__row:active { - background: rgba(60, 66, 82, 0.06); - transform: scale(0.975); - transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94); -} - -.walletconnect-modal__base__row__h3 { - color: #25292e; - font-size: 20px; - font-weight: 700; - margin: 0; - padding-bottom: 3px; -} - -.walletconnect-modal__base__row__right { - align-items: center; - display: flex; - justify-content: center; -} - -.walletconnect-modal__base__row__right__app-icon { - border-radius: 8px; - height: 34px; - margin: 0 11px 2px 0; - width: 34px; - background-size: 100%; - box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25); -} - -.walletconnect-modal__base__row__right__caret { - height: 18px; - opacity: 0.3; - transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94); - width: 8px; - will-change: opacity; -} - -.walletconnect-modal__base__row:hover .caret, -.walletconnect-modal__base__row:active .caret { - opacity: 0.6; -} - -.walletconnect-modal__mobile__toggle { - width: 80%; - display: flex; - margin: 0 auto; - position: relative; - overflow: hidden; - border-radius: 8px; - margin-bottom: 18px; - background: #d4d5d9; -} - -.walletconnect-modal__single_wallet { - display: flex; - justify-content: center; - margin-top: 7px; - margin-bottom: 18px; -} - -.walletconnect-modal__single_wallet a { - cursor: pointer; - color: rgb(64, 153, 255); - font-size: 21px; - font-weight: 800; - text-decoration: none !important; - margin: 0 auto; -} - -.walletconnect-modal__mobile__toggle_selector { - width: calc(50% - 8px); - background: white; - position: absolute; - border-radius: 5px; - height: calc(100% - 8px); - top: 4px; - transition: all 0.2s ease-in-out; - transform: translate3d(4px, 0, 0); -} - -.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector { - transform: translate3d(calc(100% + 12px), 0, 0); -} - -.walletconnect-modal__mobile__toggle a { - font-size: 12px; - width: 50%; - text-align: center; - padding: 8px; - margin: 0; - font-weight: 600; - z-index: 1; -} - -.walletconnect-modal__footer { - display: flex; - justify-content: center; - margin-top: 20px; -} - -@media only screen and (max-width: 768px) { - .walletconnect-modal__footer { - margin-top: 5vw; - } -} - -.walletconnect-modal__footer a { - cursor: pointer; - color: #898d97; - font-size: 15px; - margin: 0 auto; -} - -@media only screen and (max-width: 320px) { - .walletconnect-modal__footer a { - font-size: 14px; - } -} - -.walletconnect-connect__buttons__wrapper { - max-height: 44vh; -} - -.walletconnect-connect__buttons__wrapper__android { - margin: 50% 0; -} - -.walletconnect-connect__buttons__wrapper__wrap { - display: grid; - grid-template-columns: repeat(4, 1fr); - margin: 10px 0; -} - -@media only screen and (min-width: 768px) { - .walletconnect-connect__buttons__wrapper__wrap { - margin-top: 40px; - } -} - -.walletconnect-connect__button { - background-color: rgb(64, 153, 255); - padding: 12px; - border-radius: 8px; - text-decoration: none; - color: rgb(255, 255, 255); - font-weight: 500; -} - -.walletconnect-connect__button__icon_anchor { - cursor: pointer; - display: flex; - justify-content: flex-start; - align-items: center; - margin: 8px; - width: 42px; - justify-self: center; - flex-direction: column; - text-decoration: none !important; -} - -@media only screen and (max-width: 320px) { - .walletconnect-connect__button__icon_anchor { - margin: 4px; - } -} - -.walletconnect-connect__button__icon { - border-radius: 10px; - height: 42px; - margin: 0; - width: 42px; - background-size: cover !important; - box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25); -} - -.walletconnect-connect__button__text { - color: #424952; - font-size: 2.7vw; - text-decoration: none !important; - padding: 0; - margin-top: 1.8vw; - font-weight: 600; -} - -@media only screen and (min-width: 768px) { - .walletconnect-connect__button__text { - font-size: 16px; - margin-top: 12px; - } -} - -.walletconnect-search__input { - border: none; - background: #d4d5d9; - border-style: none; - padding: 8px 16px; - outline: none; - font-style: normal; - font-stretch: normal; - font-size: 16px; - font-style: normal; - font-stretch: normal; - line-height: normal; - letter-spacing: normal; - text-align: left; - border-radius: 8px; - width: calc(100% - 16px); - margin: 0; - margin-bottom: 8px; -} -`;typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function ps(t,e){try{var n=t()}catch(r){return e(r)}return n&&n.then?n.then(void 0,e):n}var gs="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='300px' height='185px' viewBox='0 0 300 185' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 49.3 (51167) - http://www.bohemiancoding.com/sketch --%3E %3Ctitle%3EWalletConnect%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cdefs%3E%3C/defs%3E %3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='walletconnect-logo-alt' fill='%233B99FC' fill-rule='nonzero'%3E %3Cpath d='M61.4385429,36.2562612 C110.349767,-11.6319051 189.65053,-11.6319051 238.561752,36.2562612 L244.448297,42.0196786 C246.893858,44.4140867 246.893858,48.2961898 244.448297,50.690599 L224.311602,70.406102 C223.088821,71.6033071 221.106302,71.6033071 219.883521,70.406102 L211.782937,62.4749541 C177.661245,29.0669724 122.339051,29.0669724 88.2173582,62.4749541 L79.542302,70.9685592 C78.3195204,72.1657633 76.337001,72.1657633 75.1142214,70.9685592 L54.9775265,51.2530561 C52.5319653,48.8586469 52.5319653,44.9765439 54.9775265,42.5821357 L61.4385429,36.2562612 Z M280.206339,77.0300061 L298.128036,94.5769031 C300.573585,96.9713 300.573599,100.85338 298.128067,103.247793 L217.317896,182.368927 C214.872352,184.763353 210.907314,184.76338 208.461736,182.368989 C208.461726,182.368979 208.461714,182.368967 208.461704,182.368957 L151.107561,126.214385 C150.496171,125.615783 149.504911,125.615783 148.893521,126.214385 C148.893517,126.214389 148.893514,126.214393 148.89351,126.214396 L91.5405888,182.368927 C89.095052,184.763359 85.1300133,184.763399 82.6844276,182.369014 C82.6844133,182.369 82.684398,182.368986 82.6843827,182.36897 L1.87196327,103.246785 C-0.573596939,100.852377 -0.573596939,96.9702735 1.87196327,94.5758653 L19.7936929,77.028998 C22.2392531,74.6345898 26.2042918,74.6345898 28.6498531,77.028998 L86.0048306,133.184355 C86.6162214,133.782957 87.6074796,133.782957 88.2188704,133.184355 C88.2188796,133.184346 88.2188878,133.184338 88.2188969,133.184331 L145.571,77.028998 C148.016505,74.6345347 151.981544,74.6344449 154.427161,77.028798 C154.427195,77.0288316 154.427229,77.0288653 154.427262,77.028899 L211.782164,133.184331 C212.393554,133.782932 213.384814,133.782932 213.996204,133.184331 L271.350179,77.0300061 C273.79574,74.6355969 277.760778,74.6355969 280.206339,77.0300061 Z' id='WalletConnect'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E",ms="WalletConnect",ws=300,ys="rgb(64, 153, 255)",Mn="walletconnect-wrapper",ut="walletconnect-style-sheet",Ln="walletconnect-qrcode-modal",bs="walletconnect-qrcode-close",qn="walletconnect-qrcode-text",vs="walletconnect-connect-button";function Es(t){return l.createElement("div",{className:"walletconnect-modal__header"},l.createElement("img",{src:gs,className:"walletconnect-modal__headerLogo"}),l.createElement("p",null,ms),l.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:t.onClose},l.createElement("div",{id:bs,className:"walletconnect-modal__close__icon"},l.createElement("div",{className:"walletconnect-modal__close__line1"}),l.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function Ss(t){return l.createElement("a",{className:"walletconnect-connect__button",href:t.href,id:vs+"-"+t.name,onClick:t.onClick,rel:"noopener noreferrer",style:{backgroundColor:t.color},target:"_blank"},t.name)}var Cs="data:image/svg+xml,%3Csvg width='8' height='18' viewBox='0 0 8 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.586301 0.213898C0.150354 0.552968 0.0718197 1.18124 0.41089 1.61719L5.2892 7.88931C5.57007 8.25042 5.57007 8.75608 5.2892 9.11719L0.410889 15.3893C0.071819 15.8253 0.150353 16.4535 0.586301 16.7926C1.02225 17.1317 1.65052 17.0531 1.98959 16.6172L6.86791 10.3451C7.7105 9.26174 7.7105 7.74476 6.86791 6.66143L1.98959 0.38931C1.65052 -0.0466374 1.02225 -0.125172 0.586301 0.213898Z' fill='%233C4252'/%3E %3C/svg%3E";function ks(t){var e=t.color,n=t.href,r=t.name,o=t.logo,i=t.onClick;return l.createElement("a",{className:"walletconnect-modal__base__row",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},l.createElement("h3",{className:"walletconnect-modal__base__row__h3"},r),l.createElement("div",{className:"walletconnect-modal__base__row__right"},l.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+o+"') "+e,backgroundSize:"100%"}}),l.createElement("img",{src:Cs,className:"walletconnect-modal__base__row__right__caret"})))}function xs(t){var e=t.color,n=t.href,r=t.name,o=t.logo,i=t.onClick,d=window.innerWidth<768?(r.length>8?2.5:2.7)+"vw":"inherit";return l.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},l.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+o+"') "+e,backgroundSize:"100%"}}),l.createElement("div",{style:{fontSize:d},className:"walletconnect-connect__button__text"},r))}var Is=5,de=12;function Rs(t){var e=E.isAndroid(),n=l.useState(""),r=n[0],o=n[1],i=l.useState(""),d=i[0],f=i[1],p=l.useState(1),g=p[0],w=p[1],y=d?t.links.filter(function(c){return c.name.toLowerCase().includes(d.toLowerCase())}):t.links,b=t.errorMessage,C=d||y.length>Is,k=Math.ceil(y.length/de),I=[(g-1)*de+1,g*de],R=y.length?y.filter(function(c,h){return h+1>=I[0]&&h+1<=I[1]}):[],s=!e&&k>1,a=void 0;function u(c){o(c.target.value),clearTimeout(a),c.target.value?a=setTimeout(function(){f(c.target.value),w(1)},1e3):(o(""),f(""),w(1))}return l.createElement("div",null,l.createElement("p",{id:qn,className:"walletconnect-qrcode__text"},e?t.text.connect_mobile_wallet:t.text.choose_preferred_wallet),!e&&l.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:r,onChange:u}),l.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(e?"__android":C&&y.length?"__wrap":"")},e?l.createElement(Ss,{name:t.text.connect,color:ys,href:t.uri,onClick:l.useCallback(function(){E.saveMobileLinkInfo({name:"Unknown",href:t.uri})},[])}):R.length?R.map(function(c){var h=c.color,m=c.name,_=c.shortName,v=c.logo,T=E.formatIOSMobile(t.uri,c),U=l.useCallback(function(){E.saveMobileLinkInfo({name:m,href:T})},[R]);return C?l.createElement(xs,{color:h,href:T,name:_||m,logo:v,onClick:U}):l.createElement(ks,{color:h,href:T,name:m,logo:v,onClick:U})}):l.createElement(l.Fragment,null,l.createElement("p",null,b.length?t.errorMessage:t.links.length&&!y.length?t.text.no_wallets_found:t.text.loading))),s&&l.createElement("div",{className:"walletconnect-modal__footer"},Array(k).fill(0).map(function(c,h){var m=h+1,_=g===m;return l.createElement("a",{style:{margin:"auto 10px",fontWeight:_?"bold":"normal"},onClick:function(){return w(m)}},m)})))}function Ts(t){var e=!!t.message.trim();return l.createElement("div",{className:"walletconnect-qrcode__notification"+(e?" notification__show":"")},t.message)}var Os=function(t){try{var e="";return Promise.resolve(Nn.toString(t,{margin:0,type:"svg"})).then(function(n){return typeof n=="string"&&(e=n.replace("0||l.useEffect(function(){var Pn=function(){try{if(e)return Promise.resolve();d(!0);var ce=ps(function(){var F=t.qrcodeModalOptions&&t.qrcodeModalOptions.registryUrl?t.qrcodeModalOptions.registryUrl:E.getWalletRegistryUrl();return Promise.resolve(fetch(F)).then(function($n){return Promise.resolve($n.json()).then(function(jn){var Bn=jn.listings,Wn=n?"mobile":"desktop",Y=E.getMobileLinkRegistry(E.formatMobileRegistry(Bn,Wn),r);d(!1),g(!0),T(Y.length?"":t.text.no_supported_wallets),m(Y);var Ye=Y.length===1;Ye&&(R(E.formatIOSMobile(t.uri,Y[0])),b(!0)),u(Ye)})})},function(F){d(!1),g(!0),T(t.text.something_went_wrong),console.error(F)});return Promise.resolve(ce&&ce.then?ce.then(function(){}):void 0)}catch(F){return Promise.reject(F)}};Pn()})};U();var Dn=n?y:!y;return l.createElement("div",{id:Ln,className:"walletconnect-qrcode__base animated fadeIn"},l.createElement("div",{className:"walletconnect-modal__base"},l.createElement(Es,{onClose:t.onClose}),a&&y?l.createElement("div",{className:"walletconnect-modal__single_wallet"},l.createElement("a",{onClick:function(){return E.saveMobileLinkInfo({name:h[0].name,href:I})},href:I,rel:"noopener noreferrer",target:"_blank"},t.text.connect_with+" "+(a?h[0].name:"")+" ›")):e||i||!i&&h.length?l.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(Dn?" right__selected":"")},l.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),n?l.createElement(l.Fragment,null,l.createElement("a",{onClick:function(){return b(!1),U()}},t.text.mobile),l.createElement("a",{onClick:function(){return b(!0)}},t.text.qrcode)):l.createElement(l.Fragment,null,l.createElement("a",{onClick:function(){return b(!0)}},t.text.qrcode),l.createElement("a",{onClick:function(){return b(!1),U()}},t.text.desktop))):null,l.createElement("div",null,y||!e&&!i&&!h.length?l.createElement(Ns,Object.assign({},C)):l.createElement(Rs,Object.assign({},C,{links:h,errorMessage:v})))))}var Ls={choose_preferred_wallet:"Wähle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterstützten Wallet",no_wallets_found:"keine Wallet gefunden"},qs={choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},As={choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera móvil",scan_qrcode_with_wallet:"Escanea el código QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo salió mal",no_supported_wallets:"Todavía no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},Us={choose_preferred_wallet:"Choisissez votre portefeuille préféré",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copié!",connect_with:"Connectez-vous à l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourné",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouvé"},Ds={choose_preferred_wallet:"원하는 지갑을 선택하세요",connect_mobile_wallet:"모바일 지갑과 연결",scan_qrcode_with_wallet:"WalletConnect 지원 지갑에서 QR코드를 스캔하세요",connect:"연결",qrcode:"QR 코드",mobile:"모바일",desktop:"데스크탑",copy_to_clipboard:"클립보드에 복사",copied_to_clipboard:"클립보드에 복사되었습니다!",connect_with:"와 연결하다",loading:"로드 중...",something_went_wrong:"문제가 발생했습니다.",no_supported_wallets:"아직 지원되는 지갑이 없습니다",no_wallets_found:"지갑을 찾을 수 없습니다"},Ps={choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se à carteira móvel",scan_qrcode_with_wallet:"Ler o código QR com uma carteira compatível com WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda não há carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},$s={choose_preferred_wallet:"选择你的钱包",connect_mobile_wallet:"连接至移动端钱包",scan_qrcode_with_wallet:"使用兼容 WalletConnect 的钱包扫描二维码",connect:"连接",qrcode:"二维码",mobile:"移动",desktop:"桌面",copy_to_clipboard:"复制到剪贴板",copied_to_clipboard:"复制到剪贴板成功!",connect_with:"通过以下方式连接",loading:"正在加载...",something_went_wrong:"出了问题",no_supported_wallets:"目前还没有支持的钱包",no_wallets_found:"没有找到钱包"},js={choose_preferred_wallet:"کیف پول مورد نظر خود را انتخاب کنید",connect_mobile_wallet:"به کیف پول موبایل وصل شوید",scan_qrcode_with_wallet:"کد QR را با یک کیف پول سازگار با WalletConnect اسکن کنید",connect:"اتصال",qrcode:"کد QR",mobile:"سیار",desktop:"دسکتاپ",copy_to_clipboard:"کپی به کلیپ بورد",copied_to_clipboard:"در کلیپ بورد کپی شد!",connect_with:"ارتباط با",loading:"...بارگذاری",something_went_wrong:"مشکلی پیش آمد",no_supported_wallets:"هنوز هیچ کیف پول پشتیبانی شده ای وجود ندارد",no_wallets_found:"هیچ کیف پولی پیدا نشد"},dt={de:Ls,en:qs,es:As,fr:Us,ko:Ds,pt:Ps,zh:$s,fa:js};function Bs(){var t=E.getDocumentOrThrow(),e=t.getElementById(ut);e&&t.head.removeChild(e);var n=t.createElement("style");n.setAttribute("id",ut),n.innerText=_s,t.head.appendChild(n)}function Ws(){var t=E.getDocumentOrThrow(),e=t.createElement("div");return e.setAttribute("id",Mn),t.body.appendChild(e),e}function An(){var t=E.getDocumentOrThrow(),e=t.getElementById(Ln);e&&(e.className=e.className.replace("fadeIn","fadeOut"),setTimeout(function(){var n=t.getElementById(Mn);n&&t.body.removeChild(n)},ws))}function Fs(t){return function(){An(),t&&t()}}function Hs(){var t=E.getNavigatorOrThrow().language.split("-")[0]||"en";return dt[t]||dt.en}function zs(t,e,n){Bs();var r=Ws();l.render(l.createElement(Ms,{text:Hs(),uri:t,onClose:Fs(e),qrcodeModalOptions:n}),r)}function Qs(){An()}var Un=function(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"};function Js(t,e,n){console.log(t),Un()?fs(t):zs(t,e,n)}function Vs(){Un()||Qs()}var Gs={open:Js,close:Vs},Ys=Gs;const Ks=me(Ys);class Zs extends mr{constructor(e){super(),this.events=new ft,this.accounts=[],this.chainId=1,this.pending=!1,this.bridge="https://bridge.walletconnect.org",this.qrcode=!0,this.qrcodeModalOptions=void 0,this.opts=e,this.chainId=(e==null?void 0:e.chainId)||this.chainId,this.wc=this.register(e)}get connected(){return typeof this.wc<"u"&&this.wc.connected}get connecting(){return this.pending}get connector(){return this.wc=this.register(this.opts),this.wc}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async open(e){if(this.connected){this.onOpen();return}return new Promise((n,r)=>{this.on("error",o=>{r(o)}),this.on("open",()=>{n()}),this.create(e)})}async close(){typeof this.wc>"u"||(this.wc.connected&&this.wc.killSession(),this.onClose())}async send(e){this.wc=this.register(this.opts),this.connected||await this.open(),this.sendPayload(e).then(n=>this.events.emit("payload",n)).catch(n=>this.events.emit("payload",Ke(e.id,n.message)))}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e!=null&&e.connector?e.connector.bridge:(e==null?void 0:e.bridge)||"https://bridge.walletconnect.org",this.qrcode=typeof(e==null?void 0:e.qrcode)>"u"||e.qrcode!==!1,this.chainId=typeof(e==null?void 0:e.chainId)<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e==null?void 0:e.qrcodeModalOptions;const n={bridge:this.bridge,qrcodeModal:this.qrcode?Ks:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e==null?void 0:e.storageId,signingMethods:e==null?void 0:e.signingMethods,clientMeta:e==null?void 0:e.clientMeta};if(this.wc=typeof(e==null?void 0:e.connector)<"u"?e.connector:new Bi(n),typeof this.wc>"u")throw new Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}onOpen(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}onClose(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}onError(e,n="Failed or Rejected Request",r=-32e3){const o={id:e.id,jsonrpc:e.jsonrpc,error:{code:r,message:n}};return this.events.emit("payload",o),o}create(e){this.wc=this.register(this.opts),this.chainId=e||this.chainId,!(this.connected||this.pending)&&(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then(()=>this.events.emit("created")).catch(n=>this.events.emit("error",n)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{var n,r;if(e){this.events.emit("error",e);return}this.accounts=((n=this.wc)===null||n===void 0?void 0:n.accounts)||[],this.chainId=((r=this.wc)===null||r===void 0?void 0:r.chainId)||this.chainId,this.onOpen()}),this.wc.on("disconnect",e=>{if(e){this.events.emit("error",e);return}this.onClose()}),this.wc.on("modal_closed",()=>{this.events.emit("error",new Error("User closed modal"))}),this.wc.on("session_update",(e,n)=>{const{accounts:r,chainId:o}=n.params[0];(!this.accounts||r&&this.accounts!==r)&&(this.accounts=r,this.events.emit("accountsChanged",r)),(!this.chainId||o&&this.chainId!==o)&&(this.chainId=o,this.events.emit("chainChanged",o))})}async sendPayload(e){this.wc=this.register(this.opts);try{const n=await this.wc.unsafeSend(e);return this.sanitizeResponse(n)}catch(n){return this.onError(e,n.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?Ke(e.id,e.error.message,e.error.data):e}}class na{constructor(e){this.events=new ft,this.rpc={infuraId:e==null?void 0:e.infuraId,custom:e==null?void 0:e.rpc},this.signer=new Ze(new Zs(e));const n=this.signer.connection.chainId||(e==null?void 0:e.chainId)||1;this.http=this.setHttpProvider(n),this.registerEventListeners()}get connected(){return this.signer.connection.connected}get connector(){return this.signer.connection.connector}get accounts(){return this.signer.connection.accounts}get chainId(){return this.signer.connection.chainId}get rpcUrl(){var e;return((e=this.http)===null||e===void 0?void 0:e.connection).url||""}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.signer.connection.accounts;case"eth_accounts":return this.signer.connection.accounts;case"eth_chainId":return this.signer.connection.chainId}if(xe.includes(e.method))return this.signer.request(e);if(typeof this.http>"u")throw new Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}sendAsync(e,n){this.request(e).then(r=>n(null,r)).catch(r=>n(r,void 0))}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){this.signer.connection.connected||await this.signer.connect()}async disconnect(){this.signer.connection.connected&&await this.signer.disconnect()}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}removeListener(e,n){this.events.removeListener(e,n)}off(e,n){this.events.off(e,n)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.connection.on("accountsChanged",e=>{this.events.emit("accountsChanged",e)}),this.signer.connection.on("chainChanged",e=>{this.http=this.setHttpProvider(e),this.events.emit("chainChanged",e)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){const n=Bt(e,this.rpc);return typeof n>"u"?void 0:new Ze(new wr(n))}}export{na as default}; -//# sourceMappingURL=index-CtWpA4AQ.js.map diff --git a/apps/web/public/assets/index-DCYYXl21.js b/apps/web/public/assets/index-DCYYXl21.js deleted file mode 100644 index 803d3b74..00000000 --- a/apps/web/public/assets/index-DCYYXl21.js +++ /dev/null @@ -1,2 +0,0 @@ -import{g as ce,a as ie,b as Be,c as fe,d as Qe,l as Ee,n as ge}from"./index-CTwKNzhK.js";(function(){try{var A=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new A.Error().stack;e&&(A._sentryDebugIds=A._sentryDebugIds||{},A._sentryDebugIds[e]="b86dc40b-125a-4330-9414-50db45ec9f48",A._sentryDebugIdIdentifier="sentry-dbid-b86dc40b-125a-4330-9414-50db45ec9f48")}catch{}})();var RA="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const AA=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),eA=4;function UA(A){let e=0;function t(){return A[e++]<<8|A[e++]}let l=t(),n=1,r=[0,1];for(let D=1;D>--C&1}const c=31,i=2**c,B=i>>>1,g=B>>1,Q=i-1;let E=0;for(let D=0;D1;){let Z=p+Y>>>1;D>>1|s(),u=u<<1^B,a=(a^B)<<1|B|1;I=u,S=1+a-u}let P=l-4;return M.map(D=>{switch(D-P){case 3:return P+65792+(A[w++]<<16|A[w++]<<8|A[w++]);case 2:return P+256+(A[w++]<<8|A[w++]);case 1:return P+A[w++];default:return D-1}})}function NA(A){let e=0;return()=>A[e++]}function rA(A){return NA(UA(kA(A)))}function kA(A){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((n,r)=>e[n.charCodeAt(0)]=r);let t=A.length,l=new Uint8Array(6*t>>3);for(let n=0,r=0,o=0,w=0;n=8&&(l[r++]=w>>(o-=8));return l}function FA(A){return A&1?~A>>1:A>>1}function JA(A,e){let t=Array(A);for(let l=0,n=0;l{let e=H(A);if(e.length)return e})}function wA(A){let e=[];for(;;){let t=A();if(t==0)break;e.push(HA(t,A))}for(;;){let t=A()-1;if(t<0)break;e.push(OA(t,A))}return e.flat()}function O(A){let e=[];for(;;){let t=A(e.length);if(!t)break;e.push(t)}return e}function sA(A,e,t){let l=Array(A).fill().map(()=>[]);for(let n=0;nl[o].push(r));return l}function HA(A,e){let t=1+e(),l=e(),n=O(e);return sA(n.length,1+A,e).flatMap((o,w)=>{let[C,...f]=o;return Array(n[w]).fill().map((s,c)=>{let i=c*l;return[C+c*t,f.map(B=>B+i)]})})}function OA(A,e){let t=1+e();return sA(t,1+A,e).map(n=>[n[0],n.slice(1)])}function mA(A){let e=[],t=H(A);return n(l([]),[]),e;function l(r){let o=A(),w=O(()=>{let C=H(A).map(f=>t[f]);if(C.length)return l(C)});return{S:o,B:w,Q:r}}function n({S:r,B:o},w,C){if(!(r&4&&C===w[w.length-1])){r&2&&(C=w[w.length-1]),r&1&&e.push(w);for(let f of o)for(let s of f.Q)n(f,[...w,s],C)}}}function GA(A){return A.toString(16).toUpperCase().padStart(2,"0")}function CA(A){return`{${GA(A)}}`}function SA(A){let e=[];for(let t=0,l=A.length;t>24&255}function BA(A){return A&16777215}let j,tA,X,V;function YA(){let A=rA(VA);j=new Map(oA(A).flatMap((e,t)=>e.map(l=>[l,t+1<<24]))),tA=new Set(H(A)),X=new Map,V=new Map;for(let[e,t]of wA(A)){if(!tA.has(e)&&t.length==2){let[l,n]=t,r=V.get(l);r||(r=new Map,V.set(l,r)),r.set(n,e)}X.set(e,t.reverse())}}function fA(A){return A>=m&&A=L&&A=K&&ex&&e0&&n(x+f)}else{let o=X.get(r);o?t.push(...o):n(r)}if(!t.length)break;r=t.pop()}if(l&&e.length>1){let r=F(e[0]);for(let o=1;o0&&n>=o)o==0?(e.push(l,...t),t.length=0,l=w):t.push(w),n=o;else{let C=ZA(l,w);C>=0?l=C:n==0&&o==0?(e.push(l),l=w):(t.push(w),n=o)}}return l>=0&&e.push(l,...t),e}function EA(A){return QA(A).map(BA)}function jA(A){return TA(QA(A))}const nA=45,gA=".",MA=65039,DA=1,R=A=>Array.from(A);function G(A,e){return A.P.has(e)||A.Q.has(e)}class XA extends Array{get is_emoji(){return!0}}let v,uA,h,W,pA,U,T,d,aA,lA,q;function y(){if(v)return;let A=rA(RA);const e=()=>H(A),t=()=>new Set(e());v=new Map(wA(A)),uA=t(),h=e(),W=new Set(e().map(s=>h[s])),h=new Set(h),pA=t(),t();let l=oA(A),n=A();const r=()=>new Set(e().flatMap(s=>l[s]).concat(e()));U=O(s=>{let c=O(A).map(i=>i+96);if(c.length){let i=s>=n;c[0]-=32,c=N(c),i&&(c=`Restricted[${c}]`);let B=r(),g=r(),Q=!A();return{N:c,P:B,Q:g,M:Q,R:i}}}),T=t(),d=new Map;let o=e().concat(R(T)).sort((s,c)=>s-c);o.forEach((s,c)=>{let i=A(),B=o[c]=i?o[c-i]:{V:[],M:new Map};B.V.push(s),T.has(s)||d.set(s,B)});for(let{V:s,M:c}of new Set(d.values())){let i=[];for(let g of s){let Q=U.filter(M=>G(M,g)),E=i.find(({G:M})=>Q.some(I=>M.has(I)));E||(E={G:new Set,V:[]},i.push(E)),E.V.push(g),Q.forEach(M=>E.G.add(M))}let B=i.flatMap(g=>R(g.G));for(let{G:g,V:Q}of i){let E=new Set(B.filter(M=>!g.has(M)));for(let M of Q)c.set(M,E)}}let w=new Set,C=new Set;const f=s=>w.has(s)?C.add(s):w.add(s);for(let s of U){for(let c of s.P)f(c);for(let c of s.Q)f(c)}for(let s of w)!d.has(s)&&!C.has(s)&&d.set(s,DA);aA=new Set(R(w).concat(R(EA(w)))),lA=mA(A).map(s=>XA.from(s)).sort(PA),q=new Map;for(let s of lA){let c=[q];for(let i of s){let B=c.map(g=>{let Q=g.get(i);return Q||(Q=new Map,g.set(i,Q)),Q});i===MA?c.push(...B):c=B}for(let i of c)i.V=s}}function _(A){return(hA(A)?"":`${$(z([A]))} `)+CA(A)}function $(A){return`"${A}"‎`}function vA(A){if(A.length>=4&&A[2]==nA&&A[3]==nA)throw new Error(`invalid label extension: "${N(A.slice(0,4))}"`)}function WA(A){for(let t=A.lastIndexOf(95);t>0;)if(A[--t]!==95)throw new Error("underscore allowed only at start")}function qA(A){let e=A[0],t=AA.get(e);if(t)throw J(`leading ${t}`);let l=A.length,n=-1;for(let r=1;r{let r=SA(n),o={input:r,offset:l};l+=r.length+1;try{let w=o.tokens=le(r,e,t),C=w.length,f;if(!C)throw new Error("empty label");let s=o.output=w.flat();if(WA(s),!(o.emoji=C>1||w[0].is_emoji)&&s.every(i=>i<128))vA(s),f="ASCII";else{let i=w.flatMap(B=>B.is_emoji?[]:B);if(!i.length)f="Emoji";else{if(h.has(s[0]))throw J("leading combining mark");for(let Q=1;Qo.has(w)):R(o),!t.length)return}else l.push(n)}if(t){for(let n of t)if(l.every(r=>G(n,r)))throw new Error(`whole-script confusable: ${A.N}/${n.N}`)}}function ee(A){let e=U;for(let t of A){let l=e.filter(n=>G(n,t));if(!l.length)throw U.some(n=>G(n,t))?dA(e[0],t):IA(t);if(e=l,l.length==1)break}return e}function te(A){return A.map(({input:e,error:t,output:l})=>{if(t){let n=t.message;throw new Error(A.length==1?n:`Invalid label ${$(z(e))}: ${n}`)}return N(l)}).join(gA)}function IA(A){return new Error(`disallowed character: ${_(A)}`)}function dA(A,e){let t=_(e),l=U.find(n=>n.P.has(e));return l&&(t=`${l.N} ${t}`),new Error(`illegal mixture: ${A.N} + ${t}`)}function J(A){return new Error(`illegal placement: ${A}`)}function ne(A,e){for(let t of e)if(!G(A,t))throw dA(A,t);if(A.M){let t=EA(e);for(let l=1,n=t.length;leA)throw new Error(`excessive non-spacing marks: ${$(z(t.slice(l-1,r)))} (${r-l}/${eA})`);l=r}}}function le(A,e,t){let l=[],n=[];for(A=A.slice().reverse();A.length;){let r=oe(A);if(r)n.length&&(l.push(e(n)),n=[]),l.push(t(r));else{let o=A.pop();if(aA.has(o))n.push(o);else{let w=v.get(o);if(w)n.push(...w);else if(!uA.has(o))throw IA(o)}}}return n.length&&l.push(e(n)),l}function re(A){return A.filter(e=>e!=MA)}function oe(A,e){let t=q,l,n=A.length;for(;n&&(t=t.get(A[--n]),!!t);){let{V:r}=t;r&&(l=r,A.length=n)}return l}function we(A){return _A(A)}export{ce as getEnsAddress,ie as getEnsAvatar,Be as getEnsName,fe as getEnsResolver,Qe as getEnsText,Ee as labelhash,ge as namehash,we as normalize}; -//# sourceMappingURL=index-DCYYXl21.js.map diff --git a/apps/web/public/assets/index-DKyRIqqa.js b/apps/web/public/assets/index-DKyRIqqa.js deleted file mode 100644 index 87227d89..00000000 --- a/apps/web/public/assets/index-DKyRIqqa.js +++ /dev/null @@ -1,516 +0,0 @@ -import{q as Fn,p as me,aN as Hn,aO as zn,aP as Qn,aQ as Jn,aR as Vn,aS as Gn,aT as Yn,aU as Kn,aV as Zn,aW as Xn,aX as er,aY as tr,aZ as nr,a_ as rr,a$ as or,b0 as ir,b1 as sr,b2 as ar,t as ht,b3 as cr,Y as ft}from"./index-Bl6Lkf65.js";import{r as lr,f as ur,g as dr,i as hr,b as fr,a as _r,s as pr,m as gr,d as Q,o as mr,h as Ke,n as wr}from"./index.es-BlHtwxd-.js";import{b as A,l as S,_ as x,k as $,H as O,B as Z,D as yr,q as we,x as ye,P as be,y as te,g as ve,F as Ee,a as J,T as Se,p as Ce,A as ke,h as ne,E as br,G as _t,m as pt,c as vr}from"./hooks.module-D456YPrV.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7602d111-41c1-4856-9a03-2a14149c8230",t._sentryDebugIdIdentifier="sentry-dbid-7602d111-41c1-4856-9a03-2a14149c8230")}catch{}})();class Ze extends lr{constructor(e){super(e),this.events=new Fn.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async request(e,n){return this.requestStrict(ur(e.method,e.params||[],e.id||dr().toString()),n)}async requestStrict(e,n){return new Promise(async(r,o)=>{if(!this.connection.connected)try{await this.open()}catch(i){o(i)}this.events.on(`${e.id}`,i=>{hr(i)?o(i.error):r(i.result)});try{await this.connection.send(e,n)}catch(i){o(i)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),fr(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}const le="Session currently connected",q="Session currently disconnected",Er="Session Rejected",Sr="Missing JSON RPC response",Cr='JSON-RPC success response must include "result" field',kr='JSON-RPC error response must include "error" field',xr='JSON RPC request must have valid "method" value',Ir='JSON RPC request must have valid "id" value',Rr="Missing one of the required parameters: bridge / uri / session",Xe="JSON RPC response format is invalid",Tr="URI format is invalid",Or="QRCode Modal not provided",et="User close QRCode Modal",Nr=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],Mr=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],xe=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...Mr],he="WALLETCONNECT_DEEPLINK_CHOICE",Lr={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"};var gt=Ie;Ie.strict=mt;Ie.loose=wt;var qr=Object.prototype.toString,Ar={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function Ie(t){return mt(t)||wt(t)}function mt(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function wt(t){return Ar[qr.call(t)]}const Ur=me(gt);var Dr=gt.strict,Pr=function(e){if(Dr(e)){var n=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(n=n.slice(e.byteOffset,e.byteOffset+e.byteLength)),n}else return Buffer.from(e)};const $r=me(Pr),Re="hex",Te="utf8",jr="binary",Br="buffer",Wr="array",Fr="typed-array",Hr="array-buffer",re="0";function j(t){return new Uint8Array(t)}function Oe(t,e=!1){const n=t.toString(Re);return e?V(n):n}function Ne(t){return t.toString(Te)}function yt(t){return t.readUIntBE(0,t.length)}function W(t){return $r(t)}function N(t,e=!1){return Oe(W(t),e)}function bt(t){return Ne(W(t))}function vt(t){return yt(W(t))}function Me(t){return Buffer.from(B(t),Re)}function M(t){return j(Me(t))}function zr(t){return Ne(Me(t))}function Qr(t){return vt(M(t))}function Le(t){return Buffer.from(t,Te)}function Et(t){return j(Le(t))}function Jr(t,e=!1){return Oe(Le(t),e)}function Vr(t){const e=parseInt(t,10);return fo(ho(e),"Number can only safely store up to 53 bits"),e}function Gr(t){return Xr(qe(t))}function Yr(t){return Ae(qe(t))}function Kr(t,e){return eo(qe(t),e)}function Zr(t){return`${t}`}function qe(t){const e=(t>>>0).toString(2);return De(e)}function Xr(t){return W(Ae(t))}function Ae(t){return new Uint8Array(so(t).map(e=>parseInt(e,2)))}function eo(t,e){return N(Ae(t),e)}function to(t){return!(typeof t!="string"||!new RegExp(/^[01]+$/).test(t)||t.length%8!==0)}function St(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}function oe(t){return Buffer.isBuffer(t)}function Ue(t){return Ur.strict(t)&&!oe(t)}function Ct(t){return!Ue(t)&&!oe(t)&&typeof t.byteLength<"u"}function no(t){return oe(t)?Br:Ue(t)?Fr:Ct(t)?Hr:Array.isArray(t)?Wr:typeof t}function ro(t){return to(t)?jr:St(t)?Re:Te}function oo(...t){return Buffer.concat(t)}function kt(...t){let e=[];return t.forEach(n=>e=e.concat(Array.from(n))),new Uint8Array([...e])}function io(t,e=8){const n=t%e;return n?(t-n)/e*e+e:t}function so(t,e=8){const n=De(t).match(new RegExp(`.{${e}}`,"gi"));return Array.from(n||[])}function De(t,e=8,n=re){return ao(t,io(t.length,e),n)}function ao(t,e,n=re){return _o(t,e,!0,n)}function B(t){return t.replace(/^0x/,"")}function V(t){return t.startsWith("0x")?t:`0x${t}`}function co(t){return t=B(t),t=De(t,2),t&&(t=V(t)),t}function lo(t){const e=t.startsWith("0x");return t=B(t),t=t.startsWith(re)?t.substring(1):t,e?V(t):t}function uo(t){return typeof t>"u"}function ho(t){return!uo(t)}function fo(t,e){if(!t)throw new Error(e)}function _o(t,e,n,r=re){const o=e-t.length;let i=t;return o>0&&(i=r.repeat(o)+t),i}function X(t){return W(new Uint8Array(t))}function po(t){return bt(new Uint8Array(t))}function xt(t,e){return N(new Uint8Array(t),!e)}function go(t){return vt(new Uint8Array(t))}function mo(...t){return M(t.map(e=>N(new Uint8Array(e))).join("")).buffer}function It(t){return j(t).buffer}function wo(t){return Ne(t)}function yo(t,e){return Oe(t,!e)}function bo(t){return yt(t)}function vo(...t){return oo(...t)}function Eo(t){return Et(t).buffer}function So(t){return Le(t)}function Co(t,e){return Jr(t,!e)}function ko(t){return Vr(t)}function xo(t){return Me(t)}function Rt(t){return M(t).buffer}function Io(t){return zr(t)}function Ro(t){return Qr(t)}function To(t){return Gr(t)}function Oo(t){return Yr(t).buffer}function No(t){return Zr(t)}function Tt(t,e){return Kr(Number(t),!e)}const Mo=Jn,Lo=Vn,qo=Gn,Ao=Yn,Uo=Kn,Ot=Qn,Do=Zn,Nt=Hn,Po=Xn,$o=er,jo=tr,ie=zn;function se(t){return nr(t)}function ae(){const t=se();return t&&t.os?t.os:void 0}function Mt(){const t=ae();return t?t.toLowerCase().includes("android"):!1}function Lt(){const t=ae();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function qt(){return ae()?Mt()||Lt():!1}function At(){const t=se();return t&&t.name?t.name.toLowerCase()==="node":!1}function Ut(){return!At()&&!!Ot()}const Dt=_r,Pt=pr;function Pe(t,e){const n=Pt(e),r=ie();r&&r.setItem(t,n)}function $e(t){let e=null,n=null;const r=ie();return r&&(n=r.getItem(t)),e=n&&Dt(n),e}function je(t){const e=ie();e&&e.removeItem(t)}function fe(){return rr()}function Bo(t){return co(t)}function Wo(t){return V(t)}function Fo(t){return B(t)}function Ho(t){return lo(V(t))}const $t=gr;function K(){return((e,n)=>{for(n=e="";e++<36;n+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return n})()}function zo(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function jt(t,e){let n;const r=Lr[t];return r&&(n=`https://${r}.infura.io/v3/${e}`),n}function Bt(t,e){let n;const r=jt(t,e.infuraId);return e.custom&&e.custom[t]?n=e.custom[t]:r&&(n=r),n}function Qo(t,e){const n=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${n}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function Jo(t){const e=t.href.split("?")[0];Pe(he,Object.assign(Object.assign({},t),{href:e}))}function Wt(t,e){return t.filter(n=>n.name.toLowerCase().includes(e.toLowerCase()))[0]}function Vo(t,e){let n=t;return e&&(n=e.map(r=>Wt(t,r)).filter(Boolean)),n}function Go(t,e){return async(...r)=>new Promise((o,i)=>{const d=(f,p)=>{(f===null||typeof f>"u")&&i(f),o(p)};t.apply(e,[...r,d])})}function Ft(t){const e=t.message||"Failed or Rejected Request";let n=-32e3;if(t&&!t.code)switch(e){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3;break}const r={code:n,message:e};return t.data&&(r.data=t.data),r}const Ht="https://registry.walletconnect.com";function Yo(){return Ht+"/api/v2/wallets"}function Ko(){return Ht+"/api/v2/dapps"}function zt(t,e="mobile"){var n;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(n=t.image_url.sm)!==null&&n!==void 0?n:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function Zo(t,e="mobile"){return Object.values(t).filter(n=>!!n[e].universal||!!n[e].native).map(n=>zt(n,e))}var Be={};(function(t){const e=sr,n=ar,r=or,o=ir,i=s=>s==null;function d(s){switch(s.arrayFormat){case"index":return a=>(u,c)=>{const h=u.length;return c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[",h,"]"].join("")]:[...u,[g(a,s),"[",g(h,s),"]=",g(c,s)].join("")]};case"bracket":return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[]"].join("")]:[...u,[g(a,s),"[]=",g(c,s)].join("")];case"comma":case"separator":return a=>(u,c)=>c==null||c.length===0?u:u.length===0?[[g(a,s),"=",g(c,s)].join("")]:[[u,g(c,s)].join(s.arrayFormatSeparator)];default:return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,g(a,s)]:[...u,[g(a,s),"=",g(c,s)].join("")]}}function f(s){let a;switch(s.arrayFormat){case"index":return(u,c,h)=>{if(a=/\[(\d*)\]$/.exec(u),u=u.replace(/\[\d*\]$/,""),!a){h[u]=c;return}h[u]===void 0&&(h[u]={}),h[u][a[1]]=c};case"bracket":return(u,c,h)=>{if(a=/(\[\])$/.exec(u),u=u.replace(/\[\]$/,""),!a){h[u]=c;return}if(h[u]===void 0){h[u]=[c];return}h[u]=[].concat(h[u],c)};case"comma":case"separator":return(u,c,h)=>{const m=typeof c=="string"&&c.includes(s.arrayFormatSeparator),_=typeof c=="string"&&!m&&w(c,s).includes(s.arrayFormatSeparator);c=_?w(c,s):c;const v=m||_?c.split(s.arrayFormatSeparator).map(T=>w(T,s)):c===null?c:w(c,s);h[u]=v};default:return(u,c,h)=>{if(h[u]===void 0){h[u]=c;return}h[u]=[].concat(h[u],c)}}}function p(s){if(typeof s!="string"||s.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function g(s,a){return a.encode?a.strict?e(s):encodeURIComponent(s):s}function w(s,a){return a.decode?n(s):s}function y(s){return Array.isArray(s)?s.sort():typeof s=="object"?y(Object.keys(s)).sort((a,u)=>Number(a)-Number(u)).map(a=>s[a]):s}function b(s){const a=s.indexOf("#");return a!==-1&&(s=s.slice(0,a)),s}function C(s){let a="";const u=s.indexOf("#");return u!==-1&&(a=s.slice(u)),a}function k(s){s=b(s);const a=s.indexOf("?");return a===-1?"":s.slice(a+1)}function I(s,a){return a.parseNumbers&&!Number.isNaN(Number(s))&&typeof s=="string"&&s.trim()!==""?s=Number(s):a.parseBooleans&&s!==null&&(s.toLowerCase()==="true"||s.toLowerCase()==="false")&&(s=s.toLowerCase()==="true"),s}function R(s,a){a=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},a),p(a.arrayFormatSeparator);const u=f(a),c=Object.create(null);if(typeof s!="string"||(s=s.trim().replace(/^[?#&]/,""),!s))return c;for(const h of s.split("&")){if(h==="")continue;let[m,_]=r(a.decode?h.replace(/\+/g," "):h,"=");_=_===void 0?null:["comma","separator"].includes(a.arrayFormat)?_:w(_,a),u(w(m,a),_,c)}for(const h of Object.keys(c)){const m=c[h];if(typeof m=="object"&&m!==null)for(const _ of Object.keys(m))m[_]=I(m[_],a);else c[h]=I(m,a)}return a.sort===!1?c:(a.sort===!0?Object.keys(c).sort():Object.keys(c).sort(a.sort)).reduce((h,m)=>{const _=c[m];return _&&typeof _=="object"&&!Array.isArray(_)?h[m]=y(_):h[m]=_,h},Object.create(null))}t.extract=k,t.parse=R,t.stringify=(s,a)=>{if(!s)return"";a=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},a),p(a.arrayFormatSeparator);const u=_=>a.skipNull&&i(s[_])||a.skipEmptyString&&s[_]==="",c=d(a),h={};for(const _ of Object.keys(s))u(_)||(h[_]=s[_]);const m=Object.keys(h);return a.sort!==!1&&m.sort(a.sort),m.map(_=>{const v=s[_];return v===void 0?"":v===null?g(_,a):Array.isArray(v)?v.reduce(c(_),[]).join("&"):g(_,a)+"="+g(v,a)}).filter(_=>_.length>0).join("&")},t.parseUrl=(s,a)=>{a=Object.assign({decode:!0},a);const[u,c]=r(s,"#");return Object.assign({url:u.split("?")[0]||"",query:R(k(s),a)},a&&a.parseFragmentIdentifier&&c?{fragmentIdentifier:w(c,a)}:{})},t.stringifyUrl=(s,a)=>{a=Object.assign({encode:!0,strict:!0},a);const u=b(s.url).split("?")[0]||"",c=t.extract(s.url),h=t.parse(c,{sort:!1}),m=Object.assign(h,s.query);let _=t.stringify(m,a);_&&(_=`?${_}`);let v=C(s.url);return s.fragmentIdentifier&&(v=`#${g(s.fragmentIdentifier,a)}`),`${u}${_}${v}`},t.pick=(s,a,u)=>{u=Object.assign({parseFragmentIdentifier:!0},u);const{url:c,query:h,fragmentIdentifier:m}=t.parseUrl(s,u);return t.stringifyUrl({url:c,query:o(h,a),fragmentIdentifier:m},u)},t.exclude=(s,a,u)=>{const c=Array.isArray(a)?h=>!a.includes(h):(h,m)=>!a(h,m);return t.pick(s,c,u)}})(Be);function Qt(t){const e=t.indexOf("?")!==-1?t.indexOf("?"):void 0;return typeof e<"u"?t.substr(e):""}function Jt(t,e){let n=We(t);return n=Object.assign(Object.assign({},n),e),t=Vt(n),t}function We(t){return Be.parse(t)}function Vt(t){return Be.stringify(t)}function Gt(t){return typeof t.bridge<"u"}function Yt(t){const e=t.indexOf(":"),n=t.indexOf("?")!==-1?t.indexOf("?"):void 0,r=t.substring(0,e),o=t.substring(e+1,n);function i(y){const C=y.split("@");return{handshakeTopic:C[0],version:parseInt(C[1],10)}}const d=i(o),f=typeof n<"u"?t.substr(n):"";function p(y){const b=We(y);return{key:b.key||"",bridge:b.bridge||""}}const g=p(f);return Object.assign(Object.assign({protocol:r},d),g)}function Xo(t){return t===""||typeof t=="string"&&t.trim()===""}function ei(t){return!(t&&t.length)}function ti(t){return oe(t)}function ni(t){return Ue(t)}function ri(t){return Ct(t)}function oi(t){return no(t)}function ii(t){return ro(t)}function si(t,e){return St(t,e)}function ai(t){return typeof t.params=="object"}function Kt(t){return typeof t.method<"u"}function D(t){return typeof t.result<"u"}function z(t){return typeof t.error<"u"}function _e(t){return typeof t.event<"u"}function Zt(t){return Nr.includes(t)||t.startsWith("wc_")}function Xt(t){return t.method.startsWith("wc_")?!0:!xe.includes(t.method)}const ci=Object.freeze(Object.defineProperty({__proto__:null,addHexPrefix:Wo,appendToQueryString:Jt,concatArrayBuffers:mo,concatBuffers:vo,convertArrayBufferToBuffer:X,convertArrayBufferToHex:xt,convertArrayBufferToNumber:go,convertArrayBufferToUtf8:po,convertBufferToArrayBuffer:It,convertBufferToHex:yo,convertBufferToNumber:bo,convertBufferToUtf8:wo,convertHexToArrayBuffer:Rt,convertHexToBuffer:xo,convertHexToNumber:Ro,convertHexToUtf8:Io,convertNumberToArrayBuffer:Oo,convertNumberToBuffer:To,convertNumberToHex:Tt,convertNumberToUtf8:No,convertUtf8ToArrayBuffer:Eo,convertUtf8ToBuffer:So,convertUtf8ToHex:Co,convertUtf8ToNumber:ko,detectEnv:se,detectOS:ae,formatIOSMobile:Qo,formatMobileRegistry:Zo,formatMobileRegistryEntry:zt,formatQueryString:Vt,formatRpcError:Ft,getClientMeta:fe,getCrypto:$o,getCryptoOrThrow:Po,getDappRegistryUrl:Ko,getDocument:Ao,getDocumentOrThrow:qo,getEncoding:ii,getFromWindow:Mo,getFromWindowOrThrow:Lo,getInfuraRpcUrl:jt,getLocal:$e,getLocalStorage:ie,getLocalStorageOrThrow:jo,getLocation:Nt,getLocationOrThrow:Do,getMobileLinkRegistry:Vo,getMobileRegistryEntry:Wt,getNavigator:Ot,getNavigatorOrThrow:Uo,getQueryString:Qt,getRpcUrl:Bt,getType:oi,getWalletRegistryUrl:Yo,isAndroid:Mt,isArrayBuffer:ri,isBrowser:Ut,isBuffer:ti,isEmptyArray:ei,isEmptyString:Xo,isHexString:si,isIOS:Lt,isInternalEvent:_e,isJsonRpcRequest:Kt,isJsonRpcResponseError:z,isJsonRpcResponseSuccess:D,isJsonRpcSubscription:ai,isMobile:qt,isNode:At,isReservedEvent:Zt,isSilentPayload:Xt,isTypedArray:ni,isWalletConnectSession:Gt,logDeprecationWarning:zo,parseQueryString:We,parseWalletConnectUri:Yt,payloadId:$t,promisify:Go,removeHexLeadingZeros:Ho,removeHexPrefix:Fo,removeLocal:je,safeJsonParse:Dt,safeJsonStringify:Pt,sanitizeHex:Bo,saveMobileLinkInfo:Jo,setLocal:Pe,uuid:K},Symbol.toStringTag,{value:"Module"}));class li{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,n){this._eventEmitters.push({event:e,callback:n})}trigger(e){let n=[];e&&(n=this._eventEmitters.filter(r=>r.event===e)),n.forEach(r=>{r.callback()})}}const ui=typeof global.WebSocket<"u"?global.WebSocket:require("ws");class di{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new li,!e.url||typeof e.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return this.readyState===0}set connected(e){}get connected(){return this.readyState===1}set closing(e){}get closing(){return this.readyState===2}set closed(e){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(e,n,r){if(!n||typeof n!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:n,type:"pub",payload:e,silent:!!r})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,n){this._events.push({event:e,callback:n})}_socketCreate(){if(this._nextSocket)return;const e=hi(this._url,this._protocol,this._version);if(this._nextSocket=new ui(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=n=>this._socketReceive(n),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=n=>this._socketError(n),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){const n=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(n):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let n;try{n=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:n.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){const r=this._events.filter(o=>o.event==="message");r&&r.length&&r.forEach(o=>o.callback(n))}}_socketError(e){const n=this._events.filter(r=>r.event==="error");n&&n.length&&n.forEach(r=>r.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(n=>this._queue.push({topic:n,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(n=>this._socketSend(n)),this._queue=[]}}function hi(t,e,n){var r,o;const d=(t.startsWith("https")?t.replace("https","wss"):t.startsWith("http")?t.replace("http","ws"):t).split("?"),f=Ut()?{protocol:e,version:n,env:"browser",host:((r=Nt())===null||r===void 0?void 0:r.host)||""}:{protocol:e,version:n,env:((o=se())===null||o===void 0?void 0:o.name)||""},p=Jt(Qt(d[1]||""),f);return d[0]+"?"+p}class fi{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(n=>n.event!==e)}trigger(e){let n=[],r;Kt(e)?r=e.method:D(e)||z(e)?r=`response:${e.id}`:_e(e)?r=e.event:r="",r&&(n=this._eventEmitters.filter(o=>o.event===r)),(!n||!n.length)&&!Zt(r)&&!_e(r)&&(n=this._eventEmitters.filter(o=>o.event==="call_request")),n.forEach(o=>{if(z(e)){const i=new Error(e.error.message);o.callback(i,null)}else o.callback(null,e)})}}class _i{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null;const n=$e(this.storageId);return n&&Gt(n)&&(e=n),e}setSession(e){return Pe(this.storageId,e),e}removeSession(){je(this.storageId)}}const pi="walletconnect.org",gi="abcdefghijklmnopqrstuvwxyz0123456789",en=gi.split("").map(t=>`https://${t}.bridge.walletconnect.org`);function mi(t){let e=t.indexOf("//")>-1?t.split("/")[2]:t.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function wi(t){return mi(t).split(".").slice(-2).join(".")}function yi(){return Math.floor(Math.random()*en.length)}function bi(){return en[yi()]}function vi(t){return wi(t)===pi}function Ei(t){return vi(t)?bi():t}class Si{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new fi,this._clientMeta=fe()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new _i(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...xe,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(Rr);e.connectorOpts.bridge&&(this.bridge=Ei(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);const n=e.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new di({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;const n=Rt(e);this._key=n}get key(){return this._key?xt(this._key,!0):""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=K()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=fe()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;const{handshakeTopic:n,bridge:r,key:o}=this._parseUri(e);this.handshakeTopic=n,this.bridge=r,this.key=o}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,n){const r={event:e,callback:n};this._eventManager.subscribe(r)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();const n=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=n.id,this.handshakeTopic=K(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(et)});const r=()=>{this.killSession()};try{const o=await this._sendCallRequest(n);return o&&r(),o}catch(o){throw r(),o}}async connect(e){if(!this._qrcodeModal)throw new Error(Or);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(n,r)=>{this.on("modal_closed",()=>r(new Error(et))),this.on("connect",(o,i)=>{if(o)return r(o);n(i.params[0])})}))}async createSession(e){if(this._connected)throw new Error(le);if(this.pending)return;this._key=await this._generateKey();const n=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=n.id,this.handshakeTopic=K(),this._sendSessionRequest(n,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(le);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},r={id:this.handshakeId,jsonrpc:"2.0",result:n};this._sendResponse(r),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(le);const n=e&&e.message?e.message:Er,r=this._formatResponse({id:this.handshakeId,error:{message:n}});this._sendResponse(r),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(q);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},r=this._formatRequest({method:"wc_sessionUpdate",params:[n]});this._sendSessionRequest(r,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){const n=e?e.message:"Session Disconnected",r={approved:!1,chainId:null,networkId:null,accounts:null},o=this._formatRequest({method:"wc_sessionUpdate",params:[r]});await this._sendRequest(o),this._handleSessionDisconnect(n)}async sendTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_sendTransaction",params:[n]});return await this._sendCallRequest(r)}async signTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_signTransaction",params:[n]});return await this._sendCallRequest(r)}async signMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(n)}async signPersonalMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(n)}async signTypedData(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(n)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");const n=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(n)}unsafeSend(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),new Promise((r,o)=>{this._subscribeToResponse(e.id,(i,d)=>{if(i){o(i);return}if(!d)throw new Error(Sr);r(d)})})}async sendCustomRequest(e,n){if(!this._connected)throw new Error(q);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return Tt(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params;break;case"personal_sign":e.params;break}const r=this._formatRequest(e);return await this._sendCallRequest(r,n)}approveRequest(e){if(D(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(Cr)}rejectRequest(e){if(z(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(kr)}transportClose(){this._transport.close()}async _sendRequest(e,n){const r=this._formatRequest(e),o=await this._encrypt(r),i=typeof(n==null?void 0:n.topic)<"u"?n.topic:this.peerId,d=JSON.stringify(o),f=typeof(n==null?void 0:n.forcePushNotification)<"u"?!n.forcePushNotification:Xt(r);this._transport.send(d,i,f)}async _sendResponse(e){const n=await this._encrypt(e),r=this.peerId,o=JSON.stringify(n);this._transport.send(o,r,!0)}async _sendSessionRequest(e,n,r){this._sendRequest(e,r),this._subscribeToSessionResponse(e.id,n)}_sendCallRequest(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(xr);return{id:typeof e.id>"u"?$t():e.id,jsonrpc:"2.0",method:e.method,params:typeof e.params>"u"?[]:e.params}}_formatResponse(e){if(typeof e.id>"u")throw new Error(Ir);const n={id:e.id,jsonrpc:"2.0"};if(z(e)){const r=Ft(e.error);return Object.assign(Object.assign(Object.assign({},n),e),{error:r})}else if(D(e))return Object.assign(Object.assign({},n),e);throw new Error(Xe)}_handleSessionDisconnect(e){const n=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),je(he)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,n){n?n.approved?(this._connected?(n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),n.peerId&&!this.peerId&&(this.peerId=n.peerId),n.peerMeta&&!this.peerMeta&&(this.peerMeta=n.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let r;try{r=JSON.parse(e.payload)}catch{return}const o=await this._decrypt(r);o&&this._eventManager.trigger(o)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,n){this.on(`response:${e}`,n)}_subscribeToSessionResponse(e,n){this._subscribeToResponse(e,(r,o)=>{if(r){this._handleSessionResponse(r.message);return}D(o)?this._handleSessionResponse(n,o.result):o.error&&o.error.message?this._handleSessionResponse(o.error.message):this._handleSessionResponse(n)})}_subscribeToCallResponse(e){return new Promise((n,r)=>{this._subscribeToResponse(e,(o,i)=>{if(o){r(o);return}D(i)?n(i.result):i.error&&i.error.message?r(i.error):r(new Error(Xe))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,n)=>{const{request:r}=n.params[0];if(qt()&&this._signingMethods.includes(r.method)){const o=$e(he);o&&(window.location.href=o.href)}}),this.on("wc_sessionRequest",(e,n)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=n.id,this.peerId=n.params[0].peerId,this.peerMeta=n.params[0].peerMeta;const r=Object.assign(Object.assign({},n),{method:"session_request"});this._eventManager.trigger(r)}),this.on("wc_sessionUpdate",(e,n)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",n.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){const e=this.protocol,n=this.handshakeTopic,r=this.version,o=encodeURIComponent(this.bridge),i=this.key;return`${e}:${n}@${r}?bridge=${o}&key=${i}`}_parseUri(e){const n=Yt(e);if(n.protocol===this.protocol){if(!n.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const r=n.handshakeTopic;if(!n.bridge)throw Error("Invalid or missing bridge url parameter value");const o=decodeURIComponent(n.bridge);if(!n.key)throw Error("Invalid or missing key parameter value");const i=n.key;return{handshakeTopic:r,bridge:o,key:i}}else throw new Error(Tr)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.encrypt(e,n):null}async _decrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.decrypt(e,n):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||typeof e.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||typeof e.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||typeof e.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");const n={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(r,o)=>{if(r)throw r;if(e.peerMeta){const i=o.params[0].peerMeta.name;n.peerName=i}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}}function Ci(t){return Q.getBrowerCrypto().getRandomValues(new Uint8Array(t))}const tn=256,nn=tn,ki=tn,L="AES-CBC",xi=`SHA-${nn}`,pe="HMAC",Ii="encrypt",Ri="decrypt",Ti="sign",Oi="verify";function Ni(t){return t===L?{length:nn,name:L}:{hash:{name:xi},name:pe}}function Mi(t){return t===L?[Ii,Ri]:[Ti,Oi]}async function Fe(t,e=L){return Q.getSubtleCrypto().importKey("raw",t,Ni(e),!0,Mi(e))}async function Li(t,e,n){const r=Q.getSubtleCrypto(),o=await Fe(e,L),i=await r.encrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function qi(t,e,n){const r=Q.getSubtleCrypto(),o=await Fe(e,L),i=await r.decrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function Ai(t,e){const n=Q.getSubtleCrypto(),r=await Fe(t,pe),o=await n.sign({length:ki,name:pe},r,e);return new Uint8Array(o)}function Ui(t,e,n){return Li(t,e,n)}function Di(t,e,n){return qi(t,e,n)}async function rn(t,e){return await Ai(t,e)}async function on(t){const e=(t||256)/8,n=Ci(e);return It(W(n))}async function sn(t,e){const n=M(t.data),r=M(t.iv),o=M(t.hmac),i=N(o,!1),d=kt(n,r),f=await rn(e,d),p=N(f,!1);return B(i)===B(p)}async function Pi(t,e,n){const r=j(X(e)),o=n||await on(128),i=j(X(o)),d=N(i,!1),f=JSON.stringify(t),p=Et(f),g=await Ui(i,r,p),w=N(g,!1),y=kt(g,i),b=await rn(r,y),C=N(b,!1);return{data:w,hmac:C,iv:d}}async function $i(t,e){const n=j(X(e));if(!n)throw new Error("Missing key: required for decryption");if(!await sn(t,n))return null;const o=M(t.data),i=M(t.iv),d=await Di(i,n,o),f=bt(d);let p;try{p=JSON.parse(f)}catch{return null}return p}const ji=Object.freeze(Object.defineProperty({__proto__:null,decrypt:$i,encrypt:Pi,generateKey:on,verifyHmac:sn},Symbol.toStringTag,{value:"Module"}));class Bi extends Si{constructor(e,n){super({cryptoLib:ji,connectorOpts:e,pushServerOpts:n})}}const Wi=ht(ci);var Fi=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=tt[e.format]||tt.default;window.clipboardData.setData(y,t)}else w.clipboardData.clearData(),w.clipboardData.setData(e.format,t);e.onCopy&&(w.preventDefault(),e.onCopy(w.clipboardData))}),document.body.appendChild(f),i.selectNodeContents(f),d.addRange(i);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");p=!0}catch(w){n&&console.error("unable to copy using execCommand: ",w),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),p=!0}catch(y){n&&console.error("unable to copy using clipboardData: ",y),n&&console.error("falling back to prompt"),r=Qi("message"in e?e.message:zi),window.prompt(r,t)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(i):d.removeAllRanges()),f&&document.body.removeChild(f),o()}return p}var Vi=Ji;function an(t,e){for(var n in e)t[n]=e[n];return t}function ge(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function ee(t,e){this.props=t,this.context=e}function cn(t,e){function n(o){var i=this.props.ref,d=i==o.ref;return!d&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!d:ge(this.props,o)}function r(o){return this.shouldComponentUpdate=n,x(t,o)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ee.prototype=new A).isPureReactComponent=!0,ee.prototype.shouldComponentUpdate=function(t,e){return ge(this.props,t)||ge(this.state,e)};var nt=S.__b;S.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),nt&&nt(t)};var Gi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ln(t){function e(n){var r=an({},n);return delete r.ref,t(r,n.ref||null)}return e.$$typeof=Gi,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var rt=function(t,e){return t==null?null:O(O(t).map(e))},un={map:rt,forEach:rt,count:function(t){return t?O(t).length:0},only:function(t){var e=O(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:O},Yi=S.__e;S.__e=function(t,e,n,r){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e)}Yi(t,e,n,r)};var ot=S.unmount;function dn(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=an({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return dn(r,e,n)})),t}function hn(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return hn(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function H(){this.__u=0,this.t=null,this.__b=null}function fn(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function _n(t){var e,n,r;function o(i){if(e||(e=t()).then(function(d){n=d.default||d},function(d){r=d}),r)throw r;if(!n)throw e;return x(n,i)}return o.displayName="Lazy",o.__f=!0,o}function P(){this.u=null,this.o=null}S.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),ot&&ot(t)},(H.prototype=new A).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=fn(r.__v),i=!1,d=function(){i||(i=!0,n.__R=null,o?o(f):f())};n.__R=d;var f=function(){if(!--r.__u){if(r.state.__a){var p=r.state.__a;r.__v.__k[0]=hn(p,p.__c.__P,p.__c.__O)}var g;for(r.setState({__a:r.__b=null});g=r.t.pop();)g.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(d,d)},H.prototype.componentWillUnmount=function(){this.t=[]},H.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=dn(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__a&&x($,null,t.fallback);return o&&(o.__u&=-33),[x($,null,e.__a?null:t.children),o]};var it=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(r)}}),Z(x(Ki,{context:e.context},t.__v),e.l)}function pn(t,e){var n=x(Zi,{__v:t,i:e});return n.containerInfo=e,n}(P.prototype=new A).__a=function(t){var e=this,n=fn(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),it(e,t,r)):o()};n?n(i):i()}},P.prototype.render=function(t){this.u=null,this.o=new Map;var e=O(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},P.prototype.componentDidUpdate=P.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){it(t,n,e)})};var gn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Xi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,es=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ts=/[A-Z0-9]/g,ns=typeof document<"u",rs=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function mn(t,e,n){return e.__k==null&&(e.textContent=""),Z(t,e),typeof n=="function"&&n(),t?t.__c:null}function wn(t,e,n){return yr(t,e),typeof n=="function"&&n(),t?t.__c:null}A.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(A.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var st=S.event;function os(){}function is(){return this.cancelBubble}function ss(){return this.defaultPrevented}S.event=function(t){return st&&(t=st(t)),t.persist=os,t.isPropagationStopped=is,t.isDefaultPrevented=ss,t.nativeEvent=t};var He,as={enumerable:!1,configurable:!0,get:function(){return this.class}},at=S.vnode;S.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,r=e.type,o={};for(var i in n){var d=n[i];if(!(i==="value"&&"defaultValue"in n&&d==null||ns&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var f=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&d===!0?d="":f==="translate"&&d==="no"?d=!1:f==="ondoubleclick"?i="ondblclick":f!=="onchange"||r!=="input"&&r!=="textarea"||rs(n.type)?f==="onfocus"?i="onfocusin":f==="onblur"?i="onfocusout":es.test(i)?i=f:r.indexOf("-")===-1&&Xi.test(i)?i=i.replace(ts,"-$&").toLowerCase():d===null&&(d=void 0):f=i="oninput",f==="oninput"&&o[i=f]&&(i="oninputCapture"),o[i]=d}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.value.indexOf(p.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.multiple?o.defaultValue.indexOf(p.props.value)!=-1:o.defaultValue==p.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",as)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),e.props=o}(t),t.$$typeof=gn,at&&at(t)};var ct=S.__r;S.__r=function(t){ct&&ct(t),He=t.__c};var lt=S.diffed;S.diffed=function(t){lt&<(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value),He=null};var yn={ReactCurrentDispatcher:{current:{readContext:function(t){return He.__n[t.__c].props.value},useCallback:we,useContext:ye,useDebugValue:be,useDeferredValue:Qe,useEffect:te,useId:ve,useImperativeHandle:Ee,useInsertionEffect:Ve,useLayoutEffect:J,useMemo:Se,useReducer:Ce,useRef:ke,useState:ne,useSyncExternalStore:Ge,useTransition:Je}}},cs="17.0.2";function bn(t){return x.bind(null,t)}function G(t){return!!t&&t.$$typeof===gn}function vn(t){return G(t)&&t.type===$}function En(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Sn(t){return G(t)?br.apply(null,arguments):t}function Cn(t){return!!t.__k&&(Z(null,t),!0)}function kn(t){return t&&(t.base||t.nodeType===1&&t)||null}var xn=function(t,e){return t(e)},In=function(t,e){return t(e)},Rn=$;function ze(t){t()}function Qe(t){return t}function Je(){return[!1,ze]}var Ve=J,Tn=G;function Ge(t,e){var n=e(),r=ne({h:{__:n,v:e}}),o=r[0].h,i=r[1];return J(function(){o.__=n,o.v=e,ue(o)&&i({h:o})},[t,n,e]),te(function(){return ue(o)&&i({h:o}),t(function(){ue(o)&&i({h:o})})},[t]),n}function ue(t){var e,n,r=t.v,o=t.__;try{var i=r();return!((e=o)===(n=i)&&(e!==0||1/e==1/n)||e!=e&&n!=n)}catch{return!0}}var ls={useState:ne,useId:ve,useReducer:Ce,useEffect:te,useLayoutEffect:J,useInsertionEffect:Ve,useTransition:Je,useDeferredValue:Qe,useSyncExternalStore:Ge,startTransition:ze,useRef:ke,useImperativeHandle:Ee,useMemo:Se,useCallback:we,useContext:ye,useDebugValue:be,version:"17.0.2",Children:un,render:mn,hydrate:wn,unmountComponentAtNode:Cn,createPortal:pn,createElement:x,createContext:_t,createFactory:bn,cloneElement:Sn,createRef:pt,Fragment:$,isValidElement:G,isElement:Tn,isFragment:vn,isMemo:En,findDOMNode:kn,Component:A,PureComponent:ee,memo:cn,forwardRef:ln,flushSync:In,unstable_batchedUpdates:xn,StrictMode:Rn,Suspense:H,SuspenseList:P,lazy:_n,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:yn};const us=Object.freeze(Object.defineProperty({__proto__:null,Children:un,Component:A,Fragment:$,PureComponent:ee,StrictMode:Rn,Suspense:H,SuspenseList:P,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:yn,cloneElement:Sn,createContext:_t,createElement:x,createFactory:bn,createPortal:pn,createRef:pt,default:ls,findDOMNode:kn,flushSync:In,forwardRef:ln,hydrate:wn,isElement:Tn,isFragment:vn,isMemo:En,isValidElement:G,lazy:_n,memo:cn,render:mn,startTransition:ze,unmountComponentAtNode:Cn,unstable_batchedUpdates:xn,useCallback:we,useContext:ye,useDebugValue:be,useDeferredValue:Qe,useEffect:te,useErrorBoundary:vr,useId:ve,useImperativeHandle:Ee,useInsertionEffect:Ve,useLayoutEffect:J,useMemo:Se,useReducer:Ce,useRef:ke,useState:ne,useSyncExternalStore:Ge,useTransition:Je,version:cs},Symbol.toStringTag,{value:"Module"})),ds=ht(us);function On(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var E=Wi,Nn=On(cr),hs=On(Vi),l=ds;function fs(t){Nn.toString(t,{type:"terminal"}).then(console.log)}var _s=`:root { - --animation-duration: 300ms; -} - -@keyframes fadeIn { - from { - opacity: 0; - } - to { - opacity: 1; - } -} - -@keyframes fadeOut { - from { - opacity: 1; - } - to { - opacity: 0; - } -} - -.animated { - animation-duration: var(--animation-duration); - animation-fill-mode: both; -} - -.fadeIn { - animation-name: fadeIn; -} - -.fadeOut { - animation-name: fadeOut; -} - -#walletconnect-wrapper { - -webkit-user-select: none; - align-items: center; - display: flex; - height: 100%; - justify-content: center; - left: 0; - pointer-events: none; - position: fixed; - top: 0; - user-select: none; - width: 100%; - z-index: 99999999999999; -} - -.walletconnect-modal__headerLogo { - height: 21px; -} - -.walletconnect-modal__header p { - color: #ffffff; - font-size: 20px; - font-weight: 600; - margin: 0; - align-items: flex-start; - display: flex; - flex: 1; - margin-left: 5px; -} - -.walletconnect-modal__close__wrapper { - position: absolute; - top: 0px; - right: 0px; - z-index: 10000; - background: white; - border-radius: 26px; - padding: 6px; - box-sizing: border-box; - width: 26px; - height: 26px; - cursor: pointer; -} - -.walletconnect-modal__close__icon { - position: relative; - top: 7px; - right: 0; - display: flex; - align-items: center; - justify-content: center; - transform: rotate(45deg); -} - -.walletconnect-modal__close__line1 { - position: absolute; - width: 100%; - border: 1px solid rgb(48, 52, 59); -} - -.walletconnect-modal__close__line2 { - position: absolute; - width: 100%; - border: 1px solid rgb(48, 52, 59); - transform: rotate(90deg); -} - -.walletconnect-qrcode__base { - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); - background: rgba(37, 41, 46, 0.95); - height: 100%; - left: 0; - pointer-events: auto; - position: fixed; - top: 0; - transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); - width: 100%; - will-change: opacity; - padding: 40px; - box-sizing: border-box; -} - -.walletconnect-qrcode__text { - color: rgba(60, 66, 82, 0.6); - font-size: 16px; - font-weight: 600; - letter-spacing: 0; - line-height: 1.1875em; - margin: 10px 0 20px 0; - text-align: center; - width: 100%; -} - -@media only screen and (max-width: 768px) { - .walletconnect-qrcode__text { - font-size: 4vw; - } -} - -@media only screen and (max-width: 320px) { - .walletconnect-qrcode__text { - font-size: 14px; - } -} - -.walletconnect-qrcode__image { - width: calc(100% - 30px); - box-sizing: border-box; - cursor: none; - margin: 0 auto; -} - -.walletconnect-qrcode__notification { - position: absolute; - bottom: 0; - left: 0; - right: 0; - font-size: 16px; - padding: 16px 20px; - border-radius: 16px; - text-align: center; - transition: all 0.1s ease-in-out; - background: white; - color: black; - margin-bottom: -60px; - opacity: 0; -} - -.walletconnect-qrcode__notification.notification__show { - opacity: 1; -} - -@media only screen and (max-width: 768px) { - .walletconnect-modal__header { - height: 130px; - } - .walletconnect-modal__base { - overflow: auto; - } -} - -@media only screen and (min-device-width: 415px) and (max-width: 768px) { - #content { - max-width: 768px; - box-sizing: border-box; - } -} - -@media only screen and (min-width: 375px) and (max-width: 415px) { - #content { - max-width: 414px; - box-sizing: border-box; - } -} - -@media only screen and (min-width: 320px) and (max-width: 375px) { - #content { - max-width: 375px; - box-sizing: border-box; - } -} - -@media only screen and (max-width: 320px) { - #content { - max-width: 320px; - box-sizing: border-box; - } -} - -.walletconnect-modal__base { - -webkit-font-smoothing: antialiased; - background: #ffffff; - border-radius: 24px; - box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4); - font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font, - -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; - margin-top: 41px; - padding: 24px 24px 22px; - pointer-events: auto; - position: relative; - text-align: center; - transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); - will-change: transform; - overflow: visible; - transform: translateY(-50%); - top: 50%; - max-width: 500px; - margin: auto; -} - -@media only screen and (max-width: 320px) { - .walletconnect-modal__base { - padding: 24px 12px; - } -} - -.walletconnect-modal__base .hidden { - transform: translateY(150%); - transition: 0.125s cubic-bezier(0.4, 0, 1, 1); -} - -.walletconnect-modal__header { - align-items: center; - display: flex; - height: 26px; - left: 0; - justify-content: space-between; - position: absolute; - top: -42px; - width: 100%; -} - -.walletconnect-modal__base .wc-logo { - align-items: center; - display: flex; - height: 26px; - margin-top: 15px; - padding-bottom: 15px; - pointer-events: auto; -} - -.walletconnect-modal__base .wc-logo div { - background-color: #3399ff; - height: 21px; - margin-right: 5px; - mask-image: url("images/wc-logo.svg") center no-repeat; - width: 32px; -} - -.walletconnect-modal__base .wc-logo p { - color: #ffffff; - font-size: 20px; - font-weight: 600; - margin: 0; -} - -.walletconnect-modal__base h2 { - color: rgba(60, 66, 82, 0.6); - font-size: 16px; - font-weight: 600; - letter-spacing: 0; - line-height: 1.1875em; - margin: 0 0 19px 0; - text-align: center; - width: 100%; -} - -.walletconnect-modal__base__row { - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); - align-items: center; - border-radius: 20px; - cursor: pointer; - display: flex; - height: 56px; - justify-content: space-between; - padding: 0 15px; - position: relative; - margin: 0px 0px 8px; - text-align: left; - transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94); - will-change: transform; - text-decoration: none; -} - -.walletconnect-modal__base__row:hover { - background: rgba(60, 66, 82, 0.06); -} - -.walletconnect-modal__base__row:active { - background: rgba(60, 66, 82, 0.06); - transform: scale(0.975); - transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94); -} - -.walletconnect-modal__base__row__h3 { - color: #25292e; - font-size: 20px; - font-weight: 700; - margin: 0; - padding-bottom: 3px; -} - -.walletconnect-modal__base__row__right { - align-items: center; - display: flex; - justify-content: center; -} - -.walletconnect-modal__base__row__right__app-icon { - border-radius: 8px; - height: 34px; - margin: 0 11px 2px 0; - width: 34px; - background-size: 100%; - box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25); -} - -.walletconnect-modal__base__row__right__caret { - height: 18px; - opacity: 0.3; - transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94); - width: 8px; - will-change: opacity; -} - -.walletconnect-modal__base__row:hover .caret, -.walletconnect-modal__base__row:active .caret { - opacity: 0.6; -} - -.walletconnect-modal__mobile__toggle { - width: 80%; - display: flex; - margin: 0 auto; - position: relative; - overflow: hidden; - border-radius: 8px; - margin-bottom: 18px; - background: #d4d5d9; -} - -.walletconnect-modal__single_wallet { - display: flex; - justify-content: center; - margin-top: 7px; - margin-bottom: 18px; -} - -.walletconnect-modal__single_wallet a { - cursor: pointer; - color: rgb(64, 153, 255); - font-size: 21px; - font-weight: 800; - text-decoration: none !important; - margin: 0 auto; -} - -.walletconnect-modal__mobile__toggle_selector { - width: calc(50% - 8px); - background: white; - position: absolute; - border-radius: 5px; - height: calc(100% - 8px); - top: 4px; - transition: all 0.2s ease-in-out; - transform: translate3d(4px, 0, 0); -} - -.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector { - transform: translate3d(calc(100% + 12px), 0, 0); -} - -.walletconnect-modal__mobile__toggle a { - font-size: 12px; - width: 50%; - text-align: center; - padding: 8px; - margin: 0; - font-weight: 600; - z-index: 1; -} - -.walletconnect-modal__footer { - display: flex; - justify-content: center; - margin-top: 20px; -} - -@media only screen and (max-width: 768px) { - .walletconnect-modal__footer { - margin-top: 5vw; - } -} - -.walletconnect-modal__footer a { - cursor: pointer; - color: #898d97; - font-size: 15px; - margin: 0 auto; -} - -@media only screen and (max-width: 320px) { - .walletconnect-modal__footer a { - font-size: 14px; - } -} - -.walletconnect-connect__buttons__wrapper { - max-height: 44vh; -} - -.walletconnect-connect__buttons__wrapper__android { - margin: 50% 0; -} - -.walletconnect-connect__buttons__wrapper__wrap { - display: grid; - grid-template-columns: repeat(4, 1fr); - margin: 10px 0; -} - -@media only screen and (min-width: 768px) { - .walletconnect-connect__buttons__wrapper__wrap { - margin-top: 40px; - } -} - -.walletconnect-connect__button { - background-color: rgb(64, 153, 255); - padding: 12px; - border-radius: 8px; - text-decoration: none; - color: rgb(255, 255, 255); - font-weight: 500; -} - -.walletconnect-connect__button__icon_anchor { - cursor: pointer; - display: flex; - justify-content: flex-start; - align-items: center; - margin: 8px; - width: 42px; - justify-self: center; - flex-direction: column; - text-decoration: none !important; -} - -@media only screen and (max-width: 320px) { - .walletconnect-connect__button__icon_anchor { - margin: 4px; - } -} - -.walletconnect-connect__button__icon { - border-radius: 10px; - height: 42px; - margin: 0; - width: 42px; - background-size: cover !important; - box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25); -} - -.walletconnect-connect__button__text { - color: #424952; - font-size: 2.7vw; - text-decoration: none !important; - padding: 0; - margin-top: 1.8vw; - font-weight: 600; -} - -@media only screen and (min-width: 768px) { - .walletconnect-connect__button__text { - font-size: 16px; - margin-top: 12px; - } -} - -.walletconnect-search__input { - border: none; - background: #d4d5d9; - border-style: none; - padding: 8px 16px; - outline: none; - font-style: normal; - font-stretch: normal; - font-size: 16px; - font-style: normal; - font-stretch: normal; - line-height: normal; - letter-spacing: normal; - text-align: left; - border-radius: 8px; - width: calc(100% - 16px); - margin: 0; - margin-bottom: 8px; -} -`;typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function ps(t,e){try{var n=t()}catch(r){return e(r)}return n&&n.then?n.then(void 0,e):n}var gs="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='300px' height='185px' viewBox='0 0 300 185' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 49.3 (51167) - http://www.bohemiancoding.com/sketch --%3E %3Ctitle%3EWalletConnect%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cdefs%3E%3C/defs%3E %3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='walletconnect-logo-alt' fill='%233B99FC' fill-rule='nonzero'%3E %3Cpath d='M61.4385429,36.2562612 C110.349767,-11.6319051 189.65053,-11.6319051 238.561752,36.2562612 L244.448297,42.0196786 C246.893858,44.4140867 246.893858,48.2961898 244.448297,50.690599 L224.311602,70.406102 C223.088821,71.6033071 221.106302,71.6033071 219.883521,70.406102 L211.782937,62.4749541 C177.661245,29.0669724 122.339051,29.0669724 88.2173582,62.4749541 L79.542302,70.9685592 C78.3195204,72.1657633 76.337001,72.1657633 75.1142214,70.9685592 L54.9775265,51.2530561 C52.5319653,48.8586469 52.5319653,44.9765439 54.9775265,42.5821357 L61.4385429,36.2562612 Z M280.206339,77.0300061 L298.128036,94.5769031 C300.573585,96.9713 300.573599,100.85338 298.128067,103.247793 L217.317896,182.368927 C214.872352,184.763353 210.907314,184.76338 208.461736,182.368989 C208.461726,182.368979 208.461714,182.368967 208.461704,182.368957 L151.107561,126.214385 C150.496171,125.615783 149.504911,125.615783 148.893521,126.214385 C148.893517,126.214389 148.893514,126.214393 148.89351,126.214396 L91.5405888,182.368927 C89.095052,184.763359 85.1300133,184.763399 82.6844276,182.369014 C82.6844133,182.369 82.684398,182.368986 82.6843827,182.36897 L1.87196327,103.246785 C-0.573596939,100.852377 -0.573596939,96.9702735 1.87196327,94.5758653 L19.7936929,77.028998 C22.2392531,74.6345898 26.2042918,74.6345898 28.6498531,77.028998 L86.0048306,133.184355 C86.6162214,133.782957 87.6074796,133.782957 88.2188704,133.184355 C88.2188796,133.184346 88.2188878,133.184338 88.2188969,133.184331 L145.571,77.028998 C148.016505,74.6345347 151.981544,74.6344449 154.427161,77.028798 C154.427195,77.0288316 154.427229,77.0288653 154.427262,77.028899 L211.782164,133.184331 C212.393554,133.782932 213.384814,133.782932 213.996204,133.184331 L271.350179,77.0300061 C273.79574,74.6355969 277.760778,74.6355969 280.206339,77.0300061 Z' id='WalletConnect'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E",ms="WalletConnect",ws=300,ys="rgb(64, 153, 255)",Mn="walletconnect-wrapper",ut="walletconnect-style-sheet",Ln="walletconnect-qrcode-modal",bs="walletconnect-qrcode-close",qn="walletconnect-qrcode-text",vs="walletconnect-connect-button";function Es(t){return l.createElement("div",{className:"walletconnect-modal__header"},l.createElement("img",{src:gs,className:"walletconnect-modal__headerLogo"}),l.createElement("p",null,ms),l.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:t.onClose},l.createElement("div",{id:bs,className:"walletconnect-modal__close__icon"},l.createElement("div",{className:"walletconnect-modal__close__line1"}),l.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function Ss(t){return l.createElement("a",{className:"walletconnect-connect__button",href:t.href,id:vs+"-"+t.name,onClick:t.onClick,rel:"noopener noreferrer",style:{backgroundColor:t.color},target:"_blank"},t.name)}var Cs="data:image/svg+xml,%3Csvg width='8' height='18' viewBox='0 0 8 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.586301 0.213898C0.150354 0.552968 0.0718197 1.18124 0.41089 1.61719L5.2892 7.88931C5.57007 8.25042 5.57007 8.75608 5.2892 9.11719L0.410889 15.3893C0.071819 15.8253 0.150353 16.4535 0.586301 16.7926C1.02225 17.1317 1.65052 17.0531 1.98959 16.6172L6.86791 10.3451C7.7105 9.26174 7.7105 7.74476 6.86791 6.66143L1.98959 0.38931C1.65052 -0.0466374 1.02225 -0.125172 0.586301 0.213898Z' fill='%233C4252'/%3E %3C/svg%3E";function ks(t){var e=t.color,n=t.href,r=t.name,o=t.logo,i=t.onClick;return l.createElement("a",{className:"walletconnect-modal__base__row",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},l.createElement("h3",{className:"walletconnect-modal__base__row__h3"},r),l.createElement("div",{className:"walletconnect-modal__base__row__right"},l.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+o+"') "+e,backgroundSize:"100%"}}),l.createElement("img",{src:Cs,className:"walletconnect-modal__base__row__right__caret"})))}function xs(t){var e=t.color,n=t.href,r=t.name,o=t.logo,i=t.onClick,d=window.innerWidth<768?(r.length>8?2.5:2.7)+"vw":"inherit";return l.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},l.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+o+"') "+e,backgroundSize:"100%"}}),l.createElement("div",{style:{fontSize:d},className:"walletconnect-connect__button__text"},r))}var Is=5,de=12;function Rs(t){var e=E.isAndroid(),n=l.useState(""),r=n[0],o=n[1],i=l.useState(""),d=i[0],f=i[1],p=l.useState(1),g=p[0],w=p[1],y=d?t.links.filter(function(c){return c.name.toLowerCase().includes(d.toLowerCase())}):t.links,b=t.errorMessage,C=d||y.length>Is,k=Math.ceil(y.length/de),I=[(g-1)*de+1,g*de],R=y.length?y.filter(function(c,h){return h+1>=I[0]&&h+1<=I[1]}):[],s=!e&&k>1,a=void 0;function u(c){o(c.target.value),clearTimeout(a),c.target.value?a=setTimeout(function(){f(c.target.value),w(1)},1e3):(o(""),f(""),w(1))}return l.createElement("div",null,l.createElement("p",{id:qn,className:"walletconnect-qrcode__text"},e?t.text.connect_mobile_wallet:t.text.choose_preferred_wallet),!e&&l.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:r,onChange:u}),l.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(e?"__android":C&&y.length?"__wrap":"")},e?l.createElement(Ss,{name:t.text.connect,color:ys,href:t.uri,onClick:l.useCallback(function(){E.saveMobileLinkInfo({name:"Unknown",href:t.uri})},[])}):R.length?R.map(function(c){var h=c.color,m=c.name,_=c.shortName,v=c.logo,T=E.formatIOSMobile(t.uri,c),U=l.useCallback(function(){E.saveMobileLinkInfo({name:m,href:T})},[R]);return C?l.createElement(xs,{color:h,href:T,name:_||m,logo:v,onClick:U}):l.createElement(ks,{color:h,href:T,name:m,logo:v,onClick:U})}):l.createElement(l.Fragment,null,l.createElement("p",null,b.length?t.errorMessage:t.links.length&&!y.length?t.text.no_wallets_found:t.text.loading))),s&&l.createElement("div",{className:"walletconnect-modal__footer"},Array(k).fill(0).map(function(c,h){var m=h+1,_=g===m;return l.createElement("a",{style:{margin:"auto 10px",fontWeight:_?"bold":"normal"},onClick:function(){return w(m)}},m)})))}function Ts(t){var e=!!t.message.trim();return l.createElement("div",{className:"walletconnect-qrcode__notification"+(e?" notification__show":"")},t.message)}var Os=function(t){try{var e="";return Promise.resolve(Nn.toString(t,{margin:0,type:"svg"})).then(function(n){return typeof n=="string"&&(e=n.replace("0||l.useEffect(function(){var Pn=function(){try{if(e)return Promise.resolve();d(!0);var ce=ps(function(){var F=t.qrcodeModalOptions&&t.qrcodeModalOptions.registryUrl?t.qrcodeModalOptions.registryUrl:E.getWalletRegistryUrl();return Promise.resolve(fetch(F)).then(function($n){return Promise.resolve($n.json()).then(function(jn){var Bn=jn.listings,Wn=n?"mobile":"desktop",Y=E.getMobileLinkRegistry(E.formatMobileRegistry(Bn,Wn),r);d(!1),g(!0),T(Y.length?"":t.text.no_supported_wallets),m(Y);var Ye=Y.length===1;Ye&&(R(E.formatIOSMobile(t.uri,Y[0])),b(!0)),u(Ye)})})},function(F){d(!1),g(!0),T(t.text.something_went_wrong),console.error(F)});return Promise.resolve(ce&&ce.then?ce.then(function(){}):void 0)}catch(F){return Promise.reject(F)}};Pn()})};U();var Dn=n?y:!y;return l.createElement("div",{id:Ln,className:"walletconnect-qrcode__base animated fadeIn"},l.createElement("div",{className:"walletconnect-modal__base"},l.createElement(Es,{onClose:t.onClose}),a&&y?l.createElement("div",{className:"walletconnect-modal__single_wallet"},l.createElement("a",{onClick:function(){return E.saveMobileLinkInfo({name:h[0].name,href:I})},href:I,rel:"noopener noreferrer",target:"_blank"},t.text.connect_with+" "+(a?h[0].name:"")+" ›")):e||i||!i&&h.length?l.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(Dn?" right__selected":"")},l.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),n?l.createElement(l.Fragment,null,l.createElement("a",{onClick:function(){return b(!1),U()}},t.text.mobile),l.createElement("a",{onClick:function(){return b(!0)}},t.text.qrcode)):l.createElement(l.Fragment,null,l.createElement("a",{onClick:function(){return b(!0)}},t.text.qrcode),l.createElement("a",{onClick:function(){return b(!1),U()}},t.text.desktop))):null,l.createElement("div",null,y||!e&&!i&&!h.length?l.createElement(Ns,Object.assign({},C)):l.createElement(Rs,Object.assign({},C,{links:h,errorMessage:v})))))}var Ls={choose_preferred_wallet:"Wähle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterstützten Wallet",no_wallets_found:"keine Wallet gefunden"},qs={choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},As={choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera móvil",scan_qrcode_with_wallet:"Escanea el código QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo salió mal",no_supported_wallets:"Todavía no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},Us={choose_preferred_wallet:"Choisissez votre portefeuille préféré",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copié!",connect_with:"Connectez-vous à l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourné",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouvé"},Ds={choose_preferred_wallet:"원하는 지갑을 선택하세요",connect_mobile_wallet:"모바일 지갑과 연결",scan_qrcode_with_wallet:"WalletConnect 지원 지갑에서 QR코드를 스캔하세요",connect:"연결",qrcode:"QR 코드",mobile:"모바일",desktop:"데스크탑",copy_to_clipboard:"클립보드에 복사",copied_to_clipboard:"클립보드에 복사되었습니다!",connect_with:"와 연결하다",loading:"로드 중...",something_went_wrong:"문제가 발생했습니다.",no_supported_wallets:"아직 지원되는 지갑이 없습니다",no_wallets_found:"지갑을 찾을 수 없습니다"},Ps={choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se à carteira móvel",scan_qrcode_with_wallet:"Ler o código QR com uma carteira compatível com WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda não há carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},$s={choose_preferred_wallet:"选择你的钱包",connect_mobile_wallet:"连接至移动端钱包",scan_qrcode_with_wallet:"使用兼容 WalletConnect 的钱包扫描二维码",connect:"连接",qrcode:"二维码",mobile:"移动",desktop:"桌面",copy_to_clipboard:"复制到剪贴板",copied_to_clipboard:"复制到剪贴板成功!",connect_with:"通过以下方式连接",loading:"正在加载...",something_went_wrong:"出了问题",no_supported_wallets:"目前还没有支持的钱包",no_wallets_found:"没有找到钱包"},js={choose_preferred_wallet:"کیف پول مورد نظر خود را انتخاب کنید",connect_mobile_wallet:"به کیف پول موبایل وصل شوید",scan_qrcode_with_wallet:"کد QR را با یک کیف پول سازگار با WalletConnect اسکن کنید",connect:"اتصال",qrcode:"کد QR",mobile:"سیار",desktop:"دسکتاپ",copy_to_clipboard:"کپی به کلیپ بورد",copied_to_clipboard:"در کلیپ بورد کپی شد!",connect_with:"ارتباط با",loading:"...بارگذاری",something_went_wrong:"مشکلی پیش آمد",no_supported_wallets:"هنوز هیچ کیف پول پشتیبانی شده ای وجود ندارد",no_wallets_found:"هیچ کیف پولی پیدا نشد"},dt={de:Ls,en:qs,es:As,fr:Us,ko:Ds,pt:Ps,zh:$s,fa:js};function Bs(){var t=E.getDocumentOrThrow(),e=t.getElementById(ut);e&&t.head.removeChild(e);var n=t.createElement("style");n.setAttribute("id",ut),n.innerText=_s,t.head.appendChild(n)}function Ws(){var t=E.getDocumentOrThrow(),e=t.createElement("div");return e.setAttribute("id",Mn),t.body.appendChild(e),e}function An(){var t=E.getDocumentOrThrow(),e=t.getElementById(Ln);e&&(e.className=e.className.replace("fadeIn","fadeOut"),setTimeout(function(){var n=t.getElementById(Mn);n&&t.body.removeChild(n)},ws))}function Fs(t){return function(){An(),t&&t()}}function Hs(){var t=E.getNavigatorOrThrow().language.split("-")[0]||"en";return dt[t]||dt.en}function zs(t,e,n){Bs();var r=Ws();l.render(l.createElement(Ms,{text:Hs(),uri:t,onClose:Fs(e),qrcodeModalOptions:n}),r)}function Qs(){An()}var Un=function(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"};function Js(t,e,n){console.log(t),Un()?fs(t):zs(t,e,n)}function Vs(){Un()||Qs()}var Gs={open:Js,close:Vs},Ys=Gs;const Ks=me(Ys);class Zs extends mr{constructor(e){super(),this.events=new ft,this.accounts=[],this.chainId=1,this.pending=!1,this.bridge="https://bridge.walletconnect.org",this.qrcode=!0,this.qrcodeModalOptions=void 0,this.opts=e,this.chainId=(e==null?void 0:e.chainId)||this.chainId,this.wc=this.register(e)}get connected(){return typeof this.wc<"u"&&this.wc.connected}get connecting(){return this.pending}get connector(){return this.wc=this.register(this.opts),this.wc}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async open(e){if(this.connected){this.onOpen();return}return new Promise((n,r)=>{this.on("error",o=>{r(o)}),this.on("open",()=>{n()}),this.create(e)})}async close(){typeof this.wc>"u"||(this.wc.connected&&this.wc.killSession(),this.onClose())}async send(e){this.wc=this.register(this.opts),this.connected||await this.open(),this.sendPayload(e).then(n=>this.events.emit("payload",n)).catch(n=>this.events.emit("payload",Ke(e.id,n.message)))}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e!=null&&e.connector?e.connector.bridge:(e==null?void 0:e.bridge)||"https://bridge.walletconnect.org",this.qrcode=typeof(e==null?void 0:e.qrcode)>"u"||e.qrcode!==!1,this.chainId=typeof(e==null?void 0:e.chainId)<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e==null?void 0:e.qrcodeModalOptions;const n={bridge:this.bridge,qrcodeModal:this.qrcode?Ks:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e==null?void 0:e.storageId,signingMethods:e==null?void 0:e.signingMethods,clientMeta:e==null?void 0:e.clientMeta};if(this.wc=typeof(e==null?void 0:e.connector)<"u"?e.connector:new Bi(n),typeof this.wc>"u")throw new Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}onOpen(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}onClose(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}onError(e,n="Failed or Rejected Request",r=-32e3){const o={id:e.id,jsonrpc:e.jsonrpc,error:{code:r,message:n}};return this.events.emit("payload",o),o}create(e){this.wc=this.register(this.opts),this.chainId=e||this.chainId,!(this.connected||this.pending)&&(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then(()=>this.events.emit("created")).catch(n=>this.events.emit("error",n)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{var n,r;if(e){this.events.emit("error",e);return}this.accounts=((n=this.wc)===null||n===void 0?void 0:n.accounts)||[],this.chainId=((r=this.wc)===null||r===void 0?void 0:r.chainId)||this.chainId,this.onOpen()}),this.wc.on("disconnect",e=>{if(e){this.events.emit("error",e);return}this.onClose()}),this.wc.on("modal_closed",()=>{this.events.emit("error",new Error("User closed modal"))}),this.wc.on("session_update",(e,n)=>{const{accounts:r,chainId:o}=n.params[0];(!this.accounts||r&&this.accounts!==r)&&(this.accounts=r,this.events.emit("accountsChanged",r)),(!this.chainId||o&&this.chainId!==o)&&(this.chainId=o,this.events.emit("chainChanged",o))})}async sendPayload(e){this.wc=this.register(this.opts);try{const n=await this.wc.unsafeSend(e);return this.sanitizeResponse(n)}catch(n){return this.onError(e,n.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?Ke(e.id,e.error.message,e.error.data):e}}class na{constructor(e){this.events=new ft,this.rpc={infuraId:e==null?void 0:e.infuraId,custom:e==null?void 0:e.rpc},this.signer=new Ze(new Zs(e));const n=this.signer.connection.chainId||(e==null?void 0:e.chainId)||1;this.http=this.setHttpProvider(n),this.registerEventListeners()}get connected(){return this.signer.connection.connected}get connector(){return this.signer.connection.connector}get accounts(){return this.signer.connection.accounts}get chainId(){return this.signer.connection.chainId}get rpcUrl(){var e;return((e=this.http)===null||e===void 0?void 0:e.connection).url||""}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.signer.connection.accounts;case"eth_accounts":return this.signer.connection.accounts;case"eth_chainId":return this.signer.connection.chainId}if(xe.includes(e.method))return this.signer.request(e);if(typeof this.http>"u")throw new Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}sendAsync(e,n){this.request(e).then(r=>n(null,r)).catch(r=>n(r,void 0))}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){this.signer.connection.connected||await this.signer.connect()}async disconnect(){this.signer.connection.connected&&await this.signer.disconnect()}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}removeListener(e,n){this.events.removeListener(e,n)}off(e,n){this.events.off(e,n)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.connection.on("accountsChanged",e=>{this.events.emit("accountsChanged",e)}),this.signer.connection.on("chainChanged",e=>{this.http=this.setHttpProvider(e),this.events.emit("chainChanged",e)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){const n=Bt(e,this.rpc);return typeof n>"u"?void 0:new Ze(new wr(n))}}export{na as default}; -//# sourceMappingURL=index-DKyRIqqa.js.map diff --git a/apps/web/public/assets/index-DcvEgmdm.js b/apps/web/public/assets/index-DcvEgmdm.js deleted file mode 100644 index 7faaeb33..00000000 --- a/apps/web/public/assets/index-DcvEgmdm.js +++ /dev/null @@ -1,2 +0,0 @@ -import{g as ce,a as ie,b as Be,c as fe,d as Qe,l as Ee,n as ge}from"./index-Cl-fQh5M.js";(function(){try{var A=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new A.Error().stack;e&&(A._sentryDebugIds=A._sentryDebugIds||{},A._sentryDebugIds[e]="b86dc40b-125a-4330-9414-50db45ec9f48",A._sentryDebugIdIdentifier="sentry-dbid-b86dc40b-125a-4330-9414-50db45ec9f48")}catch{}})();var RA="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const AA=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),eA=4;function UA(A){let e=0;function t(){return A[e++]<<8|A[e++]}let l=t(),n=1,r=[0,1];for(let D=1;D>--C&1}const c=31,i=2**c,B=i>>>1,g=B>>1,Q=i-1;let E=0;for(let D=0;D1;){let Z=p+Y>>>1;D>>1|s(),u=u<<1^B,a=(a^B)<<1|B|1;I=u,S=1+a-u}let P=l-4;return M.map(D=>{switch(D-P){case 3:return P+65792+(A[w++]<<16|A[w++]<<8|A[w++]);case 2:return P+256+(A[w++]<<8|A[w++]);case 1:return P+A[w++];default:return D-1}})}function NA(A){let e=0;return()=>A[e++]}function rA(A){return NA(UA(kA(A)))}function kA(A){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((n,r)=>e[n.charCodeAt(0)]=r);let t=A.length,l=new Uint8Array(6*t>>3);for(let n=0,r=0,o=0,w=0;n=8&&(l[r++]=w>>(o-=8));return l}function FA(A){return A&1?~A>>1:A>>1}function JA(A,e){let t=Array(A);for(let l=0,n=0;l{let e=H(A);if(e.length)return e})}function wA(A){let e=[];for(;;){let t=A();if(t==0)break;e.push(HA(t,A))}for(;;){let t=A()-1;if(t<0)break;e.push(OA(t,A))}return e.flat()}function O(A){let e=[];for(;;){let t=A(e.length);if(!t)break;e.push(t)}return e}function sA(A,e,t){let l=Array(A).fill().map(()=>[]);for(let n=0;nl[o].push(r));return l}function HA(A,e){let t=1+e(),l=e(),n=O(e);return sA(n.length,1+A,e).flatMap((o,w)=>{let[C,...f]=o;return Array(n[w]).fill().map((s,c)=>{let i=c*l;return[C+c*t,f.map(B=>B+i)]})})}function OA(A,e){let t=1+e();return sA(t,1+A,e).map(n=>[n[0],n.slice(1)])}function mA(A){let e=[],t=H(A);return n(l([]),[]),e;function l(r){let o=A(),w=O(()=>{let C=H(A).map(f=>t[f]);if(C.length)return l(C)});return{S:o,B:w,Q:r}}function n({S:r,B:o},w,C){if(!(r&4&&C===w[w.length-1])){r&2&&(C=w[w.length-1]),r&1&&e.push(w);for(let f of o)for(let s of f.Q)n(f,[...w,s],C)}}}function GA(A){return A.toString(16).toUpperCase().padStart(2,"0")}function CA(A){return`{${GA(A)}}`}function SA(A){let e=[];for(let t=0,l=A.length;t>24&255}function BA(A){return A&16777215}let j,tA,X,V;function YA(){let A=rA(VA);j=new Map(oA(A).flatMap((e,t)=>e.map(l=>[l,t+1<<24]))),tA=new Set(H(A)),X=new Map,V=new Map;for(let[e,t]of wA(A)){if(!tA.has(e)&&t.length==2){let[l,n]=t,r=V.get(l);r||(r=new Map,V.set(l,r)),r.set(n,e)}X.set(e,t.reverse())}}function fA(A){return A>=m&&A=L&&A=K&&ex&&e0&&n(x+f)}else{let o=X.get(r);o?t.push(...o):n(r)}if(!t.length)break;r=t.pop()}if(l&&e.length>1){let r=F(e[0]);for(let o=1;o0&&n>=o)o==0?(e.push(l,...t),t.length=0,l=w):t.push(w),n=o;else{let C=ZA(l,w);C>=0?l=C:n==0&&o==0?(e.push(l),l=w):(t.push(w),n=o)}}return l>=0&&e.push(l,...t),e}function EA(A){return QA(A).map(BA)}function jA(A){return TA(QA(A))}const nA=45,gA=".",MA=65039,DA=1,R=A=>Array.from(A);function G(A,e){return A.P.has(e)||A.Q.has(e)}class XA extends Array{get is_emoji(){return!0}}let v,uA,h,W,pA,U,T,d,aA,lA,q;function y(){if(v)return;let A=rA(RA);const e=()=>H(A),t=()=>new Set(e());v=new Map(wA(A)),uA=t(),h=e(),W=new Set(e().map(s=>h[s])),h=new Set(h),pA=t(),t();let l=oA(A),n=A();const r=()=>new Set(e().flatMap(s=>l[s]).concat(e()));U=O(s=>{let c=O(A).map(i=>i+96);if(c.length){let i=s>=n;c[0]-=32,c=N(c),i&&(c=`Restricted[${c}]`);let B=r(),g=r(),Q=!A();return{N:c,P:B,Q:g,M:Q,R:i}}}),T=t(),d=new Map;let o=e().concat(R(T)).sort((s,c)=>s-c);o.forEach((s,c)=>{let i=A(),B=o[c]=i?o[c-i]:{V:[],M:new Map};B.V.push(s),T.has(s)||d.set(s,B)});for(let{V:s,M:c}of new Set(d.values())){let i=[];for(let g of s){let Q=U.filter(M=>G(M,g)),E=i.find(({G:M})=>Q.some(I=>M.has(I)));E||(E={G:new Set,V:[]},i.push(E)),E.V.push(g),Q.forEach(M=>E.G.add(M))}let B=i.flatMap(g=>R(g.G));for(let{G:g,V:Q}of i){let E=new Set(B.filter(M=>!g.has(M)));for(let M of Q)c.set(M,E)}}let w=new Set,C=new Set;const f=s=>w.has(s)?C.add(s):w.add(s);for(let s of U){for(let c of s.P)f(c);for(let c of s.Q)f(c)}for(let s of w)!d.has(s)&&!C.has(s)&&d.set(s,DA);aA=new Set(R(w).concat(R(EA(w)))),lA=mA(A).map(s=>XA.from(s)).sort(PA),q=new Map;for(let s of lA){let c=[q];for(let i of s){let B=c.map(g=>{let Q=g.get(i);return Q||(Q=new Map,g.set(i,Q)),Q});i===MA?c.push(...B):c=B}for(let i of c)i.V=s}}function _(A){return(hA(A)?"":`${$(z([A]))} `)+CA(A)}function $(A){return`"${A}"‎`}function vA(A){if(A.length>=4&&A[2]==nA&&A[3]==nA)throw new Error(`invalid label extension: "${N(A.slice(0,4))}"`)}function WA(A){for(let t=A.lastIndexOf(95);t>0;)if(A[--t]!==95)throw new Error("underscore allowed only at start")}function qA(A){let e=A[0],t=AA.get(e);if(t)throw J(`leading ${t}`);let l=A.length,n=-1;for(let r=1;r{let r=SA(n),o={input:r,offset:l};l+=r.length+1;try{let w=o.tokens=le(r,e,t),C=w.length,f;if(!C)throw new Error("empty label");let s=o.output=w.flat();if(WA(s),!(o.emoji=C>1||w[0].is_emoji)&&s.every(i=>i<128))vA(s),f="ASCII";else{let i=w.flatMap(B=>B.is_emoji?[]:B);if(!i.length)f="Emoji";else{if(h.has(s[0]))throw J("leading combining mark");for(let Q=1;Qo.has(w)):R(o),!t.length)return}else l.push(n)}if(t){for(let n of t)if(l.every(r=>G(n,r)))throw new Error(`whole-script confusable: ${A.N}/${n.N}`)}}function ee(A){let e=U;for(let t of A){let l=e.filter(n=>G(n,t));if(!l.length)throw U.some(n=>G(n,t))?dA(e[0],t):IA(t);if(e=l,l.length==1)break}return e}function te(A){return A.map(({input:e,error:t,output:l})=>{if(t){let n=t.message;throw new Error(A.length==1?n:`Invalid label ${$(z(e))}: ${n}`)}return N(l)}).join(gA)}function IA(A){return new Error(`disallowed character: ${_(A)}`)}function dA(A,e){let t=_(e),l=U.find(n=>n.P.has(e));return l&&(t=`${l.N} ${t}`),new Error(`illegal mixture: ${A.N} + ${t}`)}function J(A){return new Error(`illegal placement: ${A}`)}function ne(A,e){for(let t of e)if(!G(A,t))throw dA(A,t);if(A.M){let t=EA(e);for(let l=1,n=t.length;leA)throw new Error(`excessive non-spacing marks: ${$(z(t.slice(l-1,r)))} (${r-l}/${eA})`);l=r}}}function le(A,e,t){let l=[],n=[];for(A=A.slice().reverse();A.length;){let r=oe(A);if(r)n.length&&(l.push(e(n)),n=[]),l.push(t(r));else{let o=A.pop();if(aA.has(o))n.push(o);else{let w=v.get(o);if(w)n.push(...w);else if(!uA.has(o))throw IA(o)}}}return n.length&&l.push(e(n)),l}function re(A){return A.filter(e=>e!=MA)}function oe(A,e){let t=q,l,n=A.length;for(;n&&(t=t.get(A[--n]),!!t);){let{V:r}=t;r&&(l=r,A.length=n)}return l}function we(A){return _A(A)}export{ce as getEnsAddress,ie as getEnsAvatar,Be as getEnsName,fe as getEnsResolver,Qe as getEnsText,Ee as labelhash,ge as namehash,we as normalize}; -//# sourceMappingURL=index-DcvEgmdm.js.map diff --git a/apps/web/public/assets/index-Dy-WAr9t.js b/apps/web/public/assets/index-Dy-WAr9t.js deleted file mode 100644 index 75435ee6..00000000 --- a/apps/web/public/assets/index-Dy-WAr9t.js +++ /dev/null @@ -1,3 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Cnb0ezsQ.js","./index-Bl6Lkf65.js","./index-C5o-2F8D.css"])))=>i.map(i=>d[i]); -import{_ as pe}from"./index-Bl6Lkf65.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="449f04fe-ccb1-4103-82a0-6d8bb89612c1",e._sentryDebugIdIdentifier="sentry-dbid-449f04fe-ccb1-4103-82a0-6d8bb89612c1")}catch{}})();const me=Symbol(),ee=Object.getPrototypeOf,G=new WeakMap,ge=e=>e&&(G.has(e)?G.get(e):ee(e)===Object.prototype||ee(e)===Array.prototype),he=e=>ge(e)&&e[me]||null,te=(e,t=!0)=>{G.set(e,t)};var z={VITE_WALLET_CONNECT_ID:"2719448e2ce94fdd269a3c8587123bcc",VITE_GRAPHQL_ENDPOINT:"https://apollo.helixbridge.app/graphql",VITE_NETWORK_TYPE:"mainnet",BASE_URL:"./",MODE:"mainnet",DEV:!1,PROD:!0,SSR:!1};const J=e=>typeof e=="object"&&e!==null,A=new WeakMap,x=new WeakSet,be=(e=Object.is,t=(n,h)=>new Proxy(n,h),s=n=>J(n)&&!x.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,h,v=r)=>{const y=l.get(n);if((y==null?void 0:y[0])===h)return y[1];const I=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return te(I,!0),l.set(n,[h,I]),Reflect.ownKeys(n).forEach(U=>{if(Object.getOwnPropertyDescriptor(I,U))return;const O=Reflect.get(n,U),D={value:O,enumerable:!0,configurable:!0};if(x.has(O))te(O,!1);else if(O instanceof Promise)delete D.value,D.get=()=>v(O);else if(A.has(O)){const[b,H]=A.get(O);D.value=c(b,H(),v)}Object.defineProperty(I,U,D)}),Object.preventExtensions(I)},m=new WeakMap,p=[1,1],W=n=>{if(!J(n))throw new Error("object required");const h=m.get(n);if(h)return h;let v=p[0];const y=new Set,I=(i,a=++p[0])=>{v!==a&&(v=a,y.forEach(o=>o(i,a)))};let U=p[1];const O=(i=++p[1])=>(U!==i&&!y.size&&(U=i,b.forEach(([a])=>{const o=a[1](i);o>v&&(v=o)})),v),D=i=>(a,o)=>{const g=[...a];g[1]=[i,...g[1]],I(g,o)},b=new Map,H=(i,a)=>{if((z?"mainnet":void 0)!=="production"&&b.has(i))throw new Error("prop listener already exists");if(y.size){const o=a[3](D(i));b.set(i,[a,o])}else b.set(i,[a])},Z=i=>{var a;const o=b.get(i);o&&(b.delete(i),(a=o[1])==null||a.call(o))},ue=i=>(y.add(i),y.size===1&&b.forEach(([o,g],S)=>{if((z?"mainnet":void 0)!=="production"&&g)throw new Error("remove already exists");const N=o[3](D(S));b.set(S,[o,N])}),()=>{y.delete(i),y.size===0&&b.forEach(([o,g],S)=>{g&&(g(),b.set(S,[o]))})}),q=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),V=t(q,{deleteProperty(i,a){const o=Reflect.get(i,a);Z(a);const g=Reflect.deleteProperty(i,a);return g&&I(["delete",[a],o]),g},set(i,a,o,g){const S=Reflect.has(i,a),N=Reflect.get(i,a,g);if(S&&(e(N,o)||m.has(o)&&e(N,m.get(o))))return!0;Z(a),J(o)&&(o=he(o)||o);let $=o;if(o instanceof Promise)o.then(C=>{o.status="fulfilled",o.value=C,I(["resolve",[a],C])}).catch(C=>{o.status="rejected",o.reason=C,I(["reject",[a],C])});else{!A.has(o)&&s(o)&&($=W(o));const C=!x.has($)&&A.get($);C&&H(a,C)}return Reflect.set(i,a,$,g),I(["set",[a],o,N]),!0}});m.set(n,V);const fe=[q,O,c,ue];return A.set(V,fe),Reflect.ownKeys(n).forEach(i=>{const a=Object.getOwnPropertyDescriptor(n,i);"value"in a&&(V[i]=n[i],delete a.value,delete a.writable),Object.defineProperty(q,i,a)}),V})=>[W,A,x,e,t,s,r,l,c,m,p],[ye]=be();function j(e={}){return ye(e)}function P(e,t,s){const r=A.get(e);(z?"mainnet":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let p=!1;const n=m(h=>{c.push(h),l||(l=Promise.resolve().then(()=>{l=void 0,p&&t(c.splice(0))}))});return p=!0,()=>{p=!1,n()}}function Ie(e,t){const s=A.get(e);(z?"mainnet":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=j({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),de={state:d,subscribe(e){return P(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},f={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return f.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return f.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(f.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!f.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(f.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(f.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(f.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(f.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=de.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),u=j({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ve={state:u,subscribe(e){return P(u.events,()=>e(Ie(u.events[u.events.length-1])))},initialize(){u.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(u.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){u.connectedWalletId=e},click(e){if(u.enabled){const t={type:"CLICK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},track(e){if(u.enabled){const t={type:"TRACK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},view(e){if(u.enabled){const t={type:"VIEW",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}}},E=j({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),w={state:E,subscribe(e){return P(E,()=>e(E))},setChains(e){E.chains=e},setWalletConnectUri(e){E.walletConnectUri=e},setIsCustomDesktop(e){E.isCustomDesktop=e},setIsCustomMobile(e){E.isCustomMobile=e},setIsDataLoaded(e){E.isDataLoaded=e},setIsUiLoaded(e){E.isUiLoaded=e},setIsAuth(e){E.isAuth=e}},B=j({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),T={state:B,subscribe(e){return P(B,()=>e(B))},setConfig(e){var t,s;ve.initialize(),w.setChains(e.chains),w.setIsAuth(!!e.enableAuthMode),w.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),w.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),f.setModalVersionInStorage(),Object.assign(B,e)}};var Ee=Object.defineProperty,se=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,ne=(e,t,s)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,We=(e,t)=>{for(var s in t||(t={}))Le.call(t,s)&&ne(e,s,t[s]);if(se)for(var s of se(t))Oe.call(t,s)&&ne(e,s,t[s]);return e};const Q="https://explorer-api.walletconnect.com",Y="wcm",X="js-2.6.2";async function K(e,t){const s=We({sdkType:Y,sdkVersion:X},t),r=new URL(e,Q);return r.searchParams.append("projectId",T.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const _={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${Q}/w3m/v1/getWalletImage/${e}?projectId=${T.state.projectId}&sdkType=${Y}&sdkVersion=${X}`},getAssetImageUrl(e){return`${Q}/w3m/v1/getAssetImage/${e}?projectId=${T.state.projectId}&sdkType=${Y}&sdkVersion=${X}`}};var Ce=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,De=(e,t)=>{for(var s in t||(t={}))Ae.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))je.call(t,s)&&re(e,s,t[s]);return e};const ae=f.isMobile(),L=j({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Re={state:L,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=T.state;if(e==="NONE"||t==="ALL"&&!e)return L.recomendedWallets;if(f.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await _.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const p=e.indexOf(c.id),W=e.indexOf(m.id);return p-W}),L.recomendedWallets=l}else{const{chains:s,isAuth:r}=w.state,l=s==null?void 0:s.join(","),c=f.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:f.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:p}=ae?await _.getMobileListings(m):await _.getDesktopListings(m);L.recomendedWallets=Object.values(p)}return L.recomendedWallets},async getWallets(e){const t=De({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=T.state,{recomendedWallets:l}=L;if(r==="ALL")return L.wallets;l.length?t.excludedIds=l.map(v=>v.id).join(","):f.isArray(s)&&(t.excludedIds=s.join(",")),f.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),w.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:p,total:W}=ae?await _.getMobileListings(t):await _.getDesktopListings(t),n=Object.values(p),h=m?"search":"wallets";return L[h]={listings:[...L[h].listings,...n],total:W,page:c??1},{listings:n,total:W}},getWalletImageUrl(e){return _.getWalletImageUrl(e)},getAssetImageUrl(e){return _.getAssetImageUrl(e)},resetSearch(){L.search={listings:[],total:0,page:1}}},k=j({open:!1}),F={state:k,subscribe(e){return P(k,()=>e(k))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=w.state;if(f.removeWalletConnectDeepLink(),w.setWalletConnectUri(e==null?void 0:e.uri),w.setChains(e==null?void 0:e.chains),de.reset("ConnectWallet"),s&&r)k.open=!0,t();else{const l=setInterval(()=>{const c=w.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),k.open=!0,t())},200)}})},close(){k.open=!1}};var _e=Object.defineProperty,ie=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,le=(e,t,s)=>t in e?_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ue=(e,t)=>{for(var s in t||(t={}))Me.call(t,s)&&le(e,s,t[s]);if(ie)for(var s of ie(t))Pe.call(t,s)&&le(e,s,t[s]);return e};function Se(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const R=j({themeMode:Se()?"dark":"light"}),ce={state:R,subscribe(e){return P(R,()=>e(R))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(R.themeMode=t),s&&(R.themeVariables=Ue({},s))}},M=j({open:!1,message:"",variant:"success"}),Ve={state:M,subscribe(e){return P(M,()=>e(M))},openToast(e,t){M.open=!0,M.message=e,M.variant=t},closeToast(){M.open=!1}};class ke{constructor(t){this.openModal=F.open,this.closeModal=F.close,this.subscribeModal=F.subscribe,this.setTheme=ce.setThemeConfig,ce.setThemeConfig(t),T.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await pe(()=>import("./index-Cnb0ezsQ.js"),__vite__mapDeps([0,1,2]),import.meta.url);const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),w.setIsUiLoaded(!0)}}}const $e=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:ke},Symbol.toStringTag,{value:"Module"}));export{ve as R,de as T,f as a,$e as i,ce as n,Ve as o,w as p,F as s,Re as t,T as y}; -//# sourceMappingURL=index-Dy-WAr9t.js.map diff --git a/apps/web/public/assets/index.es-83zPAjH-.js b/apps/web/public/assets/index.es-83zPAjH-.js deleted file mode 100644 index 2e4ebbbe..00000000 --- a/apps/web/public/assets/index.es-83zPAjH-.js +++ /dev/null @@ -1,2 +0,0 @@ -import{o as v,r as fe,p as ue,q as he}from"./index-Cl-fQh5M.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="63a6e0f5-c3c8-469e-beb0-06e33708629a",t._sentryDebugIdIdentifier="sentry-dbid-63a6e0f5-c3c8-469e-beb0-06e33708629a")}catch{}})();const le=t=>JSON.stringify(t,(r,s)=>typeof s=="bigint"?s.toString()+"n":s),de=t=>{const r=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,s=t.replace(r,'$1"$2n"$3');return JSON.parse(s,(f,u)=>typeof u=="string"&&u.match(/^\d+n$/)?BigInt(u.substring(0,u.length-1)):u)};function pe(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return de(t)}catch{return t}}function C(t){return typeof t=="string"?t:le(t)||""}const ye="PARSE_ERROR",be="INVALID_REQUEST",ge="METHOD_NOT_FOUND",me="INVALID_PARAMS",G="INTERNAL_ERROR",D="SERVER_ERROR",ve=[-32700,-32600,-32601,-32602,-32603],R={[ye]:{code:-32700,message:"Parse error"},[be]:{code:-32600,message:"Invalid Request"},[ge]:{code:-32601,message:"Method not found"},[me]:{code:-32602,message:"Invalid params"},[G]:{code:-32603,message:"Internal error"},[D]:{code:-32e3,message:"Server error"}},z=D;function Ee(t){return ve.includes(t)}function U(t){return Object.keys(R).includes(t)?R[t]:R[z]}function we(t){const r=Object.values(R).find(s=>s.code===t);return r||R[z]}function Re(t,r,s){return t.message.includes("getaddrinfo ENOTFOUND")||t.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${s} RPC url at ${r}`):t}var _e={},b={},M;function Oe(){if(M)return b;M=1,Object.defineProperty(b,"__esModule",{value:!0}),b.isBrowserCryptoAvailable=b.getSubtleCrypto=b.getBrowerCrypto=void 0;function t(){return(v===null||v===void 0?void 0:v.crypto)||(v===null||v===void 0?void 0:v.msCrypto)||{}}b.getBrowerCrypto=t;function r(){const f=t();return f.subtle||f.webkitSubtle}b.getSubtleCrypto=r;function s(){return!!t()&&!!r()}return b.isBrowserCryptoAvailable=s,b}var g={},N;function Ae(){if(N)return g;N=1,Object.defineProperty(g,"__esModule",{value:!0}),g.isBrowser=g.isNode=g.isReactNative=void 0;function t(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}g.isReactNative=t;function r(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}g.isNode=r;function s(){return!t()&&!r()}return g.isBrowser=s,g}(function(t){Object.defineProperty(t,"__esModule",{value:!0});const r=fe;r.__exportStar(Oe(),t),r.__exportStar(Ae(),t)})(_e);function X(t=3){const r=Date.now()*Math.pow(10,t),s=Math.floor(Math.random()*Math.pow(10,t));return r+s}function $e(t=6){return BigInt(X(t))}function Ve(t,r,s){return{id:s||X(),jsonrpc:"2.0",method:t,params:r}}function ke(t,r){return{id:t,jsonrpc:"2.0",result:r}}function Pe(t,r,s){return{id:t,jsonrpc:"2.0",error:Te(r,s)}}function Te(t,r){return typeof t>"u"?U(G):(typeof t=="string"&&(t=Object.assign(Object.assign({},U(D)),{message:t})),typeof r<"u"&&(t.data=r),Ee(t.code)&&(t=we(t.code)),t)}class Q{}let Ge=class extends Q{constructor(r){super()}};class Be extends Q{constructor(){super()}}class Xe extends Be{constructor(r){super()}}const De="^https?:",Se="^wss?:";function xe(t){const r=t.match(new RegExp(/^\w+:/,"gi"));if(!(!r||!r.length))return r[0]}function W(t,r){const s=xe(t);return typeof s>"u"?!1:new RegExp(r).test(s)}function L(t){return W(t,De)}function Qe(t){return W(t,Se)}function We(t){return new RegExp("wss?://localhost(:d{2,5})?").test(t)}function K(t){return typeof t=="object"&&"id"in t&&"jsonrpc"in t&&t.jsonrpc==="2.0"}function Ke(t){return K(t)&&"method"in t}function Ye(t){return K(t)&&(je(t)||Ie(t))}function je(t){return"result"in t}function Ie(t){return"error"in t}var B={exports:{}};(function(t,r){var s=typeof self<"u"?self:v,f=function(){function a(){this.fetch=!1,this.DOMException=s.DOMException}return a.prototype=s,new a}();(function(a){(function(d){var p={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function Y(e){return e&&DataView.prototype.isPrototypeOf(e)}if(p.arrayBuffer)var Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ee=ArrayBuffer.isView||function(e){return e&&Z.indexOf(Object.prototype.toString.call(e))>-1};function E(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function S(e){return typeof e!="string"&&(e=String(e)),e}function O(e){var n={next:function(){var o=e.shift();return{done:o===void 0,value:o}}};return p.iterable&&(n[Symbol.iterator]=function(){return n}),n}function c(e){this.map={},e instanceof c?e.forEach(function(n,o){this.append(o,n)},this):Array.isArray(e)?e.forEach(function(n){this.append(n[0],n[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(n){this.append(n,e[n])},this)}c.prototype.append=function(e,n){e=E(e),n=S(n);var o=this.map[e];this.map[e]=o?o+", "+n:n},c.prototype.delete=function(e){delete this.map[E(e)]},c.prototype.get=function(e){return e=E(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(E(e))},c.prototype.set=function(e,n){this.map[E(e)]=S(n)},c.prototype.forEach=function(e,n){for(var o in this.map)this.map.hasOwnProperty(o)&&e.call(n,this.map[o],o,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(n,o){e.push(o)}),O(e)},c.prototype.values=function(){var e=[];return this.forEach(function(n){e.push(n)}),O(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(n,o){e.push([o,n])}),O(e)},p.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);function A(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function x(e){return new Promise(function(n,o){e.onload=function(){n(e.result)},e.onerror=function(){o(e.error)}})}function te(e){var n=new FileReader,o=x(n);return n.readAsArrayBuffer(e),o}function re(e){var n=new FileReader,o=x(n);return n.readAsText(e),o}function ne(e){for(var n=new Uint8Array(e),o=new Array(n.length),l=0;l-1?n:e}function m(e,n){n=n||{};var o=n.body;if(e instanceof m){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!o&&e._bodyInit!=null&&(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",(n.headers||!this.headers)&&(this.headers=new c(n.headers)),this.method=oe(n.method||this.method||"GET"),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})};function ie(e){var n=new FormData;return e.trim().split("&").forEach(function(o){if(o){var l=o.split("="),h=l.shift().replace(/\+/g," "),i=l.join("=").replace(/\+/g," ");n.append(decodeURIComponent(h),decodeURIComponent(i))}}),n}function ae(e){var n=new c,o=e.replace(/\r?\n[\t ]+/g," ");return o.split(/\r?\n/).forEach(function(l){var h=l.split(":"),i=h.shift().trim();if(i){var _=h.join(":").trim();n.append(i,_)}}),n}I.call(m.prototype);function y(e,n){n||(n={}),this.type="default",this.status=n.status===void 0?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in n?n.statusText:"OK",this.headers=new c(n.headers),this.url=n.url||"",this._initBody(e)}I.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var ce=[301,302,303,307,308];y.redirect=function(e,n){if(ce.indexOf(n)===-1)throw new RangeError("Invalid status code");return new y(null,{status:n,headers:{location:e}})},d.DOMException=a.DOMException;try{new d.DOMException}catch{d.DOMException=function(n,o){this.message=n,this.name=o;var l=Error(n);this.stack=l.stack},d.DOMException.prototype=Object.create(Error.prototype),d.DOMException.prototype.constructor=d.DOMException}function P(e,n){return new Promise(function(o,l){var h=new m(e,n);if(h.signal&&h.signal.aborted)return l(new d.DOMException("Aborted","AbortError"));var i=new XMLHttpRequest;function _(){i.abort()}i.onload=function(){var w={status:i.status,statusText:i.statusText,headers:ae(i.getAllResponseHeaders()||"")};w.url="responseURL"in i?i.responseURL:w.headers.get("X-Request-URL");var T="response"in i?i.response:i.responseText;o(new y(T,w))},i.onerror=function(){l(new TypeError("Network request failed"))},i.ontimeout=function(){l(new TypeError("Network request failed"))},i.onabort=function(){l(new d.DOMException("Aborted","AbortError"))},i.open(h.method,h.url,!0),h.credentials==="include"?i.withCredentials=!0:h.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&p.blob&&(i.responseType="blob"),h.headers.forEach(function(w,T){i.setRequestHeader(T,w)}),h.signal&&(h.signal.addEventListener("abort",_),i.onreadystatechange=function(){i.readyState===4&&h.signal.removeEventListener("abort",_)}),i.send(typeof h._bodyInit>"u"?null:h._bodyInit)})}return P.polyfill=!0,a.fetch||(a.fetch=P,a.Headers=c,a.Request=m,a.Response=y),d.Headers=c,d.Request=m,d.Response=y,d.fetch=P,Object.defineProperty(d,"__esModule",{value:!0}),d})({})})(f),f.fetch.ponyfill=!0,delete f.fetch.polyfill;var u=f;r=u.fetch,r.default=u.fetch,r.fetch=u.fetch,r.Headers=u.Headers,r.Request=u.Request,r.Response=u.Response,t.exports=r})(B,B.exports);var Ce=B.exports;const F=ue(Ce);var Ue=Object.defineProperty,Me=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,H=(t,r,s)=>r in t?Ue(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s,J=(t,r)=>{for(var s in r||(r={}))Le.call(r,s)&&H(t,s,r[s]);if(q)for(var s of q(r))Fe.call(r,s)&&H(t,s,r[s]);return t},$=(t,r)=>Me(t,Ne(r));const qe={Accept:"application/json","Content-Type":"application/json"},He="POST",V={headers:qe,method:He},k=10;class Ze{constructor(r,s=!1){if(this.url=r,this.disableProviderPing=s,this.events=new he.EventEmitter,this.isAvailable=!1,this.registering=!1,!L(r))throw new Error(`Provided URL is not compatible with HTTP connection: ${r}`);this.url=r,this.disableProviderPing=s}get connected(){return this.isAvailable}get connecting(){return this.registering}on(r,s){this.events.on(r,s)}once(r,s){this.events.once(r,s)}off(r,s){this.events.off(r,s)}removeListener(r,s){this.events.removeListener(r,s)}async open(r=this.url){await this.register(r)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(r){this.isAvailable||await this.register();try{const s=C(r),f=await(await F(this.url,$(J({},V),{body:s}))).json();this.onPayload({data:f})}catch(s){this.onError(r.id,s)}}async register(r=this.url){if(!L(r))throw new Error(`Provided URL is not compatible with HTTP connection: ${r}`);if(this.registering){const s=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=s||this.events.listenerCount("open")>=s)&&this.events.setMaxListeners(s+1),new Promise((f,u)=>{this.events.once("register_error",a=>{this.resetMaxListeners(),u(a)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return u(new Error("HTTP connection is missing or invalid"));f()})})}this.url=r,this.registering=!0;try{if(!this.disableProviderPing){const s=C({id:1,jsonrpc:"2.0",method:"test",params:[]});await F(r,$(J({},V),{body:s}))}this.onOpen()}catch(s){const f=this.parseError(s);throw this.events.emit("register_error",f),this.onClose(),f}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(r){if(typeof r.data>"u")return;const s=typeof r.data=="string"?pe(r.data):r.data;this.events.emit("payload",s)}onError(r,s){const f=this.parseError(s),u=f.message||f.toString(),a=Pe(r,u);this.events.emit("payload",a)}parseError(r,s=this.url){return Re(r,s,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>k&&this.events.setMaxListeners(k)}}export{pe as a,Ye as b,Qe as c,_e as d,We as e,Ve as f,$e as g,Pe as h,Ie as i,Ke as j,ke as k,je as l,X as m,Ze as n,Ge as o,Re as p,Xe as r,C as s}; -//# sourceMappingURL=index.es-83zPAjH-.js.map diff --git a/apps/web/public/assets/index.es-BYCv7dOh.js b/apps/web/public/assets/index.es-BYCv7dOh.js deleted file mode 100644 index b42561ca..00000000 --- a/apps/web/public/assets/index.es-BYCv7dOh.js +++ /dev/null @@ -1,2 +0,0 @@ -import{o as v,r as fe,p as ue,q as he}from"./index-CTwKNzhK.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="63a6e0f5-c3c8-469e-beb0-06e33708629a",t._sentryDebugIdIdentifier="sentry-dbid-63a6e0f5-c3c8-469e-beb0-06e33708629a")}catch{}})();const le=t=>JSON.stringify(t,(r,s)=>typeof s=="bigint"?s.toString()+"n":s),de=t=>{const r=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,s=t.replace(r,'$1"$2n"$3');return JSON.parse(s,(f,u)=>typeof u=="string"&&u.match(/^\d+n$/)?BigInt(u.substring(0,u.length-1)):u)};function pe(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return de(t)}catch{return t}}function C(t){return typeof t=="string"?t:le(t)||""}const ye="PARSE_ERROR",be="INVALID_REQUEST",ge="METHOD_NOT_FOUND",me="INVALID_PARAMS",G="INTERNAL_ERROR",D="SERVER_ERROR",ve=[-32700,-32600,-32601,-32602,-32603],R={[ye]:{code:-32700,message:"Parse error"},[be]:{code:-32600,message:"Invalid Request"},[ge]:{code:-32601,message:"Method not found"},[me]:{code:-32602,message:"Invalid params"},[G]:{code:-32603,message:"Internal error"},[D]:{code:-32e3,message:"Server error"}},z=D;function Ee(t){return ve.includes(t)}function U(t){return Object.keys(R).includes(t)?R[t]:R[z]}function we(t){const r=Object.values(R).find(s=>s.code===t);return r||R[z]}function Re(t,r,s){return t.message.includes("getaddrinfo ENOTFOUND")||t.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${s} RPC url at ${r}`):t}var _e={},b={},M;function Oe(){if(M)return b;M=1,Object.defineProperty(b,"__esModule",{value:!0}),b.isBrowserCryptoAvailable=b.getSubtleCrypto=b.getBrowerCrypto=void 0;function t(){return(v===null||v===void 0?void 0:v.crypto)||(v===null||v===void 0?void 0:v.msCrypto)||{}}b.getBrowerCrypto=t;function r(){const f=t();return f.subtle||f.webkitSubtle}b.getSubtleCrypto=r;function s(){return!!t()&&!!r()}return b.isBrowserCryptoAvailable=s,b}var g={},N;function Ae(){if(N)return g;N=1,Object.defineProperty(g,"__esModule",{value:!0}),g.isBrowser=g.isNode=g.isReactNative=void 0;function t(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}g.isReactNative=t;function r(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}g.isNode=r;function s(){return!t()&&!r()}return g.isBrowser=s,g}(function(t){Object.defineProperty(t,"__esModule",{value:!0});const r=fe;r.__exportStar(Oe(),t),r.__exportStar(Ae(),t)})(_e);function X(t=3){const r=Date.now()*Math.pow(10,t),s=Math.floor(Math.random()*Math.pow(10,t));return r+s}function $e(t=6){return BigInt(X(t))}function Ve(t,r,s){return{id:s||X(),jsonrpc:"2.0",method:t,params:r}}function ke(t,r){return{id:t,jsonrpc:"2.0",result:r}}function Pe(t,r,s){return{id:t,jsonrpc:"2.0",error:Te(r,s)}}function Te(t,r){return typeof t>"u"?U(G):(typeof t=="string"&&(t=Object.assign(Object.assign({},U(D)),{message:t})),typeof r<"u"&&(t.data=r),Ee(t.code)&&(t=we(t.code)),t)}class Q{}let Ge=class extends Q{constructor(r){super()}};class Be extends Q{constructor(){super()}}class Xe extends Be{constructor(r){super()}}const De="^https?:",Se="^wss?:";function xe(t){const r=t.match(new RegExp(/^\w+:/,"gi"));if(!(!r||!r.length))return r[0]}function W(t,r){const s=xe(t);return typeof s>"u"?!1:new RegExp(r).test(s)}function L(t){return W(t,De)}function Qe(t){return W(t,Se)}function We(t){return new RegExp("wss?://localhost(:d{2,5})?").test(t)}function K(t){return typeof t=="object"&&"id"in t&&"jsonrpc"in t&&t.jsonrpc==="2.0"}function Ke(t){return K(t)&&"method"in t}function Ye(t){return K(t)&&(je(t)||Ie(t))}function je(t){return"result"in t}function Ie(t){return"error"in t}var B={exports:{}};(function(t,r){var s=typeof self<"u"?self:v,f=function(){function a(){this.fetch=!1,this.DOMException=s.DOMException}return a.prototype=s,new a}();(function(a){(function(d){var p={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function Y(e){return e&&DataView.prototype.isPrototypeOf(e)}if(p.arrayBuffer)var Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ee=ArrayBuffer.isView||function(e){return e&&Z.indexOf(Object.prototype.toString.call(e))>-1};function E(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function S(e){return typeof e!="string"&&(e=String(e)),e}function O(e){var n={next:function(){var o=e.shift();return{done:o===void 0,value:o}}};return p.iterable&&(n[Symbol.iterator]=function(){return n}),n}function c(e){this.map={},e instanceof c?e.forEach(function(n,o){this.append(o,n)},this):Array.isArray(e)?e.forEach(function(n){this.append(n[0],n[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(n){this.append(n,e[n])},this)}c.prototype.append=function(e,n){e=E(e),n=S(n);var o=this.map[e];this.map[e]=o?o+", "+n:n},c.prototype.delete=function(e){delete this.map[E(e)]},c.prototype.get=function(e){return e=E(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(E(e))},c.prototype.set=function(e,n){this.map[E(e)]=S(n)},c.prototype.forEach=function(e,n){for(var o in this.map)this.map.hasOwnProperty(o)&&e.call(n,this.map[o],o,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(n,o){e.push(o)}),O(e)},c.prototype.values=function(){var e=[];return this.forEach(function(n){e.push(n)}),O(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(n,o){e.push([o,n])}),O(e)},p.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);function A(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function x(e){return new Promise(function(n,o){e.onload=function(){n(e.result)},e.onerror=function(){o(e.error)}})}function te(e){var n=new FileReader,o=x(n);return n.readAsArrayBuffer(e),o}function re(e){var n=new FileReader,o=x(n);return n.readAsText(e),o}function ne(e){for(var n=new Uint8Array(e),o=new Array(n.length),l=0;l-1?n:e}function m(e,n){n=n||{};var o=n.body;if(e instanceof m){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!o&&e._bodyInit!=null&&(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",(n.headers||!this.headers)&&(this.headers=new c(n.headers)),this.method=oe(n.method||this.method||"GET"),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})};function ie(e){var n=new FormData;return e.trim().split("&").forEach(function(o){if(o){var l=o.split("="),h=l.shift().replace(/\+/g," "),i=l.join("=").replace(/\+/g," ");n.append(decodeURIComponent(h),decodeURIComponent(i))}}),n}function ae(e){var n=new c,o=e.replace(/\r?\n[\t ]+/g," ");return o.split(/\r?\n/).forEach(function(l){var h=l.split(":"),i=h.shift().trim();if(i){var _=h.join(":").trim();n.append(i,_)}}),n}I.call(m.prototype);function y(e,n){n||(n={}),this.type="default",this.status=n.status===void 0?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in n?n.statusText:"OK",this.headers=new c(n.headers),this.url=n.url||"",this._initBody(e)}I.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var ce=[301,302,303,307,308];y.redirect=function(e,n){if(ce.indexOf(n)===-1)throw new RangeError("Invalid status code");return new y(null,{status:n,headers:{location:e}})},d.DOMException=a.DOMException;try{new d.DOMException}catch{d.DOMException=function(n,o){this.message=n,this.name=o;var l=Error(n);this.stack=l.stack},d.DOMException.prototype=Object.create(Error.prototype),d.DOMException.prototype.constructor=d.DOMException}function P(e,n){return new Promise(function(o,l){var h=new m(e,n);if(h.signal&&h.signal.aborted)return l(new d.DOMException("Aborted","AbortError"));var i=new XMLHttpRequest;function _(){i.abort()}i.onload=function(){var w={status:i.status,statusText:i.statusText,headers:ae(i.getAllResponseHeaders()||"")};w.url="responseURL"in i?i.responseURL:w.headers.get("X-Request-URL");var T="response"in i?i.response:i.responseText;o(new y(T,w))},i.onerror=function(){l(new TypeError("Network request failed"))},i.ontimeout=function(){l(new TypeError("Network request failed"))},i.onabort=function(){l(new d.DOMException("Aborted","AbortError"))},i.open(h.method,h.url,!0),h.credentials==="include"?i.withCredentials=!0:h.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&p.blob&&(i.responseType="blob"),h.headers.forEach(function(w,T){i.setRequestHeader(T,w)}),h.signal&&(h.signal.addEventListener("abort",_),i.onreadystatechange=function(){i.readyState===4&&h.signal.removeEventListener("abort",_)}),i.send(typeof h._bodyInit>"u"?null:h._bodyInit)})}return P.polyfill=!0,a.fetch||(a.fetch=P,a.Headers=c,a.Request=m,a.Response=y),d.Headers=c,d.Request=m,d.Response=y,d.fetch=P,Object.defineProperty(d,"__esModule",{value:!0}),d})({})})(f),f.fetch.ponyfill=!0,delete f.fetch.polyfill;var u=f;r=u.fetch,r.default=u.fetch,r.fetch=u.fetch,r.Headers=u.Headers,r.Request=u.Request,r.Response=u.Response,t.exports=r})(B,B.exports);var Ce=B.exports;const F=ue(Ce);var Ue=Object.defineProperty,Me=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,H=(t,r,s)=>r in t?Ue(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s,J=(t,r)=>{for(var s in r||(r={}))Le.call(r,s)&&H(t,s,r[s]);if(q)for(var s of q(r))Fe.call(r,s)&&H(t,s,r[s]);return t},$=(t,r)=>Me(t,Ne(r));const qe={Accept:"application/json","Content-Type":"application/json"},He="POST",V={headers:qe,method:He},k=10;class Ze{constructor(r,s=!1){if(this.url=r,this.disableProviderPing=s,this.events=new he.EventEmitter,this.isAvailable=!1,this.registering=!1,!L(r))throw new Error(`Provided URL is not compatible with HTTP connection: ${r}`);this.url=r,this.disableProviderPing=s}get connected(){return this.isAvailable}get connecting(){return this.registering}on(r,s){this.events.on(r,s)}once(r,s){this.events.once(r,s)}off(r,s){this.events.off(r,s)}removeListener(r,s){this.events.removeListener(r,s)}async open(r=this.url){await this.register(r)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(r){this.isAvailable||await this.register();try{const s=C(r),f=await(await F(this.url,$(J({},V),{body:s}))).json();this.onPayload({data:f})}catch(s){this.onError(r.id,s)}}async register(r=this.url){if(!L(r))throw new Error(`Provided URL is not compatible with HTTP connection: ${r}`);if(this.registering){const s=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=s||this.events.listenerCount("open")>=s)&&this.events.setMaxListeners(s+1),new Promise((f,u)=>{this.events.once("register_error",a=>{this.resetMaxListeners(),u(a)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return u(new Error("HTTP connection is missing or invalid"));f()})})}this.url=r,this.registering=!0;try{if(!this.disableProviderPing){const s=C({id:1,jsonrpc:"2.0",method:"test",params:[]});await F(r,$(J({},V),{body:s}))}this.onOpen()}catch(s){const f=this.parseError(s);throw this.events.emit("register_error",f),this.onClose(),f}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(r){if(typeof r.data>"u")return;const s=typeof r.data=="string"?pe(r.data):r.data;this.events.emit("payload",s)}onError(r,s){const f=this.parseError(s),u=f.message||f.toString(),a=Pe(r,u);this.events.emit("payload",a)}parseError(r,s=this.url){return Re(r,s,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>k&&this.events.setMaxListeners(k)}}export{pe as a,Ye as b,Qe as c,_e as d,We as e,Ve as f,$e as g,Pe as h,Ie as i,Ke as j,ke as k,je as l,X as m,Ze as n,Ge as o,Re as p,Xe as r,C as s}; -//# sourceMappingURL=index.es-BYCv7dOh.js.map diff --git a/apps/web/public/assets/index.es-BlHtwxd-.js b/apps/web/public/assets/index.es-BlHtwxd-.js deleted file mode 100644 index a0230bb3..00000000 --- a/apps/web/public/assets/index.es-BlHtwxd-.js +++ /dev/null @@ -1,2 +0,0 @@ -import{o as v,r as fe,p as ue,q as he}from"./index-Bl6Lkf65.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="63a6e0f5-c3c8-469e-beb0-06e33708629a",t._sentryDebugIdIdentifier="sentry-dbid-63a6e0f5-c3c8-469e-beb0-06e33708629a")}catch{}})();const le=t=>JSON.stringify(t,(r,s)=>typeof s=="bigint"?s.toString()+"n":s),de=t=>{const r=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,s=t.replace(r,'$1"$2n"$3');return JSON.parse(s,(f,u)=>typeof u=="string"&&u.match(/^\d+n$/)?BigInt(u.substring(0,u.length-1)):u)};function pe(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return de(t)}catch{return t}}function C(t){return typeof t=="string"?t:le(t)||""}const ye="PARSE_ERROR",be="INVALID_REQUEST",ge="METHOD_NOT_FOUND",me="INVALID_PARAMS",G="INTERNAL_ERROR",D="SERVER_ERROR",ve=[-32700,-32600,-32601,-32602,-32603],R={[ye]:{code:-32700,message:"Parse error"},[be]:{code:-32600,message:"Invalid Request"},[ge]:{code:-32601,message:"Method not found"},[me]:{code:-32602,message:"Invalid params"},[G]:{code:-32603,message:"Internal error"},[D]:{code:-32e3,message:"Server error"}},z=D;function Ee(t){return ve.includes(t)}function U(t){return Object.keys(R).includes(t)?R[t]:R[z]}function we(t){const r=Object.values(R).find(s=>s.code===t);return r||R[z]}function Re(t,r,s){return t.message.includes("getaddrinfo ENOTFOUND")||t.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${s} RPC url at ${r}`):t}var _e={},b={},M;function Oe(){if(M)return b;M=1,Object.defineProperty(b,"__esModule",{value:!0}),b.isBrowserCryptoAvailable=b.getSubtleCrypto=b.getBrowerCrypto=void 0;function t(){return(v===null||v===void 0?void 0:v.crypto)||(v===null||v===void 0?void 0:v.msCrypto)||{}}b.getBrowerCrypto=t;function r(){const f=t();return f.subtle||f.webkitSubtle}b.getSubtleCrypto=r;function s(){return!!t()&&!!r()}return b.isBrowserCryptoAvailable=s,b}var g={},N;function Ae(){if(N)return g;N=1,Object.defineProperty(g,"__esModule",{value:!0}),g.isBrowser=g.isNode=g.isReactNative=void 0;function t(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}g.isReactNative=t;function r(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}g.isNode=r;function s(){return!t()&&!r()}return g.isBrowser=s,g}(function(t){Object.defineProperty(t,"__esModule",{value:!0});const r=fe;r.__exportStar(Oe(),t),r.__exportStar(Ae(),t)})(_e);function X(t=3){const r=Date.now()*Math.pow(10,t),s=Math.floor(Math.random()*Math.pow(10,t));return r+s}function $e(t=6){return BigInt(X(t))}function Ve(t,r,s){return{id:s||X(),jsonrpc:"2.0",method:t,params:r}}function ke(t,r){return{id:t,jsonrpc:"2.0",result:r}}function Pe(t,r,s){return{id:t,jsonrpc:"2.0",error:Te(r,s)}}function Te(t,r){return typeof t>"u"?U(G):(typeof t=="string"&&(t=Object.assign(Object.assign({},U(D)),{message:t})),typeof r<"u"&&(t.data=r),Ee(t.code)&&(t=we(t.code)),t)}class Q{}let Ge=class extends Q{constructor(r){super()}};class Be extends Q{constructor(){super()}}class Xe extends Be{constructor(r){super()}}const De="^https?:",Se="^wss?:";function xe(t){const r=t.match(new RegExp(/^\w+:/,"gi"));if(!(!r||!r.length))return r[0]}function W(t,r){const s=xe(t);return typeof s>"u"?!1:new RegExp(r).test(s)}function L(t){return W(t,De)}function Qe(t){return W(t,Se)}function We(t){return new RegExp("wss?://localhost(:d{2,5})?").test(t)}function K(t){return typeof t=="object"&&"id"in t&&"jsonrpc"in t&&t.jsonrpc==="2.0"}function Ke(t){return K(t)&&"method"in t}function Ye(t){return K(t)&&(je(t)||Ie(t))}function je(t){return"result"in t}function Ie(t){return"error"in t}var B={exports:{}};(function(t,r){var s=typeof self<"u"?self:v,f=function(){function a(){this.fetch=!1,this.DOMException=s.DOMException}return a.prototype=s,new a}();(function(a){(function(d){var p={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function Y(e){return e&&DataView.prototype.isPrototypeOf(e)}if(p.arrayBuffer)var Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ee=ArrayBuffer.isView||function(e){return e&&Z.indexOf(Object.prototype.toString.call(e))>-1};function E(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function S(e){return typeof e!="string"&&(e=String(e)),e}function O(e){var n={next:function(){var o=e.shift();return{done:o===void 0,value:o}}};return p.iterable&&(n[Symbol.iterator]=function(){return n}),n}function c(e){this.map={},e instanceof c?e.forEach(function(n,o){this.append(o,n)},this):Array.isArray(e)?e.forEach(function(n){this.append(n[0],n[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(n){this.append(n,e[n])},this)}c.prototype.append=function(e,n){e=E(e),n=S(n);var o=this.map[e];this.map[e]=o?o+", "+n:n},c.prototype.delete=function(e){delete this.map[E(e)]},c.prototype.get=function(e){return e=E(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(E(e))},c.prototype.set=function(e,n){this.map[E(e)]=S(n)},c.prototype.forEach=function(e,n){for(var o in this.map)this.map.hasOwnProperty(o)&&e.call(n,this.map[o],o,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(n,o){e.push(o)}),O(e)},c.prototype.values=function(){var e=[];return this.forEach(function(n){e.push(n)}),O(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(n,o){e.push([o,n])}),O(e)},p.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);function A(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function x(e){return new Promise(function(n,o){e.onload=function(){n(e.result)},e.onerror=function(){o(e.error)}})}function te(e){var n=new FileReader,o=x(n);return n.readAsArrayBuffer(e),o}function re(e){var n=new FileReader,o=x(n);return n.readAsText(e),o}function ne(e){for(var n=new Uint8Array(e),o=new Array(n.length),l=0;l-1?n:e}function m(e,n){n=n||{};var o=n.body;if(e instanceof m){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!o&&e._bodyInit!=null&&(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",(n.headers||!this.headers)&&(this.headers=new c(n.headers)),this.method=oe(n.method||this.method||"GET"),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})};function ie(e){var n=new FormData;return e.trim().split("&").forEach(function(o){if(o){var l=o.split("="),h=l.shift().replace(/\+/g," "),i=l.join("=").replace(/\+/g," ");n.append(decodeURIComponent(h),decodeURIComponent(i))}}),n}function ae(e){var n=new c,o=e.replace(/\r?\n[\t ]+/g," ");return o.split(/\r?\n/).forEach(function(l){var h=l.split(":"),i=h.shift().trim();if(i){var _=h.join(":").trim();n.append(i,_)}}),n}I.call(m.prototype);function y(e,n){n||(n={}),this.type="default",this.status=n.status===void 0?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in n?n.statusText:"OK",this.headers=new c(n.headers),this.url=n.url||"",this._initBody(e)}I.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var ce=[301,302,303,307,308];y.redirect=function(e,n){if(ce.indexOf(n)===-1)throw new RangeError("Invalid status code");return new y(null,{status:n,headers:{location:e}})},d.DOMException=a.DOMException;try{new d.DOMException}catch{d.DOMException=function(n,o){this.message=n,this.name=o;var l=Error(n);this.stack=l.stack},d.DOMException.prototype=Object.create(Error.prototype),d.DOMException.prototype.constructor=d.DOMException}function P(e,n){return new Promise(function(o,l){var h=new m(e,n);if(h.signal&&h.signal.aborted)return l(new d.DOMException("Aborted","AbortError"));var i=new XMLHttpRequest;function _(){i.abort()}i.onload=function(){var w={status:i.status,statusText:i.statusText,headers:ae(i.getAllResponseHeaders()||"")};w.url="responseURL"in i?i.responseURL:w.headers.get("X-Request-URL");var T="response"in i?i.response:i.responseText;o(new y(T,w))},i.onerror=function(){l(new TypeError("Network request failed"))},i.ontimeout=function(){l(new TypeError("Network request failed"))},i.onabort=function(){l(new d.DOMException("Aborted","AbortError"))},i.open(h.method,h.url,!0),h.credentials==="include"?i.withCredentials=!0:h.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&p.blob&&(i.responseType="blob"),h.headers.forEach(function(w,T){i.setRequestHeader(T,w)}),h.signal&&(h.signal.addEventListener("abort",_),i.onreadystatechange=function(){i.readyState===4&&h.signal.removeEventListener("abort",_)}),i.send(typeof h._bodyInit>"u"?null:h._bodyInit)})}return P.polyfill=!0,a.fetch||(a.fetch=P,a.Headers=c,a.Request=m,a.Response=y),d.Headers=c,d.Request=m,d.Response=y,d.fetch=P,Object.defineProperty(d,"__esModule",{value:!0}),d})({})})(f),f.fetch.ponyfill=!0,delete f.fetch.polyfill;var u=f;r=u.fetch,r.default=u.fetch,r.fetch=u.fetch,r.Headers=u.Headers,r.Request=u.Request,r.Response=u.Response,t.exports=r})(B,B.exports);var Ce=B.exports;const F=ue(Ce);var Ue=Object.defineProperty,Me=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,H=(t,r,s)=>r in t?Ue(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s,J=(t,r)=>{for(var s in r||(r={}))Le.call(r,s)&&H(t,s,r[s]);if(q)for(var s of q(r))Fe.call(r,s)&&H(t,s,r[s]);return t},$=(t,r)=>Me(t,Ne(r));const qe={Accept:"application/json","Content-Type":"application/json"},He="POST",V={headers:qe,method:He},k=10;class Ze{constructor(r,s=!1){if(this.url=r,this.disableProviderPing=s,this.events=new he.EventEmitter,this.isAvailable=!1,this.registering=!1,!L(r))throw new Error(`Provided URL is not compatible with HTTP connection: ${r}`);this.url=r,this.disableProviderPing=s}get connected(){return this.isAvailable}get connecting(){return this.registering}on(r,s){this.events.on(r,s)}once(r,s){this.events.once(r,s)}off(r,s){this.events.off(r,s)}removeListener(r,s){this.events.removeListener(r,s)}async open(r=this.url){await this.register(r)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(r){this.isAvailable||await this.register();try{const s=C(r),f=await(await F(this.url,$(J({},V),{body:s}))).json();this.onPayload({data:f})}catch(s){this.onError(r.id,s)}}async register(r=this.url){if(!L(r))throw new Error(`Provided URL is not compatible with HTTP connection: ${r}`);if(this.registering){const s=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=s||this.events.listenerCount("open")>=s)&&this.events.setMaxListeners(s+1),new Promise((f,u)=>{this.events.once("register_error",a=>{this.resetMaxListeners(),u(a)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return u(new Error("HTTP connection is missing or invalid"));f()})})}this.url=r,this.registering=!0;try{if(!this.disableProviderPing){const s=C({id:1,jsonrpc:"2.0",method:"test",params:[]});await F(r,$(J({},V),{body:s}))}this.onOpen()}catch(s){const f=this.parseError(s);throw this.events.emit("register_error",f),this.onClose(),f}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(r){if(typeof r.data>"u")return;const s=typeof r.data=="string"?pe(r.data):r.data;this.events.emit("payload",s)}onError(r,s){const f=this.parseError(s),u=f.message||f.toString(),a=Pe(r,u);this.events.emit("payload",a)}parseError(r,s=this.url){return Re(r,s,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>k&&this.events.setMaxListeners(k)}}export{pe as a,Ye as b,Qe as c,_e as d,We as e,Ve as f,$e as g,Pe as h,Ie as i,Ke as j,ke as k,je as l,X as m,Ze as n,Ge as o,Re as p,Xe as r,C as s}; -//# sourceMappingURL=index.es-BlHtwxd-.js.map diff --git a/apps/web/public/assets/index.es-C4tnSl6V.js b/apps/web/public/assets/index.es-C4tnSl6V.js deleted file mode 100644 index 87532570..00000000 --- a/apps/web/public/assets/index.es-C4tnSl6V.js +++ /dev/null @@ -1,29 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BltpiQGx.js","./index-Cl-fQh5M.js","./index-C5o-2F8D.css"])))=>i.map(i=>d[i]); -import{t as jl,r as _a,u as X,q as qr,p as Rc,v as i0,w as Ml,x as Ul,y as Oc,z as ba,A as s0,o as na,C as _i,V as n0,M as a0,N as B,D as o0,E as vc,F as c0,K as u0,G as h0,J as zh,L as l0,O as f0,P as p0,Q as jh,$ as d0,R as g0,S as y0,T as Gs,U as Mh,X as v0,W as m0,Y as Ac,Z as Hl,a0 as Dr,a1 as w0,a2 as Uh,a3 as ls,a4 as St,a5 as kt,a6 as wi,a7 as ar,a8 as _0,a9 as fs,aa as kl,ab as b0,ac as I0,ad as E0,ae as Kl,af as x0,ag as Vl,ah as Fl,ai as ds,aj as mc,ak as pa,al as ys,am as P0,an as da,ao as S0,ap as R0,aq as O0,ar as A0,as as aa,at as C0,au as T0,av as tc,aw as Hh,ax as $0,ay as N0,az as D0,aA as kh,aB as q0,aC as L0,aD as z0,aE as j0,aF as M0,aG as U0,aH as H0,aI as Vs,aJ as Bl,aK as rc,aL as k0,aM as K0,_ as V0}from"./index-Cl-fQh5M.js";import{s as Qs,a as Ia,r as F0,f as gs,g as Gl,i as Kr,b as Ea,c as Kh,d as B0,e as G0,h as Cc,p as W0,j as Tc,k as xa,l as mi,m as J0,n as Ei}from"./index.es-83zPAjH-.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="79c0ed29-cd11-4eef-949e-d4b233d7601a",o._sentryDebugIdIdentifier="sentry-dbid-79c0ed29-cd11-4eef-949e-d4b233d7601a")}catch{}})();const Q0=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Y0=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Z0=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function X0(o,r){if(o==="__proto__"||o==="constructor"&&r&&typeof r=="object"&&"prototype"in r){ew(o);return}return r}function ew(o){console.warn(`[destr] Dropping "${o}" key to prevent prototype pollution.`)}function oa(o,r={}){if(typeof o!="string")return o;const i=o.trim();if(o[0]==='"'&&o.endsWith('"')&&!o.includes("\\"))return i.slice(1,-1);if(i.length<=9){const n=i.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!Z0.test(o)){if(r.strict)throw new SyntaxError("[destr] Invalid JSON");return o}try{if(Q0.test(o)||Y0.test(o)){if(r.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(o,X0)}return JSON.parse(o)}catch(n){if(r.strict)throw n;return o}}function tw(o){return!o||typeof o.then!="function"?Promise.resolve(o):o}function qt(o,...r){try{return tw(o(...r))}catch(i){return Promise.reject(i)}}function rw(o){const r=typeof o;return o===null||r!=="object"&&r!=="function"}function iw(o){const r=Object.getPrototypeOf(o);return!r||r.isPrototypeOf(Object)}function ga(o){if(rw(o))return String(o);if(iw(o)||Array.isArray(o))return JSON.stringify(o);if(typeof o.toJSON=="function")return ga(o.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function Wl(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const wc="base64:";function sw(o){if(typeof o=="string")return o;Wl();const r=Buffer.from(o).toString("base64");return wc+r}function nw(o){return typeof o!="string"||!o.startsWith(wc)?o:(Wl(),Buffer.from(o.slice(wc.length),"base64"))}function nr(o){return o?o.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function aw(...o){return nr(o.join(":"))}function ca(o){return o=nr(o),o?o+":":""}const ow="memory",cw=()=>{const o=new Map;return{name:ow,options:{},hasItem(r){return o.has(r)},getItem(r){return o.get(r)??null},getItemRaw(r){return o.get(r)??null},setItem(r,i){o.set(r,i)},setItemRaw(r,i){o.set(r,i)},removeItem(r){o.delete(r)},getKeys(){return Array.from(o.keys())},clear(){o.clear()},dispose(){o.clear()}}};function uw(o={}){const r={mounts:{"":o.driver||cw()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},i=g=>{for(const b of r.mountpoints)if(g.startsWith(b))return{base:b,relativeKey:g.slice(b.length),driver:r.mounts[b]};return{base:"",relativeKey:g,driver:r.mounts[""]}},n=(g,b)=>r.mountpoints.filter(S=>S.startsWith(g)||b&&g.startsWith(S)).map(S=>({relativeBase:g.length>S.length?g.slice(S.length):void 0,mountpoint:S,driver:r.mounts[S]})),a=(g,b)=>{if(r.watching){b=nr(b);for(const S of r.watchListeners)S(g,b)}},h=async()=>{if(!r.watching){r.watching=!0;for(const g in r.mounts)r.unwatch[g]=await Vh(r.mounts[g],a,g)}},p=async()=>{if(r.watching){for(const g in r.unwatch)await r.unwatch[g]();r.unwatch={},r.watching=!1}},v=(g,b,S)=>{const $=new Map,q=A=>{let Z=$.get(A.base);return Z||(Z={driver:A.driver,base:A.base,items:[]},$.set(A.base,Z)),Z};for(const A of g){const Z=typeof A=="string",se=nr(Z?A:A.key),ne=Z?void 0:A.value,ce=Z||!A.options?b:{...b,...A.options},ae=i(se);q(ae).items.push({key:se,value:ne,relativeKey:ae.relativeKey,options:ce})}return Promise.all([...$.values()].map(A=>S(A))).then(A=>A.flat())},m={hasItem(g,b={}){g=nr(g);const{relativeKey:S,driver:$}=i(g);return qt($.hasItem,S,b)},getItem(g,b={}){g=nr(g);const{relativeKey:S,driver:$}=i(g);return qt($.getItem,S,b).then(q=>oa(q))},getItems(g,b){return v(g,b,S=>S.driver.getItems?qt(S.driver.getItems,S.items.map($=>({key:$.relativeKey,options:$.options})),b).then($=>$.map(q=>({key:aw(S.base,q.key),value:oa(q.value)}))):Promise.all(S.items.map($=>qt(S.driver.getItem,$.relativeKey,$.options).then(q=>({key:$.key,value:oa(q)})))))},getItemRaw(g,b={}){g=nr(g);const{relativeKey:S,driver:$}=i(g);return $.getItemRaw?qt($.getItemRaw,S,b):qt($.getItem,S,b).then(q=>nw(q))},async setItem(g,b,S={}){if(b===void 0)return m.removeItem(g);g=nr(g);const{relativeKey:$,driver:q}=i(g);q.setItem&&(await qt(q.setItem,$,ga(b),S),q.watch||a("update",g))},async setItems(g,b){await v(g,b,async S=>{if(S.driver.setItems)return qt(S.driver.setItems,S.items.map($=>({key:$.relativeKey,value:ga($.value),options:$.options})),b);S.driver.setItem&&await Promise.all(S.items.map($=>qt(S.driver.setItem,$.relativeKey,ga($.value),$.options)))})},async setItemRaw(g,b,S={}){if(b===void 0)return m.removeItem(g,S);g=nr(g);const{relativeKey:$,driver:q}=i(g);if(q.setItemRaw)await qt(q.setItemRaw,$,b,S);else if(q.setItem)await qt(q.setItem,$,sw(b),S);else return;q.watch||a("update",g)},async removeItem(g,b={}){typeof b=="boolean"&&(b={removeMeta:b}),g=nr(g);const{relativeKey:S,driver:$}=i(g);$.removeItem&&(await qt($.removeItem,S,b),(b.removeMeta||b.removeMata)&&await qt($.removeItem,S+"$",b),$.watch||a("remove",g))},async getMeta(g,b={}){typeof b=="boolean"&&(b={nativeOnly:b}),g=nr(g);const{relativeKey:S,driver:$}=i(g),q=Object.create(null);if($.getMeta&&Object.assign(q,await qt($.getMeta,S,b)),!b.nativeOnly){const A=await qt($.getItem,S+"$",b).then(Z=>oa(Z));A&&typeof A=="object"&&(typeof A.atime=="string"&&(A.atime=new Date(A.atime)),typeof A.mtime=="string"&&(A.mtime=new Date(A.mtime)),Object.assign(q,A))}return q},setMeta(g,b,S={}){return this.setItem(g+"$",b,S)},removeMeta(g,b={}){return this.removeItem(g+"$",b)},async getKeys(g,b={}){g=ca(g);const S=n(g,!0);let $=[];const q=[];for(const A of S){const se=(await qt(A.driver.getKeys,A.relativeBase,b)).map(ne=>A.mountpoint+nr(ne)).filter(ne=>!$.some(ce=>ne.startsWith(ce)));q.push(...se),$=[A.mountpoint,...$.filter(ne=>!ne.startsWith(A.mountpoint))]}return g?q.filter(A=>A.startsWith(g)&&!A.endsWith("$")):q.filter(A=>!A.endsWith("$"))},async clear(g,b={}){g=ca(g),await Promise.all(n(g,!1).map(async S=>{if(S.driver.clear)return qt(S.driver.clear,S.relativeBase,b);if(S.driver.removeItem){const $=await S.driver.getKeys(S.relativeBase||"",b);return Promise.all($.map(q=>S.driver.removeItem(q,b)))}}))},async dispose(){await Promise.all(Object.values(r.mounts).map(g=>Fh(g)))},async watch(g){return await h(),r.watchListeners.push(g),async()=>{r.watchListeners=r.watchListeners.filter(b=>b!==g),r.watchListeners.length===0&&await p()}},async unwatch(){r.watchListeners=[],await p()},mount(g,b){if(g=ca(g),g&&r.mounts[g])throw new Error(`already mounted at ${g}`);return g&&(r.mountpoints.push(g),r.mountpoints.sort((S,$)=>$.length-S.length)),r.mounts[g]=b,r.watching&&Promise.resolve(Vh(b,a,g)).then(S=>{r.unwatch[g]=S}).catch(console.error),m},async unmount(g,b=!0){g=ca(g),!(!g||!r.mounts[g])&&(r.watching&&g in r.unwatch&&(r.unwatch[g](),delete r.unwatch[g]),b&&await Fh(r.mounts[g]),r.mountpoints=r.mountpoints.filter(S=>S!==g),delete r.mounts[g])},getMount(g=""){g=nr(g)+":";const b=i(g);return{driver:b.driver,base:b.base}},getMounts(g="",b={}){return g=nr(g),n(g,b.parents).map($=>({driver:$.driver,base:$.mountpoint}))}};return m}function Vh(o,r,i){return o.watch?o.watch((n,a)=>r(n,i+a)):()=>{}}async function Fh(o){typeof o.dispose=="function"&&await qt(o.dispose)}function Ui(o){return new Promise((r,i)=>{o.oncomplete=o.onsuccess=()=>r(o.result),o.onabort=o.onerror=()=>i(o.error)})}function Jl(o,r){const i=indexedDB.open(o);i.onupgradeneeded=()=>i.result.createObjectStore(r);const n=Ui(i);return(a,h)=>n.then(p=>h(p.transaction(r,a).objectStore(r)))}let ic;function Ys(){return ic||(ic=Jl("keyval-store","keyval")),ic}function Bh(o,r=Ys()){return r("readonly",i=>Ui(i.get(o)))}function hw(o,r,i=Ys()){return i("readwrite",n=>(n.put(r,o),Ui(n.transaction)))}function lw(o,r=Ys()){return r("readwrite",i=>(i.delete(o),Ui(i.transaction)))}function fw(o=Ys()){return o("readwrite",r=>(r.clear(),Ui(r.transaction)))}function pw(o,r){return o.openCursor().onsuccess=function(){this.result&&(r(this.result),this.result.continue())},Ui(o.transaction)}function dw(o=Ys()){return o("readonly",r=>{if(r.getAllKeys)return Ui(r.getAllKeys());const i=[];return pw(r,n=>i.push(n.key)).then(()=>i)})}const gw="idb-keyval";var yw=(o={})=>{const r=o.base&&o.base.length>0?`${o.base}:`:"",i=a=>r+a;let n;return o.dbName&&o.storeName&&(n=Jl(o.dbName,o.storeName)),{name:gw,options:o,async hasItem(a){return!(typeof await Bh(i(a),n)>"u")},async getItem(a){return await Bh(i(a),n)??null},setItem(a,h){return hw(i(a),h,n)},removeItem(a){return lw(i(a),n)},getKeys(){return dw(n)},clear(){return fw(n)}}};const vw="WALLET_CONNECT_V2_INDEXED_DB",mw="keyvaluestorage";let ww=class{constructor(){this.indexedDb=uw({driver:yw({dbName:vw,storeName:mw})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(r=>[r.key,r.value])}async getItem(r){const i=await this.indexedDb.getItem(r);if(i!==null)return i}async setItem(r,i){await this.indexedDb.setItem(r,Qs(i))}async removeItem(r){await this.indexedDb.removeItem(r)}};var sc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ya={exports:{}};(function(){let o;function r(){}o=r,o.prototype.getItem=function(i){return this.hasOwnProperty(i)?String(this[i]):null},o.prototype.setItem=function(i,n){this[i]=String(n)},o.prototype.removeItem=function(i){delete this[i]},o.prototype.clear=function(){const i=this;Object.keys(i).forEach(function(n){i[n]=void 0,delete i[n]})},o.prototype.key=function(i){return i=i||0,Object.keys(this)[i]},o.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof sc<"u"&&sc.localStorage?ya.exports=sc.localStorage:typeof window<"u"&&window.localStorage?ya.exports=window.localStorage:ya.exports=new r})();function _w(o){var r;return[o[0],Ia((r=o[1])!=null?r:"")]}class bw{constructor(){this.localStorage=ya.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(_w)}async getItem(r){const i=this.localStorage.getItem(r);if(i!==null)return Ia(i)}async setItem(r,i){this.localStorage.setItem(r,Qs(i))}async removeItem(r){this.localStorage.removeItem(r)}}const Iw="wc_storage_version",Gh=1,Ew=async(o,r,i)=>{const n=Iw,a=await r.getItem(n);if(a&&a>=Gh){i(r);return}const h=await o.getKeys();if(!h.length){i(r);return}const p=[];for(;h.length;){const v=h.shift();if(!v)continue;const m=v.toLowerCase();if(m.includes("wc@")||m.includes("walletconnect")||m.includes("wc_")||m.includes("wallet_connect")){const g=await o.getItem(v);await r.setItem(v,g),p.push(v)}}await r.setItem(n,Gh),i(r),xw(o,p)},xw=async(o,r)=>{r.length&&r.forEach(async i=>{await o.removeItem(i)})};let Pw=class{constructor(){this.initialized=!1,this.setInitialized=i=>{this.storage=i,this.initialized=!0};const r=new bw;this.storage=r;try{const i=new ww;Ew(r,i,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(r){return await this.initialize(),this.storage.getItem(r)}async setItem(r,i){return await this.initialize(),this.storage.setItem(r,i)}async removeItem(r){return await this.initialize(),this.storage.removeItem(r)}async initialize(){this.initialized||await new Promise(r=>{const i=setInterval(()=>{this.initialized&&(clearInterval(i),r())},20)})}};var vs={},zs={},nc={},js={};class Hi{}const Sw=Object.freeze(Object.defineProperty({__proto__:null,IEvents:Hi},Symbol.toStringTag,{value:"Module"})),Rw=jl(Sw);var Wh;function Ow(){if(Wh)return js;Wh=1,Object.defineProperty(js,"__esModule",{value:!0}),js.IHeartBeat=void 0;const o=Rw;class r extends o.IEvents{constructor(n){super()}}return js.IHeartBeat=r,js}var Jh;function Ql(){return Jh||(Jh=1,function(o){Object.defineProperty(o,"__esModule",{value:!0}),_a.__exportStar(Ow(),o)}(nc)),nc}var ac={},Mi={},Qh;function Aw(){if(Qh)return Mi;Qh=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.HEARTBEAT_EVENTS=Mi.HEARTBEAT_INTERVAL=void 0;const o=X;return Mi.HEARTBEAT_INTERVAL=o.FIVE_SECONDS,Mi.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"},Mi}var Yh;function Yl(){return Yh||(Yh=1,function(o){Object.defineProperty(o,"__esModule",{value:!0}),_a.__exportStar(Aw(),o)}(ac)),ac}var Zh;function Cw(){if(Zh)return zs;Zh=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.HeartBeat=void 0;const o=_a,r=qr,i=X,n=Ql(),a=Yl();class h extends n.IHeartBeat{constructor(v){super(v),this.events=new r.EventEmitter,this.interval=a.HEARTBEAT_INTERVAL,this.interval=(v==null?void 0:v.interval)||a.HEARTBEAT_INTERVAL}static init(v){return o.__awaiter(this,void 0,void 0,function*(){const m=new h(v);return yield m.init(),m})}init(){return o.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(v,m){this.events.on(v,m)}once(v,m){this.events.once(v,m)}off(v,m){this.events.off(v,m)}removeListener(v,m){this.events.removeListener(v,m)}initialize(){return o.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),i.toMiliseconds(this.interval))})}pulse(){this.events.emit(a.HEARTBEAT_EVENTS.pulse)}}return zs.HeartBeat=h,zs}(function(o){Object.defineProperty(o,"__esModule",{value:!0});const r=_a;r.__exportStar(Cw(),o),r.__exportStar(Ql(),o),r.__exportStar(Yl(),o)})(vs);function Tw(o){try{return JSON.stringify(o)}catch{return'"[Circular]"'}}var $w=Nw;function Nw(o,r,i){var n=i&&i.stringify||Tw,a=1;if(typeof o=="object"&&o!==null){var h=r.length+a;if(h===1)return o;var p=new Array(h);p[0]=n(o);for(var v=1;v-1?S:0,o.charCodeAt(q+1)){case 100:case 102:if(b>=m||r[b]==null)break;S=m||r[b]==null)break;S=m||r[b]===void 0)break;S",S=q+2,q++;break}g+=n(r[b]),S=q+2,q++;break;case 115:if(b>=m)break;S-1&&(h=!1);const p=["error","fatal","warn","info","debug","trace"];typeof i=="function"&&(i.error=i.fatal=i.warn=i.info=i.debug=i.trace=i),o.enabled===!1&&(o.level="silent");const v=o.level||"info",m=Object.create(i);m.log||(m.log=Js),Object.defineProperty(m,"levelVal",{get:b}),Object.defineProperty(m,"level",{get:S,set:$});const g={transmit:r,serialize:a,asObject:o.browser.asObject,levels:p,timestamp:Hw(o)};m.levels=Vr.levels,m.level=v,m.setMaxListeners=m.getMaxListeners=m.emit=m.addListener=m.on=m.prependListener=m.once=m.prependOnceListener=m.removeListener=m.removeAllListeners=m.listeners=m.listenerCount=m.eventNames=m.write=m.flush=Js,m.serializers=n,m._serialize=a,m._stdErrSerialize=h,m.child=q,r&&(m._logEvent=_c());function b(){return this.level==="silent"?1/0:this.levels.values[this.level]}function S(){return this._level}function $(A){if(A!=="silent"&&!this.levels.values[A])throw Error("unknown level "+A);this._level=A,us(g,m,"error","log"),us(g,m,"fatal","error"),us(g,m,"warn","error"),us(g,m,"info","log"),us(g,m,"debug","log"),us(g,m,"trace","log")}function q(A,Z){if(!A)throw new Error("missing bindings for child Pino");Z=Z||{},a&&A.serializers&&(Z.serializers=A.serializers);const se=Z.serializers;if(a&&se){var ne=Object.assign({},n,se),ce=o.browser.serialize===!0?Object.keys(ne):a;delete A.serializers,Pa([A],ce,ne,this._stdErrSerialize)}function ae(te){this._childLevel=(te._childLevel|0)+1,this.error=hs(te,A,"error"),this.fatal=hs(te,A,"fatal"),this.warn=hs(te,A,"warn"),this.info=hs(te,A,"info"),this.debug=hs(te,A,"debug"),this.trace=hs(te,A,"trace"),ne&&(this.serializers=ne,this._serialize=ce),r&&(this._logEvent=_c([].concat(te._logEvent.bindings,A)))}return ae.prototype=this,new ae(this)}return m}Vr.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};Vr.stdSerializers=qw;Vr.stdTimeFunctions=Object.assign({},{nullTime:Zl,epochTime:Xl,unixTime:kw,isoTime:Kw});function us(o,r,i,n){const a=Object.getPrototypeOf(r);r[i]=r.levelVal>r.levels.values[i]?Js:a[i]?a[i]:Ws[i]||Ws[n]||Js,zw(o,r,i)}function zw(o,r,i){!o.transmit&&r[i]===Js||(r[i]=function(n){return function(){const h=o.timestamp(),p=new Array(arguments.length),v=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Ws?Ws:this;for(var m=0;m-1&&h in i&&(o[a][h]=i[h](o[a][h]))}function hs(o,r,i){return function(){const n=new Array(1+arguments.length);n[0]=r;for(var a=1;ar in o?Bw(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,Yw=(o,r)=>{for(var i in r||(r={}))Jw.call(r,i)&&tl(o,i,r[i]);if(el)for(var i of el(r))Qw.call(r,i)&&tl(o,i,r[i]);return o},Zw=(o,r)=>Gw(o,Ww(r));function Ra(o){return Zw(Yw({},o),{level:(o==null?void 0:o.level)||Fw.level})}function Xw(o,r=Zs){return o[r]||""}function e1(o,r,i=Zs){return o[i]=r,o}function or(o,r=Zs){let i="";return typeof o.bindings>"u"?i=Xw(o,r):i=o.bindings().context||"",i}function t1(o,r,i=Zs){const n=or(o,i);return n.trim()?`${n}/${r}`:r}function cr(o,r,i=Zs){const n=t1(o,r,i),a=o.child({context:n});return e1(a,n,i)}class r1 extends Hi{constructor(r){super(),this.opts=r,this.protocol="wc",this.version=2}}let i1=class extends Hi{constructor(r,i){super(),this.core=r,this.logger=i,this.records=new Map}},s1=class{constructor(r,i){this.logger=r,this.core=i}},n1=class extends Hi{constructor(r,i){super(),this.relayer=r,this.logger=i}},a1=class extends Hi{constructor(r){super()}},o1=class{constructor(r,i,n,a){this.core=r,this.logger=i,this.name=n}};class c1 extends Hi{constructor(r,i){super(),this.relayer=r,this.logger=i}}let u1=class extends Hi{constructor(r,i){super(),this.core=r,this.logger=i}},h1=class{constructor(r,i){this.projectId=r,this.logger=i}},l1=class{constructor(r,i){this.projectId=r,this.logger=i}},f1=class{constructor(r){this.opts=r,this.protocol="wc",this.version=2}},p1=class{constructor(r){this.client=r}};var $c={},ef={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var r=i0,i=Ml;o.DIGEST_LENGTH=64,o.BLOCK_SIZE=128;var n=function(){function v(){this.digestLength=o.DIGEST_LENGTH,this.blockSize=o.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return v.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},v.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},v.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},v.prototype.update=function(m,g){if(g===void 0&&(g=m.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var b=0;if(this._bytesHashed+=g,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=m[b++],g--;this._bufferLength===this.blockSize&&(h(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(g>=this.blockSize&&(b=h(this._tempHi,this._tempLo,this._stateHi,this._stateLo,m,b,g),g%=this.blockSize);g>0;)this._buffer[this._bufferLength++]=m[b++],g--;return this},v.prototype.finish=function(m){if(!this._finished){var g=this._bytesHashed,b=this._bufferLength,S=g/536870912|0,$=g<<3,q=g%128<112?128:256;this._buffer[b]=128;for(var A=b+1;A0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},v.prototype.restoreState=function(m){return this._stateHi.set(m.stateHi),this._stateLo.set(m.stateLo),this._bufferLength=m.bufferLength,m.buffer&&this._buffer.set(m.buffer),this._bytesHashed=m.bytesHashed,this._finished=!1,this},v.prototype.cleanSavedState=function(m){i.wipe(m.stateHi),i.wipe(m.stateLo),m.buffer&&i.wipe(m.buffer),m.bufferLength=0,m.bytesHashed=0},v}();o.SHA512=n;var a=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function h(v,m,g,b,S,$,q){for(var A=g[0],Z=g[1],se=g[2],ne=g[3],ce=g[4],ae=g[5],te=g[6],fe=g[7],pe=b[0],Q=b[1],xe=b[2],Tt=b[3],yt=b[4],Yt=b[5],Vt=b[6],ur=b[7],M,U,Ge,qe,G,K,H,V;q>=128;){for(var Rt=0;Rt<16;Rt++){var rt=8*Rt+$;v[Rt]=r.readUint32BE(S,rt),m[Rt]=r.readUint32BE(S,rt+4)}for(var Rt=0;Rt<80;Rt++){var xi=A,we=Z,Sr=se,T=ne,C=ce,R=ae,u=te,I=fe,J=pe,oe=Q,ge=xe,Pe=Tt,Re=yt,_e=Yt,vt=Vt,lt=ur;if(M=fe,U=ur,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=(ce>>>14|yt<<18)^(ce>>>18|yt<<14)^(yt>>>9|ce<<23),U=(yt>>>14|ce<<18)^(yt>>>18|ce<<14)^(ce>>>9|yt<<23),G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,M=ce&ae^~ce&te,U=yt&Yt^~yt&Vt,G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,M=a[Rt*2],U=a[Rt*2+1],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,M=v[Rt%16],U=m[Rt%16],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,Ge=H&65535|V<<16,qe=G&65535|K<<16,M=Ge,U=qe,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=(A>>>28|pe<<4)^(pe>>>2|A<<30)^(pe>>>7|A<<25),U=(pe>>>28|A<<4)^(A>>>2|pe<<30)^(A>>>7|pe<<25),G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,M=A&Z^A&se^Z&se,U=pe&Q^pe&xe^Q&xe,G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,I=H&65535|V<<16,lt=G&65535|K<<16,M=T,U=Pe,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=Ge,U=qe,G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,T=H&65535|V<<16,Pe=G&65535|K<<16,Z=xi,se=we,ne=Sr,ce=T,ae=C,te=R,fe=u,A=I,Q=J,xe=oe,Tt=ge,yt=Pe,Yt=Re,Vt=_e,ur=vt,pe=lt,Rt%16===15)for(var rt=0;rt<16;rt++)M=v[rt],U=m[rt],G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=v[(rt+9)%16],U=m[(rt+9)%16],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,Ge=v[(rt+1)%16],qe=m[(rt+1)%16],M=(Ge>>>1|qe<<31)^(Ge>>>8|qe<<24)^Ge>>>7,U=(qe>>>1|Ge<<31)^(qe>>>8|Ge<<24)^(qe>>>7|Ge<<25),G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,Ge=v[(rt+14)%16],qe=m[(rt+14)%16],M=(Ge>>>19|qe<<13)^(qe>>>29|Ge<<3)^Ge>>>6,U=(qe>>>19|Ge<<13)^(Ge>>>29|qe<<3)^(qe>>>6|Ge<<26),G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,v[rt]=H&65535|V<<16,m[rt]=G&65535|K<<16}M=A,U=pe,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[0],U=b[0],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[0]=A=H&65535|V<<16,b[0]=pe=G&65535|K<<16,M=Z,U=Q,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[1],U=b[1],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[1]=Z=H&65535|V<<16,b[1]=Q=G&65535|K<<16,M=se,U=xe,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[2],U=b[2],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[2]=se=H&65535|V<<16,b[2]=xe=G&65535|K<<16,M=ne,U=Tt,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[3],U=b[3],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[3]=ne=H&65535|V<<16,b[3]=Tt=G&65535|K<<16,M=ce,U=yt,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[4],U=b[4],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[4]=ce=H&65535|V<<16,b[4]=yt=G&65535|K<<16,M=ae,U=Yt,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[5],U=b[5],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[5]=ae=H&65535|V<<16,b[5]=Yt=G&65535|K<<16,M=te,U=Vt,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[6],U=b[6],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[6]=te=H&65535|V<<16,b[6]=Vt=G&65535|K<<16,M=fe,U=ur,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[7],U=b[7],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[7]=fe=H&65535|V<<16,b[7]=ur=G&65535|K<<16,$+=128,q-=128}return $}function p(v){var m=new n;m.update(v);var g=m.digest();return m.clean(),g}o.hash=p})(ef);(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.convertSecretKeyToX25519=o.convertPublicKeyToX25519=o.verify=o.sign=o.extractPublicKeyFromSecretKey=o.generateKeyPair=o.generateKeyPairFromSeed=o.SEED_LENGTH=o.SECRET_KEY_LENGTH=o.PUBLIC_KEY_LENGTH=o.SIGNATURE_LENGTH=void 0;const r=Ul,i=ef,n=Ml;o.SIGNATURE_LENGTH=64,o.PUBLIC_KEY_LENGTH=32,o.SECRET_KEY_LENGTH=64,o.SEED_LENGTH=32;function a(T){const C=new Float64Array(16);if(T)for(let R=0;R>16&1),R[oe-1]&=65535;R[15]=u[15]-32767-(R[14]>>16&1);const J=R[15]>>16&1;R[14]&=65535,Z(u,R,1-J)}for(let I=0;I<16;I++)T[2*I]=u[I]&255,T[2*I+1]=u[I]>>8}function ne(T,C){let R=0;for(let u=0;u<32;u++)R|=T[u]^C[u];return(1&R-1>>>8)-1}function ce(T,C){const R=new Uint8Array(32),u=new Uint8Array(32);return se(R,T),se(u,C),ne(R,u)}function ae(T){const C=new Uint8Array(32);return se(C,T),C[0]&1}function te(T,C){for(let R=0;R<16;R++)T[R]=C[2*R]+(C[2*R+1]<<8);T[15]&=32767}function fe(T,C,R){for(let u=0;u<16;u++)T[u]=C[u]+R[u]}function pe(T,C,R){for(let u=0;u<16;u++)T[u]=C[u]-R[u]}function Q(T,C,R){let u,I,J=0,oe=0,ge=0,Pe=0,Re=0,_e=0,vt=0,lt=0,Ze=0,Ae=0,ke=0,Ke=0,Xe=0,Ne=0,Ve=0,Se=0,Le=0,it=0,Te=0,mt=0,Ot=0,Lt=0,zt=0,$t=0,Ft=0,Zt=0,Lr=0,Bt=0,Fr=0,oi=0,Pi=0,st=R[0],We=R[1],nt=R[2],at=R[3],et=R[4],Je=R[5],wt=R[6],_t=R[7],ot=R[8],bt=R[9],ct=R[10],ft=R[11],ut=R[12],He=R[13],It=R[14],Et=R[15];u=C[0],J+=u*st,oe+=u*We,ge+=u*nt,Pe+=u*at,Re+=u*et,_e+=u*Je,vt+=u*wt,lt+=u*_t,Ze+=u*ot,Ae+=u*bt,ke+=u*ct,Ke+=u*ft,Xe+=u*ut,Ne+=u*He,Ve+=u*It,Se+=u*Et,u=C[1],oe+=u*st,ge+=u*We,Pe+=u*nt,Re+=u*at,_e+=u*et,vt+=u*Je,lt+=u*wt,Ze+=u*_t,Ae+=u*ot,ke+=u*bt,Ke+=u*ct,Xe+=u*ft,Ne+=u*ut,Ve+=u*He,Se+=u*It,Le+=u*Et,u=C[2],ge+=u*st,Pe+=u*We,Re+=u*nt,_e+=u*at,vt+=u*et,lt+=u*Je,Ze+=u*wt,Ae+=u*_t,ke+=u*ot,Ke+=u*bt,Xe+=u*ct,Ne+=u*ft,Ve+=u*ut,Se+=u*He,Le+=u*It,it+=u*Et,u=C[3],Pe+=u*st,Re+=u*We,_e+=u*nt,vt+=u*at,lt+=u*et,Ze+=u*Je,Ae+=u*wt,ke+=u*_t,Ke+=u*ot,Xe+=u*bt,Ne+=u*ct,Ve+=u*ft,Se+=u*ut,Le+=u*He,it+=u*It,Te+=u*Et,u=C[4],Re+=u*st,_e+=u*We,vt+=u*nt,lt+=u*at,Ze+=u*et,Ae+=u*Je,ke+=u*wt,Ke+=u*_t,Xe+=u*ot,Ne+=u*bt,Ve+=u*ct,Se+=u*ft,Le+=u*ut,it+=u*He,Te+=u*It,mt+=u*Et,u=C[5],_e+=u*st,vt+=u*We,lt+=u*nt,Ze+=u*at,Ae+=u*et,ke+=u*Je,Ke+=u*wt,Xe+=u*_t,Ne+=u*ot,Ve+=u*bt,Se+=u*ct,Le+=u*ft,it+=u*ut,Te+=u*He,mt+=u*It,Ot+=u*Et,u=C[6],vt+=u*st,lt+=u*We,Ze+=u*nt,Ae+=u*at,ke+=u*et,Ke+=u*Je,Xe+=u*wt,Ne+=u*_t,Ve+=u*ot,Se+=u*bt,Le+=u*ct,it+=u*ft,Te+=u*ut,mt+=u*He,Ot+=u*It,Lt+=u*Et,u=C[7],lt+=u*st,Ze+=u*We,Ae+=u*nt,ke+=u*at,Ke+=u*et,Xe+=u*Je,Ne+=u*wt,Ve+=u*_t,Se+=u*ot,Le+=u*bt,it+=u*ct,Te+=u*ft,mt+=u*ut,Ot+=u*He,Lt+=u*It,zt+=u*Et,u=C[8],Ze+=u*st,Ae+=u*We,ke+=u*nt,Ke+=u*at,Xe+=u*et,Ne+=u*Je,Ve+=u*wt,Se+=u*_t,Le+=u*ot,it+=u*bt,Te+=u*ct,mt+=u*ft,Ot+=u*ut,Lt+=u*He,zt+=u*It,$t+=u*Et,u=C[9],Ae+=u*st,ke+=u*We,Ke+=u*nt,Xe+=u*at,Ne+=u*et,Ve+=u*Je,Se+=u*wt,Le+=u*_t,it+=u*ot,Te+=u*bt,mt+=u*ct,Ot+=u*ft,Lt+=u*ut,zt+=u*He,$t+=u*It,Ft+=u*Et,u=C[10],ke+=u*st,Ke+=u*We,Xe+=u*nt,Ne+=u*at,Ve+=u*et,Se+=u*Je,Le+=u*wt,it+=u*_t,Te+=u*ot,mt+=u*bt,Ot+=u*ct,Lt+=u*ft,zt+=u*ut,$t+=u*He,Ft+=u*It,Zt+=u*Et,u=C[11],Ke+=u*st,Xe+=u*We,Ne+=u*nt,Ve+=u*at,Se+=u*et,Le+=u*Je,it+=u*wt,Te+=u*_t,mt+=u*ot,Ot+=u*bt,Lt+=u*ct,zt+=u*ft,$t+=u*ut,Ft+=u*He,Zt+=u*It,Lr+=u*Et,u=C[12],Xe+=u*st,Ne+=u*We,Ve+=u*nt,Se+=u*at,Le+=u*et,it+=u*Je,Te+=u*wt,mt+=u*_t,Ot+=u*ot,Lt+=u*bt,zt+=u*ct,$t+=u*ft,Ft+=u*ut,Zt+=u*He,Lr+=u*It,Bt+=u*Et,u=C[13],Ne+=u*st,Ve+=u*We,Se+=u*nt,Le+=u*at,it+=u*et,Te+=u*Je,mt+=u*wt,Ot+=u*_t,Lt+=u*ot,zt+=u*bt,$t+=u*ct,Ft+=u*ft,Zt+=u*ut,Lr+=u*He,Bt+=u*It,Fr+=u*Et,u=C[14],Ve+=u*st,Se+=u*We,Le+=u*nt,it+=u*at,Te+=u*et,mt+=u*Je,Ot+=u*wt,Lt+=u*_t,zt+=u*ot,$t+=u*bt,Ft+=u*ct,Zt+=u*ft,Lr+=u*ut,Bt+=u*He,Fr+=u*It,oi+=u*Et,u=C[15],Se+=u*st,Le+=u*We,it+=u*nt,Te+=u*at,mt+=u*et,Ot+=u*Je,Lt+=u*wt,zt+=u*_t,$t+=u*ot,Ft+=u*bt,Zt+=u*ct,Lr+=u*ft,Bt+=u*ut,Fr+=u*He,oi+=u*It,Pi+=u*Et,J+=38*Le,oe+=38*it,ge+=38*Te,Pe+=38*mt,Re+=38*Ot,_e+=38*Lt,vt+=38*zt,lt+=38*$t,Ze+=38*Ft,Ae+=38*Zt,ke+=38*Lr,Ke+=38*Bt,Xe+=38*Fr,Ne+=38*oi,Ve+=38*Pi,I=1,u=J+I+65535,I=Math.floor(u/65536),J=u-I*65536,u=oe+I+65535,I=Math.floor(u/65536),oe=u-I*65536,u=ge+I+65535,I=Math.floor(u/65536),ge=u-I*65536,u=Pe+I+65535,I=Math.floor(u/65536),Pe=u-I*65536,u=Re+I+65535,I=Math.floor(u/65536),Re=u-I*65536,u=_e+I+65535,I=Math.floor(u/65536),_e=u-I*65536,u=vt+I+65535,I=Math.floor(u/65536),vt=u-I*65536,u=lt+I+65535,I=Math.floor(u/65536),lt=u-I*65536,u=Ze+I+65535,I=Math.floor(u/65536),Ze=u-I*65536,u=Ae+I+65535,I=Math.floor(u/65536),Ae=u-I*65536,u=ke+I+65535,I=Math.floor(u/65536),ke=u-I*65536,u=Ke+I+65535,I=Math.floor(u/65536),Ke=u-I*65536,u=Xe+I+65535,I=Math.floor(u/65536),Xe=u-I*65536,u=Ne+I+65535,I=Math.floor(u/65536),Ne=u-I*65536,u=Ve+I+65535,I=Math.floor(u/65536),Ve=u-I*65536,u=Se+I+65535,I=Math.floor(u/65536),Se=u-I*65536,J+=I-1+37*(I-1),I=1,u=J+I+65535,I=Math.floor(u/65536),J=u-I*65536,u=oe+I+65535,I=Math.floor(u/65536),oe=u-I*65536,u=ge+I+65535,I=Math.floor(u/65536),ge=u-I*65536,u=Pe+I+65535,I=Math.floor(u/65536),Pe=u-I*65536,u=Re+I+65535,I=Math.floor(u/65536),Re=u-I*65536,u=_e+I+65535,I=Math.floor(u/65536),_e=u-I*65536,u=vt+I+65535,I=Math.floor(u/65536),vt=u-I*65536,u=lt+I+65535,I=Math.floor(u/65536),lt=u-I*65536,u=Ze+I+65535,I=Math.floor(u/65536),Ze=u-I*65536,u=Ae+I+65535,I=Math.floor(u/65536),Ae=u-I*65536,u=ke+I+65535,I=Math.floor(u/65536),ke=u-I*65536,u=Ke+I+65535,I=Math.floor(u/65536),Ke=u-I*65536,u=Xe+I+65535,I=Math.floor(u/65536),Xe=u-I*65536,u=Ne+I+65535,I=Math.floor(u/65536),Ne=u-I*65536,u=Ve+I+65535,I=Math.floor(u/65536),Ve=u-I*65536,u=Se+I+65535,I=Math.floor(u/65536),Se=u-I*65536,J+=I-1+37*(I-1),T[0]=J,T[1]=oe,T[2]=ge,T[3]=Pe,T[4]=Re,T[5]=_e,T[6]=vt,T[7]=lt,T[8]=Ze,T[9]=Ae,T[10]=ke,T[11]=Ke,T[12]=Xe,T[13]=Ne,T[14]=Ve,T[15]=Se}function xe(T,C){Q(T,C,C)}function Tt(T,C){const R=a();let u;for(u=0;u<16;u++)R[u]=C[u];for(u=253;u>=0;u--)xe(R,R),u!==2&&u!==4&&Q(R,R,C);for(u=0;u<16;u++)T[u]=R[u]}function yt(T,C){const R=a();let u;for(u=0;u<16;u++)R[u]=C[u];for(u=250;u>=0;u--)xe(R,R),u!==1&&Q(R,R,C);for(u=0;u<16;u++)T[u]=R[u]}function Yt(T,C){const R=a(),u=a(),I=a(),J=a(),oe=a(),ge=a(),Pe=a(),Re=a(),_e=a();pe(R,T[1],T[0]),pe(_e,C[1],C[0]),Q(R,R,_e),fe(u,T[0],T[1]),fe(_e,C[0],C[1]),Q(u,u,_e),Q(I,T[3],C[3]),Q(I,I,g),Q(J,T[2],C[2]),fe(J,J,J),pe(oe,u,R),pe(ge,J,I),fe(Pe,J,I),fe(Re,u,R),Q(T[0],oe,ge),Q(T[1],Re,Pe),Q(T[2],Pe,ge),Q(T[3],oe,Re)}function Vt(T,C,R){for(let u=0;u<4;u++)Z(T[u],C[u],R)}function ur(T,C){const R=a(),u=a(),I=a();Tt(I,C[2]),Q(R,C[0],I),Q(u,C[1],I),se(T,u),T[31]^=ae(R)<<7}function M(T,C,R){q(T[0],p),q(T[1],v),q(T[2],v),q(T[3],p);for(let u=255;u>=0;--u){const I=R[u/8|0]>>(u&7)&1;Vt(T,C,I),Yt(C,T),Yt(T,T),Vt(T,C,I)}}function U(T,C){const R=[a(),a(),a(),a()];q(R[0],b),q(R[1],S),q(R[2],v),Q(R[3],b,S),M(T,R,C)}function Ge(T){if(T.length!==o.SEED_LENGTH)throw new Error(`ed25519: seed must be ${o.SEED_LENGTH} bytes`);const C=(0,i.hash)(T);C[0]&=248,C[31]&=127,C[31]|=64;const R=new Uint8Array(32),u=[a(),a(),a(),a()];U(u,C),ur(R,u);const I=new Uint8Array(64);return I.set(T),I.set(R,32),{publicKey:R,secretKey:I}}o.generateKeyPairFromSeed=Ge;function qe(T){const C=(0,r.randomBytes)(32,T),R=Ge(C);return(0,n.wipe)(C),R}o.generateKeyPair=qe;function G(T){if(T.length!==o.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${o.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(T.subarray(32))}o.extractPublicKeyFromSecretKey=G;const K=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function H(T,C){let R,u,I,J;for(u=63;u>=32;--u){for(R=0,I=u-32,J=u-12;I>4)*K[I],R=C[I]>>8,C[I]&=255;for(I=0;I<32;I++)C[I]-=R*K[I];for(u=0;u<32;u++)C[u+1]+=C[u]>>8,T[u]=C[u]&255}function V(T){const C=new Float64Array(64);for(let R=0;R<64;R++)C[R]=T[R];for(let R=0;R<64;R++)T[R]=0;H(T,C)}function Rt(T,C){const R=new Float64Array(64),u=[a(),a(),a(),a()],I=(0,i.hash)(T.subarray(0,32));I[0]&=248,I[31]&=127,I[31]|=64;const J=new Uint8Array(64);J.set(I.subarray(32),32);const oe=new i.SHA512;oe.update(J.subarray(32)),oe.update(C);const ge=oe.digest();oe.clean(),V(ge),U(u,ge),ur(J,u),oe.reset(),oe.update(J.subarray(0,32)),oe.update(T.subarray(32)),oe.update(C);const Pe=oe.digest();V(Pe);for(let Re=0;Re<32;Re++)R[Re]=ge[Re];for(let Re=0;Re<32;Re++)for(let _e=0;_e<32;_e++)R[Re+_e]+=Pe[Re]*I[_e];return H(J.subarray(32),R),J}o.sign=Rt;function rt(T,C){const R=a(),u=a(),I=a(),J=a(),oe=a(),ge=a(),Pe=a();return q(T[2],v),te(T[1],C),xe(I,T[1]),Q(J,I,m),pe(I,I,T[2]),fe(J,T[2],J),xe(oe,J),xe(ge,oe),Q(Pe,ge,oe),Q(R,Pe,I),Q(R,R,J),yt(R,R),Q(R,R,I),Q(R,R,J),Q(R,R,J),Q(T[0],R,J),xe(u,T[0]),Q(u,u,J),ce(u,I)&&Q(T[0],T[0],$),xe(u,T[0]),Q(u,u,J),ce(u,I)?-1:(ae(T[0])===C[31]>>7&&pe(T[0],p,T[0]),Q(T[3],T[0],T[1]),0)}function xi(T,C,R){const u=new Uint8Array(32),I=[a(),a(),a(),a()],J=[a(),a(),a(),a()];if(R.length!==o.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${o.SIGNATURE_LENGTH} bytes`);if(rt(J,T))return!1;const oe=new i.SHA512;oe.update(R.subarray(0,32)),oe.update(T),oe.update(C);const ge=oe.digest();return V(ge),M(I,J,ge),U(J,R.subarray(32)),Yt(I,J),ur(u,I),!ne(R,u)}o.verify=xi;function we(T){let C=[a(),a(),a(),a()];if(rt(C,T))throw new Error("Ed25519: invalid public key");let R=a(),u=a(),I=C[1];fe(R,v,I),pe(u,v,I),Tt(u,u),Q(R,R,u);let J=new Uint8Array(32);return se(J,R),J}o.convertPublicKeyToX25519=we;function Sr(T){const C=(0,i.hash)(T.subarray(0,32));C[0]&=248,C[31]&=127,C[31]|=64;const R=new Uint8Array(C.subarray(0,32));return(0,n.wipe)(C),R}o.convertSecretKeyToX25519=Sr})($c);const d1="EdDSA",g1="JWT",tf=".",rf="base64url",y1="utf8",v1="utf8",m1=":",w1="did",_1="key",rl="base58btc",b1="z",I1="K36",E1=32;function va(o){return ba(Oc(Qs(o),y1),rf)}function sf(o){const r=Oc(I1,rl),i=b1+ba(s0([r,o]),rl);return[w1,_1,i].join(m1)}function x1(o){return ba(o,rf)}function P1(o){return Oc([va(o.header),va(o.payload)].join(tf),v1)}function S1(o){return[va(o.header),va(o.payload),x1(o.signature)].join(tf)}function il(o=Ul.randomBytes(E1)){return $c.generateKeyPairFromSeed(o)}async function R1(o,r,i,n,a=X.fromMiliseconds(Date.now())){const h={alg:d1,typ:g1},p=sf(n.publicKey),v=a+i,m={iss:p,sub:o,aud:r,iat:a,exp:v},g=P1({header:h,payload:m}),b=$c.sign(n.secretKey,g);return S1({header:h,payload:m,signature:b})}class ni extends F0{constructor(r){super(r),this.events=new qr.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(r),this.connection.connected&&this.registerEventListeners()}async connect(r=this.connection){await this.open(r)}async disconnect(){await this.close()}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async request(r,i){return this.requestStrict(gs(r.method,r.params||[],r.id||Gl().toString()),i)}async requestStrict(r,i){return new Promise(async(n,a)=>{if(!this.connection.connected)try{await this.open()}catch(h){a(h)}this.events.on(`${r.id}`,h=>{Kr(h)?a(h.error):n(h.result)});try{await this.connection.send(r,i)}catch(h){a(h)}})}setConnection(r=this.connection){return r}onPayload(r){this.events.emit("payload",r),Ea(r)?this.events.emit(`${r.id}`,r):this.events.emit("message",{type:r.method,data:r.params})}onClose(r){r&&r.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${r.code} ${r.reason?`(${r.reason})`:""}`)),this.events.emit("disconnect")}async open(r=this.connection){this.connection===r&&this.connection.connected||(this.connection.connected&&this.close(),typeof r=="string"&&(await this.connection.open(r),r=this.connection),this.connection=this.setConnection(r),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",r=>this.onPayload(r)),this.connection.on("close",r=>this.onClose(r)),this.connection.on("error",r=>this.events.emit("error",r)),this.connection.on("register_error",r=>this.onClose()),this.hasRegisteredEventListeners=!0)}}const O1=()=>typeof WebSocket<"u"?WebSocket:typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:require("ws"),A1=()=>typeof WebSocket<"u"||typeof global<"u"&&typeof global.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",sl=o=>o.split("?")[0],nl=10,C1=O1();let T1=class{constructor(r){if(this.url=r,this.events=new qr.EventEmitter,this.registering=!1,!Kh(r))throw new Error(`Provided URL is not compatible with WebSocket connection: ${r}`);this.url=r}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async open(r=this.url){await this.register(r)}async close(){return new Promise((r,i)=>{if(typeof this.socket>"u"){i(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),r()},this.socket.close()})}async send(r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Qs(r))}catch(i){this.onError(r.id,i)}}register(r=this.url){if(!Kh(r))throw new Error(`Provided URL is not compatible with WebSocket connection: ${r}`);if(this.registering){const i=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=i||this.events.listenerCount("open")>=i)&&this.events.setMaxListeners(i+1),new Promise((n,a)=>{this.events.once("register_error",h=>{this.resetMaxListeners(),a(h)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return a(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=r,this.registering=!0,new Promise((i,n)=>{const a=new URLSearchParams(r).get("origin"),h=B0.isReactNative()?{headers:{origin:a}}:{rejectUnauthorized:!G0(r)},p=new C1(r,[],h);A1()?p.onerror=v=>{const m=v;n(this.emitError(m.error))}:p.on("error",v=>{n(this.emitError(v))}),p.onopen=()=>{this.onOpen(p),i(p)}})}onOpen(r){r.onmessage=i=>this.onPayload(i),r.onclose=i=>this.onClose(i),this.socket=r,this.registering=!1,this.events.emit("open")}onClose(r){this.socket=void 0,this.registering=!1,this.events.emit("close",r)}onPayload(r){if(typeof r.data>"u")return;const i=typeof r.data=="string"?Ia(r.data):r.data;this.events.emit("payload",i)}onError(r,i){const n=this.parseError(i),a=n.message||n.toString(),h=Cc(r,a);this.events.emit("payload",h)}parseError(r,i=this.url){return W0(r,sl(i),"WS")}resetMaxListeners(){this.events.getMaxListeners()>nl&&this.events.setMaxListeners(nl)}emitError(r){const i=this.parseError(new Error((r==null?void 0:r.message)||`WebSocket connection failed for host: ${sl(this.url)}`));return this.events.emit("register_error",i),i}};var ma={exports:{}};ma.exports;(function(o,r){var i=200,n="__lodash_hash_undefined__",a=1,h=2,p=9007199254740991,v="[object Arguments]",m="[object Array]",g="[object AsyncFunction]",b="[object Boolean]",S="[object Date]",$="[object Error]",q="[object Function]",A="[object GeneratorFunction]",Z="[object Map]",se="[object Number]",ne="[object Null]",ce="[object Object]",ae="[object Promise]",te="[object Proxy]",fe="[object RegExp]",pe="[object Set]",Q="[object String]",xe="[object Symbol]",Tt="[object Undefined]",yt="[object WeakMap]",Yt="[object ArrayBuffer]",Vt="[object DataView]",ur="[object Float32Array]",M="[object Float64Array]",U="[object Int8Array]",Ge="[object Int16Array]",qe="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",H="[object Uint16Array]",V="[object Uint32Array]",Rt=/[\\^$.*+?()[\]{}|]/g,rt=/^\[object .+?Constructor\]$/,xi=/^(?:0|[1-9]\d*)$/,we={};we[ur]=we[M]=we[U]=we[Ge]=we[qe]=we[G]=we[K]=we[H]=we[V]=!0,we[v]=we[m]=we[Yt]=we[b]=we[Vt]=we[S]=we[$]=we[q]=we[Z]=we[se]=we[ce]=we[fe]=we[pe]=we[Q]=we[yt]=!1;var Sr=typeof na=="object"&&na&&na.Object===Object&&na,T=typeof self=="object"&&self&&self.Object===Object&&self,C=Sr||T||Function("return this")(),R=r&&!r.nodeType&&r,u=R&&!0&&o&&!o.nodeType&&o,I=u&&u.exports===R,J=I&&Sr.process,oe=function(){try{return J&&J.binding&&J.binding("util")}catch{}}(),ge=oe&&oe.isTypedArray;function Pe(y,E){for(var z=-1,F=y==null?0:y.length,je=0,he=[];++z-1}function za(y,E){var z=this.__data__,F=Si(z,y);return F<0?(++this.size,z.push([y,E])):z[F][1]=E,this}yr.prototype.clear=Na,yr.prototype.delete=Da,yr.prototype.get=qa,yr.prototype.has=La,yr.prototype.set=za;function Br(y){var E=-1,z=y==null?0:y.length;for(this.clear();++Ext))return!1;var Me=he.get(y);if(Me&&he.get(E))return Me==E;var pt=-1,Xt=!0,Pt=z&h?new Fi:void 0;for(he.set(y,E),he.set(E,y);++pt-1&&y%1==0&&y-1&&y%1==0&&y<=p}function mn(y){var E=typeof y;return y!=null&&(E=="object"||E=="function")}function Ai(y){return y!=null&&typeof y=="object"}var wn=ge?lt(ge):an;function Qa(y){return Wa(y)?sn(y):on(y)}function ze(){return[]}function De(){return!1}o.exports=Ja})(ma,ma.exports);var $1=ma.exports;const N1=Rc($1);function D1(o,r){return r=r||{},new Promise(function(i,n){var a=new XMLHttpRequest,h=[],p=[],v={},m=function(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){return Promise.resolve(a.responseText)},json:function(){return Promise.resolve(a.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([a.response]))},clone:m,headers:{keys:function(){return h},entries:function(){return p},get:function(b){return v[b.toLowerCase()]},has:function(b){return b.toLowerCase()in v}}}};for(var g in a.open(r.method||"get",o,!0),a.onload=function(){a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(b,S,$){h.push(S=S.toLowerCase()),p.push([S,$]),v[S]=v[S]?v[S]+","+$:$}),i(m())},a.onerror=n,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(g,r.headers[g]);a.send(r.body||null)})}const q1=Object.freeze(Object.defineProperty({__proto__:null,default:D1},Symbol.toStringTag,{value:"Module"})),al=jl(q1);var L1=self.fetch||(self.fetch=al.default||al);const z1=Rc(L1);var j1={};function M1(o,r){if(o.length>=255)throw new TypeError("Alphabet too long");for(var i=new Uint8Array(256),n=0;n>>0,te=new Uint8Array(ae);ne!==ce;){for(var fe=A[ne],pe=0,Q=ae-1;(fe!==0||pe>>0,te[Q]=fe%v>>>0,fe=fe/v>>>0;if(fe!==0)throw new Error("Non-zero carry");se=pe,ne++}for(var xe=ae-se;xe!==ae&&te[xe]===0;)xe++;for(var Tt=m.repeat(Z);xe>>0,ae=new Uint8Array(ce);A[Z];){var te=i[A.charCodeAt(Z)];if(te===255)return;for(var fe=0,pe=ce-1;(te!==0||fe>>0,ae[pe]=te%256>>>0,te=te/256>>>0;if(te!==0)throw new Error("Non-zero carry");ne=fe,Z++}if(A[Z]!==" "){for(var Q=ce-ne;Q!==ce&&ae[Q]===0;)Q++;for(var xe=new Uint8Array(se+(ce-Q)),Tt=se;Q!==ce;)xe[Tt++]=ae[Q++];return xe}}}function q(A){var Z=$(A);if(Z)return Z;throw new Error(`Non-${r} character`)}return{encode:S,decodeUnsafe:$,decode:q}}var U1=M1,H1=U1;const nf=o=>{if(o instanceof Uint8Array&&o.constructor.name==="Uint8Array")return o;if(o instanceof ArrayBuffer)return new Uint8Array(o);if(ArrayBuffer.isView(o))return new Uint8Array(o.buffer,o.byteOffset,o.byteLength);throw new Error("Unknown type, must be binary type")},k1=o=>new TextEncoder().encode(o),K1=o=>new TextDecoder().decode(o);class V1{constructor(r,i,n){this.name=r,this.prefix=i,this.baseEncode=n}encode(r){if(r instanceof Uint8Array)return`${this.prefix}${this.baseEncode(r)}`;throw Error("Unknown type, must be binary type")}}class F1{constructor(r,i,n){if(this.name=r,this.prefix=i,i.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=i.codePointAt(0),this.baseDecode=n}decode(r){if(typeof r=="string"){if(r.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(r)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(r.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(r){return af(this,r)}}class B1{constructor(r){this.decoders=r}or(r){return af(this,r)}decode(r){const i=r[0],n=this.decoders[i];if(n)return n.decode(r);throw RangeError(`Unable to decode multibase string ${JSON.stringify(r)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const af=(o,r)=>new B1({...o.decoders||{[o.prefix]:o},...r.decoders||{[r.prefix]:r}});class G1{constructor(r,i,n,a){this.name=r,this.prefix=i,this.baseEncode=n,this.baseDecode=a,this.encoder=new V1(r,i,n),this.decoder=new F1(r,i,a)}encode(r){return this.encoder.encode(r)}decode(r){return this.decoder.decode(r)}}const Oa=({name:o,prefix:r,encode:i,decode:n})=>new G1(o,r,i,n),Xs=({prefix:o,name:r,alphabet:i})=>{const{encode:n,decode:a}=H1(i,r);return Oa({prefix:o,name:r,encode:n,decode:h=>nf(a(h))})},W1=(o,r,i,n)=>{const a={};for(let b=0;b=8&&(v-=8,p[g++]=255&m>>v)}if(v>=i||255&m<<8-v)throw new SyntaxError("Unexpected end of data");return p},J1=(o,r,i)=>{const n=r[r.length-1]==="=",a=(1<i;)p-=i,h+=r[a&v>>p];if(p&&(h+=r[a&v<Oa({prefix:r,name:o,encode(a){return J1(a,n,i)},decode(a){return W1(a,n,i,o)}}),Q1=Oa({prefix:"\0",name:"identity",encode:o=>K1(o),decode:o=>k1(o)});var Y1=Object.freeze({__proto__:null,identity:Q1});const Z1=Mt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var X1=Object.freeze({__proto__:null,base2:Z1});const e_=Mt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var t_=Object.freeze({__proto__:null,base8:e_});const r_=Xs({prefix:"9",name:"base10",alphabet:"0123456789"});var i_=Object.freeze({__proto__:null,base10:r_});const s_=Mt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),n_=Mt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var a_=Object.freeze({__proto__:null,base16:s_,base16upper:n_});const o_=Mt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),c_=Mt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),u_=Mt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),h_=Mt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),l_=Mt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),f_=Mt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),p_=Mt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),d_=Mt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),g_=Mt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var y_=Object.freeze({__proto__:null,base32:o_,base32upper:c_,base32pad:u_,base32padupper:h_,base32hex:l_,base32hexupper:f_,base32hexpad:p_,base32hexpadupper:d_,base32z:g_});const v_=Xs({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),m_=Xs({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var w_=Object.freeze({__proto__:null,base36:v_,base36upper:m_});const __=Xs({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),b_=Xs({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var I_=Object.freeze({__proto__:null,base58btc:__,base58flickr:b_});const E_=Mt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),x_=Mt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),P_=Mt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),S_=Mt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var R_=Object.freeze({__proto__:null,base64:E_,base64pad:x_,base64url:P_,base64urlpad:S_});const of=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),O_=of.reduce((o,r,i)=>(o[i]=r,o),[]),A_=of.reduce((o,r,i)=>(o[r.codePointAt(0)]=i,o),[]);function C_(o){return o.reduce((r,i)=>(r+=O_[i],r),"")}function T_(o){const r=[];for(const i of o){const n=A_[i.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${i}`);r.push(n)}return new Uint8Array(r)}const $_=Oa({prefix:"🚀",name:"base256emoji",encode:C_,decode:T_});var N_=Object.freeze({__proto__:null,base256emoji:$_}),D_=cf,ol=128,q_=127,L_=~q_,z_=Math.pow(2,31);function cf(o,r,i){r=r||[],i=i||0;for(var n=i;o>=z_;)r[i++]=o&255|ol,o/=128;for(;o&L_;)r[i++]=o&255|ol,o>>>=7;return r[i]=o|0,cf.bytes=i-n+1,r}var j_=bc,M_=128,cl=127;function bc(o,n){var i=0,n=n||0,a=0,h=n,p,v=o.length;do{if(h>=v)throw bc.bytes=0,new RangeError("Could not decode varint");p=o[h++],i+=a<28?(p&cl)<=M_);return bc.bytes=h-n,i}var U_=Math.pow(2,7),H_=Math.pow(2,14),k_=Math.pow(2,21),K_=Math.pow(2,28),V_=Math.pow(2,35),F_=Math.pow(2,42),B_=Math.pow(2,49),G_=Math.pow(2,56),W_=Math.pow(2,63),J_=function(o){return o(uf.encode(o,r,i),r),hl=o=>uf.encodingLength(o),Ic=(o,r)=>{const i=r.byteLength,n=hl(o),a=n+hl(i),h=new Uint8Array(a+i);return ul(o,h,0),ul(i,h,n),h.set(r,a),new Y_(o,i,r,h)};class Y_{constructor(r,i,n,a){this.code=r,this.size=i,this.digest=n,this.bytes=a}}const hf=({name:o,code:r,encode:i})=>new Z_(o,r,i);class Z_{constructor(r,i,n){this.name=r,this.code=i,this.encode=n}digest(r){if(r instanceof Uint8Array){const i=this.encode(r);return i instanceof Uint8Array?Ic(this.code,i):i.then(n=>Ic(this.code,n))}else throw Error("Unknown type, must be binary type")}}const lf=o=>async r=>new Uint8Array(await crypto.subtle.digest(o,r)),X_=hf({name:"sha2-256",code:18,encode:lf("SHA-256")}),eb=hf({name:"sha2-512",code:19,encode:lf("SHA-512")});var tb=Object.freeze({__proto__:null,sha256:X_,sha512:eb});const ff=0,rb="identity",pf=nf,ib=o=>Ic(ff,pf(o)),sb={code:ff,name:rb,encode:pf,digest:ib};var nb=Object.freeze({__proto__:null,identity:sb});new TextEncoder,new TextDecoder;const ll={...Y1,...X1,...t_,...i_,...a_,...y_,...w_,...I_,...R_,...N_};({...tb,...nb});function df(o){return globalThis.Buffer!=null?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):o}function ab(o=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?df(globalThis.Buffer.allocUnsafe(o)):new Uint8Array(o)}function gf(o,r,i,n){return{name:o,prefix:r,encoder:{name:o,prefix:r,encode:i},decoder:{decode:n}}}const fl=gf("utf8","u",o=>"u"+new TextDecoder("utf8").decode(o),o=>new TextEncoder().encode(o.substring(1))),cc=gf("ascii","a",o=>{let r="a";for(let i=0;i{o=o.substring(1);const r=ab(o.length);for(let i=0;i{if(!this.initialized){const n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,a)=>{this.isInitialized(),this.keychain.set(n,a),await this.persist()},this.get=n=>{this.isInitialized();const a=this.keychain.get(n);if(typeof a>"u"){const{message:h}=B("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(h)}return a},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=r,this.logger=cr(i,this.name)}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(r){await this.core.storage.setItem(this.storageKey,Vl(r))}async getKeyChain(){const r=await this.core.storage.getItem(this.storageKey);return typeof r<"u"?Fl(r):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class Hb{constructor(r,i,n){this.core=r,this.logger=i,this.name=fb,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=a=>(this.isInitialized(),this.keychain.has(a)),this.getClientId=async()=>{this.isInitialized();const a=await this.getClientSeed(),h=il(a);return sf(h.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const a=o0();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();const h=await this.getClientSeed(),p=il(h),v=vc();return await R1(v,a,pb,p)},this.generateSharedKey=(a,h,p)=>{this.isInitialized();const v=this.getPrivateKey(a),m=c0(v,h);return this.setSymKey(m,p)},this.setSymKey=async(a,h)=>{this.isInitialized();const p=h||u0(a);return await this.keychain.set(p,a),p},this.deleteKeyPair=async a=>{this.isInitialized(),await this.keychain.del(a)},this.deleteSymKey=async a=>{this.isInitialized(),await this.keychain.del(a)},this.encode=async(a,h,p)=>{this.isInitialized();const v=h0(p),m=Qs(h);if(zh(v)){const $=v.senderPublicKey,q=v.receiverPublicKey;a=await this.generateSharedKey($,q)}const g=this.getSymKey(a),{type:b,senderPublicKey:S}=v;return l0({type:b,symKey:g,message:m,senderPublicKey:S})},this.decode=async(a,h,p)=>{this.isInitialized();const v=f0(h,p);if(zh(v)){const m=v.receiverPublicKey,g=v.senderPublicKey;a=await this.generateSharedKey(m,g)}try{const m=this.getSymKey(a),g=p0({symKey:m,encoded:h});return Ia(g)}catch(m){this.logger.error(`Failed to decode message from topic: '${a}', clientId: '${await this.getClientId()}'`),this.logger.error(m)}},this.getPayloadType=a=>{const h=jh(a);return d0(h.type)},this.getPayloadSenderPublicKey=a=>{const h=jh(a);return h.senderPublicKey?ba(h.senderPublicKey,g0):void 0},this.core=r,this.logger=cr(i,this.name),this.keychain=n||new Ub(this.core,this.logger)}get context(){return or(this.logger)}async setPrivateKey(r,i){return await this.keychain.set(r,i),r}getPrivateKey(r){return this.keychain.get(r)}async getClientSeed(){let r="";try{r=this.keychain.get(pl)}catch{r=vc(),await this.keychain.set(pl,r)}return cb(r,"base16")}getSymKey(r){return this.keychain.get(r)}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class kb extends s1{constructor(r,i){super(r,i),this.logger=r,this.core=i,this.messages=new Map,this.name=yb,this.version=vb,this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,a)=>{this.isInitialized();const h=ds(a);let p=this.messages.get(n);return typeof p>"u"&&(p={}),typeof p[h]<"u"||(p[h]=a,this.messages.set(n,p),await this.persist()),h},this.get=n=>{this.isInitialized();let a=this.messages.get(n);return typeof a>"u"&&(a={}),a},this.has=(n,a)=>{this.isInitialized();const h=this.get(n),p=ds(a);return typeof h[p]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=cr(r,this.name),this.core=i}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(r){await this.core.storage.setItem(this.storageKey,Vl(r))}async getRelayerMessages(){const r=await this.core.storage.getItem(this.storageKey);return typeof r<"u"?Fl(r):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class Kb extends n1{constructor(r,i){super(r,i),this.relayer=r,this.logger=i,this.events=new qr.EventEmitter,this.name=wb,this.queue=new Map,this.publishTimeout=X.toMiliseconds(X.TEN_SECONDS),this.needsTransportRestart=!1,this.publish=async(n,a,h)=>{var p;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:h}});try{const v=(h==null?void 0:h.ttl)||mb,m=mc(h),g=(h==null?void 0:h.prompt)||!1,b=(h==null?void 0:h.tag)||0,S=(h==null?void 0:h.id)||Gl().toString(),$={topic:n,message:a,opts:{ttl:v,relay:m,prompt:g,tag:b,id:S}},q=setTimeout(()=>this.queue.set(S,$),this.publishTimeout);try{await await Gs(this.rpcPublish(n,a,v,m,g,b,S),this.publishTimeout,"Failed to publish payload, please try again."),this.removeRequestFromQueue(S),this.relayer.events.emit(Kt.publish,$)}catch(A){if(this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0,(p=h==null?void 0:h.internal)!=null&&p.throwOnFailedPublish)throw this.removeRequestFromQueue(S),A;return}finally{clearTimeout(q)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:h}})}catch(v){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(v),v}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.relayer=r,this.logger=cr(i,this.name),this.registerEventListeners()}get context(){return or(this.logger)}rpcPublish(r,i,n,a,h,p,v){var m,g,b,S;const $={method:pa(a.protocol).publish,params:{topic:r,message:i,ttl:n,prompt:h,tag:p},id:v};return _i((m=$.params)==null?void 0:m.prompt)&&((g=$.params)==null||delete g.prompt),_i((b=$.params)==null?void 0:b.tag)&&((S=$.params)==null||delete S.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:$}),this.relayer.request($)}removeRequestFromQueue(r){this.queue.delete(r)}checkQueue(){this.queue.forEach(async r=>{const{topic:i,message:n,opts:a}=r;await this.publish(i,n,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(vs.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(Kt.connection_stalled);return}this.checkQueue()}),this.relayer.on(Kt.message_ack,r=>{this.removeRequestFromQueue(r.id.toString())})}}class Vb{constructor(){this.map=new Map,this.set=(r,i)=>{const n=this.get(r);this.exists(r,i)||this.map.set(r,[...n,i])},this.get=r=>this.map.get(r)||[],this.exists=(r,i)=>this.get(r).includes(i),this.delete=(r,i)=>{if(typeof i>"u"){this.map.delete(r);return}if(!this.map.has(r))return;const n=this.get(r);if(!this.exists(r,i))return;const a=n.filter(h=>h!==i);if(!a.length){this.map.delete(r);return}this.map.set(r,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var Fb=Object.defineProperty,Bb=Object.defineProperties,Gb=Object.getOwnPropertyDescriptors,gl=Object.getOwnPropertySymbols,Wb=Object.prototype.hasOwnProperty,Jb=Object.prototype.propertyIsEnumerable,yl=(o,r,i)=>r in o?Fb(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,Us=(o,r)=>{for(var i in r||(r={}))Wb.call(r,i)&&yl(o,i,r[i]);if(gl)for(var i of gl(r))Jb.call(r,i)&&yl(o,i,r[i]);return o},hc=(o,r)=>Bb(o,Gb(r));class Qb extends c1{constructor(r,i){super(r,i),this.relayer=r,this.logger=i,this.subscriptions=new Map,this.topicMap=new Vb,this.events=new qr.EventEmitter,this.name=Ob,this.version=Ab,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=bi,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}});try{const h=mc(a),p={topic:n,relay:h};this.pending.set(n,p);const v=await this.rpcSubscribe(n,h);return this.onSubscribe(v,p),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}}),v}catch(h){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(h),h}},this.unsubscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),typeof(a==null?void 0:a.id)<"u"?await this.unsubscribeById(n,a.id,a):await this.unsubscribeByTopic(n,a)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((a,h)=>{const p=new X.Watch;p.start(this.pendingSubscriptionWatchLabel);const v=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(v),p.stop(this.pendingSubscriptionWatchLabel),a(!0)),p.elapsed(this.pendingSubscriptionWatchLabel)>=Cb&&(clearInterval(v),p.stop(this.pendingSubscriptionWatchLabel),h(new Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=r,this.logger=cr(i,this.name),this.clientId=""}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(r,i){let n=!1;try{n=this.getSubscription(r).topic===i}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(r,i){const n=this.topicMap.get(r);await Promise.all(n.map(async a=>await this.unsubscribeById(r,a,i)))}async unsubscribeById(r,i,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:r,id:i,opts:n}});try{const a=mc(n);await this.rpcUnsubscribe(r,i,a);const h=kt("USER_DISCONNECTED",`${this.name}, ${r}`);await this.onUnsubscribe(r,i,h),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:r,id:i,opts:n}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(r,i){const n={method:pa(i.protocol).subscribe,params:{topic:r}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Gs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(Kt.connection_stalled)}return ds(r+this.clientId)}async rpcBatchSubscribe(r){if(!r.length)return;const i=r[0].relay,n={method:pa(i.protocol).batchSubscribe,params:{topics:r.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await Gs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Kt.connection_stalled)}}rpcUnsubscribe(r,i,n){const a={method:pa(n.protocol).unsubscribe,params:{topic:r,id:i}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.request(a)}onSubscribe(r,i){this.setSubscription(r,hc(Us({},i),{id:r})),this.pending.delete(i.topic)}onBatchSubscribe(r){r.length&&r.forEach(i=>{this.setSubscription(i.id,Us({},i)),this.pending.delete(i.topic)})}async onUnsubscribe(r,i,n){this.events.removeAllListeners(i),this.hasSubscription(i,r)&&this.deleteSubscription(i,n),await this.relayer.messages.del(r)}async setRelayerSubscriptions(r){await this.relayer.core.storage.setItem(this.storageKey,r)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(r,i){this.subscriptions.has(r)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:r,subscription:i}),this.addSubscription(r,i))}addSubscription(r,i){this.subscriptions.set(r,Us({},i)),this.topicMap.set(i.topic,r),this.events.emit(Nr.created,i)}getSubscription(r){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:r});const i=this.subscriptions.get(r);if(!i){const{message:n}=B("NO_MATCHING_KEY",`${this.name}: ${r}`);throw new Error(n)}return i}deleteSubscription(r,i){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:r,reason:i});const n=this.getSubscription(r);this.subscriptions.delete(r),this.topicMap.delete(n.topic,r),this.events.emit(Nr.deleted,hc(Us({},n),{reason:i}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(Nr.sync)}async reset(){if(this.cached.length){const r=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let i=0;i"u"||!r.length)return;if(this.subscriptions.size){const{message:i}=B("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(i)}this.cached=r,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(r){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(r)}}async batchSubscribe(r){if(!r.length)return;const i=await this.rpcBatchSubscribe(r);ys(i)&&this.onBatchSubscribe(i.map((n,a)=>hc(Us({},r[a]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||this.relayer.transportExplicitlyClosed)return;const r=[];this.pending.forEach(i=>{r.push(i)}),await this.batchSubscribe(r)}registerEventListeners(){this.relayer.core.heartbeat.on(vs.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(Kt.connect,async()=>{await this.onConnect()}),this.relayer.on(Kt.disconnect,()=>{this.onDisconnect()}),this.events.on(Nr.created,async r=>{const i=Nr.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),await this.persist()}),this.events.on(Nr.deleted,async r=>{const i=Nr.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}async restartToComplete(){this.restartInProgress&&await new Promise(r=>{const i=setInterval(()=>{this.restartInProgress||(clearInterval(i),r())},this.pollingInterval)})}}var Yb=Object.defineProperty,vl=Object.getOwnPropertySymbols,Zb=Object.prototype.hasOwnProperty,Xb=Object.prototype.propertyIsEnumerable,ml=(o,r,i)=>r in o?Yb(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,eI=(o,r)=>{for(var i in r||(r={}))Zb.call(r,i)&&ml(o,i,r[i]);if(vl)for(var i of vl(r))Xb.call(r,i)&&ml(o,i,r[i]);return o};class tI extends a1{constructor(r){super(r),this.protocol="wc",this.version=2,this.events=new qr.EventEmitter,this.name=bb,this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.hasExperiencedNetworkDisruption=!1,this.request=async i=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(i)}catch(n){throw this.logger.debug("Failed to Publish Request"),this.logger.error(n),n}},this.onPayloadHandler=i=>{this.onProviderPayload(i)},this.onConnectHandler=()=>{this.events.emit(Kt.connect)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=i=>{this.logger.error(i),this.events.emit(Kt.error,i),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(ii.payload,this.onPayloadHandler),this.provider.on(ii.connect,this.onConnectHandler),this.provider.on(ii.disconnect,this.onDisconnectHandler),this.provider.on(ii.error,this.onProviderErrorHandler)},this.core=r.core,this.logger=typeof r.logger<"u"&&typeof r.logger!="string"?cr(r.logger,this.name):Sa(Ra({level:r.logger||_b})),this.messages=new kb(this.logger,r.core),this.subscriber=new Qb(this,this.logger),this.publisher=new Kb(this,this.logger),this.relayUrl=(r==null?void 0:r.relayUrl)||mf,this.projectId=r.projectId,this.bundleId=y0(),this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${dl}...`),await this.restartTransport(dl)}this.initialized=!0,setTimeout(async()=>{this.subscriber.topics.length===0&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},Pb)}get context(){return or(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(r,i,n){this.isInitialized(),await this.publisher.publish(r,i,n),await this.recordMessageEvent({topic:r,message:i,publishedAt:Date.now()})}async subscribe(r,i){var n;this.isInitialized();let a=((n=this.subscriber.topicMap.get(r))==null?void 0:n[0])||"";if(a)return a;let h;const p=v=>{v.topic===r&&(this.subscriber.off(Nr.created,p),h())};return await Promise.all([new Promise(v=>{h=v,this.subscriber.on(Nr.created,p)}),new Promise(async v=>{a=await this.subscriber.subscribe(r,i),v()})]),a}async unsubscribe(r,i){this.isInitialized(),await this.subscriber.unsubscribe(r,i)}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async transportClose(){this.transportExplicitlyClosed=!0,this.hasExperiencedNetworkDisruption&&this.connected?await Gs(this.provider.disconnect(),1e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.connected&&await this.provider.disconnect()}async transportOpen(r){if(this.transportExplicitlyClosed=!1,await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress){r&&r!==this.relayUrl&&(this.relayUrl=r,await this.transportClose(),await this.createProvider()),this.connectionAttemptInProgress=!0;try{await Promise.all([new Promise(i=>{if(!this.initialized)return i();this.subscriber.once(Nr.resubscribed,()=>{i()})}),new Promise(async(i,n)=>{try{await Gs(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`)}catch(a){n(a);return}i()})])}catch(i){this.logger.error(i);const n=i;if(!this.isConnectionStalled(n.message))throw i;this.provider.events.emit(ii.disconnect)}finally{this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1}}}async restartTransport(r){await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress&&(this.relayUrl=r||this.relayUrl,await this.transportClose(),await this.createProvider(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await Mh())throw new Error("No internet connection detected. Please restart your network and try again.")}isConnectionStalled(r){return this.staleConnectionErrors.some(i=>r.includes(i))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const r=await this.core.crypto.signJWT(this.relayUrl);this.provider=new ni(new T1(v0({sdkVersion:xb,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:r,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(r){const{topic:i,message:n}=r;await this.messages.set(i,n)}async shouldIgnoreMessageEvent(r){const{topic:i,message:n}=r;if(!n||n.length===0)return this.logger.debug(`Ignoring invalid/empty message: ${n}`),!0;if(!await this.subscriber.isSubscribed(i))return this.logger.debug(`Ignoring message for non-subscribed topic ${i}`),!0;const a=this.messages.has(i,n);return a&&this.logger.debug(`Ignoring duplicate message: ${n}`),a}async onProviderPayload(r){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:r}),Tc(r)){if(!r.method.endsWith(Ib))return;const i=r.params,{topic:n,message:a,publishedAt:h}=i.data,p={topic:n,message:a,publishedAt:h};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(eI({type:"event",event:i.id},p)),this.events.emit(i.id,p),await this.acknowledgePayload(r),await this.onMessageEvent(p)}else Ea(r)&&this.events.emit(Kt.message_ack,r)}async onMessageEvent(r){await this.shouldIgnoreMessageEvent(r)||(this.events.emit(Kt.message,r),await this.recordMessageEvent(r))}async acknowledgePayload(r){const i=xa(r.id,!0);await this.provider.connection.send(i)}unregisterProviderListeners(){this.provider.off(ii.payload,this.onPayloadHandler),this.provider.off(ii.connect,this.onConnectHandler),this.provider.off(ii.disconnect,this.onDisconnectHandler),this.provider.off(ii.error,this.onProviderErrorHandler)}async registerEventListeners(){this.events.on(Kt.connection_stalled,()=>{this.restartTransport().catch(i=>this.logger.error(i))});let r=await Mh();m0(async i=>{this.initialized&&r!==i&&(r=i,i?await this.restartTransport().catch(n=>this.logger.error(n)):(this.hasExperiencedNetworkDisruption=!0,await this.transportClose().catch(n=>this.logger.error(n))))})}onProviderDisconnect(){this.events.emit(Kt.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||(this.logger.info("attemptToReconnect called. Connecting..."),setTimeout(async()=>{await this.restartTransport().catch(r=>this.logger.error(r))},X.toMiliseconds(Eb)))}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectionAttemptInProgress)return await new Promise(r=>{const i=setInterval(()=>{this.connected&&(clearInterval(i),r())},this.connectionStatusPollingInterval)});await this.restartTransport()}}}var rI=Object.defineProperty,wl=Object.getOwnPropertySymbols,iI=Object.prototype.hasOwnProperty,sI=Object.prototype.propertyIsEnumerable,_l=(o,r,i)=>r in o?rI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,bl=(o,r)=>{for(var i in r||(r={}))iI.call(r,i)&&_l(o,i,r[i]);if(wl)for(var i of wl(r))sI.call(r,i)&&_l(o,i,r[i]);return o};class Aa extends o1{constructor(r,i,n,a=bi,h=void 0){super(r,i,n,a),this.core=r,this.logger=i,this.name=n,this.map=new Map,this.version=Sb,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(p=>{this.getKey&&p!==null&&!_i(p)?this.map.set(this.getKey(p),p):n0(p)?this.map.set(p.id,p):a0(p)&&this.map.set(p.topic,p)}),this.cached=[],this.initialized=!0)},this.set=async(p,v)=>{this.isInitialized(),this.map.has(p)?await this.update(p,v):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:p,value:v}),this.map.set(p,v),await this.persist())},this.get=p=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:p}),this.getData(p)),this.getAll=p=>(this.isInitialized(),p?this.values.filter(v=>Object.keys(p).every(m=>N1(v[m],p[m]))):this.values),this.update=async(p,v)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:p,update:v});const m=bl(bl({},this.getData(p)),v);this.map.set(p,m),await this.persist()},this.delete=async(p,v)=>{this.isInitialized(),this.map.has(p)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:p,reason:v}),this.map.delete(p),await this.persist())},this.logger=cr(i,this.name),this.storagePrefix=a,this.getKey=h}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(r){await this.core.storage.setItem(this.storageKey,r)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(r){const i=this.map.get(r);if(!i){const{message:n}=B("NO_MATCHING_KEY",`${this.name}: ${r}`);throw this.logger.error(n),new Error(n)}return i}async persist(){await this.setDataStore(this.values)}async restore(){try{const r=await this.getDataStore();if(typeof r>"u"||!r.length)return;if(this.map.size){const{message:i}=B("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),new Error(i)}this.cached=r,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(r){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(r)}}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class nI{constructor(r,i){this.core=r,this.logger=i,this.name=Tb,this.version=$b,this.events=new Ac,this.initialized=!1,this.storagePrefix=bi,this.ignoredPayloadTypes=[Hl],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();const n=vc(),a=await this.core.crypto.setSymKey(n),h=Dr(X.FIVE_MINUTES),p={protocol:vf},v={topic:a,expiry:h,relay:p,active:!1},m=w0({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:n,relay:p});return await this.pairings.set(a,v),await this.core.relayer.subscribe(a),this.core.expirer.set(a,h),{topic:a,uri:m}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);const{topic:a,symKey:h,relay:p}=Uh(n.uri);let v;if(this.pairings.keys.includes(a)&&(v=this.pairings.get(a),v.active))throw new Error(`Pairing already exists: ${a}. Please try again with a new connection URI.`);const m=Dr(X.FIVE_MINUTES),g={topic:a,relay:p,expiry:m,active:!1};return await this.pairings.set(a,g),this.core.expirer.set(a,m),n.activatePairing&&await this.activate({topic:a}),this.events.emit(Fs.create,g),this.core.crypto.keychain.has(a)||(await this.core.crypto.setSymKey(h,a),await this.core.relayer.subscribe(a,{relay:p})),g},this.activate=async({topic:n})=>{this.isInitialized();const a=Dr(X.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:a}),this.core.expirer.set(n,a)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);const{topic:a}=n;if(this.pairings.keys.includes(a)){const h=await this.sendRequest(a,"wc_pairingPing",{}),{done:p,resolve:v,reject:m}=ls();this.events.once(St("pairing_ping",h),({error:g})=>{g?m(g):v()}),await p()}},this.updateExpiry=async({topic:n,expiry:a})=>{this.isInitialized(),await this.pairings.update(n,{expiry:a})},this.updateMetadata=async({topic:n,metadata:a})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:a})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);const{topic:a}=n;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",kt("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(n,a,h)=>{const p=gs(a,h),v=await this.core.crypto.encode(n,p),m=Ms[a].req;return this.core.history.set(n,p),this.core.relayer.publish(n,v,m),p.id},this.sendResult=async(n,a,h)=>{const p=xa(n,h),v=await this.core.crypto.encode(a,p),m=await this.core.history.get(a,n),g=Ms[m.request.method].res;await this.core.relayer.publish(a,v,g),await this.core.history.resolve(p)},this.sendError=async(n,a,h)=>{const p=Cc(n,h),v=await this.core.crypto.encode(a,p),m=await this.core.history.get(a,n),g=Ms[m.request.method]?Ms[m.request.method].res:Ms.unregistered_method.res;await this.core.relayer.publish(a,v,g),await this.core.history.resolve(p)},this.deletePairing=async(n,a)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,kt("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),a?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{const n=this.pairings.getAll().filter(a=>wi(a.expiry));await Promise.all(n.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=n=>{const{topic:a,payload:h}=n;switch(h.method){case"wc_pairingPing":return this.onPairingPingRequest(a,h);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,h);default:return this.onUnknownRpcMethodRequest(a,h)}},this.onRelayEventResponse=async n=>{const{topic:a,payload:h}=n,p=(await this.core.history.get(a,h.id)).request.method;switch(p){case"wc_pairingPing":return this.onPairingPingResponse(a,h);default:return this.onUnknownRpcMethodResponse(p)}},this.onPairingPingRequest=async(n,a)=>{const{id:h}=a;try{this.isValidPing({topic:n}),await this.sendResult(h,n,!0),this.events.emit(Fs.ping,{id:h,topic:n})}catch(p){await this.sendError(h,n,p),this.logger.error(p)}},this.onPairingPingResponse=(n,a)=>{const{id:h}=a;setTimeout(()=>{mi(a)?this.events.emit(St("pairing_ping",h),{}):Kr(a)&&this.events.emit(St("pairing_ping",h),{error:a.error})},500)},this.onPairingDeleteRequest=async(n,a)=>{const{id:h}=a;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit(Fs.delete,{id:h,topic:n})}catch(p){await this.sendError(h,n,p),this.logger.error(p)}},this.onUnknownRpcMethodRequest=async(n,a)=>{const{id:h,method:p}=a;try{if(this.registeredMethods.includes(p))return;const v=kt("WC_METHOD_UNSUPPORTED",p);await this.sendError(h,n,v),this.logger.error(v)}catch(v){await this.sendError(h,n,v),this.logger.error(v)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(kt("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{var a;if(!ar(n)){const{message:p}=B("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(p)}if(!_0(n.uri)){const{message:p}=B("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(p)}const h=Uh(n.uri);if(!((a=h==null?void 0:h.relay)!=null&&a.protocol)){const{message:p}=B("MISSING_OR_INVALID","pair() uri#relay-protocol");throw new Error(p)}if(!(h!=null&&h.symKey)){const{message:p}=B("MISSING_OR_INVALID","pair() uri#symKey");throw new Error(p)}},this.isValidPing=async n=>{if(!ar(n)){const{message:h}=B("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(h)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidDisconnect=async n=>{if(!ar(n)){const{message:h}=B("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(h)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async n=>{if(!fs(n,!1)){const{message:a}=B("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(a)}if(!this.pairings.keys.includes(n)){const{message:a}=B("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(a)}if(wi(this.pairings.get(n).expiry)){await this.deletePairing(n);const{message:a}=B("EXPIRED",`pairing topic: ${n}`);throw new Error(a)}},this.core=r,this.logger=cr(i,this.name),this.pairings=new Aa(this.core,this.logger,this.name,this.storagePrefix)}get context(){return or(this.logger)}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}registerRelayerEvents(){this.core.relayer.on(Kt.message,async r=>{const{topic:i,message:n}=r;if(!this.pairings.keys.includes(i)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;const a=await this.core.crypto.decode(i,n);try{Tc(a)?(this.core.history.set(i,a),this.onRelayEventRequest({topic:i,payload:a})):Ea(a)&&(await this.core.history.resolve(a),await this.onRelayEventResponse({topic:i,payload:a}),this.core.history.delete(i,a.id))}catch(h){this.logger.error(h)}})}registerExpirerEvents(){this.core.expirer.on(Pr.expired,async r=>{const{topic:i}=kl(r.target);i&&this.pairings.keys.includes(i)&&(await this.deletePairing(i,!0),this.events.emit(Fs.expire,{topic:i}))})}}class aI extends i1{constructor(r,i){super(r,i),this.core=r,this.logger=i,this.records=new Map,this.events=new qr.EventEmitter,this.name=Nb,this.version=Db,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,a,h)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:a,chainId:h}),this.records.has(a.id))return;const p={id:a.id,topic:n,request:{method:a.method,params:a.params||null},chainId:h,expiry:Dr(X.THIRTY_DAYS)};this.records.set(p.id,p),this.events.emit(kr.created,p)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;const a=await this.getRecord(n.id);typeof a.response>"u"&&(a.response=Kr(n)?{error:n.error}:{result:n.result},this.records.set(a.id,a),this.events.emit(kr.updated,a))},this.get=async(n,a)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:a}),await this.getRecord(a)),this.delete=(n,a)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:a}),this.values.forEach(h=>{if(h.topic===n){if(typeof a<"u"&&h.id!==a)return;this.records.delete(h.id),this.events.emit(kr.deleted,h)}})},this.exists=async(n,a)=>(this.isInitialized(),this.records.has(a)?(await this.getRecord(a)).topic===n:!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=cr(i,this.name)}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const r=[];return this.values.forEach(i=>{if(typeof i.response<"u")return;const n={topic:i.topic,request:gs(i.request.method,i.request.params,i.id),chainId:i.chainId};return r.push(n)}),r}async setJsonRpcRecords(r){await this.core.storage.setItem(this.storageKey,r)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(r){this.isInitialized();const i=this.records.get(r);if(!i){const{message:n}=B("NO_MATCHING_KEY",`${this.name}: ${r}`);throw new Error(n)}return i}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(kr.sync)}async restore(){try{const r=await this.getJsonRpcRecords();if(typeof r>"u"||!r.length)return;if(this.records.size){const{message:i}=B("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),new Error(i)}this.cached=r,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(r){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(r)}}registerEventListeners(){this.events.on(kr.created,r=>{const i=kr.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,record:r}),this.persist()}),this.events.on(kr.updated,r=>{const i=kr.updated;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,record:r}),this.persist()}),this.events.on(kr.deleted,r=>{const i=kr.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,record:r}),this.persist()}),this.core.heartbeat.on(vs.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(r=>{X.toMiliseconds(r.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${r.id}`),this.delete(r.topic,r.id))})}catch(r){this.logger.warn(r)}}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class oI extends u1{constructor(r,i){super(r,i),this.core=r,this.logger=i,this.expirations=new Map,this.events=new qr.EventEmitter,this.name=qb,this.version=Lb,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{const a=this.formatTarget(n);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(n,a)=>{this.isInitialized();const h=this.formatTarget(n),p={target:h,expiry:a};this.expirations.set(h,p),this.checkExpiry(h,p),this.events.emit(Pr.created,{target:h,expiration:p})},this.get=n=>{this.isInitialized();const a=this.formatTarget(n);return this.getExpiration(a)},this.del=n=>{if(this.isInitialized(),this.has(n)){const a=this.formatTarget(n),h=this.getExpiration(a);this.expirations.delete(a),this.events.emit(Pr.deleted,{target:a,expiration:h})}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=cr(i,this.name)}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(r){if(typeof r=="string")return b0(r);if(typeof r=="number")return I0(r);const{message:i}=B("UNKNOWN_TYPE",`Target type: ${typeof r}`);throw new Error(i)}async setExpirations(r){await this.core.storage.setItem(this.storageKey,r)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Pr.sync)}async restore(){try{const r=await this.getExpirations();if(typeof r>"u"||!r.length)return;if(this.expirations.size){const{message:i}=B("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),new Error(i)}this.cached=r,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(r){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(r)}}getExpiration(r){const i=this.expirations.get(r);if(!i){const{message:n}=B("NO_MATCHING_KEY",`${this.name}: ${r}`);throw this.logger.error(n),new Error(n)}return i}checkExpiry(r,i){const{expiry:n}=i;X.toMiliseconds(n)-Date.now()<=0&&this.expire(r,i)}expire(r,i){this.expirations.delete(r),this.events.emit(Pr.expired,{target:r,expiration:i})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((r,i)=>this.checkExpiry(i,r))}registerEventListeners(){this.core.heartbeat.on(vs.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Pr.created,r=>{const i=Pr.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),this.persist()}),this.events.on(Pr.expired,r=>{const i=Pr.expired;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),this.persist()}),this.events.on(Pr.deleted,r=>{const i=Pr.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),this.persist()})}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class cI extends h1{constructor(r,i){super(r,i),this.projectId=r,this.logger=i,this.name=uc,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async n=>{if(this.verifyDisabled||E0()||!Kl())return;const a=this.getVerifyUrl(n==null?void 0:n.verifyUrl);this.verifyUrl!==a&&this.removeIframe(),this.verifyUrl=a;try{await this.createIframe()}catch(h){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(h)}if(!this.initialized){this.removeIframe(),this.verifyUrl=Ec;try{await this.createIframe()}catch(h){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(h),this.verifyDisabled=!0}}},this.register=async n=>{this.initialized?this.sendPost(n.attestationId):(this.addToQueue(n.attestationId),await this.init())},this.resolve=async n=>{if(this.isDevEnv)return"";const a=this.getVerifyUrl(n==null?void 0:n.verifyUrl);let h;try{h=await this.fetchAttestation(n.attestationId,a)}catch(p){this.logger.info(`failed to resolve attestation: ${n.attestationId} from url: ${a}`),this.logger.info(p),h=await this.fetchAttestation(n.attestationId,Ec)}return h},this.fetchAttestation=async(n,a)=>{this.logger.info(`resolving attestation: ${n} from url: ${a}`);const h=this.startAbortTimer(X.ONE_SECOND*2),p=await fetch(`${a}/attestation/${n}`,{signal:this.abortController.signal});return clearTimeout(h),p.status===200?await p.json():void 0},this.addToQueue=n=>{this.queue.push(n)},this.processQueue=()=>{this.queue.length!==0&&(this.queue.forEach(n=>this.sendPost(n)),this.queue=[])},this.sendPost=n=>{var a;try{if(!this.iframe)return;(a=this.iframe.contentWindow)==null||a.postMessage(n,"*"),this.logger.info(`postMessage sent: ${n} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let n;const a=h=>{h.data==="verify_ready"&&(this.initialized=!0,this.processQueue(),window.removeEventListener("message",a),n())};await Promise.race([new Promise(h=>{if(document.getElementById(uc))return h();window.addEventListener("message",a);const p=document.createElement("iframe");p.id=uc,p.src=`${this.verifyUrl}/${this.projectId}`,p.style.display="none",document.body.append(p),this.iframe=p,n=h}),new Promise((h,p)=>setTimeout(()=>{window.removeEventListener("message",a),p("verify iframe load timeout")},X.toMiliseconds(X.FIVE_SECONDS)))])},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=n=>{let a=n||ps;return zb.includes(a)||(this.logger.info(`verify url: ${a}, not included in trusted list, assigning default: ${ps}`),a=ps),a},this.logger=cr(i,this.name),this.verifyUrl=ps,this.abortController=new AbortController,this.isDevEnv=x0()&&j1.IS_VITEST}get context(){return or(this.logger)}startAbortTimer(r){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),X.toMiliseconds(r))}}class uI extends l1{constructor(r,i){super(r,i),this.projectId=r,this.logger=i,this.context=jb,this.registerDeviceToken=async n=>{const{clientId:a,token:h,notificationType:p,enableEncrypted:v=!1}=n,m=`${Mb}/${this.projectId}/clients`;await z1(m,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:a,type:p,token:h,always_raw:v})})},this.logger=cr(i,this.context)}}var hI=Object.defineProperty,Il=Object.getOwnPropertySymbols,lI=Object.prototype.hasOwnProperty,fI=Object.prototype.propertyIsEnumerable,El=(o,r,i)=>r in o?hI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,xl=(o,r)=>{for(var i in r||(r={}))lI.call(r,i)&&El(o,i,r[i]);if(Il)for(var i of Il(r))fI.call(r,i)&&El(o,i,r[i]);return o};class Dc extends r1{constructor(r){super(r),this.protocol=yf,this.version=ub,this.name=Nc,this.events=new qr.EventEmitter,this.initialized=!1,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.projectId=r==null?void 0:r.projectId,this.relayUrl=(r==null?void 0:r.relayUrl)||mf,this.customStoragePrefix=r!=null&&r.customStoragePrefix?`:${r.customStoragePrefix}`:"";const i=typeof(r==null?void 0:r.logger)<"u"&&typeof(r==null?void 0:r.logger)!="string"?r.logger:Sa(Ra({level:(r==null?void 0:r.logger)||hb.logger}));this.logger=cr(i,this.name),this.heartbeat=new vs.HeartBeat,this.crypto=new Hb(this,this.logger,r==null?void 0:r.keychain),this.history=new aI(this,this.logger),this.expirer=new oI(this,this.logger),this.storage=r!=null&&r.storage?r.storage:new Pw(xl(xl({},lb),r==null?void 0:r.storageOptions)),this.relayer=new tI({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new nI(this,this.logger),this.verify=new cI(this.projectId||"",this.logger),this.echoClient=new uI(this.projectId||"",this.logger)}static async init(r){const i=new Dc(r);await i.initialize();const n=await i.crypto.getClientId();return await i.storage.setItem(Rb,n),i}get context(){return or(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(r){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,r),this.logger.error(r.message),r}}}const pI=Dc,wf="wc",_f=2,bf="client",qc=`${wf}@${_f}:${bf}:`,lc={name:bf,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},Pl="WALLETCONNECT_DEEPLINK_CHOICE",dI="proposal",If="Proposal expired",gI="session",ha=X.SEVEN_DAYS,yI="engine",Hs={wc_sessionPropose:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1104},res:{ttl:X.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1106},res:{ttl:X.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1112},res:{ttl:X.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:X.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:X.THIRTY_SECONDS,prompt:!1,tag:1115}}},fc={min:X.FIVE_MINUTES,max:X.SEVEN_DAYS},si={idle:"IDLE",active:"ACTIVE"},vI="request",mI=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var wI=Object.defineProperty,_I=Object.defineProperties,bI=Object.getOwnPropertyDescriptors,Sl=Object.getOwnPropertySymbols,II=Object.prototype.hasOwnProperty,EI=Object.prototype.propertyIsEnumerable,Rl=(o,r,i)=>r in o?wI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,sr=(o,r)=>{for(var i in r||(r={}))II.call(r,i)&&Rl(o,i,r[i]);if(Sl)for(var i of Sl(r))EI.call(r,i)&&Rl(o,i,r[i]);return o},ks=(o,r)=>_I(o,bI(r));class xI extends p1{constructor(r){super(r),this.name=yI,this.events=new Ac,this.initialized=!1,this.ignoredPayloadTypes=[Hl],this.requestQueue={state:si.idle,queue:[]},this.sessionRequestQueue={state:si.idle,queue:[]},this.requestQueueDelay=X.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(Hs)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},X.toMiliseconds(this.requestQueueDelay)))},this.connect=async i=>{await this.isInitialized();const n=ks(sr({},i),{requiredNamespaces:i.requiredNamespaces||{},optionalNamespaces:i.optionalNamespaces||{}});await this.isValidConnect(n);const{pairingTopic:a,requiredNamespaces:h,optionalNamespaces:p,sessionProperties:v,relays:m}=n;let g=a,b,S=!1;if(g&&(S=this.client.core.pairing.pairings.get(g).active),!g||!S){const{topic:ae,uri:te}=await this.client.core.pairing.create();g=ae,b=te}const $=await this.client.core.crypto.generateKeyPair(),q=sr({requiredNamespaces:h,optionalNamespaces:p,relays:m??[{protocol:vf}],proposer:{publicKey:$,metadata:this.client.metadata}},v&&{sessionProperties:v}),{reject:A,resolve:Z,done:se}=ls(X.FIVE_MINUTES,If);if(this.events.once(St("session_connect"),async({error:ae,session:te})=>{if(ae)A(ae);else if(te){te.self.publicKey=$;const fe=ks(sr({},te),{requiredNamespaces:te.requiredNamespaces,optionalNamespaces:te.optionalNamespaces});await this.client.session.set(te.topic,fe),await this.setExpiry(te.topic,te.expiry),g&&await this.client.core.pairing.updateMetadata({topic:g,metadata:te.peer.metadata}),Z(fe)}}),!g){const{message:ae}=B("NO_MATCHING_KEY",`connect() pairing topic: ${g}`);throw new Error(ae)}const ne=await this.sendRequest({topic:g,method:"wc_sessionPropose",params:q}),ce=Dr(X.FIVE_MINUTES);return await this.setProposal(ne,sr({id:ne,expiry:ce},q)),{uri:b,approval:se}},this.pair=async i=>(await this.isInitialized(),await this.client.core.pairing.pair(i)),this.approve=async i=>{await this.isInitialized(),await this.isValidApprove(i);const{id:n,relayProtocol:a,namespaces:h,sessionProperties:p}=i,v=this.client.proposal.get(n);let{pairingTopic:m,proposer:g,requiredNamespaces:b,optionalNamespaces:S}=v;m=m||"",da(b)||(b=S0(h,"approve()"));const $=await this.client.core.crypto.generateKeyPair(),q=g.publicKey,A=await this.client.core.crypto.generateSharedKey($,q);m&&n&&(await this.client.core.pairing.updateMetadata({topic:m,metadata:g.metadata}),await this.sendResult({id:n,topic:m,result:{relay:{protocol:a??"irn"},responderPublicKey:$}}),await this.client.proposal.delete(n,kt("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:m}));const Z=sr({relay:{protocol:a??"irn"},namespaces:h,requiredNamespaces:b,optionalNamespaces:S,pairingTopic:m,controller:{publicKey:$,metadata:this.client.metadata},expiry:Dr(ha)},p&&{sessionProperties:p});await this.client.core.relayer.subscribe(A),await this.sendRequest({topic:A,method:"wc_sessionSettle",params:Z,throwOnFailedPublish:!0});const se=ks(sr({},Z),{topic:A,pairingTopic:m,acknowledged:!1,self:Z.controller,peer:{publicKey:g.publicKey,metadata:g.metadata},controller:$});return await this.client.session.set(A,se),await this.setExpiry(A,Dr(ha)),{topic:A,acknowledged:()=>new Promise(ne=>setTimeout(()=>ne(this.client.session.get(A)),500))}},this.reject=async i=>{await this.isInitialized(),await this.isValidReject(i);const{id:n,reason:a}=i,{pairingTopic:h}=this.client.proposal.get(n);h&&(await this.sendError(n,h,a),await this.client.proposal.delete(n,kt("USER_DISCONNECTED")))},this.update=async i=>{await this.isInitialized(),await this.isValidUpdate(i);const{topic:n,namespaces:a}=i,h=await this.sendRequest({topic:n,method:"wc_sessionUpdate",params:{namespaces:a}}),{done:p,resolve:v,reject:m}=ls();return this.events.once(St("session_update",h),({error:g})=>{g?m(g):v()}),await this.client.session.update(n,{namespaces:a}),{acknowledged:p}},this.extend=async i=>{await this.isInitialized(),await this.isValidExtend(i);const{topic:n}=i,a=await this.sendRequest({topic:n,method:"wc_sessionExtend",params:{}}),{done:h,resolve:p,reject:v}=ls();return this.events.once(St("session_extend",a),({error:m})=>{m?v(m):p()}),await this.setExpiry(n,Dr(ha)),{acknowledged:h}},this.request=async i=>{await this.isInitialized(),await this.isValidRequest(i);const{chainId:n,request:a,topic:h,expiry:p}=i,v=J0(),{done:m,resolve:g,reject:b}=ls(p,"Request expired. Please try again.");return this.events.once(St("session_request",v),({error:S,result:$})=>{S?b(S):g($)}),await Promise.all([new Promise(async S=>{await this.sendRequest({clientRpcId:v,topic:h,method:"wc_sessionRequest",params:{request:a,chainId:n},expiry:p,throwOnFailedPublish:!0}).catch($=>b($)),this.client.events.emit("session_request_sent",{topic:h,request:a,chainId:n,id:v}),S()}),new Promise(async S=>{const $=await R0(this.client.core.storage,Pl);O0({id:v,topic:h,wcDeepLink:$}),S()}),m()]).then(S=>S[2])},this.respond=async i=>{await this.isInitialized(),await this.isValidRespond(i);const{topic:n,response:a}=i,{id:h}=a;mi(a)?await this.sendResult({id:h,topic:n,result:a.result,throwOnFailedPublish:!0}):Kr(a)&&await this.sendError(h,n,a.error),this.cleanupAfterResponse(i)},this.ping=async i=>{await this.isInitialized(),await this.isValidPing(i);const{topic:n}=i;if(this.client.session.keys.includes(n)){const a=await this.sendRequest({topic:n,method:"wc_sessionPing",params:{}}),{done:h,resolve:p,reject:v}=ls();this.events.once(St("session_ping",a),({error:m})=>{m?v(m):p()}),await h()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async i=>{await this.isInitialized(),await this.isValidEmit(i);const{topic:n,event:a,chainId:h}=i;await this.sendRequest({topic:n,method:"wc_sessionEvent",params:{event:a,chainId:h}})},this.disconnect=async i=>{await this.isInitialized(),await this.isValidDisconnect(i);const{topic:n}=i;this.client.session.keys.includes(n)?(await this.sendRequest({topic:n,method:"wc_sessionDelete",params:kt("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=i=>(this.isInitialized(),this.client.session.getAll().filter(n=>A0(n,i))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async i=>{if(i.pairingTopic)try{const n=this.client.core.pairing.pairings.get(i.pairingTopic),a=this.client.core.pairing.pairings.getAll().filter(h=>{var p,v;return((p=h.peerMetadata)==null?void 0:p.url)&&((v=h.peerMetadata)==null?void 0:v.url)===i.peer.metadata.url&&h.topic&&h.topic!==n.topic});if(a.length===0)return;this.client.logger.info(`Cleaning up ${a.length} duplicate pairing(s)`),await Promise.all(a.map(h=>this.client.core.pairing.disconnect({topic:h.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(n){this.client.logger.error(n)}},this.deleteSession=async(i,n)=>{const{self:a}=this.client.session.get(i);await this.client.core.relayer.unsubscribe(i),this.client.session.delete(i,kt("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(a.publicKey)&&await this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.keychain.has(i)&&await this.client.core.crypto.deleteSymKey(i),n||this.client.core.expirer.del(i),this.client.core.storage.removeItem(Pl).catch(h=>this.client.logger.warn(h)),this.getPendingSessionRequests().forEach(h=>{h.topic===i&&this.deletePendingSessionRequest(h.id,kt("USER_DISCONNECTED"))})},this.deleteProposal=async(i,n)=>{await Promise.all([this.client.proposal.delete(i,kt("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(i)])},this.deletePendingSessionRequest=async(i,n,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(i,n),a?Promise.resolve():this.client.core.expirer.del(i)]),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(h=>h.id!==i),a&&(this.sessionRequestQueue.state=si.idle)},this.setExpiry=async(i,n)=>{this.client.session.keys.includes(i)&&await this.client.session.update(i,{expiry:n}),this.client.core.expirer.set(i,n)},this.setProposal=async(i,n)=>{await this.client.proposal.set(i,n),this.client.core.expirer.set(i,n.expiry)},this.setPendingSessionRequest=async i=>{const n=Hs.wc_sessionRequest.req.ttl,{id:a,topic:h,params:p,verifyContext:v}=i;await this.client.pendingRequest.set(a,{id:a,topic:h,params:p,verifyContext:v}),n&&this.client.core.expirer.set(a,Dr(n))},this.sendRequest=async i=>{const{topic:n,method:a,params:h,expiry:p,relayRpcId:v,clientRpcId:m,throwOnFailedPublish:g}=i,b=gs(a,h,m);if(Kl()&&mI.includes(a)){const q=ds(JSON.stringify(b));this.client.core.verify.register({attestationId:q})}const S=await this.client.core.crypto.encode(n,b),$=Hs[a].req;return p&&($.ttl=p),v&&($.id=v),this.client.core.history.set(n,b),g?($.internal=ks(sr({},$.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(n,S,$)):this.client.core.relayer.publish(n,S,$).catch(q=>this.client.logger.error(q)),b.id},this.sendResult=async i=>{const{id:n,topic:a,result:h,throwOnFailedPublish:p}=i,v=xa(n,h),m=await this.client.core.crypto.encode(a,v),g=await this.client.core.history.get(a,n),b=Hs[g.request.method].res;p?(b.internal=ks(sr({},b.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(a,m,b)):this.client.core.relayer.publish(a,m,b).catch(S=>this.client.logger.error(S)),await this.client.core.history.resolve(v)},this.sendError=async(i,n,a)=>{const h=Cc(i,a),p=await this.client.core.crypto.encode(n,h),v=await this.client.core.history.get(n,i),m=Hs[v.request.method].res;this.client.core.relayer.publish(n,p,m),await this.client.core.history.resolve(h)},this.cleanup=async()=>{const i=[],n=[];this.client.session.getAll().forEach(a=>{wi(a.expiry)&&i.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{wi(a.expiry)&&n.push(a.id)}),await Promise.all([...i.map(a=>this.deleteSession(a)),...n.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=async i=>{this.requestQueue.queue.push(i),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===si.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=si.active;const i=this.requestQueue.queue.shift();if(i)try{this.processRequest(i),await new Promise(n=>setTimeout(n,300))}catch(n){this.client.logger.warn(n)}}this.requestQueue.state=si.idle},this.processRequest=i=>{const{topic:n,payload:a}=i,h=a.method;switch(h){case"wc_sessionPropose":return this.onSessionProposeRequest(n,a);case"wc_sessionSettle":return this.onSessionSettleRequest(n,a);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,a);case"wc_sessionExtend":return this.onSessionExtendRequest(n,a);case"wc_sessionPing":return this.onSessionPingRequest(n,a);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,a);case"wc_sessionRequest":return this.onSessionRequest(n,a);case"wc_sessionEvent":return this.onSessionEventRequest(n,a);default:return this.client.logger.info(`Unsupported request method ${h}`)}},this.onRelayEventResponse=async i=>{const{topic:n,payload:a}=i,h=(await this.client.core.history.get(n,a.id)).request.method;switch(h){case"wc_sessionPropose":return this.onSessionProposeResponse(n,a);case"wc_sessionSettle":return this.onSessionSettleResponse(n,a);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,a);case"wc_sessionExtend":return this.onSessionExtendResponse(n,a);case"wc_sessionPing":return this.onSessionPingResponse(n,a);case"wc_sessionRequest":return this.onSessionRequestResponse(n,a);default:return this.client.logger.info(`Unsupported response method ${h}`)}},this.onRelayEventUnknownPayload=i=>{const{topic:n}=i,{message:a}=B("MISSING_OR_INVALID",`Decoded payload on topic ${n} is not identifiable as a JSON-RPC request or a response.`);throw new Error(a)},this.onSessionProposeRequest=async(i,n)=>{const{params:a,id:h}=n;try{this.isValidConnect(sr({},n.params));const p=Dr(X.FIVE_MINUTES),v=sr({id:h,pairingTopic:i,expiry:p},a);await this.setProposal(h,v);const m=ds(JSON.stringify(n)),g=await this.getVerifyContext(m,v.proposer.metadata);this.client.events.emit("session_proposal",{id:h,params:v,verifyContext:g})}catch(p){await this.sendError(h,i,p),this.client.logger.error(p)}},this.onSessionProposeResponse=async(i,n)=>{const{id:a}=n;if(mi(n)){const{result:h}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:h});const p=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:p});const v=p.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:v});const m=h.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:m});const g=await this.client.core.crypto.generateSharedKey(v,m);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:g});const b=await this.client.core.relayer.subscribe(g);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:b}),await this.client.core.pairing.activate({topic:i})}else Kr(n)&&(await this.client.proposal.delete(a,kt("USER_DISCONNECTED")),this.events.emit(St("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(i,n)=>{const{id:a,params:h}=n;try{this.isValidSessionSettleRequest(h);const{relay:p,controller:v,expiry:m,namespaces:g,requiredNamespaces:b,optionalNamespaces:S,sessionProperties:$,pairingTopic:q}=n.params,A=sr({topic:i,relay:p,expiry:m,namespaces:g,acknowledged:!0,pairingTopic:q,requiredNamespaces:b,optionalNamespaces:S,controller:v.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:v.publicKey,metadata:v.metadata}},$&&{sessionProperties:$});await this.sendResult({id:n.id,topic:i,result:!0}),this.events.emit(St("session_connect"),{session:A}),this.cleanupDuplicatePairings(A)}catch(p){await this.sendError(a,i,p),this.client.logger.error(p)}},this.onSessionSettleResponse=async(i,n)=>{const{id:a}=n;mi(n)?(await this.client.session.update(i,{acknowledged:!0}),this.events.emit(St("session_approve",a),{})):Kr(n)&&(await this.client.session.delete(i,kt("USER_DISCONNECTED")),this.events.emit(St("session_approve",a),{error:n.error}))},this.onSessionUpdateRequest=async(i,n)=>{const{params:a,id:h}=n;try{const p=`${i}_session_update`,v=aa.get(p);if(v&&this.isRequestOutOfSync(v,h)){this.client.logger.info(`Discarding out of sync request - ${h}`);return}this.isValidUpdate(sr({topic:i},a)),await this.client.session.update(i,{namespaces:a.namespaces}),await this.sendResult({id:h,topic:i,result:!0}),this.client.events.emit("session_update",{id:h,topic:i,params:a}),aa.set(p,h)}catch(p){await this.sendError(h,i,p),this.client.logger.error(p)}},this.isRequestOutOfSync=(i,n)=>parseInt(n.toString().slice(0,-3))<=parseInt(i.toString().slice(0,-3)),this.onSessionUpdateResponse=(i,n)=>{const{id:a}=n;mi(n)?this.events.emit(St("session_update",a),{}):Kr(n)&&this.events.emit(St("session_update",a),{error:n.error})},this.onSessionExtendRequest=async(i,n)=>{const{id:a}=n;try{this.isValidExtend({topic:i}),await this.setExpiry(i,Dr(ha)),await this.sendResult({id:a,topic:i,result:!0}),this.client.events.emit("session_extend",{id:a,topic:i})}catch(h){await this.sendError(a,i,h),this.client.logger.error(h)}},this.onSessionExtendResponse=(i,n)=>{const{id:a}=n;mi(n)?this.events.emit(St("session_extend",a),{}):Kr(n)&&this.events.emit(St("session_extend",a),{error:n.error})},this.onSessionPingRequest=async(i,n)=>{const{id:a}=n;try{this.isValidPing({topic:i}),await this.sendResult({id:a,topic:i,result:!0}),this.client.events.emit("session_ping",{id:a,topic:i})}catch(h){await this.sendError(a,i,h),this.client.logger.error(h)}},this.onSessionPingResponse=(i,n)=>{const{id:a}=n;setTimeout(()=>{mi(n)?this.events.emit(St("session_ping",a),{}):Kr(n)&&this.events.emit(St("session_ping",a),{error:n.error})},500)},this.onSessionDeleteRequest=async(i,n)=>{const{id:a}=n;try{this.isValidDisconnect({topic:i,reason:n.params}),await Promise.all([new Promise(h=>{this.client.core.relayer.once(Kt.publish,async()=>{h(await this.deleteSession(i))})}),this.sendResult({id:a,topic:i,result:!0})]),this.client.events.emit("session_delete",{id:a,topic:i})}catch(h){this.client.logger.error(h)}},this.onSessionRequest=async(i,n)=>{const{id:a,params:h}=n;try{this.isValidRequest(sr({topic:i},h));const p=ds(JSON.stringify(gs("wc_sessionRequest",h,a))),v=this.client.session.get(i),m=await this.getVerifyContext(p,v.peer.metadata),g={id:a,topic:i,params:h,verifyContext:m};await this.setPendingSessionRequest(g),this.addSessionRequestToSessionRequestQueue(g),this.processSessionRequestQueue()}catch(p){await this.sendError(a,i,p),this.client.logger.error(p)}},this.onSessionRequestResponse=(i,n)=>{const{id:a}=n;mi(n)?this.events.emit(St("session_request",a),{result:n.result}):Kr(n)&&this.events.emit(St("session_request",a),{error:n.error})},this.onSessionEventRequest=async(i,n)=>{const{id:a,params:h}=n;try{const p=`${i}_session_event_${h.event.name}`,v=aa.get(p);if(v&&this.isRequestOutOfSync(v,a)){this.client.logger.info(`Discarding out of sync request - ${a}`);return}this.isValidEmit(sr({topic:i},h)),this.client.events.emit("session_event",{id:a,topic:i,params:h}),aa.set(p,a)}catch(p){await this.sendError(a,i,p),this.client.logger.error(p)}},this.addSessionRequestToSessionRequestQueue=i=>{this.sessionRequestQueue.queue.push(i)},this.cleanupAfterResponse=i=>{this.deletePendingSessionRequest(i.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=si.idle,this.processSessionRequestQueue()},X.toMiliseconds(this.requestQueueDelay))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===si.active){this.client.logger.info("session request queue is already active.");return}const i=this.sessionRequestQueue.queue[0];if(!i){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=si.active,this.client.events.emit("session_request",i)}catch(n){this.client.logger.error(n)}},this.onPairingCreated=i=>{if(i.active)return;const n=this.client.proposal.getAll().find(a=>a.pairingTopic===i.topic);n&&this.onSessionProposeRequest(i.topic,gs("wc_sessionPropose",{requiredNamespaces:n.requiredNamespaces,optionalNamespaces:n.optionalNamespaces,relays:n.relays,proposer:n.proposer,sessionProperties:n.sessionProperties},n.id))},this.isValidConnect=async i=>{if(!ar(i)){const{message:m}=B("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(i)}`);throw new Error(m)}const{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:h,sessionProperties:p,relays:v}=i;if(_i(n)||await this.isValidPairingTopic(n),!C0(v)){const{message:m}=B("MISSING_OR_INVALID",`connect() relays: ${v}`);throw new Error(m)}!_i(a)&&da(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!_i(h)&&da(h)!==0&&this.validateNamespaces(h,"optionalNamespaces"),_i(p)||this.validateSessionProps(p,"sessionProperties")},this.validateNamespaces=(i,n)=>{const a=T0(i,"connect()",n);if(a)throw new Error(a.message)},this.isValidApprove=async i=>{if(!ar(i))throw new Error(B("MISSING_OR_INVALID",`approve() params: ${i}`).message);const{id:n,namespaces:a,relayProtocol:h,sessionProperties:p}=i;await this.isValidProposalId(n);const v=this.client.proposal.get(n),m=tc(a,"approve()");if(m)throw new Error(m.message);const g=Hh(v.requiredNamespaces,a,"approve()");if(g)throw new Error(g.message);if(!fs(h,!0)){const{message:b}=B("MISSING_OR_INVALID",`approve() relayProtocol: ${h}`);throw new Error(b)}_i(p)||this.validateSessionProps(p,"sessionProperties")},this.isValidReject=async i=>{if(!ar(i)){const{message:h}=B("MISSING_OR_INVALID",`reject() params: ${i}`);throw new Error(h)}const{id:n,reason:a}=i;if(await this.isValidProposalId(n),!$0(a)){const{message:h}=B("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(h)}},this.isValidSessionSettleRequest=i=>{if(!ar(i)){const{message:g}=B("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${i}`);throw new Error(g)}const{relay:n,controller:a,namespaces:h,expiry:p}=i;if(!N0(n)){const{message:g}=B("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(g)}const v=D0(a,"onSessionSettleRequest()");if(v)throw new Error(v.message);const m=tc(h,"onSessionSettleRequest()");if(m)throw new Error(m.message);if(wi(p)){const{message:g}=B("EXPIRED","onSessionSettleRequest()");throw new Error(g)}},this.isValidUpdate=async i=>{if(!ar(i)){const{message:m}=B("MISSING_OR_INVALID",`update() params: ${i}`);throw new Error(m)}const{topic:n,namespaces:a}=i;await this.isValidSessionTopic(n);const h=this.client.session.get(n),p=tc(a,"update()");if(p)throw new Error(p.message);const v=Hh(h.requiredNamespaces,a,"update()");if(v)throw new Error(v.message)},this.isValidExtend=async i=>{if(!ar(i)){const{message:a}=B("MISSING_OR_INVALID",`extend() params: ${i}`);throw new Error(a)}const{topic:n}=i;await this.isValidSessionTopic(n)},this.isValidRequest=async i=>{if(!ar(i)){const{message:m}=B("MISSING_OR_INVALID",`request() params: ${i}`);throw new Error(m)}const{topic:n,request:a,chainId:h,expiry:p}=i;await this.isValidSessionTopic(n);const{namespaces:v}=this.client.session.get(n);if(!kh(v,h)){const{message:m}=B("MISSING_OR_INVALID",`request() chainId: ${h}`);throw new Error(m)}if(!q0(a)){const{message:m}=B("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(m)}if(!L0(v,h,a.method)){const{message:m}=B("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(m)}if(p&&!z0(p,fc)){const{message:m}=B("MISSING_OR_INVALID",`request() expiry: ${p}. Expiry must be a number (in seconds) between ${fc.min} and ${fc.max}`);throw new Error(m)}},this.isValidRespond=async i=>{var n;if(!ar(i)){const{message:p}=B("MISSING_OR_INVALID",`respond() params: ${i}`);throw new Error(p)}const{topic:a,response:h}=i;try{await this.isValidSessionTopic(a)}catch(p){throw(n=i==null?void 0:i.response)!=null&&n.id&&this.cleanupAfterResponse(i),p}if(!j0(h)){const{message:p}=B("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(h)}`);throw new Error(p)}},this.isValidPing=async i=>{if(!ar(i)){const{message:a}=B("MISSING_OR_INVALID",`ping() params: ${i}`);throw new Error(a)}const{topic:n}=i;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async i=>{if(!ar(i)){const{message:v}=B("MISSING_OR_INVALID",`emit() params: ${i}`);throw new Error(v)}const{topic:n,event:a,chainId:h}=i;await this.isValidSessionTopic(n);const{namespaces:p}=this.client.session.get(n);if(!kh(p,h)){const{message:v}=B("MISSING_OR_INVALID",`emit() chainId: ${h}`);throw new Error(v)}if(!M0(a)){const{message:v}=B("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(v)}if(!U0(p,h,a.name)){const{message:v}=B("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(v)}},this.isValidDisconnect=async i=>{if(!ar(i)){const{message:a}=B("MISSING_OR_INVALID",`disconnect() params: ${i}`);throw new Error(a)}const{topic:n}=i;await this.isValidSessionOrPairingTopic(n)},this.getVerifyContext=async(i,n)=>{const a={verified:{verifyUrl:n.verifyUrl||ps,validation:"UNKNOWN",origin:n.url||""}};try{const h=await this.client.core.verify.resolve({attestationId:i,verifyUrl:n.verifyUrl});h&&(a.verified.origin=h.origin,a.verified.isScam=h.isScam,a.verified.validation=h.origin===new URL(n.url).origin?"VALID":"INVALID")}catch(h){this.client.logger.info(h)}return this.client.logger.info(`Verify context: ${JSON.stringify(a)}`),a},this.validateSessionProps=(i,n)=>{Object.values(i).forEach(a=>{if(!fs(a,!1)){const{message:h}=B("MISSING_OR_INVALID",`${n} must be in Record format. Received: ${JSON.stringify(a)}`);throw new Error(h)}})}}async isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(Kt.message,async r=>{const{topic:i,message:n}=r;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;const a=await this.client.core.crypto.decode(i,n);try{Tc(a)?(this.client.core.history.set(i,a),this.onRelayEventRequest({topic:i,payload:a})):Ea(a)?(await this.client.core.history.resolve(a),await this.onRelayEventResponse({topic:i,payload:a}),this.client.core.history.delete(i,a.id)):this.onRelayEventUnknownPayload({topic:i,payload:a})}catch(h){this.client.logger.error(h)}})}registerExpirerEvents(){this.client.core.expirer.on(Pr.expired,async r=>{const{topic:i,id:n}=kl(r.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,B("EXPIRED"),!0);i?this.client.session.keys.includes(i)&&(await this.deleteSession(i,!0),this.client.events.emit("session_expire",{topic:i})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}registerPairingEvents(){this.client.core.pairing.events.on(Fs.create,r=>this.onPairingCreated(r))}isValidPairingTopic(r){if(!fs(r,!1)){const{message:i}=B("MISSING_OR_INVALID",`pairing topic should be a string: ${r}`);throw new Error(i)}if(!this.client.core.pairing.pairings.keys.includes(r)){const{message:i}=B("NO_MATCHING_KEY",`pairing topic doesn't exist: ${r}`);throw new Error(i)}if(wi(this.client.core.pairing.pairings.get(r).expiry)){const{message:i}=B("EXPIRED",`pairing topic: ${r}`);throw new Error(i)}}async isValidSessionTopic(r){if(!fs(r,!1)){const{message:i}=B("MISSING_OR_INVALID",`session topic should be a string: ${r}`);throw new Error(i)}if(!this.client.session.keys.includes(r)){const{message:i}=B("NO_MATCHING_KEY",`session topic doesn't exist: ${r}`);throw new Error(i)}if(wi(this.client.session.get(r).expiry)){await this.deleteSession(r);const{message:i}=B("EXPIRED",`session topic: ${r}`);throw new Error(i)}}async isValidSessionOrPairingTopic(r){if(this.client.session.keys.includes(r))await this.isValidSessionTopic(r);else if(this.client.core.pairing.pairings.keys.includes(r))this.isValidPairingTopic(r);else if(fs(r,!1)){const{message:i}=B("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${r}`);throw new Error(i)}else{const{message:i}=B("MISSING_OR_INVALID",`session or pairing topic should be a string: ${r}`);throw new Error(i)}}async isValidProposalId(r){if(!H0(r)){const{message:i}=B("MISSING_OR_INVALID",`proposal id should be a number: ${r}`);throw new Error(i)}if(!this.client.proposal.keys.includes(r)){const{message:i}=B("NO_MATCHING_KEY",`proposal id doesn't exist: ${r}`);throw new Error(i)}if(wi(this.client.proposal.get(r).expiry)){await this.deleteProposal(r);const{message:i}=B("EXPIRED",`proposal id: ${r}`);throw new Error(i)}}}class PI extends Aa{constructor(r,i){super(r,i,dI,qc),this.core=r,this.logger=i}}class SI extends Aa{constructor(r,i){super(r,i,gI,qc),this.core=r,this.logger=i}}class RI extends Aa{constructor(r,i){super(r,i,vI,qc,n=>n.id),this.core=r,this.logger=i}}let OI=class Ef extends f1{constructor(r){super(r),this.protocol=wf,this.version=_f,this.name=lc.name,this.events=new qr.EventEmitter,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(a){throw this.logger.error(a.message),a}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(a){throw this.logger.error(a.message),a}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(a){throw this.logger.error(a.message),a}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(a){throw this.logger.error(a.message),a}},this.update=async n=>{try{return await this.engine.update(n)}catch(a){throw this.logger.error(a.message),a}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(a){throw this.logger.error(a.message),a}},this.request=async n=>{try{return await this.engine.request(n)}catch(a){throw this.logger.error(a.message),a}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(a){throw this.logger.error(a.message),a}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(a){throw this.logger.error(a.message),a}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(a){throw this.logger.error(a.message),a}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(a){throw this.logger.error(a.message),a}},this.find=n=>{try{return this.engine.find(n)}catch(a){throw this.logger.error(a.message),a}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=(r==null?void 0:r.name)||lc.name,this.metadata=(r==null?void 0:r.metadata)||P0();const i=typeof(r==null?void 0:r.logger)<"u"&&typeof(r==null?void 0:r.logger)!="string"?r.logger:Sa(Ra({level:(r==null?void 0:r.logger)||lc.logger}));this.core=(r==null?void 0:r.core)||new pI(r),this.logger=cr(i,this.name),this.session=new SI(this.core,this.logger),this.proposal=new PI(this.core,this.logger),this.pendingRequest=new RI(this.core,this.logger),this.engine=new xI(this)}static async init(r){const i=new Ef(r);return await i.initialize(),i}get context(){return or(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(r){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(r.message),r}}};const Ol="error",AI="wss://relay.walletconnect.com",CI="wc",TI="universal_provider",Al=`${CI}@2:${TI}:`,$I="https://rpc.walletconnect.com/v1/",ai={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var Ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xc={exports:{}};/** -* @license -* Lodash -* Copyright OpenJS Foundation and other contributors -* Released under MIT license -* Based on Underscore.js 1.8.3 -* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors -*/(function(o,r){(function(){var i,n="4.17.21",a=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",v="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",g=500,b="__lodash_placeholder__",S=1,$=2,q=4,A=1,Z=2,se=1,ne=2,ce=4,ae=8,te=16,fe=32,pe=64,Q=128,xe=256,Tt=512,yt=30,Yt="...",Vt=800,ur=16,M=1,U=2,Ge=3,qe=1/0,G=9007199254740991,K=17976931348623157e292,H=NaN,V=4294967295,Rt=V-1,rt=V>>>1,xi=[["ary",Q],["bind",se],["bindKey",ne],["curry",ae],["curryRight",te],["flip",Tt],["partial",fe],["partialRight",pe],["rearg",xe]],we="[object Arguments]",Sr="[object Array]",T="[object AsyncFunction]",C="[object Boolean]",R="[object Date]",u="[object DOMException]",I="[object Error]",J="[object Function]",oe="[object GeneratorFunction]",ge="[object Map]",Pe="[object Number]",Re="[object Null]",_e="[object Object]",vt="[object Promise]",lt="[object Proxy]",Ze="[object RegExp]",Ae="[object Set]",ke="[object String]",Ke="[object Symbol]",Xe="[object Undefined]",Ne="[object WeakMap]",Ve="[object WeakSet]",Se="[object ArrayBuffer]",Le="[object DataView]",it="[object Float32Array]",Te="[object Float64Array]",mt="[object Int8Array]",Ot="[object Int16Array]",Lt="[object Int32Array]",zt="[object Uint8Array]",$t="[object Uint8ClampedArray]",Ft="[object Uint16Array]",Zt="[object Uint32Array]",Lr=/\b__p \+= '';/g,Bt=/\b(__p \+=) '' \+/g,Fr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oi=/&(?:amp|lt|gt|quot|#39);/g,Pi=/[&<>"']/g,st=RegExp(oi.source),We=RegExp(Pi.source),nt=/<%-([\s\S]+?)%>/g,at=/<%([\s\S]+?)%>/g,et=/<%=([\s\S]+?)%>/g,Je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wt=/^\w*$/,_t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ot=/[\\^$.*+?()[\]{}|]/g,bt=RegExp(ot.source),ct=/^\s+/,ft=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,He=/\{\n\/\* \[wrapped with (.+)\] \*/,It=/,? & /,Et=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ca=/[()=,{}\[\]\/\s]/,Ta=/\\(\\)?/g,$a=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yr=/\w*$/,Na=/^[-+]0x[0-9a-f]+$/i,Da=/^0b[01]+$/i,qa=/^\[object .+?Constructor\]$/,La=/^0o[0-7]+$/i,za=/^(?:0|[1-9]\d*)$/,Br=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ki=/($^)/,ja=/['\n\r\u2028\u2029\\]/g,Vi="\\ud800-\\udfff",Ma="\\u0300-\\u036f",Ua="\\ufe20-\\ufe2f",Fi="\\u20d0-\\u20ff",en=Ma+Ua+Fi,tn="\\u2700-\\u27bf",Rr="a-z\\xdf-\\xf6\\xf8-\\xff",Ha="\\xac\\xb1\\xd7\\xf7",ka="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ka="\\u2000-\\u206f",Va=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rn="A-Z\\xc0-\\xd6\\xd8-\\xde",sn="\\ufe0e\\ufe0f",Si=Ha+ka+Ka+Va,ms="['’]",Ri="["+Vi+"]",ws="["+Si+"]",Oi="["+en+"]",nn="\\d+",Fa="["+tn+"]",an="["+Rr+"]",on="[^"+Vi+Si+nn+tn+Rr+rn+"]",Bi="\\ud83c[\\udffb-\\udfff]",Ba="(?:"+Oi+"|"+Bi+")",cn="[^"+Vi+"]",Gi="(?:\\ud83c[\\udde6-\\uddff]){2}",ci="[\\ud800-\\udbff][\\udc00-\\udfff]",hr="["+rn+"]",un="\\u200d",hn="(?:"+an+"|"+on+")",zr="(?:"+hr+"|"+on+")",ln="(?:"+ms+"(?:d|ll|m|re|s|t|ve))?",fn="(?:"+ms+"(?:D|LL|M|RE|S|T|VE))?",pn=Ba+"?",dn="["+sn+"]?",Ga="(?:"+un+"(?:"+[cn,Gi,ci].join("|")+")"+dn+pn+")*",Gr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yn=dn+pn+Ga,Wi="(?:"+[Fa,Gi,ci].join("|")+")"+yn,Wa="(?:"+[cn+Oi+"?",Oi,Gi,ci,Ri].join("|")+")",_s=RegExp(ms,"g"),Ja=RegExp(Oi,"g"),Ji=RegExp(Bi+"(?="+Bi+")|"+Wa+yn,"g"),vn=RegExp([hr+"?"+an+"+"+ln+"(?="+[ws,hr,"$"].join("|")+")",zr+"+"+fn+"(?="+[ws,hr+hn,"$"].join("|")+")",hr+"?"+hn+"+"+ln,hr+"+"+fn,gn,Gr,nn,Wi].join("|"),"g"),mn=RegExp("["+un+Vi+en+sn+"]"),Ai=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Qa=-1,ze={};ze[it]=ze[Te]=ze[mt]=ze[Ot]=ze[Lt]=ze[zt]=ze[$t]=ze[Ft]=ze[Zt]=!0,ze[we]=ze[Sr]=ze[Se]=ze[C]=ze[Le]=ze[R]=ze[I]=ze[J]=ze[ge]=ze[Pe]=ze[_e]=ze[Ze]=ze[Ae]=ze[ke]=ze[Ne]=!1;var De={};De[we]=De[Sr]=De[Se]=De[Le]=De[C]=De[R]=De[it]=De[Te]=De[mt]=De[Ot]=De[Lt]=De[ge]=De[Pe]=De[_e]=De[Ze]=De[Ae]=De[ke]=De[Ke]=De[zt]=De[$t]=De[Ft]=De[Zt]=!0,De[I]=De[J]=De[Ne]=!1;var y={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},E={"&":"&","<":"<",">":">",'"':""","'":"'"},z={"&":"&","<":"<",">":">",""":'"',"'":"'"},F={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},je=parseFloat,he=parseInt,Fe=typeof Ks=="object"&&Ks&&Ks.Object===Object&&Ks,xt=typeof self=="object"&&self&&self.Object===Object&&self,Ie=Fe||xt||Function("return this")(),Me=r&&!r.nodeType&&r,pt=Me&&!0&&o&&!o.nodeType&&o,Xt=pt&&pt.exports===Me,Pt=Xt&&Fe.process,Be=function(){try{var x=pt&&pt.require&&pt.require("util").types;return x||Pt&&Pt.binding&&Pt.binding("util")}catch{}}(),Gt=Be&&Be.isArrayBuffer,Or=Be&&Be.isDate,vr=Be&&Be.isMap,jr=Be&&Be.isRegExp,bs=Be&&Be.isSet,Ci=Be&&Be.isTypedArray;function Nt(x,N,O){switch(O.length){case 0:return x.call(N);case 1:return x.call(N,O[0]);case 2:return x.call(N,O[0],O[1]);case 3:return x.call(N,O[0],O[1],O[2])}return x.apply(N,O)}function Sf(x,N,O,W){for(var ue=-1,Oe=x==null?0:x.length;++ue-1}function Ya(x,N,O){for(var W=-1,ue=x==null?0:x.length;++W-1;);return O}function Fc(x,N){for(var O=x.length;O--&&Qi(N,x[O],0)>-1;);return O}function qf(x,N){for(var O=x.length,W=0;O--;)x[O]===N&&++W;return W}var Lf=to(y),zf=to(E);function jf(x){return"\\"+F[x]}function Mf(x,N){return x==null?i:x[N]}function Yi(x){return mn.test(x)}function Uf(x){return Ai.test(x)}function Hf(x){for(var N,O=[];!(N=x.next()).done;)O.push(N.value);return O}function no(x){var N=-1,O=Array(x.size);return x.forEach(function(W,ue){O[++N]=[ue,W]}),O}function Bc(x,N){return function(O){return x(N(O))}}function li(x,N){for(var O=-1,W=x.length,ue=0,Oe=[];++O-1}function Op(e,t){var s=this.__data__,c=zn(s,e);return c<0?(++this.size,s.push([e,t])):s[c][1]=t,this}Wr.prototype.clear=xp,Wr.prototype.delete=Pp,Wr.prototype.get=Sp,Wr.prototype.has=Rp,Wr.prototype.set=Op;function Jr(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function br(e,t,s,c,l,d){var w,_=t&S,P=t&$,D=t&q;if(s&&(w=l?s(e,c,l,d):s(e)),w!==i)return w;if(!tt(e))return e;var L=le(e);if(L){if(w=$d(e),!_)return er(e,w)}else{var j=Ht(e),k=j==J||j==oe;if(vi(e))return Ou(e,_);if(j==_e||j==we||k&&!l){if(w=P||k?{}:Gu(e),!_)return P?bd(e,Vp(w,e)):_d(e,su(w,e))}else{if(!De[j])return l?e:{};w=Nd(e,j,_)}}d||(d=new Cr);var Y=d.get(e);if(Y)return Y;d.set(e,w),Ih(e)?e.forEach(function(ie){w.add(br(ie,t,s,ie,e,d))}):_h(e)&&e.forEach(function(ie,me){w.set(me,br(ie,t,s,me,e,d))});var re=D?P?$o:To:P?rr:Dt,ye=L?i:re(e);return mr(ye||e,function(ie,me){ye&&(me=ie,ie=e[me]),Os(w,me,br(ie,t,s,me,e,d))}),w}function Fp(e){var t=Dt(e);return function(s){return nu(s,e,t)}}function nu(e,t,s){var c=s.length;if(e==null)return!c;for(e=Ue(e);c--;){var l=s[c],d=t[l],w=e[l];if(w===i&&!(l in e)||!d(w))return!1}return!0}function au(e,t,s){if(typeof e!="function")throw new wr(p);return qs(function(){e.apply(i,s)},t)}function As(e,t,s,c){var l=-1,d=_n,w=!0,_=e.length,P=[],D=t.length;if(!_)return P;s&&(t=Qe(t,lr(s))),c?(d=Ya,w=!1):t.length>=a&&(d=Is,w=!1,t=new Ni(t));e:for(;++l<_;){var L=e[l],j=s==null?L:s(L);if(L=c||L!==0?L:0,w&&j===j){for(var k=D;k--;)if(t[k]===j)continue e;P.push(L)}else d(t,j,c)||P.push(L)}return P}var pi=Nu(Mr),ou=Nu(po,!0);function Bp(e,t){var s=!0;return pi(e,function(c,l,d){return s=!!t(c,l,d),s}),s}function jn(e,t,s){for(var c=-1,l=e.length;++cl?0:l+s),c=c===i||c>l?l:de(c),c<0&&(c+=l),c=s>c?0:xh(c);s0&&s(_)?t>1?jt(_,t-1,s,c,l):hi(l,_):c||(l[l.length]=_)}return l}var fo=Du(),uu=Du(!0);function Mr(e,t){return e&&fo(e,t,Dt)}function po(e,t){return e&&uu(e,t,Dt)}function Mn(e,t){return ui(t,function(s){return ei(e[s])})}function qi(e,t){t=gi(t,e);for(var s=0,c=t.length;e!=null&&st}function Wp(e,t){return e!=null&&$e.call(e,t)}function Jp(e,t){return e!=null&&t in Ue(e)}function Qp(e,t,s){return e>=Ut(t,s)&&e=120&&L.length>=120)?new Ni(w&&L):i}L=e[0];var j=-1,k=_[0];e:for(;++j-1;)_!==e&&Cn.call(_,P,1),Cn.call(e,P,1);return e}function _u(e,t){for(var s=e?t.length:0,c=s-1;s--;){var l=t[s];if(s==c||l!==d){var d=l;Xr(l)?Cn.call(e,l,1):xo(e,l)}}return e}function bo(e,t){return e+Nn(eu()*(t-e+1))}function ud(e,t,s,c){for(var l=-1,d=Ct($n((t-e)/(s||1)),0),w=O(d);d--;)w[c?d:++l]=e,e+=s;return w}function Io(e,t){var s="";if(!e||t<1||t>G)return s;do t%2&&(s+=e),t=Nn(t/2),t&&(e+=e);while(t);return s}function ve(e,t){return Mo(Qu(e,t,ir),e+"")}function hd(e){return iu(cs(e))}function ld(e,t){var s=cs(e);return Qn(s,Di(t,0,s.length))}function $s(e,t,s,c){if(!tt(e))return e;t=gi(t,e);for(var l=-1,d=t.length,w=d-1,_=e;_!=null&&++ll?0:l+t),s=s>l?l:s,s<0&&(s+=l),l=t>s?0:s-t>>>0,t>>>=0;for(var d=O(l);++c>>1,w=e[d];w!==null&&!pr(w)&&(s?w<=t:w=a){var D=t?null:Pd(e);if(D)return In(D);w=!1,l=Is,P=new Ni}else P=t?[]:_;e:for(;++c=c?e:Ir(e,t,s)}var Ru=rp||function(e){return Ie.clearTimeout(e)};function Ou(e,t){if(t)return e.slice();var s=e.length,c=Jc?Jc(s):new e.constructor(s);return e.copy(c),c}function Oo(e){var t=new e.constructor(e.byteLength);return new On(t).set(new On(e)),t}function yd(e,t){var s=t?Oo(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function vd(e){var t=new e.constructor(e.source,yr.exec(e));return t.lastIndex=e.lastIndex,t}function md(e){return Rs?Ue(Rs.call(e)):{}}function Au(e,t){var s=t?Oo(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function Cu(e,t){if(e!==t){var s=e!==i,c=e===null,l=e===e,d=pr(e),w=t!==i,_=t===null,P=t===t,D=pr(t);if(!_&&!D&&!d&&e>t||d&&w&&P&&!_&&!D||c&&w&&P||!s&&P||!l)return 1;if(!c&&!d&&!D&&e=_)return P;var D=s[c];return P*(D=="desc"?-1:1)}}return e.index-t.index}function Tu(e,t,s,c){for(var l=-1,d=e.length,w=s.length,_=-1,P=t.length,D=Ct(d-w,0),L=O(P+D),j=!c;++_1?s[l-1]:i,w=l>2?s[2]:i;for(d=e.length>3&&typeof d=="function"?(l--,d):i,w&&Jt(s[0],s[1],w)&&(d=l<3?i:d,l=1),t=Ue(t);++c-1?l[d?t[w]:w]:i}}function zu(e){return Zr(function(t){var s=t.length,c=s,l=_r.prototype.thru;for(e&&t.reverse();c--;){var d=t[c];if(typeof d!="function")throw new wr(p);if(l&&!w&&Wn(d)=="wrapper")var w=new _r([],!0)}for(c=w?c:s;++c1&&Ee.reverse(),L&&P_))return!1;var D=d.get(e),L=d.get(t);if(D&&L)return D==t&&L==e;var j=-1,k=!0,Y=s&Z?new Ni:i;for(d.set(e,t),d.set(t,e);++j<_;){var re=e[j],ye=t[j];if(c)var ie=w?c(ye,re,j,t,e,d):c(re,ye,j,e,t,d);if(ie!==i){if(ie)continue;k=!1;break}if(Y){if(!Xa(t,function(me,Ee){if(!Is(Y,Ee)&&(re===me||l(re,me,s,c,d)))return Y.push(Ee)})){k=!1;break}}else if(!(re===ye||l(re,ye,s,c,d))){k=!1;break}}return d.delete(e),d.delete(t),k}function Rd(e,t,s,c,l,d,w){switch(s){case Le:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Se:return!(e.byteLength!=t.byteLength||!d(new On(e),new On(t)));case C:case R:case Pe:return Tr(+e,+t);case I:return e.name==t.name&&e.message==t.message;case Ze:case ke:return e==t+"";case ge:var _=no;case Ae:var P=c&A;if(_||(_=In),e.size!=t.size&&!P)return!1;var D=w.get(e);if(D)return D==t;c|=Z,w.set(e,t);var L=Vu(_(e),_(t),c,l,d,w);return w.delete(e),L;case Ke:if(Rs)return Rs.call(e)==Rs.call(t)}return!1}function Od(e,t,s,c,l,d){var w=s&A,_=To(e),P=_.length,D=To(t),L=D.length;if(P!=L&&!w)return!1;for(var j=P;j--;){var k=_[j];if(!(w?k in t:$e.call(t,k)))return!1}var Y=d.get(e),re=d.get(t);if(Y&&re)return Y==t&&re==e;var ye=!0;d.set(e,t),d.set(t,e);for(var ie=w;++j1?"& ":"")+t[c],t=t.join(s>2?", ":" "),e.replace(ut,`{ -/* [wrapped with `+t+`] */ -`)}function qd(e){return le(e)||ji(e)||!!(Zc&&e&&e[Zc])}function Xr(e,t){var s=typeof e;return t=t??G,!!t&&(s=="number"||s!="symbol"&&za.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Vt)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var s=-1,c=e.length,l=c-1;for(t=t===i?c:t;++s1?e[t-1]:i;return s=typeof s=="function"?(e.pop(),s):i,ch(e,s)});function uh(e){var t=f(e);return t.__chain__=!0,t}function Bg(e,t){return t(e),e}function Yn(e,t){return t(e)}var Gg=Zr(function(e){var t=e.length,s=t?e[0]:0,c=this.__wrapped__,l=function(d){return lo(d,e)};return t>1||this.__actions__.length||!(c instanceof be)||!Xr(s)?this.thru(l):(c=c.slice(s,+s+(t?1:0)),c.__actions__.push({func:Yn,args:[l],thisArg:i}),new _r(c,this.__chain__).thru(function(d){return t&&!d.length&&d.push(i),d}))});function Wg(){return uh(this)}function Jg(){return new _r(this.value(),this.__chain__)}function Qg(){this.__values__===i&&(this.__values__=Eh(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Yg(){return this}function Zg(e){for(var t,s=this;s instanceof Ln;){var c=rh(s);c.__index__=0,c.__values__=i,t?l.__wrapped__=c:t=c;var l=c;s=s.__wrapped__}return l.__wrapped__=e,t}function Xg(){var e=this.__wrapped__;if(e instanceof be){var t=e;return this.__actions__.length&&(t=new be(this)),t=t.reverse(),t.__actions__.push({func:Yn,args:[Uo],thisArg:i}),new _r(t,this.__chain__)}return this.thru(Uo)}function ey(){return Pu(this.__wrapped__,this.__actions__)}var ty=Kn(function(e,t,s){$e.call(e,s)?++e[s]:Qr(e,s,1)});function ry(e,t,s){var c=le(e)?jc:Bp;return s&&Jt(e,t,s)&&(t=i),c(e,ee(t,3))}function iy(e,t){var s=le(e)?ui:cu;return s(e,ee(t,3))}var sy=Lu(ih),ny=Lu(sh);function ay(e,t){return jt(Zn(e,t),1)}function oy(e,t){return jt(Zn(e,t),qe)}function cy(e,t,s){return s=s===i?1:de(s),jt(Zn(e,t),s)}function hh(e,t){var s=le(e)?mr:pi;return s(e,ee(t,3))}function lh(e,t){var s=le(e)?Rf:ou;return s(e,ee(t,3))}var uy=Kn(function(e,t,s){$e.call(e,s)?e[s].push(t):Qr(e,s,[t])});function hy(e,t,s,c){e=tr(e)?e:cs(e),s=s&&!c?de(s):0;var l=e.length;return s<0&&(s=Ct(l+s,0)),ia(e)?s<=l&&e.indexOf(t,s)>-1:!!l&&Qi(e,t,s)>-1}var ly=ve(function(e,t,s){var c=-1,l=typeof t=="function",d=tr(e)?O(e.length):[];return pi(e,function(w){d[++c]=l?Nt(t,w,s):Cs(w,t,s)}),d}),fy=Kn(function(e,t,s){Qr(e,s,t)});function Zn(e,t){var s=le(e)?Qe:du;return s(e,ee(t,3))}function py(e,t,s,c){return e==null?[]:(le(t)||(t=t==null?[]:[t]),s=c?i:s,le(s)||(s=s==null?[]:[s]),mu(e,t,s))}var dy=Kn(function(e,t,s){e[s?0:1].push(t)},function(){return[[],[]]});function gy(e,t,s){var c=le(e)?Za:kc,l=arguments.length<3;return c(e,ee(t,4),s,l,pi)}function yy(e,t,s){var c=le(e)?Of:kc,l=arguments.length<3;return c(e,ee(t,4),s,l,ou)}function vy(e,t){var s=le(e)?ui:cu;return s(e,ta(ee(t,3)))}function my(e){var t=le(e)?iu:hd;return t(e)}function wy(e,t,s){(s?Jt(e,t,s):t===i)?t=1:t=de(t);var c=le(e)?Hp:ld;return c(e,t)}function _y(e){var t=le(e)?kp:pd;return t(e)}function by(e){if(e==null)return 0;if(tr(e))return ia(e)?Zi(e):e.length;var t=Ht(e);return t==ge||t==Ae?e.size:mo(e).length}function Iy(e,t,s){var c=le(e)?Xa:dd;return s&&Jt(e,t,s)&&(t=i),c(e,ee(t,3))}var Ey=ve(function(e,t){if(e==null)return[];var s=t.length;return s>1&&Jt(e,t[0],t[1])?t=[]:s>2&&Jt(t[0],t[1],t[2])&&(t=[t[0]]),mu(e,jt(t,1),[])}),Xn=ip||function(){return Ie.Date.now()};function xy(e,t){if(typeof t!="function")throw new wr(p);return e=de(e),function(){if(--e<1)return t.apply(this,arguments)}}function fh(e,t,s){return t=s?i:t,t=e&&t==null?e.length:t,Yr(e,Q,i,i,i,i,t)}function ph(e,t){var s;if(typeof t!="function")throw new wr(p);return e=de(e),function(){return--e>0&&(s=t.apply(this,arguments)),e<=1&&(t=i),s}}var ko=ve(function(e,t,s){var c=se;if(s.length){var l=li(s,as(ko));c|=fe}return Yr(e,c,t,s,l)}),dh=ve(function(e,t,s){var c=se|ne;if(s.length){var l=li(s,as(dh));c|=fe}return Yr(t,c,e,s,l)});function gh(e,t,s){t=s?i:t;var c=Yr(e,ae,i,i,i,i,i,t);return c.placeholder=gh.placeholder,c}function yh(e,t,s){t=s?i:t;var c=Yr(e,te,i,i,i,i,i,t);return c.placeholder=yh.placeholder,c}function vh(e,t,s){var c,l,d,w,_,P,D=0,L=!1,j=!1,k=!0;if(typeof e!="function")throw new wr(p);t=xr(t)||0,tt(s)&&(L=!!s.leading,j="maxWait"in s,d=j?Ct(xr(s.maxWait)||0,t):d,k="trailing"in s?!!s.trailing:k);function Y(gt){var $r=c,ri=l;return c=l=i,D=gt,w=e.apply(ri,$r),w}function re(gt){return D=gt,_=qs(me,t),L?Y(gt):w}function ye(gt){var $r=gt-P,ri=gt-D,Lh=t-$r;return j?Ut(Lh,d-ri):Lh}function ie(gt){var $r=gt-P,ri=gt-D;return P===i||$r>=t||$r<0||j&&ri>=d}function me(){var gt=Xn();if(ie(gt))return Ee(gt);_=qs(me,ye(gt))}function Ee(gt){return _=i,k&&c?Y(gt):(c=l=i,w)}function dr(){_!==i&&Ru(_),D=0,c=P=l=_=i}function Qt(){return _===i?w:Ee(Xn())}function gr(){var gt=Xn(),$r=ie(gt);if(c=arguments,l=this,P=gt,$r){if(_===i)return re(P);if(j)return Ru(_),_=qs(me,t),Y(P)}return _===i&&(_=qs(me,t)),w}return gr.cancel=dr,gr.flush=Qt,gr}var Py=ve(function(e,t){return au(e,1,t)}),Sy=ve(function(e,t,s){return au(e,xr(t)||0,s)});function Ry(e){return Yr(e,Tt)}function ea(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new wr(p);var s=function(){var c=arguments,l=t?t.apply(this,c):c[0],d=s.cache;if(d.has(l))return d.get(l);var w=e.apply(this,c);return s.cache=d.set(l,w)||d,w};return s.cache=new(ea.Cache||Jr),s}ea.Cache=Jr;function ta(e){if(typeof e!="function")throw new wr(p);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Oy(e){return ph(2,e)}var Ay=gd(function(e,t){t=t.length==1&&le(t[0])?Qe(t[0],lr(ee())):Qe(jt(t,1),lr(ee()));var s=t.length;return ve(function(c){for(var l=-1,d=Ut(c.length,s);++l=t}),ji=lu(function(){return arguments}())?lu:function(e){return ht(e)&&$e.call(e,"callee")&&!Yc.call(e,"callee")},le=O.isArray,Vy=Gt?lr(Gt):Zp;function tr(e){return e!=null&&ra(e.length)&&!ei(e)}function dt(e){return ht(e)&&tr(e)}function Fy(e){return e===!0||e===!1||ht(e)&&Wt(e)==C}var vi=np||ec,By=Or?lr(Or):Xp;function Gy(e){return ht(e)&&e.nodeType===1&&!Ls(e)}function Wy(e){if(e==null)return!0;if(tr(e)&&(le(e)||typeof e=="string"||typeof e.splice=="function"||vi(e)||os(e)||ji(e)))return!e.length;var t=Ht(e);if(t==ge||t==Ae)return!e.size;if(Ds(e))return!mo(e).length;for(var s in e)if($e.call(e,s))return!1;return!0}function Jy(e,t){return Ts(e,t)}function Qy(e,t,s){s=typeof s=="function"?s:i;var c=s?s(e,t):i;return c===i?Ts(e,t,i,s):!!c}function Vo(e){if(!ht(e))return!1;var t=Wt(e);return t==I||t==u||typeof e.message=="string"&&typeof e.name=="string"&&!Ls(e)}function Yy(e){return typeof e=="number"&&Xc(e)}function ei(e){if(!tt(e))return!1;var t=Wt(e);return t==J||t==oe||t==T||t==lt}function wh(e){return typeof e=="number"&&e==de(e)}function ra(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=G}function tt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ht(e){return e!=null&&typeof e=="object"}var _h=vr?lr(vr):td;function Zy(e,t){return e===t||vo(e,t,Do(t))}function Xy(e,t,s){return s=typeof s=="function"?s:i,vo(e,t,Do(t),s)}function ev(e){return bh(e)&&e!=+e}function tv(e){if(jd(e))throw new ue(h);return fu(e)}function rv(e){return e===null}function iv(e){return e==null}function bh(e){return typeof e=="number"||ht(e)&&Wt(e)==Pe}function Ls(e){if(!ht(e)||Wt(e)!=_e)return!1;var t=An(e);if(t===null)return!0;var s=$e.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&Pn.call(s)==Xf}var Fo=jr?lr(jr):rd;function sv(e){return wh(e)&&e>=-G&&e<=G}var Ih=bs?lr(bs):id;function ia(e){return typeof e=="string"||!le(e)&&ht(e)&&Wt(e)==ke}function pr(e){return typeof e=="symbol"||ht(e)&&Wt(e)==Ke}var os=Ci?lr(Ci):sd;function nv(e){return e===i}function av(e){return ht(e)&&Ht(e)==Ne}function ov(e){return ht(e)&&Wt(e)==Ve}var cv=Gn(wo),uv=Gn(function(e,t){return e<=t});function Eh(e){if(!e)return[];if(tr(e))return ia(e)?Ar(e):er(e);if(Es&&e[Es])return Hf(e[Es]());var t=Ht(e),s=t==ge?no:t==Ae?In:cs;return s(e)}function ti(e){if(!e)return e===0?e:0;if(e=xr(e),e===qe||e===-qe){var t=e<0?-1:1;return t*K}return e===e?e:0}function de(e){var t=ti(e),s=t%1;return t===t?s?t-s:t:0}function xh(e){return e?Di(de(e),0,V):0}function xr(e){if(typeof e=="number")return e;if(pr(e))return H;if(tt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Kc(e);var s=Da.test(e);return s||La.test(e)?he(e.slice(2),s?2:8):Na.test(e)?H:+e}function Ph(e){return Ur(e,rr(e))}function hv(e){return e?Di(de(e),-G,G):e===0?e:0}function Ce(e){return e==null?"":fr(e)}var lv=ss(function(e,t){if(Ds(t)||tr(t)){Ur(t,Dt(t),e);return}for(var s in t)$e.call(t,s)&&Os(e,s,t[s])}),Sh=ss(function(e,t){Ur(t,rr(t),e)}),sa=ss(function(e,t,s,c){Ur(t,rr(t),e,c)}),fv=ss(function(e,t,s,c){Ur(t,Dt(t),e,c)}),pv=Zr(lo);function dv(e,t){var s=is(e);return t==null?s:su(s,t)}var gv=ve(function(e,t){e=Ue(e);var s=-1,c=t.length,l=c>2?t[2]:i;for(l&&Jt(t[0],t[1],l)&&(c=1);++s1),d}),Ur(e,$o(e),s),c&&(s=br(s,S|$|q,Sd));for(var l=t.length;l--;)xo(s,t[l]);return s});function Nv(e,t){return Oh(e,ta(ee(t)))}var Dv=Zr(function(e,t){return e==null?{}:od(e,t)});function Oh(e,t){if(e==null)return{};var s=Qe($o(e),function(c){return[c]});return t=ee(t),wu(e,s,function(c,l){return t(c,l[0])})}function qv(e,t,s){t=gi(t,e);var c=-1,l=t.length;for(l||(l=1,e=i);++ct){var c=e;e=t,t=c}if(s||e%1||t%1){var l=eu();return Ut(e+l*(t-e+je("1e-"+((l+"").length-1))),t)}return bo(e,t)}var Bv=ns(function(e,t,s){return t=t.toLowerCase(),e+(s?Th(t):t)});function Th(e){return Wo(Ce(e).toLowerCase())}function $h(e){return e=Ce(e),e&&e.replace(Br,Lf).replace(Ja,"")}function Gv(e,t,s){e=Ce(e),t=fr(t);var c=e.length;s=s===i?c:Di(de(s),0,c);var l=s;return s-=t.length,s>=0&&e.slice(s,l)==t}function Wv(e){return e=Ce(e),e&&We.test(e)?e.replace(Pi,zf):e}function Jv(e){return e=Ce(e),e&&bt.test(e)?e.replace(ot,"\\$&"):e}var Qv=ns(function(e,t,s){return e+(s?"-":"")+t.toLowerCase()}),Yv=ns(function(e,t,s){return e+(s?" ":"")+t.toLowerCase()}),Zv=qu("toLowerCase");function Xv(e,t,s){e=Ce(e),t=de(t);var c=t?Zi(e):0;if(!t||c>=t)return e;var l=(t-c)/2;return Bn(Nn(l),s)+e+Bn($n(l),s)}function em(e,t,s){e=Ce(e),t=de(t);var c=t?Zi(e):0;return t&&c>>0,s?(e=Ce(e),e&&(typeof t=="string"||t!=null&&!Fo(t))&&(t=fr(t),!t&&Yi(e))?yi(Ar(e),0,s):e.split(t,s)):[]}var om=ns(function(e,t,s){return e+(s?" ":"")+Wo(t)});function cm(e,t,s){return e=Ce(e),s=s==null?0:Di(de(s),0,e.length),t=fr(t),e.slice(s,s+t.length)==t}function um(e,t,s){var c=f.templateSettings;s&&Jt(e,t,s)&&(t=i),e=Ce(e),t=sa({},t,c,ku);var l=sa({},t.imports,c.imports,ku),d=Dt(l),w=so(l,d),_,P,D=0,L=t.interpolate||Ki,j="__p += '",k=ao((t.escape||Ki).source+"|"+L.source+"|"+(L===et?$a:Ki).source+"|"+(t.evaluate||Ki).source+"|$","g"),Y="//# sourceURL="+($e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qa+"]")+` -`;e.replace(k,function(ie,me,Ee,dr,Qt,gr){return Ee||(Ee=dr),j+=e.slice(D,gr).replace(ja,jf),me&&(_=!0,j+=`' + -__e(`+me+`) + -'`),Qt&&(P=!0,j+=`'; -`+Qt+`; -__p += '`),Ee&&(j+=`' + -((__t = (`+Ee+`)) == null ? '' : __t) + -'`),D=gr+ie.length,ie}),j+=`'; -`;var re=$e.call(t,"variable")&&t.variable;if(!re)j=`with (obj) { -`+j+` -} -`;else if(Ca.test(re))throw new ue(v);j=(P?j.replace(Lr,""):j).replace(Bt,"$1").replace(Fr,"$1;"),j="function("+(re||"obj")+`) { -`+(re?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(_?", __e = _.escape":"")+(P?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+j+`return __p -}`;var ye=Dh(function(){return Oe(d,Y+"return "+j).apply(i,w)});if(ye.source=j,Vo(ye))throw ye;return ye}function hm(e){return Ce(e).toLowerCase()}function lm(e){return Ce(e).toUpperCase()}function fm(e,t,s){if(e=Ce(e),e&&(s||t===i))return Kc(e);if(!e||!(t=fr(t)))return e;var c=Ar(e),l=Ar(t),d=Vc(c,l),w=Fc(c,l)+1;return yi(c,d,w).join("")}function pm(e,t,s){if(e=Ce(e),e&&(s||t===i))return e.slice(0,Gc(e)+1);if(!e||!(t=fr(t)))return e;var c=Ar(e),l=Fc(c,Ar(t))+1;return yi(c,0,l).join("")}function dm(e,t,s){if(e=Ce(e),e&&(s||t===i))return e.replace(ct,"");if(!e||!(t=fr(t)))return e;var c=Ar(e),l=Vc(c,Ar(t));return yi(c,l).join("")}function gm(e,t){var s=yt,c=Yt;if(tt(t)){var l="separator"in t?t.separator:l;s="length"in t?de(t.length):s,c="omission"in t?fr(t.omission):c}e=Ce(e);var d=e.length;if(Yi(e)){var w=Ar(e);d=w.length}if(s>=d)return e;var _=s-Zi(c);if(_<1)return c;var P=w?yi(w,0,_).join(""):e.slice(0,_);if(l===i)return P+c;if(w&&(_+=P.length-_),Fo(l)){if(e.slice(_).search(l)){var D,L=P;for(l.global||(l=ao(l.source,Ce(yr.exec(l))+"g")),l.lastIndex=0;D=l.exec(L);)var j=D.index;P=P.slice(0,j===i?_:j)}}else if(e.indexOf(fr(l),_)!=_){var k=P.lastIndexOf(l);k>-1&&(P=P.slice(0,k))}return P+c}function ym(e){return e=Ce(e),e&&st.test(e)?e.replace(oi,Ff):e}var vm=ns(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Wo=qu("toUpperCase");function Nh(e,t,s){return e=Ce(e),t=s?i:t,t===i?Uf(e)?Wf(e):Tf(e):e.match(t)||[]}var Dh=ve(function(e,t){try{return Nt(e,i,t)}catch(s){return Vo(s)?s:new ue(s)}}),mm=Zr(function(e,t){return mr(t,function(s){s=Hr(s),Qr(e,s,ko(e[s],e))}),e});function wm(e){var t=e==null?0:e.length,s=ee();return e=t?Qe(e,function(c){if(typeof c[1]!="function")throw new wr(p);return[s(c[0]),c[1]]}):[],ve(function(c){for(var l=-1;++lG)return[];var s=V,c=Ut(e,V);t=ee(t),e-=V;for(var l=io(c,t);++s0||t<0)?new be(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=de(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},be.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},be.prototype.toArray=function(){return this.take(V)},Mr(be.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),c=/^(?:head|last)$/.test(t),l=f[c?"take"+(t=="last"?"Right":""):t],d=c||/^find/.test(t);l&&(f.prototype[t]=function(){var w=this.__wrapped__,_=c?[1]:arguments,P=w instanceof be,D=_[0],L=P||le(w),j=function(me){var Ee=l.apply(f,hi([me],_));return c&&k?Ee[0]:Ee};L&&s&&typeof D=="function"&&D.length!=1&&(P=L=!1);var k=this.__chain__,Y=!!this.__actions__.length,re=d&&!k,ye=P&&!Y;if(!d&&L){w=ye?w:new be(this);var ie=e.apply(w,_);return ie.__actions__.push({func:Yn,args:[j],thisArg:i}),new _r(ie,k)}return re&&ye?e.apply(this,_):(ie=this.thru(j),re?c?ie.value()[0]:ie.value():ie)})}),mr(["pop","push","shift","sort","splice","unshift"],function(e){var t=En[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",c=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var l=arguments;if(c&&!this.__chain__){var d=this.value();return t.apply(le(d)?d:[],l)}return this[s](function(w){return t.apply(le(w)?w:[],l)})}}),Mr(be.prototype,function(e,t){var s=f[t];if(s){var c=s.name+"";$e.call(rs,c)||(rs[c]=[]),rs[c].push({name:t,func:s})}}),rs[Vn(i,ne).name]=[{name:"wrapper",func:i}],be.prototype.clone=yp,be.prototype.reverse=vp,be.prototype.value=mp,f.prototype.at=Gg,f.prototype.chain=Wg,f.prototype.commit=Jg,f.prototype.next=Qg,f.prototype.plant=Zg,f.prototype.reverse=Xg,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=ey,f.prototype.first=f.prototype.head,Es&&(f.prototype[Es]=Yg),f},Xi=Jf();pt?((pt.exports=Xi)._=Xi,Me._=Xi):Ie._=Xi}).call(Ks)})(xc,xc.exports);var NI=Object.defineProperty,DI=Object.defineProperties,qI=Object.getOwnPropertyDescriptors,Cl=Object.getOwnPropertySymbols,LI=Object.prototype.hasOwnProperty,zI=Object.prototype.propertyIsEnumerable,Tl=(o,r,i)=>r in o?NI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,la=(o,r)=>{for(var i in r||(r={}))LI.call(r,i)&&Tl(o,i,r[i]);if(Cl)for(var i of Cl(r))zI.call(r,i)&&Tl(o,i,r[i]);return o},jI=(o,r)=>DI(o,qI(r));function Ii(o,r,i){var n;const a=k0(o);return((n=r.rpcMap)==null?void 0:n[a.reference])||`${$I}?chainId=${a.namespace}:${a.reference}&projectId=${i}`}function ki(o){return o.includes(":")?o.split(":")[1]:o}function xf(o){return o.map(r=>`${r.split(":")[0]}:${r.split(":")[1]}`)}function MI(o,r){const i=Object.keys(r.namespaces).filter(a=>a.includes(o));if(!i.length)return[];const n=[];return i.forEach(a=>{const h=r.namespaces[a].accounts;n.push(...h)}),n}function UI(o={},r={}){const i=$l(o),n=$l(r);return xc.exports.merge(i,n)}function $l(o){var r,i,n,a;const h={};if(!da(o))return h;for(const[p,v]of Object.entries(o)){const m=Bl(p)?[p]:v.chains,g=v.methods||[],b=v.events||[],S=v.rpcMap||{},$=Vs(p);h[$]=jI(la(la({},h[$]),v),{chains:rc(m,(r=h[$])==null?void 0:r.chains),methods:rc(g,(i=h[$])==null?void 0:i.methods),events:rc(b,(n=h[$])==null?void 0:n.events),rpcMap:la(la({},S),(a=h[$])==null?void 0:a.rpcMap)})}return h}function HI(o){return o.includes(":")?o.split(":")[2]:o}function kI(o){const r={};for(const[i,n]of Object.entries(o)){const a=n.methods||[],h=n.events||[],p=n.accounts||[],v=Bl(i)?[i]:n.chains?n.chains:xf(n.accounts);r[i]={chains:v,methods:a,events:h,accounts:p}}return r}function pc(o){return typeof o=="number"?o:o.includes("0x")?parseInt(o,16):o.includes(":")?Number(o.split(":")[1]):Number(o)}const Pf={},Ye=o=>Pf[o],dc=(o,r)=>{Pf[o]=r};class KI{constructor(r){this.name="polkadot",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getAccounts(){const r=this.namespace.accounts;return r?r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2])||[]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class VI{constructor(r){this.name="eip155",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(r){switch(r.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(r);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(r.request.method)?await this.client.request(r):this.getHttpProvider().request(r.request)}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(parseInt(r),i),this.chainId=parseInt(r),this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}createHttpProvider(r,i){const n=i||Ii(`${this.name}:${r}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=parseInt(ki(i));r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}getHttpProvider(){const r=this.chainId,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}async handleSwitchChain(r){var i,n;let a=r.request.params?(i=r.request.params[0])==null?void 0:i.chainId:"0x0";a=a.startsWith("0x")?a:`0x${a}`;const h=parseInt(a,16);if(this.isChainApproved(h))this.setDefaultChain(`${h}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:r.topic,request:{method:r.request.method,params:[{chainId:a}]},chainId:(n=this.namespace.chains)==null?void 0:n[0]}),this.setDefaultChain(`${h}`);else throw new Error(`Failed to switch to chain 'eip155:${h}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(r){return this.namespace.chains.includes(`${this.name}:${r}`)}}class FI{constructor(r){this.name="solana",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class BI{constructor(r){this.name="cosmos",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class GI{constructor(r){this.name="cip34",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{const n=this.getCardanoRPCUrl(i),a=ki(i);r[a]=this.createHttpProvider(a,n)}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}getCardanoRPCUrl(r){const i=this.namespace.rpcMap;if(i)return i[r]}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||this.getCardanoRPCUrl(r);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class WI{constructor(r){this.name="elrond",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class JI{constructor(r){this.name="multiversx",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class QI{constructor(r){this.name="near",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){if(this.chainId=r,!this.httpProviders[r]){const n=i||Ii(`${this.name}:${r}`,this.namespace);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);this.setHttpProvider(r,n)}this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const r=this.namespace.accounts;return r?r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2])||[]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;r[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace);return typeof n>"u"?void 0:new ni(new Ei(n,Ye("disableProviderPing")))}}var YI=Object.defineProperty,ZI=Object.defineProperties,XI=Object.getOwnPropertyDescriptors,Nl=Object.getOwnPropertySymbols,eE=Object.prototype.hasOwnProperty,tE=Object.prototype.propertyIsEnumerable,Dl=(o,r,i)=>r in o?YI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,fa=(o,r)=>{for(var i in r||(r={}))eE.call(r,i)&&Dl(o,i,r[i]);if(Nl)for(var i of Nl(r))tE.call(r,i)&&Dl(o,i,r[i]);return o},gc=(o,r)=>ZI(o,XI(r));class Lc{constructor(r){this.events=new Ac,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=r,this.logger=typeof(r==null?void 0:r.logger)<"u"&&typeof(r==null?void 0:r.logger)!="string"?r.logger:Sa(Ra({level:(r==null?void 0:r.logger)||Ol})),this.disableProviderPing=(r==null?void 0:r.disableProviderPing)||!1}static async init(r){const i=new Lc(r);return await i.initialize(),i}async request(r,i){const[n,a]=this.validateChain(i);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:fa({},r),chainId:`${n}:${a}`,topic:this.session.topic})}sendAsync(r,i,n){const a=new Date().getTime();this.request(r,n).then(h=>i(null,xa(a,h))).catch(h=>i(h,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var r;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(r=this.session)==null?void 0:r.topic,reason:kt("USER_DISCONNECTED")}),await this.cleanup()}async connect(r){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(r),await this.cleanupPendingPairings(),!r.skipPairing)return await this.pair(r.pairingTopic)}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}removeListener(r,i){this.events.removeListener(r,i)}off(r,i){this.events.off(r,i)}get isWalletConnect(){return!0}async pair(r){this.shouldAbortPairingAttempt=!1;let i=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(i>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:n,approval:a}=await this.client.connect({pairingTopic:r,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await a().then(h=>{this.session=h,this.namespaces||(this.namespaces=kI(h.namespaces),this.persist("namespaces",this.namespaces))}).catch(h=>{if(h.message!==If)throw h;i++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(r,i){try{if(!this.session)return;const[n,a]=this.validateChain(r);this.getProvider(n).setDefaultChain(a,i)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(r={}){this.logger.info("Cleaning up inactive pairings...");const i=this.client.pairing.getAll();if(ys(i)){for(const n of i)r.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${i.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const r=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[r]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await OI.init({logger:this.providerOpts.logger||Ol,relayUrl:this.providerOpts.relayUrl||AI,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const r=[...new Set(Object.keys(this.session.namespaces).map(i=>Vs(i)))];dc("client",this.client),dc("events",this.events),dc("disableProviderPing",this.disableProviderPing),r.forEach(i=>{if(!this.session)return;const n=MI(i,this.session),a=xf(n),h=UI(this.namespaces,this.optionalNamespaces),p=gc(fa({},h[i]),{accounts:n,chains:a});switch(i){case"eip155":this.rpcProviders[i]=new VI({namespace:p});break;case"solana":this.rpcProviders[i]=new FI({namespace:p});break;case"cosmos":this.rpcProviders[i]=new BI({namespace:p});break;case"polkadot":this.rpcProviders[i]=new KI({namespace:p});break;case"cip34":this.rpcProviders[i]=new GI({namespace:p});break;case"elrond":this.rpcProviders[i]=new WI({namespace:p});break;case"multiversx":this.rpcProviders[i]=new JI({namespace:p});break;case"near":this.rpcProviders[i]=new QI({namespace:p});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",r=>{this.events.emit("session_ping",r)}),this.client.on("session_event",r=>{const{params:i}=r,{event:n}=i;if(n.name==="accountsChanged"){const a=n.data;a&&ys(a)&&this.events.emit("accountsChanged",a.map(HI))}else if(n.name==="chainChanged"){const a=i.chainId,h=i.event.data,p=Vs(a),v=pc(a)!==pc(h)?`${p}:${pc(h)}`:a;this.onChainChanged(v)}else this.events.emit(n.name,n.data);this.events.emit("session_event",r)}),this.client.on("session_update",({topic:r,params:i})=>{var n;const{namespaces:a}=i,h=(n=this.client)==null?void 0:n.session.get(r);this.session=gc(fa({},h),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:r,params:i})}),this.client.on("session_delete",async r=>{await this.cleanup(),this.events.emit("session_delete",r),this.events.emit("disconnect",gc(fa({},kt("USER_DISCONNECTED")),{data:r.topic}))}),this.on(ai.DEFAULT_CHAIN_CHANGED,r=>{this.onChainChanged(r,!0)})}getProvider(r){if(!this.rpcProviders[r])throw new Error(`Provider not found: ${r}`);return this.rpcProviders[r]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(r=>{var i;this.getProvider(r).updateNamespace((i=this.session)==null?void 0:i.namespaces[r])})}setNamespaces(r){const{namespaces:i,optionalNamespaces:n,sessionProperties:a}=r;i&&Object.keys(i).length&&(this.namespaces=i),n&&Object.keys(n).length&&(this.optionalNamespaces=n),this.sessionProperties=a,this.persist("namespaces",i),this.persist("optionalNamespaces",n)}validateChain(r){const[i,n]=(r==null?void 0:r.split(":"))||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[i,n];if(i&&!Object.keys(this.namespaces||{}).map(p=>Vs(p)).includes(i))throw new Error(`Namespace '${i}' is not configured. Please call connect() first with namespace config.`);if(i&&n)return[i,n];const a=Vs(Object.keys(this.namespaces)[0]),h=this.rpcProviders[a].getDefaultChain();return[a,h]}async requestAccounts(){const[r]=this.validateChain();return await this.getProvider(r).requestAccounts()}onChainChanged(r,i=!1){var n;if(!this.namespaces)return;const[a,h]=this.validateChain(r);i||this.getProvider(a).setDefaultChain(h),((n=this.namespaces[a])!=null?n:this.namespaces[`${a}:${h}`]).defaultChain=h,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",h)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(r,i){this.client.core.storage.setItem(`${Al}/${r}`,i)}async getFromStore(r){return await this.client.core.storage.getItem(`${Al}/${r}`)}}const rE=Lc,iE="wc",sE="ethereum_provider",nE=`${iE}@2:${sE}:`,aE="https://rpc.walletconnect.com/v1/",Pc=["eth_sendTransaction","personal_sign"],oE=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],Sc=["chainChanged","accountsChanged"],cE=["chainChanged","accountsChanged","message","disconnect","connect"];var uE=Object.defineProperty,hE=Object.defineProperties,lE=Object.getOwnPropertyDescriptors,ql=Object.getOwnPropertySymbols,fE=Object.prototype.hasOwnProperty,pE=Object.prototype.propertyIsEnumerable,Ll=(o,r,i)=>r in o?uE(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,Bs=(o,r)=>{for(var i in r||(r={}))fE.call(r,i)&&Ll(o,i,r[i]);if(ql)for(var i of ql(r))pE.call(r,i)&&Ll(o,i,r[i]);return o},zl=(o,r)=>hE(o,lE(r));function wa(o){return Number(o[0].split(":")[1])}function yc(o){return`0x${o.toString(16)}`}function dE(o){const{chains:r,optionalChains:i,methods:n,optionalMethods:a,events:h,optionalEvents:p,rpcMap:v}=o;if(!ys(r))throw new Error("Invalid chains");const m={chains:r,methods:n||Pc,events:h||Sc,rpcMap:Bs({},r.length?{[wa(r)]:v[wa(r)]}:{})},g=h==null?void 0:h.filter(q=>!Sc.includes(q)),b=n==null?void 0:n.filter(q=>!Pc.includes(q));if(!i&&!p&&!a&&!(g!=null&&g.length)&&!(b!=null&&b.length))return{required:r.length?m:void 0};const S=(g==null?void 0:g.length)&&(b==null?void 0:b.length)||!i,$={chains:[...new Set(S?m.chains.concat(i||[]):i)],methods:[...new Set(m.methods.concat(a!=null&&a.length?a:oE))],events:[...new Set(m.events.concat(p!=null&&p.length?p:cE))],rpcMap:v};return{required:r.length?m:void 0,optional:i.length?$:void 0}}class zc{constructor(){this.events=new qr.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=nE,this.on=(r,i)=>(this.events.on(r,i),this),this.once=(r,i)=>(this.events.once(r,i),this),this.removeListener=(r,i)=>(this.events.removeListener(r,i),this),this.off=(r,i)=>(this.events.off(r,i),this),this.parseAccount=r=>this.isCompatibleChainId(r)?this.parseAccountId(r).address:r,this.signer={},this.rpc={}}static async init(r){const i=new zc;return await i.initialize(r),i}async request(r){return await this.signer.request(r,this.formatChainId(this.chainId))}sendAsync(r,i){this.signer.sendAsync(r,i,this.formatChainId(this.chainId))}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(r){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(r);const{required:i,optional:n}=dE(this.rpc);try{const a=await new Promise(async(p,v)=>{var m;this.rpc.showQrModal&&((m=this.modal)==null||m.subscribeModal(g=>{!g.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),v(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(zl(Bs({namespaces:Bs({},i&&{[this.namespace]:i})},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:r==null?void 0:r.pairingTopic})).then(g=>{p(g)}).catch(g=>{v(new Error(g.message))})});if(!a)return;const h=K0(a.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:h),this.setAccounts(h),this.events.emit("connect",{chainId:yc(this.chainId)})}catch(a){throw this.signer.logger.error(a),a}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",r=>{const{params:i}=r,{event:n}=i;n.name==="accountsChanged"?(this.accounts=this.parseAccounts(n.data),this.events.emit("accountsChanged",this.accounts)):n.name==="chainChanged"?this.setChainId(this.formatChainId(n.data)):this.events.emit(n.name,n.data),this.events.emit("session_event",r)}),this.signer.on("chainChanged",r=>{const i=parseInt(r);this.chainId=i,this.events.emit("chainChanged",yc(this.chainId)),this.persist()}),this.signer.on("session_update",r=>{this.events.emit("session_update",r)}),this.signer.on("session_delete",r=>{this.reset(),this.events.emit("session_delete",r),this.events.emit("disconnect",zl(Bs({},kt("USER_DISCONNECTED")),{data:r.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",r=>{var i,n;this.rpc.showQrModal&&((i=this.modal)==null||i.closeModal(),(n=this.modal)==null||n.openModal({uri:r})),this.events.emit("display_uri",r)})}switchEthereumChain(r){this.request({method:"wallet_switchEthereumChain",params:[{chainId:r.toString(16)}]})}isCompatibleChainId(r){return typeof r=="string"?r.startsWith(`${this.namespace}:`):!1}formatChainId(r){return`${this.namespace}:${r}`}parseChainId(r){return Number(r.split(":")[1])}setChainIds(r){const i=r.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));i.length&&(this.chainId=i[0],this.events.emit("chainChanged",yc(this.chainId)),this.persist())}setChainId(r){if(this.isCompatibleChainId(r)){const i=this.parseChainId(r);this.chainId=i,this.switchEthereumChain(i)}}parseAccountId(r){const[i,n,a]=r.split(":");return{chainId:`${i}:${n}`,address:a}}setAccounts(r){this.accounts=r.filter(i=>this.parseChainId(this.parseAccountId(i).chainId)===this.chainId).map(i=>this.parseAccountId(i).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(r){var i,n;const a=(i=r==null?void 0:r.chains)!=null?i:[],h=(n=r==null?void 0:r.optionalChains)!=null?n:[],p=a.concat(h);if(!p.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const v=a.length?(r==null?void 0:r.methods)||Pc:[],m=a.length?(r==null?void 0:r.events)||Sc:[],g=(r==null?void 0:r.optionalMethods)||[],b=(r==null?void 0:r.optionalEvents)||[],S=(r==null?void 0:r.rpcMap)||this.buildRpcMap(p,r.projectId),$=(r==null?void 0:r.qrModalOptions)||void 0;return{chains:a==null?void 0:a.map(q=>this.formatChainId(q)),optionalChains:h.map(q=>this.formatChainId(q)),methods:v,events:m,optionalMethods:g,optionalEvents:b,rpcMap:S,showQrModal:!!(r!=null&&r.showQrModal),qrModalOptions:$,projectId:r.projectId,metadata:r.metadata}}buildRpcMap(r,i){const n={};return r.forEach(a=>{n[a]=this.getRpcUrl(a,i)}),n}async initialize(r){if(this.rpc=this.getRpcConfig(r),this.chainId=this.rpc.chains.length?wa(this.rpc.chains):wa(this.rpc.optionalChains),this.signer=await rE.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:r.disableProviderPing,relayUrl:r.relayUrl,storageOptions:r.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let i;try{const{WalletConnectModal:n}=await V0(()=>import("./index-BltpiQGx.js").then(a=>a.i),__vite__mapDeps([0,1,2]),import.meta.url);i=n}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(i)try{this.modal=new i(Bs({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(n){throw this.signer.logger.error(n),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(r){if(!r)return;const{chains:i,optionalChains:n,rpcMap:a}=r;i&&ys(i)&&(this.rpc.chains=i.map(h=>this.formatChainId(h)),i.forEach(h=>{this.rpc.rpcMap[h]=(a==null?void 0:a[h])||this.getRpcUrl(h)})),n&&ys(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n==null?void 0:n.map(h=>this.formatChainId(h)),n.forEach(h=>{this.rpc.rpcMap[h]=(a==null?void 0:a[h])||this.getRpcUrl(h)}))}getRpcUrl(r,i){var n;return((n=this.rpc.rpcMap)==null?void 0:n[r])||`${aE}?chainId=eip155:${r}&projectId=${i||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;const r=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),i=this.session.namespaces[`${this.namespace}:${r}`]?this.session.namespaces[`${this.namespace}:${r}`]:this.session.namespaces[this.namespace];this.setChainIds(r?[this.formatChainId(r)]:i==null?void 0:i.accounts),this.setAccounts(i==null?void 0:i.accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(r){return typeof r=="string"||r instanceof String?[this.parseAccount(r)]:r.map(i=>this.parseAccount(i))}}const CE=zc;export{CE as EthereumProvider,cE as OPTIONAL_EVENTS,oE as OPTIONAL_METHODS,Sc as REQUIRED_EVENTS,Pc as REQUIRED_METHODS,zc as default}; -//# sourceMappingURL=index.es-C4tnSl6V.js.map diff --git a/apps/web/public/assets/index.es-CdO-xVAP.js b/apps/web/public/assets/index.es-CdO-xVAP.js deleted file mode 100644 index 5bf0ae81..00000000 --- a/apps/web/public/assets/index.es-CdO-xVAP.js +++ /dev/null @@ -1,29 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BWLXyvD6.js","./index-CTwKNzhK.js","./index-C5o-2F8D.css"])))=>i.map(i=>d[i]); -import{t as jl,r as _a,u as X,q as qr,p as Rc,v as i0,w as Ml,x as Ul,y as Oc,z as ba,A as s0,o as na,C as _i,V as n0,M as a0,N as B,D as o0,E as vc,F as c0,K as u0,G as h0,J as zh,L as l0,O as f0,P as p0,Q as jh,$ as d0,R as g0,S as y0,T as Gs,U as Mh,X as v0,W as m0,Y as Ac,Z as Hl,a0 as Dr,a1 as w0,a2 as Uh,a3 as ls,a4 as St,a5 as kt,a6 as wi,a7 as ar,a8 as _0,a9 as fs,aa as kl,ab as b0,ac as I0,ad as E0,ae as Kl,af as x0,ag as Vl,ah as Fl,ai as ds,aj as mc,ak as pa,al as ys,am as P0,an as da,ao as S0,ap as R0,aq as O0,ar as A0,as as aa,at as C0,au as T0,av as tc,aw as Hh,ax as $0,ay as N0,az as D0,aA as kh,aB as q0,aC as L0,aD as z0,aE as j0,aF as M0,aG as U0,aH as H0,aI as Vs,aJ as Bl,aK as rc,aL as k0,aM as K0,_ as V0}from"./index-CTwKNzhK.js";import{s as Qs,a as Ia,r as F0,f as gs,g as Gl,i as Kr,b as Ea,c as Kh,d as B0,e as G0,h as Cc,p as W0,j as Tc,k as xa,l as mi,m as J0,n as Ei}from"./index.es-BYCv7dOh.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="79c0ed29-cd11-4eef-949e-d4b233d7601a",o._sentryDebugIdIdentifier="sentry-dbid-79c0ed29-cd11-4eef-949e-d4b233d7601a")}catch{}})();const Q0=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Y0=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Z0=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function X0(o,r){if(o==="__proto__"||o==="constructor"&&r&&typeof r=="object"&&"prototype"in r){ew(o);return}return r}function ew(o){console.warn(`[destr] Dropping "${o}" key to prevent prototype pollution.`)}function oa(o,r={}){if(typeof o!="string")return o;const i=o.trim();if(o[0]==='"'&&o.endsWith('"')&&!o.includes("\\"))return i.slice(1,-1);if(i.length<=9){const n=i.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!Z0.test(o)){if(r.strict)throw new SyntaxError("[destr] Invalid JSON");return o}try{if(Q0.test(o)||Y0.test(o)){if(r.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(o,X0)}return JSON.parse(o)}catch(n){if(r.strict)throw n;return o}}function tw(o){return!o||typeof o.then!="function"?Promise.resolve(o):o}function qt(o,...r){try{return tw(o(...r))}catch(i){return Promise.reject(i)}}function rw(o){const r=typeof o;return o===null||r!=="object"&&r!=="function"}function iw(o){const r=Object.getPrototypeOf(o);return!r||r.isPrototypeOf(Object)}function ga(o){if(rw(o))return String(o);if(iw(o)||Array.isArray(o))return JSON.stringify(o);if(typeof o.toJSON=="function")return ga(o.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function Wl(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const wc="base64:";function sw(o){if(typeof o=="string")return o;Wl();const r=Buffer.from(o).toString("base64");return wc+r}function nw(o){return typeof o!="string"||!o.startsWith(wc)?o:(Wl(),Buffer.from(o.slice(wc.length),"base64"))}function nr(o){return o?o.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function aw(...o){return nr(o.join(":"))}function ca(o){return o=nr(o),o?o+":":""}const ow="memory",cw=()=>{const o=new Map;return{name:ow,options:{},hasItem(r){return o.has(r)},getItem(r){return o.get(r)??null},getItemRaw(r){return o.get(r)??null},setItem(r,i){o.set(r,i)},setItemRaw(r,i){o.set(r,i)},removeItem(r){o.delete(r)},getKeys(){return Array.from(o.keys())},clear(){o.clear()},dispose(){o.clear()}}};function uw(o={}){const r={mounts:{"":o.driver||cw()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},i=g=>{for(const b of r.mountpoints)if(g.startsWith(b))return{base:b,relativeKey:g.slice(b.length),driver:r.mounts[b]};return{base:"",relativeKey:g,driver:r.mounts[""]}},n=(g,b)=>r.mountpoints.filter(S=>S.startsWith(g)||b&&g.startsWith(S)).map(S=>({relativeBase:g.length>S.length?g.slice(S.length):void 0,mountpoint:S,driver:r.mounts[S]})),a=(g,b)=>{if(r.watching){b=nr(b);for(const S of r.watchListeners)S(g,b)}},h=async()=>{if(!r.watching){r.watching=!0;for(const g in r.mounts)r.unwatch[g]=await Vh(r.mounts[g],a,g)}},p=async()=>{if(r.watching){for(const g in r.unwatch)await r.unwatch[g]();r.unwatch={},r.watching=!1}},v=(g,b,S)=>{const $=new Map,q=A=>{let Z=$.get(A.base);return Z||(Z={driver:A.driver,base:A.base,items:[]},$.set(A.base,Z)),Z};for(const A of g){const Z=typeof A=="string",se=nr(Z?A:A.key),ne=Z?void 0:A.value,ce=Z||!A.options?b:{...b,...A.options},ae=i(se);q(ae).items.push({key:se,value:ne,relativeKey:ae.relativeKey,options:ce})}return Promise.all([...$.values()].map(A=>S(A))).then(A=>A.flat())},m={hasItem(g,b={}){g=nr(g);const{relativeKey:S,driver:$}=i(g);return qt($.hasItem,S,b)},getItem(g,b={}){g=nr(g);const{relativeKey:S,driver:$}=i(g);return qt($.getItem,S,b).then(q=>oa(q))},getItems(g,b){return v(g,b,S=>S.driver.getItems?qt(S.driver.getItems,S.items.map($=>({key:$.relativeKey,options:$.options})),b).then($=>$.map(q=>({key:aw(S.base,q.key),value:oa(q.value)}))):Promise.all(S.items.map($=>qt(S.driver.getItem,$.relativeKey,$.options).then(q=>({key:$.key,value:oa(q)})))))},getItemRaw(g,b={}){g=nr(g);const{relativeKey:S,driver:$}=i(g);return $.getItemRaw?qt($.getItemRaw,S,b):qt($.getItem,S,b).then(q=>nw(q))},async setItem(g,b,S={}){if(b===void 0)return m.removeItem(g);g=nr(g);const{relativeKey:$,driver:q}=i(g);q.setItem&&(await qt(q.setItem,$,ga(b),S),q.watch||a("update",g))},async setItems(g,b){await v(g,b,async S=>{if(S.driver.setItems)return qt(S.driver.setItems,S.items.map($=>({key:$.relativeKey,value:ga($.value),options:$.options})),b);S.driver.setItem&&await Promise.all(S.items.map($=>qt(S.driver.setItem,$.relativeKey,ga($.value),$.options)))})},async setItemRaw(g,b,S={}){if(b===void 0)return m.removeItem(g,S);g=nr(g);const{relativeKey:$,driver:q}=i(g);if(q.setItemRaw)await qt(q.setItemRaw,$,b,S);else if(q.setItem)await qt(q.setItem,$,sw(b),S);else return;q.watch||a("update",g)},async removeItem(g,b={}){typeof b=="boolean"&&(b={removeMeta:b}),g=nr(g);const{relativeKey:S,driver:$}=i(g);$.removeItem&&(await qt($.removeItem,S,b),(b.removeMeta||b.removeMata)&&await qt($.removeItem,S+"$",b),$.watch||a("remove",g))},async getMeta(g,b={}){typeof b=="boolean"&&(b={nativeOnly:b}),g=nr(g);const{relativeKey:S,driver:$}=i(g),q=Object.create(null);if($.getMeta&&Object.assign(q,await qt($.getMeta,S,b)),!b.nativeOnly){const A=await qt($.getItem,S+"$",b).then(Z=>oa(Z));A&&typeof A=="object"&&(typeof A.atime=="string"&&(A.atime=new Date(A.atime)),typeof A.mtime=="string"&&(A.mtime=new Date(A.mtime)),Object.assign(q,A))}return q},setMeta(g,b,S={}){return this.setItem(g+"$",b,S)},removeMeta(g,b={}){return this.removeItem(g+"$",b)},async getKeys(g,b={}){g=ca(g);const S=n(g,!0);let $=[];const q=[];for(const A of S){const se=(await qt(A.driver.getKeys,A.relativeBase,b)).map(ne=>A.mountpoint+nr(ne)).filter(ne=>!$.some(ce=>ne.startsWith(ce)));q.push(...se),$=[A.mountpoint,...$.filter(ne=>!ne.startsWith(A.mountpoint))]}return g?q.filter(A=>A.startsWith(g)&&!A.endsWith("$")):q.filter(A=>!A.endsWith("$"))},async clear(g,b={}){g=ca(g),await Promise.all(n(g,!1).map(async S=>{if(S.driver.clear)return qt(S.driver.clear,S.relativeBase,b);if(S.driver.removeItem){const $=await S.driver.getKeys(S.relativeBase||"",b);return Promise.all($.map(q=>S.driver.removeItem(q,b)))}}))},async dispose(){await Promise.all(Object.values(r.mounts).map(g=>Fh(g)))},async watch(g){return await h(),r.watchListeners.push(g),async()=>{r.watchListeners=r.watchListeners.filter(b=>b!==g),r.watchListeners.length===0&&await p()}},async unwatch(){r.watchListeners=[],await p()},mount(g,b){if(g=ca(g),g&&r.mounts[g])throw new Error(`already mounted at ${g}`);return g&&(r.mountpoints.push(g),r.mountpoints.sort((S,$)=>$.length-S.length)),r.mounts[g]=b,r.watching&&Promise.resolve(Vh(b,a,g)).then(S=>{r.unwatch[g]=S}).catch(console.error),m},async unmount(g,b=!0){g=ca(g),!(!g||!r.mounts[g])&&(r.watching&&g in r.unwatch&&(r.unwatch[g](),delete r.unwatch[g]),b&&await Fh(r.mounts[g]),r.mountpoints=r.mountpoints.filter(S=>S!==g),delete r.mounts[g])},getMount(g=""){g=nr(g)+":";const b=i(g);return{driver:b.driver,base:b.base}},getMounts(g="",b={}){return g=nr(g),n(g,b.parents).map($=>({driver:$.driver,base:$.mountpoint}))}};return m}function Vh(o,r,i){return o.watch?o.watch((n,a)=>r(n,i+a)):()=>{}}async function Fh(o){typeof o.dispose=="function"&&await qt(o.dispose)}function Ui(o){return new Promise((r,i)=>{o.oncomplete=o.onsuccess=()=>r(o.result),o.onabort=o.onerror=()=>i(o.error)})}function Jl(o,r){const i=indexedDB.open(o);i.onupgradeneeded=()=>i.result.createObjectStore(r);const n=Ui(i);return(a,h)=>n.then(p=>h(p.transaction(r,a).objectStore(r)))}let ic;function Ys(){return ic||(ic=Jl("keyval-store","keyval")),ic}function Bh(o,r=Ys()){return r("readonly",i=>Ui(i.get(o)))}function hw(o,r,i=Ys()){return i("readwrite",n=>(n.put(r,o),Ui(n.transaction)))}function lw(o,r=Ys()){return r("readwrite",i=>(i.delete(o),Ui(i.transaction)))}function fw(o=Ys()){return o("readwrite",r=>(r.clear(),Ui(r.transaction)))}function pw(o,r){return o.openCursor().onsuccess=function(){this.result&&(r(this.result),this.result.continue())},Ui(o.transaction)}function dw(o=Ys()){return o("readonly",r=>{if(r.getAllKeys)return Ui(r.getAllKeys());const i=[];return pw(r,n=>i.push(n.key)).then(()=>i)})}const gw="idb-keyval";var yw=(o={})=>{const r=o.base&&o.base.length>0?`${o.base}:`:"",i=a=>r+a;let n;return o.dbName&&o.storeName&&(n=Jl(o.dbName,o.storeName)),{name:gw,options:o,async hasItem(a){return!(typeof await Bh(i(a),n)>"u")},async getItem(a){return await Bh(i(a),n)??null},setItem(a,h){return hw(i(a),h,n)},removeItem(a){return lw(i(a),n)},getKeys(){return dw(n)},clear(){return fw(n)}}};const vw="WALLET_CONNECT_V2_INDEXED_DB",mw="keyvaluestorage";let ww=class{constructor(){this.indexedDb=uw({driver:yw({dbName:vw,storeName:mw})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(r=>[r.key,r.value])}async getItem(r){const i=await this.indexedDb.getItem(r);if(i!==null)return i}async setItem(r,i){await this.indexedDb.setItem(r,Qs(i))}async removeItem(r){await this.indexedDb.removeItem(r)}};var sc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ya={exports:{}};(function(){let o;function r(){}o=r,o.prototype.getItem=function(i){return this.hasOwnProperty(i)?String(this[i]):null},o.prototype.setItem=function(i,n){this[i]=String(n)},o.prototype.removeItem=function(i){delete this[i]},o.prototype.clear=function(){const i=this;Object.keys(i).forEach(function(n){i[n]=void 0,delete i[n]})},o.prototype.key=function(i){return i=i||0,Object.keys(this)[i]},o.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof sc<"u"&&sc.localStorage?ya.exports=sc.localStorage:typeof window<"u"&&window.localStorage?ya.exports=window.localStorage:ya.exports=new r})();function _w(o){var r;return[o[0],Ia((r=o[1])!=null?r:"")]}class bw{constructor(){this.localStorage=ya.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(_w)}async getItem(r){const i=this.localStorage.getItem(r);if(i!==null)return Ia(i)}async setItem(r,i){this.localStorage.setItem(r,Qs(i))}async removeItem(r){this.localStorage.removeItem(r)}}const Iw="wc_storage_version",Gh=1,Ew=async(o,r,i)=>{const n=Iw,a=await r.getItem(n);if(a&&a>=Gh){i(r);return}const h=await o.getKeys();if(!h.length){i(r);return}const p=[];for(;h.length;){const v=h.shift();if(!v)continue;const m=v.toLowerCase();if(m.includes("wc@")||m.includes("walletconnect")||m.includes("wc_")||m.includes("wallet_connect")){const g=await o.getItem(v);await r.setItem(v,g),p.push(v)}}await r.setItem(n,Gh),i(r),xw(o,p)},xw=async(o,r)=>{r.length&&r.forEach(async i=>{await o.removeItem(i)})};let Pw=class{constructor(){this.initialized=!1,this.setInitialized=i=>{this.storage=i,this.initialized=!0};const r=new bw;this.storage=r;try{const i=new ww;Ew(r,i,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(r){return await this.initialize(),this.storage.getItem(r)}async setItem(r,i){return await this.initialize(),this.storage.setItem(r,i)}async removeItem(r){return await this.initialize(),this.storage.removeItem(r)}async initialize(){this.initialized||await new Promise(r=>{const i=setInterval(()=>{this.initialized&&(clearInterval(i),r())},20)})}};var vs={},zs={},nc={},js={};class Hi{}const Sw=Object.freeze(Object.defineProperty({__proto__:null,IEvents:Hi},Symbol.toStringTag,{value:"Module"})),Rw=jl(Sw);var Wh;function Ow(){if(Wh)return js;Wh=1,Object.defineProperty(js,"__esModule",{value:!0}),js.IHeartBeat=void 0;const o=Rw;class r extends o.IEvents{constructor(n){super()}}return js.IHeartBeat=r,js}var Jh;function Ql(){return Jh||(Jh=1,function(o){Object.defineProperty(o,"__esModule",{value:!0}),_a.__exportStar(Ow(),o)}(nc)),nc}var ac={},Mi={},Qh;function Aw(){if(Qh)return Mi;Qh=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.HEARTBEAT_EVENTS=Mi.HEARTBEAT_INTERVAL=void 0;const o=X;return Mi.HEARTBEAT_INTERVAL=o.FIVE_SECONDS,Mi.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"},Mi}var Yh;function Yl(){return Yh||(Yh=1,function(o){Object.defineProperty(o,"__esModule",{value:!0}),_a.__exportStar(Aw(),o)}(ac)),ac}var Zh;function Cw(){if(Zh)return zs;Zh=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.HeartBeat=void 0;const o=_a,r=qr,i=X,n=Ql(),a=Yl();class h extends n.IHeartBeat{constructor(v){super(v),this.events=new r.EventEmitter,this.interval=a.HEARTBEAT_INTERVAL,this.interval=(v==null?void 0:v.interval)||a.HEARTBEAT_INTERVAL}static init(v){return o.__awaiter(this,void 0,void 0,function*(){const m=new h(v);return yield m.init(),m})}init(){return o.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(v,m){this.events.on(v,m)}once(v,m){this.events.once(v,m)}off(v,m){this.events.off(v,m)}removeListener(v,m){this.events.removeListener(v,m)}initialize(){return o.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),i.toMiliseconds(this.interval))})}pulse(){this.events.emit(a.HEARTBEAT_EVENTS.pulse)}}return zs.HeartBeat=h,zs}(function(o){Object.defineProperty(o,"__esModule",{value:!0});const r=_a;r.__exportStar(Cw(),o),r.__exportStar(Ql(),o),r.__exportStar(Yl(),o)})(vs);function Tw(o){try{return JSON.stringify(o)}catch{return'"[Circular]"'}}var $w=Nw;function Nw(o,r,i){var n=i&&i.stringify||Tw,a=1;if(typeof o=="object"&&o!==null){var h=r.length+a;if(h===1)return o;var p=new Array(h);p[0]=n(o);for(var v=1;v-1?S:0,o.charCodeAt(q+1)){case 100:case 102:if(b>=m||r[b]==null)break;S=m||r[b]==null)break;S=m||r[b]===void 0)break;S",S=q+2,q++;break}g+=n(r[b]),S=q+2,q++;break;case 115:if(b>=m)break;S-1&&(h=!1);const p=["error","fatal","warn","info","debug","trace"];typeof i=="function"&&(i.error=i.fatal=i.warn=i.info=i.debug=i.trace=i),o.enabled===!1&&(o.level="silent");const v=o.level||"info",m=Object.create(i);m.log||(m.log=Js),Object.defineProperty(m,"levelVal",{get:b}),Object.defineProperty(m,"level",{get:S,set:$});const g={transmit:r,serialize:a,asObject:o.browser.asObject,levels:p,timestamp:Hw(o)};m.levels=Vr.levels,m.level=v,m.setMaxListeners=m.getMaxListeners=m.emit=m.addListener=m.on=m.prependListener=m.once=m.prependOnceListener=m.removeListener=m.removeAllListeners=m.listeners=m.listenerCount=m.eventNames=m.write=m.flush=Js,m.serializers=n,m._serialize=a,m._stdErrSerialize=h,m.child=q,r&&(m._logEvent=_c());function b(){return this.level==="silent"?1/0:this.levels.values[this.level]}function S(){return this._level}function $(A){if(A!=="silent"&&!this.levels.values[A])throw Error("unknown level "+A);this._level=A,us(g,m,"error","log"),us(g,m,"fatal","error"),us(g,m,"warn","error"),us(g,m,"info","log"),us(g,m,"debug","log"),us(g,m,"trace","log")}function q(A,Z){if(!A)throw new Error("missing bindings for child Pino");Z=Z||{},a&&A.serializers&&(Z.serializers=A.serializers);const se=Z.serializers;if(a&&se){var ne=Object.assign({},n,se),ce=o.browser.serialize===!0?Object.keys(ne):a;delete A.serializers,Pa([A],ce,ne,this._stdErrSerialize)}function ae(te){this._childLevel=(te._childLevel|0)+1,this.error=hs(te,A,"error"),this.fatal=hs(te,A,"fatal"),this.warn=hs(te,A,"warn"),this.info=hs(te,A,"info"),this.debug=hs(te,A,"debug"),this.trace=hs(te,A,"trace"),ne&&(this.serializers=ne,this._serialize=ce),r&&(this._logEvent=_c([].concat(te._logEvent.bindings,A)))}return ae.prototype=this,new ae(this)}return m}Vr.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};Vr.stdSerializers=qw;Vr.stdTimeFunctions=Object.assign({},{nullTime:Zl,epochTime:Xl,unixTime:kw,isoTime:Kw});function us(o,r,i,n){const a=Object.getPrototypeOf(r);r[i]=r.levelVal>r.levels.values[i]?Js:a[i]?a[i]:Ws[i]||Ws[n]||Js,zw(o,r,i)}function zw(o,r,i){!o.transmit&&r[i]===Js||(r[i]=function(n){return function(){const h=o.timestamp(),p=new Array(arguments.length),v=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Ws?Ws:this;for(var m=0;m-1&&h in i&&(o[a][h]=i[h](o[a][h]))}function hs(o,r,i){return function(){const n=new Array(1+arguments.length);n[0]=r;for(var a=1;ar in o?Bw(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,Yw=(o,r)=>{for(var i in r||(r={}))Jw.call(r,i)&&tl(o,i,r[i]);if(el)for(var i of el(r))Qw.call(r,i)&&tl(o,i,r[i]);return o},Zw=(o,r)=>Gw(o,Ww(r));function Ra(o){return Zw(Yw({},o),{level:(o==null?void 0:o.level)||Fw.level})}function Xw(o,r=Zs){return o[r]||""}function e1(o,r,i=Zs){return o[i]=r,o}function or(o,r=Zs){let i="";return typeof o.bindings>"u"?i=Xw(o,r):i=o.bindings().context||"",i}function t1(o,r,i=Zs){const n=or(o,i);return n.trim()?`${n}/${r}`:r}function cr(o,r,i=Zs){const n=t1(o,r,i),a=o.child({context:n});return e1(a,n,i)}class r1 extends Hi{constructor(r){super(),this.opts=r,this.protocol="wc",this.version=2}}let i1=class extends Hi{constructor(r,i){super(),this.core=r,this.logger=i,this.records=new Map}},s1=class{constructor(r,i){this.logger=r,this.core=i}},n1=class extends Hi{constructor(r,i){super(),this.relayer=r,this.logger=i}},a1=class extends Hi{constructor(r){super()}},o1=class{constructor(r,i,n,a){this.core=r,this.logger=i,this.name=n}};class c1 extends Hi{constructor(r,i){super(),this.relayer=r,this.logger=i}}let u1=class extends Hi{constructor(r,i){super(),this.core=r,this.logger=i}},h1=class{constructor(r,i){this.projectId=r,this.logger=i}},l1=class{constructor(r,i){this.projectId=r,this.logger=i}},f1=class{constructor(r){this.opts=r,this.protocol="wc",this.version=2}},p1=class{constructor(r){this.client=r}};var $c={},ef={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var r=i0,i=Ml;o.DIGEST_LENGTH=64,o.BLOCK_SIZE=128;var n=function(){function v(){this.digestLength=o.DIGEST_LENGTH,this.blockSize=o.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return v.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},v.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},v.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},v.prototype.update=function(m,g){if(g===void 0&&(g=m.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var b=0;if(this._bytesHashed+=g,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=m[b++],g--;this._bufferLength===this.blockSize&&(h(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(g>=this.blockSize&&(b=h(this._tempHi,this._tempLo,this._stateHi,this._stateLo,m,b,g),g%=this.blockSize);g>0;)this._buffer[this._bufferLength++]=m[b++],g--;return this},v.prototype.finish=function(m){if(!this._finished){var g=this._bytesHashed,b=this._bufferLength,S=g/536870912|0,$=g<<3,q=g%128<112?128:256;this._buffer[b]=128;for(var A=b+1;A0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},v.prototype.restoreState=function(m){return this._stateHi.set(m.stateHi),this._stateLo.set(m.stateLo),this._bufferLength=m.bufferLength,m.buffer&&this._buffer.set(m.buffer),this._bytesHashed=m.bytesHashed,this._finished=!1,this},v.prototype.cleanSavedState=function(m){i.wipe(m.stateHi),i.wipe(m.stateLo),m.buffer&&i.wipe(m.buffer),m.bufferLength=0,m.bytesHashed=0},v}();o.SHA512=n;var a=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function h(v,m,g,b,S,$,q){for(var A=g[0],Z=g[1],se=g[2],ne=g[3],ce=g[4],ae=g[5],te=g[6],fe=g[7],pe=b[0],Q=b[1],xe=b[2],Tt=b[3],yt=b[4],Yt=b[5],Vt=b[6],ur=b[7],M,U,Ge,qe,G,K,H,V;q>=128;){for(var Rt=0;Rt<16;Rt++){var rt=8*Rt+$;v[Rt]=r.readUint32BE(S,rt),m[Rt]=r.readUint32BE(S,rt+4)}for(var Rt=0;Rt<80;Rt++){var xi=A,we=Z,Sr=se,T=ne,C=ce,R=ae,u=te,I=fe,J=pe,oe=Q,ge=xe,Pe=Tt,Re=yt,_e=Yt,vt=Vt,lt=ur;if(M=fe,U=ur,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=(ce>>>14|yt<<18)^(ce>>>18|yt<<14)^(yt>>>9|ce<<23),U=(yt>>>14|ce<<18)^(yt>>>18|ce<<14)^(ce>>>9|yt<<23),G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,M=ce&ae^~ce&te,U=yt&Yt^~yt&Vt,G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,M=a[Rt*2],U=a[Rt*2+1],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,M=v[Rt%16],U=m[Rt%16],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,Ge=H&65535|V<<16,qe=G&65535|K<<16,M=Ge,U=qe,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=(A>>>28|pe<<4)^(pe>>>2|A<<30)^(pe>>>7|A<<25),U=(pe>>>28|A<<4)^(A>>>2|pe<<30)^(A>>>7|pe<<25),G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,M=A&Z^A&se^Z&se,U=pe&Q^pe&xe^Q&xe,G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,I=H&65535|V<<16,lt=G&65535|K<<16,M=T,U=Pe,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=Ge,U=qe,G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,T=H&65535|V<<16,Pe=G&65535|K<<16,Z=xi,se=we,ne=Sr,ce=T,ae=C,te=R,fe=u,A=I,Q=J,xe=oe,Tt=ge,yt=Pe,Yt=Re,Vt=_e,ur=vt,pe=lt,Rt%16===15)for(var rt=0;rt<16;rt++)M=v[rt],U=m[rt],G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=v[(rt+9)%16],U=m[(rt+9)%16],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,Ge=v[(rt+1)%16],qe=m[(rt+1)%16],M=(Ge>>>1|qe<<31)^(Ge>>>8|qe<<24)^Ge>>>7,U=(qe>>>1|Ge<<31)^(qe>>>8|Ge<<24)^(qe>>>7|Ge<<25),G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,Ge=v[(rt+14)%16],qe=m[(rt+14)%16],M=(Ge>>>19|qe<<13)^(qe>>>29|Ge<<3)^Ge>>>6,U=(qe>>>19|Ge<<13)^(Ge>>>29|qe<<3)^(qe>>>6|Ge<<26),G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,v[rt]=H&65535|V<<16,m[rt]=G&65535|K<<16}M=A,U=pe,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[0],U=b[0],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[0]=A=H&65535|V<<16,b[0]=pe=G&65535|K<<16,M=Z,U=Q,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[1],U=b[1],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[1]=Z=H&65535|V<<16,b[1]=Q=G&65535|K<<16,M=se,U=xe,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[2],U=b[2],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[2]=se=H&65535|V<<16,b[2]=xe=G&65535|K<<16,M=ne,U=Tt,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[3],U=b[3],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[3]=ne=H&65535|V<<16,b[3]=Tt=G&65535|K<<16,M=ce,U=yt,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[4],U=b[4],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[4]=ce=H&65535|V<<16,b[4]=yt=G&65535|K<<16,M=ae,U=Yt,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[5],U=b[5],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[5]=ae=H&65535|V<<16,b[5]=Yt=G&65535|K<<16,M=te,U=Vt,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[6],U=b[6],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[6]=te=H&65535|V<<16,b[6]=Vt=G&65535|K<<16,M=fe,U=ur,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[7],U=b[7],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[7]=fe=H&65535|V<<16,b[7]=ur=G&65535|K<<16,$+=128,q-=128}return $}function p(v){var m=new n;m.update(v);var g=m.digest();return m.clean(),g}o.hash=p})(ef);(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.convertSecretKeyToX25519=o.convertPublicKeyToX25519=o.verify=o.sign=o.extractPublicKeyFromSecretKey=o.generateKeyPair=o.generateKeyPairFromSeed=o.SEED_LENGTH=o.SECRET_KEY_LENGTH=o.PUBLIC_KEY_LENGTH=o.SIGNATURE_LENGTH=void 0;const r=Ul,i=ef,n=Ml;o.SIGNATURE_LENGTH=64,o.PUBLIC_KEY_LENGTH=32,o.SECRET_KEY_LENGTH=64,o.SEED_LENGTH=32;function a(T){const C=new Float64Array(16);if(T)for(let R=0;R>16&1),R[oe-1]&=65535;R[15]=u[15]-32767-(R[14]>>16&1);const J=R[15]>>16&1;R[14]&=65535,Z(u,R,1-J)}for(let I=0;I<16;I++)T[2*I]=u[I]&255,T[2*I+1]=u[I]>>8}function ne(T,C){let R=0;for(let u=0;u<32;u++)R|=T[u]^C[u];return(1&R-1>>>8)-1}function ce(T,C){const R=new Uint8Array(32),u=new Uint8Array(32);return se(R,T),se(u,C),ne(R,u)}function ae(T){const C=new Uint8Array(32);return se(C,T),C[0]&1}function te(T,C){for(let R=0;R<16;R++)T[R]=C[2*R]+(C[2*R+1]<<8);T[15]&=32767}function fe(T,C,R){for(let u=0;u<16;u++)T[u]=C[u]+R[u]}function pe(T,C,R){for(let u=0;u<16;u++)T[u]=C[u]-R[u]}function Q(T,C,R){let u,I,J=0,oe=0,ge=0,Pe=0,Re=0,_e=0,vt=0,lt=0,Ze=0,Ae=0,ke=0,Ke=0,Xe=0,Ne=0,Ve=0,Se=0,Le=0,it=0,Te=0,mt=0,Ot=0,Lt=0,zt=0,$t=0,Ft=0,Zt=0,Lr=0,Bt=0,Fr=0,oi=0,Pi=0,st=R[0],We=R[1],nt=R[2],at=R[3],et=R[4],Je=R[5],wt=R[6],_t=R[7],ot=R[8],bt=R[9],ct=R[10],ft=R[11],ut=R[12],He=R[13],It=R[14],Et=R[15];u=C[0],J+=u*st,oe+=u*We,ge+=u*nt,Pe+=u*at,Re+=u*et,_e+=u*Je,vt+=u*wt,lt+=u*_t,Ze+=u*ot,Ae+=u*bt,ke+=u*ct,Ke+=u*ft,Xe+=u*ut,Ne+=u*He,Ve+=u*It,Se+=u*Et,u=C[1],oe+=u*st,ge+=u*We,Pe+=u*nt,Re+=u*at,_e+=u*et,vt+=u*Je,lt+=u*wt,Ze+=u*_t,Ae+=u*ot,ke+=u*bt,Ke+=u*ct,Xe+=u*ft,Ne+=u*ut,Ve+=u*He,Se+=u*It,Le+=u*Et,u=C[2],ge+=u*st,Pe+=u*We,Re+=u*nt,_e+=u*at,vt+=u*et,lt+=u*Je,Ze+=u*wt,Ae+=u*_t,ke+=u*ot,Ke+=u*bt,Xe+=u*ct,Ne+=u*ft,Ve+=u*ut,Se+=u*He,Le+=u*It,it+=u*Et,u=C[3],Pe+=u*st,Re+=u*We,_e+=u*nt,vt+=u*at,lt+=u*et,Ze+=u*Je,Ae+=u*wt,ke+=u*_t,Ke+=u*ot,Xe+=u*bt,Ne+=u*ct,Ve+=u*ft,Se+=u*ut,Le+=u*He,it+=u*It,Te+=u*Et,u=C[4],Re+=u*st,_e+=u*We,vt+=u*nt,lt+=u*at,Ze+=u*et,Ae+=u*Je,ke+=u*wt,Ke+=u*_t,Xe+=u*ot,Ne+=u*bt,Ve+=u*ct,Se+=u*ft,Le+=u*ut,it+=u*He,Te+=u*It,mt+=u*Et,u=C[5],_e+=u*st,vt+=u*We,lt+=u*nt,Ze+=u*at,Ae+=u*et,ke+=u*Je,Ke+=u*wt,Xe+=u*_t,Ne+=u*ot,Ve+=u*bt,Se+=u*ct,Le+=u*ft,it+=u*ut,Te+=u*He,mt+=u*It,Ot+=u*Et,u=C[6],vt+=u*st,lt+=u*We,Ze+=u*nt,Ae+=u*at,ke+=u*et,Ke+=u*Je,Xe+=u*wt,Ne+=u*_t,Ve+=u*ot,Se+=u*bt,Le+=u*ct,it+=u*ft,Te+=u*ut,mt+=u*He,Ot+=u*It,Lt+=u*Et,u=C[7],lt+=u*st,Ze+=u*We,Ae+=u*nt,ke+=u*at,Ke+=u*et,Xe+=u*Je,Ne+=u*wt,Ve+=u*_t,Se+=u*ot,Le+=u*bt,it+=u*ct,Te+=u*ft,mt+=u*ut,Ot+=u*He,Lt+=u*It,zt+=u*Et,u=C[8],Ze+=u*st,Ae+=u*We,ke+=u*nt,Ke+=u*at,Xe+=u*et,Ne+=u*Je,Ve+=u*wt,Se+=u*_t,Le+=u*ot,it+=u*bt,Te+=u*ct,mt+=u*ft,Ot+=u*ut,Lt+=u*He,zt+=u*It,$t+=u*Et,u=C[9],Ae+=u*st,ke+=u*We,Ke+=u*nt,Xe+=u*at,Ne+=u*et,Ve+=u*Je,Se+=u*wt,Le+=u*_t,it+=u*ot,Te+=u*bt,mt+=u*ct,Ot+=u*ft,Lt+=u*ut,zt+=u*He,$t+=u*It,Ft+=u*Et,u=C[10],ke+=u*st,Ke+=u*We,Xe+=u*nt,Ne+=u*at,Ve+=u*et,Se+=u*Je,Le+=u*wt,it+=u*_t,Te+=u*ot,mt+=u*bt,Ot+=u*ct,Lt+=u*ft,zt+=u*ut,$t+=u*He,Ft+=u*It,Zt+=u*Et,u=C[11],Ke+=u*st,Xe+=u*We,Ne+=u*nt,Ve+=u*at,Se+=u*et,Le+=u*Je,it+=u*wt,Te+=u*_t,mt+=u*ot,Ot+=u*bt,Lt+=u*ct,zt+=u*ft,$t+=u*ut,Ft+=u*He,Zt+=u*It,Lr+=u*Et,u=C[12],Xe+=u*st,Ne+=u*We,Ve+=u*nt,Se+=u*at,Le+=u*et,it+=u*Je,Te+=u*wt,mt+=u*_t,Ot+=u*ot,Lt+=u*bt,zt+=u*ct,$t+=u*ft,Ft+=u*ut,Zt+=u*He,Lr+=u*It,Bt+=u*Et,u=C[13],Ne+=u*st,Ve+=u*We,Se+=u*nt,Le+=u*at,it+=u*et,Te+=u*Je,mt+=u*wt,Ot+=u*_t,Lt+=u*ot,zt+=u*bt,$t+=u*ct,Ft+=u*ft,Zt+=u*ut,Lr+=u*He,Bt+=u*It,Fr+=u*Et,u=C[14],Ve+=u*st,Se+=u*We,Le+=u*nt,it+=u*at,Te+=u*et,mt+=u*Je,Ot+=u*wt,Lt+=u*_t,zt+=u*ot,$t+=u*bt,Ft+=u*ct,Zt+=u*ft,Lr+=u*ut,Bt+=u*He,Fr+=u*It,oi+=u*Et,u=C[15],Se+=u*st,Le+=u*We,it+=u*nt,Te+=u*at,mt+=u*et,Ot+=u*Je,Lt+=u*wt,zt+=u*_t,$t+=u*ot,Ft+=u*bt,Zt+=u*ct,Lr+=u*ft,Bt+=u*ut,Fr+=u*He,oi+=u*It,Pi+=u*Et,J+=38*Le,oe+=38*it,ge+=38*Te,Pe+=38*mt,Re+=38*Ot,_e+=38*Lt,vt+=38*zt,lt+=38*$t,Ze+=38*Ft,Ae+=38*Zt,ke+=38*Lr,Ke+=38*Bt,Xe+=38*Fr,Ne+=38*oi,Ve+=38*Pi,I=1,u=J+I+65535,I=Math.floor(u/65536),J=u-I*65536,u=oe+I+65535,I=Math.floor(u/65536),oe=u-I*65536,u=ge+I+65535,I=Math.floor(u/65536),ge=u-I*65536,u=Pe+I+65535,I=Math.floor(u/65536),Pe=u-I*65536,u=Re+I+65535,I=Math.floor(u/65536),Re=u-I*65536,u=_e+I+65535,I=Math.floor(u/65536),_e=u-I*65536,u=vt+I+65535,I=Math.floor(u/65536),vt=u-I*65536,u=lt+I+65535,I=Math.floor(u/65536),lt=u-I*65536,u=Ze+I+65535,I=Math.floor(u/65536),Ze=u-I*65536,u=Ae+I+65535,I=Math.floor(u/65536),Ae=u-I*65536,u=ke+I+65535,I=Math.floor(u/65536),ke=u-I*65536,u=Ke+I+65535,I=Math.floor(u/65536),Ke=u-I*65536,u=Xe+I+65535,I=Math.floor(u/65536),Xe=u-I*65536,u=Ne+I+65535,I=Math.floor(u/65536),Ne=u-I*65536,u=Ve+I+65535,I=Math.floor(u/65536),Ve=u-I*65536,u=Se+I+65535,I=Math.floor(u/65536),Se=u-I*65536,J+=I-1+37*(I-1),I=1,u=J+I+65535,I=Math.floor(u/65536),J=u-I*65536,u=oe+I+65535,I=Math.floor(u/65536),oe=u-I*65536,u=ge+I+65535,I=Math.floor(u/65536),ge=u-I*65536,u=Pe+I+65535,I=Math.floor(u/65536),Pe=u-I*65536,u=Re+I+65535,I=Math.floor(u/65536),Re=u-I*65536,u=_e+I+65535,I=Math.floor(u/65536),_e=u-I*65536,u=vt+I+65535,I=Math.floor(u/65536),vt=u-I*65536,u=lt+I+65535,I=Math.floor(u/65536),lt=u-I*65536,u=Ze+I+65535,I=Math.floor(u/65536),Ze=u-I*65536,u=Ae+I+65535,I=Math.floor(u/65536),Ae=u-I*65536,u=ke+I+65535,I=Math.floor(u/65536),ke=u-I*65536,u=Ke+I+65535,I=Math.floor(u/65536),Ke=u-I*65536,u=Xe+I+65535,I=Math.floor(u/65536),Xe=u-I*65536,u=Ne+I+65535,I=Math.floor(u/65536),Ne=u-I*65536,u=Ve+I+65535,I=Math.floor(u/65536),Ve=u-I*65536,u=Se+I+65535,I=Math.floor(u/65536),Se=u-I*65536,J+=I-1+37*(I-1),T[0]=J,T[1]=oe,T[2]=ge,T[3]=Pe,T[4]=Re,T[5]=_e,T[6]=vt,T[7]=lt,T[8]=Ze,T[9]=Ae,T[10]=ke,T[11]=Ke,T[12]=Xe,T[13]=Ne,T[14]=Ve,T[15]=Se}function xe(T,C){Q(T,C,C)}function Tt(T,C){const R=a();let u;for(u=0;u<16;u++)R[u]=C[u];for(u=253;u>=0;u--)xe(R,R),u!==2&&u!==4&&Q(R,R,C);for(u=0;u<16;u++)T[u]=R[u]}function yt(T,C){const R=a();let u;for(u=0;u<16;u++)R[u]=C[u];for(u=250;u>=0;u--)xe(R,R),u!==1&&Q(R,R,C);for(u=0;u<16;u++)T[u]=R[u]}function Yt(T,C){const R=a(),u=a(),I=a(),J=a(),oe=a(),ge=a(),Pe=a(),Re=a(),_e=a();pe(R,T[1],T[0]),pe(_e,C[1],C[0]),Q(R,R,_e),fe(u,T[0],T[1]),fe(_e,C[0],C[1]),Q(u,u,_e),Q(I,T[3],C[3]),Q(I,I,g),Q(J,T[2],C[2]),fe(J,J,J),pe(oe,u,R),pe(ge,J,I),fe(Pe,J,I),fe(Re,u,R),Q(T[0],oe,ge),Q(T[1],Re,Pe),Q(T[2],Pe,ge),Q(T[3],oe,Re)}function Vt(T,C,R){for(let u=0;u<4;u++)Z(T[u],C[u],R)}function ur(T,C){const R=a(),u=a(),I=a();Tt(I,C[2]),Q(R,C[0],I),Q(u,C[1],I),se(T,u),T[31]^=ae(R)<<7}function M(T,C,R){q(T[0],p),q(T[1],v),q(T[2],v),q(T[3],p);for(let u=255;u>=0;--u){const I=R[u/8|0]>>(u&7)&1;Vt(T,C,I),Yt(C,T),Yt(T,T),Vt(T,C,I)}}function U(T,C){const R=[a(),a(),a(),a()];q(R[0],b),q(R[1],S),q(R[2],v),Q(R[3],b,S),M(T,R,C)}function Ge(T){if(T.length!==o.SEED_LENGTH)throw new Error(`ed25519: seed must be ${o.SEED_LENGTH} bytes`);const C=(0,i.hash)(T);C[0]&=248,C[31]&=127,C[31]|=64;const R=new Uint8Array(32),u=[a(),a(),a(),a()];U(u,C),ur(R,u);const I=new Uint8Array(64);return I.set(T),I.set(R,32),{publicKey:R,secretKey:I}}o.generateKeyPairFromSeed=Ge;function qe(T){const C=(0,r.randomBytes)(32,T),R=Ge(C);return(0,n.wipe)(C),R}o.generateKeyPair=qe;function G(T){if(T.length!==o.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${o.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(T.subarray(32))}o.extractPublicKeyFromSecretKey=G;const K=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function H(T,C){let R,u,I,J;for(u=63;u>=32;--u){for(R=0,I=u-32,J=u-12;I>4)*K[I],R=C[I]>>8,C[I]&=255;for(I=0;I<32;I++)C[I]-=R*K[I];for(u=0;u<32;u++)C[u+1]+=C[u]>>8,T[u]=C[u]&255}function V(T){const C=new Float64Array(64);for(let R=0;R<64;R++)C[R]=T[R];for(let R=0;R<64;R++)T[R]=0;H(T,C)}function Rt(T,C){const R=new Float64Array(64),u=[a(),a(),a(),a()],I=(0,i.hash)(T.subarray(0,32));I[0]&=248,I[31]&=127,I[31]|=64;const J=new Uint8Array(64);J.set(I.subarray(32),32);const oe=new i.SHA512;oe.update(J.subarray(32)),oe.update(C);const ge=oe.digest();oe.clean(),V(ge),U(u,ge),ur(J,u),oe.reset(),oe.update(J.subarray(0,32)),oe.update(T.subarray(32)),oe.update(C);const Pe=oe.digest();V(Pe);for(let Re=0;Re<32;Re++)R[Re]=ge[Re];for(let Re=0;Re<32;Re++)for(let _e=0;_e<32;_e++)R[Re+_e]+=Pe[Re]*I[_e];return H(J.subarray(32),R),J}o.sign=Rt;function rt(T,C){const R=a(),u=a(),I=a(),J=a(),oe=a(),ge=a(),Pe=a();return q(T[2],v),te(T[1],C),xe(I,T[1]),Q(J,I,m),pe(I,I,T[2]),fe(J,T[2],J),xe(oe,J),xe(ge,oe),Q(Pe,ge,oe),Q(R,Pe,I),Q(R,R,J),yt(R,R),Q(R,R,I),Q(R,R,J),Q(R,R,J),Q(T[0],R,J),xe(u,T[0]),Q(u,u,J),ce(u,I)&&Q(T[0],T[0],$),xe(u,T[0]),Q(u,u,J),ce(u,I)?-1:(ae(T[0])===C[31]>>7&&pe(T[0],p,T[0]),Q(T[3],T[0],T[1]),0)}function xi(T,C,R){const u=new Uint8Array(32),I=[a(),a(),a(),a()],J=[a(),a(),a(),a()];if(R.length!==o.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${o.SIGNATURE_LENGTH} bytes`);if(rt(J,T))return!1;const oe=new i.SHA512;oe.update(R.subarray(0,32)),oe.update(T),oe.update(C);const ge=oe.digest();return V(ge),M(I,J,ge),U(J,R.subarray(32)),Yt(I,J),ur(u,I),!ne(R,u)}o.verify=xi;function we(T){let C=[a(),a(),a(),a()];if(rt(C,T))throw new Error("Ed25519: invalid public key");let R=a(),u=a(),I=C[1];fe(R,v,I),pe(u,v,I),Tt(u,u),Q(R,R,u);let J=new Uint8Array(32);return se(J,R),J}o.convertPublicKeyToX25519=we;function Sr(T){const C=(0,i.hash)(T.subarray(0,32));C[0]&=248,C[31]&=127,C[31]|=64;const R=new Uint8Array(C.subarray(0,32));return(0,n.wipe)(C),R}o.convertSecretKeyToX25519=Sr})($c);const d1="EdDSA",g1="JWT",tf=".",rf="base64url",y1="utf8",v1="utf8",m1=":",w1="did",_1="key",rl="base58btc",b1="z",I1="K36",E1=32;function va(o){return ba(Oc(Qs(o),y1),rf)}function sf(o){const r=Oc(I1,rl),i=b1+ba(s0([r,o]),rl);return[w1,_1,i].join(m1)}function x1(o){return ba(o,rf)}function P1(o){return Oc([va(o.header),va(o.payload)].join(tf),v1)}function S1(o){return[va(o.header),va(o.payload),x1(o.signature)].join(tf)}function il(o=Ul.randomBytes(E1)){return $c.generateKeyPairFromSeed(o)}async function R1(o,r,i,n,a=X.fromMiliseconds(Date.now())){const h={alg:d1,typ:g1},p=sf(n.publicKey),v=a+i,m={iss:p,sub:o,aud:r,iat:a,exp:v},g=P1({header:h,payload:m}),b=$c.sign(n.secretKey,g);return S1({header:h,payload:m,signature:b})}class ni extends F0{constructor(r){super(r),this.events=new qr.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(r),this.connection.connected&&this.registerEventListeners()}async connect(r=this.connection){await this.open(r)}async disconnect(){await this.close()}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async request(r,i){return this.requestStrict(gs(r.method,r.params||[],r.id||Gl().toString()),i)}async requestStrict(r,i){return new Promise(async(n,a)=>{if(!this.connection.connected)try{await this.open()}catch(h){a(h)}this.events.on(`${r.id}`,h=>{Kr(h)?a(h.error):n(h.result)});try{await this.connection.send(r,i)}catch(h){a(h)}})}setConnection(r=this.connection){return r}onPayload(r){this.events.emit("payload",r),Ea(r)?this.events.emit(`${r.id}`,r):this.events.emit("message",{type:r.method,data:r.params})}onClose(r){r&&r.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${r.code} ${r.reason?`(${r.reason})`:""}`)),this.events.emit("disconnect")}async open(r=this.connection){this.connection===r&&this.connection.connected||(this.connection.connected&&this.close(),typeof r=="string"&&(await this.connection.open(r),r=this.connection),this.connection=this.setConnection(r),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",r=>this.onPayload(r)),this.connection.on("close",r=>this.onClose(r)),this.connection.on("error",r=>this.events.emit("error",r)),this.connection.on("register_error",r=>this.onClose()),this.hasRegisteredEventListeners=!0)}}const O1=()=>typeof WebSocket<"u"?WebSocket:typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:require("ws"),A1=()=>typeof WebSocket<"u"||typeof global<"u"&&typeof global.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",sl=o=>o.split("?")[0],nl=10,C1=O1();let T1=class{constructor(r){if(this.url=r,this.events=new qr.EventEmitter,this.registering=!1,!Kh(r))throw new Error(`Provided URL is not compatible with WebSocket connection: ${r}`);this.url=r}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async open(r=this.url){await this.register(r)}async close(){return new Promise((r,i)=>{if(typeof this.socket>"u"){i(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),r()},this.socket.close()})}async send(r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Qs(r))}catch(i){this.onError(r.id,i)}}register(r=this.url){if(!Kh(r))throw new Error(`Provided URL is not compatible with WebSocket connection: ${r}`);if(this.registering){const i=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=i||this.events.listenerCount("open")>=i)&&this.events.setMaxListeners(i+1),new Promise((n,a)=>{this.events.once("register_error",h=>{this.resetMaxListeners(),a(h)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return a(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=r,this.registering=!0,new Promise((i,n)=>{const a=new URLSearchParams(r).get("origin"),h=B0.isReactNative()?{headers:{origin:a}}:{rejectUnauthorized:!G0(r)},p=new C1(r,[],h);A1()?p.onerror=v=>{const m=v;n(this.emitError(m.error))}:p.on("error",v=>{n(this.emitError(v))}),p.onopen=()=>{this.onOpen(p),i(p)}})}onOpen(r){r.onmessage=i=>this.onPayload(i),r.onclose=i=>this.onClose(i),this.socket=r,this.registering=!1,this.events.emit("open")}onClose(r){this.socket=void 0,this.registering=!1,this.events.emit("close",r)}onPayload(r){if(typeof r.data>"u")return;const i=typeof r.data=="string"?Ia(r.data):r.data;this.events.emit("payload",i)}onError(r,i){const n=this.parseError(i),a=n.message||n.toString(),h=Cc(r,a);this.events.emit("payload",h)}parseError(r,i=this.url){return W0(r,sl(i),"WS")}resetMaxListeners(){this.events.getMaxListeners()>nl&&this.events.setMaxListeners(nl)}emitError(r){const i=this.parseError(new Error((r==null?void 0:r.message)||`WebSocket connection failed for host: ${sl(this.url)}`));return this.events.emit("register_error",i),i}};var ma={exports:{}};ma.exports;(function(o,r){var i=200,n="__lodash_hash_undefined__",a=1,h=2,p=9007199254740991,v="[object Arguments]",m="[object Array]",g="[object AsyncFunction]",b="[object Boolean]",S="[object Date]",$="[object Error]",q="[object Function]",A="[object GeneratorFunction]",Z="[object Map]",se="[object Number]",ne="[object Null]",ce="[object Object]",ae="[object Promise]",te="[object Proxy]",fe="[object RegExp]",pe="[object Set]",Q="[object String]",xe="[object Symbol]",Tt="[object Undefined]",yt="[object WeakMap]",Yt="[object ArrayBuffer]",Vt="[object DataView]",ur="[object Float32Array]",M="[object Float64Array]",U="[object Int8Array]",Ge="[object Int16Array]",qe="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",H="[object Uint16Array]",V="[object Uint32Array]",Rt=/[\\^$.*+?()[\]{}|]/g,rt=/^\[object .+?Constructor\]$/,xi=/^(?:0|[1-9]\d*)$/,we={};we[ur]=we[M]=we[U]=we[Ge]=we[qe]=we[G]=we[K]=we[H]=we[V]=!0,we[v]=we[m]=we[Yt]=we[b]=we[Vt]=we[S]=we[$]=we[q]=we[Z]=we[se]=we[ce]=we[fe]=we[pe]=we[Q]=we[yt]=!1;var Sr=typeof na=="object"&&na&&na.Object===Object&&na,T=typeof self=="object"&&self&&self.Object===Object&&self,C=Sr||T||Function("return this")(),R=r&&!r.nodeType&&r,u=R&&!0&&o&&!o.nodeType&&o,I=u&&u.exports===R,J=I&&Sr.process,oe=function(){try{return J&&J.binding&&J.binding("util")}catch{}}(),ge=oe&&oe.isTypedArray;function Pe(y,E){for(var z=-1,F=y==null?0:y.length,je=0,he=[];++z-1}function za(y,E){var z=this.__data__,F=Si(z,y);return F<0?(++this.size,z.push([y,E])):z[F][1]=E,this}yr.prototype.clear=Na,yr.prototype.delete=Da,yr.prototype.get=qa,yr.prototype.has=La,yr.prototype.set=za;function Br(y){var E=-1,z=y==null?0:y.length;for(this.clear();++Ext))return!1;var Me=he.get(y);if(Me&&he.get(E))return Me==E;var pt=-1,Xt=!0,Pt=z&h?new Fi:void 0;for(he.set(y,E),he.set(E,y);++pt-1&&y%1==0&&y-1&&y%1==0&&y<=p}function mn(y){var E=typeof y;return y!=null&&(E=="object"||E=="function")}function Ai(y){return y!=null&&typeof y=="object"}var wn=ge?lt(ge):an;function Qa(y){return Wa(y)?sn(y):on(y)}function ze(){return[]}function De(){return!1}o.exports=Ja})(ma,ma.exports);var $1=ma.exports;const N1=Rc($1);function D1(o,r){return r=r||{},new Promise(function(i,n){var a=new XMLHttpRequest,h=[],p=[],v={},m=function(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){return Promise.resolve(a.responseText)},json:function(){return Promise.resolve(a.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([a.response]))},clone:m,headers:{keys:function(){return h},entries:function(){return p},get:function(b){return v[b.toLowerCase()]},has:function(b){return b.toLowerCase()in v}}}};for(var g in a.open(r.method||"get",o,!0),a.onload=function(){a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(b,S,$){h.push(S=S.toLowerCase()),p.push([S,$]),v[S]=v[S]?v[S]+","+$:$}),i(m())},a.onerror=n,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(g,r.headers[g]);a.send(r.body||null)})}const q1=Object.freeze(Object.defineProperty({__proto__:null,default:D1},Symbol.toStringTag,{value:"Module"})),al=jl(q1);var L1=self.fetch||(self.fetch=al.default||al);const z1=Rc(L1);var j1={};function M1(o,r){if(o.length>=255)throw new TypeError("Alphabet too long");for(var i=new Uint8Array(256),n=0;n>>0,te=new Uint8Array(ae);ne!==ce;){for(var fe=A[ne],pe=0,Q=ae-1;(fe!==0||pe>>0,te[Q]=fe%v>>>0,fe=fe/v>>>0;if(fe!==0)throw new Error("Non-zero carry");se=pe,ne++}for(var xe=ae-se;xe!==ae&&te[xe]===0;)xe++;for(var Tt=m.repeat(Z);xe>>0,ae=new Uint8Array(ce);A[Z];){var te=i[A.charCodeAt(Z)];if(te===255)return;for(var fe=0,pe=ce-1;(te!==0||fe>>0,ae[pe]=te%256>>>0,te=te/256>>>0;if(te!==0)throw new Error("Non-zero carry");ne=fe,Z++}if(A[Z]!==" "){for(var Q=ce-ne;Q!==ce&&ae[Q]===0;)Q++;for(var xe=new Uint8Array(se+(ce-Q)),Tt=se;Q!==ce;)xe[Tt++]=ae[Q++];return xe}}}function q(A){var Z=$(A);if(Z)return Z;throw new Error(`Non-${r} character`)}return{encode:S,decodeUnsafe:$,decode:q}}var U1=M1,H1=U1;const nf=o=>{if(o instanceof Uint8Array&&o.constructor.name==="Uint8Array")return o;if(o instanceof ArrayBuffer)return new Uint8Array(o);if(ArrayBuffer.isView(o))return new Uint8Array(o.buffer,o.byteOffset,o.byteLength);throw new Error("Unknown type, must be binary type")},k1=o=>new TextEncoder().encode(o),K1=o=>new TextDecoder().decode(o);class V1{constructor(r,i,n){this.name=r,this.prefix=i,this.baseEncode=n}encode(r){if(r instanceof Uint8Array)return`${this.prefix}${this.baseEncode(r)}`;throw Error("Unknown type, must be binary type")}}class F1{constructor(r,i,n){if(this.name=r,this.prefix=i,i.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=i.codePointAt(0),this.baseDecode=n}decode(r){if(typeof r=="string"){if(r.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(r)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(r.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(r){return af(this,r)}}class B1{constructor(r){this.decoders=r}or(r){return af(this,r)}decode(r){const i=r[0],n=this.decoders[i];if(n)return n.decode(r);throw RangeError(`Unable to decode multibase string ${JSON.stringify(r)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const af=(o,r)=>new B1({...o.decoders||{[o.prefix]:o},...r.decoders||{[r.prefix]:r}});class G1{constructor(r,i,n,a){this.name=r,this.prefix=i,this.baseEncode=n,this.baseDecode=a,this.encoder=new V1(r,i,n),this.decoder=new F1(r,i,a)}encode(r){return this.encoder.encode(r)}decode(r){return this.decoder.decode(r)}}const Oa=({name:o,prefix:r,encode:i,decode:n})=>new G1(o,r,i,n),Xs=({prefix:o,name:r,alphabet:i})=>{const{encode:n,decode:a}=H1(i,r);return Oa({prefix:o,name:r,encode:n,decode:h=>nf(a(h))})},W1=(o,r,i,n)=>{const a={};for(let b=0;b=8&&(v-=8,p[g++]=255&m>>v)}if(v>=i||255&m<<8-v)throw new SyntaxError("Unexpected end of data");return p},J1=(o,r,i)=>{const n=r[r.length-1]==="=",a=(1<i;)p-=i,h+=r[a&v>>p];if(p&&(h+=r[a&v<Oa({prefix:r,name:o,encode(a){return J1(a,n,i)},decode(a){return W1(a,n,i,o)}}),Q1=Oa({prefix:"\0",name:"identity",encode:o=>K1(o),decode:o=>k1(o)});var Y1=Object.freeze({__proto__:null,identity:Q1});const Z1=Mt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var X1=Object.freeze({__proto__:null,base2:Z1});const e_=Mt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var t_=Object.freeze({__proto__:null,base8:e_});const r_=Xs({prefix:"9",name:"base10",alphabet:"0123456789"});var i_=Object.freeze({__proto__:null,base10:r_});const s_=Mt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),n_=Mt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var a_=Object.freeze({__proto__:null,base16:s_,base16upper:n_});const o_=Mt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),c_=Mt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),u_=Mt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),h_=Mt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),l_=Mt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),f_=Mt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),p_=Mt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),d_=Mt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),g_=Mt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var y_=Object.freeze({__proto__:null,base32:o_,base32upper:c_,base32pad:u_,base32padupper:h_,base32hex:l_,base32hexupper:f_,base32hexpad:p_,base32hexpadupper:d_,base32z:g_});const v_=Xs({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),m_=Xs({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var w_=Object.freeze({__proto__:null,base36:v_,base36upper:m_});const __=Xs({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),b_=Xs({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var I_=Object.freeze({__proto__:null,base58btc:__,base58flickr:b_});const E_=Mt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),x_=Mt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),P_=Mt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),S_=Mt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var R_=Object.freeze({__proto__:null,base64:E_,base64pad:x_,base64url:P_,base64urlpad:S_});const of=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),O_=of.reduce((o,r,i)=>(o[i]=r,o),[]),A_=of.reduce((o,r,i)=>(o[r.codePointAt(0)]=i,o),[]);function C_(o){return o.reduce((r,i)=>(r+=O_[i],r),"")}function T_(o){const r=[];for(const i of o){const n=A_[i.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${i}`);r.push(n)}return new Uint8Array(r)}const $_=Oa({prefix:"🚀",name:"base256emoji",encode:C_,decode:T_});var N_=Object.freeze({__proto__:null,base256emoji:$_}),D_=cf,ol=128,q_=127,L_=~q_,z_=Math.pow(2,31);function cf(o,r,i){r=r||[],i=i||0;for(var n=i;o>=z_;)r[i++]=o&255|ol,o/=128;for(;o&L_;)r[i++]=o&255|ol,o>>>=7;return r[i]=o|0,cf.bytes=i-n+1,r}var j_=bc,M_=128,cl=127;function bc(o,n){var i=0,n=n||0,a=0,h=n,p,v=o.length;do{if(h>=v)throw bc.bytes=0,new RangeError("Could not decode varint");p=o[h++],i+=a<28?(p&cl)<=M_);return bc.bytes=h-n,i}var U_=Math.pow(2,7),H_=Math.pow(2,14),k_=Math.pow(2,21),K_=Math.pow(2,28),V_=Math.pow(2,35),F_=Math.pow(2,42),B_=Math.pow(2,49),G_=Math.pow(2,56),W_=Math.pow(2,63),J_=function(o){return o(uf.encode(o,r,i),r),hl=o=>uf.encodingLength(o),Ic=(o,r)=>{const i=r.byteLength,n=hl(o),a=n+hl(i),h=new Uint8Array(a+i);return ul(o,h,0),ul(i,h,n),h.set(r,a),new Y_(o,i,r,h)};class Y_{constructor(r,i,n,a){this.code=r,this.size=i,this.digest=n,this.bytes=a}}const hf=({name:o,code:r,encode:i})=>new Z_(o,r,i);class Z_{constructor(r,i,n){this.name=r,this.code=i,this.encode=n}digest(r){if(r instanceof Uint8Array){const i=this.encode(r);return i instanceof Uint8Array?Ic(this.code,i):i.then(n=>Ic(this.code,n))}else throw Error("Unknown type, must be binary type")}}const lf=o=>async r=>new Uint8Array(await crypto.subtle.digest(o,r)),X_=hf({name:"sha2-256",code:18,encode:lf("SHA-256")}),eb=hf({name:"sha2-512",code:19,encode:lf("SHA-512")});var tb=Object.freeze({__proto__:null,sha256:X_,sha512:eb});const ff=0,rb="identity",pf=nf,ib=o=>Ic(ff,pf(o)),sb={code:ff,name:rb,encode:pf,digest:ib};var nb=Object.freeze({__proto__:null,identity:sb});new TextEncoder,new TextDecoder;const ll={...Y1,...X1,...t_,...i_,...a_,...y_,...w_,...I_,...R_,...N_};({...tb,...nb});function df(o){return globalThis.Buffer!=null?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):o}function ab(o=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?df(globalThis.Buffer.allocUnsafe(o)):new Uint8Array(o)}function gf(o,r,i,n){return{name:o,prefix:r,encoder:{name:o,prefix:r,encode:i},decoder:{decode:n}}}const fl=gf("utf8","u",o=>"u"+new TextDecoder("utf8").decode(o),o=>new TextEncoder().encode(o.substring(1))),cc=gf("ascii","a",o=>{let r="a";for(let i=0;i{o=o.substring(1);const r=ab(o.length);for(let i=0;i{if(!this.initialized){const n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,a)=>{this.isInitialized(),this.keychain.set(n,a),await this.persist()},this.get=n=>{this.isInitialized();const a=this.keychain.get(n);if(typeof a>"u"){const{message:h}=B("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(h)}return a},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=r,this.logger=cr(i,this.name)}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(r){await this.core.storage.setItem(this.storageKey,Vl(r))}async getKeyChain(){const r=await this.core.storage.getItem(this.storageKey);return typeof r<"u"?Fl(r):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class Hb{constructor(r,i,n){this.core=r,this.logger=i,this.name=fb,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=a=>(this.isInitialized(),this.keychain.has(a)),this.getClientId=async()=>{this.isInitialized();const a=await this.getClientSeed(),h=il(a);return sf(h.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const a=o0();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();const h=await this.getClientSeed(),p=il(h),v=vc();return await R1(v,a,pb,p)},this.generateSharedKey=(a,h,p)=>{this.isInitialized();const v=this.getPrivateKey(a),m=c0(v,h);return this.setSymKey(m,p)},this.setSymKey=async(a,h)=>{this.isInitialized();const p=h||u0(a);return await this.keychain.set(p,a),p},this.deleteKeyPair=async a=>{this.isInitialized(),await this.keychain.del(a)},this.deleteSymKey=async a=>{this.isInitialized(),await this.keychain.del(a)},this.encode=async(a,h,p)=>{this.isInitialized();const v=h0(p),m=Qs(h);if(zh(v)){const $=v.senderPublicKey,q=v.receiverPublicKey;a=await this.generateSharedKey($,q)}const g=this.getSymKey(a),{type:b,senderPublicKey:S}=v;return l0({type:b,symKey:g,message:m,senderPublicKey:S})},this.decode=async(a,h,p)=>{this.isInitialized();const v=f0(h,p);if(zh(v)){const m=v.receiverPublicKey,g=v.senderPublicKey;a=await this.generateSharedKey(m,g)}try{const m=this.getSymKey(a),g=p0({symKey:m,encoded:h});return Ia(g)}catch(m){this.logger.error(`Failed to decode message from topic: '${a}', clientId: '${await this.getClientId()}'`),this.logger.error(m)}},this.getPayloadType=a=>{const h=jh(a);return d0(h.type)},this.getPayloadSenderPublicKey=a=>{const h=jh(a);return h.senderPublicKey?ba(h.senderPublicKey,g0):void 0},this.core=r,this.logger=cr(i,this.name),this.keychain=n||new Ub(this.core,this.logger)}get context(){return or(this.logger)}async setPrivateKey(r,i){return await this.keychain.set(r,i),r}getPrivateKey(r){return this.keychain.get(r)}async getClientSeed(){let r="";try{r=this.keychain.get(pl)}catch{r=vc(),await this.keychain.set(pl,r)}return cb(r,"base16")}getSymKey(r){return this.keychain.get(r)}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class kb extends s1{constructor(r,i){super(r,i),this.logger=r,this.core=i,this.messages=new Map,this.name=yb,this.version=vb,this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,a)=>{this.isInitialized();const h=ds(a);let p=this.messages.get(n);return typeof p>"u"&&(p={}),typeof p[h]<"u"||(p[h]=a,this.messages.set(n,p),await this.persist()),h},this.get=n=>{this.isInitialized();let a=this.messages.get(n);return typeof a>"u"&&(a={}),a},this.has=(n,a)=>{this.isInitialized();const h=this.get(n),p=ds(a);return typeof h[p]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=cr(r,this.name),this.core=i}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(r){await this.core.storage.setItem(this.storageKey,Vl(r))}async getRelayerMessages(){const r=await this.core.storage.getItem(this.storageKey);return typeof r<"u"?Fl(r):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class Kb extends n1{constructor(r,i){super(r,i),this.relayer=r,this.logger=i,this.events=new qr.EventEmitter,this.name=wb,this.queue=new Map,this.publishTimeout=X.toMiliseconds(X.TEN_SECONDS),this.needsTransportRestart=!1,this.publish=async(n,a,h)=>{var p;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:h}});try{const v=(h==null?void 0:h.ttl)||mb,m=mc(h),g=(h==null?void 0:h.prompt)||!1,b=(h==null?void 0:h.tag)||0,S=(h==null?void 0:h.id)||Gl().toString(),$={topic:n,message:a,opts:{ttl:v,relay:m,prompt:g,tag:b,id:S}},q=setTimeout(()=>this.queue.set(S,$),this.publishTimeout);try{await await Gs(this.rpcPublish(n,a,v,m,g,b,S),this.publishTimeout,"Failed to publish payload, please try again."),this.removeRequestFromQueue(S),this.relayer.events.emit(Kt.publish,$)}catch(A){if(this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0,(p=h==null?void 0:h.internal)!=null&&p.throwOnFailedPublish)throw this.removeRequestFromQueue(S),A;return}finally{clearTimeout(q)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:h}})}catch(v){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(v),v}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.relayer=r,this.logger=cr(i,this.name),this.registerEventListeners()}get context(){return or(this.logger)}rpcPublish(r,i,n,a,h,p,v){var m,g,b,S;const $={method:pa(a.protocol).publish,params:{topic:r,message:i,ttl:n,prompt:h,tag:p},id:v};return _i((m=$.params)==null?void 0:m.prompt)&&((g=$.params)==null||delete g.prompt),_i((b=$.params)==null?void 0:b.tag)&&((S=$.params)==null||delete S.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:$}),this.relayer.request($)}removeRequestFromQueue(r){this.queue.delete(r)}checkQueue(){this.queue.forEach(async r=>{const{topic:i,message:n,opts:a}=r;await this.publish(i,n,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(vs.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(Kt.connection_stalled);return}this.checkQueue()}),this.relayer.on(Kt.message_ack,r=>{this.removeRequestFromQueue(r.id.toString())})}}class Vb{constructor(){this.map=new Map,this.set=(r,i)=>{const n=this.get(r);this.exists(r,i)||this.map.set(r,[...n,i])},this.get=r=>this.map.get(r)||[],this.exists=(r,i)=>this.get(r).includes(i),this.delete=(r,i)=>{if(typeof i>"u"){this.map.delete(r);return}if(!this.map.has(r))return;const n=this.get(r);if(!this.exists(r,i))return;const a=n.filter(h=>h!==i);if(!a.length){this.map.delete(r);return}this.map.set(r,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var Fb=Object.defineProperty,Bb=Object.defineProperties,Gb=Object.getOwnPropertyDescriptors,gl=Object.getOwnPropertySymbols,Wb=Object.prototype.hasOwnProperty,Jb=Object.prototype.propertyIsEnumerable,yl=(o,r,i)=>r in o?Fb(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,Us=(o,r)=>{for(var i in r||(r={}))Wb.call(r,i)&&yl(o,i,r[i]);if(gl)for(var i of gl(r))Jb.call(r,i)&&yl(o,i,r[i]);return o},hc=(o,r)=>Bb(o,Gb(r));class Qb extends c1{constructor(r,i){super(r,i),this.relayer=r,this.logger=i,this.subscriptions=new Map,this.topicMap=new Vb,this.events=new qr.EventEmitter,this.name=Ob,this.version=Ab,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=bi,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}});try{const h=mc(a),p={topic:n,relay:h};this.pending.set(n,p);const v=await this.rpcSubscribe(n,h);return this.onSubscribe(v,p),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}}),v}catch(h){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(h),h}},this.unsubscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),typeof(a==null?void 0:a.id)<"u"?await this.unsubscribeById(n,a.id,a):await this.unsubscribeByTopic(n,a)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((a,h)=>{const p=new X.Watch;p.start(this.pendingSubscriptionWatchLabel);const v=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(v),p.stop(this.pendingSubscriptionWatchLabel),a(!0)),p.elapsed(this.pendingSubscriptionWatchLabel)>=Cb&&(clearInterval(v),p.stop(this.pendingSubscriptionWatchLabel),h(new Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=r,this.logger=cr(i,this.name),this.clientId=""}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(r,i){let n=!1;try{n=this.getSubscription(r).topic===i}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(r,i){const n=this.topicMap.get(r);await Promise.all(n.map(async a=>await this.unsubscribeById(r,a,i)))}async unsubscribeById(r,i,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:r,id:i,opts:n}});try{const a=mc(n);await this.rpcUnsubscribe(r,i,a);const h=kt("USER_DISCONNECTED",`${this.name}, ${r}`);await this.onUnsubscribe(r,i,h),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:r,id:i,opts:n}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(r,i){const n={method:pa(i.protocol).subscribe,params:{topic:r}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Gs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(Kt.connection_stalled)}return ds(r+this.clientId)}async rpcBatchSubscribe(r){if(!r.length)return;const i=r[0].relay,n={method:pa(i.protocol).batchSubscribe,params:{topics:r.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await Gs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Kt.connection_stalled)}}rpcUnsubscribe(r,i,n){const a={method:pa(n.protocol).unsubscribe,params:{topic:r,id:i}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.request(a)}onSubscribe(r,i){this.setSubscription(r,hc(Us({},i),{id:r})),this.pending.delete(i.topic)}onBatchSubscribe(r){r.length&&r.forEach(i=>{this.setSubscription(i.id,Us({},i)),this.pending.delete(i.topic)})}async onUnsubscribe(r,i,n){this.events.removeAllListeners(i),this.hasSubscription(i,r)&&this.deleteSubscription(i,n),await this.relayer.messages.del(r)}async setRelayerSubscriptions(r){await this.relayer.core.storage.setItem(this.storageKey,r)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(r,i){this.subscriptions.has(r)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:r,subscription:i}),this.addSubscription(r,i))}addSubscription(r,i){this.subscriptions.set(r,Us({},i)),this.topicMap.set(i.topic,r),this.events.emit(Nr.created,i)}getSubscription(r){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:r});const i=this.subscriptions.get(r);if(!i){const{message:n}=B("NO_MATCHING_KEY",`${this.name}: ${r}`);throw new Error(n)}return i}deleteSubscription(r,i){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:r,reason:i});const n=this.getSubscription(r);this.subscriptions.delete(r),this.topicMap.delete(n.topic,r),this.events.emit(Nr.deleted,hc(Us({},n),{reason:i}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(Nr.sync)}async reset(){if(this.cached.length){const r=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let i=0;i"u"||!r.length)return;if(this.subscriptions.size){const{message:i}=B("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(i)}this.cached=r,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(r){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(r)}}async batchSubscribe(r){if(!r.length)return;const i=await this.rpcBatchSubscribe(r);ys(i)&&this.onBatchSubscribe(i.map((n,a)=>hc(Us({},r[a]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||this.relayer.transportExplicitlyClosed)return;const r=[];this.pending.forEach(i=>{r.push(i)}),await this.batchSubscribe(r)}registerEventListeners(){this.relayer.core.heartbeat.on(vs.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(Kt.connect,async()=>{await this.onConnect()}),this.relayer.on(Kt.disconnect,()=>{this.onDisconnect()}),this.events.on(Nr.created,async r=>{const i=Nr.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),await this.persist()}),this.events.on(Nr.deleted,async r=>{const i=Nr.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}async restartToComplete(){this.restartInProgress&&await new Promise(r=>{const i=setInterval(()=>{this.restartInProgress||(clearInterval(i),r())},this.pollingInterval)})}}var Yb=Object.defineProperty,vl=Object.getOwnPropertySymbols,Zb=Object.prototype.hasOwnProperty,Xb=Object.prototype.propertyIsEnumerable,ml=(o,r,i)=>r in o?Yb(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,eI=(o,r)=>{for(var i in r||(r={}))Zb.call(r,i)&&ml(o,i,r[i]);if(vl)for(var i of vl(r))Xb.call(r,i)&&ml(o,i,r[i]);return o};class tI extends a1{constructor(r){super(r),this.protocol="wc",this.version=2,this.events=new qr.EventEmitter,this.name=bb,this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.hasExperiencedNetworkDisruption=!1,this.request=async i=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(i)}catch(n){throw this.logger.debug("Failed to Publish Request"),this.logger.error(n),n}},this.onPayloadHandler=i=>{this.onProviderPayload(i)},this.onConnectHandler=()=>{this.events.emit(Kt.connect)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=i=>{this.logger.error(i),this.events.emit(Kt.error,i),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(ii.payload,this.onPayloadHandler),this.provider.on(ii.connect,this.onConnectHandler),this.provider.on(ii.disconnect,this.onDisconnectHandler),this.provider.on(ii.error,this.onProviderErrorHandler)},this.core=r.core,this.logger=typeof r.logger<"u"&&typeof r.logger!="string"?cr(r.logger,this.name):Sa(Ra({level:r.logger||_b})),this.messages=new kb(this.logger,r.core),this.subscriber=new Qb(this,this.logger),this.publisher=new Kb(this,this.logger),this.relayUrl=(r==null?void 0:r.relayUrl)||mf,this.projectId=r.projectId,this.bundleId=y0(),this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${dl}...`),await this.restartTransport(dl)}this.initialized=!0,setTimeout(async()=>{this.subscriber.topics.length===0&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},Pb)}get context(){return or(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(r,i,n){this.isInitialized(),await this.publisher.publish(r,i,n),await this.recordMessageEvent({topic:r,message:i,publishedAt:Date.now()})}async subscribe(r,i){var n;this.isInitialized();let a=((n=this.subscriber.topicMap.get(r))==null?void 0:n[0])||"";if(a)return a;let h;const p=v=>{v.topic===r&&(this.subscriber.off(Nr.created,p),h())};return await Promise.all([new Promise(v=>{h=v,this.subscriber.on(Nr.created,p)}),new Promise(async v=>{a=await this.subscriber.subscribe(r,i),v()})]),a}async unsubscribe(r,i){this.isInitialized(),await this.subscriber.unsubscribe(r,i)}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async transportClose(){this.transportExplicitlyClosed=!0,this.hasExperiencedNetworkDisruption&&this.connected?await Gs(this.provider.disconnect(),1e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.connected&&await this.provider.disconnect()}async transportOpen(r){if(this.transportExplicitlyClosed=!1,await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress){r&&r!==this.relayUrl&&(this.relayUrl=r,await this.transportClose(),await this.createProvider()),this.connectionAttemptInProgress=!0;try{await Promise.all([new Promise(i=>{if(!this.initialized)return i();this.subscriber.once(Nr.resubscribed,()=>{i()})}),new Promise(async(i,n)=>{try{await Gs(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`)}catch(a){n(a);return}i()})])}catch(i){this.logger.error(i);const n=i;if(!this.isConnectionStalled(n.message))throw i;this.provider.events.emit(ii.disconnect)}finally{this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1}}}async restartTransport(r){await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress&&(this.relayUrl=r||this.relayUrl,await this.transportClose(),await this.createProvider(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await Mh())throw new Error("No internet connection detected. Please restart your network and try again.")}isConnectionStalled(r){return this.staleConnectionErrors.some(i=>r.includes(i))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const r=await this.core.crypto.signJWT(this.relayUrl);this.provider=new ni(new T1(v0({sdkVersion:xb,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:r,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(r){const{topic:i,message:n}=r;await this.messages.set(i,n)}async shouldIgnoreMessageEvent(r){const{topic:i,message:n}=r;if(!n||n.length===0)return this.logger.debug(`Ignoring invalid/empty message: ${n}`),!0;if(!await this.subscriber.isSubscribed(i))return this.logger.debug(`Ignoring message for non-subscribed topic ${i}`),!0;const a=this.messages.has(i,n);return a&&this.logger.debug(`Ignoring duplicate message: ${n}`),a}async onProviderPayload(r){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:r}),Tc(r)){if(!r.method.endsWith(Ib))return;const i=r.params,{topic:n,message:a,publishedAt:h}=i.data,p={topic:n,message:a,publishedAt:h};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(eI({type:"event",event:i.id},p)),this.events.emit(i.id,p),await this.acknowledgePayload(r),await this.onMessageEvent(p)}else Ea(r)&&this.events.emit(Kt.message_ack,r)}async onMessageEvent(r){await this.shouldIgnoreMessageEvent(r)||(this.events.emit(Kt.message,r),await this.recordMessageEvent(r))}async acknowledgePayload(r){const i=xa(r.id,!0);await this.provider.connection.send(i)}unregisterProviderListeners(){this.provider.off(ii.payload,this.onPayloadHandler),this.provider.off(ii.connect,this.onConnectHandler),this.provider.off(ii.disconnect,this.onDisconnectHandler),this.provider.off(ii.error,this.onProviderErrorHandler)}async registerEventListeners(){this.events.on(Kt.connection_stalled,()=>{this.restartTransport().catch(i=>this.logger.error(i))});let r=await Mh();m0(async i=>{this.initialized&&r!==i&&(r=i,i?await this.restartTransport().catch(n=>this.logger.error(n)):(this.hasExperiencedNetworkDisruption=!0,await this.transportClose().catch(n=>this.logger.error(n))))})}onProviderDisconnect(){this.events.emit(Kt.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||(this.logger.info("attemptToReconnect called. Connecting..."),setTimeout(async()=>{await this.restartTransport().catch(r=>this.logger.error(r))},X.toMiliseconds(Eb)))}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectionAttemptInProgress)return await new Promise(r=>{const i=setInterval(()=>{this.connected&&(clearInterval(i),r())},this.connectionStatusPollingInterval)});await this.restartTransport()}}}var rI=Object.defineProperty,wl=Object.getOwnPropertySymbols,iI=Object.prototype.hasOwnProperty,sI=Object.prototype.propertyIsEnumerable,_l=(o,r,i)=>r in o?rI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,bl=(o,r)=>{for(var i in r||(r={}))iI.call(r,i)&&_l(o,i,r[i]);if(wl)for(var i of wl(r))sI.call(r,i)&&_l(o,i,r[i]);return o};class Aa extends o1{constructor(r,i,n,a=bi,h=void 0){super(r,i,n,a),this.core=r,this.logger=i,this.name=n,this.map=new Map,this.version=Sb,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(p=>{this.getKey&&p!==null&&!_i(p)?this.map.set(this.getKey(p),p):n0(p)?this.map.set(p.id,p):a0(p)&&this.map.set(p.topic,p)}),this.cached=[],this.initialized=!0)},this.set=async(p,v)=>{this.isInitialized(),this.map.has(p)?await this.update(p,v):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:p,value:v}),this.map.set(p,v),await this.persist())},this.get=p=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:p}),this.getData(p)),this.getAll=p=>(this.isInitialized(),p?this.values.filter(v=>Object.keys(p).every(m=>N1(v[m],p[m]))):this.values),this.update=async(p,v)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:p,update:v});const m=bl(bl({},this.getData(p)),v);this.map.set(p,m),await this.persist()},this.delete=async(p,v)=>{this.isInitialized(),this.map.has(p)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:p,reason:v}),this.map.delete(p),await this.persist())},this.logger=cr(i,this.name),this.storagePrefix=a,this.getKey=h}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(r){await this.core.storage.setItem(this.storageKey,r)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(r){const i=this.map.get(r);if(!i){const{message:n}=B("NO_MATCHING_KEY",`${this.name}: ${r}`);throw this.logger.error(n),new Error(n)}return i}async persist(){await this.setDataStore(this.values)}async restore(){try{const r=await this.getDataStore();if(typeof r>"u"||!r.length)return;if(this.map.size){const{message:i}=B("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),new Error(i)}this.cached=r,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(r){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(r)}}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class nI{constructor(r,i){this.core=r,this.logger=i,this.name=Tb,this.version=$b,this.events=new Ac,this.initialized=!1,this.storagePrefix=bi,this.ignoredPayloadTypes=[Hl],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();const n=vc(),a=await this.core.crypto.setSymKey(n),h=Dr(X.FIVE_MINUTES),p={protocol:vf},v={topic:a,expiry:h,relay:p,active:!1},m=w0({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:n,relay:p});return await this.pairings.set(a,v),await this.core.relayer.subscribe(a),this.core.expirer.set(a,h),{topic:a,uri:m}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);const{topic:a,symKey:h,relay:p}=Uh(n.uri);let v;if(this.pairings.keys.includes(a)&&(v=this.pairings.get(a),v.active))throw new Error(`Pairing already exists: ${a}. Please try again with a new connection URI.`);const m=Dr(X.FIVE_MINUTES),g={topic:a,relay:p,expiry:m,active:!1};return await this.pairings.set(a,g),this.core.expirer.set(a,m),n.activatePairing&&await this.activate({topic:a}),this.events.emit(Fs.create,g),this.core.crypto.keychain.has(a)||(await this.core.crypto.setSymKey(h,a),await this.core.relayer.subscribe(a,{relay:p})),g},this.activate=async({topic:n})=>{this.isInitialized();const a=Dr(X.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:a}),this.core.expirer.set(n,a)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);const{topic:a}=n;if(this.pairings.keys.includes(a)){const h=await this.sendRequest(a,"wc_pairingPing",{}),{done:p,resolve:v,reject:m}=ls();this.events.once(St("pairing_ping",h),({error:g})=>{g?m(g):v()}),await p()}},this.updateExpiry=async({topic:n,expiry:a})=>{this.isInitialized(),await this.pairings.update(n,{expiry:a})},this.updateMetadata=async({topic:n,metadata:a})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:a})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);const{topic:a}=n;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",kt("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(n,a,h)=>{const p=gs(a,h),v=await this.core.crypto.encode(n,p),m=Ms[a].req;return this.core.history.set(n,p),this.core.relayer.publish(n,v,m),p.id},this.sendResult=async(n,a,h)=>{const p=xa(n,h),v=await this.core.crypto.encode(a,p),m=await this.core.history.get(a,n),g=Ms[m.request.method].res;await this.core.relayer.publish(a,v,g),await this.core.history.resolve(p)},this.sendError=async(n,a,h)=>{const p=Cc(n,h),v=await this.core.crypto.encode(a,p),m=await this.core.history.get(a,n),g=Ms[m.request.method]?Ms[m.request.method].res:Ms.unregistered_method.res;await this.core.relayer.publish(a,v,g),await this.core.history.resolve(p)},this.deletePairing=async(n,a)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,kt("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),a?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{const n=this.pairings.getAll().filter(a=>wi(a.expiry));await Promise.all(n.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=n=>{const{topic:a,payload:h}=n;switch(h.method){case"wc_pairingPing":return this.onPairingPingRequest(a,h);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,h);default:return this.onUnknownRpcMethodRequest(a,h)}},this.onRelayEventResponse=async n=>{const{topic:a,payload:h}=n,p=(await this.core.history.get(a,h.id)).request.method;switch(p){case"wc_pairingPing":return this.onPairingPingResponse(a,h);default:return this.onUnknownRpcMethodResponse(p)}},this.onPairingPingRequest=async(n,a)=>{const{id:h}=a;try{this.isValidPing({topic:n}),await this.sendResult(h,n,!0),this.events.emit(Fs.ping,{id:h,topic:n})}catch(p){await this.sendError(h,n,p),this.logger.error(p)}},this.onPairingPingResponse=(n,a)=>{const{id:h}=a;setTimeout(()=>{mi(a)?this.events.emit(St("pairing_ping",h),{}):Kr(a)&&this.events.emit(St("pairing_ping",h),{error:a.error})},500)},this.onPairingDeleteRequest=async(n,a)=>{const{id:h}=a;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit(Fs.delete,{id:h,topic:n})}catch(p){await this.sendError(h,n,p),this.logger.error(p)}},this.onUnknownRpcMethodRequest=async(n,a)=>{const{id:h,method:p}=a;try{if(this.registeredMethods.includes(p))return;const v=kt("WC_METHOD_UNSUPPORTED",p);await this.sendError(h,n,v),this.logger.error(v)}catch(v){await this.sendError(h,n,v),this.logger.error(v)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(kt("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{var a;if(!ar(n)){const{message:p}=B("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(p)}if(!_0(n.uri)){const{message:p}=B("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(p)}const h=Uh(n.uri);if(!((a=h==null?void 0:h.relay)!=null&&a.protocol)){const{message:p}=B("MISSING_OR_INVALID","pair() uri#relay-protocol");throw new Error(p)}if(!(h!=null&&h.symKey)){const{message:p}=B("MISSING_OR_INVALID","pair() uri#symKey");throw new Error(p)}},this.isValidPing=async n=>{if(!ar(n)){const{message:h}=B("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(h)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidDisconnect=async n=>{if(!ar(n)){const{message:h}=B("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(h)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async n=>{if(!fs(n,!1)){const{message:a}=B("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(a)}if(!this.pairings.keys.includes(n)){const{message:a}=B("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(a)}if(wi(this.pairings.get(n).expiry)){await this.deletePairing(n);const{message:a}=B("EXPIRED",`pairing topic: ${n}`);throw new Error(a)}},this.core=r,this.logger=cr(i,this.name),this.pairings=new Aa(this.core,this.logger,this.name,this.storagePrefix)}get context(){return or(this.logger)}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}registerRelayerEvents(){this.core.relayer.on(Kt.message,async r=>{const{topic:i,message:n}=r;if(!this.pairings.keys.includes(i)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;const a=await this.core.crypto.decode(i,n);try{Tc(a)?(this.core.history.set(i,a),this.onRelayEventRequest({topic:i,payload:a})):Ea(a)&&(await this.core.history.resolve(a),await this.onRelayEventResponse({topic:i,payload:a}),this.core.history.delete(i,a.id))}catch(h){this.logger.error(h)}})}registerExpirerEvents(){this.core.expirer.on(Pr.expired,async r=>{const{topic:i}=kl(r.target);i&&this.pairings.keys.includes(i)&&(await this.deletePairing(i,!0),this.events.emit(Fs.expire,{topic:i}))})}}class aI extends i1{constructor(r,i){super(r,i),this.core=r,this.logger=i,this.records=new Map,this.events=new qr.EventEmitter,this.name=Nb,this.version=Db,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,a,h)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:a,chainId:h}),this.records.has(a.id))return;const p={id:a.id,topic:n,request:{method:a.method,params:a.params||null},chainId:h,expiry:Dr(X.THIRTY_DAYS)};this.records.set(p.id,p),this.events.emit(kr.created,p)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;const a=await this.getRecord(n.id);typeof a.response>"u"&&(a.response=Kr(n)?{error:n.error}:{result:n.result},this.records.set(a.id,a),this.events.emit(kr.updated,a))},this.get=async(n,a)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:a}),await this.getRecord(a)),this.delete=(n,a)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:a}),this.values.forEach(h=>{if(h.topic===n){if(typeof a<"u"&&h.id!==a)return;this.records.delete(h.id),this.events.emit(kr.deleted,h)}})},this.exists=async(n,a)=>(this.isInitialized(),this.records.has(a)?(await this.getRecord(a)).topic===n:!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=cr(i,this.name)}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const r=[];return this.values.forEach(i=>{if(typeof i.response<"u")return;const n={topic:i.topic,request:gs(i.request.method,i.request.params,i.id),chainId:i.chainId};return r.push(n)}),r}async setJsonRpcRecords(r){await this.core.storage.setItem(this.storageKey,r)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(r){this.isInitialized();const i=this.records.get(r);if(!i){const{message:n}=B("NO_MATCHING_KEY",`${this.name}: ${r}`);throw new Error(n)}return i}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(kr.sync)}async restore(){try{const r=await this.getJsonRpcRecords();if(typeof r>"u"||!r.length)return;if(this.records.size){const{message:i}=B("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),new Error(i)}this.cached=r,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(r){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(r)}}registerEventListeners(){this.events.on(kr.created,r=>{const i=kr.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,record:r}),this.persist()}),this.events.on(kr.updated,r=>{const i=kr.updated;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,record:r}),this.persist()}),this.events.on(kr.deleted,r=>{const i=kr.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,record:r}),this.persist()}),this.core.heartbeat.on(vs.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(r=>{X.toMiliseconds(r.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${r.id}`),this.delete(r.topic,r.id))})}catch(r){this.logger.warn(r)}}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class oI extends u1{constructor(r,i){super(r,i),this.core=r,this.logger=i,this.expirations=new Map,this.events=new qr.EventEmitter,this.name=qb,this.version=Lb,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{const a=this.formatTarget(n);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(n,a)=>{this.isInitialized();const h=this.formatTarget(n),p={target:h,expiry:a};this.expirations.set(h,p),this.checkExpiry(h,p),this.events.emit(Pr.created,{target:h,expiration:p})},this.get=n=>{this.isInitialized();const a=this.formatTarget(n);return this.getExpiration(a)},this.del=n=>{if(this.isInitialized(),this.has(n)){const a=this.formatTarget(n),h=this.getExpiration(a);this.expirations.delete(a),this.events.emit(Pr.deleted,{target:a,expiration:h})}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=cr(i,this.name)}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(r){if(typeof r=="string")return b0(r);if(typeof r=="number")return I0(r);const{message:i}=B("UNKNOWN_TYPE",`Target type: ${typeof r}`);throw new Error(i)}async setExpirations(r){await this.core.storage.setItem(this.storageKey,r)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Pr.sync)}async restore(){try{const r=await this.getExpirations();if(typeof r>"u"||!r.length)return;if(this.expirations.size){const{message:i}=B("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),new Error(i)}this.cached=r,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(r){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(r)}}getExpiration(r){const i=this.expirations.get(r);if(!i){const{message:n}=B("NO_MATCHING_KEY",`${this.name}: ${r}`);throw this.logger.error(n),new Error(n)}return i}checkExpiry(r,i){const{expiry:n}=i;X.toMiliseconds(n)-Date.now()<=0&&this.expire(r,i)}expire(r,i){this.expirations.delete(r),this.events.emit(Pr.expired,{target:r,expiration:i})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((r,i)=>this.checkExpiry(i,r))}registerEventListeners(){this.core.heartbeat.on(vs.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Pr.created,r=>{const i=Pr.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),this.persist()}),this.events.on(Pr.expired,r=>{const i=Pr.expired;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),this.persist()}),this.events.on(Pr.deleted,r=>{const i=Pr.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),this.persist()})}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class cI extends h1{constructor(r,i){super(r,i),this.projectId=r,this.logger=i,this.name=uc,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async n=>{if(this.verifyDisabled||E0()||!Kl())return;const a=this.getVerifyUrl(n==null?void 0:n.verifyUrl);this.verifyUrl!==a&&this.removeIframe(),this.verifyUrl=a;try{await this.createIframe()}catch(h){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(h)}if(!this.initialized){this.removeIframe(),this.verifyUrl=Ec;try{await this.createIframe()}catch(h){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(h),this.verifyDisabled=!0}}},this.register=async n=>{this.initialized?this.sendPost(n.attestationId):(this.addToQueue(n.attestationId),await this.init())},this.resolve=async n=>{if(this.isDevEnv)return"";const a=this.getVerifyUrl(n==null?void 0:n.verifyUrl);let h;try{h=await this.fetchAttestation(n.attestationId,a)}catch(p){this.logger.info(`failed to resolve attestation: ${n.attestationId} from url: ${a}`),this.logger.info(p),h=await this.fetchAttestation(n.attestationId,Ec)}return h},this.fetchAttestation=async(n,a)=>{this.logger.info(`resolving attestation: ${n} from url: ${a}`);const h=this.startAbortTimer(X.ONE_SECOND*2),p=await fetch(`${a}/attestation/${n}`,{signal:this.abortController.signal});return clearTimeout(h),p.status===200?await p.json():void 0},this.addToQueue=n=>{this.queue.push(n)},this.processQueue=()=>{this.queue.length!==0&&(this.queue.forEach(n=>this.sendPost(n)),this.queue=[])},this.sendPost=n=>{var a;try{if(!this.iframe)return;(a=this.iframe.contentWindow)==null||a.postMessage(n,"*"),this.logger.info(`postMessage sent: ${n} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let n;const a=h=>{h.data==="verify_ready"&&(this.initialized=!0,this.processQueue(),window.removeEventListener("message",a),n())};await Promise.race([new Promise(h=>{if(document.getElementById(uc))return h();window.addEventListener("message",a);const p=document.createElement("iframe");p.id=uc,p.src=`${this.verifyUrl}/${this.projectId}`,p.style.display="none",document.body.append(p),this.iframe=p,n=h}),new Promise((h,p)=>setTimeout(()=>{window.removeEventListener("message",a),p("verify iframe load timeout")},X.toMiliseconds(X.FIVE_SECONDS)))])},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=n=>{let a=n||ps;return zb.includes(a)||(this.logger.info(`verify url: ${a}, not included in trusted list, assigning default: ${ps}`),a=ps),a},this.logger=cr(i,this.name),this.verifyUrl=ps,this.abortController=new AbortController,this.isDevEnv=x0()&&j1.IS_VITEST}get context(){return or(this.logger)}startAbortTimer(r){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),X.toMiliseconds(r))}}class uI extends l1{constructor(r,i){super(r,i),this.projectId=r,this.logger=i,this.context=jb,this.registerDeviceToken=async n=>{const{clientId:a,token:h,notificationType:p,enableEncrypted:v=!1}=n,m=`${Mb}/${this.projectId}/clients`;await z1(m,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:a,type:p,token:h,always_raw:v})})},this.logger=cr(i,this.context)}}var hI=Object.defineProperty,Il=Object.getOwnPropertySymbols,lI=Object.prototype.hasOwnProperty,fI=Object.prototype.propertyIsEnumerable,El=(o,r,i)=>r in o?hI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,xl=(o,r)=>{for(var i in r||(r={}))lI.call(r,i)&&El(o,i,r[i]);if(Il)for(var i of Il(r))fI.call(r,i)&&El(o,i,r[i]);return o};class Dc extends r1{constructor(r){super(r),this.protocol=yf,this.version=ub,this.name=Nc,this.events=new qr.EventEmitter,this.initialized=!1,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.projectId=r==null?void 0:r.projectId,this.relayUrl=(r==null?void 0:r.relayUrl)||mf,this.customStoragePrefix=r!=null&&r.customStoragePrefix?`:${r.customStoragePrefix}`:"";const i=typeof(r==null?void 0:r.logger)<"u"&&typeof(r==null?void 0:r.logger)!="string"?r.logger:Sa(Ra({level:(r==null?void 0:r.logger)||hb.logger}));this.logger=cr(i,this.name),this.heartbeat=new vs.HeartBeat,this.crypto=new Hb(this,this.logger,r==null?void 0:r.keychain),this.history=new aI(this,this.logger),this.expirer=new oI(this,this.logger),this.storage=r!=null&&r.storage?r.storage:new Pw(xl(xl({},lb),r==null?void 0:r.storageOptions)),this.relayer=new tI({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new nI(this,this.logger),this.verify=new cI(this.projectId||"",this.logger),this.echoClient=new uI(this.projectId||"",this.logger)}static async init(r){const i=new Dc(r);await i.initialize();const n=await i.crypto.getClientId();return await i.storage.setItem(Rb,n),i}get context(){return or(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(r){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,r),this.logger.error(r.message),r}}}const pI=Dc,wf="wc",_f=2,bf="client",qc=`${wf}@${_f}:${bf}:`,lc={name:bf,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},Pl="WALLETCONNECT_DEEPLINK_CHOICE",dI="proposal",If="Proposal expired",gI="session",ha=X.SEVEN_DAYS,yI="engine",Hs={wc_sessionPropose:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1104},res:{ttl:X.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1106},res:{ttl:X.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1112},res:{ttl:X.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:X.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:X.THIRTY_SECONDS,prompt:!1,tag:1115}}},fc={min:X.FIVE_MINUTES,max:X.SEVEN_DAYS},si={idle:"IDLE",active:"ACTIVE"},vI="request",mI=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var wI=Object.defineProperty,_I=Object.defineProperties,bI=Object.getOwnPropertyDescriptors,Sl=Object.getOwnPropertySymbols,II=Object.prototype.hasOwnProperty,EI=Object.prototype.propertyIsEnumerable,Rl=(o,r,i)=>r in o?wI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,sr=(o,r)=>{for(var i in r||(r={}))II.call(r,i)&&Rl(o,i,r[i]);if(Sl)for(var i of Sl(r))EI.call(r,i)&&Rl(o,i,r[i]);return o},ks=(o,r)=>_I(o,bI(r));class xI extends p1{constructor(r){super(r),this.name=yI,this.events=new Ac,this.initialized=!1,this.ignoredPayloadTypes=[Hl],this.requestQueue={state:si.idle,queue:[]},this.sessionRequestQueue={state:si.idle,queue:[]},this.requestQueueDelay=X.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(Hs)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},X.toMiliseconds(this.requestQueueDelay)))},this.connect=async i=>{await this.isInitialized();const n=ks(sr({},i),{requiredNamespaces:i.requiredNamespaces||{},optionalNamespaces:i.optionalNamespaces||{}});await this.isValidConnect(n);const{pairingTopic:a,requiredNamespaces:h,optionalNamespaces:p,sessionProperties:v,relays:m}=n;let g=a,b,S=!1;if(g&&(S=this.client.core.pairing.pairings.get(g).active),!g||!S){const{topic:ae,uri:te}=await this.client.core.pairing.create();g=ae,b=te}const $=await this.client.core.crypto.generateKeyPair(),q=sr({requiredNamespaces:h,optionalNamespaces:p,relays:m??[{protocol:vf}],proposer:{publicKey:$,metadata:this.client.metadata}},v&&{sessionProperties:v}),{reject:A,resolve:Z,done:se}=ls(X.FIVE_MINUTES,If);if(this.events.once(St("session_connect"),async({error:ae,session:te})=>{if(ae)A(ae);else if(te){te.self.publicKey=$;const fe=ks(sr({},te),{requiredNamespaces:te.requiredNamespaces,optionalNamespaces:te.optionalNamespaces});await this.client.session.set(te.topic,fe),await this.setExpiry(te.topic,te.expiry),g&&await this.client.core.pairing.updateMetadata({topic:g,metadata:te.peer.metadata}),Z(fe)}}),!g){const{message:ae}=B("NO_MATCHING_KEY",`connect() pairing topic: ${g}`);throw new Error(ae)}const ne=await this.sendRequest({topic:g,method:"wc_sessionPropose",params:q}),ce=Dr(X.FIVE_MINUTES);return await this.setProposal(ne,sr({id:ne,expiry:ce},q)),{uri:b,approval:se}},this.pair=async i=>(await this.isInitialized(),await this.client.core.pairing.pair(i)),this.approve=async i=>{await this.isInitialized(),await this.isValidApprove(i);const{id:n,relayProtocol:a,namespaces:h,sessionProperties:p}=i,v=this.client.proposal.get(n);let{pairingTopic:m,proposer:g,requiredNamespaces:b,optionalNamespaces:S}=v;m=m||"",da(b)||(b=S0(h,"approve()"));const $=await this.client.core.crypto.generateKeyPair(),q=g.publicKey,A=await this.client.core.crypto.generateSharedKey($,q);m&&n&&(await this.client.core.pairing.updateMetadata({topic:m,metadata:g.metadata}),await this.sendResult({id:n,topic:m,result:{relay:{protocol:a??"irn"},responderPublicKey:$}}),await this.client.proposal.delete(n,kt("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:m}));const Z=sr({relay:{protocol:a??"irn"},namespaces:h,requiredNamespaces:b,optionalNamespaces:S,pairingTopic:m,controller:{publicKey:$,metadata:this.client.metadata},expiry:Dr(ha)},p&&{sessionProperties:p});await this.client.core.relayer.subscribe(A),await this.sendRequest({topic:A,method:"wc_sessionSettle",params:Z,throwOnFailedPublish:!0});const se=ks(sr({},Z),{topic:A,pairingTopic:m,acknowledged:!1,self:Z.controller,peer:{publicKey:g.publicKey,metadata:g.metadata},controller:$});return await this.client.session.set(A,se),await this.setExpiry(A,Dr(ha)),{topic:A,acknowledged:()=>new Promise(ne=>setTimeout(()=>ne(this.client.session.get(A)),500))}},this.reject=async i=>{await this.isInitialized(),await this.isValidReject(i);const{id:n,reason:a}=i,{pairingTopic:h}=this.client.proposal.get(n);h&&(await this.sendError(n,h,a),await this.client.proposal.delete(n,kt("USER_DISCONNECTED")))},this.update=async i=>{await this.isInitialized(),await this.isValidUpdate(i);const{topic:n,namespaces:a}=i,h=await this.sendRequest({topic:n,method:"wc_sessionUpdate",params:{namespaces:a}}),{done:p,resolve:v,reject:m}=ls();return this.events.once(St("session_update",h),({error:g})=>{g?m(g):v()}),await this.client.session.update(n,{namespaces:a}),{acknowledged:p}},this.extend=async i=>{await this.isInitialized(),await this.isValidExtend(i);const{topic:n}=i,a=await this.sendRequest({topic:n,method:"wc_sessionExtend",params:{}}),{done:h,resolve:p,reject:v}=ls();return this.events.once(St("session_extend",a),({error:m})=>{m?v(m):p()}),await this.setExpiry(n,Dr(ha)),{acknowledged:h}},this.request=async i=>{await this.isInitialized(),await this.isValidRequest(i);const{chainId:n,request:a,topic:h,expiry:p}=i,v=J0(),{done:m,resolve:g,reject:b}=ls(p,"Request expired. Please try again.");return this.events.once(St("session_request",v),({error:S,result:$})=>{S?b(S):g($)}),await Promise.all([new Promise(async S=>{await this.sendRequest({clientRpcId:v,topic:h,method:"wc_sessionRequest",params:{request:a,chainId:n},expiry:p,throwOnFailedPublish:!0}).catch($=>b($)),this.client.events.emit("session_request_sent",{topic:h,request:a,chainId:n,id:v}),S()}),new Promise(async S=>{const $=await R0(this.client.core.storage,Pl);O0({id:v,topic:h,wcDeepLink:$}),S()}),m()]).then(S=>S[2])},this.respond=async i=>{await this.isInitialized(),await this.isValidRespond(i);const{topic:n,response:a}=i,{id:h}=a;mi(a)?await this.sendResult({id:h,topic:n,result:a.result,throwOnFailedPublish:!0}):Kr(a)&&await this.sendError(h,n,a.error),this.cleanupAfterResponse(i)},this.ping=async i=>{await this.isInitialized(),await this.isValidPing(i);const{topic:n}=i;if(this.client.session.keys.includes(n)){const a=await this.sendRequest({topic:n,method:"wc_sessionPing",params:{}}),{done:h,resolve:p,reject:v}=ls();this.events.once(St("session_ping",a),({error:m})=>{m?v(m):p()}),await h()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async i=>{await this.isInitialized(),await this.isValidEmit(i);const{topic:n,event:a,chainId:h}=i;await this.sendRequest({topic:n,method:"wc_sessionEvent",params:{event:a,chainId:h}})},this.disconnect=async i=>{await this.isInitialized(),await this.isValidDisconnect(i);const{topic:n}=i;this.client.session.keys.includes(n)?(await this.sendRequest({topic:n,method:"wc_sessionDelete",params:kt("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=i=>(this.isInitialized(),this.client.session.getAll().filter(n=>A0(n,i))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async i=>{if(i.pairingTopic)try{const n=this.client.core.pairing.pairings.get(i.pairingTopic),a=this.client.core.pairing.pairings.getAll().filter(h=>{var p,v;return((p=h.peerMetadata)==null?void 0:p.url)&&((v=h.peerMetadata)==null?void 0:v.url)===i.peer.metadata.url&&h.topic&&h.topic!==n.topic});if(a.length===0)return;this.client.logger.info(`Cleaning up ${a.length} duplicate pairing(s)`),await Promise.all(a.map(h=>this.client.core.pairing.disconnect({topic:h.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(n){this.client.logger.error(n)}},this.deleteSession=async(i,n)=>{const{self:a}=this.client.session.get(i);await this.client.core.relayer.unsubscribe(i),this.client.session.delete(i,kt("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(a.publicKey)&&await this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.keychain.has(i)&&await this.client.core.crypto.deleteSymKey(i),n||this.client.core.expirer.del(i),this.client.core.storage.removeItem(Pl).catch(h=>this.client.logger.warn(h)),this.getPendingSessionRequests().forEach(h=>{h.topic===i&&this.deletePendingSessionRequest(h.id,kt("USER_DISCONNECTED"))})},this.deleteProposal=async(i,n)=>{await Promise.all([this.client.proposal.delete(i,kt("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(i)])},this.deletePendingSessionRequest=async(i,n,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(i,n),a?Promise.resolve():this.client.core.expirer.del(i)]),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(h=>h.id!==i),a&&(this.sessionRequestQueue.state=si.idle)},this.setExpiry=async(i,n)=>{this.client.session.keys.includes(i)&&await this.client.session.update(i,{expiry:n}),this.client.core.expirer.set(i,n)},this.setProposal=async(i,n)=>{await this.client.proposal.set(i,n),this.client.core.expirer.set(i,n.expiry)},this.setPendingSessionRequest=async i=>{const n=Hs.wc_sessionRequest.req.ttl,{id:a,topic:h,params:p,verifyContext:v}=i;await this.client.pendingRequest.set(a,{id:a,topic:h,params:p,verifyContext:v}),n&&this.client.core.expirer.set(a,Dr(n))},this.sendRequest=async i=>{const{topic:n,method:a,params:h,expiry:p,relayRpcId:v,clientRpcId:m,throwOnFailedPublish:g}=i,b=gs(a,h,m);if(Kl()&&mI.includes(a)){const q=ds(JSON.stringify(b));this.client.core.verify.register({attestationId:q})}const S=await this.client.core.crypto.encode(n,b),$=Hs[a].req;return p&&($.ttl=p),v&&($.id=v),this.client.core.history.set(n,b),g?($.internal=ks(sr({},$.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(n,S,$)):this.client.core.relayer.publish(n,S,$).catch(q=>this.client.logger.error(q)),b.id},this.sendResult=async i=>{const{id:n,topic:a,result:h,throwOnFailedPublish:p}=i,v=xa(n,h),m=await this.client.core.crypto.encode(a,v),g=await this.client.core.history.get(a,n),b=Hs[g.request.method].res;p?(b.internal=ks(sr({},b.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(a,m,b)):this.client.core.relayer.publish(a,m,b).catch(S=>this.client.logger.error(S)),await this.client.core.history.resolve(v)},this.sendError=async(i,n,a)=>{const h=Cc(i,a),p=await this.client.core.crypto.encode(n,h),v=await this.client.core.history.get(n,i),m=Hs[v.request.method].res;this.client.core.relayer.publish(n,p,m),await this.client.core.history.resolve(h)},this.cleanup=async()=>{const i=[],n=[];this.client.session.getAll().forEach(a=>{wi(a.expiry)&&i.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{wi(a.expiry)&&n.push(a.id)}),await Promise.all([...i.map(a=>this.deleteSession(a)),...n.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=async i=>{this.requestQueue.queue.push(i),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===si.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=si.active;const i=this.requestQueue.queue.shift();if(i)try{this.processRequest(i),await new Promise(n=>setTimeout(n,300))}catch(n){this.client.logger.warn(n)}}this.requestQueue.state=si.idle},this.processRequest=i=>{const{topic:n,payload:a}=i,h=a.method;switch(h){case"wc_sessionPropose":return this.onSessionProposeRequest(n,a);case"wc_sessionSettle":return this.onSessionSettleRequest(n,a);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,a);case"wc_sessionExtend":return this.onSessionExtendRequest(n,a);case"wc_sessionPing":return this.onSessionPingRequest(n,a);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,a);case"wc_sessionRequest":return this.onSessionRequest(n,a);case"wc_sessionEvent":return this.onSessionEventRequest(n,a);default:return this.client.logger.info(`Unsupported request method ${h}`)}},this.onRelayEventResponse=async i=>{const{topic:n,payload:a}=i,h=(await this.client.core.history.get(n,a.id)).request.method;switch(h){case"wc_sessionPropose":return this.onSessionProposeResponse(n,a);case"wc_sessionSettle":return this.onSessionSettleResponse(n,a);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,a);case"wc_sessionExtend":return this.onSessionExtendResponse(n,a);case"wc_sessionPing":return this.onSessionPingResponse(n,a);case"wc_sessionRequest":return this.onSessionRequestResponse(n,a);default:return this.client.logger.info(`Unsupported response method ${h}`)}},this.onRelayEventUnknownPayload=i=>{const{topic:n}=i,{message:a}=B("MISSING_OR_INVALID",`Decoded payload on topic ${n} is not identifiable as a JSON-RPC request or a response.`);throw new Error(a)},this.onSessionProposeRequest=async(i,n)=>{const{params:a,id:h}=n;try{this.isValidConnect(sr({},n.params));const p=Dr(X.FIVE_MINUTES),v=sr({id:h,pairingTopic:i,expiry:p},a);await this.setProposal(h,v);const m=ds(JSON.stringify(n)),g=await this.getVerifyContext(m,v.proposer.metadata);this.client.events.emit("session_proposal",{id:h,params:v,verifyContext:g})}catch(p){await this.sendError(h,i,p),this.client.logger.error(p)}},this.onSessionProposeResponse=async(i,n)=>{const{id:a}=n;if(mi(n)){const{result:h}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:h});const p=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:p});const v=p.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:v});const m=h.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:m});const g=await this.client.core.crypto.generateSharedKey(v,m);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:g});const b=await this.client.core.relayer.subscribe(g);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:b}),await this.client.core.pairing.activate({topic:i})}else Kr(n)&&(await this.client.proposal.delete(a,kt("USER_DISCONNECTED")),this.events.emit(St("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(i,n)=>{const{id:a,params:h}=n;try{this.isValidSessionSettleRequest(h);const{relay:p,controller:v,expiry:m,namespaces:g,requiredNamespaces:b,optionalNamespaces:S,sessionProperties:$,pairingTopic:q}=n.params,A=sr({topic:i,relay:p,expiry:m,namespaces:g,acknowledged:!0,pairingTopic:q,requiredNamespaces:b,optionalNamespaces:S,controller:v.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:v.publicKey,metadata:v.metadata}},$&&{sessionProperties:$});await this.sendResult({id:n.id,topic:i,result:!0}),this.events.emit(St("session_connect"),{session:A}),this.cleanupDuplicatePairings(A)}catch(p){await this.sendError(a,i,p),this.client.logger.error(p)}},this.onSessionSettleResponse=async(i,n)=>{const{id:a}=n;mi(n)?(await this.client.session.update(i,{acknowledged:!0}),this.events.emit(St("session_approve",a),{})):Kr(n)&&(await this.client.session.delete(i,kt("USER_DISCONNECTED")),this.events.emit(St("session_approve",a),{error:n.error}))},this.onSessionUpdateRequest=async(i,n)=>{const{params:a,id:h}=n;try{const p=`${i}_session_update`,v=aa.get(p);if(v&&this.isRequestOutOfSync(v,h)){this.client.logger.info(`Discarding out of sync request - ${h}`);return}this.isValidUpdate(sr({topic:i},a)),await this.client.session.update(i,{namespaces:a.namespaces}),await this.sendResult({id:h,topic:i,result:!0}),this.client.events.emit("session_update",{id:h,topic:i,params:a}),aa.set(p,h)}catch(p){await this.sendError(h,i,p),this.client.logger.error(p)}},this.isRequestOutOfSync=(i,n)=>parseInt(n.toString().slice(0,-3))<=parseInt(i.toString().slice(0,-3)),this.onSessionUpdateResponse=(i,n)=>{const{id:a}=n;mi(n)?this.events.emit(St("session_update",a),{}):Kr(n)&&this.events.emit(St("session_update",a),{error:n.error})},this.onSessionExtendRequest=async(i,n)=>{const{id:a}=n;try{this.isValidExtend({topic:i}),await this.setExpiry(i,Dr(ha)),await this.sendResult({id:a,topic:i,result:!0}),this.client.events.emit("session_extend",{id:a,topic:i})}catch(h){await this.sendError(a,i,h),this.client.logger.error(h)}},this.onSessionExtendResponse=(i,n)=>{const{id:a}=n;mi(n)?this.events.emit(St("session_extend",a),{}):Kr(n)&&this.events.emit(St("session_extend",a),{error:n.error})},this.onSessionPingRequest=async(i,n)=>{const{id:a}=n;try{this.isValidPing({topic:i}),await this.sendResult({id:a,topic:i,result:!0}),this.client.events.emit("session_ping",{id:a,topic:i})}catch(h){await this.sendError(a,i,h),this.client.logger.error(h)}},this.onSessionPingResponse=(i,n)=>{const{id:a}=n;setTimeout(()=>{mi(n)?this.events.emit(St("session_ping",a),{}):Kr(n)&&this.events.emit(St("session_ping",a),{error:n.error})},500)},this.onSessionDeleteRequest=async(i,n)=>{const{id:a}=n;try{this.isValidDisconnect({topic:i,reason:n.params}),await Promise.all([new Promise(h=>{this.client.core.relayer.once(Kt.publish,async()=>{h(await this.deleteSession(i))})}),this.sendResult({id:a,topic:i,result:!0})]),this.client.events.emit("session_delete",{id:a,topic:i})}catch(h){this.client.logger.error(h)}},this.onSessionRequest=async(i,n)=>{const{id:a,params:h}=n;try{this.isValidRequest(sr({topic:i},h));const p=ds(JSON.stringify(gs("wc_sessionRequest",h,a))),v=this.client.session.get(i),m=await this.getVerifyContext(p,v.peer.metadata),g={id:a,topic:i,params:h,verifyContext:m};await this.setPendingSessionRequest(g),this.addSessionRequestToSessionRequestQueue(g),this.processSessionRequestQueue()}catch(p){await this.sendError(a,i,p),this.client.logger.error(p)}},this.onSessionRequestResponse=(i,n)=>{const{id:a}=n;mi(n)?this.events.emit(St("session_request",a),{result:n.result}):Kr(n)&&this.events.emit(St("session_request",a),{error:n.error})},this.onSessionEventRequest=async(i,n)=>{const{id:a,params:h}=n;try{const p=`${i}_session_event_${h.event.name}`,v=aa.get(p);if(v&&this.isRequestOutOfSync(v,a)){this.client.logger.info(`Discarding out of sync request - ${a}`);return}this.isValidEmit(sr({topic:i},h)),this.client.events.emit("session_event",{id:a,topic:i,params:h}),aa.set(p,a)}catch(p){await this.sendError(a,i,p),this.client.logger.error(p)}},this.addSessionRequestToSessionRequestQueue=i=>{this.sessionRequestQueue.queue.push(i)},this.cleanupAfterResponse=i=>{this.deletePendingSessionRequest(i.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=si.idle,this.processSessionRequestQueue()},X.toMiliseconds(this.requestQueueDelay))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===si.active){this.client.logger.info("session request queue is already active.");return}const i=this.sessionRequestQueue.queue[0];if(!i){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=si.active,this.client.events.emit("session_request",i)}catch(n){this.client.logger.error(n)}},this.onPairingCreated=i=>{if(i.active)return;const n=this.client.proposal.getAll().find(a=>a.pairingTopic===i.topic);n&&this.onSessionProposeRequest(i.topic,gs("wc_sessionPropose",{requiredNamespaces:n.requiredNamespaces,optionalNamespaces:n.optionalNamespaces,relays:n.relays,proposer:n.proposer,sessionProperties:n.sessionProperties},n.id))},this.isValidConnect=async i=>{if(!ar(i)){const{message:m}=B("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(i)}`);throw new Error(m)}const{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:h,sessionProperties:p,relays:v}=i;if(_i(n)||await this.isValidPairingTopic(n),!C0(v)){const{message:m}=B("MISSING_OR_INVALID",`connect() relays: ${v}`);throw new Error(m)}!_i(a)&&da(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!_i(h)&&da(h)!==0&&this.validateNamespaces(h,"optionalNamespaces"),_i(p)||this.validateSessionProps(p,"sessionProperties")},this.validateNamespaces=(i,n)=>{const a=T0(i,"connect()",n);if(a)throw new Error(a.message)},this.isValidApprove=async i=>{if(!ar(i))throw new Error(B("MISSING_OR_INVALID",`approve() params: ${i}`).message);const{id:n,namespaces:a,relayProtocol:h,sessionProperties:p}=i;await this.isValidProposalId(n);const v=this.client.proposal.get(n),m=tc(a,"approve()");if(m)throw new Error(m.message);const g=Hh(v.requiredNamespaces,a,"approve()");if(g)throw new Error(g.message);if(!fs(h,!0)){const{message:b}=B("MISSING_OR_INVALID",`approve() relayProtocol: ${h}`);throw new Error(b)}_i(p)||this.validateSessionProps(p,"sessionProperties")},this.isValidReject=async i=>{if(!ar(i)){const{message:h}=B("MISSING_OR_INVALID",`reject() params: ${i}`);throw new Error(h)}const{id:n,reason:a}=i;if(await this.isValidProposalId(n),!$0(a)){const{message:h}=B("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(h)}},this.isValidSessionSettleRequest=i=>{if(!ar(i)){const{message:g}=B("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${i}`);throw new Error(g)}const{relay:n,controller:a,namespaces:h,expiry:p}=i;if(!N0(n)){const{message:g}=B("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(g)}const v=D0(a,"onSessionSettleRequest()");if(v)throw new Error(v.message);const m=tc(h,"onSessionSettleRequest()");if(m)throw new Error(m.message);if(wi(p)){const{message:g}=B("EXPIRED","onSessionSettleRequest()");throw new Error(g)}},this.isValidUpdate=async i=>{if(!ar(i)){const{message:m}=B("MISSING_OR_INVALID",`update() params: ${i}`);throw new Error(m)}const{topic:n,namespaces:a}=i;await this.isValidSessionTopic(n);const h=this.client.session.get(n),p=tc(a,"update()");if(p)throw new Error(p.message);const v=Hh(h.requiredNamespaces,a,"update()");if(v)throw new Error(v.message)},this.isValidExtend=async i=>{if(!ar(i)){const{message:a}=B("MISSING_OR_INVALID",`extend() params: ${i}`);throw new Error(a)}const{topic:n}=i;await this.isValidSessionTopic(n)},this.isValidRequest=async i=>{if(!ar(i)){const{message:m}=B("MISSING_OR_INVALID",`request() params: ${i}`);throw new Error(m)}const{topic:n,request:a,chainId:h,expiry:p}=i;await this.isValidSessionTopic(n);const{namespaces:v}=this.client.session.get(n);if(!kh(v,h)){const{message:m}=B("MISSING_OR_INVALID",`request() chainId: ${h}`);throw new Error(m)}if(!q0(a)){const{message:m}=B("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(m)}if(!L0(v,h,a.method)){const{message:m}=B("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(m)}if(p&&!z0(p,fc)){const{message:m}=B("MISSING_OR_INVALID",`request() expiry: ${p}. Expiry must be a number (in seconds) between ${fc.min} and ${fc.max}`);throw new Error(m)}},this.isValidRespond=async i=>{var n;if(!ar(i)){const{message:p}=B("MISSING_OR_INVALID",`respond() params: ${i}`);throw new Error(p)}const{topic:a,response:h}=i;try{await this.isValidSessionTopic(a)}catch(p){throw(n=i==null?void 0:i.response)!=null&&n.id&&this.cleanupAfterResponse(i),p}if(!j0(h)){const{message:p}=B("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(h)}`);throw new Error(p)}},this.isValidPing=async i=>{if(!ar(i)){const{message:a}=B("MISSING_OR_INVALID",`ping() params: ${i}`);throw new Error(a)}const{topic:n}=i;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async i=>{if(!ar(i)){const{message:v}=B("MISSING_OR_INVALID",`emit() params: ${i}`);throw new Error(v)}const{topic:n,event:a,chainId:h}=i;await this.isValidSessionTopic(n);const{namespaces:p}=this.client.session.get(n);if(!kh(p,h)){const{message:v}=B("MISSING_OR_INVALID",`emit() chainId: ${h}`);throw new Error(v)}if(!M0(a)){const{message:v}=B("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(v)}if(!U0(p,h,a.name)){const{message:v}=B("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(v)}},this.isValidDisconnect=async i=>{if(!ar(i)){const{message:a}=B("MISSING_OR_INVALID",`disconnect() params: ${i}`);throw new Error(a)}const{topic:n}=i;await this.isValidSessionOrPairingTopic(n)},this.getVerifyContext=async(i,n)=>{const a={verified:{verifyUrl:n.verifyUrl||ps,validation:"UNKNOWN",origin:n.url||""}};try{const h=await this.client.core.verify.resolve({attestationId:i,verifyUrl:n.verifyUrl});h&&(a.verified.origin=h.origin,a.verified.isScam=h.isScam,a.verified.validation=h.origin===new URL(n.url).origin?"VALID":"INVALID")}catch(h){this.client.logger.info(h)}return this.client.logger.info(`Verify context: ${JSON.stringify(a)}`),a},this.validateSessionProps=(i,n)=>{Object.values(i).forEach(a=>{if(!fs(a,!1)){const{message:h}=B("MISSING_OR_INVALID",`${n} must be in Record format. Received: ${JSON.stringify(a)}`);throw new Error(h)}})}}async isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(Kt.message,async r=>{const{topic:i,message:n}=r;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;const a=await this.client.core.crypto.decode(i,n);try{Tc(a)?(this.client.core.history.set(i,a),this.onRelayEventRequest({topic:i,payload:a})):Ea(a)?(await this.client.core.history.resolve(a),await this.onRelayEventResponse({topic:i,payload:a}),this.client.core.history.delete(i,a.id)):this.onRelayEventUnknownPayload({topic:i,payload:a})}catch(h){this.client.logger.error(h)}})}registerExpirerEvents(){this.client.core.expirer.on(Pr.expired,async r=>{const{topic:i,id:n}=kl(r.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,B("EXPIRED"),!0);i?this.client.session.keys.includes(i)&&(await this.deleteSession(i,!0),this.client.events.emit("session_expire",{topic:i})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}registerPairingEvents(){this.client.core.pairing.events.on(Fs.create,r=>this.onPairingCreated(r))}isValidPairingTopic(r){if(!fs(r,!1)){const{message:i}=B("MISSING_OR_INVALID",`pairing topic should be a string: ${r}`);throw new Error(i)}if(!this.client.core.pairing.pairings.keys.includes(r)){const{message:i}=B("NO_MATCHING_KEY",`pairing topic doesn't exist: ${r}`);throw new Error(i)}if(wi(this.client.core.pairing.pairings.get(r).expiry)){const{message:i}=B("EXPIRED",`pairing topic: ${r}`);throw new Error(i)}}async isValidSessionTopic(r){if(!fs(r,!1)){const{message:i}=B("MISSING_OR_INVALID",`session topic should be a string: ${r}`);throw new Error(i)}if(!this.client.session.keys.includes(r)){const{message:i}=B("NO_MATCHING_KEY",`session topic doesn't exist: ${r}`);throw new Error(i)}if(wi(this.client.session.get(r).expiry)){await this.deleteSession(r);const{message:i}=B("EXPIRED",`session topic: ${r}`);throw new Error(i)}}async isValidSessionOrPairingTopic(r){if(this.client.session.keys.includes(r))await this.isValidSessionTopic(r);else if(this.client.core.pairing.pairings.keys.includes(r))this.isValidPairingTopic(r);else if(fs(r,!1)){const{message:i}=B("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${r}`);throw new Error(i)}else{const{message:i}=B("MISSING_OR_INVALID",`session or pairing topic should be a string: ${r}`);throw new Error(i)}}async isValidProposalId(r){if(!H0(r)){const{message:i}=B("MISSING_OR_INVALID",`proposal id should be a number: ${r}`);throw new Error(i)}if(!this.client.proposal.keys.includes(r)){const{message:i}=B("NO_MATCHING_KEY",`proposal id doesn't exist: ${r}`);throw new Error(i)}if(wi(this.client.proposal.get(r).expiry)){await this.deleteProposal(r);const{message:i}=B("EXPIRED",`proposal id: ${r}`);throw new Error(i)}}}class PI extends Aa{constructor(r,i){super(r,i,dI,qc),this.core=r,this.logger=i}}class SI extends Aa{constructor(r,i){super(r,i,gI,qc),this.core=r,this.logger=i}}class RI extends Aa{constructor(r,i){super(r,i,vI,qc,n=>n.id),this.core=r,this.logger=i}}let OI=class Ef extends f1{constructor(r){super(r),this.protocol=wf,this.version=_f,this.name=lc.name,this.events=new qr.EventEmitter,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(a){throw this.logger.error(a.message),a}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(a){throw this.logger.error(a.message),a}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(a){throw this.logger.error(a.message),a}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(a){throw this.logger.error(a.message),a}},this.update=async n=>{try{return await this.engine.update(n)}catch(a){throw this.logger.error(a.message),a}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(a){throw this.logger.error(a.message),a}},this.request=async n=>{try{return await this.engine.request(n)}catch(a){throw this.logger.error(a.message),a}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(a){throw this.logger.error(a.message),a}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(a){throw this.logger.error(a.message),a}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(a){throw this.logger.error(a.message),a}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(a){throw this.logger.error(a.message),a}},this.find=n=>{try{return this.engine.find(n)}catch(a){throw this.logger.error(a.message),a}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=(r==null?void 0:r.name)||lc.name,this.metadata=(r==null?void 0:r.metadata)||P0();const i=typeof(r==null?void 0:r.logger)<"u"&&typeof(r==null?void 0:r.logger)!="string"?r.logger:Sa(Ra({level:(r==null?void 0:r.logger)||lc.logger}));this.core=(r==null?void 0:r.core)||new pI(r),this.logger=cr(i,this.name),this.session=new SI(this.core,this.logger),this.proposal=new PI(this.core,this.logger),this.pendingRequest=new RI(this.core,this.logger),this.engine=new xI(this)}static async init(r){const i=new Ef(r);return await i.initialize(),i}get context(){return or(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(r){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(r.message),r}}};const Ol="error",AI="wss://relay.walletconnect.com",CI="wc",TI="universal_provider",Al=`${CI}@2:${TI}:`,$I="https://rpc.walletconnect.com/v1/",ai={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var Ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xc={exports:{}};/** -* @license -* Lodash -* Copyright OpenJS Foundation and other contributors -* Released under MIT license -* Based on Underscore.js 1.8.3 -* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors -*/(function(o,r){(function(){var i,n="4.17.21",a=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",v="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",g=500,b="__lodash_placeholder__",S=1,$=2,q=4,A=1,Z=2,se=1,ne=2,ce=4,ae=8,te=16,fe=32,pe=64,Q=128,xe=256,Tt=512,yt=30,Yt="...",Vt=800,ur=16,M=1,U=2,Ge=3,qe=1/0,G=9007199254740991,K=17976931348623157e292,H=NaN,V=4294967295,Rt=V-1,rt=V>>>1,xi=[["ary",Q],["bind",se],["bindKey",ne],["curry",ae],["curryRight",te],["flip",Tt],["partial",fe],["partialRight",pe],["rearg",xe]],we="[object Arguments]",Sr="[object Array]",T="[object AsyncFunction]",C="[object Boolean]",R="[object Date]",u="[object DOMException]",I="[object Error]",J="[object Function]",oe="[object GeneratorFunction]",ge="[object Map]",Pe="[object Number]",Re="[object Null]",_e="[object Object]",vt="[object Promise]",lt="[object Proxy]",Ze="[object RegExp]",Ae="[object Set]",ke="[object String]",Ke="[object Symbol]",Xe="[object Undefined]",Ne="[object WeakMap]",Ve="[object WeakSet]",Se="[object ArrayBuffer]",Le="[object DataView]",it="[object Float32Array]",Te="[object Float64Array]",mt="[object Int8Array]",Ot="[object Int16Array]",Lt="[object Int32Array]",zt="[object Uint8Array]",$t="[object Uint8ClampedArray]",Ft="[object Uint16Array]",Zt="[object Uint32Array]",Lr=/\b__p \+= '';/g,Bt=/\b(__p \+=) '' \+/g,Fr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oi=/&(?:amp|lt|gt|quot|#39);/g,Pi=/[&<>"']/g,st=RegExp(oi.source),We=RegExp(Pi.source),nt=/<%-([\s\S]+?)%>/g,at=/<%([\s\S]+?)%>/g,et=/<%=([\s\S]+?)%>/g,Je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wt=/^\w*$/,_t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ot=/[\\^$.*+?()[\]{}|]/g,bt=RegExp(ot.source),ct=/^\s+/,ft=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,He=/\{\n\/\* \[wrapped with (.+)\] \*/,It=/,? & /,Et=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ca=/[()=,{}\[\]\/\s]/,Ta=/\\(\\)?/g,$a=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yr=/\w*$/,Na=/^[-+]0x[0-9a-f]+$/i,Da=/^0b[01]+$/i,qa=/^\[object .+?Constructor\]$/,La=/^0o[0-7]+$/i,za=/^(?:0|[1-9]\d*)$/,Br=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ki=/($^)/,ja=/['\n\r\u2028\u2029\\]/g,Vi="\\ud800-\\udfff",Ma="\\u0300-\\u036f",Ua="\\ufe20-\\ufe2f",Fi="\\u20d0-\\u20ff",en=Ma+Ua+Fi,tn="\\u2700-\\u27bf",Rr="a-z\\xdf-\\xf6\\xf8-\\xff",Ha="\\xac\\xb1\\xd7\\xf7",ka="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ka="\\u2000-\\u206f",Va=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rn="A-Z\\xc0-\\xd6\\xd8-\\xde",sn="\\ufe0e\\ufe0f",Si=Ha+ka+Ka+Va,ms="['’]",Ri="["+Vi+"]",ws="["+Si+"]",Oi="["+en+"]",nn="\\d+",Fa="["+tn+"]",an="["+Rr+"]",on="[^"+Vi+Si+nn+tn+Rr+rn+"]",Bi="\\ud83c[\\udffb-\\udfff]",Ba="(?:"+Oi+"|"+Bi+")",cn="[^"+Vi+"]",Gi="(?:\\ud83c[\\udde6-\\uddff]){2}",ci="[\\ud800-\\udbff][\\udc00-\\udfff]",hr="["+rn+"]",un="\\u200d",hn="(?:"+an+"|"+on+")",zr="(?:"+hr+"|"+on+")",ln="(?:"+ms+"(?:d|ll|m|re|s|t|ve))?",fn="(?:"+ms+"(?:D|LL|M|RE|S|T|VE))?",pn=Ba+"?",dn="["+sn+"]?",Ga="(?:"+un+"(?:"+[cn,Gi,ci].join("|")+")"+dn+pn+")*",Gr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yn=dn+pn+Ga,Wi="(?:"+[Fa,Gi,ci].join("|")+")"+yn,Wa="(?:"+[cn+Oi+"?",Oi,Gi,ci,Ri].join("|")+")",_s=RegExp(ms,"g"),Ja=RegExp(Oi,"g"),Ji=RegExp(Bi+"(?="+Bi+")|"+Wa+yn,"g"),vn=RegExp([hr+"?"+an+"+"+ln+"(?="+[ws,hr,"$"].join("|")+")",zr+"+"+fn+"(?="+[ws,hr+hn,"$"].join("|")+")",hr+"?"+hn+"+"+ln,hr+"+"+fn,gn,Gr,nn,Wi].join("|"),"g"),mn=RegExp("["+un+Vi+en+sn+"]"),Ai=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Qa=-1,ze={};ze[it]=ze[Te]=ze[mt]=ze[Ot]=ze[Lt]=ze[zt]=ze[$t]=ze[Ft]=ze[Zt]=!0,ze[we]=ze[Sr]=ze[Se]=ze[C]=ze[Le]=ze[R]=ze[I]=ze[J]=ze[ge]=ze[Pe]=ze[_e]=ze[Ze]=ze[Ae]=ze[ke]=ze[Ne]=!1;var De={};De[we]=De[Sr]=De[Se]=De[Le]=De[C]=De[R]=De[it]=De[Te]=De[mt]=De[Ot]=De[Lt]=De[ge]=De[Pe]=De[_e]=De[Ze]=De[Ae]=De[ke]=De[Ke]=De[zt]=De[$t]=De[Ft]=De[Zt]=!0,De[I]=De[J]=De[Ne]=!1;var y={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},E={"&":"&","<":"<",">":">",'"':""","'":"'"},z={"&":"&","<":"<",">":">",""":'"',"'":"'"},F={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},je=parseFloat,he=parseInt,Fe=typeof Ks=="object"&&Ks&&Ks.Object===Object&&Ks,xt=typeof self=="object"&&self&&self.Object===Object&&self,Ie=Fe||xt||Function("return this")(),Me=r&&!r.nodeType&&r,pt=Me&&!0&&o&&!o.nodeType&&o,Xt=pt&&pt.exports===Me,Pt=Xt&&Fe.process,Be=function(){try{var x=pt&&pt.require&&pt.require("util").types;return x||Pt&&Pt.binding&&Pt.binding("util")}catch{}}(),Gt=Be&&Be.isArrayBuffer,Or=Be&&Be.isDate,vr=Be&&Be.isMap,jr=Be&&Be.isRegExp,bs=Be&&Be.isSet,Ci=Be&&Be.isTypedArray;function Nt(x,N,O){switch(O.length){case 0:return x.call(N);case 1:return x.call(N,O[0]);case 2:return x.call(N,O[0],O[1]);case 3:return x.call(N,O[0],O[1],O[2])}return x.apply(N,O)}function Sf(x,N,O,W){for(var ue=-1,Oe=x==null?0:x.length;++ue-1}function Ya(x,N,O){for(var W=-1,ue=x==null?0:x.length;++W-1;);return O}function Fc(x,N){for(var O=x.length;O--&&Qi(N,x[O],0)>-1;);return O}function qf(x,N){for(var O=x.length,W=0;O--;)x[O]===N&&++W;return W}var Lf=to(y),zf=to(E);function jf(x){return"\\"+F[x]}function Mf(x,N){return x==null?i:x[N]}function Yi(x){return mn.test(x)}function Uf(x){return Ai.test(x)}function Hf(x){for(var N,O=[];!(N=x.next()).done;)O.push(N.value);return O}function no(x){var N=-1,O=Array(x.size);return x.forEach(function(W,ue){O[++N]=[ue,W]}),O}function Bc(x,N){return function(O){return x(N(O))}}function li(x,N){for(var O=-1,W=x.length,ue=0,Oe=[];++O-1}function Op(e,t){var s=this.__data__,c=zn(s,e);return c<0?(++this.size,s.push([e,t])):s[c][1]=t,this}Wr.prototype.clear=xp,Wr.prototype.delete=Pp,Wr.prototype.get=Sp,Wr.prototype.has=Rp,Wr.prototype.set=Op;function Jr(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function br(e,t,s,c,l,d){var w,_=t&S,P=t&$,D=t&q;if(s&&(w=l?s(e,c,l,d):s(e)),w!==i)return w;if(!tt(e))return e;var L=le(e);if(L){if(w=$d(e),!_)return er(e,w)}else{var j=Ht(e),k=j==J||j==oe;if(vi(e))return Ou(e,_);if(j==_e||j==we||k&&!l){if(w=P||k?{}:Gu(e),!_)return P?bd(e,Vp(w,e)):_d(e,su(w,e))}else{if(!De[j])return l?e:{};w=Nd(e,j,_)}}d||(d=new Cr);var Y=d.get(e);if(Y)return Y;d.set(e,w),Ih(e)?e.forEach(function(ie){w.add(br(ie,t,s,ie,e,d))}):_h(e)&&e.forEach(function(ie,me){w.set(me,br(ie,t,s,me,e,d))});var re=D?P?$o:To:P?rr:Dt,ye=L?i:re(e);return mr(ye||e,function(ie,me){ye&&(me=ie,ie=e[me]),Os(w,me,br(ie,t,s,me,e,d))}),w}function Fp(e){var t=Dt(e);return function(s){return nu(s,e,t)}}function nu(e,t,s){var c=s.length;if(e==null)return!c;for(e=Ue(e);c--;){var l=s[c],d=t[l],w=e[l];if(w===i&&!(l in e)||!d(w))return!1}return!0}function au(e,t,s){if(typeof e!="function")throw new wr(p);return qs(function(){e.apply(i,s)},t)}function As(e,t,s,c){var l=-1,d=_n,w=!0,_=e.length,P=[],D=t.length;if(!_)return P;s&&(t=Qe(t,lr(s))),c?(d=Ya,w=!1):t.length>=a&&(d=Is,w=!1,t=new Ni(t));e:for(;++l<_;){var L=e[l],j=s==null?L:s(L);if(L=c||L!==0?L:0,w&&j===j){for(var k=D;k--;)if(t[k]===j)continue e;P.push(L)}else d(t,j,c)||P.push(L)}return P}var pi=Nu(Mr),ou=Nu(po,!0);function Bp(e,t){var s=!0;return pi(e,function(c,l,d){return s=!!t(c,l,d),s}),s}function jn(e,t,s){for(var c=-1,l=e.length;++cl?0:l+s),c=c===i||c>l?l:de(c),c<0&&(c+=l),c=s>c?0:xh(c);s0&&s(_)?t>1?jt(_,t-1,s,c,l):hi(l,_):c||(l[l.length]=_)}return l}var fo=Du(),uu=Du(!0);function Mr(e,t){return e&&fo(e,t,Dt)}function po(e,t){return e&&uu(e,t,Dt)}function Mn(e,t){return ui(t,function(s){return ei(e[s])})}function qi(e,t){t=gi(t,e);for(var s=0,c=t.length;e!=null&&st}function Wp(e,t){return e!=null&&$e.call(e,t)}function Jp(e,t){return e!=null&&t in Ue(e)}function Qp(e,t,s){return e>=Ut(t,s)&&e=120&&L.length>=120)?new Ni(w&&L):i}L=e[0];var j=-1,k=_[0];e:for(;++j-1;)_!==e&&Cn.call(_,P,1),Cn.call(e,P,1);return e}function _u(e,t){for(var s=e?t.length:0,c=s-1;s--;){var l=t[s];if(s==c||l!==d){var d=l;Xr(l)?Cn.call(e,l,1):xo(e,l)}}return e}function bo(e,t){return e+Nn(eu()*(t-e+1))}function ud(e,t,s,c){for(var l=-1,d=Ct($n((t-e)/(s||1)),0),w=O(d);d--;)w[c?d:++l]=e,e+=s;return w}function Io(e,t){var s="";if(!e||t<1||t>G)return s;do t%2&&(s+=e),t=Nn(t/2),t&&(e+=e);while(t);return s}function ve(e,t){return Mo(Qu(e,t,ir),e+"")}function hd(e){return iu(cs(e))}function ld(e,t){var s=cs(e);return Qn(s,Di(t,0,s.length))}function $s(e,t,s,c){if(!tt(e))return e;t=gi(t,e);for(var l=-1,d=t.length,w=d-1,_=e;_!=null&&++ll?0:l+t),s=s>l?l:s,s<0&&(s+=l),l=t>s?0:s-t>>>0,t>>>=0;for(var d=O(l);++c>>1,w=e[d];w!==null&&!pr(w)&&(s?w<=t:w=a){var D=t?null:Pd(e);if(D)return In(D);w=!1,l=Is,P=new Ni}else P=t?[]:_;e:for(;++c=c?e:Ir(e,t,s)}var Ru=rp||function(e){return Ie.clearTimeout(e)};function Ou(e,t){if(t)return e.slice();var s=e.length,c=Jc?Jc(s):new e.constructor(s);return e.copy(c),c}function Oo(e){var t=new e.constructor(e.byteLength);return new On(t).set(new On(e)),t}function yd(e,t){var s=t?Oo(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function vd(e){var t=new e.constructor(e.source,yr.exec(e));return t.lastIndex=e.lastIndex,t}function md(e){return Rs?Ue(Rs.call(e)):{}}function Au(e,t){var s=t?Oo(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function Cu(e,t){if(e!==t){var s=e!==i,c=e===null,l=e===e,d=pr(e),w=t!==i,_=t===null,P=t===t,D=pr(t);if(!_&&!D&&!d&&e>t||d&&w&&P&&!_&&!D||c&&w&&P||!s&&P||!l)return 1;if(!c&&!d&&!D&&e=_)return P;var D=s[c];return P*(D=="desc"?-1:1)}}return e.index-t.index}function Tu(e,t,s,c){for(var l=-1,d=e.length,w=s.length,_=-1,P=t.length,D=Ct(d-w,0),L=O(P+D),j=!c;++_1?s[l-1]:i,w=l>2?s[2]:i;for(d=e.length>3&&typeof d=="function"?(l--,d):i,w&&Jt(s[0],s[1],w)&&(d=l<3?i:d,l=1),t=Ue(t);++c-1?l[d?t[w]:w]:i}}function zu(e){return Zr(function(t){var s=t.length,c=s,l=_r.prototype.thru;for(e&&t.reverse();c--;){var d=t[c];if(typeof d!="function")throw new wr(p);if(l&&!w&&Wn(d)=="wrapper")var w=new _r([],!0)}for(c=w?c:s;++c1&&Ee.reverse(),L&&P_))return!1;var D=d.get(e),L=d.get(t);if(D&&L)return D==t&&L==e;var j=-1,k=!0,Y=s&Z?new Ni:i;for(d.set(e,t),d.set(t,e);++j<_;){var re=e[j],ye=t[j];if(c)var ie=w?c(ye,re,j,t,e,d):c(re,ye,j,e,t,d);if(ie!==i){if(ie)continue;k=!1;break}if(Y){if(!Xa(t,function(me,Ee){if(!Is(Y,Ee)&&(re===me||l(re,me,s,c,d)))return Y.push(Ee)})){k=!1;break}}else if(!(re===ye||l(re,ye,s,c,d))){k=!1;break}}return d.delete(e),d.delete(t),k}function Rd(e,t,s,c,l,d,w){switch(s){case Le:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Se:return!(e.byteLength!=t.byteLength||!d(new On(e),new On(t)));case C:case R:case Pe:return Tr(+e,+t);case I:return e.name==t.name&&e.message==t.message;case Ze:case ke:return e==t+"";case ge:var _=no;case Ae:var P=c&A;if(_||(_=In),e.size!=t.size&&!P)return!1;var D=w.get(e);if(D)return D==t;c|=Z,w.set(e,t);var L=Vu(_(e),_(t),c,l,d,w);return w.delete(e),L;case Ke:if(Rs)return Rs.call(e)==Rs.call(t)}return!1}function Od(e,t,s,c,l,d){var w=s&A,_=To(e),P=_.length,D=To(t),L=D.length;if(P!=L&&!w)return!1;for(var j=P;j--;){var k=_[j];if(!(w?k in t:$e.call(t,k)))return!1}var Y=d.get(e),re=d.get(t);if(Y&&re)return Y==t&&re==e;var ye=!0;d.set(e,t),d.set(t,e);for(var ie=w;++j1?"& ":"")+t[c],t=t.join(s>2?", ":" "),e.replace(ut,`{ -/* [wrapped with `+t+`] */ -`)}function qd(e){return le(e)||ji(e)||!!(Zc&&e&&e[Zc])}function Xr(e,t){var s=typeof e;return t=t??G,!!t&&(s=="number"||s!="symbol"&&za.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Vt)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var s=-1,c=e.length,l=c-1;for(t=t===i?c:t;++s1?e[t-1]:i;return s=typeof s=="function"?(e.pop(),s):i,ch(e,s)});function uh(e){var t=f(e);return t.__chain__=!0,t}function Bg(e,t){return t(e),e}function Yn(e,t){return t(e)}var Gg=Zr(function(e){var t=e.length,s=t?e[0]:0,c=this.__wrapped__,l=function(d){return lo(d,e)};return t>1||this.__actions__.length||!(c instanceof be)||!Xr(s)?this.thru(l):(c=c.slice(s,+s+(t?1:0)),c.__actions__.push({func:Yn,args:[l],thisArg:i}),new _r(c,this.__chain__).thru(function(d){return t&&!d.length&&d.push(i),d}))});function Wg(){return uh(this)}function Jg(){return new _r(this.value(),this.__chain__)}function Qg(){this.__values__===i&&(this.__values__=Eh(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Yg(){return this}function Zg(e){for(var t,s=this;s instanceof Ln;){var c=rh(s);c.__index__=0,c.__values__=i,t?l.__wrapped__=c:t=c;var l=c;s=s.__wrapped__}return l.__wrapped__=e,t}function Xg(){var e=this.__wrapped__;if(e instanceof be){var t=e;return this.__actions__.length&&(t=new be(this)),t=t.reverse(),t.__actions__.push({func:Yn,args:[Uo],thisArg:i}),new _r(t,this.__chain__)}return this.thru(Uo)}function ey(){return Pu(this.__wrapped__,this.__actions__)}var ty=Kn(function(e,t,s){$e.call(e,s)?++e[s]:Qr(e,s,1)});function ry(e,t,s){var c=le(e)?jc:Bp;return s&&Jt(e,t,s)&&(t=i),c(e,ee(t,3))}function iy(e,t){var s=le(e)?ui:cu;return s(e,ee(t,3))}var sy=Lu(ih),ny=Lu(sh);function ay(e,t){return jt(Zn(e,t),1)}function oy(e,t){return jt(Zn(e,t),qe)}function cy(e,t,s){return s=s===i?1:de(s),jt(Zn(e,t),s)}function hh(e,t){var s=le(e)?mr:pi;return s(e,ee(t,3))}function lh(e,t){var s=le(e)?Rf:ou;return s(e,ee(t,3))}var uy=Kn(function(e,t,s){$e.call(e,s)?e[s].push(t):Qr(e,s,[t])});function hy(e,t,s,c){e=tr(e)?e:cs(e),s=s&&!c?de(s):0;var l=e.length;return s<0&&(s=Ct(l+s,0)),ia(e)?s<=l&&e.indexOf(t,s)>-1:!!l&&Qi(e,t,s)>-1}var ly=ve(function(e,t,s){var c=-1,l=typeof t=="function",d=tr(e)?O(e.length):[];return pi(e,function(w){d[++c]=l?Nt(t,w,s):Cs(w,t,s)}),d}),fy=Kn(function(e,t,s){Qr(e,s,t)});function Zn(e,t){var s=le(e)?Qe:du;return s(e,ee(t,3))}function py(e,t,s,c){return e==null?[]:(le(t)||(t=t==null?[]:[t]),s=c?i:s,le(s)||(s=s==null?[]:[s]),mu(e,t,s))}var dy=Kn(function(e,t,s){e[s?0:1].push(t)},function(){return[[],[]]});function gy(e,t,s){var c=le(e)?Za:kc,l=arguments.length<3;return c(e,ee(t,4),s,l,pi)}function yy(e,t,s){var c=le(e)?Of:kc,l=arguments.length<3;return c(e,ee(t,4),s,l,ou)}function vy(e,t){var s=le(e)?ui:cu;return s(e,ta(ee(t,3)))}function my(e){var t=le(e)?iu:hd;return t(e)}function wy(e,t,s){(s?Jt(e,t,s):t===i)?t=1:t=de(t);var c=le(e)?Hp:ld;return c(e,t)}function _y(e){var t=le(e)?kp:pd;return t(e)}function by(e){if(e==null)return 0;if(tr(e))return ia(e)?Zi(e):e.length;var t=Ht(e);return t==ge||t==Ae?e.size:mo(e).length}function Iy(e,t,s){var c=le(e)?Xa:dd;return s&&Jt(e,t,s)&&(t=i),c(e,ee(t,3))}var Ey=ve(function(e,t){if(e==null)return[];var s=t.length;return s>1&&Jt(e,t[0],t[1])?t=[]:s>2&&Jt(t[0],t[1],t[2])&&(t=[t[0]]),mu(e,jt(t,1),[])}),Xn=ip||function(){return Ie.Date.now()};function xy(e,t){if(typeof t!="function")throw new wr(p);return e=de(e),function(){if(--e<1)return t.apply(this,arguments)}}function fh(e,t,s){return t=s?i:t,t=e&&t==null?e.length:t,Yr(e,Q,i,i,i,i,t)}function ph(e,t){var s;if(typeof t!="function")throw new wr(p);return e=de(e),function(){return--e>0&&(s=t.apply(this,arguments)),e<=1&&(t=i),s}}var ko=ve(function(e,t,s){var c=se;if(s.length){var l=li(s,as(ko));c|=fe}return Yr(e,c,t,s,l)}),dh=ve(function(e,t,s){var c=se|ne;if(s.length){var l=li(s,as(dh));c|=fe}return Yr(t,c,e,s,l)});function gh(e,t,s){t=s?i:t;var c=Yr(e,ae,i,i,i,i,i,t);return c.placeholder=gh.placeholder,c}function yh(e,t,s){t=s?i:t;var c=Yr(e,te,i,i,i,i,i,t);return c.placeholder=yh.placeholder,c}function vh(e,t,s){var c,l,d,w,_,P,D=0,L=!1,j=!1,k=!0;if(typeof e!="function")throw new wr(p);t=xr(t)||0,tt(s)&&(L=!!s.leading,j="maxWait"in s,d=j?Ct(xr(s.maxWait)||0,t):d,k="trailing"in s?!!s.trailing:k);function Y(gt){var $r=c,ri=l;return c=l=i,D=gt,w=e.apply(ri,$r),w}function re(gt){return D=gt,_=qs(me,t),L?Y(gt):w}function ye(gt){var $r=gt-P,ri=gt-D,Lh=t-$r;return j?Ut(Lh,d-ri):Lh}function ie(gt){var $r=gt-P,ri=gt-D;return P===i||$r>=t||$r<0||j&&ri>=d}function me(){var gt=Xn();if(ie(gt))return Ee(gt);_=qs(me,ye(gt))}function Ee(gt){return _=i,k&&c?Y(gt):(c=l=i,w)}function dr(){_!==i&&Ru(_),D=0,c=P=l=_=i}function Qt(){return _===i?w:Ee(Xn())}function gr(){var gt=Xn(),$r=ie(gt);if(c=arguments,l=this,P=gt,$r){if(_===i)return re(P);if(j)return Ru(_),_=qs(me,t),Y(P)}return _===i&&(_=qs(me,t)),w}return gr.cancel=dr,gr.flush=Qt,gr}var Py=ve(function(e,t){return au(e,1,t)}),Sy=ve(function(e,t,s){return au(e,xr(t)||0,s)});function Ry(e){return Yr(e,Tt)}function ea(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new wr(p);var s=function(){var c=arguments,l=t?t.apply(this,c):c[0],d=s.cache;if(d.has(l))return d.get(l);var w=e.apply(this,c);return s.cache=d.set(l,w)||d,w};return s.cache=new(ea.Cache||Jr),s}ea.Cache=Jr;function ta(e){if(typeof e!="function")throw new wr(p);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Oy(e){return ph(2,e)}var Ay=gd(function(e,t){t=t.length==1&&le(t[0])?Qe(t[0],lr(ee())):Qe(jt(t,1),lr(ee()));var s=t.length;return ve(function(c){for(var l=-1,d=Ut(c.length,s);++l=t}),ji=lu(function(){return arguments}())?lu:function(e){return ht(e)&&$e.call(e,"callee")&&!Yc.call(e,"callee")},le=O.isArray,Vy=Gt?lr(Gt):Zp;function tr(e){return e!=null&&ra(e.length)&&!ei(e)}function dt(e){return ht(e)&&tr(e)}function Fy(e){return e===!0||e===!1||ht(e)&&Wt(e)==C}var vi=np||ec,By=Or?lr(Or):Xp;function Gy(e){return ht(e)&&e.nodeType===1&&!Ls(e)}function Wy(e){if(e==null)return!0;if(tr(e)&&(le(e)||typeof e=="string"||typeof e.splice=="function"||vi(e)||os(e)||ji(e)))return!e.length;var t=Ht(e);if(t==ge||t==Ae)return!e.size;if(Ds(e))return!mo(e).length;for(var s in e)if($e.call(e,s))return!1;return!0}function Jy(e,t){return Ts(e,t)}function Qy(e,t,s){s=typeof s=="function"?s:i;var c=s?s(e,t):i;return c===i?Ts(e,t,i,s):!!c}function Vo(e){if(!ht(e))return!1;var t=Wt(e);return t==I||t==u||typeof e.message=="string"&&typeof e.name=="string"&&!Ls(e)}function Yy(e){return typeof e=="number"&&Xc(e)}function ei(e){if(!tt(e))return!1;var t=Wt(e);return t==J||t==oe||t==T||t==lt}function wh(e){return typeof e=="number"&&e==de(e)}function ra(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=G}function tt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ht(e){return e!=null&&typeof e=="object"}var _h=vr?lr(vr):td;function Zy(e,t){return e===t||vo(e,t,Do(t))}function Xy(e,t,s){return s=typeof s=="function"?s:i,vo(e,t,Do(t),s)}function ev(e){return bh(e)&&e!=+e}function tv(e){if(jd(e))throw new ue(h);return fu(e)}function rv(e){return e===null}function iv(e){return e==null}function bh(e){return typeof e=="number"||ht(e)&&Wt(e)==Pe}function Ls(e){if(!ht(e)||Wt(e)!=_e)return!1;var t=An(e);if(t===null)return!0;var s=$e.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&Pn.call(s)==Xf}var Fo=jr?lr(jr):rd;function sv(e){return wh(e)&&e>=-G&&e<=G}var Ih=bs?lr(bs):id;function ia(e){return typeof e=="string"||!le(e)&&ht(e)&&Wt(e)==ke}function pr(e){return typeof e=="symbol"||ht(e)&&Wt(e)==Ke}var os=Ci?lr(Ci):sd;function nv(e){return e===i}function av(e){return ht(e)&&Ht(e)==Ne}function ov(e){return ht(e)&&Wt(e)==Ve}var cv=Gn(wo),uv=Gn(function(e,t){return e<=t});function Eh(e){if(!e)return[];if(tr(e))return ia(e)?Ar(e):er(e);if(Es&&e[Es])return Hf(e[Es]());var t=Ht(e),s=t==ge?no:t==Ae?In:cs;return s(e)}function ti(e){if(!e)return e===0?e:0;if(e=xr(e),e===qe||e===-qe){var t=e<0?-1:1;return t*K}return e===e?e:0}function de(e){var t=ti(e),s=t%1;return t===t?s?t-s:t:0}function xh(e){return e?Di(de(e),0,V):0}function xr(e){if(typeof e=="number")return e;if(pr(e))return H;if(tt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Kc(e);var s=Da.test(e);return s||La.test(e)?he(e.slice(2),s?2:8):Na.test(e)?H:+e}function Ph(e){return Ur(e,rr(e))}function hv(e){return e?Di(de(e),-G,G):e===0?e:0}function Ce(e){return e==null?"":fr(e)}var lv=ss(function(e,t){if(Ds(t)||tr(t)){Ur(t,Dt(t),e);return}for(var s in t)$e.call(t,s)&&Os(e,s,t[s])}),Sh=ss(function(e,t){Ur(t,rr(t),e)}),sa=ss(function(e,t,s,c){Ur(t,rr(t),e,c)}),fv=ss(function(e,t,s,c){Ur(t,Dt(t),e,c)}),pv=Zr(lo);function dv(e,t){var s=is(e);return t==null?s:su(s,t)}var gv=ve(function(e,t){e=Ue(e);var s=-1,c=t.length,l=c>2?t[2]:i;for(l&&Jt(t[0],t[1],l)&&(c=1);++s1),d}),Ur(e,$o(e),s),c&&(s=br(s,S|$|q,Sd));for(var l=t.length;l--;)xo(s,t[l]);return s});function Nv(e,t){return Oh(e,ta(ee(t)))}var Dv=Zr(function(e,t){return e==null?{}:od(e,t)});function Oh(e,t){if(e==null)return{};var s=Qe($o(e),function(c){return[c]});return t=ee(t),wu(e,s,function(c,l){return t(c,l[0])})}function qv(e,t,s){t=gi(t,e);var c=-1,l=t.length;for(l||(l=1,e=i);++ct){var c=e;e=t,t=c}if(s||e%1||t%1){var l=eu();return Ut(e+l*(t-e+je("1e-"+((l+"").length-1))),t)}return bo(e,t)}var Bv=ns(function(e,t,s){return t=t.toLowerCase(),e+(s?Th(t):t)});function Th(e){return Wo(Ce(e).toLowerCase())}function $h(e){return e=Ce(e),e&&e.replace(Br,Lf).replace(Ja,"")}function Gv(e,t,s){e=Ce(e),t=fr(t);var c=e.length;s=s===i?c:Di(de(s),0,c);var l=s;return s-=t.length,s>=0&&e.slice(s,l)==t}function Wv(e){return e=Ce(e),e&&We.test(e)?e.replace(Pi,zf):e}function Jv(e){return e=Ce(e),e&&bt.test(e)?e.replace(ot,"\\$&"):e}var Qv=ns(function(e,t,s){return e+(s?"-":"")+t.toLowerCase()}),Yv=ns(function(e,t,s){return e+(s?" ":"")+t.toLowerCase()}),Zv=qu("toLowerCase");function Xv(e,t,s){e=Ce(e),t=de(t);var c=t?Zi(e):0;if(!t||c>=t)return e;var l=(t-c)/2;return Bn(Nn(l),s)+e+Bn($n(l),s)}function em(e,t,s){e=Ce(e),t=de(t);var c=t?Zi(e):0;return t&&c>>0,s?(e=Ce(e),e&&(typeof t=="string"||t!=null&&!Fo(t))&&(t=fr(t),!t&&Yi(e))?yi(Ar(e),0,s):e.split(t,s)):[]}var om=ns(function(e,t,s){return e+(s?" ":"")+Wo(t)});function cm(e,t,s){return e=Ce(e),s=s==null?0:Di(de(s),0,e.length),t=fr(t),e.slice(s,s+t.length)==t}function um(e,t,s){var c=f.templateSettings;s&&Jt(e,t,s)&&(t=i),e=Ce(e),t=sa({},t,c,ku);var l=sa({},t.imports,c.imports,ku),d=Dt(l),w=so(l,d),_,P,D=0,L=t.interpolate||Ki,j="__p += '",k=ao((t.escape||Ki).source+"|"+L.source+"|"+(L===et?$a:Ki).source+"|"+(t.evaluate||Ki).source+"|$","g"),Y="//# sourceURL="+($e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qa+"]")+` -`;e.replace(k,function(ie,me,Ee,dr,Qt,gr){return Ee||(Ee=dr),j+=e.slice(D,gr).replace(ja,jf),me&&(_=!0,j+=`' + -__e(`+me+`) + -'`),Qt&&(P=!0,j+=`'; -`+Qt+`; -__p += '`),Ee&&(j+=`' + -((__t = (`+Ee+`)) == null ? '' : __t) + -'`),D=gr+ie.length,ie}),j+=`'; -`;var re=$e.call(t,"variable")&&t.variable;if(!re)j=`with (obj) { -`+j+` -} -`;else if(Ca.test(re))throw new ue(v);j=(P?j.replace(Lr,""):j).replace(Bt,"$1").replace(Fr,"$1;"),j="function("+(re||"obj")+`) { -`+(re?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(_?", __e = _.escape":"")+(P?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+j+`return __p -}`;var ye=Dh(function(){return Oe(d,Y+"return "+j).apply(i,w)});if(ye.source=j,Vo(ye))throw ye;return ye}function hm(e){return Ce(e).toLowerCase()}function lm(e){return Ce(e).toUpperCase()}function fm(e,t,s){if(e=Ce(e),e&&(s||t===i))return Kc(e);if(!e||!(t=fr(t)))return e;var c=Ar(e),l=Ar(t),d=Vc(c,l),w=Fc(c,l)+1;return yi(c,d,w).join("")}function pm(e,t,s){if(e=Ce(e),e&&(s||t===i))return e.slice(0,Gc(e)+1);if(!e||!(t=fr(t)))return e;var c=Ar(e),l=Fc(c,Ar(t))+1;return yi(c,0,l).join("")}function dm(e,t,s){if(e=Ce(e),e&&(s||t===i))return e.replace(ct,"");if(!e||!(t=fr(t)))return e;var c=Ar(e),l=Vc(c,Ar(t));return yi(c,l).join("")}function gm(e,t){var s=yt,c=Yt;if(tt(t)){var l="separator"in t?t.separator:l;s="length"in t?de(t.length):s,c="omission"in t?fr(t.omission):c}e=Ce(e);var d=e.length;if(Yi(e)){var w=Ar(e);d=w.length}if(s>=d)return e;var _=s-Zi(c);if(_<1)return c;var P=w?yi(w,0,_).join(""):e.slice(0,_);if(l===i)return P+c;if(w&&(_+=P.length-_),Fo(l)){if(e.slice(_).search(l)){var D,L=P;for(l.global||(l=ao(l.source,Ce(yr.exec(l))+"g")),l.lastIndex=0;D=l.exec(L);)var j=D.index;P=P.slice(0,j===i?_:j)}}else if(e.indexOf(fr(l),_)!=_){var k=P.lastIndexOf(l);k>-1&&(P=P.slice(0,k))}return P+c}function ym(e){return e=Ce(e),e&&st.test(e)?e.replace(oi,Ff):e}var vm=ns(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Wo=qu("toUpperCase");function Nh(e,t,s){return e=Ce(e),t=s?i:t,t===i?Uf(e)?Wf(e):Tf(e):e.match(t)||[]}var Dh=ve(function(e,t){try{return Nt(e,i,t)}catch(s){return Vo(s)?s:new ue(s)}}),mm=Zr(function(e,t){return mr(t,function(s){s=Hr(s),Qr(e,s,ko(e[s],e))}),e});function wm(e){var t=e==null?0:e.length,s=ee();return e=t?Qe(e,function(c){if(typeof c[1]!="function")throw new wr(p);return[s(c[0]),c[1]]}):[],ve(function(c){for(var l=-1;++lG)return[];var s=V,c=Ut(e,V);t=ee(t),e-=V;for(var l=io(c,t);++s0||t<0)?new be(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=de(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},be.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},be.prototype.toArray=function(){return this.take(V)},Mr(be.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),c=/^(?:head|last)$/.test(t),l=f[c?"take"+(t=="last"?"Right":""):t],d=c||/^find/.test(t);l&&(f.prototype[t]=function(){var w=this.__wrapped__,_=c?[1]:arguments,P=w instanceof be,D=_[0],L=P||le(w),j=function(me){var Ee=l.apply(f,hi([me],_));return c&&k?Ee[0]:Ee};L&&s&&typeof D=="function"&&D.length!=1&&(P=L=!1);var k=this.__chain__,Y=!!this.__actions__.length,re=d&&!k,ye=P&&!Y;if(!d&&L){w=ye?w:new be(this);var ie=e.apply(w,_);return ie.__actions__.push({func:Yn,args:[j],thisArg:i}),new _r(ie,k)}return re&&ye?e.apply(this,_):(ie=this.thru(j),re?c?ie.value()[0]:ie.value():ie)})}),mr(["pop","push","shift","sort","splice","unshift"],function(e){var t=En[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",c=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var l=arguments;if(c&&!this.__chain__){var d=this.value();return t.apply(le(d)?d:[],l)}return this[s](function(w){return t.apply(le(w)?w:[],l)})}}),Mr(be.prototype,function(e,t){var s=f[t];if(s){var c=s.name+"";$e.call(rs,c)||(rs[c]=[]),rs[c].push({name:t,func:s})}}),rs[Vn(i,ne).name]=[{name:"wrapper",func:i}],be.prototype.clone=yp,be.prototype.reverse=vp,be.prototype.value=mp,f.prototype.at=Gg,f.prototype.chain=Wg,f.prototype.commit=Jg,f.prototype.next=Qg,f.prototype.plant=Zg,f.prototype.reverse=Xg,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=ey,f.prototype.first=f.prototype.head,Es&&(f.prototype[Es]=Yg),f},Xi=Jf();pt?((pt.exports=Xi)._=Xi,Me._=Xi):Ie._=Xi}).call(Ks)})(xc,xc.exports);var NI=Object.defineProperty,DI=Object.defineProperties,qI=Object.getOwnPropertyDescriptors,Cl=Object.getOwnPropertySymbols,LI=Object.prototype.hasOwnProperty,zI=Object.prototype.propertyIsEnumerable,Tl=(o,r,i)=>r in o?NI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,la=(o,r)=>{for(var i in r||(r={}))LI.call(r,i)&&Tl(o,i,r[i]);if(Cl)for(var i of Cl(r))zI.call(r,i)&&Tl(o,i,r[i]);return o},jI=(o,r)=>DI(o,qI(r));function Ii(o,r,i){var n;const a=k0(o);return((n=r.rpcMap)==null?void 0:n[a.reference])||`${$I}?chainId=${a.namespace}:${a.reference}&projectId=${i}`}function ki(o){return o.includes(":")?o.split(":")[1]:o}function xf(o){return o.map(r=>`${r.split(":")[0]}:${r.split(":")[1]}`)}function MI(o,r){const i=Object.keys(r.namespaces).filter(a=>a.includes(o));if(!i.length)return[];const n=[];return i.forEach(a=>{const h=r.namespaces[a].accounts;n.push(...h)}),n}function UI(o={},r={}){const i=$l(o),n=$l(r);return xc.exports.merge(i,n)}function $l(o){var r,i,n,a;const h={};if(!da(o))return h;for(const[p,v]of Object.entries(o)){const m=Bl(p)?[p]:v.chains,g=v.methods||[],b=v.events||[],S=v.rpcMap||{},$=Vs(p);h[$]=jI(la(la({},h[$]),v),{chains:rc(m,(r=h[$])==null?void 0:r.chains),methods:rc(g,(i=h[$])==null?void 0:i.methods),events:rc(b,(n=h[$])==null?void 0:n.events),rpcMap:la(la({},S),(a=h[$])==null?void 0:a.rpcMap)})}return h}function HI(o){return o.includes(":")?o.split(":")[2]:o}function kI(o){const r={};for(const[i,n]of Object.entries(o)){const a=n.methods||[],h=n.events||[],p=n.accounts||[],v=Bl(i)?[i]:n.chains?n.chains:xf(n.accounts);r[i]={chains:v,methods:a,events:h,accounts:p}}return r}function pc(o){return typeof o=="number"?o:o.includes("0x")?parseInt(o,16):o.includes(":")?Number(o.split(":")[1]):Number(o)}const Pf={},Ye=o=>Pf[o],dc=(o,r)=>{Pf[o]=r};class KI{constructor(r){this.name="polkadot",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getAccounts(){const r=this.namespace.accounts;return r?r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2])||[]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class VI{constructor(r){this.name="eip155",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(r){switch(r.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(r);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(r.request.method)?await this.client.request(r):this.getHttpProvider().request(r.request)}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(parseInt(r),i),this.chainId=parseInt(r),this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}createHttpProvider(r,i){const n=i||Ii(`${this.name}:${r}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=parseInt(ki(i));r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}getHttpProvider(){const r=this.chainId,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}async handleSwitchChain(r){var i,n;let a=r.request.params?(i=r.request.params[0])==null?void 0:i.chainId:"0x0";a=a.startsWith("0x")?a:`0x${a}`;const h=parseInt(a,16);if(this.isChainApproved(h))this.setDefaultChain(`${h}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:r.topic,request:{method:r.request.method,params:[{chainId:a}]},chainId:(n=this.namespace.chains)==null?void 0:n[0]}),this.setDefaultChain(`${h}`);else throw new Error(`Failed to switch to chain 'eip155:${h}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(r){return this.namespace.chains.includes(`${this.name}:${r}`)}}class FI{constructor(r){this.name="solana",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class BI{constructor(r){this.name="cosmos",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class GI{constructor(r){this.name="cip34",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{const n=this.getCardanoRPCUrl(i),a=ki(i);r[a]=this.createHttpProvider(a,n)}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}getCardanoRPCUrl(r){const i=this.namespace.rpcMap;if(i)return i[r]}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||this.getCardanoRPCUrl(r);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class WI{constructor(r){this.name="elrond",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class JI{constructor(r){this.name="multiversx",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class QI{constructor(r){this.name="near",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){if(this.chainId=r,!this.httpProviders[r]){const n=i||Ii(`${this.name}:${r}`,this.namespace);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);this.setHttpProvider(r,n)}this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const r=this.namespace.accounts;return r?r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2])||[]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;r[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace);return typeof n>"u"?void 0:new ni(new Ei(n,Ye("disableProviderPing")))}}var YI=Object.defineProperty,ZI=Object.defineProperties,XI=Object.getOwnPropertyDescriptors,Nl=Object.getOwnPropertySymbols,eE=Object.prototype.hasOwnProperty,tE=Object.prototype.propertyIsEnumerable,Dl=(o,r,i)=>r in o?YI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,fa=(o,r)=>{for(var i in r||(r={}))eE.call(r,i)&&Dl(o,i,r[i]);if(Nl)for(var i of Nl(r))tE.call(r,i)&&Dl(o,i,r[i]);return o},gc=(o,r)=>ZI(o,XI(r));class Lc{constructor(r){this.events=new Ac,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=r,this.logger=typeof(r==null?void 0:r.logger)<"u"&&typeof(r==null?void 0:r.logger)!="string"?r.logger:Sa(Ra({level:(r==null?void 0:r.logger)||Ol})),this.disableProviderPing=(r==null?void 0:r.disableProviderPing)||!1}static async init(r){const i=new Lc(r);return await i.initialize(),i}async request(r,i){const[n,a]=this.validateChain(i);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:fa({},r),chainId:`${n}:${a}`,topic:this.session.topic})}sendAsync(r,i,n){const a=new Date().getTime();this.request(r,n).then(h=>i(null,xa(a,h))).catch(h=>i(h,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var r;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(r=this.session)==null?void 0:r.topic,reason:kt("USER_DISCONNECTED")}),await this.cleanup()}async connect(r){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(r),await this.cleanupPendingPairings(),!r.skipPairing)return await this.pair(r.pairingTopic)}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}removeListener(r,i){this.events.removeListener(r,i)}off(r,i){this.events.off(r,i)}get isWalletConnect(){return!0}async pair(r){this.shouldAbortPairingAttempt=!1;let i=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(i>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:n,approval:a}=await this.client.connect({pairingTopic:r,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await a().then(h=>{this.session=h,this.namespaces||(this.namespaces=kI(h.namespaces),this.persist("namespaces",this.namespaces))}).catch(h=>{if(h.message!==If)throw h;i++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(r,i){try{if(!this.session)return;const[n,a]=this.validateChain(r);this.getProvider(n).setDefaultChain(a,i)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(r={}){this.logger.info("Cleaning up inactive pairings...");const i=this.client.pairing.getAll();if(ys(i)){for(const n of i)r.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${i.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const r=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[r]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await OI.init({logger:this.providerOpts.logger||Ol,relayUrl:this.providerOpts.relayUrl||AI,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const r=[...new Set(Object.keys(this.session.namespaces).map(i=>Vs(i)))];dc("client",this.client),dc("events",this.events),dc("disableProviderPing",this.disableProviderPing),r.forEach(i=>{if(!this.session)return;const n=MI(i,this.session),a=xf(n),h=UI(this.namespaces,this.optionalNamespaces),p=gc(fa({},h[i]),{accounts:n,chains:a});switch(i){case"eip155":this.rpcProviders[i]=new VI({namespace:p});break;case"solana":this.rpcProviders[i]=new FI({namespace:p});break;case"cosmos":this.rpcProviders[i]=new BI({namespace:p});break;case"polkadot":this.rpcProviders[i]=new KI({namespace:p});break;case"cip34":this.rpcProviders[i]=new GI({namespace:p});break;case"elrond":this.rpcProviders[i]=new WI({namespace:p});break;case"multiversx":this.rpcProviders[i]=new JI({namespace:p});break;case"near":this.rpcProviders[i]=new QI({namespace:p});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",r=>{this.events.emit("session_ping",r)}),this.client.on("session_event",r=>{const{params:i}=r,{event:n}=i;if(n.name==="accountsChanged"){const a=n.data;a&&ys(a)&&this.events.emit("accountsChanged",a.map(HI))}else if(n.name==="chainChanged"){const a=i.chainId,h=i.event.data,p=Vs(a),v=pc(a)!==pc(h)?`${p}:${pc(h)}`:a;this.onChainChanged(v)}else this.events.emit(n.name,n.data);this.events.emit("session_event",r)}),this.client.on("session_update",({topic:r,params:i})=>{var n;const{namespaces:a}=i,h=(n=this.client)==null?void 0:n.session.get(r);this.session=gc(fa({},h),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:r,params:i})}),this.client.on("session_delete",async r=>{await this.cleanup(),this.events.emit("session_delete",r),this.events.emit("disconnect",gc(fa({},kt("USER_DISCONNECTED")),{data:r.topic}))}),this.on(ai.DEFAULT_CHAIN_CHANGED,r=>{this.onChainChanged(r,!0)})}getProvider(r){if(!this.rpcProviders[r])throw new Error(`Provider not found: ${r}`);return this.rpcProviders[r]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(r=>{var i;this.getProvider(r).updateNamespace((i=this.session)==null?void 0:i.namespaces[r])})}setNamespaces(r){const{namespaces:i,optionalNamespaces:n,sessionProperties:a}=r;i&&Object.keys(i).length&&(this.namespaces=i),n&&Object.keys(n).length&&(this.optionalNamespaces=n),this.sessionProperties=a,this.persist("namespaces",i),this.persist("optionalNamespaces",n)}validateChain(r){const[i,n]=(r==null?void 0:r.split(":"))||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[i,n];if(i&&!Object.keys(this.namespaces||{}).map(p=>Vs(p)).includes(i))throw new Error(`Namespace '${i}' is not configured. Please call connect() first with namespace config.`);if(i&&n)return[i,n];const a=Vs(Object.keys(this.namespaces)[0]),h=this.rpcProviders[a].getDefaultChain();return[a,h]}async requestAccounts(){const[r]=this.validateChain();return await this.getProvider(r).requestAccounts()}onChainChanged(r,i=!1){var n;if(!this.namespaces)return;const[a,h]=this.validateChain(r);i||this.getProvider(a).setDefaultChain(h),((n=this.namespaces[a])!=null?n:this.namespaces[`${a}:${h}`]).defaultChain=h,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",h)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(r,i){this.client.core.storage.setItem(`${Al}/${r}`,i)}async getFromStore(r){return await this.client.core.storage.getItem(`${Al}/${r}`)}}const rE=Lc,iE="wc",sE="ethereum_provider",nE=`${iE}@2:${sE}:`,aE="https://rpc.walletconnect.com/v1/",Pc=["eth_sendTransaction","personal_sign"],oE=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],Sc=["chainChanged","accountsChanged"],cE=["chainChanged","accountsChanged","message","disconnect","connect"];var uE=Object.defineProperty,hE=Object.defineProperties,lE=Object.getOwnPropertyDescriptors,ql=Object.getOwnPropertySymbols,fE=Object.prototype.hasOwnProperty,pE=Object.prototype.propertyIsEnumerable,Ll=(o,r,i)=>r in o?uE(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,Bs=(o,r)=>{for(var i in r||(r={}))fE.call(r,i)&&Ll(o,i,r[i]);if(ql)for(var i of ql(r))pE.call(r,i)&&Ll(o,i,r[i]);return o},zl=(o,r)=>hE(o,lE(r));function wa(o){return Number(o[0].split(":")[1])}function yc(o){return`0x${o.toString(16)}`}function dE(o){const{chains:r,optionalChains:i,methods:n,optionalMethods:a,events:h,optionalEvents:p,rpcMap:v}=o;if(!ys(r))throw new Error("Invalid chains");const m={chains:r,methods:n||Pc,events:h||Sc,rpcMap:Bs({},r.length?{[wa(r)]:v[wa(r)]}:{})},g=h==null?void 0:h.filter(q=>!Sc.includes(q)),b=n==null?void 0:n.filter(q=>!Pc.includes(q));if(!i&&!p&&!a&&!(g!=null&&g.length)&&!(b!=null&&b.length))return{required:r.length?m:void 0};const S=(g==null?void 0:g.length)&&(b==null?void 0:b.length)||!i,$={chains:[...new Set(S?m.chains.concat(i||[]):i)],methods:[...new Set(m.methods.concat(a!=null&&a.length?a:oE))],events:[...new Set(m.events.concat(p!=null&&p.length?p:cE))],rpcMap:v};return{required:r.length?m:void 0,optional:i.length?$:void 0}}class zc{constructor(){this.events=new qr.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=nE,this.on=(r,i)=>(this.events.on(r,i),this),this.once=(r,i)=>(this.events.once(r,i),this),this.removeListener=(r,i)=>(this.events.removeListener(r,i),this),this.off=(r,i)=>(this.events.off(r,i),this),this.parseAccount=r=>this.isCompatibleChainId(r)?this.parseAccountId(r).address:r,this.signer={},this.rpc={}}static async init(r){const i=new zc;return await i.initialize(r),i}async request(r){return await this.signer.request(r,this.formatChainId(this.chainId))}sendAsync(r,i){this.signer.sendAsync(r,i,this.formatChainId(this.chainId))}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(r){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(r);const{required:i,optional:n}=dE(this.rpc);try{const a=await new Promise(async(p,v)=>{var m;this.rpc.showQrModal&&((m=this.modal)==null||m.subscribeModal(g=>{!g.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),v(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(zl(Bs({namespaces:Bs({},i&&{[this.namespace]:i})},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:r==null?void 0:r.pairingTopic})).then(g=>{p(g)}).catch(g=>{v(new Error(g.message))})});if(!a)return;const h=K0(a.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:h),this.setAccounts(h),this.events.emit("connect",{chainId:yc(this.chainId)})}catch(a){throw this.signer.logger.error(a),a}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",r=>{const{params:i}=r,{event:n}=i;n.name==="accountsChanged"?(this.accounts=this.parseAccounts(n.data),this.events.emit("accountsChanged",this.accounts)):n.name==="chainChanged"?this.setChainId(this.formatChainId(n.data)):this.events.emit(n.name,n.data),this.events.emit("session_event",r)}),this.signer.on("chainChanged",r=>{const i=parseInt(r);this.chainId=i,this.events.emit("chainChanged",yc(this.chainId)),this.persist()}),this.signer.on("session_update",r=>{this.events.emit("session_update",r)}),this.signer.on("session_delete",r=>{this.reset(),this.events.emit("session_delete",r),this.events.emit("disconnect",zl(Bs({},kt("USER_DISCONNECTED")),{data:r.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",r=>{var i,n;this.rpc.showQrModal&&((i=this.modal)==null||i.closeModal(),(n=this.modal)==null||n.openModal({uri:r})),this.events.emit("display_uri",r)})}switchEthereumChain(r){this.request({method:"wallet_switchEthereumChain",params:[{chainId:r.toString(16)}]})}isCompatibleChainId(r){return typeof r=="string"?r.startsWith(`${this.namespace}:`):!1}formatChainId(r){return`${this.namespace}:${r}`}parseChainId(r){return Number(r.split(":")[1])}setChainIds(r){const i=r.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));i.length&&(this.chainId=i[0],this.events.emit("chainChanged",yc(this.chainId)),this.persist())}setChainId(r){if(this.isCompatibleChainId(r)){const i=this.parseChainId(r);this.chainId=i,this.switchEthereumChain(i)}}parseAccountId(r){const[i,n,a]=r.split(":");return{chainId:`${i}:${n}`,address:a}}setAccounts(r){this.accounts=r.filter(i=>this.parseChainId(this.parseAccountId(i).chainId)===this.chainId).map(i=>this.parseAccountId(i).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(r){var i,n;const a=(i=r==null?void 0:r.chains)!=null?i:[],h=(n=r==null?void 0:r.optionalChains)!=null?n:[],p=a.concat(h);if(!p.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const v=a.length?(r==null?void 0:r.methods)||Pc:[],m=a.length?(r==null?void 0:r.events)||Sc:[],g=(r==null?void 0:r.optionalMethods)||[],b=(r==null?void 0:r.optionalEvents)||[],S=(r==null?void 0:r.rpcMap)||this.buildRpcMap(p,r.projectId),$=(r==null?void 0:r.qrModalOptions)||void 0;return{chains:a==null?void 0:a.map(q=>this.formatChainId(q)),optionalChains:h.map(q=>this.formatChainId(q)),methods:v,events:m,optionalMethods:g,optionalEvents:b,rpcMap:S,showQrModal:!!(r!=null&&r.showQrModal),qrModalOptions:$,projectId:r.projectId,metadata:r.metadata}}buildRpcMap(r,i){const n={};return r.forEach(a=>{n[a]=this.getRpcUrl(a,i)}),n}async initialize(r){if(this.rpc=this.getRpcConfig(r),this.chainId=this.rpc.chains.length?wa(this.rpc.chains):wa(this.rpc.optionalChains),this.signer=await rE.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:r.disableProviderPing,relayUrl:r.relayUrl,storageOptions:r.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let i;try{const{WalletConnectModal:n}=await V0(()=>import("./index-BWLXyvD6.js").then(a=>a.i),__vite__mapDeps([0,1,2]),import.meta.url);i=n}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(i)try{this.modal=new i(Bs({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(n){throw this.signer.logger.error(n),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(r){if(!r)return;const{chains:i,optionalChains:n,rpcMap:a}=r;i&&ys(i)&&(this.rpc.chains=i.map(h=>this.formatChainId(h)),i.forEach(h=>{this.rpc.rpcMap[h]=(a==null?void 0:a[h])||this.getRpcUrl(h)})),n&&ys(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n==null?void 0:n.map(h=>this.formatChainId(h)),n.forEach(h=>{this.rpc.rpcMap[h]=(a==null?void 0:a[h])||this.getRpcUrl(h)}))}getRpcUrl(r,i){var n;return((n=this.rpc.rpcMap)==null?void 0:n[r])||`${aE}?chainId=eip155:${r}&projectId=${i||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;const r=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),i=this.session.namespaces[`${this.namespace}:${r}`]?this.session.namespaces[`${this.namespace}:${r}`]:this.session.namespaces[this.namespace];this.setChainIds(r?[this.formatChainId(r)]:i==null?void 0:i.accounts),this.setAccounts(i==null?void 0:i.accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(r){return typeof r=="string"||r instanceof String?[this.parseAccount(r)]:r.map(i=>this.parseAccount(i))}}const CE=zc;export{CE as EthereumProvider,cE as OPTIONAL_EVENTS,oE as OPTIONAL_METHODS,Sc as REQUIRED_EVENTS,Pc as REQUIRED_METHODS,zc as default}; -//# sourceMappingURL=index.es-CdO-xVAP.js.map diff --git a/apps/web/public/assets/index.es-DAoTMZAm.js b/apps/web/public/assets/index.es-DAoTMZAm.js deleted file mode 100644 index 6d51a2a3..00000000 --- a/apps/web/public/assets/index.es-DAoTMZAm.js +++ /dev/null @@ -1,29 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Dy-WAr9t.js","./index-Bl6Lkf65.js","./index-C5o-2F8D.css"])))=>i.map(i=>d[i]); -import{t as jl,r as _a,u as X,q as qr,p as Rc,v as i0,w as Ml,x as Ul,y as Oc,z as ba,A as s0,o as na,C as _i,V as n0,M as a0,N as B,D as o0,E as vc,F as c0,K as u0,G as h0,J as zh,L as l0,O as f0,P as p0,Q as jh,$ as d0,R as g0,S as y0,T as Gs,U as Mh,X as v0,W as m0,Y as Ac,Z as Hl,a0 as Dr,a1 as w0,a2 as Uh,a3 as ls,a4 as St,a5 as kt,a6 as wi,a7 as ar,a8 as _0,a9 as fs,aa as kl,ab as b0,ac as I0,ad as E0,ae as Kl,af as x0,ag as Vl,ah as Fl,ai as ds,aj as mc,ak as pa,al as ys,am as P0,an as da,ao as S0,ap as R0,aq as O0,ar as A0,as as aa,at as C0,au as T0,av as tc,aw as Hh,ax as $0,ay as N0,az as D0,aA as kh,aB as q0,aC as L0,aD as z0,aE as j0,aF as M0,aG as U0,aH as H0,aI as Vs,aJ as Bl,aK as rc,aL as k0,aM as K0,_ as V0}from"./index-Bl6Lkf65.js";import{s as Qs,a as Ia,r as F0,f as gs,g as Gl,i as Kr,b as Ea,c as Kh,d as B0,e as G0,h as Cc,p as W0,j as Tc,k as xa,l as mi,m as J0,n as Ei}from"./index.es-BlHtwxd-.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="79c0ed29-cd11-4eef-949e-d4b233d7601a",o._sentryDebugIdIdentifier="sentry-dbid-79c0ed29-cd11-4eef-949e-d4b233d7601a")}catch{}})();const Q0=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Y0=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Z0=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function X0(o,r){if(o==="__proto__"||o==="constructor"&&r&&typeof r=="object"&&"prototype"in r){ew(o);return}return r}function ew(o){console.warn(`[destr] Dropping "${o}" key to prevent prototype pollution.`)}function oa(o,r={}){if(typeof o!="string")return o;const i=o.trim();if(o[0]==='"'&&o.endsWith('"')&&!o.includes("\\"))return i.slice(1,-1);if(i.length<=9){const n=i.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!Z0.test(o)){if(r.strict)throw new SyntaxError("[destr] Invalid JSON");return o}try{if(Q0.test(o)||Y0.test(o)){if(r.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(o,X0)}return JSON.parse(o)}catch(n){if(r.strict)throw n;return o}}function tw(o){return!o||typeof o.then!="function"?Promise.resolve(o):o}function qt(o,...r){try{return tw(o(...r))}catch(i){return Promise.reject(i)}}function rw(o){const r=typeof o;return o===null||r!=="object"&&r!=="function"}function iw(o){const r=Object.getPrototypeOf(o);return!r||r.isPrototypeOf(Object)}function ga(o){if(rw(o))return String(o);if(iw(o)||Array.isArray(o))return JSON.stringify(o);if(typeof o.toJSON=="function")return ga(o.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function Wl(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const wc="base64:";function sw(o){if(typeof o=="string")return o;Wl();const r=Buffer.from(o).toString("base64");return wc+r}function nw(o){return typeof o!="string"||!o.startsWith(wc)?o:(Wl(),Buffer.from(o.slice(wc.length),"base64"))}function nr(o){return o?o.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function aw(...o){return nr(o.join(":"))}function ca(o){return o=nr(o),o?o+":":""}const ow="memory",cw=()=>{const o=new Map;return{name:ow,options:{},hasItem(r){return o.has(r)},getItem(r){return o.get(r)??null},getItemRaw(r){return o.get(r)??null},setItem(r,i){o.set(r,i)},setItemRaw(r,i){o.set(r,i)},removeItem(r){o.delete(r)},getKeys(){return Array.from(o.keys())},clear(){o.clear()},dispose(){o.clear()}}};function uw(o={}){const r={mounts:{"":o.driver||cw()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},i=g=>{for(const b of r.mountpoints)if(g.startsWith(b))return{base:b,relativeKey:g.slice(b.length),driver:r.mounts[b]};return{base:"",relativeKey:g,driver:r.mounts[""]}},n=(g,b)=>r.mountpoints.filter(S=>S.startsWith(g)||b&&g.startsWith(S)).map(S=>({relativeBase:g.length>S.length?g.slice(S.length):void 0,mountpoint:S,driver:r.mounts[S]})),a=(g,b)=>{if(r.watching){b=nr(b);for(const S of r.watchListeners)S(g,b)}},h=async()=>{if(!r.watching){r.watching=!0;for(const g in r.mounts)r.unwatch[g]=await Vh(r.mounts[g],a,g)}},p=async()=>{if(r.watching){for(const g in r.unwatch)await r.unwatch[g]();r.unwatch={},r.watching=!1}},v=(g,b,S)=>{const $=new Map,q=A=>{let Z=$.get(A.base);return Z||(Z={driver:A.driver,base:A.base,items:[]},$.set(A.base,Z)),Z};for(const A of g){const Z=typeof A=="string",se=nr(Z?A:A.key),ne=Z?void 0:A.value,ce=Z||!A.options?b:{...b,...A.options},ae=i(se);q(ae).items.push({key:se,value:ne,relativeKey:ae.relativeKey,options:ce})}return Promise.all([...$.values()].map(A=>S(A))).then(A=>A.flat())},m={hasItem(g,b={}){g=nr(g);const{relativeKey:S,driver:$}=i(g);return qt($.hasItem,S,b)},getItem(g,b={}){g=nr(g);const{relativeKey:S,driver:$}=i(g);return qt($.getItem,S,b).then(q=>oa(q))},getItems(g,b){return v(g,b,S=>S.driver.getItems?qt(S.driver.getItems,S.items.map($=>({key:$.relativeKey,options:$.options})),b).then($=>$.map(q=>({key:aw(S.base,q.key),value:oa(q.value)}))):Promise.all(S.items.map($=>qt(S.driver.getItem,$.relativeKey,$.options).then(q=>({key:$.key,value:oa(q)})))))},getItemRaw(g,b={}){g=nr(g);const{relativeKey:S,driver:$}=i(g);return $.getItemRaw?qt($.getItemRaw,S,b):qt($.getItem,S,b).then(q=>nw(q))},async setItem(g,b,S={}){if(b===void 0)return m.removeItem(g);g=nr(g);const{relativeKey:$,driver:q}=i(g);q.setItem&&(await qt(q.setItem,$,ga(b),S),q.watch||a("update",g))},async setItems(g,b){await v(g,b,async S=>{if(S.driver.setItems)return qt(S.driver.setItems,S.items.map($=>({key:$.relativeKey,value:ga($.value),options:$.options})),b);S.driver.setItem&&await Promise.all(S.items.map($=>qt(S.driver.setItem,$.relativeKey,ga($.value),$.options)))})},async setItemRaw(g,b,S={}){if(b===void 0)return m.removeItem(g,S);g=nr(g);const{relativeKey:$,driver:q}=i(g);if(q.setItemRaw)await qt(q.setItemRaw,$,b,S);else if(q.setItem)await qt(q.setItem,$,sw(b),S);else return;q.watch||a("update",g)},async removeItem(g,b={}){typeof b=="boolean"&&(b={removeMeta:b}),g=nr(g);const{relativeKey:S,driver:$}=i(g);$.removeItem&&(await qt($.removeItem,S,b),(b.removeMeta||b.removeMata)&&await qt($.removeItem,S+"$",b),$.watch||a("remove",g))},async getMeta(g,b={}){typeof b=="boolean"&&(b={nativeOnly:b}),g=nr(g);const{relativeKey:S,driver:$}=i(g),q=Object.create(null);if($.getMeta&&Object.assign(q,await qt($.getMeta,S,b)),!b.nativeOnly){const A=await qt($.getItem,S+"$",b).then(Z=>oa(Z));A&&typeof A=="object"&&(typeof A.atime=="string"&&(A.atime=new Date(A.atime)),typeof A.mtime=="string"&&(A.mtime=new Date(A.mtime)),Object.assign(q,A))}return q},setMeta(g,b,S={}){return this.setItem(g+"$",b,S)},removeMeta(g,b={}){return this.removeItem(g+"$",b)},async getKeys(g,b={}){g=ca(g);const S=n(g,!0);let $=[];const q=[];for(const A of S){const se=(await qt(A.driver.getKeys,A.relativeBase,b)).map(ne=>A.mountpoint+nr(ne)).filter(ne=>!$.some(ce=>ne.startsWith(ce)));q.push(...se),$=[A.mountpoint,...$.filter(ne=>!ne.startsWith(A.mountpoint))]}return g?q.filter(A=>A.startsWith(g)&&!A.endsWith("$")):q.filter(A=>!A.endsWith("$"))},async clear(g,b={}){g=ca(g),await Promise.all(n(g,!1).map(async S=>{if(S.driver.clear)return qt(S.driver.clear,S.relativeBase,b);if(S.driver.removeItem){const $=await S.driver.getKeys(S.relativeBase||"",b);return Promise.all($.map(q=>S.driver.removeItem(q,b)))}}))},async dispose(){await Promise.all(Object.values(r.mounts).map(g=>Fh(g)))},async watch(g){return await h(),r.watchListeners.push(g),async()=>{r.watchListeners=r.watchListeners.filter(b=>b!==g),r.watchListeners.length===0&&await p()}},async unwatch(){r.watchListeners=[],await p()},mount(g,b){if(g=ca(g),g&&r.mounts[g])throw new Error(`already mounted at ${g}`);return g&&(r.mountpoints.push(g),r.mountpoints.sort((S,$)=>$.length-S.length)),r.mounts[g]=b,r.watching&&Promise.resolve(Vh(b,a,g)).then(S=>{r.unwatch[g]=S}).catch(console.error),m},async unmount(g,b=!0){g=ca(g),!(!g||!r.mounts[g])&&(r.watching&&g in r.unwatch&&(r.unwatch[g](),delete r.unwatch[g]),b&&await Fh(r.mounts[g]),r.mountpoints=r.mountpoints.filter(S=>S!==g),delete r.mounts[g])},getMount(g=""){g=nr(g)+":";const b=i(g);return{driver:b.driver,base:b.base}},getMounts(g="",b={}){return g=nr(g),n(g,b.parents).map($=>({driver:$.driver,base:$.mountpoint}))}};return m}function Vh(o,r,i){return o.watch?o.watch((n,a)=>r(n,i+a)):()=>{}}async function Fh(o){typeof o.dispose=="function"&&await qt(o.dispose)}function Ui(o){return new Promise((r,i)=>{o.oncomplete=o.onsuccess=()=>r(o.result),o.onabort=o.onerror=()=>i(o.error)})}function Jl(o,r){const i=indexedDB.open(o);i.onupgradeneeded=()=>i.result.createObjectStore(r);const n=Ui(i);return(a,h)=>n.then(p=>h(p.transaction(r,a).objectStore(r)))}let ic;function Ys(){return ic||(ic=Jl("keyval-store","keyval")),ic}function Bh(o,r=Ys()){return r("readonly",i=>Ui(i.get(o)))}function hw(o,r,i=Ys()){return i("readwrite",n=>(n.put(r,o),Ui(n.transaction)))}function lw(o,r=Ys()){return r("readwrite",i=>(i.delete(o),Ui(i.transaction)))}function fw(o=Ys()){return o("readwrite",r=>(r.clear(),Ui(r.transaction)))}function pw(o,r){return o.openCursor().onsuccess=function(){this.result&&(r(this.result),this.result.continue())},Ui(o.transaction)}function dw(o=Ys()){return o("readonly",r=>{if(r.getAllKeys)return Ui(r.getAllKeys());const i=[];return pw(r,n=>i.push(n.key)).then(()=>i)})}const gw="idb-keyval";var yw=(o={})=>{const r=o.base&&o.base.length>0?`${o.base}:`:"",i=a=>r+a;let n;return o.dbName&&o.storeName&&(n=Jl(o.dbName,o.storeName)),{name:gw,options:o,async hasItem(a){return!(typeof await Bh(i(a),n)>"u")},async getItem(a){return await Bh(i(a),n)??null},setItem(a,h){return hw(i(a),h,n)},removeItem(a){return lw(i(a),n)},getKeys(){return dw(n)},clear(){return fw(n)}}};const vw="WALLET_CONNECT_V2_INDEXED_DB",mw="keyvaluestorage";let ww=class{constructor(){this.indexedDb=uw({driver:yw({dbName:vw,storeName:mw})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(r=>[r.key,r.value])}async getItem(r){const i=await this.indexedDb.getItem(r);if(i!==null)return i}async setItem(r,i){await this.indexedDb.setItem(r,Qs(i))}async removeItem(r){await this.indexedDb.removeItem(r)}};var sc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ya={exports:{}};(function(){let o;function r(){}o=r,o.prototype.getItem=function(i){return this.hasOwnProperty(i)?String(this[i]):null},o.prototype.setItem=function(i,n){this[i]=String(n)},o.prototype.removeItem=function(i){delete this[i]},o.prototype.clear=function(){const i=this;Object.keys(i).forEach(function(n){i[n]=void 0,delete i[n]})},o.prototype.key=function(i){return i=i||0,Object.keys(this)[i]},o.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof sc<"u"&&sc.localStorage?ya.exports=sc.localStorage:typeof window<"u"&&window.localStorage?ya.exports=window.localStorage:ya.exports=new r})();function _w(o){var r;return[o[0],Ia((r=o[1])!=null?r:"")]}class bw{constructor(){this.localStorage=ya.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(_w)}async getItem(r){const i=this.localStorage.getItem(r);if(i!==null)return Ia(i)}async setItem(r,i){this.localStorage.setItem(r,Qs(i))}async removeItem(r){this.localStorage.removeItem(r)}}const Iw="wc_storage_version",Gh=1,Ew=async(o,r,i)=>{const n=Iw,a=await r.getItem(n);if(a&&a>=Gh){i(r);return}const h=await o.getKeys();if(!h.length){i(r);return}const p=[];for(;h.length;){const v=h.shift();if(!v)continue;const m=v.toLowerCase();if(m.includes("wc@")||m.includes("walletconnect")||m.includes("wc_")||m.includes("wallet_connect")){const g=await o.getItem(v);await r.setItem(v,g),p.push(v)}}await r.setItem(n,Gh),i(r),xw(o,p)},xw=async(o,r)=>{r.length&&r.forEach(async i=>{await o.removeItem(i)})};let Pw=class{constructor(){this.initialized=!1,this.setInitialized=i=>{this.storage=i,this.initialized=!0};const r=new bw;this.storage=r;try{const i=new ww;Ew(r,i,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(r){return await this.initialize(),this.storage.getItem(r)}async setItem(r,i){return await this.initialize(),this.storage.setItem(r,i)}async removeItem(r){return await this.initialize(),this.storage.removeItem(r)}async initialize(){this.initialized||await new Promise(r=>{const i=setInterval(()=>{this.initialized&&(clearInterval(i),r())},20)})}};var vs={},zs={},nc={},js={};class Hi{}const Sw=Object.freeze(Object.defineProperty({__proto__:null,IEvents:Hi},Symbol.toStringTag,{value:"Module"})),Rw=jl(Sw);var Wh;function Ow(){if(Wh)return js;Wh=1,Object.defineProperty(js,"__esModule",{value:!0}),js.IHeartBeat=void 0;const o=Rw;class r extends o.IEvents{constructor(n){super()}}return js.IHeartBeat=r,js}var Jh;function Ql(){return Jh||(Jh=1,function(o){Object.defineProperty(o,"__esModule",{value:!0}),_a.__exportStar(Ow(),o)}(nc)),nc}var ac={},Mi={},Qh;function Aw(){if(Qh)return Mi;Qh=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.HEARTBEAT_EVENTS=Mi.HEARTBEAT_INTERVAL=void 0;const o=X;return Mi.HEARTBEAT_INTERVAL=o.FIVE_SECONDS,Mi.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"},Mi}var Yh;function Yl(){return Yh||(Yh=1,function(o){Object.defineProperty(o,"__esModule",{value:!0}),_a.__exportStar(Aw(),o)}(ac)),ac}var Zh;function Cw(){if(Zh)return zs;Zh=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.HeartBeat=void 0;const o=_a,r=qr,i=X,n=Ql(),a=Yl();class h extends n.IHeartBeat{constructor(v){super(v),this.events=new r.EventEmitter,this.interval=a.HEARTBEAT_INTERVAL,this.interval=(v==null?void 0:v.interval)||a.HEARTBEAT_INTERVAL}static init(v){return o.__awaiter(this,void 0,void 0,function*(){const m=new h(v);return yield m.init(),m})}init(){return o.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(v,m){this.events.on(v,m)}once(v,m){this.events.once(v,m)}off(v,m){this.events.off(v,m)}removeListener(v,m){this.events.removeListener(v,m)}initialize(){return o.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),i.toMiliseconds(this.interval))})}pulse(){this.events.emit(a.HEARTBEAT_EVENTS.pulse)}}return zs.HeartBeat=h,zs}(function(o){Object.defineProperty(o,"__esModule",{value:!0});const r=_a;r.__exportStar(Cw(),o),r.__exportStar(Ql(),o),r.__exportStar(Yl(),o)})(vs);function Tw(o){try{return JSON.stringify(o)}catch{return'"[Circular]"'}}var $w=Nw;function Nw(o,r,i){var n=i&&i.stringify||Tw,a=1;if(typeof o=="object"&&o!==null){var h=r.length+a;if(h===1)return o;var p=new Array(h);p[0]=n(o);for(var v=1;v-1?S:0,o.charCodeAt(q+1)){case 100:case 102:if(b>=m||r[b]==null)break;S=m||r[b]==null)break;S=m||r[b]===void 0)break;S",S=q+2,q++;break}g+=n(r[b]),S=q+2,q++;break;case 115:if(b>=m)break;S-1&&(h=!1);const p=["error","fatal","warn","info","debug","trace"];typeof i=="function"&&(i.error=i.fatal=i.warn=i.info=i.debug=i.trace=i),o.enabled===!1&&(o.level="silent");const v=o.level||"info",m=Object.create(i);m.log||(m.log=Js),Object.defineProperty(m,"levelVal",{get:b}),Object.defineProperty(m,"level",{get:S,set:$});const g={transmit:r,serialize:a,asObject:o.browser.asObject,levels:p,timestamp:Hw(o)};m.levels=Vr.levels,m.level=v,m.setMaxListeners=m.getMaxListeners=m.emit=m.addListener=m.on=m.prependListener=m.once=m.prependOnceListener=m.removeListener=m.removeAllListeners=m.listeners=m.listenerCount=m.eventNames=m.write=m.flush=Js,m.serializers=n,m._serialize=a,m._stdErrSerialize=h,m.child=q,r&&(m._logEvent=_c());function b(){return this.level==="silent"?1/0:this.levels.values[this.level]}function S(){return this._level}function $(A){if(A!=="silent"&&!this.levels.values[A])throw Error("unknown level "+A);this._level=A,us(g,m,"error","log"),us(g,m,"fatal","error"),us(g,m,"warn","error"),us(g,m,"info","log"),us(g,m,"debug","log"),us(g,m,"trace","log")}function q(A,Z){if(!A)throw new Error("missing bindings for child Pino");Z=Z||{},a&&A.serializers&&(Z.serializers=A.serializers);const se=Z.serializers;if(a&&se){var ne=Object.assign({},n,se),ce=o.browser.serialize===!0?Object.keys(ne):a;delete A.serializers,Pa([A],ce,ne,this._stdErrSerialize)}function ae(te){this._childLevel=(te._childLevel|0)+1,this.error=hs(te,A,"error"),this.fatal=hs(te,A,"fatal"),this.warn=hs(te,A,"warn"),this.info=hs(te,A,"info"),this.debug=hs(te,A,"debug"),this.trace=hs(te,A,"trace"),ne&&(this.serializers=ne,this._serialize=ce),r&&(this._logEvent=_c([].concat(te._logEvent.bindings,A)))}return ae.prototype=this,new ae(this)}return m}Vr.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};Vr.stdSerializers=qw;Vr.stdTimeFunctions=Object.assign({},{nullTime:Zl,epochTime:Xl,unixTime:kw,isoTime:Kw});function us(o,r,i,n){const a=Object.getPrototypeOf(r);r[i]=r.levelVal>r.levels.values[i]?Js:a[i]?a[i]:Ws[i]||Ws[n]||Js,zw(o,r,i)}function zw(o,r,i){!o.transmit&&r[i]===Js||(r[i]=function(n){return function(){const h=o.timestamp(),p=new Array(arguments.length),v=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Ws?Ws:this;for(var m=0;m-1&&h in i&&(o[a][h]=i[h](o[a][h]))}function hs(o,r,i){return function(){const n=new Array(1+arguments.length);n[0]=r;for(var a=1;ar in o?Bw(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,Yw=(o,r)=>{for(var i in r||(r={}))Jw.call(r,i)&&tl(o,i,r[i]);if(el)for(var i of el(r))Qw.call(r,i)&&tl(o,i,r[i]);return o},Zw=(o,r)=>Gw(o,Ww(r));function Ra(o){return Zw(Yw({},o),{level:(o==null?void 0:o.level)||Fw.level})}function Xw(o,r=Zs){return o[r]||""}function e1(o,r,i=Zs){return o[i]=r,o}function or(o,r=Zs){let i="";return typeof o.bindings>"u"?i=Xw(o,r):i=o.bindings().context||"",i}function t1(o,r,i=Zs){const n=or(o,i);return n.trim()?`${n}/${r}`:r}function cr(o,r,i=Zs){const n=t1(o,r,i),a=o.child({context:n});return e1(a,n,i)}class r1 extends Hi{constructor(r){super(),this.opts=r,this.protocol="wc",this.version=2}}let i1=class extends Hi{constructor(r,i){super(),this.core=r,this.logger=i,this.records=new Map}},s1=class{constructor(r,i){this.logger=r,this.core=i}},n1=class extends Hi{constructor(r,i){super(),this.relayer=r,this.logger=i}},a1=class extends Hi{constructor(r){super()}},o1=class{constructor(r,i,n,a){this.core=r,this.logger=i,this.name=n}};class c1 extends Hi{constructor(r,i){super(),this.relayer=r,this.logger=i}}let u1=class extends Hi{constructor(r,i){super(),this.core=r,this.logger=i}},h1=class{constructor(r,i){this.projectId=r,this.logger=i}},l1=class{constructor(r,i){this.projectId=r,this.logger=i}},f1=class{constructor(r){this.opts=r,this.protocol="wc",this.version=2}},p1=class{constructor(r){this.client=r}};var $c={},ef={};(function(o){Object.defineProperty(o,"__esModule",{value:!0});var r=i0,i=Ml;o.DIGEST_LENGTH=64,o.BLOCK_SIZE=128;var n=function(){function v(){this.digestLength=o.DIGEST_LENGTH,this.blockSize=o.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return v.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},v.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},v.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},v.prototype.update=function(m,g){if(g===void 0&&(g=m.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var b=0;if(this._bytesHashed+=g,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=m[b++],g--;this._bufferLength===this.blockSize&&(h(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(g>=this.blockSize&&(b=h(this._tempHi,this._tempLo,this._stateHi,this._stateLo,m,b,g),g%=this.blockSize);g>0;)this._buffer[this._bufferLength++]=m[b++],g--;return this},v.prototype.finish=function(m){if(!this._finished){var g=this._bytesHashed,b=this._bufferLength,S=g/536870912|0,$=g<<3,q=g%128<112?128:256;this._buffer[b]=128;for(var A=b+1;A0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},v.prototype.restoreState=function(m){return this._stateHi.set(m.stateHi),this._stateLo.set(m.stateLo),this._bufferLength=m.bufferLength,m.buffer&&this._buffer.set(m.buffer),this._bytesHashed=m.bytesHashed,this._finished=!1,this},v.prototype.cleanSavedState=function(m){i.wipe(m.stateHi),i.wipe(m.stateLo),m.buffer&&i.wipe(m.buffer),m.bufferLength=0,m.bytesHashed=0},v}();o.SHA512=n;var a=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function h(v,m,g,b,S,$,q){for(var A=g[0],Z=g[1],se=g[2],ne=g[3],ce=g[4],ae=g[5],te=g[6],fe=g[7],pe=b[0],Q=b[1],xe=b[2],Tt=b[3],yt=b[4],Yt=b[5],Vt=b[6],ur=b[7],M,U,Ge,qe,G,K,H,V;q>=128;){for(var Rt=0;Rt<16;Rt++){var rt=8*Rt+$;v[Rt]=r.readUint32BE(S,rt),m[Rt]=r.readUint32BE(S,rt+4)}for(var Rt=0;Rt<80;Rt++){var xi=A,we=Z,Sr=se,T=ne,C=ce,R=ae,u=te,I=fe,J=pe,oe=Q,ge=xe,Pe=Tt,Re=yt,_e=Yt,vt=Vt,lt=ur;if(M=fe,U=ur,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=(ce>>>14|yt<<18)^(ce>>>18|yt<<14)^(yt>>>9|ce<<23),U=(yt>>>14|ce<<18)^(yt>>>18|ce<<14)^(ce>>>9|yt<<23),G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,M=ce&ae^~ce&te,U=yt&Yt^~yt&Vt,G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,M=a[Rt*2],U=a[Rt*2+1],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,M=v[Rt%16],U=m[Rt%16],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,Ge=H&65535|V<<16,qe=G&65535|K<<16,M=Ge,U=qe,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=(A>>>28|pe<<4)^(pe>>>2|A<<30)^(pe>>>7|A<<25),U=(pe>>>28|A<<4)^(A>>>2|pe<<30)^(A>>>7|pe<<25),G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,M=A&Z^A&se^Z&se,U=pe&Q^pe&xe^Q&xe,G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,I=H&65535|V<<16,lt=G&65535|K<<16,M=T,U=Pe,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=Ge,U=qe,G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,T=H&65535|V<<16,Pe=G&65535|K<<16,Z=xi,se=we,ne=Sr,ce=T,ae=C,te=R,fe=u,A=I,Q=J,xe=oe,Tt=ge,yt=Pe,Yt=Re,Vt=_e,ur=vt,pe=lt,Rt%16===15)for(var rt=0;rt<16;rt++)M=v[rt],U=m[rt],G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=v[(rt+9)%16],U=m[(rt+9)%16],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,Ge=v[(rt+1)%16],qe=m[(rt+1)%16],M=(Ge>>>1|qe<<31)^(Ge>>>8|qe<<24)^Ge>>>7,U=(qe>>>1|Ge<<31)^(qe>>>8|Ge<<24)^(qe>>>7|Ge<<25),G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,Ge=v[(rt+14)%16],qe=m[(rt+14)%16],M=(Ge>>>19|qe<<13)^(qe>>>29|Ge<<3)^Ge>>>6,U=(qe>>>19|Ge<<13)^(Ge>>>29|qe<<3)^(qe>>>6|Ge<<26),G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,v[rt]=H&65535|V<<16,m[rt]=G&65535|K<<16}M=A,U=pe,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[0],U=b[0],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[0]=A=H&65535|V<<16,b[0]=pe=G&65535|K<<16,M=Z,U=Q,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[1],U=b[1],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[1]=Z=H&65535|V<<16,b[1]=Q=G&65535|K<<16,M=se,U=xe,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[2],U=b[2],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[2]=se=H&65535|V<<16,b[2]=xe=G&65535|K<<16,M=ne,U=Tt,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[3],U=b[3],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[3]=ne=H&65535|V<<16,b[3]=Tt=G&65535|K<<16,M=ce,U=yt,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[4],U=b[4],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[4]=ce=H&65535|V<<16,b[4]=yt=G&65535|K<<16,M=ae,U=Yt,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[5],U=b[5],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[5]=ae=H&65535|V<<16,b[5]=Yt=G&65535|K<<16,M=te,U=Vt,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[6],U=b[6],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[6]=te=H&65535|V<<16,b[6]=Vt=G&65535|K<<16,M=fe,U=ur,G=U&65535,K=U>>>16,H=M&65535,V=M>>>16,M=g[7],U=b[7],G+=U&65535,K+=U>>>16,H+=M&65535,V+=M>>>16,K+=G>>>16,H+=K>>>16,V+=H>>>16,g[7]=fe=H&65535|V<<16,b[7]=ur=G&65535|K<<16,$+=128,q-=128}return $}function p(v){var m=new n;m.update(v);var g=m.digest();return m.clean(),g}o.hash=p})(ef);(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.convertSecretKeyToX25519=o.convertPublicKeyToX25519=o.verify=o.sign=o.extractPublicKeyFromSecretKey=o.generateKeyPair=o.generateKeyPairFromSeed=o.SEED_LENGTH=o.SECRET_KEY_LENGTH=o.PUBLIC_KEY_LENGTH=o.SIGNATURE_LENGTH=void 0;const r=Ul,i=ef,n=Ml;o.SIGNATURE_LENGTH=64,o.PUBLIC_KEY_LENGTH=32,o.SECRET_KEY_LENGTH=64,o.SEED_LENGTH=32;function a(T){const C=new Float64Array(16);if(T)for(let R=0;R>16&1),R[oe-1]&=65535;R[15]=u[15]-32767-(R[14]>>16&1);const J=R[15]>>16&1;R[14]&=65535,Z(u,R,1-J)}for(let I=0;I<16;I++)T[2*I]=u[I]&255,T[2*I+1]=u[I]>>8}function ne(T,C){let R=0;for(let u=0;u<32;u++)R|=T[u]^C[u];return(1&R-1>>>8)-1}function ce(T,C){const R=new Uint8Array(32),u=new Uint8Array(32);return se(R,T),se(u,C),ne(R,u)}function ae(T){const C=new Uint8Array(32);return se(C,T),C[0]&1}function te(T,C){for(let R=0;R<16;R++)T[R]=C[2*R]+(C[2*R+1]<<8);T[15]&=32767}function fe(T,C,R){for(let u=0;u<16;u++)T[u]=C[u]+R[u]}function pe(T,C,R){for(let u=0;u<16;u++)T[u]=C[u]-R[u]}function Q(T,C,R){let u,I,J=0,oe=0,ge=0,Pe=0,Re=0,_e=0,vt=0,lt=0,Ze=0,Ae=0,ke=0,Ke=0,Xe=0,Ne=0,Ve=0,Se=0,Le=0,it=0,Te=0,mt=0,Ot=0,Lt=0,zt=0,$t=0,Ft=0,Zt=0,Lr=0,Bt=0,Fr=0,oi=0,Pi=0,st=R[0],We=R[1],nt=R[2],at=R[3],et=R[4],Je=R[5],wt=R[6],_t=R[7],ot=R[8],bt=R[9],ct=R[10],ft=R[11],ut=R[12],He=R[13],It=R[14],Et=R[15];u=C[0],J+=u*st,oe+=u*We,ge+=u*nt,Pe+=u*at,Re+=u*et,_e+=u*Je,vt+=u*wt,lt+=u*_t,Ze+=u*ot,Ae+=u*bt,ke+=u*ct,Ke+=u*ft,Xe+=u*ut,Ne+=u*He,Ve+=u*It,Se+=u*Et,u=C[1],oe+=u*st,ge+=u*We,Pe+=u*nt,Re+=u*at,_e+=u*et,vt+=u*Je,lt+=u*wt,Ze+=u*_t,Ae+=u*ot,ke+=u*bt,Ke+=u*ct,Xe+=u*ft,Ne+=u*ut,Ve+=u*He,Se+=u*It,Le+=u*Et,u=C[2],ge+=u*st,Pe+=u*We,Re+=u*nt,_e+=u*at,vt+=u*et,lt+=u*Je,Ze+=u*wt,Ae+=u*_t,ke+=u*ot,Ke+=u*bt,Xe+=u*ct,Ne+=u*ft,Ve+=u*ut,Se+=u*He,Le+=u*It,it+=u*Et,u=C[3],Pe+=u*st,Re+=u*We,_e+=u*nt,vt+=u*at,lt+=u*et,Ze+=u*Je,Ae+=u*wt,ke+=u*_t,Ke+=u*ot,Xe+=u*bt,Ne+=u*ct,Ve+=u*ft,Se+=u*ut,Le+=u*He,it+=u*It,Te+=u*Et,u=C[4],Re+=u*st,_e+=u*We,vt+=u*nt,lt+=u*at,Ze+=u*et,Ae+=u*Je,ke+=u*wt,Ke+=u*_t,Xe+=u*ot,Ne+=u*bt,Ve+=u*ct,Se+=u*ft,Le+=u*ut,it+=u*He,Te+=u*It,mt+=u*Et,u=C[5],_e+=u*st,vt+=u*We,lt+=u*nt,Ze+=u*at,Ae+=u*et,ke+=u*Je,Ke+=u*wt,Xe+=u*_t,Ne+=u*ot,Ve+=u*bt,Se+=u*ct,Le+=u*ft,it+=u*ut,Te+=u*He,mt+=u*It,Ot+=u*Et,u=C[6],vt+=u*st,lt+=u*We,Ze+=u*nt,Ae+=u*at,ke+=u*et,Ke+=u*Je,Xe+=u*wt,Ne+=u*_t,Ve+=u*ot,Se+=u*bt,Le+=u*ct,it+=u*ft,Te+=u*ut,mt+=u*He,Ot+=u*It,Lt+=u*Et,u=C[7],lt+=u*st,Ze+=u*We,Ae+=u*nt,ke+=u*at,Ke+=u*et,Xe+=u*Je,Ne+=u*wt,Ve+=u*_t,Se+=u*ot,Le+=u*bt,it+=u*ct,Te+=u*ft,mt+=u*ut,Ot+=u*He,Lt+=u*It,zt+=u*Et,u=C[8],Ze+=u*st,Ae+=u*We,ke+=u*nt,Ke+=u*at,Xe+=u*et,Ne+=u*Je,Ve+=u*wt,Se+=u*_t,Le+=u*ot,it+=u*bt,Te+=u*ct,mt+=u*ft,Ot+=u*ut,Lt+=u*He,zt+=u*It,$t+=u*Et,u=C[9],Ae+=u*st,ke+=u*We,Ke+=u*nt,Xe+=u*at,Ne+=u*et,Ve+=u*Je,Se+=u*wt,Le+=u*_t,it+=u*ot,Te+=u*bt,mt+=u*ct,Ot+=u*ft,Lt+=u*ut,zt+=u*He,$t+=u*It,Ft+=u*Et,u=C[10],ke+=u*st,Ke+=u*We,Xe+=u*nt,Ne+=u*at,Ve+=u*et,Se+=u*Je,Le+=u*wt,it+=u*_t,Te+=u*ot,mt+=u*bt,Ot+=u*ct,Lt+=u*ft,zt+=u*ut,$t+=u*He,Ft+=u*It,Zt+=u*Et,u=C[11],Ke+=u*st,Xe+=u*We,Ne+=u*nt,Ve+=u*at,Se+=u*et,Le+=u*Je,it+=u*wt,Te+=u*_t,mt+=u*ot,Ot+=u*bt,Lt+=u*ct,zt+=u*ft,$t+=u*ut,Ft+=u*He,Zt+=u*It,Lr+=u*Et,u=C[12],Xe+=u*st,Ne+=u*We,Ve+=u*nt,Se+=u*at,Le+=u*et,it+=u*Je,Te+=u*wt,mt+=u*_t,Ot+=u*ot,Lt+=u*bt,zt+=u*ct,$t+=u*ft,Ft+=u*ut,Zt+=u*He,Lr+=u*It,Bt+=u*Et,u=C[13],Ne+=u*st,Ve+=u*We,Se+=u*nt,Le+=u*at,it+=u*et,Te+=u*Je,mt+=u*wt,Ot+=u*_t,Lt+=u*ot,zt+=u*bt,$t+=u*ct,Ft+=u*ft,Zt+=u*ut,Lr+=u*He,Bt+=u*It,Fr+=u*Et,u=C[14],Ve+=u*st,Se+=u*We,Le+=u*nt,it+=u*at,Te+=u*et,mt+=u*Je,Ot+=u*wt,Lt+=u*_t,zt+=u*ot,$t+=u*bt,Ft+=u*ct,Zt+=u*ft,Lr+=u*ut,Bt+=u*He,Fr+=u*It,oi+=u*Et,u=C[15],Se+=u*st,Le+=u*We,it+=u*nt,Te+=u*at,mt+=u*et,Ot+=u*Je,Lt+=u*wt,zt+=u*_t,$t+=u*ot,Ft+=u*bt,Zt+=u*ct,Lr+=u*ft,Bt+=u*ut,Fr+=u*He,oi+=u*It,Pi+=u*Et,J+=38*Le,oe+=38*it,ge+=38*Te,Pe+=38*mt,Re+=38*Ot,_e+=38*Lt,vt+=38*zt,lt+=38*$t,Ze+=38*Ft,Ae+=38*Zt,ke+=38*Lr,Ke+=38*Bt,Xe+=38*Fr,Ne+=38*oi,Ve+=38*Pi,I=1,u=J+I+65535,I=Math.floor(u/65536),J=u-I*65536,u=oe+I+65535,I=Math.floor(u/65536),oe=u-I*65536,u=ge+I+65535,I=Math.floor(u/65536),ge=u-I*65536,u=Pe+I+65535,I=Math.floor(u/65536),Pe=u-I*65536,u=Re+I+65535,I=Math.floor(u/65536),Re=u-I*65536,u=_e+I+65535,I=Math.floor(u/65536),_e=u-I*65536,u=vt+I+65535,I=Math.floor(u/65536),vt=u-I*65536,u=lt+I+65535,I=Math.floor(u/65536),lt=u-I*65536,u=Ze+I+65535,I=Math.floor(u/65536),Ze=u-I*65536,u=Ae+I+65535,I=Math.floor(u/65536),Ae=u-I*65536,u=ke+I+65535,I=Math.floor(u/65536),ke=u-I*65536,u=Ke+I+65535,I=Math.floor(u/65536),Ke=u-I*65536,u=Xe+I+65535,I=Math.floor(u/65536),Xe=u-I*65536,u=Ne+I+65535,I=Math.floor(u/65536),Ne=u-I*65536,u=Ve+I+65535,I=Math.floor(u/65536),Ve=u-I*65536,u=Se+I+65535,I=Math.floor(u/65536),Se=u-I*65536,J+=I-1+37*(I-1),I=1,u=J+I+65535,I=Math.floor(u/65536),J=u-I*65536,u=oe+I+65535,I=Math.floor(u/65536),oe=u-I*65536,u=ge+I+65535,I=Math.floor(u/65536),ge=u-I*65536,u=Pe+I+65535,I=Math.floor(u/65536),Pe=u-I*65536,u=Re+I+65535,I=Math.floor(u/65536),Re=u-I*65536,u=_e+I+65535,I=Math.floor(u/65536),_e=u-I*65536,u=vt+I+65535,I=Math.floor(u/65536),vt=u-I*65536,u=lt+I+65535,I=Math.floor(u/65536),lt=u-I*65536,u=Ze+I+65535,I=Math.floor(u/65536),Ze=u-I*65536,u=Ae+I+65535,I=Math.floor(u/65536),Ae=u-I*65536,u=ke+I+65535,I=Math.floor(u/65536),ke=u-I*65536,u=Ke+I+65535,I=Math.floor(u/65536),Ke=u-I*65536,u=Xe+I+65535,I=Math.floor(u/65536),Xe=u-I*65536,u=Ne+I+65535,I=Math.floor(u/65536),Ne=u-I*65536,u=Ve+I+65535,I=Math.floor(u/65536),Ve=u-I*65536,u=Se+I+65535,I=Math.floor(u/65536),Se=u-I*65536,J+=I-1+37*(I-1),T[0]=J,T[1]=oe,T[2]=ge,T[3]=Pe,T[4]=Re,T[5]=_e,T[6]=vt,T[7]=lt,T[8]=Ze,T[9]=Ae,T[10]=ke,T[11]=Ke,T[12]=Xe,T[13]=Ne,T[14]=Ve,T[15]=Se}function xe(T,C){Q(T,C,C)}function Tt(T,C){const R=a();let u;for(u=0;u<16;u++)R[u]=C[u];for(u=253;u>=0;u--)xe(R,R),u!==2&&u!==4&&Q(R,R,C);for(u=0;u<16;u++)T[u]=R[u]}function yt(T,C){const R=a();let u;for(u=0;u<16;u++)R[u]=C[u];for(u=250;u>=0;u--)xe(R,R),u!==1&&Q(R,R,C);for(u=0;u<16;u++)T[u]=R[u]}function Yt(T,C){const R=a(),u=a(),I=a(),J=a(),oe=a(),ge=a(),Pe=a(),Re=a(),_e=a();pe(R,T[1],T[0]),pe(_e,C[1],C[0]),Q(R,R,_e),fe(u,T[0],T[1]),fe(_e,C[0],C[1]),Q(u,u,_e),Q(I,T[3],C[3]),Q(I,I,g),Q(J,T[2],C[2]),fe(J,J,J),pe(oe,u,R),pe(ge,J,I),fe(Pe,J,I),fe(Re,u,R),Q(T[0],oe,ge),Q(T[1],Re,Pe),Q(T[2],Pe,ge),Q(T[3],oe,Re)}function Vt(T,C,R){for(let u=0;u<4;u++)Z(T[u],C[u],R)}function ur(T,C){const R=a(),u=a(),I=a();Tt(I,C[2]),Q(R,C[0],I),Q(u,C[1],I),se(T,u),T[31]^=ae(R)<<7}function M(T,C,R){q(T[0],p),q(T[1],v),q(T[2],v),q(T[3],p);for(let u=255;u>=0;--u){const I=R[u/8|0]>>(u&7)&1;Vt(T,C,I),Yt(C,T),Yt(T,T),Vt(T,C,I)}}function U(T,C){const R=[a(),a(),a(),a()];q(R[0],b),q(R[1],S),q(R[2],v),Q(R[3],b,S),M(T,R,C)}function Ge(T){if(T.length!==o.SEED_LENGTH)throw new Error(`ed25519: seed must be ${o.SEED_LENGTH} bytes`);const C=(0,i.hash)(T);C[0]&=248,C[31]&=127,C[31]|=64;const R=new Uint8Array(32),u=[a(),a(),a(),a()];U(u,C),ur(R,u);const I=new Uint8Array(64);return I.set(T),I.set(R,32),{publicKey:R,secretKey:I}}o.generateKeyPairFromSeed=Ge;function qe(T){const C=(0,r.randomBytes)(32,T),R=Ge(C);return(0,n.wipe)(C),R}o.generateKeyPair=qe;function G(T){if(T.length!==o.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${o.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(T.subarray(32))}o.extractPublicKeyFromSecretKey=G;const K=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function H(T,C){let R,u,I,J;for(u=63;u>=32;--u){for(R=0,I=u-32,J=u-12;I>4)*K[I],R=C[I]>>8,C[I]&=255;for(I=0;I<32;I++)C[I]-=R*K[I];for(u=0;u<32;u++)C[u+1]+=C[u]>>8,T[u]=C[u]&255}function V(T){const C=new Float64Array(64);for(let R=0;R<64;R++)C[R]=T[R];for(let R=0;R<64;R++)T[R]=0;H(T,C)}function Rt(T,C){const R=new Float64Array(64),u=[a(),a(),a(),a()],I=(0,i.hash)(T.subarray(0,32));I[0]&=248,I[31]&=127,I[31]|=64;const J=new Uint8Array(64);J.set(I.subarray(32),32);const oe=new i.SHA512;oe.update(J.subarray(32)),oe.update(C);const ge=oe.digest();oe.clean(),V(ge),U(u,ge),ur(J,u),oe.reset(),oe.update(J.subarray(0,32)),oe.update(T.subarray(32)),oe.update(C);const Pe=oe.digest();V(Pe);for(let Re=0;Re<32;Re++)R[Re]=ge[Re];for(let Re=0;Re<32;Re++)for(let _e=0;_e<32;_e++)R[Re+_e]+=Pe[Re]*I[_e];return H(J.subarray(32),R),J}o.sign=Rt;function rt(T,C){const R=a(),u=a(),I=a(),J=a(),oe=a(),ge=a(),Pe=a();return q(T[2],v),te(T[1],C),xe(I,T[1]),Q(J,I,m),pe(I,I,T[2]),fe(J,T[2],J),xe(oe,J),xe(ge,oe),Q(Pe,ge,oe),Q(R,Pe,I),Q(R,R,J),yt(R,R),Q(R,R,I),Q(R,R,J),Q(R,R,J),Q(T[0],R,J),xe(u,T[0]),Q(u,u,J),ce(u,I)&&Q(T[0],T[0],$),xe(u,T[0]),Q(u,u,J),ce(u,I)?-1:(ae(T[0])===C[31]>>7&&pe(T[0],p,T[0]),Q(T[3],T[0],T[1]),0)}function xi(T,C,R){const u=new Uint8Array(32),I=[a(),a(),a(),a()],J=[a(),a(),a(),a()];if(R.length!==o.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${o.SIGNATURE_LENGTH} bytes`);if(rt(J,T))return!1;const oe=new i.SHA512;oe.update(R.subarray(0,32)),oe.update(T),oe.update(C);const ge=oe.digest();return V(ge),M(I,J,ge),U(J,R.subarray(32)),Yt(I,J),ur(u,I),!ne(R,u)}o.verify=xi;function we(T){let C=[a(),a(),a(),a()];if(rt(C,T))throw new Error("Ed25519: invalid public key");let R=a(),u=a(),I=C[1];fe(R,v,I),pe(u,v,I),Tt(u,u),Q(R,R,u);let J=new Uint8Array(32);return se(J,R),J}o.convertPublicKeyToX25519=we;function Sr(T){const C=(0,i.hash)(T.subarray(0,32));C[0]&=248,C[31]&=127,C[31]|=64;const R=new Uint8Array(C.subarray(0,32));return(0,n.wipe)(C),R}o.convertSecretKeyToX25519=Sr})($c);const d1="EdDSA",g1="JWT",tf=".",rf="base64url",y1="utf8",v1="utf8",m1=":",w1="did",_1="key",rl="base58btc",b1="z",I1="K36",E1=32;function va(o){return ba(Oc(Qs(o),y1),rf)}function sf(o){const r=Oc(I1,rl),i=b1+ba(s0([r,o]),rl);return[w1,_1,i].join(m1)}function x1(o){return ba(o,rf)}function P1(o){return Oc([va(o.header),va(o.payload)].join(tf),v1)}function S1(o){return[va(o.header),va(o.payload),x1(o.signature)].join(tf)}function il(o=Ul.randomBytes(E1)){return $c.generateKeyPairFromSeed(o)}async function R1(o,r,i,n,a=X.fromMiliseconds(Date.now())){const h={alg:d1,typ:g1},p=sf(n.publicKey),v=a+i,m={iss:p,sub:o,aud:r,iat:a,exp:v},g=P1({header:h,payload:m}),b=$c.sign(n.secretKey,g);return S1({header:h,payload:m,signature:b})}class ni extends F0{constructor(r){super(r),this.events=new qr.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(r),this.connection.connected&&this.registerEventListeners()}async connect(r=this.connection){await this.open(r)}async disconnect(){await this.close()}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async request(r,i){return this.requestStrict(gs(r.method,r.params||[],r.id||Gl().toString()),i)}async requestStrict(r,i){return new Promise(async(n,a)=>{if(!this.connection.connected)try{await this.open()}catch(h){a(h)}this.events.on(`${r.id}`,h=>{Kr(h)?a(h.error):n(h.result)});try{await this.connection.send(r,i)}catch(h){a(h)}})}setConnection(r=this.connection){return r}onPayload(r){this.events.emit("payload",r),Ea(r)?this.events.emit(`${r.id}`,r):this.events.emit("message",{type:r.method,data:r.params})}onClose(r){r&&r.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${r.code} ${r.reason?`(${r.reason})`:""}`)),this.events.emit("disconnect")}async open(r=this.connection){this.connection===r&&this.connection.connected||(this.connection.connected&&this.close(),typeof r=="string"&&(await this.connection.open(r),r=this.connection),this.connection=this.setConnection(r),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",r=>this.onPayload(r)),this.connection.on("close",r=>this.onClose(r)),this.connection.on("error",r=>this.events.emit("error",r)),this.connection.on("register_error",r=>this.onClose()),this.hasRegisteredEventListeners=!0)}}const O1=()=>typeof WebSocket<"u"?WebSocket:typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:require("ws"),A1=()=>typeof WebSocket<"u"||typeof global<"u"&&typeof global.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",sl=o=>o.split("?")[0],nl=10,C1=O1();let T1=class{constructor(r){if(this.url=r,this.events=new qr.EventEmitter,this.registering=!1,!Kh(r))throw new Error(`Provided URL is not compatible with WebSocket connection: ${r}`);this.url=r}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async open(r=this.url){await this.register(r)}async close(){return new Promise((r,i)=>{if(typeof this.socket>"u"){i(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),r()},this.socket.close()})}async send(r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Qs(r))}catch(i){this.onError(r.id,i)}}register(r=this.url){if(!Kh(r))throw new Error(`Provided URL is not compatible with WebSocket connection: ${r}`);if(this.registering){const i=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=i||this.events.listenerCount("open")>=i)&&this.events.setMaxListeners(i+1),new Promise((n,a)=>{this.events.once("register_error",h=>{this.resetMaxListeners(),a(h)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return a(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=r,this.registering=!0,new Promise((i,n)=>{const a=new URLSearchParams(r).get("origin"),h=B0.isReactNative()?{headers:{origin:a}}:{rejectUnauthorized:!G0(r)},p=new C1(r,[],h);A1()?p.onerror=v=>{const m=v;n(this.emitError(m.error))}:p.on("error",v=>{n(this.emitError(v))}),p.onopen=()=>{this.onOpen(p),i(p)}})}onOpen(r){r.onmessage=i=>this.onPayload(i),r.onclose=i=>this.onClose(i),this.socket=r,this.registering=!1,this.events.emit("open")}onClose(r){this.socket=void 0,this.registering=!1,this.events.emit("close",r)}onPayload(r){if(typeof r.data>"u")return;const i=typeof r.data=="string"?Ia(r.data):r.data;this.events.emit("payload",i)}onError(r,i){const n=this.parseError(i),a=n.message||n.toString(),h=Cc(r,a);this.events.emit("payload",h)}parseError(r,i=this.url){return W0(r,sl(i),"WS")}resetMaxListeners(){this.events.getMaxListeners()>nl&&this.events.setMaxListeners(nl)}emitError(r){const i=this.parseError(new Error((r==null?void 0:r.message)||`WebSocket connection failed for host: ${sl(this.url)}`));return this.events.emit("register_error",i),i}};var ma={exports:{}};ma.exports;(function(o,r){var i=200,n="__lodash_hash_undefined__",a=1,h=2,p=9007199254740991,v="[object Arguments]",m="[object Array]",g="[object AsyncFunction]",b="[object Boolean]",S="[object Date]",$="[object Error]",q="[object Function]",A="[object GeneratorFunction]",Z="[object Map]",se="[object Number]",ne="[object Null]",ce="[object Object]",ae="[object Promise]",te="[object Proxy]",fe="[object RegExp]",pe="[object Set]",Q="[object String]",xe="[object Symbol]",Tt="[object Undefined]",yt="[object WeakMap]",Yt="[object ArrayBuffer]",Vt="[object DataView]",ur="[object Float32Array]",M="[object Float64Array]",U="[object Int8Array]",Ge="[object Int16Array]",qe="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",H="[object Uint16Array]",V="[object Uint32Array]",Rt=/[\\^$.*+?()[\]{}|]/g,rt=/^\[object .+?Constructor\]$/,xi=/^(?:0|[1-9]\d*)$/,we={};we[ur]=we[M]=we[U]=we[Ge]=we[qe]=we[G]=we[K]=we[H]=we[V]=!0,we[v]=we[m]=we[Yt]=we[b]=we[Vt]=we[S]=we[$]=we[q]=we[Z]=we[se]=we[ce]=we[fe]=we[pe]=we[Q]=we[yt]=!1;var Sr=typeof na=="object"&&na&&na.Object===Object&&na,T=typeof self=="object"&&self&&self.Object===Object&&self,C=Sr||T||Function("return this")(),R=r&&!r.nodeType&&r,u=R&&!0&&o&&!o.nodeType&&o,I=u&&u.exports===R,J=I&&Sr.process,oe=function(){try{return J&&J.binding&&J.binding("util")}catch{}}(),ge=oe&&oe.isTypedArray;function Pe(y,E){for(var z=-1,F=y==null?0:y.length,je=0,he=[];++z-1}function za(y,E){var z=this.__data__,F=Si(z,y);return F<0?(++this.size,z.push([y,E])):z[F][1]=E,this}yr.prototype.clear=Na,yr.prototype.delete=Da,yr.prototype.get=qa,yr.prototype.has=La,yr.prototype.set=za;function Br(y){var E=-1,z=y==null?0:y.length;for(this.clear();++Ext))return!1;var Me=he.get(y);if(Me&&he.get(E))return Me==E;var pt=-1,Xt=!0,Pt=z&h?new Fi:void 0;for(he.set(y,E),he.set(E,y);++pt-1&&y%1==0&&y-1&&y%1==0&&y<=p}function mn(y){var E=typeof y;return y!=null&&(E=="object"||E=="function")}function Ai(y){return y!=null&&typeof y=="object"}var wn=ge?lt(ge):an;function Qa(y){return Wa(y)?sn(y):on(y)}function ze(){return[]}function De(){return!1}o.exports=Ja})(ma,ma.exports);var $1=ma.exports;const N1=Rc($1);function D1(o,r){return r=r||{},new Promise(function(i,n){var a=new XMLHttpRequest,h=[],p=[],v={},m=function(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){return Promise.resolve(a.responseText)},json:function(){return Promise.resolve(a.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([a.response]))},clone:m,headers:{keys:function(){return h},entries:function(){return p},get:function(b){return v[b.toLowerCase()]},has:function(b){return b.toLowerCase()in v}}}};for(var g in a.open(r.method||"get",o,!0),a.onload=function(){a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(b,S,$){h.push(S=S.toLowerCase()),p.push([S,$]),v[S]=v[S]?v[S]+","+$:$}),i(m())},a.onerror=n,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(g,r.headers[g]);a.send(r.body||null)})}const q1=Object.freeze(Object.defineProperty({__proto__:null,default:D1},Symbol.toStringTag,{value:"Module"})),al=jl(q1);var L1=self.fetch||(self.fetch=al.default||al);const z1=Rc(L1);var j1={};function M1(o,r){if(o.length>=255)throw new TypeError("Alphabet too long");for(var i=new Uint8Array(256),n=0;n>>0,te=new Uint8Array(ae);ne!==ce;){for(var fe=A[ne],pe=0,Q=ae-1;(fe!==0||pe>>0,te[Q]=fe%v>>>0,fe=fe/v>>>0;if(fe!==0)throw new Error("Non-zero carry");se=pe,ne++}for(var xe=ae-se;xe!==ae&&te[xe]===0;)xe++;for(var Tt=m.repeat(Z);xe>>0,ae=new Uint8Array(ce);A[Z];){var te=i[A.charCodeAt(Z)];if(te===255)return;for(var fe=0,pe=ce-1;(te!==0||fe>>0,ae[pe]=te%256>>>0,te=te/256>>>0;if(te!==0)throw new Error("Non-zero carry");ne=fe,Z++}if(A[Z]!==" "){for(var Q=ce-ne;Q!==ce&&ae[Q]===0;)Q++;for(var xe=new Uint8Array(se+(ce-Q)),Tt=se;Q!==ce;)xe[Tt++]=ae[Q++];return xe}}}function q(A){var Z=$(A);if(Z)return Z;throw new Error(`Non-${r} character`)}return{encode:S,decodeUnsafe:$,decode:q}}var U1=M1,H1=U1;const nf=o=>{if(o instanceof Uint8Array&&o.constructor.name==="Uint8Array")return o;if(o instanceof ArrayBuffer)return new Uint8Array(o);if(ArrayBuffer.isView(o))return new Uint8Array(o.buffer,o.byteOffset,o.byteLength);throw new Error("Unknown type, must be binary type")},k1=o=>new TextEncoder().encode(o),K1=o=>new TextDecoder().decode(o);class V1{constructor(r,i,n){this.name=r,this.prefix=i,this.baseEncode=n}encode(r){if(r instanceof Uint8Array)return`${this.prefix}${this.baseEncode(r)}`;throw Error("Unknown type, must be binary type")}}class F1{constructor(r,i,n){if(this.name=r,this.prefix=i,i.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=i.codePointAt(0),this.baseDecode=n}decode(r){if(typeof r=="string"){if(r.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(r)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(r.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(r){return af(this,r)}}class B1{constructor(r){this.decoders=r}or(r){return af(this,r)}decode(r){const i=r[0],n=this.decoders[i];if(n)return n.decode(r);throw RangeError(`Unable to decode multibase string ${JSON.stringify(r)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const af=(o,r)=>new B1({...o.decoders||{[o.prefix]:o},...r.decoders||{[r.prefix]:r}});class G1{constructor(r,i,n,a){this.name=r,this.prefix=i,this.baseEncode=n,this.baseDecode=a,this.encoder=new V1(r,i,n),this.decoder=new F1(r,i,a)}encode(r){return this.encoder.encode(r)}decode(r){return this.decoder.decode(r)}}const Oa=({name:o,prefix:r,encode:i,decode:n})=>new G1(o,r,i,n),Xs=({prefix:o,name:r,alphabet:i})=>{const{encode:n,decode:a}=H1(i,r);return Oa({prefix:o,name:r,encode:n,decode:h=>nf(a(h))})},W1=(o,r,i,n)=>{const a={};for(let b=0;b=8&&(v-=8,p[g++]=255&m>>v)}if(v>=i||255&m<<8-v)throw new SyntaxError("Unexpected end of data");return p},J1=(o,r,i)=>{const n=r[r.length-1]==="=",a=(1<i;)p-=i,h+=r[a&v>>p];if(p&&(h+=r[a&v<Oa({prefix:r,name:o,encode(a){return J1(a,n,i)},decode(a){return W1(a,n,i,o)}}),Q1=Oa({prefix:"\0",name:"identity",encode:o=>K1(o),decode:o=>k1(o)});var Y1=Object.freeze({__proto__:null,identity:Q1});const Z1=Mt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var X1=Object.freeze({__proto__:null,base2:Z1});const e_=Mt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var t_=Object.freeze({__proto__:null,base8:e_});const r_=Xs({prefix:"9",name:"base10",alphabet:"0123456789"});var i_=Object.freeze({__proto__:null,base10:r_});const s_=Mt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),n_=Mt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var a_=Object.freeze({__proto__:null,base16:s_,base16upper:n_});const o_=Mt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),c_=Mt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),u_=Mt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),h_=Mt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),l_=Mt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),f_=Mt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),p_=Mt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),d_=Mt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),g_=Mt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var y_=Object.freeze({__proto__:null,base32:o_,base32upper:c_,base32pad:u_,base32padupper:h_,base32hex:l_,base32hexupper:f_,base32hexpad:p_,base32hexpadupper:d_,base32z:g_});const v_=Xs({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),m_=Xs({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var w_=Object.freeze({__proto__:null,base36:v_,base36upper:m_});const __=Xs({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),b_=Xs({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var I_=Object.freeze({__proto__:null,base58btc:__,base58flickr:b_});const E_=Mt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),x_=Mt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),P_=Mt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),S_=Mt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var R_=Object.freeze({__proto__:null,base64:E_,base64pad:x_,base64url:P_,base64urlpad:S_});const of=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),O_=of.reduce((o,r,i)=>(o[i]=r,o),[]),A_=of.reduce((o,r,i)=>(o[r.codePointAt(0)]=i,o),[]);function C_(o){return o.reduce((r,i)=>(r+=O_[i],r),"")}function T_(o){const r=[];for(const i of o){const n=A_[i.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${i}`);r.push(n)}return new Uint8Array(r)}const $_=Oa({prefix:"🚀",name:"base256emoji",encode:C_,decode:T_});var N_=Object.freeze({__proto__:null,base256emoji:$_}),D_=cf,ol=128,q_=127,L_=~q_,z_=Math.pow(2,31);function cf(o,r,i){r=r||[],i=i||0;for(var n=i;o>=z_;)r[i++]=o&255|ol,o/=128;for(;o&L_;)r[i++]=o&255|ol,o>>>=7;return r[i]=o|0,cf.bytes=i-n+1,r}var j_=bc,M_=128,cl=127;function bc(o,n){var i=0,n=n||0,a=0,h=n,p,v=o.length;do{if(h>=v)throw bc.bytes=0,new RangeError("Could not decode varint");p=o[h++],i+=a<28?(p&cl)<=M_);return bc.bytes=h-n,i}var U_=Math.pow(2,7),H_=Math.pow(2,14),k_=Math.pow(2,21),K_=Math.pow(2,28),V_=Math.pow(2,35),F_=Math.pow(2,42),B_=Math.pow(2,49),G_=Math.pow(2,56),W_=Math.pow(2,63),J_=function(o){return o(uf.encode(o,r,i),r),hl=o=>uf.encodingLength(o),Ic=(o,r)=>{const i=r.byteLength,n=hl(o),a=n+hl(i),h=new Uint8Array(a+i);return ul(o,h,0),ul(i,h,n),h.set(r,a),new Y_(o,i,r,h)};class Y_{constructor(r,i,n,a){this.code=r,this.size=i,this.digest=n,this.bytes=a}}const hf=({name:o,code:r,encode:i})=>new Z_(o,r,i);class Z_{constructor(r,i,n){this.name=r,this.code=i,this.encode=n}digest(r){if(r instanceof Uint8Array){const i=this.encode(r);return i instanceof Uint8Array?Ic(this.code,i):i.then(n=>Ic(this.code,n))}else throw Error("Unknown type, must be binary type")}}const lf=o=>async r=>new Uint8Array(await crypto.subtle.digest(o,r)),X_=hf({name:"sha2-256",code:18,encode:lf("SHA-256")}),eb=hf({name:"sha2-512",code:19,encode:lf("SHA-512")});var tb=Object.freeze({__proto__:null,sha256:X_,sha512:eb});const ff=0,rb="identity",pf=nf,ib=o=>Ic(ff,pf(o)),sb={code:ff,name:rb,encode:pf,digest:ib};var nb=Object.freeze({__proto__:null,identity:sb});new TextEncoder,new TextDecoder;const ll={...Y1,...X1,...t_,...i_,...a_,...y_,...w_,...I_,...R_,...N_};({...tb,...nb});function df(o){return globalThis.Buffer!=null?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):o}function ab(o=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?df(globalThis.Buffer.allocUnsafe(o)):new Uint8Array(o)}function gf(o,r,i,n){return{name:o,prefix:r,encoder:{name:o,prefix:r,encode:i},decoder:{decode:n}}}const fl=gf("utf8","u",o=>"u"+new TextDecoder("utf8").decode(o),o=>new TextEncoder().encode(o.substring(1))),cc=gf("ascii","a",o=>{let r="a";for(let i=0;i{o=o.substring(1);const r=ab(o.length);for(let i=0;i{if(!this.initialized){const n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,a)=>{this.isInitialized(),this.keychain.set(n,a),await this.persist()},this.get=n=>{this.isInitialized();const a=this.keychain.get(n);if(typeof a>"u"){const{message:h}=B("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(h)}return a},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=r,this.logger=cr(i,this.name)}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(r){await this.core.storage.setItem(this.storageKey,Vl(r))}async getKeyChain(){const r=await this.core.storage.getItem(this.storageKey);return typeof r<"u"?Fl(r):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class Hb{constructor(r,i,n){this.core=r,this.logger=i,this.name=fb,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=a=>(this.isInitialized(),this.keychain.has(a)),this.getClientId=async()=>{this.isInitialized();const a=await this.getClientSeed(),h=il(a);return sf(h.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const a=o0();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();const h=await this.getClientSeed(),p=il(h),v=vc();return await R1(v,a,pb,p)},this.generateSharedKey=(a,h,p)=>{this.isInitialized();const v=this.getPrivateKey(a),m=c0(v,h);return this.setSymKey(m,p)},this.setSymKey=async(a,h)=>{this.isInitialized();const p=h||u0(a);return await this.keychain.set(p,a),p},this.deleteKeyPair=async a=>{this.isInitialized(),await this.keychain.del(a)},this.deleteSymKey=async a=>{this.isInitialized(),await this.keychain.del(a)},this.encode=async(a,h,p)=>{this.isInitialized();const v=h0(p),m=Qs(h);if(zh(v)){const $=v.senderPublicKey,q=v.receiverPublicKey;a=await this.generateSharedKey($,q)}const g=this.getSymKey(a),{type:b,senderPublicKey:S}=v;return l0({type:b,symKey:g,message:m,senderPublicKey:S})},this.decode=async(a,h,p)=>{this.isInitialized();const v=f0(h,p);if(zh(v)){const m=v.receiverPublicKey,g=v.senderPublicKey;a=await this.generateSharedKey(m,g)}try{const m=this.getSymKey(a),g=p0({symKey:m,encoded:h});return Ia(g)}catch(m){this.logger.error(`Failed to decode message from topic: '${a}', clientId: '${await this.getClientId()}'`),this.logger.error(m)}},this.getPayloadType=a=>{const h=jh(a);return d0(h.type)},this.getPayloadSenderPublicKey=a=>{const h=jh(a);return h.senderPublicKey?ba(h.senderPublicKey,g0):void 0},this.core=r,this.logger=cr(i,this.name),this.keychain=n||new Ub(this.core,this.logger)}get context(){return or(this.logger)}async setPrivateKey(r,i){return await this.keychain.set(r,i),r}getPrivateKey(r){return this.keychain.get(r)}async getClientSeed(){let r="";try{r=this.keychain.get(pl)}catch{r=vc(),await this.keychain.set(pl,r)}return cb(r,"base16")}getSymKey(r){return this.keychain.get(r)}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class kb extends s1{constructor(r,i){super(r,i),this.logger=r,this.core=i,this.messages=new Map,this.name=yb,this.version=vb,this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,a)=>{this.isInitialized();const h=ds(a);let p=this.messages.get(n);return typeof p>"u"&&(p={}),typeof p[h]<"u"||(p[h]=a,this.messages.set(n,p),await this.persist()),h},this.get=n=>{this.isInitialized();let a=this.messages.get(n);return typeof a>"u"&&(a={}),a},this.has=(n,a)=>{this.isInitialized();const h=this.get(n),p=ds(a);return typeof h[p]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=cr(r,this.name),this.core=i}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(r){await this.core.storage.setItem(this.storageKey,Vl(r))}async getRelayerMessages(){const r=await this.core.storage.getItem(this.storageKey);return typeof r<"u"?Fl(r):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class Kb extends n1{constructor(r,i){super(r,i),this.relayer=r,this.logger=i,this.events=new qr.EventEmitter,this.name=wb,this.queue=new Map,this.publishTimeout=X.toMiliseconds(X.TEN_SECONDS),this.needsTransportRestart=!1,this.publish=async(n,a,h)=>{var p;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:h}});try{const v=(h==null?void 0:h.ttl)||mb,m=mc(h),g=(h==null?void 0:h.prompt)||!1,b=(h==null?void 0:h.tag)||0,S=(h==null?void 0:h.id)||Gl().toString(),$={topic:n,message:a,opts:{ttl:v,relay:m,prompt:g,tag:b,id:S}},q=setTimeout(()=>this.queue.set(S,$),this.publishTimeout);try{await await Gs(this.rpcPublish(n,a,v,m,g,b,S),this.publishTimeout,"Failed to publish payload, please try again."),this.removeRequestFromQueue(S),this.relayer.events.emit(Kt.publish,$)}catch(A){if(this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0,(p=h==null?void 0:h.internal)!=null&&p.throwOnFailedPublish)throw this.removeRequestFromQueue(S),A;return}finally{clearTimeout(q)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:h}})}catch(v){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(v),v}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.relayer=r,this.logger=cr(i,this.name),this.registerEventListeners()}get context(){return or(this.logger)}rpcPublish(r,i,n,a,h,p,v){var m,g,b,S;const $={method:pa(a.protocol).publish,params:{topic:r,message:i,ttl:n,prompt:h,tag:p},id:v};return _i((m=$.params)==null?void 0:m.prompt)&&((g=$.params)==null||delete g.prompt),_i((b=$.params)==null?void 0:b.tag)&&((S=$.params)==null||delete S.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:$}),this.relayer.request($)}removeRequestFromQueue(r){this.queue.delete(r)}checkQueue(){this.queue.forEach(async r=>{const{topic:i,message:n,opts:a}=r;await this.publish(i,n,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(vs.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(Kt.connection_stalled);return}this.checkQueue()}),this.relayer.on(Kt.message_ack,r=>{this.removeRequestFromQueue(r.id.toString())})}}class Vb{constructor(){this.map=new Map,this.set=(r,i)=>{const n=this.get(r);this.exists(r,i)||this.map.set(r,[...n,i])},this.get=r=>this.map.get(r)||[],this.exists=(r,i)=>this.get(r).includes(i),this.delete=(r,i)=>{if(typeof i>"u"){this.map.delete(r);return}if(!this.map.has(r))return;const n=this.get(r);if(!this.exists(r,i))return;const a=n.filter(h=>h!==i);if(!a.length){this.map.delete(r);return}this.map.set(r,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var Fb=Object.defineProperty,Bb=Object.defineProperties,Gb=Object.getOwnPropertyDescriptors,gl=Object.getOwnPropertySymbols,Wb=Object.prototype.hasOwnProperty,Jb=Object.prototype.propertyIsEnumerable,yl=(o,r,i)=>r in o?Fb(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,Us=(o,r)=>{for(var i in r||(r={}))Wb.call(r,i)&&yl(o,i,r[i]);if(gl)for(var i of gl(r))Jb.call(r,i)&&yl(o,i,r[i]);return o},hc=(o,r)=>Bb(o,Gb(r));class Qb extends c1{constructor(r,i){super(r,i),this.relayer=r,this.logger=i,this.subscriptions=new Map,this.topicMap=new Vb,this.events=new qr.EventEmitter,this.name=Ob,this.version=Ab,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=bi,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}});try{const h=mc(a),p={topic:n,relay:h};this.pending.set(n,p);const v=await this.rpcSubscribe(n,h);return this.onSubscribe(v,p),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}}),v}catch(h){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(h),h}},this.unsubscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),typeof(a==null?void 0:a.id)<"u"?await this.unsubscribeById(n,a.id,a):await this.unsubscribeByTopic(n,a)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((a,h)=>{const p=new X.Watch;p.start(this.pendingSubscriptionWatchLabel);const v=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(v),p.stop(this.pendingSubscriptionWatchLabel),a(!0)),p.elapsed(this.pendingSubscriptionWatchLabel)>=Cb&&(clearInterval(v),p.stop(this.pendingSubscriptionWatchLabel),h(new Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=r,this.logger=cr(i,this.name),this.clientId=""}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(r,i){let n=!1;try{n=this.getSubscription(r).topic===i}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(r,i){const n=this.topicMap.get(r);await Promise.all(n.map(async a=>await this.unsubscribeById(r,a,i)))}async unsubscribeById(r,i,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:r,id:i,opts:n}});try{const a=mc(n);await this.rpcUnsubscribe(r,i,a);const h=kt("USER_DISCONNECTED",`${this.name}, ${r}`);await this.onUnsubscribe(r,i,h),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:r,id:i,opts:n}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(r,i){const n={method:pa(i.protocol).subscribe,params:{topic:r}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Gs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(Kt.connection_stalled)}return ds(r+this.clientId)}async rpcBatchSubscribe(r){if(!r.length)return;const i=r[0].relay,n={method:pa(i.protocol).batchSubscribe,params:{topics:r.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await Gs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Kt.connection_stalled)}}rpcUnsubscribe(r,i,n){const a={method:pa(n.protocol).unsubscribe,params:{topic:r,id:i}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.request(a)}onSubscribe(r,i){this.setSubscription(r,hc(Us({},i),{id:r})),this.pending.delete(i.topic)}onBatchSubscribe(r){r.length&&r.forEach(i=>{this.setSubscription(i.id,Us({},i)),this.pending.delete(i.topic)})}async onUnsubscribe(r,i,n){this.events.removeAllListeners(i),this.hasSubscription(i,r)&&this.deleteSubscription(i,n),await this.relayer.messages.del(r)}async setRelayerSubscriptions(r){await this.relayer.core.storage.setItem(this.storageKey,r)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(r,i){this.subscriptions.has(r)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:r,subscription:i}),this.addSubscription(r,i))}addSubscription(r,i){this.subscriptions.set(r,Us({},i)),this.topicMap.set(i.topic,r),this.events.emit(Nr.created,i)}getSubscription(r){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:r});const i=this.subscriptions.get(r);if(!i){const{message:n}=B("NO_MATCHING_KEY",`${this.name}: ${r}`);throw new Error(n)}return i}deleteSubscription(r,i){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:r,reason:i});const n=this.getSubscription(r);this.subscriptions.delete(r),this.topicMap.delete(n.topic,r),this.events.emit(Nr.deleted,hc(Us({},n),{reason:i}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(Nr.sync)}async reset(){if(this.cached.length){const r=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let i=0;i"u"||!r.length)return;if(this.subscriptions.size){const{message:i}=B("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(i)}this.cached=r,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(r){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(r)}}async batchSubscribe(r){if(!r.length)return;const i=await this.rpcBatchSubscribe(r);ys(i)&&this.onBatchSubscribe(i.map((n,a)=>hc(Us({},r[a]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||this.relayer.transportExplicitlyClosed)return;const r=[];this.pending.forEach(i=>{r.push(i)}),await this.batchSubscribe(r)}registerEventListeners(){this.relayer.core.heartbeat.on(vs.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(Kt.connect,async()=>{await this.onConnect()}),this.relayer.on(Kt.disconnect,()=>{this.onDisconnect()}),this.events.on(Nr.created,async r=>{const i=Nr.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),await this.persist()}),this.events.on(Nr.deleted,async r=>{const i=Nr.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}async restartToComplete(){this.restartInProgress&&await new Promise(r=>{const i=setInterval(()=>{this.restartInProgress||(clearInterval(i),r())},this.pollingInterval)})}}var Yb=Object.defineProperty,vl=Object.getOwnPropertySymbols,Zb=Object.prototype.hasOwnProperty,Xb=Object.prototype.propertyIsEnumerable,ml=(o,r,i)=>r in o?Yb(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,eI=(o,r)=>{for(var i in r||(r={}))Zb.call(r,i)&&ml(o,i,r[i]);if(vl)for(var i of vl(r))Xb.call(r,i)&&ml(o,i,r[i]);return o};class tI extends a1{constructor(r){super(r),this.protocol="wc",this.version=2,this.events=new qr.EventEmitter,this.name=bb,this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.hasExperiencedNetworkDisruption=!1,this.request=async i=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(i)}catch(n){throw this.logger.debug("Failed to Publish Request"),this.logger.error(n),n}},this.onPayloadHandler=i=>{this.onProviderPayload(i)},this.onConnectHandler=()=>{this.events.emit(Kt.connect)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=i=>{this.logger.error(i),this.events.emit(Kt.error,i),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(ii.payload,this.onPayloadHandler),this.provider.on(ii.connect,this.onConnectHandler),this.provider.on(ii.disconnect,this.onDisconnectHandler),this.provider.on(ii.error,this.onProviderErrorHandler)},this.core=r.core,this.logger=typeof r.logger<"u"&&typeof r.logger!="string"?cr(r.logger,this.name):Sa(Ra({level:r.logger||_b})),this.messages=new kb(this.logger,r.core),this.subscriber=new Qb(this,this.logger),this.publisher=new Kb(this,this.logger),this.relayUrl=(r==null?void 0:r.relayUrl)||mf,this.projectId=r.projectId,this.bundleId=y0(),this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${dl}...`),await this.restartTransport(dl)}this.initialized=!0,setTimeout(async()=>{this.subscriber.topics.length===0&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},Pb)}get context(){return or(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(r,i,n){this.isInitialized(),await this.publisher.publish(r,i,n),await this.recordMessageEvent({topic:r,message:i,publishedAt:Date.now()})}async subscribe(r,i){var n;this.isInitialized();let a=((n=this.subscriber.topicMap.get(r))==null?void 0:n[0])||"";if(a)return a;let h;const p=v=>{v.topic===r&&(this.subscriber.off(Nr.created,p),h())};return await Promise.all([new Promise(v=>{h=v,this.subscriber.on(Nr.created,p)}),new Promise(async v=>{a=await this.subscriber.subscribe(r,i),v()})]),a}async unsubscribe(r,i){this.isInitialized(),await this.subscriber.unsubscribe(r,i)}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async transportClose(){this.transportExplicitlyClosed=!0,this.hasExperiencedNetworkDisruption&&this.connected?await Gs(this.provider.disconnect(),1e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.connected&&await this.provider.disconnect()}async transportOpen(r){if(this.transportExplicitlyClosed=!1,await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress){r&&r!==this.relayUrl&&(this.relayUrl=r,await this.transportClose(),await this.createProvider()),this.connectionAttemptInProgress=!0;try{await Promise.all([new Promise(i=>{if(!this.initialized)return i();this.subscriber.once(Nr.resubscribed,()=>{i()})}),new Promise(async(i,n)=>{try{await Gs(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`)}catch(a){n(a);return}i()})])}catch(i){this.logger.error(i);const n=i;if(!this.isConnectionStalled(n.message))throw i;this.provider.events.emit(ii.disconnect)}finally{this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1}}}async restartTransport(r){await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress&&(this.relayUrl=r||this.relayUrl,await this.transportClose(),await this.createProvider(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await Mh())throw new Error("No internet connection detected. Please restart your network and try again.")}isConnectionStalled(r){return this.staleConnectionErrors.some(i=>r.includes(i))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const r=await this.core.crypto.signJWT(this.relayUrl);this.provider=new ni(new T1(v0({sdkVersion:xb,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:r,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(r){const{topic:i,message:n}=r;await this.messages.set(i,n)}async shouldIgnoreMessageEvent(r){const{topic:i,message:n}=r;if(!n||n.length===0)return this.logger.debug(`Ignoring invalid/empty message: ${n}`),!0;if(!await this.subscriber.isSubscribed(i))return this.logger.debug(`Ignoring message for non-subscribed topic ${i}`),!0;const a=this.messages.has(i,n);return a&&this.logger.debug(`Ignoring duplicate message: ${n}`),a}async onProviderPayload(r){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:r}),Tc(r)){if(!r.method.endsWith(Ib))return;const i=r.params,{topic:n,message:a,publishedAt:h}=i.data,p={topic:n,message:a,publishedAt:h};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(eI({type:"event",event:i.id},p)),this.events.emit(i.id,p),await this.acknowledgePayload(r),await this.onMessageEvent(p)}else Ea(r)&&this.events.emit(Kt.message_ack,r)}async onMessageEvent(r){await this.shouldIgnoreMessageEvent(r)||(this.events.emit(Kt.message,r),await this.recordMessageEvent(r))}async acknowledgePayload(r){const i=xa(r.id,!0);await this.provider.connection.send(i)}unregisterProviderListeners(){this.provider.off(ii.payload,this.onPayloadHandler),this.provider.off(ii.connect,this.onConnectHandler),this.provider.off(ii.disconnect,this.onDisconnectHandler),this.provider.off(ii.error,this.onProviderErrorHandler)}async registerEventListeners(){this.events.on(Kt.connection_stalled,()=>{this.restartTransport().catch(i=>this.logger.error(i))});let r=await Mh();m0(async i=>{this.initialized&&r!==i&&(r=i,i?await this.restartTransport().catch(n=>this.logger.error(n)):(this.hasExperiencedNetworkDisruption=!0,await this.transportClose().catch(n=>this.logger.error(n))))})}onProviderDisconnect(){this.events.emit(Kt.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||(this.logger.info("attemptToReconnect called. Connecting..."),setTimeout(async()=>{await this.restartTransport().catch(r=>this.logger.error(r))},X.toMiliseconds(Eb)))}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectionAttemptInProgress)return await new Promise(r=>{const i=setInterval(()=>{this.connected&&(clearInterval(i),r())},this.connectionStatusPollingInterval)});await this.restartTransport()}}}var rI=Object.defineProperty,wl=Object.getOwnPropertySymbols,iI=Object.prototype.hasOwnProperty,sI=Object.prototype.propertyIsEnumerable,_l=(o,r,i)=>r in o?rI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,bl=(o,r)=>{for(var i in r||(r={}))iI.call(r,i)&&_l(o,i,r[i]);if(wl)for(var i of wl(r))sI.call(r,i)&&_l(o,i,r[i]);return o};class Aa extends o1{constructor(r,i,n,a=bi,h=void 0){super(r,i,n,a),this.core=r,this.logger=i,this.name=n,this.map=new Map,this.version=Sb,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(p=>{this.getKey&&p!==null&&!_i(p)?this.map.set(this.getKey(p),p):n0(p)?this.map.set(p.id,p):a0(p)&&this.map.set(p.topic,p)}),this.cached=[],this.initialized=!0)},this.set=async(p,v)=>{this.isInitialized(),this.map.has(p)?await this.update(p,v):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:p,value:v}),this.map.set(p,v),await this.persist())},this.get=p=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:p}),this.getData(p)),this.getAll=p=>(this.isInitialized(),p?this.values.filter(v=>Object.keys(p).every(m=>N1(v[m],p[m]))):this.values),this.update=async(p,v)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:p,update:v});const m=bl(bl({},this.getData(p)),v);this.map.set(p,m),await this.persist()},this.delete=async(p,v)=>{this.isInitialized(),this.map.has(p)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:p,reason:v}),this.map.delete(p),await this.persist())},this.logger=cr(i,this.name),this.storagePrefix=a,this.getKey=h}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(r){await this.core.storage.setItem(this.storageKey,r)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(r){const i=this.map.get(r);if(!i){const{message:n}=B("NO_MATCHING_KEY",`${this.name}: ${r}`);throw this.logger.error(n),new Error(n)}return i}async persist(){await this.setDataStore(this.values)}async restore(){try{const r=await this.getDataStore();if(typeof r>"u"||!r.length)return;if(this.map.size){const{message:i}=B("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),new Error(i)}this.cached=r,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(r){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(r)}}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class nI{constructor(r,i){this.core=r,this.logger=i,this.name=Tb,this.version=$b,this.events=new Ac,this.initialized=!1,this.storagePrefix=bi,this.ignoredPayloadTypes=[Hl],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();const n=vc(),a=await this.core.crypto.setSymKey(n),h=Dr(X.FIVE_MINUTES),p={protocol:vf},v={topic:a,expiry:h,relay:p,active:!1},m=w0({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:n,relay:p});return await this.pairings.set(a,v),await this.core.relayer.subscribe(a),this.core.expirer.set(a,h),{topic:a,uri:m}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);const{topic:a,symKey:h,relay:p}=Uh(n.uri);let v;if(this.pairings.keys.includes(a)&&(v=this.pairings.get(a),v.active))throw new Error(`Pairing already exists: ${a}. Please try again with a new connection URI.`);const m=Dr(X.FIVE_MINUTES),g={topic:a,relay:p,expiry:m,active:!1};return await this.pairings.set(a,g),this.core.expirer.set(a,m),n.activatePairing&&await this.activate({topic:a}),this.events.emit(Fs.create,g),this.core.crypto.keychain.has(a)||(await this.core.crypto.setSymKey(h,a),await this.core.relayer.subscribe(a,{relay:p})),g},this.activate=async({topic:n})=>{this.isInitialized();const a=Dr(X.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:a}),this.core.expirer.set(n,a)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);const{topic:a}=n;if(this.pairings.keys.includes(a)){const h=await this.sendRequest(a,"wc_pairingPing",{}),{done:p,resolve:v,reject:m}=ls();this.events.once(St("pairing_ping",h),({error:g})=>{g?m(g):v()}),await p()}},this.updateExpiry=async({topic:n,expiry:a})=>{this.isInitialized(),await this.pairings.update(n,{expiry:a})},this.updateMetadata=async({topic:n,metadata:a})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:a})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);const{topic:a}=n;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",kt("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(n,a,h)=>{const p=gs(a,h),v=await this.core.crypto.encode(n,p),m=Ms[a].req;return this.core.history.set(n,p),this.core.relayer.publish(n,v,m),p.id},this.sendResult=async(n,a,h)=>{const p=xa(n,h),v=await this.core.crypto.encode(a,p),m=await this.core.history.get(a,n),g=Ms[m.request.method].res;await this.core.relayer.publish(a,v,g),await this.core.history.resolve(p)},this.sendError=async(n,a,h)=>{const p=Cc(n,h),v=await this.core.crypto.encode(a,p),m=await this.core.history.get(a,n),g=Ms[m.request.method]?Ms[m.request.method].res:Ms.unregistered_method.res;await this.core.relayer.publish(a,v,g),await this.core.history.resolve(p)},this.deletePairing=async(n,a)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,kt("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),a?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{const n=this.pairings.getAll().filter(a=>wi(a.expiry));await Promise.all(n.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=n=>{const{topic:a,payload:h}=n;switch(h.method){case"wc_pairingPing":return this.onPairingPingRequest(a,h);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,h);default:return this.onUnknownRpcMethodRequest(a,h)}},this.onRelayEventResponse=async n=>{const{topic:a,payload:h}=n,p=(await this.core.history.get(a,h.id)).request.method;switch(p){case"wc_pairingPing":return this.onPairingPingResponse(a,h);default:return this.onUnknownRpcMethodResponse(p)}},this.onPairingPingRequest=async(n,a)=>{const{id:h}=a;try{this.isValidPing({topic:n}),await this.sendResult(h,n,!0),this.events.emit(Fs.ping,{id:h,topic:n})}catch(p){await this.sendError(h,n,p),this.logger.error(p)}},this.onPairingPingResponse=(n,a)=>{const{id:h}=a;setTimeout(()=>{mi(a)?this.events.emit(St("pairing_ping",h),{}):Kr(a)&&this.events.emit(St("pairing_ping",h),{error:a.error})},500)},this.onPairingDeleteRequest=async(n,a)=>{const{id:h}=a;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit(Fs.delete,{id:h,topic:n})}catch(p){await this.sendError(h,n,p),this.logger.error(p)}},this.onUnknownRpcMethodRequest=async(n,a)=>{const{id:h,method:p}=a;try{if(this.registeredMethods.includes(p))return;const v=kt("WC_METHOD_UNSUPPORTED",p);await this.sendError(h,n,v),this.logger.error(v)}catch(v){await this.sendError(h,n,v),this.logger.error(v)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(kt("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{var a;if(!ar(n)){const{message:p}=B("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(p)}if(!_0(n.uri)){const{message:p}=B("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(p)}const h=Uh(n.uri);if(!((a=h==null?void 0:h.relay)!=null&&a.protocol)){const{message:p}=B("MISSING_OR_INVALID","pair() uri#relay-protocol");throw new Error(p)}if(!(h!=null&&h.symKey)){const{message:p}=B("MISSING_OR_INVALID","pair() uri#symKey");throw new Error(p)}},this.isValidPing=async n=>{if(!ar(n)){const{message:h}=B("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(h)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidDisconnect=async n=>{if(!ar(n)){const{message:h}=B("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(h)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async n=>{if(!fs(n,!1)){const{message:a}=B("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(a)}if(!this.pairings.keys.includes(n)){const{message:a}=B("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(a)}if(wi(this.pairings.get(n).expiry)){await this.deletePairing(n);const{message:a}=B("EXPIRED",`pairing topic: ${n}`);throw new Error(a)}},this.core=r,this.logger=cr(i,this.name),this.pairings=new Aa(this.core,this.logger,this.name,this.storagePrefix)}get context(){return or(this.logger)}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}registerRelayerEvents(){this.core.relayer.on(Kt.message,async r=>{const{topic:i,message:n}=r;if(!this.pairings.keys.includes(i)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;const a=await this.core.crypto.decode(i,n);try{Tc(a)?(this.core.history.set(i,a),this.onRelayEventRequest({topic:i,payload:a})):Ea(a)&&(await this.core.history.resolve(a),await this.onRelayEventResponse({topic:i,payload:a}),this.core.history.delete(i,a.id))}catch(h){this.logger.error(h)}})}registerExpirerEvents(){this.core.expirer.on(Pr.expired,async r=>{const{topic:i}=kl(r.target);i&&this.pairings.keys.includes(i)&&(await this.deletePairing(i,!0),this.events.emit(Fs.expire,{topic:i}))})}}class aI extends i1{constructor(r,i){super(r,i),this.core=r,this.logger=i,this.records=new Map,this.events=new qr.EventEmitter,this.name=Nb,this.version=Db,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,a,h)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:a,chainId:h}),this.records.has(a.id))return;const p={id:a.id,topic:n,request:{method:a.method,params:a.params||null},chainId:h,expiry:Dr(X.THIRTY_DAYS)};this.records.set(p.id,p),this.events.emit(kr.created,p)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;const a=await this.getRecord(n.id);typeof a.response>"u"&&(a.response=Kr(n)?{error:n.error}:{result:n.result},this.records.set(a.id,a),this.events.emit(kr.updated,a))},this.get=async(n,a)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:a}),await this.getRecord(a)),this.delete=(n,a)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:a}),this.values.forEach(h=>{if(h.topic===n){if(typeof a<"u"&&h.id!==a)return;this.records.delete(h.id),this.events.emit(kr.deleted,h)}})},this.exists=async(n,a)=>(this.isInitialized(),this.records.has(a)?(await this.getRecord(a)).topic===n:!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=cr(i,this.name)}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const r=[];return this.values.forEach(i=>{if(typeof i.response<"u")return;const n={topic:i.topic,request:gs(i.request.method,i.request.params,i.id),chainId:i.chainId};return r.push(n)}),r}async setJsonRpcRecords(r){await this.core.storage.setItem(this.storageKey,r)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(r){this.isInitialized();const i=this.records.get(r);if(!i){const{message:n}=B("NO_MATCHING_KEY",`${this.name}: ${r}`);throw new Error(n)}return i}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(kr.sync)}async restore(){try{const r=await this.getJsonRpcRecords();if(typeof r>"u"||!r.length)return;if(this.records.size){const{message:i}=B("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),new Error(i)}this.cached=r,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(r){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(r)}}registerEventListeners(){this.events.on(kr.created,r=>{const i=kr.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,record:r}),this.persist()}),this.events.on(kr.updated,r=>{const i=kr.updated;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,record:r}),this.persist()}),this.events.on(kr.deleted,r=>{const i=kr.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,record:r}),this.persist()}),this.core.heartbeat.on(vs.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(r=>{X.toMiliseconds(r.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${r.id}`),this.delete(r.topic,r.id))})}catch(r){this.logger.warn(r)}}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class oI extends u1{constructor(r,i){super(r,i),this.core=r,this.logger=i,this.expirations=new Map,this.events=new qr.EventEmitter,this.name=qb,this.version=Lb,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{const a=this.formatTarget(n);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(n,a)=>{this.isInitialized();const h=this.formatTarget(n),p={target:h,expiry:a};this.expirations.set(h,p),this.checkExpiry(h,p),this.events.emit(Pr.created,{target:h,expiration:p})},this.get=n=>{this.isInitialized();const a=this.formatTarget(n);return this.getExpiration(a)},this.del=n=>{if(this.isInitialized(),this.has(n)){const a=this.formatTarget(n),h=this.getExpiration(a);this.expirations.delete(a),this.events.emit(Pr.deleted,{target:a,expiration:h})}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=cr(i,this.name)}get context(){return or(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(r){if(typeof r=="string")return b0(r);if(typeof r=="number")return I0(r);const{message:i}=B("UNKNOWN_TYPE",`Target type: ${typeof r}`);throw new Error(i)}async setExpirations(r){await this.core.storage.setItem(this.storageKey,r)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Pr.sync)}async restore(){try{const r=await this.getExpirations();if(typeof r>"u"||!r.length)return;if(this.expirations.size){const{message:i}=B("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),new Error(i)}this.cached=r,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(r){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(r)}}getExpiration(r){const i=this.expirations.get(r);if(!i){const{message:n}=B("NO_MATCHING_KEY",`${this.name}: ${r}`);throw this.logger.error(n),new Error(n)}return i}checkExpiry(r,i){const{expiry:n}=i;X.toMiliseconds(n)-Date.now()<=0&&this.expire(r,i)}expire(r,i){this.expirations.delete(r),this.events.emit(Pr.expired,{target:r,expiration:i})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((r,i)=>this.checkExpiry(i,r))}registerEventListeners(){this.core.heartbeat.on(vs.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Pr.created,r=>{const i=Pr.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),this.persist()}),this.events.on(Pr.expired,r=>{const i=Pr.expired;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),this.persist()}),this.events.on(Pr.deleted,r=>{const i=Pr.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),this.persist()})}isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}}}class cI extends h1{constructor(r,i){super(r,i),this.projectId=r,this.logger=i,this.name=uc,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async n=>{if(this.verifyDisabled||E0()||!Kl())return;const a=this.getVerifyUrl(n==null?void 0:n.verifyUrl);this.verifyUrl!==a&&this.removeIframe(),this.verifyUrl=a;try{await this.createIframe()}catch(h){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(h)}if(!this.initialized){this.removeIframe(),this.verifyUrl=Ec;try{await this.createIframe()}catch(h){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(h),this.verifyDisabled=!0}}},this.register=async n=>{this.initialized?this.sendPost(n.attestationId):(this.addToQueue(n.attestationId),await this.init())},this.resolve=async n=>{if(this.isDevEnv)return"";const a=this.getVerifyUrl(n==null?void 0:n.verifyUrl);let h;try{h=await this.fetchAttestation(n.attestationId,a)}catch(p){this.logger.info(`failed to resolve attestation: ${n.attestationId} from url: ${a}`),this.logger.info(p),h=await this.fetchAttestation(n.attestationId,Ec)}return h},this.fetchAttestation=async(n,a)=>{this.logger.info(`resolving attestation: ${n} from url: ${a}`);const h=this.startAbortTimer(X.ONE_SECOND*2),p=await fetch(`${a}/attestation/${n}`,{signal:this.abortController.signal});return clearTimeout(h),p.status===200?await p.json():void 0},this.addToQueue=n=>{this.queue.push(n)},this.processQueue=()=>{this.queue.length!==0&&(this.queue.forEach(n=>this.sendPost(n)),this.queue=[])},this.sendPost=n=>{var a;try{if(!this.iframe)return;(a=this.iframe.contentWindow)==null||a.postMessage(n,"*"),this.logger.info(`postMessage sent: ${n} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let n;const a=h=>{h.data==="verify_ready"&&(this.initialized=!0,this.processQueue(),window.removeEventListener("message",a),n())};await Promise.race([new Promise(h=>{if(document.getElementById(uc))return h();window.addEventListener("message",a);const p=document.createElement("iframe");p.id=uc,p.src=`${this.verifyUrl}/${this.projectId}`,p.style.display="none",document.body.append(p),this.iframe=p,n=h}),new Promise((h,p)=>setTimeout(()=>{window.removeEventListener("message",a),p("verify iframe load timeout")},X.toMiliseconds(X.FIVE_SECONDS)))])},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=n=>{let a=n||ps;return zb.includes(a)||(this.logger.info(`verify url: ${a}, not included in trusted list, assigning default: ${ps}`),a=ps),a},this.logger=cr(i,this.name),this.verifyUrl=ps,this.abortController=new AbortController,this.isDevEnv=x0()&&j1.IS_VITEST}get context(){return or(this.logger)}startAbortTimer(r){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),X.toMiliseconds(r))}}class uI extends l1{constructor(r,i){super(r,i),this.projectId=r,this.logger=i,this.context=jb,this.registerDeviceToken=async n=>{const{clientId:a,token:h,notificationType:p,enableEncrypted:v=!1}=n,m=`${Mb}/${this.projectId}/clients`;await z1(m,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:a,type:p,token:h,always_raw:v})})},this.logger=cr(i,this.context)}}var hI=Object.defineProperty,Il=Object.getOwnPropertySymbols,lI=Object.prototype.hasOwnProperty,fI=Object.prototype.propertyIsEnumerable,El=(o,r,i)=>r in o?hI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,xl=(o,r)=>{for(var i in r||(r={}))lI.call(r,i)&&El(o,i,r[i]);if(Il)for(var i of Il(r))fI.call(r,i)&&El(o,i,r[i]);return o};class Dc extends r1{constructor(r){super(r),this.protocol=yf,this.version=ub,this.name=Nc,this.events=new qr.EventEmitter,this.initialized=!1,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.projectId=r==null?void 0:r.projectId,this.relayUrl=(r==null?void 0:r.relayUrl)||mf,this.customStoragePrefix=r!=null&&r.customStoragePrefix?`:${r.customStoragePrefix}`:"";const i=typeof(r==null?void 0:r.logger)<"u"&&typeof(r==null?void 0:r.logger)!="string"?r.logger:Sa(Ra({level:(r==null?void 0:r.logger)||hb.logger}));this.logger=cr(i,this.name),this.heartbeat=new vs.HeartBeat,this.crypto=new Hb(this,this.logger,r==null?void 0:r.keychain),this.history=new aI(this,this.logger),this.expirer=new oI(this,this.logger),this.storage=r!=null&&r.storage?r.storage:new Pw(xl(xl({},lb),r==null?void 0:r.storageOptions)),this.relayer=new tI({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new nI(this,this.logger),this.verify=new cI(this.projectId||"",this.logger),this.echoClient=new uI(this.projectId||"",this.logger)}static async init(r){const i=new Dc(r);await i.initialize();const n=await i.crypto.getClientId();return await i.storage.setItem(Rb,n),i}get context(){return or(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(r){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,r),this.logger.error(r.message),r}}}const pI=Dc,wf="wc",_f=2,bf="client",qc=`${wf}@${_f}:${bf}:`,lc={name:bf,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},Pl="WALLETCONNECT_DEEPLINK_CHOICE",dI="proposal",If="Proposal expired",gI="session",ha=X.SEVEN_DAYS,yI="engine",Hs={wc_sessionPropose:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1104},res:{ttl:X.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1106},res:{ttl:X.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1112},res:{ttl:X.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:X.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:X.THIRTY_SECONDS,prompt:!1,tag:1115}}},fc={min:X.FIVE_MINUTES,max:X.SEVEN_DAYS},si={idle:"IDLE",active:"ACTIVE"},vI="request",mI=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var wI=Object.defineProperty,_I=Object.defineProperties,bI=Object.getOwnPropertyDescriptors,Sl=Object.getOwnPropertySymbols,II=Object.prototype.hasOwnProperty,EI=Object.prototype.propertyIsEnumerable,Rl=(o,r,i)=>r in o?wI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,sr=(o,r)=>{for(var i in r||(r={}))II.call(r,i)&&Rl(o,i,r[i]);if(Sl)for(var i of Sl(r))EI.call(r,i)&&Rl(o,i,r[i]);return o},ks=(o,r)=>_I(o,bI(r));class xI extends p1{constructor(r){super(r),this.name=yI,this.events=new Ac,this.initialized=!1,this.ignoredPayloadTypes=[Hl],this.requestQueue={state:si.idle,queue:[]},this.sessionRequestQueue={state:si.idle,queue:[]},this.requestQueueDelay=X.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(Hs)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},X.toMiliseconds(this.requestQueueDelay)))},this.connect=async i=>{await this.isInitialized();const n=ks(sr({},i),{requiredNamespaces:i.requiredNamespaces||{},optionalNamespaces:i.optionalNamespaces||{}});await this.isValidConnect(n);const{pairingTopic:a,requiredNamespaces:h,optionalNamespaces:p,sessionProperties:v,relays:m}=n;let g=a,b,S=!1;if(g&&(S=this.client.core.pairing.pairings.get(g).active),!g||!S){const{topic:ae,uri:te}=await this.client.core.pairing.create();g=ae,b=te}const $=await this.client.core.crypto.generateKeyPair(),q=sr({requiredNamespaces:h,optionalNamespaces:p,relays:m??[{protocol:vf}],proposer:{publicKey:$,metadata:this.client.metadata}},v&&{sessionProperties:v}),{reject:A,resolve:Z,done:se}=ls(X.FIVE_MINUTES,If);if(this.events.once(St("session_connect"),async({error:ae,session:te})=>{if(ae)A(ae);else if(te){te.self.publicKey=$;const fe=ks(sr({},te),{requiredNamespaces:te.requiredNamespaces,optionalNamespaces:te.optionalNamespaces});await this.client.session.set(te.topic,fe),await this.setExpiry(te.topic,te.expiry),g&&await this.client.core.pairing.updateMetadata({topic:g,metadata:te.peer.metadata}),Z(fe)}}),!g){const{message:ae}=B("NO_MATCHING_KEY",`connect() pairing topic: ${g}`);throw new Error(ae)}const ne=await this.sendRequest({topic:g,method:"wc_sessionPropose",params:q}),ce=Dr(X.FIVE_MINUTES);return await this.setProposal(ne,sr({id:ne,expiry:ce},q)),{uri:b,approval:se}},this.pair=async i=>(await this.isInitialized(),await this.client.core.pairing.pair(i)),this.approve=async i=>{await this.isInitialized(),await this.isValidApprove(i);const{id:n,relayProtocol:a,namespaces:h,sessionProperties:p}=i,v=this.client.proposal.get(n);let{pairingTopic:m,proposer:g,requiredNamespaces:b,optionalNamespaces:S}=v;m=m||"",da(b)||(b=S0(h,"approve()"));const $=await this.client.core.crypto.generateKeyPair(),q=g.publicKey,A=await this.client.core.crypto.generateSharedKey($,q);m&&n&&(await this.client.core.pairing.updateMetadata({topic:m,metadata:g.metadata}),await this.sendResult({id:n,topic:m,result:{relay:{protocol:a??"irn"},responderPublicKey:$}}),await this.client.proposal.delete(n,kt("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:m}));const Z=sr({relay:{protocol:a??"irn"},namespaces:h,requiredNamespaces:b,optionalNamespaces:S,pairingTopic:m,controller:{publicKey:$,metadata:this.client.metadata},expiry:Dr(ha)},p&&{sessionProperties:p});await this.client.core.relayer.subscribe(A),await this.sendRequest({topic:A,method:"wc_sessionSettle",params:Z,throwOnFailedPublish:!0});const se=ks(sr({},Z),{topic:A,pairingTopic:m,acknowledged:!1,self:Z.controller,peer:{publicKey:g.publicKey,metadata:g.metadata},controller:$});return await this.client.session.set(A,se),await this.setExpiry(A,Dr(ha)),{topic:A,acknowledged:()=>new Promise(ne=>setTimeout(()=>ne(this.client.session.get(A)),500))}},this.reject=async i=>{await this.isInitialized(),await this.isValidReject(i);const{id:n,reason:a}=i,{pairingTopic:h}=this.client.proposal.get(n);h&&(await this.sendError(n,h,a),await this.client.proposal.delete(n,kt("USER_DISCONNECTED")))},this.update=async i=>{await this.isInitialized(),await this.isValidUpdate(i);const{topic:n,namespaces:a}=i,h=await this.sendRequest({topic:n,method:"wc_sessionUpdate",params:{namespaces:a}}),{done:p,resolve:v,reject:m}=ls();return this.events.once(St("session_update",h),({error:g})=>{g?m(g):v()}),await this.client.session.update(n,{namespaces:a}),{acknowledged:p}},this.extend=async i=>{await this.isInitialized(),await this.isValidExtend(i);const{topic:n}=i,a=await this.sendRequest({topic:n,method:"wc_sessionExtend",params:{}}),{done:h,resolve:p,reject:v}=ls();return this.events.once(St("session_extend",a),({error:m})=>{m?v(m):p()}),await this.setExpiry(n,Dr(ha)),{acknowledged:h}},this.request=async i=>{await this.isInitialized(),await this.isValidRequest(i);const{chainId:n,request:a,topic:h,expiry:p}=i,v=J0(),{done:m,resolve:g,reject:b}=ls(p,"Request expired. Please try again.");return this.events.once(St("session_request",v),({error:S,result:$})=>{S?b(S):g($)}),await Promise.all([new Promise(async S=>{await this.sendRequest({clientRpcId:v,topic:h,method:"wc_sessionRequest",params:{request:a,chainId:n},expiry:p,throwOnFailedPublish:!0}).catch($=>b($)),this.client.events.emit("session_request_sent",{topic:h,request:a,chainId:n,id:v}),S()}),new Promise(async S=>{const $=await R0(this.client.core.storage,Pl);O0({id:v,topic:h,wcDeepLink:$}),S()}),m()]).then(S=>S[2])},this.respond=async i=>{await this.isInitialized(),await this.isValidRespond(i);const{topic:n,response:a}=i,{id:h}=a;mi(a)?await this.sendResult({id:h,topic:n,result:a.result,throwOnFailedPublish:!0}):Kr(a)&&await this.sendError(h,n,a.error),this.cleanupAfterResponse(i)},this.ping=async i=>{await this.isInitialized(),await this.isValidPing(i);const{topic:n}=i;if(this.client.session.keys.includes(n)){const a=await this.sendRequest({topic:n,method:"wc_sessionPing",params:{}}),{done:h,resolve:p,reject:v}=ls();this.events.once(St("session_ping",a),({error:m})=>{m?v(m):p()}),await h()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async i=>{await this.isInitialized(),await this.isValidEmit(i);const{topic:n,event:a,chainId:h}=i;await this.sendRequest({topic:n,method:"wc_sessionEvent",params:{event:a,chainId:h}})},this.disconnect=async i=>{await this.isInitialized(),await this.isValidDisconnect(i);const{topic:n}=i;this.client.session.keys.includes(n)?(await this.sendRequest({topic:n,method:"wc_sessionDelete",params:kt("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=i=>(this.isInitialized(),this.client.session.getAll().filter(n=>A0(n,i))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async i=>{if(i.pairingTopic)try{const n=this.client.core.pairing.pairings.get(i.pairingTopic),a=this.client.core.pairing.pairings.getAll().filter(h=>{var p,v;return((p=h.peerMetadata)==null?void 0:p.url)&&((v=h.peerMetadata)==null?void 0:v.url)===i.peer.metadata.url&&h.topic&&h.topic!==n.topic});if(a.length===0)return;this.client.logger.info(`Cleaning up ${a.length} duplicate pairing(s)`),await Promise.all(a.map(h=>this.client.core.pairing.disconnect({topic:h.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(n){this.client.logger.error(n)}},this.deleteSession=async(i,n)=>{const{self:a}=this.client.session.get(i);await this.client.core.relayer.unsubscribe(i),this.client.session.delete(i,kt("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(a.publicKey)&&await this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.keychain.has(i)&&await this.client.core.crypto.deleteSymKey(i),n||this.client.core.expirer.del(i),this.client.core.storage.removeItem(Pl).catch(h=>this.client.logger.warn(h)),this.getPendingSessionRequests().forEach(h=>{h.topic===i&&this.deletePendingSessionRequest(h.id,kt("USER_DISCONNECTED"))})},this.deleteProposal=async(i,n)=>{await Promise.all([this.client.proposal.delete(i,kt("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(i)])},this.deletePendingSessionRequest=async(i,n,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(i,n),a?Promise.resolve():this.client.core.expirer.del(i)]),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(h=>h.id!==i),a&&(this.sessionRequestQueue.state=si.idle)},this.setExpiry=async(i,n)=>{this.client.session.keys.includes(i)&&await this.client.session.update(i,{expiry:n}),this.client.core.expirer.set(i,n)},this.setProposal=async(i,n)=>{await this.client.proposal.set(i,n),this.client.core.expirer.set(i,n.expiry)},this.setPendingSessionRequest=async i=>{const n=Hs.wc_sessionRequest.req.ttl,{id:a,topic:h,params:p,verifyContext:v}=i;await this.client.pendingRequest.set(a,{id:a,topic:h,params:p,verifyContext:v}),n&&this.client.core.expirer.set(a,Dr(n))},this.sendRequest=async i=>{const{topic:n,method:a,params:h,expiry:p,relayRpcId:v,clientRpcId:m,throwOnFailedPublish:g}=i,b=gs(a,h,m);if(Kl()&&mI.includes(a)){const q=ds(JSON.stringify(b));this.client.core.verify.register({attestationId:q})}const S=await this.client.core.crypto.encode(n,b),$=Hs[a].req;return p&&($.ttl=p),v&&($.id=v),this.client.core.history.set(n,b),g?($.internal=ks(sr({},$.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(n,S,$)):this.client.core.relayer.publish(n,S,$).catch(q=>this.client.logger.error(q)),b.id},this.sendResult=async i=>{const{id:n,topic:a,result:h,throwOnFailedPublish:p}=i,v=xa(n,h),m=await this.client.core.crypto.encode(a,v),g=await this.client.core.history.get(a,n),b=Hs[g.request.method].res;p?(b.internal=ks(sr({},b.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(a,m,b)):this.client.core.relayer.publish(a,m,b).catch(S=>this.client.logger.error(S)),await this.client.core.history.resolve(v)},this.sendError=async(i,n,a)=>{const h=Cc(i,a),p=await this.client.core.crypto.encode(n,h),v=await this.client.core.history.get(n,i),m=Hs[v.request.method].res;this.client.core.relayer.publish(n,p,m),await this.client.core.history.resolve(h)},this.cleanup=async()=>{const i=[],n=[];this.client.session.getAll().forEach(a=>{wi(a.expiry)&&i.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{wi(a.expiry)&&n.push(a.id)}),await Promise.all([...i.map(a=>this.deleteSession(a)),...n.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=async i=>{this.requestQueue.queue.push(i),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===si.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=si.active;const i=this.requestQueue.queue.shift();if(i)try{this.processRequest(i),await new Promise(n=>setTimeout(n,300))}catch(n){this.client.logger.warn(n)}}this.requestQueue.state=si.idle},this.processRequest=i=>{const{topic:n,payload:a}=i,h=a.method;switch(h){case"wc_sessionPropose":return this.onSessionProposeRequest(n,a);case"wc_sessionSettle":return this.onSessionSettleRequest(n,a);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,a);case"wc_sessionExtend":return this.onSessionExtendRequest(n,a);case"wc_sessionPing":return this.onSessionPingRequest(n,a);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,a);case"wc_sessionRequest":return this.onSessionRequest(n,a);case"wc_sessionEvent":return this.onSessionEventRequest(n,a);default:return this.client.logger.info(`Unsupported request method ${h}`)}},this.onRelayEventResponse=async i=>{const{topic:n,payload:a}=i,h=(await this.client.core.history.get(n,a.id)).request.method;switch(h){case"wc_sessionPropose":return this.onSessionProposeResponse(n,a);case"wc_sessionSettle":return this.onSessionSettleResponse(n,a);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,a);case"wc_sessionExtend":return this.onSessionExtendResponse(n,a);case"wc_sessionPing":return this.onSessionPingResponse(n,a);case"wc_sessionRequest":return this.onSessionRequestResponse(n,a);default:return this.client.logger.info(`Unsupported response method ${h}`)}},this.onRelayEventUnknownPayload=i=>{const{topic:n}=i,{message:a}=B("MISSING_OR_INVALID",`Decoded payload on topic ${n} is not identifiable as a JSON-RPC request or a response.`);throw new Error(a)},this.onSessionProposeRequest=async(i,n)=>{const{params:a,id:h}=n;try{this.isValidConnect(sr({},n.params));const p=Dr(X.FIVE_MINUTES),v=sr({id:h,pairingTopic:i,expiry:p},a);await this.setProposal(h,v);const m=ds(JSON.stringify(n)),g=await this.getVerifyContext(m,v.proposer.metadata);this.client.events.emit("session_proposal",{id:h,params:v,verifyContext:g})}catch(p){await this.sendError(h,i,p),this.client.logger.error(p)}},this.onSessionProposeResponse=async(i,n)=>{const{id:a}=n;if(mi(n)){const{result:h}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:h});const p=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:p});const v=p.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:v});const m=h.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:m});const g=await this.client.core.crypto.generateSharedKey(v,m);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:g});const b=await this.client.core.relayer.subscribe(g);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:b}),await this.client.core.pairing.activate({topic:i})}else Kr(n)&&(await this.client.proposal.delete(a,kt("USER_DISCONNECTED")),this.events.emit(St("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(i,n)=>{const{id:a,params:h}=n;try{this.isValidSessionSettleRequest(h);const{relay:p,controller:v,expiry:m,namespaces:g,requiredNamespaces:b,optionalNamespaces:S,sessionProperties:$,pairingTopic:q}=n.params,A=sr({topic:i,relay:p,expiry:m,namespaces:g,acknowledged:!0,pairingTopic:q,requiredNamespaces:b,optionalNamespaces:S,controller:v.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:v.publicKey,metadata:v.metadata}},$&&{sessionProperties:$});await this.sendResult({id:n.id,topic:i,result:!0}),this.events.emit(St("session_connect"),{session:A}),this.cleanupDuplicatePairings(A)}catch(p){await this.sendError(a,i,p),this.client.logger.error(p)}},this.onSessionSettleResponse=async(i,n)=>{const{id:a}=n;mi(n)?(await this.client.session.update(i,{acknowledged:!0}),this.events.emit(St("session_approve",a),{})):Kr(n)&&(await this.client.session.delete(i,kt("USER_DISCONNECTED")),this.events.emit(St("session_approve",a),{error:n.error}))},this.onSessionUpdateRequest=async(i,n)=>{const{params:a,id:h}=n;try{const p=`${i}_session_update`,v=aa.get(p);if(v&&this.isRequestOutOfSync(v,h)){this.client.logger.info(`Discarding out of sync request - ${h}`);return}this.isValidUpdate(sr({topic:i},a)),await this.client.session.update(i,{namespaces:a.namespaces}),await this.sendResult({id:h,topic:i,result:!0}),this.client.events.emit("session_update",{id:h,topic:i,params:a}),aa.set(p,h)}catch(p){await this.sendError(h,i,p),this.client.logger.error(p)}},this.isRequestOutOfSync=(i,n)=>parseInt(n.toString().slice(0,-3))<=parseInt(i.toString().slice(0,-3)),this.onSessionUpdateResponse=(i,n)=>{const{id:a}=n;mi(n)?this.events.emit(St("session_update",a),{}):Kr(n)&&this.events.emit(St("session_update",a),{error:n.error})},this.onSessionExtendRequest=async(i,n)=>{const{id:a}=n;try{this.isValidExtend({topic:i}),await this.setExpiry(i,Dr(ha)),await this.sendResult({id:a,topic:i,result:!0}),this.client.events.emit("session_extend",{id:a,topic:i})}catch(h){await this.sendError(a,i,h),this.client.logger.error(h)}},this.onSessionExtendResponse=(i,n)=>{const{id:a}=n;mi(n)?this.events.emit(St("session_extend",a),{}):Kr(n)&&this.events.emit(St("session_extend",a),{error:n.error})},this.onSessionPingRequest=async(i,n)=>{const{id:a}=n;try{this.isValidPing({topic:i}),await this.sendResult({id:a,topic:i,result:!0}),this.client.events.emit("session_ping",{id:a,topic:i})}catch(h){await this.sendError(a,i,h),this.client.logger.error(h)}},this.onSessionPingResponse=(i,n)=>{const{id:a}=n;setTimeout(()=>{mi(n)?this.events.emit(St("session_ping",a),{}):Kr(n)&&this.events.emit(St("session_ping",a),{error:n.error})},500)},this.onSessionDeleteRequest=async(i,n)=>{const{id:a}=n;try{this.isValidDisconnect({topic:i,reason:n.params}),await Promise.all([new Promise(h=>{this.client.core.relayer.once(Kt.publish,async()=>{h(await this.deleteSession(i))})}),this.sendResult({id:a,topic:i,result:!0})]),this.client.events.emit("session_delete",{id:a,topic:i})}catch(h){this.client.logger.error(h)}},this.onSessionRequest=async(i,n)=>{const{id:a,params:h}=n;try{this.isValidRequest(sr({topic:i},h));const p=ds(JSON.stringify(gs("wc_sessionRequest",h,a))),v=this.client.session.get(i),m=await this.getVerifyContext(p,v.peer.metadata),g={id:a,topic:i,params:h,verifyContext:m};await this.setPendingSessionRequest(g),this.addSessionRequestToSessionRequestQueue(g),this.processSessionRequestQueue()}catch(p){await this.sendError(a,i,p),this.client.logger.error(p)}},this.onSessionRequestResponse=(i,n)=>{const{id:a}=n;mi(n)?this.events.emit(St("session_request",a),{result:n.result}):Kr(n)&&this.events.emit(St("session_request",a),{error:n.error})},this.onSessionEventRequest=async(i,n)=>{const{id:a,params:h}=n;try{const p=`${i}_session_event_${h.event.name}`,v=aa.get(p);if(v&&this.isRequestOutOfSync(v,a)){this.client.logger.info(`Discarding out of sync request - ${a}`);return}this.isValidEmit(sr({topic:i},h)),this.client.events.emit("session_event",{id:a,topic:i,params:h}),aa.set(p,a)}catch(p){await this.sendError(a,i,p),this.client.logger.error(p)}},this.addSessionRequestToSessionRequestQueue=i=>{this.sessionRequestQueue.queue.push(i)},this.cleanupAfterResponse=i=>{this.deletePendingSessionRequest(i.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=si.idle,this.processSessionRequestQueue()},X.toMiliseconds(this.requestQueueDelay))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===si.active){this.client.logger.info("session request queue is already active.");return}const i=this.sessionRequestQueue.queue[0];if(!i){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=si.active,this.client.events.emit("session_request",i)}catch(n){this.client.logger.error(n)}},this.onPairingCreated=i=>{if(i.active)return;const n=this.client.proposal.getAll().find(a=>a.pairingTopic===i.topic);n&&this.onSessionProposeRequest(i.topic,gs("wc_sessionPropose",{requiredNamespaces:n.requiredNamespaces,optionalNamespaces:n.optionalNamespaces,relays:n.relays,proposer:n.proposer,sessionProperties:n.sessionProperties},n.id))},this.isValidConnect=async i=>{if(!ar(i)){const{message:m}=B("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(i)}`);throw new Error(m)}const{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:h,sessionProperties:p,relays:v}=i;if(_i(n)||await this.isValidPairingTopic(n),!C0(v)){const{message:m}=B("MISSING_OR_INVALID",`connect() relays: ${v}`);throw new Error(m)}!_i(a)&&da(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!_i(h)&&da(h)!==0&&this.validateNamespaces(h,"optionalNamespaces"),_i(p)||this.validateSessionProps(p,"sessionProperties")},this.validateNamespaces=(i,n)=>{const a=T0(i,"connect()",n);if(a)throw new Error(a.message)},this.isValidApprove=async i=>{if(!ar(i))throw new Error(B("MISSING_OR_INVALID",`approve() params: ${i}`).message);const{id:n,namespaces:a,relayProtocol:h,sessionProperties:p}=i;await this.isValidProposalId(n);const v=this.client.proposal.get(n),m=tc(a,"approve()");if(m)throw new Error(m.message);const g=Hh(v.requiredNamespaces,a,"approve()");if(g)throw new Error(g.message);if(!fs(h,!0)){const{message:b}=B("MISSING_OR_INVALID",`approve() relayProtocol: ${h}`);throw new Error(b)}_i(p)||this.validateSessionProps(p,"sessionProperties")},this.isValidReject=async i=>{if(!ar(i)){const{message:h}=B("MISSING_OR_INVALID",`reject() params: ${i}`);throw new Error(h)}const{id:n,reason:a}=i;if(await this.isValidProposalId(n),!$0(a)){const{message:h}=B("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(h)}},this.isValidSessionSettleRequest=i=>{if(!ar(i)){const{message:g}=B("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${i}`);throw new Error(g)}const{relay:n,controller:a,namespaces:h,expiry:p}=i;if(!N0(n)){const{message:g}=B("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(g)}const v=D0(a,"onSessionSettleRequest()");if(v)throw new Error(v.message);const m=tc(h,"onSessionSettleRequest()");if(m)throw new Error(m.message);if(wi(p)){const{message:g}=B("EXPIRED","onSessionSettleRequest()");throw new Error(g)}},this.isValidUpdate=async i=>{if(!ar(i)){const{message:m}=B("MISSING_OR_INVALID",`update() params: ${i}`);throw new Error(m)}const{topic:n,namespaces:a}=i;await this.isValidSessionTopic(n);const h=this.client.session.get(n),p=tc(a,"update()");if(p)throw new Error(p.message);const v=Hh(h.requiredNamespaces,a,"update()");if(v)throw new Error(v.message)},this.isValidExtend=async i=>{if(!ar(i)){const{message:a}=B("MISSING_OR_INVALID",`extend() params: ${i}`);throw new Error(a)}const{topic:n}=i;await this.isValidSessionTopic(n)},this.isValidRequest=async i=>{if(!ar(i)){const{message:m}=B("MISSING_OR_INVALID",`request() params: ${i}`);throw new Error(m)}const{topic:n,request:a,chainId:h,expiry:p}=i;await this.isValidSessionTopic(n);const{namespaces:v}=this.client.session.get(n);if(!kh(v,h)){const{message:m}=B("MISSING_OR_INVALID",`request() chainId: ${h}`);throw new Error(m)}if(!q0(a)){const{message:m}=B("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(m)}if(!L0(v,h,a.method)){const{message:m}=B("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(m)}if(p&&!z0(p,fc)){const{message:m}=B("MISSING_OR_INVALID",`request() expiry: ${p}. Expiry must be a number (in seconds) between ${fc.min} and ${fc.max}`);throw new Error(m)}},this.isValidRespond=async i=>{var n;if(!ar(i)){const{message:p}=B("MISSING_OR_INVALID",`respond() params: ${i}`);throw new Error(p)}const{topic:a,response:h}=i;try{await this.isValidSessionTopic(a)}catch(p){throw(n=i==null?void 0:i.response)!=null&&n.id&&this.cleanupAfterResponse(i),p}if(!j0(h)){const{message:p}=B("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(h)}`);throw new Error(p)}},this.isValidPing=async i=>{if(!ar(i)){const{message:a}=B("MISSING_OR_INVALID",`ping() params: ${i}`);throw new Error(a)}const{topic:n}=i;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async i=>{if(!ar(i)){const{message:v}=B("MISSING_OR_INVALID",`emit() params: ${i}`);throw new Error(v)}const{topic:n,event:a,chainId:h}=i;await this.isValidSessionTopic(n);const{namespaces:p}=this.client.session.get(n);if(!kh(p,h)){const{message:v}=B("MISSING_OR_INVALID",`emit() chainId: ${h}`);throw new Error(v)}if(!M0(a)){const{message:v}=B("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(v)}if(!U0(p,h,a.name)){const{message:v}=B("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(v)}},this.isValidDisconnect=async i=>{if(!ar(i)){const{message:a}=B("MISSING_OR_INVALID",`disconnect() params: ${i}`);throw new Error(a)}const{topic:n}=i;await this.isValidSessionOrPairingTopic(n)},this.getVerifyContext=async(i,n)=>{const a={verified:{verifyUrl:n.verifyUrl||ps,validation:"UNKNOWN",origin:n.url||""}};try{const h=await this.client.core.verify.resolve({attestationId:i,verifyUrl:n.verifyUrl});h&&(a.verified.origin=h.origin,a.verified.isScam=h.isScam,a.verified.validation=h.origin===new URL(n.url).origin?"VALID":"INVALID")}catch(h){this.client.logger.info(h)}return this.client.logger.info(`Verify context: ${JSON.stringify(a)}`),a},this.validateSessionProps=(i,n)=>{Object.values(i).forEach(a=>{if(!fs(a,!1)){const{message:h}=B("MISSING_OR_INVALID",`${n} must be in Record format. Received: ${JSON.stringify(a)}`);throw new Error(h)}})}}async isInitialized(){if(!this.initialized){const{message:r}=B("NOT_INITIALIZED",this.name);throw new Error(r)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(Kt.message,async r=>{const{topic:i,message:n}=r;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;const a=await this.client.core.crypto.decode(i,n);try{Tc(a)?(this.client.core.history.set(i,a),this.onRelayEventRequest({topic:i,payload:a})):Ea(a)?(await this.client.core.history.resolve(a),await this.onRelayEventResponse({topic:i,payload:a}),this.client.core.history.delete(i,a.id)):this.onRelayEventUnknownPayload({topic:i,payload:a})}catch(h){this.client.logger.error(h)}})}registerExpirerEvents(){this.client.core.expirer.on(Pr.expired,async r=>{const{topic:i,id:n}=kl(r.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,B("EXPIRED"),!0);i?this.client.session.keys.includes(i)&&(await this.deleteSession(i,!0),this.client.events.emit("session_expire",{topic:i})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}registerPairingEvents(){this.client.core.pairing.events.on(Fs.create,r=>this.onPairingCreated(r))}isValidPairingTopic(r){if(!fs(r,!1)){const{message:i}=B("MISSING_OR_INVALID",`pairing topic should be a string: ${r}`);throw new Error(i)}if(!this.client.core.pairing.pairings.keys.includes(r)){const{message:i}=B("NO_MATCHING_KEY",`pairing topic doesn't exist: ${r}`);throw new Error(i)}if(wi(this.client.core.pairing.pairings.get(r).expiry)){const{message:i}=B("EXPIRED",`pairing topic: ${r}`);throw new Error(i)}}async isValidSessionTopic(r){if(!fs(r,!1)){const{message:i}=B("MISSING_OR_INVALID",`session topic should be a string: ${r}`);throw new Error(i)}if(!this.client.session.keys.includes(r)){const{message:i}=B("NO_MATCHING_KEY",`session topic doesn't exist: ${r}`);throw new Error(i)}if(wi(this.client.session.get(r).expiry)){await this.deleteSession(r);const{message:i}=B("EXPIRED",`session topic: ${r}`);throw new Error(i)}}async isValidSessionOrPairingTopic(r){if(this.client.session.keys.includes(r))await this.isValidSessionTopic(r);else if(this.client.core.pairing.pairings.keys.includes(r))this.isValidPairingTopic(r);else if(fs(r,!1)){const{message:i}=B("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${r}`);throw new Error(i)}else{const{message:i}=B("MISSING_OR_INVALID",`session or pairing topic should be a string: ${r}`);throw new Error(i)}}async isValidProposalId(r){if(!H0(r)){const{message:i}=B("MISSING_OR_INVALID",`proposal id should be a number: ${r}`);throw new Error(i)}if(!this.client.proposal.keys.includes(r)){const{message:i}=B("NO_MATCHING_KEY",`proposal id doesn't exist: ${r}`);throw new Error(i)}if(wi(this.client.proposal.get(r).expiry)){await this.deleteProposal(r);const{message:i}=B("EXPIRED",`proposal id: ${r}`);throw new Error(i)}}}class PI extends Aa{constructor(r,i){super(r,i,dI,qc),this.core=r,this.logger=i}}class SI extends Aa{constructor(r,i){super(r,i,gI,qc),this.core=r,this.logger=i}}class RI extends Aa{constructor(r,i){super(r,i,vI,qc,n=>n.id),this.core=r,this.logger=i}}let OI=class Ef extends f1{constructor(r){super(r),this.protocol=wf,this.version=_f,this.name=lc.name,this.events=new qr.EventEmitter,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(a){throw this.logger.error(a.message),a}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(a){throw this.logger.error(a.message),a}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(a){throw this.logger.error(a.message),a}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(a){throw this.logger.error(a.message),a}},this.update=async n=>{try{return await this.engine.update(n)}catch(a){throw this.logger.error(a.message),a}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(a){throw this.logger.error(a.message),a}},this.request=async n=>{try{return await this.engine.request(n)}catch(a){throw this.logger.error(a.message),a}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(a){throw this.logger.error(a.message),a}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(a){throw this.logger.error(a.message),a}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(a){throw this.logger.error(a.message),a}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(a){throw this.logger.error(a.message),a}},this.find=n=>{try{return this.engine.find(n)}catch(a){throw this.logger.error(a.message),a}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=(r==null?void 0:r.name)||lc.name,this.metadata=(r==null?void 0:r.metadata)||P0();const i=typeof(r==null?void 0:r.logger)<"u"&&typeof(r==null?void 0:r.logger)!="string"?r.logger:Sa(Ra({level:(r==null?void 0:r.logger)||lc.logger}));this.core=(r==null?void 0:r.core)||new pI(r),this.logger=cr(i,this.name),this.session=new SI(this.core,this.logger),this.proposal=new PI(this.core,this.logger),this.pendingRequest=new RI(this.core,this.logger),this.engine=new xI(this)}static async init(r){const i=new Ef(r);return await i.initialize(),i}get context(){return or(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(r){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(r.message),r}}};const Ol="error",AI="wss://relay.walletconnect.com",CI="wc",TI="universal_provider",Al=`${CI}@2:${TI}:`,$I="https://rpc.walletconnect.com/v1/",ai={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var Ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xc={exports:{}};/** -* @license -* Lodash -* Copyright OpenJS Foundation and other contributors -* Released under MIT license -* Based on Underscore.js 1.8.3 -* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors -*/(function(o,r){(function(){var i,n="4.17.21",a=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",v="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",g=500,b="__lodash_placeholder__",S=1,$=2,q=4,A=1,Z=2,se=1,ne=2,ce=4,ae=8,te=16,fe=32,pe=64,Q=128,xe=256,Tt=512,yt=30,Yt="...",Vt=800,ur=16,M=1,U=2,Ge=3,qe=1/0,G=9007199254740991,K=17976931348623157e292,H=NaN,V=4294967295,Rt=V-1,rt=V>>>1,xi=[["ary",Q],["bind",se],["bindKey",ne],["curry",ae],["curryRight",te],["flip",Tt],["partial",fe],["partialRight",pe],["rearg",xe]],we="[object Arguments]",Sr="[object Array]",T="[object AsyncFunction]",C="[object Boolean]",R="[object Date]",u="[object DOMException]",I="[object Error]",J="[object Function]",oe="[object GeneratorFunction]",ge="[object Map]",Pe="[object Number]",Re="[object Null]",_e="[object Object]",vt="[object Promise]",lt="[object Proxy]",Ze="[object RegExp]",Ae="[object Set]",ke="[object String]",Ke="[object Symbol]",Xe="[object Undefined]",Ne="[object WeakMap]",Ve="[object WeakSet]",Se="[object ArrayBuffer]",Le="[object DataView]",it="[object Float32Array]",Te="[object Float64Array]",mt="[object Int8Array]",Ot="[object Int16Array]",Lt="[object Int32Array]",zt="[object Uint8Array]",$t="[object Uint8ClampedArray]",Ft="[object Uint16Array]",Zt="[object Uint32Array]",Lr=/\b__p \+= '';/g,Bt=/\b(__p \+=) '' \+/g,Fr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oi=/&(?:amp|lt|gt|quot|#39);/g,Pi=/[&<>"']/g,st=RegExp(oi.source),We=RegExp(Pi.source),nt=/<%-([\s\S]+?)%>/g,at=/<%([\s\S]+?)%>/g,et=/<%=([\s\S]+?)%>/g,Je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wt=/^\w*$/,_t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ot=/[\\^$.*+?()[\]{}|]/g,bt=RegExp(ot.source),ct=/^\s+/,ft=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,He=/\{\n\/\* \[wrapped with (.+)\] \*/,It=/,? & /,Et=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ca=/[()=,{}\[\]\/\s]/,Ta=/\\(\\)?/g,$a=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yr=/\w*$/,Na=/^[-+]0x[0-9a-f]+$/i,Da=/^0b[01]+$/i,qa=/^\[object .+?Constructor\]$/,La=/^0o[0-7]+$/i,za=/^(?:0|[1-9]\d*)$/,Br=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ki=/($^)/,ja=/['\n\r\u2028\u2029\\]/g,Vi="\\ud800-\\udfff",Ma="\\u0300-\\u036f",Ua="\\ufe20-\\ufe2f",Fi="\\u20d0-\\u20ff",en=Ma+Ua+Fi,tn="\\u2700-\\u27bf",Rr="a-z\\xdf-\\xf6\\xf8-\\xff",Ha="\\xac\\xb1\\xd7\\xf7",ka="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ka="\\u2000-\\u206f",Va=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rn="A-Z\\xc0-\\xd6\\xd8-\\xde",sn="\\ufe0e\\ufe0f",Si=Ha+ka+Ka+Va,ms="['’]",Ri="["+Vi+"]",ws="["+Si+"]",Oi="["+en+"]",nn="\\d+",Fa="["+tn+"]",an="["+Rr+"]",on="[^"+Vi+Si+nn+tn+Rr+rn+"]",Bi="\\ud83c[\\udffb-\\udfff]",Ba="(?:"+Oi+"|"+Bi+")",cn="[^"+Vi+"]",Gi="(?:\\ud83c[\\udde6-\\uddff]){2}",ci="[\\ud800-\\udbff][\\udc00-\\udfff]",hr="["+rn+"]",un="\\u200d",hn="(?:"+an+"|"+on+")",zr="(?:"+hr+"|"+on+")",ln="(?:"+ms+"(?:d|ll|m|re|s|t|ve))?",fn="(?:"+ms+"(?:D|LL|M|RE|S|T|VE))?",pn=Ba+"?",dn="["+sn+"]?",Ga="(?:"+un+"(?:"+[cn,Gi,ci].join("|")+")"+dn+pn+")*",Gr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yn=dn+pn+Ga,Wi="(?:"+[Fa,Gi,ci].join("|")+")"+yn,Wa="(?:"+[cn+Oi+"?",Oi,Gi,ci,Ri].join("|")+")",_s=RegExp(ms,"g"),Ja=RegExp(Oi,"g"),Ji=RegExp(Bi+"(?="+Bi+")|"+Wa+yn,"g"),vn=RegExp([hr+"?"+an+"+"+ln+"(?="+[ws,hr,"$"].join("|")+")",zr+"+"+fn+"(?="+[ws,hr+hn,"$"].join("|")+")",hr+"?"+hn+"+"+ln,hr+"+"+fn,gn,Gr,nn,Wi].join("|"),"g"),mn=RegExp("["+un+Vi+en+sn+"]"),Ai=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Qa=-1,ze={};ze[it]=ze[Te]=ze[mt]=ze[Ot]=ze[Lt]=ze[zt]=ze[$t]=ze[Ft]=ze[Zt]=!0,ze[we]=ze[Sr]=ze[Se]=ze[C]=ze[Le]=ze[R]=ze[I]=ze[J]=ze[ge]=ze[Pe]=ze[_e]=ze[Ze]=ze[Ae]=ze[ke]=ze[Ne]=!1;var De={};De[we]=De[Sr]=De[Se]=De[Le]=De[C]=De[R]=De[it]=De[Te]=De[mt]=De[Ot]=De[Lt]=De[ge]=De[Pe]=De[_e]=De[Ze]=De[Ae]=De[ke]=De[Ke]=De[zt]=De[$t]=De[Ft]=De[Zt]=!0,De[I]=De[J]=De[Ne]=!1;var y={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},E={"&":"&","<":"<",">":">",'"':""","'":"'"},z={"&":"&","<":"<",">":">",""":'"',"'":"'"},F={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},je=parseFloat,he=parseInt,Fe=typeof Ks=="object"&&Ks&&Ks.Object===Object&&Ks,xt=typeof self=="object"&&self&&self.Object===Object&&self,Ie=Fe||xt||Function("return this")(),Me=r&&!r.nodeType&&r,pt=Me&&!0&&o&&!o.nodeType&&o,Xt=pt&&pt.exports===Me,Pt=Xt&&Fe.process,Be=function(){try{var x=pt&&pt.require&&pt.require("util").types;return x||Pt&&Pt.binding&&Pt.binding("util")}catch{}}(),Gt=Be&&Be.isArrayBuffer,Or=Be&&Be.isDate,vr=Be&&Be.isMap,jr=Be&&Be.isRegExp,bs=Be&&Be.isSet,Ci=Be&&Be.isTypedArray;function Nt(x,N,O){switch(O.length){case 0:return x.call(N);case 1:return x.call(N,O[0]);case 2:return x.call(N,O[0],O[1]);case 3:return x.call(N,O[0],O[1],O[2])}return x.apply(N,O)}function Sf(x,N,O,W){for(var ue=-1,Oe=x==null?0:x.length;++ue-1}function Ya(x,N,O){for(var W=-1,ue=x==null?0:x.length;++W-1;);return O}function Fc(x,N){for(var O=x.length;O--&&Qi(N,x[O],0)>-1;);return O}function qf(x,N){for(var O=x.length,W=0;O--;)x[O]===N&&++W;return W}var Lf=to(y),zf=to(E);function jf(x){return"\\"+F[x]}function Mf(x,N){return x==null?i:x[N]}function Yi(x){return mn.test(x)}function Uf(x){return Ai.test(x)}function Hf(x){for(var N,O=[];!(N=x.next()).done;)O.push(N.value);return O}function no(x){var N=-1,O=Array(x.size);return x.forEach(function(W,ue){O[++N]=[ue,W]}),O}function Bc(x,N){return function(O){return x(N(O))}}function li(x,N){for(var O=-1,W=x.length,ue=0,Oe=[];++O-1}function Op(e,t){var s=this.__data__,c=zn(s,e);return c<0?(++this.size,s.push([e,t])):s[c][1]=t,this}Wr.prototype.clear=xp,Wr.prototype.delete=Pp,Wr.prototype.get=Sp,Wr.prototype.has=Rp,Wr.prototype.set=Op;function Jr(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function br(e,t,s,c,l,d){var w,_=t&S,P=t&$,D=t&q;if(s&&(w=l?s(e,c,l,d):s(e)),w!==i)return w;if(!tt(e))return e;var L=le(e);if(L){if(w=$d(e),!_)return er(e,w)}else{var j=Ht(e),k=j==J||j==oe;if(vi(e))return Ou(e,_);if(j==_e||j==we||k&&!l){if(w=P||k?{}:Gu(e),!_)return P?bd(e,Vp(w,e)):_d(e,su(w,e))}else{if(!De[j])return l?e:{};w=Nd(e,j,_)}}d||(d=new Cr);var Y=d.get(e);if(Y)return Y;d.set(e,w),Ih(e)?e.forEach(function(ie){w.add(br(ie,t,s,ie,e,d))}):_h(e)&&e.forEach(function(ie,me){w.set(me,br(ie,t,s,me,e,d))});var re=D?P?$o:To:P?rr:Dt,ye=L?i:re(e);return mr(ye||e,function(ie,me){ye&&(me=ie,ie=e[me]),Os(w,me,br(ie,t,s,me,e,d))}),w}function Fp(e){var t=Dt(e);return function(s){return nu(s,e,t)}}function nu(e,t,s){var c=s.length;if(e==null)return!c;for(e=Ue(e);c--;){var l=s[c],d=t[l],w=e[l];if(w===i&&!(l in e)||!d(w))return!1}return!0}function au(e,t,s){if(typeof e!="function")throw new wr(p);return qs(function(){e.apply(i,s)},t)}function As(e,t,s,c){var l=-1,d=_n,w=!0,_=e.length,P=[],D=t.length;if(!_)return P;s&&(t=Qe(t,lr(s))),c?(d=Ya,w=!1):t.length>=a&&(d=Is,w=!1,t=new Ni(t));e:for(;++l<_;){var L=e[l],j=s==null?L:s(L);if(L=c||L!==0?L:0,w&&j===j){for(var k=D;k--;)if(t[k]===j)continue e;P.push(L)}else d(t,j,c)||P.push(L)}return P}var pi=Nu(Mr),ou=Nu(po,!0);function Bp(e,t){var s=!0;return pi(e,function(c,l,d){return s=!!t(c,l,d),s}),s}function jn(e,t,s){for(var c=-1,l=e.length;++cl?0:l+s),c=c===i||c>l?l:de(c),c<0&&(c+=l),c=s>c?0:xh(c);s0&&s(_)?t>1?jt(_,t-1,s,c,l):hi(l,_):c||(l[l.length]=_)}return l}var fo=Du(),uu=Du(!0);function Mr(e,t){return e&&fo(e,t,Dt)}function po(e,t){return e&&uu(e,t,Dt)}function Mn(e,t){return ui(t,function(s){return ei(e[s])})}function qi(e,t){t=gi(t,e);for(var s=0,c=t.length;e!=null&&st}function Wp(e,t){return e!=null&&$e.call(e,t)}function Jp(e,t){return e!=null&&t in Ue(e)}function Qp(e,t,s){return e>=Ut(t,s)&&e=120&&L.length>=120)?new Ni(w&&L):i}L=e[0];var j=-1,k=_[0];e:for(;++j-1;)_!==e&&Cn.call(_,P,1),Cn.call(e,P,1);return e}function _u(e,t){for(var s=e?t.length:0,c=s-1;s--;){var l=t[s];if(s==c||l!==d){var d=l;Xr(l)?Cn.call(e,l,1):xo(e,l)}}return e}function bo(e,t){return e+Nn(eu()*(t-e+1))}function ud(e,t,s,c){for(var l=-1,d=Ct($n((t-e)/(s||1)),0),w=O(d);d--;)w[c?d:++l]=e,e+=s;return w}function Io(e,t){var s="";if(!e||t<1||t>G)return s;do t%2&&(s+=e),t=Nn(t/2),t&&(e+=e);while(t);return s}function ve(e,t){return Mo(Qu(e,t,ir),e+"")}function hd(e){return iu(cs(e))}function ld(e,t){var s=cs(e);return Qn(s,Di(t,0,s.length))}function $s(e,t,s,c){if(!tt(e))return e;t=gi(t,e);for(var l=-1,d=t.length,w=d-1,_=e;_!=null&&++ll?0:l+t),s=s>l?l:s,s<0&&(s+=l),l=t>s?0:s-t>>>0,t>>>=0;for(var d=O(l);++c>>1,w=e[d];w!==null&&!pr(w)&&(s?w<=t:w=a){var D=t?null:Pd(e);if(D)return In(D);w=!1,l=Is,P=new Ni}else P=t?[]:_;e:for(;++c=c?e:Ir(e,t,s)}var Ru=rp||function(e){return Ie.clearTimeout(e)};function Ou(e,t){if(t)return e.slice();var s=e.length,c=Jc?Jc(s):new e.constructor(s);return e.copy(c),c}function Oo(e){var t=new e.constructor(e.byteLength);return new On(t).set(new On(e)),t}function yd(e,t){var s=t?Oo(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function vd(e){var t=new e.constructor(e.source,yr.exec(e));return t.lastIndex=e.lastIndex,t}function md(e){return Rs?Ue(Rs.call(e)):{}}function Au(e,t){var s=t?Oo(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function Cu(e,t){if(e!==t){var s=e!==i,c=e===null,l=e===e,d=pr(e),w=t!==i,_=t===null,P=t===t,D=pr(t);if(!_&&!D&&!d&&e>t||d&&w&&P&&!_&&!D||c&&w&&P||!s&&P||!l)return 1;if(!c&&!d&&!D&&e=_)return P;var D=s[c];return P*(D=="desc"?-1:1)}}return e.index-t.index}function Tu(e,t,s,c){for(var l=-1,d=e.length,w=s.length,_=-1,P=t.length,D=Ct(d-w,0),L=O(P+D),j=!c;++_1?s[l-1]:i,w=l>2?s[2]:i;for(d=e.length>3&&typeof d=="function"?(l--,d):i,w&&Jt(s[0],s[1],w)&&(d=l<3?i:d,l=1),t=Ue(t);++c-1?l[d?t[w]:w]:i}}function zu(e){return Zr(function(t){var s=t.length,c=s,l=_r.prototype.thru;for(e&&t.reverse();c--;){var d=t[c];if(typeof d!="function")throw new wr(p);if(l&&!w&&Wn(d)=="wrapper")var w=new _r([],!0)}for(c=w?c:s;++c1&&Ee.reverse(),L&&P_))return!1;var D=d.get(e),L=d.get(t);if(D&&L)return D==t&&L==e;var j=-1,k=!0,Y=s&Z?new Ni:i;for(d.set(e,t),d.set(t,e);++j<_;){var re=e[j],ye=t[j];if(c)var ie=w?c(ye,re,j,t,e,d):c(re,ye,j,e,t,d);if(ie!==i){if(ie)continue;k=!1;break}if(Y){if(!Xa(t,function(me,Ee){if(!Is(Y,Ee)&&(re===me||l(re,me,s,c,d)))return Y.push(Ee)})){k=!1;break}}else if(!(re===ye||l(re,ye,s,c,d))){k=!1;break}}return d.delete(e),d.delete(t),k}function Rd(e,t,s,c,l,d,w){switch(s){case Le:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Se:return!(e.byteLength!=t.byteLength||!d(new On(e),new On(t)));case C:case R:case Pe:return Tr(+e,+t);case I:return e.name==t.name&&e.message==t.message;case Ze:case ke:return e==t+"";case ge:var _=no;case Ae:var P=c&A;if(_||(_=In),e.size!=t.size&&!P)return!1;var D=w.get(e);if(D)return D==t;c|=Z,w.set(e,t);var L=Vu(_(e),_(t),c,l,d,w);return w.delete(e),L;case Ke:if(Rs)return Rs.call(e)==Rs.call(t)}return!1}function Od(e,t,s,c,l,d){var w=s&A,_=To(e),P=_.length,D=To(t),L=D.length;if(P!=L&&!w)return!1;for(var j=P;j--;){var k=_[j];if(!(w?k in t:$e.call(t,k)))return!1}var Y=d.get(e),re=d.get(t);if(Y&&re)return Y==t&&re==e;var ye=!0;d.set(e,t),d.set(t,e);for(var ie=w;++j1?"& ":"")+t[c],t=t.join(s>2?", ":" "),e.replace(ut,`{ -/* [wrapped with `+t+`] */ -`)}function qd(e){return le(e)||ji(e)||!!(Zc&&e&&e[Zc])}function Xr(e,t){var s=typeof e;return t=t??G,!!t&&(s=="number"||s!="symbol"&&za.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Vt)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var s=-1,c=e.length,l=c-1;for(t=t===i?c:t;++s1?e[t-1]:i;return s=typeof s=="function"?(e.pop(),s):i,ch(e,s)});function uh(e){var t=f(e);return t.__chain__=!0,t}function Bg(e,t){return t(e),e}function Yn(e,t){return t(e)}var Gg=Zr(function(e){var t=e.length,s=t?e[0]:0,c=this.__wrapped__,l=function(d){return lo(d,e)};return t>1||this.__actions__.length||!(c instanceof be)||!Xr(s)?this.thru(l):(c=c.slice(s,+s+(t?1:0)),c.__actions__.push({func:Yn,args:[l],thisArg:i}),new _r(c,this.__chain__).thru(function(d){return t&&!d.length&&d.push(i),d}))});function Wg(){return uh(this)}function Jg(){return new _r(this.value(),this.__chain__)}function Qg(){this.__values__===i&&(this.__values__=Eh(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Yg(){return this}function Zg(e){for(var t,s=this;s instanceof Ln;){var c=rh(s);c.__index__=0,c.__values__=i,t?l.__wrapped__=c:t=c;var l=c;s=s.__wrapped__}return l.__wrapped__=e,t}function Xg(){var e=this.__wrapped__;if(e instanceof be){var t=e;return this.__actions__.length&&(t=new be(this)),t=t.reverse(),t.__actions__.push({func:Yn,args:[Uo],thisArg:i}),new _r(t,this.__chain__)}return this.thru(Uo)}function ey(){return Pu(this.__wrapped__,this.__actions__)}var ty=Kn(function(e,t,s){$e.call(e,s)?++e[s]:Qr(e,s,1)});function ry(e,t,s){var c=le(e)?jc:Bp;return s&&Jt(e,t,s)&&(t=i),c(e,ee(t,3))}function iy(e,t){var s=le(e)?ui:cu;return s(e,ee(t,3))}var sy=Lu(ih),ny=Lu(sh);function ay(e,t){return jt(Zn(e,t),1)}function oy(e,t){return jt(Zn(e,t),qe)}function cy(e,t,s){return s=s===i?1:de(s),jt(Zn(e,t),s)}function hh(e,t){var s=le(e)?mr:pi;return s(e,ee(t,3))}function lh(e,t){var s=le(e)?Rf:ou;return s(e,ee(t,3))}var uy=Kn(function(e,t,s){$e.call(e,s)?e[s].push(t):Qr(e,s,[t])});function hy(e,t,s,c){e=tr(e)?e:cs(e),s=s&&!c?de(s):0;var l=e.length;return s<0&&(s=Ct(l+s,0)),ia(e)?s<=l&&e.indexOf(t,s)>-1:!!l&&Qi(e,t,s)>-1}var ly=ve(function(e,t,s){var c=-1,l=typeof t=="function",d=tr(e)?O(e.length):[];return pi(e,function(w){d[++c]=l?Nt(t,w,s):Cs(w,t,s)}),d}),fy=Kn(function(e,t,s){Qr(e,s,t)});function Zn(e,t){var s=le(e)?Qe:du;return s(e,ee(t,3))}function py(e,t,s,c){return e==null?[]:(le(t)||(t=t==null?[]:[t]),s=c?i:s,le(s)||(s=s==null?[]:[s]),mu(e,t,s))}var dy=Kn(function(e,t,s){e[s?0:1].push(t)},function(){return[[],[]]});function gy(e,t,s){var c=le(e)?Za:kc,l=arguments.length<3;return c(e,ee(t,4),s,l,pi)}function yy(e,t,s){var c=le(e)?Of:kc,l=arguments.length<3;return c(e,ee(t,4),s,l,ou)}function vy(e,t){var s=le(e)?ui:cu;return s(e,ta(ee(t,3)))}function my(e){var t=le(e)?iu:hd;return t(e)}function wy(e,t,s){(s?Jt(e,t,s):t===i)?t=1:t=de(t);var c=le(e)?Hp:ld;return c(e,t)}function _y(e){var t=le(e)?kp:pd;return t(e)}function by(e){if(e==null)return 0;if(tr(e))return ia(e)?Zi(e):e.length;var t=Ht(e);return t==ge||t==Ae?e.size:mo(e).length}function Iy(e,t,s){var c=le(e)?Xa:dd;return s&&Jt(e,t,s)&&(t=i),c(e,ee(t,3))}var Ey=ve(function(e,t){if(e==null)return[];var s=t.length;return s>1&&Jt(e,t[0],t[1])?t=[]:s>2&&Jt(t[0],t[1],t[2])&&(t=[t[0]]),mu(e,jt(t,1),[])}),Xn=ip||function(){return Ie.Date.now()};function xy(e,t){if(typeof t!="function")throw new wr(p);return e=de(e),function(){if(--e<1)return t.apply(this,arguments)}}function fh(e,t,s){return t=s?i:t,t=e&&t==null?e.length:t,Yr(e,Q,i,i,i,i,t)}function ph(e,t){var s;if(typeof t!="function")throw new wr(p);return e=de(e),function(){return--e>0&&(s=t.apply(this,arguments)),e<=1&&(t=i),s}}var ko=ve(function(e,t,s){var c=se;if(s.length){var l=li(s,as(ko));c|=fe}return Yr(e,c,t,s,l)}),dh=ve(function(e,t,s){var c=se|ne;if(s.length){var l=li(s,as(dh));c|=fe}return Yr(t,c,e,s,l)});function gh(e,t,s){t=s?i:t;var c=Yr(e,ae,i,i,i,i,i,t);return c.placeholder=gh.placeholder,c}function yh(e,t,s){t=s?i:t;var c=Yr(e,te,i,i,i,i,i,t);return c.placeholder=yh.placeholder,c}function vh(e,t,s){var c,l,d,w,_,P,D=0,L=!1,j=!1,k=!0;if(typeof e!="function")throw new wr(p);t=xr(t)||0,tt(s)&&(L=!!s.leading,j="maxWait"in s,d=j?Ct(xr(s.maxWait)||0,t):d,k="trailing"in s?!!s.trailing:k);function Y(gt){var $r=c,ri=l;return c=l=i,D=gt,w=e.apply(ri,$r),w}function re(gt){return D=gt,_=qs(me,t),L?Y(gt):w}function ye(gt){var $r=gt-P,ri=gt-D,Lh=t-$r;return j?Ut(Lh,d-ri):Lh}function ie(gt){var $r=gt-P,ri=gt-D;return P===i||$r>=t||$r<0||j&&ri>=d}function me(){var gt=Xn();if(ie(gt))return Ee(gt);_=qs(me,ye(gt))}function Ee(gt){return _=i,k&&c?Y(gt):(c=l=i,w)}function dr(){_!==i&&Ru(_),D=0,c=P=l=_=i}function Qt(){return _===i?w:Ee(Xn())}function gr(){var gt=Xn(),$r=ie(gt);if(c=arguments,l=this,P=gt,$r){if(_===i)return re(P);if(j)return Ru(_),_=qs(me,t),Y(P)}return _===i&&(_=qs(me,t)),w}return gr.cancel=dr,gr.flush=Qt,gr}var Py=ve(function(e,t){return au(e,1,t)}),Sy=ve(function(e,t,s){return au(e,xr(t)||0,s)});function Ry(e){return Yr(e,Tt)}function ea(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new wr(p);var s=function(){var c=arguments,l=t?t.apply(this,c):c[0],d=s.cache;if(d.has(l))return d.get(l);var w=e.apply(this,c);return s.cache=d.set(l,w)||d,w};return s.cache=new(ea.Cache||Jr),s}ea.Cache=Jr;function ta(e){if(typeof e!="function")throw new wr(p);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Oy(e){return ph(2,e)}var Ay=gd(function(e,t){t=t.length==1&&le(t[0])?Qe(t[0],lr(ee())):Qe(jt(t,1),lr(ee()));var s=t.length;return ve(function(c){for(var l=-1,d=Ut(c.length,s);++l=t}),ji=lu(function(){return arguments}())?lu:function(e){return ht(e)&&$e.call(e,"callee")&&!Yc.call(e,"callee")},le=O.isArray,Vy=Gt?lr(Gt):Zp;function tr(e){return e!=null&&ra(e.length)&&!ei(e)}function dt(e){return ht(e)&&tr(e)}function Fy(e){return e===!0||e===!1||ht(e)&&Wt(e)==C}var vi=np||ec,By=Or?lr(Or):Xp;function Gy(e){return ht(e)&&e.nodeType===1&&!Ls(e)}function Wy(e){if(e==null)return!0;if(tr(e)&&(le(e)||typeof e=="string"||typeof e.splice=="function"||vi(e)||os(e)||ji(e)))return!e.length;var t=Ht(e);if(t==ge||t==Ae)return!e.size;if(Ds(e))return!mo(e).length;for(var s in e)if($e.call(e,s))return!1;return!0}function Jy(e,t){return Ts(e,t)}function Qy(e,t,s){s=typeof s=="function"?s:i;var c=s?s(e,t):i;return c===i?Ts(e,t,i,s):!!c}function Vo(e){if(!ht(e))return!1;var t=Wt(e);return t==I||t==u||typeof e.message=="string"&&typeof e.name=="string"&&!Ls(e)}function Yy(e){return typeof e=="number"&&Xc(e)}function ei(e){if(!tt(e))return!1;var t=Wt(e);return t==J||t==oe||t==T||t==lt}function wh(e){return typeof e=="number"&&e==de(e)}function ra(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=G}function tt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ht(e){return e!=null&&typeof e=="object"}var _h=vr?lr(vr):td;function Zy(e,t){return e===t||vo(e,t,Do(t))}function Xy(e,t,s){return s=typeof s=="function"?s:i,vo(e,t,Do(t),s)}function ev(e){return bh(e)&&e!=+e}function tv(e){if(jd(e))throw new ue(h);return fu(e)}function rv(e){return e===null}function iv(e){return e==null}function bh(e){return typeof e=="number"||ht(e)&&Wt(e)==Pe}function Ls(e){if(!ht(e)||Wt(e)!=_e)return!1;var t=An(e);if(t===null)return!0;var s=$e.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&Pn.call(s)==Xf}var Fo=jr?lr(jr):rd;function sv(e){return wh(e)&&e>=-G&&e<=G}var Ih=bs?lr(bs):id;function ia(e){return typeof e=="string"||!le(e)&&ht(e)&&Wt(e)==ke}function pr(e){return typeof e=="symbol"||ht(e)&&Wt(e)==Ke}var os=Ci?lr(Ci):sd;function nv(e){return e===i}function av(e){return ht(e)&&Ht(e)==Ne}function ov(e){return ht(e)&&Wt(e)==Ve}var cv=Gn(wo),uv=Gn(function(e,t){return e<=t});function Eh(e){if(!e)return[];if(tr(e))return ia(e)?Ar(e):er(e);if(Es&&e[Es])return Hf(e[Es]());var t=Ht(e),s=t==ge?no:t==Ae?In:cs;return s(e)}function ti(e){if(!e)return e===0?e:0;if(e=xr(e),e===qe||e===-qe){var t=e<0?-1:1;return t*K}return e===e?e:0}function de(e){var t=ti(e),s=t%1;return t===t?s?t-s:t:0}function xh(e){return e?Di(de(e),0,V):0}function xr(e){if(typeof e=="number")return e;if(pr(e))return H;if(tt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Kc(e);var s=Da.test(e);return s||La.test(e)?he(e.slice(2),s?2:8):Na.test(e)?H:+e}function Ph(e){return Ur(e,rr(e))}function hv(e){return e?Di(de(e),-G,G):e===0?e:0}function Ce(e){return e==null?"":fr(e)}var lv=ss(function(e,t){if(Ds(t)||tr(t)){Ur(t,Dt(t),e);return}for(var s in t)$e.call(t,s)&&Os(e,s,t[s])}),Sh=ss(function(e,t){Ur(t,rr(t),e)}),sa=ss(function(e,t,s,c){Ur(t,rr(t),e,c)}),fv=ss(function(e,t,s,c){Ur(t,Dt(t),e,c)}),pv=Zr(lo);function dv(e,t){var s=is(e);return t==null?s:su(s,t)}var gv=ve(function(e,t){e=Ue(e);var s=-1,c=t.length,l=c>2?t[2]:i;for(l&&Jt(t[0],t[1],l)&&(c=1);++s1),d}),Ur(e,$o(e),s),c&&(s=br(s,S|$|q,Sd));for(var l=t.length;l--;)xo(s,t[l]);return s});function Nv(e,t){return Oh(e,ta(ee(t)))}var Dv=Zr(function(e,t){return e==null?{}:od(e,t)});function Oh(e,t){if(e==null)return{};var s=Qe($o(e),function(c){return[c]});return t=ee(t),wu(e,s,function(c,l){return t(c,l[0])})}function qv(e,t,s){t=gi(t,e);var c=-1,l=t.length;for(l||(l=1,e=i);++ct){var c=e;e=t,t=c}if(s||e%1||t%1){var l=eu();return Ut(e+l*(t-e+je("1e-"+((l+"").length-1))),t)}return bo(e,t)}var Bv=ns(function(e,t,s){return t=t.toLowerCase(),e+(s?Th(t):t)});function Th(e){return Wo(Ce(e).toLowerCase())}function $h(e){return e=Ce(e),e&&e.replace(Br,Lf).replace(Ja,"")}function Gv(e,t,s){e=Ce(e),t=fr(t);var c=e.length;s=s===i?c:Di(de(s),0,c);var l=s;return s-=t.length,s>=0&&e.slice(s,l)==t}function Wv(e){return e=Ce(e),e&&We.test(e)?e.replace(Pi,zf):e}function Jv(e){return e=Ce(e),e&&bt.test(e)?e.replace(ot,"\\$&"):e}var Qv=ns(function(e,t,s){return e+(s?"-":"")+t.toLowerCase()}),Yv=ns(function(e,t,s){return e+(s?" ":"")+t.toLowerCase()}),Zv=qu("toLowerCase");function Xv(e,t,s){e=Ce(e),t=de(t);var c=t?Zi(e):0;if(!t||c>=t)return e;var l=(t-c)/2;return Bn(Nn(l),s)+e+Bn($n(l),s)}function em(e,t,s){e=Ce(e),t=de(t);var c=t?Zi(e):0;return t&&c>>0,s?(e=Ce(e),e&&(typeof t=="string"||t!=null&&!Fo(t))&&(t=fr(t),!t&&Yi(e))?yi(Ar(e),0,s):e.split(t,s)):[]}var om=ns(function(e,t,s){return e+(s?" ":"")+Wo(t)});function cm(e,t,s){return e=Ce(e),s=s==null?0:Di(de(s),0,e.length),t=fr(t),e.slice(s,s+t.length)==t}function um(e,t,s){var c=f.templateSettings;s&&Jt(e,t,s)&&(t=i),e=Ce(e),t=sa({},t,c,ku);var l=sa({},t.imports,c.imports,ku),d=Dt(l),w=so(l,d),_,P,D=0,L=t.interpolate||Ki,j="__p += '",k=ao((t.escape||Ki).source+"|"+L.source+"|"+(L===et?$a:Ki).source+"|"+(t.evaluate||Ki).source+"|$","g"),Y="//# sourceURL="+($e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qa+"]")+` -`;e.replace(k,function(ie,me,Ee,dr,Qt,gr){return Ee||(Ee=dr),j+=e.slice(D,gr).replace(ja,jf),me&&(_=!0,j+=`' + -__e(`+me+`) + -'`),Qt&&(P=!0,j+=`'; -`+Qt+`; -__p += '`),Ee&&(j+=`' + -((__t = (`+Ee+`)) == null ? '' : __t) + -'`),D=gr+ie.length,ie}),j+=`'; -`;var re=$e.call(t,"variable")&&t.variable;if(!re)j=`with (obj) { -`+j+` -} -`;else if(Ca.test(re))throw new ue(v);j=(P?j.replace(Lr,""):j).replace(Bt,"$1").replace(Fr,"$1;"),j="function("+(re||"obj")+`) { -`+(re?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(_?", __e = _.escape":"")+(P?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+j+`return __p -}`;var ye=Dh(function(){return Oe(d,Y+"return "+j).apply(i,w)});if(ye.source=j,Vo(ye))throw ye;return ye}function hm(e){return Ce(e).toLowerCase()}function lm(e){return Ce(e).toUpperCase()}function fm(e,t,s){if(e=Ce(e),e&&(s||t===i))return Kc(e);if(!e||!(t=fr(t)))return e;var c=Ar(e),l=Ar(t),d=Vc(c,l),w=Fc(c,l)+1;return yi(c,d,w).join("")}function pm(e,t,s){if(e=Ce(e),e&&(s||t===i))return e.slice(0,Gc(e)+1);if(!e||!(t=fr(t)))return e;var c=Ar(e),l=Fc(c,Ar(t))+1;return yi(c,0,l).join("")}function dm(e,t,s){if(e=Ce(e),e&&(s||t===i))return e.replace(ct,"");if(!e||!(t=fr(t)))return e;var c=Ar(e),l=Vc(c,Ar(t));return yi(c,l).join("")}function gm(e,t){var s=yt,c=Yt;if(tt(t)){var l="separator"in t?t.separator:l;s="length"in t?de(t.length):s,c="omission"in t?fr(t.omission):c}e=Ce(e);var d=e.length;if(Yi(e)){var w=Ar(e);d=w.length}if(s>=d)return e;var _=s-Zi(c);if(_<1)return c;var P=w?yi(w,0,_).join(""):e.slice(0,_);if(l===i)return P+c;if(w&&(_+=P.length-_),Fo(l)){if(e.slice(_).search(l)){var D,L=P;for(l.global||(l=ao(l.source,Ce(yr.exec(l))+"g")),l.lastIndex=0;D=l.exec(L);)var j=D.index;P=P.slice(0,j===i?_:j)}}else if(e.indexOf(fr(l),_)!=_){var k=P.lastIndexOf(l);k>-1&&(P=P.slice(0,k))}return P+c}function ym(e){return e=Ce(e),e&&st.test(e)?e.replace(oi,Ff):e}var vm=ns(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Wo=qu("toUpperCase");function Nh(e,t,s){return e=Ce(e),t=s?i:t,t===i?Uf(e)?Wf(e):Tf(e):e.match(t)||[]}var Dh=ve(function(e,t){try{return Nt(e,i,t)}catch(s){return Vo(s)?s:new ue(s)}}),mm=Zr(function(e,t){return mr(t,function(s){s=Hr(s),Qr(e,s,ko(e[s],e))}),e});function wm(e){var t=e==null?0:e.length,s=ee();return e=t?Qe(e,function(c){if(typeof c[1]!="function")throw new wr(p);return[s(c[0]),c[1]]}):[],ve(function(c){for(var l=-1;++lG)return[];var s=V,c=Ut(e,V);t=ee(t),e-=V;for(var l=io(c,t);++s0||t<0)?new be(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=de(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},be.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},be.prototype.toArray=function(){return this.take(V)},Mr(be.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),c=/^(?:head|last)$/.test(t),l=f[c?"take"+(t=="last"?"Right":""):t],d=c||/^find/.test(t);l&&(f.prototype[t]=function(){var w=this.__wrapped__,_=c?[1]:arguments,P=w instanceof be,D=_[0],L=P||le(w),j=function(me){var Ee=l.apply(f,hi([me],_));return c&&k?Ee[0]:Ee};L&&s&&typeof D=="function"&&D.length!=1&&(P=L=!1);var k=this.__chain__,Y=!!this.__actions__.length,re=d&&!k,ye=P&&!Y;if(!d&&L){w=ye?w:new be(this);var ie=e.apply(w,_);return ie.__actions__.push({func:Yn,args:[j],thisArg:i}),new _r(ie,k)}return re&&ye?e.apply(this,_):(ie=this.thru(j),re?c?ie.value()[0]:ie.value():ie)})}),mr(["pop","push","shift","sort","splice","unshift"],function(e){var t=En[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",c=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var l=arguments;if(c&&!this.__chain__){var d=this.value();return t.apply(le(d)?d:[],l)}return this[s](function(w){return t.apply(le(w)?w:[],l)})}}),Mr(be.prototype,function(e,t){var s=f[t];if(s){var c=s.name+"";$e.call(rs,c)||(rs[c]=[]),rs[c].push({name:t,func:s})}}),rs[Vn(i,ne).name]=[{name:"wrapper",func:i}],be.prototype.clone=yp,be.prototype.reverse=vp,be.prototype.value=mp,f.prototype.at=Gg,f.prototype.chain=Wg,f.prototype.commit=Jg,f.prototype.next=Qg,f.prototype.plant=Zg,f.prototype.reverse=Xg,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=ey,f.prototype.first=f.prototype.head,Es&&(f.prototype[Es]=Yg),f},Xi=Jf();pt?((pt.exports=Xi)._=Xi,Me._=Xi):Ie._=Xi}).call(Ks)})(xc,xc.exports);var NI=Object.defineProperty,DI=Object.defineProperties,qI=Object.getOwnPropertyDescriptors,Cl=Object.getOwnPropertySymbols,LI=Object.prototype.hasOwnProperty,zI=Object.prototype.propertyIsEnumerable,Tl=(o,r,i)=>r in o?NI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,la=(o,r)=>{for(var i in r||(r={}))LI.call(r,i)&&Tl(o,i,r[i]);if(Cl)for(var i of Cl(r))zI.call(r,i)&&Tl(o,i,r[i]);return o},jI=(o,r)=>DI(o,qI(r));function Ii(o,r,i){var n;const a=k0(o);return((n=r.rpcMap)==null?void 0:n[a.reference])||`${$I}?chainId=${a.namespace}:${a.reference}&projectId=${i}`}function ki(o){return o.includes(":")?o.split(":")[1]:o}function xf(o){return o.map(r=>`${r.split(":")[0]}:${r.split(":")[1]}`)}function MI(o,r){const i=Object.keys(r.namespaces).filter(a=>a.includes(o));if(!i.length)return[];const n=[];return i.forEach(a=>{const h=r.namespaces[a].accounts;n.push(...h)}),n}function UI(o={},r={}){const i=$l(o),n=$l(r);return xc.exports.merge(i,n)}function $l(o){var r,i,n,a;const h={};if(!da(o))return h;for(const[p,v]of Object.entries(o)){const m=Bl(p)?[p]:v.chains,g=v.methods||[],b=v.events||[],S=v.rpcMap||{},$=Vs(p);h[$]=jI(la(la({},h[$]),v),{chains:rc(m,(r=h[$])==null?void 0:r.chains),methods:rc(g,(i=h[$])==null?void 0:i.methods),events:rc(b,(n=h[$])==null?void 0:n.events),rpcMap:la(la({},S),(a=h[$])==null?void 0:a.rpcMap)})}return h}function HI(o){return o.includes(":")?o.split(":")[2]:o}function kI(o){const r={};for(const[i,n]of Object.entries(o)){const a=n.methods||[],h=n.events||[],p=n.accounts||[],v=Bl(i)?[i]:n.chains?n.chains:xf(n.accounts);r[i]={chains:v,methods:a,events:h,accounts:p}}return r}function pc(o){return typeof o=="number"?o:o.includes("0x")?parseInt(o,16):o.includes(":")?Number(o.split(":")[1]):Number(o)}const Pf={},Ye=o=>Pf[o],dc=(o,r)=>{Pf[o]=r};class KI{constructor(r){this.name="polkadot",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getAccounts(){const r=this.namespace.accounts;return r?r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2])||[]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class VI{constructor(r){this.name="eip155",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(r){switch(r.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(r);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(r.request.method)?await this.client.request(r):this.getHttpProvider().request(r.request)}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(parseInt(r),i),this.chainId=parseInt(r),this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}createHttpProvider(r,i){const n=i||Ii(`${this.name}:${r}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=parseInt(ki(i));r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}getHttpProvider(){const r=this.chainId,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}async handleSwitchChain(r){var i,n;let a=r.request.params?(i=r.request.params[0])==null?void 0:i.chainId:"0x0";a=a.startsWith("0x")?a:`0x${a}`;const h=parseInt(a,16);if(this.isChainApproved(h))this.setDefaultChain(`${h}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:r.topic,request:{method:r.request.method,params:[{chainId:a}]},chainId:(n=this.namespace.chains)==null?void 0:n[0]}),this.setDefaultChain(`${h}`);else throw new Error(`Failed to switch to chain 'eip155:${h}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(r){return this.namespace.chains.includes(`${this.name}:${r}`)}}class FI{constructor(r){this.name="solana",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class BI{constructor(r){this.name="cosmos",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class GI{constructor(r){this.name="cip34",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{const n=this.getCardanoRPCUrl(i),a=ki(i);r[a]=this.createHttpProvider(a,n)}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}getCardanoRPCUrl(r){const i=this.namespace.rpcMap;if(i)return i[r]}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||this.getCardanoRPCUrl(r);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class WI{constructor(r){this.name="elrond",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class JI{constructor(r){this.name="multiversx",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;const a=ki(i);r[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);return new ni(new Ei(n,Ye("disableProviderPing")))}}class QI{constructor(r){this.name="near",this.namespace=r.namespace,this.events=Ye("events"),this.client=Ye("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){if(this.chainId=r,!this.httpProviders[r]){const n=i||Ii(`${this.name}:${r}`,this.namespace);if(!n)throw new Error(`No RPC url provided for chainId: ${r}`);this.setHttpProvider(r,n)}this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const r=this.namespace.accounts;return r?r.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2])||[]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(i=>{var n;r[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[i])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){const n=this.createHttpProvider(r,i);n&&(this.httpProviders[r]=n)}createHttpProvider(r,i){const n=i||Ii(r,this.namespace);return typeof n>"u"?void 0:new ni(new Ei(n,Ye("disableProviderPing")))}}var YI=Object.defineProperty,ZI=Object.defineProperties,XI=Object.getOwnPropertyDescriptors,Nl=Object.getOwnPropertySymbols,eE=Object.prototype.hasOwnProperty,tE=Object.prototype.propertyIsEnumerable,Dl=(o,r,i)=>r in o?YI(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,fa=(o,r)=>{for(var i in r||(r={}))eE.call(r,i)&&Dl(o,i,r[i]);if(Nl)for(var i of Nl(r))tE.call(r,i)&&Dl(o,i,r[i]);return o},gc=(o,r)=>ZI(o,XI(r));class Lc{constructor(r){this.events=new Ac,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=r,this.logger=typeof(r==null?void 0:r.logger)<"u"&&typeof(r==null?void 0:r.logger)!="string"?r.logger:Sa(Ra({level:(r==null?void 0:r.logger)||Ol})),this.disableProviderPing=(r==null?void 0:r.disableProviderPing)||!1}static async init(r){const i=new Lc(r);return await i.initialize(),i}async request(r,i){const[n,a]=this.validateChain(i);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:fa({},r),chainId:`${n}:${a}`,topic:this.session.topic})}sendAsync(r,i,n){const a=new Date().getTime();this.request(r,n).then(h=>i(null,xa(a,h))).catch(h=>i(h,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var r;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(r=this.session)==null?void 0:r.topic,reason:kt("USER_DISCONNECTED")}),await this.cleanup()}async connect(r){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(r),await this.cleanupPendingPairings(),!r.skipPairing)return await this.pair(r.pairingTopic)}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}removeListener(r,i){this.events.removeListener(r,i)}off(r,i){this.events.off(r,i)}get isWalletConnect(){return!0}async pair(r){this.shouldAbortPairingAttempt=!1;let i=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(i>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:n,approval:a}=await this.client.connect({pairingTopic:r,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await a().then(h=>{this.session=h,this.namespaces||(this.namespaces=kI(h.namespaces),this.persist("namespaces",this.namespaces))}).catch(h=>{if(h.message!==If)throw h;i++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(r,i){try{if(!this.session)return;const[n,a]=this.validateChain(r);this.getProvider(n).setDefaultChain(a,i)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(r={}){this.logger.info("Cleaning up inactive pairings...");const i=this.client.pairing.getAll();if(ys(i)){for(const n of i)r.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${i.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const r=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[r]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await OI.init({logger:this.providerOpts.logger||Ol,relayUrl:this.providerOpts.relayUrl||AI,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const r=[...new Set(Object.keys(this.session.namespaces).map(i=>Vs(i)))];dc("client",this.client),dc("events",this.events),dc("disableProviderPing",this.disableProviderPing),r.forEach(i=>{if(!this.session)return;const n=MI(i,this.session),a=xf(n),h=UI(this.namespaces,this.optionalNamespaces),p=gc(fa({},h[i]),{accounts:n,chains:a});switch(i){case"eip155":this.rpcProviders[i]=new VI({namespace:p});break;case"solana":this.rpcProviders[i]=new FI({namespace:p});break;case"cosmos":this.rpcProviders[i]=new BI({namespace:p});break;case"polkadot":this.rpcProviders[i]=new KI({namespace:p});break;case"cip34":this.rpcProviders[i]=new GI({namespace:p});break;case"elrond":this.rpcProviders[i]=new WI({namespace:p});break;case"multiversx":this.rpcProviders[i]=new JI({namespace:p});break;case"near":this.rpcProviders[i]=new QI({namespace:p});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",r=>{this.events.emit("session_ping",r)}),this.client.on("session_event",r=>{const{params:i}=r,{event:n}=i;if(n.name==="accountsChanged"){const a=n.data;a&&ys(a)&&this.events.emit("accountsChanged",a.map(HI))}else if(n.name==="chainChanged"){const a=i.chainId,h=i.event.data,p=Vs(a),v=pc(a)!==pc(h)?`${p}:${pc(h)}`:a;this.onChainChanged(v)}else this.events.emit(n.name,n.data);this.events.emit("session_event",r)}),this.client.on("session_update",({topic:r,params:i})=>{var n;const{namespaces:a}=i,h=(n=this.client)==null?void 0:n.session.get(r);this.session=gc(fa({},h),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:r,params:i})}),this.client.on("session_delete",async r=>{await this.cleanup(),this.events.emit("session_delete",r),this.events.emit("disconnect",gc(fa({},kt("USER_DISCONNECTED")),{data:r.topic}))}),this.on(ai.DEFAULT_CHAIN_CHANGED,r=>{this.onChainChanged(r,!0)})}getProvider(r){if(!this.rpcProviders[r])throw new Error(`Provider not found: ${r}`);return this.rpcProviders[r]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(r=>{var i;this.getProvider(r).updateNamespace((i=this.session)==null?void 0:i.namespaces[r])})}setNamespaces(r){const{namespaces:i,optionalNamespaces:n,sessionProperties:a}=r;i&&Object.keys(i).length&&(this.namespaces=i),n&&Object.keys(n).length&&(this.optionalNamespaces=n),this.sessionProperties=a,this.persist("namespaces",i),this.persist("optionalNamespaces",n)}validateChain(r){const[i,n]=(r==null?void 0:r.split(":"))||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[i,n];if(i&&!Object.keys(this.namespaces||{}).map(p=>Vs(p)).includes(i))throw new Error(`Namespace '${i}' is not configured. Please call connect() first with namespace config.`);if(i&&n)return[i,n];const a=Vs(Object.keys(this.namespaces)[0]),h=this.rpcProviders[a].getDefaultChain();return[a,h]}async requestAccounts(){const[r]=this.validateChain();return await this.getProvider(r).requestAccounts()}onChainChanged(r,i=!1){var n;if(!this.namespaces)return;const[a,h]=this.validateChain(r);i||this.getProvider(a).setDefaultChain(h),((n=this.namespaces[a])!=null?n:this.namespaces[`${a}:${h}`]).defaultChain=h,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",h)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(r,i){this.client.core.storage.setItem(`${Al}/${r}`,i)}async getFromStore(r){return await this.client.core.storage.getItem(`${Al}/${r}`)}}const rE=Lc,iE="wc",sE="ethereum_provider",nE=`${iE}@2:${sE}:`,aE="https://rpc.walletconnect.com/v1/",Pc=["eth_sendTransaction","personal_sign"],oE=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],Sc=["chainChanged","accountsChanged"],cE=["chainChanged","accountsChanged","message","disconnect","connect"];var uE=Object.defineProperty,hE=Object.defineProperties,lE=Object.getOwnPropertyDescriptors,ql=Object.getOwnPropertySymbols,fE=Object.prototype.hasOwnProperty,pE=Object.prototype.propertyIsEnumerable,Ll=(o,r,i)=>r in o?uE(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,Bs=(o,r)=>{for(var i in r||(r={}))fE.call(r,i)&&Ll(o,i,r[i]);if(ql)for(var i of ql(r))pE.call(r,i)&&Ll(o,i,r[i]);return o},zl=(o,r)=>hE(o,lE(r));function wa(o){return Number(o[0].split(":")[1])}function yc(o){return`0x${o.toString(16)}`}function dE(o){const{chains:r,optionalChains:i,methods:n,optionalMethods:a,events:h,optionalEvents:p,rpcMap:v}=o;if(!ys(r))throw new Error("Invalid chains");const m={chains:r,methods:n||Pc,events:h||Sc,rpcMap:Bs({},r.length?{[wa(r)]:v[wa(r)]}:{})},g=h==null?void 0:h.filter(q=>!Sc.includes(q)),b=n==null?void 0:n.filter(q=>!Pc.includes(q));if(!i&&!p&&!a&&!(g!=null&&g.length)&&!(b!=null&&b.length))return{required:r.length?m:void 0};const S=(g==null?void 0:g.length)&&(b==null?void 0:b.length)||!i,$={chains:[...new Set(S?m.chains.concat(i||[]):i)],methods:[...new Set(m.methods.concat(a!=null&&a.length?a:oE))],events:[...new Set(m.events.concat(p!=null&&p.length?p:cE))],rpcMap:v};return{required:r.length?m:void 0,optional:i.length?$:void 0}}class zc{constructor(){this.events=new qr.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=nE,this.on=(r,i)=>(this.events.on(r,i),this),this.once=(r,i)=>(this.events.once(r,i),this),this.removeListener=(r,i)=>(this.events.removeListener(r,i),this),this.off=(r,i)=>(this.events.off(r,i),this),this.parseAccount=r=>this.isCompatibleChainId(r)?this.parseAccountId(r).address:r,this.signer={},this.rpc={}}static async init(r){const i=new zc;return await i.initialize(r),i}async request(r){return await this.signer.request(r,this.formatChainId(this.chainId))}sendAsync(r,i){this.signer.sendAsync(r,i,this.formatChainId(this.chainId))}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(r){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(r);const{required:i,optional:n}=dE(this.rpc);try{const a=await new Promise(async(p,v)=>{var m;this.rpc.showQrModal&&((m=this.modal)==null||m.subscribeModal(g=>{!g.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),v(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(zl(Bs({namespaces:Bs({},i&&{[this.namespace]:i})},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:r==null?void 0:r.pairingTopic})).then(g=>{p(g)}).catch(g=>{v(new Error(g.message))})});if(!a)return;const h=K0(a.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:h),this.setAccounts(h),this.events.emit("connect",{chainId:yc(this.chainId)})}catch(a){throw this.signer.logger.error(a),a}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",r=>{const{params:i}=r,{event:n}=i;n.name==="accountsChanged"?(this.accounts=this.parseAccounts(n.data),this.events.emit("accountsChanged",this.accounts)):n.name==="chainChanged"?this.setChainId(this.formatChainId(n.data)):this.events.emit(n.name,n.data),this.events.emit("session_event",r)}),this.signer.on("chainChanged",r=>{const i=parseInt(r);this.chainId=i,this.events.emit("chainChanged",yc(this.chainId)),this.persist()}),this.signer.on("session_update",r=>{this.events.emit("session_update",r)}),this.signer.on("session_delete",r=>{this.reset(),this.events.emit("session_delete",r),this.events.emit("disconnect",zl(Bs({},kt("USER_DISCONNECTED")),{data:r.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",r=>{var i,n;this.rpc.showQrModal&&((i=this.modal)==null||i.closeModal(),(n=this.modal)==null||n.openModal({uri:r})),this.events.emit("display_uri",r)})}switchEthereumChain(r){this.request({method:"wallet_switchEthereumChain",params:[{chainId:r.toString(16)}]})}isCompatibleChainId(r){return typeof r=="string"?r.startsWith(`${this.namespace}:`):!1}formatChainId(r){return`${this.namespace}:${r}`}parseChainId(r){return Number(r.split(":")[1])}setChainIds(r){const i=r.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));i.length&&(this.chainId=i[0],this.events.emit("chainChanged",yc(this.chainId)),this.persist())}setChainId(r){if(this.isCompatibleChainId(r)){const i=this.parseChainId(r);this.chainId=i,this.switchEthereumChain(i)}}parseAccountId(r){const[i,n,a]=r.split(":");return{chainId:`${i}:${n}`,address:a}}setAccounts(r){this.accounts=r.filter(i=>this.parseChainId(this.parseAccountId(i).chainId)===this.chainId).map(i=>this.parseAccountId(i).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(r){var i,n;const a=(i=r==null?void 0:r.chains)!=null?i:[],h=(n=r==null?void 0:r.optionalChains)!=null?n:[],p=a.concat(h);if(!p.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const v=a.length?(r==null?void 0:r.methods)||Pc:[],m=a.length?(r==null?void 0:r.events)||Sc:[],g=(r==null?void 0:r.optionalMethods)||[],b=(r==null?void 0:r.optionalEvents)||[],S=(r==null?void 0:r.rpcMap)||this.buildRpcMap(p,r.projectId),$=(r==null?void 0:r.qrModalOptions)||void 0;return{chains:a==null?void 0:a.map(q=>this.formatChainId(q)),optionalChains:h.map(q=>this.formatChainId(q)),methods:v,events:m,optionalMethods:g,optionalEvents:b,rpcMap:S,showQrModal:!!(r!=null&&r.showQrModal),qrModalOptions:$,projectId:r.projectId,metadata:r.metadata}}buildRpcMap(r,i){const n={};return r.forEach(a=>{n[a]=this.getRpcUrl(a,i)}),n}async initialize(r){if(this.rpc=this.getRpcConfig(r),this.chainId=this.rpc.chains.length?wa(this.rpc.chains):wa(this.rpc.optionalChains),this.signer=await rE.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:r.disableProviderPing,relayUrl:r.relayUrl,storageOptions:r.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let i;try{const{WalletConnectModal:n}=await V0(()=>import("./index-Dy-WAr9t.js").then(a=>a.i),__vite__mapDeps([0,1,2]),import.meta.url);i=n}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(i)try{this.modal=new i(Bs({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(n){throw this.signer.logger.error(n),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(r){if(!r)return;const{chains:i,optionalChains:n,rpcMap:a}=r;i&&ys(i)&&(this.rpc.chains=i.map(h=>this.formatChainId(h)),i.forEach(h=>{this.rpc.rpcMap[h]=(a==null?void 0:a[h])||this.getRpcUrl(h)})),n&&ys(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n==null?void 0:n.map(h=>this.formatChainId(h)),n.forEach(h=>{this.rpc.rpcMap[h]=(a==null?void 0:a[h])||this.getRpcUrl(h)}))}getRpcUrl(r,i){var n;return((n=this.rpc.rpcMap)==null?void 0:n[r])||`${aE}?chainId=eip155:${r}&projectId=${i||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;const r=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),i=this.session.namespaces[`${this.namespace}:${r}`]?this.session.namespaces[`${this.namespace}:${r}`]:this.session.namespaces[this.namespace];this.setChainIds(r?[this.formatChainId(r)]:i==null?void 0:i.accounts),this.setAccounts(i==null?void 0:i.accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(r){return typeof r=="string"||r instanceof String?[this.parseAccount(r)]:r.map(i=>this.parseAccount(i))}}const CE=zc;export{CE as EthereumProvider,cE as OPTIONAL_EVENTS,oE as OPTIONAL_METHODS,Sc as REQUIRED_EVENTS,Pc as REQUIRED_METHODS,zc as default}; -//# sourceMappingURL=index.es-DAoTMZAm.js.map diff --git a/apps/web/public/assets/injectedWallet-EUKDEAIU-CMyNXBNM.js b/apps/web/public/assets/injectedWallet-EUKDEAIU-CMyNXBNM.js deleted file mode 100644 index 786b51a2..00000000 --- a/apps/web/public/assets/injectedWallet-EUKDEAIU-CMyNXBNM.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var I=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new I.Error().stack;i&&(I._sentryDebugIds=I._sentryDebugIds||{},I._sentryDebugIds[i]="cb0e200d-a1cc-4b5d-82a6-cd34bdd52159",I._sentryDebugIdIdentifier="sentry-dbid-cb0e200d-a1cc-4b5d-82a6-cd34bdd52159")}catch{}})();var g="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgyOHYyOEgweiIvPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIxNiIgeD0iNCIgeT0iNiIgZmlsbD0idXJsKCNhKSIgcng9IjMuNSIvPjxwYXRoIGZpbGw9IiMwRTc2RkQiIGQ9Ik0xNiAxNGEzIDMgMCAwIDEgMy0zaDQuNGMuNTYgMCAuODQgMCAxLjA1NC4xMDlhMSAxIDAgMCAxIC40MzcuNDM3QzI1IDExLjc2IDI1IDEyLjA0IDI1IDEyLjZ2Mi44YzAgLjU2IDAgLjg0LS4xMDkgMS4wNTRhMSAxIDAgMCAxLS40MzcuNDM3QzI0LjI0IDE3IDIzLjk2IDE3IDIzLjQgMTdIMTlhMyAzIDAgMCAxLTMtM1oiLz48Y2lyY2xlIGN4PSIxOSIgY3k9IjE0IiByPSIxLjI1IiBmaWxsPSIjQTNEN0ZGIi8+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iMTQiIHgyPSIxNCIgeTE9IjYiIHkyPSIyMiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMxNzQyOTkiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDFFNTkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";export{g as default}; -//# sourceMappingURL=injectedWallet-EUKDEAIU-CMyNXBNM.js.map diff --git a/apps/web/public/assets/ja_JP-GYCPH6AT-B2ynLT17.js b/apps/web/public/assets/ja_JP-GYCPH6AT-B2ynLT17.js deleted file mode 100644 index fece3579..00000000 --- a/apps/web/public/assets/ja_JP-GYCPH6AT-B2ynLT17.js +++ /dev/null @@ -1,959 +0,0 @@ -(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},A=new u.Error().stack;A&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[A]="9074b280-bc3e-4dfd-a19b-69e54d0230cc",u._sentryDebugIdIdentifier="sentry-dbid-9074b280-bc3e-4dfd-a19b-69e54d0230cc")}catch{}})();var C=`{ - "connect_wallet": { - "label": "ウォレットを接続", - "wrong_network": { - "label": "ネットワークが間違っています" - } - }, - "intro": { - "title": "ウォレットとは何ですか?", - "description": "ウォレットは、デジタルアセットを送信、受信、保存、表示するために使用されます。また、各ウェブサイトで新たなアカウントやパスワードを作成する必要なく、ログインする新しい方法でもあります。", - "digital_asset": { - "title": "あなたのデジタル資産のための家", - "description": "ウォレットは、EthereumやNFTのようなデジタル資産を送信、受信、保存、表示するために使用されます。" - }, - "login": { - "title": "新しいログイン方法", - "description": "すべてのウェブサイトで新しいアカウントとパスワードを作成する代わりに、ウォレットを接続します。" - }, - "get": { - "label": "ウォレットを取得する" - }, - "learn_more": { - "label": "詳しくはこちら" - } - }, - "sign_in": { - "label": "アカウントを確認する", - "description": "接続を完了するには、このアカウントの所有者であることを証明するためにウォレットでメッセージに署名する必要があります。", - "message": { - "send": "メッセージを送信", - "preparing": "メッセージの準備中...", - "cancel": "キャンセル", - "preparing_error": "メッセージの準備中にエラーが発生しました、再試行してください!" - }, - "signature": { - "waiting": "署名を待っています...", - "verifying": "署名を検証中...", - "signing_error": "メッセージの署名中にエラーが発生しました、再試行してください!", - "verifying_error": "署名の検証中にエラーが発生しました、再試行してください!", - "oops_error": "おっと、何かが間違っていました!" - } - }, - "connect": { - "label": "接続", - "title": "ウォレットを接続する", - "new_to_ethereum": { - "description": "Ethereumのウォレットが初めてですか?", - "learn_more": { - "label": "詳しくはこちら" - } - }, - "learn_more": { - "label": "詳しくはこちら" - }, - "recent": "最近利用しました", - "status": { - "opening": "%{wallet}を開いています...", - "connecting": "接続中", - "connect_mobile": "%{wallet}で続行", - "not_installed": "%{wallet} はインストールされていません", - "not_available": "%{wallet} は利用できません", - "confirm": "エクステンションで接続を確認してください", - "confirm_mobile": "ウォレットでの接続リクエストを承認する" - }, - "secondary_action": { - "get": { - "description": "%{wallet}がありませんか?", - "label": "取得" - }, - "install": { - "label": "インストール" - }, - "retry": { - "label": "再試行" - } - }, - "walletconnect": { - "description": { - "full": "公式のWalletConnectモーダルが必要ですか?", - "compact": "WalletConnectモーダルが必要ですか?" - }, - "open": { - "label": "開く" - } - } - }, - "connect_scan": { - "title": "%{wallet}でスキャン", - "fallback_title": "携帯電話でスキャンしてください" - }, - "connector_group": { - "recommended": "おすすめのウォレット", - "other": "その他", - "popular": "人気のウォレット", - "more": "もっと", - "others": "その他" - }, - "get": { - "title": "ウォレットを取得", - "action": { - "label": "取得" - }, - "mobile": { - "description": "モバイルウォレット" - }, - "extension": { - "description": "ブラウザ拡張" - }, - "mobile_and_extension": { - "description": "モバイルウォレットと拡張機能" - }, - "mobile_and_desktop": { - "description": "モバイルとデスクトップウォレット" - }, - "looking_for": { - "title": "お探しのウォレットがありませんか?", - "mobile": { - "description": "メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。" - }, - "desktop": { - "compact_description": "メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。", - "wide_description": "左側のウォレットを選択して、別のウォレットプロバイダーで始めてください。" - } - } - }, - "get_options": { - "title": "%{wallet}で始める", - "short_title": "%{wallet}を取得する", - "mobile": { - "title": "モバイル用 %{wallet}", - "description": "モバイルウォレットを使用して、イーサリアムの世界を探索します。", - "download": { - "label": "アプリを取得" - } - }, - "extension": { - "title": "%{wallet} for %{browser}", - "description": "お好きなウェブブラウザからウォレットに直接アクセスします。", - "download": { - "label": "%{browser}に追加" - } - }, - "desktop": { - "title": "%{wallet} for %{platform}", - "description": "あなたの強力なデスクトップからネイティブにウォレットにアクセスします。", - "download": { - "label": "%{platform}に追加する" - } - } - }, - "get_mobile": { - "title": "%{wallet}をインストール", - "description": "iOSまたはAndroidでダウンロードするために電話でスキャン", - "continue": { - "label": "続行" - } - }, - "get_instructions": { - "mobile": { - "connect": { - "label": "接続" - }, - "learn_more": { - "label": "詳しくはこちら" - } - }, - "extension": { - "refresh": { - "label": "更新" - }, - "learn_more": { - "label": "詳しくはこちら" - } - }, - "desktop": { - "connect": { - "label": "接続" - }, - "learn_more": { - "label": "詳しくはこちら" - } - } - }, - "chains": { - "title": "ネットワークを切り替える", - "wrong_network": "誤ったネットワークが検出されました、続行するには切り替えるか切断してください。", - "confirm": "ウォレットで確認する", - "switching_not_supported": "あなたのウォレットは %{appName}からネットワークを切り替えることをサポートしていません。ウォレット内でネットワークを切り替えてみてください。", - "switching_not_supported_fallback": "あなたのウォレットは、このアプリからネットワークを切り替えることをサポートしていません。代わりにウォレット内からネットワークを切り替えてみてください。", - "disconnect": "切断する", - "connected": "接続しました" - }, - "profile": { - "disconnect": { - "label": "切断する" - }, - "copy_address": { - "label": "アドレスをコピーする", - "copied": "コピーしました!" - }, - "explorer": { - "label": "エクスプローラーで詳しく見る" - }, - "transactions": { - "description": "%{appName} トランザクションがここに表示されます...", - "description_fallback": "あなたのトランザクションはここに表示されます...", - "recent": { - "title": "最近のトランザクション" - }, - "clear": { - "label": "すべてクリア" - } - } - }, - "wallet_connectors": { - "argent": { - "qr_code": { - "step1": { - "description": "より速くウォレットにアクセスするために、Argentをホーム画面に置いてください。", - "title": "Argentアプリを開く" - }, - "step2": { - "description": "ウォレットとユーザーネームを作成するか、既存のウォレットをインポートします。", - "title": "ウォレットを作成またはインポート" - }, - "step3": { - "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。", - "title": "「QRをスキャン」ボタンをタップします" - } - } - }, - "bifrost": { - "qr_code": { - "step1": { - "description": "より速くアクセスできるように、Bifrost Walletをホーム画面に置くことをお勧めします。", - "title": "Bifrost Walletアプリを開きます" - }, - "step2": { - "description": "リカバリーフレーズを使用してウォレットを作成またはインポートします。", - "title": "ウォレットを作成またはインポート" - }, - "step3": { - "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。", - "title": "「スキャン」ボタンをタップします" - } - } - }, - "bitget": { - "qr_code": { - "step1": { - "description": "より迅速なアクセスのために、ホーム画面にBitget Walletを配置することをお勧めします。", - "title": "Bitget Walletアプリを開く" - }, - "step2": { - "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。", - "title": "ウォレットを作成またはインポート" - }, - "step3": { - "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。", - "title": "スキャンボタンをタップする" - } - }, - "extension": { - "step1": { - "description": "ウォレットへのより迅速なアクセスのためにBitget Walletをタスクバーにピン留めすることをお勧めします。", - "title": "Bitget Wallet拡張機能をインストールします" - }, - "step2": { - "description": "ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。", - "title": "ウォレットを作成またはインポートします" - }, - "step3": { - "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。", - "title": "ブラウザを更新する" - } - } - }, - "bitski": { - "extension": { - "step1": { - "description": "ウォレットへの素早いアクセスのために、Bitskiをタスクバーにピン留めすることをお勧めします。", - "title": "Bitskiエクステンションをインストールする" - }, - "step2": { - "description": "ウォレットを安全な方法でバックアップしてください。シークレットフレーズは誰とも共有しないでください。", - "title": "ウォレットを作成するか、インポートする" - }, - "step3": { - "description": "ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。", - "title": "ブラウザを更新する" - } - } - }, - "coin98": { - "qr_code": { - "step1": { - "description": "Coin98ウォレットをホーム画面に置くことで、ウォレットへのアクセスが高速化されることをお勧めします。", - "title": "Coin98ウォレットアプリを開きます" - }, - "step2": { - "description": "電話のバックアップ機能を使用して、ウォレットを簡単にバックアップすることができます。", - "title": "ウォレットを作成またはインポートする" - }, - "step3": { - "description": "スキャン後、ウォレットへの接続を促すプロンプトが表示されます。", - "title": "WalletConnectボタンをタップします" - } - }, - "extension": { - "step1": { - "description": "ブラウザの右上をクリックして、Coin98ウォレットをピン留めして簡単にアクセスできるようにします。", - "title": "Coin98ウォレットの拡張機能をインストールします" - }, - "step2": { - "description": "新しいウォレットを作成するか、既存のものをインポートします。", - "title": "ウォレットを作成またはインポートする" - }, - "step3": { - "description": "Coin98ウォレットをセットアップしたら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。", - "title": "ブラウザを更新する" - } - } - }, - "coinbase": { - "qr_code": { - "step1": { - "description": "より素早くアクセスできるように、Coinbaseウォレットをホームスクリーンに置くことをお勧めします。", - "title": "Coinbase Walletアプリを開く" - }, - "step2": { - "description": "クラウドバックアップ機能を使用して、簡単にウォレットをバックアップできます。", - "title": "ウォレットを作成またはインポートする" - }, - "step3": { - "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。", - "title": "スキャンボタンをタップする" - } - }, - "extension": { - "step1": { - "description": "タスクバーにCoinbase Walletをピン留めして、ウォレットにより早くアクセスできるように推奨します。", - "title": "Coinbase Wallet拡張機能をインストールする" - }, - "step2": { - "description": "必ず安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰にも共有しないでください。", - "title": "ウォレットを作成またはインポート" - }, - "step3": { - "description": "ウォレットの設定が完了したら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。", - "title": "ブラウザを更新する" - } - } - }, - "core": { - "qr_code": { - "step1": { - "description": "ウォレットへの迅速なアクセスのため、コアをホーム画面に設定することを推奨します。", - "title": "Coreアプリを開く" - }, - "step2": { - "description": "電話のバックアップ機能を使って、簡単にウォレットをバックアップできます。", - "title": "ウォレットを作成またはインポート" - }, - "step3": { - "description": "スキャン後、ウォレットを接続するようにプロンプトが表示されます。", - "title": "WalletConnectボタンをタップする" - } - }, - "extension": { - "step1": { - "description": "ウォレットへのより迅速なアクセスのために、タスクバーにCoreをピン留めすることをお勧めします。", - "title": "Core拡張機能をインストールする" - }, - "step2": { - "description": "セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。", - "title": "ウォレットを作成またはインポートする" - }, - "step3": { - "description": "ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。", - "title": "ブラウザを更新する" - } - } - }, - "fox": { - "qr_code": { - "step1": { - "description": "より迅速なアクセスのために、ホーム画面にFoxWalletを置くことをお勧めします。", - "title": "FoxWalletアプリを開く" - }, - "step2": { - "description": "セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。", - "title": "ウォレットを作成またはインポート" - }, - "step3": { - "description": "スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。", - "title": "スキャンボタンをタップします" - } - } - }, - "frontier": { - "qr_code": { - "step1": { - "description": "Frontierウォレットをホーム画面に置くことで、より早くアクセスできることをお勧めします。", - "title": "Frontierウォレットアプリを開きます" - }, - "step2": { - "description": "セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。", - "title": "ウォレットを作成またはインポート" - }, - "step3": { - "description": "スキャン後に、ウォレットの接続を促すメッセージが表示されます。", - "title": "スキャンボタンをタップします" - } - }, - "extension": { - "step1": { - "description": "より迅速なウォレットへのアクセスを可能にするために、フロンティアウォレットをタスクバーにピン留めすることを推奨します。", - "title": "フロンティアウォレットの拡張機能をインストールします" - }, - "step2": { - "description": "安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。", - "title": "ウォレットを作成またはインポート" - }, - "step3": { - "description": "ウォレットの設定が完了したら、ブラウザを更新して拡張機能を読み込みます。", - "title": "ブラウザを更新する" - } - } - }, - "im_token": { - "qr_code": { - "step1": { - "title": "imTokenアプリを開く", - "description": "ウォレットへのアクセスを速くするために、imTokenアプリをホーム画面に置いてください。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "新しいウォレットを作成するか、既存のものをインポートします。" - }, - "step3": { - "title": "右上隅のスキャナーアイコンをタップします", - "description": "新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。" - } - } - }, - "metamask": { - "qr_code": { - "step1": { - "title": "MetaMaskアプリを開きます", - "description": "迅速なアクセスのために、MetaMaskをホーム画面に置くことをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポートします", - "description": "必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。" - }, - "step3": { - "title": "スキャンボタンをタップします", - "description": "スキャンすると、ウォレットを接続するための接続プロンプトが表示されます。" - } - }, - "extension": { - "step1": { - "title": "MetaMaskの拡張機能をインストールします", - "description": "ウォレットへのより速いアクセスのために、MetaMaskをタスクバーにピン留めすることをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "安全な方法を使用してウォレットをバックアップし、秘密のフレーズを誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新", - "description": "ウォレットを設定した後は、下のリンクをクリックしてブラウザを更新し、エクステンションを読み込んでください。" - } - } - }, - "okx": { - "qr_code": { - "step1": { - "title": "OKX Walletアプリを開く", - "description": "OKX Walletをホーム画面に配置して、より早くアクセスできるようにすることをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。" - }, - "step3": { - "title": "スキャンボタンをタップする", - "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。" - } - }, - "extension": { - "step1": { - "title": "OKXウォレット拡張機能をインストールする", - "description": "ウォレットへの迅速なアクセスのため、OKXウォレットをタスクバーにピン止めすることをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成するか、インポートする", - "description": "セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "ウォレットを設定したら、下をクリックしてブラウザをリフレッシュし、拡張機能を読み込みます。" - } - } - }, - "omni": { - "qr_code": { - "step1": { - "title": "Omniアプリを開く", - "description": "Omniをホーム画面に追加して、ウォレットへのアクセスを早めます。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "新しいウォレットを作成するか、既存のものをインポートします。" - }, - "step3": { - "title": "QRアイコンをタップしてスキャン", - "description": "ホーム画面のQRアイコンをタップし、コードをスキャンし、プロンプトを確認して接続します。" - } - } - }, - "token_pocket": { - "qr_code": { - "step1": { - "title": "TokenPocketアプリを開く", - "description": "より速いアクセスのために、TokenPocketをホーム画面に置くことをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポートする", - "description": "必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。" - }, - "step3": { - "title": "スキャンボタンをタップする", - "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。" - } - }, - "extension": { - "step1": { - "title": "TokenPocketエクステンションをインストールする", - "description": "ウォレットへのより早いアクセスのために、TokenPocketをタスクバーにピン留めすることをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "ウォレットを安全な方法でバックアップすることを確認してください。シークレットフレーズを決して他の人と共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新", - "description": "ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。" - } - } - }, - "trust": { - "qr_code": { - "step1": { - "title": "Trust Walletアプリを開く", - "description": "ウォレットへの高速アクセスのために、Trust Walletをホーム画面に置きます。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "新しいウォレットを作成するか、既存のものをインポートします。" - }, - "step3": { - "title": "設定でWalletConnectをタップします", - "description": "新しい接続を選択し、QRコードをスキャンして、プロンプトで接続を確認します。" - } - }, - "extension": { - "step1": { - "title": "Trust Wallet拡張機能をインストールします", - "description": "ブラウザの右上をクリックし、Trust Walletをピン留めして簡単にアクセスできるようにします。" - }, - "step2": { - "title": "ウォレットを作成するかインポートします", - "description": "新しいウォレットを作成するか、既存のものをインポートします。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "Trust Walletの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。" - } - } - }, - "uniswap": { - "qr_code": { - "step1": { - "title": "Uniswapアプリを開く", - "description": "Uniswapウォレットをホーム画面に追加して、ウォレットへのアクセスを高速化します。" - }, - "step2": { - "title": "ウォレットを作成またはインポートする", - "description": "新しいウォレットを作成するか、既存のものをインポートします。" - }, - "step3": { - "title": "QRアイコンをタップしてスキャンする", - "description": "ホーム画面のQRアイコンをタップし、コードをスキャンしてプロンプトを確認して接続します。" - } - } - }, - "zerion": { - "qr_code": { - "step1": { - "title": "Zerionアプリを開く", - "description": "より速くアクセスするために、Zerionをホーム画面に置くことをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成するか、インポートする", - "description": "必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。" - }, - "step3": { - "title": "スキャンボタンを押す", - "description": "スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。" - } - }, - "extension": { - "step1": { - "title": "Zerion拡張機能をインストールする", - "description": "ウォレットへの素早いアクセスのため、Zerionをタスクバーにピン留めすることをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "ウォレットをセキュアな方法でバックアップすることを確認してください。秘密のフレーズを誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "ウォレットをセットアップしたら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。" - } - } - }, - "rainbow": { - "qr_code": { - "step1": { - "title": "Rainbowアプリを開く", - "description": "ウォレットへの早いアクセスのために、Rainbowをホーム画面に置くことをおすすめします。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "電話のバックアップ機能を使用して、簡単にウォレットをバックアップすることができます。" - }, - "step3": { - "title": "スキャンボタンをタップする", - "description": "スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。" - } - } - }, - "enkrypt": { - "extension": { - "step1": { - "description": "ウォレットへのアクセスをより早くするため、タスクバーにEnkrypt Walletをピン留めすることを推奨します。", - "title": "Enkrypt Wallet拡張機能をインストールしてください" - }, - "step2": { - "description": "安全な方法でウォレットのバックアップを必ず取り、秘密のフレーズを誰とも共有しないでください。", - "title": "ウォレットを作成するか、インポートする" - }, - "step3": { - "description": "ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。", - "title": "ブラウザを更新する" - } - } - }, - "frame": { - "extension": { - "step1": { - "description": "ウォレットへのアクセスをより早くするため、タスクバーにFrameをピン留めすることを推奨します。", - "title": "Frameとその付属の拡張機能をインストール" - }, - "step2": { - "description": "ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。", - "title": "ウォレットを作成、またはインポート" - }, - "step3": { - "description": "ウォレットの設定が完了したら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。", - "title": "ブラウザを更新" - } - } - }, - "one_key": { - "extension": { - "step1": { - "title": "OneKey Wallet拡張機能をインストール", - "description": "ウォレットへのアクセスを素早く行うため、OneKey Walletをタスクバーにピン留めすることをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成、またはインポート", - "description": "安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。" - } - } - }, - "phantom": { - "extension": { - "step1": { - "title": "Phantom拡張機能をインストールする", - "description": "ウォレットへの容易なアクセスのため、Phantomをタスクバーにピン留めすることを推奨します。" - }, - "step2": { - "title": "ウォレットを作成またはインポートする", - "description": "安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。" - } - } - }, - "rabby": { - "extension": { - "step1": { - "title": "Rabbyエクステンションをインストールする", - "description": "ウォレットへの素早いアクセスのため、タスクバーにRabbyをピン止めすることをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新", - "description": "ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。" - } - } - }, - "safeheron": { - "extension": { - "step1": { - "title": "コア拡張機能をインストール", - "description": "ウォレットへの素早いアクセスのため、タスクバーにSafeheronをピン止めすることをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。" - } - } - }, - "taho": { - "extension": { - "step1": { - "title": "Taho拡張機能をインストールする", - "description": "ウォレットへのより迅速なアクセスのため、Tahoをタスクバーにピン留めすることをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成するか、インポートする", - "description": "確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。" - } - } - }, - "talisman": { - "extension": { - "step1": { - "title": "Talisman拡張機能をインストールする", - "description": "ウォレットへのより早いアクセスのために、Talismanをタスクバーにピン留めすることをお勧めします。" - }, - "step2": { - "title": "Ethereumウォレットを作成するか、インポートする", - "description": "ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。" - } - } - }, - "xdefi": { - "extension": { - "step1": { - "title": "XDEFI Wallet拡張機能をインストールする", - "description": "XDEFI Walletをタスクバーにピン留めすることで、ウォレットへのアクセスが速くなることをお勧めします。" - }, - "step2": { - "title": "ウォレットの作成またはインポート", - "description": "ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードしてください。" - } - } - }, - "zeal": { - "extension": { - "step1": { - "title": "Zeal 拡張機能をインストール", - "description": "ウォレットに素早くアクセスするために、タスクバーに Zeal をピン留めすることをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。" - } - } - }, - "safepal": { - "extension": { - "step1": { - "title": "SafePal Wallet拡張機能をインストールする", - "description": "ブラウザの右上でクリックし、Easy AccessのためにSafePal Walletをピン留めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポートする", - "description": "新しいウォレットを作成するか、既存のものをインポートします。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "SafePal Walletのセットアップが完了したら、以下をクリックしてブラウザをリフレッシュし、エクステンションをロードします。" - } - }, - "qr_code": { - "step1": { - "title": "SafePal Walletアプリを開く", - "description": "SafePal Walletをホーム画面に置くことで、ウォレットへの素早いアクセスが可能になります。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "新しいウォレットを作成するか、既存のものをインポートします。" - }, - "step3": { - "title": "設定でWalletConnectをタップします", - "description": "新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。" - } - } - }, - "desig": { - "extension": { - "step1": { - "title": "Desig拡張機能をインストール", - "description": "あなたのウォレットへの簡単なアクセスのために、Desigをタスクバーにピン留めすることをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成", - "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。" - } - } - }, - "subwallet": { - "extension": { - "step1": { - "title": "SubWallet拡張機能をインストール", - "description": "ウォレットへのより素早いアクセスのため、SubWalletをタスクバーにピン留めすることをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。" - } - }, - "qr_code": { - "step1": { - "title": "SubWalletアプリを開く", - "description": "より迅速なアクセスのために、SubWalletをホーム画面に置くことをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。" - }, - "step3": { - "title": "「スキャン」ボタンをタップします", - "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。" - } - } - }, - "clv": { - "extension": { - "step1": { - "title": "CLV Wallet拡張機能をインストール", - "description": "ウォレットへのより素早いアクセスのため、CLV Walletをタスクバーにピン留めすることをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。" - }, - "step3": { - "title": "ブラウザを更新する", - "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。" - } - }, - "qr_code": { - "step1": { - "title": "CLV Walletアプリを開く", - "description": "より迅速なアクセスのために、ホーム画面にCLV Walletを置くことをお勧めします。" - }, - "step2": { - "title": "ウォレットを作成またはインポート", - "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。" - }, - "step3": { - "title": "「スキャン」ボタンをタップします", - "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。" - } - } - }, - "okto": { - "qr_code": { - "step1": { - "title": "Oktoアプリを開く", - "description": "素早くアクセスするために、ホーム画面にOktoを追加します" - }, - "step2": { - "title": "MPCウォレットを作成する", - "description": "アカウントを作成し、ウォレットを生成します" - }, - "step3": { - "title": "設定でWalletConnectをタップします", - "description": "右上のScan QRアイコンをタップし、接続するためのプロンプトを確認します。" - } - } - }, - "ledger": { - "desktop": { - "step1": { - "title": "Ledger Liveアプリを開く", - "description": "より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。" - }, - "step2": { - "title": "あなたのLedgerを設定する", - "description": "新しいLedgerを設定するか、既存のものに接続します。" - }, - "step3": { - "title": "接続", - "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。" - } - }, - "qr_code": { - "step1": { - "title": "Ledger Liveアプリを開く", - "description": "より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。" - }, - "step2": { - "title": "あなたのLedgerを設定する", - "description": "デスクトップアプリと同期するか、あなたのLedgerに接続することができます。" - }, - "step3": { - "title": "コードをスキャンする", - "description": "WalletConnectをタップし、スキャナーに切り替えてください。スキャン後、ウォレットを接続するための接続プロンプトが表示されます。" - } - } - } - } -} -`;export{C as default}; -//# sourceMappingURL=ja_JP-GYCPH6AT-B2ynLT17.js.map diff --git a/apps/web/public/assets/ko_KR-V2HAEAHG-MSD6VZVz.js b/apps/web/public/assets/ko_KR-V2HAEAHG-MSD6VZVz.js deleted file mode 100644 index c1d1d9bf..00000000 --- a/apps/web/public/assets/ko_KR-V2HAEAHG-MSD6VZVz.js +++ /dev/null @@ -1,959 +0,0 @@ -(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},C=new u.Error().stack;C&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[C]="c37c2145-f778-464a-9211-651b3aafd55d",u._sentryDebugIdIdentifier="sentry-dbid-c37c2145-f778-464a-9211-651b3aafd55d")}catch{}})();var D=`{ - "connect_wallet": { - "label": "지갑 연결", - "wrong_network": { - "label": "잘못된 네트워크" - } - }, - "intro": { - "title": "지갑이란 무엇인가요?", - "description": "지갑은 디지털 자산을 보내고, 받고, 저장하고, 표시하는 데 사용됩니다. 또한, 모든 웹 사이트에서 새 계정과 비밀번호를 생성할 필요 없이 로그인하는 새로운 방법입니다.", - "digital_asset": { - "title": "당신의 디지털 자산을 위한 집", - "description": "지갑은 이더리움 및 NFT와 같은 디지털 자산을 보내고, 받고, 저장하고, 표시하는데 사용됩니다." - }, - "login": { - "title": "새로운 로그인 방식", - "description": "모든 웹사이트에서 새 계정과 비밀번호를 생성하는 대신, 당신의 지갑을 연결하기만 하면 됩니다." - }, - "get": { - "label": "지갑 가져오기" - }, - "learn_more": { - "label": "더 알아보기" - } - }, - "sign_in": { - "label": "계정을 확인하세요", - "description": "연결을 완료하려면 이 계정의 소유자임을 확인하기 위해 지갑에 메시지에 서명해야 합니다.", - "message": { - "send": "메시지 보내기", - "preparing": "메시지 준비 중...", - "cancel": "취소", - "preparing_error": "메시지 준비 중 오류가 발생했습니다. 다시 시도하세요!" - }, - "signature": { - "waiting": "서명을 기다리는 중...", - "verifying": "서명 검증 중...", - "signing_error": "메시지 서명 중 오류가 발생했습니다. 다시 시도하세요!", - "verifying_error": "서명 검증 중 오류가 발생했습니다. 다시 시도하세요!", - "oops_error": "앗, 문제가 발생했습니다!" - } - }, - "connect": { - "label": "연결", - "title": "지갑 연결", - "new_to_ethereum": { - "description": "이더리움 지갑에 처음 접하시나요?", - "learn_more": { - "label": "더 알아보기" - } - }, - "learn_more": { - "label": "더 알아보기" - }, - "recent": "최근", - "status": { - "opening": "%{wallet}열기 ...", - "connecting": "연결 중", - "connect_mobile": "%{wallet}에서 계속 진행", - "not_installed": "%{wallet} 가 설치되어 있지 않습니다", - "not_available": "%{wallet} 를 사용할 수 없습니다", - "confirm": "확장 프로그램에서 연결을 확인하세요", - "confirm_mobile": "지갑에서 연결 요청을 수락하십시오" - }, - "secondary_action": { - "get": { - "description": "%{wallet}가 없나요?", - "label": "GET" - }, - "install": { - "label": "설치" - }, - "retry": { - "label": "다시 시도" - } - }, - "walletconnect": { - "description": { - "full": "공식 WalletConnect 모달이 필요한가요?", - "compact": "WalletConnect 모달이 필요한가요?" - }, - "open": { - "label": "열기" - } - } - }, - "connect_scan": { - "title": "%{wallet}로 스캔하기", - "fallback_title": "휴대폰으로 스캔하기" - }, - "connector_group": { - "recommended": "추천", - "other": "기타", - "popular": "인기", - "more": "더 보기", - "others": "다른 지갑들" - }, - "get": { - "title": "월렛 받기", - "action": { - "label": "받기" - }, - "mobile": { - "description": "모바일 월렛" - }, - "extension": { - "description": "브라우저 확장 프로그램" - }, - "mobile_and_extension": { - "description": "모바일 지갑 및 확장 프로그램" - }, - "mobile_and_desktop": { - "description": "모바일 및 데스크톱 지갑" - }, - "looking_for": { - "title": "찾고 계신 것이 아닌가요?", - "mobile": { - "description": "메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요." - }, - "desktop": { - "compact_description": "메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요.", - "wide_description": "왼쪽에서 지갑을 선택하여 다른 지갑 제공자를 사용하기 시작하세요." - } - } - }, - "get_options": { - "title": "%{wallet}로 시작하세요", - "short_title": "%{wallet}얻기", - "mobile": { - "title": "모바일용 %{wallet}", - "description": "모바일 지갑으로 이더리움 세계를 탐험하세요.", - "download": { - "label": "앱 받기" - } - }, - "extension": { - "title": "%{browser}용 %{wallet}", - "description": "가장 좋아하는 웹 브라우저에서 바로 지갑에 접근하세요.", - "download": { - "label": "추가하기 %{browser}" - } - }, - "desktop": { - "title": "%{wallet} 용 %{platform}", - "description": "강력한 데스크톱에서 네이티브로 지갑에 접근하세요.", - "download": { - "label": "%{platform}에 추가" - } - } - }, - "get_mobile": { - "title": "설치하기 %{wallet}", - "description": "iOS 또는 Android에서 다운로드하기 위해 휴대폰으로 스캔하세요", - "continue": { - "label": "계속" - } - }, - "get_instructions": { - "mobile": { - "connect": { - "label": "연결" - }, - "learn_more": { - "label": "더 알아보기" - } - }, - "extension": { - "refresh": { - "label": "새로고침" - }, - "learn_more": { - "label": "더 알아보기" - } - }, - "desktop": { - "connect": { - "label": "연결" - }, - "learn_more": { - "label": "더 알아보기" - } - } - }, - "chains": { - "title": "네트워크 전환", - "wrong_network": "잘못된 네트워크를 탐지했습니다, 계속하려면 전환하거나 연결을 해제하세요.", - "confirm": "지갑에서 승인", - "switching_not_supported": "지갑에서 %{appName}네트워크를 전환하는 것은 지원되지 않습니다. 대신 지갑 내에서 네트워크를 전환해 보세요.", - "switching_not_supported_fallback": "당신의 지갑은 이 앱에서 네트워크를 바꾸는 것을 지원하지 않습니다. 대신 지갑 내에서 네트워크를 변경해 보세요.", - "disconnect": "연결 해제", - "connected": "연결됨" - }, - "profile": { - "disconnect": { - "label": "연결 해제" - }, - "copy_address": { - "label": "주소 복사", - "copied": "복사됨!" - }, - "explorer": { - "label": "탐색기에서 더 보기" - }, - "transactions": { - "description": "%{appName} 거래가 여기에 나타납니다...", - "description_fallback": "여기에 트랜잭션이 표시됩니다...", - "recent": { - "title": "최근 거래 내역" - }, - "clear": { - "label": "모두 지우기" - } - } - }, - "wallet_connectors": { - "argent": { - "qr_code": { - "step1": { - "description": "지갑에 더 빠르게 액세스하려면 Argent를 홈 화면에 놓으세요.", - "title": "Argent 앱을 열기" - }, - "step2": { - "description": "지갑과 사용자 이름을 생성하거나 기존의 지갑을 가져옵니다.", - "title": "지갑 생성 또는 가져오기" - }, - "step3": { - "description": "스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다.", - "title": "QR 코드 스캔 버튼을 누르기" - } - } - }, - "bifrost": { - "qr_code": { - "step1": { - "description": "더 빠른 접근을 위해 홈 화면에 Bifrost Wallet을 놓는 것을 권장합니다.", - "title": "Bifrost 지갑 앱을 열어주세요" - }, - "step2": { - "description": "복구 문구를 사용하여 지갑을 생성하거나 가져옵니다.", - "title": "지갑 생성 또는 가져오기" - }, - "step3": { - "description": "스캔 후 연결 프롬프트가 나타나고 지갑을 연결할 수 있습니다.", - "title": "스캔 버튼을 누릅니다" - } - } - }, - "bitget": { - "qr_code": { - "step1": { - "description": "더 빠른 접근을 위해 Bitget 지갑을 홈 화면에 두는 것을 권장합니다.", - "title": "Bitget 지갑 앱을 여세요" - }, - "step2": { - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요.", - "title": "지갑 생성 또는 가져오기" - }, - "step3": { - "description": "스캔 후, 지갑을 연결하라는 연결 요청 메시지가 나타납니다.", - "title": "스캔 버튼을 누르세요" - } - }, - "extension": { - "step1": { - "description": "지갑에 빠르게 액세스하기 위해 Bitget Wallet을 작업 표시줄에 고정하는 것을 권장합니다.", - "title": "Bitget Wallet 확장 프로그램을 설치하세요" - }, - "step2": { - "description": "지갑을 안전한 방법으로 백업하세요. 절대로 비밀 문구를 누구와도 공유하지 마세요.", - "title": "지갑 생성 또는 가져오기" - }, - "step3": { - "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.", - "title": "브라우저를 새로 고침하세요" - } - } - }, - "bitski": { - "extension": { - "step1": { - "description": "지갑에 더 빠르게 액세스하기 위해 Bitski를 작업 표시줄에 고정하는 것을 권장합니다.", - "title": "Bitski 확장 프로그램을 설치합니다" - }, - "step2": { - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 비밀 문구를 누구와도 공유하지 마세요.", - "title": "지갑 만들기 또는 가져오기" - }, - "step3": { - "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.", - "title": "브라우저를 새로고침하세요" - } - } - }, - "coin98": { - "qr_code": { - "step1": { - "description": "지갑에 빠르게 액세스하기 위해 Coin98 Wallet을 홈 화면에 두는 것을 권장합니다.", - "title": "Coin98 Wallet 앱을 열기" - }, - "step2": { - "description": "휴대폰에서 백업 기능을 이용하여 지갑을 쉽게 백업할 수 있습니다.", - "title": "지갑 만들기 또는 가져오기" - }, - "step3": { - "description": "스캔한 후 연결 프롬프트가 나타나 지갑을 연결하도록 합니다.", - "title": "WalletConnect 버튼을 누르세요" - } - }, - "extension": { - "step1": { - "description": "브라우저 오른쪽 상단을 클릭하고 쉽게 액세스할 수 있도록 Coin98 Wallet을 고정하세요.", - "title": "Coin98 Wallet 확장 프로그램을 설치하세요" - }, - "step2": { - "description": "새로운 지갑을 만들거나 기존의 지갑을 가져옵니다.", - "title": "지갑을 만들거나 가져옵니다" - }, - "step3": { - "description": "Coin98 Wallet을 설정하면 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.", - "title": "브라우저를 새로고침 하세요" - } - } - }, - "coinbase": { - "qr_code": { - "step1": { - "description": "더 빠른 액세스를 위해 Coinbase Wallet을 홈 화면에 두는 것을 권장합니다.", - "title": "Coinbase Wallet 앱을 엽니다" - }, - "step2": { - "description": "클라우드 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다.", - "title": "지갑 생성 또는 가져오기" - }, - "step3": { - "description": "스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다.", - "title": "스캔 버튼을 탭하세요" - } - }, - "extension": { - "step1": { - "description": "지갑에 더 빠르게 접근할 수 있도록 Coinbase Wallet을 작업 표시줄에 고정하는 것을 권장합니다.", - "title": "Coinbase Wallet 확장 프로그램을 설치하세요" - }, - "step2": { - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 비밀 문구는 절대로 누구와도 공유하지 마세요.", - "title": "지갑 만들기 또는 가져오기" - }, - "step3": { - "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.", - "title": "브라우저 새로고침" - } - } - }, - "core": { - "qr_code": { - "step1": { - "description": "지갑에 빠르게 액세스할 수 있도록 Core를 홈 화면에 두는 것을 추천드립니다.", - "title": "Core 앱 열기" - }, - "step2": { - "description": "휴대폰에서 우리의 백업 기능을 이용해 지갑을 쉽게 백업할 수 있습니다.", - "title": "지갑 만들기 또는 가져오기" - }, - "step3": { - "description": "스캔 한 후에는 지갑을 연결하라는 연결 요청이 표시됩니다.", - "title": "WalletConnect 버튼을 누르세요" - } - }, - "extension": { - "step1": { - "description": "지갑에 더 빠르게 액세스하기 위해 작업 표시줄에 Core를 고정하는 것을 권장합니다.", - "title": "Core 확장 프로그램을 설치하세요" - }, - "step2": { - "description": "안전한 방법을 사용하여 지갑을 백업해야 합니다. 절대로 비밀 문구를 다른 사람과 공유하지 마세요.", - "title": "지갑 만들기 또는 가져오기" - }, - "step3": { - "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.", - "title": "브라우저를 새로 고치세요" - } - } - }, - "fox": { - "qr_code": { - "step1": { - "description": "FoxWallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.", - "title": "FoxWallet 앱을 열어주세요" - }, - "step2": { - "description": "지갑을 안전한 방법으로 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요.", - "title": "지갑을 생성하거나 가져오기" - }, - "step3": { - "description": "스캔 후, 지갑을 연결하라는 연결 프롬프트가 표시됩니다.", - "title": "스캔 버튼을 누르세요" - } - } - }, - "frontier": { - "qr_code": { - "step1": { - "description": "Frontier Wallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.", - "title": "Frontier Wallet 앱을 열어주세요" - }, - "step2": { - "description": "지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.", - "title": "지갑 생성 또는 가져오기" - }, - "step3": { - "description": "스캔 후에 지갑을 연결하라는 연결 프롬프트가 표시됩니다.", - "title": "스캔 버튼을 누르세요" - } - }, - "extension": { - "step1": { - "description": "지갑에 더 빠르게 액세스 할 수 있도록 Frontier Wallet을 작업 표시줄에 고정하는 것을 권장합니다.", - "title": "Frontier Wallet 확장 프로그램 설치" - }, - "step2": { - "description": "지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.", - "title": "지갑 생성 또는 가져오기" - }, - "step3": { - "description": "지갑을 설정한 후에 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.", - "title": "브라우저를 새로 고칩니다" - } - } - }, - "im_token": { - "qr_code": { - "step1": { - "title": "imToken 앱을 연다", - "description": "당신의 지갑에 더 빠르게 접근하기 위해 imToken 앱을 홈 화면에 둡니다." - }, - "step2": { - "title": "지갑을 만들거나 불러옵니다", - "description": "새 지갑을 생성하거나 기존의 것을 가져옵니다." - }, - "step3": { - "title": "오른쪽 상단의 스캐너 아이콘을 누릅니다", - "description": "새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다." - } - } - }, - "metamask": { - "qr_code": { - "step1": { - "title": "MetaMask 앱을 엽니다", - "description": "빠른 액세스를 위해 MetaMask를 홈 화면에 두는 것을 권장합니다." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "당신의 지갑을 안전한 방법으로 백업하는 것을 잊지 마세요. 절대로 비밀 구절을 공유하지 마세요." - }, - "step3": { - "title": "스캔 버튼을 누릅니다", - "description": "스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다." - } - }, - "extension": { - "step1": { - "title": "MetaMask 확장 프로그램을 설치하세요", - "description": "지갑에 빠르게 접근하기 위해 MetaMask를 작업표시줄에 고정하는 것을 추천합니다." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 결코 비밀 문구를 다른 사람과 공유하지 마세요." - }, - "step3": { - "title": "브라우저를 새로 고치세요", - "description": "지갑 설정을 마친 후에는 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요." - } - } - }, - "okx": { - "qr_code": { - "step1": { - "title": "OKX Wallet 앱을 열기", - "description": "더 빠른 접근을 위해 OKX 지갑을 홈 화면에 두는 것을 추천합니다." - }, - "step2": { - "title": "지갑 만들기 또는 불러오기", - "description": "안전한 방법으로 지갑을 백업하세요. 절대 비밀 문구를 다른 사람과 공유하지 마세요." - }, - "step3": { - "title": "스캔 버튼을 탭하세요", - "description": "스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다." - } - }, - "extension": { - "step1": { - "title": "OKX 지갑 확장 프로그램 설치하기", - "description": "지갑에 빠르게 접근할 수 있도록 OKX 지갑을 작업 표시줄에 고정하는 것을 추천합니다." - }, - "step2": { - "title": "지갑 만들기 또는 불러오기", - "description": "당신의 지갑을 안전한 방법으로 백업해야 합니다. 비밀 문구를 절대로 다른 사람과 공유하지 마세요." - }, - "step3": { - "title": "브라우저를 새로 고치세요", - "description": "지갑을 설정한 후, 브라우저를 새로고침하고 확장 프로그램을 로드하기 위해 아래를 클릭하세요." - } - } - }, - "omni": { - "qr_code": { - "step1": { - "title": "Omni 앱을 열기", - "description": "더 빠른 액세스를 위해 Omni를 홈 스크린에 추가하세요." - }, - "step2": { - "title": "지갑 만들기 또는 가져오기", - "description": "새로운 지갑을 만들거나 기존의 하나를 가져옵니다." - }, - "step3": { - "title": "QR 아이콘을 탭하고 스캔하기", - "description": "홈 화면의 QR 아이콘을 탭하고, 코드를 스캔하고 프롬프트를 확인하여 연결하세요." - } - } - }, - "token_pocket": { - "qr_code": { - "step1": { - "title": "TokenPocket 앱을 열어주세요", - "description": "빠른 접근을 위해 홈 화면에 TokenPocket을 추가하는 것을 권장합니다." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구에게도 비밀 문구를 공유하지 마세요." - }, - "step3": { - "title": "스캔 버튼을 탭하세요", - "description": "스캔 후에 지갑을 연결하라는 프롬프트가 표시됩니다." - } - }, - "extension": { - "step1": { - "title": "TokenPocket 확장 프로그램을 설치하세요", - "description": "지갑에 빠르게 접근하기 위해 TokenPocket를 작업 표시줄에 고정하는 것을 추천합니다." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요." - }, - "step3": { - "title": "브라우저 새로고침", - "description": "지갑을 설정하면 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다." - } - } - }, - "trust": { - "qr_code": { - "step1": { - "title": "Trust Wallet 앱을 열기", - "description": "지갑에 빠르게 접근하기 위해 Trust Wallet을 홈 스크린에 두세요." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "새로운 지갑을 생성하거나 기존의 것을 가져오세요." - }, - "step3": { - "title": "설정에서 WalletConnect를 탭하세요", - "description": "새 연결을 선택한 다음 QR 코드를 스캔하고, 연결을 확인하는 프롬프트를 확인하세요." - } - }, - "extension": { - "step1": { - "title": "Trust Wallet 확장 프로그램을 설치하세요", - "description": "브라우저의 오른쪽 상단을 클릭하고 Trust Wallet을 고정하여 쉽게 접근하세요." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "새로운 지갑을 생성하거나 기존의 것을 가져오세요." - }, - "step3": { - "title": "브라우저를 새로고침하세요", - "description": "Trust Wallet을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다." - } - } - }, - "uniswap": { - "qr_code": { - "step1": { - "title": "Uniswap 앱을 엽니다", - "description": "Uniswap Wallet을 홈 화면에 추가하여 지갑에 더 빠르게 액세스하세요." - }, - "step2": { - "title": "지갑을 만들거나 가져오기", - "description": "새 지갑을 생성하거나 기존의 것을 가져옵니다." - }, - "step3": { - "title": "QR 아이콘을 누르고 스캔하기", - "description": "홈화면의 QR 아이콘을 누르고 코드를 스캔하고 프롬프트를 확인하여 연결하세요." - } - } - }, - "zerion": { - "qr_code": { - "step1": { - "title": "Zerion 앱을 엽니다", - "description": "더 빠른 접근을 위해 Zerion을 홈 화면에 두는 것을 권장합니다." - }, - "step2": { - "title": "지갑 만들기 또는 가져오기", - "description": "안전한 방법으로 지갑을 백업하세요. 절대로 비밀 구절을 누군가와 공유하지 마세요." - }, - "step3": { - "title": "스캔 버튼을 탭하세요", - "description": "스캔 후 연결 프롬프트가 나타나 지갑을 연결하세요." - } - }, - "extension": { - "step1": { - "title": "Zerion 확장 프로그램을 설치하세요", - "description": "지갑에 더 빠르게 접근할 수 있도록 Zerion을 작업 표시줄에 고정하는 것을 권장합니다." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 비밀 구문을 절대로 다른 사람과 공유하지 마세요." - }, - "step3": { - "title": "브라우저를 새로 고치세요", - "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요." - } - } - }, - "rainbow": { - "qr_code": { - "step1": { - "title": "Rainbow 앱 열기", - "description": "지갑에 더 빠르게 접근하기 위해 홈 화면에 Rainbow를 두는 것을 추천합니다." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "휴대폰에 있는 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다." - }, - "step3": { - "title": "스캔 버튼을 누르세요", - "description": "스캔 후, 지갑을 연결하라는 연결 프롬프트가 나타납니다." - } - } - }, - "enkrypt": { - "extension": { - "step1": { - "description": "지갑에 더 빠르게 접근하기 위해 작업 표시줄에 Enkrypt Wallet를 고정하는 것을 추천합니다.", - "title": "Enkrypt Wallet 확장 프로그램을 설치하세요" - }, - "step2": { - "description": "지갑을 안전한 방법으로 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요.", - "title": "지갑 생성 또는 가져오기" - }, - "step3": { - "description": "지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.", - "title": "브라우저 새로고침" - } - } - }, - "frame": { - "extension": { - "step1": { - "description": "지갑에 더 빠르게 접근할 수 있도록 Frame을 작업 표시줄에 고정하는 것을 추천합니다.", - "title": "Frame 및 동반 확장 프로그램 설치" - }, - "step2": { - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 다른 사람과 공유하지 마세요.", - "title": "지갑 생성 또는 가져오기" - }, - "step3": { - "description": "지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.", - "title": "브라우저 새로고침" - } - } - }, - "one_key": { - "extension": { - "step1": { - "title": "OneKey Wallet 확장 프로그램을 설치하세요", - "description": "지갑에 빠르게 접근할 수 있도록 OneKey Wallet을 작업 표시줄에 고정하는 것을 권장합니다." - }, - "step2": { - "title": "지갑 생성 또는 불러오기", - "description": "지갑을 안전한 방법으로 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요." - }, - "step3": { - "title": "브라우저를 새로고침 하세요", - "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요." - } - } - }, - "phantom": { - "extension": { - "step1": { - "title": "Phantom 확장 프로그램을 설치하세요", - "description": "지갑에 더 쉽게 접근할 수 있도록 Phantom을 작업 표시줄에 고정하는 것을 권장합니다." - }, - "step2": { - "title": "지갑 생성 또는 불러오기", - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구와도 비밀 복구 구문을 공유하지 마세요." - }, - "step3": { - "title": "브라우저를 새로고침 하세요", - "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요." - } - } - }, - "rabby": { - "extension": { - "step1": { - "title": "Rabby 확장 프로그램을 설치하세요", - "description": "지갑에 더 빠르게 액세스할 수 있도록 Rabby를 작업표시줄에 고정하는 것을 권장합니다." - }, - "step2": { - "title": "지갑 만들기 또는 가져오기", - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구와도 비밀 구문을 공유하지 마세요." - }, - "step3": { - "title": "브라우저를 새로고침 하세요", - "description": "지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다." - } - } - }, - "safeheron": { - "extension": { - "step1": { - "title": "코어 확장 프로그램 설치", - "description": "지갑에 빠르게 액세스하기 위해 Safeheron을 작업 표시줄에 고정하는 것을 권장합니다." - }, - "step2": { - "title": "지갑 만들기 또는 가져오기", - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 비밀 문구를 절대 다른 사람과 공유하지 마세요." - }, - "step3": { - "title": "브라우저 새로고침", - "description": "지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다." - } - } - }, - "taho": { - "extension": { - "step1": { - "title": "Taho 확장 프로그램 설치", - "description": "지갑에 더 빠르게 액세스하기 위해 Taho를 작업 표시줄에 고정하는 것을 추천합니다." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 결코 비밀 문구를 누군가와 공유하지 마세요." - }, - "step3": { - "title": "브라우저를 새로고침 하세요", - "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요." - } - } - }, - "talisman": { - "extension": { - "step1": { - "title": "탈리스만 확장 프로그램 설치", - "description": "지갑에 더 빠르게 접근하기 위해 Talisman을 작업 표시줄에 고정하는 것을 추천합니다." - }, - "step2": { - "title": "이더리움 지갑 생성 또는 가져오기", - "description": "반드시 안전한 방법을 사용하여 지갑을 백업하세요. 복구 문구를 누구와도 공유하지 마세요." - }, - "step3": { - "title": "브라우저를 새로고침 하세요", - "description": "지갑을 설정 한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요." - } - } - }, - "xdefi": { - "extension": { - "step1": { - "title": "XDEFI 지갑 확장 프로그램을 설치하세요", - "description": "지갑에 빠르게 액세스하기 위해 작업 표시줄에 XDEFI Wallet을 고정하는 것을 권장합니다." - }, - "step2": { - "title": "지갑을 만들거나 가져오기", - "description": "반드시 안전한 방법을 사용하여 지갑을 백업하세요. 비밀 문구를 누구와도 공유하지 마세요." - }, - "step3": { - "title": "브라우저를 새로고침 하세요", - "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요." - } - } - }, - "zeal": { - "extension": { - "step1": { - "title": "Zeal 확장 프로그램을 설치하세요", - "description": "월렛에 더 빠르게 액세스할 수 있도록 Zeal을 작업 표시 줄에 고정하는 것을 권장합니다." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요." - }, - "step3": { - "title": "브라우저를 새로 고침하세요", - "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요." - } - } - }, - "safepal": { - "extension": { - "step1": { - "title": "SafePal Wallet 확장 프로그램을 설치하세요", - "description": "브라우저의 오른쪽 상단에서 클릭하고 SafePal Wallet을 고정하여 쉽게 접근하세요." - }, - "step2": { - "title": "지갑을 만들거나 가져옵니다", - "description": "새로운 지갑을 만들거나 기존의 지갑을 가져옵니다." - }, - "step3": { - "title": "브라우저를 새로 고침하세요", - "description": "SafePal Wallet을 설정한 후에는 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요." - } - }, - "qr_code": { - "step1": { - "title": "SafePal Wallet 앱을 여세요", - "description": "월렛에 빠르게 액세스할 수 있도록 SafePal Wallet을 홈 화면에 두세요." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "새로운 지갑을 만들거나 기존의 지갑을 가져옵니다." - }, - "step3": { - "title": "설정에서 WalletConnect를 탭하세요", - "description": "새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다." - } - } - }, - "desig": { - "extension": { - "step1": { - "title": "Desig 확장 프로그램 설치", - "description": "당신의 지갑에 더 쉽게 접근하기 위해 작업 표시줄에 Desig을 고정하는 것을 권장합니다." - }, - "step2": { - "title": "지갑 생성", - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요." - }, - "step3": { - "title": "브라우저를 새로 고침하세요", - "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요." - } - } - }, - "subwallet": { - "extension": { - "step1": { - "title": "SubWallet 확장 프로그램 설치", - "description": "당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 SubWallet을 고정하는 것을 권장합니다." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "반드시 안전한 방법을 사용하여 지갑을 백업하세요. 복구 문구를 누구와도 공유하지 마세요." - }, - "step3": { - "title": "브라우저를 새로 고침하세요", - "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요." - } - }, - "qr_code": { - "step1": { - "title": "SubWallet 앱 열기", - "description": "더 빠른 접근을 위해 SubWallet을 홈 화면에 두는 것을 권장합니다." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요." - }, - "step3": { - "title": "스캔 버튼을 누릅니다", - "description": "스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다." - } - } - }, - "clv": { - "extension": { - "step1": { - "title": "CLV Wallet 확장 프로그램 설치", - "description": "당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 CLV Wallet을 고정하는 것을 권장합니다." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요." - }, - "step3": { - "title": "브라우저를 새로 고침하세요", - "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요." - } - }, - "qr_code": { - "step1": { - "title": "CLV Wallet 앱을 엽니다", - "description": "더 빠른 접근을 위해 CLV Wallet을 홈 화면에 놓는 것이 좋습니다." - }, - "step2": { - "title": "지갑 생성 또는 가져오기", - "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요." - }, - "step3": { - "title": "스캔 버튼을 누릅니다", - "description": "스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다." - } - } - }, - "okto": { - "qr_code": { - "step1": { - "title": "Okto 앱을 엽니다", - "description": "빠른 접근을 위해 Okto를 홈 화면에 추가합니다" - }, - "step2": { - "title": "MPC Wallet을 만듭니다", - "description": "계정을 만들고 지갑을 생성합니다" - }, - "step3": { - "title": "설정에서 WalletConnect를 탭하세요", - "description": "오른쪽 상단의 QR 아이콘을 탭하고 연결하려면 알림을 확인합니다." - } - } - }, - "ledger": { - "desktop": { - "step1": { - "title": "Ledger Live 앱을 엽니다", - "description": "빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다." - }, - "step2": { - "title": "Ledger 설정", - "description": "새 Ledger를 설정하거나 기존 Ledger에 연결하세요." - }, - "step3": { - "title": "연결", - "description": "스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다." - } - }, - "qr_code": { - "step1": { - "title": "Ledger Live 앱을 엽니다", - "description": "빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다." - }, - "step2": { - "title": "Ledger 설정", - "description": "데스크톱 앱과 동기화하거나 Ledger를 연결할 수 있습니다." - }, - "step3": { - "title": "코드를 스캔하세요", - "description": "WalletConnect를 탭하고 스캐너로 전환합니다. 스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다." - } - } - } - } -} -`;export{D as default}; -//# sourceMappingURL=ko_KR-V2HAEAHG-MSD6VZVz.js.map diff --git a/apps/web/public/assets/lnaccess-controller-BNSJ7_eO.js b/apps/web/public/assets/lnaccess-controller-BNSJ7_eO.js deleted file mode 100644 index 71e56bd0..00000000 --- a/apps/web/public/assets/lnaccess-controller-BNSJ7_eO.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-Cl-fQh5M.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="44bf892d-b58e-4606-bbce-a096cd16ec90",e._sentryDebugIdIdentifier="sentry-dbid-44bf892d-b58e-4606-bbce-a096cd16ec90")}catch{}})();const s=[{inputs:[{internalType:"address",name:"_dao",type:"address"},{internalType:"address",name:"_endpoint",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"lzRemoteChainId",type:"uint16"},{indexed:!1,internalType:"bytes",name:"srcAddress",type:"bytes"},{indexed:!1,internalType:"bool",name:"successed",type:"bool"}],name:"CallResult",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"lzRemoteChainId",type:"uint16"},{indexed:!1,internalType:"bytes",name:"srcAddress",type:"bytes"},{indexed:!1,internalType:"address",name:"remoteAppAddress",type:"address"}],name:"CallerUnMatched",type:"event"},{inputs:[{internalType:"address",name:"appAddress",type:"address"},{internalType:"bool",name:"enable",type:"bool"}],name:"authoriseAppCaller",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"callerWhiteList",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"endpoint",outputs:[{internalType:"contract ILayerZeroEndpoint",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes",name:"_message",type:"bytes"}],name:"fee",outputs:[{internalType:"uint256",name:"nativeFee",type:"uint256"},{internalType:"uint256",name:"zroFee",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"_srcChainId",type:"uint16"},{internalType:"bytes",name:"_srcAddress",type:"bytes"},{internalType:"uint64",name:"",type:"uint64"},{internalType:"bytes",name:"_payload",type:"bytes"}],name:"lzReceive",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"}],name:"registerRemoteReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"}],name:"registerRemoteSender",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"remoteAppReceivers",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"remoteAppSenders",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"remoteMessagers",outputs:[{internalType:"uint16",name:"lzRemoteChainId",type:"uint16"},{internalType:"address",name:"messager",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes",name:"_message",type:"bytes"},{internalType:"bytes",name:"_params",type:"bytes"}],name:"sendMessage",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_appRemoteChainId",type:"uint256"},{internalType:"uint16",name:"_lzRemoteChainId",type:"uint16"},{internalType:"address",name:"_remoteMessager",type:"address"}],name:"setRemoteMessager",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"",type:"uint16"}],name:"trustedRemotes",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}];export{s as default}; -//# sourceMappingURL=lnaccess-controller-BNSJ7_eO.js.map diff --git a/apps/web/public/assets/lnaccess-controller-CY66MO2d.js b/apps/web/public/assets/lnaccess-controller-CY66MO2d.js deleted file mode 100644 index 02d58e08..00000000 --- a/apps/web/public/assets/lnaccess-controller-CY66MO2d.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-Bl6Lkf65.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="44bf892d-b58e-4606-bbce-a096cd16ec90",e._sentryDebugIdIdentifier="sentry-dbid-44bf892d-b58e-4606-bbce-a096cd16ec90")}catch{}})();const s=[{inputs:[{internalType:"address",name:"_dao",type:"address"},{internalType:"address",name:"_endpoint",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"lzRemoteChainId",type:"uint16"},{indexed:!1,internalType:"bytes",name:"srcAddress",type:"bytes"},{indexed:!1,internalType:"bool",name:"successed",type:"bool"}],name:"CallResult",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"lzRemoteChainId",type:"uint16"},{indexed:!1,internalType:"bytes",name:"srcAddress",type:"bytes"},{indexed:!1,internalType:"address",name:"remoteAppAddress",type:"address"}],name:"CallerUnMatched",type:"event"},{inputs:[{internalType:"address",name:"appAddress",type:"address"},{internalType:"bool",name:"enable",type:"bool"}],name:"authoriseAppCaller",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"callerWhiteList",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"endpoint",outputs:[{internalType:"contract ILayerZeroEndpoint",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes",name:"_message",type:"bytes"}],name:"fee",outputs:[{internalType:"uint256",name:"nativeFee",type:"uint256"},{internalType:"uint256",name:"zroFee",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"_srcChainId",type:"uint16"},{internalType:"bytes",name:"_srcAddress",type:"bytes"},{internalType:"uint64",name:"",type:"uint64"},{internalType:"bytes",name:"_payload",type:"bytes"}],name:"lzReceive",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"}],name:"registerRemoteReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"}],name:"registerRemoteSender",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"remoteAppReceivers",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"remoteAppSenders",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"remoteMessagers",outputs:[{internalType:"uint16",name:"lzRemoteChainId",type:"uint16"},{internalType:"address",name:"messager",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes",name:"_message",type:"bytes"},{internalType:"bytes",name:"_params",type:"bytes"}],name:"sendMessage",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_appRemoteChainId",type:"uint256"},{internalType:"uint16",name:"_lzRemoteChainId",type:"uint16"},{internalType:"address",name:"_remoteMessager",type:"address"}],name:"setRemoteMessager",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"",type:"uint16"}],name:"trustedRemotes",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}];export{s as default}; -//# sourceMappingURL=lnaccess-controller-CY66MO2d.js.map diff --git a/apps/web/public/assets/lnaccess-controller-KB4pI6ch.js b/apps/web/public/assets/lnaccess-controller-KB4pI6ch.js deleted file mode 100644 index 3d334dd4..00000000 --- a/apps/web/public/assets/lnaccess-controller-KB4pI6ch.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-CTwKNzhK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="44bf892d-b58e-4606-bbce-a096cd16ec90",e._sentryDebugIdIdentifier="sentry-dbid-44bf892d-b58e-4606-bbce-a096cd16ec90")}catch{}})();const s=[{inputs:[{internalType:"address",name:"_dao",type:"address"},{internalType:"address",name:"_endpoint",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"lzRemoteChainId",type:"uint16"},{indexed:!1,internalType:"bytes",name:"srcAddress",type:"bytes"},{indexed:!1,internalType:"bool",name:"successed",type:"bool"}],name:"CallResult",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"lzRemoteChainId",type:"uint16"},{indexed:!1,internalType:"bytes",name:"srcAddress",type:"bytes"},{indexed:!1,internalType:"address",name:"remoteAppAddress",type:"address"}],name:"CallerUnMatched",type:"event"},{inputs:[{internalType:"address",name:"appAddress",type:"address"},{internalType:"bool",name:"enable",type:"bool"}],name:"authoriseAppCaller",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"callerWhiteList",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"endpoint",outputs:[{internalType:"contract ILayerZeroEndpoint",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes",name:"_message",type:"bytes"}],name:"fee",outputs:[{internalType:"uint256",name:"nativeFee",type:"uint256"},{internalType:"uint256",name:"zroFee",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"_srcChainId",type:"uint16"},{internalType:"bytes",name:"_srcAddress",type:"bytes"},{internalType:"uint64",name:"",type:"uint64"},{internalType:"bytes",name:"_payload",type:"bytes"}],name:"lzReceive",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"}],name:"registerRemoteReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"}],name:"registerRemoteSender",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"remoteAppReceivers",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"remoteAppSenders",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"remoteMessagers",outputs:[{internalType:"uint16",name:"lzRemoteChainId",type:"uint16"},{internalType:"address",name:"messager",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes",name:"_message",type:"bytes"},{internalType:"bytes",name:"_params",type:"bytes"}],name:"sendMessage",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_appRemoteChainId",type:"uint256"},{internalType:"uint16",name:"_lzRemoteChainId",type:"uint16"},{internalType:"address",name:"_remoteMessager",type:"address"}],name:"setRemoteMessager",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"",type:"uint16"}],name:"trustedRemotes",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}];export{s as default}; -//# sourceMappingURL=lnaccess-controller-KB4pI6ch.js.map diff --git a/apps/web/public/assets/lnbridge-v3-CO3fue1_.js b/apps/web/public/assets/lnbridge-v3-CO3fue1_.js deleted file mode 100644 index cf1e74a4..00000000 --- a/apps/web/public/assets/lnbridge-v3-CO3fue1_.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-Bl6Lkf65.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="612ba5cb-3f2a-4181-9155-0d2bcdf67957",e._sentryDebugIdIdentifier="sentry-dbid-612ba5cb-3f2a-4181-9155-0d2bcdf67957")}catch{}})();const i=[{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"tokenInfoKey",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"address",name:"receiver",type:"address"}],name:"FeeIncomeClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32[]",name:"transferIds",type:"bytes32[]"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"LiquidityWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"bool",name:"paused",type:"bool"}],name:"LnProviderPaused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"baseFee",type:"uint112"},{indexed:!1,internalType:"uint16",name:"liquidityfeeRate",type:"uint16"},{indexed:!1,internalType:"uint112",name:"transferLimit",type:"uint112"}],name:"LnProviderUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"uint256",name:"updatedPanaltyReserve",type:"uint256"}],name:"PenaltyReserveUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"address",name:"slasher",type:"address"}],name:"SlashRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"tokenInfoKey",type:"bytes32"},{indexed:!1,internalType:"uint112",name:"protocolFee",type:"uint112"},{indexed:!1,internalType:"uint112",name:"penalty",type:"uint112"},{indexed:!1,internalType:"uint112",name:"sourceDecimals",type:"uint112"},{indexed:!1,internalType:"uint112",name:"targetDecimals",type:"uint112"}],name:"TokenInfoUpdated",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],indexed:!1,internalType:"struct LnBridgeSourceV3.TransferParams",name:"params",type:"tuple"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"uint112",name:"targetAmount",type:"uint112"},{indexed:!1,internalType:"uint112",name:"fee",type:"uint112"}],name:"TokenLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"key",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"protocolFee",type:"uint112"},{indexed:!1,internalType:"uint112",name:"penalty",type:"uint112"},{indexed:!1,internalType:"uint32",name:"index",type:"uint32"}],name:"TokenRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"}],name:"TransferFilled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"slasher",type:"address"},{indexed:!1,internalType:"uint112",name:"slashAmount",type:"uint112"}],name:"TransferSlashed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[],name:"LIQUIDITY_FEE_RATE_BASE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"LOCK_STATUS_LOCKED",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"LOCK_STATUS_SLASHED",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"LOCK_STATUS_WITHDRAWN",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"LOCK_TIME_DISTANCE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_TRANSFER_AMOUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"SLASH_EXPIRE_TIME",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_tokenInfoKey",type:"bytes32"},{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"address",name:"_receiver",type:"address"}],name:"claimProtocolFeeIncome",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"key",type:"bytes32"}],name:"deleteTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"depositPenaltyReserve",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"fillTransfers",outputs:[{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"address",name:"provider",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"getProviderKey",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"provider",type:"address"}],name:"getProviderStateKey",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"getTokenKey",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct LnBridgeSourceV3.TransferParams",name:"_params",type:"tuple"},{internalType:"uint112",name:"_remoteAmount",type:"uint112"}],name:"getTransferId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"dao",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct LnBridgeSourceV3.TransferParams",name:"_params",type:"tuple"}],name:"lockAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lockInfos",outputs:[{internalType:"uint112",name:"amountWithFeeAndPenalty",type:"uint112"},{internalType:"uint32",name:"tokenIndex",type:"uint32"},{internalType:"uint8",name:"status",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"messagers",outputs:[{internalType:"address",name:"sendService",type:"address"},{internalType:"address",name:"receiveService",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"penaltyReserves",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingDao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerUnpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_baseFee",type:"uint112"},{internalType:"uint16",name:"_liquidityFeeRate",type:"uint16"},{internalType:"uint112",name:"_transferLimit",type:"uint112"}],name:"registerLnProvider",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_protocolFee",type:"uint112"},{internalType:"uint112",name:"_penalty",type:"uint112"},{internalType:"uint8",name:"_sourceDecimals",type:"uint8"},{internalType:"uint8",name:"_targetDecimals",type:"uint8"},{internalType:"uint32",name:"_index",type:"uint32"}],name:"registerTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"sourceAmount",type:"uint112"},{internalType:"uint112",name:"targetAmount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct LnBridgeTargetV3.RelayParams",name:"_params",type:"tuple"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"},{internalType:"bool",name:"_relayBySelf",type:"bool"}],name:"relay",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"sourceAmount",type:"uint112"},{internalType:"uint112",name:"targetAmount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct LnBridgeTargetV3.RelayParams",name:"_params",type:"tuple"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"},{internalType:"uint256",name:"_feePrepaid",type:"uint256"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestSlashAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32[]",name:"_transferIds",type:"bytes32[]"},{internalType:"address",name:"_provider",type:"address"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestWithdrawLiquidity",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"transferId",type:"bytes32"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"retrySlash",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setReceiveService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setSendService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_transferId",type:"bytes32"},{internalType:"address",name:"_lnProvider",type:"address"},{internalType:"address",name:"_slasher",type:"address"}],name:"slash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"slashInfos",outputs:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"slasher",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"srcProviders",outputs:[{internalType:"uint112",name:"baseFee",type:"uint112"},{internalType:"uint16",name:"liquidityFeeRate",type:"uint16"},{internalType:"uint112",name:"transferLimit",type:"uint112"},{internalType:"bool",name:"pause",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32",name:"",type:"uint32"}],name:"tokenIndexer",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"tokenInfos",outputs:[{components:[{internalType:"uint112",name:"protocolFee",type:"uint112"},{internalType:"uint112",name:"penalty",type:"uint112"},{internalType:"uint8",name:"sourceDecimals",type:"uint8"},{internalType:"uint8",name:"targetDecimals",type:"uint8"}],internalType:"struct LnBridgeSourceV3.TokenConfigure",name:"config",type:"tuple"},{internalType:"uint32",name:"index",type:"uint32"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint256",name:"protocolFeeIncome",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"totalFee",outputs:[{internalType:"uint112",name:"",type:"uint112"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_protocolFee",type:"uint112"},{internalType:"uint112",name:"_penalty",type:"uint112"},{internalType:"uint8",name:"_sourceDecimals",type:"uint8"},{internalType:"uint8",name:"_targetDecimals",type:"uint8"}],name:"updateTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"_transferIds",type:"bytes32[]"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"}],name:"withdrawLiquidity",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"withdrawPenaltyReserve",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];export{i as default}; -//# sourceMappingURL=lnbridge-v3-CO3fue1_.js.map diff --git a/apps/web/public/assets/lnbridge-v3-Cee8iMxl.js b/apps/web/public/assets/lnbridge-v3-Cee8iMxl.js deleted file mode 100644 index df140e7e..00000000 --- a/apps/web/public/assets/lnbridge-v3-Cee8iMxl.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-Cl-fQh5M.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="612ba5cb-3f2a-4181-9155-0d2bcdf67957",e._sentryDebugIdIdentifier="sentry-dbid-612ba5cb-3f2a-4181-9155-0d2bcdf67957")}catch{}})();const i=[{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"tokenInfoKey",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"address",name:"receiver",type:"address"}],name:"FeeIncomeClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32[]",name:"transferIds",type:"bytes32[]"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"LiquidityWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"bool",name:"paused",type:"bool"}],name:"LnProviderPaused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"baseFee",type:"uint112"},{indexed:!1,internalType:"uint16",name:"liquidityfeeRate",type:"uint16"},{indexed:!1,internalType:"uint112",name:"transferLimit",type:"uint112"}],name:"LnProviderUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"uint256",name:"updatedPanaltyReserve",type:"uint256"}],name:"PenaltyReserveUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"address",name:"slasher",type:"address"}],name:"SlashRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"tokenInfoKey",type:"bytes32"},{indexed:!1,internalType:"uint112",name:"protocolFee",type:"uint112"},{indexed:!1,internalType:"uint112",name:"penalty",type:"uint112"},{indexed:!1,internalType:"uint112",name:"sourceDecimals",type:"uint112"},{indexed:!1,internalType:"uint112",name:"targetDecimals",type:"uint112"}],name:"TokenInfoUpdated",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],indexed:!1,internalType:"struct LnBridgeSourceV3.TransferParams",name:"params",type:"tuple"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"uint112",name:"targetAmount",type:"uint112"},{indexed:!1,internalType:"uint112",name:"fee",type:"uint112"}],name:"TokenLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"key",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"protocolFee",type:"uint112"},{indexed:!1,internalType:"uint112",name:"penalty",type:"uint112"},{indexed:!1,internalType:"uint32",name:"index",type:"uint32"}],name:"TokenRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"}],name:"TransferFilled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"slasher",type:"address"},{indexed:!1,internalType:"uint112",name:"slashAmount",type:"uint112"}],name:"TransferSlashed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[],name:"LIQUIDITY_FEE_RATE_BASE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"LOCK_STATUS_LOCKED",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"LOCK_STATUS_SLASHED",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"LOCK_STATUS_WITHDRAWN",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"LOCK_TIME_DISTANCE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_TRANSFER_AMOUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"SLASH_EXPIRE_TIME",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_tokenInfoKey",type:"bytes32"},{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"address",name:"_receiver",type:"address"}],name:"claimProtocolFeeIncome",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"key",type:"bytes32"}],name:"deleteTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"depositPenaltyReserve",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"fillTransfers",outputs:[{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"address",name:"provider",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"getProviderKey",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"provider",type:"address"}],name:"getProviderStateKey",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"getTokenKey",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct LnBridgeSourceV3.TransferParams",name:"_params",type:"tuple"},{internalType:"uint112",name:"_remoteAmount",type:"uint112"}],name:"getTransferId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"dao",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct LnBridgeSourceV3.TransferParams",name:"_params",type:"tuple"}],name:"lockAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lockInfos",outputs:[{internalType:"uint112",name:"amountWithFeeAndPenalty",type:"uint112"},{internalType:"uint32",name:"tokenIndex",type:"uint32"},{internalType:"uint8",name:"status",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"messagers",outputs:[{internalType:"address",name:"sendService",type:"address"},{internalType:"address",name:"receiveService",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"penaltyReserves",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingDao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerUnpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_baseFee",type:"uint112"},{internalType:"uint16",name:"_liquidityFeeRate",type:"uint16"},{internalType:"uint112",name:"_transferLimit",type:"uint112"}],name:"registerLnProvider",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_protocolFee",type:"uint112"},{internalType:"uint112",name:"_penalty",type:"uint112"},{internalType:"uint8",name:"_sourceDecimals",type:"uint8"},{internalType:"uint8",name:"_targetDecimals",type:"uint8"},{internalType:"uint32",name:"_index",type:"uint32"}],name:"registerTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"sourceAmount",type:"uint112"},{internalType:"uint112",name:"targetAmount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct LnBridgeTargetV3.RelayParams",name:"_params",type:"tuple"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"},{internalType:"bool",name:"_relayBySelf",type:"bool"}],name:"relay",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"sourceAmount",type:"uint112"},{internalType:"uint112",name:"targetAmount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct LnBridgeTargetV3.RelayParams",name:"_params",type:"tuple"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"},{internalType:"uint256",name:"_feePrepaid",type:"uint256"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestSlashAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32[]",name:"_transferIds",type:"bytes32[]"},{internalType:"address",name:"_provider",type:"address"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestWithdrawLiquidity",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"transferId",type:"bytes32"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"retrySlash",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setReceiveService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setSendService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_transferId",type:"bytes32"},{internalType:"address",name:"_lnProvider",type:"address"},{internalType:"address",name:"_slasher",type:"address"}],name:"slash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"slashInfos",outputs:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"slasher",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"srcProviders",outputs:[{internalType:"uint112",name:"baseFee",type:"uint112"},{internalType:"uint16",name:"liquidityFeeRate",type:"uint16"},{internalType:"uint112",name:"transferLimit",type:"uint112"},{internalType:"bool",name:"pause",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32",name:"",type:"uint32"}],name:"tokenIndexer",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"tokenInfos",outputs:[{components:[{internalType:"uint112",name:"protocolFee",type:"uint112"},{internalType:"uint112",name:"penalty",type:"uint112"},{internalType:"uint8",name:"sourceDecimals",type:"uint8"},{internalType:"uint8",name:"targetDecimals",type:"uint8"}],internalType:"struct LnBridgeSourceV3.TokenConfigure",name:"config",type:"tuple"},{internalType:"uint32",name:"index",type:"uint32"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint256",name:"protocolFeeIncome",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"totalFee",outputs:[{internalType:"uint112",name:"",type:"uint112"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_protocolFee",type:"uint112"},{internalType:"uint112",name:"_penalty",type:"uint112"},{internalType:"uint8",name:"_sourceDecimals",type:"uint8"},{internalType:"uint8",name:"_targetDecimals",type:"uint8"}],name:"updateTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"_transferIds",type:"bytes32[]"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"}],name:"withdrawLiquidity",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"withdrawPenaltyReserve",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];export{i as default}; -//# sourceMappingURL=lnbridge-v3-Cee8iMxl.js.map diff --git a/apps/web/public/assets/lnbridge-v3-lhSDcqzS.js b/apps/web/public/assets/lnbridge-v3-lhSDcqzS.js deleted file mode 100644 index 8601f4fa..00000000 --- a/apps/web/public/assets/lnbridge-v3-lhSDcqzS.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-CTwKNzhK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="612ba5cb-3f2a-4181-9155-0d2bcdf67957",e._sentryDebugIdIdentifier="sentry-dbid-612ba5cb-3f2a-4181-9155-0d2bcdf67957")}catch{}})();const i=[{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"tokenInfoKey",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"address",name:"receiver",type:"address"}],name:"FeeIncomeClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32[]",name:"transferIds",type:"bytes32[]"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"LiquidityWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"bool",name:"paused",type:"bool"}],name:"LnProviderPaused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"baseFee",type:"uint112"},{indexed:!1,internalType:"uint16",name:"liquidityfeeRate",type:"uint16"},{indexed:!1,internalType:"uint112",name:"transferLimit",type:"uint112"}],name:"LnProviderUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"uint256",name:"updatedPanaltyReserve",type:"uint256"}],name:"PenaltyReserveUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"address",name:"slasher",type:"address"}],name:"SlashRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"tokenInfoKey",type:"bytes32"},{indexed:!1,internalType:"uint112",name:"protocolFee",type:"uint112"},{indexed:!1,internalType:"uint112",name:"penalty",type:"uint112"},{indexed:!1,internalType:"uint112",name:"sourceDecimals",type:"uint112"},{indexed:!1,internalType:"uint112",name:"targetDecimals",type:"uint112"}],name:"TokenInfoUpdated",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],indexed:!1,internalType:"struct LnBridgeSourceV3.TransferParams",name:"params",type:"tuple"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"uint112",name:"targetAmount",type:"uint112"},{indexed:!1,internalType:"uint112",name:"fee",type:"uint112"}],name:"TokenLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"key",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"protocolFee",type:"uint112"},{indexed:!1,internalType:"uint112",name:"penalty",type:"uint112"},{indexed:!1,internalType:"uint32",name:"index",type:"uint32"}],name:"TokenRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"}],name:"TransferFilled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"slasher",type:"address"},{indexed:!1,internalType:"uint112",name:"slashAmount",type:"uint112"}],name:"TransferSlashed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[],name:"LIQUIDITY_FEE_RATE_BASE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"LOCK_STATUS_LOCKED",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"LOCK_STATUS_SLASHED",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"LOCK_STATUS_WITHDRAWN",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"LOCK_TIME_DISTANCE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_TRANSFER_AMOUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"SLASH_EXPIRE_TIME",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_tokenInfoKey",type:"bytes32"},{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"address",name:"_receiver",type:"address"}],name:"claimProtocolFeeIncome",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"key",type:"bytes32"}],name:"deleteTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"depositPenaltyReserve",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"fillTransfers",outputs:[{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"address",name:"provider",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"getProviderKey",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"provider",type:"address"}],name:"getProviderStateKey",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"getTokenKey",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct LnBridgeSourceV3.TransferParams",name:"_params",type:"tuple"},{internalType:"uint112",name:"_remoteAmount",type:"uint112"}],name:"getTransferId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"dao",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct LnBridgeSourceV3.TransferParams",name:"_params",type:"tuple"}],name:"lockAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lockInfos",outputs:[{internalType:"uint112",name:"amountWithFeeAndPenalty",type:"uint112"},{internalType:"uint32",name:"tokenIndex",type:"uint32"},{internalType:"uint8",name:"status",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"messagers",outputs:[{internalType:"address",name:"sendService",type:"address"},{internalType:"address",name:"receiveService",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"penaltyReserves",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingDao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerUnpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_baseFee",type:"uint112"},{internalType:"uint16",name:"_liquidityFeeRate",type:"uint16"},{internalType:"uint112",name:"_transferLimit",type:"uint112"}],name:"registerLnProvider",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_protocolFee",type:"uint112"},{internalType:"uint112",name:"_penalty",type:"uint112"},{internalType:"uint8",name:"_sourceDecimals",type:"uint8"},{internalType:"uint8",name:"_targetDecimals",type:"uint8"},{internalType:"uint32",name:"_index",type:"uint32"}],name:"registerTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"sourceAmount",type:"uint112"},{internalType:"uint112",name:"targetAmount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct LnBridgeTargetV3.RelayParams",name:"_params",type:"tuple"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"},{internalType:"bool",name:"_relayBySelf",type:"bool"}],name:"relay",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"sourceAmount",type:"uint112"},{internalType:"uint112",name:"targetAmount",type:"uint112"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct LnBridgeTargetV3.RelayParams",name:"_params",type:"tuple"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"},{internalType:"uint256",name:"_feePrepaid",type:"uint256"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestSlashAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32[]",name:"_transferIds",type:"bytes32[]"},{internalType:"address",name:"_provider",type:"address"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestWithdrawLiquidity",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"transferId",type:"bytes32"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"retrySlash",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setReceiveService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setSendService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_transferId",type:"bytes32"},{internalType:"address",name:"_lnProvider",type:"address"},{internalType:"address",name:"_slasher",type:"address"}],name:"slash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"slashInfos",outputs:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"slasher",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"srcProviders",outputs:[{internalType:"uint112",name:"baseFee",type:"uint112"},{internalType:"uint16",name:"liquidityFeeRate",type:"uint16"},{internalType:"uint112",name:"transferLimit",type:"uint112"},{internalType:"bool",name:"pause",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32",name:"",type:"uint32"}],name:"tokenIndexer",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"tokenInfos",outputs:[{components:[{internalType:"uint112",name:"protocolFee",type:"uint112"},{internalType:"uint112",name:"penalty",type:"uint112"},{internalType:"uint8",name:"sourceDecimals",type:"uint8"},{internalType:"uint8",name:"targetDecimals",type:"uint8"}],internalType:"struct LnBridgeSourceV3.TokenConfigure",name:"config",type:"tuple"},{internalType:"uint32",name:"index",type:"uint32"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint256",name:"protocolFeeIncome",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"totalFee",outputs:[{internalType:"uint112",name:"",type:"uint112"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_protocolFee",type:"uint112"},{internalType:"uint112",name:"_penalty",type:"uint112"},{internalType:"uint8",name:"_sourceDecimals",type:"uint8"},{internalType:"uint8",name:"_targetDecimals",type:"uint8"}],name:"updateTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"_transferIds",type:"bytes32[]"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"}],name:"withdrawLiquidity",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"withdrawPenaltyReserve",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];export{i as default}; -//# sourceMappingURL=lnbridge-v3-lhSDcqzS.js.map diff --git a/apps/web/public/assets/lnv2-default-CgNLmNLm.js b/apps/web/public/assets/lnv2-default-CgNLmNLm.js deleted file mode 100644 index 72731ba0..00000000 --- a/apps/web/public/assets/lnv2-default-CgNLmNLm.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-CTwKNzhK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dfba593f-11af-453b-85a6-dbcfc69bd738",e._sentryDebugIdIdentifier="sentry-dbid-dfba593f-11af-453b-85a6-dbcfc69bd738")}catch{}})();const s=[{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"baseFee",type:"uint112"},{indexed:!1,internalType:"uint8",name:"liquidityfeeRate",type:"uint8"}],name:"LnProviderUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint64",name:"withdrawNonce",type:"uint64"}],name:"MarginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint256",name:"margin",type:"uint256"},{indexed:!1,internalType:"address",name:"slasher",type:"address"}],name:"Slash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"bytes32",name:"expectedTransferId",type:"bytes32"}],name:"SlashRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"SlashReserveUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"},{indexed:!1,internalType:"uint112",name:"fee",type:"uint112"},{indexed:!1,internalType:"uint64",name:"timestamp",type:"uint64"},{indexed:!1,internalType:"address",name:"receiver",type:"address"}],name:"TokenLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"}],name:"TransferFilled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"}],name:"WithdrawMarginRequest",type:"event"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint256",name:"_margin",type:"uint256"}],name:"depositProviderMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"depositSlashFundReserve",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_slasher",type:"address"},{internalType:"uint112",name:"_fee",type:"uint112"},{internalType:"uint112",name:"_penalty",type:"uint112"}],name:"encodeSlashCall",outputs:[{internalType:"bytes",name:"message",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"_lastTransferId",type:"bytes32"},{internalType:"uint64",name:"_withdrawNonce",type:"uint64"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"encodeWithdrawCall",outputs:[{internalType:"bytes",name:"message",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"fillTransfers",outputs:[{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"address",name:"slasher",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"dao",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lockInfos",outputs:[{internalType:"uint112",name:"fee",type:"uint112"},{internalType:"uint112",name:"penalty",type:"uint112"},{internalType:"uint32",name:"timestamp",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"messagers",outputs:[{internalType:"address",name:"sendService",type:"address"},{internalType:"address",name:"receiveService",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFeeReceiver",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerUnpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestSlashAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestWithdrawMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_baseFee",type:"uint112"},{internalType:"uint8",name:"_liquidityFeeRate",type:"uint8"}],name:"setProviderFee",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setReceiveService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setSendService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_protocolFee",type:"uint112"},{internalType:"uint112",name:"_penaltyLnCollateral",type:"uint112"},{internalType:"uint8",name:"_sourceDecimals",type:"uint8"},{internalType:"uint8",name:"_targetDecimals",type:"uint8"}],name:"setTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_slasher",type:"address"},{internalType:"uint112",name:"_fee",type:"uint112"},{internalType:"uint112",name:"_penalty",type:"uint112"}],name:"slash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"srcProviders",outputs:[{components:[{internalType:"uint112",name:"baseFee",type:"uint112"},{internalType:"uint16",name:"liquidityFeeRate",type:"uint16"},{internalType:"uint64",name:"withdrawNonce",type:"uint64"},{internalType:"bool",name:"pause",type:"bool"}],internalType:"struct LnDefaultBridgeSource.SourceProviderConfigure",name:"config",type:"tuple"},{internalType:"bytes32",name:"lastTransferId",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"tgtProviders",outputs:[{internalType:"uint256",name:"margin",type:"uint256"},{internalType:"uint256",name:"slashReserveFund",type:"uint256"},{internalType:"uint64",name:"lastExpireFillTime",type:"uint64"},{internalType:"uint64",name:"withdrawNonce",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"tokenInfos",outputs:[{internalType:"uint112",name:"protocolFee",type:"uint112"},{internalType:"uint112",name:"penaltyLnCollateral",type:"uint112"},{internalType:"uint8",name:"sourceDecimals",type:"uint8"},{internalType:"uint8",name:"targetDecimals",type:"uint8"},{internalType:"bool",name:"isRegistered",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"totalFee",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"bytes32",name:"transferId",type:"bytes32"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint64",name:"withdrawNonce",type:"uint64"}],internalType:"struct LnDefaultBridgeSource.Snapshot",name:"_snapshot",type:"tuple"},{internalType:"uint112",name:"_amount",type:"uint112"},{internalType:"address",name:"_receiver",type:"address"}],name:"transferAndLockMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"}],name:"transferAndReleaseMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"}],name:"updateFeeReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_lastTransferId",type:"bytes32"},{internalType:"uint64",name:"_withdrawNonce",type:"uint64"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"withdrawSlashFundReserve",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];export{s as default}; -//# sourceMappingURL=lnv2-default-CgNLmNLm.js.map diff --git a/apps/web/public/assets/lnv2-default-D6l1N3uU.js b/apps/web/public/assets/lnv2-default-D6l1N3uU.js deleted file mode 100644 index 05a53d71..00000000 --- a/apps/web/public/assets/lnv2-default-D6l1N3uU.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-Bl6Lkf65.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dfba593f-11af-453b-85a6-dbcfc69bd738",e._sentryDebugIdIdentifier="sentry-dbid-dfba593f-11af-453b-85a6-dbcfc69bd738")}catch{}})();const s=[{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"baseFee",type:"uint112"},{indexed:!1,internalType:"uint8",name:"liquidityfeeRate",type:"uint8"}],name:"LnProviderUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint64",name:"withdrawNonce",type:"uint64"}],name:"MarginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint256",name:"margin",type:"uint256"},{indexed:!1,internalType:"address",name:"slasher",type:"address"}],name:"Slash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"bytes32",name:"expectedTransferId",type:"bytes32"}],name:"SlashRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"SlashReserveUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"},{indexed:!1,internalType:"uint112",name:"fee",type:"uint112"},{indexed:!1,internalType:"uint64",name:"timestamp",type:"uint64"},{indexed:!1,internalType:"address",name:"receiver",type:"address"}],name:"TokenLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"}],name:"TransferFilled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"}],name:"WithdrawMarginRequest",type:"event"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint256",name:"_margin",type:"uint256"}],name:"depositProviderMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"depositSlashFundReserve",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_slasher",type:"address"},{internalType:"uint112",name:"_fee",type:"uint112"},{internalType:"uint112",name:"_penalty",type:"uint112"}],name:"encodeSlashCall",outputs:[{internalType:"bytes",name:"message",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"_lastTransferId",type:"bytes32"},{internalType:"uint64",name:"_withdrawNonce",type:"uint64"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"encodeWithdrawCall",outputs:[{internalType:"bytes",name:"message",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"fillTransfers",outputs:[{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"address",name:"slasher",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"dao",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lockInfos",outputs:[{internalType:"uint112",name:"fee",type:"uint112"},{internalType:"uint112",name:"penalty",type:"uint112"},{internalType:"uint32",name:"timestamp",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"messagers",outputs:[{internalType:"address",name:"sendService",type:"address"},{internalType:"address",name:"receiveService",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFeeReceiver",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerUnpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestSlashAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestWithdrawMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_baseFee",type:"uint112"},{internalType:"uint8",name:"_liquidityFeeRate",type:"uint8"}],name:"setProviderFee",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setReceiveService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setSendService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_protocolFee",type:"uint112"},{internalType:"uint112",name:"_penaltyLnCollateral",type:"uint112"},{internalType:"uint8",name:"_sourceDecimals",type:"uint8"},{internalType:"uint8",name:"_targetDecimals",type:"uint8"}],name:"setTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_slasher",type:"address"},{internalType:"uint112",name:"_fee",type:"uint112"},{internalType:"uint112",name:"_penalty",type:"uint112"}],name:"slash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"srcProviders",outputs:[{components:[{internalType:"uint112",name:"baseFee",type:"uint112"},{internalType:"uint16",name:"liquidityFeeRate",type:"uint16"},{internalType:"uint64",name:"withdrawNonce",type:"uint64"},{internalType:"bool",name:"pause",type:"bool"}],internalType:"struct LnDefaultBridgeSource.SourceProviderConfigure",name:"config",type:"tuple"},{internalType:"bytes32",name:"lastTransferId",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"tgtProviders",outputs:[{internalType:"uint256",name:"margin",type:"uint256"},{internalType:"uint256",name:"slashReserveFund",type:"uint256"},{internalType:"uint64",name:"lastExpireFillTime",type:"uint64"},{internalType:"uint64",name:"withdrawNonce",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"tokenInfos",outputs:[{internalType:"uint112",name:"protocolFee",type:"uint112"},{internalType:"uint112",name:"penaltyLnCollateral",type:"uint112"},{internalType:"uint8",name:"sourceDecimals",type:"uint8"},{internalType:"uint8",name:"targetDecimals",type:"uint8"},{internalType:"bool",name:"isRegistered",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"totalFee",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"bytes32",name:"transferId",type:"bytes32"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint64",name:"withdrawNonce",type:"uint64"}],internalType:"struct LnDefaultBridgeSource.Snapshot",name:"_snapshot",type:"tuple"},{internalType:"uint112",name:"_amount",type:"uint112"},{internalType:"address",name:"_receiver",type:"address"}],name:"transferAndLockMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"}],name:"transferAndReleaseMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"}],name:"updateFeeReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_lastTransferId",type:"bytes32"},{internalType:"uint64",name:"_withdrawNonce",type:"uint64"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"withdrawSlashFundReserve",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];export{s as default}; -//# sourceMappingURL=lnv2-default-D6l1N3uU.js.map diff --git a/apps/web/public/assets/lnv2-default-DTrLX-WA.js b/apps/web/public/assets/lnv2-default-DTrLX-WA.js deleted file mode 100644 index 863299ec..00000000 --- a/apps/web/public/assets/lnv2-default-DTrLX-WA.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-Cl-fQh5M.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dfba593f-11af-453b-85a6-dbcfc69bd738",e._sentryDebugIdIdentifier="sentry-dbid-dfba593f-11af-453b-85a6-dbcfc69bd738")}catch{}})();const s=[{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"baseFee",type:"uint112"},{indexed:!1,internalType:"uint8",name:"liquidityfeeRate",type:"uint8"}],name:"LnProviderUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint64",name:"withdrawNonce",type:"uint64"}],name:"MarginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint256",name:"margin",type:"uint256"},{indexed:!1,internalType:"address",name:"slasher",type:"address"}],name:"Slash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"bytes32",name:"expectedTransferId",type:"bytes32"}],name:"SlashRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"SlashReserveUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"},{indexed:!1,internalType:"uint112",name:"fee",type:"uint112"},{indexed:!1,internalType:"uint64",name:"timestamp",type:"uint64"},{indexed:!1,internalType:"address",name:"receiver",type:"address"}],name:"TokenLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"}],name:"TransferFilled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"}],name:"WithdrawMarginRequest",type:"event"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint256",name:"_margin",type:"uint256"}],name:"depositProviderMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"depositSlashFundReserve",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_slasher",type:"address"},{internalType:"uint112",name:"_fee",type:"uint112"},{internalType:"uint112",name:"_penalty",type:"uint112"}],name:"encodeSlashCall",outputs:[{internalType:"bytes",name:"message",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"_lastTransferId",type:"bytes32"},{internalType:"uint64",name:"_withdrawNonce",type:"uint64"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"encodeWithdrawCall",outputs:[{internalType:"bytes",name:"message",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"fillTransfers",outputs:[{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"address",name:"slasher",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"dao",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lockInfos",outputs:[{internalType:"uint112",name:"fee",type:"uint112"},{internalType:"uint112",name:"penalty",type:"uint112"},{internalType:"uint32",name:"timestamp",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"messagers",outputs:[{internalType:"address",name:"sendService",type:"address"},{internalType:"address",name:"receiveService",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFeeReceiver",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerUnpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestSlashAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestWithdrawMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_baseFee",type:"uint112"},{internalType:"uint8",name:"_liquidityFeeRate",type:"uint8"}],name:"setProviderFee",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setReceiveService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setSendService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_protocolFee",type:"uint112"},{internalType:"uint112",name:"_penaltyLnCollateral",type:"uint112"},{internalType:"uint8",name:"_sourceDecimals",type:"uint8"},{internalType:"uint8",name:"_targetDecimals",type:"uint8"}],name:"setTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_slasher",type:"address"},{internalType:"uint112",name:"_fee",type:"uint112"},{internalType:"uint112",name:"_penalty",type:"uint112"}],name:"slash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"srcProviders",outputs:[{components:[{internalType:"uint112",name:"baseFee",type:"uint112"},{internalType:"uint16",name:"liquidityFeeRate",type:"uint16"},{internalType:"uint64",name:"withdrawNonce",type:"uint64"},{internalType:"bool",name:"pause",type:"bool"}],internalType:"struct LnDefaultBridgeSource.SourceProviderConfigure",name:"config",type:"tuple"},{internalType:"bytes32",name:"lastTransferId",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"tgtProviders",outputs:[{internalType:"uint256",name:"margin",type:"uint256"},{internalType:"uint256",name:"slashReserveFund",type:"uint256"},{internalType:"uint64",name:"lastExpireFillTime",type:"uint64"},{internalType:"uint64",name:"withdrawNonce",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"tokenInfos",outputs:[{internalType:"uint112",name:"protocolFee",type:"uint112"},{internalType:"uint112",name:"penaltyLnCollateral",type:"uint112"},{internalType:"uint8",name:"sourceDecimals",type:"uint8"},{internalType:"uint8",name:"targetDecimals",type:"uint8"},{internalType:"bool",name:"isRegistered",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"totalFee",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"bytes32",name:"transferId",type:"bytes32"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint64",name:"withdrawNonce",type:"uint64"}],internalType:"struct LnDefaultBridgeSource.Snapshot",name:"_snapshot",type:"tuple"},{internalType:"uint112",name:"_amount",type:"uint112"},{internalType:"address",name:"_receiver",type:"address"}],name:"transferAndLockMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"}],name:"transferAndReleaseMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"}],name:"updateFeeReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_lastTransferId",type:"bytes32"},{internalType:"uint64",name:"_withdrawNonce",type:"uint64"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"withdrawSlashFundReserve",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];export{s as default}; -//# sourceMappingURL=lnv2-default-DTrLX-WA.js.map diff --git a/apps/web/public/assets/lnv2-opposite-B8_jUw7k.js b/apps/web/public/assets/lnv2-opposite-B8_jUw7k.js deleted file mode 100644 index 97724965..00000000 --- a/apps/web/public/assets/lnv2-opposite-B8_jUw7k.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-CTwKNzhK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4db7a114-adcc-487c-90c1-6e658cfbf65c",e._sentryDebugIdIdentifier="sentry-dbid-4db7a114-adcc-487c-90c1-6e658cfbf65c")}catch{}})();const s=[{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"}],name:"LiquidityWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"margin",type:"uint112"},{indexed:!1,internalType:"uint112",name:"baseFee",type:"uint112"},{indexed:!1,internalType:"uint16",name:"liquidityfeeRate",type:"uint16"}],name:"LnProviderUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"margin",type:"uint112"},{indexed:!1,internalType:"address",name:"slasher",type:"address"}],name:"Slash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"}],name:"SlashRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"},{indexed:!1,internalType:"uint112",name:"fee",type:"uint112"},{indexed:!1,internalType:"uint64",name:"timestamp",type:"uint64"},{indexed:!1,internalType:"address",name:"receiver",type:"address"}],name:"TokenLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"slasher",type:"address"}],name:"TransferFilled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"}],name:"WithdrawMarginRequest",type:"event"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"fillTransfers",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lockInfos",outputs:[{internalType:"uint112",name:"amountWithFeeAndPenalty",type:"uint112"},{internalType:"uint32",name:"timestamp",type:"uint32"},{internalType:"bool",name:"hasSlashed",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFeeReceiver",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerUnpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_transferId",type:"bytes32"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestRetrySlashAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestSlashAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_lastTransferId",type:"bytes32"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestWithdrawMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setReceiveService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setSendService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_protocolFee",type:"uint112"},{internalType:"uint112",name:"_penaltyLnCollateral",type:"uint112"},{internalType:"uint8",name:"_sourceDecimals",type:"uint8"},{internalType:"uint8",name:"_targetDecimals",type:"uint8"}],name:"setTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_latestSlashTransferId",type:"bytes32"},{internalType:"bytes32",name:"_transferId",type:"bytes32"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"uint256",name:"_timestamp",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_slasher",type:"address"}],name:"slash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"slashInfos",outputs:[{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"address",name:"slasher",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"srcProviders",outputs:[{components:[{internalType:"uint112",name:"margin",type:"uint112"},{internalType:"uint112",name:"baseFee",type:"uint112"},{internalType:"uint16",name:"liquidityFeeRate",type:"uint16"},{internalType:"bool",name:"pause",type:"bool"}],internalType:"struct LnOppositeBridgeSource.SourceProviderConfigure",name:"config",type:"tuple"},{internalType:"bytes32",name:"lastTransferId",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"tokenInfos",outputs:[{internalType:"uint112",name:"protocolFee",type:"uint112"},{internalType:"uint112",name:"penaltyLnCollateral",type:"uint112"},{internalType:"uint8",name:"sourceDecimals",type:"uint8"},{internalType:"uint8",name:"targetDecimals",type:"uint8"},{internalType:"bool",name:"isRegistered",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"totalFee",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"bytes32",name:"transferId",type:"bytes32"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint112",name:"depositedMargin",type:"uint112"}],internalType:"struct LnOppositeBridgeSource.Snapshot",name:"_snapshot",type:"tuple"},{internalType:"uint112",name:"_amount",type:"uint112"},{internalType:"address",name:"_receiver",type:"address"}],name:"transferAndLockMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"}],name:"transferAndReleaseMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"}],name:"updateFeeReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_margin",type:"uint112"},{internalType:"uint112",name:"_baseFee",type:"uint112"},{internalType:"uint16",name:"_liquidityFeeRate",type:"uint16"}],name:"updateProviderFeeAndMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"_latestSlashTransferId",type:"bytes32"},{internalType:"bytes32",name:"_lastTransferId",type:"bytes32"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"withdrawMargin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];export{s as default}; -//# sourceMappingURL=lnv2-opposite-B8_jUw7k.js.map diff --git a/apps/web/public/assets/lnv2-opposite-C16bOlDZ.js b/apps/web/public/assets/lnv2-opposite-C16bOlDZ.js deleted file mode 100644 index 40616316..00000000 --- a/apps/web/public/assets/lnv2-opposite-C16bOlDZ.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-Cl-fQh5M.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4db7a114-adcc-487c-90c1-6e658cfbf65c",e._sentryDebugIdIdentifier="sentry-dbid-4db7a114-adcc-487c-90c1-6e658cfbf65c")}catch{}})();const s=[{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"}],name:"LiquidityWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"margin",type:"uint112"},{indexed:!1,internalType:"uint112",name:"baseFee",type:"uint112"},{indexed:!1,internalType:"uint16",name:"liquidityfeeRate",type:"uint16"}],name:"LnProviderUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"margin",type:"uint112"},{indexed:!1,internalType:"address",name:"slasher",type:"address"}],name:"Slash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"}],name:"SlashRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"},{indexed:!1,internalType:"uint112",name:"fee",type:"uint112"},{indexed:!1,internalType:"uint64",name:"timestamp",type:"uint64"},{indexed:!1,internalType:"address",name:"receiver",type:"address"}],name:"TokenLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"slasher",type:"address"}],name:"TransferFilled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"}],name:"WithdrawMarginRequest",type:"event"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"fillTransfers",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lockInfos",outputs:[{internalType:"uint112",name:"amountWithFeeAndPenalty",type:"uint112"},{internalType:"uint32",name:"timestamp",type:"uint32"},{internalType:"bool",name:"hasSlashed",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFeeReceiver",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerUnpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_transferId",type:"bytes32"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestRetrySlashAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestSlashAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_lastTransferId",type:"bytes32"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestWithdrawMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setReceiveService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setSendService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_protocolFee",type:"uint112"},{internalType:"uint112",name:"_penaltyLnCollateral",type:"uint112"},{internalType:"uint8",name:"_sourceDecimals",type:"uint8"},{internalType:"uint8",name:"_targetDecimals",type:"uint8"}],name:"setTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_latestSlashTransferId",type:"bytes32"},{internalType:"bytes32",name:"_transferId",type:"bytes32"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"uint256",name:"_timestamp",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_slasher",type:"address"}],name:"slash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"slashInfos",outputs:[{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"address",name:"slasher",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"srcProviders",outputs:[{components:[{internalType:"uint112",name:"margin",type:"uint112"},{internalType:"uint112",name:"baseFee",type:"uint112"},{internalType:"uint16",name:"liquidityFeeRate",type:"uint16"},{internalType:"bool",name:"pause",type:"bool"}],internalType:"struct LnOppositeBridgeSource.SourceProviderConfigure",name:"config",type:"tuple"},{internalType:"bytes32",name:"lastTransferId",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"tokenInfos",outputs:[{internalType:"uint112",name:"protocolFee",type:"uint112"},{internalType:"uint112",name:"penaltyLnCollateral",type:"uint112"},{internalType:"uint8",name:"sourceDecimals",type:"uint8"},{internalType:"uint8",name:"targetDecimals",type:"uint8"},{internalType:"bool",name:"isRegistered",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"totalFee",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"bytes32",name:"transferId",type:"bytes32"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint112",name:"depositedMargin",type:"uint112"}],internalType:"struct LnOppositeBridgeSource.Snapshot",name:"_snapshot",type:"tuple"},{internalType:"uint112",name:"_amount",type:"uint112"},{internalType:"address",name:"_receiver",type:"address"}],name:"transferAndLockMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"}],name:"transferAndReleaseMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"}],name:"updateFeeReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_margin",type:"uint112"},{internalType:"uint112",name:"_baseFee",type:"uint112"},{internalType:"uint16",name:"_liquidityFeeRate",type:"uint16"}],name:"updateProviderFeeAndMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"_latestSlashTransferId",type:"bytes32"},{internalType:"bytes32",name:"_lastTransferId",type:"bytes32"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"withdrawMargin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];export{s as default}; -//# sourceMappingURL=lnv2-opposite-C16bOlDZ.js.map diff --git a/apps/web/public/assets/lnv2-opposite-CY9WgYrv.js b/apps/web/public/assets/lnv2-opposite-CY9WgYrv.js deleted file mode 100644 index 78c969e1..00000000 --- a/apps/web/public/assets/lnv2-opposite-CY9WgYrv.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-Bl6Lkf65.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4db7a114-adcc-487c-90c1-6e658cfbf65c",e._sentryDebugIdIdentifier="sentry-dbid-4db7a114-adcc-487c-90c1-6e658cfbf65c")}catch{}})();const s=[{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"}],name:"LiquidityWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"margin",type:"uint112"},{indexed:!1,internalType:"uint112",name:"baseFee",type:"uint112"},{indexed:!1,internalType:"uint16",name:"liquidityfeeRate",type:"uint16"}],name:"LnProviderUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"margin",type:"uint112"},{indexed:!1,internalType:"address",name:"slasher",type:"address"}],name:"Slash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"}],name:"SlashRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"provider",type:"address"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"},{indexed:!1,internalType:"uint112",name:"fee",type:"uint112"},{indexed:!1,internalType:"uint64",name:"timestamp",type:"uint64"},{indexed:!1,internalType:"address",name:"receiver",type:"address"}],name:"TokenLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"slasher",type:"address"}],name:"TransferFilled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"remoteChainId",type:"uint256"},{indexed:!1,internalType:"address",name:"sourceToken",type:"address"},{indexed:!1,internalType:"address",name:"targetToken",type:"address"},{indexed:!1,internalType:"uint112",name:"amount",type:"uint112"}],name:"WithdrawMarginRequest",type:"event"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"fillTransfers",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lockInfos",outputs:[{internalType:"uint112",name:"amountWithFeeAndPenalty",type:"uint112"},{internalType:"uint32",name:"timestamp",type:"uint32"},{internalType:"bool",name:"hasSlashed",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFeeReceiver",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"}],name:"providerUnpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_transferId",type:"bytes32"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestRetrySlashAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestSlashAndRemoteRelease",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_lastTransferId",type:"bytes32"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"},{internalType:"bytes",name:"_extParams",type:"bytes"}],name:"requestWithdrawMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setReceiveService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"},{internalType:"address",name:"_service",type:"address"}],name:"setSendService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_protocolFee",type:"uint112"},{internalType:"uint112",name:"_penaltyLnCollateral",type:"uint112"},{internalType:"uint8",name:"_sourceDecimals",type:"uint8"},{internalType:"uint8",name:"_targetDecimals",type:"uint8"}],name:"setTokenInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_latestSlashTransferId",type:"bytes32"},{internalType:"bytes32",name:"_transferId",type:"bytes32"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"uint256",name:"_timestamp",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_slasher",type:"address"}],name:"slash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"slashInfos",outputs:[{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"address",name:"slasher",type:"address"},{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"srcProviders",outputs:[{components:[{internalType:"uint112",name:"margin",type:"uint112"},{internalType:"uint112",name:"baseFee",type:"uint112"},{internalType:"uint16",name:"liquidityFeeRate",type:"uint16"},{internalType:"bool",name:"pause",type:"bool"}],internalType:"struct LnOppositeBridgeSource.SourceProviderConfigure",name:"config",type:"tuple"},{internalType:"bytes32",name:"lastTransferId",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"tokenInfos",outputs:[{internalType:"uint112",name:"protocolFee",type:"uint112"},{internalType:"uint112",name:"penaltyLnCollateral",type:"uint112"},{internalType:"uint8",name:"sourceDecimals",type:"uint8"},{internalType:"uint8",name:"targetDecimals",type:"uint8"},{internalType:"bool",name:"isRegistered",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"totalFee",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"remoteChainId",type:"uint256"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"bytes32",name:"transferId",type:"bytes32"},{internalType:"uint112",name:"totalFee",type:"uint112"},{internalType:"uint112",name:"depositedMargin",type:"uint112"}],internalType:"struct LnOppositeBridgeSource.Snapshot",name:"_snapshot",type:"tuple"},{internalType:"uint112",name:"_amount",type:"uint112"},{internalType:"address",name:"_receiver",type:"address"}],name:"transferAndLockMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"previousTransferId",type:"bytes32"},{internalType:"address",name:"provider",type:"address"},{internalType:"address",name:"sourceToken",type:"address"},{internalType:"address",name:"targetToken",type:"address"},{internalType:"uint112",name:"amount",type:"uint112"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],internalType:"struct LnBridgeHelper.TransferParameter",name:"_params",type:"tuple"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes32",name:"_expectedTransferId",type:"bytes32"}],name:"transferAndReleaseMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"}],name:"updateFeeReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_margin",type:"uint112"},{internalType:"uint112",name:"_baseFee",type:"uint112"},{internalType:"uint16",name:"_liquidityFeeRate",type:"uint16"}],name:"updateProviderFeeAndMargin",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"_latestSlashTransferId",type:"bytes32"},{internalType:"bytes32",name:"_lastTransferId",type:"bytes32"},{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_provider",type:"address"},{internalType:"address",name:"_sourceToken",type:"address"},{internalType:"address",name:"_targetToken",type:"address"},{internalType:"uint112",name:"_amount",type:"uint112"}],name:"withdrawMargin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];export{s as default}; -//# sourceMappingURL=lnv2-opposite-CY9WgYrv.js.map diff --git a/apps/web/public/assets/login-ZSMM5UYL-DT0rm6wp.js b/apps/web/public/assets/login-ZSMM5UYL-DT0rm6wp.js deleted file mode 100644 index 28b0aa4c..00000000 --- a/apps/web/public/assets/login-ZSMM5UYL-DT0rm6wp.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},j=new M.Error().stack;j&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[j]="5d3fc6f8-7cca-454e-bc3a-169dd6670390",M._sentryDebugIdIdentifier="sentry-dbid-5d3fc6f8-7cca-454e-bc3a-169dd6670390")}catch{}})();var L="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTAgMTZjMC01LjYgMC04LjQgMS4wOS0xMC41NGExMCAxMCAwIDAgMSA0LjM3LTQuMzdDNy42IDAgMTAuNCAwIDE2IDBoMTZjNS42IDAgOC40IDAgMTAuNTQgMS4wOWExMCAxMCAwIDAgMSA0LjM3IDQuMzdDNDggNy42IDQ4IDEwLjQgNDggMTZ2MTZjMCA1LjYgMCA4LjQtMS4wOSAxMC41NGExMC4wMDEgMTAuMDAxIDAgMCAxLTQuMzcgNC4zN0M0MC40IDQ4IDM3LjYgNDggMzIgNDhIMTZjLTUuNiAwLTguNCAwLTEwLjU0LTEuMDlhMTAgMTAgMCAwIDEtNC4zNy00LjM3QzAgNDAuNCAwIDM3LjYgMCAzMlYxNloiLz48cGF0aCBmaWxsPSJ1cmwoI2IpIiBkPSJNMCAxNmMwLTUuNiAwLTguNCAxLjA5LTEwLjU0YTEwIDEwIDAgMCAxIDQuMzctNC4zN0M3LjYgMCAxMC40IDAgMTYgMGgxNmM1LjYgMCA4LjQgMCAxMC41NCAxLjA5YTEwIDEwIDAgMCAxIDQuMzcgNC4zN0M0OCA3LjYgNDggMTAuNCA0OCAxNnYxNmMwIDUuNiAwIDguNC0xLjA5IDEwLjU0YTEwLjAwMSAxMC4wMDEgMCAwIDEtNC4zNyA0LjM3QzQwLjQgNDggMzcuNiA0OCAzMiA0OEgxNmMtNS42IDAtOC40IDAtMTAuNTQtMS4wOWExMCAxMCAwIDAgMS00LjM3LTQuMzdDMCA0MC40IDAgMzcuNiAwIDMyVjE2WiIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjA0IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjEzMyA5LjUxM0MxIDExLjEzMSAxIDEzLjE4MyAxIDE2djE2YzAgMi44MTcgMCA0Ljg3LjEzMyA2LjQ4Ni4xMzEgMS42MDYuMzg3IDIuNjk1Ljg0OCAzLjZhOSA5IDAgMCAwIDMuOTMzIDMuOTMzYy45MDUuNDYxIDEuOTk0LjcxNyAzLjYuODQ4QzExLjEzIDQ3IDEzLjE4MyA0NyAxNiA0N2gxNmMyLjgxNyAwIDQuODcgMCA2LjQ4Ni0uMTMzIDEuNjA2LS4xMzEgMi42OTUtLjM4NyAzLjYtLjg0OGE5IDkgMCAwIDAgMy45MzMtMy45MzNjLjQ2MS0uOTA1LjcxNy0xLjk5NC44NDgtMy42QzQ3IDM2Ljg3IDQ3IDM0LjgxNiA0NyAzMlYxNmMwLTIuODE3IDAtNC44Ny0uMTMzLTYuNDg3LS4xMzEtMS42MDUtLjM4Ny0yLjY5NC0uODQ4LTMuNTk5YTkgOSAwIDAgMC0zLjkzMy0zLjkzM2MtLjkwNS0uNDYxLTEuOTk0LS43MTctMy42LS44NDhDMzYuODcgMSAzNC44MTYgMSAzMiAxSDE2Yy0yLjgxNyAwLTQuODcgMC02LjQ4Ny4xMzMtMS42MDUuMTMxLTIuNjk0LjM4Ny0zLjU5OS44NDhhOSA5IDAgMCAwLTMuOTMzIDMuOTMzYy0uNDYxLjkwNS0uNzE3IDEuOTk0LS44NDggMy42Wk0xLjA5IDUuNDZDMCA3LjYgMCAxMC40IDAgMTZ2MTZjMCA1LjYgMCA4LjQgMS4wOSAxMC41NGExMCAxMCAwIDAgMCA0LjM3IDQuMzdDNy42IDQ4IDEwLjQgNDggMTYgNDhoMTZjNS42IDAgOC40IDAgMTAuNTQtMS4wOWExMC4wMDEgMTAuMDAxIDAgMCAwIDQuMzctNC4zN0M0OCA0MC40IDQ4IDM3LjYgNDggMzJWMTZjMC01LjYgMC04LjQtMS4wOS0xMC41NGExMCAxMCAwIDAgMC00LjM3LTQuMzdDNDAuNCAwIDM3LjYgMCAzMiAwSDE2QzEwLjQgMCA3LjYgMCA1LjQ2IDEuMDlhMTAgMTAgMCAwIDAtNC4zNyA0LjM3WiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0idXJsKCNjKSIgZD0iTTMgMTQuMmMwLTMuOTIgMC01Ljg4Ljc2My03LjM3OGE3IDcgMCAwIDEgMy4wNi0zLjA1OUM4LjMxOCAzIDEwLjI4IDMgMTQuMiAzaDE5LjZjMy45MiAwIDUuODggMCA3LjM3OC43NjNhNyA3IDAgMCAxIDMuMDU5IDMuMDZDNDUgOC4zMTggNDUgMTAuMjggNDUgMTQuMnYxOS42YzAgMy45MiAwIDUuODgtLjc2MyA3LjM3OGE3IDcgMCAwIDEtMy4wNiAzLjA1OUMzOS42ODIgNDUgMzcuNzIgNDUgMzMuOCA0NUgxNC4yYy0zLjkyIDAtNS44OCAwLTcuMzc4LS43NjNhNyA3IDAgMCAxLTMuMDU5LTMuMDZDMyAzOS42ODIgMyAzNy43MiAzIDMzLjhWMTQuMloiLz48cGF0aCBmaWxsPSJ1cmwoI2QpIiBmaWxsLW9wYWNpdHk9Ii43IiBkPSJNMyAxNC4yYzAtMy45MiAwLTUuODguNzYzLTcuMzc4YTcgNyAwIDAgMSAzLjA2LTMuMDU5QzguMzE4IDMgMTAuMjggMyAxNC4yIDNoMTkuNmMzLjkyIDAgNS44OCAwIDcuMzc4Ljc2M2E3IDcgMCAwIDEgMy4wNTkgMy4wNkM0NSA4LjMxOCA0NSAxMC4yOCA0NSAxNC4ydjE5LjZjMCAzLjkyIDAgNS44OC0uNzYzIDcuMzc4YTcgNyAwIDAgMS0zLjA2IDMuMDU5QzM5LjY4MiA0NSAzNy43MiA0NSAzMy44IDQ1SDE0LjJjLTMuOTIgMC01Ljg4IDAtNy4zNzgtLjc2M2E3IDcgMCAwIDEtMy4wNTktMy4wNkMzIDM5LjY4MiAzIDM3LjcyIDMgMzMuOFYxNC4yWiIgc3R5bGU9Im1peC1ibGVuZC1tb2RlOnNjcmVlbiIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTMuNTk0IDkuNjQzQzMuNSAxMC43ODUgMy41IDEyLjIzMiAzLjUgMTQuMnYxOS42YzAgMS45NjggMCAzLjQxNS4wOTQgNC41NTcuMDkzIDEuMTM2LjI3NSAxLjkyOC42MTQgMi41OTRhNi41IDYuNSAwIDAgMCAyLjg0MSAyLjg0Yy42NjcuMzQgMS40NTguNTIyIDIuNTk0LjYxNSAxLjE0Mi4wOTQgMi41ODkuMDk0IDQuNTU3LjA5NGgxOS42YzEuOTY4IDAgMy40MTUgMCA0LjU1Ny0uMDk0IDEuMTM2LS4wOTMgMS45MjgtLjI3NSAyLjU5NC0uNjE0YTYuNDk5IDYuNDk5IDAgMCAwIDIuODQtMi44NDFjLjM0LS42NjYuNTIyLTEuNDU4LjYxNS0yLjU5NC4wOTQtMS4xNDIuMDk0LTIuNTg5LjA5NC00LjU1N1YxNC4yYzAtMS45NjggMC0zLjQxNS0uMDk0LTQuNTU3LS4wOTMtMS4xMzYtLjI3NS0xLjkyNy0uNjE0LTIuNTk0YTYuNSA2LjUgMCAwIDAtMi44NDEtMi44NGMtLjY2Ni0uMzQtMS40NTgtLjUyMi0yLjU5NC0uNjE1QzM3LjIxNSAzLjUgMzUuNzY4IDMuNSAzMy44IDMuNUgxNC4yYy0xLjk2OCAwLTMuNDE1IDAtNC41NTcuMDk0LTEuMTM2LjA5My0xLjkyNy4yNzUtMi41OTQuNjE0QTYuNSA2LjUgMCAwIDAgNC4yMSA3LjA1Yy0uMzQuNjY3LS41MjIgMS40NTgtLjYxNSAyLjU5NFptLjE2OS0yLjgyQzMgOC4zMTggMyAxMC4yOCAzIDE0LjJ2MTkuNmMwIDMuOTIgMCA1Ljg4Ljc2MyA3LjM3OGE3IDcgMCAwIDAgMy4wNiAzLjA1OUM4LjMxOCA0NSAxMC4yOCA0NSAxNC4yIDQ1aDE5LjZjMy45MiAwIDUuODggMCA3LjM3OC0uNzYzYTcgNyAwIDAgMCAzLjA1OS0zLjA2QzQ1IDM5LjY4MiA0NSAzNy43MiA0NSAzMy44VjE0LjJjMC0zLjkyIDAtNS44OC0uNzYzLTcuMzc4YTcgNyAwIDAgMC0zLjA2LTMuMDU5QzM5LjY4MiAzIDM3LjcyIDMgMzMuOCAzSDE0LjJjLTMuOTIgMC01Ljg4IDAtNy4zNzguNzYzYTcgNyAwIDAgMC0zLjA1OSAzLjA2WiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIuMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNC41ODUgOS43MTJDNC41MDEgMTAuNzQ2IDQuNSAxMi4wNjMgNC41IDEzLjl2MjAuMmMwIDEuODM3IDAgMy4xNTQuMDg1IDQuMTg4LjA4NCAxLjAyMi4yNDQgMS42NzguNTE0IDIuMjA5QTUuNSA1LjUgMCAwIDAgNy41MDMgNDIuOWMuNTMuMjcgMS4xODcuNDMgMi4yMS41MTQgMS4wMzMuMDg0IDIuMzUuMDg1IDQuMTg3LjA4NWgyMC4yYzEuODM3IDAgMy4xNTQgMCA0LjE4OC0uMDg1IDEuMDIyLS4wODQgMS42NzgtLjI0NCAyLjIwOS0uNTE0YTUuNSA1LjUgMCAwIDAgMi40MDQtMi40MDRjLjI3LS41My40My0xLjE4Ny41MTQtMi4yMS4wODQtMS4wMzMuMDg1LTIuMzUuMDg1LTQuMTg3VjEzLjljMC0xLjgzNyAwLTMuMTU0LS4wODUtNC4xODgtLjA4NC0xLjAyMi0uMjQ0LTEuNjc4LS41MTQtMi4yMDlBNS41IDUuNSAwIDAgMCA0MC40OTYgNS4xYy0uNTMtLjI3LTEuMTg3LS40My0yLjIxLS41MTQtMS4wMzMtLjA4NC0yLjM1LS4wODUtNC4xODctLjA4NUgxMy45Yy0xLjgzNyAwLTMuMTU0IDAtNC4xODguMDg1LTEuMDIyLjA4NC0xLjY3OC4yNDQtMi4yMDkuNTE0QTUuNSA1LjUgMCAwIDAgNS4xIDcuNTAzYy0uMjcuNTMtLjQzIDEuMTg3LS41MTQgMi4yMVpNNC4yMDggNy4wNUMzLjUgOC40NCAzLjUgMTAuMjYgMy41IDEzLjl2MjAuMmMwIDMuNjQgMCA1LjQ2LjcwOCA2Ljg1YTYuNSA2LjUgMCAwIDAgMi44NDEgMi44NDFjMS4zOS43MDkgMy4yMS43MDkgNi44NTEuNzA5aDIwLjJjMy42NCAwIDUuNDYgMCA2Ljg1LS43MDlhNi40OTkgNi40OTkgMCAwIDAgMi44NDEtMi44NGMuNzA5LTEuMzkuNzA5LTMuMjEuNzA5LTYuODUxVjEzLjljMC0zLjY0IDAtNS40Ni0uNzA5LTYuODVhNi41IDYuNSAwIDAgMC0yLjg0LTIuODQyQzM5LjU2IDMuNSAzNy43NCAzLjUgMzQuMSAzLjVIMTMuOWMtMy42NCAwLTUuNDYgMC02Ljg1LjcwOEE2LjUgNi41IDAgMCAwIDQuMjA3IDcuMDVaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTpvdmVybGF5Ii8+PHBhdGggZmlsbD0idXJsKCNlKSIgZD0iTTE4IDExLjM0N2MtNC43MyAyLjI0Ny04IDcuMDY4LTggMTIuNjUzIDAgNS41ODUgMy4yNyAxMC40MDYgOCAxMi42NTNWMjMuOTA4YzAtLjMgMC0uNTY1LjA0Ny0uODI5LjA0LS4yMzIuMTEtLjQ1OC4yMDQtLjY3NC4xMDctLjI0NS4yNTQtLjQ2NS40Mi0uNzE1bC45MDUtMS4zNTdhNi44NiA2Ljg2IDAgMCAwIC4yMTItLjMyN0wxOS43OSAyMGwtLjAwMy0uMDA2YTYuODYgNi44NiAwIDAgMC0uMjEyLS4zMjdsLS45MDQtMS4zNTdjLS4xNjctLjI1LS4zMTQtLjQ3LS40MjEtLjcxNWEyLjk5NCAyLjk5NCAwIDAgMS0uMjA0LS42NzRDMTggMTYuNjU3IDE4IDE2LjM5MiAxOCAxNi4wOTJ2LTQuNzQ1WiIvPjxwYXRoIGZpbGw9InVybCgjZikiIGQ9Ik0zMCAzNi42NTNjNC43My0yLjI0NyA4LTcuMDY4IDgtMTIuNjUzIDAtNS41ODUtMy4yNy0xMC40MDYtOC0xMi42NTN2MTIuNzQ1YzAgLjMgMCAuNTY1LS4wNDcuODI5LS4wNC4yMzItLjExLjQ1OC0uMjA0LjY3NC0uMTA3LjI0NS0uMjU0LjQ2NS0uNDIuNzE1bC0uOTA1IDEuMzU3YTYuODYgNi44NiAwIDAgMC0uMjEyLjMyN0wyOC4yMSAyOGwuMDAzLjAwNmMuMDM5LjA2Ny4wOTguMTU2LjIxMi4zMjdsLjkwNCAxLjM1N2MuMTY3LjI1LjMxNC40Ny40MjEuNzE1LjA5NS4yMTYuMTYzLjQ0Mi4yMDQuNjc0LjA0Ny4yNjQuMDQ3LjUyOS4wNDcuODI5djQuNzQ1WiIvPjxwYXRoIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iLjIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTIwLjA5MiAzOS43ODJhMiAyIDAgMCAxLS44NzQtLjg3NEMxOSAzOC40OCAxOSAzNy45MiAxOSAzNi44VjIzLjk2OWMwLS4zNiAwLS41NC4wMzEtLjcxNC4wMjgtLjE1NS4wNzMtLjMwNi4xMzYtLjQ1LjA3LS4xNjIuMTctLjMxMS4zNy0uNjExbC44NzEtMS4zMDZjLjIxNC0uMzIxLjMyMS0uNDgyLjM2My0uNjU1YTEgMSAwIDAgMCAwLS40NjZjLS4wNDItLjE3My0uMTQ5LS4zMzQtLjM2My0uNjU0bC0uODctMS4zMDdjLS4yLS4zLS4zLS40NS0uMzctLjYxMWExLjk5OCAxLjk5OCAwIDAgMS0uMTM3LS40NWMtLjAzLS4xNzQtLjAzLS4zNTQtLjAzLS43MTRWMTEuMmMwLTEuMTIgMC0xLjY4LjIxNy0yLjEwOGEyIDIgMCAwIDEgLjg3NC0uODc0QzIwLjUyIDggMjEuMDggOCAyMi4yIDhoMy42YzEuMTIgMCAxLjY4IDAgMi4xMDguMjE4YTIgMiAwIDAgMSAuODc0Ljg3NEMyOSA5LjUyIDI5IDEwLjA4IDI5IDExLjJ2MTIuODMxYzAgLjM2IDAgLjU0LS4wMzEuNzE0YTEuOTk4IDEuOTk4IDAgMCAxLS4xMzYuNDVjLS4wNy4xNjItLjE3LjMxMS0uMzcuNjExbC0uODcxIDEuMzA2Yy0uMjE0LjMyMS0uMzIxLjQ4Mi0uMzYzLjY1NWExIDEgMCAwIDAgMCAuNDY2Yy4wNDIuMTczLjE0OS4zMzQuMzYzLjY1NGwuODcgMS4zMDdjLjIuMy4zLjQ1LjM3MS42MTEuMDYzLjE0NC4xMDkuMjk1LjEzNi40NS4wMzEuMTc0LjAzMS4zNTQuMDMxLjcxNFYzNi44YzAgMS4xMiAwIDEuNjgtLjIxOCAyLjEwOGEyIDIgMCAwIDEtLjg3NC44NzRDMjcuNDggNDAgMjYuOTIgNDAgMjUuOCA0MGgtMy42Yy0xLjEyIDAtMS42OCAwLTIuMTA4LS4yMThaTTE5Ljc5MSAyMGwtLjAwMy0uMDA2YTYuODYgNi44NiAwIDAgMC0uMjEyLS4zMjdsLS44Ny0xLjMwNi0uMDM0LS4wNWMtLjE2Ny0uMjUtLjMxNC0uNDcxLS40MjEtLjcxNmEzIDMgMCAwIDEtLjIwNC0uNjc0QzE4IDE2LjY1NyAxOCAxNi4zOTIgMTggMTYuMDkydi00LjkzYzAtLjUyOCAwLS45ODIuMDMtMS4zNTcuMDMzLS4zOTUuMTA0LS43ODkuMjk3LTEuMTY3YTMgMyAwIDAgMSAxLjMxMS0xLjMxMWMuMzc4LS4xOTMuNzcyLS4yNjQgMS4xNjctLjI5NkMyMS4xOCA3IDIxLjYzNSA3IDIyLjE2MiA3aDMuNjc3Yy41MjcgMCAuOTgyIDAgMS4zNTYuMDMuMzk1LjAzMy43ODkuMTA0IDEuMTY3LjI5N2EzIDMgMCAwIDEgMS4zMTEgMS4zMTFjLjE5My4zNzguMjY0Ljc3Mi4yOTcgMS4xNjcuMDMuMzc1LjAzLjgzLjAzIDEuMzU3djEyLjkzYzAgLjMgMCAuNTY1LS4wNDcuODI5YTMgMyAwIDAgMS0uMjAzLjY3NGMtLjEwOC4yNDUtLjI1NS40NjUtLjQyMi43MTUtLjAxLjAxNy0uMDIyLjAzNC0uMDMzLjA1bC0uODcxIDEuMzA3YTYuODYgNi44NiAwIDAgMC0uMjExLjMyN2wtLjAwNC4wMDYuMDA0LjAwNmMuMDM4LjA2Ny4wOTcuMTU2LjIxLjMyN2wuODcyIDEuMzA2LjAzMy4wNWMuMTY3LjI1LjMxNC40NzEuNDIyLjcxNmEzIDMgMCAwIDEgLjIwMy42NzRjLjA0Ny4yNjQuMDQ3LjUyOS4wNDcuODI5djQuOTNjMCAuNTI4IDAgLjk4My0uMDMgMS4zNTctLjAzMy4zOTUtLjEwNC43ODktLjI5NyAxLjE2N2EzIDMgMCAwIDEtMS4zMTEgMS4zMTFjLS4zNzguMTkzLS43NzIuMjY0LTEuMTY3LjI5Ni0uMzc1LjAzMS0uODMuMDMxLTEuMzU2LjAzMWgtMy42NzdjLS41MjggMC0uOTgyIDAtMS4zNTctLjAzLS4zOTUtLjAzMy0uNzg4LS4xMDQtMS4xNjctLjI5N2EzIDMgMCAwIDEtMS4zMTEtMS4zMTFjLS4xOTMtLjM3OC0uMjY0LS43NzItLjI5Ni0xLjE2N2ExNy4yMyAxNy4yMyAwIDAgMS0uMDMtMS4zNTZ2LTEyLjg3TDE4IDIzLjkwOGMwLS4zIDAtLjU2NS4wNDctLjgyOWEzIDMgMCAwIDEgLjIwNC0uNjc0Yy4xMDctLjI0NS4yNTQtLjQ2NS40Mi0uNzE1bC4wMzQtLjA1Ljg3MS0xLjMwN2E2Ljg2IDYuODYgMCAwIDAgLjIxMi0uMzI3TDE5Ljc5IDIwWiIgY2xpcC1ydWxlPSJldmVub2RkIiBzdHlsZT0ibWl4LWJsZW5kLW1vZGU6b3ZlcmxheSIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjciIGQ9Ik0xOSAxMS4yYzAtMS4xMiAwLTEuNjguMjE4LTIuMTA4YTIgMiAwIDAgMSAuODc0LS44NzRDMjAuNTIgOCAyMS4wOCA4IDIyLjIgOGgzLjZjMS4xMiAwIDEuNjggMCAyLjEwOC4yMThhMiAyIDAgMCAxIC44NzQuODc0QzI5IDkuNTIgMjkgMTAuMDggMjkgMTEuMnYxMi44MzFjMCAuMzYgMCAuNTQtLjAzMS43MTRhMi4wMDMgMi4wMDMgMCAwIDEtLjEzNi40NWMtLjA3LjE2Mi0uMTcuMzExLS4zNy42MTFsLS44NzEgMS4zMDZjLS4yMTQuMzIxLS4zMjEuNDgyLS4zNjMuNjU1YTEgMSAwIDAgMCAwIC40NjZjLjA0Mi4xNzMuMTQ5LjMzNC4zNjMuNjU0bC44NyAxLjMwN2MuMi4zLjMuNDUuMzcxLjYxMS4wNjMuMTQ0LjEwOC4yOTUuMTM2LjQ1LjAzMS4xNzQuMDMxLjM1NC4wMzEuNzE0VjM2LjhjMCAxLjEyIDAgMS42OC0uMjE4IDIuMTA4YTIgMiAwIDAgMS0uODc0Ljg3NEMyNy40OCA0MCAyNi45MiA0MCAyNS44IDQwaC0zLjZjLTEuMTIgMC0xLjY4IDAtMi4xMDgtLjIxOGEyIDIgMCAwIDEtLjg3NC0uODc0QzE5IDM4LjQ4IDE5IDM3LjkyIDE5IDM2LjhWMjMuOTY5YzAtLjM2IDAtLjU0LjAzMS0uNzE0LjAyOC0uMTU1LjA3My0uMzA2LjEzNi0uNDUuMDctLjE2Mi4xNy0uMzExLjM3LS42MTFsLjg3MS0xLjMwNmMuMjE0LS4zMjEuMzIxLS40ODIuMzYzLS42NTVhMSAxIDAgMCAwIDAtLjQ2NmMtLjA0Mi0uMTczLS4xNDktLjMzNC0uMzYzLS42NTRsLS44Ny0xLjMwN2MtLjItLjMtLjMtLjQ1LS4zNzEtLjYxMWEyLjAwMyAyLjAwMyAwIDAgMS0uMTM2LS40NUMxOSAxNi41NzEgMTkgMTYuMzkxIDE5IDE2LjAzMVYxMS4yWiIvPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgeDE9IjI0IiB4Mj0iMjQiIHkxPSIwIiB5Mj0iNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjMTc0Mjk5Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDAxRTU5Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImIiIHgxPSIyNCIgeDI9IjI0IiB5MT0iMCIgeTI9IjQ4IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI0QyRDhFNCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0MyQzlENiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJlIiB4MT0iMjQiIHgyPSIyNCIgeTE9IjEwIiB5Mj0iMzgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLW9wYWNpdHk9Ii4xMiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1vcGFjaXR5PSIuMDQiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZiIgeDE9IjI0IiB4Mj0iMjQiIHkxPSIxMCIgeTI9IjM4IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1vcGFjaXR5PSIuMTIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3Atb3BhY2l0eT0iLjA0Ii8+PC9saW5lYXJHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImMiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09InJvdGF0ZSgtNDAuMDc3IDY5LjgxNSA0OC42NjUpIHNjYWxlKDgyLjkwNDgpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agb2Zmc2V0PSIuMjc2IiBzdG9wLWNvbG9yPSIjMjBGRjREIi8+PHN0b3Agb2Zmc2V0PSIuNDY0IiBzdG9wLWNvbG9yPSIjMTQ5OUZGIi8+PHN0b3Agb2Zmc2V0PSIuNzU1IiBzdG9wLWNvbG9yPSIjRkY2RkM2Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQkM2N0ZGIi8+PC9yYWRpYWxHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImQiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRUcmFuc2Zvcm09InJvdGF0ZSg0NSAyLjUyIC02LjA4Mikgc2NhbGUoNjguNjc3NykiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSJyZWQiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMEEzRkYiLz48L3JhZGlhbEdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";export{L as default}; -//# sourceMappingURL=login-ZSMM5UYL-DT0rm6wp.js.map diff --git a/apps/web/public/assets/metaMaskWallet-ORHUNQRP-DhHH5FFG.js b/apps/web/public/assets/metaMaskWallet-ORHUNQRP-DhHH5FFG.js deleted file mode 100644 index 019bd7a9..00000000 --- a/apps/web/public/assets/metaMaskWallet-ORHUNQRP-DhHH5FFG.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var I=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},M=new I.Error().stack;M&&(I._sentryDebugIds=I._sentryDebugIds||{},I._sentryDebugIds[M]="023b0b21-6c7b-4160-8e58-92f54b5c0fdd",I._sentryDebugIdIdentifier="sentry-dbid-023b0b21-6c7b-4160-8e58-92f54b5c0fdd")}catch{}})();var D="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI4IiBoZWlnaHQ9IjI4IiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjQuMDg5MSAzLjExOTlMMTUuMzQ0NiA5LjYxNDU2TDE2Ljk2MTcgNS43ODI4TDI0LjA4OTEgMy4xMTk5WiIgZmlsbD0iI0UyNzYxQiIgc3Ryb2tlPSIjRTI3NjFCIiBzdHJva2Utd2lkdGg9IjAuMDg3ODg0NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0zLjkwMjA3IDMuMTE5OUwxMi41NzYzIDkuNjc2MDhMMTEuMDM4MyA1Ljc4MjhMMy45MDIwNyAzLjExOTlaIiBmaWxsPSIjRTQ3NjFCIiBzdHJva2U9IiNFNDc2MUIiIHN0cm9rZS13aWR0aD0iMC4wODc4ODQ1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTIwLjk0MjkgMTguMTc0NUwxOC42MTM5IDIxLjc0MjZMMjMuNTk3IDIzLjExMzZMMjUuMDI5NSAxOC4yNTM2TDIwLjk0MjkgMTguMTc0NVoiIGZpbGw9IiNFNDc2MUIiIHN0cm9rZT0iI0U0NzYxQiIgc3Ryb2tlLXdpZHRoPSIwLjA4Nzg4NDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMi45NzkyOSAxOC4yNTM2TDQuNDAzMDEgMjMuMTEzNkw5LjM4NjA3IDIxLjc0MjZMNy4wNTcxMyAxOC4xNzQ1TDIuOTc5MjkgMTguMjUzNloiIGZpbGw9IiNFNDc2MUIiIHN0cm9rZT0iI0U0NzYxQiIgc3Ryb2tlLXdpZHRoPSIwLjA4Nzg4NDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNOS4xMDQ4MyAxMi4xNDU2TDcuNzE2MjYgMTQuMjQ2MUwxMi42NjQyIDE0LjQ2NThMMTIuNDg4NCA5LjE0ODc3TDkuMTA0ODMgMTIuMTQ1NloiIGZpbGw9IiNFNDc2MUIiIHN0cm9rZT0iI0U0NzYxQiIgc3Ryb2tlLXdpZHRoPSIwLjA4Nzg4NDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTguODg2NCAxMi4xNDU2TDE1LjQ1ODkgOS4wODcyNUwxNS4zNDQ2IDE0LjQ2NThMMjAuMjgzNyAxNC4yNDYxTDE4Ljg4NjQgMTIuMTQ1NloiIGZpbGw9IiNFNDc2MUIiIHN0cm9rZT0iI0U0NzYxQiIgc3Ryb2tlLXdpZHRoPSIwLjA4Nzg4NDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNOS4zODYwNiAyMS43NDI2TDEyLjM1NjYgMjAuMjkyNUw5Ljc5MDMzIDE4LjI4ODhMOS4zODYwNiAyMS43NDI2WiIgZmlsbD0iI0U0NzYxQiIgc3Ryb2tlPSIjRTQ3NjFCIiBzdHJva2Utd2lkdGg9IjAuMDg3ODg0NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xNS42MzQ3IDIwLjI5MjVMMTguNjEzOSAyMS43NDI2TDE4LjIwMDkgMTguMjg4OEwxNS42MzQ3IDIwLjI5MjVaIiBmaWxsPSIjRTQ3NjFCIiBzdHJva2U9IiNFNDc2MUIiIHN0cm9rZS13aWR0aD0iMC4wODc4ODQ1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTE4LjYxMzkgMjEuNzQyNkwxNS42MzQ3IDIwLjI5MjVMMTUuODcxOSAyMi4yMzQ4TDE1Ljg0NTYgMjMuMDUyMUwxOC42MTM5IDIxLjc0MjZaIiBmaWxsPSIjRDdDMUIzIiBzdHJva2U9IiNEN0MxQjMiIHN0cm9rZS13aWR0aD0iMC4wODc4ODQ1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTkuMzg2MDYgMjEuNzQyNkwxMi4xNTQ0IDIzLjA1MjFMMTIuMTM2OCAyMi4yMzQ4TDEyLjM1NjYgMjAuMjkyNUw5LjM4NjA2IDIxLjc0MjZaIiBmaWxsPSIjRDdDMUIzIiBzdHJva2U9IiNEN0MxQjMiIHN0cm9rZS13aWR0aD0iMC4wODc4ODQ1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTEyLjE5ODQgMTcuMDA1Nkw5LjcyMDAyIDE2LjI3NjJMMTEuNDY4OSAxNS40NzY1TDEyLjE5ODQgMTcuMDA1NloiIGZpbGw9IiMyMzM0NDciIHN0cm9rZT0iIzIzMzQ0NyIgc3Ryb2tlLXdpZHRoPSIwLjA4Nzg4NDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTUuNzkyOCAxNy4wMDU2TDE2LjUyMjMgMTUuNDc2NUwxOC4yOCAxNi4yNzYyTDE1Ljc5MjggMTcuMDA1NloiIGZpbGw9IiMyMzM0NDciIHN0cm9rZT0iIzIzMzQ0NyIgc3Ryb2tlLXdpZHRoPSIwLjA4Nzg4NDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNOS4zODYwNiAyMS43NDI2TDkuODA3OTEgMTguMTc0NUw3LjA1NzEyIDE4LjI1MzZMOS4zODYwNiAyMS43NDI2WiIgZmlsbD0iI0NENjExNiIgc3Ryb2tlPSIjQ0Q2MTE2IiBzdHJva2Utd2lkdGg9IjAuMDg3ODg0NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xOC4xOTIxIDE4LjE3NDVMMTguNjEzOSAyMS43NDI2TDIwLjk0MjkgMTguMjUzNkwxOC4xOTIxIDE4LjE3NDVaIiBmaWxsPSIjQ0Q2MTE2IiBzdHJva2U9IiNDRDYxMTYiIHN0cm9rZS13aWR0aD0iMC4wODc4ODQ1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTIwLjI4MzcgMTQuMjQ2MUwxNS4zNDQ2IDE0LjQ2NThMMTUuODAxNiAxNy4wMDU3TDE2LjUzMTEgMTUuNDc2NUwxOC4yODg4IDE2LjI3NjJMMjAuMjgzNyAxNC4yNDYxWiIgZmlsbD0iI0NENjExNiIgc3Ryb2tlPSIjQ0Q2MTE2IiBzdHJva2Utd2lkdGg9IjAuMDg3ODg0NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik05LjcyMDAyIDE2LjI3NjJMMTEuNDc3NyAxNS40NzY1TDEyLjE5ODQgMTcuMDA1N0wxMi42NjQyIDE0LjQ2NThMNy43MTYyNiAxNC4yNDYxTDkuNzIwMDIgMTYuMjc2MloiIGZpbGw9IiNDRDYxMTYiIHN0cm9rZT0iI0NENjExNiIgc3Ryb2tlLXdpZHRoPSIwLjA4Nzg4NDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNNy43MTYyNiAxNC4yNDYxTDkuNzkwMzMgMTguMjg4OEw5LjcyMDAyIDE2LjI3NjJMNy43MTYyNiAxNC4yNDYxWiIgZmlsbD0iI0U0NzUxRiIgc3Ryb2tlPSIjRTQ3NTFGIiBzdHJva2Utd2lkdGg9IjAuMDg3ODg0NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xOC4yODg4IDE2LjI3NjJMMTguMjAwOSAxOC4yODg4TDIwLjI4MzcgMTQuMjQ2MUwxOC4yODg4IDE2LjI3NjJaIiBmaWxsPSIjRTQ3NTFGIiBzdHJva2U9IiNFNDc1MUYiIHN0cm9rZS13aWR0aD0iMC4wODc4ODQ1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTEyLjY2NDIgMTQuNDY1OEwxMi4xOTg0IDE3LjAwNTdMMTIuNzc4NCAyMC4wMDI1TDEyLjkxMDIgMTYuMDU2NUwxMi42NjQyIDE0LjQ2NThaIiBmaWxsPSIjRTQ3NTFGIiBzdHJva2U9IiNFNDc1MUYiIHN0cm9rZS13aWR0aD0iMC4wODc4ODQ1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTE1LjM0NDYgMTQuNDY1OEwxNS4xMDczIDE2LjA0NzdMMTUuMjEyOCAyMC4wMDI1TDE1LjgwMTYgMTcuMDA1N0wxNS4zNDQ2IDE0LjQ2NThaIiBmaWxsPSIjRTQ3NTFGIiBzdHJva2U9IiNFNDc1MUYiIHN0cm9rZS13aWR0aD0iMC4wODc4ODQ1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTE1LjgwMTYgMTcuMDA1NkwxNS4yMTI4IDIwLjAwMjVMMTUuNjM0NyAyMC4yOTI1TDE4LjIwMDkgMTguMjg4OEwxOC4yODg4IDE2LjI3NjJMMTUuODAxNiAxNy4wMDU2WiIgZmlsbD0iI0Y2ODUxQiIgc3Ryb2tlPSIjRjY4NTFCIiBzdHJva2Utd2lkdGg9IjAuMDg3ODg0NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik05LjcyMDAyIDE2LjI3NjJMOS43OTAzMyAxOC4yODg4TDEyLjM1NjYgMjAuMjkyNUwxMi43Nzg0IDIwLjAwMjVMMTIuMTk4NCAxNy4wMDU2TDkuNzIwMDIgMTYuMjc2MloiIGZpbGw9IiNGNjg1MUIiIHN0cm9rZT0iI0Y2ODUxQiIgc3Ryb2tlLXdpZHRoPSIwLjA4Nzg4NDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTUuODQ1NiAyMy4wNTIxTDE1Ljg3MTkgMjIuMjM0OEwxNS42NTIyIDIyLjA0MTRIMTIuMzM5TDEyLjEzNjggMjIuMjM0OEwxMi4xNTQ0IDIzLjA1MjFMOS4zODYwNiAyMS43NDI2TDEwLjM1MjggMjIuNTMzNkwxMi4zMTI2IDIzLjg5NThIMTUuNjc4NkwxNy42NDcyIDIyLjUzMzZMMTguNjEzOSAyMS43NDI2TDE1Ljg0NTYgMjMuMDUyMVoiIGZpbGw9IiNDMEFEOUUiIHN0cm9rZT0iI0MwQUQ5RSIgc3Ryb2tlLXdpZHRoPSIwLjA4Nzg4NDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTUuNjM0NyAyMC4yOTI1TDE1LjIxMjggMjAuMDAyNUgxMi43Nzg0TDEyLjM1NjYgMjAuMjkyNUwxMi4xMzY4IDIyLjIzNDhMMTIuMzM5IDIyLjA0MTRIMTUuNjUyMkwxNS44NzE5IDIyLjIzNDhMMTUuNjM0NyAyMC4yOTI1WiIgZmlsbD0iIzE2MTYxNiIgc3Ryb2tlPSIjMTYxNjE2IiBzdHJva2Utd2lkdGg9IjAuMDg3ODg0NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0yNC40NTgzIDEwLjAzNjRMMjUuMjA1MyA2LjQ1MDcyTDI0LjA4OTEgMy4xMTk5TDE1LjYzNDcgOS4zOTQ4NUwxOC44ODY0IDEyLjE0NTZMMjMuNDgyNyAxMy40OTAzTDI0LjUwMjIgMTIuMzAzOEwyNC4wNjI4IDExLjk4NzRMMjQuNzY1OCAxMS4zNDU5TDI0LjIyMSAxMC45MjRMMjQuOTI0IDEwLjM4NzlMMjQuNDU4MyAxMC4wMzY0WiIgZmlsbD0iIzc2M0QxNiIgc3Ryb2tlPSIjNzYzRDE2IiBzdHJva2Utd2lkdGg9IjAuMDg3ODg0NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0yLjc5NDcyIDYuNDUwNzJMMy41NDE3NCAxMC4wMzY0TDMuMDY3MTcgMTAuMzg3OUwzLjc3MDI0IDEwLjkyNEwzLjIzNDE1IDExLjM0NTlMMy45MzcyMiAxMS45ODc0TDMuNDk3OCAxMi4zMDM4TDQuNTA4NDcgMTMuNDkwM0w5LjEwNDgzIDEyLjE0NTZMMTIuMzU2NiA5LjM5NDg1TDMuOTAyMDcgMy4xMTk5TDIuNzk0NzIgNi40NTA3MloiIGZpbGw9IiM3NjNEMTYiIHN0cm9rZT0iIzc2M0QxNiIgc3Ryb2tlLXdpZHRoPSIwLjA4Nzg4NDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMjMuNDgyNyAxMy40OTAzTDE4Ljg4NjQgMTIuMTQ1NkwyMC4yODM3IDE0LjI0NjFMMTguMjAwOSAxOC4yODg4TDIwLjk0MjkgMTguMjUzNkgyNS4wMjk1TDIzLjQ4MjcgMTMuNDkwM1oiIGZpbGw9IiNGNjg1MUIiIHN0cm9rZT0iI0Y2ODUxQiIgc3Ryb2tlLXdpZHRoPSIwLjA4Nzg4NDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNOS4xMDQ4NCAxMi4xNDU2TDQuNTA4NDggMTMuNDkwM0wyLjk3OTI5IDE4LjI1MzZINy4wNTcxM0w5Ljc5MDMzIDE4LjI4ODhMNy43MTYyNiAxNC4yNDYxTDkuMTA0ODQgMTIuMTQ1NloiIGZpbGw9IiNGNjg1MUIiIHN0cm9rZT0iI0Y2ODUxQiIgc3Ryb2tlLXdpZHRoPSIwLjA4Nzg4NDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTUuMzQ0NiAxNC40NjU4TDE1LjYzNDcgOS4zOTQ4NUwxNi45NzA1IDUuNzgyOEgxMS4wMzgzTDEyLjM1NjYgOS4zOTQ4NUwxMi42NjQyIDE0LjQ2NThMMTIuNzY5NiAxNi4wNjUzTDEyLjc3ODQgMjAuMDAyNUgxNS4yMTI4TDE1LjIzMDQgMTYuMDY1M0wxNS4zNDQ2IDE0LjQ2NThaIiBmaWxsPSIjRjY4NTFCIiBzdHJva2U9IiNGNjg1MUIiIHN0cm9rZS13aWR0aD0iMC4wODc4ODQ1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==";export{D as default}; -//# sourceMappingURL=metaMaskWallet-ORHUNQRP-DhHH5FFG.js.map diff --git a/apps/web/public/assets/msgline-messager-B71sigHl.js b/apps/web/public/assets/msgline-messager-B71sigHl.js deleted file mode 100644 index f752c29a..00000000 --- a/apps/web/public/assets/msgline-messager-B71sigHl.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-Bl6Lkf65.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e71fe420-a926-4849-b9a1-999733c72490",e._sentryDebugIdIdentifier="sentry-dbid-e71fe420-a926-4849-b9a1-999733c72490")}catch{}})();const s=[{inputs:[{internalType:"address",name:"_dao",type:"address"},{internalType:"address",name:"_msgline",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"srcAppChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"bool",name:"result",type:"bool"}],name:"CallResult",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"srcAppChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"srcAppAddress",type:"address"}],name:"CallerUnMatched",type:"event"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"latestRecvMessageId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"latestSentMessageId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"messageId",type:"bytes32"}],name:"messageDelivered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"bytes",name:"_message",type:"bytes"}],name:"messagePayload",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"msgline",outputs:[{internalType:"contract IMessageLine",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingDao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_srcAppChainId",type:"uint256"},{internalType:"address",name:"_remoteAppAddress",type:"address"},{internalType:"address",name:"_localAppAddress",type:"address"},{internalType:"bytes",name:"_message",type:"bytes"}],name:"receiveMessage",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"}],name:"registerRemoteReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"}],name:"registerRemoteSender",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"remoteAppReceivers",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"remoteAppSenders",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"remoteMessagers",outputs:[{internalType:"uint256",name:"msglineRemoteChainId",type:"uint256"},{internalType:"address",name:"messager",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes",name:"_message",type:"bytes"},{internalType:"bytes",name:"_params",type:"bytes"}],name:"sendMessage",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_appRemoteChainId",type:"uint256"},{internalType:"uint256",name:"_msglineRemoteChainId",type:"uint256"},{internalType:"address",name:"_remoteMessager",type:"address"}],name:"setRemoteMessager",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_caller",type:"address"},{internalType:"bool",name:"_enable",type:"bool"}],name:"setWhiteList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"whiteList",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}];export{s as default}; -//# sourceMappingURL=msgline-messager-B71sigHl.js.map diff --git a/apps/web/public/assets/msgline-messager-BAOluMJI.js b/apps/web/public/assets/msgline-messager-BAOluMJI.js deleted file mode 100644 index be77ed2b..00000000 --- a/apps/web/public/assets/msgline-messager-BAOluMJI.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-CTwKNzhK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e71fe420-a926-4849-b9a1-999733c72490",e._sentryDebugIdIdentifier="sentry-dbid-e71fe420-a926-4849-b9a1-999733c72490")}catch{}})();const s=[{inputs:[{internalType:"address",name:"_dao",type:"address"},{internalType:"address",name:"_msgline",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"srcAppChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"bool",name:"result",type:"bool"}],name:"CallResult",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"srcAppChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"srcAppAddress",type:"address"}],name:"CallerUnMatched",type:"event"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"latestRecvMessageId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"latestSentMessageId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"messageId",type:"bytes32"}],name:"messageDelivered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"bytes",name:"_message",type:"bytes"}],name:"messagePayload",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"msgline",outputs:[{internalType:"contract IMessageLine",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingDao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_srcAppChainId",type:"uint256"},{internalType:"address",name:"_remoteAppAddress",type:"address"},{internalType:"address",name:"_localAppAddress",type:"address"},{internalType:"bytes",name:"_message",type:"bytes"}],name:"receiveMessage",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"}],name:"registerRemoteReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"}],name:"registerRemoteSender",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"remoteAppReceivers",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"remoteAppSenders",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"remoteMessagers",outputs:[{internalType:"uint256",name:"msglineRemoteChainId",type:"uint256"},{internalType:"address",name:"messager",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes",name:"_message",type:"bytes"},{internalType:"bytes",name:"_params",type:"bytes"}],name:"sendMessage",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_appRemoteChainId",type:"uint256"},{internalType:"uint256",name:"_msglineRemoteChainId",type:"uint256"},{internalType:"address",name:"_remoteMessager",type:"address"}],name:"setRemoteMessager",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_caller",type:"address"},{internalType:"bool",name:"_enable",type:"bool"}],name:"setWhiteList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"whiteList",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}];export{s as default}; -//# sourceMappingURL=msgline-messager-BAOluMJI.js.map diff --git a/apps/web/public/assets/msgline-messager-gody91Yq.js b/apps/web/public/assets/msgline-messager-gody91Yq.js deleted file mode 100644 index 088ff8d6..00000000 --- a/apps/web/public/assets/msgline-messager-gody91Yq.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index-Cl-fQh5M.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e71fe420-a926-4849-b9a1-999733c72490",e._sentryDebugIdIdentifier="sentry-dbid-e71fe420-a926-4849-b9a1-999733c72490")}catch{}})();const s=[{inputs:[{internalType:"address",name:"_dao",type:"address"},{internalType:"address",name:"_msgline",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"srcAppChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"bool",name:"result",type:"bool"}],name:"CallResult",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"srcAppChainId",type:"uint256"},{indexed:!1,internalType:"bytes32",name:"transferId",type:"bytes32"},{indexed:!1,internalType:"address",name:"srcAppAddress",type:"address"}],name:"CallerUnMatched",type:"event"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"dao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"latestRecvMessageId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"latestSentMessageId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"messageId",type:"bytes32"}],name:"messageDelivered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"bytes",name:"_message",type:"bytes"}],name:"messagePayload",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"msgline",outputs:[{internalType:"contract IMessageLine",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"operator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingDao",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_srcAppChainId",type:"uint256"},{internalType:"address",name:"_remoteAppAddress",type:"address"},{internalType:"address",name:"_localAppAddress",type:"address"},{internalType:"bytes",name:"_message",type:"bytes"}],name:"receiveMessage",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"}],name:"registerRemoteReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"address",name:"_remoteBridge",type:"address"}],name:"registerRemoteSender",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"remoteAppReceivers",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"remoteAppSenders",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"remoteMessagers",outputs:[{internalType:"uint256",name:"msglineRemoteChainId",type:"uint256"},{internalType:"address",name:"messager",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_remoteChainId",type:"uint256"},{internalType:"bytes",name:"_message",type:"bytes"},{internalType:"bytes",name:"_params",type:"bytes"}],name:"sendMessage",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"}],name:"setOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_appRemoteChainId",type:"uint256"},{internalType:"uint256",name:"_msglineRemoteChainId",type:"uint256"},{internalType:"address",name:"_remoteMessager",type:"address"}],name:"setRemoteMessager",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_caller",type:"address"},{internalType:"bool",name:"_enable",type:"bool"}],name:"setWhiteList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_dao",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"whiteList",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}];export{s as default}; -//# sourceMappingURL=msgline-messager-gody91Yq.js.map diff --git a/apps/web/public/assets/okxWallet-GKYMI2XW-CdXZL5HC.js b/apps/web/public/assets/okxWallet-GKYMI2XW-CdXZL5HC.js deleted file mode 100644 index 703e32f0..00000000 --- a/apps/web/public/assets/okxWallet-GKYMI2XW-CdXZL5HC.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},z=new M.Error().stack;z&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[z]="8ab435c4-fad3-4ca3-9006-648f2084b2a8",M._sentryDebugIdIdentifier="sentry-dbid-8ab435c4-fad3-4ca3-9006-648f2084b2a8")}catch{}})();var j="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyOCAyOCI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTAgMGgyOHYyOEgweiIvPjxwYXRoIGZpbGw9IiNmZmYiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjgxOSA1LjU1Nkg1LjkzYS4zNzYuMzc2IDAgMCAwLS4zNzUuMzc1djQuODg4YzAgLjIwNy4xNjguMzc1LjM3NS4zNzVoNC44ODhhLjM3Ni4zNzYgMCAwIDAgLjM3NS0uMzc2VjUuOTMyYS4zNzYuMzc2IDAgMCAwLS4zNzYtLjM3NVptNS42NCA1LjYzOGgtNC44ODZhLjM3Ni4zNzYgMCAwIDAtLjM3Ni4zNzZ2NC44ODdjMCAuMjA4LjE2OC4zNzYuMzc2LjM3Nmg0Ljg4N2EuMzc2LjM3NiAwIDAgMCAuMzc2LS4zNzVWMTEuNTdhLjM3Ni4zNzYgMCAwIDAtLjM3Ni0uMzc3Wm0uNzUtNS42MzhoNC44ODdjLjIwOCAwIC4zNzYuMTY4LjM3Ni4zNzV2NC44ODhhLjM3Ni4zNzYgMCAwIDEtLjM3Ni4zNzVIMTcuMjFhLjM3Ni4zNzYgMCAwIDEtLjM3Ni0uMzc2VjUuOTMzYzAtLjIwOC4xNjktLjM3Ni4zNzYtLjM3NlptLTYuMzkgMTEuMjc3SDUuOTNhLjM3Ni4zNzYgMCAwIDAtLjM3NS4zNzZ2NC44ODdjMCAuMjA4LjE2OC4zNzYuMzc1LjM3Nmg0Ljg4OGEuMzc2LjM3NiAwIDAgMCAuMzc1LS4zNzZWMTcuMjFhLjM3Ni4zNzYgMCAwIDAtLjM3Ni0uMzc2Wm02LjM5IDBoNC44ODdjLjIwOCAwIC4zNzYuMTY5LjM3Ni4zNzZ2NC44ODdhLjM3Ni4zNzYgMCAwIDEtLjM3Ni4zNzZIMTcuMjFhLjM3Ni4zNzYgMCAwIDEtLjM3Ni0uMzc2VjE3LjIxYzAtLjIwNy4xNjktLjM3Ni4zNzYtLjM3NloiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==";export{j as default}; -//# sourceMappingURL=okxWallet-GKYMI2XW-CdXZL5HC.js.map diff --git a/apps/web/public/assets/optimism-UUP5Y7TB-BI-bx6R2.js b/apps/web/public/assets/optimism-UUP5Y7TB-BI-bx6R2.js deleted file mode 100644 index 52610eb2..00000000 --- a/apps/web/public/assets/optimism-UUP5Y7TB-BI-bx6R2.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var I=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},M=new I.Error().stack;M&&(I._sentryDebugIds=I._sentryDebugIds||{},I._sentryDebugIds[M]="788f1efb-1e39-4666-887e-17498e9cfabe",I._sentryDebugIdIdentifier="sentry-dbid-788f1efb-1e39-4666-887e-17498e9cfabe")}catch{}})();var j="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgZmlsbD0ibm9uZSI+PHJlY3Qgd2lkdGg9IjI4IiBoZWlnaHQ9IjI4IiBmaWxsPSIjRkYzMTMxIiByeD0iMTQiLz48cmVjdCB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9InVybCgjYSkiIGZpbGwtb3BhY2l0eT0iLjMiIHJ4PSIxNCIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik05LjIyIDE4LjM1YzIuNyAwIDQuODYtMi4yIDQuODYtNS4zOCAwLTIuMTktMS40Ny0zLjgtMy45OC0zLjgtMi43MiAwLTQuODUgMi4yLTQuODUgNS4zOCAwIDIuMiAxLjUgMy44IDMuOTcgMy44Wm0uODMtNy4zNWMxLjA2IDAgMS43NC44MSAxLjc0IDIuMSAwIDEuOS0xLjExIDMuNDItMi41MSAzLjQyLTEuMDYgMC0xLjc0LS44Mi0xLjc0LTIuMSAwLTEuODkgMS4xMS0zLjQyIDIuNS0zLjQyWm02LjM4LTEuNjgtMS44OCA4Ljg4aDIuMjZsLjU1LTIuNmgxLjQ3YzIuNDMgMCA0LjAxLTEuMzggNC4wMS0zLjYgMC0xLjYxLTEuMTctMi42OC0zLjEtMi42OGgtMy4zWm0xLjkgMS43NGguOTRjLjgzIDAgMS4zLjM4IDEuMyAxLjE0IDAgMS0uNjggMS43LTEuNzQgMS43aC0xLjExbC42LTIuODRaIi8+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iMCIgeDI9IjE0IiB5MT0iMCIgeTI9IjI4IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI2ZmZiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PC9zdmc+Cg==";export{j as default}; -//# sourceMappingURL=optimism-UUP5Y7TB-BI-bx6R2.js.map diff --git a/apps/web/public/assets/polygon-Z4QITDL7-DuMBfvk7.js b/apps/web/public/assets/polygon-Z4QITDL7-DuMBfvk7.js deleted file mode 100644 index 75a672ec..00000000 --- a/apps/web/public/assets/polygon-Z4QITDL7-DuMBfvk7.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var I=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},j=new I.Error().stack;j&&(I._sentryDebugIds=I._sentryDebugIds||{},I._sentryDebugIds[j]="c1047824-ba59-4984-9840-0eeb4ce7e103",I._sentryDebugIdIdentifier="sentry-dbid-c1047824-ba59-4984-9840-0eeb4ce7e103")}catch{}})();var g="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjgiIGhlaWdodD0iMjgiPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iQSIgeDE9Ii0xOC4yNzUlIiB4Mj0iODQuOTU5JSIgeTE9IjguMjE5JSIgeTI9IjcxLjM5MyUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNhMjI5YzUiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM3YjNmZTQiLz48L2xpbmVhckdyYWRpZW50PjxjaXJjbGUgaWQ9IkIiIGN4PSIxNCIgY3k9IjE0IiByPSIxNCIvPjwvZGVmcz48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJDIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNCIi8+PC9tYXNrPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZmlsbD0idXJsKCNBKSIgZD0iTS0xLjMyNi0xLjMyNmgzMC42NTF2MzAuNjUxSC0xLjMyNnoiIG1hc2s9InVybCgjQykiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTguMDQ5IDE3LjAyMWwzLjk2LTIuMjg3YS42ODEuNjgxIDAgMCAwIC4zNC0uNTg5VjkuNTcyYS42ODMuNjgzIDAgMCAwLS4zNC0uNTlsLTMuOTYtMi4yODZhLjY4Mi42ODIgMCAwIDAtLjY4IDBsLTMuOTYgMi4yODdhLjY4Mi42ODIgMCAwIDAtLjM0LjU4OXY4LjE3M0wxMC4yOSAxOS4zNWwtMi43NzctMS42MDR2LTMuMjA3bDIuNzc3LTEuNjA0IDEuODMyIDEuMDU4VjExLjg0bC0xLjQ5Mi0uODYxYS42ODEuNjgxIDAgMCAwLS42OCAwbC0zLjk2IDIuMjg3YS42ODEuNjgxIDAgMCAwLS4zNC41ODl2NC41NzNjMCAuMjQyLjEzLjQ2OC4zNC41OWwzLjk2IDIuMjg2YS42OC42OCAwIDAgMCAuNjggMGwzLjk2LTIuMjg2YS42ODIuNjgyIDAgMCAwIC4zNC0uNTg5di04LjE3NGwuMDUtLjAyOCAyLjcyOC0xLjU3NSAyLjc3NyAxLjYwM3YzLjIwOGwtMi43NzcgMS42MDMtMS44My0xLjA1NnYyLjE1MWwxLjQ5Ljg2YS42OC42OCAwIDAgMCAuNjggMHoiLz48L2c+PC9nPjwvc3ZnPg==";export{g as default}; -//# sourceMappingURL=polygon-Z4QITDL7-DuMBfvk7.js.map diff --git a/apps/web/public/assets/pt_BR-JDDVMLRA-aYSlgkhd.js b/apps/web/public/assets/pt_BR-JDDVMLRA-aYSlgkhd.js deleted file mode 100644 index 5802047d..00000000 --- a/apps/web/public/assets/pt_BR-JDDVMLRA-aYSlgkhd.js +++ /dev/null @@ -1,959 +0,0 @@ -(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="2557d993-0d33-4831-9037-38031ba8ed47",a._sentryDebugIdIdentifier="sentry-dbid-2557d993-0d33-4831-9037-38031ba8ed47")}catch{}})();var r=`{ - "connect_wallet": { - "label": "Conectar Carteira", - "wrong_network": { - "label": "Rede incorreta" - } - }, - "intro": { - "title": "O que é uma Carteira?", - "description": "Uma carteira é usada para enviar, receber, armazenar e exibir ativos digitais. Também é uma nova forma de se conectar, sem precisar criar novas contas e senhas em todo site.", - "digital_asset": { - "title": "Um lar para seus ativos digitais", - "description": "Carteiras são usadas para enviar, receber, armazenar e exibir ativos digitais como Ethereum e NFTs." - }, - "login": { - "title": "Uma nova maneira de fazer login", - "description": "Em vez de criar novas contas e senhas em todos os sites, basta conectar sua carteira." - }, - "get": { - "label": "Obter uma Carteira" - }, - "learn_more": { - "label": "Saiba mais" - } - }, - "sign_in": { - "label": "Verifique sua conta", - "description": "Para concluir a conexão, você deve assinar uma mensagem em sua carteira para confirmar que você é o proprietário desta conta.", - "message": { - "send": "Enviar mensagem", - "preparing": "Preparando mensagem...", - "cancel": "Cancelar", - "preparing_error": "Erro ao preparar a mensagem, tente novamente!" - }, - "signature": { - "waiting": "Aguardando assinatura...", - "verifying": "Verificando assinatura...", - "signing_error": "Erro ao assinar a mensagem, tente novamente!", - "verifying_error": "Erro ao verificar assinatura, tente novamente!", - "oops_error": "Ops, algo deu errado!" - } - }, - "connect": { - "label": "Conectar", - "title": "Conectar uma Carteira", - "new_to_ethereum": { - "description": "Novo nas carteiras Ethereum?", - "learn_more": { - "label": "Saiba mais" - } - }, - "learn_more": { - "label": "Saiba mais" - }, - "recent": "Recente", - "status": { - "opening": "Abrindo %{wallet}...", - "connecting": "Conectando", - "connect_mobile": "Continue em %{wallet}", - "not_installed": "%{wallet} não está instalado", - "not_available": "%{wallet} não está disponível", - "confirm": "Confirme a conexão na extensão", - "confirm_mobile": "Aceite o pedido de conexão na carteira" - }, - "secondary_action": { - "get": { - "description": "Não tem %{wallet}?", - "label": "OBTER" - }, - "install": { - "label": "INSTALAR" - }, - "retry": { - "label": "TENTAR DE NOVO" - } - }, - "walletconnect": { - "description": { - "full": "Precisa do modal oficial do WalletConnect?", - "compact": "Precisa do modal WalletConnect?" - }, - "open": { - "label": "ABRIR" - } - } - }, - "connect_scan": { - "title": "Digitalize com %{wallet}", - "fallback_title": "Digitalize com o seu telefone" - }, - "connector_group": { - "recommended": "Recomendado", - "other": "Outro", - "popular": "Popular", - "more": "Mais", - "others": "Outros" - }, - "get": { - "title": "Obter uma Carteira", - "action": { - "label": "OBTER" - }, - "mobile": { - "description": "Carteira Móvel" - }, - "extension": { - "description": "Extensão do Navegador" - }, - "mobile_and_extension": { - "description": "Carteira Móvel e Extensão" - }, - "mobile_and_desktop": { - "description": "Carteira para Mobile e Desktop" - }, - "looking_for": { - "title": "Não é o que você está procurando?", - "mobile": { - "description": "Selecione uma carteira na tela principal para começar com um provedor de carteira diferente." - }, - "desktop": { - "compact_description": "Selecione uma carteira na tela principal para começar com um provedor de carteira diferente.", - "wide_description": "Selecione uma carteira à esquerda para começar com um provedor de carteira diferente." - } - } - }, - "get_options": { - "title": "Comece com %{wallet}", - "short_title": "Obtenha %{wallet}", - "mobile": { - "title": "%{wallet} para Móvel", - "description": "Use a carteira móvel para explorar o mundo do Ethereum.", - "download": { - "label": "Baixe o aplicativo" - } - }, - "extension": { - "title": "%{wallet} para %{browser}", - "description": "Acesse sua carteira diretamente do seu navegador web favorito.", - "download": { - "label": "Adicionar ao %{browser}" - } - }, - "desktop": { - "title": "%{wallet} para %{platform}", - "description": "Acesse sua carteira nativamente do seu desktop poderoso.", - "download": { - "label": "Adicionar ao %{platform}" - } - } - }, - "get_mobile": { - "title": "Instale %{wallet}", - "description": "Escaneie com seu celular para baixar no iOS ou Android", - "continue": { - "label": "Continuar" - } - }, - "get_instructions": { - "mobile": { - "connect": { - "label": "Conectar" - }, - "learn_more": { - "label": "Saiba mais" - } - }, - "extension": { - "refresh": { - "label": "Atualizar" - }, - "learn_more": { - "label": "Saiba mais" - } - }, - "desktop": { - "connect": { - "label": "Conectar" - }, - "learn_more": { - "label": "Saiba mais" - } - } - }, - "chains": { - "title": "Mudar Redes", - "wrong_network": "Rede errada detectada, mude ou desconecte para continuar.", - "confirm": "Confirme na Carteira", - "switching_not_supported": "Sua carteira não suporta a mudança de redes de %{appName}. Tente mudar de redes dentro da sua carteira.", - "switching_not_supported_fallback": "Sua carteira não suporta a troca de redes a partir deste aplicativo. Tente trocar de rede dentro de sua carteira.", - "disconnect": "Desconectar", - "connected": "Conectado" - }, - "profile": { - "disconnect": { - "label": "Desconectar" - }, - "copy_address": { - "label": "Copiar Endereço", - "copied": "Copiado!" - }, - "explorer": { - "label": "Veja mais no explorador" - }, - "transactions": { - "description": "%{appName} transações aparecerão aqui...", - "description_fallback": "Suas transações aparecerão aqui...", - "recent": { - "title": "Transações Recentes" - }, - "clear": { - "label": "Limpar Tudo" - } - } - }, - "wallet_connectors": { - "argent": { - "qr_code": { - "step1": { - "description": "Coloque o Argent na tela inicial para um acesso mais rápido à sua carteira.", - "title": "Abra o aplicativo Argent" - }, - "step2": { - "description": "Crie uma carteira e nome de usuário, ou importe uma carteira existente.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira.", - "title": "Toque no botão Scan QR" - } - } - }, - "bifrost": { - "qr_code": { - "step1": { - "description": "Recomendamos colocar a Bifrost Wallet na sua tela inicial para um acesso mais rápido.", - "title": "Abra o aplicativo Bifrost Wallet" - }, - "step2": { - "description": "Crie ou importe uma carteira usando sua frase de recuperação.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Após você escanear, um prompt de conexão aparecerá para você conectar sua carteira.", - "title": "Toque no botão de escanear" - } - } - }, - "bitget": { - "qr_code": { - "step1": { - "description": "Recomendamos colocar a Bitget Wallet na sua tela inicial para um acesso mais rápido.", - "title": "Abra o aplicativo Bitget Wallet" - }, - "step2": { - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Depois de escanear, um prompt de conexão aparecerá para você conectar sua carteira.", - "title": "Toque no botão de escaneamento" - } - }, - "extension": { - "step1": { - "description": "Recomendamos fixar a Bitget Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira.", - "title": "Instale a extensão da Carteira Bitget" - }, - "step2": { - "description": "Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.", - "title": "Atualize seu navegador" - } - } - }, - "bitski": { - "extension": { - "step1": { - "description": "Recomendamos fixar o Bitski na sua barra de tarefas para um acesso mais rápido à sua carteira.", - "title": "Instale a extensão Bitski" - }, - "step2": { - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.", - "title": "Atualize seu navegador" - } - } - }, - "coin98": { - "qr_code": { - "step1": { - "description": "Recomendamos colocar a Carteira Coin98 na tela inicial para um acesso mais rápido à sua carteira.", - "title": "Abra o aplicativo Carteira Coin98" - }, - "step2": { - "description": "Você pode facilmente fazer backup de sua carteira usando nosso recurso de backup em seu telefone.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira.", - "title": "Toque no botão WalletConnect" - } - }, - "extension": { - "step1": { - "description": "Clique no canto superior direito do seu navegador e fixe a Carteira Coin98 para fácil acesso.", - "title": "Instale a extensão da Carteira Coin98" - }, - "step2": { - "description": "Crie uma nova carteira ou importe uma existente.", - "title": "Criar ou Importar uma carteira" - }, - "step3": { - "description": "Depois de configurar a Carteira Coin98, clique abaixo para atualizar o navegador e carregar a extensão.", - "title": "Atualize seu navegador" - } - } - }, - "coinbase": { - "qr_code": { - "step1": { - "description": "Recomendamos colocar a Carteira Coinbase na tela inicial para um acesso mais rápido.", - "title": "Abra o aplicativo Coinbase Wallet" - }, - "step2": { - "description": "Você pode fazer backup da sua carteira facilmente usando o recurso de backup na nuvem.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Depois de escanear, um prompt de conexão aparecerá para que você conecte sua carteira.", - "title": "Toque no botão de escanear" - } - }, - "extension": { - "step1": { - "description": "Recomendamos fixar o Coinbase Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira.", - "title": "Instale a extensão Coinbase Wallet" - }, - "step2": { - "description": "Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.", - "title": "Atualize seu navegador" - } - } - }, - "core": { - "qr_code": { - "step1": { - "description": "Recomendamos colocar o Core na tela inicial para um acesso mais rápido à sua carteira.", - "title": "Abra o aplicativo Core" - }, - "step2": { - "description": "Você pode facilmente salvar sua carteira usando nosso recurso de backup no seu celular.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Depois de escanear, um prompt de conexão aparecerá para você conectar sua carteira.", - "title": "Toque no botão WalletConnect" - } - }, - "extension": { - "step1": { - "description": "Recomendamos fixar o Core na sua barra de tarefas para um acesso mais rápido à sua carteira.", - "title": "Instale a extensão Core" - }, - "step2": { - "description": "Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.", - "title": "Atualize seu navegador" - } - } - }, - "fox": { - "qr_code": { - "step1": { - "description": "Recomendamos colocar o FoxWallet na tela inicial para um acesso mais rápido.", - "title": "Abra o aplicativo FoxWallet" - }, - "step2": { - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira.", - "title": "Toque no botão de escaneamento" - } - } - }, - "frontier": { - "qr_code": { - "step1": { - "description": "Recomendamos colocar o Frontier Wallet na tela inicial para um acesso mais rápido.", - "title": "Abra o aplicativo Frontier Wallet" - }, - "step2": { - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira.", - "title": "Toque no botão de varredura" - } - }, - "extension": { - "step1": { - "description": "Recomendamos fixar a Carteira Frontier na sua barra de tarefas para um acesso mais rápido à sua carteira.", - "title": "Instale a extensão da Carteira Frontier" - }, - "step2": { - "description": "Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.", - "title": "Atualize seu navegador" - } - } - }, - "im_token": { - "qr_code": { - "step1": { - "title": "Abra o aplicativo imToken", - "description": "Coloque o aplicativo imToken na tela inicial para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Crie uma nova carteira ou importe uma existente." - }, - "step3": { - "title": "Toque no ícone do Scanner no canto superior direito", - "description": "Escolha Nova Conexão, em seguida, escaneie o código QR e confirme o prompt para conectar." - } - } - }, - "metamask": { - "qr_code": { - "step1": { - "title": "Abra o aplicativo MetaMask", - "description": "Recomendamos colocar o MetaMask na tela inicial para um acesso mais rápido." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Toque no botão escanear", - "description": "Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira." - } - }, - "extension": { - "step1": { - "title": "Instale a extensão MetaMask", - "description": "Recomendamos fixar o MetaMask na barra de tarefas para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Atualize o seu navegador", - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "okx": { - "qr_code": { - "step1": { - "title": "Abra o aplicativo da Carteira OKX", - "description": "Recomendamos colocar a Carteira OKX na tela inicial para um acesso mais rápido." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer o backup da sua carteira utilizando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Toque no botão de digitalização", - "description": "Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira." - } - }, - "extension": { - "step1": { - "title": "Instale a extensão OKX Wallet", - "description": "Recomendamos fixar a OKX Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer o backup da sua carteira utilizando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Atualize o seu navegador", - "description": "Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "omni": { - "qr_code": { - "step1": { - "title": "Abra o aplicativo Omni", - "description": "Adicione o Omni à sua tela inicial para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Crie uma nova carteira ou importe uma existente." - }, - "step3": { - "title": "Toque no ícone do QR e escaneie", - "description": "Toque no ícone QR na tela inicial, escaneie o código e confirme o prompt para conectar." - } - } - }, - "token_pocket": { - "qr_code": { - "step1": { - "title": "Abra o aplicativo TokenPocket", - "description": "Recomendamos colocar o TokenPocket na tela inicial para um acesso mais rápido." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Toque no botão de digitalização", - "description": "Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira." - } - }, - "extension": { - "step1": { - "title": "Instale a extensão TokenPocket", - "description": "Recomendamos fixar o TokenPocket em sua barra de tarefas para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "trust": { - "qr_code": { - "step1": { - "title": "Abra o aplicativo Trust Wallet", - "description": "Coloque o Trust Wallet na tela inicial para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Crie uma nova carteira ou importe uma existente." - }, - "step3": { - "title": "Toque em WalletConnect nas Configurações", - "description": "Escolha Nova Conexão, depois escaneie o QR code e confirme o prompt para se conectar." - } - }, - "extension": { - "step1": { - "title": "Instale a extensão Trust Wallet", - "description": "Clique no canto superior direito do seu navegador e marque Trust Wallet para fácil acesso." - }, - "step2": { - "title": "Crie ou Importe uma carteira", - "description": "Crie uma nova carteira ou importe uma existente." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Depois que configurar a Trust Wallet, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "uniswap": { - "qr_code": { - "step1": { - "title": "Abra o aplicativo Uniswap", - "description": "Adicione a Carteira Uniswap à sua tela inicial para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Crie uma nova carteira ou importe uma existente." - }, - "step3": { - "title": "Toque no ícone QR e escaneie", - "description": "Toque no ícone QR na sua tela inicial, escaneie o código e confirme o prompt para conectar." - } - } - }, - "zerion": { - "qr_code": { - "step1": { - "title": "Abra o aplicativo Zerion", - "description": "Recomendamos colocar o Zerion na sua tela inicial para um acesso mais rápido." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Toque no botão de digitalização", - "description": "Depois de digitalizar, um prompt de conexão aparecerá para que você possa conectar sua carteira." - } - }, - "extension": { - "step1": { - "title": "Instale a extensão Zerion", - "description": "Recomendamos fixar o Zerion na sua barra de tarefas para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "rainbow": { - "qr_code": { - "step1": { - "title": "Abra o aplicativo Rainbow", - "description": "Recomendamos colocar o Rainbow na tela inicial para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Você pode facilmente fazer backup da sua carteira usando nosso recurso de backup no seu telefone." - }, - "step3": { - "title": "Toque no botão de digitalizar", - "description": "Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira." - } - } - }, - "enkrypt": { - "extension": { - "step1": { - "description": "Recomendamos fixar a Carteira Enkrypt na sua barra de tarefas para um acesso mais rápido à sua carteira.", - "title": "Instale a extensão da Carteira Enkrypt" - }, - "step2": { - "description": "Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.", - "title": "Atualize o seu navegador" - } - } - }, - "frame": { - "extension": { - "step1": { - "description": "Recomendamos fixar o Frame na sua barra de tarefas para um acesso mais rápido à sua carteira.", - "title": "Instale o Frame e a extensão complementar" - }, - "step2": { - "description": "Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.", - "title": "Criar ou Importar uma Carteira" - }, - "step3": { - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.", - "title": "Atualize seu navegador" - } - } - }, - "one_key": { - "extension": { - "step1": { - "title": "Instale a extensão OneKey Wallet", - "description": "Recomendamos fixar a OneKey Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "phantom": { - "extension": { - "step1": { - "title": "Instale a extensão Phantom", - "description": "Recomendamos fixar o Phantom na sua barra de tarefas para facilitar o acesso à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta de recuperação com ninguém." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "rabby": { - "extension": { - "step1": { - "title": "Instale a extensão Rabby", - "description": "Recomendamos fixar Rabby na sua barra de tarefas para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "safeheron": { - "extension": { - "step1": { - "title": "Instale a extensão Core", - "description": "Recomendamos fixar Safeheron na sua barra de tarefas para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "taho": { - "extension": { - "step1": { - "title": "Instale a extensão Taho", - "description": "Recomendamos fixar o Taho na sua barra de tarefas para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "talisman": { - "extension": { - "step1": { - "title": "Instale a extensão Talisman", - "description": "Recomendamos fixar o Talisman na sua barra de tarefas para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Crie ou Importe uma Carteira Ethereum", - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase de recuperação com ninguém." - }, - "step3": { - "title": "Atualize o seu navegador", - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "xdefi": { - "extension": { - "step1": { - "title": "Instale a extensão XDEFI Wallet", - "description": "Recomendamos fixar a Carteira XDEFI na sua barra de tarefas para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "zeal": { - "extension": { - "step1": { - "title": "Instale a extensão Zeal", - "description": "Recomendamos fixar o Zeal na sua barra de tarefas para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "safepal": { - "extension": { - "step1": { - "title": "Instale a extensão da Carteira SafePal", - "description": "Clique no canto superior direito do seu navegador e fixe a Carteira SafePal para fácil acesso." - }, - "step2": { - "title": "Criar ou Importar uma carteira", - "description": "Crie uma nova carteira ou importe uma existente." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Depois de configurar a Carteira SafePal, clique abaixo para atualizar o navegador e carregar a extensão." - } - }, - "qr_code": { - "step1": { - "title": "Abra o aplicativo Carteira SafePal", - "description": "Coloque a Carteira SafePal na tela inicial para um acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Crie uma nova carteira ou importe uma existente." - }, - "step3": { - "title": "Toque em WalletConnect nas Configurações", - "description": "Escolha Nova Conexão, em seguida, escaneie o código QR e confirme o prompt para conectar." - } - } - }, - "desig": { - "extension": { - "step1": { - "title": "Instale a extensão Desig", - "description": "Recomendamos fixar Desig na sua barra de tarefas para facilitar o acesso à sua carteira." - }, - "step2": { - "title": "Criar uma Carteira", - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - } - }, - "subwallet": { - "extension": { - "step1": { - "title": "Instale a extensão SubWallet", - "description": "Recomendamos fixar SubWallet na sua barra de tarefas para acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase de recuperação com ninguém." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - }, - "qr_code": { - "step1": { - "title": "Abra o aplicativo SubWallet", - "description": "Recomendamos colocar SubWallet na tela inicial para acesso mais rápido." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Toque no botão de escanear", - "description": "Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira." - } - } - }, - "clv": { - "extension": { - "step1": { - "title": "Instale a extensão CLV Wallet", - "description": "Recomendamos fixar CLV Wallet na sua barra de tarefas para acesso mais rápido à sua carteira." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Atualize seu navegador", - "description": "Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão." - } - }, - "qr_code": { - "step1": { - "title": "Abra o aplicativo da carteira CLV", - "description": "Recomendamos colocar a Carteira CLV na tela inicial para acesso mais rápido." - }, - "step2": { - "title": "Criar ou Importar uma Carteira", - "description": "Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém." - }, - "step3": { - "title": "Toque no botão de escanear", - "description": "Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira." - } - } - }, - "okto": { - "qr_code": { - "step1": { - "title": "Abra o aplicativo Okto", - "description": "Adicione Okto à sua tela inicial para acesso rápido" - }, - "step2": { - "title": "Crie uma carteira MPC", - "description": "Crie uma conta e gere uma carteira" - }, - "step3": { - "title": "Toque em WalletConnect nas Configurações", - "description": "Toque no ícone Scan QR no canto superior direito e confirme o prompt para conectar." - } - } - }, - "ledger": { - "desktop": { - "step1": { - "title": "Abra o aplicativo Ledger Live", - "description": "Recomendamos colocar o Ledger Live na tela inicial para um acesso mais rápido." - }, - "step2": { - "title": "Configure seu Ledger", - "description": "Configure um novo Ledger ou conecte-se a um já existente." - }, - "step3": { - "title": "Conectar", - "description": "Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira." - } - }, - "qr_code": { - "step1": { - "title": "Abra o aplicativo Ledger Live", - "description": "Recomendamos colocar o Ledger Live na tela inicial para um acesso mais rápido." - }, - "step2": { - "title": "Configure seu Ledger", - "description": "Você pode sincronizar com o aplicativo de desktop ou conectar seu Ledger." - }, - "step3": { - "title": "Escanear o código", - "description": "Toque em WalletConnect e em seguida mude para Scanner. Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira." - } - } - } - } -} -`;export{r as default}; -//# sourceMappingURL=pt_BR-JDDVMLRA-aYSlgkhd.js.map diff --git a/apps/web/public/assets/rabbyWallet-22VWIFCE-C-acKMUn.js b/apps/web/public/assets/rabbyWallet-22VWIFCE-C-acKMUn.js deleted file mode 100644 index 49f78b9d..00000000 --- a/apps/web/public/assets/rabbyWallet-22VWIFCE-C-acKMUn.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var I=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},M=new I.Error().stack;M&&(I._sentryDebugIds=I._sentryDebugIds||{},I._sentryDebugIds[M]="40c7e559-ac75-40b7-8999-7bb5e71b6078",I._sentryDebugIdIdentifier="sentry-dbid-40c7e559-ac75-40b7-8999-7bb5e71b6078")}catch{}})();var N="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyOCAyOCI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSIjODY5N0ZGIiBkPSJNMjggMEgwdjI4aDI4VjBaIi8+PHBhdGggZmlsbD0idXJsKCNiKSIgZD0iTTIyLjU0IDE1LjA3OGMuNjc3LTEuNTE0LTIuNjczLTUuNzQ0LTUuODc0LTcuNTA2LTIuMDE3LTEuMzY1LTQuMTItMS4xNzgtNC41NDUtLjU3OS0uOTM1IDEuMzE2IDMuMDk0IDIuNDMgNS43ODggMy43MzEtLjU4LjI1Mi0xLjEyNS43MDMtMS40NDYgMS4yOC0xLjAwNC0xLjA5Ni0zLjIwOS0yLjA0LTUuNzk2LTEuMjgtMS43NDMuNTEzLTMuMTkxIDEuNzIxLTMuNzUxIDMuNTQ2YTEuMDk3IDEuMDk3IDAgMSAwLS40NDUgMi4xYy4xMTIgMCAuNDYzLS4wNzUuNDYzLS4wNzVsNS42MTIuMDQxYy0yLjI0NCAzLjU2LTQuMDE4IDQuMDgxLTQuMDE4IDQuNjk4czEuNjk3LjQ1IDIuMzM1LjIyYzMuMDUtMS4xIDYuMzI3LTQuNTMxIDYuODktNS41MTkgMi4zNi4yOTUgNC4zNDUuMzMgNC43ODYtLjY1N1oiLz48cGF0aCBmaWxsPSJ1cmwoI2MpIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Im0xNy44ODUgMTAuNzEzLjAyNS4wMWMuMTI1LS4wNDkuMTA1LS4yMzMuMDctLjM3OC0uMDc4LS4zMzMtMS40MzgtMS42NzYtMi43MTUtMi4yNzctMS43NDMtLjgyLTMuMDI1LS43NzctMy4yMTItLjM5OC4zNTYuNzI2IDEuOTk4IDEuNDA4IDMuNzE0IDIuMTIuNzIzLjMgMS40Ni42MDYgMi4xMTguOTIzWiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0idXJsKCNkKSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTUuNzAxIDE4LjAzNmExMC4yOTYgMTAuMjk2IDAgMCAwLTEuMi0uMzdjLjQ4Mi0uODYyLjU4My0yLjEzOC4xMjgtMi45NDUtLjYzOS0xLjEzMy0xLjQ0LTEuNzM2LTMuMzA0LTEuNzM2LTEuMDI0IDAtMy43ODMuMzQ2LTMuODMyIDIuNjQ4LS4wMDUuMjQyIDAgLjQ2NC4wMTcuNjY3bDUuMDM2LjAzN2ExNy4yNjQgMTcuMjY0IDAgMCAxLTEuODcxIDIuNDgzYy42NjkuMTcyIDEuMjIxLjMxNiAxLjcyOC40NDguNDguMTI1LjkyLjI0IDEuMzguMzU3YTIxLjAwMyAyMS4wMDMgMCAwIDAgMS45MTgtMS41OVoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9InVybCgjZSkiIGQ9Ik02Ljg0OCAxNi4wNjNjLjIwNiAxLjc1IDEuMiAyLjQzNSAzLjIzMiAyLjYzOCAyLjAzMi4yMDMgMy4xOTcuMDY3IDQuNzQ5LjIwOCAxLjI5Ni4xMTggMi40NTMuNzc4IDIuODgyLjU1LjM4Ni0uMjA1LjE3LS45NDctLjM0Ny0xLjQyMy0uNjctLjYxNy0xLjU5Ny0xLjA0Ni0zLjIyOS0xLjE5OS4zMjUtLjg5LjIzNC0yLjEzOC0uMjctMi44MTctLjczMS0uOTgyLTIuMDc5LTEuNDI2LTMuNzg1LTEuMjMyLTEuNzgyLjIwMi0zLjQ5IDEuMDgtMy4yMzIgMy4yNzVaIi8+PC9nPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjEwLjQ2NCIgeDI9IjIyLjM5NCIgeTE9IjEzLjczNyIgeTI9IjE3LjEyIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI2ZmZiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2ZmZiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJjIiB4MT0iMjAuMzg2IiB4Mj0iMTEuNzc5IiB5MT0iMTMuNTA5IiB5Mj0iNC44NzkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjNzI1OERDIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjNzk3REVBIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZCIgeDE9IjE1Ljk0IiB4Mj0iNy42NzMiIHkxPSIxOC4zMzciIHkyPSIxMy41ODQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjNzQ2MUVBIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQkZDMkZGIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZSIgeDE9IjExLjE3NyIgeDI9IjE2Ljc2NSIgeTE9IjEzLjY0OCIgeTI9IjIwLjc0OSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9Ii45ODQiIHN0b3AtY29sb3I9IiNENUNFRkYiLz48L2xpbmVhckdyYWRpZW50PjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgyOHYyOEgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==";export{N as default}; -//# sourceMappingURL=rabbyWallet-22VWIFCE-C-acKMUn.js.map diff --git a/apps/web/public/assets/rainbowWallet-GGU64QEI-Buwz1oV3.js b/apps/web/public/assets/rainbowWallet-GGU64QEI-Buwz1oV3.js deleted file mode 100644 index bede0cb9..00000000 --- a/apps/web/public/assets/rainbowWallet-GGU64QEI-Buwz1oV3.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var I=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},M=new I.Error().stack;M&&(I._sentryDebugIds=I._sentryDebugIds||{},I._sentryDebugIds[M]="6fedf890-381b-4929-8406-82a4a253ce10",I._sentryDebugIdIdentifier="sentry-dbid-6fedf890-381b-4929-8406-82a4a253ce10")}catch{}})();var j="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjEyMCIgdmlld0JveD0iMCAwIDEyMCAxMjAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfNjJfMzI5KSIvPgo8cGF0aCBkPSJNMjAgMzhIMjZDNTYuOTI3OSAzOCA4MiA2My4wNzIxIDgyIDk0VjEwMEg5NEM5Ny4zMTM3IDEwMCAxMDAgOTcuMzEzNyAxMDAgOTRDMTAwIDUzLjEzMDkgNjYuODY5MSAyMCAyNiAyMEMyMi42ODYzIDIwIDIwIDIyLjY4NjMgMjAgMjZWMzhaIiBmaWxsPSJ1cmwoI3BhaW50MV9yYWRpYWxfNjJfMzI5KSIvPgo8cGF0aCBkPSJNODQgOTRIMTAwQzEwMCA5Ny4zMTM3IDk3LjMxMzcgMTAwIDk0IDEwMEg4NFY5NFoiIGZpbGw9InVybCgjcGFpbnQyX2xpbmVhcl82Ml8zMjkpIi8+CjxwYXRoIGQ9Ik0yNiAyMEwyNiAzNkgyMEwyMCAyNkMyMCAyMi42ODYzIDIyLjY4NjMgMjAgMjYgMjBaIiBmaWxsPSJ1cmwoI3BhaW50M19saW5lYXJfNjJfMzI5KSIvPgo8cGF0aCBkPSJNMjAgMzZIMjZDNTguMDMyNSAzNiA4NCA2MS45Njc1IDg0IDk0VjEwMEg2NlY5NEM2NiA3MS45MDg2IDQ4LjA5MTQgNTQgMjYgNTRIMjBWMzZaIiBmaWxsPSJ1cmwoI3BhaW50NF9yYWRpYWxfNjJfMzI5KSIvPgo8cGF0aCBkPSJNNjggOTRIODRWMTAwSDY4Vjk0WiIgZmlsbD0idXJsKCNwYWludDVfbGluZWFyXzYyXzMyOSkiLz4KPHBhdGggZD0iTTIwIDUyTDIwIDM2TDI2IDM2TDI2IDUySDIwWiIgZmlsbD0idXJsKCNwYWludDZfbGluZWFyXzYyXzMyOSkiLz4KPHBhdGggZD0iTTIwIDYyQzIwIDY1LjMxMzcgMjIuNjg2MyA2OCAyNiA2OEM0MC4zNTk0IDY4IDUyIDc5LjY0MDYgNTIgOTRDNTIgOTcuMzEzNyA1NC42ODYzIDEwMCA1OCAxMDBINjhWOTRDNjggNzAuODA0IDQ5LjE5NiA1MiAyNiA1MkgyMFY2MloiIGZpbGw9InVybCgjcGFpbnQ3X3JhZGlhbF82Ml8zMjkpIi8+CjxwYXRoIGQ9Ik01MiA5NEg2OFYxMDBINThDNTQuNjg2MyAxMDAgNTIgOTcuMzEzNyA1MiA5NFoiIGZpbGw9InVybCgjcGFpbnQ4X3JhZGlhbF82Ml8zMjkpIi8+CjxwYXRoIGQ9Ik0yNiA2OEMyMi42ODYzIDY4IDIwIDY1LjMxMzcgMjAgNjJMMjAgNTJMMjYgNTJMMjYgNjhaIiBmaWxsPSJ1cmwoI3BhaW50OV9yYWRpYWxfNjJfMzI5KSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzYyXzMyOSIgeDE9IjYwIiB5MT0iMCIgeDI9IjYwIiB5Mj0iMTIwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiMxNzQyOTkiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDAxRTU5Ii8+CjwvbGluZWFyR3JhZGllbnQ+CjxyYWRpYWxHcmFkaWVudCBpZD0icGFpbnQxX3JhZGlhbF82Ml8zMjkiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjYgOTQpIHJvdGF0ZSgtOTApIHNjYWxlKDc0KSI+CjxzdG9wIG9mZnNldD0iMC43NzAyNzciIHN0b3AtY29sb3I9IiNGRjQwMDAiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjODc1NEM5Ii8+CjwvcmFkaWFsR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQyX2xpbmVhcl82Ml8zMjkiIHgxPSI4MyIgeTE9Ijk3IiB4Mj0iMTAwIiB5Mj0iOTciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGNDAwMCIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM4NzU0QzkiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDNfbGluZWFyXzYyXzMyOSIgeDE9IjIzIiB5MT0iMjAiIHgyPSIyMyIgeTI9IjM3IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiM4NzU0QzkiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkY0MDAwIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxyYWRpYWxHcmFkaWVudCBpZD0icGFpbnQ0X3JhZGlhbF82Ml8zMjkiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjYgOTQpIHJvdGF0ZSgtOTApIHNjYWxlKDU4KSI+CjxzdG9wIG9mZnNldD0iMC43MjM5MjkiIHN0b3AtY29sb3I9IiNGRkY3MDAiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkY5OTAxIi8+CjwvcmFkaWFsR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQ1X2xpbmVhcl82Ml8zMjkiIHgxPSI2OCIgeTE9Ijk3IiB4Mj0iODQiIHkyPSI5NyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjRkZGNzAwIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGOTkwMSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50Nl9saW5lYXJfNjJfMzI5IiB4MT0iMjMiIHkxPSI1MiIgeDI9IjIzIiB5Mj0iMzYiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRjcwMCIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGRjk5MDEiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJhZGlhbEdyYWRpZW50IGlkPSJwYWludDdfcmFkaWFsXzYyXzMyOSIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSgyNiA5NCkgcm90YXRlKC05MCkgc2NhbGUoNDIpIj4KPHN0b3Agb2Zmc2V0PSIwLjU5NTEzIiBzdG9wLWNvbG9yPSIjMDBBQUZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzAxREE0MCIvPgo8L3JhZGlhbEdyYWRpZW50Pgo8cmFkaWFsR3JhZGllbnQgaWQ9InBhaW50OF9yYWRpYWxfNjJfMzI5IiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDUxIDk3KSBzY2FsZSgxNyA0NS4zMzMzKSI+CjxzdG9wIHN0b3AtY29sb3I9IiMwMEFBRkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDFEQTQwIi8+CjwvcmFkaWFsR3JhZGllbnQ+CjxyYWRpYWxHcmFkaWVudCBpZD0icGFpbnQ5X3JhZGlhbF82Ml8zMjkiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjMgNjkpIHJvdGF0ZSgtOTApIHNjYWxlKDE3IDMyMi4zNykiPgo8c3RvcCBzdG9wLWNvbG9yPSIjMDBBQUZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzAxREE0MCIvPgo8L3JhZGlhbEdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";export{j as default}; -//# sourceMappingURL=rainbowWallet-GGU64QEI-Buwz1oV3.js.map diff --git a/apps/web/public/assets/refresh-5KGGHTJP-CHhFOl-t.js b/apps/web/public/assets/refresh-5KGGHTJP-CHhFOl-t.js deleted file mode 100644 index e9950f11..00000000 --- a/apps/web/public/assets/refresh-5KGGHTJP-CHhFOl-t.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},I=new M.Error().stack;I&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[I]="a377a527-67a4-40cc-af4e-2b9120d96910",M._sentryDebugIdIdentifier="sentry-dbid-a377a527-67a4-40cc-af4e-2b9120d96910")}catch{}})();var g="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSJ1cmwoI2IpIiBkPSJNMCAxNmMwLTUuNiAwLTguNCAxLjA5LTEwLjU0YTEwIDEwIDAgMCAxIDQuMzctNC4zN0M3LjYgMCAxMC40IDAgMTYgMGgxNmM1LjYgMCA4LjQgMCAxMC41NCAxLjA5YTEwIDEwIDAgMCAxIDQuMzcgNC4zN0M0OCA3LjYgNDggMTAuNCA0OCAxNnYxNmMwIDUuNiAwIDguNC0xLjA5IDEwLjU0YTEwLjAwMSAxMC4wMDEgMCAwIDEtNC4zNyA0LjM3QzQwLjQgNDggMzcuNiA0OCAzMiA0OEgxNmMtNS42IDAtOC40IDAtMTAuNTQtMS4wOWExMCAxMCAwIDAgMS00LjM3LTQuMzdDMCA0MC40IDAgMzcuNiAwIDMyVjE2WiIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjA4IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjEzMyA5LjUxM0MxIDExLjEzMSAxIDEzLjE4MyAxIDE2djE2YzAgMi44MTcgMCA0Ljg3LjEzMyA2LjQ4Ni4xMzEgMS42MDYuMzg3IDIuNjk1Ljg0OCAzLjZhOSA5IDAgMCAwIDMuOTMzIDMuOTMzYy45MDUuNDYxIDEuOTk0LjcxNyAzLjYuODQ4QzExLjEzIDQ3IDEzLjE4MyA0NyAxNiA0N2gxNmMyLjgxNyAwIDQuODcgMCA2LjQ4Ni0uMTMzIDEuNjA2LS4xMzEgMi42OTUtLjM4NyAzLjYtLjg0OGE5IDkgMCAwIDAgMy45MzMtMy45MzNjLjQ2MS0uOTA1LjcxNy0xLjk5NC44NDgtMy42QzQ3IDM2Ljg3IDQ3IDM0LjgxNiA0NyAzMlYxNmMwLTIuODE3IDAtNC44Ny0uMTMzLTYuNDg3LS4xMzEtMS42MDUtLjM4Ny0yLjY5NC0uODQ4LTMuNTk5YTkgOSAwIDAgMC0zLjkzMy0zLjkzM2MtLjkwNS0uNDYxLTEuOTk0LS43MTctMy42LS44NDhDMzYuODcgMSAzNC44MTYgMSAzMiAxSDE2Yy0yLjgxNyAwLTQuODcgMC02LjQ4Ny4xMzMtMS42MDUuMTMxLTIuNjk0LjM4Ny0zLjU5OS44NDhhOSA5IDAgMCAwLTMuOTMzIDMuOTMzYy0uNDYxLjkwNS0uNzE3IDEuOTk0LS44NDggMy42Wk0xLjA5IDUuNDZDMCA3LjYgMCAxMC40IDAgMTZ2MTZjMCA1LjYgMCA4LjQgMS4wOSAxMC41NGExMCAxMCAwIDAgMCA0LjM3IDQuMzdDNy42IDQ4IDEwLjQgNDggMTYgNDhoMTZjNS42IDAgOC40IDAgMTAuNTQtMS4wOWExMC4wMDEgMTAuMDAxIDAgMCAwIDQuMzctNC4zN0M0OCA0MC40IDQ4IDM3LjYgNDggMzJWMTZjMC01LjYgMC04LjQtMS4wOS0xMC41NGExMCAxMCAwIDAgMC00LjM3LTQuMzdDNDAuNCAwIDM3LjYgMCAzMiAwSDE2QzEwLjQgMCA3LjYgMCA1LjQ2IDEuMDlhMTAgMTAgMCAwIDAtNC4zNyA0LjM3WiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuMTIiIGQ9Ik0zNi4zNDUgMTMuMTU1YTEuNSAxLjUgMCAxIDAtMyAwdjIuMjI0YzAgLjYyNy0uNzc1LjkzNy0xLjIxOC40OTRhMTIuNzUgMTIuNzUgMCAxIDAgMCAxOC4wMzEgMS41IDEuNSAwIDEgMC0yLjEyMS0yLjEyIDkuNzUgOS43NSAwIDEgMSAwLTEzLjc5Yy42MS42MS4xNzIgMS42MTYtLjY5MSAxLjYxNkgyNi44OWExLjUgMS41IDAgMCAwIDAgM2g3Ljk1NWExLjUgMS41IDAgMCAwIDEuNS0xLjV2LTcuOTU1WiIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0zNi4zNDUgMTIuMTU1YTEuNSAxLjUgMCAxIDAtMyAwdjIuMjI0YzAgLjYyNy0uNzc1LjkzNy0xLjIxOC40OTRhMTIuNzUgMTIuNzUgMCAxIDAgMCAxOC4wMzEgMS41IDEuNSAwIDEgMC0yLjEyMS0yLjEyIDkuNzUgOS43NSAwIDEgMSAwLTEzLjc5Yy42MS42MS4xNzIgMS42MTYtLjY5MSAxLjYxNkgyNi44OWExLjUgMS41IDAgMCAwIDAgM2g3Ljk1NWExLjUgMS41IDAgMCAwIDEuNS0xLjV2LTcuOTU1WiIvPjwvZz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImIiIHgxPSIyNCIgeDI9IjI0IiB5MT0iMCIgeTI9IjQ4IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzU5NjI3QSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzRBNTI2NiIvPjwvbGluZWFyR3JhZGllbnQ+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDQ4djQ4SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+";export{g as default}; -//# sourceMappingURL=refresh-5KGGHTJP-CHhFOl-t.js.map diff --git a/apps/web/public/assets/ru_RU-3W6WVVOI-CElW9r3c.js b/apps/web/public/assets/ru_RU-3W6WVVOI-CElW9r3c.js deleted file mode 100644 index 65abf0c1..00000000 --- a/apps/web/public/assets/ru_RU-3W6WVVOI-CElW9r3c.js +++ /dev/null @@ -1,959 +0,0 @@ -(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},E=new u.Error().stack;E&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[E]="b8b57c4c-5a34-4b0c-ad2d-acd8ff711655",u._sentryDebugIdIdentifier="sentry-dbid-b8b57c4c-5a34-4b0c-ad2d-acd8ff711655")}catch{}})();var D=`{ - "connect_wallet": { - "label": "Подключить кошелек", - "wrong_network": { - "label": "Неправильная сеть" - } - }, - "intro": { - "title": "Что такое кошелек?", - "description": "Кошелек используется для отправки, получения, хранения и отображения цифровых активов. Это также новый способ входа в систему, без необходимости создания новых учетных записей и паролей на каждом сайте.", - "digital_asset": { - "title": "Дом для ваших цифровых активов", - "description": "Кошельки используются для отправки, получения, хранения и отображения цифровых активов, таких как Ethereum и NFT." - }, - "login": { - "title": "Новый способ входа в систему", - "description": "Вместо создания новых аккаунтов и паролей на каждом сайте, просто подключите ваш кошелек." - }, - "get": { - "label": "Получить кошелек" - }, - "learn_more": { - "label": "Узнать больше" - } - }, - "sign_in": { - "label": "Проверьте ваш аккаунт", - "description": "Чтобы завершить подключение, вы должны подписать сообщение в вашем кошельке, чтобы подтвердить, что вы являетесь владельцем этого аккаунта.", - "message": { - "send": "Отправить сообщение", - "preparing": "Подготовка сообщения...", - "cancel": "Отмена", - "preparing_error": "Ошибка при подготовке сообщения, пожалуйста, попробуйте снова!" - }, - "signature": { - "waiting": "Ожидание подписи...", - "verifying": "Проверка подписи...", - "signing_error": "Ошибка при подписании сообщения, пожалуйста, попробуйте снова!", - "verifying_error": "Ошибка при проверке подписи, пожалуйста, попробуйте снова!", - "oops_error": "Ой, что-то пошло не так!" - } - }, - "connect": { - "label": "Подключить", - "title": "Подключить кошелек", - "new_to_ethereum": { - "description": "Впервые столкнулись с кошельками Ethereum?", - "learn_more": { - "label": "Узнать больше" - } - }, - "learn_more": { - "label": "Узнать больше" - }, - "recent": "Недавние", - "status": { - "opening": "Открывается %{wallet}...", - "connecting": "Подключение", - "connect_mobile": "Продолжить в %{wallet}", - "not_installed": "%{wallet} не установлен", - "not_available": "%{wallet} не доступен", - "confirm": "Подтвердите подключение в расширении", - "confirm_mobile": "Принять запрос на подключение в кошельке" - }, - "secondary_action": { - "get": { - "description": "У вас нет %{wallet}?", - "label": "ПОЛУЧИТЬ" - }, - "install": { - "label": "УСТАНОВИТЬ" - }, - "retry": { - "label": "ПОВТОРИТЬ" - } - }, - "walletconnect": { - "description": { - "full": "Нужен официальный модальный окно WalletConnect?", - "compact": "Нужен модальный окно WalletConnect?" - }, - "open": { - "label": "ОТКРЫТЬ" - } - } - }, - "connect_scan": { - "title": "Сканировать с помощью %{wallet}", - "fallback_title": "Сканировать с помощью вашего телефона" - }, - "connector_group": { - "recommended": "Рекомендуемые", - "other": "Другие", - "popular": "Популярные", - "more": "Больше", - "others": "Другие" - }, - "get": { - "title": "Получить кошелек", - "action": { - "label": "ПОЛУЧИТЬ" - }, - "mobile": { - "description": "Мобильный кошелек" - }, - "extension": { - "description": "Расширение для браузера" - }, - "mobile_and_extension": { - "description": "Мобильный кошелек и расширение" - }, - "mobile_and_desktop": { - "description": "Мобильный и настольный кошелек" - }, - "looking_for": { - "title": "Не то, что вы ищете?", - "mobile": { - "description": "Выберите кошелек на главном экране, чтобы начать работу с другим провайдером кошелька." - }, - "desktop": { - "compact_description": "Выберите кошелек на главном экране, чтобы начать работу с другим провайдером кошелька.", - "wide_description": "Выберите кошелек слева, чтобы начать работу с другим провайдером кошелька." - } - } - }, - "get_options": { - "title": "Начните с %{wallet}", - "short_title": "Получить %{wallet}", - "mobile": { - "title": "%{wallet} для мобильных", - "description": "Используйте мобильный кошелек для исследования мира Ethereum.", - "download": { - "label": "Скачать приложение" - } - }, - "extension": { - "title": "%{wallet} для %{browser}", - "description": "Доступ к вашему кошельку прямо из вашего любимого веб-браузера.", - "download": { - "label": "Добавить в %{browser}" - } - }, - "desktop": { - "title": "%{wallet} для %{platform}", - "description": "Получите доступ к вашему кошельку нативно со своего мощного рабочего стола.", - "download": { - "label": "Добавить в %{platform}" - } - } - }, - "get_mobile": { - "title": "Установить %{wallet}", - "description": "Отсканируйте на своем телефоне для скачивания на iOS или Android", - "continue": { - "label": "Продолжить" - } - }, - "get_instructions": { - "mobile": { - "connect": { - "label": "Подключить" - }, - "learn_more": { - "label": "Узнать больше" - } - }, - "extension": { - "refresh": { - "label": "Обновить" - }, - "learn_more": { - "label": "Узнать больше" - } - }, - "desktop": { - "connect": { - "label": "Подключить" - }, - "learn_more": { - "label": "Узнать больше" - } - } - }, - "chains": { - "title": "Переключить сети", - "wrong_network": "Обнаружена неверная сеть, переключитесь или отключитесь для продолжения.", - "confirm": "Подтвердить в кошельке", - "switching_not_supported": "Ваш кошелек не поддерживает переключение сетей с %{appName}. Попробуйте переключить сети из вашего кошелька.", - "switching_not_supported_fallback": "Ваш кошелек не поддерживает переключение сетей из этого приложения. Попробуйте переключить сети из вашего кошелька.", - "disconnect": "Отключить", - "connected": "Подключено" - }, - "profile": { - "disconnect": { - "label": "Отключить" - }, - "copy_address": { - "label": "Скопировать адрес", - "copied": "Скопировано!" - }, - "explorer": { - "label": "Посмотреть больше в эксплорере" - }, - "transactions": { - "description": "%{appName} транзакции появятся здесь...", - "description_fallback": "Ваши транзакции появятся здесь...", - "recent": { - "title": "Недавние транзакции" - }, - "clear": { - "label": "Очистить все" - } - } - }, - "wallet_connectors": { - "argent": { - "qr_code": { - "step1": { - "description": "Добавьте Argent на домашний экран для более быстрого доступа к вашему кошельку.", - "title": "Откройте приложение Argent" - }, - "step2": { - "description": "Создайте кошелек и имя пользователя или импортируйте существующий кошелек.", - "title": "Создать или Импортировать кошелек" - }, - "step3": { - "description": "После сканирования появится запрос на подключение для подключения вашего кошелька.", - "title": "Нажмите кнопку Сканировать QR" - } - } - }, - "bifrost": { - "qr_code": { - "step1": { - "description": "Мы рекомендуем добавить кошелек Bifrost на ваш начальный экран для более быстрого доступа.", - "title": "Откройте приложение Bifrost Wallet" - }, - "step2": { - "description": "Создайте или импортируйте кошелек, используя вашу фразу восстановления.", - "title": "Создать или импортировать кошелек" - }, - "step3": { - "description": "После сканирования появится запрос на подключение вашего кошелька.", - "title": "Нажмите кнопку сканирования" - } - } - }, - "bitget": { - "qr_code": { - "step1": { - "description": "Мы рекомендуем добавить Bitget Wallet на ваш экран для более быстрого доступа.", - "title": "Откройте приложение Bitget Wallet" - }, - "step2": { - "description": "Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.", - "title": "Создать или импортировать кошелек" - }, - "step3": { - "description": "После сканирования появится запрос на подключение вашего кошелька.", - "title": "Нажмите кнопку сканирования" - } - }, - "extension": { - "step1": { - "description": "Мы рекомендуем закрепить Bitget Wallet на панели задач для более быстрого доступа к вашему кошельку.", - "title": "Установите расширение Bitget Wallet" - }, - "step2": { - "description": "Обязательно сохраните резервную копию вашего кошелька с помощью надёжного метода. Никогда не делитесь своей секретной фразой с кем-либо.", - "title": "Создать или Импортировать кошелек" - }, - "step3": { - "description": "После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение.", - "title": "Обновите ваш браузер" - } - } - }, - "bitski": { - "extension": { - "step1": { - "description": "Мы рекомендуем прикрепить Bitski к вашей панели задач для более быстрого доступа к вашему кошельку.", - "title": "Установите расширение Bitski" - }, - "step2": { - "description": "Обязательно сохраните резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.", - "title": "Создать кошелек или Импортировать кошелек" - }, - "step3": { - "description": "После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.", - "title": "Обновите ваш браузер" - } - } - }, - "coin98": { - "qr_code": { - "step1": { - "description": "Мы рекомендуем добавить Coin98 Wallet на ваш главный экран для более быстрого доступа к вашему кошельку.", - "title": "Откройте приложение Coin98 Wallet" - }, - "step2": { - "description": "Вы можете легко сделать резервную копию вашего кошелька, используя нашу функцию резервного копирования на вашем телефоне.", - "title": "Создать или импортировать кошелек" - }, - "step3": { - "description": "После сканирования для вас появится запрос на подключение, чтобы подключить ваш кошелек.", - "title": "Нажмите кнопку WalletConnect" - } - }, - "extension": { - "step1": { - "description": "Нажмите в верхнем правом углу вашего браузера и закрепите Coin98 Wallet для удобного доступа.", - "title": "Установите расширение Coin98 Wallet" - }, - "step2": { - "description": "Создайте новый кошелек или импортируйте существующий.", - "title": "Создайте или импортируйте кошелек" - }, - "step3": { - "description": "После того как вы настроите Кошелек Coin98, нажмите ниже, чтобы обновить браузер и загрузить расширение.", - "title": "Обновите ваш браузер" - } - } - }, - "coinbase": { - "qr_code": { - "step1": { - "description": "Мы рекомендуем добавить Coinbase Wallet на ваш экран начала для более быстрого доступа.", - "title": "Откройте приложение Coinbase Wallet" - }, - "step2": { - "description": "Вы легко можете сделать резервную копию вашего кошелька, используя функцию облачного резервного копирования.", - "title": "Создать или Импортировать кошелек" - }, - "step3": { - "description": "После сканирования появится запрос на подключение для подключения вашего кошелька.", - "title": "Нажмите кнопку сканирования" - } - }, - "extension": { - "step1": { - "description": "Мы рекомендуем закрепить Coinbase Wallet на вашей панели задач для более быстрого доступа к вашему кошельку.", - "title": "Установите расширение Coinbase Wallet" - }, - "step2": { - "description": "Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.", - "title": "Создать или Импортировать кошелек" - }, - "step3": { - "description": "После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение.", - "title": "Обновите ваш браузер" - } - } - }, - "core": { - "qr_code": { - "step1": { - "description": "Мы рекомендуем добавить Core на ваш экран быстрого доступа для ускоренного доступа к вашему кошельку.", - "title": "Открыть приложение Core" - }, - "step2": { - "description": "Вы можете легко создать резервную копию вашего кошелька, используя нашу функцию резервного копирования на вашем телефоне.", - "title": "Создать или Импортировать кошелек" - }, - "step3": { - "description": "После сканирования появится запрос на подключение, чтобы вы могли подключить ваш кошелек.", - "title": "Нажмите кнопку WalletConnect" - } - }, - "extension": { - "step1": { - "description": "Мы рекомендуем закрепить Core на панели задач для более быстрого доступа к вашему кошельку.", - "title": "Установите расширение Core" - }, - "step2": { - "description": "Обязательно создайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь вашей секретной фразой с кем-либо.", - "title": "Создать или Импортировать кошелек" - }, - "step3": { - "description": "Как только вы настроите ваш кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.", - "title": "Обновите ваш браузер" - } - } - }, - "fox": { - "qr_code": { - "step1": { - "description": "Мы рекомендуем поместить FoxWallet на ваш экран начального экрана для более быстрого доступа.", - "title": "Откройте приложение FoxWallet" - }, - "step2": { - "description": "Обязательно сделайте резервное копирование вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.", - "title": "Создать или Импортировать кошелек" - }, - "step3": { - "description": "После сканирования появится приглашение для подключения вашего кошелька.", - "title": "Нажмите кнопку сканирования" - } - } - }, - "frontier": { - "qr_code": { - "step1": { - "description": "Мы рекомендуем установить Frontier Wallet на экран вашего смартфона для более быстрого доступа.", - "title": "Откройте приложение Frontier Wallet" - }, - "step2": { - "description": "Обязательно сделайте резервное копирование вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.", - "title": "Создать или Импортировать кошелек" - }, - "step3": { - "description": "После сканирования появится запрос на подключение кошелька.", - "title": "Нажмите кнопку сканирования" - } - }, - "extension": { - "step1": { - "description": "Мы рекомендуем прикрепить кошелек Frontier к панели задач для более быстрого доступа к вашему кошельку.", - "title": "Установите расширение кошелька Frontier" - }, - "step2": { - "description": "Обязательно сделайте резервную копию своего кошелька с использованием надежного метода. Никогда не делитесь своей секретной фразой с кем-либо.", - "title": "Создать или импортировать кошелек" - }, - "step3": { - "description": "После настройки вашего кошелька нажмите ниже, чтобы обновить браузер и загрузить расширение.", - "title": "Обновите ваш браузер" - } - } - }, - "im_token": { - "qr_code": { - "step1": { - "title": "Откройте приложение imToken", - "description": "Поместите приложение imToken на главный экран для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или импортировать кошелек", - "description": "Создайте новый кошелек или импортируйте существующий." - }, - "step3": { - "title": "Нажмите на иконку сканера в верхнем правом углу", - "description": "Выберите Новое соединение, затем отсканируйте QR-код и подтвердите запрос на соединение." - } - } - }, - "metamask": { - "qr_code": { - "step1": { - "title": "Откройте приложение MetaMask", - "description": "Мы рекомендуем поместить MetaMask на главный экран для быстрого доступа." - }, - "step2": { - "title": "Создайте или импортируйте кошелек", - "description": "Обязательно сохраните копию своего кошелька с помощью надежного метода. Никогда не делитесь своей секретной фразой с кем бы то ни было." - }, - "step3": { - "title": "Нажмите кнопку сканирования", - "description": "После сканирования появится запрос на соединение вашего кошелька." - } - }, - "extension": { - "step1": { - "title": "Установите расширение MetaMask", - "description": "Мы рекомендуем закрепить MetaMask на вашей панели задач для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или импортировать кошелек", - "description": "Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После настройки вашего кошелька, щелкните ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "okx": { - "qr_code": { - "step1": { - "title": "Откройте приложение кошелька OKX", - "description": "Мы рекомендуем разместить кошелек OKX на вашем главном экране для более быстрого доступа." - }, - "step2": { - "title": "Создать или импортировать кошелек", - "description": "Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Нажмите на кнопку сканирования", - "description": "После сканирования появится запрос на подключение вашего кошелька." - } - }, - "extension": { - "step1": { - "title": "Установите расширение кошелька OKX", - "description": "Мы рекомендуем закрепить OKX Wallet на панели задач для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать кошелек или импортировать кошелек", - "description": "Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "omni": { - "qr_code": { - "step1": { - "title": "Откройте приложение Omni", - "description": "Добавьте Omni на свой домашний экран для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или импортировать кошелек", - "description": "Создайте новый кошелек или импортируйте существующий." - }, - "step3": { - "title": "Нажмите на иконку QR и отсканируйте", - "description": "Нажмите на иконку QR на вашем домашнем экране, отсканируйте код и подтвердите подсказку, чтобы подключиться." - } - } - }, - "token_pocket": { - "qr_code": { - "step1": { - "title": "Откройте приложение TokenPocket", - "description": "Мы рекомендуем разместить TokenPocket на вашем домашнем экране для быстрого доступа." - }, - "step2": { - "title": "Создать или Импортировать кошелек", - "description": "Обязательно сделайте резервную копию вашего кошелька при помощи безопасного метода. Никогда не делитесь своим секретным кодом с кем-либо." - }, - "step3": { - "title": "Нажмите на кнопку сканирования", - "description": "После сканирования появится подсказка о подключении для подключения вашего кошелька." - } - }, - "extension": { - "step1": { - "title": "Установите расширение TokenPocket", - "description": "Мы рекомендуем закрепить TokenPocket на вашей панели задач для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или Импортировать кошелек", - "description": "Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "trust": { - "qr_code": { - "step1": { - "title": "Откройте приложение Trust Wallet", - "description": "Разместите Trust Wallet на вашем домашнем экране для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или Импортировать кошелек", - "description": "Создайте новый кошелек или импортируйте существующий." - }, - "step3": { - "title": "Нажмите WalletConnect в настройках", - "description": "Выберите Новое соединение, затем сканируйте QR-код и подтвердите запрос на подключение." - } - }, - "extension": { - "step1": { - "title": "Установите расширение Trust Wallet", - "description": "Кликните в правом верхнем углу вашего браузера и закрепите Trust Wallet для легкого доступа." - }, - "step2": { - "title": "Создайте или импортируйте кошелек", - "description": "Создайте новый кошелек или импортируйте существующий." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После настройки Trust Wallet, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "uniswap": { - "qr_code": { - "step1": { - "title": "Откройте приложение Uniswap", - "description": "Добавьте кошелек Uniswap на главный экран для быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или импортировать кошелек", - "description": "Создайте новый кошелек или импортируйте существующий." - }, - "step3": { - "title": "Нажмите на иконку QR и отсканируйте", - "description": "Нажмите на иконку QR на главном экране, отсканируйте код и подтвердите запрос на подключение." - } - } - }, - "zerion": { - "qr_code": { - "step1": { - "title": "Откройте приложение Zerion", - "description": "Мы рекомендуем разместить Zerion на главном экране для более быстрого доступа." - }, - "step2": { - "title": "Создать или импортировать кошелек", - "description": "Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Нажмите кнопку сканирования", - "description": "После сканирования вам будет предложено подключить ваш кошелек." - } - }, - "extension": { - "step1": { - "title": "Установите расширение Zerion", - "description": "Мы рекомендуем прикрепить Zerion к вашей панели задач для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создайте или импортируйте кошелек", - "description": "Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делясь своим секретным паролем с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "rainbow": { - "qr_code": { - "step1": { - "title": "Откройте приложение Rainbow", - "description": "Мы рекомендуем поместить Rainbow на ваш экран главного меню для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создайте или импортируйте кошелек", - "description": "Вы можете легко сделать резервную копию вашего кошелька с помощью нашей функции резервного копирования на вашем телефоне." - }, - "step3": { - "title": "Нажмите кнопку сканировать", - "description": "После сканирования появится запрос на подключение вашего кошелька." - } - } - }, - "enkrypt": { - "extension": { - "step1": { - "description": "Мы рекомендуем закрепить Enkrypt Wallet на панели задач для более быстрого доступа к вашему кошельку.", - "title": "Установите расширение Enkrypt Wallet" - }, - "step2": { - "description": "Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.", - "title": "Создать или импортировать кошелек" - }, - "step3": { - "description": "Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.", - "title": "Обновите ваш браузер" - } - } - }, - "frame": { - "extension": { - "step1": { - "description": "Мы рекомендуем закрепить Frame на панели задач для более быстрого доступа к вашему кошельку.", - "title": "Установите Frame и дополнительное расширение" - }, - "step2": { - "description": "Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.", - "title": "Создайте или Импортируйте кошелек" - }, - "step3": { - "description": "После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.", - "title": "Обновите ваш браузер" - } - } - }, - "one_key": { - "extension": { - "step1": { - "title": "Установите расширение OneKey Wallet", - "description": "Мы рекомендуем закрепить OneKey Wallet на панели задач для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создайте или Импортируйте кошелек", - "description": "Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После настройки кошелька нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "phantom": { - "extension": { - "step1": { - "title": "Установите расширение Phantom", - "description": "Мы рекомендуем закрепить Phantom на панели задач для более удобного доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или Импортировать кошелек", - "description": "Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой восстановления с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "rabby": { - "extension": { - "step1": { - "title": "Установите расширение Rabby", - "description": "Мы рекомендуем закрепить Rabby на панели задач для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или импортировать кошелек", - "description": "Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем бы то ни было." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "safeheron": { - "extension": { - "step1": { - "title": "Установите основное расширение", - "description": "Мы рекомендуем закрепить SafeHeron на панели задач для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или импортировать кошелек", - "description": "Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После того, как вы настроите ваш кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "taho": { - "extension": { - "step1": { - "title": "Установите расширение Taho", - "description": "Мы рекомендуем закрепить Taho на вашей панели задач для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или импортировать кошелек", - "description": "Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "talisman": { - "extension": { - "step1": { - "title": "Установите расширение Talisman", - "description": "Мы рекомендуем закрепить Talisman на вашей панели задач для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создайте или импортируйте кошелек Ethereum", - "description": "Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь вашей фразой восстановления с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "xdefi": { - "extension": { - "step1": { - "title": "Установите расширение кошелька XDEFI", - "description": "Мы рекомендуем закрепить XDEFI Wallet на панели задач для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или Импортировать кошелек", - "description": "Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После того, как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "zeal": { - "extension": { - "step1": { - "title": "Установите расширение Zeal", - "description": "Мы рекомендуем закрепить Zeal на панели задач для быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или Импортировать кошелек", - "description": "Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "safepal": { - "extension": { - "step1": { - "title": "Установите расширение SafePal Wallet", - "description": "Кликните в верхнем правом углу вашего браузера и закрепите SafePal Wallet для удобного доступа." - }, - "step2": { - "title": "Создайте или импортируйте кошелек", - "description": "Создайте новый кошелек или импортируйте существующий." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После настройки кошелька SafePal нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - }, - "qr_code": { - "step1": { - "title": "Откройте приложение SafePal Wallet", - "description": "Разместите SafePal Wallet на главном экране для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или Импортировать кошелек", - "description": "Создайте новый кошелек или импортируйте существующий." - }, - "step3": { - "title": "Нажмите WalletConnect в настройках", - "description": "Выберите Новое соединение, затем отсканируйте QR-код и подтвердите запрос на соединение." - } - } - }, - "desig": { - "extension": { - "step1": { - "title": "Установите расширение Desig", - "description": "Мы рекомендуем закрепить Desig на вашей панели задач для более удобного доступа к вашему кошельку." - }, - "step2": { - "title": "Создать кошелек", - "description": "Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - } - }, - "subwallet": { - "extension": { - "step1": { - "title": "Установите расширение SubWallet", - "description": "Мы рекомендуем закрепить SubWallet на вашей панели задач для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или Импортировать кошелек", - "description": "Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь вашей фразой восстановления с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - }, - "qr_code": { - "step1": { - "title": "Откройте приложение SubWallet", - "description": "Мы рекомендуем добавить SubWallet на ваш экран начальной страницы для более быстрого доступа." - }, - "step2": { - "title": "Создать или Импортировать кошелек", - "description": "Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Нажмите кнопку сканирования", - "description": "После сканирования появится запрос на подключение для подключения вашего кошелька." - } - } - }, - "clv": { - "extension": { - "step1": { - "title": "Установите расширение CLV Wallet", - "description": "Мы рекомендуем закрепить CLV Wallet на вашей панели задач для более быстрого доступа к вашему кошельку." - }, - "step2": { - "title": "Создать или Импортировать кошелек", - "description": "Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Обновите ваш браузер", - "description": "После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение." - } - }, - "qr_code": { - "step1": { - "title": "Откройте приложение CLV Wallet", - "description": "Мы рекомендуем поместить CLV Wallet на ваш экран домой для более быстрого доступа." - }, - "step2": { - "title": "Создать или Импортировать кошелек", - "description": "Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо." - }, - "step3": { - "title": "Нажмите кнопку сканирования", - "description": "После сканирования появится запрос на подключение для подключения вашего кошелька." - } - } - }, - "okto": { - "qr_code": { - "step1": { - "title": "Откройте приложение Okto", - "description": "Добавьте Okto на ваш экран домой для быстрого доступа" - }, - "step2": { - "title": "Создать кошелек MPC", - "description": "Создайте учетную запись и сгенерируйте кошелек" - }, - "step3": { - "title": "Нажмите WalletConnect в настройках", - "description": "Коснитесь значка Scan QR в верхнем правом углу и подтвердите запрос на подключение." - } - } - }, - "ledger": { - "desktop": { - "step1": { - "title": "Откройте приложение Ledger Live", - "description": "Мы рекомендуем поместить Ledger Live на ваш экран домой для более быстрого доступа." - }, - "step2": { - "title": "Настройте ваш Ledger", - "description": "Настройте новый Ledger или подключитесь к существующему." - }, - "step3": { - "title": "Подключить", - "description": "После сканирования вам будет предложено подключить ваш кошелек." - } - }, - "qr_code": { - "step1": { - "title": "Откройте приложение Ledger Live", - "description": "Мы рекомендуем поместить Ledger Live на ваш экран домой для более быстрого доступа." - }, - "step2": { - "title": "Настройте ваш Ledger", - "description": "Вы можете синхронизировать с настольным приложением или подключить свой Ledger." - }, - "step3": { - "title": "Сканировать код", - "description": "Нажмите WalletConnect, затем переключитесь на Scanner. После сканирования вам будет предложено подключить ваш кошелек." - } - } - } - } -} -`;export{D as default}; -//# sourceMappingURL=ru_RU-3W6WVVOI-CElW9r3c.js.map diff --git a/apps/web/public/assets/safeWallet-DFMLSLCR-7Jx5rkap.js b/apps/web/public/assets/safeWallet-DFMLSLCR-7Jx5rkap.js deleted file mode 100644 index e28a80b2..00000000 --- a/apps/web/public/assets/safeWallet-DFMLSLCR-7Jx5rkap.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},I=new M.Error().stack;I&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[I]="d3d5e494-acf3-47b4-84b6-16cc46bb227f",M._sentryDebugIdIdentifier="sentry-dbid-d3d5e494-acf3-47b4-84b6-16cc46bb227f")}catch{}})();var g="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI4IiBoZWlnaHQ9IjI4IiBmaWxsPSIjMTJGRjgwIi8+CjxwYXRoIGQ9Ik0yMi41MTUxIDEzLjk5NzlIMjAuNDI0NEMxOS43OTgxIDEzLjk5NzkgMTkuMjk0NSAxNC41MDU4IDE5LjI5NDUgMTUuMTI4VjE4LjE2M0MxOS4yOTQ1IDE4Ljc4OTQgMTguNzg2NiAxOS4yOTMxIDE4LjE2NDUgMTkuMjkzMUg5LjgzOThDOS4yMTM0NCAxOS4yOTMxIDguNzA5ODEgMTkuODAxMSA4LjcwOTgxIDIwLjQyMzNWMjIuNTE4NUM4LjcwOTgxIDIzLjE0NSA5LjIxNzY3IDIzLjY0ODcgOS44Mzk4IDIzLjY0ODdIMTguNjQyN0MxOS4yNjkxIDIzLjY0ODcgMTkuNzY0MiAyMy4xNDA3IDE5Ljc2NDIgMjIuNTE4NVYyMC44NDIzQzE5Ljc2NDIgMjAuMjE1OSAyMC4yNzIxIDE5Ljc3NTcgMjAuODk0MiAxOS43NzU3SDIyLjUxNTFDMjMuMTQxNSAxOS43NzU3IDIzLjY0NTEgMTkuMjY3NyAyMy42NDUxIDE4LjY0NTVWMTUuMTE5NkMyMy42NDUxIDE0LjQ4ODkgMjMuMTM3MyAxMy45OTc5IDIyLjUxNTEgMTMuOTk3OVoiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik04LjcwOTggOS44NDEyN0M4LjcwOTggOS4yMTQ4MSA5LjIxNzY2IDguNzExMTEgOS44Mzk3OCA4LjcxMTExSDE4LjE1NkMxOC43ODIzIDguNzExMTEgMTkuMjg2IDguMjAzMTcgMTkuMjg2IDcuNTgwOTVWNS40ODk5NUMxOS4yODYgNC44NjM0OSAxOC43NzgxIDQuMzU5NzkgMTguMTU2IDQuMzU5NzlIOS4zNTczMkM4LjczMDk2IDQuMzU5NzkgOC4yMjczMyA0Ljg2NzcyIDguMjI3MzMgNS40ODk5NVY3LjEwMjY0QzguMjI3MzMgNy43MjkxIDcuNzE5NDcgOC4yMzI4IDcuMDk3MzQgOC4yMzI4SDUuNDg5MTJDNC44NjI3NiA4LjIzMjggNC4zNTkxMyA4Ljc0MDc0IDQuMzU5MTMgOS4zNjI5NlYxMi44OTMxQzQuMzU5MTMgMTMuNTE5NiA0Ljg2Njk5IDEzLjk5NzkgNS40OTMzNSAxMy45OTc5SDcuNTg0MDRDOC4yMTA0IDEzLjk5NzkgOC43MTQwMyAxMy40ODk5IDguNzE0MDMgMTIuODY3N0w4LjcwOTggOS44NDEyN1oiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik0xMy4wMTM5IDExLjgwMTFIMTUuMDI0MkMxNS42ODAyIDExLjgwMTEgMTYuMjA5MiAxMi4zMzQ0IDE2LjIwOTIgMTIuOTg2MlYxNC45OTY4QzE2LjIwOTIgMTUuNjUyOSAxNS42NzU5IDE2LjE4MiAxNS4wMjQyIDE2LjE4MkgxMy4wMTM5QzEyLjM1NzkgMTYuMTgyIDExLjgyODkgMTUuNjQ4NyAxMS44Mjg5IDE0Ljk5NjhWMTIuOTg2MkMxMS44Mjg5IDEyLjMzMDIgMTIuMzYyMSAxMS44MDExIDEzLjAxMzkgMTEuODAxMVoiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=";export{g as default}; -//# sourceMappingURL=safeWallet-DFMLSLCR-7Jx5rkap.js.map diff --git a/apps/web/public/assets/safeWallet-DFMLSLCR-BD-GpskT.js b/apps/web/public/assets/safeWallet-DFMLSLCR-BD-GpskT.js deleted file mode 100644 index 2423ee26..00000000 --- a/apps/web/public/assets/safeWallet-DFMLSLCR-BD-GpskT.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},I=new M.Error().stack;I&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[I]="d3d5e494-acf3-47b4-84b6-16cc46bb227f",M._sentryDebugIdIdentifier="sentry-dbid-d3d5e494-acf3-47b4-84b6-16cc46bb227f")}catch{}})();var g="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI4IiBoZWlnaHQ9IjI4IiBmaWxsPSIjMTJGRjgwIi8+CjxwYXRoIGQ9Ik0yMi41MTUxIDEzLjk5NzlIMjAuNDI0NEMxOS43OTgxIDEzLjk5NzkgMTkuMjk0NSAxNC41MDU4IDE5LjI5NDUgMTUuMTI4VjE4LjE2M0MxOS4yOTQ1IDE4Ljc4OTQgMTguNzg2NiAxOS4yOTMxIDE4LjE2NDUgMTkuMjkzMUg5LjgzOThDOS4yMTM0NCAxOS4yOTMxIDguNzA5ODEgMTkuODAxMSA4LjcwOTgxIDIwLjQyMzNWMjIuNTE4NUM4LjcwOTgxIDIzLjE0NSA5LjIxNzY3IDIzLjY0ODcgOS44Mzk4IDIzLjY0ODdIMTguNjQyN0MxOS4yNjkxIDIzLjY0ODcgMTkuNzY0MiAyMy4xNDA3IDE5Ljc2NDIgMjIuNTE4NVYyMC44NDIzQzE5Ljc2NDIgMjAuMjE1OSAyMC4yNzIxIDE5Ljc3NTcgMjAuODk0MiAxOS43NzU3SDIyLjUxNTFDMjMuMTQxNSAxOS43NzU3IDIzLjY0NTEgMTkuMjY3NyAyMy42NDUxIDE4LjY0NTVWMTUuMTE5NkMyMy42NDUxIDE0LjQ4ODkgMjMuMTM3MyAxMy45OTc5IDIyLjUxNTEgMTMuOTk3OVoiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik04LjcwOTggOS44NDEyN0M4LjcwOTggOS4yMTQ4MSA5LjIxNzY2IDguNzExMTEgOS44Mzk3OCA4LjcxMTExSDE4LjE1NkMxOC43ODIzIDguNzExMTEgMTkuMjg2IDguMjAzMTcgMTkuMjg2IDcuNTgwOTVWNS40ODk5NUMxOS4yODYgNC44NjM0OSAxOC43NzgxIDQuMzU5NzkgMTguMTU2IDQuMzU5NzlIOS4zNTczMkM4LjczMDk2IDQuMzU5NzkgOC4yMjczMyA0Ljg2NzcyIDguMjI3MzMgNS40ODk5NVY3LjEwMjY0QzguMjI3MzMgNy43MjkxIDcuNzE5NDcgOC4yMzI4IDcuMDk3MzQgOC4yMzI4SDUuNDg5MTJDNC44NjI3NiA4LjIzMjggNC4zNTkxMyA4Ljc0MDc0IDQuMzU5MTMgOS4zNjI5NlYxMi44OTMxQzQuMzU5MTMgMTMuNTE5NiA0Ljg2Njk5IDEzLjk5NzkgNS40OTMzNSAxMy45OTc5SDcuNTg0MDRDOC4yMTA0IDEzLjk5NzkgOC43MTQwMyAxMy40ODk5IDguNzE0MDMgMTIuODY3N0w4LjcwOTggOS44NDEyN1oiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik0xMy4wMTM5IDExLjgwMTFIMTUuMDI0MkMxNS42ODAyIDExLjgwMTEgMTYuMjA5MiAxMi4zMzQ0IDE2LjIwOTIgMTIuOTg2MlYxNC45OTY4QzE2LjIwOTIgMTUuNjUyOSAxNS42NzU5IDE2LjE4MiAxNS4wMjQyIDE2LjE4MkgxMy4wMTM5QzEyLjM1NzkgMTYuMTgyIDExLjgyODkgMTUuNjQ4NyAxMS44Mjg5IDE0Ljk5NjhWMTIuOTg2MkMxMS44Mjg5IDEyLjMzMDIgMTIuMzYyMSAxMS44MDExIDEzLjAxMzkgMTEuODAxMVoiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=";export{g as default}; -//# sourceMappingURL=safeWallet-DFMLSLCR-BD-GpskT.js.map diff --git a/apps/web/public/assets/scan-HZBLXLM4-DxZfTx07.js b/apps/web/public/assets/scan-HZBLXLM4-DxZfTx07.js deleted file mode 100644 index 101ffe60..00000000 --- a/apps/web/public/assets/scan-HZBLXLM4-DxZfTx07.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},A=new M.Error().stack;A&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[A]="1c5d7995-8b80-4926-8266-14dbe4becfe9",M._sentryDebugIdIdentifier="sentry-dbid-1c5d7995-8b80-4926-8266-14dbe4becfe9")}catch{}})();var D="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTAgMTZjMC01LjYgMC04LjQgMS4wOS0xMC41NGExMCAxMCAwIDAgMSA0LjM3LTQuMzdDNy42IDAgMTAuNCAwIDE2IDBoMTZjNS42IDAgOC40IDAgMTAuNTQgMS4wOWExMCAxMCAwIDAgMSA0LjM3IDQuMzdDNDggNy42IDQ4IDEwLjQgNDggMTZ2MTZjMCA1LjYgMCA4LjQtMS4wOSAxMC41NGExMC4wMDEgMTAuMDAxIDAgMCAxLTQuMzcgNC4zN0M0MC40IDQ4IDM3LjYgNDggMzIgNDhIMTZjLTUuNiAwLTguNCAwLTEwLjU0LTEuMDlhMTAgMTAgMCAwIDEtNC4zNy00LjM3QzAgNDAuNCAwIDM3LjYgMCAzMlYxNloiLz48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii4wOCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMS4xMzMgOS41MTNDMSAxMS4xMzEgMSAxMy4xODMgMSAxNnYxNmMwIDIuODE3IDAgNC44Ny4xMzMgNi40ODYuMTMxIDEuNjA2LjM4NyAyLjY5NS44NDggMy42YTkgOSAwIDAgMCAzLjkzMyAzLjkzM2MuOTA1LjQ2MSAxLjk5NC43MTcgMy42Ljg0OEMxMS4xMyA0NyAxMy4xODMgNDcgMTYgNDdoMTZjMi44MTcgMCA0Ljg3IDAgNi40ODYtLjEzMyAxLjYwNi0uMTMxIDIuNjk1LS4zODcgMy42LS44NDhhOSA5IDAgMCAwIDMuOTMzLTMuOTMzYy40NjEtLjkwNS43MTctMS45OTQuODQ4LTMuNkM0NyAzNi44NyA0NyAzNC44MTYgNDcgMzJWMTZjMC0yLjgxNyAwLTQuODctLjEzMy02LjQ4Ny0uMTMxLTEuNjA1LS4zODctMi42OTQtLjg0OC0zLjU5OWE5IDkgMCAwIDAtMy45MzMtMy45MzNjLS45MDUtLjQ2MS0xLjk5NC0uNzE3LTMuNi0uODQ4QzM2Ljg3IDEgMzQuODE2IDEgMzIgMUgxNmMtMi44MTcgMC00Ljg3IDAtNi40ODcuMTMzLTEuNjA1LjEzMS0yLjY5NC4zODctMy41OTkuODQ4YTkgOSAwIDAgMC0zLjkzMyAzLjkzM2MtLjQ2MS45MDUtLjcxNyAxLjk5NC0uODQ4IDMuNlpNMS4wOSA1LjQ2QzAgNy42IDAgMTAuNCAwIDE2djE2YzAgNS42IDAgOC40IDEuMDkgMTAuNTRhMTAgMTAgMCAwIDAgNC4zNyA0LjM3QzcuNiA0OCAxMC40IDQ4IDE2IDQ4aDE2YzUuNiAwIDguNCAwIDEwLjU0LTEuMDlhMTAuMDAxIDEwLjAwMSAwIDAgMCA0LjM3LTQuMzdDNDggNDAuNCA0OCAzNy42IDQ4IDMyVjE2YzAtNS42IDAtOC40LTEuMDktMTAuNTRhMTAgMTAgMCAwIDAtNC4zNy00LjM3QzQwLjQgMCAzNy42IDAgMzIgMEgxNkMxMC40IDAgNy42IDAgNS40NiAxLjA5YTEwIDEwIDAgMCAwLTQuMzcgNC4zN1oiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjEyIiBkPSJNMjggMTAuNUExLjUgMS41IDAgMCAxIDI5LjUgOWgzLjk1NWMuNTA2IDAgLjc2IDAgLjk3My4wMTVhNiA2IDAgMCAxIDUuNTU3IDUuNTU3Yy4wMTUuMjE0LjAxNS40NjcuMDE1Ljk3NFYxOS41YTEuNSAxLjUgMCAwIDEtMyAwdi00LjEyNWMwLS4zNDggMC0uNTIyLS4wMTQtLjY3YTMgMyAwIDAgMC0yLjY5Mi0yLjY5Yy0uMTQ3LS4wMTUtLjMyLS4wMTUtLjY2OS0uMDE1SDI5LjVhMS41IDEuNSAwIDAgMS0xLjUtMS41Wm0wIDI5YTEuNSAxLjUgMCAwIDAgMS41IDEuNWgzLjk1NWMuNTA2IDAgLjc2IDAgLjk3My0uMDE1YTYgNiAwIDAgMCA1LjU1Ny01LjU1N2MuMDE1LS4yMTQuMDE1LS40NjcuMDE1LS45NzNWMzAuNWExLjUgMS41IDAgMCAwLTMgMHY0LjEyNWMwIC4zNDggMCAuNTIyLS4wMTQuNjdhMyAzIDAgMCAxLTIuNjkyIDIuNjljLS4xNDcuMDE1LS4zMi4wMTUtLjY2OS4wMTVIMjkuNWExLjUgMS41IDAgMCAwLTEuNSAxLjVaTTE4LjUgNDFhMS41IDEuNSAwIDAgMCAwLTNoLTQuMTI1Yy0uMzQ4IDAtLjUyMiAwLS42Ny0uMDE0YTMgMyAwIDAgMS0yLjY5LTIuNjkyYy0uMDE1LS4xNDctLjAxNS0uMzItLjAxNS0uNjY5VjMwLjVhMS41IDEuNSAwIDAgMC0zIDB2My45NTVjMCAuNTA2IDAgLjc2LjAxNS45NzNhNiA2IDAgMCAwIDUuNTU3IDUuNTU3Yy4yMTQuMDE1LjQ2Ny4wMTUuOTc0LjAxNUgxOC41Wk0yMCAxMC41QTEuNSAxLjUgMCAwIDAgMTguNSA5aC0zLjk1NGMtLjUwNyAwLS43NiAwLS45NzQuMDE1YTYgNiAwIDAgMC01LjU1NyA1LjU1N0M4IDE0Ljc4NiA4IDE1LjAzOSA4IDE1LjU0NlYxOS41YTEuNSAxLjUgMCAwIDAgMyAwdi00LjEyNWMwLS4zNDggMC0uNTIyLjAxNC0uNjdhMyAzIDAgMCAxIDIuNjkyLTIuNjljLjE0Ny0uMDE1LjMyLS4wMTUuNjY5LS4wMTVIMTguNWExLjUgMS41IDAgMCAwIDEuNS0xLjVaIi8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTI4IDkuNUExLjUgMS41IDAgMCAxIDI5LjUgOGgzLjk1NWMuNTA2IDAgLjc2IDAgLjk3My4wMTVhNiA2IDAgMCAxIDUuNTU3IDUuNTU3Yy4wMTUuMjE0LjAxNS40NjcuMDE1Ljk3NFYxOC41YTEuNSAxLjUgMCAwIDEtMyAwdi00LjEyNWMwLS4zNDggMC0uNTIyLS4wMTQtLjY3YTMgMyAwIDAgMC0yLjY5Mi0yLjY5Yy0uMTQ3LS4wMTUtLjMyLS4wMTUtLjY2OS0uMDE1SDI5LjVBMS41IDEuNSAwIDAgMSAyOCA5LjVabTAgMjlhMS41IDEuNSAwIDAgMCAxLjUgMS41aDMuOTU1Yy41MDYgMCAuNzYgMCAuOTczLS4wMTVhNiA2IDAgMCAwIDUuNTU3LTUuNTU3Yy4wMTUtLjIxNC4wMTUtLjQ2Ny4wMTUtLjk3M1YyOS41YTEuNSAxLjUgMCAwIDAtMyAwdjQuMTI1YzAgLjM0OCAwIC41MjItLjAxNC42N2EzIDMgMCAwIDEtMi42OTIgMi42OWMtLjE0Ny4wMTUtLjMyLjAxNS0uNjY5LjAxNUgyOS41YTEuNSAxLjUgMCAwIDAtMS41IDEuNVpNMTguNSA0MGExLjUgMS41IDAgMCAwIDAtM2gtNC4xMjVjLS4zNDggMC0uNTIyIDAtLjY3LS4wMTRhMyAzIDAgMCAxLTIuNjktMi42OTJjLS4wMTUtLjE0Ny0uMDE1LS4zMi0uMDE1LS42NjlWMjkuNWExLjUgMS41IDAgMCAwLTMgMHYzLjk1NWMwIC41MDYgMCAuNzYuMDE1Ljk3M2E2IDYgMCAwIDAgNS41NTcgNS41NTdjLjIxNC4wMTUuNDY3LjAxNS45NzQuMDE1SDE4LjVaTTIwIDkuNUExLjUgMS41IDAgMCAwIDE4LjUgOGgtMy45NTRjLS41MDcgMC0uNzYgMC0uOTc0LjAxNWE2IDYgMCAwIDAtNS41NTcgNS41NTdDOCAxMy43ODYgOCAxNC4wMzkgOCAxNC41NDZWMTguNWExLjUgMS41IDAgMCAwIDMgMHYtNC4xMjVjMC0uMzQ4IDAtLjUyMi4wMTQtLjY3YTMgMyAwIDAgMSAyLjY5Mi0yLjY5Yy4xNDctLjAxNS4zMi0uMDE1LjY2OS0uMDE1SDE4LjVBMS41IDEuNSAwIDAgMCAyMCA5LjVaIi8+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iMjQiIHgyPSIyNCIgeTE9IjAiIHkyPSI0OCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiM1OTYyN0EiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM0QTUyNjYiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";export{D as default}; -//# sourceMappingURL=scan-HZBLXLM4-DxZfTx07.js.map diff --git a/apps/web/public/assets/sign-FZVB2CS6-DXQn9z7A.js b/apps/web/public/assets/sign-FZVB2CS6-DXQn9z7A.js deleted file mode 100644 index 6b9625f3..00000000 --- a/apps/web/public/assets/sign-FZVB2CS6-DXQn9z7A.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},b=new f.Error().stack;b&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[b]="bbfc9288-7efe-4f06-944d-907b6f597e1b",f._sentryDebugIdIdentifier="sentry-dbid-bbfc9288-7efe-4f06-944d-907b6f597e1b")}catch{}})();var n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAC/VBMVEUAAADS0dDp6enV1NTi4uLOzc3l5eXh4eHl5eXW1dXa2trQz87e3t2ll5fne3vFdXV+PT14d3fS0dHj4+OBaGh5Pz9yOjqqX19iYmJqQUGlkJBoQUGrqqqKiomEY2PIiYn39vbx8fHz8/P6+fnu7e34+Pjv7+/19fXp6Oje3d3m5uXs7Ozd3Nzr6+ra2dnc29vf397b2trn5+fq6unk5OTV1NTj4+LZ2NfX19fX1tXg4N/i4uHh4eDQz87T0tLU09PR0M/Dw8P7+/rKyslnZ2fKlx/MzMvHx8f/00POzc2rq6uLi4z/zTilpabFxcW/v8CpqKmioqPOmyb/zDTS0dC0tLSfoKGdnZ6YmJn/103/1UjIlRn1tw+6uruxsbGEhIX/zzz/yB7boQ69vb3v0JGPkJCIiYrEqnfMmSObm5uVlZaHh4d9fX7mpwHqqwD8/PyAgIDQnSn/wxatra2RkpP/0T7/yS63trbTnyy3uLivrq+NjY9tbGxqamqUlJX9p6d4eHn+0EGCgoNtaWD2uyBwcHDWozHy05PrzI7dwIZlZWa+jRLBwcDIrnvZ29//oaH7lJRyb2hya1z/xyj1uR+5ihOPobf9ra2ZlZDph4bTgYHOtH/Gbm5WWFk/QELc3uHfenp9fHl3dnOyhRfGkQ6Snq60nKXlx43yhoXehITLd3fdvXG4YmLerzO1yNyZqb7+srK6sKL9m5v11pWuXV2UVFRXVlE2OT3DkiD/wAzoqQHd4eWpvdXR09S2w9Gbo67oo6PRoKPwnJzkxYbWuoLcvnXIq2uQg2lcX2FLTU/yyECitMqUmKDOvJPyjo55foaVinWynHDauGllY1+GdE6dhUv60kr/y0mXfD36xzPoshr3tQTi7fPisrKLk6Guk5unlZW+q4GTjID1zXetmGT6zGHSrFzGo1Xitk6mi0bywjb+vyLUmwjhowDm29qjr7zPt7f/5af83Z773Jz32Ji0lpWffoCklXTUuHK5n2rmvmWzmFWCQUFwNjYdICKb6dEPAAAAIHRSTlMAtqO8vLaztKOzs7yzJAqt+ryEd1P37uHaw769vLxsZrn7H40AAAyrSURBVFjDndYHfBpVHAdw9957C9wBNxjHcaw7IIwKArI0DAegIlGGBg2KSUyM0TpqtO5R26p177333nvvvffefvy/d9AQQl2/lOul9+7b/xv3juXkbLgazgr/Pau1syGG1mmBq9JOgWEYnuep/xSeZyCC1SrSK8lSG5QYyqzXsyzZjkaDDu3TZYbV6/VmM0UxYhdopcDSQJT/KXADZs2UtQsUzKSsqVrRzvrpjlI1bbLd4CoMgNOetjuYhCM+7eRlEkChG9ST4LUwhVbRI9qOUzmYlcVeYNtT/OtgEoukmekGWVxgW1PL0conBPzA2TJE8HqAvAwqQkqnbBHwRxsm0BkVYkxw0hVCjUVcYm8QFeh0x1horNISELI87IO/+DKXUBAQtdLnGyQGCQLpPhNPKrSkitWQfwOq4/Ygp1CYnayVIHz+IKnUEIPD7tF+h4ogmGTGW0wYRtSk0UdQqVy4mmlkM7EG8zegPpkcSo9nk4NR0edjsonxKOkLRrOZoXGDb3BETCcHBjKlcCrpjQ0ronl6JJzNJrJ/02WFl3aXEvH8CJ+y+Oi8yR8cJBi/idQwGiXho+NamCZVvjgYBV9N6eE3QqWFxxVNitALtFqUalbtGxwkzITPTBBwQvh8PkKObxAdHKOD1gqLRlHRnhS8DnuBWpsWrxji7yLxqtSwD3kYbC1DtieIHhIA/0EkbBlqmpMXDamnrN2gHkClVk1yM0v0ST5Co5F7DCEIfBU8ZGpIXF9PkAFQSaWaXp0K3aJue/7yIJHUICMwPJSKqyG4PCIYU+gLIqoPb1+81PNZJppEhsb3oLkYhOImdb6om0AgEyZSCQJzEHpUoxgPovnAmyzFOGeD0Gc6EK9oOSXUGArGqdiUJh2yxKd4xKglv72qZeGZ5hmVk82Ggp5EquXBji2IXaBgBlCR6ovUU1WNmshnGoXs6EAxnMllo3ECjWuemRxNhwkFExkIF8rZWr6QrpC0BnM8L3C9QIPf6/UORSm1YFEJjJWMV8OGftrv1FrVatZUjMdHvAq1V1MM+9Nxf1wXHk0HDUYKdZiR6F4gqYLZI3zQLTnspKq177SXp1refVVamA30gOgp85dv3PO1yIu6VbtAikWvgKUbLB76bJGYtf1Nb9Koszz1xsUXn7Pw+h9o40xwVQBJDMqrG68zqqjGMrFUY5bu0KSGBY7h7774hBNOuPic628o9niNQhuG0ZJaFLVIYUnjUJvjai2OuuluvZRUrCWc1zOMcPfF186fP//aE865/PctukAeFmIwlbO5AloIaRjHdRJh3loVFdhT+FMKzGl0yURUaN5h9d9z5rXzD4XMB3G9bWaBpCpI6aMEujdYMeB+e4POkhkKhHlQiQOsjuEoTsOyrHE4FuW59B333Iu800+f/ySIG3WCEq9nSTKvHS+FvbCzJw12p9soCoVUOe4PVgeyxUKsNF5NVhqJpEZvZqPBicBwPJUCEbyrrz702osvvX6TtWeAZlYzzESbjapby6YziWo9k42UsuahSNYfKJYrjYq3MRS1pzNpjjIPZ5bUCuO5284evuvCexF4+vwTzlx4w5adIGPWkxT6WgEzDQcFbMhWgSe1aJNCiw9fUJJKndnA8yGjJ5Avnn3b63deMHDh3adfffqhAJ5z+R8bTYNOhtKznd9GQGmdtL/CoKUHa48WRMHqjKVSdvb1O6887c2nQATvyTPPWXjD5l1gp6jwmqc57OFthRQKoYbAnf3LNXfcdtuVV15w+wXjT11477XgXbJg4fUbr70UFBkeWpOgyaIi1tR2cuDhfSBab9b7ubOf/fz8J668/bGrbn/zyrvOqF145plnXnLJgkuvv6EDFGBWrKV4f9FCO3W0Mh6GhUIaHSalh7QYwTMavDGeMmfcjbD77Ge/+GK3V9+/6rSrrrr98TvT7y55a8ElCLx803WWghyAunR6PFKulkr1bKTOKlXm0XqkkawPj8LGYYw05lbMYimdrQ489ey+++62xxGvvnDaaY9ddefjw5Vzl7x16YIFCxZevi1Q06A+wFhiQWUgF7Q2vfGcyjxQi6SjyclKKaXRpTMBf04ftyS83vhH+9662x4HvPLpFUi8K9e45owl57596YJLF66LLZy1OCvMCppnsj0tSqZs1mjtAwazGUaPZdG2zEgSffxl2DvoFVn8qtw848LSknN/XLhw3XU6QBpAEDUsgA4lTLZGNeqAoWsMKVkWfy/nGcEqiTrw9kPeTjvs8OijV3xywQUjb19zxhmFE5fcAN5MEIZcn9CwyuE0ApXFEbRL+fXIAw55Tq7D2333ww579NFPLogi79wTF90IM9wJSgzPs9EAq8lV9XiZUMDBysQclMdYZ3rAHfbiiy+++vJdyTMK9RNvfGSzmaBOEhizt8DShnqeCSthLIFD0Zvl8qA+2jjD236XXXY+5fObX05XwVv03PrAdIJOgXFMRiowsbVSvtji9BAoTx4+rtM7ELyddz5lzx1vPu/50RMXPTyvGzQ6rXzYFR0KUl5HrmgKyV6rPOzRpuMfmOXtv8/NII4tmjNvbOsuUIRp5vVgsCxURyINPKrlOZfh7bjddjcfe95J8+bNjWw1A1zDJFoFmBYKk0BhbtrjaGOnt33b22e7XXc9/7zDx+ZWhlbuBiUBHhYh15RLw57MCRJ4Ie+0ByD2DgZvO+TNm1vJx1bsAjlJEGOJpIuRLVTdtKczjf7c9uQCp71TD58zVhgKerpAA4C2oD/uL7Y0Mw+LDzy8/OjHH+z0dpnpHTKZjPf3d4O00ypQSWuZhXUCbyF4ECVGgPr6Qn3G/tHfbp1Z3xF7HiwPIPIiiaLH0hP0ezP5QIbVT0Uq9WR0pGS1Wk2laKky8TL2Tu7yoMDzkDcU67M73F2gjRYlJlmu1SZH9LF6ppksFSqFjMsqBbON4IMtb6du79Qb5xwyOhSzG2yzQZ0oWbx+i4uDl5pR4gQ7L4YkwSly3NnH7Lss73DkBe0mg2EWaNeJ0GcGh8dHeHrR80a3vYN6edDfoM1kMhkcfd2gkXNKVqsAGNXH2AFEnuTivO8g75ZleSO5oNEIoL0HKILI5Bm+WS8O8Lg+JjA5deIV095h2DsSvH1aXj5X7TNCDPauLq/uMAEoMPkmH5xM1oyCAPufWK6lD3nn1/1meTtib+yQUr46YdHpdFBiD5AWxWSuYjROjNSiBqeYD/kNJc9E4piPX7sFJgT3F3sHY+/Ywxc/Uju3viREAwgVOnqAzhFXKdBIliPlicl6YWDu3EJqvPbuMR/v99otGGx5+2PvucWLFy8aSxWmOLo3aDHQUrScTlYmqvVm1BFN5XPxqUzO+8QxR7/3wUsvHbQDeuCmvZMWjw1Uin6dV0fTIJp6gTpOpAU+V61EKUZCU+LkRK551n17Xff9t9+8tBMMYIcH8xEOGmgcqLAXaNPRMC3cxFDdIEGcTifH6WxPH3P0UUddd913H3y2w2GnzPRiBh3cwi0bNAIoin6JszolCbZoEY3OE/ftdRTkuvde+2y3PY88stODCmgZNC4ThE6HoDbJKQxzImo7df/RAEL22nffPa9ABWJvbAB5iONaXbbNAvvsRh1cnxxGnZW8GQmBnqfv2wvn6IuOPH9/AHfcB9eHPegvBntXCKBJpxPHG2g2rJaGE1UoFvY+WuaOuf+sBz/68MODd1zqGQFEGowLrtDS3wW6HSYjl5gM5MuFoXTNJnKBiXIhfx/iwDvrOJSz9t9O7q8XugNYxyT3Ag1G90R2ojoZqdXL0PtsdaR2zdGt8o7bG3Lcg/A+Ai8BHiqw7elMCPR0gf0Og25oIp6wBBz9U+U+zjhaTIz+dN20B3n/+TlzDgHPAR5AsocLnA0u77HYTANhkcMj7YTREd2Rxk0P7QXdlblnHjpx3pw5cyNhr8NkMgIJJgTNCID2XmBxwm2EFq2ecMnx0k2Lb9wbvLY2Nvfc8ZGYw4BBkKY9m73PteZM0GWxpVJwWW6GOyItWnzT4oefxto80Caq2UTO7zAYQAQTR+Zs8I4KzQRXDvXB/2zobGgK3HTTIw8vegRKQ7UNZBPNKb/bbrMZECmj8IFfwLP0zwLdDtzW1AqcJP5cNO/hOWOg1SLlxLDX77FAGxxM4sj1ARjoAgP9FgcmW4ETy1SzgLVMOOcNeCyoQSsyCh8bcHYo0OKZDfahO3Bb/IF4RmqgDeVi8kW4jD9tF9ohzAFcn9vVDfpd/W63uw9unI4rlxgBzePugws4+G/LjEbwj+7+flfI3wUG/YFQKORyeTz9+AfF5Q/6Qy5ICH/g2I4HfXDQlVAgEPDH2uA6+LjByjjL/5+sLGcD2fsLerG519oDlHIAAAAASUVORK5CYII=";export{n as default}; -//# sourceMappingURL=sign-FZVB2CS6-DXQn9z7A.js.map diff --git a/apps/web/public/assets/talismanWallet-W5EQ26N7-COwK-IAC.js b/apps/web/public/assets/talismanWallet-W5EQ26N7-COwK-IAC.js deleted file mode 100644 index 9546035d..00000000 --- a/apps/web/public/assets/talismanWallet-W5EQ26N7-COwK-IAC.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},N=new M.Error().stack;N&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[N]="0a96e0fd-856e-484f-98ec-25bb6abe995a",M._sentryDebugIdIdentifier="sentry-dbid-0a96e0fd-856e-484f-98ec-25bb6abe995a")}catch{}})();var g="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0Q1RkY1QyIgZD0iTTAgMGgyOHYyOEgweiIvPjxwYXRoIGZpbGw9IiNGRDQ4NDgiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTIwLjE4NiAxNS4yNWMuMjA4LjQ1My44Mi42MTMgMS4xNy4yNjFsLjY0Ni0uNjQ1YTEuNzA4IDEuNzA4IDAgMCAxIDIuNDE1IDIuNDE0bC01LjIxNSA1LjIxNWE2LjgxNiA2LjgxNiAwIDAgMS01LjIyNSAyLjQzMkE2LjgxNyA2LjgxNyAwIDAgMSA4LjU5NCAyMi4zbC01LjAyLTUuMDJhMS43MDcgMS43MDcgMCAwIDEgMi40MTQtMi40MTVsLjYzNS42MzVjLjM0NC4zNDUuOTQyLjE5IDEuMTQ1LS4yNTNhLjY2My42NjMgMCAwIDAgLjA2Mi0uMjc3di03LjhhMS43MDcgMS43MDcgMCAwIDEgMy40MTUgMHYzLjk0NmMwIC4zNC4zNDguNTcuNjcxLjQ2OGEuNDk3LjQ5NyAwIDAgMCAuMzU0LS40NjdWNC43OGExLjcwNyAxLjcwNyAwIDEgMSAzLjQxNCAwdjYuMzM4YzAgLjIxNi4xNDguNDAyLjM1My40NjYuMzIzLjEwMy42NzEtLjEyOC42NzEtLjQ2N1Y3LjE3YTEuNzA3IDEuNzA3IDAgMCAxIDMuNDE1IDB2Ny43OTdjMCAuMDk4LjAyMi4xOTQuMDYzLjI4M1oiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiNENUZGNUMiIGQ9Ik0xOS40NCAxOC43OHMtMi40NDYgMy40MTUtNS40NjMgMy40MTUtNS40NjMtMy40MTUtNS40NjMtMy40MTUgMi40NDYtMy40MTQgNS40NjMtMy40MTQgNS40NjMgMy40MTUgNS40NjMgMy40MTVaIi8+PHBhdGggc3Ryb2tlPSIjRkQ0ODQ4IiBzdHJva2Utd2lkdGg9IjEuMDAzIiBkPSJNMTYuNTM3IDE4Ljc4YTIuNTYxIDIuNTYxIDAgMSAxLTUuMTIgMCAyLjU2IDIuNTYgMCAwIDEgNS4xMiAwWiIvPjxwYXRoIHN0cm9rZT0iI0ZENDg0OCIgc3Ryb2tlLXdpZHRoPSIxLjAwMyIgZD0iTTE1LjUxMyAxOC43OGExLjUzOCAxLjUzOCAwIDAgMS0yLjYzIDEuMTAyIDEuNTM3IDEuNTM3IDAgMCAxLS40NDItMS4xMDIgMS41MzYgMS41MzYgMCAwIDEgMy4wNzIgMFoiLz48cGF0aCBzdHJva2U9IiNGRDQ4NDgiIHN0cm9rZS13aWR0aD0iMS4wMDMiIGQ9Ik0xNy41NjIgMTguNzhhMy41ODUgMy41ODUgMCAxIDEtNy4xNyAwIDMuNTg1IDMuNTg1IDAgMCAxIDcuMTcgMFoiLz48cGF0aCBzdHJva2U9IiNGRDQ4NDgiIHN0cm9rZS13aWR0aD0iMS4wMDMiIGQ9Ik0xOC41ODYgMTguNzhhNC42MDkgNC42MDkgMCAxIDEtOS4yMTggMCA0LjYwOSA0LjYwOSAwIDAgMSA5LjIxOCAwWiIvPjxwYXRoIGZpbGw9IiNGRDQ4NDgiIHN0cm9rZT0iI0ZENDg0OCIgc3Ryb2tlLXdpZHRoPSIxLjAwMyIgZD0iTTE0LjQ4OSAxOC43OGEuNTEuNTEgMCAwIDEtLjUxMi41MjYuNTExLjUxMSAwIDEgMSAuNTEyLS41MjZaIi8+PHBhdGggc3Ryb2tlPSIjRDVGRjVDIiBzdHJva2Utd2lkdGg9IjEuMDAzIiBkPSJNOC43NiAxOC44MjJhNy43NyA3Ljc3IDAgMCAxLS4wMzItLjA0MWwuMDMyLS4wNDJjLjQ0LS41NTcuOTMtMS4wNzEgMS40NjYtMS41MzYuOTc4LS44NDUgMi4zMDUtMS42NjYgMy43NTEtMS42NjYgMS40NDcgMCAyLjc3My44MjEgMy43NTIgMS42NjYuNTM1LjQ2NSAxLjAyNi45OCAxLjQ2NiAxLjUzNmwuMDMyLjA0MWExMS4zMjggMTEuMzI4IDAgMCAxLTEuNDk4IDEuNTc4Yy0uOTc5Ljg0NS0yLjMwNSAxLjY2Ni0zLjc1MiAxLjY2Ni0xLjQ0NiAwLTIuNzczLS44MjEtMy43NS0xLjY2NmExMS4zMzMgMTEuMzMzIDAgMCAxLTEuNDY3LTEuNTM2WiIvPjwvc3ZnPg==";export{g as default}; -//# sourceMappingURL=talismanWallet-W5EQ26N7-COwK-IAC.js.map diff --git a/apps/web/public/assets/th_TH-UWDENI2F-isfr4Uax.js b/apps/web/public/assets/th_TH-UWDENI2F-isfr4Uax.js deleted file mode 100644 index 8f91f411..00000000 --- a/apps/web/public/assets/th_TH-UWDENI2F-isfr4Uax.js +++ /dev/null @@ -1,959 +0,0 @@ -(function(){try{var E=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u=new E.Error().stack;u&&(E._sentryDebugIds=E._sentryDebugIds||{},E._sentryDebugIds[u]="4f80f7ed-a56c-45a7-ae33-32cf96bf963a",E._sentryDebugIdIdentifier="sentry-dbid-4f80f7ed-a56c-45a7-ae33-32cf96bf963a")}catch{}})();var e=`{ - "connect_wallet": { - "label": "เชื่อมต่อกระเป๋าเงิน", - "wrong_network": { - "label": "เครือข่ายไม่ถูกต้อง" - } - }, - "intro": { - "title": "อะไรคือกระเป๋าเงิน?", - "description": "กระเป๋าเงินใช้ในการส่ง, รับ, เก็บ, และแสดงสินทรัพย์ดิจิทัล มันยังเป็นวิธีใหม่ในการเข้าสู่ระบบ, โดยไม่จำเป็นต้องสร้างบัญชีและรหัสผ่านใหม่ในทุกเว็บไซต์.", - "digital_asset": { - "title": "บ้านสำหรับสินทรัพย์ดิจิทัลของคุณ", - "description": "กระเป๋าเงินถูกใช้เพื่อส่ง, รับ, เก็บ, แสดงสินทรัพย์ดิจิทัล เช่น Ethereum และ NFTs." - }, - "login": { - "title": "วิธีใหม่ในการเข้าสู่ระบบ", - "description": "แทนที่จะสร้างบัญชีและรหัสผ่านใหม่ในทุกเว็บไซต์, แค่เชื่อมต่อกระเป๋าของคุณ." - }, - "get": { - "label": "รับกระเป๋าเงิน" - }, - "learn_more": { - "label": "เรียนรู้เพิ่มเติม" - } - }, - "sign_in": { - "label": "ยืนยันบัญชีของคุณ", - "description": "เพื่อการเชื่อมต่อที่สมบูรณ์, คุณต้องลงนามในข้อความในกระเป๋าเงินของคุณเพื่อยืนยันว่าคุณเป็นเจ้าของบัญชีนี้", - "message": { - "send": "ส่งข้อความ", - "preparing": "กำลังเตรียมข้อความ...", - "cancel": "ยกเลิก", - "preparing_error": "เกิดข้อผิดพลาดในการเตรียมข้อความ โปรดลองใหม่!" - }, - "signature": { - "waiting": "รอการลงนาม...", - "verifying": "กำลังตรวจสอบลายเซ็น...", - "signing_error": "เกิดข้อผิดพลาดในการลงนามในข้อความ โปรดลองใหม่!", - "verifying_error": "เกิดข้อผิดพลาดในการตรวจสอบลายเซ็น โปรดลองใหม่!", - "oops_error": "อ๊ะ, เกิดข้อผิดพลาดบางอย่าง!" - } - }, - "connect": { - "label": "เชื่อมต่อ", - "title": "เชื่อมต่อกระเป๋าเงิน", - "new_to_ethereum": { - "description": "ใหม่กับกระเป๋า Ethereum หรือไม่?", - "learn_more": { - "label": "เรียนรู้เพิ่มเติม" - } - }, - "learn_more": { - "label": "เรียนรู้เพิ่มเติม" - }, - "recent": "ล่าสุด", - "status": { - "opening": "กำลังเปิด %{wallet}...", - "connecting": "กำลังเชื่อมต่อ", - "connect_mobile": "ดำเนินการต่อใน %{wallet}", - "not_installed": "%{wallet} ไม่ได้ติดตั้ง", - "not_available": "%{wallet} ไม่สามารถใช้ได้", - "confirm": "ยืนยันการเชื่อมต่อในส่วนขยาย", - "confirm_mobile": "ยอมรับคำขอเชื่อมต่อในกระเป๋าเงิน" - }, - "secondary_action": { - "get": { - "description": "ไม่มี %{wallet}?", - "label": "รับ" - }, - "install": { - "label": "ติดตั้ง" - }, - "retry": { - "label": "ลองใหม่" - } - }, - "walletconnect": { - "description": { - "full": "ต้องการ modal อย่างเป็นทางการจาก WalletConnect หรือไม่?", - "compact": "ต้องการ modal จาก WalletConnect หรือไม่?" - }, - "open": { - "label": "เปิด" - } - } - }, - "connect_scan": { - "title": "สแกนด้วย %{wallet}", - "fallback_title": "สแกนด้วยโทรศัพท์ของคุณ" - }, - "connector_group": { - "recommended": "แนะนำ", - "other": "อื่น ๆ", - "popular": "ยอดนิยม", - "more": "เพิ่มเติม", - "others": "อื่น ๆ" - }, - "get": { - "title": "รับ Wallet", - "action": { - "label": "รับ" - }, - "mobile": { - "description": "Wallet บนมือถือ" - }, - "extension": { - "description": "ส่วนขยายบราวเซอร์" - }, - "mobile_and_extension": { - "description": "กระเป๋าเงินมือถือและส่วนขยาย" - }, - "mobile_and_desktop": { - "description": "กระเป๋าเงินบนมือถือและคอมพิวเตอร์" - }, - "looking_for": { - "title": "ไม่ใช่สิ่งที่คุณกำลังหาหรือไม่?", - "mobile": { - "description": "เลือกกระเป๋าเงินบนหน้าจอหลักเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน" - }, - "desktop": { - "compact_description": "เลือกกระเป๋าเงินบนหน้าจอหลักเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน", - "wide_description": "เลือกกระเป๋าเงินที่อยู่ทางซ้ายเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน" - } - } - }, - "get_options": { - "title": "เริ่มต้นกับ %{wallet}", - "short_title": "รับ %{wallet}", - "mobile": { - "title": "%{wallet} สำหรับมือถือ", - "description": "ใช้กระเป๋าระบบมือถือในการสำรวจโลกของ Ethereum.", - "download": { - "label": "รับแอป" - } - }, - "extension": { - "title": "%{wallet} สำหรับ %{browser}", - "description": "เข้าถึงกระเป๋าเงินของคุณได้โดยตรงจากบราวเซอร์ที่คุณชื่นชอบ.", - "download": { - "label": "เพิ่มไปยัง %{browser}" - } - }, - "desktop": { - "title": "%{wallet} สำหรับ %{platform}", - "description": "เข้าถึงกระเป๋าเงินของคุณโดยตรงจากคอมพิวเตอร์ที่มีประสิทธิภาพของคุณ", - "download": { - "label": "เพิ่มไปยัง %{platform}" - } - } - }, - "get_mobile": { - "title": "ติดตั้ง %{wallet}", - "description": "สแกนด้วยโทรศัพท์ของคุณเพื่อดาวน์โหลดบน iOS หรือ Android", - "continue": { - "label": "ดำเนินการต่อ" - } - }, - "get_instructions": { - "mobile": { - "connect": { - "label": "เชื่อมต่อ" - }, - "learn_more": { - "label": "เรียนรู้เพิ่มเติม" - } - }, - "extension": { - "refresh": { - "label": "รีเฟรช" - }, - "learn_more": { - "label": "เรียนรู้เพิ่มเติม" - } - }, - "desktop": { - "connect": { - "label": "เชื่อมต่อ" - }, - "learn_more": { - "label": "เรียนรู้เพิ่มเติม" - } - } - }, - "chains": { - "title": "เปลี่ยนเครือข่าย", - "wrong_network": "ตรวจสอบพบเครือข่ายที่ไม่ถูกต้อง สลับหรือตัดการเชื่อมต่อเพื่อดำเนินการต่อ.", - "confirm": "ยืนยันใน Wallet", - "switching_not_supported": "กระเป๋าสตางค์ของคุณไม่สนับสนุนการเปลี่ยนเครือข่ายจาก %{appName}ลองเปลี่ยนเครือข่ายจากภายในกระเป๋าสตางค์ของคุณแทน", - "switching_not_supported_fallback": "กระเป๋าสตางค์ของคุณไม่สนับสนุนการสลับเครือข่ายจากแอปนี้ ลองสลับเครือข่ายจากภายในกระเป๋าสตางค์ของคุณแทน", - "disconnect": "ตัดการเชื่อมต่อ", - "connected": "เชื่อมต่อแล้ว" - }, - "profile": { - "disconnect": { - "label": "ตัดการเชื่อมต่อ" - }, - "copy_address": { - "label": "คัดลอกที่อยู่", - "copied": "คัดลอกแล้ว!" - }, - "explorer": { - "label": "ดูเพิ่มเติมบน explorer" - }, - "transactions": { - "description": "%{appName} รายการจะปรากฎที่นี่...", - "description_fallback": "การทำธุรกรรมของคุณจะปรากฎที่นี่...", - "recent": { - "title": "ธุรกรรมล่าสุด" - }, - "clear": { - "label": "ลบทั้งหมด" - } - } - }, - "wallet_connectors": { - "argent": { - "qr_code": { - "step1": { - "description": "วาง Argent บนหน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น", - "title": "เปิดแอป Argent" - }, - "step2": { - "description": "สร้างกระเป๋าเงินและชื่อผู้ใช้หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว", - "title": "สร้างหรือนำเข้า Wallet" - }, - "step3": { - "description": "หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ", - "title": "แตะที่คุ่มุ่งสแกน QR" - } - } - }, - "bifrost": { - "qr_code": { - "step1": { - "description": "เราขอแนะนำให้คุณวาง Bifrost Wallet บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น", - "title": "เปิดแอพฯ Bifrost Wallet" - }, - "step2": { - "description": "สร้างหรือนำเข้ากระเป๋าเงินด้วย recovery phrase ของคุณ", - "title": "สร้างหรือนำเข้ากระเป๋าเงิน" - }, - "step3": { - "description": "หลังจากที่คุณสแกนแล้วยินยันการเชื่อมต่อกับกระเป๋าเงินของคุณ", - "title": "แตะปุ่มสแกน" - } - } - }, - "bitget": { - "qr_code": { - "step1": { - "description": "เราขอแนะนำให้วาง Bitget Wallet บนหน้าจอหน้าแรกของคุณเพื่อการเข้าถึงที่รวดเร็วขึ้น.", - "title": "เปิดแอพ Bitget Wallet" - }, - "step2": { - "description": "ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด.", - "title": "สร้างหรือนำเข้า Wallet" - }, - "step3": { - "description": "หลังจากที่คุณสแกน จะมีข้อความขอเชื่อมต่อที่จะปรากฏขึ้นให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ.", - "title": "แตะปุ่มสแกน" - } - }, - "extension": { - "step1": { - "description": "เราแนะนำให้คุณปัก Bitget Wallet ไว้บนแถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ได้เร็วขึ้น", - "title": "ติดตั้งส่วนเสริม Bitget Wallet" - }, - "step2": { - "description": "โปรดแน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับบุคคลใดๆ", - "title": "สร้างหรือนำเข้า Wallet" - }, - "step3": { - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม", - "title": "รีเฟรชเบราว์เซอร์ของคุณ" - } - } - }, - "bitski": { - "extension": { - "step1": { - "description": "เราแนะนำให้ทำปัก Bitski ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้โดยไม่ต้องรอ", - "title": "ติดตั้งส่วนขยาย Bitski" - }, - "step2": { - "description": "ควรสำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยคำลับของคุณให้ใครทราบ", - "title": "สร้างหรือนำเข้ากระเป๋าเงิน" - }, - "step3": { - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย", - "title": "รีเฟรชเบราว์เซอร์ของคุณ" - } - } - }, - "coin98": { - "qr_code": { - "step1": { - "description": "เราขอแนะนำให้คุณวาง Coin98 Wallet บนหน้าจอหลักของคุณ เพื่อให้เข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น.", - "title": "เปิดแอพ Coin98 Wallet" - }, - "step2": { - "description": "คุณสามารถสำรองข้อมูลกระเป๋าเงินของคุณได้ง่ายๆ ด้วยฟีเจอร์สำรองข้อมูลบนโทรศัพท์ของคุณ.", - "title": "สร้างหรือนำเข้ากระเป๋าเงิน" - }, - "step3": { - "description": "หลังจากคุณสแกน จะมีเตือนการเชื่อมต่อที่ปรากฏขึ้นให้คุณเชื่อมต่อกระเป๋าเงินของคุณ.", - "title": "แตะที่ปุ่ม WalletConnect" - } - }, - "extension": { - "step1": { - "description": "คลิกที่ด้านบนขวาของเบราว์เซอร์ของคุณและปัก Coin98 Wallet ไว้เพื่อให้เข้าถึงได้ง่าย.", - "title": "ติดตั้งส่วนขยาย Coin98 Wallet" - }, - "step2": { - "description": "สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว.", - "title": "สร้างหรือนำเข้ากระเป๋าเงิน" - }, - "step3": { - "description": "เมื่อคุณตั้งค่า Coin98 Wallet แล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยายขึ้นมา.", - "title": "รีเฟรชเบราว์เซอร์ของคุณ" - } - } - }, - "coinbase": { - "qr_code": { - "step1": { - "description": "เราแนะนำให้วาง Coinbase Wallet ไว้ที่หน้าจอหลักของคุณเพื่อให้เข้าถึงได้เร็วขึ้น.", - "title": "เปิดแอป Coinbase Wallet" - }, - "step2": { - "description": "คุณสามารถสำรองข้อมูลกระเป๋าสตางค์ของคุณได้ง่ายๆ โดยใช้ฟีเจอร์การสำรองข้อมูลด้วยคลาวด์", - "title": "สร้างหรือนำเข้ากระเป๋าสตางค์" - }, - "step3": { - "description": "หลังจากที่คุณสแกนแล้ว จะมีการแสดงขอ้มูลเพื่อให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ", - "title": "แตะที่ปุ่มสแกน" - } - }, - "extension": { - "step1": { - "description": "เราแนะนำให้คุณยัด Coinbase Wallet ไว้ที่แถบงานของคุณเพื่อให้สามารถเข้าถึงกระเป๋าสตางค์ของคุณได้เร็วขึ้น", - "title": "ติดตั้งส่วนขยาย Coinbase Wallet" - }, - "step2": { - "description": "ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้กับใครเลย", - "title": "สร้างหรือนำเข้ากระเป๋าเงิน" - }, - "step3": { - "description": "เมื่อคุณได้ตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อเรียกดูเบราว์เซอร์ใหม่และโหลดส่วนขยาย", - "title": "รีเฟรชเบราว์เซอร์ของคุณ" - } - } - }, - "core": { - "qr_code": { - "step1": { - "description": "เราแนะนำให้คุณวาง Core ลงสนามหลักเพื่อให้เข้าถึงกระเป๋าเงินได้เร็วขึ้น", - "title": "เปิดแอปเครื่องมือช่วยอีเกิร์น" - }, - "step2": { - "description": "คุณสามารถสำรองกระเป๋าเงินของคุณได้ง่ายๆ โดยใช้ฟีเจอร์สำรองของเราบนโทรศัพท์ของคุณ", - "title": "สร้างหรือนำเข้ากระเป๋าเงิน" - }, - "step3": { - "description": "หลังจากที่คุณสแกนแล้ว จะมีการแจ้งเตือนเพื่อให้คุณเชื่อมต่อกับกระเป๋าสตางค์ของคุณ", - "title": "แตะปุ่ม WalletConnect" - } - }, - "extension": { - "step1": { - "description": "เราขอแนะนำให้คุณปัก Core ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้อย่างรวดเร็ว", - "title": "ติดตั้งส่วนขยาย Core" - }, - "step2": { - "description": "โปรดแน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร", - "title": "สร้างหรือนำเข้า Wallet" - }, - "step3": { - "description": "เมื่อคุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย", - "title": "รีเฟรชเบราว์เซอร์ของคุณ" - } - } - }, - "fox": { - "qr_code": { - "step1": { - "description": "เราขอแนะนำให้คุณวาง FoxWallet บนหน้าจอหลักเพื่อให้เข้าถึงได้เร็วขึ้น", - "title": "เปิดแอป FoxWallet" - }, - "step2": { - "description": "ตรวจสอบที่จะสำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย จงอย่าเปิดเผยประโยคลับลับของคุณให้ผู้อื่นรู้", - "title": "สร้างหรือนำเข้ากระเป๋าเงิน" - }, - "step3": { - "description": "หลังจากที่คุณสแกน จะมีการเชื่อมต่อที่แสดงให้คุณเชื่อมต่อกระเป๋าเงินของคุณ", - "title": "แตะปุ่มสแกน" - } - } - }, - "frontier": { - "qr_code": { - "step1": { - "description": "เราขอแนะนำให้คุณวาง Frontier Wallet บนหน้าจอหลักเพื่อให้เข้าถึงได้เร็วขึ้น", - "title": "เปิดแอป Frontier Wallet" - }, - "step2": { - "description": "ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร", - "title": "สร้างหรือนำเข้ากระเป๋าสตางค์" - }, - "step3": { - "description": "หลังจากที่คุณสแกนแล้ว จะมีการแสดงข้อมูลเพื่อให้คุณเชื่อมต่อกับกระเป๋าสตางค์ของคุณ", - "title": "แตะปุ่มสแกน" - } - }, - "extension": { - "step1": { - "description": "เราแนะนำให้คุณปักหมุด Frontier Wallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้ง่ายขึ้น", - "title": "ติดตั้งส่วนเสริม Frontier Wallet" - }, - "step2": { - "description": "ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร", - "title": "สร้างหรือนำเข้ากระเป๋าสตางค์" - }, - "step3": { - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย", - "title": "รีเฟรชเบราว์เซอร์ของคุณ" - } - } - }, - "im_token": { - "qr_code": { - "step1": { - "title": "เปิดแอพ imToken", - "description": "ใส่แอพ imToken ไว้ที่หน้าจอหลักเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น." - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าเงิน", - "description": "สร้างกระเป๋าเงินใหม่หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว" - }, - "step3": { - "title": "แตะไอคอนสแกนเนอร์ในมุมบนขวา", - "description": "เลือก New Connection, แล้วสแกน QR code และยืนยันการรับรองสำหรับการเชื่อมต่อ" - } - } - }, - "metamask": { - "qr_code": { - "step1": { - "title": "เปิดแอป MetaMask", - "description": "เราขอแนะนำให้วาง MetaMask บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้า Wallet", - "description": "ตรวจสอบว่าได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับใคร" - }, - "step3": { - "title": "แตะที่ปุ่มสแกน", - "description": "หลังจากการสแกน, จะปรากฏข้อความเชื่อมต่อสำหรับคุณเพื่อเชื่อมต่อกับกระเป๋าเงินของคุณ" - } - }, - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย MetaMask", - "description": "เราขอแนะนำให้คุณปัก MetaMask ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้รวดเร็ว" - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าเงิน", - "description": "อย่างแน่นอนให้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ประโยคลับของคุณกับใครเลย" - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย" - } - } - }, - "okx": { - "qr_code": { - "step1": { - "title": "เปิดแอพ OKX Wallet", - "description": "เราแนะนำให้วาง OKX Wallet บนหน้าจอหลักของคุณเพื่อให้เข้าถึงได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้า Wallet", - "description": "จงแน่ใจว่าคุณได้สำรองข้อมูล wallet ของคุณด้วยวิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณให้คนอื่น" - }, - "step3": { - "title": "แตะปุ่มสแกน", - "description": "หลังจากคุณสแกน จะมีการแสดงข้อมูลเพื่อให้คุณเชื่อมต่อ wallet ของคุณ" - } - }, - "extension": { - "step1": { - "title": "ติดตั้งส่วนเสริม OKX Wallet", - "description": "เราแนะนำให้ยึด OKX Wallet ไว้ที่แถบงานของคุณเพื่อให้เข้าถึง wallet ของคุณได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้า Wallet", - "description": "โปรดแน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณด้วยวิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้ใครทราบ" - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย" - } - } - }, - "omni": { - "qr_code": { - "step1": { - "title": "เปิดแอป Omni", - "description": "เพิ่ม Omni ไปยังหน้าจอแรกเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้รวดเร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าสตางค์", - "description": "สร้างกระเป๋าสตางค์ใหม่หรือนำเข้ากระเป๋าสตางค์ที่มีอยู่" - }, - "step3": { - "title": "แตะที่ไอคอน QR แล้วสแกน", - "description": "แตะที่ไอคอน QR บนหน้าจอหน้าแรกของคุณ, สแกนรหัสและยืนยันการเตือนเพื่อเชื่อมต่อ." - } - } - }, - "token_pocket": { - "qr_code": { - "step1": { - "title": "เปิดแอป TokenPocket", - "description": "เราแนะนำให้วาง TokenPocket บนหน้าจอหน้าแรกของคุณเพื่อเข้าถึงได้เร็วขึ้น." - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าเงิน", - "description": "ตรวจสอบว่าได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้ผู้อื่นทราบในทางใดทางหนึ่ง." - }, - "step3": { - "title": "แตะปุ่มสแกน", - "description": "หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ" - } - }, - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย TokenPocket", - "description": "เราขอแนะนำให้คุณปัก TokenPocket ไว้ที่แถบงานเพื่อทำให้สามารถเข้าถึงกระเป๋าเงินของคุณได้ง่ายขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าเงิน", - "description": "ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณด้วยวิธีที่ปลอดภัย อย่าทำการแชร์ประโยคลับด้วยความลับของคุณกับใคร" - }, - "step3": { - "title": "รีเฟรชบราวเซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชบราวเซอร์และโหลดส่วนขยาย" - } - } - }, - "trust": { - "qr_code": { - "step1": { - "title": "เปิดแอพ Trust Wallet", - "description": "วาง Trust Wallet ที่หน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้รวดเร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้า Wallet", - "description": "สร้าง wallet ใหม่หรือนำเข้า wallet ที่มีอยู่แล้ว" - }, - "step3": { - "title": "แตะ WalletConnect ในการตั้งค่า", - "description": "เลือก New Connection จากนั้นสแกน QR code และยืนยันการแจ้งเตือนเพื่อเชื่อมต่อ" - } - }, - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย Trust Wallet", - "description": "คลิกที่มุมบนขวาของเบราว์เซอร์ของคุณและปัก Trust Wallet เพื่อเข้าถึงได้ง่าย" - }, - "step2": { - "title": "สร้างหรือนำเข้า wallet", - "description": "สร้าง wallet ใหม่หรือนำเข้า wallet ที่มีอยู่แล้ว" - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่า Trust Wallet แล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยายขึ้นมา" - } - } - }, - "uniswap": { - "qr_code": { - "step1": { - "title": "เปิดแอป Uniswap", - "description": "เพิ่ม Uniswap Wallet ไปยังหน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้า Wallet", - "description": "สร้างกระเป๋าเงินใหม่หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว" - }, - "step3": { - "title": "แตะที่ไอคอน QR และสแกน", - "description": "แตะที่ไอคอน QR บนหน้าจอหลักของคุณ สแกนรหัสและยืนยันการเชื่อมต่อ" - } - } - }, - "zerion": { - "qr_code": { - "step1": { - "title": "เปิดแอป Zerion", - "description": "เราแนะนำให้คุณวาง Zerion บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้า Wallet", - "description": "ลองทำสำเนาข้อมูล wallet ของคุณไว้ในช่องทางที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับผู้อื่น" - }, - "step3": { - "title": "แตะที่ปุ่มสแกน", - "description": "หลังจากสแกน จะมีหน้าต่างแสดงคำสั่งเชื่อมต่อให้คุณเชื่อมต่อ wallet ของคุณ" - } - }, - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย Zerion", - "description": "เราแนะนำให้คุณติด Zerion บนแถบงานของคุณเพื่อเข้าถึง wallet ของคุณได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าเงิน", - "description": "ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยวิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับลับของคุณให้ใครทราบครับ" - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย" - } - } - }, - "rainbow": { - "qr_code": { - "step1": { - "title": "เปิดแอป Rainbow", - "description": "เราขอแนะนำให้คุณวาง Rainbow อยู่บนหน้าจอหลักของคุณเพื่อรับผิดชอบจากกระเป๋าสตางค์ของคุณอย่างรวดเร็ว" - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าสตางค์", - "description": "คุณสามารถสำรองข้อมูลกระเป๋าสตางค์ของคุณได้ง่ายๆ ด้วยฟีเจอร์สำรองข้อมูลบนโทรศัพท์ของคุณ" - }, - "step3": { - "title": "แตะปุ่มสแกน", - "description": "หลังจากสแกนแล้ว จะแสดงข้อความขอเชื่อมต่อเพื่อให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ" - } - } - }, - "enkrypt": { - "extension": { - "step1": { - "description": "เราขอแนะนำให้คุณปัก Enkrypt Wallet ไว้ที่แทบงานของคุณเพื่อให้สามารถเข้าถึงกระเป๋าสตางค์ของคุณได้เร็วขึ้น", - "title": "ติดตั้งส่วนขยาย Enkrypt Wallet" - }, - "step2": { - "description": "ตรวจสอบให้แน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย ห้ามแชร์วลีลับของคุณให้กับใคร", - "title": "สร้างหรือนำเข้า Wallet" - }, - "step3": { - "description": "เมื่อคุณตั้งค่า wallet ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรช browser และโหลดขึ้น extension", - "title": "รีเฟรช browser ของคุณ" - } - } - }, - "frame": { - "extension": { - "step1": { - "description": "เราแนะนำให้หมุน Frame ไว้บน taskbar ของคุณเพื่อให้เข้าถึง wallet ได้เร็วขึ้น", - "title": "ติดตั้ง Frame และ extension ที่เป็นคู่" - }, - "step2": { - "description": "ตรวจสอบว่าได้สำรอง wallet ของคุณโดยใช้วิธีการที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับใคร", - "title": "สร้างหรือนำเข้า Wallet" - }, - "step3": { - "description": "เมื่อคุณตั้งค่า wallet ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรช browser และโหลดขึ้น extension", - "title": "รีเฟรช browser ของคุณ" - } - } - }, - "one_key": { - "extension": { - "step1": { - "title": "ติดตั้งส่วนเสริม OneKey Wallet", - "description": "เราแนะนำการปัก OneKey Wallet ไว้บนแทบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้ง่ายขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าเงิน", - "description": "อย่าลืมสำรองกระเป๋าเงินของคุณด้วยวิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร" - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม" - } - } - }, - "phantom": { - "extension": { - "step1": { - "title": "ติดตั้งส่วนเสริม Phantom", - "description": "เราแนะนำการปัก Phantom ไว้บนแทบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้ง่ายขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าเงิน", - "description": "แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยข้อความลับสำหรับการกู้คืนของคุณกับบุคคลใด ๆ" - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินเรียบร้อยแล้ว, คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย" - } - } - }, - "rabby": { - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย Rabby", - "description": "เราแนะนำให้คุณปัก Rabby ไว้ที่แถบงานเพื่อให้เข้าถึงกระเป๋าเงินของคุณได้รวดเร็วขึ้น." - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าเงิน", - "description": "แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ข้อความลับของคุณกับบุคคลอื่น" - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย" - } - } - }, - "safeheron": { - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย Core", - "description": "เราขอแนะนำให้คุณปัก Safeheron ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าเงิน", - "description": "อย่าลืมสำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้ผู้อื่นทราบ" - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย" - } - } - }, - "taho": { - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย Taho", - "description": "เราแนะนำให้คุณปัก Taho ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าเงิน", - "description": "โปรดแน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ประโยคลับคุณกับผู้อื่น" - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย" - } - } - }, - "talisman": { - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย Talisman", - "description": "เราแนะนำให้คุณปัก Talisman ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าเงิน Ethereum", - "description": "ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีการกู้คืนของคุณให้ใครทราบเด็ดขาด" - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย" - } - } - }, - "xdefi": { - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย XDEFI Wallet", - "description": "เราแนะนำให้คุณตรา XDEFI Wallet ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าเงิน", - "description": "ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้ใครทราบเด็ดขาด" - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "หลังจากที่คุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชบราวเซอร์และโหลดส่วนเสริม." - } - } - }, - "zeal": { - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย Zeal", - "description": "เราแนะนำให้ปัก Zeal ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้า Wallet", - "description": "ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด." - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม" - } - } - }, - "safepal": { - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย SafePal Wallet", - "description": "คลิกที่มุมบนขวาของเบราว์เซอร์ของคุณและปักมุม SafePal Wallet เพื่อที่จะเข้าถึงได้ง่าย" - }, - "step2": { - "title": "สร้างหรือนำเข้ากระเป๋าเงิน", - "description": "สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว." - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "หลังจากคุณตั้งค่า SafePal Wallet เรียบร้อยแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย" - } - }, - "qr_code": { - "step1": { - "title": "เปิดแอป SafePal Wallet", - "description": "วาง SafePal Wallet ที่หน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้า Wallet", - "description": "สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว." - }, - "step3": { - "title": "แตะ WalletConnect ในการตั้งค่า", - "description": "เลือก New Connection, แล้วสแกน QR code และยืนยันการรับรองสำหรับการเชื่อมต่อ" - } - } - }, - "desig": { - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย Desig", - "description": "เราขอแนะนำให้คุณตรึง Desig ไว้ที่แถบงานของคุณเพื่อให้เข้าถึงกระเป๋าเงินของคุณได้ง่ายขึ้น" - }, - "step2": { - "title": "สร้างกระเป๋าเงิน", - "description": "ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด." - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม" - } - } - }, - "subwallet": { - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย SubWallet", - "description": "เราขอแนะนำให้คุณตรึง SubWallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้า Wallet", - "description": "ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีการกู้คืนของคุณให้ใครทราบเด็ดขาด" - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม" - } - }, - "qr_code": { - "step1": { - "title": "เปิดแอพ SubWallet", - "description": "เราขอแนะนำให้วาง SubWallet ไว้ที่หน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้า Wallet", - "description": "ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด." - }, - "step3": { - "title": "แตะปุ่มสแกน", - "description": "หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ" - } - } - }, - "clv": { - "extension": { - "step1": { - "title": "ติดตั้งส่วนขยาย CLV Wallet", - "description": "เราขอแนะนำให้คุณตรึง CLV Wallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้า Wallet", - "description": "ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด." - }, - "step3": { - "title": "รีเฟรชเบราว์เซอร์ของคุณ", - "description": "เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม" - } - }, - "qr_code": { - "step1": { - "title": "เปิดแอพ CLV Wallet", - "description": "เราแนะนำให้คุณวาง CLV Wallet บนหน้าจอหลักเพื่อให้สามารถเข้าถึงได้เร็วขึ้น" - }, - "step2": { - "title": "สร้างหรือนำเข้า Wallet", - "description": "ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด." - }, - "step3": { - "title": "แตะปุ่มสแกน", - "description": "หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ" - } - } - }, - "okto": { - "qr_code": { - "step1": { - "title": "เปิดแอพ Okto", - "description": "เพิ่ม Okto ไปยังหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็ว" - }, - "step2": { - "title": "สร้างกระเป๋าเงิน MPC", - "description": "สร้างบัญชีและสร้างกระเป๋าเงิน" - }, - "step3": { - "title": "แตะ WalletConnect ในการตั้งค่า", - "description": "แตะที่ไอคอน Scan QR ที่บริเวณมุมบนขวาและยืนยันข้อความเพื่อเชื่อมต่อ." - } - } - }, - "ledger": { - "desktop": { - "step1": { - "title": "เปิดแอป Ledger Live", - "description": "เราแนะนำให้คุณวาง Ledger Live บนหน้าจอหลักเพื่อให้สามารถเข้าถึงได้เร็วขึ้น" - }, - "step2": { - "title": "ตั้งค่า Ledger ของคุณ", - "description": "ตั้งค่า Ledger ใหม่หรือเชื่อมต่อกับ Ledger ที่มีอยู่แล้ว" - }, - "step3": { - "title": "เชื่อมต่อ", - "description": "หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ" - } - }, - "qr_code": { - "step1": { - "title": "เปิดแอป Ledger Live", - "description": "เราแนะนำให้วาง Ledger Live บนหน้าจอหลักของคุณเพื่อการเข้าถึงที่รวดเร็วขึ้น" - }, - "step2": { - "title": "ตั้งค่า Ledger ของคุณ", - "description": "คุณสามารถซิงค์กับแอพพลิเคชันบนเดสก์ท็อปหรือเชื่อมต่อ Ledger ของคุณ" - }, - "step3": { - "title": "สแกนรหัส", - "description": "แตะ WalletConnect แล้วเปลี่ยนไปที่ Scanner. หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ" - } - } - } - } -} -`;export{e as default}; -//# sourceMappingURL=th_TH-UWDENI2F-isfr4Uax.js.map diff --git a/apps/web/public/assets/tr_TR-NAI3OICG-BccpdJoF.js b/apps/web/public/assets/tr_TR-NAI3OICG-BccpdJoF.js deleted file mode 100644 index 847f3547..00000000 --- a/apps/web/public/assets/tr_TR-NAI3OICG-BccpdJoF.js +++ /dev/null @@ -1,959 +0,0 @@ -(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u=new e.Error().stack;u&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[u]="7ad7acf3-ea1a-49be-90f2-d2cfef1368fe",e._sentryDebugIdIdentifier="sentry-dbid-7ad7acf3-ea1a-49be-90f2-d2cfef1368fe")}catch{}})();var n=`{ - "connect_wallet": { - "label": "Cüzdanı Bağla", - "wrong_network": { - "label": "Yanlış ağ" - } - }, - "intro": { - "title": "Cüzdan nedir?", - "description": "Bir cüzdan, dijital varlıkları göndermek, almak, saklamak ve görüntülemek için kullanılır. Aynı zamanda her web sitesinde yeni hesaplar ve şifreler oluşturmanıza gerek kalmadan oturum açmanın yeni bir yoludur.", - "digital_asset": { - "title": "Dijital Varlıklarınız İçin Bir Ev", - "description": "Cüzdanlar, Ethereum ve NFT'ler gibi dijital varlıkları göndermek, almak, depolamak ve görüntülemek için kullanılır." - }, - "login": { - "title": "Yeni Bir Giriş Yolu", - "description": "Her web sitesinde yeni hesap ve parolalar oluşturmak yerine, sadece cüzdanınızı bağlayın." - }, - "get": { - "label": "Bir Cüzdan Edinin" - }, - "learn_more": { - "label": "Daha fazla bilgi edinin" - } - }, - "sign_in": { - "label": "Hesabınızı doğrulayın", - "description": "Bağlantıyı tamamlamak için, bu hesabın sahibi olduğunuzu doğrulamak için cüzdanınızdaki bir mesaja imza atmalısınız.", - "message": { - "send": "Mesajı gönder", - "preparing": "Mesaj hazırlanıyor...", - "cancel": "İptal", - "preparing_error": "Mesajı hazırlarken hata oluştu, lütfen tekrar deneyin!" - }, - "signature": { - "waiting": "İmza bekleniyor...", - "verifying": "İmza doğrulanıyor...", - "signing_error": "Mesajı imzalarken hata oluştu, lütfen tekrar deneyin!", - "verifying_error": "İmza doğrulanırken hata oluştu, lütfen tekrar deneyin!", - "oops_error": "Hata, bir şeyler yanlış gitti!" - } - }, - "connect": { - "label": "Bağlan", - "title": "Bir Cüzdanı Bağla", - "new_to_ethereum": { - "description": "Ethereum cüzdanlarına yeni misiniz?", - "learn_more": { - "label": "Daha fazla bilgi edinin" - } - }, - "learn_more": { - "label": "Daha fazla bilgi edinin" - }, - "recent": "Son", - "status": { - "opening": "%{wallet}açılıyor...", - "connecting": "Bağlanıyor", - "connect_mobile": "%{wallet}'da devam edin", - "not_installed": "%{wallet} yüklü değil", - "not_available": "%{wallet} kullanılabilir değil", - "confirm": "Bağlantıyı eklentide onaylayın", - "confirm_mobile": "Cüzdanında bağlantı isteğini kabul et" - }, - "secondary_action": { - "get": { - "description": "%{wallet}yok mu?", - "label": "AL" - }, - "install": { - "label": "YÜKLE" - }, - "retry": { - "label": "YENİDEN DENE" - } - }, - "walletconnect": { - "description": { - "full": "Resmi WalletConnect modalına mı ihtiyacınız var?", - "compact": "WalletConnect modalına mı ihtiyacınız var?" - }, - "open": { - "label": "AÇ" - } - } - }, - "connect_scan": { - "title": "%{wallet}ile tarama yapın", - "fallback_title": "Telefonunuzla tarama yapın" - }, - "connector_group": { - "recommended": "Tavsiye Edilen", - "other": "Diğer", - "popular": "Popüler", - "more": "Daha Fazla", - "others": "Diğerleri" - }, - "get": { - "title": "Bir Cüzdan Edinin", - "action": { - "label": "AL" - }, - "mobile": { - "description": "Mobil Cüzdan" - }, - "extension": { - "description": "Tarayıcı Eklentisi" - }, - "mobile_and_extension": { - "description": "Mobil Cüzdan ve Eklenti" - }, - "mobile_and_desktop": { - "description": "Mobil ve Masaüstü Cüzdan" - }, - "looking_for": { - "title": "Aradığınız şey bu değil mi?", - "mobile": { - "description": "Ana ekranda başka bir cüzdan sağlayıcısıyla başlamak için bir cüzdan seçin." - }, - "desktop": { - "compact_description": "Ana ekranda başka bir cüzdan sağlayıcısıyla başlamak için bir cüzdan seçin.", - "wide_description": "Başka bir cüzdan sağlayıcısıyla başlamak için sol tarafta bir cüzdan seçin." - } - } - }, - "get_options": { - "title": "%{wallet}ile başlayın", - "short_title": "%{wallet}Edinin", - "mobile": { - "title": "%{wallet} Mobil İçin", - "description": "Mobil cüzdanı kullanarak Ethereum dünyasını keşfedin.", - "download": { - "label": "Uygulamayı alın" - } - }, - "extension": { - "title": "%{wallet} için %{browser}", - "description": "Cüzdanınıza favori web tarayıcınızdan doğrudan erişin.", - "download": { - "label": "%{browser}'e ekle" - } - }, - "desktop": { - "title": "%{wallet} için %{platform}", - "description": "Güçlü masaüstünüzden cüzdanınıza yerel olarak erişin.", - "download": { - "label": "%{platform}ekleyin" - } - } - }, - "get_mobile": { - "title": "%{wallet}'i yükleyin", - "description": "iOS veya Android'de indirmek için telefonunuzla tarayın", - "continue": { - "label": "Devam et" - } - }, - "get_instructions": { - "mobile": { - "connect": { - "label": "Bağlan" - }, - "learn_more": { - "label": "Daha fazla bilgi edinin" - } - }, - "extension": { - "refresh": { - "label": "Yenile" - }, - "learn_more": { - "label": "Daha fazla bilgi edinin" - } - }, - "desktop": { - "connect": { - "label": "Bağlan" - }, - "learn_more": { - "label": "Daha fazla bilgi edinin" - } - } - }, - "chains": { - "title": "Ağları Değiştir", - "wrong_network": "Yanlış ağ algılandı, devam etmek için bağlantıyı kesin veya değiştirin.", - "confirm": "Cüzdanında Onayla", - "switching_not_supported": "Cüzdanınız %{appName}. ağları değiştirmeyi desteklemiyor. Bunun yerine cüzdanınızdan ağları değiştirmeyi deneyin.", - "switching_not_supported_fallback": "Cüzdanınız bu uygulamadan ağları değiştirmeyi desteklemiyor. Bunun yerine cüzdanınızdaki ağları değiştirmeyi deneyin.", - "disconnect": "Bağlantıyı Kes", - "connected": "Bağlı" - }, - "profile": { - "disconnect": { - "label": "Bağlantıyı Kes" - }, - "copy_address": { - "label": "Adresi Kopyala", - "copied": "Kopyalandı!" - }, - "explorer": { - "label": "Explorer üzerinde daha fazlasını görün" - }, - "transactions": { - "description": "%{appName} işlem burada görünecek...", - "description_fallback": "İşlemleriniz burada görünecek...", - "recent": { - "title": "Son İşlemler" - }, - "clear": { - "label": "Hepsini Temizle" - } - } - }, - "wallet_connectors": { - "argent": { - "qr_code": { - "step1": { - "description": "Cüzdanınıza daha hızlı erişim için Argent'i ana ekranınıza koyun.", - "title": "Argent uygulamasını açın" - }, - "step2": { - "description": "Bir cüzdan ve kullanıcı adı oluşturun veya mevcut bir cüzdanı içe aktarın.", - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar" - }, - "step3": { - "description": "Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.", - "title": "QR tarayıcı düğmesine dokunun" - } - } - }, - "bifrost": { - "qr_code": { - "step1": { - "description": "Daha hızlı erişim için Bifrost Cüzdan'ı ana ekranınıza koymanızı öneririz.", - "title": "Bifrost Cüzdan uygulamasını açın" - }, - "step2": { - "description": "Kurtarma ifadenizle bir cüzdan oluşturun veya içe aktarın.", - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar" - }, - "step3": { - "description": "Tarama işlemi sonrasında, cüzdanınızı bağlamak için bir bağlantı istemi gözükecektir.", - "title": "Tarayıcı düğmesine dokunun" - } - } - }, - "bitget": { - "qr_code": { - "step1": { - "description": "Daha hızlı erişim için Bitget Cüzdanınızı ana ekranınıza koymanızı öneririz.", - "title": "Bitget Cüzdan uygulamasını açın" - }, - "step2": { - "description": "Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.", - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar" - }, - "step3": { - "description": "Tarama yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.", - "title": "Tarama düğmesine dokunun" - } - }, - "extension": { - "step1": { - "description": "Cüzdanınıza daha hızlı erişim için Bitget Cüzdanını görev çubuğunuza sabitlemenizi öneririz.", - "title": "Bitget Cüzdan eklentisini yükleyin" - }, - "step2": { - "description": "Cüzdanınızı güvenli bir yöntemle yedeklemekten emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.", - "title": "Bir Cüzdan Oluşturun veya İçe Aktarın" - }, - "step3": { - "description": "Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin.", - "title": "Tarayıcınızı yenileyin" - } - } - }, - "bitski": { - "extension": { - "step1": { - "description": "Cüzdanınıza daha hızlı erişim için Bitski'yi görev çubuğunuza sabitlemenizi öneririz.", - "title": "Bitski eklentisini yükleyin" - }, - "step2": { - "description": "Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi kimseyle paylaşmayın.", - "title": "Bir Cüzdan Oluşturun veya İçe Aktarın" - }, - "step3": { - "description": "Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.", - "title": "Tarayıcınızı yenileyin" - } - } - }, - "coin98": { - "qr_code": { - "step1": { - "description": "Cüzdanınıza daha hızlı erişim için Coin98 Cüzdanınızı ana ekranınıza koymanızı öneririz.", - "title": "Coin98 Cüzdan uygulamasını açın" - }, - "step2": { - "description": "Telefonunuzdaki yedekleme özelliğimizi kullanarak cüzdanınızı kolayca yedekleyebilirsiniz.", - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar" - }, - "step3": { - "description": "Tarama işlemi yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.", - "title": "CüzdanBağlantısı düğmesine dokunun" - } - }, - "extension": { - "step1": { - "description": "Tarayıcınızın sağ üst köşesinde tıklayın ve Coin98 Cüzdanınızı kolay erişim için sabitleyin.", - "title": "Coin98 Cüzdan eklentisini yükleyin" - }, - "step2": { - "description": "Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın.", - "title": "Bir cüzdan oluşturun veya içe aktarın" - }, - "step3": { - "description": "Coin98 Cüzdan'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.", - "title": "Tarayıcınızı yenileyin" - } - } - }, - "coinbase": { - "qr_code": { - "step1": { - "description": "Coinbase Cüzdan'ı ana ekranınıza koymanızı öneririz, böylece daha hızlı erişim sağlanır.", - "title": "Coinbase Wallet uygulamasını açın" - }, - "step2": { - "description": "Cüzdanınızı bulut yedekleme özelliğini kullanarak kolayca yedekleyebilirsiniz.", - "title": "Bir Cüzdan Oluşturun veya İçe Aktarın" - }, - "step3": { - "description": "Tarama yaptıktan sonra, cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir.", - "title": "Tarama düğmesine dokunun" - } - }, - "extension": { - "step1": { - "description": "Cüzdanınıza daha hızlı erişim için Coinbase Wallet'ı görev çubuğunuza sabitlemenizi öneririz.", - "title": "Coinbase Wallet uzantısını yükleyin" - }, - "step2": { - "description": "Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın.", - "title": "Cüzdan Oluştur veya İçe Aktar" - }, - "step3": { - "description": "Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.", - "title": "Tarayıcınızı yenileyin" - } - } - }, - "core": { - "qr_code": { - "step1": { - "description": "Cüzdanınıza daha hızlı erişim için Core'u ana ekranınıza koymanızı öneririz.", - "title": "Core uygulamasını açın" - }, - "step2": { - "description": "Cüzdanınızın yedeğini telefonunuzda bulunan yedekleme özelliğimizi kullanarak kolayca alabilirsiniz.", - "title": "Cüzdan Oluştur veya İçe Aktar" - }, - "step3": { - "description": "Tarama yaptıktan sonra, cüzdanınızı bağlamak üzere bir bağlantı istemi görünecektir.", - "title": "WalletConnect düğmesine dokunun" - } - }, - "extension": { - "step1": { - "description": "Cüzdanınıza daha hızlı erişim için Core'u görev çubuğunuza sabitlemenizi öneririz.", - "title": "Core eklentisini yükleyin" - }, - "step2": { - "description": "Cüzdanınızı güvenli bir yöntemle yedeklemeye dikkat edin. Gizli ifadenizi asla kimseyle paylaşmayın.", - "title": "Bir Cüzdan Oluşturun veya İçe Aktarın" - }, - "step3": { - "description": "Cüzdanınızı kurduktan sonra, aşağıya tıklayarak tarayıcıyı yenileyin ve eklentiyi yükleyin.", - "title": "Tarayıcınızı yenileyin" - } - } - }, - "fox": { - "qr_code": { - "step1": { - "description": "Daha hızlı erişim için FoxWallet'ı ana ekranınıza koymanızı öneririz.", - "title": "FoxWallet uygulamasını açın" - }, - "step2": { - "description": "Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.", - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar" - }, - "step3": { - "description": "Tarama yaptıktan sonra cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir.", - "title": "Tarama düğmesine dokunun" - } - } - }, - "frontier": { - "qr_code": { - "step1": { - "description": "Daha hızlı erişim için Frontier Cüzdanını ana ekranınıza koymanızı öneririz.", - "title": "Frontier Cüzdan uygulamasını açın" - }, - "step2": { - "description": "Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.", - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar" - }, - "step3": { - "description": "Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.", - "title": "Tarama düğmesine dokunun" - } - }, - "extension": { - "step1": { - "description": "Cüzdanınıza daha hızlı erişim için Frontier Cüzdanını görev çubuğunuza sabitlemenizi öneririz.", - "title": "Frontier Cüzdan eklentisini yükleyin" - }, - "step2": { - "description": "Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.", - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar" - }, - "step3": { - "description": "Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemeye ve eklentiyi yüklemeye başlamak için aşağıya tıklayın.", - "title": "Tarayıcınızı Yenileyin" - } - } - }, - "im_token": { - "qr_code": { - "step1": { - "title": "imToken uygulamasını açın", - "description": "Cüzdanınıza daha hızlı erişim için imToken uygulamasını ana ekranınıza koyun." - }, - "step2": { - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar", - "description": "Yeni bir cüzdan oluşturun veya mevcut bir cüzdanı içe aktarın." - }, - "step3": { - "title": "Sağ üst köşede Tarayıcı Simgesine dokunun", - "description": "Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlantıyı onaylamak için istemi onaylayın." - } - } - }, - "metamask": { - "qr_code": { - "step1": { - "title": "MetaMask uygulamasını açın", - "description": "Daha hızlı erişim için MetaMask'ı ana ekranınıza koymanızı öneririz." - }, - "step2": { - "title": "Bir Cüzdan Oluşturun veya İçe Aktarın", - "description": "Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli kurtarma ifadenizi asla başkalarıyla paylaşmayın." - }, - "step3": { - "title": "Tarama düğmesine dokunun", - "description": "Taramayı yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir." - } - }, - "extension": { - "step1": { - "title": "MetaMask eklentisini yükleyin", - "description": "Cüzdanınıza daha hızlı erişim için MetaMask'i görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Bir Cüzdan Oluşturun veya İçe Aktarın", - "description": "Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı Yenileyin", - "description": "Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın." - } - } - }, - "okx": { - "qr_code": { - "step1": { - "title": "OKX Wallet uygulamasını açın", - "description": "Daha hızlı erişim için OKX Wallet'ı ana ekranınıza koymanızı öneririz." - }, - "step2": { - "title": "Bir Cüzdan Oluşturun veya İçe Aktarın", - "description": "Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli cümlenizi asla kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarama düğmesine dokunun", - "description": "Tarama yaptıktan sonra, cüzdanınızı bağlama istemi görünecektir." - } - }, - "extension": { - "step1": { - "title": "OKX Cüzdan eklentisini yükleyin", - "description": "Cüzdanınıza daha hızlı erişim için OKX Cüzdan'ı görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Cüzdan Oluşturun veya İçe Aktarın", - "description": "Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli cümlenizi asla kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın." - } - } - }, - "omni": { - "qr_code": { - "step1": { - "title": "Omni uygulamasını açın", - "description": "Cüzdanınıza daha hızlı erişim için Omni'yi ana ekranınıza ekleyin." - }, - "step2": { - "title": "Bir Cüzdan Oluşturun ya da İçe Aktarın", - "description": "Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın." - }, - "step3": { - "title": "QR simgesine dokunun ve tarayın", - "description": "Ana ekranınızdaki QR simgesine dokunun, kodu tarayın ve bağlanmak için istemi onaylayın." - } - } - }, - "token_pocket": { - "qr_code": { - "step1": { - "title": "TokenPocket uygulamasını açın", - "description": "Daha hızlı erişim için TokenPocket'ı ana ekranınıza koymanızı öneririz." - }, - "step2": { - "title": "Bir Cüzdan Oluşturun veya Cüzdanı İçe Aktarın", - "description": "Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın." - }, - "step3": { - "title": "Tarama düğmesine dokunun", - "description": "Taramayı yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir." - } - }, - "extension": { - "step1": { - "title": "TokenPocket eklentisini yükleyin", - "description": "Cüzdanınıza daha hızlı erişim için TokenPocket'i görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar", - "description": "Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli cümlenizi asla başkalarıyla paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemekte ve eklentiyi yüklemek için aşağıya tıklayın." - } - } - }, - "trust": { - "qr_code": { - "step1": { - "title": "Trust Wallet uygulamasını açın", - "description": "Cüzdanınıza daha hızlı erişim için Trust Wallet'ı ana ekranınıza koyun." - }, - "step2": { - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar", - "description": "Yeni bir cüzdan oluşturun veya mevcut bir tane içe aktarın." - }, - "step3": { - "title": "Ayarlar'da WalletConnect'e dokunun", - "description": "Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlanmak için istemi onaylayın." - } - }, - "extension": { - "step1": { - "title": "Trust Wallet eklentisini yükleyin", - "description": "Tarayıcınızın sağ üst köşesine tıklayın ve kolay erişim için Trust Wallet'i sabitleyin." - }, - "step2": { - "title": "Bir cüzdan oluşturun veya içe aktarın", - "description": "Yeni bir cüzdan oluşturun veya mevcut bir tane içe aktarın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Trust Wallet'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın." - } - } - }, - "uniswap": { - "qr_code": { - "step1": { - "title": "Uniswap uygulamasını açın", - "description": "Cüzdanınıza daha hızlı erişim için Uniswap Cüzdanınızı ana ekranınıza ekleyin." - }, - "step2": { - "title": "Cüzdan Oluştur veya İçe Aktar", - "description": "Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın." - }, - "step3": { - "title": "QR ikonuna dokunun ve tarama yapın", - "description": "Ana ekranınızdaki QR simgesine dokunun, kodu tarayın ve bağlanmayı onaylamak için istemi kabul edin." - } - } - }, - "zerion": { - "qr_code": { - "step1": { - "title": "Zerion uygulamasını açın", - "description": "Daha hızlı erişim için Zerion'un ana ekranınıza konumlandırmanızı öneririz." - }, - "step2": { - "title": "Bir Cüzdan Oluşturun veya İçe Aktarın", - "description": "Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın." - }, - "step3": { - "title": "Tarama düğmesine basın", - "description": "Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir." - } - }, - "extension": { - "step1": { - "title": "Zerion eklentisini yükleyin", - "description": "Cüzdanınıza daha hızlı erişim için Zerion'u görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Cüzdan Oluştur veya İçe Aktar", - "description": "Cüzdanınızı güvenli bir yöntem kullanarak yedeklemeye emin olun. Gizli ifadenizi asla başkalarıyla paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın." - } - } - }, - "rainbow": { - "qr_code": { - "step1": { - "title": "Rainbow uygulamasını açın", - "description": "Cüzdanınıza daha hızlı erişim için Rainbow'u ana ekranınıza koymanızı öneririz." - }, - "step2": { - "title": "Cüzdan Oluştur veya İçe Aktar", - "description": "Telefonunuzdaki yedekleme özelliğimizi kullanarak cüzdanınızı kolayca yedekleyebilirsiniz." - }, - "step3": { - "title": "Tarama düğmesine dokunun", - "description": "Tarama yaptıktan sonra, cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir." - } - } - }, - "enkrypt": { - "extension": { - "step1": { - "description": "Cüzdanınıza daha hızlı erişim sağlamak için Enkrypt Cüzdan'ı görev çubuğunuza sabitlemenizi öneririz.", - "title": "Enkrypt Cüzdan eklentisini yükleyin" - }, - "step2": { - "description": "Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.", - "title": "Bir Cüzdan Oluşturun veya İçe Aktarın" - }, - "step3": { - "description": "Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.", - "title": "Tarayıcınızı yenileyin" - } - } - }, - "frame": { - "extension": { - "step1": { - "description": "Cüzdanınıza daha hızlı erişim sağlamak için Frame'ı görev çubuğunuza sabitlemenizi öneririz.", - "title": "Frame ve eşlik eden uzantıyı yükleyin" - }, - "step2": { - "description": "Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla başkasıyla paylaşmayın.", - "title": "Cüzdan Oluştur veya İçe Aktar" - }, - "step3": { - "description": "Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve uzantıyı yüklemek için aşağıya tıklayın.", - "title": "Tarayıcınızı yenileyin" - } - } - }, - "one_key": { - "extension": { - "step1": { - "title": "OneKey Wallet uzantısını yükleyin", - "description": "Cüzdanınıza daha hızlı erişim için OneKey Wallet'ı görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Cüzdan Oluştur veya İçe Aktar", - "description": "Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın." - } - } - }, - "phantom": { - "extension": { - "step1": { - "title": "Phantom eklentisini yükleyin", - "description": "Cüzdanınıza daha kolay erişim sağlamak için Phantom'u görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Bir Cüzdan Oluşturun veya İçe Aktarın", - "description": "Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli kurtarma ifadenizi kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın." - } - } - }, - "rabby": { - "extension": { - "step1": { - "title": "Rabby eklentisini yükleyin", - "description": "Cüzdanınıza daha hızlı erişim için Rabby'yi görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Cüzdan Oluştur veya İçe Aktar", - "description": "Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi asla başkalarıyla paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıdaki düğmeye tıklayın." - } - } - }, - "safeheron": { - "extension": { - "step1": { - "title": "Core eklentisini yükleyin", - "description": "Cüzdanınıza daha hızlı erişim için Safeheron'u görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Cüzdan Oluştur veya İçe Aktar", - "description": "Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın." - } - } - }, - "taho": { - "extension": { - "step1": { - "title": "Taho uzantısını yükleyin", - "description": "Cüzdanınıza daha hızlı erişim için Taho'yu görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Bir Cüzdan Oluşturun veya İçe Aktarın", - "description": "Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın." - } - } - }, - "talisman": { - "extension": { - "step1": { - "title": "Talisman eklentisini yükleyin", - "description": "Cüzdanınıza daha hızlı erişim için Talisman'ı görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Ethereum Cüzdanı Oluşturun veya İçe Aktarın", - "description": "Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Kurtarma ifadenizi hiç kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın." - } - } - }, - "xdefi": { - "extension": { - "step1": { - "title": "XDEFI Cüzdan eklentisini yükleyin", - "description": "Cüzdanınıza daha hızlı erişim için XDEFI Wallet'ı görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Bir Cüzdan Oluşturun veya İçe Aktarın", - "description": "Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın." - } - } - }, - "zeal": { - "extension": { - "step1": { - "title": "Zeal eklentisini yükleyin", - "description": "Cüzdanınıza daha hızlı erişim için Zeal'ı görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar", - "description": "Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin." - } - } - }, - "safepal": { - "extension": { - "step1": { - "title": "SafePal Wallet eklentisini yükleyin", - "description": "Tarayıcınızın sağ üst köşesine tıklayın ve kolay erişim için SafePal Wallet'ı sabitleyin." - }, - "step2": { - "title": "Bir cüzdan oluşturun veya içe aktarın", - "description": "Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "SafePal Cüzdan'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın." - } - }, - "qr_code": { - "step1": { - "title": "SafePal Cüzdan uygulamasını açın", - "description": "SafePal Cüzdan'ı ana ekranınıza koyun, cüzdanınıza daha hızlı erişim için." - }, - "step2": { - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar", - "description": "Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın." - }, - "step3": { - "title": "Ayarlar'da WalletConnect'e dokunun", - "description": "Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlantıyı onaylamak için istemi onaylayın." - } - } - }, - "desig": { - "extension": { - "step1": { - "title": "Desig eklentisini yükleyin", - "description": "Cüzdanınıza daha kolay erişim sağlamak için Desig'i görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Bir Cüzdan Oluşturun", - "description": "Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin." - } - } - }, - "subwallet": { - "extension": { - "step1": { - "title": "SubWallet eklentisini yükleyin", - "description": "Cüzdanınıza daha hızlı erişim için SubWallet'ı görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar", - "description": "Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Kurtarma ifadenizi hiç kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin." - } - }, - "qr_code": { - "step1": { - "title": "SubWallet uygulamasını açın", - "description": "Daha hızlı erişim için SubWallet'ı ana ekranınıza koymenizi öneririz." - }, - "step2": { - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar", - "description": "Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcı düğmesine dokunun", - "description": "Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir." - } - } - }, - "clv": { - "extension": { - "step1": { - "title": "CLV Cüzdanı eklentisini yükleyin", - "description": "Cüzdanınıza daha hızlı erişim için CLV Cüzdanını görev çubuğunuza sabitlemenizi öneririz." - }, - "step2": { - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar", - "description": "Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcınızı yenileyin", - "description": "Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin." - } - }, - "qr_code": { - "step1": { - "title": "CLV Cüzdan uygulamasını açın", - "description": "Daha hızlı erişim için CLV Cüzdanını ana ekranınıza koymanızı öneririz." - }, - "step2": { - "title": "Cüzdan Oluştur veya Cüzdanı İçe Aktar", - "description": "Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın." - }, - "step3": { - "title": "Tarayıcı düğmesine dokunun", - "description": "Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir." - } - } - }, - "okto": { - "qr_code": { - "step1": { - "title": "Okto uygulamasını açın", - "description": "Hızlı erişim için Okto'yu ana ekranınıza ekleyin" - }, - "step2": { - "title": "MPC Cüzdanı oluşturun", - "description": "Bir hesap oluşturun ve bir cüzdan oluşturun" - }, - "step3": { - "title": "Ayarlar'da WalletConnect'e dokunun", - "description": "Sağ üstteki Tarama QR simgesine dokunun ve bağlanmak için istemi onaylayın." - } - } - }, - "ledger": { - "desktop": { - "step1": { - "title": "Ledger Live uygulamasını açın", - "description": "Daha hızlı erişim için Ledger Live'ı ana ekranınıza koymanızı öneririz." - }, - "step2": { - "title": "Ledger'ınızı kurun", - "description": "Yeni bir Ledger kurun veya mevcut birine bağlanın." - }, - "step3": { - "title": "Bağlan", - "description": "Cüzdanınızı bağlamak için bir bağlantı istemi belirecektir." - } - }, - "qr_code": { - "step1": { - "title": "Ledger Live uygulamasını açın", - "description": "Daha hızlı erişim için Ledger Live'ı ana ekranınıza koymanızı öneririz." - }, - "step2": { - "title": "Ledger'ınızı kurun", - "description": "Masaüstü uygulama ile senkronize olabilir veya Ledger'ınızı bağlayabilirsiniz." - }, - "step3": { - "title": "Kodu tarayın", - "description": "WalletConnect'e dokunun ve ardından Tarayıcı'ya geçin. Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir." - } - } - } - } -} -`;export{n as default}; -//# sourceMappingURL=tr_TR-NAI3OICG-BccpdJoF.js.map diff --git a/apps/web/public/assets/uk_UA-H7BFRWP5-BxO6MaLd.js b/apps/web/public/assets/uk_UA-H7BFRWP5-BxO6MaLd.js deleted file mode 100644 index f3a729be..00000000 --- a/apps/web/public/assets/uk_UA-H7BFRWP5-BxO6MaLd.js +++ /dev/null @@ -1,959 +0,0 @@ -(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},E=new u.Error().stack;E&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[E]="843bbdbe-972e-4170-a47e-e96dc4231274",u._sentryDebugIdIdentifier="sentry-dbid-843bbdbe-972e-4170-a47e-e96dc4231274")}catch{}})();var F=`{ - "connect_wallet": { - "label": "Під'єднати гаманець", - "wrong_network": { - "label": "Неправильна мережа" - } - }, - "intro": { - "title": "Що таке гаманець?", - "description": "Гаманець використовується для відправлення, отримання, зберігання та відображення цифрових активів. Це також новий спосіб входу, без необхідності створювати нові облікові записи та паролі на кожному сайті.", - "digital_asset": { - "title": "Дім для ваших цифрових активів", - "description": "Гаманці використовуються для відправлення, отримання, зберігання та відображення цифрових активів, таких як Ethereum та NFT." - }, - "login": { - "title": "Новий спосіб увійти", - "description": "Замість створення нових облікових записів та паролів на кожному сайті, просто під'єднайте ваш гаманець." - }, - "get": { - "label": "Отримати гаманець" - }, - "learn_more": { - "label": "Дізнатися більше" - } - }, - "sign_in": { - "label": "Перевірте свій обліковий запис", - "description": "Щоб завершити підключення, вам потрібно підписати повідомлення у вашому гаманці, щоб підтвердити, що ви є власником цього облікового запису.", - "message": { - "send": "Підписати повідомлення", - "preparing": "Підготовка повідомлення...", - "cancel": "Скасувати", - "preparing_error": "Помилка підготовки повідомлення, будь ласка, спробуйте ще раз!" - }, - "signature": { - "waiting": "Очікування підпису...", - "verifying": "Перевірка підпису...", - "signing_error": "Помилка підпису повідомлення, будь ласка, спробуйте ще раз!", - "verifying_error": "Помилка перевірки підпису, будь ласка, спробуйте ще раз!", - "oops_error": "Ой, щось пішло не так!" - } - }, - "connect": { - "label": "Під'єднати", - "title": "Під'єднати гаманець", - "new_to_ethereum": { - "description": "Вперше зіткнулися з гаманцями Ethereum?", - "learn_more": { - "label": "Дізнатися більше" - } - }, - "learn_more": { - "label": "Дізнатися більше" - }, - "recent": "Недавні", - "status": { - "opening": "Відкриття %{wallet}...", - "connecting": "Підключення", - "connect_mobile": "Продовжити в %{wallet}", - "not_installed": "%{wallet} не встановлено", - "not_available": "%{wallet} недоступний", - "confirm": "Підтвердіть з'єднання в розширенні", - "confirm_mobile": "Підтвердіть запит на підключення у гаманці" - }, - "secondary_action": { - "get": { - "description": "Не маєте %{wallet}?", - "label": "ОТРИМАТИ" - }, - "install": { - "label": "ВСТАНОВИТИ" - }, - "retry": { - "label": "ПОВТОРИТИ" - } - }, - "walletconnect": { - "description": { - "full": "Потрібне офіційне модальне вікно WalletConnect?", - "compact": "Потрібне модальне вікно WalletConnect?" - }, - "open": { - "label": "ВІДКРИТИ" - } - } - }, - "connect_scan": { - "title": "Сканувати за допомогою %{wallet}", - "fallback_title": "Сканувати за допомогою вашого телефону" - }, - "connector_group": { - "recommended": "Рекомендовано", - "other": "Інші", - "popular": "Популярні", - "more": "Більше", - "others": "Інші" - }, - "get": { - "title": "Отримати гаманець", - "action": { - "label": "ОТРИМАТИ" - }, - "mobile": { - "description": "Мобільний Гаманець" - }, - "extension": { - "description": "Розширення Браузера" - }, - "mobile_and_extension": { - "description": "Мобільний Гаманець та Розширення" - }, - "mobile_and_desktop": { - "description": "Мобільний та Настільний Гаманець" - }, - "looking_for": { - "title": "Не те, що ви шукаєте?", - "mobile": { - "description": "Виберіть гаманець на головному екрані, щоб розпочати роботу з іншим провайдером гаманця." - }, - "desktop": { - "compact_description": "Виберіть гаманець на головному екрані, щоб розпочати роботу з іншим провайдером гаманця.", - "wide_description": "Виберіть гаманець зліва, щоб розпочати роботу з іншим провайдером гаманця." - } - } - }, - "get_options": { - "title": "Розпочніть з %{wallet}", - "short_title": "Отримати %{wallet}", - "mobile": { - "title": "%{wallet} для Мобільних", - "description": "Використовуйте мобільний гаманець для вивчення світу Ethereum.", - "download": { - "label": "Отримати додаток" - } - }, - "extension": { - "title": "%{wallet} для %{browser}", - "description": "Отримайте доступ до свого гаманця прямо з улюбленого веб-браузера.", - "download": { - "label": "Додати до %{browser}" - } - }, - "desktop": { - "title": "%{wallet} для %{platform}", - "description": "Отримайте доступ до вашого гаманця нативно з потужного настільного комп'ютера.", - "download": { - "label": "Додати до %{platform}" - } - } - }, - "get_mobile": { - "title": "Встановити %{wallet}", - "description": "Скануйте за допомогою телефону, щоб завантажити на iOS або Android", - "continue": { - "label": "Продовжити" - } - }, - "get_instructions": { - "mobile": { - "connect": { - "label": "Під'єднати" - }, - "learn_more": { - "label": "Дізнатися більше" - } - }, - "extension": { - "refresh": { - "label": "Оновити" - }, - "learn_more": { - "label": "Дізнатися більше" - } - }, - "desktop": { - "connect": { - "label": "Під'єднати" - }, - "learn_more": { - "label": "Дізнатися більше" - } - } - }, - "chains": { - "title": "Перемкнути мережу", - "wrong_network": "Виявлено неправильну мережу, змініть її або від'єднайтеся, щоб продовжити.", - "confirm": "Підтвердіть у гаманці", - "switching_not_supported": "Ваш гаманець не підтримує зміну мереж з %{appName}. Спробуйте змінити мережу безпосередньо через ваш гаманець.", - "switching_not_supported_fallback": "Ваш гаманець не підтримує зміну мереж з цього додатку. Спробуйте змінити мережу безпосередньо через ваш гаманець.", - "disconnect": "Від'єднатися", - "connected": "Під'єднано" - }, - "profile": { - "disconnect": { - "label": "Від'єднатися" - }, - "copy_address": { - "label": "Скопіювати адресу", - "copied": "Скопійовано!" - }, - "explorer": { - "label": "Переглянути більше в експлорері" - }, - "transactions": { - "description": "%{appName} транзакції з'являться тут...", - "description_fallback": "Тут з'являться ваші транзакції...", - "recent": { - "title": "Останні Транзакції" - }, - "clear": { - "label": "Очистити Все" - } - } - }, - "wallet_connectors": { - "argent": { - "qr_code": { - "step1": { - "description": "Додайте Argent на домашній екран для швидшого доступу до вашого гаманця.", - "title": "Відкрийте додаток Argent" - }, - "step2": { - "description": "Створіть гаманець та ім'я користувача, або імпортуйте існуючий гаманець.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця.", - "title": "Натисніть кнопку 'Сканувати QR-код'" - } - } - }, - "bifrost": { - "qr_code": { - "step1": { - "description": "Ми рекомендуємо додати Bifrost Wallet на ваш домашній екран для швидшого доступу.", - "title": "Відкрийте додаток Bifrost Wallet" - }, - "step2": { - "description": "Створіть або імпортуйте гаманець, використовуючи вашу фразу для відновлення.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця.", - "title": "Натисніть кнопку сканування" - } - } - }, - "bitget": { - "qr_code": { - "step1": { - "description": "Ми рекомендуємо розмістити Bitget Wallet на вашому домашньому екрані для швидшого доступу.", - "title": "Відкрийте додаток Bitget Wallet" - }, - "step2": { - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця.", - "title": "Натисніть кнопку сканування" - } - }, - "extension": { - "step1": { - "description": "Ми рекомендуємо закріпити Bitget Wallet на вашій панелі задач для швидшого доступу до вашого гаманця.", - "title": "Встановіть розширення Bitget Wallet" - }, - "step2": { - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення.", - "title": "Оновіть ваш браузер" - } - } - }, - "bitski": { - "extension": { - "step1": { - "description": "Ми рекомендуємо закріпити Bitski на панелі задач для швидшого доступу до вашого гаманця.", - "title": "Встановіть розширення Bitski" - }, - "step2": { - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення.", - "title": "Оновіть ваш браузер" - } - } - }, - "coin98": { - "qr_code": { - "step1": { - "description": "Ми рекомендуємо розмістити Coin98 Wallet на домашньому екрані для швидшого доступу до вашого гаманця.", - "title": "Відкрийте додаток Coin98 Wallet" - }, - "step2": { - "description": "Ви можете легко зробити резервну копію вашого гаманця, використовуючи нашу функцію резервного копіювання на вашому телефоні.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця.", - "title": "Натисніть кнопку WalletConnect" - } - }, - "extension": { - "step1": { - "description": "Клацніть у верхньому правому куті вашого браузера та закріпіть Coin98 Wallet для зручного доступу.", - "title": "Встановіть розширення Coin98 Wallet" - }, - "step2": { - "description": "Створіть новий гаманець або імпортуйте існуючий.", - "title": "Створіть або імпортуйте гаманець" - }, - "step3": { - "description": "Після налаштування гаманця Coin98 натисніть нижче, щоб оновити браузер і завантажити розширення.", - "title": "Оновіть ваш браузер" - } - } - }, - "coinbase": { - "qr_code": { - "step1": { - "description": "Ми рекомендуємо додати Coinbase Wallet на домашній екран для швидшого доступу.", - "title": "Відкрийте додаток Coinbase Wallet" - }, - "step2": { - "description": "Ви можете легко створити резервну копію гаманця за допомогою функції хмарного резервного копіювання.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця.", - "title": "Натисніть кнопку сканування" - } - }, - "extension": { - "step1": { - "description": "Ми рекомендуємо закріпити Coinbase Wallet на панелі задач для швидшого доступу до вашого гаманця.", - "title": "Встановіть розширення Coinbase Wallet" - }, - "step2": { - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення.", - "title": "Оновіть ваш браузер" - } - } - }, - "core": { - "qr_code": { - "step1": { - "description": "Ми рекомендуємо додати Core на домашній екран для швидшого доступу до вашого гаманця.", - "title": "Відкрийте додаток Core" - }, - "step2": { - "description": "Ви можете легко зробити резервну копію вашого гаманця, використовуючи нашу функцію резервного копіювання на вашому телефоні.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця.", - "title": "Натисніть кнопку WalletConnect" - } - }, - "extension": { - "step1": { - "description": "Ми рекомендуємо закріпити Core на панелі задач для швидшого доступу до вашого гаманця.", - "title": "Встановіть розширення Core" - }, - "step2": { - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення.", - "title": "Оновіть ваш браузер" - } - } - }, - "fox": { - "qr_code": { - "step1": { - "description": "Ми рекомендуємо розмістити FoxWallet на головному екрані для швидшого доступу.", - "title": "Відкрийте додаток FoxWallet" - }, - "step2": { - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця.", - "title": "Натисніть кнопку сканування" - } - } - }, - "frontier": { - "qr_code": { - "step1": { - "description": "Ми рекомендуємо розмістити Frontier Wallet на головному екрані для швидшого доступу.", - "title": "Відкрийте додаток Frontier Wallet" - }, - "step2": { - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця.", - "title": "Натисніть кнопку сканування" - } - }, - "extension": { - "step1": { - "description": "Ми рекомендуємо закріпити Frontier Wallet на панелі задач для швидкого доступу до вашого гаманця.", - "title": "Встановіть розширення Frontier Wallet" - }, - "step2": { - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення.", - "title": "Оновіть ваш браузер" - } - } - }, - "im_token": { - "qr_code": { - "step1": { - "title": "Відкрийте додаток imToken", - "description": "Розмістіть додаток imToken на головному екрані для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Створіть новий гаманець або імпортуйте існуючий." - }, - "step3": { - "title": "Натисніть на іконку сканера в правому верхньому куті", - "description": "Виберіть 'Нове з'єднання', потім відскануйте QR-код і підтвердіть запит на підключення." - } - } - }, - "metamask": { - "qr_code": { - "step1": { - "title": "Відкрийте додаток MetaMask", - "description": "Ми рекомендуємо розмістити MetaMask на головному екрані для швидкого доступу." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Натисніть кнопку сканування", - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця." - } - }, - "extension": { - "step1": { - "title": "Встановіть розширення MetaMask", - "description": "Ми рекомендуємо закріпити MetaMask на панелі задач для швидкого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - } - }, - "okx": { - "qr_code": { - "step1": { - "title": "Відкрийте додаток OKX Wallet", - "description": "Ми рекомендуємо розмістити OKX Wallet на головному екрані для швидкого доступу." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Натисніть кнопку сканування", - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця." - } - }, - "extension": { - "step1": { - "title": "Встановіть розширення OKX Wallet", - "description": "Ми рекомендуємо закріпити OKX Wallet на панелі задач для швидкого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - } - }, - "omni": { - "qr_code": { - "step1": { - "title": "Відкрийте додаток Omni", - "description": "Додайте Omni на головний екран для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Створіть новий гаманець або імпортуйте існуючий." - }, - "step3": { - "title": "Натисніть на іконку QR та відскануйте", - "description": "Натисніть на іконку QR на вашому головному екрані, відскануйте код та підтвердіть запит для підключення." - } - } - }, - "token_pocket": { - "qr_code": { - "step1": { - "title": "Відкрийте додаток TokenPocket", - "description": "Ми рекомендуємо розмістити TokenPocket на вашому головному екрані для швидшого доступу." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Натисніть кнопку сканування", - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця." - } - }, - "extension": { - "step1": { - "title": "Встановіть розширення TokenPocket", - "description": "Ми рекомендуємо прикріпити TokenPocket до вашої панелі задач для швидкого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - } - }, - "trust": { - "qr_code": { - "step1": { - "title": "Відкрийте додаток Trust Wallet", - "description": "Розмістіть Trust Wallet на вашому головному екрані для швидшого доступу до гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Створіть новий гаманець або імпортуйте існуючий." - }, - "step3": { - "title": "Натисніть WalletConnect у Налаштуваннях", - "description": "Виберіть 'Нове з'єднання', потім відскануйте QR-код і підтвердіть запит на підключення." - } - }, - "extension": { - "step1": { - "title": "Встановіть розширення Trust Wallet", - "description": "Натисніть у верхньому правому куті вашого браузера та закріпіть Trust Wallet для зручного доступу." - }, - "step2": { - "title": "Створіть або імпортуйте гаманець", - "description": "Створіть новий гаманець або імпортуйте існуючий." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування Trust Wallet натисніть нижче, щоб оновити браузер та завантажити розширення." - } - } - }, - "uniswap": { - "qr_code": { - "step1": { - "title": "Відкрийте додаток Uniswap", - "description": "Додайте Uniswap Wallet на свій домашній екран для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Створіть новий гаманець або імпортуйте існуючий." - }, - "step3": { - "title": "Натисніть на іконку QR та відскануйте", - "description": "Торкніться іконки QR на вашому домашньому екрані, відскануйте код та підтвердіть запит на підключення." - } - } - }, - "zerion": { - "qr_code": { - "step1": { - "title": "Відкрийте додаток Zerion", - "description": "Ми рекомендуємо розмістити Zerion на вашому домашньому екрані для швидшого доступу." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Натисніть кнопку сканування", - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця." - } - }, - "extension": { - "step1": { - "title": "Встановіть розширення Zerion", - "description": "Ми рекомендуємо закріпити Zerion на вашій панелі завдань для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - } - }, - "rainbow": { - "qr_code": { - "step1": { - "title": "Відкрийте додаток Rainbow", - "description": "Ми рекомендуємо додати Rainbow на домашній екран для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Ви можете легко зробити резервну копію вашого гаманця, використовуючи нашу функцію резервного копіювання на вашому телефоні." - }, - "step3": { - "title": "Натисніть кнопку сканування", - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця." - } - } - }, - "enkrypt": { - "extension": { - "step1": { - "description": "Ми рекомендуємо закріпити Enkrypt Wallet на панелі задач для швидшого доступу до вашого гаманця.", - "title": "Встановіть розширення Enkrypt Wallet" - }, - "step2": { - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення.", - "title": "Оновіть ваш браузер" - } - } - }, - "frame": { - "extension": { - "step1": { - "description": "Ми рекомендуємо закріпити Frame на панелі задач для швидшого доступу до вашого гаманця.", - "title": "Встановіть Frame та супутнє розширення" - }, - "step2": { - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось.", - "title": "Створити або Імпортувати Гаманець" - }, - "step3": { - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення.", - "title": "Оновіть ваш браузер" - } - } - }, - "one_key": { - "extension": { - "step1": { - "title": "Встановіть розширення OneKey Wallet", - "description": "Ми рекомендуємо закріпити OneKey Wallet на панелі задач для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - } - }, - "phantom": { - "extension": { - "step1": { - "title": "Встановіть розширення Phantom", - "description": "Ми рекомендуємо закріпити Phantom на панелі задач для легшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою відновлення з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - } - }, - "rabby": { - "extension": { - "step1": { - "title": "Встановіть розширення Rabby", - "description": "Ми рекомендуємо закріпити Rabby на панелі задач для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - } - }, - "safeheron": { - "extension": { - "step1": { - "title": "Встановіть розширення Core", - "description": "Ми рекомендуємо закріпити Safeheron на панелі задач для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - } - }, - "taho": { - "extension": { - "step1": { - "title": "Встановіть розширення Taho", - "description": "Ми рекомендуємо закріпити Taho на панелі задач для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - } - }, - "talisman": { - "extension": { - "step1": { - "title": "Встановіть розширення Talisman", - "description": "Ми рекомендуємо закріпити Talisman на панелі задач для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створіть або Імпортуйте Ethereum гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться своєю фразою для відновлення з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - } - }, - "xdefi": { - "extension": { - "step1": { - "title": "Встановіть розширення гаманця XDEFI", - "description": "Ми рекомендуємо закріпити гаманець XDEFI на панелі задач для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - } - }, - "zeal": { - "extension": { - "step1": { - "title": "Встановіть розширення Zeal", - "description": "Ми рекомендуємо закріпити Zeal на панелі задач для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - } - }, - "safepal": { - "extension": { - "step1": { - "title": "Встановіть розширення SafePal Wallet", - "description": "Клацніть у верхньому правому куті вашого браузера та закріпіть SafePal Wallet для зручного доступу." - }, - "step2": { - "title": "Створіть або імпортуйте гаманець", - "description": "Створіть новий гаманець або імпортуйте існуючий." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування SafePal Wallet натисніть нижче, щоб оновити браузер і завантажити розширення." - } - }, - "qr_code": { - "step1": { - "title": "Відкрийте додаток SafePal Wallet", - "description": "Додайте SafePal Wallet на домашній екран для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Створіть новий гаманець або імпортуйте існуючий." - }, - "step3": { - "title": "Натисніть WalletConnect у Налаштуваннях", - "description": "Виберіть 'Нове з'єднання', потім відскануйте QR-код і підтвердіть запит на підключення." - } - } - }, - "desig": { - "extension": { - "step1": { - "title": "Встановіть розширення Desig", - "description": "Ми рекомендуємо закріпити Desig на панелі задач для легшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створіть гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - } - }, - "subwallet": { - "extension": { - "step1": { - "title": "Встановіть розширення SubWallet", - "description": "Ми рекомендуємо закріпити SubWallet на панелі задач для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться своєю фразою для відновлення з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - }, - "qr_code": { - "step1": { - "title": "Відкрийте додаток SubWallet", - "description": "Ми рекомендуємо розмістити SubWallet на головному екрані для швидшого доступу." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Натисніть кнопку сканування", - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця." - } - } - }, - "clv": { - "extension": { - "step1": { - "title": "Встановіть розширення CLV Wallet", - "description": "Ми рекомендуємо закріпити CLV Wallet на панелі задач для швидшого доступу до вашого гаманця." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Оновіть ваш браузер", - "description": "Після налаштування вашого гаманця, натисніть нижче, щоб оновити браузер і завантажити розширення." - } - }, - "qr_code": { - "step1": { - "title": "Відкрийте додаток CLV Wallet", - "description": "Ми рекомендуємо розмістити CLV Wallet на головному екрані для швидшого доступу." - }, - "step2": { - "title": "Створити або Імпортувати Гаманець", - "description": "Не забудьте зробити резервну копію вашого гаманця за допомогою безпечного методу. Ніколи не діліться вашою секретною фразою з кимось." - }, - "step3": { - "title": "Натисніть кнопку сканування", - "description": "Після сканування з'явиться запит на під'єднання для підключення вашого гаманця." - } - } - }, - "okto": { - "qr_code": { - "step1": { - "title": "Відкрийте додаток Okto", - "description": "Додайте Okto на домашній екран для швидкого доступу" - }, - "step2": { - "title": "Створіть MPC гаманець", - "description": "Створіть обліковий запис та згенеруйте гаманець" - }, - "step3": { - "title": "Натисніть WalletConnect у Налаштуваннях", - "description": "Натисніть на іконку Сканування QR-коду в правому верхньому куті та підтвердіть запит для підключення." - } - } - }, - "ledger": { - "desktop": { - "step1": { - "title": "Відкрийте додаток Ledger Live", - "description": "Рекомендуємо розмістити Ledger Live на головному екрані для швидшого доступу." - }, - "step2": { - "title": "Налаштуйте ваш Ledger", - "description": "Налаштуйте новий Ledger або під'єднайте існуючий." - }, - "step3": { - "title": "Під'єднати", - "description": "З'явиться запит на підключення для того, щоб ви могли під'єднати свій гаманець." - } - }, - "qr_code": { - "step1": { - "title": "Відкрийте додаток Ledger Live", - "description": "Рекомендуємо розмістити Ledger Live на головному екрані для швидшого доступу." - }, - "step2": { - "title": "Налаштуйте ваш Ledger", - "description": "Ви можете синхронізувати з десктопним додатком або підключити ваш Ledger." - }, - "step3": { - "title": "Сканувати код", - "description": "Натисніть WalletConnect, потім перейдіть до сканера. Після сканування з'явиться запит на підключення для того, щоб ви могли під'єднати свій гаманець." - } - } - } - } -} -`;export{F as default}; -//# sourceMappingURL=uk_UA-H7BFRWP5-BxO6MaLd.js.map diff --git a/apps/web/public/assets/walletConnectWallet-D6ZADJM7-BtZ74X7H.js b/apps/web/public/assets/walletConnectWallet-D6ZADJM7-BtZ74X7H.js deleted file mode 100644 index 995ec102..00000000 --- a/apps/web/public/assets/walletConnectWallet-D6ZADJM7-BtZ74X7H.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){try{var M=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},N=new M.Error().stack;N&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[N]="35759148-c1b3-4e0b-b1fd-3fd8f81041f6",M._sentryDebugIdIdentifier="sentry-dbid-35759148-c1b3-4e0b-b1fd-3fd8f81041f6")}catch{}})();var T="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI4IiBoZWlnaHQ9IjI4IiBmaWxsPSIjM0I5OUZDIi8+CjxwYXRoIGQ9Ik04LjM4OTY5IDEwLjM3MzlDMTEuNDg4MiA3LjI3NTM4IDE2LjUxMTggNy4yNzUzOCAxOS42MTAzIDEwLjM3MzlMMTkuOTgzMiAxMC43NDY4QzIwLjEzODIgMTAuOTAxNyAyMC4xMzgyIDExLjE1MjkgMTkuOTgzMiAxMS4zMDc4TDE4LjcwNzYgMTIuNTgzNUMxOC42MzAxIDEyLjY2MDkgMTguNTA0NSAxMi42NjA5IDE4LjQyNzEgMTIuNTgzNUwxNy45MTM5IDEyLjA3MDNDMTUuNzUyMyA5LjkwODcgMTIuMjQ3NyA5LjkwODcgMTAuMDg2MSAxMi4wNzAzTDkuNTM2NTUgMTIuNjE5OEM5LjQ1OTA5IDEyLjY5NzMgOS4zMzM1IDEyLjY5NzMgOS4yNTYwNCAxMi42MTk4TDcuOTgwMzkgMTEuMzQ0MkM3LjgyNTQ3IDExLjE4OTMgNy44MjU0NyAxMC45MzgxIDcuOTgwMzkgMTAuNzgzMkw4LjM4OTY5IDEwLjM3MzlaTTIyLjI0ODUgMTMuMDEyTDIzLjM4MzggMTQuMTQ3NEMyMy41Mzg3IDE0LjMwMjMgMjMuNTM4NyAxNC41NTM1IDIzLjM4MzggMTQuNzA4NEwxOC4yNjQ1IDE5LjgyNzdDMTguMTA5NiAxOS45ODI3IDE3Ljg1ODQgMTkuOTgyNyAxNy43MDM1IDE5LjgyNzdDMTcuNzAzNSAxOS44Mjc3IDE3LjcwMzUgMTkuODI3NyAxNy43MDM1IDE5LjgyNzdMMTQuMDcwMiAxNi4xOTQ0QzE0LjAzMTQgMTYuMTU1NyAxMy45Njg2IDE2LjE1NTcgMTMuOTI5OSAxNi4xOTQ0QzEzLjkyOTkgMTYuMTk0NCAxMy45Mjk5IDE2LjE5NDQgMTMuOTI5OSAxNi4xOTQ0TDEwLjI5NjYgMTkuODI3N0MxMC4xNDE3IDE5Ljk4MjcgOS44OTA1MyAxOS45ODI3IDkuNzM1NjEgMTkuODI3OEM5LjczNTYgMTkuODI3OCA5LjczNTYgMTkuODI3NyA5LjczNTYgMTkuODI3N0w0LjYxNjE5IDE0LjcwODNDNC40NjEyNyAxNC41NTM0IDQuNDYxMjcgMTQuMzAyMiA0LjYxNjE5IDE0LjE0NzNMNS43NTE1MiAxMy4wMTJDNS45MDY0NSAxMi44NTcgNi4xNTc2MyAxMi44NTcgNi4zMTI1NSAxMy4wMTJMOS45NDU5NSAxNi42NDU0QzkuOTg0NjggMTYuNjg0MSAxMC4wNDc1IDE2LjY4NDEgMTAuMDg2MiAxNi42NDU0QzEwLjA4NjIgMTYuNjQ1NCAxMC4wODYyIDE2LjY0NTQgMTAuMDg2MiAxNi42NDU0TDEzLjcxOTQgMTMuMDEyQzEzLjg3NDMgMTIuODU3IDE0LjEyNTUgMTIuODU3IDE0LjI4MDUgMTMuMDEyQzE0LjI4MDUgMTMuMDEyIDE0LjI4MDUgMTMuMDEyIDE0LjI4MDUgMTMuMDEyTDE3LjkxMzkgMTYuNjQ1NEMxNy45NTI2IDE2LjY4NDEgMTguMDE1NCAxNi42ODQxIDE4LjA1NDEgMTYuNjQ1NEwyMS42ODc0IDEzLjAxMkMyMS44NDI0IDEyLjg1NzEgMjIuMDkzNiAxMi44NTcxIDIyLjI0ODUgMTMuMDEyWiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";export{T as default}; -//# sourceMappingURL=walletConnectWallet-D6ZADJM7-BtZ74X7H.js.map diff --git a/apps/web/public/assets/workbox-window.prod.es5-rX37VysU.js b/apps/web/public/assets/workbox-window.prod.es5-rX37VysU.js deleted file mode 100644 index 5511ee0c..00000000 --- a/apps/web/public/assets/workbox-window.prod.es5-rX37VysU.js +++ /dev/null @@ -1,3 +0,0 @@ -(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="0e2ae1ff-8cfb-4ab8-88bc-97d25c9de23e",t._sentryDebugIdIdentifier="sentry-dbid-0e2ae1ff-8cfb-4ab8-88bc-97d25c9de23e")}catch{}})();try{self["workbox:window:7.0.0"]&&_()}catch{}function P(t,r){return new Promise(function(n){var i=new MessageChannel;i.port1.onmessage=function(c){n(c.data)},t.postMessage(r,[i.port2])})}function W(t){var r=function(n,i){if(typeof n!="object"||!n)return n;var c=n[Symbol.toPrimitive];if(c!==void 0){var l=c.call(n,i);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(t,"string");return typeof r=="symbol"?r:r+""}function k(t,r){for(var n=0;nt.length)&&(r=t.length);for(var n=0,i=new Array(r);n=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}try{self["workbox:core:7.0.0"]&&_()}catch{}var w=function(){var t=this;this.promise=new Promise(function(r,n){t.resolve=r,t.reject=n})};function b(t,r){var n=location.href;return new URL(t,n).href===new URL(r,n).href}var g=function(t,r){this.type=t,Object.assign(this,r)};function h(t,r,n){return n?r?r(t):t:(t&&t.then||(t=Promise.resolve(t)),r?t.then(r):t)}function I(){}var O={type:"SKIP_WAITING"};function S(t,r){return t&&t.then?t.then(I):Promise.resolve()}var x=function(t){function r(v,u){var e,o;return u===void 0&&(u={}),(e=t.call(this)||this).nn={},e.tn=0,e.rn=new w,e.en=new w,e.on=new w,e.un=0,e.an=new Set,e.cn=function(){var s=e.fn,a=s.installing;e.tn>0||!b(a.scriptURL,e.sn.toString())||performance.now()>e.un+6e4?(e.vn=a,s.removeEventListener("updatefound",e.cn)):(e.hn=a,e.an.add(a),e.rn.resolve(a)),++e.tn,a.addEventListener("statechange",e.ln)},e.ln=function(s){var a=e.fn,f=s.target,p=f.state,y=f===e.vn,m={sw:f,isExternal:y,originalEvent:s};!y&&e.mn&&(m.isUpdate=!0),e.dispatchEvent(new g(p,m)),p==="installed"?e.wn=self.setTimeout(function(){p==="installed"&&a.waiting===f&&e.dispatchEvent(new g("waiting",m))},200):p==="activating"&&(clearTimeout(e.wn),y||e.en.resolve(f))},e.yn=function(s){var a=e.hn,f=a!==navigator.serviceWorker.controller;e.dispatchEvent(new g("controlling",{isExternal:f,originalEvent:s,sw:a,isUpdate:e.mn})),f||e.on.resolve(a)},e.gn=(o=function(s){var a=s.data,f=s.ports,p=s.source;return h(e.getSW(),function(){e.an.has(p)&&e.dispatchEvent(new g("message",{data:a,originalEvent:s,ports:f,sw:p}))})},function(){for(var s=[],a=0;a Date: Wed, 25 Sep 2024 23:35:55 +0800 Subject: [PATCH 2/8] Update vercel.json --- apps/web/public/vercel.json | 63 +++++++++++++++++++++++++++++++++++++ vercel.json | 21 ------------- 2 files changed, 63 insertions(+), 21 deletions(-) create mode 100644 apps/web/public/vercel.json delete mode 100644 vercel.json diff --git a/apps/web/public/vercel.json b/apps/web/public/vercel.json new file mode 100644 index 00000000..4f4ea857 --- /dev/null +++ b/apps/web/public/vercel.json @@ -0,0 +1,63 @@ +{ + "headers": [ + { + "source": "/(.*).html", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=0, must-revalidate" + } + ] + }, + { + "source": "/sw.js", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=0, must-revalidate" + } + ] + }, + { + "source": "/manifest.json", + "headers": [ + { + "key": "Content-Type", + "value": "application/manifest+json" + } + ] + }, + { + "source": "/assets/(.*)", + "headers": [ + { + "key": "Cache-Control", + "value": "max-age=31536000, immutable" + } + ] + }, + { + "source": "/(.*)", + "headers": [ + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-Frame-Options", + "value": "DENY" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + } + ] + } + ], + "rewrites": [ + { + "source": "/(.*)", + "destination": "/index.html" + } + ] +} diff --git a/vercel.json b/vercel.json deleted file mode 100644 index d53883ba..00000000 --- a/vercel.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "headers": [ - { - "source": "/(.*)", - "headers": [ - { - "key": "Cache-Control", - "value": "no-cache, no-store, must-revalidate" - }, - { - "key": "Pragma", - "value": "no-cache" - }, - { - "key": "Expires", - "value": "0" - } - ] - } - ] -} From 4f1340c78e80397b2aaa69ed4c0ae4887d41a9f0 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Wed, 25 Sep 2024 23:39:24 +0800 Subject: [PATCH 3/8] Enable PWA --- apps/web/src/main.tsx | 4 +-- apps/web/vite.config.ts | 56 ++++++++++++++++++++--------------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/apps/web/src/main.tsx b/apps/web/src/main.tsx index 74603446..a7955995 100644 --- a/apps/web/src/main.tsx +++ b/apps/web/src/main.tsx @@ -3,7 +3,7 @@ import ReactDOM from "react-dom/client"; import "./index.css"; import { RouterProvider } from "react-router-dom"; import { router } from "./router.tsx"; -// import PWABadge from "./components/pwa-badge.tsx"; +import PWABadge from "./components/pwa-badge.tsx"; import * as Sentry from "@sentry/react"; @@ -22,6 +22,6 @@ Sentry.init({ ReactDOM.createRoot(document.getElementById("root")!).render( - {/* */} + , ); diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index dafb4b8e..40ef9955 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -3,7 +3,7 @@ import { sentryVitePlugin } from "@sentry/vite-plugin"; import { defineConfig } from "vite"; import react from "@vitejs/plugin-react-swc"; -// import { VitePWA } from "vite-plugin-pwa"; +import { VitePWA } from "vite-plugin-pwa"; // https://vitejs.dev/config/ export default defineConfig({ @@ -11,33 +11,33 @@ export default defineConfig({ plugins: [ react(), - // VitePWA({ - // registerType: "prompt", - // injectRegister: false, - // manifestFilename: "manifest.json", - // pwaAssets: { - // disabled: false, - // config: true, - // }, - // manifest: { - // name: "Helix Bridge", - // short_name: "HelixBridge", - // description: "Secure, fast, and low-cost cross-chain crypto transfers", - // theme_color: "#00141D", - // background_color: "#00141D", - // }, - // workbox: { - // globPatterns: ["**/*.{js,css,html,svg,png,ico}"], - // cleanupOutdatedCaches: true, - // clientsClaim: true, - // }, - // devOptions: { - // enabled: false, - // navigateFallback: "index.html", - // suppressWarnings: true, - // type: "module", - // }, - // }), + VitePWA({ + registerType: "prompt", + injectRegister: false, + manifestFilename: "manifest.json", + pwaAssets: { + disabled: false, + config: true, + }, + manifest: { + name: "Helix Bridge", + short_name: "HelixBridge", + description: "Secure, fast, and low-cost cross-chain crypto transfers", + theme_color: "#00141D", + background_color: "#00141D", + }, + workbox: { + globPatterns: ["**/*.{js,css,html,svg,png,ico}"], + cleanupOutdatedCaches: true, + clientsClaim: true, + }, + devOptions: { + enabled: false, + navigateFallback: "index.html", + suppressWarnings: true, + type: "module", + }, + }), sentryVitePlugin({ org: "helix-ck", project: "javascript-react", From a8ddf32404e64be4737d7f80151d6400fe6b153c Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Wed, 25 Sep 2024 23:41:10 +0800 Subject: [PATCH 4/8] Notify PWA update --- apps/web/src/components/pwa-badge.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/web/src/components/pwa-badge.tsx b/apps/web/src/components/pwa-badge.tsx index de432468..e01cc351 100644 --- a/apps/web/src/components/pwa-badge.tsx +++ b/apps/web/src/components/pwa-badge.tsx @@ -1,9 +1,6 @@ import { useRegisterSW } from "virtual:pwa-register/react"; import Button from "../ui/button"; -const isPWA = window.matchMedia("(display-mode: standalone)").matches; -const enableReload = false; - export default function PWABadge() { // Periodic sync is disabled, change the value to enable it, the period is in milliseconds // You can remove onRegisteredSW callback and registerPeriodicSync function @@ -32,7 +29,7 @@ export default function PWABadge() { return (
- {needRefresh && isPWA && enableReload && ( + {needRefresh && (
New content available, click on reload button to update. From 08ada0fe9dd45a4c78187e121436f4467980ee50 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Wed, 25 Sep 2024 23:42:53 +0800 Subject: [PATCH 5/8] Disable dev deploy slack notify --- .github/workflows/deploy-dev.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 7f93da12..366535b4 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -29,7 +29,7 @@ jobs: script_build: pnpm web build:mainnet dist_path: apps/web/dist enable_notify_comment: true - enable_notify_slack: true + enable_notify_slack: false slack_channel: helix-ui slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} @@ -46,6 +46,6 @@ jobs: script_build: pnpm web build:testnet dist_path: apps/web/dist enable_notify_comment: true - enable_notify_slack: true + enable_notify_slack: false slack_channel: helix-ui slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} From 1ba4d487511e066cbae41e8af45c0ac7211b1b44 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Thu, 26 Sep 2024 00:11:44 +0800 Subject: [PATCH 6/8] Mainly trigger a new deployment --- apps/web/src/components/pwa-badge.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/pwa-badge.tsx b/apps/web/src/components/pwa-badge.tsx index e01cc351..064a1aec 100644 --- a/apps/web/src/components/pwa-badge.tsx +++ b/apps/web/src/components/pwa-badge.tsx @@ -32,7 +32,7 @@ export default function PWABadge() { {needRefresh && (
- New content available, click on reload button to update. + New content available, click on Reload button to update.